Repository navigation
feat(check): a pin must be at a tag or one step above one - #953
Conversation
Every release lands as a squash merge, tag-on-merge writes a `CHANGELOG/<CalVer>.md` commit on top of it, and this umbrella advances the pin to the branch tip — so the tip is one CHANGELOG commit above the tag, and `git ls-remote --tags | grep -F <pin>` is empty for it. Nothing related a pin to a tag: a pin untagged for a different reason read exactly like a healthy one, and tag-on-merge could fail after the merge with no detector (opencharly/.github#286). `scripts/design-pintag.sh` reads every pin from the tree's index at the pinned commit in its own module store and answers one question per pin: at a tag, one CHANGELOG commit above one, a chain of CHANGELOG commits above one, the commit that installs the tag-on-merge caller, a repository without one, or untagged. The first five pass by rule and are reported; the last fails unless `design/pintag-baseline.tsv` records it with its reason. The tag question is fail-closed: a positive is a local tag ref and needs no network, while an absence needs the remote and `--remote` cross-checks it, failing loud when a remote is unreachable. Measured on this tree: 409 pins, all judged — 392 changelog-tip, 5 tagged, 2 changelog-chain, 3 pre-release-process, 5 not-applicable, and 2 untagged that the census records: `pi-asciinema` and `layer-android-apidemos`, each at the branch tip, untagged, with no CHANGELOG commit while tag-on-merge is present at the pin and at its parent. `--self-test` proves the control fails on an arbitrary untagged commit and on a pin more than one step above a tag, passes at a tag and one CHANGELOG commit above one, and proves both census directions, the visible skip, the unreadable pin and both remote outcomes. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — PASSHead SHA: Change class: design-tooling (bash control script + census TSV + DESIGN.md doc); no runtime/Go/pin/box change.
Non-blocking note (rulebook-gap / tool-limited): the footer model name Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Every release lands as a squash merge,
tag-on-mergewrites aCHANGELOG/<CalVer>.mdcommit on top of it, and this umbrella's pin advances to the branch tip — so the tip is one CHANGELOG commit above the tag, andgit ls-remote --tags | grep -F <pin>is empty for it. Nothing related a pin to a tag: a pin left untagged for a different reason read exactly like a healthy one, andtag-on-mergecould fail after the merge with no detector — it did on 2026-11-09 (HttpError: other side closed, run 42553401961), filed as opencharly/.github#286. The record of the gap, with its measured instances, is #793.scripts/design-pintag.shis a sixth control ofbash scripts/design-check.sh. It reads every pin from the tree's index (git ls-files --stage), and each module from<git-common-dir>/modules/<path>at the pinned commit — never from a checkout — and answers one question per pin: at a tag, one CHANGELOG commit above one, a chain of CHANGELOG commits above one, the commit that installs the tag-on-merge caller, a repository with no caller, or untagged. The first five pass by rule and are reported; the last fails unlessdesign/pintag-baseline.tsvrecords it with its reason.A sixth control, not a wider schema-pattern gate. A.11 reads the CUE text of the pinned plugin modules and answers a question about the schema's shape; this reads the pin itself and answers a question about its relation to a tag. They read the same index and share nothing else, and A.2's "each control lives in exactly one script" puts the second question in a second script. DESIGN.md A.12 documents it in the shape of A.3–A.11, and A.1/A.2 now name it.
What the offline reading can and cannot see. A positive is a local tag ref at the pin, or at the first-parent ancestor the walk reaches — proof, and tags are immutable, so a store's tag cannot go stale into a false pass. An absence needs the remote: a tag upstream that was never fetched into the module store is invisible, and a pin fetched before its tag reads as untagged. That direction is fail-closed — it can only over-report, never bless — and every run prints the store boundary it used.
--remoteis the opt-in cross-check: for every pin the local reading called untagged it asksgit ls-remote --tags, and it fails loud, naming the module and the URL, when a remote is unreachable. It is not the gate, because the positive side needs no network and a full sweep is one network call per ambiguous pin. Stated precisely, it cannot see: a tag never fetched (that is what--remoteresolves), a tag deleted or moved upstream, whether a pin trails its remote's tip (the currency question, which this control does not answer), and the tag-to-merge relation beyond the first-parent line.The split on this tree (2026-11-09). 409 pins in the index, all 409 judged, 0 skipped: 392
changelog-tip, 5tagged, 2changelog-chain, 3pre-release-process, 5not-applicable, 2untaggedrecorded in the census. The two untagged pins arepi-asciinemaandlayer-android-apidemos; each is the branch tip, untagged, with no CHANGELOG commit while tag-on-merge is present at the pin and at its parent — the live instances of #286 the control now finds, recorded with their mechanism and tracked by #793.DESIGN.mddesign/pintag-baseline.tsvscripts/design-check.shscripts/design-pintag.sh--self-test,--remoteand--explainmodesHow tested
Every command below ran in the session worktree at the committed head, and the tree it judged is the tree the push publishes.
The control, on this tree:
R7 — the mutations. Each case builds a disposable umbrella whose index carries gitlinks and a bare module store per pin, then runs the same classifier and the same census comparison the check runs: a pin at a tag and a pin one CHANGELOG commit above one pass; an arbitrary untagged commit, a pin more than one step above a tag, and a CHANGELOG commit above an untagged merge fail; both census directions, the visible skip, the unreadable pin and both remote outcomes are exercised.
The opt-in cross-check against the real service, on the same tree:
The two recorded untagged pins, confirmed against their own remotes — the tag query returns nothing for the served commit, and the branch head IS that commit:
The umbrella gate on the committed tree, which is the change's own gate (A.1: the design check runs locally and on demand):
and the consistency check it runs as its second step, on its own:
R1 — the one finding this change produced was the pre-commit gate's collection-size arm over the new A.12 prose:
409 pinsstood in a clause with no date. It was fixed in the same commit by dating the clause, and the checker then reported:The absence claim — that no prose claimed no such control exists, so there was nothing to correct beyond adding A.12 — is calibrated on both sides: the predicate matches a known positive (the new A.12 sentence that names the missing detector) and nothing else about pins in the four documents.
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:strict-policyand/charly-internals:root-cause-analyzerbefore the first edit, and followed their landing discipline.--remotefails loud instead of retrying.git status --shortwas empty before the commit and after it; the work happened in the session worktree onfeat/design-pintag, with no force-push, no bypass and no direct push tomain.--remote, which ran against GitHub and fails loud when unreachable; the gate itself reads local refs and needs no service.bash scripts/design-check.shplus its consistency step (output above); no disposable bed applies because the diff changes no runtime, box, candy or pin.Change classification
What changes: a local design control and its documentation.
scripts/design-pintag.shis new,scripts/design-check.shgains it as step 6/6,design/pintag-baseline.tsvis its census, and DESIGN.md gains A.12 plus the A.1/A.2 references. No schema, no Go source, no pin and no runtime configuration moves.Breaking change: none — nothing a consumer reads changes, the other five controls are untouched in behaviour, and the new control writes nothing to the tree. Undoing it is deleting the two committed scripts and the A.12 section; there is no state to restore.
Filed issues
#793 — the record of this gap and its measured instances; this control's measurement and the two untagged pins it found are added there as evidence. opencharly/.github#286 is the mechanism issue the census rows name.
Agent: charly · dsh-design-ledger/pintag · session session-f8a0eb3b-2677-47a9-8139-49b1ba39440c
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)