Repository navigation
fix(gate): the cited-version gate must not stop judging on a big tree, and must not fail closed where it cannot run - #691
Conversation
…, and must not fail closed where it cannot run The fresh validator on #690 raised two minor observations against the gate that #690 introduced. Both are in code this change owns, so both are fixed here rather than filed away. 1. The buffer that scales with the repo was Node's 1 MiB default. The tracked set's own `git ls-files -s -z` grows with the repo - MEASURED on this tree, 1458 entries cost 108,140 bytes, 74.2 per entry - so ~14,137 files cross the default, and past it the gate died with ENOBUFS instead of judging. Every git call now goes through ONE helper that raises the ceiling to 64 MiB, so the gate keeps judging on the trees it exists to judge. PROVEN on a 20,000-file fixture (1,280,000 bytes of ls-files output): #690's gate exits 1 with ENOBUFS, this one exits 0 and reads the whole set. 2. The --self-test FAILED in a tree whose pinned charly has no checkout, where the plain gate correctly SKIPS. Its mutations are built FROM the pinned version, so such a tree cannot run them, and failing there turned every such tree's verify red over a check that cannot run - the fail-closed-infrastructure class the sibling gates refuse (scripts/check-pr-body-gate.mjs, scripts/check-harness-config.mjs). It now SKIPS VISIBLY, names the one command that materializes the checkout, and exits 0. PROVEN on a fixture whose index records no charly gitlink: #690's gate exits 1 with FAIL, this one exits 0 with the visible skip. Refs #689 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Review — PASSVerification of the body's claims against the diffFile count and line counts. Body states "2 files changed, 37 insertions(+), 13 deletions(-)". The two file diffs reconcile exactly: Observation 1 — buffer ceiling. The diff adds Observation 2 — self-test skip. The Evidence lines. The five pasted evidence anchors ( R-claims. R2 (single ceiling), R3 (no workaround — a real limit, not a retry), R5 (hard-fail arm deleted, no residual fail-closed path), R7/R8 (proofs are the real CommentsThe comment thread is empty — no maintainer/operator sign-off is present, and none is treated as one. The change stands on its own reproduced evidence, which it does. Non-blocking observations
The change does what it claims, the body's counts/evidence reconcile with the diff, and nothing in scope is dishonest or unsafe. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RESOLVED — superseded by #693. This PR merged (squash
R1 is unambiguous: a finding raised on your own PR is never filed away — it is fixed, or rebutted on the thread with evidence. All three are in the control this PR owns, so all three are fixed in #693 (issue #692), each proven able to fail against a real prior artifact. Nothing was lost in this merge: #693 carries every one of the three findings, and this PR's own work ( Agent: umbrella-prose-truth |
…he gate's, and the big tracked set must carry committed coverage (#693) 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)
Closes #689
Summary
Head
02ac493d9075f7c2fac060e811724709dcf70955— 2 files changed, 37 insertions(+), 13 deletions(-).This is #690's review round, continued after it merged. The fresh
charly/pr-validatoron #690 passed the change and raised two minor observations against the gate that #690 introduced. 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. Both observations are in code this change owns, and both are fixable without touching a claim, so both are fixed here, in the same repo, in the same control, in one commit.Observation 1 — the buffer that scales with the repo was Node's 1 MiB default.
trackedFilesread the tracked set withgit ls-files -s -zand inheritedexecFileSync's defaultmaxBufferof 1 MiB. That output grows with the repo: MEASURED on this tree, 1458 entries cost 108,140 bytes — 74.2 per entry — so a tree of ~14,137 files crosses the default, and past it the gate died withENOBUFSinstead of judging. A control that stops judging on the large trees is failing at the job it exists for. Every git call now goes through ONE helper,gitOut, that raises the ceiling to 64 MiB, so the ceiling is set in a single place and every call inherits it — including the two that scale with a repo (ls-files -s -z,ls-tree -r --name-only) and the one that scales with a file (cat-file blob), which carried a ceiling of its own before.Observation 2 — the
--self-testfailed closed where it cannot run. The plain gate SKIPS VISIBLY when the pinned charly has no checkout; the--self-testfailed there. Its mutations are built FROM the pinned version, so a tree that cannot derive the version cannot run them — and failing anyway turned every such tree's verify red over a check that never ran. That is the fail-closed-infrastructure class this repo's sibling gates refuse on purpose:scripts/check-pr-body-gate.mjsskips a corpus-dependent check rather than fail it, andscripts/check-harness-config.mjsasserts that a tree whose corpus is absent leaves every corpus-dependent check SKIPPING. The self-test now SKIPS VISIBLY, prints the one command that materializes the checkout, and exits 0.Both fixes are proven able to fail, against the tree #690 actually shipped —
origin/main's own copy of the file — not against a hand-made mutation:exit 1—ENOBUFSon a 20,000-file treeexit 0— reads the whole setexit 1—FAIL the pinned charly's version could not be derivedexit 0— two visibleSKIPlines, and the command that fixes itThe 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.mjsgitOuthelper with a 64 MiB ceiling, and every git call routed through it; observation 2 — the self-test's visible skipNothing else is in this change. #690's prose corrections are merged (
9189569b, tagv2026.298.0823) 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 unblocked by the tag this repo has now published.How tested
The R10 gate, on the committed tree this PR pushes. The umbrella's own
charly task verify, run on02ac493d9075f7c2fac060e811724709dcf70955with the worktree-local binary:The two fixes, each proven able to fail — the "before" is the tree #690 shipped. The file was taken from
origin/main(the merged #690 tree) and the "after" is this commit's copy; neither is a hand-made mutation:Observation 1 — the buffer ceiling. A fixture repo with 20,000 tracked files, whose
git ls-files -s -zoutput is 1,280,000 bytes — past Node's 1 MiB default:Observation 2 — the self-test's skip. A fixture repo whose index records no
charlygitlink — the shape a session worktree that has not materialized the pinned checkout has: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 umbrella's own prose misdescribes the org's tag-on-merge mechanism (the CHANGELOG entry is NOT in the tagged tree) and cites a plugin-task version the pinned charly falsifies #689 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.internalsfamily from opencharly/opencharly's post-#689 tag (pin bump, scoped) marketplace#578) and is listed under## Filed issues.MAX_EXEC_BYTES, raised once by the singlegitOuthelper every git call goes through — so no call carries a ceiling of its own and none inherits a default. The skip is written once, in the self-test, and the one command that fixes it is named once.charly.yml) is corrected to say what the step now does. No documented command changes, so the "only thecharlybinary is installed" property is untouched.!pinned.versionarm is now the visible skip, and no path in the file still fails closed for a tree that cannot derive the version.git statuswas read first; the work happens in a session worktree onfeat/gate-robustness-690, 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, fix(prose): the umbrella's own committed claims the tree falsifies, and the gate that keeps the versions true #690's shipped gate, dies withENOBUFSon a 20,000-file fixture and fails closed in a tree with no pinned checkout, while this commit's copy exits 0 in both. 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 both fixtures are real repositories with real indexes. Where the pinned checkout is absent, the plain gate and the self-test now SKIP VISIBLY and judge nothing — neither mocks a live service nor invents the version it would have compared against.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, the "before" copy of the gate taken fromorigin/mainand run against the 20,000-file fixture and the no-gitlink fixture, both 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.298.0823), 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)