Skip to content

Commit d9bad47

Browse files
docs(aie1): ship the outreach triad — adoption map, Arabic ministry brief, and the live AIE-1 review page
The AIE-1 incident-verification surface becomes a targetable outreach pack: docs/aie1-adoption-map.md (problem-first per target, adoption honestly GATED — no contact/integration claimed), docs/mcit-aic-briefing-ar.md (Arabic-first brief for MCIT/AIC/Karnak: the sovereignty angle, the four pillars in decision-maker language, a no-commitment 30-minute evaluation protocol, the public incubation channels, and an honest GATED patent track), and docs/AIE-1-REVIEW.html — the third live page, embedding the REAL bundled SDK engine (same payload as the SDK page, asserted by contract): paste a bundle or click honest/tamper/empty and watch the fail-closed verdict in-tab, bilingual EN-default/AR with the persistent toggle, #run= deep links after boot (lesson C24), wired into the landing page, INTEGRATION.md, the boundary doc and the spec. The injector gains a fourth idempotent payload target; the page contract (5 tests: payload parity, browser-equivalent boot to the three contract verdicts, injector registration, literal cross-links, i18n) locks it all. Numbers moved with the push per protocol: 1176/1176, snapshot regenerated, every doc that cites the count refreshed. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent d678c2e commit d9bad47

13 files changed

Lines changed: 733 additions & 10 deletions

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ title to jump.
116116
- [C33] A prose restatement of a machine rule loses a branch, and a correct-but-incomplete summary survives review when a wrong one would not: the L1 chain rule has THREE outcomes — no authority `UNKNOWN/NO_CHAIN_EVIDENCE`, authority asked and does not know the hash `MISMATCH/TX_NOT_FOUND`, evidence too malformed to ask with `UNKNOWN/EVIDENCE_INCONSISTENT` — and all four reviewer-facing surfaces compressed it to two ("a format-valid receipt nobody confirmed is UNKNOWN"). Every compressed version was TRUE, which is why it passed review: the branch it dropped is `MISMATCH`, the system's strongest signal, so the summary hid a real contradiction behind its weakest verdict. A one-line rule in the README is a CLAIM about the machine and belongs to the same binding discipline as a number in STATUS.md, so `test/ci/receipt-semantics-doc.test.js` derives the three codes from `verifyReceipt()` at run time and requires each surface to state all three · **in the same paragraph, not the same document**, because the codes occur in several passages and a document-wide substring check stays green when the rule itself is gutted (the [C32] defect recurring inside the guard written to close it). Its controls include a CODE-side mutation (flip the asked-and-contradicted return to `UNKNOWN`), because a doc binding that only inspects docs cannot tell a correct rule from a stale one.
117117
## Files That Change Together
118118

119-
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 1171 ↔ 649 — the npm test number tracks the latest measured count).
119+
- `H1-H8.md` expected numbers ↔ engine version ↔ `npm test` test counts ↔ validator check count (currently 2.1.2 ↔ 16 ↔ 1176 ↔ 649 — the npm test number tracks the latest measured count).
120120
- `freeze-record-4.2.6.json` ↔ any file it pins ↔ `.gitattributes` tree list ↔ README pin-count claim (now 47 = 28+19 after the dashboard joined; README.md's own pin is inside the record it links from). 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.
121121
- 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; hand-edits to one side silently break the 637/637 node pairing.
122122
- `verification/cg-assurance-verify.ps1` self-test count (21) ↔ `selftest.tap` frozen bytes ↔ README/STATUS claims (21/21).

‎INTEGRATION.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ arc (HOLD, RELEASE, REFUSED, REFUSED) in your browser: [verify → HOLD](https:/
9696
**The agent-incident verification surface** — the same endpoint and bundle,
9797
packaged as the AIE-1 spec any outside reviewer can inherit from a cold clone:
9898
[docs/agent-incident-evidence.md](docs/agent-incident-evidence.md) (its claims
99-
are executed by CI, not trusted).
99+
are executed by CI, not trusted) — and the [live review page](https://eslam-x.github.io/coreguard/AIE-1-REVIEW.html)
100+
replays a bundle in-tab with no server.
100101

101102
## People's Court intake projection
102103

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ See [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md) for how to reproduce every value.
189189
npm install
190190

191191
# 2. Test + benchmark
192-
npm test # 1171 tests — 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
192+
npm test # 1176 tests — 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
193193
git config core.hooksPath .githooks # install the Pages settle pre-push guard — every main push waits for the Pages build
194194
npm run corpus # deterministic 73-scenario adversarial corpus
195195
npm run benchmark # 73/73 pass

‎docs/AIE-1-REVIEW.html‎

Lines changed: 361 additions & 0 deletions
Large diffs are not rendered by default.

‎docs/STATUS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ machine-measured, not estimated. Last verified: **2026-09-26**.
88

99
| Item | Value | How verified |
1010
|---|---|---|
11-
| Test suite | **1171 / 1171 pass** | `npm test` — the pass total is machine-pinned: `scripts/run-tests.mjs` enforces it against `docs/state-snapshot.json` after every green run (drift = red), and `test/ci/current-state.test.js` re-measures the fast fields (boundary audit, harness, docs-node) against the committed snapshot. CI-green across engines |
11+
| Test suite | **1176 / 1176 pass** | `npm test` — the pass total is machine-pinned: `scripts/run-tests.mjs` enforces it against `docs/state-snapshot.json` after every green run (drift = red), and `test/ci/current-state.test.js` re-measures the fast fields (boundary audit, harness, docs-node) against the committed snapshot. CI-green across engines |
1212
| Foundry contracts | **34 / 34 pass** | `forge test --match-path "test/contract/*"` (V2: 14 + EvidenceRegistryV3: 20) |
1313
| Adversarial corpus | **73 / 73 pass** | `npm run corpus && npm run benchmark` |
1414
| Execution Integrity Benchmark | **10,000 runs · False Accept 0 · False Reject 0** | `npm run benchmark:10k` |

‎docs/adoption-dashboard.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ default.
5252

5353
| Metric | Value |
5454
|---|---|
55-
| Test suite | 1171 |
55+
| Test suite | 1176 |
5656
| Boundary audit | 821 files / 0 violations |
5757
| Docs-node contract | 94 executed · 55 skip-listed · 20 covered |
5858
| Live-submission harness | PEOPLES_COURT_HARNESS_READY |

‎docs/agent-incident-evidence.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ A reviewer inherits, from a cold clone:
6363
2. the bundle (the documented assembly one-liner), and
6464
3. the verdict language (this report schema).
6565

66+
Or none of the above — the [live review page](https://eslam-x.github.io/coreguard/AIE-1-REVIEW.html)
67+
replays a bundle in-tab with no server and no clone.
68+
6669
## خلاصة للمستثمر — the investor one-liner
6770

6871
> Incident reviews take months because evidence is gathered by the party under investigation and verdicts are not replayable. CoreGuard makes the review surface itself a product: one endpoint, one bundle, one schema — every claim on this page is executed by CI, and the doc that stops matching the code fails the push.

‎docs/aie1-adoption-map.md‎

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# AIE-1 Adoption Map — who needs an inheritable incident verification surface, and how they get it
2+
3+
**Status of this document (honesty first):** every *problem* stated below is
4+
public, sourceable record. Every *adoption* row is **GATED** — no conversation,
5+
no partnership, and no integration with any listed party has happened. What
6+
exists today is the surface itself, shipped and machine-verified in this repo:
7+
[docs/agent-incident-evidence.md](https://github.com/EslaM-X/coreguard/blob/main/docs/agent-incident-evidence.md)
8+
(spec, claims executed by CI), the live pages (API · SDK), and this repo's
9+
contracts. This map is an *outreach brief*, not a claims registry of wins.
10+
11+
## The recurring industry pattern (the problem, sourceable)
12+
13+
- **Runaway-agent incidents are now a series, not a novelty.** OpenAI alone
14+
reported 15+ incidents in recent months, including runaway agents leaking
15+
user images and an agent compromise of a Hugging Face platform account;
16+
incident reviews are repeatedly announced with multi-month timelines.
17+
- **Reviews take months for a structural reason:** the investigating party
18+
collects its own evidence, verdicts are not replayable by outsiders, and
19+
every reviewer rebuilds ad-hoc tooling before the review can even start.
20+
- **The missing piece is not another dashboard — it is a verification surface
21+
a third party can inherit**: one endpoint, one evidence bundle, one report
22+
schema, replayable from a cold clone with named, fail-closed reasons in one
23+
language across SDK and wire.
24+
25+
That missing piece is what CoreGuard ships as **AIE-1**. The engine behind it
26+
is the same DDE/1 gate (10 checks incl. byte-pinned delivery integrity),
27+
identity-from-the-socket, and deterministic replay proven E2E in this repo.
28+
29+
## The surface an adopter gets (what "inherit" means concretely)
30+
31+
| Inheritable artifact | What it is | Where it lives |
32+
|---|---|---|
33+
| The spec (AIE-1) | One page: pinned endpoint line, bundle assembly, verdict language — every claim executed by CI | `docs/agent-incident-evidence.md` |
34+
| The endpoint | Fail-closed HTTP gate with named reasons on 403/429/413/422, banner on every response | `packages/delivery/http.js` (live page embeds it) |
35+
| The evidence bundle | Ten DDE/1 records, sha256-pinned artifacts, deterministic generator | `examples/delivery-fixture/` |
36+
| The report schema | `status · decision · boundary · checks[] · summary` — quoted verdicts are contract-locked | `docs/agent-incident-evidence.md` + tests |
37+
| The review page | In-browser replay, no server, no clone — paste a bundle, see the verdict | [`docs/AIE-1-REVIEW.html`](https://eslam-x.github.io/coreguard/AIE-1-REVIEW.html) |
38+
39+
## Targets — problem-first, adoption honestly GATED
40+
41+
> Reading guide: **Documented pain** = public, citable record. **What AIE-1
42+
> answers** = the mechanism. **Status** = GATED for every party until a real
43+
> conversation exists; this row will never say VERIFIED without an artifact
44+
> behind it (the repo's own claim-registry rules apply here too).
45+
46+
### OpenAI
47+
48+
- **Documented pain:** 15+ runaway-agent incidents; investigations announced
49+
with "could take months"; agent platform compromise (Hugging Face, July).
50+
- **What AIE-1 answers:** an outside-reviewable surface — reviewers replay the
51+
same bundle on the same endpoint and get byte-identical verdicts, so the
52+
multi-month bottleneck (evidence assembly and trust-building) collapses to
53+
the mechanical part only: the investigation itself.
54+
- **Route in:** the spec + review page are self-serve; a first step needs no
55+
commitment from them beyond running one curl. **Status: GATED — not contacted.**
56+
57+
### Google / Gemini
58+
59+
- **Documented pain:** agent-action governance and auditability are active
60+
public concerns in its agent stack announcements; incident review timelines
61+
in the industry apply equally to its ecosystem.
62+
- **What AIE-1 answers:** a neutral, open-source evidence layer its reviewer
63+
teams can inherit without trusting the investigated party's tooling —
64+
fail-closed semantics match the posture its own security guidance teaches.
65+
- **Route in:** spec + live pages; Arabic/English government-brief (below)
66+
doubles as the public-interest framing for its regional programs.
67+
**Status: GATED — not contacted.**
68+
69+
### Anthropic (Claude)
70+
71+
- **Documented pain:** public research emphasis on agent safety and runaway
72+
behavior; the review-replay gap is the operational half of that research.
73+
- **What AIE-1 answers:** the first public, CI-verified spec where a safety
74+
team's reviewers replay verdicts instead of reading reports — the boundary
75+
banner ("execution facts never decide conformity") mirrors its own
76+
human-oversight framing.
77+
- **Route in:** the spec reads as a research artifact; the review page demos
78+
in one click. **Status: GATED — not contacted.**
79+
80+
### DeepSeek
81+
82+
- **Documented pain:** same industry pattern (open-weight agent deployments,
83+
incident reviews); no public evidence of a shareable review surface.
84+
- **What AIE-1 answers:** an open-source surface its maintainers can fork and
85+
pin — the deterministic-replay property (same bytes in, byte-identical
86+
verdict out) is exactly what an open ecosystem needs for third-party audits.
87+
- **Route in:** spec + repo; the contract tests make a fork verifiably honest.
88+
**Status: GATED — not contacted.**
89+
90+
### MCIT Egypt / AIC / Karnak (karnak.aic.gov.eg) — the priority target
91+
92+
- **Why priority:** Karnak Chat is Egypt's national Arabic LLM (AIC/MCIT,
93+
pilot launched Aug 2026) — an agent ecosystem built on **digital
94+
sovereignty**. CoreGuard is an Egyptian-built evidence/verification layer
95+
(on Core Mainnet) and is the natural complement: Karnak proves the *model*
96+
is national; AIE-1 proves the *agents' execution evidence* is reviewable.
97+
- **Full detail:** the Arabic-first briefing —
98+
[docs/mcit-aic-briefing-ar.md](https://github.com/EslaM-X/coreguard/blob/main/docs/mcit-aic-briefing-ar.md)
99+
— covering the sovereignty angle, the four trust pillars in decision-maker
100+
language, a no-commitment evaluation protocol, incubation/finance channels
101+
(TIEC / ITIDA / Egypt FWD), and an honest patent track.
102+
**Status: GATED — not contacted.**
103+
104+
## The honest ledger (what is true today vs. what is proposed)
105+
106+
| Claim | Status |
107+
|---|---|
108+
| The AIE-1 surface exists, open-source, CI-verified | TRUE (this repo; contract tests enforce it) |
109+
| Deterministic replay: same bytes → byte-identical verdict | TRUE (asserted by test) |
110+
| Tamper names the flipped byte in a documented format | TRUE (asserted by test) |
111+
| Any listed party has been contacted | **GATED** |
112+
| Any listed party has adopted, integrated, or endorsed | **GATED** |
113+
| A patent has been filed | **GATED** (evaluation path documented in the Arabic brief) |
114+
| Funding / incubation exists | **GATED** |
115+
116+
## How to use this map (the outreach motion)
117+
118+
1. **Self-serve proof first:** every target can be sent exactly one link —
119+
the review page — and get a working verdict replay in one click with zero
120+
setup, zero servers, and zero trust assumptions.
121+
2. **The spec is the meeting agenda:** the document is short, every claim in
122+
it is CI-executed, and its contract tests fail the push if it stops
123+
matching the code — so the conversation starts from verified facts.
124+
3. **One language everywhere:** the named-reasons format the SDK returns is
125+
the same one the wire returns; a reviewer who read one report can read all.

‎docs/index.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,15 @@ <h1><span data-lang-text="en" class="inline">Evidence over narrative — <em>eve
200200
</header>
201201

202202
<section id="surfaces">
203-
<div class="sec-head"><h2><span data-lang-text="en" class="inline">Live surfaces</span><span data-lang-text="ar" class="inline">الواجهات الحية</span></h2><span class="n">5</span></div>
203+
<div class="sec-head"><h2><span data-lang-text="en" class="inline">Live surfaces</span><span data-lang-text="ar" class="inline">الواجهات الحية</span></h2><span class="n">6</span></div>
204204
<p class="sec-sub"><span data-lang-text="en" class="inline">Each surface runs the real engine in your browser tab — no server, no clone. Deep links auto-run each scenario.</span><span data-lang-text="ar" class="inline">كل واجهة تشغّل المحرك الحقيقي في تبويبك — بلا خادم ولا استنساخ. الروابط العميقة تشغّل كل سيناريو تلقائيًا.</span></p>
205205
<div class="grid">
206206
<div class="card"><a href="DDE-API-REFERENCE.html"><b><span data-lang-text="en" class="inline">DDE-API-REFERENCE</span><span data-lang-text="ar" class="inline">مرجع API</span><span class="tag live" data-lang-text="en" class="inline">LIVE</span><span class="tag live" data-lang-text="ar" class="inline">حي</span></b><small><span data-lang-text="en" class="inline">The HTTP endpoint reference with the real DDE/1 handler embedded — every wire status captured live in-tab; the external probe box can point at any running endpoint.</span><span data-lang-text="ar" class="inline">مرجع نقطة النهاية HTTP بمحرك DDE/1 الحقيقي مضمّنًا — كل رموز الدفاع الملتقطة حيًا داخل الصفحة، وصندوق المسبار الخارجي يوجَّه لأي نقطة قيد التشغيل.</span></small></a></div>
207207
<div class="card"><a href="DDE-SDK-REFERENCE.html"><b><span data-lang-text="en" class="inline">DDE-SDK-REFERENCE</span><span data-lang-text="ar" class="inline">مرجع SDK</span><span class="tag live" data-lang-text="en" class="inline">LIVE</span><span class="tag live" data-lang-text="ar" class="inline">حي</span></b><small><span data-lang-text="en" class="inline">The four-scenario release-law arc (HOLD · RELEASE · REFUSED · REFUSED) run by verifyFixture + releaseWhen inside the page.</span><span data-lang-text="ar" class="inline">قوس قانون الإفراج الرباعي (HOLD · RELEASE · REFUSED · REFUSED) بمحرك verifyFixture + releaseWhen داخل الصفحة.</span></small></a></div>
208208
<div class="card"><a href="DELIVERY-DISPUTE-DEMO.html"><b><span data-lang-text="en" class="inline">Delivery-dispute demo</span><span data-lang-text="ar" class="inline">عرض النزاع</span></b><small><span data-lang-text="en" class="inline">The nine documented event walk: mutual acceptance, dispute freeze, post-closing record release.</span><span data-lang-text="ar" class="inline">السرد التسعة الموثق: القبول المتبادل، تجميد النزاع، تحرير السجل بعد الختام.</span></small></a></div>
209209
<div class="card"><a href="GOVERNANCE-DASHBOARD.html"><b><span data-lang-text="en" class="inline">Governance dashboard</span><span data-lang-text="ar" class="inline">لوحة الحوكمة</span></b><small><span data-lang-text="en" class="inline">Bilingual governance board with the payment-gate section.</span><span data-lang-text="ar" class="inline">لوحة حوكمة ثنائية اللغة مع قسم بوابة الدفع.</span></small></a></div>
210210
<div class="card"><a href="coreguard-gate41-visual-en.html"><b><span data-lang-text="en" class="inline">Gate 4.1 visual</span><span data-lang-text="ar" class="inline">بوابة 4.1 المرئية</span></b><small><span data-lang-text="en" class="inline">On-chain identity anchor (commitIntent) through the 4.1 evidence chain.</span><span data-lang-text="ar" class="inline">مرساة الهوية on-chain (commitIntent) عبر سلسلة إثبات التدقيق 4.1.</span></small></a></div>
211+
<div class="card"><a href="AIE-1-REVIEW.html"><b><span data-lang-text="en" class="inline">AIE-1 incident review</span><span data-lang-text="ar" class="inline">مراجعة حوادث AIE-1</span><span class="tag live" data-lang-text="en" class="inline">LIVE</span><span class="tag live" data-lang-text="ar" class="inline">حي</span></b><small><span data-lang-text="en" class="inline">Paste an evidence bundle or run a ready scenario — the fail-closed verdict in your tab, no server, no clone.</span><span data-lang-text="ar" class="inline">الصق حزمة أدلة أو شغّل سيناريو جاهزًا — الحكم الفاشل-مغلق في تبويبك، بلا خادم ولا استنساخ.</span></small></a></div>
211212
</div>
212213
</section>
213214

0 commit comments

Comments
 (0)