Skip to content

Commit d89f915

Browse files
chore(state): sync to 1236/1236 — snapshot pinned to the trustedForwarders commit, docs-node skip-listed 55->56 (the new documented start line), dashboard/STATUS/AGENTS literal follow
🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent b95e406 commit d89f915

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ New entries append chronologically and are never renumbered — a gap in the tag
137137
- [C35] **Enumerate the set BEFORE trusting any proof over it — a defect on the boundary between two members survives a transcript that displays every byte**: the transcript showed the whole [C34] line, the receipt-semantics contract ran green over it, and the CRLF discipline held — everything visible was TRUE, yet the file's actual defect (the [C33] lesson swallowed whole into [C34]'s tail by a replace-style edit) sat exactly on the boundary the reading never questioned. It surfaced only by enumerating an independent source — `git log -S C33` put the original lesson beside the merged one, and the diff made the swallow undeniable. Rule: before verifying a structure, print it with its membership counted against an independent expectation (dense C1..Cmax, one lesson per tag) — membership is a fact a machine can count, and the gap test in `test/ci/agents-index-contract.test.js` now fails the push on any missing tag, so the next swallow cannot survive even a transcript that misreads it.
138138
## Files That Change Together
139139

140-
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 1233 ↔ 649 — the npm test number tracks the latest measured count; every literal here is a measured number, so a green run that disagrees means the number below is stale, not that the run is wrong).
140+
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 1236 ↔ 649 — the npm test number tracks the latest measured count; every literal here is a measured number, so a green run that disagrees means the number below is stale, not that the run is wrong).
141141
- `freeze-record-4.2.6.json` ↔ any file it pins ↔ `.gitattributes` tree list ↔ README pin-count claim (now 49 = 30+19; README.md's own pin is inside the record it links from). Take the split from the record itself, never from a remembered literal — the "47 = 28+19" figure that stood here for several cycles was two pins stale, and `test/verifier-c/validate-freeze.test.mjs` had the same class of rot frozen into its own header comment (it advertised `46/46` while the record held 49; the assertions were already deriving the number, only the documentation lied). The dashboard's `#payout` section is bilingual per the AGENTS.md i18n pattern: its `test/p2/governance-dashboard-i18n.test.js` contract keeps the EN markup defaults and the AR dictionary structurally paired — edit one side only and the pairing check fails by name.
142142
- Bilingual dashboard pair ↔ AGENTS.md i18n pattern above ↔ the EN mirror (`coreguard-gate41-visual-en.html`) — regenerate the dictionary by structural pairing after ANY structural edit to either file. **Correction to an invariant that does not exist: the "637/637 node pairing" cited here for several cycles is dead** — no file, test, or script derives or checks 637. What is genuinely enforced is narrower and real, in two places. **(1) `docs/GOVERNANCE-DASHBOARD.html`** — `test/p2/governance-dashboard-i18n.test.js` binds the `PAYOUT_GATE_I18N` dictionary to that section's `data-i18n` markup (**11 keys**: every key present exactly once, no unused keys, EN/AR inline-tag sequences equal, tags balanced, AR values carrying Arabic). **(2) `docs/coreguard-gate41-visual.html`** — `test/p2/gate41-visual-i18n.test.js` pins that page's one runtime dictionary `D = {"nodes": {"<id>": {ar, en}}, "attrs": …}` as a **bijection** against the markup: **277 static `data-i18n` keys ↔ 277 entries**, 0 missing, 0 orphan, every entry carrying a non-empty `ar` and `en`, no `.en` leaking Arabic, and `apply()` itself asserted to still iterate `D.nodes` and select by the iterated key (data can be perfect while the switcher no longer reads it — the [C27] two-channel trap). Two measured facts that look like defects and are **not**: entries 84/93/104 have an `.ar` with no Arabic because they are the bare RTL arrows `←`/`→`, and **29** entries embed a *nested* `data-i18n` inside their own `.ar` value (the outer entry replaces `innerHTML`, so the inner attribute is redundant and order-dependent, yet every inner key also appears in static markup so nothing is orphaned and the page renders correctly) — the count is **pinned, not asserted zero**, because changing it is a deliberate edit to a live investor-facing page. **(3) the EN sister `coreguard-gate41-visual-en.html` itself** — this was the last unguarded piece, and `test/p2/gate41-visual-en-parity.test.js` now closes it. The invariant is **NOT** "the two files are identical" — measured, they are not, and asserting it would be another dead number like 637. The AR page is the *interactive* twin (language switcher); the sister is the *printable* twin (printhead + print button), which is exactly why [C5]'s dictionary walk dropped the EN `printhead` subtree first. So the contract pins (a) **all 277 dictionary `.en` values appear verbatim in the sister** — the cross-file link, 0 absent; (b) **load-bearing element counts are identical** (section 10 · h1 1 · h2 10 · h3 12 · h4 5 · table 4 · thead/tbody 4 · tr 30 · ul 5 · li 10 · a 14 · p 19 · button 3 · ids 34) — a row or heading that exists in one twin only means the sister is a stale snapshot, invisible to any per-file test; (c) the **only** permitted tag differences are `b`/`span`/`div` each **+1** in the sister, pinned as a set and re-checked against the presence of the `printhead` that causes them, so a new divergence cannot hide beside a sanctioned one; (d) the sister **stays dictionary-free** (0 `data-i18n`, 0 `D.nodes`, 0 `L(`) — it is literal English, and a second dictionary would be a second source of truth ([C27]); (e) the sister leaks **no Arabic** in any of its 539 text runs; (f) `lang="ar" dir="rtl"` vs `lang="en" dir="ltr"` — the one attribute pair that *should* differ, and wrong `dir` reverses the whole board's order while every text assertion still passes; (g) the role asymmetry is pinned as fact, so nobody "fixes" it and nobody lets it rot. One consequence worth knowing: **221 of the 277 `.ar` values are already literal Arabic in the static markup**, so the AR page renders with JS disabled — the dictionary is the *switcher's payload*, not its only source of text, and that count is pinned so stripping the literal text (a silent availability regression every dictionary assertion would pass) cannot land unnoticed. 12 negative controls, and the battery reports **coverage, not just a count**: all 8 tests were observed failing (the extractor needs `--test-reporter=tap`, because the default reporter prints glyphs and an ASCII `not ok` filter finds nothing).
143143
- `verification/cg-assurance-verify.ps1` self-test count (21) ↔ `selftest.tap` frozen bytes ↔ README/STATUS claims (21/21).

‎docs/STATUS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
88

99
| Item | Value | How verified |
1010
|---|---|---|
11-
| Test suite | **1233 / 1233 pass** (+2 index-contract tests: tag-gap density + bolded lesson titles) | `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 | **1236 / 1236 pass** (+3 trustedForwarders client-class contracts, +2 index-contract tests) | `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 |
1212
| Foundry contracts | **34 / 34 pass** | `forge test --match-path "test/contract/*"` (V2: 14 + EvidenceRegistryV3: 20) |
1313
| Adversarial corpus | **73 / 73 pass** | `npm run corpus && npm run benchmark` |
1414
| Execution Integrity Benchmark | **10,000 runs · False Accept 0 · False Reject 0** | `npm run benchmark:10k` |
@@ -22,7 +22,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
2222
| C verifier | PASS | `test/verifier-c/` (frozen reference, untouched) |
2323
| Frozen evidence/canonical hashes | UNCHANGED | conformance suite `test/conformance/` |
2424
| Boundary audit (committed tree) | **855 files · 0 violations · (+1 x-thread-packs contract) 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` |
25+
| Docs-node contract | **94 executed · 56 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` |
2626
| 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 |
2727
| 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 |
2828
| 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 |

‎docs/adoption-dashboard.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ default.
5252

5353
| Metric | Value |
5454
|---|---|
55-
| Test suite | 1233 |
55+
| Test suite | 1236 |
5656
| Boundary audit | 855 files / 0 violations |
57-
| Docs-node contract | 94 executed · 55 skip-listed · 20 covered |
57+
| Docs-node contract | 94 executed · 56 skip-listed · 20 covered |
5858
| Live-submission harness | PEOPLES_COURT_HARNESS_READY |
5959

6060
## Adoption surface (from the integration registry)

‎docs/state-snapshot.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"measuredAtUtc": "2026-09-30T00:14:33Z",
3-
"gitCommit": "95a13ff868625b4abd178e274b8fa1348356ac69",
4-
"commitsAheadOfV060": 186,
5-
"testsTotal": 1233,
2+
"measuredAtUtc": "2026-09-30T03:52:42Z",
3+
"gitCommit": "7b89eb27189a13cd7c6e0e469a56ed9f7e3da0db",
4+
"commitsAheadOfV060": 190,
5+
"testsTotal": 1236,
66
"boundaryAudit": {
77
"filesScanned": 855,
88
"violations": 0,
@@ -11,7 +11,7 @@
1111
"peoplesCourtHarness": "PEOPLES_COURT_HARNESS_READY",
1212
"docsNode": {
1313
"executed": 94,
14-
"skipListed": 55,
14+
"skipListed": 56,
1515
"docsCovered": 20
1616
},
1717
"reproduce": {

0 commit comments

Comments
 (0)