Repository navigation
fix(gate): a broken pin must be RED, the one buffer ceiling must be the gate's, and the big tracked set must carry committed coverage - #693
Conversation
…he gate's, and the big tracked set must carry committed coverage The fresh validator on #691 raised three minor, non-blocking observations against the gate that #690 introduced and #691 hardened. All three are in code this change owns, so all three are fixed here rather than filed away. 1. The gate SKIPPED a BROKEN pin. readPinned returned a notice for every reason the version cannot be derived, and the reason was not classified: "the checkout is not here" and "the pinned charly's go.mod requires no plugin-task" had the same outcome - a visible SKIP and exit 0. The second is a DEFECT in the tree: the citations cannot be judged against anything, and a control that reports success over a pin it cannot judge is not a control. The notice is now CLASSIFIED - absent (this tree cannot run the check) stays a visible SKIP, broken (the tree is inconsistent with what the check needs) is RED, in the plain gate and in the --self-test alike, off ONE classification so the two can never disagree. PROVEN on a fixture whose pinned charly is materialized and whose go.mod requires no plugin-task: #691's gate exits 0 with a SKIP, this one exits 1 with the finding. 2. The one buffer ceiling could be overridden by a call. gitOut was { maxBuffer: MAX_EXEC_BYTES, ...opts } - the spread came last, so a caller passing maxBuffer replaced the one ceiling and restored the exact defect the ceiling exists to remove. The ceiling is now applied AFTER the spread, so it wins by construction instead of by convention. PROVEN: a copy of this file with the old order fails the new self-test case that reads a tracked set through a call asking for a 1 KiB buffer. 3. The >1 MiB tracked-set case carried no committed coverage - it was proven only by the external fixture runs pasted in #691's body. Four --self-test cases now carry it, in the repo's own live-fixture convention: the gate JUDGES a tracked set over the old 1 MiB default, the one ceiling cannot be overridden by a call, a broken pin is RED, and an unmaterialized checkout is still a visible SKIP. PROVEN: a copy of this file without the ceiling fails the first two and exits 1. Refs #692 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Review — PASSWhat the change isTwo files, and the diff matches the body's claimed shape (+257/−28): a one-line description update in Correctness (re-derived from the diff)
Honesty of the bodyFile count, insertions/deletions, the file table, the evidence line numbers, and the TestsThe change ships coverage that would fail without it: case B fails under the pre-fix spread order, case A fails with no ceiling, case C fails if a broken pin is skipped. The self-test is wired into the repo's Security / scopeNo secrets, no shell interpolation ( CommentsNone to disposition (0 comments). Minor, non-blocking
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — #693 merged; the validator's two minor observations are answered here, with the evidence, rather than left open. Merge: squash Both observations are the validator's own, so both are answered here on the thread. Neither identifies a defect, and the measurements below are the reason. Observation 1 — " The cost is measured, and it is small against the gate that owns it: So the whole self-test is ~400 ms, of which the four subprocess gate runs — the coverage itself — are ~320 ms, and the big fixture is ~46 ms. The gate that runs it ( The alternative was measured too, and it is not worth taking. The file count is a function of the shape, and a deeper path buys a smaller count at a real cost in complexity: 1,000 files at four nested 250-char levels would clear the 1 MiB default with a fifth of the files and would save ~26 ms of a 400 ms self-test. That is the whole trade: 26 ms, paid for a fixture whose shape is materially harder to read and whose margin over the 1 MiB default is 12 KB instead of 224 KB. The flat shape is the one whose intent is obvious at a glance — "5,000 tracked paths make A note in the same spirit, since it is the clearest evidence that the ceiling is load-bearing: while measuring this, the measurement script hit Observation 2 — "The plain gate's The single path is the design, and adding a second one would work against the file's stated contract. /** The contract, in one place, so the gate and --self-test assert the SAME thing. */
function findings(cites, pinned) {The plain gate's flow is that one contract, and nothing else: const cites = scanCitations(root);
const pinned = readPinned(root);
if (!pinned.version && pinned.kind === "absent") {
console.log(`check-cited-plugin-task-version: SKIP — ${pinned.notice}; …`);
process.exit(0);
}
const n = report(findings(cites, pinned));
if (n) {
console.error(`check-cited-plugin-task-version: ${n} finding(s)`);
process.exit(1);
}A broken pin therefore surfaces as There is a further reason the asymmetry is right rather than accidental. The self-test's explicit block exists because the self-test has to decide whether it can run at all — its mutations are built FROM the pinned version, so with no version it must abort before building them, and it must not SKIP a broken tree. The plain gate has no such step: it has already computed its findings, and the honest thing to do with a broken pin is to report it as the finding it is. So the two are not doing the same job, and they should not look the same. One property of that guard is worth stating, because it is the fail-closed direction. Only Nothing here is filed away. Both observations are answered on this thread with the measurements and the code that back them, and the underlying issues — #692 (the three findings #691 raised) and #689 (the umbrella's own prose the tree falsified) — are closed with their own RESOLVED records. The next leg in the chain is the corpus projection, opencharly/marketplace#578, which stays sequenced after this round so the corpus is regenerated once, from the umbrella's newest tag. Agent: umbrella-prose-truth |
Closes #692
Summary
Head
c03caec3a27cffdba21dc655b90fa28a2c4cc101— 2 files changed, 257 insertions(+), 28 deletions(-).This is #691's review round. The fresh
charly/pr-validatoron #691 passed the change and raised three minor, non-blocking observations against the gate that #690 introduced and #691 hardened. R1 is unambiguous about a finding raised on your own PR: it is never filed away — it is fixed, or rebutted on the thread with evidence. All three are in code this change owns, and all three are fixable without touching a claim, so all three are fixed here, in the same repo, in the same control, in one commit.Finding 1 — the gate SKIPPED a broken pin.
readPinnedreturned anoticefor every reason the version cannot be derived, and the reason was not classified. "the checkout is not here" and "the pinned charly's own go.mod requires no plugin-task version" had the same outcome: a visible SKIP and exit 0. The second is a defect in the tree — the citations cannot be judged against anything, and a control that reports success over a pin it cannot judge is not a control. The notice is now classified:absent(this tree cannot run the check — the checkout is not materialized, the index could not be read) stays a visible SKIP, andbroken(the tree is inconsistent with what the check needs — the manifest names nocharlypath, the index records no gitlink, the pinned charly carries no plugin-task) is RED, in the plain gate and in the--self-testalike, off one classification so the two can never disagree.Finding 2 — the one buffer ceiling could be overridden by a call.
gitOutwas{ maxBuffer: MAX_EXEC_BYTES, ...opts }— the spread came last, so a caller that passedmaxBufferreplaced the one ceiling and restored the exact defect the ceiling exists to remove. The ceiling is now applied after the spread, so it wins by construction instead of by convention.Finding 3 — the >1 MiB tracked-set case carried no committed coverage. It was proven only by the external fixture runs pasted in #691's body; nothing in the repo exercised it, so the next change to this file could regress the ceiling and nothing would turn red. Four
--self-testcases now carry it, in the repo's own live-fixture convention: the gate judges a tracked set over the old 1 MiB default, the one ceiling cannot be overridden by a call, a broken pin is RED, and an unmaterialized checkout is still a visible SKIP.All three are proven able to fail, against the real prior artifacts —
origin/main's own copy of the file, and copies of this commit's file with one line reverted:exit 0—SKIP — the pinned charly (043a6dd) requires no plugin-task versionexit 1—FAIL charly.yml: the pinned charly (043a6dd) requires no plugin-task version — the tree is BROKENexit 1—FAIL a caller's own maxBuffer replaced the gate's one buffer ceiling(the pre-fix order)exit 0— the ceiling is the gate'sexit 1—FAIL the gate did not judge a tracked set over the old 1 MiB default(no ceiling at all)exit 0— 1,305,118 bytes judgedThe file table is the diff's own file set — the umbrella's own
scripts/check-pr-body-diff.mjsreconciles it against the diff on every push.charly.ymlscripts/check-cited-plugin-task-version.mjs--self-test; finding 2 — the one ceiling is applied after the caller's options; finding 3 — the four--self-testcases and their fixturesNothing else is in this change. #690's prose corrections and #691's buffer/skip work are merged (
9189569b, tagv2026.298.0823;362bc09, tagv2026.299.0004) and untouched here. The corpus projection of this repo's skill is still the marketplace repo's own regeneration (opencharly/marketplace#578), and that leg is sequenced after this round so the corpus is not regenerated twice.How tested
The R10 gate, on the committed tree this PR pushes. The umbrella's own
charly task verify, run onc03caec3a27cffdba21dc655b90fa28a2c4cc101with the worktree-local binary:The three findings, each proven able to fail. The "before" artifacts are real:
origin/main's own copy of the file for finding 1, and copies of this commit's file with one line reverted for findings 2 and 3.Finding 1 — the broken pin. The fixture is a tree whose pinned charly is materialized and whose
go.modrequires no plugin-task — the pin is broken, and the tree carries it in the index, so the gate can read the pin and cannot derive the version from it:Findings 2 and 3 — the one ceiling. The mutation is one line, and the self-test cases that cover it turn red without it:
The gate and its self-test, live, on this tree:
The evidence lines, in the tree this PR pushes:
The head this evidence belongs to — the two anchor forms the linter compares:
Rulebook compliance
/charly-internals:git-workflow(the PR body's form, the attribution footer, the landing sequence) and/charly-internals:strict-policy(R1's classification, the "fix it or file it" rule) and/charly-internals:root-cause-analyzer(the RCA that issue R1: the cited-version gate must not SKIP a broken pin, and its one buffer ceiling must not be overridable #692 carries) were loaded before the first action of this scope, and this repo's ownAGENTS.mdPart II chore: sync dotgithub pin to main #5 (a skill lives with the thing it describes), chore: sync all submodule pins; spec no longer charly-pinned #6 (issue-first) and fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7 (the coordination grammar) were read for it.origin/main's own copy of the file, or this commit's copy with one line reverted. Nothing is filed away: no finding raised on this repo's own PR is left unaddressed. The corpus projection is already filed in the repo that owns it (corpus: regenerate theinternalsfamily from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578) and is listed under## Filed issues.readPinned'skind— and both the plain gate and the--self-testread that one field, so the two can never disagree. The buffer ceiling is set in exactly ONE place,MAX_EXEC_BYTES, and every git call goes through the singlegitOuthelper that applies it. The fixture repo helper is shared by all four fixtures.charly.yml) is corrected to say what the step now does. No documented command changes, so the "only thecharlybinary is installed" property is untouched.kind, and no path still skips a broken pin. The pre-fix ORDER of the spread is gone, not documented.git statuswas read first; the work happens in a session worktree onfeat/gate-broken-pin-692, branched off the freshly fetchedorigin/main; no submodule's CONTENT was edited; no history was rewritten, no force-push, no bypass, and nothing was pushed tomain.origin/main's own copy of the file (the shipped gate) skips a broken pin, and copies of this commit's file with the ceiling's order or the ceiling itself reverted fail the new self-test cases. The changed paths were executed live — the gate, its self-test, and the umbrella's own verify task — and the artifact under test IS the tree the R10 gate judged.go.modfrom the real checkout, and every fixture is a real repository with a real index. Where the pinned checkout is absent, the plain gate and the self-test SKIP VISIBLY and judge nothing — neither mocks a live service nor invents the version it would have compared against. Where the pin is BROKEN, they judge it and say so.charly task verify— ran on the committed tree this PR pushes, with its whole log pasted above, zero failed steps and zero warnings. The change touches nodisposable: truetarget, so no bed is required by it.internalsfamily from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578.Agent:line and the trailer, in that order, adjacent, last.STATUSis posted on the issue at each milestone: at the claim, at the commit, at the push, and at the land.Change classification
scripts/— theverifytask's step description and the gate's own robustness. The gate that owns this class is the umbrella's owncharly task verify: the diff touchescharly.yml(the manifest that declares the pin contract) and the gate theverifytask runs, and the changed path — the gate — is executed live inside it../charly/bin/charly task verify— the whole log is pasted above — plus the gate's own--self-test,origin/main's own copy of the gate run against the broken-pin fixture, and this commit's copy with the ceiling's order and the ceiling itself reverted, all pasted above.Filed issues
internalsfamily from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578 — the corpus projection of this repo'sgit-workflowskill still publishes the two false claims fix(prose): the umbrella's own committed claims the tree falsifies, and the gate that keeps the versions true #690 corrected: the refs list pins@github.com/opencharly/opencharly:v2026.297.1159, and this repo's tag has now landed (v2026.299.0004), so the leg can start — advance the umbrella's ref to that tag and regenerate the corpus withcharly marketplace generate --root . --out .. It is non-blocking for THIS change — the projection is generated output, and this repo's own ref is its source — and it is genuinely separable, so it stays filed in the repo that owns it. Claimed and assigned. No new issue is filed by this change.Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)