Repository navigation
The mantra guards are the tool's own, not hand-written ones - #76
Merged
Merged
Conversation
#75 removed the repeats by hand. ⛔ THE FLEET ALREADY HAS THE COMMAND, and I had not run it: `landingmigrate repeats LAYOUT` — "Find (and with --write hide) what a layout says that the mantra strip already says". On this layout as it stood it named exactly the five fragments a reader had spotted and nothing else: footer hidden while the strip shows · BSD-3-Clause footer hidden while the strip shows CGO_ENABLED=0 · sentence hidden while the strip shows Pure Go, CGO_ENABLED=0. sentence hidden while the strip shows BSD-3-Clause. sentence hidden while the strip shows Pure Go, cgo disabled, BSD-3-Clause. So this is `landingmigrate repeats --write` run on the layout as it was before #75, replacing the hand-written version. Two differences, both the tool's favour: - ⛔ IT USES `$`, NOT `.`. The detector's own idiom is `{{ if not (partial "mantra-on.html" $) }}` — repeats.go says why: "a fragment inside {{ range }} has a repository for its dot". A hand-written `.` renders correctly at a layout's top level AND THE DETECTOR CANNOT SEE IT, so a gate would go on failing on a page that is already right. - It GUARDS the hero's tail where I had deleted it, so the sentence comes back if the strip is ever turned off. That is what the convention is for. Re-running the detector now reports the same fragments as "KEPT, says more: review" and none as hideable, which is the idempotent state. Measured on the built page: "cgo disabled" gone, the footer reads "Pure Go · every library builds for js/wasm". The gate itself is one flag away and is not here: `repeats` always exits 0, so nothing can be built on it without a shell reading its words. The design is on go-fleettools/fleettools#234; the repository was leased to another session. Refs go-fleettools/fleettools#234. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#75 removed the repeats by hand. ⛔ The fleet already has the command, and
I had not run it:
landingmigrate repeats LAYOUT— "Find (and with--writehide) what a layout says that the mantra strip already says".
Run on this layout as it stood, it names exactly the five fragments a reader
had spotted, and nothing else:
So this is
landingmigrate repeats --writerun on the layout as it was before#75, replacing the hand-written version. Two differences, both in the tool's
favour:
$, not.The detector's own idiom is{{ if not (partial "mantra-on.html" $) }}, andrepeats.gosays why: "afragment inside
{{ range }}has a repository for its dot". A hand-written.renders correctly at a layout's top level and the detector cannot seeit — so the gate, once it exists, would go on failing on a page that is
already right.
back if the strip is ever turned off. That is what the convention is for.
Re-running the detector on the result reports the same fragments as
KEPT, says more: reviewand none as hideable, which is the idempotent state.Measured on the built page:
cgo disabledgone, the footer reads "Pure Go ·every library builds for js/wasm".
The gate is one flag away, and is not in this change
repeatsalways exits 0, so nothing can be built on it without a shell readingits words — which is not how this fleet writes gates. The design, with the
--checkflag and the one-line CI step it allows, is ongo-fleettools/fleettools#234. That repository was leased to another session
while this was written.
Refs go-fleettools/fleettools#234.
🤖 Generated with Claude Code