Skip to content

Commit 823cd72

Browse files
EslaM-Xopencode
andcommitted
feat(a-j): close the roadmap at its honest defaults, and fix four false passes in the gate that was supposed to check them
The remaining A-J rows were prose: a claim ceiling nobody could audit, a badge nobody could verify, a partner journey nobody could replay, and a release gate that had never been run. Each is now a module, and each ships at the default the evidence supports. CG-CL/1 scripts/ladder/claim-registry.mjs 28 claims, 6 statuses CG-BDG/1 packages/badge/index.mjs self-verifying artwork CG-PJ/1 scripts/partner-journey.mjs 10 legs, one bundle CG-IR/1 scripts/integration-replay-lab.mjs 11/11 invariants CG-RG/1 scripts/release-gate.mjs 18 legs, self-audited CG-CP/1 scripts/ladder/commercial-packaging.mjs pricing/integrator/badge Four decisions are closed as HELD, not as go: prices LOCKED, named integrator NONE, badge NOT ISSUED, external counters 0. A clean partner journey reads MATCH, never VERIFIED, because L2 is the weakest link and inflating it would inflate the evidence. CL-BUILD-ADOPTION-INDEPENDENT fails the build if any of the three held decisions is ever marked VERIFIED. The gate then found four defects in itself, which is the part worth reading: a) five legs reported "Command failed" with zero output - npm.cmd is a batch shim modern Node refuses to spawn without a shell, so spawnSync returned a null status and no error at all. The child now resolves npm's real JS entry and prints any spawn error. b) four legs reported PASS on an empty denominator - the counter read c.pass while the packages use [name, boolean] tuples, so webhook printed "0/8 invariants" and passed. Cases are now tallied by an explicit shape reader; an unreadable case is a FAILURE, not a silent pass. c) three legs passed as "module loaded", having asserted nothing. A module exposing no self-check now FAILs, and pure libraries are proven by naming the committed tests that actually import them. d) the gate's own audit matched its own regex - a banned credential pattern written as a contiguous literal matches the line that defines it, so the gate failed itself forever. Assembled from fragments now. A gate that can report green with no assertion behind it is worse than no gate, because it gets trusted. All four classes are locked by tests. The control plane now reads the claim ceiling, the badge registry, and the committed gate verdict as committed sources - it may not re-derive a number from a module and present it as recorded. docs/release-gate.json is timestamp- and ms-free, so re-running the gate produces no diff. docs/badge-system-2026-09-26.md documents what a badge never means (Arabic-first + English mirror). owner-decisions section 9 rewritten from "sign-off still required" to the three decisions closed as held. npm test 1153/1153 (+58) | boundary audit 817 files, 0 violations release gate 18/18 legs, independence PASS | docs-node 81/53/18 One defect caught while shipping: a blanket 1095 -> 1148 replace also rewrote the v0.5.20 changelog row, which would have made a past release report a test count it never measured. History is the one thing a sync script must never touch; the row was restored and AGENTS.md now says so. Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 9c27992 commit 823cd72

30 files changed

Lines changed: 4203 additions & 60 deletions

‎AGENTS.md‎

Lines changed: 5 additions & 0 deletions
Large diffs are not rendered by default.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ See [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md) for how to reproduce every value.
189189
npm install
190190

191191
# 2. Test + benchmark
192-
npm test # 1095 tests — canonicalization, policy, tamper, anchor, verifier, P1/P2, provenance, pricing, encoding, attack-lab, DDE delivery/dispute suites (incl. doc-curl contract), pages-settle guard, verification-platform suite
192+
npm test # 1153 tests — canonicalization, policy, tamper, anchor, verifier, P1/P2, provenance, pricing, encoding, attack-lab, DDE delivery/dispute suites (incl. doc-curl contract), pages-settle guard, verification-platform suite
193193
git config core.hooksPath .githooks # install the Pages settle pre-push guard — every main push waits for the Pages build
194194
npm run corpus # deterministic 73-scenario adversarial corpus
195195
npm run benchmark # 73/73 pass

‎docs/STATUS.md‎

Lines changed: 4 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 | **1095 / 1095 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 | **1148 / 1148 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 |
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` |
@@ -77,7 +77,9 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
7777
| **v0.5.19 (2026-09-26, this session)** | **Continuous Build + Adoption — Verification & Integration Platform shipped (owner directive: never wait for an external milestone; build and adoption in parallel)** — **L0–L4 machine** `scripts/ladder/verification-levels.mjs` (CGEP/1; deterministic commitment; **L1 now requires a chain authority** — a format-valid receipt without confirmation is `UNKNOWN/NO_CHAIN_EVIDENCE` and a contradicting chain is `MISMATCH`, structure alone never VERIFIED; L2 replay MATCH/MISMATCH/UNKNOWN, no partial→MATCH; L3 real sha-256 merkle proofs; L4 interface frozen **RESEARCH**) + **integration machine** `scripts/ladder/integration-states.mjs` (13 doorway states × entry/exit/evidence/verification-command/failure/unknown/audit; `evaluateIntegration` deterministic records; `transitionVerdict` REJECTED on any unauthorized jump — no silent pass; UNKNOWN ≠ FAILED ≠ VERIFIED binding) + **adapter contract** `packages/adapters/contract.mjs` (six-method surface; `execute()` in DRY_RUN returns `NOT_PERFORMED`; `verify()` UNKNOWN; `status()` without credentials UNKNOWN/NOT_BUILT/`NO_CREDENTIALS`) + `packages/adapters/providers.mjs` (4 surfaces: People's Court · Reference Tribunal · Agentic Escrow · x402 — all DRY_RUN, contract-conformant) + **Partner Sandbox** `npm run partner:sandbox` (8 offline scenarios on a mock chain that knows one mined tx: happy VERIFIED · tampered MISMATCH · missing-evidence/partial-consent/unknown-settlement UNKNOWN · replay-mismatch MISMATCH · expired/duplicate REJECTED) + **Attack Lab** `npm run attack-lab` (10 tamper cases, 6→FAIL 4→UNKNOWN, valid control VERIFIED, exit 1 on any miss) + **Observability** `scripts/observability.mjs` (10 events, correlationId/caseId/commitmentId/adapterId/level, memory by default) + **Evidence Passport v2** `npm run passport:v2` → `docs/evidence-passport-v2.json` (deterministic, hash-stable, receipts/proofs `[]`, unknowns explicit) + **reputation milestone taxonomy** (internal kinds TESTS_PASSING/CONFORMANCE_PASS/REPLAY_VERIFIED recorded as evidence **never score**; external kinds EXTERNAL_VERIFIER/SANDBOX_INTEGRATION/LIVE_RECEIPT/PRODUCTION_INTEGRATION/MULTI_PARTNER/COMMERCIAL_USAGE raise it, 1 point each never the amount) + **Control Plane** block in the dashboard (5 verification rows · 4 integration rows · commercial `$0` / `0 verified` / `0 verified`, no percentage ever) + `docs/verification-and-integration-platform-2026-09-26.md` (fence-free map + DoD + KPI funnel) + `test/integrations/verification-platform.test.mjs` (+18 tests); `npm test` → **1061/1061** (run-tests enforced); boundary audit **796 files (committed tree), 0 violations**; docs-node 70·53·18; reputation stays `UNPROVEN`/0, external counters all 0 — no adoption, partner, or revenue number invented |
7878
| **v0.5.20 (2026-09-26, this session)** | **Commercial surfaces built instead of reworded — the two prose-only roadmap rows are now real code** — the platform cycle claimed "webhook AVAILABLE" in the control plane and pointed the X402 provider row at `packages/x402`, and **neither surface existed**: the claim was held up by a sentence, not a module. Fixed at the root instead of in the wording. **(1) `packages/webhook` = CG-WH/1 receiver** (`npm run webhook`): domain-separated HMAC-SHA256 over the exact body bytes plus a sender timestamp, constant-time compare, a replay window that rejects stale AND future-dated deliveries (clock skew is not a replay allowance), and a mandatory `Idempotency-Key` whose redelivery returns the FIRST outcome without re-running the handler; DRY_RUN authenticates then reports `NOT_PERFORMED`, a throwing handler yields `UNKNOWN`, and there is **no keyless mode and no built-in side effect** (the constructor throws without a secret, and LIVE without an `onDelivery`). **(2) `packages/x402` = X402/1 harness** (`npm run x402`): a deterministic canonical 402 challenge whose id is a function of the canonical bytes, signed only with an integrator-injected secret; the admission gate is the feature — no quote, a **zero** quote, and a price the owner has not locked are all `GATED`, an unlocked price is `priceStatus: HYPOTHESIS`, a challenge cannot be signed without a secret, a forged envelope is rejected **before** the settler runs, a settler that names no settlement is `UNKNOWN`, and `settle()` in DRY_RUN books **0 cents** with no code path that increments revenue. **(3) `docs/conformance-report.json` = CG-CR/1** (`npm run conformance:report`): the six CG-CS/1 criteria, the badge contract (`neverMeans`), and `badgeIssuerCount: 0` because no integration has run the suite; deliberately **timestamp-free** so the artifact never churns a diff. **(4) `examples/platform-quickstart/`** (`npm run quickstart`): the three-verb integrator path (commit / capture / verify) running offline in a clean clone, exiting non-zero if any honesty line is wrong. **(5) `docs/commercial-packaging-2026-09-26.md`**: five tiers with delivered-vs-gated per tier, prices **LOCKED**, revenue `$0`, and a test that fails the build if the doc names a file that does not exist or any `$0` amount other than `$0`. `test/integrations/platform-surfaces.test.mjs` (+34) locks all of it, including byte-parity between the committed CG-CR/1 and the machine build. The docs-node contract had to stage the new example tree (its sandbox stages by explicit list) and now **executes 81** documented commands. `npm test` → **1095/1095** (run-tests enforced, +34 tests over the previous cycle); boundary audit **803 files (committed tree), 0 violations**; docs-node **81 · 53 · 18**; snapshot regenerated post-`git add`; the dashboard's webhook row now names CG-WH/1 instead of a wire-proven claim; README v0.3.2 row + commercial quickstart commands. Two honesty defects found and fixed in the same push: a bulk number-sync regex that ate a JSON key quote in a GENERATED artifact (never bulk-edit generated files — regenerate them), and a `$0` sequence inside a JS string-replacement that String.replace read as a backreference (insert with a function replacer) |
7979

80-
## Outreach truth (Decision-Gate inputs)
80+
| **v0.5.21 (2026-09-26, this session)** | **A–J closed with four honest-default decisions, and the release gate caught the gate** — the roadmap's remaining rows were prose: a claim ceiling nobody could audit, a badge nobody could verify, a partner journey nobody could replay, and a release gate that had never been run. Each is now a module, and each ships at its honest default. **(1) CG-CL/1 claim registry** (`npm run claims`): 28 claims derived from committed sources, six statuses, `UNKNOWN` allowed without evidence but `VERIFIED` never — 11 of 28 depend on an external outcome and sit at `GATED`/`UNKNOWN`/`NOT_PERFORMED`; the audit result travels *inside* the artifact so a reader of the committed file can see it was checked. **(2) CG-BDG/1 badge system** (`npm run badge:verify`): the artwork is the proof — `verifyBadge()` re-derives every digest from its record and compares byte for byte, so a single hand-edit is caught; `brand` is non-enumerable, so a specimen cannot be copied into an issued badge; two specimens ship (6/6 and 2/6) and `issuerCount` is 0. **(3) CG-PJ/1 partner journey** (`npm run partner:journey`): ten legs over one bundle; a clean run is `MATCH`, never `VERIFIED`, because L2 is the weakest link and inflating it would inflate the evidence. **(4) CG-RG/1 release gate** (`npm run release:gate`): 18 legs, and its own source is audited for network, credentials, and external-outcome dependencies on every invocation. **The gate then found four defects in itself, which is the part worth recording.** (a) *Five legs reported `Command failed` with zero output* — `npm.cmd` is a batch shim modern Node refuses to spawn without a shell, so `spawnSync` returned a null status and no error; the child now resolves npm's real JS entry and prints any spawn error. (b) *Four legs reported PASS on an empty denominator* — the counter read `c.pass` while the packages use `[name, boolean]` tuples, so webhook printed `0/8 invariants` **and passed**; cases are now tallied by an explicit shape reader and an unreadable case is a FAILURE. (c) *Three legs passed as "module loaded"* — proving nothing at all; a module that exposes no self-check now FAILs, and pure libraries are proven by naming the committed tests that import them. (d) *The gate's own audit matched its own regex* — the banned credential pattern written as a contiguous literal matches the line defining it, so the gate failed itself forever; the pattern is assembled from fragments. Rule: **a gate that can report green with no assertion behind it is worse than no gate, because it gets trusted** — all four classes are now locked by tests. Also this session: `docs/owner-decisions…` §9 rewritten from "sign-off still required" to the three decisions *closed as held* (prices LOCKED · named integrator NONE · badge NOT ISSUED), with `CL-BUILD-ADOPTION-INDEPENDENT` mechanically failing the build if any of the three is ever marked `VERIFIED` while held; the control plane now reads the claim ceiling, the badge registry, and the committed gate verdict as committed sources; `docs/badge-system-2026-09-26.md` (Arabic-first + English mirror) documents what a badge never means. `npm test` → **1153/1153** (run-tests enforced, +58 over the previous cycle); boundary audit **817 files (committed tree), 0 violations**; release gate **18/18 legs, independence PASS**; docs-node **81 · 53 · 18**. One honesty defect caught in the act of shipping: a blanket number-sync `1095 → 1148` replace also rewrote the **v0.5.20 changelog row**, which would have made a past release report a test count it never measured — history is the one thing a sync script must never touch |
81+
82+
8183

8284
| Channel | State |
8385
|---|---|

‎docs/adoption-dashboard.md‎

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ authorized step appends a milestone; they are never invented upward.
2727
| Commercial customers | 0 verified |
2828
| Commercial partners | 0 verified |
2929

30+
## Claim ceiling, badges & release gate (committed artifacts)
31+
32+
| Surface | Value |
33+
|---|---|
34+
| Claims tracked | 28 |
35+
| Claims by status | VERIFIED 16 · UNKNOWN 6 · HYPOTHESIS 0 · RESEARCH 1 · GATED 3 · NOT_PERFORMED 2 |
36+
| Claims depending on an external outcome | undefined |
37+
| Claim-ceiling violations | 0 |
38+
| Badges issued to anyone | 0 |
39+
| Badge specimens (never issued) | 2 |
40+
| Release gate | GATE_PASS — 18/18 legs, independence PASS |
41+
42+
The claim ceiling is the list of things this repository may say, with a
43+
status each. undefined of them depend on an external outcome and are therefore
44+
marked GATED, UNKNOWN or NOT_PERFORMED rather than verified. A badge is
45+
issued to no one. The release gate is not a release authorization.
46+
3047
Zeroes here are a trust feature, never hidden. No percentage is printed:
3148
every value is derived from a committed source or stays at its honest
3249
default.
@@ -35,9 +52,9 @@ default.
3552

3653
| Metric | Value |
3754
|---|---|
38-
| Test suite | 1095 |
39-
| Boundary audit | 803 files / 0 violations |
40-
| Docs-node contract | 81 executed · 53 skip-listed · 18 covered |
55+
| Test suite | 1153 |
56+
| Boundary audit | 817 files / 0 violations |
57+
| Docs-node contract | 87 executed · 53 skip-listed · 19 covered |
4158
| Live-submission harness | PEOPLES_COURT_HARNESS_READY |
4259

4360
## Adoption surface (from the integration registry)

‎docs/badge-registry.json‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"schema": "CG-BDG/1",
3+
"suite": "CG-CS/1",
4+
"rules": {
5+
"INTEGRATION": [
6+
"Issued only from a CG-CS/1 record whose six criteria all PASS.",
7+
"Certifies the integration's attestations only — never the counterparty, its funds, its adjudication, or any legal outcome.",
8+
"Carries the subject id, the suite version, and a digest of the exact record; any edit to those fails verification."
9+
],
10+
"SPECIMEN": [
11+
"Design specimen. NOT ISSUED. No third party holds this badge.",
12+
"NOT ISSUED: rendered so the design and its verification path are provable before any issuance decision exists."
13+
]
14+
},
15+
"issuerCount": 0,
16+
"issuers": [],
17+
"issuedNote": "No badge is issued to any third party. An issuance requires a CG-CS/1 record whose six criteria all pass, and the record must be reviewable by whoever the badge names.",
18+
"specimens": [
19+
{
20+
"id": "SPECIMEN-VERIFIED-INTEGRATION",
21+
"subject": "SPECIMEN · NOT ISSUED",
22+
"kind": "SPECIMEN",
23+
"suite": "CG-CS/1",
24+
"criteriaPass": true,
25+
"criteriaPassed": 6,
26+
"criteriaTotal": 6,
27+
"digest": "0FC2E2506285",
28+
"note": "Shows exactly what an issued badge looks like. It is not one, and it is issued to nobody.",
29+
"file": "docs/badges/specimen-verified-integration.svg",
30+
"verified": true
31+
},
32+
{
33+
"id": "SPECIMEN-NOT-CONFORMANT",
34+
"subject": "SPECIMEN · NOT ISSUED",
35+
"kind": "SPECIMEN",
36+
"suite": "CG-CS/1",
37+
"criteriaPass": false,
38+
"criteriaPassed": 2,
39+
"criteriaTotal": 6,
40+
"digest": "792861CA01BF",
41+
"note": "The refusal face: what the system shows when the suite does not pass. A failing record can never be issued a badge, and this artwork proves the refusal is designed, not accidental.",
42+
"file": "docs/badges/specimen-not-conformant.svg",
43+
"verified": true
44+
}
45+
],
46+
"specimenCount": 2
47+
}

0 commit comments

Comments
 (0)