Skip to content

Commit 5ae7545

Browse files
EslaM-XEslaM-X
andauthored
feat(aer1): package ACP interop fixture and prove widening-by-evidence (#128)
- Add AER1 ACP interop fixture manifest + spec (join key name, 143 rows, 66 compared, 0 divergences, widening rule on evidence) - Export buildKitJoin and add tests proving per-vector widening is ready by construction - Update MCPRush listing sheet to 0.1.5 factual state (npm + MCP registry published; studio refresh remains owner-only) Co-authored-by: EslaM-X <eslam@coreguard.dev>
1 parent 5001ff9 commit 5ae7545

35 files changed

Lines changed: 201 additions & 51 deletions

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ New entries append chronologically and are never renumbered — a gap in the tag
158158

159159
## Files That Change Together
160160

161-
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2066 ↔ 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).
161+
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 2068 ↔ 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).
162162
- `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.
163163
- 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).
164164
- `verification/cg-assurance-verify.ps1` self-test count (21) ↔ `selftest.tap` frozen bytes ↔ README/STATUS claims (21/21).

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Run the offline arc: `npm run stellar:presign` — no signing, no wallet, no net
349349

350350
### Recent developments — Nov 10–14 2026 (by network, measured & evidenced)
351351

352-
> Canonical measured state for this cycle: **2066 / 2066 tests**, **1554 files scanned / 0 violations**, **docs-node 140 executed · 89 skip-listed · 33 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.
352+
> Canonical measured state for this cycle: **2068 / 2068 tests**, **1554 files scanned / 0 violations**, **docs-node 140 executed · 89 skip-listed · 33 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.
353353
354354
#### Stellar — pre-sign receipts, agent-gate envelope path, Freighter evaluation, DEX integration
355355

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

728728
# 2. Test + benchmark
729-
npm test # 2066 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
729+
npm test # 2068 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
730730
git config core.hooksPath .githooks # install the Pages settle pre-push guard — every main push waits for the Pages build
731731
npm run corpus # deterministic 73-scenario adversarial corpus
732732
npm run benchmark # 73/73 pass

‎docs/AER1-ACP-INTEROP-FIXTURE.md‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# AER-1 ACP interop fixture (draft)
2+
3+
**Status:** draft fixture / interop artifact. Not a conformance claim, not a certification, not an ACP submission.
4+
5+
This fixture packages the AER-1 observation rows as a machine-readable interop surface. Any implementation can run the same pinned set, publish its own observer column joined on `name`, and state its compared scope honestly.
6+
7+
## Pins
8+
9+
| Field | Value |
10+
|---|---|
11+
| Kit | `1.5.7` |
12+
| Evaluated-set digest | `sha256:60bf73f325793e16843370cfa24903bb0d017525cb297e42bebc35857e2db0d2` |
13+
| Vectors | `143` |
14+
| Join key | `name` |
15+
| Machine-readable manifest | [`aer1-acp-interop-fixture.json`](./aer1-acp-interop-fixture.json) |
16+
| Row payload | [`aer1-observation-rows.json`](./aer1-observation-rows.json) |
17+
| Human-readable join | [`AER1-OBSERVATION-JOIN.md`](./AER1-OBSERVATION-JOIN.md) |
18+
19+
## What an implementation may publish
20+
21+
An implementation may publish its own observer column over the same 143 rows, joined by `name`. For every row it claims, it must state:
22+
23+
- **observer** - stable observer name.
24+
- **scope** - what was read (for example `record:bytes`).
25+
- **outcome** - one of the five run-level outcomes: `verified`, `verification_failed`, `not_checked`, `absent`, `unresolvable_record`.
26+
- **reason** - required only for `not_checked`, and only one of the six frozen reasons: `access_refused`, `unsupported_family`, `schema_not_implemented`, `outside_scope`, `provenance_not_present`, `not_yet_materialized`.
27+
- **compared scope** - which rows are per-vector comparable, and which are family-level-only/unclaimed.
28+
29+
## Scope rules (load-bearing)
30+
31+
- **No invented timestamps** on corpus reads. Time/ordering belongs to real observed events, not fixture replay.
32+
- **No execution language** for fixture reads. Reading 143 vectors is 143 reads, not 143 runs.
33+
- **No gap-filling.** A column may only claim per-vector comparison where a per-vector verdict is actually measured. Family-level-only lines remain unclaimed.
34+
- **Widening rule.** When a per-vector kit emit lands for the remaining families, the column widens on evidence and the divergence count stays honest wherever it lands.
35+
36+
## Current CoreGuard observer scope
37+
38+
| Observer | Kind | Scope |
39+
|---|---|---|
40+
| `cg-aer1:parser` | per-vector | 143 rows, CG-AER1/1 reading vector bytes |
41+
| `cg-aer1:bytes` | per-file | 72 files, SHA-256 against pinned corpus index |
42+
| `aer1-kit:per-vector` | per-vector, compared only | 66 compared rows, 0 divergences; family-level-only kit lines unclaimed |
43+
44+
## Boundary
45+
46+
- `verified` means the bytes/check the observer recomputed matched the claim it evaluated. It is **not** proof the described work happened, and it is **not** conformance/certification.
47+
- The five run-level outcomes stay run-level outcomes. This fixture adds observer identity and compared scope; it does not change verdict semantics.
48+
- Any divergence must be named by vector and scope. Zero divergences is a measured result on the stated compared set, not a blanket claim.

‎docs/AER1-INTEROP-TABLE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Drift named by CG-AER1/1:
5757
|---|---|
5858
| Corpus | kit 1.5.7 · `sha256:60bf73f325793e16843370cfa24903bb0d017525cb297e42bebc35857e2db0d2` · 143 vectors |
5959
| Reference kit run | commit `e04e4c91d4630a2e0ceb4e12c48accacac10155e` · column sha256 `sha256:eb6cec8cf8d927c6af0460913fbf82ae1e2ae021b2cdde295b4d7c3aa4b29cd9` · 146 checks |
60-
| CG-AER1/1 | parser sha256:b939d615de4d6b99bdd322547929171f37d1b1ddf1999b58245dfb350ecbea45 · generator sha256:a376662cc79557c1a90eadd0d816230c063df7c8519c0f2209a07cf83e96e9d5 |
60+
| CG-AER1/1 | parser sha256:b939d615de4d6b99bdd322547929171f37d1b1ddf1999b58245dfb350ecbea45 · generator sha256:e0d767caf0b33af970045152596b2b15e67eec150b555a6784fdffbd96f6dfa5 |
6161

6262
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.
6363

‎docs/AER1-OBSERVATION-JOIN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The six `not_checked` reasons are frozen, and one appears on this set: `outside_
7575
|---|---|
7676
| Corpus | kit 1.5.7 · `sha256:60bf73f325793e16843370cfa24903bb0d017525cb297e42bebc35857e2db0d2` · 143 vectors · 146 kit checks |
7777
| Reference kit run | commit `e04e4c91d4630a2e0ceb4e12c48accacac10155e` · column `sha256:eb6cec8cf8d927c6af0460913fbf82ae1e2ae021b2cdde295b4d7c3aa4b29cd9` |
78-
| CG-AER1/1 | parser `sha256:b939d615de4d6b99bdd322547929171f37d1b1ddf1999b58245dfb350ecbea45` · interop generator `sha256:a376662cc79557c1a90eadd0d816230c063df7c8519c0f2209a07cf83e96e9d5` |
78+
| CG-AER1/1 | parser `sha256:b939d615de4d6b99bdd322547929171f37d1b1ddf1999b58245dfb350ecbea45` · interop generator `sha256:e0d767caf0b33af970045152596b2b15e67eec150b555a6784fdffbd96f6dfa5` |
7979
| This generator | `sha256:5e60b7b9fc7a820273833cda0e019b56dfdb9c59e2a3224db8971689e150064f` · layer `CG-OBS/1` (6 frozen reasons, 5 outcomes) |
8080

8181
## Boundary

‎docs/ARCHITECTURE.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ Publisher/human judgment can feed in as input, but the **hold is enforced by the
4242

4343
- **Playground (live):** [https://eslam-x.github.io/coreguard/PLAYGROUND.html](https://eslam-x.github.io/coreguard/PLAYGROUND.html)
4444
- **Demo:** `node demo.mjs`
45-
- **Tests:** 2066 / 2066 passing • Boundary audit PASS · Release gate GATE_PASS
45+
- **Tests:** 2068 / 2068 passing • Boundary audit PASS · Release gate GATE_PASS
4646
- **One-Pager:** [ONE-PAGER.md](ONE-PAGER.md)

‎docs/COMMUNITY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ issue on the faucet**, not to our environment alone. (Confirmed by probing:
2929
> I'm building **CoreGuard**, an open-source, Core-native execution-verification
3030
> layer. The v0.1 implementation is public and CI-green:
3131
>
32-
> • 2066 / 2066 tests
32+
> • 2068 / 2068 tests
3333
> • 73/73 adversarial benchmarks
3434
> • a staged, funding-gated Core Testnet2 validation campaign
3535
> • deterministic trace normalization
@@ -89,7 +89,7 @@ moderator). Fill-ready answers (adjust to whatever the form actually asks):
8989
|---|---|
9090
| Wallet address (tCORE2) | `0x6cB4796D54ED72105ec617c8850C91972a0d9469` |
9191
| GitHub / project URL | `https://github.com/coreguard-global/CoreGuard` |
92-
| 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, 2066 / 2066 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. |
92+
| 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, 2068 / 2068 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. |
9393
| 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. |
9494

9595
Verifiable on request: the repo, CI, benchmarks, and the local fork anchor

‎docs/EVIDENCE-MATRIX.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ today and cannot adopt the latter today.
9696

9797
## Totals
9898

99-
Suite total: **2066 / 2066 pass**, machine-pinned in
99+
Suite total: **2068 / 2068 pass**, machine-pinned in
100100
`docs/state-snapshot.json` (the only authoritative count in the repo).
101101
Boundary audit: **0 violations**; file count lives in the same snapshot.
102102

‎docs/EXECUTIVE-SUMMARY.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ CoreGuard is a fail-closed execution-truth layer for agent-to-agent jobs. Money
2525

2626
| Item / العنصر | Value / القيمة | Source / المصدر |
2727
|---|---|---|
28-
| **Test suite / مجموعة الاختبارات** | **2066 / 2066 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) |
28+
| **Test suite / مجموعة الاختبارات** | **2068 / 2068 PASS (measured)** | [`npm test`](../package.json) · [`state-snapshot.json`](state-snapshot.json) |
2929
| **Boundary audit / تدقيق الحدود** | **1312 files · 0 violations** | [`npm run boundary:audit`](../package.json) |
3030
| **Claims audit / تدقيق الادعاءات** | **28 claims · VERIFIED 16 · 0 violations** | [`npm run claims:audit`](../package.json) · [`claims-registry.json`](claims-registry.json) |
3131
| **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) |
@@ -66,7 +66,7 @@ node demo.mjs
6666
```
6767

6868
**Expected / المتوقع:**
69-
- `npm test` → **2066 / 2066 pass, fail 0**
69+
- `npm test` → **2068 / 2068 pass, fail 0**
7070
- `node demo.mjs` → shows **`UNKNOWN → HELD`**
7171
- `npm run claims:audit` → **CLAIM-AUDIT: PASS**
7272
- `npm run release:gate:independence` → **GATE_PASS**

‎docs/FUNDING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ CoreGuard is Core-native by design:
4343
## Why us
4444

4545
- **We already built it.** Not a pitch deck — a deterministic, tested,
46-
adversarially benchmarked engine. **2066 / 2066 tests,
46+
adversarially benchmarked engine. **2068 / 2068 tests,
4747
73/73 adversarial benchmarks, anchor integrity VERIFIED live on Core
4848
Mainnet** (authoritative numbers: [`docs/STATUS.md`](STATUS.md)), and a
4949
staged Testnet2 hardening campaign (controlled validation)

0 commit comments

Comments
 (0)