Repository navigation
feat(gate): the body reconciler resolves every 40-character commit id the body pastes - #764
Conversation
… the body pastes A pasted commit id is a MEASUREMENT — it is the output of a command — and a measurement that names nothing is not a measurement. The reconciler had no arm that asked whether a pasted id EXISTS: a well-formed but fabricated 40-character id passed every arm, because every other arm judged the body's FORM and its FIDELITY TO THE DIFF, and neither asks whether the thing the body measures is there. A body of this repo's own carried one (#762 — the body the org validator blocked; that PR's body half was fixed in that PR): the pasted `git ls-tree origin/main marketplace` line read `b920b01854379fb4b4d16a0d4a06b7a6a3ff1ba0` while the tree's own line reads `b920b01854f2981d645cac45920091f0166e20ca` — the first TEN characters are the same and the rest is invented. The new arm I resolves each pasted id in the stores this tree can SEE: this repo's own object store, the object store of every declared submodule whose checkout is here (a submodule's commits live in ITS store, not in this one), and the pin values the tree records. An id that resolves NOWHERE and that the body attributes to exactly ONE repository the tree can see is a finding that names it. An id the tree cannot attribute — no repository named near it, several named, or one whose checkout is not here — is REPORTED and not judged, because a false finding is worse than no report. The self-test proves the arm both ways: a fixture body carrying a fabricated id turns it RED, and a body carrying a real id of a commit in a submodule's own store stays GREEN — as does one whose repository has no checkout here, which is reported rather than judged. The rulebook gains the discipline half of the same root fix: a pasted commit id is quoted as the 40-character output of the command that produced it, a prefix is quoted as a prefix and never inside a fence that claims to be a command's output, and a 40-character id that resolves in no store is a finding and not a citation. The umbrella's own git-workflow skill — the SOURCE the corpus projects, and the HOW that rulebook rule names — carries the same discipline beside the evidence bullets it belongs with. The gate's own step title names the new arm, so the report the task prints describes the arms that are actually there. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS — the PR is open at What is done. The control half of #763's root fix is in The proof. Next. The validator's verdict on this head. Every finding it raises is fixed in ONE commit per round, and the whole body is rewritten for the new head before each push. The next update is due when the verdict lands, or within the hour. Agent: charly · session |
Review — BLOCKI re-derived every claim in the body against the four diffs and the (empty) comment thread. The change is largely coherent: the diffstat ( One body claim is not reproduced by the diff, and under this PR's own "a fence must be true" standard it is a contradiction, not a nit. Blocks
Other checks (no block)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…lure
The validator BLOCKed the first push of this branch on one finding: the body's
R3 bullet claimed the arm asks `git cat-file --batch-check` with
`GIT_NO_LAZY_FETCH=1`, and the diff does not set it. The body asserted an
implementation property the tree did not carry — in a PR whose whole subject is
a body's fidelity to what it measures. The claim was wrong; the code was
right; the prose is what changes.
RCA. Mechanism: the body was written from the arm's INTENT rather than from
the arm's source, and nothing compared the two before the push. Missed
control: the reconciler reads the BODY and never the diff — no gate compares a
body's claim about the implementation with the implementation. Blast radius:
this body's R3 bullet, and the rulebook's PR-body paragraph, which overstated
the arm the same way ("is a finding, not a citation" — the arm refuses only an
id it can attribute, and reports the rest). Root fix: the prose now says what
the code does, and the code's own promise is now kept.
The code changes too, because the reviewer's question exposed a real hole
underneath the claim: a store that could not ANSWER — a stale gitdir, a
directory that is not a repository — was read as "the id is absent", so the
arm refused an id on a store's FAILURE rather than on its absence. The two
answers are now kept apart: an unanswered store is recorded, and an id
attributed to such a store is reported, not judged. The arm's own docstring
promised exactly that; the code did not keep it.
The rulebook's PR-body paragraph drops "is a finding, not a citation" for "is
never a citation" — true whether the arm judges the id or reports it — and the
verify task's step title names the arm's real discrimination: an id that
exists in no store AND that the body attributes to one repository the tree can
look in.
The self-test grows a case for the new path: a declared repository whose
checkout is here and whose object store cannot answer. A mutation that
restores the old reading — a store that cannot answer claims it answered —
turns that case RED and leaves the other three GREEN.
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS — the validator's BLOCK is fixed. The branch is at What is done. The verdict named ONE finding: the body's R3 bullet claimed the arm asks The hole under the claim. The reviewer's question exposed one: a store that could not ANSWER — a stale gitdir, a directory that is not a repository — was read as "the id is absent", so the arm refused an id on a store's FAILURE rather than on its absence. The two answers are now kept apart. The arm records a store that could not answer and REPORTS an id attributed to it, which is what its own docstring always promised. A self-test case covers it — 44 arms live — and a mutation that restores the old reading turns that case RED while the other three stay GREEN, so the new case is a real discriminator and not a vacuous one. The RCA. Mechanism — the body was written from the arm's INTENT rather than from the arm's source, and nothing compared the two before the push. Missed control — the reconciler reads the body and never the diff, and so does the pre-push hook: no gate compares a body's claim about the implementation with the implementation. Blast radius — this body's R3 bullet, and the rulebook's PR-body paragraph, which overstated the arm the same way ("is a finding, not a citation" where the arm refuses only an id it can attribute and reports the rest). Root fix — the prose now says what the code does, and the code's own promise is now kept. The proof. Next. The validator's verdict on this head. Every finding it raises is fixed in ONE commit per round, and the whole body is rewritten for the new head before each push. The next update is due when the verdict lands, or within the hour. Agent: charly · session |
Review — PASSI re-derived every claim in the body against the four diffs, the two commits, and the comment thread. What holds up
Comment dispositions
Non-blocking observations
The control is implemented as described, the test coverage fails without it, the earlier BLOCK is genuinely fixed in code and prose, and the body's counts and pasted outputs match the diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RESOLVED — the fresh The verdict's two non-blocking observations are dispositioned here. A finding raised on a PR is fixed or rebutted on the thread with evidence — never filed away — so both are answered against the code and the live repos. 1. "The main repo store's 2. "The second resolves in the corpus's own store" cannot be confirmed from the diff. Verified live after the merge, and it holds — the claim is about the corpus repo's own store, which is exactly why the diff cannot carry it. Against the live repos: The first ten characters are the same, and the rest of the first was completed by pattern rather than measured. The close-out. Issue #763 is closed by hand, with the record on that thread: a Agent: charly · session |
Closes #763
Summary
Head
9446f516adf870edcf6cbbdec634f7ad84748e1b— the commit this PR pushes: 4 files changed, 380 insertions(+), 1 deletion(-).The umbrella's body/diff reconciler had no arm that asked whether a pasted commit id EXISTS. Every SHA-bearing arm it has judges a sha the tree NAMES (
git rev-parse HEAD), a file path the diff changes, or a number the diff carries — so a well-formed 40-hex string that no repository has ever heard of passed every gate that runs on a body: the reconciler, the org linter, the pre-push hook. The instance is #762, whose validator BLOCK named it; the issue is #763.The control — arm I in
scripts/check-pr-body-diff.mjs: every 40-character id a body pastes must RESOLVE — in this repo's own object store, in the object store of every declared submodule whose checkout is here (a submodule's commits live in ITS store, not in this one), and among the pin values the tree records. An id that resolves NOWHERE and that the body attributes to exactly ONE repository the tree can see is a finding that names it, the way the other arms name what they found. An id the tree cannot attribute — no repository named near it, several named, one whose checkout is not here, or one whose object store could not ANSWER — is REPORTED and not judged, because a false finding is worse than no report.The discipline — the rulebook's PR-body section, and the umbrella's own
git-workflowskill (the SOURCE the corpus projects) beside the evidence bullets it belongs with: a pasted commit id is quoted as the 40-character output of the command that produced it; a prefix is quoted as a prefix and never inside a fence that claims to be a command's output; a 40-character id that resolves in no store this tree can see is never a citation.The two ids the blocked body carried, and what the tree says about them:
b920b01854379fb4b4d16a0d4a06b7a6a3ff1ba0b920b01854f2981d645cac45920091f0166e20caThe first resolves in no store this tree can see; the second resolves in the corpus's own store. The first TEN characters are the same, and the rest of the first was completed by pattern rather than measured.
scripts/check-pr-body-diff.mjsAGENTS.md.agents/skills/git-workflow/SKILL.mdcharly.ymlHow tested
The head this body describes
The change-class gate, on the committed tree this body describes — the diff changes a gate script, the rulebook, the umbrella's own skill and the task manifest, so the gate is the umbrella's own
verifytask, run on the committed tree with the worktree-local, CalVer-stamped build (R9):The reconciler's own self-test on the final tree — the new arm's four cases: a fabricated id turns the gate RED, a real id that lives in a submodule's OWN store stays GREEN, an id attributed to a repository with no checkout here is reported rather than judged, and an id attributed to a repository whose object store cannot ANSWER is reported rather than judged.
The R7 proof — two mutations, each shown so the mutation is provably APPLIED. The first removes the arm's call site, so the arm is not exercised at all; the arm's own RED case then fails to go red, and every GREEN case stays green.
The second restores the OLD reading — a store that could not answer CLAIMS it answered — and it turns the new case RED while the other three stay green, so the new case is a real discriminator and not a vacuous one. The grep is bounded at four matches on purpose: the fifth carries the arm's own finding, which carries the fabricated id, and a body that pastes an id which resolves nowhere is the very thing this arm refuses.
The changed path, executed live on THIS tree, in both directions. A body that pastes the corpus's own commit id is accepted; a body that pastes the fabricated id is refused, and the arm's own summary says so.
The RED run's own finding is not pasted here, and that is the rule this PR adds rather than a gap in the evidence: the finding carries the fabricated id, and a body that pastes an id which resolves nowhere is the very thing the new arm refuses. The finding's shape is the arm's — it names the id, the line the id is on, and the repository the body attributed it to, and it ends: a pasted id must be a MEASURED 40-character id, never a completed prefix.
The answer the arm trusts is GIT's, and it is an answer about the REPOSITORY. The corpus's own store is a partial clone, so "does this id name a commit" is a question git asks the corpus itself rather than one it answers from the local cache. Measured on this tree, with the head this body describes as the id the corpus does not have:
So the arm does not set
GIT_NO_LAZY_FETCH=1and does not judge against a local cache: it asks git, and git asks the repository, and the answer it reads — "missing", exit 0 — is the repository's own. What the arm does keep apart is a store that could not answer AT ALL: that is the store's failure, and it is never the id's absence.The R5 sweep, claim-keyed. The claim is "the discipline — a pasted commit id is quoted as the 40-character output of the command that produced it — is stated once in the umbrella's rulebook and once in the umbrella's own skill, and nowhere else in a current surface". The whole-tree inventory over the umbrella's current surfaces, with no filter and no window:
One statement of the RULE in the rulebook (the WHAT and the MUST) and one in the umbrella's own skill (the HOW the rulebook rule names), and no third copy: the rulebook states an org-wide rule ONCE and points at the skill that carries it. The
charly.ymlhit is the gate's own step title — it names the DISCRIMINATION the gate performs, not the rule — and it is the surface the gate's report is printed from. The last command is the control: the claim is in NO current surface oforigin/main, so the two lines above are this change's own and not something the tree already said. The corpus's published copy of that skill is a GENERATED projection, and it is byte-identical to the umbrella's own tree at the tag the corpus pins — measured, with the banner the generator puts between them:The new bullet is therefore NOT hand-copied into the corpus: the corpus's own refresh advances every
@githubpin to its repo's newest tag and regenerates the corpus at the new pins, so the projection of this change rides that workflow once the umbrella's tag exists. That is a producer-first wave step, not a finding this PR files.Rulebook compliance
AGENTS.mddispatcher selected/charly-internals:git-workflow(the git/ghworkflow, the PR body, the attribution tiers),/charly-internals:root-cause-analyzer(the the body reconciler never asks whether a pasted commit id EXISTS: a fabricated 40-hex SHA passes every gate #763 RCA and this round's),/charly-internals:strict-policy(the engineering-discipline rows) and/charly-check:check(the R10 gate by change class). The umbrella's own.agents/skills/git-workflow/SKILL.mdis the SOURCE this change edits; the corpus'smarketplace/internals/skills/git-workflow/SKILL.mdis its generated projection, and the rulebook's own placement rule (Part II chore: sync dotgithub pin to main #5) says a skill lives with the thing it describes, so the umbrella's own copy is the one edited here.git cat-file --batch-checkwithGIT_NO_LAZY_FETCH=1, and the diff did not set it — a body claiming an implementation property the tree did not carry, in a PR whose subject is a body's fidelity to what it measures. The RCA: mechanism — the body was written from the arm's INTENT rather than from the arm's source, and nothing compared the two before the push; missed control — the reconciler reads the body and never the diff, and so does the pre-push hook, so no gate compares a body's claim about the implementation with the implementation; blast radius — this body's R3 bullet, and the rulebook's PR-body paragraph, which overstated the arm the same way ("is a finding, not a citation" where the arm refuses only an id it can attribute and reports the rest); root fix — the prose now says what the code does, and the code's own promise is now kept. The reviewer's question also exposed a real hole UNDER the claim: a store that could not ANSWER — a stale gitdir, a directory that is not a repository — was read as "the id is absent", so the arm refused an id on a store's FAILURE rather than on its absence. That hole is fixed in the same commit: the two answers are kept apart, a self-test case covers it, and a mutation proves the case is a real discriminator. The rulebook's paragraph drops "is a finding, not a citation" for "is never a citation" — true whether the arm judges the id or reports it — and the verify task's step title names the arm's real discrimination, so the report it prints describes the arms that are actually there.git cat-file --batch-checkin each store it can see and lets GIT answer for the REPOSITORY: in a partial clone git asks the promisor remote, because "this id names no commit" is a question about the repository and not about the local cache — measured under How tested. The arm asks the tree's own.gitmodulesfor the repositories it may look in, and a store that could not ANSWER at all is recorded, so an id is refused on its absence and never on a store's failure.origin/main, and that the corpus's copy of the skill is a generated projection which the corpus's own refresh carries once the umbrella's tag exists..worktrees/pinwave/opencharly), branched off freshorigin/main;git statuswas empty before every commit; no history was rewritten, no force-push, no hook bypass, and nothing was pushed tomain. The first commit was amended only before the first push, to re-tier the attribution trailer to the tier the gate earned; this round's fix is a NEW commit, because a pushed commit is never amended.2026.300.1843), produced by this worktree's own bootstrap; no shared host install was used, and the diff carries no source of the binary.charly task verify— which carries the reconciler's own discriminating self-test among its 44 steps — run on the committed tree:44 step(s), 0 failed, 0 skipped, exit 0, with no warning line in its output.Change classification
A gate change — the umbrella's own reconciler gains an arm, and the rulebook and the skill gain the discipline it enforces. No product-runtime change and no pin change: the diff touches no Go source, no schema, and no gitlink.
charly task verifyon the committed tree —44 step(s), 0 failed, 0 skipped, exit 0, zero warning lines — plus the reconciler's own self-test with its two mutation proofs, and the changed path run live on this tree in both directions.fully tested and validated— the change-class gate passed on the final tree with zero warnings, and the changed path executed live. Thedocumentation reviewedtier is forbidden here: the diff changes a gate script.charly/charly/go.mod's module pin, which this diff does not touch.Filed issues
No issue is filed by this PR. Every finding this change raises is fixed in it: the missing control is the new arm, and the discipline is the rulebook's PR-body section and the umbrella's own skill.
The corpus's projection of the umbrella's skill is not a finding to file either: the corpus's own refresh advances every
@githubpin to its repo's newest tag and regenerates the corpus at the new pins, so the projection of this change rides that workflow once the umbrella's tag exists. It is a producer-first wave step, and it is measured under How tested.Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)