Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ↔ 2009 ↔ 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 ↔ 2013 ↔ 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": {"<id>": {ar, en}}, "attrs": …}` as a **bijection** against the markup: **277 static `data-i18n` keys ↔ 277 entries**, 0 missing, 0 orphan, every entry carrying a non-empty `ar` and `en`, no `.en` leaking Arabic, and `apply()` itself asserted to still iterate `D.nodes` and select by the iterated key (data can be perfect while the switcher no longer reads it — the [C27] two-channel trap). Two measured facts that look like defects and are **not**: entries 84/93/104 have an `.ar` with no Arabic because they are the bare RTL arrows `←`/`→`, and **29** entries embed a *nested* `data-i18n` inside their own `.ar` value (the outer entry replaces `innerHTML`, so the inner attribute is redundant and order-dependent, yet every inner key also appears in static markup so nothing is orphaned and the page renders correctly) — the count is **pinned, not asserted zero**, because changing it is a deliberate edit to a live investor-facing page. **(3) the EN sister `coreguard-gate41-visual-en.html` itself** — this was the last unguarded piece, and `test/p2/gate41-visual-en-parity.test.js` now closes it. The invariant is **NOT** "the two files are identical" — measured, they are not, and asserting it would be another dead number like 637. The AR page is the *interactive* twin (language switcher); the sister is the *printable* twin (printhead + print button), which is exactly why [C5]'s dictionary walk dropped the EN `printhead` subtree first. So the contract pins (a) **all 277 dictionary `.en` values appear verbatim in the sister** — the cross-file link, 0 absent; (b) **load-bearing element counts are identical** (section 10 · h1 1 · h2 10 · h3 12 · h4 5 · table 4 · thead/tbody 4 · tr 30 · ul 5 · li 10 · a 14 · p 19 · button 3 · ids 34) — a row or heading that exists in one twin only means the sister is a stale snapshot, invisible to any per-file test; (c) the **only** permitted tag differences are `b`/`span`/`div` each **+1** in the sister, pinned as a set and re-checked against the presence of the `printhead` that causes them, so a new divergence cannot hide beside a sanctioned one; (d) the sister **stays dictionary-free** (0 `data-i18n`, 0 `D.nodes`, 0 `L(`) — it is literal English, and a second dictionary would be a second source of truth ([C27]); (e) the sister leaks **no Arabic** in any of its 539 text runs; (f) `lang="ar" dir="rtl"` vs `lang="en" dir="ltr"` — the one attribute pair that *should* differ, and wrong `dir` reverses the whole board's order while every text assertion still passes; (g) the role asymmetry is pinned as fact, so nobody "fixes" it and nobody lets it rot. One consequence worth knowing: **221 of the 277 `.ar` values are already literal Arabic in the static markup**, so the AR page renders with JS disabled — the dictionary is the *switcher's payload*, not its only source of text, and that count is pinned so stripping the literal text (a silent availability regression every dictionary assertion would pass) cannot land unnoticed. 12 negative controls, and the battery reports **coverage, not just a count**: all 8 tests were observed failing (the extractor needs `--test-reporter=tap`, because the default reporter prints glyphs and an ASCII `not ok` filter finds nothing).
- `verification/cg-assurance-verify.ps1` self-test count (21) ↔ `selftest.tap` frozen bytes ↔ README/STATUS claims (21/21).
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,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. 2009/2009 tests, offline and fail-closed. | جدار تفويض للوكلاء، وإيصالات موافقة قابلة للتحقق، ومحرك مخاطر — SDK وخادم MCP وREST API. ‏2009/2009 اختبار، دون اتصال ورفض آمن. |
| ★ 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. 2013/2013 tests, offline and fail-closed. | جدار تفويض للوكلاء، وإيصالات موافقة قابلة للتحقق، ومحرك مخاطر — SDK وخادم MCP وREST API. ‏2013/2013 اختبار، دون اتصال ورفض آمن. |
| 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 بانتظار بوابة الإصدار. |
Expand Down Expand Up @@ -349,7 +349,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: **2009 / 2009 tests**, **1420 files scanned / 0 violations**, **docs-node 133 executed · 82 skip-listed · 30 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: **2013 / 2013 tests**, **1420 files scanned / 0 violations**, **docs-node 133 executed · 82 skip-listed · 30 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

Expand Down Expand Up @@ -726,7 +726,7 @@ CoreGuard answers one question with evidence: **did this execution conform to wh
npm install

# 2. Test + benchmark
npm test # 2009 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 # 2013 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
Expand Down
16 changes: 8 additions & 8 deletions docs/AER1-INTEROP-TABLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ A `verified` outcome here means the saved bytes were not changed after they were

| Outcome | Vectors |
|---|---|
| agree with the corpus | 43 |
| agree with the corpus | 94 |
| **false accept (ours — must be zero)** | **0** |
| false reject (ours) | 0 |
| not checked (unimplemented family, schema or anchor) | 100 |
| not checked (unimplemented family, schema or anchor) | 49 |

## Families and the joined verdicts

Expand All @@ -22,12 +22,12 @@ Two columns from two runners against the same pinned set, joined on vector name.
| Family | Vectors | CG-AER1/1 | Reference kit | Divergence |
|---|---|---|---|---|
| `invalid` | 36 | 27 agree · 9 not checked | 36 checks, all as expected · 36 refused | 0 of 27 |
| `chain` | 35 | 0 agree · 35 not checked | 35 checks, all as expected | — (not judged by CG-AER1/1) |
| `chain` | 35 | 35 agree | 35 checks, all as expected | — (kit line carries no per-vector verdict) |
| `valid` | 21 | 9 agree · 12 not checked | 21 checks, all as expected | 0 of 9 |
| `merkle` | 9 | 0 agree · 9 not checked | 12 checks, all as expected | — (not judged by CG-AER1/1) |
| `anchor` | 8 | 0 agree · 8 not checked | 8 checks, all as expected · 4 refused | — (not judged by CG-AER1/1) |
| `commitment` | 8 | 0 agree · 8 not checked | 8 checks, all as expected | — (not judged by CG-AER1/1) |
| `workflow-merkle-seq-output-v1` | 8 | 0 agree · 8 not checked | 8 checks, all as expected | — (not judged by CG-AER1/1) |
| `commitment` | 8 | 8 agree | 8 checks, all as expected | — (kit line carries no per-vector verdict) |
| `workflow-merkle-seq-output-v1` | 8 | 8 agree | 8 checks, all as expected | — (kit line carries no per-vector verdict) |
| `id-binding` | 6 | 6 agree | 6 checks, all as expected | 0 of 6 |
| `anchored` | 6 | 0 agree · 6 not checked | 6 checks, all as expected · 5 refused | — (not judged by CG-AER1/1) |
| `unicode` | 5 | 0 agree · 5 not checked | 5 checks, all as expected | — (not judged by CG-AER1/1) |
Expand All @@ -51,7 +51,7 @@ Drift named by CG-AER1/1:
|---|---|
| Corpus | kit 1.5.7 · `sha256:60bf73f325793e16843370cfa24903bb0d017525cb297e42bebc35857e2db0d2` · 143 vectors |
| Reference kit run | commit `e04e4c91d4630a2e0ceb4e12c48accacac10155e` · column sha256 `sha256:eb6cec8cf8d927c6af0460913fbf82ae1e2ae021b2cdde295b4d7c3aa4b29cd9` · 146 checks |
| CG-AER1/1 | parser sha256:5d74ff8126fab46509875e86c1faa3c8a53389f18d695e2f34681f55123b6bb1 · generator sha256:66b2f0e383f8b331f456db269359155e5c2756c05a9eef89c13b3585916d5edc |
| CG-AER1/1 | parser sha256:39527a89971a6f128bfc8139b726c7fe12cceba9163589b9bf586e110c7e877c · generator sha256:420e12c887ddce8fd18e01addd6a704b3dd6cc02efd6c35824d741ace0b35de0 |

The kit's closing line is `CONFORMANCE OK: 143 vectors, 146 checks, sha256:60bf73f325793e16843370cfa24903bb0d017525cb297e42bebc35857e2db0d2`; the join key is the vector name, and the extra checks are the merkle family's workflow checks (9 vectors carry 12 checks). The kit column was published at https://github.com/zambodotdev/aer1-kit/blob/main/interop/kit-column-2026-11-23.txt and is vendored here so this page regenerates offline; its sha256 is checked before the column is read.

Expand All @@ -65,12 +65,12 @@ None.

## Not checked

- 73 — timeline families (chain / commitment / merkle / anchor)
- 22 — timeline families (chain / commitment / merkle / anchor)
- 27 — records (unsupported schema)

## Boundary

- No conformance claim: 0 false accepts and 100 not-checked vectors are listed above.
- No conformance claim: 0 false accepts and 49 not-checked vectors are listed above.
- The id-binding family is judged end to end and agrees 6/6.
- The single-record invalid set is now refused by: duplicate member names, unknown provenance class, an execution payload without inputs, a claimed status other than verified, and the canonical base64 and calendar checks.
- `not_checked` is a resource outcome, not a pass.
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Publisher/human judgment can feed in as input, but the **hold is enforced by the

- **Playground (live):** [https://eslam-x.github.io/coreguard/PLAYGROUND.html](https://eslam-x.github.io/coreguard/PLAYGROUND.html)
- **Demo:** `node demo.mjs`
- **Tests:** 2009 / 2009 passing • Boundary audit PASS · Release gate GATE_PASS
- **Tests:** 2013 / 2013 passing • Boundary audit PASS · Release gate GATE_PASS
- **One-Pager:** [ONE-PAGER.md](ONE-PAGER.md)
4 changes: 2 additions & 2 deletions docs/COMMUNITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
>
> • 2009 / 2009 tests
> • 2013 / 2013 tests
> • 73/73 adversarial benchmarks
> • a staged, funding-gated Core Testnet2 validation campaign
> • deterministic trace normalization
Expand Down Expand Up @@ -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, 2009 / 2009 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, 2013 / 2013 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
Expand Down
2 changes: 1 addition & 1 deletion docs/EVIDENCE-MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ today and cannot adopt the latter today.

## Totals

Suite total: **2009 / 2009 pass**, machine-pinned in
Suite total: **2013 / 2013 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.

Expand Down
4 changes: 2 additions & 2 deletions docs/EXECUTIVE-SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CoreGuard is a fail-closed execution-truth layer for agent-to-agent jobs. Money

| Item / العنصر | Value / القيمة | Source / المصدر |
|---|---|---|
| **Test suite / مجموعة الاختبارات** | **2009 / 2009 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) |
| **Test suite / مجموعة الاختبارات** | **2013 / 2013 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) |
| **Boundary audit / تدقيق الحدود** | **1312 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 / عقود التوثيق القابلة للتنفيذ** | **133 executed · 82 skip-listed · 30 docs covered** | [`../test/ci/docs-node-contract.test.js`](../test/ci/docs-node-contract.test.js) |
Expand Down Expand Up @@ -66,7 +66,7 @@ node demo.mjs
```

**Expected / المتوقع:**
- `npm test` → **2009 / 2009 pass, fail 0**
- `npm test` → **2013 / 2013 pass, fail 0**
- `node demo.mjs` → shows **`UNKNOWN → HELD`**
- `npm run claims:audit` → **CLAIM-AUDIT: PASS**
- `npm run release:gate:independence` → **GATE_PASS**
Expand Down
2 changes: 1 addition & 1 deletion docs/FUNDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. **2009 / 2009 tests,
adversarially benchmarked engine. **2013 / 2013 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)
Expand Down
Loading
Loading