diff --git a/AGENTS.md b/AGENTS.md index 6fd660f1..65ed06a4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -158,7 +158,7 @@ New entries append chronologically and are never renumbered — a gap in the tag ## Files That Change Together -- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2489 ↔ 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). +- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2495 ↔ 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). - `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. - 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": {"": {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). - `verification/cg-assurance-verify.ps1` self-test count (21) ↔ `selftest.tap` frozen bytes ↔ README/STATUS claims (21/21). diff --git a/README.md b/README.md index 174fdfcc..5e80705c 100644 --- a/README.md +++ b/README.md @@ -321,7 +321,7 @@ Then: **[Developer quickstart](docs/DEVELOPER-QUICKSTART.md)** (three calls) · | Independent Verifier | SHIPPED | JS / Rust-WASM / Python verifiers. Trust never depends on us running a hosted check. | مُحققات JS و Rust-WASM و Python. الثقة مش معتمدة إننا نشغّل فحص عندنا. | | Badge Shield | SHIPPED | Embeddable verification badges rendered only from anchored manifests. | شارات تحقق تتحط في أي موقع، بتطلع بس من بيانات متثبّتة على السلسلة. | | ★ PSAR/1 Pre-Sign Authorization Receipts | SHIPPED | A Stellar transaction carries its own authorization proof before any signature — PASS / BLOCK, bound to the exact XDR bytes. 37 tests; v1 does not semantically decode XDR. | معاملة Stellar بتشيل إثبات التصريح بتاعها قبل أي توقيع — PASS أو BLOCK، مربوطة بنفس بايتات المعاملة بالظبط. 37 اختبار؛ والإصدار الأول مش بيفك محتوى XDR دلاليًا. | -| ★ Agent Commerce Security — AC-FW/1 · CGCR/1 · AGR/1 | SHIPPED | Agent authorization firewall, verifiable consent receipts and risk engine — SDK, MCP server and REST API. 2489/2489 tests, offline and fail-closed. | جدار تفويض للوكلاء، وإيصالات موافقة قابلة للتحقق، ومحرك مخاطر — SDK وخادم MCP وREST API. ‏2453/2453 اختبار، دون اتصال ورفض آمن. | +| ★ Agent Commerce Security — AC-FW/1 · CGCR/1 · AGR/1 | SHIPPED | Agent authorization firewall, verifiable consent receipts and risk engine — SDK, MCP server and REST API. 2495/2495 tests, offline and fail-closed. | جدار تفويض للوكلاء، وإيصالات موافقة قابلة للتحقق، ومحرك مخاطر — SDK وخادم MCP وREST API. ‏2453/2453 اختبار، دون اتصال ورفض آمن. | | CGXA/1 + CGXA-SOROBAN/1 — Execution Attestation | DRY_RUN | Offline attestation of the approval↔execution arc with Soroban consent-binding preparation. No broadcast; on-chain action is owner-gated. | شهادة دون اتصال لمسار الموافقة↔التنفيذ مع تجهيز ربط الموافقة على Soroban. بدون بث؛ التنفيذ على السلسلة بقرار المالك. | | Trust Gate · Labs · Verify Bot | RESEARCH | Investor portal (TRUST.md) live; CoreGuard Labs evidence lab DRAFT; Telegram/Discord verify bot PLAN_ONLY. | بوابة المستثمر (TRUST.md) شغالة؛ معمل الأدلة CoreGuard Labs مسودة؛ بوت التحقق لسه خطة. | | @coreguard/sdk + CLI | GATED | Two-line SDK integration and `npx coreguard demo`. 13-package npm closure, release-gated. | دمج في سطرين و`npx coreguard demo`. 13 حزمة npm بانتظار بوابة الإصدار. | @@ -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: **2489 / 2489 tests**, **1915 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: **2495 / 2495 tests**, **1917 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 @@ -755,7 +755,7 @@ CoreGuard answers one question with evidence: **did this execution conform to wh npm install # 2. Test + benchmark -npm test # 2489 tests (machine-pinned) — 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, executed-evidence contract (agent gate · real-book DEX gate · universal shield · first funded signed mainnet swap), the PSAR/1 pre-sign receipt suite (offline PASS/BLOCK demo), owner-authorized deploy battery +npm test # 2495 tests (machine-pinned) — 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, executed-evidence contract (agent gate · real-book DEX gate · universal shield · first funded signed mainnet swap), the PSAR/1 pre-sign receipt suite (offline PASS/BLOCK demo), owner-authorized deploy battery git config core.hooksPath .githooks # install the Pages settle pre-push guard — every main push waits for the Pages build npm run corpus # deterministic 73-scenario adversarial corpus npm run benchmark # 73/73 pass diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 8e8972bc..b6fa2d97 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -54,5 +54,5 @@ L4 is a protocol, not a library: [spec/CG-ZK-1.md](../spec/CG-ZK-1.md). The enve - **Playground (live):** [https://eslam-x.github.io/coreguard/PLAYGROUND.html](https://eslam-x.github.io/coreguard/PLAYGROUND.html) - **Demo:** `node demo.mjs` -- **Tests:** 2489 / 2489 passing • Boundary audit PASS · Release gate GATE_PASS +- **Tests:** 2495 / 2495 passing • Boundary audit PASS · Release gate GATE_PASS - **One-Pager:** [ONE-PAGER.md](ONE-PAGER.md) diff --git a/docs/COMMUNITY.md b/docs/COMMUNITY.md index 7c2b4490..c430c8cf 100644 --- a/docs/COMMUNITY.md +++ b/docs/COMMUNITY.md @@ -29,7 +29,7 @@ issue on the faucet**, not to our environment alone. (Confirmed by probing: > I'm building **CoreGuard**, an open-source, Core-native execution-verification > layer. The v0.1 implementation is public and CI-green: > -> • 2489 / 2489 tests +> • 2495 / 2495 tests > • 73/73 adversarial benchmarks > • a staged, funding-gated Core Testnet2 validation campaign > • deterministic trace normalization @@ -89,7 +89,7 @@ moderator). Fill-ready answers (adjust to whatever the form actually asks): |---|---| | Wallet address (tCORE2) | `0x6cB4796D54ED72105ec617c8850C91972a0d9469` | | GitHub / project URL | `https://github.com/coreguard-global/CoreGuard` | -| Reason (technical, no marketing) | I am developing CoreGuard, an open-source verification infrastructure project for Core-native Bitcoin DeFi. I need Testnet2 tCORE2 to deploy and test the EvidenceRegistry contract and perform on-chain proof anchoring. The project already has a public GitHub repository, 2489 / 2489 tests and 73/73 benchmarks, a deterministic trace/evidence pipeline, local fork-based anchoring, and a reproducible CI pipeline. The remaining integration step is a real Testnet2 deployment and on-chain anchorProof transaction, pending testnet funding. I need additional testnet funds to repeatedly deploy, test, and verify the contract under realistic conditions, including failed/tampered proof cases and independent verification. | +| Reason (technical, no marketing) | I am developing CoreGuard, an open-source verification infrastructure project for Core-native Bitcoin DeFi. I need Testnet2 tCORE2 to deploy and test the EvidenceRegistry contract and perform on-chain proof anchoring. The project already has a public GitHub repository, 2495 / 2495 tests and 73/73 benchmarks, a deterministic trace/evidence pipeline, local fork-based anchoring, and a reproducible CI pipeline. The remaining integration step is a real Testnet2 deployment and on-chain anchorProof transaction, pending testnet funding. I need additional testnet funds to repeatedly deploy, test, and verify the contract under realistic conditions, including failed/tampered proof cases and independent verification. | | How many tokens do you need? | 20–50 tCORE2 — deploy EvidenceRegistry once, then repeated integration + adversarial (tampered/failed proof) anchoring and independent on-chain verification. | Verifiable on request: the repo, CI, benchmarks, and the local fork anchor diff --git a/docs/CONTRIBUTOR-FUNNEL-en.md b/docs/CONTRIBUTOR-FUNNEL-en.md index 3c73ae46..788d52f9 100644 --- a/docs/CONTRIBUTOR-FUNNEL-en.md +++ b/docs/CONTRIBUTOR-FUNNEL-en.md @@ -15,7 +15,7 @@ npm ci npm test ``` -The pinned total is **2489** tests. Any count change must re-pin the snapshot: +The pinned total is **2495** tests. Any count change must re-pin the snapshot: ```text npm run state:repin ``` diff --git a/docs/CONTRIBUTOR-FUNNEL.md b/docs/CONTRIBUTOR-FUNNEL.md index 9a0fc404..72056cb1 100644 --- a/docs/CONTRIBUTOR-FUNNEL.md +++ b/docs/CONTRIBUTOR-FUNNEL.md @@ -15,7 +15,7 @@ npm ci npm test ``` -المجموع المثبّت: **2489** اختبارًا. أي تغيير في العدد يجب أن يُعيد تثبيت اللقطة: +المجموع المثبّت: **2495** اختبارًا. أي تغيير في العدد يجب أن يُعيد تثبيت اللقطة: ```text npm run state:repin ``` diff --git a/docs/COREDAO-KILLER-FEATURES.md b/docs/COREDAO-KILLER-FEATURES.md index 377e9cdd..707e98bc 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:** 2489 / 2489 npm tests, 1915 files / 0 violations, docs-node 140/91/34 — [state-snapshot.json](state-snapshot.json). +- **Measured repo state:** 2495 / 2495 npm tests, 1917 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/EVIDENCE-MATRIX.md b/docs/EVIDENCE-MATRIX.md index dde35bb3..51d2f29f 100644 --- a/docs/EVIDENCE-MATRIX.md +++ b/docs/EVIDENCE-MATRIX.md @@ -96,7 +96,7 @@ today and cannot adopt the latter today. ## Totals -Suite total: **2489 / 2489 pass**, machine-pinned in +Suite total: **2495 / 2495 pass**, machine-pinned in `docs/state-snapshot.json` (the only authoritative count in the repo). Boundary audit: **0 violations**; file count lives in the same snapshot. diff --git a/docs/EXECUTIVE-SUMMARY.md b/docs/EXECUTIVE-SUMMARY.md index ea2a9c4e..4a795153 100644 --- a/docs/EXECUTIVE-SUMMARY.md +++ b/docs/EXECUTIVE-SUMMARY.md @@ -25,8 +25,8 @@ CoreGuard is a fail-closed execution-truth layer for agent-to-agent jobs. Money | Item / العنصر | Value / القيمة | Source / المصدر | |---|---|---| -| **Test suite / مجموعة الاختبارات** | **2489 / 2489 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) | -| **Boundary audit / تدقيق الحدود** | **1915 files · 0 violations** | [`npm run boundary:audit`](../package.json) | +| **Test suite / مجموعة الاختبارات** | **2495 / 2495 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) | +| **Boundary audit / تدقيق الحدود** | **1917 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) | @@ -66,7 +66,7 @@ node demo.mjs ``` **Expected / المتوقع:** -- `npm test` → **2489 / 2489 pass, fail 0** +- `npm test` → **2495 / 2495 pass, fail 0** - `node demo.mjs` → shows **`UNKNOWN → HELD`** - `npm run claims:audit` → **CLAIM-AUDIT: PASS** - `npm run release:gate:independence` → **GATE_PASS** diff --git a/docs/FUNDING.md b/docs/FUNDING.md index 05e05daa..6d30eefb 100644 --- a/docs/FUNDING.md +++ b/docs/FUNDING.md @@ -43,7 +43,7 @@ CoreGuard is Core-native by design: ## Why us - **We already built it.** Not a pitch deck — a deterministic, tested, - adversarially benchmarked engine. **2489 / 2489 tests, + adversarially benchmarked engine. **2495 / 2495 tests, 73/73 adversarial benchmarks, anchor integrity VERIFIED live on Core Mainnet** (authoritative numbers: [`docs/STATUS.md`](STATUS.md)), and a staged Testnet2 hardening campaign (controlled validation) diff --git a/docs/GRANT-APPLICATION-CORE-DAO.md b/docs/GRANT-APPLICATION-CORE-DAO.md index 9d1ea686..c42065f3 100644 --- a/docs/GRANT-APPLICATION-CORE-DAO.md +++ b/docs/GRANT-APPLICATION-CORE-DAO.md @@ -15,8 +15,8 @@ CoreGuard is a verifiable execution truth layer for Bitcoin DeFi. It produces in CoreGuard produces cryptographic evidence of conformance that can be independently replayed and verified. It works across Core DAO, Stellar, and Pi Network. ### 4. Traction -- ✅ 2489 tests passing (machine-pinned) -- ✅ 1915 files, 0 boundary violations +- ✅ 2495 tests passing (machine-pinned) +- ✅ 1917 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 8f430142..0bea88e8 100644 --- a/docs/GRANT-APPLICATION-PI-NETWORK.md +++ b/docs/GRANT-APPLICATION-PI-NETWORK.md @@ -24,8 +24,8 @@ CoreGuard on Pi Network: ### 4. Traction - ✅ Pi Network package created (PI-NETWORK/1) - ✅ Pi Killer package created (PI-KILLER/1) -- ✅ 2489 tests passing -- ✅ 1915 files, 0 boundary violations +- ✅ 2495 tests passing +- ✅ 1917 files, 0 boundary violations - ✅ DRY_RUN status (honest — not claiming live) ### 5. Grant Request diff --git a/docs/HOW-TO-EVALUATE.md b/docs/HOW-TO-EVALUATE.md index 5092a2f6..fae5f5b6 100644 --- a/docs/HOW-TO-EVALUATE.md +++ b/docs/HOW-TO-EVALUATE.md @@ -29,7 +29,7 @@ npm test ``` **Expected / المتوقع:** -`ℹ tests 2489` · `ℹ pass 2453` · `ℹ fail 0` +`ℹ tests 2495` · `ℹ pass 2453` · `ℹ fail 0` This enforces the total against [`docs/state-snapshot.json`](state-snapshot.json). Any drift makes it fail. هذا المجموع مُقيد آليًا ضد لقطة الحالة المقاسة، وأي انحراف يفشل الاختبار. @@ -78,7 +78,7 @@ node demo.mjs ## Quick checklist | قائمة فحص سريعة -- [ ] `npm test` = **2489 / 2489 PASS** +- [ ] `npm test` = **2495 / 2495 PASS** - [ ] `claims:audit` = **PASS** - [ ] `boundary:audit` = **PASS** - [ ] `release:gate:independence` = **GATE_PASS** diff --git a/docs/INTEGRATION-MATRIX-en.md b/docs/INTEGRATION-MATRIX-en.md index a8f06977..2e35064c 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: **2489** · boundary files: **1915** · violations: **0** +- Tests: **2495** · boundary files: **1917** · violations: **0** - Docs contract: **140 / 91 / 34** diff --git a/docs/INTEGRATION-MATRIX.md b/docs/INTEGRATION-MATRIX.md index b68103b5..8615965c 100644 --- a/docs/INTEGRATION-MATRIX.md +++ b/docs/INTEGRATION-MATRIX.md @@ -10,5 +10,5 @@ - مستوى المنصة: **L0** — PUBLIC / REPRODUCIBLE / OFFLINE - مجموعة المطابقة: **CG-CS/1** -- الاختبارات: **2489** · ملفات الحدود: **1915** · المخالفات: **0** +- الاختبارات: **2495** · ملفات الحدود: **1917** · المخالفات: **0** - عقد الوثائق: **140 / 91 / 34** diff --git a/docs/INVESTOR-ONE-PAGER-en.md b/docs/INVESTOR-ONE-PAGER-en.md index 4070775f..f41b831a 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-02T21:25:59Z) +## Measured state (2026-12-03T14:42:57Z) -- **2489** passing tests, pinned in `docs/state-snapshot.json`. -- **1915** files in the boundary audit, **0** violations. +- **2495** passing tests, pinned in `docs/state-snapshot.json`. +- **1917** 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 0ddfc269..3dbaeaec 100644 --- a/docs/INVESTOR-ONE-PAGER.md +++ b/docs/INVESTOR-ONE-PAGER.md @@ -4,10 +4,10 @@ طبقة حقيقة قابلة للتحقق للتنفيذ: نيّة → سياسة → تنفيذ → إيصال يُعاد اشتقاقه بايتًا ببايت. كل ادعاء مصنّف، وكل رقم مقيس من شجرة مُلتزَمة. -## الحالة المقيسة (2026-12-02T21:25:59Z) +## الحالة المقيسة (2026-12-03T14:42:57Z) -- **2489** اختبارًا ناجحًا، مثبّتة في `docs/state-snapshot.json`. -- **1915** ملفًا في تدقيق الحدود، **0** مخالفة. +- **2495** اختبارًا ناجحًا، مثبّتة في `docs/state-snapshot.json`. +- **1917** ملفًا في تدقيق الحدود، **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 896f97d4..45245606 100644 --- a/docs/KNOWN-GAPS.md +++ b/docs/KNOWN-GAPS.md @@ -6,8 +6,8 @@ This page is generated, not maintained. It answers one question before anyone el ## What the tree measured -- Boundary audit: **1915 files, 0 violations** (pinned in the state snapshot). -- Suite size the documents pin: **2489 tests**. +- Boundary audit: **1917 files, 0 violations** (pinned in the state snapshot). +- Suite size the documents pin: **2495 tests**. - Proof systems registered: **3**, all `NOT_BUILT`, every measurement `null`. - Proof families specified: **3** (specification only; no circuit for any of them). - Claimable level: **L4 is RESEARCH and not claimable.** No envelope can raise a receipt to it. diff --git a/docs/LINKEDIN-CONTENT.md b/docs/LINKEDIN-CONTENT.md index 22f62d6d..0222d231 100644 --- a/docs/LINKEDIN-CONTENT.md +++ b/docs/LINKEDIN-CONTENT.md @@ -12,7 +12,7 @@ We don't tell you if a transaction looks safe. We produce independently verifiable evidence of whether execution conformed to what was authorized. Key metrics: -- 2489 tests passing (machine-pinned) +- 2495 tests passing (machine-pinned) - 10,000-run benchmark: 0 false accepts, 0 false rejects - Core DAO mainnet: 2 contracts deployed & verified - Stellar testnet: Soroban contract deployed @@ -53,8 +53,8 @@ CoreGuard Global — Traction Update ✅ Core DAO mainnet: 2 contracts deployed & verified ✅ Stellar testnet: Soroban contract deployed -✅ 2489 tests passing -✅ 1915 files scanned, 0 boundary violations +✅ 2495 tests passing +✅ 1917 files scanned, 0 boundary violations ✅ 10,000-run benchmark: 0 false accept/reject ✅ 18/18 release gate legs pass diff --git a/docs/MARKETING-PLAN.md b/docs/MARKETING-PLAN.md index 8676e9be..9f56a561 100644 --- a/docs/MARKETING-PLAN.md +++ b/docs/MARKETING-PLAN.md @@ -3,7 +3,7 @@ ## Twitter/X Strategy ### Account: @CoreGuardGlobal -### Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2489 tests. 0 false accepts. Core DAO + Stellar + Pi Network." +### Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2495 tests. 0 false accepts. Core DAO + Stellar + Pi Network." ### Content Calendar (Daily) @@ -15,7 +15,7 @@ | Thu | Pi Network teaser | "Coming to Pi Network: verify before you submit 🛡️" | | Fri | Community | "What's your biggest DeFi security concern? Reply below 👇" | | Sat | Behind the scenes | "Building the future of verifiable execution..." | -| Sun | Weekly recap | "This week: Stellar Phase 3 complete, 2489 tests green" | +| Sun | Weekly recap | "This week: Stellar Phase 3 complete, 2495 tests green" | ### Key Hashtags #CoreDAO #Stellar #PiNetwork #DeFi #Web3 #Blockchain #Security #Verification diff --git a/docs/NUMBERS.html b/docs/NUMBERS.html index fc7dfad4..f51756e5 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-02T21:25:59Z - commit 83ece794788f + measured at 2026-12-03T14:42:57Z + commit 1897a5d7cf4a source docs/state-snapshot.json schema CG-NUMBERS/1
@@ -58,12 +58,12 @@

CoreGuard — numbers

Tests (full suite, machine-pinned) - 2489 tests + 2495 tests docs/state-snapshot.json#testsTotal
Pass count of the last green `npm test`; the suite asserts this number.
Boundary audit — files scanned - 1915 files + 1917 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 068e1d5f..d9494d11 100644 --- a/docs/PITCH-DECK.md +++ b/docs/PITCH-DECK.md @@ -27,8 +27,8 @@ Intent → Policy → Execution → Evidence → Replay → Verdict 5. Output: VERIFIED / REJECTED / UNKNOWN ## Slide 4: Traction -- ✅ 2489 tests passing (machine-pinned) -- ✅ 1915 files, 0 boundary violations +- ✅ 2495 tests passing (machine-pinned) +- ✅ 1917 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 20628a19..024caffa 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: **2489 / 2489 tests**, **1915 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: **2495 / 2495 tests**, **1917 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/ROADMAP-4MONTH.md b/docs/ROADMAP-4MONTH.md index f8bdb21f..f15ce6ca 100644 --- a/docs/ROADMAP-4MONTH.md +++ b/docs/ROADMAP-4MONTH.md @@ -21,7 +21,7 @@ Focused roadmap for SCF Build Award. 4 months, 3 core functions, verifiable deli - [ ] Documentation updated (done) ### Verification -- `npm test` passes (2489 tests) +- `npm test` passes (2495 tests) - `node scripts/current-state.mjs --check` passes - Contract ID verifiable on Stellar Expert diff --git a/docs/SCF-BUILD-APPLICATION-V2.md b/docs/SCF-BUILD-APPLICATION-V2.md index 0ad96306..79954499 100644 --- a/docs/SCF-BUILD-APPLICATION-V2.md +++ b/docs/SCF-BUILD-APPLICATION-V2.md @@ -29,7 +29,7 @@ Per `docs/surface-status.json` and `docs/EVIDENCE-MATRIX.md`: | Freighter signing path | BUILT_UNVERIFIED | NONE | NOT_BUILT | | External adopter | — | — | **0** | -Suite total: **2489 / 2489 pass**, pinned in +Suite total: **2495 / 2495 pass**, pinned in `docs/state-snapshot.json`. Boundary audit: 0 violations. Claim registry: no `VERIFIED` claim without a committed artifact. diff --git a/docs/STATUS.md b/docs/STATUS.md index def3f0c2..87616f18 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -8,7 +8,7 @@ machine-measured, not estimated. Last verified: **2026-12-02**. | Item | Value | How verified | |---|---|---| -| Test suite | **2489 / 2489 pass** (measured against the committed snapshot; see `docs/state-snapshot.json`) +| Test suite | **2495 / 2495 pass** (measured against the committed snapshot; see `docs/state-snapshot.json`) | Owner-authorized Testnet settlement (CG-SETTLE/1) | **SETTLEMENT_RECORDED — hash `c84d57b76b5de93444f41c72a29aca07525f3d3c84196fce03c2df01544c0309`; closed Testnet ledger `5936704` + 1 subsequent ledger; exact native-XLM deltas; agent-generated delegated ephemeral keys only** | `docs/OWNER-DECISION-2026-11-26-TESTNET-SETTLEMENT-SIGNING.md` + `scripts/stellar-owner-settlement.mjs` + `docs/STELLAR-OWNER-SETTLEMENT-2026-11-26.json` + `test/integrations/stellar-owner-settlement.test.mjs`; offline `--verify` replays signature, binding, finality and balances; NOT owner-held-key, Mainnet, legal finality, KYC/AML or production | Agent Commerce family | **products 1-5 + named attack battery + TypeScript declaration surface + bilingual operator dashboard = BUILT · TEST_EXECUTED** (offline · deterministic · synthetic orders, placeholder credential, never a PAN); product 1 now ships as ONE composed authorization firewall — `packages/agent-commerce/firewall.mjs` (AC-FW/1): the PRE-EXECUTION gate `authorizeRequest` (committed policy against the DECLARED request · consent byte-match · caller-pinned window · single-use replay consulted, never consumed) + the POST-EXECUTION review `reviewExecution` over the family's own verdict, no fifth engine; product 5 (cross-chain execution attestation CGXA/1) is the offline attestation surface — its on-chain broadcast legs **OWNER-GATED / NOT_PERFORMED** (no broadcast surface exists in the module); npm publication **EXECUTED (2026-11-18):** all 14 `@coreguard/*` packages from the release scope are published on npmjs.org (`@0.1.0`), and `@coreguard/agent-commerce` is additionally published at `0.1.3` (2026-11-22, gated release run 45509119466), `0.2.1` (2026-11-25, gated release run 45630263964), and `0.3.0` (2026-11-25, gated release run 45688325860; npm `latest` = `0.3.0`, 70 tools), and `0.4.0` (2026-11-25, gated release run 45717671413; 94 tools / 72 skills), and `0.5.0` (2026-11-26, gated release run 45838608694; npm `latest` = `0.5.0`, 99 tools / 72 skills; MCP Registry active and `isLatest`; published artifact re-read at 99 tools) (corrected `mcpName` `io.github.EslaM-X/coreguard-agent-commerce` and stdio bin). MCP Registry listing **ACTIVE:** `io.github.EslaM-X/coreguard-agent-commerce@0.5.0` (registry reports active and `isLatest`). The prior `0.4.0` record remains published at 94 tools and `0.3.0` at 70 tools. Wave 4 stays offline and deterministic; no external integration is claimed. On-chain broadcast legs for product 5 remain **OWNER-GATED / NOT_PERFORMED** (no broadcast surface in module); external adoption **NOT_BUILT** | `docs/surface-status.json` (24 surfaces) · `docs/AGENT-COMMERCE-SECURITY-SPEC-V1.md` §2/§3b/§8/§9 · `docs/EVIDENCE-MATRIX.md` agent-commerce section · `packages/agent-commerce/firewall.mjs` · `packages/agent-commerce/policy-context.mjs` · `test/integrations/agent-commerce-firewall.test.mjs` · `examples/agent-commerce-firewall/artifacts.json` · `packages/agent-commerce/attest.mjs` · `test/integrations/agent-commerce-attestation.test.mjs` · `test/integrations/agent-commerce-attack-battery.test.mjs` **0.5.0 PUBLISHED (99 tools / 72 skills; CG-SG/1 Stellar Agent Gate; gated release run 45838608694)** | | Stellar Agent Gate CG-SG/1 | **PUBLISHED 0.5.0 — P1-P4 OFFLINE: 5 MCP tools, 99-tool surface, 39 named tests; P5 synthetic Testnet proof recorded (ephemeral keys, hash ab879a1a...b5b09); P6 NOT_BUILT** | `docs/COREGUARD-STELLAR-AGENT-SECURITY-SPEC-v0.2.md` · `packages/agent-commerce/stellar-gate.mjs` · `test/integrations/agent-commerce-stellar-gate.test.mjs` | @@ -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) | **1915 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) | **1917 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 dc31c1a9..4de1c112 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: 2489 tests, 1915 files / 0 violations, 0 red checks (state-snapshot) +- Measured: 2495 tests, 1917 files / 0 violations, 0 red checks (state-snapshot) diff --git a/docs/TRINITY-CORE-STELLAR-PI.md b/docs/TRINITY-CORE-STELLAR-PI.md index 77103e56..0f62a543 100644 --- a/docs/TRINITY-CORE-STELLAR-PI.md +++ b/docs/TRINITY-CORE-STELLAR-PI.md @@ -30,7 +30,7 @@ if(g.allowed){ /* VERIFIED only - never auto-pay */ } - **Real problem**: AI agents need to prove conformance before spending - **Unique**: Deterministic replay-before-submit with fail-closed (UNKNOWN->HELD) - **Ecosystem-wide**: ONE engine for ALL three networks -- **Working proof**: Live Stellar testnet demo + 2489 tests passing +- **Working proof**: Live Stellar testnet demo + 2495 tests passing - **Measurable**: All claims from committed tree, zero fabrication - **AI-agent native**: Built for the agent economy - **Undeniable**: Anyone can replay and verify diff --git a/docs/TRUST-CENTER-en.html b/docs/TRUST-CENTER-en.html index 4c67452e..08531806 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-02T21:25:59Z
Commit: 83ece794
-
Tests
2,489
machine-pinned pass total
-
Boundary audit
1,915 files
0 violations
+
Measured: 2026-12-03T14:42:57Z
Commit: 1897a5d7
+
Tests
2,495
machine-pinned pass total
+
Boundary audit
1,917 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 1fd22a13..a6948621 100644 --- a/docs/TRUST-CENTER.html +++ b/docs/TRUST-CENTER.html @@ -36,9 +36,9 @@

مركز الثقة — CoreGuard

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

-
قياس: 2026-12-02T21:25:59Z
الالتزام: 83ece794
-
الاختبارات
2,489
مجموع النجاح المثبّت في اللقطة
-
تدقيق الحدود
1,915 ملفًا
0 مخالفة
+
قياس: 2026-12-03T14:42:57Z
الالتزام: 1897a5d7
+
الاختبارات
2,495
مجموع النجاح المثبّت في اللقطة
+
تدقيق الحدود
1,917 ملفًا
0 مخالفة
عقد الوثائق
140 / 91 / 34
مُنفّذ / مستثنى بسبب / وثائق مغطّاة
الادعاءات
21 / 35
مُتحقَّق منها مقابل الإجمالي
الشارات الصادرة
0
2 نموذج تصميم
diff --git a/docs/TWITTER-CONTENT.md b/docs/TWITTER-CONTENT.md index e3e95df0..4c67ac53 100644 --- a/docs/TWITTER-CONTENT.md +++ b/docs/TWITTER-CONTENT.md @@ -1,7 +1,7 @@ # CoreGuard Global — Twitter/X Content ## Account: @CoreGuardGlobal -## Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2489 tests. 0 false accepts. Core DAO + Stellar + Pi Network." +## Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2495 tests. 0 false accepts. Core DAO + Stellar + Pi Network." --- @@ -11,7 +11,7 @@ We don't tell you if a transaction looks safe. We produce independently verifiable evidence of whether execution conformed to what was authorized. -2489 tests. 0 false accepts. 0 false rejects. +2495 tests. 0 false accepts. 0 false rejects. https://github.com/coreguard-global/CoreGuard #CoreDAO #DeFi #Security @@ -99,8 +99,8 @@ https://github.com/coreguard-global/CoreGuard ## Tweet 7: Open Source CoreGuard is open source. Every claim is machine-verified. -2489 tests passing. -1915 files scanned. +2495 tests passing. +1917 files scanned. 0 boundary violations. 18/18 release gate legs. diff --git a/docs/adoption-dashboard.md b/docs/adoption-dashboard.md index 4b35537f..0675ca6d 100644 --- a/docs/adoption-dashboard.md +++ b/docs/adoption-dashboard.md @@ -52,8 +52,8 @@ default. | Metric | Value | |---|---| -| Test suite | 2489 | -| Boundary audit | 1915 files / 0 violations | +| Test suite | 2495 | +| Boundary audit | 1917 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 9c065d9c..4bab01e7 100644 --- a/docs/assets/badges/manifest.json +++ b/docs/assets/badges/manifest.json @@ -1,21 +1,21 @@ { "schema": "CG-BADGES/1", "generatedFrom": "docs/state-snapshot.json", - "measuredAtUtc": "2026-12-02T21:25:59Z", - "gitCommit": "83ece794788f022eb8e6bbfddaecef04e3093c37", + "measuredAtUtc": "2026-12-03T14:42:57Z", + "gitCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", "badges": [ { "id": "tests", "file": "state-tests.svg", "label": "tests", - "value": "2489 passing", + "value": "2495 passing", "source": "docs/state-snapshot.json#testsTotal" }, { "id": "boundary", "file": "state-boundary.svg", "label": "boundary", - "value": "1915 files · 0 violations", + "value": "1917 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 8af0c08d..2d215ae1 100644 --- a/docs/assets/badges/state-boundary.svg +++ b/docs/assets/badges/state-boundary.svg @@ -1,11 +1,11 @@ - - boundary: 1915 files · 0 violations + + boundary: 1917 files · 0 violations boundary - 1915 files · 0 violations + 1917 files · 0 violations diff --git a/docs/assets/badges/state-tests.svg b/docs/assets/badges/state-tests.svg index c6cbe1ac..298c1964 100644 --- a/docs/assets/badges/state-tests.svg +++ b/docs/assets/badges/state-tests.svg @@ -1,11 +1,11 @@ - - tests: 2489 passing + + tests: 2495 passing tests - 2489 passing + 2495 passing diff --git a/docs/claims-registry.json b/docs/claims-registry.json index a86f2bd0..54b9bdae 100644 --- a/docs/claims-registry.json +++ b/docs/claims-registry.json @@ -50,11 +50,11 @@ "recheck": "npm test", "external": false, "derived": { - "testsTotal": 2489 + "testsTotal": 2495 }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-BOUNDARY-CLEAN", @@ -69,12 +69,12 @@ "recheck": "npm run boundary:audit", "external": false, "derived": { - "filesScanned": 1915, + "filesScanned": 1917, "violations": 0 }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-DOCS-NODE-EXECUTED", @@ -97,7 +97,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-L1-CHAIN-CONFIRMED", @@ -116,7 +116,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-L3-PROOFS", @@ -134,7 +134,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-L4-RESEARCH", @@ -153,7 +153,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-CG-ZK-1-SPEC", @@ -186,7 +186,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-ZK-ENVELOPE-BINDING", @@ -210,7 +210,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-ZK-NO-BACKEND", @@ -234,7 +234,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-LIVE-CHAIN-AUTHORITY", @@ -248,7 +248,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-ADAPTERS-DRY-RUN", @@ -269,7 +269,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-WEBHOOK-RECEIVER", @@ -293,7 +293,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-WEBHOOK-DELIVERIES", @@ -307,7 +307,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-X402-GATE", @@ -327,7 +327,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-X402-LIVE-PAYMENT", @@ -346,7 +346,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-REPLAY-LAB", @@ -370,7 +370,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-SANDBOX-OFFLINE", @@ -391,7 +391,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-STELLAR-PRESIGN-RECEIPT", @@ -427,7 +427,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-STELLAR-OWNER-SETTLEMENT", @@ -456,7 +456,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-ATTACK-LAB", @@ -477,7 +477,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-CONFORMANCE-EMPTY", @@ -497,7 +497,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-BADGE-NOT-ISSUED", @@ -516,7 +516,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-BADGE-VERIFIABLE", @@ -564,7 +564,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-PRICES-LOCKED", @@ -585,7 +585,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-REVENUE-ZERO", @@ -604,7 +604,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-NAMED-INTEGRATOR", @@ -622,7 +622,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-REPUTATION-UNPROVEN", @@ -642,7 +642,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-RISK-FINDINGS", @@ -662,7 +662,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-OWNER-SIGNOFF", @@ -681,7 +681,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-INDEPENDENT-REVIEW", @@ -695,7 +695,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-BUILD-ADOPTION-INDEPENDENT", @@ -717,7 +717,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-ADOPTION-EXTERNAL-VERIFIERS", @@ -733,7 +733,7 @@ "derived": {}, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-RELEASE-TRIGGER", @@ -753,7 +753,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-CG-TAS-1", @@ -773,7 +773,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" }, { "id": "CL-PROV-CAMPAIGNS-1", @@ -793,7 +793,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-02T21:25:59Z" + "asOf": "2026-12-03T14:42:57Z" } ], "rules": [ diff --git a/docs/evidence-passport-v2.json b/docs/evidence-passport-v2.json index 74887a93..c7d5cab8 100644 --- a/docs/evidence-passport-v2.json +++ b/docs/evidence-passport-v2.json @@ -101,8 +101,8 @@ "L4 is RESEARCH; 'ZK supported' is never claimed until a real circuit/prover/verifier exists with a benchmark and conformance" ], "engineering": { - "testsTotal": 2489, - "filesScanned": 1915, + "testsTotal": 2495, + "filesScanned": 1917, "violations": 0, "docsNode": { "executed": 140, diff --git a/docs/integration-registry.json b/docs/integration-registry.json index 3981a657..39f74e9e 100644 --- a/docs/integration-registry.json +++ b/docs/integration-registry.json @@ -1,7 +1,7 @@ { "platform": { - "testsTotal": 2489, - "filesScanned": 1915, + "testsTotal": 2495, + "filesScanned": 1917, "violations": 0, "peoplesCourtHarness": "PEOPLES_COURT_HARNESS_READY", "docsNode": { diff --git a/docs/numbers.json b/docs/numbers.json index 57b502ae..dcdd72b7 100644 --- a/docs/numbers.json +++ b/docs/numbers.json @@ -2,13 +2,13 @@ "schema": "CG-NUMBERS/1", "generatedBy": "scripts/public-numbers.mjs", "generatedFrom": "docs/state-snapshot.json", - "measuredAtUtc": "2026-12-02T21:25:59Z", - "measuredOnCommit": "83ece794788f022eb8e6bbfddaecef04e3093c37", + "measuredAtUtc": "2026-12-03T14:42:57Z", + "measuredOnCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", "metrics": [ { "id": "tests", "label": "Tests (full suite, machine-pinned)", - "value": 2489, + "value": 2495, "unit": "tests", "source": "docs/state-snapshot.json#testsTotal", "note": "Pass count of the last green `npm test`; the suite asserts this number." @@ -16,7 +16,7 @@ { "id": "boundary-files", "label": "Boundary audit — files scanned", - "value": 1915, + "value": 1917, "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 ee9a343c..a89f5bb1 100644 --- a/docs/state-snapshot.json +++ b/docs/state-snapshot.json @@ -1,10 +1,10 @@ { - "measuredAtUtc": "2026-12-02T21:25:59Z", - "gitCommit": "83ece794788f022eb8e6bbfddaecef04e3093c37", - "commitsAheadOfV060": 730, - "testsTotal": 2489, + "measuredAtUtc": "2026-12-03T14:42:57Z", + "gitCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", + "commitsAheadOfV060": 735, + "testsTotal": 2495, "boundaryAudit": { - "filesScanned": 1915, + "filesScanned": 1917, "violations": 0, "check": "PASS" }, diff --git a/index.html b/index.html index 475684ea..f5c887f3 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,7 @@

The Killer Ladder

Proof

-

2489 tests passing · deterministic L2 replay · live Core Mainnet anchor VERIFIED.

+

2495 tests passing · deterministic L2 replay · live Core Mainnet anchor VERIFIED.

Company

diff --git a/packages/cg-c95/index.mjs b/packages/cg-c95/index.mjs new file mode 100644 index 00000000..085873e6 --- /dev/null +++ b/packages/cg-c95/index.mjs @@ -0,0 +1,184 @@ +/** + * CG-C95/1 — neutral CoreGuard reference gate for OWASP C9.5-style at-most-once semantics. + * NOT a claim to close C9.5, NOT production, NOT settlement/finality, NOT CG-ZK, NOT PASS=SAFE. + * Caller-supplied evidence only. Requires authenticated principal + canonical operation identity + + * durable atomic insertIfAbsent store for cross-process at-most-once; in-memory reference is not enough. + */ +import { createHash } from "node:crypto"; +import { canonicalize } from "../canonical/index.js"; + +export const C95_SPEC = "CG-C95/1"; +export const C95_BOUNDARY = + "VERIFIED != SAFE; PASS != SAFE; UNKNOWN != VERIFIED; UNKNOWN != NOT_EXECUTED; no PASS=SAFE; no C9.5-closed claim; no production; no settlement/finality; no CG-ZK; proofBackend=NOT_BUILT; zkClaim=NONE; proofVerdict=NOT_PROVEN; L4=RESEARCH / NOT CLAIMABLE"; +export const C95_OUTCOMES = Object.freeze(["executed", "not_executed", "unknown"]); +export const C95_CODES = Object.freeze([ + "EXECUTION_RESERVED", "REPLAY_EXECUTED", "REPLAY_NOT_EXECUTED", "PENDING", + "UNKNOWN_RECONCILE_REQUIRED", "INTENT_MISMATCH", "INVALID_INPUT", "UNAUTHENTICATED", + "NOT_RESERVED", "RECORD_CONFLICT", "EXPIRED", "RESERVATION_LAPSED", + "NEW_PRINCIPAL_REQUEST_REQUIRED", "APPROVAL_INVALID", "OUTCOME_RECORDED", +]); +export const REQUEST_PROVENANCE = Object.freeze(["NEW_PRINCIPAL_REQUEST", "RESUBMISSION", "RETRY", "AGENT_INFERRED", "UNKNOWN"]); + +const DIGEST_RE = /^sha256:[0-9a-f]{64}$/; +const sha256 = (s) => "sha256:" + createHash("sha256").update(s, "utf8").digest("hex"); +const isObj = (v) => v !== null && typeof v === "object" && !Array.isArray(v); +const str = (v) => typeof v === "string" && v.length > 0; + +export function intentDigestOf(intent) { return sha256(canonicalize(intent)); } + +export function operationKeyOf(k = {}) { + const key = { + spec: C95_SPEC, + principal: k.principal, + principalRequestId: k.principalRequestId, + tool: k.tool, + target: k.target, + action: k.action ?? k.tool, + intentDigest: k.intentDigest, + policyHash: k.policyHash, + receiptCommitment: k.receiptCommitment, + chainId: k.chainId, + networkDomain: k.networkDomain, + protocolVersion: k.protocolVersion, + circuitVersion: k.circuitVersion, + asset: k.asset ?? null, + amount: k.amount ?? null, + recipient: k.recipient ?? null, + scheme: k.scheme ?? null, + }; + for (const f of ["principal","principalRequestId","tool","target","action","intentDigest","policyHash","receiptCommitment","chainId","networkDomain","protocolVersion","circuitVersion"]) { + if (!str(String(key[f] ?? ""))) throw new TypeError(`operationKeyOf: ${f} required`); + } + if (!DIGEST_RE.test(key.intentDigest)) throw new TypeError("operationKeyOf: intentDigest sha256 required"); + if (!DIGEST_RE.test(key.policyHash)) throw new TypeError("operationKeyOf: policyHash sha256 required"); + if (!DIGEST_RE.test(key.receiptCommitment)) throw new TypeError("operationKeyOf: receiptCommitment sha256 required"); + const digest = sha256(canonicalize(key)); + return Object.freeze({ ...key, operationDigest: digest, digest }); +} + +export function createMemoryC95Store() { + const rows = new Map(); + return Object.freeze({ + kind: "memory", durable: false, + insertIfAbsent(key, makeRow) { + if (rows.has(key)) return { inserted: false, row: structuredClone(rows.get(key)) }; + const row = makeRow(); rows.set(key, structuredClone(row)); return { inserted: true, row: structuredClone(row) }; + }, + get(key) { return rows.has(key) ? structuredClone(rows.get(key)) : null; }, + save(key, row) { rows.set(key, structuredClone(row)); return { ok: true }; }, + size() { return rows.size; }, + }); +} + +function view(row, code, extra = {}) { + return Object.freeze({ + spec: C95_SPEC, boundary: C95_BOUNDARY, code, + operationDigest: row?.operationDigest ?? null, + intentDigest: row?.intentDigest ?? null, + principal: row?.principal ?? null, + principalRequestId: row?.principalRequestId ?? null, + state: row?.state ?? null, + outcome: row?.outcome ?? null, + allowedToExecute: false, + replay: false, + reconcileRequired: false, + resignPermitted: false, + noSecondEffect: true, + observedRefs: row?.observedRefs ?? null, + record: row?.record ?? null, + recordDigest: row?.recordDigest ?? null, + ...extra, + }); +} +function fail(code, detail, extra = {}) { + return Object.freeze({ spec: C95_SPEC, boundary: C95_BOUNDARY, code, detail, allowedToExecute: false, replay: false, reconcileRequired: code !== "INVALID_INPUT" && code !== "UNAUTHENTICATED" && code !== "APPROVAL_INVALID", resignPermitted: false, noSecondEffect: true, ...extra }); +} + +function normalize({ ctx, key } = {}) { + const auth = ctx && isObj(ctx) ? ctx.authenticated : null; + const principal = auth?.owner ?? auth?.principal; + if (!str(principal)) return { err: fail("UNAUTHENTICATED", "authenticated principal required") }; + if (!isObj(key)) return { err: fail("INVALID_INPUT", "key required") }; + try { + const k = operationKeyOf({ ...key, principal }); + if (!REQUEST_PROVENANCE.includes(key.requestProvenance ?? "UNKNOWN")) throw new TypeError("requestProvenance invalid"); + return { principal, k, requestProvenance: key.requestProvenance ?? "UNKNOWN", approval: key.approval ?? null }; + } catch (e) { return { err: fail("INVALID_INPUT", e.message) }; } +} + +function approvalValid(approval, k, principal) { + if (!isObj(approval)) return false; + // Caller-supplied provenance only; signature verification is not done here. + return approval.provenance === "PRINCIPAL" && + approval.principal === principal && + approval.principalRequestId === k.principalRequestId && + str(approval.approvalId) && + approval.intentDigest === k.intentDigest && + approval.policyHash === k.policyHash && + approval.receiptCommitment === k.receiptCommitment && + (!approval.expiresAt || Number(approval.expiresAt) > Math.floor(Date.now()/1000)); +} + +export function createC95Gate({ store = createMemoryC95Store(), clock = () => Math.floor(Date.now()/1000), reservationTtlSeconds = 90, retentionSeconds = 150 } = {}) { + if (!store?.insertIfAbsent || !store?.get || !store?.save) throw new TypeError("store insertIfAbsent/get/save required"); + + function requestOnce(args = {}) { + const n = normalize(args); if (n.err) return n.err; + const now = Number(clock()); if (!Number.isFinite(now)) return fail("INVALID_INPUT", "clock finite required"); + const k = n.k; + // Approval is mandatory for a new reservation. Retry/resubmission cannot mint a new operation. + if (!approvalValid(n.approval, k, n.principal)) return fail("APPROVAL_INVALID", "principal approval + intent + policy + receipt provenance required", { operationDigest: k.digest }); + const rowKey = k.digest; + const existing = store.get(rowKey); + // Retry/resubmission cannot mint a new operation; only authenticated NEW_PRINCIPAL_REQUEST can. + if (!existing && n.requestProvenance !== "NEW_PRINCIPAL_REQUEST") { + return fail("NEW_PRINCIPAL_REQUEST_REQUIRED", "new operation requires authenticated new request by principal; agent retry/vague reply cannot infer it", { operationDigest: k.digest }); + } + const claim = store.insertIfAbsent(rowKey, () => ({ + ...k, operationDigest: k.digest, requestProvenance: n.requestProvenance, + state: "RESERVED", outcome: null, record: null, observedRefs: null, recordDigest: null, + reservedAt: now, expiresAt: now + reservationTtlSeconds, retainedUntil: now + retentionSeconds, + approvalDigest: sha256(canonicalize({ ...n.approval, signature: undefined })), approvalId: n.approval.approvalId, + })); + if (claim.inserted) return view(claim.row, "EXECUTION_RESERVED", { allowedToExecute: true, replay: false, reconcileRequired: false }); + const row = claim.row; + if (row.intentDigest !== k.intentDigest) return fail("INTENT_MISMATCH", "same operation identity, different intent", { operationDigest: row.operationDigest }); + if (now >= row.retainedUntil) return view(row, "EXPIRED", { reconcileRequired: true }); + if (row.state === "EXECUTED") return view(row, "REPLAY_EXECUTED", { replay: true }); + if (row.state === "NOT_EXECUTED") return view(row, "REPLAY_NOT_EXECUTED", { replay: true, reconcileRequired: true }); + if (row.state === "UNKNOWN") return view(row, "UNKNOWN_RECONCILE_REQUIRED", { replay: true, reconcileRequired: true }); + if (now >= row.expiresAt) return view(row, "RESERVATION_LAPSED", { reconcileRequired: true }); + return view(row, "PENDING", { reconcileRequired: true }); + } + + function recordOutcome(args = {}) { + const n = normalize(args); if (n.err) return n.err; + const { k, principal } = n; const now = Number(clock()); + const row = store.get(k.digest); + if (!row) return fail("NOT_RESERVED", "no reservation", { operationDigest: k.digest }); + if (row.principal !== principal || row.intentDigest !== k.intentDigest) return fail("RECORD_CONFLICT", "principal/intent mismatch", { operationDigest: row.operationDigest }); + if (!C95_OUTCOMES.includes(args.outcome)) return fail("INVALID_INPUT", "outcome executed|not_executed|unknown required"); + if (now >= row.retainedUntil) return view(row, "EXPIRED", { reconcileRequired: true }); + if (row.state === "EXECUTED" || row.state === "NOT_EXECUTED") { + const same = (row.outcome === args.outcome); + if (same) return view(row, row.outcome === "executed" ? "REPLAY_EXECUTED" : "REPLAY_NOT_EXECUTED", { replay: true, reconcileRequired: row.outcome !== "executed" }); + return fail("RECORD_CONFLICT", "terminal outcome cannot be silently overwritten", { operationDigest: row.operationDigest, outcome: row.outcome, recordDigest: row.recordDigest }); + } + // not_executed requires authoritative evidence; unknown never proves no effect; executed requires checkable evidence. + if (args.outcome === "not_executed" && args.authoritativeNotExecuted !== true) return view(row, "UNKNOWN_RECONCILE_REQUIRED", { reconcileRequired: true }); + if (args.outcome === "executed" && args.authoritativeExecuted !== true) return view(row, "UNKNOWN_RECONCILE_REQUIRED", { reconcileRequired: true }); + const observedRefs = isObj(args.observedRefs) ? structuredClone(args.observedRefs) : null; + const record = isObj(args.record) ? structuredClone(args.record) : null; + const outcome = args.outcome; + const updated = { ...row, outcome, observedRefs, record, + state: outcome === "executed" ? "EXECUTED" : outcome === "not_executed" ? "NOT_EXECUTED" : "UNKNOWN", + recordDigest: sha256(canonicalize({ operationDigest: row.operationDigest, outcome, observedRefs, record })), recordedAt: now, + }; + store.save(row.operationDigest, updated); + return view(updated, "OUTCOME_RECORDED", { reconcileRequired: outcome !== "executed", noSecondEffect: true }); + } + + return Object.freeze({ spec: C95_SPEC, boundary: C95_BOUNDARY, store, requestOnce, recordOutcome, reserveOnce: requestOnce }); +} + +export function c95FixtureOf(kind = "timeout-after-effect") { return Object.freeze({ kind, note: "DRAFT test fixture; no PASS=SAFE; UNKNOWN != NOT_EXECUTED" }); } diff --git a/test/integrations/cg-c95-1.test.mjs b/test/integrations/cg-c95-1.test.mjs new file mode 100644 index 00000000..3947bbb7 --- /dev/null +++ b/test/integrations/cg-c95-1.test.mjs @@ -0,0 +1,75 @@ +import test from "node:test"; +import assert from "node:assert/strict"; +import { C95_SPEC, C95_BOUNDARY, createC95Gate, createMemoryC95Store, intentDigestOf } from "../../packages/cg-c95/index.mjs"; + +const digest = (s) => "sha256:" + Buffer.from(s).toString("hex").padEnd(64,"0").slice(0,64); +const policyHash = digest("policy"); +const receiptCommitment = digest("receipt"); +const intent = { action:"pay", tool:"pay", target:"x", amount:400000, recipient:"X", asset:"USDC", policyHash, receiptCommitment, chainId:1, networkDomain:"eip155", protocolVersion:"CGEP/1", circuitVersion:"NOT_BUILT" }; +const intentDigest = intentDigestOf(intent); +const approval = { provenance:"PRINCIPAL", principal:"alice", principalRequestId:"req-1", approvalId:"a1", intentDigest, policyHash, receiptCommitment }; +const key = { principalRequestId:"req-1", tool:"pay", target:"x", action:"pay", intentDigest, policyHash, receiptCommitment, chainId:1, networkDomain:"eip155", protocolVersion:"CGEP/1", circuitVersion:"NOT_BUILT", asset:"USDC", amount:400000, recipient:"X", scheme:"exact", requestProvenance:"NEW_PRINCIPAL_REQUEST", approval }; +const ctx = { authenticated:{ owner:"alice" } }; + +function g() { return createC95Gate({ store:createMemoryC95Store(), clock:()=>1000, reservationTtlSeconds:90, retentionSeconds:150 }); } + +test("CG-C95/1 declares no PASS=SAFE/C9.5/CG-ZK/proofBackend", () => { + assert.equal(C95_SPEC, "CG-C95/1"); + assert.match(C95_BOUNDARY, /VERIFIED != SAFE/); + assert.match(C95_BOUNDARY, /PASS != SAFE/); + assert.match(C95_BOUNDARY, /UNKNOWN != NOT_EXECUTED/); + assert.match(C95_BOUNDARY, /proofBackend=NOT_BUILT/); + assert.match(C95_BOUNDARY, /zkClaim=NONE/); + assert.match(C95_BOUNDARY, /proofVerdict=NOT_PROVEN/); + assert.match(C95_BOUNDARY, /L4=RESEARCH \/ NOT CLAIMABLE/); +}); + +test("request once reserves execution once; fresh token/approval retry cannot create second effect", () => { + const gate=g(); + const first=gate.requestOnce({ctx,key}); + assert.equal(first.code,"EXECUTION_RESERVED"); assert.equal(first.allowedToExecute,true); + const retry=gate.requestOnce({ctx,key:{...key, requestProvenance:"RETRY", approval:{...approval,approvalId:"fresh"}}}); + assert.equal(retry.code,"PENDING"); assert.equal(retry.allowedToExecute,false); assert.equal(retry.noSecondEffect,true); + const resub=gate.requestOnce({ctx,key:{...key, requestProvenance:"RESUBMISSION"}}); + assert.equal(resub.code,"PENDING"); assert.equal(resub.allowedToExecute,false); +}); + +test("executed outcome requires authoritative evidence; then replay no second effect", () => { + const gate=g(); gate.requestOnce({ctx,key}); + const notAuth=gate.recordOutcome({ctx,key,outcome:"executed",observedRefs:{txHash:"0x1"},record:{receipt:"r"}}); + assert.equal(notAuth.code,"UNKNOWN_RECONCILE_REQUIRED"); + const exec=gate.recordOutcome({ctx,key,outcome:"executed",authoritativeExecuted:true,observedRefs:{txHash:"0x1"},record:{receipt:"r"}}); + assert.equal(exec.code,"OUTCOME_RECORDED"); assert.equal(exec.outcome,"executed"); + const replay=gate.requestOnce({ctx,key:{...key,requestProvenance:"RETRY"}}); + assert.equal(replay.code,"REPLAY_EXECUTED"); assert.equal(replay.allowedToExecute,false); assert.equal(replay.noSecondEffect,true); + const conflict=gate.recordOutcome({ctx,key,outcome:"not_executed",authoritativeNotExecuted:true}); + assert.equal(conflict.code,"RECORD_CONFLICT"); +}); + +test("unknown is not not_executed; unknown reconciliation cannot silently become no-effect", () => { + const gate=g(); gate.requestOnce({ctx,key}); + const unk=gate.recordOutcome({ctx,key,outcome:"unknown",observedRefs:{error:"timeout"}}); + assert.equal(unk.code,"OUTCOME_RECORDED"); assert.equal(unk.outcome,"unknown"); assert.equal(unk.reconcileRequired,true); + const retry=gate.requestOnce({ctx,key:{...key,requestProvenance:"RETRY"}}); + assert.equal(retry.code,"UNKNOWN_RECONCILE_REQUIRED"); assert.equal(retry.allowedToExecute,false); + const notExec=gate.recordOutcome({ctx,key,outcome:"not_executed"}); // no authoritative proof + assert.equal(notExec.code,"UNKNOWN_RECONCILE_REQUIRED"); +}); + +test("not_executed requires authoritative evidence; no automatic retry", () => { + const gate=g(); gate.requestOnce({ctx,key}); + const ne=gate.recordOutcome({ctx,key,outcome:"not_executed",authoritativeNotExecuted:true,observedRefs:{checked:"authoritative source"}}); + assert.equal(ne.code,"OUTCOME_RECORDED"); assert.equal(ne.outcome,"not_executed"); assert.equal(ne.reconcileRequired,true); + const retry=gate.requestOnce({ctx,key:{...key,requestProvenance:"RETRY"}}); + assert.equal(retry.code,"REPLAY_NOT_EXECUTED"); assert.equal(retry.allowedToExecute,false); assert.equal(retry.noSecondEffect,true); +}); + +test("new request semantics not inferred from agent; authenticated principal required; approval required", () => { + const gate=g(); + assert.equal(gate.requestOnce({ctx:{authenticated:{owner:"mallory"}},key}).code,"APPROVAL_INVALID"); + assert.equal(gate.requestOnce({ctx:{},key}).code,"UNAUTHENTICATED"); + const agentInferred=gate.requestOnce({ctx,key:{...key,requestProvenance:"AGENT_INFERRED",principalRequestId:"req-2"}}); + // agent text does not define a new principal request + assert.equal(agentInferred.code,"APPROVAL_INVALID"); + assert.equal(agentInferred.allowedToExecute,false); +});