Skip to content

Commit 8a72dfb

Browse files
committed
docs: REVIEW-GUIDE.md — review a converted fixture in under 10 minutes
One-page reviewer path for an external reviewer (People's Court / Epistemic Labs or any third party) holding a converted fixture or its ZIP attachment: pin integrity (re-hash every record vs hashes.json) → engine gate (VERIFIED with the honest E5 NOT_RUN) → in-memory tamper probe (REJECTED, E3 names the artifact and both hashes) → conformity records spot-read (criteria-cited grounds, both positions with requestedRemedy, closing point, no engine winner) → C1-C6 intake projection (READY_FOR_CLAIM_MAPPING). Verdict checklist, red flags for rejecting a submission, and links — every command executed live against a freshly converted extraction before being documented; the step-2 expected block quotes the engine's literal check ordering. No CI claim is made on this page (the doc-curl contract covers curl fences only); the pipeline it came from is already badge-watched by the Intake Pipeline workflow. Linked from the root README, the intake kit README, and INTEGRATION.md (links block + share-ready text). Suite 900/900.
1 parent eecf4f1 commit 8a72dfb

4 files changed

Lines changed: 172 additions & 2 deletions

File tree

‎INTEGRATION.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Epistemic Labs.
100100

101101
## Links
102102

103+
- Review a converted fixture in <10 minutes: <https://github.com/EslaM-X/coreguard/blob/main/REVIEW-GUIDE.md>
103104
- Live API reference (the engine runs in the page): <https://eslam-x.github.io/coreguard/DDE-API-REFERENCE.html>
104105
- Live bilateral-dispute demo: <https://eslam-x.github.io/coreguard/DELIVERY-DISPUTE-DEMO.html>
105106
- Boundary document: <https://github.com/EslaM-X/coreguard/blob/main/docs/delivery-dispute-boundary.md>
@@ -110,5 +111,5 @@ Epistemic Labs.
110111
## Share-ready short version
111112

112113
```text
113-
CoreGuard DDE: execution proof never decides delivery conformity. 10 fail-closed checks; a flipped artifact byte fails closed; payout opens only on a signed party acceptance over explicit criteria — never on a receipt. One-page integration: https://github.com/EslaM-X/coreguard/blob/main/INTEGRATION.md
114+
CoreGuard DDE: execution proof never decides delivery conformity. 10 fail-closed checks; a flipped artifact byte fails closed; payout opens only on a signed party acceptance over explicit criteria — never on a receipt. One-page integration: https://github.com/EslaM-X/coreguard/blob/main/INTEGRATION.md — reviewer path through a fixture: https://github.com/EslaM-X/coreguard/blob/main/REVIEW-GUIDE.md
114115
```

‎README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,10 @@ producing a byte-deterministic, audit-manifested archive ready to attach
335335
to a GitHub discussion comment. The whole path is CI-exercised on every
336336
push (candidate build → gate → both conversion modes → unzip → engine on
337337
the extraction → red-path refusal), so the route a real case will travel
338-
is watched continuously, not trusted from unit tests alone.
338+
is watched continuously, not trusted from unit tests alone. Reviewers
339+
get a one-page path through any converted fixture:
340+
[REVIEW-GUIDE.md](REVIEW-GUIDE.md) — pin integrity, engine gate, tamper
341+
probe, conformity records, and the intake projection in under 10 minutes.
339342

340343
## AgentProof — actor provenance
341344

‎REVIEW-GUIDE.md‎

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
# REVIEW-GUIDE — review a converted DDE fixture in under 10 minutes
2+
3+
For the external reviewer — People's Court / Epistemic Labs or any third
4+
party. You are holding a fixture produced by the CoreGuard intake pipeline
5+
(a directory, or the ZIP attachment from a discussion comment). This guide
6+
is the shortest honest path through it: five steps, ~9 minutes, every
7+
command copy-paste runnable from a clone of this repo.
8+
9+
> **The one sentence that frames everything:**
10+
> *"Execution verification does not decide delivery conformity."*
11+
> Every report the engine emits carries this line (`DDE-BOUNDARY`). If a
12+
> summary of the evidence ever loses it, the summary is wrong.
13+
14+
What a green review does **and does not** establish:
15+
16+
| Established by the engine | Explicitly NOT established by the engine |
17+
|---|---|
18+
| the evidence record is admissible: records complete, pins intact, authorization chain intact | whether the delivered work satisfied the deal |
19+
| tampering in a delivered artifact is detected (E3) | which party is right (B3 — the engine names no winner) |
20+
| consent, when an EVM adapter is provided, is cryptographically replayed (E5) | consent, when no adapter is available — reported `NOT_RUN`, never faked |
21+
22+
Prerequisite (once, ~1 min, not counted): `git clone --depth 1
23+
https://github.com/EslaM-X/coreguard && cd coreguard`. All commands below
24+
run from the repo root; `<fixture-dir>` is wherever you unzipped/extracted
25+
the fixture. Zero dependencies beyond Node ≥ 18.
26+
27+
## Step 1 — Pin integrity (2 min): the container is not the evidence, the hashes are
28+
29+
Unzip if you received the attachment (you will see the ten records,
30+
`hashes.json`, and `AUDIT-MANIFEST.txt`), then re-hash every pinned record
31+
and compare against `hashes.json`:
32+
33+
```bash
34+
node --input-type=module -e "import { createHash } from 'node:crypto'; import { readFileSync } from 'node:fs'; const dir = process.argv[1]; const pins = JSON.parse(readFileSync(dir + '/hashes.json', 'utf8')).files; let bad = 0; for (const [name, pin] of Object.entries(pins)) { const actual = '0x' + createHash('sha256').update(readFileSync(dir + '/' + name)).digest('hex'); if (actual !== pin) { console.log('MISMATCH', name, pin, '!=', actual); bad++; } } console.log(bad === 0 ? 'all pins match' : bad + ' mismatches — tampered'); process.exit(bad ? 1 : 0);"
35+
```
36+
37+
**Expected:** `all pins match`, exit 0. The loop covers the ten records;
38+
`hashes.json` itself (self-excluded by design — a file cannot hash itself)
39+
is covered by the `crc32`/`sha256` pins inside `AUDIT-MANIFEST.txt`.
40+
41+
**If this fails:** the submission was modified after conversion. Reject it
42+
by name — the mismatches print both hashes.
43+
44+
## Step 2 — The engine gate (2 min): the same gate CI runs
45+
46+
```bash
47+
node --input-type=module -e "import { verifyFixture } from './packages/delivery/sdk.js'; const r = await verifyFixture({ fixtureDir: process.argv[1] }); console.log(r.status, '·', r.decision); for (const c of r.checks) console.log(' ', c.id, c.result, c.result === 'NOT_RUN' ? '— ' + c.note : '');" <fixture-dir>
48+
```
49+
50+
**Expected, verbatim:**
51+
52+
```
53+
VERIFIED · EXECUTION_EVIDENCE_ADMISSIBLE — CONFORMITY_UNDECIDED_BY_ENGINE
54+
F0 PASS
55+
F1 PASS
56+
F2 PASS
57+
E3 PASS
58+
E4 PASS
59+
B1 PASS
60+
B2 PASS
61+
B3 PASS
62+
E5 NOT_RUN — EVM adapter not provided — consent signature replay NOT evaluated (never fabricated)
63+
F3 PASS
64+
```
65+
66+
Reading the shape: the evidence is **admissible** and the engine has
67+
**not judged the delivery**. `E5 NOT_RUN` is the honest state without an
68+
EVM adapter — a submission that claims `E5 PASS` without one is a red
69+
flag (see the table at the end).
70+
71+
## Step 3 — The tamper probe (2 min): prove the gate actually bites
72+
73+
Trust the gate only after watching it fail on demand. This flips one byte
74+
of one delivered artifact **in memory** (nothing on disk is touched) and
75+
re-verifies:
76+
77+
```bash
78+
node --input-type=module -e "import { loadFixtureFromDir, verifyFixture } from './packages/delivery/sdk.js'; const { fixture } = loadFixtureFromDir(process.argv[1]); const a = fixture.delivery.artifacts[0]; a.content = a.content.slice(0, -1) + (a.content.endsWith('X') ? 'Y' : 'X'); const r = await verifyFixture({ fixture }); const e3 = r.checks.find((c) => c.id === 'E3'); console.log(r.status); console.log('E3:', e3.result, '—', e3.mismatches[0]);" <fixture-dir>
79+
```
80+
81+
**Expected:**
82+
83+
```
84+
REJECTED
85+
E3: FAIL — logo.svg: recorded 0x… != actual 0x…
86+
```
87+
88+
A single flipped byte anywhere in a delivered artifact must fail the whole
89+
record, named by artifact id with both hashes. If your probe comes back
90+
`VERIFIED`, the E3 replay in the engine you are running is broken — file
91+
what you saw.
92+
93+
## Step 4 — Read the conformity question where it actually lives (2 min)
94+
95+
The engine deliberately does not decide conformity; the parties' signed
96+
records do. Three spot-reads:
97+
98+
```bash
99+
node -e "const fs = require('fs'); const d = process.argv[1]; const ag = JSON.parse(fs.readFileSync(d + '/agreement.json', 'utf8')); console.log('agreement:', ag.agreementId ?? ag.id, '· version', ag.version); const cr = JSON.parse(fs.readFileSync(d + '/acceptance-criteria.json', 'utf8')); const list = cr.criteria ?? cr; console.log('criteria:', (list.criteria ?? list).length); const ac = JSON.parse(fs.readFileSync(d + '/acceptance-record.json', 'utf8')); console.log('acceptance grounds:', JSON.stringify(ac.grounds ?? ac.basis ?? ac.verdict).slice(0, 120)); const dr = JSON.parse(fs.readFileSync(d + '/dispute-record.json', 'utf8')); console.log('dispute positions:', (dr.partyA ? 'partyA' : 'A?'), '+', (dr.partyB ? 'partyB' : 'B?'), '· requested remedies:', dr.partyA?.requestedRemedy ?? dr.partyA?.remedy, '/', dr.partyB?.requestedRemedy ?? dr.partyB?.remedy); console.log('engineAdjudication declared:', JSON.stringify(dr.engineAdjudication).slice(0, 80));" <fixture-dir>
100+
```
101+
102+
What to check by eye:
103+
104+
- **acceptance grounds** cite the agreed criteria (and, if rejected, name
105+
the failed criterion) — never "payment settled" or "receipt proves"
106+
(that class of grounds is killed structurally by F1/B1).
107+
- **both dispute positions and their requested remedies are present**
108+
(a party's `requestedRemedy` may legitimately be `NONE`);
109+
`engineAdjudication` must be a refusal to adjudicate (the engine's own
110+
B3 posture), not a winner.
111+
- **the record has a closing point** (`recordClosesAtUtc` / `closedAtUtc`)
112+
— the closed record is what a neutral procedure reviews.
113+
114+
## Step 5 — The People's Court intake projection (1 min)
115+
116+
The C1–C6 evidence-class projection a neutral intake would map from:
117+
118+
```bash
119+
node --input-type=module -e "import { verifyFixture } from './packages/delivery/sdk.js'; const r = await verifyFixture({ fixtureDir: process.argv[1], peoplesCourt: true }); console.log('readiness:', r.peoplesCourt.readiness, '· mappable:', r.peoplesCourt.mappable);" <fixture-dir>
120+
```
121+
122+
**Expected:** `readiness: READY_FOR_CLAIM_MAPPING — evidence classes
123+
complete; conformity question framed, not decided · mappable: true`.
124+
This is a pure classification: no persistence, no judgment, and no
125+
endorsement by People's Court / Epistemic Labs is implied by the output.
126+
127+
## The 10-minute verdict
128+
129+
| ☐ | Check | Pass looks like |
130+
|---|---|---|
131+
| ☐ | Step 1 pins | `all pins match`, exit 0 |
132+
| ☐ | Step 2 gate | `VERIFIED · EXECUTION_EVIDENCE_ADMISSIBLE — CONFORMITY_UNDECIDED_BY_ENGINE`, `E5 NOT_RUN` stated honestly |
133+
| ☐ | Step 3 tamper | `REJECTED` + E3 naming the artifact and both hashes |
134+
| ☐ | Step 4 records | criteria-cited grounds, both positions + remedies, closing point, no engine winner |
135+
| ☐ | Step 5 projection | `READY_FOR_CLAIM_MAPPING` (or named gaps — which is a finding, not a failure) |
136+
137+
**Red flags — reject the submission if you see any of these:**
138+
139+
- any summary quoting the engine's verdict **without the boundary line**;
140+
- acceptance grounds resting on execution facts (`PAYMENT_SETTLED`,
141+
"receipt proves") — F1/B1 must have killed this; if present, the
142+
producing pipeline is not the one documented here;
143+
- a verdict beside **zero criterion evaluations** (B2 class);
144+
- `E5 PASS` **without** an EVM adapter (fabricated consent);
145+
- the engine (or any summary of it) **naming a winner** or a remedy
146+
outside the closed vocabulary (B3 class);
147+
- pins that do not match (Step 1) — the archive is not the one converted.
148+
149+
## Where this path is proven continuously
150+
151+
The pipeline this fixture came out of — candidate build → removal gate →
152+
conversion (both modes, deterministic archives) → unzip → engine on the
153+
extraction → red-path refusal — is exercised by CI on **every push**:
154+
[![Intake Pipeline](https://github.com/EslaM-X/coreguard/actions/workflows/intake.yml/badge.svg)](https://github.com/EslaM-X/coreguard/actions/workflows/intake.yml)
155+
156+
Links:
157+
158+
- Boundary document (why execution proof ≠ conformity): <https://github.com/EslaM-X/coreguard/blob/main/docs/delivery-dispute-boundary.md>
159+
- One-page integration (wire API, every curl executed in CI): <https://github.com/EslaM-X/coreguard/blob/main/INTEGRATION.md>
160+
- Intake kit (consent template, removal checklist, gate, converter): <https://github.com/EslaM-X/coreguard/tree/main/examples/real-fixture-intake>
161+
- Live demo: <https://eslam-x.github.io/coreguard/DELIVERY-DISPUTE-DEMO.html>
162+
- Neutral intake for a real bilateral case: <https://peoplescourt.ai/request-demo>
163+
164+
> Quote a report, you quote the boundary with it:
165+
> **Execution verification does not decide delivery conformity.**

‎examples/real-fixture-intake/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ anchors to a real Core Mainnet transaction.
4747
| [`prelude.mjs`](./prelude.mjs) | The machine-checkable gate: secret scan, origin truth, both-party consent replay, pin integrity — fail-closed, `NOT_CHECKED` never faked |
4848
| [`convert-to-fixture.mjs`](./convert-to-fixture.mjs) | Candidate → DDE fixture in one command: green gate mandatory → ten records + pin manifest → engine-verified. Directory or `--out-zip` attachment archive. Exit `0` ready · `1` gate red/rejected · `2` usage |
4949
| [`make-intake-candidate.mjs`](./make-intake-candidate.mjs) | Build the modeled REAL candidate (ten records + pins) used by CI's surveillance run and the contract tests — one source of truth for the candidate shape |
50+
| [`REVIEW-GUIDE.md`](../../REVIEW-GUIDE.md) (repo root) | The reviewer's one-page path through a converted fixture: pins → engine gate → tamper probe → conformity records → intake projection, in under 10 minutes |
5051

5152
## The procedure — five steps, no shortcuts
5253

0 commit comments

Comments
 (0)