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 adc8b8f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(docs): AIE-1 agent-incident evidence spec — the verification surface any outside reviewer inherits
docs/agent-incident-evidence.md: one endpoint, one evidence bundle, one report
schema — replayable from a cold clone; every claim executed by CI (registered
in the doc-curl contract) with a live AIE-1 contract binding the quoted
verdicts to the engine byte-for-byte (deterministic replay + tamper naming the
flipped byte). Cross-linked from INTEGRATION.md, the boundary doc and the
docs landing page. Landing page gains the incident-surface paragraph under
Trust architecture. Carries the concurrent L1-rule receipt-semantics closure
and the refreshed machine-measured snapshot (821 files, docs-node 94/55/20,
1171 tests).
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
git config core.hooksPath .githooks # install the Pages settle pre-push guard — every main push waits for the Pages build
194
194
npm run corpus # deterministic 73-scenario adversarial corpus
195
195
npm run benchmark # 73/73 pass
@@ -244,8 +244,8 @@ npm run release:gate:independence # the gate's self-audit alone — fast, no t
244
244
245
245
Four rules that the machine enforces, not the prose:
246
246
247
-
- **`VERIFIED` requires a chain authority.** A format-valid receipt nobody
248
-
confirmed is `UNKNOWN`, never `VERIFIED`.
247
+
-**`VERIFIED` requires a chain authority; `MISMATCH` requires that someone was ASKED.**
248
+
The verdict turns on **whether anyone was asked**. No authority at all → `UNKNOWN/NO_CHAIN_EVIDENCE` (nobody was asked). An authority that does not know the `txHash` → `MISMATCH/TX_NOT_FOUND` (it was asked, and it contradicted you). A receipt too malformed to ask with → `UNKNOWN/EVIDENCE_INCONSISTENT`. Only the middle case is a contradiction; the two `UNKNOWN` cases are absent evidence, never absolution, and neither is`VERIFIED`.
249
249
-**A clean partner journey is `MATCH`, not `VERIFIED`.** L2 is the weakest
250
250
link, and inflating it would inflate the evidence.
251
251
-**A badge's artwork is its proof.** Hand-edit one byte and `verifyBadge()`
Copy file name to clipboardExpand all lines: docs/STATUS.md
+4-3Lines changed: 4 additions & 3 deletions
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 | **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 |
11
+
| Test suite |**1171 / 1171 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` |
24
+
| Boundary audit (committed tree) |**821 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 |**94 executed · 55 skip-listed · 20 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
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
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
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 |
@@ -94,6 +94,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
94
94
95
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
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. |
97
+
| **v0.5.25 (2026-09-26, this session)** | **Two things the tree was owed: a lost branch in the L1 rule, and the AIE-1 incident surface, finished** — **(1) The L1 chain rule was TRUE and INCOMPLETE in all four places it is stated.** The machine has three outcomes · no authority `UNKNOWN/NO_CHAIN_EVIDENCE` · authority asked and does not know the hash `MISMATCH/TX_NOT_FOUND` · evidence too malformed to ask with `UNKNOWN/EVIDENCE_INCONSISTENT` — and every reviewer-facing surface compressed that to two ("a format-valid receipt nobody confirmed is `UNKNOWN`", under a README heading that reads "four rules **the machine enforces, not the prose**"). Every compressed version was true, which is exactly why it survived review: the branch it dropped is `MISMATCH`, the strongest signal the system produces, so the summary filed a real contradiction under its weakest verdict. The rule now hinges on the only question that actually separates them — **was anyone asked** — in `README.md`, §1 and §14 rule 2 and §15.4 of the platform doc, §3 of the decisions record, and the L0-L4 bullet. `test/ci/receipt-semantics-doc.test.js` derives the three codes from `verifyReceipt()` at run time, so the binding is to behaviour and not to a copy of the prose. Its 6 negative controls include a CODE-side mutation (flip the asked-and-contradicted return to `UNKNOWN`), because a doc binding that only reads docs cannot tell a correct rule from a stale one. Filed as AGENTS.md [C33]. **(2) AIE-1, the agent-incident verification surface, was mid-flight in the tree** and is now closed: `docs/agent-incident-evidence.md` (one endpoint, one evidence bundle, one report schema, replayable from a cold clone) with `test/delivery/agent-incident-evidence.test.js` (+4 · the spec's fences are registered in the doc-curl contract, its quoted verdicts match the live engine byte-for-byte, replay is byte-identical across two runs, and a tamper replay names the flipped byte), cross-linked from `INTEGRATION.md`, `docs/delivery-dispute-boundary.md` and the Arabic/EN `docs/index.html`. Two housekeeping defects were also closed with it: 9 `.tmp-aie-*` scratch dumps (a fixture, two `.b64` payloads, a server log) had been swept into the index by a bulk `git add -A` and are now untracked behind a `.tmp-*` ignore rule — a scratch output is not a deliverable — and the docs-node triple moved 93·54·19 → 94·55·20 as the new doc's commands execute. **One process note worth keeping**: mid-cycle the release gate recorded a legitimate `GATE_FAIL` (its `tests` leg was red on snapshot drift), and that record then deadlocked the suite — the gate's `tests` leg runs `npm test`, which asserts the table states what the artifact says, so a failing artifact keeps its own suite red. It is broken the honest way — restore the last real record, get the suite green, then re-run the gate for a fresh one — and the re-run reproduced the committed bytes exactly, which is the timestamp-free contract doing its job. `npm test` → **1171/1171** (+9: 5 receipt-semantics, 4 AIE-1); boundary audit **821 files, 0 violations**; docs-node **94 · 55 · 20**; release gate **18/18, independence PASS**; prepush **6/6**. v0.5.21·v0.5.24 rows keep their own counts — they record what each commit measured |
0 commit comments