You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a213de
Browse filesBrowse the repository at this point in the historyBrowse files
docs(truth): bind STATUS.md to the artifacts, and fix a journey that contradicted one of them
Auditing instead of assuming turned up three real defects.
1. The partner journey contradicted the committed artifact. CG-PJ/1's findings
leg reported 7 OPEN while docs/risk-findings.json said 4, because the leg
called deriveFindings({ registry }) - that function takes every committed
source as an INPUT and defaults a missing one to {}, so the absent snapshot
silently collapsed RF-006/007/008 to OPEN. The module's own build() reads
all three sources exactly as the CLI does; the leg now goes through it.
The bug overstated risk, which is the safe direction, and was still a
defect: a reviewer-facing number may not disagree with the recorded one in
either direction. Nothing caught it, because the artifact was pinned to
build() while the journey was never pinned to the artifact - the gap a
per-file invariant always leaves.
2. docs/STATUS.md had ZERO machine checks. It calls itself the authoritative
source of truth, states every metric in it is machine-measured, and is the
first document a reviewer opens - and all thirteen rows were tests and
contracts, with the whole claim/badge/gate layer absent. It now carries ten
honesty rows, each reading its value from the committed artifact.
3. The decisions record numbered its sections 1,2,3,4,5,6,7,9,8. Fixed by
moving the '9' block into place with no renumbering, so every existing
section citation stays valid.
The guard for (2) failed three times before it worked, and that is the real
content of this cycle. The first draft asserted table.includes(String(n)) and
could not fail: "28" occurs incidentally in that table and "0" occurs in half
of it, so corrupting the claims total to 27 or revenue to $4,200 stayed green.
The changelog guard failed identically - the document still CONTAINED
"v0.5.22" in the next row's prose after the row itself was deleted.
A substring is not a location. Each measurement is now bound to the row whose
label names it, that row must state the artifact's value, and exactly one such
row may exist so a stale duplicate cannot hide beside a fresh one. Twelve
negative controls now each turn the suite red, and the battery reports
"mutation applied" separately from "bit", because a control whose mutation
never landed is as worthless as a guard that cannot fail. Two of the twelve did
not bite on the first run.
The row-scoped rewrite then caught a real omission in the row I had just
written - the gate row omitted its 18 self-audited legs - on its first
execution. The guard found the author's error, not only a future regression.
Filed as AGENTS.md [C32], third face of the [C30]/[C31] family.
npm test 1162/1162 (+6) | boundary audit 818 files, 0 violations
docs-node 93/54/19 | release gate 18/18, independence PASS | prepush 6/6
Co-Authored-By: opencode <noreply@opencode.ai>
Copy file name to clipboardExpand all lines: docs/STATUS.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
8
8
9
9
| Item | Value | How verified |
10
10
|---|---|---|
11
-
| Test suite |**1155 / 1155 pass**|`npm test` — the pass total is machine-pinned: `scripts/run-tests.mjs` enforces it against `docs/state-snapshot.json` after every green run (drift = red), and `test/ci/current-state.test.js` re-measures the fast fields (boundary audit, harness, docs-node) against the committed snapshot. CI-green across engines |
11
+
| Test suite |**1162 / 1162 pass**|`npm test` — the pass total is machine-pinned: `scripts/run-tests.mjs` enforces it against `docs/state-snapshot.json` after every green run (drift = red), and `test/ci/current-state.test.js` re-measures the fast fields (boundary audit, harness, docs-node) against the committed snapshot. CI-green across engines |
| C verifier | PASS |`test/verifier-c/` (frozen reference, untouched) |
23
23
| Frozen evidence/canonical hashes | UNCHANGED | conformance suite `test/conformance/`|
24
+
| Boundary audit (committed tree) |**818 files · 0 violations · PASS**|`npm run boundary:audit` — counted from `git ls-files` (the count a clean clone reproduces, not this dev disk), machine-pinned as `docs/state-snapshot.json#boundaryAudit` and re-measured by `test/ci/current-state.test.js`|
25
+
| Docs-node contract |**93 executed · 54 skip-listed · 19 docs covered**|`test/ci/docs-node-contract.test.js` — every documented `node`/`npm` command is EXECUTED or skip-listed with a named reason; pinned as `docs/state-snapshot.json#docsNode`|
26
+
| Claim registry CG-CL/1 |**28 claims · 16 VERIFIED · 12 not · 0 violations**|`npm run claims:audit` — `docs/claims-registry.json`; 11 of 28 depend on an external outcome and sit at GATED/UNKNOWN/NOT_PERFORMED. `VERIFIED` is unreachable without evidence, and the audit verdict travels INSIDE the artifact |
27
+
| Badge system CG-BDG/1 |**2 specimens · issuerCount 0 · NOT ISSUED**|`npm run badge:verify` — `verifyBadge()` re-derives every digest from its record byte for byte, so a hand-edited SVG fails; `brand` is non-enumerable so a specimen cannot be laundered into an issued badge |
28
+
| Partner journey CG-PJ/1 |**10 legs · verdict MATCH**|`npm run partner:journey` — the verdict is the WEAKEST leg, never the best one, and a clean run is `MATCH` rather than `VERIFIED` because L2 is the weakest link. DRY_RUN: no live chain, webhook, payment, or badge |
29
+
| Replay lab CG-IR/1 |**self-check PASS — a partial bundle is UNKNOWN, never a pass**|`npm run integration:replay` — replays one bundle through L0·L3 with no partial credit; the journey hash is a pure function of the bundle's link statuses |
30
+
| Risk findings CG-RF/1 |**8 findings · 4 OPEN · 4 OK**|`npm run ladder:findings:write` — `docs/risk-findings.json`, derived only from committed surfaces and proven equal to a deterministic rebuild by `test/integrations/ladder-v03.test.mjs`. Open findings are reported, never cleared |
31
+
| Reputation CG-RP/1 |**grade UNPROVEN · score 0**|`npm run ladder:reputation:write` — one point per recorded milestone, never the amount; every external counter stays 0 until a real milestone is appended to `docs/adoption-milestones.json`|
32
+
| Release gate CG-RG/1 |**18/18 legs · GATE_PASS · independence PASS (18/18 legs self-audited)**|`npm run release:gate` — `docs/release-gate.json` (timestamp- and `ms`-free, so a re-run produces no diff); audits its own source for network, credential, and external-outcome dependencies on every invocation, and that self-audit is also a CI step (`npm run release:gate:independence`) |
33
+
| Conformance CG-CR/1 |**badgeIssuerCount 0 · revenue $0**|`npm run conformance:report` — `docs/conformance-report.json`; the report carries no timestamp, and the price stays LOCKED at 0 until an owner decision names an amount |
24
34
25
35
## On-chain truth (Core Mainnet, chainId 1116)
26
36
@@ -83,6 +93,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
83
93
84
94
85
95
| **v0.5.23 (2026-09-26, this session)** | **The cycle's own regression: a documented command is an EXECUTED command** — v0.5.22 shipped the A→J commands in the README and went green on five of six workflows; the sixth, Node 18, came back `SIGTERM` after 8m25s with **no assertion, no test name and no output in the log**. Cause: the docs-node contract EXECUTES every documented command, and the new README block listed `npm run release:gate` — whose `tests` leg **is** `npm test`, which is the suite the contract itself lives inside. So documenting the gate made the contract spawn a nested full suite that re-entered the contract, recursively, until the runner was killed. **A timeout is the worst shape this can take**: `tests` leg `npm test` · no failing assertion · only an exit code, and exit-code-only triage on a killed process points at nothing. **(1) The fix is a SKIP entry with a named reason** — the gate is owned by the CI Engine leg's `release:gate:independence` step (v0.5.22) and by `pre-push-check.mjs`, and `npm run release:gate:independence` stays in the executed set because it is fast and self-contained. **(2) Two guards, because the obvious one is wrong twice over.** First, *body-only detection is vacuous*: `release:gate`'s package.json body is `node scripts/release-gate.mjs`, which names no test command at all — the `tests` leg is a string INSIDE that module, so a body-only heuristic classifies the bomb safe and the guard passes on it. The indirect half is now DECLARED and separately asserted to really reach the suite, so the declaration cannot rot into naming something harmless. Second, *mention is not invocation*: classifying a script by searching its whole source for `npm test` flags `claims`, `claims:audit`, `publish:check` and `integration:states` — all of which merely MENTION the suite in a comment or a usage string. A guard that cries wolf on safe commands gets ignored, and then ignored for the real one, so the mechanical half reads only package.json bodies and a test pins those four as NOT runners. **(3) The guard then failed a third way, and only the negative control found it** — it read files without normalizing CRLF, so `extractBashFences` (which matches a `bash` + newline) saw ZERO fences in every CRLF-checked-out file. The guard was therefore green on the bomb in this Windows checkout and would have fired on Linux CI — a check whose behaviour depends on the checkout's line endings is [C3] in miniature. **The rule now written into AGENTS.md as [C31]: a guard is proven by removing the thing it guards, not by passing.** All three defects presented as a green guard; every one surfaced from deleting the SKIP entry and expecting red, then auditing which scripts the classifier actually flagged. Docs-node moves **94 → 93 executed · 53 → 54 skip-listed** ('gate' to the skip table, 2 guard tests added), and the v0.5.22 row keeps its 94/53/19 because that is what `83f851e` measured. `npm test` → **1155/1155** (+2 guard tests); boundary audit **817 files, 0 violations**; release gate **18/18, independence PASS**; prepush **6/6**. The honest reading of this cycle: the A→J work was correct and the *documentation* of it broke CI, which is the mirror image of the lesson the roadmap was built to teach — a claim is only worth what the machine can re-check, and a documented command is a claim the machine will now execute. |
96
+
| **v0.5.24 (2026-09-26, this session)** | **Three real defects found by auditing instead of assuming, and the reviewer's first document finally machine-checked** — the roadmap was closed and the suite green, so this pass stopped adding surfaces and went looking for what was still wrong. Three things were. **(1) The partner journey contradicted the committed artifact.** CG-PJ/1's findings leg reported **7 OPEN** while `docs/risk-findings.json` said **4**: the leg called `deriveFindings({ registry })`, and that function takes every committed source as an INPUT and defaults a missing one to `{}` — the absent snapshot silently collapsed RF-006/007/008 (boundary audit, suite pin, docs-node/harness) to OPEN. The module's own `build()` reads all three committed sources exactly as the CLI does; the leg now goes through it. Worth naming what the bug did: it overstated risk, which is the safe direction, and it was still a defect — a reviewer-facing number may not disagree with the recorded one in either direction. Nothing caught it: the artifact is pinned to `build()` by `ladder-v03`, but the journey was never pinned to the artifact, which is the gap a per-file invariant always leaves. **(2) `docs/STATUS.md` had ZERO machine checks.** It calls itself the authoritative source of truth, states that every metric in it is machine-measured, and is the first document a reviewer opens — and all thirteen of its rows were tests and contracts, with the entire claim/badge/gate layer absent. It now carries ten honesty rows (boundary audit · docs-node · CG-CL/1 · CG-BDG/1 · CG-PJ/1 · CG-IR/1 · CG-RF/1 · CG-RP/1 · CG-RG/1 · CG-CR/1), each reading its value from the committed artifact. **(3) The decisions record numbered its sections 1,2,3,4,5,6,7,9,8** — → fixed by moving the '9' block into place, with no renumbering, so every existing '§9' citation stays valid. **The guard for (2) failed three times before it worked, which is the real content of this row.** The first draft asserted `table.includes(String(claims.length))` and could not fail: "28" occurs incidentally in that table and "0" occurs in half of it, so corrupting the claims total to 27 or revenue to $4,200 stayed green; the changelog guard failed identically, because the document still CONTAINED "v0.5.22" in the next row's prose after the row itself was deleted. **A substring is not a location.** Each measurement is now bound to the row whose label names it, that row must state the artifact's value, and exactly one such row may exist so a stale duplicate cannot hide beside a fresh one. Twelve negative controls · corrupt a count, delete a row, duplicate a row, cite a fictional npm script, plant a non-$0 figure, drop a changelog row — now each turn the suite red, and the battery prints "mutation applied" separately from "bit" because a control whose mutation never landed is as worthless as a guard that cannot fail. Two of the twelve did not bite on the first run. The row-scoped rewrite then caught a real omission in the row I had just written (the gate row omitted its 18 self-audited legs) **on its first execution** — the guard found the author's error, not only a future regression. Filed as AGENTS.md [C32], the third face of [C30]/[C31]. `npm test` → **1162/1162** (+6: 5 STATUS-truth, 1 journey/artifact agreement, the latter proven by reverting the fix and watching it report `actual: 7, expected: 4`); boundary audit **818 files, 0 violations**; docs-node **93 · 54 · 19**; release gate **18/18, independence PASS**; prepush **6/6**. The v0.5.21·v0.5.23 rows keep 1153/1155 and their own docs-node figures — they record what each commit measured, and the new test enforces that exemption by requiring each to survive as a ROW rather than as a prose mention. |
0 commit comments