diff --git a/README.md b/README.md index a3e5377b..70894d1b 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ Run the offline arc: `npm run stellar:presign` — no signing, no wallet, no net ### Recent developments — Nov 10–14 2026 (by network, measured & evidenced) -> Canonical measured state for this cycle: **2502 / 2502 tests**, **1928 files scanned / 0 violations**, **docs-node 140 executed · 91 skip-listed · 34 covered**, **Foundry 43/43 pass** — [docs/state-snapshot.json](docs/state-snapshot.json) · [docs/STATUS.md](docs/STATUS.md). Every item below is labeled by its committed evidence; nothing implies revenue, customers, partnerships, external adoption, or a third-party audit. +> Canonical measured state for this cycle: **2502 / 2502 tests**, **1930 files scanned / 0 violations**, **docs-node 140 executed · 91 skip-listed · 34 covered**, **Foundry 43/43 pass** — [docs/state-snapshot.json](docs/state-snapshot.json) · [docs/STATUS.md](docs/STATUS.md). Every item below is labeled by its committed evidence; nothing implies revenue, customers, partnerships, external adoption, or a third-party audit. #### Stellar — pre-sign receipts, agent-gate envelope path, Freighter evaluation, DEX integration diff --git a/docs/COREDAO-KILLER-FEATURES.md b/docs/COREDAO-KILLER-FEATURES.md index 4d9fa06f..fe44b7ab 100644 --- a/docs/COREDAO-KILLER-FEATURES.md +++ b/docs/COREDAO-KILLER-FEATURES.md @@ -33,6 +33,6 @@ Core DAO • Core Chain • Core DeFi • Core DApps • Core Wallets • AI Age ## Recent developments (Nov 10–12 2026, measured) - **Evidence-registry proofs (chain 1116 lane):** Foundry invariant + fuzz proofs over the Evidence Registry with deterministic seed/config (`foundry.toml`); invariants run as the test contract's own actions (not a cheatcode target); CI executes `forge test --match-path "test/contract/*invariant*"`. **43/43 Foundry tests pass** (CI-measured, pinned to `forge` output) — `.github/workflows/ci.yml`, `test/contract/*invariant*`, [STATUS.md](STATUS.md). -- **Measured repo state:** 2502 / 2502 npm tests, 1928 files / 0 violations, docs-node 140/91/34 — [state-snapshot.json](state-snapshot.json). +- **Measured repo state:** 2502 / 2502 npm tests, 1930 files / 0 violations, docs-node 140/91/34 — [state-snapshot.json](state-snapshot.json). **Status:** Core anchors **LIVE/recorded** on chain 1116 (see STATUS); this COREDao-KILLER packaging surface remains an integration/product wrapper with ecosystem integrations **NOT BUILT** unless separately evidenced. | **Version:** COREDao-KILLER/1 diff --git a/docs/EXECUTIVE-SUMMARY.md b/docs/EXECUTIVE-SUMMARY.md index 4013b81d..a5dea8fc 100644 --- a/docs/EXECUTIVE-SUMMARY.md +++ b/docs/EXECUTIVE-SUMMARY.md @@ -26,7 +26,7 @@ CoreGuard is a fail-closed execution-truth layer for agent-to-agent jobs. Money | Item / العنصر | Value / القيمة | Source / المصدر | |---|---|---| | **Test suite / مجموعة الاختبارات** | **2502 / 2502 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) | -| **Boundary audit / تدقيق الحدود** | **1928 files · 0 violations** | [`npm run boundary:audit`](../package.json) | +| **Boundary audit / تدقيق الحدود** | **1930 files · 0 violations** | [`npm run boundary:audit`](../package.json) | | **Claims audit / تدقيق الادعاءات** | **28 claims · VERIFIED 16 · 0 violations** | [`npm run claims:audit`](../package.json) · [`claims-registry.json`](claims-registry.json) | | **Docs-node contract / عقود التوثيق القابلة للتنفيذ** | **140 executed · 91 skip-listed · 34 docs covered** | [`../test/ci/docs-node-contract.test.js`](../test/ci/docs-node-contract.test.js) | | **Release gate / بوابة الإصدار** | **18/18 legs · GATE_PASS · independence PASS** | [`npm run release:gate:independence`](../package.json) · [`release-gate.json`](release-gate.json) | diff --git a/docs/GRANT-APPLICATION-CORE-DAO.md b/docs/GRANT-APPLICATION-CORE-DAO.md index 19893ea4..27b72673 100644 --- a/docs/GRANT-APPLICATION-CORE-DAO.md +++ b/docs/GRANT-APPLICATION-CORE-DAO.md @@ -16,7 +16,7 @@ CoreGuard produces cryptographic evidence of conformance that can be independent ### 4. Traction - ✅ 2502 tests passing (machine-pinned) -- ✅ 1928 files, 0 boundary violations +- ✅ 1930 files, 0 boundary violations - ✅ 10,000-run benchmark: 0 false accept, 0 false reject - ✅ Core DAO mainnet: 2 contracts deployed & verified - V1: `0x037dF08F2d43c5D03759279Fe35664f6AFf9EA6E` diff --git a/docs/GRANT-APPLICATION-PI-NETWORK.md b/docs/GRANT-APPLICATION-PI-NETWORK.md index dffacf56..7688ad0a 100644 --- a/docs/GRANT-APPLICATION-PI-NETWORK.md +++ b/docs/GRANT-APPLICATION-PI-NETWORK.md @@ -25,7 +25,7 @@ CoreGuard on Pi Network: - ✅ Pi Network package created (PI-NETWORK/1) - ✅ Pi Killer package created (PI-KILLER/1) - ✅ 2502 tests passing -- ✅ 1928 files, 0 boundary violations +- ✅ 1930 files, 0 boundary violations - ✅ DRY_RUN status (honest — not claiming live) ### 5. Grant Request diff --git a/docs/INTEGRATION-MATRIX-en.md b/docs/INTEGRATION-MATRIX-en.md index 08172806..06d34e2a 100644 --- a/docs/INTEGRATION-MATRIX-en.md +++ b/docs/INTEGRATION-MATRIX-en.md @@ -10,5 +10,5 @@ - Platform level: **L0** — PUBLIC / REPRODUCIBLE / OFFLINE - Conformance suite: **CG-CS/1** -- Tests: **2502** · boundary files: **1928** · violations: **0** +- Tests: **2502** · boundary files: **1930** · violations: **0** - Docs contract: **140 / 91 / 34** diff --git a/docs/INTEGRATION-MATRIX.md b/docs/INTEGRATION-MATRIX.md index 8880b8aa..651cd42c 100644 --- a/docs/INTEGRATION-MATRIX.md +++ b/docs/INTEGRATION-MATRIX.md @@ -10,5 +10,5 @@ - مستوى المنصة: **L0** — PUBLIC / REPRODUCIBLE / OFFLINE - مجموعة المطابقة: **CG-CS/1** -- الاختبارات: **2502** · ملفات الحدود: **1928** · المخالفات: **0** +- الاختبارات: **2502** · ملفات الحدود: **1930** · المخالفات: **0** - عقد الوثائق: **140 / 91 / 34** diff --git a/docs/INVESTOR-ONE-PAGER-en.md b/docs/INVESTOR-ONE-PAGER-en.md index 392c275a..5fe58788 100644 --- a/docs/INVESTOR-ONE-PAGER-en.md +++ b/docs/INVESTOR-ONE-PAGER-en.md @@ -4,10 +4,10 @@ A verifiable execution-truth layer: intent → policy → execution → a receipt that is re-derived byte-for-byte. Every claim is classified, and every number is measured from a committed tree. -## Measured state (2026-12-03T18:39:56Z) +## Measured state (2026-12-03T19:05:11Z) - **2502** passing tests, pinned in `docs/state-snapshot.json`. -- **1928** files in the boundary audit, **0** violations. +- **1930** files in the boundary audit, **0** violations. - Docs contract: **140 / 91 / 34**. - Release gate: **GATE_PASS** (18/18 legs). - Claims: **21/35** verified; the rest are honestly UNKNOWN/RESEARCH/GATED/NOT_PERFORMED. diff --git a/docs/INVESTOR-ONE-PAGER.md b/docs/INVESTOR-ONE-PAGER.md index d76fc839..14d896d2 100644 --- a/docs/INVESTOR-ONE-PAGER.md +++ b/docs/INVESTOR-ONE-PAGER.md @@ -4,10 +4,10 @@ طبقة حقيقة قابلة للتحقق للتنفيذ: نيّة → سياسة → تنفيذ → إيصال يُعاد اشتقاقه بايتًا ببايت. كل ادعاء مصنّف، وكل رقم مقيس من شجرة مُلتزَمة. -## الحالة المقيسة (2026-12-03T18:39:56Z) +## الحالة المقيسة (2026-12-03T19:05:11Z) - **2502** اختبارًا ناجحًا، مثبّتة في `docs/state-snapshot.json`. -- **1928** ملفًا في تدقيق الحدود، **0** مخالفة. +- **1930** ملفًا في تدقيق الحدود، **0** مخالفة. - عقد الوثائق: **140 / 91 / 34**. - بوابة الإصدار: **GATE_PASS** (18/18 ساقًا). - الادعاءات: **21/35** مُتحقَّق منها؛ والباقي UNKNOWN/RESEARCH/GATED/NOT_PERFORMED بصدق. diff --git a/docs/KNOWN-GAPS.md b/docs/KNOWN-GAPS.md index 06b227cd..62da2439 100644 --- a/docs/KNOWN-GAPS.md +++ b/docs/KNOWN-GAPS.md @@ -6,7 +6,7 @@ This page is generated, not maintained. It answers one question before anyone el ## What the tree measured -- Boundary audit: **1928 files, 0 violations** (pinned in the state snapshot). +- Boundary audit: **1930 files, 0 violations** (pinned in the state snapshot). - Suite size the documents pin: **2502 tests**. - Proof systems registered: **3**, all `NOT_BUILT`, every measurement `null`. - Proof families specified: **3** (specification only; no circuit for any of them). diff --git a/docs/LINKEDIN-CONTENT.md b/docs/LINKEDIN-CONTENT.md index 08ec0d5b..c96c8ec2 100644 --- a/docs/LINKEDIN-CONTENT.md +++ b/docs/LINKEDIN-CONTENT.md @@ -54,7 +54,7 @@ CoreGuard Global — Traction Update ✅ Core DAO mainnet: 2 contracts deployed & verified ✅ Stellar testnet: Soroban contract deployed ✅ 2502 tests passing -✅ 1928 files scanned, 0 boundary violations +✅ 1930 files scanned, 0 boundary violations ✅ 10,000-run benchmark: 0 false accept/reject ✅ 18/18 release gate legs pass diff --git a/docs/NUMBERS.html b/docs/NUMBERS.html index 4811f871..58b94268 100644 --- a/docs/NUMBERS.html +++ b/docs/NUMBERS.html @@ -48,8 +48,8 @@

CoreGuard — numbers

Machine-generated from the committed snapshot. Every row names the field it came from.

- measured at 2026-12-03T18:39:56Z - commit 7d2ced9d9fa4 + measured at 2026-12-03T19:05:11Z + commit bc7af96e77d0 source docs/state-snapshot.json schema CG-NUMBERS/1
@@ -63,7 +63,7 @@

CoreGuard — numbers

Boundary audit — files scanned - 1928 files + 1930 files docs/state-snapshot.json#boundaryAudit.filesScanned
Tracked files from `git ls-files` (ignored trees such as var/ are not counted).
diff --git a/docs/PITCH-DECK.md b/docs/PITCH-DECK.md index 00ebfbf7..da1a5b1a 100644 --- a/docs/PITCH-DECK.md +++ b/docs/PITCH-DECK.md @@ -28,7 +28,7 @@ Intent → Policy → Execution → Evidence → Replay → Verdict ## Slide 4: Traction - ✅ 2502 tests passing (machine-pinned) -- ✅ 1928 files, 0 boundary violations +- ✅ 1930 files, 0 boundary violations - ✅ 10,000-run benchmark: 0 false accept/reject - ✅ Core DAO mainnet: 2 contracts deployed & verified - ✅ Stellar testnet: Soroban contract deployed diff --git a/docs/PRODUCTION-ROADMAP.md b/docs/PRODUCTION-ROADMAP.md index 5c3ff1df..cd384bd2 100644 --- a/docs/PRODUCTION-ROADMAP.md +++ b/docs/PRODUCTION-ROADMAP.md @@ -198,7 +198,7 @@ claim of world novelty. ## 11. Measured addendum — Nov 10–12 2026 developments (by network) -> **Dated addendum (facts only, additive).** This does not revise the 2026-09-19 baseline/gates above; it records later committed developments against the same honesty discipline. Canonical measured state: **2502 / 2502 tests**, **1928 files / 0 violations**, **docs-node 140/91/34**, **Foundry 43/43** — `docs/state-snapshot.json`, `docs/STATUS.md`. No revenue, customers, partnerships, external adoption, or third-party audit is claimed. +> **Dated addendum (facts only, additive).** This does not revise the 2026-09-19 baseline/gates above; it records later committed developments against the same honesty discipline. Canonical measured state: **2502 / 2502 tests**, **1930 files / 0 violations**, **docs-node 140/91/34**, **Foundry 43/43** — `docs/state-snapshot.json`, `docs/STATUS.md`. No revenue, customers, partnerships, external adoption, or third-party audit is claimed. ### Stellar (pre-sign receipts, agent-gate signed envelope, Freighter, DEX integration) - **PSAR/1 pre-sign authorization receipts (BUILT · TEST_EXECUTED · integration NOT_BUILT):** `packages/stellar/presign.mjs` — receipt bound to exact XDR bytes (sha256 + Ed25519 over canonical JSON, pinned issuer, injected clock/window), fail-closed `PASS`/`BLOCK`, 11 frozen reject codes, `executionProof: NOT_INCLUDED`; `npm run stellar:presign`; `test/integrations/stellar-presign.test.mjs`; hardening + self-review (`docs/psar-security-review-2026-11-12.md`); wallet proposal (`docs/freighter-presign-integration-proposal-2026-11-12.md`); 90s presentation demo video (visual replay of captured clean-clone output) in `docs/PRODUCTS.html` / `docs/STELLAR-INTEGRATION-GUIDE.md` and `assets/`. Scoped technical-evaluation comment **posted** on `stellar/freighter#3087` and recorded (no endorsement/merge/adoption). diff --git a/docs/STATUS.md b/docs/STATUS.md index b48d5eab..d537022d 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -24,7 +24,7 @@ machine-measured, not estimated. Last verified: **2026-12-02**. | Rust/WASM/independent parity | PASS | `test/independent-verifier/` | | C verifier | PASS | `test/verifier-c/` (frozen reference, untouched) | | Frozen evidence/canonical hashes | UNCHANGED | conformance suite `test/conformance/` | -| Boundary audit (committed tree) | **1928 files, 0 violations** (+4 for the aer1 resolver profile promised in ACP SEP #329: `packages/agent-commerce/aer1-profile.mjs` · `scripts/aer1-profile.mjs` · `test/integrations/aer1-profile.test.mjs` · `docs/AER1-PROFILE-RESOLVER-REPORT.md` — recomputes the committed digest, binds the id only against an expectation, and reports draft-26 §6's five outcomes; 8 offline tests over the 6 pinned id-binding vectors, no corpus re-run and no anchor resolution) (+1 for the merged VAR/1 annex draft, PR #175 — an external contribution by Guigui Wang (Correctover), reconciled against Brennan Zambo's independent corpus run: a technical record with its author's name on it, not an endorsement, partnership or completeness claim) (+3 for the CG-CORPUS-PIN/1 refresh rule: `packages/agent-commerce/corpus-pin.mjs` · `scripts/corpus-pin.mjs` · `test/integrations/corpus-pin.test.mjs` — a corpus head move with byte-identical data keeps the pin, a moved data digest demands a new pin and replay evidence, and a missing digest is `incomparable` rather than a pass; no corpus fetched and no third-party value adopted) (+1 for the release dimension's own command: `scripts/corpus-release.mjs` — the rule a reviewer can read is also a rule they can run: canonical form, exit 2 on an unreadable declaration, exit 1 when the release moved) (+3 for the caller-side Stellar snapshot composer: `packages/agent-commerce/stellar-snapshot-composer.mjs` · `test/integrations/stellar-snapshot-composer.test.mjs` · `examples/stellar-snapshot-composition/run.mjs` — ledger skew refuses, custom policy descriptors are carried not flattened, no kit API or network call) (+1 for the rerun comparison after #161/#162: `evidence/handover-observer/comparison-zamback-rerun-2026-11-28.json` — the commitment-layer disagreement is gone and the one remaining difference is the published receiver policy on step 18; the `steps_digest` check now fails the outcome, not just a row) (+1 for the committed trace comparison against Zambo's gist: `evidence/handover-observer/comparison-zamback-rambo.json` — both traces agree on the handover and both decisions and differ only on the mover (`steps_digest` vs step 18), quoted with source URL and byte digest, not adopted; docsNode holds at 140/90/34) (+6 new files plus the observer rule support for AER-1 preimages, the #165 negative control and the Stellar composition note: `scripts/handover-negative-build.mjs` · `test/fixtures/handover/zamback-tampered-step.json` · `test/fixtures/handover/MUTATION.md` · `test/integrations/handover-public-rules.test.mjs` · `docs/stellar-snapshot-composition.md` · `test/integrations/stellar-snapshot-composition.test.mjs` — both published preimages now recomputed, 41/41 positive and one tampered step rejected, no kit API added, no registry publish) (+6 for the CG-X402-IDEM/1 second harness: `implementations/python/x402_idempotency.py` · `implementations/python/test_x402_idempotency.py` · `test/fixtures/x402/idempotency-matrix.json` · `scripts/x402-matrix-run.mjs` · `test/integrations/x402-idempotency-parity.test.mjs` · `docs/x402-idempotency-parity.md` — 13 cases byte-identical across both runtimes, 5 Python unit tests, drift negative control, no MCP surface, no registry publish) (+2 for CG-X402-IDEM/1: `packages/x402/idempotency.mjs` · `test/integrations/x402-idempotency.test.mjs` — 13 offline tests, self-check 8/8, no MCP surface, no publish change) (+22 for the smart-account adapter and the outreach drafts (this push): `docs/outreach/OUTREACH-3-DRAFTS-2026-11-26.md` (three drafts, none sent) · `docs/integrations/openzeppelin-smart-accounts.md` (field mapping for the OZ issue) · `packages/agent-commerce/profiles/nachweis-v1.mjs` + `test/integrations/nachweis-profile.test.mjs` (ACP receipt-pointer profile, 12 offline tests incl. the pinned 7/7 demo fixture) · `test/fixtures/nachweis/demo-allow-reduced.json` (Apache-2.0 reduction, hash-covered fields only) · `test/fixtures/profiles/nachweis-v1.vectors.json` + `test/fixtures/profiles/README.md` + `scripts/nachweis-vector-run.mjs` + `test/integrations/nachweis-vectors.test.mjs` (send-ready profile vector, 3 offline tests) · `implementations/python/nachweis_v1.py` + `test_nachweis_v1.py` + `README.md` + `test/integrations/nachweis-python-parity.test.mjs` (second-language port of the nachweis/v1 resolver, stdlib only, 4 Python tests + 2 parity tests) · `packages/agent-commerce/smart-account-adapter.mjs` · `packages/agent-commerce/smart-account-adapter.d.mts` · `test/integrations/smart-account-adapter.test.mjs` (9 offline tests, tamper + no-network) · `docs/outreach/issue-openzeppelin-stellar-contracts-2026-11-26.md` (draft, not sent) — docsNode holds at 140/90/34) (+5 for the 0.5.1 community and client-run surface (this push): `.github/ISSUE_TEMPLATE/{bug-report,design-partner,integration-request}.yml` · `docs/OUTREACH-TARGETS-2026-11-26.md` · `docs/evidence/mcp-client-run-0.5.1.json` (a JSON transcript, fence-free) — docsNode holds at 140/90/34; re-measured against the committed tree; +20 for the CG-ZK/1 research set this push: `spec/CG-ZK-1.md` + 7 child specs, 5 `research/zk/` documents, `packages/zk-privacy/{index,proof-systems}.mjs`, `scripts/zk-envelope-demo.mjs`, `test/zk/{zk-privacy,leakage,terminology}.test.mjs`, `docs/CG-ZK-1-RESEARCH-BRIEF-2026-12.md` - fence-free, so docsNode holds at 140/90/34) (+4 for the CG-OBS/1 observation ledger (this push): `packages/agent-commerce/observations.mjs` · `scripts/aer1-observations.mjs` · `test/integrations/aer1-observations.test.mjs` · `docs/AER1-OBSERVATION-LEDGER.md` - the page carries one `text` fence so docsNode holds at 140/89/33; re-measured against the committed tree) (+5 for the MCP 0.1.3 reliability surface (this push): `docs/agent-commerce-mcp-compatibility.md` · `docs/agent-commerce-mcp-security.md` · `docs/releases/0.1.3.md` · `examples/agent-commerce-mcp/README.md` · `examples/agent-commerce-mcp/run.mjs` — the three docs are fence-free prose, the example README's blocks are `text`, and the runnable example is referenced by command, so docsNode stays 139/83/32; re-measured against the committed tree; +2 for the pilot SOW and report form (this push): `docs/PILOT-SOW.md` · `docs/PILOT-REPORT-TEMPLATE.md` — both fence-free prose, so docsNode holds at 139/83/32; +3 arrived on main before this pin moved (#83 announcement note, #85 DDE SDK/API reference desk); +9 for the positioning and investment-readiness pack (this push): `COREGUARD-INVESTMENT-READINESS.md` · `docs/POSITIONING.md` · `docs/PRODUCT.md` · `docs/INVESTORS.md` · `docs/BUSINESS-MODEL.md` · `docs/PARTNERSHIPS.md` · `docs/TEAM.md` · `docs/SECURITY-REVIEWS.md` · `docs/EVIDENCE.md` — all fence-free prose, so docsNode holds at 139/83/32; +7 for the Salla Shop (Pi) pilot proposal package (this push): `docs/proposals/salla-shop-pi/README.md` · `TECHNICAL-PILOT-PROPOSAL-v1.0.md` (+ its `.ar.md`) · `MVP-SPEC-AND-TEST-PLAN.md` (+ its `.ar.md`) · `OUTREACH-DRAFTS.md` (+ its `.ar.md`) — all fence-free prose, so docsNode is unchanged; +2 from main since this branch opened (#76 published `docs/DOCS.html` · `docs/PARTNER.html`) - the audit counts the merged tree, so the pin moves with main; +5 for interop-demo/corpus-report/start-here (this push): `docs/START-HERE.md` · `docs/templates/AER1-CORPUS-RUN-REPORT-TEMPLATE.md` · `examples/agentbadge-receipt-seam/{README.md,run.mjs}` · `scripts/aer1-corpus-report.mjs` (+ docs-node contract/snapshot alignment); +2 for the anchor-layer vector (this push): `test/fixtures/var1-corpus-v1/anchor-unresolvable.json` · `test/integrations/var1-corpus-anchor-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; publication state for both vectors is kept in `docs/aer1-corpus-publication.json`+2 for the publication record and its guard (this push): `docs/aer1-corpus-publication.json` · `test/ci/corpus-publication-claim.test.js` — fence-free, so docsNode holds at 133/82/30; +2 for the CG-VECTOR/1 corpus vector (this push): `test/fixtures/var1-corpus-v1/present-consistent-nonconforming.json` · `test/integrations/var1-corpus-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; +3 for the public verify/numbers surfaces (2026-11-18 push): `scripts/public-numbers.mjs` · `docs/numbers.json` · `docs/NUMBERS.html` — all fence-free, so docsNode holds at 133/82/30; +2 for the luxe-pages identity merge/push (PR #65 follow-up fix, 2026-11-18): `docs/assets/coreguard-luxe.css` · `docs/assets/coreguard-luxe.js` (shared GitHub Pages assets); docsNode holds at 133/82/30; +4 for the npm-publication wave (2026-11-17 push): `packages/agent-commerce/package.json` · `packages/agent-commerce/bin/mcp.mjs` (stdio MCP bin wrapper) · `packages/agent-commerce/README.md` (its single `json` fence is MCP client configuration data, not a documented command) · `packages/agent-commerce/server.json` (MCP Registry server.json, schema 2025-12-11, validated against the live registry); +7 for the CG-TAS/1 trust-anchor wave (2026-11-17 push): `scripts/ladder/trust-anchor-set.mjs` · `scripts/ladder/provenance-fuzz.mjs` · `test/integrations/trust-anchor-set.test.mjs` · `test/integrations/provenance-fuzz.test.mjs` · `test/integrations/provenance-mutations.test.mjs` · `docs/AER1-TRUST-ANCHOR-SET-SPEC-V1-DRAFT.md` · `docs/owner-execution/REVIEWER-SELECTION-RUBRIC-2026-11-17.md` — the two docs are command-free prose, so docsNode holds at 133/82/30; +6 for the bilingual reviewer-deliverable contracts (2026-11-17 push): `test/ci/demo-script-contract.test.js` · `test/ci/bilingual-pairs.test.js` · `docs/i18n-pairs.json` · `docs/reviewer-demo-script-2026-09-ar.md` · `docs/sep-receipt-semantics-draft-2026-11-11-ar.md` · `docs/STELLAR-INTEGRATION-GUIDE-ar.md` — fence-free additions, docsNode unchanged; +4 for the adoption instruments (this push): `docs/loi/README.md` · `docs/loi/LOI-AER1-ZAMBO-2026-11-16.md` · `docs/loi/LOI-PILOT-STELLAR-2026-11-16.md` · `docs/AUDIT-READINESS-PACK-2026-11-16.md` — the command blocks are `text` fences, not `bash`, so docsNode holds at 133/81/30; +8 for the composed authorization firewall (this push): `packages/agent-commerce/firewall.mjs` · `packages/agent-commerce/policy-context.mjs` · `test/integrations/agent-commerce-firewall.test.mjs` · `examples/agent-commerce-firewall/{run.mjs,README.md,artifacts.json}` · `docs/agent-commerce-firewall-2026-11-16.md` · `docs/assets/badges/ci-1694-tests.svg` — all fence-free, so docsNode holds at 133/81/30; +25 for the agent-commerce family push: `docs/AGENT-COMMERCE-SECURITY-SPEC-V1.md` · `docs/agent-commerce-dashboard.html` · `docs/agent-commerce-console.html` · `docs/agent-commerce-funding-and-partnerships-2026-11-14.md` · the five dated instruments `docs/agent-commerce-openai-outreach-dossier-2026-11-15.md` · `docs/partner-outreach-messages-2026-11-15.md` · `docs/agentic-commerce-weekly-opportunities-2026-11-15.md` · `docs/agent-commerce-integration-guide-2026-11-15.md` · `docs/agent-commerce-tech-video-script-2026-11-15.md` (all fence-free so docsNode holds at 133/79/30) · `packages/agent-commerce/{index.mjs,index.d.ts,http.mjs,mcp.mjs,risk.mjs}` · 7 agent-commerce test files · 3 example files (`examples/agent-commerce-security-suite` README/artifacts/run.mjs) · `docs/assets/badges/ci-1673-tests.svg` (README pointed at it; the file was NEVER committed — the badge 404'd until the 2026-11-16 push shipped the count-matched `ci-1694-tests.svg` and re-pointed the href); then +1 for `docs/PILOT-KIT.md` (this push) - the two-page pilot offer: two-week scope, measurable success criteria, and the exact third-party-verifiable artifact, fence-free so docsNode holds at 133/79/30; +7 for the execution-trust layer: `examples/execution-trust/run.mjs` · `examples/execution-trust/verify-third-party.mjs` · `test/integrations/execution-trust-demo.test.mjs` · `docs/EXECUTION-TRUST-LAYER.md` · `docs/COMPETITIVE-LANDSCAPE.md` · `docs/SCF-BUILD-APPLICATION-V3.md` · `docs/DEVELOPER-QUICKSTART.md` — all fence-free, so docsNode holds at 133/79/30; +4 for the agentic-commerce approval-binding kit (this push): `examples/agent-commerce-approval-binding/run-demo.js` · `examples/agent-commerce-approval-binding/artifacts.json` · `examples/agent-commerce-approval-binding/README.md` · `docs/agent-commerce-moment-chatgpt-wallet-2026-11-14.md` — the offline demo (fence-free, docsNode unchanged) + the dated instrument (fence-free, zero test counts); +3 for the SCF RFP-2 submission kit (this push): `docs/SCF-46-RFP2-XDR-AUDIT-SUBMISSION-2026-11-13.md` · `scripts/scf-rfp2-sighting-repro.mjs` · `docs/evidence/scf-rfp2-sighting-repro.json` - the dated submission instrument (fence-free, docsNode unchanged) + its offline deterministic sighting-reproduction evidence (the js-stellar-sdk#1766 ordering-divergence class + 4 synthetic byte-round-trip-verified corpus entries, no key material committed); +4 for the PSAR/1 pre-sign receipt kit (this push): `packages/stellar/presign.mjs` · `test/integrations/stellar-presign.test.mjs` · `examples/stellar-presign/demo.mjs` · `docs/freighter-presign-integration-proposal-2026-11-12.md`; +1 for `docs/psar-security-review-2026-11-12.md` (the PSAR/1 critical self-review: the three security questions answered line-referenced with named boundaries); then +7 for the signed-envelope threat model, the replay vector + its generator, the field-tamper and replay tests, and the SCF readiness audit; +1 for `scripts/agent-gate-freighter-attest.mjs`; +4 for the browser demo — `examples/agent-gate-browser/serve.mjs`, `examples/agent-gate-browser/index.html`, `test/integrations/agent-gate-browser-demo.test.mjs`, `docs/assets/badges/ci-1539-tests.svg`; +2 for `scripts/agent-gate-testnet-sign.mjs` and `docs/evidence/agent-gate-testnet-signature.json`; the signed-envelope batch added `packages/agent-gate/adapters/stellar-xdr.mjs` · `packages/agent-gate/adapters/freighter.mjs` · `packages/agent-gate/verify-cli.mjs` · `packages/agent-gate/demo/cli-flow.mjs` · `scripts/agent-gate-bench.mjs` · `test/integrations/agent-gate-envelope.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; the untracked `examples/stellar-integration-pilot/` is NOT counted — it is not in `git ls-files`) (+1 parallel-session deliverable adopted in the reconciliation: `docs/deploy-stamp-id.txt` — the deploy stamp recorded by the owner's parallel Codebuff session; +4 owner-authorized deploy cycle: `docs/OWNER-DECISIONS-2026-11-08.md` · `scripts/stellar-soroban-authorized-deploy.mjs` · `test/integrations/stellar-soroban-authorized-deploy.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; +2 hardening-batch final reports, 2026-11-07 dated instruments SHA-pinned to `ea7e154`: `docs/FINAL-REPORT-2026-11-07-ar.md` · `docs/FINAL-REPORT-2026-11-07.md`; +3 — `docs/CLAIMS-TAXONOMY.md` · `test/ci/doc-numbers.test.js` · `docs/assets/badges/ci-1451-tests.svg` · then +2 CG-BDG/1 badge package: packages/badge/package.json · packages/badge/README.md; +1 funded-swap runner +1 measured executed artifact +1 CI badge plate +1 SCF-46 pack: `scripts/stellar-dex-swap-executed.mjs` · `docs/evidence/stellar-dex-swap-executed.json` · `docs/assets/badges/ci-1436-tests.svg` · `docs/SCF-46-INTEREST-FORM-READY-2026-11-06.md`; earlier: +1 CI badge docs/assets/badges/ci-1433-tests.svg; +2 soroban commit: scripts/stellar-soroban-commit-executed.mjs · docs/evidence/stellar-soroban-commit-executed.json; earlier: +7 executed-evidence artifacts & runners: scripts/stellar-agent-gate-executed.mjs · scripts/stellar-dex-gate-real.mjs · scripts/universal-shield-executed.mjs · test/integrations/execution-evidence-contract.test.mjs · docs/evidence/stellar-agent-gate-executed.json · docs/evidence/stellar-dex-gate-executed.json · docs/evidence/universal-dapp-shield-executed.json; from the trust-gate/legal-node/lab/bot surge: +1 docs/TRUST.md, +1 docs/VERIFY-BOT.md, +1 docs/LABS.md, +1 LICENSE.md; +1 test/fixtures/create-meta-v4.b64.txt from the CI-portability fix — the STELLAR/1 v4 create-result fixture moved IN-tree from a dev Temp path; +5 for the product-5 push (this push): `packages/agent-commerce/attest.mjs` · `test/integrations/agent-commerce-attestation.test.mjs` · `examples/agent-commerce-attestation/{run.mjs,README.md,artifacts.json}` (all fence-free so docsNode holds at 133/79/30)) | `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` | +| Boundary audit (committed tree) | **1930 files, 0 violations** (+4 for the aer1 resolver profile promised in ACP SEP #329: `packages/agent-commerce/aer1-profile.mjs` · `scripts/aer1-profile.mjs` · `test/integrations/aer1-profile.test.mjs` · `docs/AER1-PROFILE-RESOLVER-REPORT.md` — recomputes the committed digest, binds the id only against an expectation, and reports draft-26 §6's five outcomes; 8 offline tests over the 6 pinned id-binding vectors, no corpus re-run and no anchor resolution) (+1 for the merged VAR/1 annex draft, PR #175 — an external contribution by Guigui Wang (Correctover), reconciled against Brennan Zambo's independent corpus run: a technical record with its author's name on it, not an endorsement, partnership or completeness claim) (+3 for the CG-CORPUS-PIN/1 refresh rule: `packages/agent-commerce/corpus-pin.mjs` · `scripts/corpus-pin.mjs` · `test/integrations/corpus-pin.test.mjs` — a corpus head move with byte-identical data keeps the pin, a moved data digest demands a new pin and replay evidence, and a missing digest is `incomparable` rather than a pass; no corpus fetched and no third-party value adopted) (+1 for the release dimension's own command: `scripts/corpus-release.mjs` — the rule a reviewer can read is also a rule they can run: canonical form, exit 2 on an unreadable declaration, exit 1 when the release moved) (+3 for the caller-side Stellar snapshot composer: `packages/agent-commerce/stellar-snapshot-composer.mjs` · `test/integrations/stellar-snapshot-composer.test.mjs` · `examples/stellar-snapshot-composition/run.mjs` — ledger skew refuses, custom policy descriptors are carried not flattened, no kit API or network call) (+1 for the rerun comparison after #161/#162: `evidence/handover-observer/comparison-zamback-rerun-2026-11-28.json` — the commitment-layer disagreement is gone and the one remaining difference is the published receiver policy on step 18; the `steps_digest` check now fails the outcome, not just a row) (+1 for the committed trace comparison against Zambo's gist: `evidence/handover-observer/comparison-zamback-rambo.json` — both traces agree on the handover and both decisions and differ only on the mover (`steps_digest` vs step 18), quoted with source URL and byte digest, not adopted; docsNode holds at 140/90/34) (+6 new files plus the observer rule support for AER-1 preimages, the #165 negative control and the Stellar composition note: `scripts/handover-negative-build.mjs` · `test/fixtures/handover/zamback-tampered-step.json` · `test/fixtures/handover/MUTATION.md` · `test/integrations/handover-public-rules.test.mjs` · `docs/stellar-snapshot-composition.md` · `test/integrations/stellar-snapshot-composition.test.mjs` — both published preimages now recomputed, 41/41 positive and one tampered step rejected, no kit API added, no registry publish) (+6 for the CG-X402-IDEM/1 second harness: `implementations/python/x402_idempotency.py` · `implementations/python/test_x402_idempotency.py` · `test/fixtures/x402/idempotency-matrix.json` · `scripts/x402-matrix-run.mjs` · `test/integrations/x402-idempotency-parity.test.mjs` · `docs/x402-idempotency-parity.md` — 13 cases byte-identical across both runtimes, 5 Python unit tests, drift negative control, no MCP surface, no registry publish) (+2 for CG-X402-IDEM/1: `packages/x402/idempotency.mjs` · `test/integrations/x402-idempotency.test.mjs` — 13 offline tests, self-check 8/8, no MCP surface, no publish change) (+22 for the smart-account adapter and the outreach drafts (this push): `docs/outreach/OUTREACH-3-DRAFTS-2026-11-26.md` (three drafts, none sent) · `docs/integrations/openzeppelin-smart-accounts.md` (field mapping for the OZ issue) · `packages/agent-commerce/profiles/nachweis-v1.mjs` + `test/integrations/nachweis-profile.test.mjs` (ACP receipt-pointer profile, 12 offline tests incl. the pinned 7/7 demo fixture) · `test/fixtures/nachweis/demo-allow-reduced.json` (Apache-2.0 reduction, hash-covered fields only) · `test/fixtures/profiles/nachweis-v1.vectors.json` + `test/fixtures/profiles/README.md` + `scripts/nachweis-vector-run.mjs` + `test/integrations/nachweis-vectors.test.mjs` (send-ready profile vector, 3 offline tests) · `implementations/python/nachweis_v1.py` + `test_nachweis_v1.py` + `README.md` + `test/integrations/nachweis-python-parity.test.mjs` (second-language port of the nachweis/v1 resolver, stdlib only, 4 Python tests + 2 parity tests) · `packages/agent-commerce/smart-account-adapter.mjs` · `packages/agent-commerce/smart-account-adapter.d.mts` · `test/integrations/smart-account-adapter.test.mjs` (9 offline tests, tamper + no-network) · `docs/outreach/issue-openzeppelin-stellar-contracts-2026-11-26.md` (draft, not sent) — docsNode holds at 140/90/34) (+5 for the 0.5.1 community and client-run surface (this push): `.github/ISSUE_TEMPLATE/{bug-report,design-partner,integration-request}.yml` · `docs/OUTREACH-TARGETS-2026-11-26.md` · `docs/evidence/mcp-client-run-0.5.1.json` (a JSON transcript, fence-free) — docsNode holds at 140/90/34; re-measured against the committed tree; +20 for the CG-ZK/1 research set this push: `spec/CG-ZK-1.md` + 7 child specs, 5 `research/zk/` documents, `packages/zk-privacy/{index,proof-systems}.mjs`, `scripts/zk-envelope-demo.mjs`, `test/zk/{zk-privacy,leakage,terminology}.test.mjs`, `docs/CG-ZK-1-RESEARCH-BRIEF-2026-12.md` - fence-free, so docsNode holds at 140/90/34) (+4 for the CG-OBS/1 observation ledger (this push): `packages/agent-commerce/observations.mjs` · `scripts/aer1-observations.mjs` · `test/integrations/aer1-observations.test.mjs` · `docs/AER1-OBSERVATION-LEDGER.md` - the page carries one `text` fence so docsNode holds at 140/89/33; re-measured against the committed tree) (+5 for the MCP 0.1.3 reliability surface (this push): `docs/agent-commerce-mcp-compatibility.md` · `docs/agent-commerce-mcp-security.md` · `docs/releases/0.1.3.md` · `examples/agent-commerce-mcp/README.md` · `examples/agent-commerce-mcp/run.mjs` — the three docs are fence-free prose, the example README's blocks are `text`, and the runnable example is referenced by command, so docsNode stays 139/83/32; re-measured against the committed tree; +2 for the pilot SOW and report form (this push): `docs/PILOT-SOW.md` · `docs/PILOT-REPORT-TEMPLATE.md` — both fence-free prose, so docsNode holds at 139/83/32; +3 arrived on main before this pin moved (#83 announcement note, #85 DDE SDK/API reference desk); +9 for the positioning and investment-readiness pack (this push): `COREGUARD-INVESTMENT-READINESS.md` · `docs/POSITIONING.md` · `docs/PRODUCT.md` · `docs/INVESTORS.md` · `docs/BUSINESS-MODEL.md` · `docs/PARTNERSHIPS.md` · `docs/TEAM.md` · `docs/SECURITY-REVIEWS.md` · `docs/EVIDENCE.md` — all fence-free prose, so docsNode holds at 139/83/32; +7 for the Salla Shop (Pi) pilot proposal package (this push): `docs/proposals/salla-shop-pi/README.md` · `TECHNICAL-PILOT-PROPOSAL-v1.0.md` (+ its `.ar.md`) · `MVP-SPEC-AND-TEST-PLAN.md` (+ its `.ar.md`) · `OUTREACH-DRAFTS.md` (+ its `.ar.md`) — all fence-free prose, so docsNode is unchanged; +2 from main since this branch opened (#76 published `docs/DOCS.html` · `docs/PARTNER.html`) - the audit counts the merged tree, so the pin moves with main; +5 for interop-demo/corpus-report/start-here (this push): `docs/START-HERE.md` · `docs/templates/AER1-CORPUS-RUN-REPORT-TEMPLATE.md` · `examples/agentbadge-receipt-seam/{README.md,run.mjs}` · `scripts/aer1-corpus-report.mjs` (+ docs-node contract/snapshot alignment); +2 for the anchor-layer vector (this push): `test/fixtures/var1-corpus-v1/anchor-unresolvable.json` · `test/integrations/var1-corpus-anchor-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; publication state for both vectors is kept in `docs/aer1-corpus-publication.json`+2 for the publication record and its guard (this push): `docs/aer1-corpus-publication.json` · `test/ci/corpus-publication-claim.test.js` — fence-free, so docsNode holds at 133/82/30; +2 for the CG-VECTOR/1 corpus vector (this push): `test/fixtures/var1-corpus-v1/present-consistent-nonconforming.json` · `test/integrations/var1-corpus-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; +3 for the public verify/numbers surfaces (2026-11-18 push): `scripts/public-numbers.mjs` · `docs/numbers.json` · `docs/NUMBERS.html` — all fence-free, so docsNode holds at 133/82/30; +2 for the luxe-pages identity merge/push (PR #65 follow-up fix, 2026-11-18): `docs/assets/coreguard-luxe.css` · `docs/assets/coreguard-luxe.js` (shared GitHub Pages assets); docsNode holds at 133/82/30; +4 for the npm-publication wave (2026-11-17 push): `packages/agent-commerce/package.json` · `packages/agent-commerce/bin/mcp.mjs` (stdio MCP bin wrapper) · `packages/agent-commerce/README.md` (its single `json` fence is MCP client configuration data, not a documented command) · `packages/agent-commerce/server.json` (MCP Registry server.json, schema 2025-12-11, validated against the live registry); +7 for the CG-TAS/1 trust-anchor wave (2026-11-17 push): `scripts/ladder/trust-anchor-set.mjs` · `scripts/ladder/provenance-fuzz.mjs` · `test/integrations/trust-anchor-set.test.mjs` · `test/integrations/provenance-fuzz.test.mjs` · `test/integrations/provenance-mutations.test.mjs` · `docs/AER1-TRUST-ANCHOR-SET-SPEC-V1-DRAFT.md` · `docs/owner-execution/REVIEWER-SELECTION-RUBRIC-2026-11-17.md` — the two docs are command-free prose, so docsNode holds at 133/82/30; +6 for the bilingual reviewer-deliverable contracts (2026-11-17 push): `test/ci/demo-script-contract.test.js` · `test/ci/bilingual-pairs.test.js` · `docs/i18n-pairs.json` · `docs/reviewer-demo-script-2026-09-ar.md` · `docs/sep-receipt-semantics-draft-2026-11-11-ar.md` · `docs/STELLAR-INTEGRATION-GUIDE-ar.md` — fence-free additions, docsNode unchanged; +4 for the adoption instruments (this push): `docs/loi/README.md` · `docs/loi/LOI-AER1-ZAMBO-2026-11-16.md` · `docs/loi/LOI-PILOT-STELLAR-2026-11-16.md` · `docs/AUDIT-READINESS-PACK-2026-11-16.md` — the command blocks are `text` fences, not `bash`, so docsNode holds at 133/81/30; +8 for the composed authorization firewall (this push): `packages/agent-commerce/firewall.mjs` · `packages/agent-commerce/policy-context.mjs` · `test/integrations/agent-commerce-firewall.test.mjs` · `examples/agent-commerce-firewall/{run.mjs,README.md,artifacts.json}` · `docs/agent-commerce-firewall-2026-11-16.md` · `docs/assets/badges/ci-1694-tests.svg` — all fence-free, so docsNode holds at 133/81/30; +25 for the agent-commerce family push: `docs/AGENT-COMMERCE-SECURITY-SPEC-V1.md` · `docs/agent-commerce-dashboard.html` · `docs/agent-commerce-console.html` · `docs/agent-commerce-funding-and-partnerships-2026-11-14.md` · the five dated instruments `docs/agent-commerce-openai-outreach-dossier-2026-11-15.md` · `docs/partner-outreach-messages-2026-11-15.md` · `docs/agentic-commerce-weekly-opportunities-2026-11-15.md` · `docs/agent-commerce-integration-guide-2026-11-15.md` · `docs/agent-commerce-tech-video-script-2026-11-15.md` (all fence-free so docsNode holds at 133/79/30) · `packages/agent-commerce/{index.mjs,index.d.ts,http.mjs,mcp.mjs,risk.mjs}` · 7 agent-commerce test files · 3 example files (`examples/agent-commerce-security-suite` README/artifacts/run.mjs) · `docs/assets/badges/ci-1673-tests.svg` (README pointed at it; the file was NEVER committed — the badge 404'd until the 2026-11-16 push shipped the count-matched `ci-1694-tests.svg` and re-pointed the href); then +1 for `docs/PILOT-KIT.md` (this push) - the two-page pilot offer: two-week scope, measurable success criteria, and the exact third-party-verifiable artifact, fence-free so docsNode holds at 133/79/30; +7 for the execution-trust layer: `examples/execution-trust/run.mjs` · `examples/execution-trust/verify-third-party.mjs` · `test/integrations/execution-trust-demo.test.mjs` · `docs/EXECUTION-TRUST-LAYER.md` · `docs/COMPETITIVE-LANDSCAPE.md` · `docs/SCF-BUILD-APPLICATION-V3.md` · `docs/DEVELOPER-QUICKSTART.md` — all fence-free, so docsNode holds at 133/79/30; +4 for the agentic-commerce approval-binding kit (this push): `examples/agent-commerce-approval-binding/run-demo.js` · `examples/agent-commerce-approval-binding/artifacts.json` · `examples/agent-commerce-approval-binding/README.md` · `docs/agent-commerce-moment-chatgpt-wallet-2026-11-14.md` — the offline demo (fence-free, docsNode unchanged) + the dated instrument (fence-free, zero test counts); +3 for the SCF RFP-2 submission kit (this push): `docs/SCF-46-RFP2-XDR-AUDIT-SUBMISSION-2026-11-13.md` · `scripts/scf-rfp2-sighting-repro.mjs` · `docs/evidence/scf-rfp2-sighting-repro.json` - the dated submission instrument (fence-free, docsNode unchanged) + its offline deterministic sighting-reproduction evidence (the js-stellar-sdk#1766 ordering-divergence class + 4 synthetic byte-round-trip-verified corpus entries, no key material committed); +4 for the PSAR/1 pre-sign receipt kit (this push): `packages/stellar/presign.mjs` · `test/integrations/stellar-presign.test.mjs` · `examples/stellar-presign/demo.mjs` · `docs/freighter-presign-integration-proposal-2026-11-12.md`; +1 for `docs/psar-security-review-2026-11-12.md` (the PSAR/1 critical self-review: the three security questions answered line-referenced with named boundaries); then +7 for the signed-envelope threat model, the replay vector + its generator, the field-tamper and replay tests, and the SCF readiness audit; +1 for `scripts/agent-gate-freighter-attest.mjs`; +4 for the browser demo — `examples/agent-gate-browser/serve.mjs`, `examples/agent-gate-browser/index.html`, `test/integrations/agent-gate-browser-demo.test.mjs`, `docs/assets/badges/ci-1539-tests.svg`; +2 for `scripts/agent-gate-testnet-sign.mjs` and `docs/evidence/agent-gate-testnet-signature.json`; the signed-envelope batch added `packages/agent-gate/adapters/stellar-xdr.mjs` · `packages/agent-gate/adapters/freighter.mjs` · `packages/agent-gate/verify-cli.mjs` · `packages/agent-gate/demo/cli-flow.mjs` · `scripts/agent-gate-bench.mjs` · `test/integrations/agent-gate-envelope.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; the untracked `examples/stellar-integration-pilot/` is NOT counted — it is not in `git ls-files`) (+1 parallel-session deliverable adopted in the reconciliation: `docs/deploy-stamp-id.txt` — the deploy stamp recorded by the owner's parallel Codebuff session; +4 owner-authorized deploy cycle: `docs/OWNER-DECISIONS-2026-11-08.md` · `scripts/stellar-soroban-authorized-deploy.mjs` · `test/integrations/stellar-soroban-authorized-deploy.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; +2 hardening-batch final reports, 2026-11-07 dated instruments SHA-pinned to `ea7e154`: `docs/FINAL-REPORT-2026-11-07-ar.md` · `docs/FINAL-REPORT-2026-11-07.md`; +3 — `docs/CLAIMS-TAXONOMY.md` · `test/ci/doc-numbers.test.js` · `docs/assets/badges/ci-1451-tests.svg` · then +2 CG-BDG/1 badge package: packages/badge/package.json · packages/badge/README.md; +1 funded-swap runner +1 measured executed artifact +1 CI badge plate +1 SCF-46 pack: `scripts/stellar-dex-swap-executed.mjs` · `docs/evidence/stellar-dex-swap-executed.json` · `docs/assets/badges/ci-1436-tests.svg` · `docs/SCF-46-INTEREST-FORM-READY-2026-11-06.md`; earlier: +1 CI badge docs/assets/badges/ci-1433-tests.svg; +2 soroban commit: scripts/stellar-soroban-commit-executed.mjs · docs/evidence/stellar-soroban-commit-executed.json; earlier: +7 executed-evidence artifacts & runners: scripts/stellar-agent-gate-executed.mjs · scripts/stellar-dex-gate-real.mjs · scripts/universal-shield-executed.mjs · test/integrations/execution-evidence-contract.test.mjs · docs/evidence/stellar-agent-gate-executed.json · docs/evidence/stellar-dex-gate-executed.json · docs/evidence/universal-dapp-shield-executed.json; from the trust-gate/legal-node/lab/bot surge: +1 docs/TRUST.md, +1 docs/VERIFY-BOT.md, +1 docs/LABS.md, +1 LICENSE.md; +1 test/fixtures/create-meta-v4.b64.txt from the CI-portability fix — the STELLAR/1 v4 create-result fixture moved IN-tree from a dev Temp path; +5 for the product-5 push (this push): `packages/agent-commerce/attest.mjs` · `test/integrations/agent-commerce-attestation.test.mjs` · `examples/agent-commerce-attestation/{run.mjs,README.md,artifacts.json}` (all fence-free so docsNode holds at 133/79/30)) | `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` | | Docs-node contract | **140 executed · 91 skip-listed · 34 docs covered** (+6 executed · +1 skip-listed · +2 docs covered for interop-demo/corpus-report/start-here (this push): `docs/START-HERE.md` and `docs/templates/AER1-CORPUS-RUN-REPORT-TEMPLATE.md` now run in the docs-node sandbox (AER-1 corpus report via vendored fixture placeholders, execution-trust/var1-pilot-kit/agentbadge-seam staged); +0 for the CG-TAS/1 wave (2026-11-17 push): the frozen spec `docs/AER1-TRUST-ANCHOR-SET-SPEC-V1-DRAFT.md` and the owner instrument `docs/owner-execution/REVIEWER-SELECTION-RUBRIC-2026-11-17.md` are command-free prose (0 documented commands), docsNode unchanged; (+0 for the composed firewall docs (this push): the dated instrument `docs/agent-commerce-firewall-2026-11-16.md`, the example README `examples/agent-commerce-firewall/README.md` and spec §7 item 11 are fence-free — 0 documented commands, docsNode unchanged; +1 executed · +1 covered doc: `docs/freighter-presign-integration-proposal-2026-11-12.md` - its single `npm run stellar:presign` fence executes the offline PSAR arc in the sandbox; +2 executed · +1 covered doc: CONTRIBUTING.md joins the covered-docs list - its claim-verification section adds the two documented verify-claims commands (`--manifest-check`, `--claim CG-BTY-001 --pr-url .../pull/51`) (PR #52); +6 executed · +1 covered doc: the Stellar DEX integration example (PR #51) - its bilingual README documents the three example commands in both the EN and the AR section, and the example README joins the covered-docs list; +2 executed from the signed-envelope documentation, where the gate spec's own verification arms entered the fence; +5 executed from the README's Stellar mainnet section: all five offline Stellar re-derivation arms joined the verify fence — `node scripts/stellar-soroban-commit-executed.mjs --verify` · `node scripts/stellar-dex-swap-executed.mjs --verify` · `node scripts/stellar-dex-gate-real.mjs --verify` · `node scripts/stellar-agent-gate-executed.mjs --verify` · `node scripts/universal-shield-executed.mjs --verify`; earlier: +4 executed/+3 skips from the trust-gate surge: `docs/TRUST.md` contributes the independent-verify ladder arms and `docs/LABS.md` the evidence/dispute package arms, each with named skips; `docs/VERIFY-BOT.md` and `LICENSE.md` are covered fence-free; earlier: (+2 executed: the README Badge Shield's `node scripts/badge-wall.mjs --audit` / regen arm re-derives all 7 plate digests offline; skips unchanged: the live Stellar-testnet demo (`npm run stellar:demo` / `examples/stellar-verify/demo.mjs`) is external-network, owned by `examples/stellar-verify/demo.mjs`, not a docs contract; existing: `docs/PRODUCTS.md` skip-listed as text catalog; the two reader pages `EXECUTIVE-SUMMARY.md`/`HOW-TO-EVALUATE.md` each contribute an executed `node demo.mjs`/`claims:audit`/`boundary:audit` arm and skip-listed `npm ci`/`npm test` = 2+4 skips) | `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` | | Claim registry CG-CL/1 | **35 claims · 21 VERIFIED · 14 not · 0 violations** | `npm run claims:audit` — `docs/claims-registry.json`; 11 of 35 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 | | Badge system CG-BDG/1 | **2 specimens · issuerCount 0 (third-party) · 1 first-party self-issuance CG-CS/1 SELF DF6E20C032A8 · nothing issued to any counterparty** | `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; issuance is an owner decision (`npm run badge --issue --record --i-am-the-owner-and-competent-to-issue` mints ISSUED artwork only from a committed 6/6 CG-CS/1 record and logs it in `docs/badge-issuances.json` — nothing auto-issues) | diff --git a/docs/STELLAR-KILLER-FEATURES.md b/docs/STELLAR-KILLER-FEATURES.md index 7894217f..274b0a49 100644 --- a/docs/STELLAR-KILLER-FEATURES.md +++ b/docs/STELLAR-KILLER-FEATURES.md @@ -45,4 +45,4 @@ Targets: Freighter, Albedo, xBull, Lobstr, Rabet, Soroswap, Phoenix, Aquarius, B - Live testnet demo: npm run stellar:demo (real tx verified + replayed) - Packages: packages/stellar/, packages/stellar-agent/, packages/stellar-killer/, packages/agent-gate/ - Tests: all passing, CI green -- Measured: 2502 tests, 1928 files / 0 violations, 0 red checks (state-snapshot) +- Measured: 2502 tests, 1930 files / 0 violations, 0 red checks (state-snapshot) diff --git a/docs/TRUST-CENTER-en.html b/docs/TRUST-CENTER-en.html index 0906a0c0..8bd1f6fd 100644 --- a/docs/TRUST-CENTER-en.html +++ b/docs/TRUST-CENTER-en.html @@ -36,9 +36,9 @@

CoreGuard Trust Center

Every number on this page is measured from a committed artifact, and every claim is classified honestly — no slogans.

-
Measured: 2026-12-03T18:39:56Z
Commit: 7d2ced9d
State snapshot
Arabic
+
Measured: 2026-12-03T19:05:11Z
Commit: bc7af96e
State snapshot
Arabic
Tests
2,502
machine-pinned pass total
-
Boundary audit
1,928 files
0 violations
+
Boundary audit
1,930 files
0 violations
Docs contract
140 / 91 / 34
executed / skip-listed / docs covered
Claims
21 / 35
verified of total
Badges issued
0
2 design specimens
diff --git a/docs/TRUST-CENTER.html b/docs/TRUST-CENTER.html index d48779a0..77474bc7 100644 --- a/docs/TRUST-CENTER.html +++ b/docs/TRUST-CENTER.html @@ -36,9 +36,9 @@

مركز الثقة — CoreGuard

كل رقم في هذه الصفحة مقيس من مستودع مُلتزَم، وكل ادعاء مصنّف بصدق — لا شعارات.

-
قياس: 2026-12-03T18:39:56Z
الالتزام: 7d2ced9d
+
قياس: 2026-12-03T19:05:11Z
الالتزام: bc7af96e
الاختبارات
2,502
مجموع النجاح المثبّت في اللقطة
-
تدقيق الحدود
1,928 ملفًا
0 مخالفة
+
تدقيق الحدود
1,930 ملفًا
0 مخالفة
عقد الوثائق
140 / 91 / 34
مُنفّذ / مستثنى بسبب / وثائق مغطّاة
الادعاءات
21 / 35
مُتحقَّق منها مقابل الإجمالي
الشارات الصادرة
0
2 نموذج تصميم
diff --git a/docs/TWITTER-CONTENT.md b/docs/TWITTER-CONTENT.md index 85d3ecd8..c060ba3e 100644 --- a/docs/TWITTER-CONTENT.md +++ b/docs/TWITTER-CONTENT.md @@ -100,7 +100,7 @@ https://github.com/coreguard-global/CoreGuard CoreGuard is open source. Every claim is machine-verified. 2502 tests passing. -1928 files scanned. +1930 files scanned. 0 boundary violations. 18/18 release gate legs. diff --git a/docs/adoption-dashboard.md b/docs/adoption-dashboard.md index 0b8ff534..5c9171c1 100644 --- a/docs/adoption-dashboard.md +++ b/docs/adoption-dashboard.md @@ -53,7 +53,7 @@ default. | Metric | Value | |---|---| | Test suite | 2502 | -| Boundary audit | 1928 files / 0 violations | +| Boundary audit | 1930 files / 0 violations | | Docs-node contract | 140 executed · 91 skip-listed · 34 covered | | Live-submission harness | PEOPLES_COURT_HARNESS_READY | diff --git a/docs/assets/badges/manifest.json b/docs/assets/badges/manifest.json index 4d05da50..e753ead3 100644 --- a/docs/assets/badges/manifest.json +++ b/docs/assets/badges/manifest.json @@ -1,8 +1,8 @@ { "schema": "CG-BADGES/1", "generatedFrom": "docs/state-snapshot.json", - "measuredAtUtc": "2026-12-03T18:39:56Z", - "gitCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", + "measuredAtUtc": "2026-12-03T19:05:11Z", + "gitCommit": "bc7af96e77d03662ad4e5ef9da0c1f2abded0b14", "badges": [ { "id": "tests", @@ -15,7 +15,7 @@ "id": "boundary", "file": "state-boundary.svg", "label": "boundary", - "value": "1928 files · 0 violations", + "value": "1930 files · 0 violations", "source": "docs/state-snapshot.json#boundaryAudit" }, { diff --git a/docs/assets/badges/state-boundary.svg b/docs/assets/badges/state-boundary.svg index 1bf532d3..a34fad0e 100644 --- a/docs/assets/badges/state-boundary.svg +++ b/docs/assets/badges/state-boundary.svg @@ -1,11 +1,11 @@ - - boundary: 1928 files · 0 violations + + boundary: 1930 files · 0 violations boundary - 1928 files · 0 violations + 1930 files · 0 violations diff --git a/docs/claims-registry.json b/docs/claims-registry.json index 6e84dd45..e1da3bc3 100644 --- a/docs/claims-registry.json +++ b/docs/claims-registry.json @@ -54,7 +54,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-BOUNDARY-CLEAN", @@ -69,12 +69,12 @@ "recheck": "npm run boundary:audit", "external": false, "derived": { - "filesScanned": 1928, + "filesScanned": 1930, "violations": 0 }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-DOCS-NODE-EXECUTED", @@ -97,7 +97,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-L1-CHAIN-CONFIRMED", @@ -116,7 +116,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-L3-PROOFS", @@ -134,7 +134,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-L4-RESEARCH", @@ -153,7 +153,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-CG-ZK-1-SPEC", @@ -186,7 +186,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-ZK-ENVELOPE-BINDING", @@ -210,7 +210,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-ZK-NO-BACKEND", @@ -234,7 +234,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-LIVE-CHAIN-AUTHORITY", @@ -248,7 +248,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-ADAPTERS-DRY-RUN", @@ -269,7 +269,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-WEBHOOK-RECEIVER", @@ -293,7 +293,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-WEBHOOK-DELIVERIES", @@ -307,7 +307,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-X402-GATE", @@ -327,7 +327,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-X402-LIVE-PAYMENT", @@ -346,7 +346,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-REPLAY-LAB", @@ -370,7 +370,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-SANDBOX-OFFLINE", @@ -391,7 +391,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-STELLAR-PRESIGN-RECEIPT", @@ -427,7 +427,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-STELLAR-OWNER-SETTLEMENT", @@ -456,7 +456,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-ATTACK-LAB", @@ -477,7 +477,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-CONFORMANCE-EMPTY", @@ -497,7 +497,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-BADGE-NOT-ISSUED", @@ -516,7 +516,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-BADGE-VERIFIABLE", @@ -564,7 +564,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-PRICES-LOCKED", @@ -585,7 +585,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-REVENUE-ZERO", @@ -604,7 +604,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-NAMED-INTEGRATOR", @@ -622,7 +622,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-REPUTATION-UNPROVEN", @@ -642,7 +642,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-RISK-FINDINGS", @@ -662,7 +662,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-OWNER-SIGNOFF", @@ -681,7 +681,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-INDEPENDENT-REVIEW", @@ -695,7 +695,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-BUILD-ADOPTION-INDEPENDENT", @@ -717,7 +717,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-ADOPTION-EXTERNAL-VERIFIERS", @@ -733,7 +733,7 @@ "derived": {}, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-RELEASE-TRIGGER", @@ -753,7 +753,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-CG-TAS-1", @@ -773,7 +773,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" }, { "id": "CL-PROV-CAMPAIGNS-1", @@ -793,7 +793,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T18:39:56Z" + "asOf": "2026-12-03T19:05:11Z" } ], "rules": [ diff --git a/docs/evidence-passport-v2.json b/docs/evidence-passport-v2.json index 44f79738..a9716fe0 100644 --- a/docs/evidence-passport-v2.json +++ b/docs/evidence-passport-v2.json @@ -102,7 +102,7 @@ ], "engineering": { "testsTotal": 2502, - "filesScanned": 1928, + "filesScanned": 1930, "violations": 0, "docsNode": { "executed": 140, diff --git a/docs/integration-registry.json b/docs/integration-registry.json index 55b3b9b3..23037b77 100644 --- a/docs/integration-registry.json +++ b/docs/integration-registry.json @@ -1,7 +1,7 @@ { "platform": { "testsTotal": 2502, - "filesScanned": 1928, + "filesScanned": 1930, "violations": 0, "peoplesCourtHarness": "PEOPLES_COURT_HARNESS_READY", "docsNode": { diff --git a/docs/numbers.json b/docs/numbers.json index ade8eb2c..2ada5528 100644 --- a/docs/numbers.json +++ b/docs/numbers.json @@ -2,8 +2,8 @@ "schema": "CG-NUMBERS/1", "generatedBy": "scripts/public-numbers.mjs", "generatedFrom": "docs/state-snapshot.json", - "measuredAtUtc": "2026-12-03T18:39:56Z", - "measuredOnCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", + "measuredAtUtc": "2026-12-03T19:05:11Z", + "measuredOnCommit": "bc7af96e77d03662ad4e5ef9da0c1f2abded0b14", "metrics": [ { "id": "tests", @@ -16,7 +16,7 @@ { "id": "boundary-files", "label": "Boundary audit — files scanned", - "value": 1928, + "value": 1930, "unit": "files", "source": "docs/state-snapshot.json#boundaryAudit.filesScanned", "note": "Tracked files from `git ls-files` (ignored trees such as var/ are not counted)." diff --git a/docs/state-snapshot.json b/docs/state-snapshot.json index 404714f2..ca9b71aa 100644 --- a/docs/state-snapshot.json +++ b/docs/state-snapshot.json @@ -1,10 +1,10 @@ { - "measuredAtUtc": "2026-12-03T18:39:56Z", - "gitCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", + "measuredAtUtc": "2026-12-03T19:05:11Z", + "gitCommit": "bc7af96e77d03662ad4e5ef9da0c1f2abded0b14", "commitsAheadOfV060": 740, "testsTotal": 2502, "boundaryAudit": { - "filesScanned": 1928, + "filesScanned": 1930, "violations": 0, "check": "PASS" }, diff --git a/fixtures/aer1/cg-zk1-hop-binding-draft-02.jsonc b/fixtures/aer1/cg-zk1-hop-binding-draft-02.jsonc new file mode 100644 index 00000000..68c0c1c3 --- /dev/null +++ b/fixtures/aer1/cg-zk1-hop-binding-draft-02.jsonc @@ -0,0 +1,75 @@ +{ + "fixture_set": "cg-zk1-aer1-hop-binding-draft-02", + "status": "DRAFT_FOR_DISCUSSION", + "claim_boundary": "Draft fixture only. Not a profile, not stability, not conformance. VERIFIED != SAFE; PASS != SAFE; proofBackend=NOT_BUILT; zkClaim=NONE; proofVerdict=NOT_PROVEN; L4=RESEARCH / NOT CLAIMABLE.", + "join_key": { + "binding": "receiptCommitment (digest only)", + "locator_only": ["receipt_id", "anchored_digest"] + }, + "aer1_outcomes": [ + "verified", + "verification failed", + "rejected: unresolvable record", + "not checked", + "absent" + ], + "hop_fields": ["prior_receipt_id", "prior_receiptCommitment", "canonical_input_digest"], + "cases": [ + { + "case_id": "HB-01-present-match", + "record": { + "receipt_id": "r-001", + "receiptCommitment": "sha256:", + "prior_receipt_id": "r-000", + "prior_receiptCommitment": "sha256:", + "canonical_input_digest": "sha256:" + }, + "reference": { + "prior_receipt_id": "r-000", + "prior_receiptCommitment": "sha256:", + "canonical_input_digest": "sha256:" + }, + "expected": { + "hop_binding_check": "verified", + "record_check": "proceeds independently", + "envelope_family_check": "not checked", + "envelope_family_annotation": "CG-ZK/1/example-family" + } + }, + { + "case_id": "HB-02-divergent-prior-binding", + "record": { + "receipt_id": "r-002", + "receiptCommitment": "sha256:", + "prior_receipt_id": "r-000", + "prior_receiptCommitment": "sha256:", + "canonical_input_digest": "sha256:" + }, + "reference": { + "prior_receipt_id": "r-000", + "prior_receiptCommitment": "sha256:", + "canonical_input_digest": "sha256:" + }, + "expected": { + "hop_binding_check": "verification failed", + "record_check": "proceeds independently", + "envelope_family_check": "not checked", + "envelope_family_annotation": "CG-ZK/1/example-family" + } + } + ], + "fixture_notes": [ + { + "case_id": "HB-03-missing-hop-binding-field", + "status": "NOTE_ONLY_NOT_MAIN_CASE", + "description": "A required hop-binding field is missing entirely; this is absent, not divergent.", + "expected": { "hop_binding_check": "absent" } + }, + { + "case_id": "RUNNER-01-record-only", + "status": "NOTE_ONLY", + "description": "A runner that has only the record can check presence, not agreement. It must not infer the reference.", + "expected": { "hop_binding_check": "not checked" } + } + ] +} diff --git a/scripts/check-cg-zk1-hop-binding.mjs b/scripts/check-cg-zk1-hop-binding.mjs new file mode 100644 index 00000000..bdf4c0fe --- /dev/null +++ b/scripts/check-cg-zk1-hop-binding.mjs @@ -0,0 +1,102 @@ +#!/usr/bin/env node +/** + * check-cg-zk1-hop-binding — tiny presence + agreement checker for + * fixtures/aer1/cg-zk1-hop-binding-draft-02.jsonc + * + * Presence AND agreement are separate. A runner with only the record can check + * presence, not agreement; agreement is never inferred. The `reference` block is + * outside the record and is never a second identity nor a wire artifact. + * + * DRAFT_FOR_DISCUSSION only. Not a proof backend, not conformance, not safe. + * VERIFIED != SAFE; PASS != SAFE; proofBackend=NOT_BUILT; zkClaim=NONE; + * proofVerdict=NOT_PROVEN; L4=RESEARCH / NOT CLAIMABLE. + * + * Usage: + * node scripts/check-cg-zk1-hop-binding.mjs [fixture] + * node scripts/check-cg-zk1-hop-binding.mjs [fixture] --record-only + */ +import { readFileSync } from "node:fs"; + +const argv = process.argv.slice(2); +const RECORD_ONLY = argv.includes("--record-only"); +const flagless = argv.filter((a) => !a.startsWith("--")); +const FIXTURE = flagless[0] ?? new URL("../fixtures/aer1/cg-zk1-hop-binding-draft-02.jsonc", import.meta.url); + +const OUTCOMES = ["verified", "verification failed", "rejected: unresolvable record", "not checked", "absent"]; +const HOP_FIELDS = ["prior_receipt_id", "prior_receiptCommitment", "canonical_input_digest"]; +const REF_FIELDS = ["prior_receipt_id", "prior_receiptCommitment", "canonical_input_digest"]; +const RECORD_CHECK = "proceeds independently"; + +// Minimal JSONC -> JSON: strip line/block comments + trailing commas (strings preserved). +function parseJsonc(text) { + let out = "", inStr = false, esc = false; + for (let i = 0; i < text.length; i++) { + const c = text[i], n = text[i + 1]; + if (inStr) { out += c; if (esc) esc = false; else if (c === "\\") esc = true; else if (c === '"') inStr = false; continue; } + if (c === '"') { inStr = true; out += c; continue; } + if (c === "/" && n === "/") { while (i < text.length && text[i] !== "\n") i++; out += "\n"; continue; } + if (c === "/" && n === "*") { i += 2; while (i < text.length && !(text[i] === "*" && text[i + 1] === "/")) i++; i++; continue; } + out += c; + } + out = out.replace(/,(\s*[}\]])/g, "$1"); + return JSON.parse(out); +} + +function present(v) { return typeof v === "string" && v.length > 0; } +function hopBindingCheck(record, reference) { + const has = HOP_FIELDS.every((f) => present(record?.[f])); + if (!has) return "absent"; // missing required field is absent, not divergent + if (RECORD_ONLY || !reference) return "not checked"; // presence only; agreement not checked + const agree = REF_FIELDS.every((f) => present(reference[f]) && record[f] === reference[f]); + return agree ? "verified" : "verification failed"; +} + +function fail(msg) { console.error("CG-ZK1-HOP-BINDING: FAIL", msg); process.exit(1); } + +let doc; +try { doc = parseJsonc(readFileSync(FIXTURE, "utf8")); } +catch (e) { fail(`cannot read/parse fixture: ${e.message}`); } + +if (doc.fixture_set !== "cg-zk1-aer1-hop-binding-draft-02") fail(`fixture_set drift: ${doc.fixture_set}`); +if (doc.status !== "DRAFT_FOR_DISCUSSION") fail(`status must stay DRAFT_FOR_DISCUSSION, got ${doc.status}`); +if (JSON.stringify(doc.aer1_outcomes) !== JSON.stringify(OUTCOMES)) fail(`aer1_outcomes drift: ${JSON.stringify(doc.aer1_outcomes)}`); +if (!/VERIFIED != SAFE/.test(doc.claim_boundary ?? "") || !/proofBackend=NOT_BUILT/.test(doc.claim_boundary ?? "")) fail("claim boundary missing"); + +const cases = Array.isArray(doc.cases) ? doc.cases : []; +if (cases.length !== 2) fail(`expected 2 main cases, got ${cases.length}`); + +for (const c of cases) { + const rec = c.record ?? {}; + const ref = c.reference ?? null; + const exp = c.expected ?? {}; + // wire fields unprefixed; no presented_ prefix anywhere in the record + for (const k of Object.keys(rec)) if (k.startsWith("presented_")) fail(`${c.case_id}: presented_ prefix in record (${k})`); + if (!present(rec.receipt_id) || !present(rec.receiptCommitment)) fail(`${c.case_id}: receipt_id/receiptCommitment required`); + // reference sits outside record, expected values only, not a second identity + if (!ref || typeof ref !== "object") fail(`${c.case_id}: reference block required outside record`); + if ("receipt_id" in ref || "receiptCommitment" in ref) fail(`${c.case_id}: reference must not carry receipt identity`); + const refKeys = Object.keys(ref).sort(); + if (JSON.stringify(refKeys) !== JSON.stringify([...REF_FIELDS].sort())) fail(`${c.case_id}: reference keys drift ${JSON.stringify(refKeys)}`); + + const hop = RECORD_ONLY ? hopBindingCheck(rec, null) : hopBindingCheck(rec, ref); + const recordCheck = RECORD_CHECK; // independent of hop verdict; local verdict not folded into record_check + const envelopeFamilyCheck = "not checked"; + const annotation = "CG-ZK/1/example-family"; + + const want = RECORD_ONLY ? "not checked" : exp.hop_binding_check; + if (hop !== want) fail(`${c.case_id}: hop_binding_check ${JSON.stringify(hop)} != expected ${JSON.stringify(want)}`); + if (!RECORD_ONLY) { + if (exp.record_check !== RECORD_CHECK) fail(`${c.case_id}: expected record_check must be ${JSON.stringify(RECORD_CHECK)}`); + if (recordCheck !== exp.record_check) fail(`${c.case_id}: record_check ${recordCheck} != ${exp.record_check}`); + if (exp.envelope_family_check !== envelopeFamilyCheck) fail(`${c.case_id}: envelope_family_check drift`); + if (exp.envelope_family_annotation !== annotation) fail(`${c.case_id}: envelope_family_annotation drift`); + if (!OUTCOMES.includes(exp.hop_binding_check)) fail(`${c.case_id}: unknown outcome ${exp.hop_binding_check}`); + } +} + +// note-only cases must stay note-only +for (const n of (doc.fixture_notes ?? [])) if (n.status && !String(n.status).includes("NOTE_ONLY")) fail(`note ${n.case_id} not note-only`); + +console.log("CG-ZK1-HOP-BINDING: OK", + RECORD_ONLY ? "(record-only: presence checked, agreement not checked)" : "(presence + agreement checked; record_check unified)", + "DRAFT_FOR_DISCUSSION; VERIFIED != SAFE; proofBackend=NOT_BUILT; proofVerdict=NOT_PROVEN");