diff --git a/AGENTS.md b/AGENTS.md index 65ed06a4..3f700f19 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 ↔ 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). +- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2502 ↔ 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 5e80705c..a3e5377b 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. 2495/2495 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. 2502/2502 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: **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. +> Canonical measured state for this cycle: **2502 / 2502 tests**, **1928 files scanned / 0 violations**, **docs-node 140 executed · 91 skip-listed · 34 covered**, **Foundry 43/43 pass** — [docs/state-snapshot.json](docs/state-snapshot.json) · [docs/STATUS.md](docs/STATUS.md). Every item below is labeled by its committed evidence; nothing implies revenue, customers, partnerships, external adoption, or a third-party audit. #### 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 # 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 +npm test # 2502 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/detectors/README.md b/detectors/README.md new file mode 100644 index 00000000..95571c8f --- /dev/null +++ b/detectors/README.md @@ -0,0 +1,20 @@ +# CoreGuard Detectors — Eight Product Lines Map + +**Status boundary:** All modules in `detectors/` are either **PROTOTYPE** (minimal deterministic logic with unit tests) or **PLANNED** (specification only). No external customer, partner, audit, production deployment, or banking integration is claimed. + +| # | Product Line | Detector Status | Location / Scope | +|---|---|---|---| +| 1 | **CoreGuard Verify** | SPEC (`PROTOTYPE`) | [`spec/VER-1.md`](../spec/VER-1.md) — Verifiable Execution Receipt v1 | +| 2 | **CoreGuard Agent** | `PROTOTYPE` | [`detectors/agent-pay/index.js`](./agent-pay/index.js) — per-tx, daily, session limits, allowlist, fail-closed | +| 3 | **CoreGuard CrossBorder** | `PLANNED` | [`detectors/crossborder/SPEC.md`](./crossborder/SPEC.md) — instruction-to-settlement integrity | +| 4 | **CoreGuard RWA** | `PLANNED` | [`detectors/rwa/SPEC.md`](./rwa/SPEC.md) — mint/redeem & reserve-data invariants | +| 5 | **CoreGuard Lending** | `PROTOTYPE` + `PLANNED` | [`detectors/oracle/index.js`](./oracle/index.js) (oracle freshness/quorum/deviation) & [`detectors/lending/SPEC.md`](./lending/SPEC.md) | +| 6 | **CoreGuard Quantum & Identity** | `PROTOTYPE` | [`detectors/pqc-readiness/index.js`](./pqc-readiness/index.js) — lexical crypto inventory (Ed25519, ECDSA, secp256k1, RSA, ML-DSA/Dilithium) | +| 7 | **CoreGuard Chain** | `PLANNED` | [`detectors/chain/SPEC.md`](./chain/SPEC.md) — multi-chain upgrade & replay guards | +| 8 | **CoreGuard Intelligence** | `PLANNED` | [`detectors/intelligence/SPEC.md`](./intelligence/SPEC.md) — claim-vs-proof & anti-scam checks | + +## Signal vs Noise + +- **Signal (real engineering directions):** Post-quantum signatures & crypto-agility, x402 machine-to-machine payments, tokenized deposits, card tokenization, and selective-disclosure digital identity. +- **Noise (explicitly rejected as unverified):** "Energy Cubes" unified currency claims, unsourced "Quantum Protocol 30" narratives, and "robot war / counter reset" speculation are NOT product capabilities or evidence. +- **Target ecosystems, not integrations:** SWIFT, banks, and lending apps are target markets only. No SWIFT integration is claimed. diff --git a/detectors/agent-pay/index.js b/detectors/agent-pay/index.js new file mode 100644 index 00000000..af4e90b2 --- /dev/null +++ b/detectors/agent-pay/index.js @@ -0,0 +1,39 @@ +// PROTOTYPE: pure deterministic spending-policy gate for autonomous agents. +// Fail-closed: any missing, malformed, negative, non-integer, or unverified context -> NOT_VERIFIED. +export function detectAgentPay(input = {}) { + const unknown = () => ({ + status: "PROTOTYPE", + verdict: "NOT_VERIFIED", + not_verified: ["Missing, invalid, or untrusted spending context"], + reasons: [], + }); + if (!input || typeof input !== "object") return unknown(); + const { + amount, dailySpent, sessionSpent, + perTransactionLimit, dailyLimit, sessionLimit, + recipient, recipientAllowlist, contextVerified, + } = input; + const values = [amount, dailySpent, sessionSpent, perTransactionLimit, dailyLimit, sessionLimit]; + if ( + contextVerified !== true || + !values.every((v) => Number.isSafeInteger(v) && v >= 0) || + !Number.isSafeInteger(dailySpent + amount) || + !Number.isSafeInteger(sessionSpent + amount) || + typeof recipient !== "string" || !recipient.trim() || + !Array.isArray(recipientAllowlist) || + !recipientAllowlist.every((v) => typeof v === "string" && v.trim()) + ) { + return unknown(); + } + const reasons = []; + if (amount > perTransactionLimit) reasons.push("PER_TRANSACTION_LIMIT"); + if (dailySpent + amount > dailyLimit) reasons.push("DAILY_LIMIT"); + if (sessionSpent + amount > sessionLimit) reasons.push("SESSION_LIMIT"); + if (!recipientAllowlist.includes(recipient)) reasons.push("RECIPIENT"); + return { + status: "PROTOTYPE", + verdict: reasons.length ? "REJECTED" : "VERIFIED", + not_verified: [], + reasons, + }; +} diff --git a/detectors/chain/SPEC.md b/detectors/chain/SPEC.md new file mode 100644 index 00000000..ff24b2a8 --- /dev/null +++ b/detectors/chain/SPEC.md @@ -0,0 +1,5 @@ +# CoreGuard Chain Detector — PLANNED + +**Status:** PLANNED (specified, not implemented; complements live Stellar Soroban and Core DAO anchors elsewhere in this repository) + +Intended scope: protocol upgrade permission guards, signature replay checks across chains, and multi-chain adapter checks for Stellar, Core DAO, Ethereum, and Pi Network. diff --git a/detectors/crossborder/SPEC.md b/detectors/crossborder/SPEC.md new file mode 100644 index 00000000..dcde9b54 --- /dev/null +++ b/detectors/crossborder/SPEC.md @@ -0,0 +1,7 @@ +# CoreGuard CrossBorder Detector — PLANNED + +**Status:** PLANNED (specified, not implemented) + +Intended scope: payment instruction integrity, duplicate/replay detection, and message-to-settlement reconciliation across banking rails, stablecoins, and tokenized deposits. + +**Explicit boundary:** SWIFT and banking institutions are target ecosystems only. No SWIFT integration, bank customer, or production rail connection is claimed. diff --git a/detectors/intelligence/SPEC.md b/detectors/intelligence/SPEC.md new file mode 100644 index 00000000..1bd9b8c5 --- /dev/null +++ b/detectors/intelligence/SPEC.md @@ -0,0 +1,5 @@ +# CoreGuard Intelligence Detector — PLANNED + +**Status:** PLANNED (specified, not implemented) + +Intended scope: claim-vs-proof source verification and anti-phishing checks that bind protocol claims to primary references (RFCs, CAPs, official repositories) and reject unsourced social rumors. diff --git a/detectors/lending/SPEC.md b/detectors/lending/SPEC.md new file mode 100644 index 00000000..fbe3827e --- /dev/null +++ b/detectors/lending/SPEC.md @@ -0,0 +1,5 @@ +# CoreGuard Lending Detector — PLANNED + +**Status:** PLANNED (specified, not implemented) + +Intended scope: loan decision-to-disbursement integrity, repayment ledger reconciliation, and collateral/liquidation safety checks (building on the `detectors/oracle` prototype). Does not make credit decisions or replace AML/KYC systems. diff --git a/detectors/oracle/index.js b/detectors/oracle/index.js new file mode 100644 index 00000000..3007d606 --- /dev/null +++ b/detectors/oracle/index.js @@ -0,0 +1,41 @@ +// PROTOTYPE: deterministic price-oracle freshness, quorum, and deviation gate. +// Fail-closed: missing, duplicate, non-positive, future-dated, or unverified observations -> NOT_VERIFIED. +export function detectOracle(input = {}) { + const unknown = () => ({ + status: "PROTOTYPE", + verdict: "NOT_VERIFIED", + not_verified: ["Missing, invalid, or untrusted oracle context"], + reasons: [], + }); + if (!input || typeof input !== "object") return unknown(); + const { sources, nowSec, maxAgeSec, maxDeviationBps, minSources, contextVerified } = input; + if ( + contextVerified !== true || + !Array.isArray(sources) || + ![nowSec, maxAgeSec, maxDeviationBps].every((v) => Number.isSafeInteger(v) && v >= 0) || + !Number.isSafeInteger(minSources) || minSources < 1 || + !sources.every((s) => + s && typeof s.id === "string" && s.id.trim() && + Number.isSafeInteger(s.price) && s.price > 0 && + Number.isSafeInteger(s.timestampSec) && s.timestampSec >= 0 && s.timestampSec <= nowSec + ) || + new Set(sources.map((s) => s.id)).size !== sources.length + ) { + return unknown(); + } + const reasons = []; + if (sources.length < minSources) reasons.push("INSUFFICIENT_SOURCES"); + if (sources.some((s) => nowSec - s.timestampSec > maxAgeSec)) reasons.push("STALE_PRICE"); + if (sources.length) { + const prices = sources.map((s) => BigInt(s.price)); + const low = prices.reduce((a, b) => (a < b ? a : b)); + const high = prices.reduce((a, b) => (a > b ? a : b)); + if ((high - low) * 10000n > BigInt(maxDeviationBps) * low) reasons.push("PRICE_DEVIATION"); + } + return { + status: "PROTOTYPE", + verdict: reasons.length ? "REJECTED" : "VERIFIED", + not_verified: [], + reasons, + }; +} diff --git a/detectors/pqc-readiness/index.js b/detectors/pqc-readiness/index.js new file mode 100644 index 00000000..f8b1d2cd --- /dev/null +++ b/detectors/pqc-readiness/index.js @@ -0,0 +1,32 @@ +// PROTOTYPE: lexical cryptographic algorithm inventory for PQC readiness planning. +// Never claims post-quantum readiness or security certification. +const PATTERNS = [ + ["Ed25519", /\bed25519\b/gi], + ["ECDSA", /\becdsa\b/gi], + ["secp256k1", /\bsecp256k1\b/gi], + ["RSA", /\brsa(?:[-_]?(?:1024|2048|3072|4096))?\b/gi], + ["ML-DSA/Dilithium", /\b(?:ml[-_]?dsa(?:[-_]?(?:44|65|87))?|dilithium[235]?)\b/gi], +]; + +export function scanPqcReadiness(source) { + if (typeof source !== "string") { + return { + status: "PROTOTYPE", + verdict: "NOT_VERIFIED", + inventory: [], + not_verified: ["Source text unavailable"], + }; + } + const inventory = PATTERNS.flatMap(([algorithm, re]) => { + const count = [...source.matchAll(re)].length; + return count ? [{ algorithm, count }] : []; + }); + return { + status: "PROTOTYPE", + verdict: "NOT_VERIFIED", + inventory, + not_verified: ["Runtime usage and cryptographic security not established by lexical scan"], + crypto_agility_note: + "Classical signatures (Ed25519, ECDSA, secp256k1, RSA) are not post-quantum secure. Isolate signing interfaces, inventory keys and dependencies, and plan a validated migration. ML-DSA/Dilithium mentions do not prove readiness.", + }; +} diff --git a/detectors/rwa/SPEC.md b/detectors/rwa/SPEC.md new file mode 100644 index 00000000..6efa61b1 --- /dev/null +++ b/detectors/rwa/SPEC.md @@ -0,0 +1,5 @@ +# CoreGuard RWA Detector — PLANNED + +**Status:** PLANNED (specified, not implemented) + +Intended scope: mint/redeem invariant checks, supply-cap enforcement, reserve-data integrity checks (distinguished from independent physical reserve audits), and cross-chain supply consistency. diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index b6fa2d97..17d31bea 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:** 2495 / 2495 passing • Boundary audit PASS · Release gate GATE_PASS +- **Tests:** 2502 / 2502 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 c430c8cf..775226ce 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: > -> • 2495 / 2495 tests +> • 2502 / 2502 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, 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. | +| 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, 2502 / 2502 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 788d52f9..a1707c46 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 **2495** tests. Any count change must re-pin the snapshot: +The pinned total is **2502** 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 72056cb1..571ce76c 100644 --- a/docs/CONTRIBUTOR-FUNNEL.md +++ b/docs/CONTRIBUTOR-FUNNEL.md @@ -15,7 +15,7 @@ npm ci npm test ``` -المجموع المثبّت: **2495** اختبارًا. أي تغيير في العدد يجب أن يُعيد تثبيت اللقطة: +المجموع المثبّت: **2502** اختبارًا. أي تغيير في العدد يجب أن يُعيد تثبيت اللقطة: ```text npm run state:repin ``` diff --git a/docs/COREDAO-KILLER-FEATURES.md b/docs/COREDAO-KILLER-FEATURES.md index 707e98bc..4d9fa06f 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:** 2495 / 2495 npm tests, 1917 files / 0 violations, docs-node 140/91/34 — [state-snapshot.json](state-snapshot.json). +- **Measured repo state:** 2502 / 2502 npm tests, 1928 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 51d2f29f..7bfccba3 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: **2495 / 2495 pass**, machine-pinned in +Suite total: **2502 / 2502 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 4a795153..4013b81d 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 / مجموعة الاختبارات** | **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) | +| **Test suite / مجموعة الاختبارات** | **2502 / 2502 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) | +| **Boundary audit / تدقيق الحدود** | **1928 files · 0 violations** | [`npm run boundary:audit`](../package.json) | | **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` → **2495 / 2495 pass, fail 0** +- `npm test` → **2502 / 2502 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 6d30eefb..181a96cd 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. **2495 / 2495 tests, + adversarially benchmarked engine. **2502 / 2502 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 c42065f3..19893ea4 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 -- ✅ 2495 tests passing (machine-pinned) -- ✅ 1917 files, 0 boundary violations +- ✅ 2502 tests passing (machine-pinned) +- ✅ 1928 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 0bea88e8..dffacf56 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) -- ✅ 2495 tests passing -- ✅ 1917 files, 0 boundary violations +- ✅ 2502 tests passing +- ✅ 1928 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 fae5f5b6..a1733226 100644 --- a/docs/HOW-TO-EVALUATE.md +++ b/docs/HOW-TO-EVALUATE.md @@ -29,7 +29,7 @@ npm test ``` **Expected / المتوقع:** -`ℹ tests 2495` · `ℹ pass 2453` · `ℹ fail 0` +`ℹ tests 2502` · `ℹ 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` = **2495 / 2495 PASS** +- [ ] `npm test` = **2502 / 2502 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 2e35064c..08172806 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: **2495** · boundary files: **1917** · violations: **0** +- Tests: **2502** · boundary files: **1928** · violations: **0** - Docs contract: **140 / 91 / 34** diff --git a/docs/INTEGRATION-MATRIX.md b/docs/INTEGRATION-MATRIX.md index 8615965c..8880b8aa 100644 --- a/docs/INTEGRATION-MATRIX.md +++ b/docs/INTEGRATION-MATRIX.md @@ -10,5 +10,5 @@ - مستوى المنصة: **L0** — PUBLIC / REPRODUCIBLE / OFFLINE - مجموعة المطابقة: **CG-CS/1** -- الاختبارات: **2495** · ملفات الحدود: **1917** · المخالفات: **0** +- الاختبارات: **2502** · ملفات الحدود: **1928** · المخالفات: **0** - عقد الوثائق: **140 / 91 / 34** diff --git a/docs/INVESTOR-ONE-PAGER-en.md b/docs/INVESTOR-ONE-PAGER-en.md index f41b831a..392c275a 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-03T14:42:57Z) +## Measured state (2026-12-03T18:39:56Z) -- **2495** passing tests, pinned in `docs/state-snapshot.json`. -- **1917** files in the boundary audit, **0** violations. +- **2502** passing tests, pinned in `docs/state-snapshot.json`. +- **1928** 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 3dbaeaec..d76fc839 100644 --- a/docs/INVESTOR-ONE-PAGER.md +++ b/docs/INVESTOR-ONE-PAGER.md @@ -4,10 +4,10 @@ طبقة حقيقة قابلة للتحقق للتنفيذ: نيّة → سياسة → تنفيذ → إيصال يُعاد اشتقاقه بايتًا ببايت. كل ادعاء مصنّف، وكل رقم مقيس من شجرة مُلتزَمة. -## الحالة المقيسة (2026-12-03T14:42:57Z) +## الحالة المقيسة (2026-12-03T18:39:56Z) -- **2495** اختبارًا ناجحًا، مثبّتة في `docs/state-snapshot.json`. -- **1917** ملفًا في تدقيق الحدود، **0** مخالفة. +- **2502** اختبارًا ناجحًا، مثبّتة في `docs/state-snapshot.json`. +- **1928** ملفًا في تدقيق الحدود، **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 45245606..06b227cd 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: **1917 files, 0 violations** (pinned in the state snapshot). -- Suite size the documents pin: **2495 tests**. +- Boundary audit: **1928 files, 0 violations** (pinned in the state snapshot). +- Suite size the documents pin: **2502 tests**. - Proof systems registered: **3**, all `NOT_BUILT`, every measurement `null`. - Proof families specified: **3** (specification only; no circuit for any of them). - 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 0222d231..08ec0d5b 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: -- 2495 tests passing (machine-pinned) +- 2502 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 -✅ 2495 tests passing -✅ 1917 files scanned, 0 boundary violations +✅ 2502 tests passing +✅ 1928 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 9f56a561..23e713ca 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. 2495 tests. 0 false accepts. Core DAO + Stellar + Pi Network." +### Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2502 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, 2495 tests green" | +| Sun | Weekly recap | "This week: Stellar Phase 3 complete, 2502 tests green" | ### Key Hashtags #CoreDAO #Stellar #PiNetwork #DeFi #Web3 #Blockchain #Security #Verification diff --git a/docs/NUMBERS.html b/docs/NUMBERS.html index f51756e5..4811f871 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-03T14:42:57Z - commit 1897a5d7cf4a + measured at 2026-12-03T18:39:56Z + commit 7d2ced9d9fa4 source docs/state-snapshot.json schema CG-NUMBERS/1
@@ -58,12 +58,12 @@

CoreGuard — numbers

Tests (full suite, machine-pinned) - 2495 tests + 2502 tests docs/state-snapshot.json#testsTotal
Pass count of the last green `npm test`; the suite asserts this number.
Boundary audit — files scanned - 1917 files + 1928 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 d9494d11..00ebfbf7 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 -- ✅ 2495 tests passing (machine-pinned) -- ✅ 1917 files, 0 boundary violations +- ✅ 2502 tests passing (machine-pinned) +- ✅ 1928 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 024caffa..5c3ff1df 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: **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. +> **Dated addendum (facts only, additive).** This does not revise the 2026-09-19 baseline/gates above; it records later committed developments against the same honesty discipline. Canonical measured state: **2502 / 2502 tests**, **1928 files / 0 violations**, **docs-node 140/91/34**, **Foundry 43/43** — `docs/state-snapshot.json`, `docs/STATUS.md`. No revenue, customers, partnerships, external adoption, or third-party audit is claimed. ### 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 f15ce6ca..234a34fd 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 (2495 tests) +- `npm test` passes (2502 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 79954499..29c566f6 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: **2495 / 2495 pass**, pinned in +Suite total: **2502 / 2502 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 87616f18..b48d5eab 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 | **2495 / 2495 pass** (measured against the committed snapshot; see `docs/state-snapshot.json`) +| Test suite | **2502 / 2502 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) | **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` | +| Boundary audit (committed tree) | **1928 files, 0 violations** (+4 for the aer1 resolver profile promised in ACP SEP #329: `packages/agent-commerce/aer1-profile.mjs` · `scripts/aer1-profile.mjs` · `test/integrations/aer1-profile.test.mjs` · `docs/AER1-PROFILE-RESOLVER-REPORT.md` — recomputes the committed digest, binds the id only against an expectation, and reports draft-26 §6's five outcomes; 8 offline tests over the 6 pinned id-binding vectors, no corpus re-run and no anchor resolution) (+1 for the merged VAR/1 annex draft, PR #175 — an external contribution by Guigui Wang (Correctover), reconciled against Brennan Zambo's independent corpus run: a technical record with its author's name on it, not an endorsement, partnership or completeness claim) (+3 for the CG-CORPUS-PIN/1 refresh rule: `packages/agent-commerce/corpus-pin.mjs` · `scripts/corpus-pin.mjs` · `test/integrations/corpus-pin.test.mjs` — a corpus head move with byte-identical data keeps the pin, a moved data digest demands a new pin and replay evidence, and a missing digest is `incomparable` rather than a pass; no corpus fetched and no third-party value adopted) (+1 for the release dimension's own command: `scripts/corpus-release.mjs` — the rule a reviewer can read is also a rule they can run: canonical form, exit 2 on an unreadable declaration, exit 1 when the release moved) (+3 for the caller-side Stellar snapshot composer: `packages/agent-commerce/stellar-snapshot-composer.mjs` · `test/integrations/stellar-snapshot-composer.test.mjs` · `examples/stellar-snapshot-composition/run.mjs` — ledger skew refuses, custom policy descriptors are carried not flattened, no kit API or network call) (+1 for the rerun comparison after #161/#162: `evidence/handover-observer/comparison-zamback-rerun-2026-11-28.json` — the commitment-layer disagreement is gone and the one remaining difference is the published receiver policy on step 18; the `steps_digest` check now fails the outcome, not just a row) (+1 for the committed trace comparison against Zambo's gist: `evidence/handover-observer/comparison-zamback-rambo.json` — both traces agree on the handover and both decisions and differ only on the mover (`steps_digest` vs step 18), quoted with source URL and byte digest, not adopted; docsNode holds at 140/90/34) (+6 new files plus the observer rule support for AER-1 preimages, the #165 negative control and the Stellar composition note: `scripts/handover-negative-build.mjs` · `test/fixtures/handover/zamback-tampered-step.json` · `test/fixtures/handover/MUTATION.md` · `test/integrations/handover-public-rules.test.mjs` · `docs/stellar-snapshot-composition.md` · `test/integrations/stellar-snapshot-composition.test.mjs` — both published preimages now recomputed, 41/41 positive and one tampered step rejected, no kit API added, no registry publish) (+6 for the CG-X402-IDEM/1 second harness: `implementations/python/x402_idempotency.py` · `implementations/python/test_x402_idempotency.py` · `test/fixtures/x402/idempotency-matrix.json` · `scripts/x402-matrix-run.mjs` · `test/integrations/x402-idempotency-parity.test.mjs` · `docs/x402-idempotency-parity.md` — 13 cases byte-identical across both runtimes, 5 Python unit tests, drift negative control, no MCP surface, no registry publish) (+2 for CG-X402-IDEM/1: `packages/x402/idempotency.mjs` · `test/integrations/x402-idempotency.test.mjs` — 13 offline tests, self-check 8/8, no MCP surface, no publish change) (+22 for the smart-account adapter and the outreach drafts (this push): `docs/outreach/OUTREACH-3-DRAFTS-2026-11-26.md` (three drafts, none sent) · `docs/integrations/openzeppelin-smart-accounts.md` (field mapping for the OZ issue) · `packages/agent-commerce/profiles/nachweis-v1.mjs` + `test/integrations/nachweis-profile.test.mjs` (ACP receipt-pointer profile, 12 offline tests incl. the pinned 7/7 demo fixture) · `test/fixtures/nachweis/demo-allow-reduced.json` (Apache-2.0 reduction, hash-covered fields only) · `test/fixtures/profiles/nachweis-v1.vectors.json` + `test/fixtures/profiles/README.md` + `scripts/nachweis-vector-run.mjs` + `test/integrations/nachweis-vectors.test.mjs` (send-ready profile vector, 3 offline tests) · `implementations/python/nachweis_v1.py` + `test_nachweis_v1.py` + `README.md` + `test/integrations/nachweis-python-parity.test.mjs` (second-language port of the nachweis/v1 resolver, stdlib only, 4 Python tests + 2 parity tests) · `packages/agent-commerce/smart-account-adapter.mjs` · `packages/agent-commerce/smart-account-adapter.d.mts` · `test/integrations/smart-account-adapter.test.mjs` (9 offline tests, tamper + no-network) · `docs/outreach/issue-openzeppelin-stellar-contracts-2026-11-26.md` (draft, not sent) — docsNode holds at 140/90/34) (+5 for the 0.5.1 community and client-run surface (this push): `.github/ISSUE_TEMPLATE/{bug-report,design-partner,integration-request}.yml` · `docs/OUTREACH-TARGETS-2026-11-26.md` · `docs/evidence/mcp-client-run-0.5.1.json` (a JSON transcript, fence-free) — docsNode holds at 140/90/34; re-measured against the committed tree; +20 for the CG-ZK/1 research set this push: `spec/CG-ZK-1.md` + 7 child specs, 5 `research/zk/` documents, `packages/zk-privacy/{index,proof-systems}.mjs`, `scripts/zk-envelope-demo.mjs`, `test/zk/{zk-privacy,leakage,terminology}.test.mjs`, `docs/CG-ZK-1-RESEARCH-BRIEF-2026-12.md` - fence-free, so docsNode holds at 140/90/34) (+4 for the CG-OBS/1 observation ledger (this push): `packages/agent-commerce/observations.mjs` · `scripts/aer1-observations.mjs` · `test/integrations/aer1-observations.test.mjs` · `docs/AER1-OBSERVATION-LEDGER.md` - the page carries one `text` fence so docsNode holds at 140/89/33; re-measured against the committed tree) (+5 for the MCP 0.1.3 reliability surface (this push): `docs/agent-commerce-mcp-compatibility.md` · `docs/agent-commerce-mcp-security.md` · `docs/releases/0.1.3.md` · `examples/agent-commerce-mcp/README.md` · `examples/agent-commerce-mcp/run.mjs` — the three docs are fence-free prose, the example README's blocks are `text`, and the runnable example is referenced by command, so docsNode stays 139/83/32; re-measured against the committed tree; +2 for the pilot SOW and report form (this push): `docs/PILOT-SOW.md` · `docs/PILOT-REPORT-TEMPLATE.md` — both fence-free prose, so docsNode holds at 139/83/32; +3 arrived on main before this pin moved (#83 announcement note, #85 DDE SDK/API reference desk); +9 for the positioning and investment-readiness pack (this push): `COREGUARD-INVESTMENT-READINESS.md` · `docs/POSITIONING.md` · `docs/PRODUCT.md` · `docs/INVESTORS.md` · `docs/BUSINESS-MODEL.md` · `docs/PARTNERSHIPS.md` · `docs/TEAM.md` · `docs/SECURITY-REVIEWS.md` · `docs/EVIDENCE.md` — all fence-free prose, so docsNode holds at 139/83/32; +7 for the Salla Shop (Pi) pilot proposal package (this push): `docs/proposals/salla-shop-pi/README.md` · `TECHNICAL-PILOT-PROPOSAL-v1.0.md` (+ its `.ar.md`) · `MVP-SPEC-AND-TEST-PLAN.md` (+ its `.ar.md`) · `OUTREACH-DRAFTS.md` (+ its `.ar.md`) — all fence-free prose, so docsNode is unchanged; +2 from main since this branch opened (#76 published `docs/DOCS.html` · `docs/PARTNER.html`) - the audit counts the merged tree, so the pin moves with main; +5 for interop-demo/corpus-report/start-here (this push): `docs/START-HERE.md` · `docs/templates/AER1-CORPUS-RUN-REPORT-TEMPLATE.md` · `examples/agentbadge-receipt-seam/{README.md,run.mjs}` · `scripts/aer1-corpus-report.mjs` (+ docs-node contract/snapshot alignment); +2 for the anchor-layer vector (this push): `test/fixtures/var1-corpus-v1/anchor-unresolvable.json` · `test/integrations/var1-corpus-anchor-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; publication state for both vectors is kept in `docs/aer1-corpus-publication.json`+2 for the publication record and its guard (this push): `docs/aer1-corpus-publication.json` · `test/ci/corpus-publication-claim.test.js` — fence-free, so docsNode holds at 133/82/30; +2 for the CG-VECTOR/1 corpus vector (this push): `test/fixtures/var1-corpus-v1/present-consistent-nonconforming.json` · `test/integrations/var1-corpus-vector.test.mjs` — fence-free, so docsNode holds at 133/82/30; +3 for the public verify/numbers surfaces (2026-11-18 push): `scripts/public-numbers.mjs` · `docs/numbers.json` · `docs/NUMBERS.html` — all fence-free, so docsNode holds at 133/82/30; +2 for the luxe-pages identity merge/push (PR #65 follow-up fix, 2026-11-18): `docs/assets/coreguard-luxe.css` · `docs/assets/coreguard-luxe.js` (shared GitHub Pages assets); docsNode holds at 133/82/30; +4 for the npm-publication wave (2026-11-17 push): `packages/agent-commerce/package.json` · `packages/agent-commerce/bin/mcp.mjs` (stdio MCP bin wrapper) · `packages/agent-commerce/README.md` (its single `json` fence is MCP client configuration data, not a documented command) · `packages/agent-commerce/server.json` (MCP Registry server.json, schema 2025-12-11, validated against the live registry); +7 for the CG-TAS/1 trust-anchor wave (2026-11-17 push): `scripts/ladder/trust-anchor-set.mjs` · `scripts/ladder/provenance-fuzz.mjs` · `test/integrations/trust-anchor-set.test.mjs` · `test/integrations/provenance-fuzz.test.mjs` · `test/integrations/provenance-mutations.test.mjs` · `docs/AER1-TRUST-ANCHOR-SET-SPEC-V1-DRAFT.md` · `docs/owner-execution/REVIEWER-SELECTION-RUBRIC-2026-11-17.md` — the two docs are command-free prose, so docsNode holds at 133/82/30; +6 for the bilingual reviewer-deliverable contracts (2026-11-17 push): `test/ci/demo-script-contract.test.js` · `test/ci/bilingual-pairs.test.js` · `docs/i18n-pairs.json` · `docs/reviewer-demo-script-2026-09-ar.md` · `docs/sep-receipt-semantics-draft-2026-11-11-ar.md` · `docs/STELLAR-INTEGRATION-GUIDE-ar.md` — fence-free additions, docsNode unchanged; +4 for the adoption instruments (this push): `docs/loi/README.md` · `docs/loi/LOI-AER1-ZAMBO-2026-11-16.md` · `docs/loi/LOI-PILOT-STELLAR-2026-11-16.md` · `docs/AUDIT-READINESS-PACK-2026-11-16.md` — the command blocks are `text` fences, not `bash`, so docsNode holds at 133/81/30; +8 for the composed authorization firewall (this push): `packages/agent-commerce/firewall.mjs` · `packages/agent-commerce/policy-context.mjs` · `test/integrations/agent-commerce-firewall.test.mjs` · `examples/agent-commerce-firewall/{run.mjs,README.md,artifacts.json}` · `docs/agent-commerce-firewall-2026-11-16.md` · `docs/assets/badges/ci-1694-tests.svg` — all fence-free, so docsNode holds at 133/81/30; +25 for the agent-commerce family push: `docs/AGENT-COMMERCE-SECURITY-SPEC-V1.md` · `docs/agent-commerce-dashboard.html` · `docs/agent-commerce-console.html` · `docs/agent-commerce-funding-and-partnerships-2026-11-14.md` · the five dated instruments `docs/agent-commerce-openai-outreach-dossier-2026-11-15.md` · `docs/partner-outreach-messages-2026-11-15.md` · `docs/agentic-commerce-weekly-opportunities-2026-11-15.md` · `docs/agent-commerce-integration-guide-2026-11-15.md` · `docs/agent-commerce-tech-video-script-2026-11-15.md` (all fence-free so docsNode holds at 133/79/30) · `packages/agent-commerce/{index.mjs,index.d.ts,http.mjs,mcp.mjs,risk.mjs}` · 7 agent-commerce test files · 3 example files (`examples/agent-commerce-security-suite` README/artifacts/run.mjs) · `docs/assets/badges/ci-1673-tests.svg` (README pointed at it; the file was NEVER committed — the badge 404'd until the 2026-11-16 push shipped the count-matched `ci-1694-tests.svg` and re-pointed the href); then +1 for `docs/PILOT-KIT.md` (this push) - the two-page pilot offer: two-week scope, measurable success criteria, and the exact third-party-verifiable artifact, fence-free so docsNode holds at 133/79/30; +7 for the execution-trust layer: `examples/execution-trust/run.mjs` · `examples/execution-trust/verify-third-party.mjs` · `test/integrations/execution-trust-demo.test.mjs` · `docs/EXECUTION-TRUST-LAYER.md` · `docs/COMPETITIVE-LANDSCAPE.md` · `docs/SCF-BUILD-APPLICATION-V3.md` · `docs/DEVELOPER-QUICKSTART.md` — all fence-free, so docsNode holds at 133/79/30; +4 for the agentic-commerce approval-binding kit (this push): `examples/agent-commerce-approval-binding/run-demo.js` · `examples/agent-commerce-approval-binding/artifacts.json` · `examples/agent-commerce-approval-binding/README.md` · `docs/agent-commerce-moment-chatgpt-wallet-2026-11-14.md` — the offline demo (fence-free, docsNode unchanged) + the dated instrument (fence-free, zero test counts); +3 for the SCF RFP-2 submission kit (this push): `docs/SCF-46-RFP2-XDR-AUDIT-SUBMISSION-2026-11-13.md` · `scripts/scf-rfp2-sighting-repro.mjs` · `docs/evidence/scf-rfp2-sighting-repro.json` - the dated submission instrument (fence-free, docsNode unchanged) + its offline deterministic sighting-reproduction evidence (the js-stellar-sdk#1766 ordering-divergence class + 4 synthetic byte-round-trip-verified corpus entries, no key material committed); +4 for the PSAR/1 pre-sign receipt kit (this push): `packages/stellar/presign.mjs` · `test/integrations/stellar-presign.test.mjs` · `examples/stellar-presign/demo.mjs` · `docs/freighter-presign-integration-proposal-2026-11-12.md`; +1 for `docs/psar-security-review-2026-11-12.md` (the PSAR/1 critical self-review: the three security questions answered line-referenced with named boundaries); then +7 for the signed-envelope threat model, the replay vector + its generator, the field-tamper and replay tests, and the SCF readiness audit; +1 for `scripts/agent-gate-freighter-attest.mjs`; +4 for the browser demo — `examples/agent-gate-browser/serve.mjs`, `examples/agent-gate-browser/index.html`, `test/integrations/agent-gate-browser-demo.test.mjs`, `docs/assets/badges/ci-1539-tests.svg`; +2 for `scripts/agent-gate-testnet-sign.mjs` and `docs/evidence/agent-gate-testnet-signature.json`; the signed-envelope batch added `packages/agent-gate/adapters/stellar-xdr.mjs` · `packages/agent-gate/adapters/freighter.mjs` · `packages/agent-gate/verify-cli.mjs` · `packages/agent-gate/demo/cli-flow.mjs` · `scripts/agent-gate-bench.mjs` · `test/integrations/agent-gate-envelope.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; the untracked `examples/stellar-integration-pilot/` is NOT counted — it is not in `git ls-files`) (+1 parallel-session deliverable adopted in the reconciliation: `docs/deploy-stamp-id.txt` — the deploy stamp recorded by the owner's parallel Codebuff session; +4 owner-authorized deploy cycle: `docs/OWNER-DECISIONS-2026-11-08.md` · `scripts/stellar-soroban-authorized-deploy.mjs` · `test/integrations/stellar-soroban-authorized-deploy.test.mjs` · `docs/assets/badges/ci-1539-tests.svg`; +2 hardening-batch final reports, 2026-11-07 dated instruments SHA-pinned to `ea7e154`: `docs/FINAL-REPORT-2026-11-07-ar.md` · `docs/FINAL-REPORT-2026-11-07.md`; +3 — `docs/CLAIMS-TAXONOMY.md` · `test/ci/doc-numbers.test.js` · `docs/assets/badges/ci-1451-tests.svg` · then +2 CG-BDG/1 badge package: packages/badge/package.json · packages/badge/README.md; +1 funded-swap runner +1 measured executed artifact +1 CI badge plate +1 SCF-46 pack: `scripts/stellar-dex-swap-executed.mjs` · `docs/evidence/stellar-dex-swap-executed.json` · `docs/assets/badges/ci-1436-tests.svg` · `docs/SCF-46-INTEREST-FORM-READY-2026-11-06.md`; earlier: +1 CI badge docs/assets/badges/ci-1433-tests.svg; +2 soroban commit: scripts/stellar-soroban-commit-executed.mjs · docs/evidence/stellar-soroban-commit-executed.json; earlier: +7 executed-evidence artifacts & runners: scripts/stellar-agent-gate-executed.mjs · scripts/stellar-dex-gate-real.mjs · scripts/universal-shield-executed.mjs · test/integrations/execution-evidence-contract.test.mjs · docs/evidence/stellar-agent-gate-executed.json · docs/evidence/stellar-dex-gate-executed.json · docs/evidence/universal-dapp-shield-executed.json; from the trust-gate/legal-node/lab/bot surge: +1 docs/TRUST.md, +1 docs/VERIFY-BOT.md, +1 docs/LABS.md, +1 LICENSE.md; +1 test/fixtures/create-meta-v4.b64.txt from the CI-portability fix — the STELLAR/1 v4 create-result fixture moved IN-tree from a dev Temp path; +5 for the product-5 push (this push): `packages/agent-commerce/attest.mjs` · `test/integrations/agent-commerce-attestation.test.mjs` · `examples/agent-commerce-attestation/{run.mjs,README.md,artifacts.json}` (all fence-free so docsNode holds at 133/79/30)) | `npm run boundary:audit` — counted from `git ls-files` (the count a clean clone reproduces, not this dev disk), machine-pinned as `docs/state-snapshot.json#boundaryAudit` and re-measured by `test/ci/current-state.test.js` | | 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 4de1c112..7894217f 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: 2495 tests, 1917 files / 0 violations, 0 red checks (state-snapshot) +- Measured: 2502 tests, 1928 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 0f62a543..2db9c0d4 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 + 2495 tests passing +- **Working proof**: Live Stellar testnet demo + 2502 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 08531806..0906a0c0 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-03T14:42:57Z
Commit: 1897a5d7
-
Tests
2,495
machine-pinned pass total
-
Boundary audit
1,917 files
0 violations
+
Measured: 2026-12-03T18:39:56Z
Commit: 7d2ced9d
+
Tests
2,502
machine-pinned pass total
+
Boundary audit
1,928 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 a6948621..d48779a0 100644 --- a/docs/TRUST-CENTER.html +++ b/docs/TRUST-CENTER.html @@ -36,9 +36,9 @@

مركز الثقة — CoreGuard

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

-
قياس: 2026-12-03T14:42:57Z
الالتزام: 1897a5d7
-
الاختبارات
2,495
مجموع النجاح المثبّت في اللقطة
-
تدقيق الحدود
1,917 ملفًا
0 مخالفة
+
قياس: 2026-12-03T18:39:56Z
الالتزام: 7d2ced9d
+
الاختبارات
2,502
مجموع النجاح المثبّت في اللقطة
+
تدقيق الحدود
1,928 ملفًا
0 مخالفة
عقد الوثائق
140 / 91 / 34
مُنفّذ / مستثنى بسبب / وثائق مغطّاة
الادعاءات
21 / 35
مُتحقَّق منها مقابل الإجمالي
الشارات الصادرة
0
2 نموذج تصميم
diff --git a/docs/TWITTER-CONTENT.md b/docs/TWITTER-CONTENT.md index 4c67ac53..85d3ecd8 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. 2495 tests. 0 false accepts. Core DAO + Stellar + Pi Network." +## Bio: "Verifiable Execution Truth Layer for Bitcoin DeFi. 2502 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. -2495 tests. 0 false accepts. 0 false rejects. +2502 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. -2495 tests passing. -1917 files scanned. +2502 tests passing. +1928 files scanned. 0 boundary violations. 18/18 release gate legs. diff --git a/docs/adoption-dashboard.md b/docs/adoption-dashboard.md index 0675ca6d..0b8ff534 100644 --- a/docs/adoption-dashboard.md +++ b/docs/adoption-dashboard.md @@ -52,8 +52,8 @@ default. | Metric | Value | |---|---| -| Test suite | 2495 | -| Boundary audit | 1917 files / 0 violations | +| Test suite | 2502 | +| Boundary audit | 1928 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 4bab01e7..4d05da50 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-03T14:42:57Z", - "gitCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", + "measuredAtUtc": "2026-12-03T18:39:56Z", + "gitCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", "badges": [ { "id": "tests", "file": "state-tests.svg", "label": "tests", - "value": "2495 passing", + "value": "2502 passing", "source": "docs/state-snapshot.json#testsTotal" }, { "id": "boundary", "file": "state-boundary.svg", "label": "boundary", - "value": "1917 files · 0 violations", + "value": "1928 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 2d215ae1..1bf532d3 100644 --- a/docs/assets/badges/state-boundary.svg +++ b/docs/assets/badges/state-boundary.svg @@ -1,11 +1,11 @@ - - boundary: 1917 files · 0 violations + + boundary: 1928 files · 0 violations boundary - 1917 files · 0 violations + 1928 files · 0 violations diff --git a/docs/assets/badges/state-tests.svg b/docs/assets/badges/state-tests.svg index 298c1964..962200b1 100644 --- a/docs/assets/badges/state-tests.svg +++ b/docs/assets/badges/state-tests.svg @@ -1,11 +1,11 @@ - - tests: 2495 passing + + tests: 2502 passing tests - 2495 passing + 2502 passing diff --git a/docs/claims-registry.json b/docs/claims-registry.json index 54b9bdae..6e84dd45 100644 --- a/docs/claims-registry.json +++ b/docs/claims-registry.json @@ -50,11 +50,11 @@ "recheck": "npm test", "external": false, "derived": { - "testsTotal": 2495 + "testsTotal": 2502 }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-BOUNDARY-CLEAN", @@ -69,12 +69,12 @@ "recheck": "npm run boundary:audit", "external": false, "derived": { - "filesScanned": 1917, + "filesScanned": 1928, "violations": 0 }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-DOCS-NODE-EXECUTED", @@ -97,7 +97,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-L1-CHAIN-CONFIRMED", @@ -116,7 +116,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-L3-PROOFS", @@ -134,7 +134,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-L4-RESEARCH", @@ -153,7 +153,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-CG-ZK-1-SPEC", @@ -186,7 +186,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-ZK-ENVELOPE-BINDING", @@ -210,7 +210,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-ZK-NO-BACKEND", @@ -234,7 +234,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-LIVE-CHAIN-AUTHORITY", @@ -248,7 +248,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-ADAPTERS-DRY-RUN", @@ -269,7 +269,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-WEBHOOK-RECEIVER", @@ -293,7 +293,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-WEBHOOK-DELIVERIES", @@ -307,7 +307,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-X402-GATE", @@ -327,7 +327,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-X402-LIVE-PAYMENT", @@ -346,7 +346,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-REPLAY-LAB", @@ -370,7 +370,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-SANDBOX-OFFLINE", @@ -391,7 +391,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-STELLAR-PRESIGN-RECEIPT", @@ -427,7 +427,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-STELLAR-OWNER-SETTLEMENT", @@ -456,7 +456,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-ATTACK-LAB", @@ -477,7 +477,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-CONFORMANCE-EMPTY", @@ -497,7 +497,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-BADGE-NOT-ISSUED", @@ -516,7 +516,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-BADGE-VERIFIABLE", @@ -564,7 +564,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-PRICES-LOCKED", @@ -585,7 +585,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-REVENUE-ZERO", @@ -604,7 +604,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-NAMED-INTEGRATOR", @@ -622,7 +622,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-REPUTATION-UNPROVEN", @@ -642,7 +642,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-RISK-FINDINGS", @@ -662,7 +662,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-OWNER-SIGNOFF", @@ -681,7 +681,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-INDEPENDENT-REVIEW", @@ -695,7 +695,7 @@ "derived": null, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-BUILD-ADOPTION-INDEPENDENT", @@ -717,7 +717,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-ADOPTION-EXTERNAL-VERIFIERS", @@ -733,7 +733,7 @@ "derived": {}, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-RELEASE-TRIGGER", @@ -753,7 +753,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-CG-TAS-1", @@ -773,7 +773,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" }, { "id": "CL-PROV-CAMPAIGNS-1", @@ -793,7 +793,7 @@ }, "deriveError": null, "downgraded": null, - "asOf": "2026-12-03T14:42:57Z" + "asOf": "2026-12-03T18:39:56Z" } ], "rules": [ diff --git a/docs/evidence-passport-v2.json b/docs/evidence-passport-v2.json index c7d5cab8..44f79738 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": 2495, - "filesScanned": 1917, + "testsTotal": 2502, + "filesScanned": 1928, "violations": 0, "docsNode": { "executed": 140, diff --git a/docs/integration-registry.json b/docs/integration-registry.json index 39f74e9e..55b3b9b3 100644 --- a/docs/integration-registry.json +++ b/docs/integration-registry.json @@ -1,7 +1,7 @@ { "platform": { - "testsTotal": 2495, - "filesScanned": 1917, + "testsTotal": 2502, + "filesScanned": 1928, "violations": 0, "peoplesCourtHarness": "PEOPLES_COURT_HARNESS_READY", "docsNode": { diff --git a/docs/numbers.json b/docs/numbers.json index dcdd72b7..ade8eb2c 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-03T14:42:57Z", - "measuredOnCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", + "measuredAtUtc": "2026-12-03T18:39:56Z", + "measuredOnCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", "metrics": [ { "id": "tests", "label": "Tests (full suite, machine-pinned)", - "value": 2495, + "value": 2502, "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": 1917, + "value": 1928, "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 a89f5bb1..404714f2 100644 --- a/docs/state-snapshot.json +++ b/docs/state-snapshot.json @@ -1,10 +1,10 @@ { - "measuredAtUtc": "2026-12-03T14:42:57Z", - "gitCommit": "1897a5d7cf4a360a16c0023548a3e0a514a2e671", - "commitsAheadOfV060": 735, - "testsTotal": 2495, + "measuredAtUtc": "2026-12-03T18:39:56Z", + "gitCommit": "7d2ced9d9fa443b6ae40840234c6bc260699361d", + "commitsAheadOfV060": 740, + "testsTotal": 2502, "boundaryAudit": { - "filesScanned": 1917, + "filesScanned": 1928, "violations": 0, "check": "PASS" }, diff --git a/index.html b/index.html index f5c887f3..311ee3f9 100644 --- a/index.html +++ b/index.html @@ -61,7 +61,7 @@

The Killer Ladder

Proof

-

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

+

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

Company

diff --git a/scripts/run-tests.mjs b/scripts/run-tests.mjs index 60ea3770..f11e1e14 100644 --- a/scripts/run-tests.mjs +++ b/scripts/run-tests.mjs @@ -10,7 +10,7 @@ import { readdirSync, readFileSync, writeFileSync } from "fs"; import { join } from "path"; import { spawnSync } from "child_process"; -const suites = ["test/canonicalization", "test/tamper", "test/anchor", "test/p1", "test/p2", "test/evm", "test/provenance", "test/delivery", "test/pricing", "test/ci", "test/firewall", "test/firewall/attack-lab", "test/firewall/ws1", "test/sdk", "test/independent-verifier", "test/recovery", "test/verifier-c", "test/eol", "test/encoding", "test/conformance/live", "test/integrations", "test/zk"]; +const suites = ["test/canonicalization", "test/tamper", "test/anchor", "test/p1", "test/p2", "test/evm", "test/provenance", "test/delivery", "test/pricing", "test/ci", "test/firewall", "test/firewall/attack-lab", "test/firewall/ws1", "test/sdk", "test/independent-verifier", "test/recovery", "test/verifier-c", "test/eol", "test/encoding", "test/conformance/live", "test/integrations", "test/zk", "test/detectors"]; const files = []; for (const dir of suites) { diff --git a/spec/VER-1.md b/spec/VER-1.md new file mode 100644 index 00000000..49fa73ed --- /dev/null +++ b/spec/VER-1.md @@ -0,0 +1,68 @@ +# CoreGuard Verifiable Execution Receipt v1 (VER/1) + +**Status:** PROTOTYPE +**Claim boundary:** VER/1 is a proposed deterministic receipt specification. It does not replace existing CGEP/1 receipt formats and does not by itself assert third-party audits, production deployments, or external integrations. + +## Principle + +> Never trust an intention. Verify the operation. Preserve the evidence. + +Authorization, Execution, and Settlement are **three independent stages** and MUST NEVER be merged: +- A valid signature proves **Authorization**, not that the executed operation matched intent. +- Observed **Execution** does not establish **Settlement** or finality. +- Missing, malformed, or unverifiable evidence MUST fail closed as `NOT_VERIFIED` — never silently downgraded to approval. + +## Required Fields + +| Field | Type | Description | +|---|---|---| +| `version` | `"VER/1"` | Specification version identifier. | +| `status` | `"PROTOTYPE"` | Maturity tag for this specification profile. | +| `requester` | `object` | Identity scheme, identifier, and identity evidence references. | +| `intent` | `object` | Requested action, asset, unit, amount (decimal string for big integers), recipient, and constraints. | +| `authorization` | `object` | Applied policy IDs/versions, authorization evidence, stage `verdict`, and declared `scope`. | +| `execution` | `object` | Observed execution payload, evidence references, stage `verdict`, and declared `scope`. | +| `settlement` | `object` | Observed settlement/finality data, evidence references, stage `verdict`, and declared `scope`. | +| `context` | `object` | Network identifier, `observed_at`, `evaluated_at`, `clock_source`, `transaction_id`, `block_id`. | +| `verdict` | `"VERIFIED" \| "NOT_VERIFIED" \| "REJECTED"` | Overall fail-closed verdict. | +| `not_verified` | `array` | Explicit list of everything NOT verified (`{ stage, code, explanation }`). Required even when empty. | +| `evidence` | `array` | Content-addressed evidence references (`{ id, sha256, provenance, uri }`). | +| `signatures` | `array` | Detached signature records (`{ algorithm, key_id, digest, signature }`). Required even when empty. | + +## Verdict Aggregation (Fail-Closed) + +1. If any stage (`authorization`, `execution`, `settlement`) is `REJECTED` → overall `verdict = "REJECTED"`. +2. Else if any stage is `NOT_VERIFIED` OR `not_verified.length > 0` OR required signatures/evidence are unvalidated → overall `verdict = "NOT_VERIFIED"`. +3. Else → `verdict = "VERIFIED"`. +4. Only `VERIFIED` may pass a gate. Both `NOT_VERIFIED` and `REJECTED` deny passage. + +## Canonical Hashing + +1. Remove top-level `signatures` from the receipt object (keep all other fields, including `not_verified`). +2. Recursively serialize all objects with keys sorted lexicographically by UTF-16 code units; preserve array order; no insignificant whitespace; UTF-8 encoding; reject duplicate keys, `NaN`, `Infinity`, `-0`, and unsafe integers. +3. Compute lowercase hexadecimal `SHA-256` over the resulting UTF-8 bytes. +4. Signatures sign the raw 32-byte digest and record the hex digest in each signature entry. + +## Illustrative Example (Unsigned → `NOT_VERIFIED`) + +```json +{ + "version": "VER/1", + "status": "PROTOTYPE", + "requester": { "scheme": "local", "identifier": "agent-demo-1", "evidence": [] }, + "intent": { "action": "transfer", "asset": "USDC", "unit": "minor", "amount": "1000000", "recipient": "GEXAMPLE...", "constraints": { "network": "stellar:testnet" } }, + "authorization": { "policies": [{ "id": "agent-spend-v1", "version": "1" }], "evidence": [], "verdict": "NOT_VERIFIED", "scope": "spending policy" }, + "execution": { "observed": null, "evidence": [], "verdict": "NOT_VERIFIED", "scope": "transfer execution" }, + "settlement": { "observed": null, "evidence": [], "verdict": "NOT_VERIFIED", "scope": "ledger finality" }, + "context": { "network": "stellar:testnet", "observed_at": null, "evaluated_at": "2026-12-03T00:00:00Z", "clock_source": "fixture", "transaction_id": null, "block_id": null }, + "verdict": "NOT_VERIFIED", + "not_verified": [ + { "stage": "authorization", "code": "MISSING_EVIDENCE", "explanation": "No authenticated policy proof supplied." }, + { "stage": "execution", "code": "UNOBSERVED", "explanation": "Execution not observed." }, + { "stage": "settlement", "code": "UNOBSERVED", "explanation": "Settlement not observed." }, + { "stage": "receipt", "code": "UNSIGNED", "explanation": "No signature attached." } + ], + "evidence": [], + "signatures": [] +} +``` diff --git a/test/detectors/detectors.test.js b/test/detectors/detectors.test.js new file mode 100644 index 00000000..03deac2e --- /dev/null +++ b/test/detectors/detectors.test.js @@ -0,0 +1,86 @@ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { detectAgentPay } from "../../detectors/agent-pay/index.js"; +import { scanPqcReadiness } from "../../detectors/pqc-readiness/index.js"; +import { detectOracle } from "../../detectors/oracle/index.js"; + +const BASE_PAY = { + contextVerified: true, + amount: 10, + dailySpent: 20, + sessionSpent: 30, + perTransactionLimit: 10, + dailyLimit: 30, + sessionLimit: 40, + recipient: "alice", + recipientAllowlist: ["alice"], +}; + +test("PROTOTYPE agent-pay verifies at exact spending limits and allowlisted recipient", () => { + const res = detectAgentPay(BASE_PAY); + assert.equal(res.verdict, "VERIFIED"); + assert.deepEqual(res.reasons, []); +}); + +test("PROTOTYPE agent-pay rejects violated per-tx, daily, session limits or unlisted recipient", () => { + assert.deepEqual(detectAgentPay({ ...BASE_PAY, perTransactionLimit: 9 }).reasons, ["PER_TRANSACTION_LIMIT"]); + assert.deepEqual(detectAgentPay({ ...BASE_PAY, dailyLimit: 29 }).reasons, ["DAILY_LIMIT"]); + assert.deepEqual(detectAgentPay({ ...BASE_PAY, sessionLimit: 39 }).reasons, ["SESSION_LIMIT"]); + assert.deepEqual(detectAgentPay({ ...BASE_PAY, recipient: "bob" }).reasons, ["RECIPIENT"]); +}); + +test("PROTOTYPE agent-pay fails closed (NOT_VERIFIED) on missing, negative, or unverified context", () => { + for (const key of Object.keys(BASE_PAY)) { + const missing = { ...BASE_PAY }; + delete missing[key]; + assert.equal(detectAgentPay(missing).verdict, "NOT_VERIFIED"); + } + assert.equal(detectAgentPay({ ...BASE_PAY, amount: -1 }).verdict, "NOT_VERIFIED"); + assert.equal(detectAgentPay({ ...BASE_PAY, contextVerified: false }).verdict, "NOT_VERIFIED"); + assert.equal(detectAgentPay(null).verdict, "NOT_VERIFIED"); +}); + +test("PROTOTYPE pqc-readiness inventories algorithms and never claims readiness", () => { + const res = scanPqcReadiness("Ed25519 ECDSA secp256k1 RSA RSA-2048 ML-DSA-65 Dilithium3"); + assert.equal(res.inventory.length, 5); + assert.equal(res.inventory.find((x) => x.algorithm === "RSA").count, 2); + assert.equal(res.verdict, "NOT_VERIFIED"); + assert.match(res.crypto_agility_note, /do not prove readiness/); + assert.equal(scanPqcReadiness(null).verdict, "NOT_VERIFIED"); +}); + +const BASE_ORACLE = { + contextVerified: true, + nowSec: 100, + maxAgeSec: 10, + maxDeviationBps: 100, + minSources: 2, + sources: [ + { id: "a", price: 10000, timestampSec: 90 }, + { id: "b", price: 10100, timestampSec: 100 }, + ], +}; + +test("PROTOTYPE oracle verifies fresh, quorum-met prices within deviation bps", () => { + const res = detectOracle(BASE_ORACLE); + assert.equal(res.verdict, "VERIFIED"); + assert.deepEqual(res.reasons, []); +}); + +test("PROTOTYPE oracle rejects stale price, excess deviation, or insufficient sources", () => { + assert.deepEqual(detectOracle({ ...BASE_ORACLE, maxAgeSec: 9 }).reasons, ["STALE_PRICE"]); + assert.deepEqual(detectOracle({ ...BASE_ORACLE, maxDeviationBps: 99 }).reasons, ["PRICE_DEVIATION"]); + assert.deepEqual(detectOracle({ ...BASE_ORACLE, minSources: 3 }).reasons, ["INSUFFICIENT_SOURCES"]); +}); + +test("PROTOTYPE oracle fails closed on future timestamp, duplicate source id, or missing input", () => { + assert.equal( + detectOracle({ ...BASE_ORACLE, sources: [{ ...BASE_ORACLE.sources[0], timestampSec: 101 }, BASE_ORACLE.sources[1]] }).verdict, + "NOT_VERIFIED", + ); + assert.equal( + detectOracle({ ...BASE_ORACLE, sources: [BASE_ORACLE.sources[0], { ...BASE_ORACLE.sources[1], id: "a" }] }).verdict, + "NOT_VERIFIED", + ); + assert.equal(detectOracle(null).verdict, "NOT_VERIFIED"); +});