Skip to content

feat(check): a pin must be at a tag or one step above one - #953

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/design-pintag
Nov 9, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/design-pintag

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Every release lands as a squash merge, tag-on-merge writes a CHANGELOG/<CalVer>.md commit on top of it, and this umbrella's pin advances 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 left untagged for a different reason read exactly like a healthy one, and tag-on-merge could 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.sh is a sixth control of bash 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 unless design/pintag-baseline.tsv records 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. --remote is the opt-in cross-check: for every pin the local reading called untagged it asks git 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 --remote resolves), 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, 5 tagged, 2 changelog-chain, 3 pre-release-process, 5 not-applicable, 2 untagged recorded in the census. The two untagged pins are pi-asciinema and layer-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.

file change
DESIGN.md A.12, the pin-tag control, and the A.1/A.2 references to it
design/pintag-baseline.tsv the census: the untagged pins this tree carries, each with its reason and the tracked issue
scripts/design-check.sh the control becomes step 6/6
scripts/design-pintag.sh the control itself, with its --self-test, --remote and --explain modes

How tested

Every command below ran in the session worktree at the committed head, and the tree it judged is the tree the push publishes.

$ git rev-parse HEAD
e7c9eb885809b4c16b9704f308c0f01e8ed91edb

$ git status --short
(empty)

The control, on this tree:

$ bash scripts/design-pintag.sh
design-pintag: 409 pinned module(s) in the index, 409 judged, 0 skipped (no module store)
design-pintag: 409 pin(s): tagged 5, changelog-tip 392, changelog-chain 2, pre-release-process 3, not-applicable 5, untagged 2
design-pintag: 2 recorded in design/pintag-baseline.tsv (tracked by opencharly/opencharly#793 — the gap the live instances were filed under (the mechanism is opencharly/.github#286))
design-pintag: tags read from the module stores under /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.git/modules; a tag that was never fetched into a store is invisible to this reading (run --remote to cross-check the untagged pins)
design-pintag: every pin is at a tag, one CHANGELOG commit above one, or explained
rc=0

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.

$ bash scripts/design-pintag.sh --self-test
  self-test the clean fixture (tag, tip, chain, birth, no caller, annotated) passes as designed
  self-test the clean fixture                                        every state named
  self-test a pin exactly at a tag                                   passes as designed
  self-test a pin exactly one CHANGELOG commit above a tag           passes as designed
  self-test a pin at an arbitrary untagged commit                    fails as designed
  self-test a pin two steps above a tag                              fails as designed
  self-test a CHANGELOG commit above an untagged merge               fails as designed
  self-test an untagged pin the census records                       passes as designed
  self-test a new untagged pin beside a recorded one                 fails as designed
  self-test a census row whose pin moved                             fails as designed
  self-test a census row whose pin is no longer untagged             fails as designed
  self-test a census row whose state is not untagged                 fails as designed
  self-test a census row with no reason                              fails as designed
  self-test a census that names no tracked issue                     fails as designed
  self-test no census file at all                                    fails as designed
  self-test an absent module store (skipped visibly)                 passes as designed
  self-test every pin skipped (a run over nothing)                   fails as designed
  self-test a pin the module store does not have                     fails as designed
  self-test --remote with an unreachable remote                      fails as designed
  self-test --remote resolves a tag the store never fetched          passes as designed
design-pintag: self-test passed (19 cases; every state, both census directions, the skip, the unreadable pin and both remote outcomes each fail when they must)
rc=0

The opt-in cross-check against the real service, on the same tree:

$ bash scripts/design-pintag.sh --remote
design-pintag: 409 pinned module(s) in the index, 409 judged, 0 skipped (no module store)
design-pintag: 409 pin(s): tagged 5, changelog-tip 392, changelog-chain 2, pre-release-process 3, not-applicable 5, untagged 2
design-pintag: 2 recorded in design/pintag-baseline.tsv (tracked by opencharly/opencharly#793 — the gap the live instances were filed under (the mechanism is opencharly/.github#286))
design-pintag: tags read from the module stores under /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.git/modules; a tag that was never fetched into a store is invisible to this reading (run --remote to cross-check the untagged pins)
design-pintag: remote cross-check: 2 untagged pin(s) queried, 0 unreachable
design-pintag: every pin is at a tag, one CHANGELOG commit above one, or explained
rc=0

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:

$ git ls-remote --tags https://github.com/opencharly/pi-asciinema.git | grep -c -F 2938ef8d00de3752553ba6128756f79d7ffb41df
0
$ git ls-remote https://github.com/opencharly/pi-asciinema.git refs/heads/main
2938ef8d00de3752553ba6128756f79d7ffb41df	refs/heads/main
$ git ls-remote --tags https://github.com/opencharly/layer-android-apidemos.git | grep -c -F 78612d2159914fbc37b83ee53f947de8989b1293
0
$ git ls-remote https://github.com/opencharly/layer-android-apidemos.git refs/heads/main
78612d2159914fbc37b83ee53f947de8989b1293	refs/heads/main

The umbrella gate on the committed tree, which is the change's own gate (A.1: the design check runs locally and on demand):

$ bash scripts/design-check.sh

== 1/6 toolchain
cue version v0.18.0-rc.1

== 2/6 DESIGN.md ↔ DESIGN.cue
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree

== 3/6 examples and negative cases
examples: 14 validated
negatives: 109 checked

== 4/6 the capability ledger
design-ledger: 264 rows vs 264 parity capabilities; citations resolve and name their subject; enums hold

== 5/6 the schema patterns of every pinned plugin module
design-dpat: 121 pinned modules, 202 CUE files in scope, 1 under a vendor/ tree (foreign mirrors, out of scope)
design-dpat: 729 known violations (close 70, absence 86, open 68, opaque 0, dup 26, union 479) — tracked by opencharly/opencharly#945
design-dpat: no new violation, and the census matches the tree

== 6/6 every pin's relation to a release tag
design-pintag: 409 pinned module(s) in the index, 409 judged, 0 skipped (no module store)
design-pintag: 409 pin(s): tagged 5, changelog-tip 392, changelog-chain 2, pre-release-process 3, not-applicable 5, untagged 2
design-pintag: 2 recorded in design/pintag-baseline.tsv (tracked by opencharly/opencharly#793 — the gap the live instances were filed under (the mechanism is opencharly/.github#286))
design-pintag: tags read from the module stores under /home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.git/modules; a tag that was never fetched into a store is invisible to this reading (run --remote to cross-check the untagged pins)
design-pintag: every pin is at a tag, one CHANGELOG commit above one, or explained

design-check: all controls pass
rc=0

and the consistency check it runs as its second step, on its own:

$ bash scripts/design-consistency.sh "$PWD"
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary, grammar — all agree
rc=0

R1 — the one finding this change produced was the pre-commit gate's collection-size arm over the new A.12 prose: 409 pins stood in a clause with no date. It was fixed in the same commit by dating the clause, and the checker then reported:

$ node scripts/check-readme-measurements.mjs
check-readme-measurements: the umbrella's measured figures, read against each other
  baseline: 9.5–9.5 G, coarse
  light: 77–77 M, 14–15 s
  all: 1.9–2.2 G, 344–403 s
OK — the table, the prose and the samples agree.
rc=0

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.

$ grep -rn -iE "no (control|check|gate|detector)[^.]*|nothing (checks|relates|detects)|never checked|unchecked" DESIGN.md TODO.md README.md AGENTS.md
DESIGN.md:2708:exactly one script, and no check writes to the repository. The committed negative cases (A.5) and
DESIGN.md:3115:and `tag-on-merge` could fail after the merge with no detector. The control answers, for every pin
README.md:88:and a reading nobody measured is a reading no gate can see.
README.md:820:A wave needs **no full set**: the bump advances a path with no checkout **in the index**
AGENTS.md:660:   reported as *uninitialized (pin audited, no checkout)* — a notice, not a failure.
AGENTS.md:661:   **A pin wave needs no full set**: the bump advances a path with no checkout IN THE
rc=0

Rulebook compliance

rule answer
R0 Loaded /charly-internals:git-workflow, /charly-internals:strict-policy and /charly-internals:root-cause-analyzer before the first edit, and followed their landing discipline.
R1 One finding, from the pre-commit gate's collection-size arm, was fixed in the same commit (output above). The two untagged pins are not deferred: they are recorded in the census with their mechanism, and the evidence is added to #793.
R2 One control, one script, one census; the tag question has one implementation and A.12 is its one statement. Nothing in A.11 is duplicated.
R3 No sleep, retry, fallback or magic number. The absence direction is fail-closed by construction; --remote fails loud instead of retrying.
R4 The control is the product here, and the prose states what it can and cannot do rather than promising more.
R5 No legacy path, name or shim: this adds a control and deletes nothing; no retired identifier gains a new reference.
R6 git status --short was empty before the commit and after it; the work happened in the session worktree on feat/design-pintag, with no force-push, no bypass and no direct push to main.
R7 The self-test mutates every state and both census directions and proves the check fails without the change; the changed script ran live on the real pins (output above).
R8 The only live boundary is the opt-in --remote, which ran against GitHub and fails loud when unreachable; the gate itself reads local refs and needs no service.
R9 No Go source changed, so no rebuild applies; the design check runs from the committed tree with the pinned CUE toolchain.
R10 The committed-tree gate for this change is bash scripts/design-check.sh plus 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.sh is new, scripts/design-check.sh gains it as step 6/6, design/pintag-baseline.tsv is 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)

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)
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e7c9eb885809b4c16b9704f308c0f01e8ed91edb (branch: feat/design-pintag)

Change class: design-tooling (bash control script + census TSV + DESIGN.md doc); no runtime/Go/pin/box change.
Security screen: PASS — no secrets/egress, no guardrail weakening, no validator/rulebook redefinition, no new deps. The new --remote path reads tag refs from configured module remotes only and fails loud.
Checklist: Applicable rules PASS or NA.

  • A1/A3: body accounts for all 4 files; gate (design-check.sh + design-pintag.sh + self-test) ran live with pasted output; tier not inflated for a non-runtime change.
  • R1/CONC: the two untagged pins are recorded in the census and tracked by opencharly/opencharly#793 (mechanism #286) — a filed-issue disposition, not a forbidden "pre-existing" split; the one gate finding was fixed in-commit.
  • R2/R3/R5/R7/R10: one control/one script/one census, no sleep/retry/magic, self-test (19 cases, matches count) proves each state and both census directions fail when they must; coverage would fail without the change.
  • R8: gate runs offline; --remote cross-check ran against real GitHub (ls-remote output pasted); the self-test's file:///localhost cases exercise real git ls-remote mechanics, not a mocked service.
  • R9/ARCH/QUAL: no Go, no rebuild, placement is existing scripts/design-*.sh tooling (outside the core/sdk/candy taxonomy) — correct.
  • Comment thread: empty (0 comments), nothing to disposition.

Non-blocking note (rulebook-gap / tool-limited): the footer model name deepseek-v4.1-flash cannot be corroborated — the body pastes no authoring-runtime evidence for harness/provider/model, so A3's cross-check is unverifiable from the context. Not a reproducible defect, but the body would be stronger pasting the runtime's reported model id.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 9, 2026 03:45
@github-actions
github-actions Bot merged commit b06479f into main Nov 9, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant