Skip to content

Commit 290e96e

Browse files
spec: codify V7 demo QA and audit
1 parent e4e0c84 commit 290e96e

14 files changed

Lines changed: 14948 additions & 654 deletions

VULNERABILITY_AUDIT_2026-04-02.md

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

engi-demo/CHECKLIST.md

Lines changed: 145 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,188 @@
1-
# ENGI Demo Checklist
1+
# ENGI Demo Checklist — Spec V7
22

3-
Use this before presenting the demo.
3+
Use this before an interactive V7 demo, QA pass, or live walkthrough.
44

55
---
66

7-
## Pre-demo setup
7+
## 0. Server / environment
88

9-
- [ ] Open the demo at `http://127.0.0.1:4318`
10-
- [ ] Confirm the page loads successfully
11-
- [ ] Confirm the thesis strip is visible
12-
- [ ] Confirm the top summary cards render
13-
- [ ] Set mode appropriately:
14-
- [ ] `light` for live presentation
15-
- [ ] `heavy` only if deeper inspection is expected
16-
- [ ] Click **Reset demo** before starting
17-
- [ ] Confirm seeded state appears clean:
18-
- [ ] 3 assets
19-
- [ ] 0 public receipts
20-
- [ ] proof group summary shows clean initial state
9+
- [ ] Start the demo:
10+
11+
```bash
12+
cd /Users/garrettmaring/Developer/ENGI/engi-demo
13+
npm start
14+
```
15+
16+
- [ ] Open: `http://127.0.0.1:4318`
17+
- [ ] Confirm the page loads
18+
- [ ] Confirm the hero says **Spec V7**
19+
- [ ] Confirm the primary CTA is **Make ENGI branch**
20+
- [ ] Confirm no stale V6/query-era language is visible in the main flow
2121

2222
---
2323

24-
## Seeded scenario sanity check
24+
## 1. Clean seeded state
25+
26+
- [ ] Click **Reset demo** before starting
27+
- [ ] Confirm seeded state is clean:
28+
- [ ] 3 assets
29+
- [ ] 1 need scenario
30+
- [ ] no latest run yet
31+
- [ ] Confirm the active conformance profile shows **Profile A**
32+
- [ ] Confirm the seeded scenario is the auth rollback case
2533

26-
- [ ] Buyer is `Frontier Code Systems`
27-
- [ ] Seeded query is `enterprise auth migration rollback for monorepo services with issuer mismatch`
28-
- [ ] Expected top asset is `Enterprise auth migration rollback playbook`
29-
- [ ] Benchmark name is `production-auth-remediation`
34+
Expected seeded scenario cues:
35+
- buyer: `Frontier Code Systems`
36+
- repo: `frontier/demo-auth`
37+
- branch: `ENGI-auth-issuer-rollback`
38+
- benchmark workflow / GitHub Actions evidence present
3039

3140
---
3241

33-
## Gold-path presentation checklist
34-
35-
### 1. Openly writable
36-
- [ ] Point to thesis strip
37-
- [ ] Show `1. Public deposits`
38-
- [ ] Explain that public commitments are visible while corpus payloads stay sealed
39-
40-
### 2. Measurably readable
41-
- [ ] Run the licensed query or click guided demo
42-
- [ ] Show the private bundle
43-
- [ ] Explain that the system assembles a need-matched bundle rather than revealing the full corpus
44-
45-
### 3. Provable
46-
- [ ] In light mode, mention the collapsed proof summary
47-
- [ ] If needed, expand proof group
48-
- [ ] Show at least:
49-
- [ ] ranking explanation
50-
- [ ] conservation check
51-
- [ ] public receipts
52-
- [ ] Mention policy/provenance if asked
53-
54-
### 4. Valuable
55-
- [ ] End on the benchmark panel
56-
- [ ] Explain baseline outcome
57-
- [ ] Explain treatment outcome
58-
- [ ] Explain why the licensed bundle helped
59-
- [ ] Land the buyer impact clearly
42+
## 2. V7 gold-path interactive run
43+
44+
### A. Need measurement
45+
46+
- [ ] Show that the need is GitHub-bound, not a free-text-only query
47+
- [ ] Point out:
48+
- [ ] parser contract
49+
- [ ] canonical run evidence
50+
- [ ] field derivations / normalization closure
51+
- [ ] conformance profile labels
52+
53+
What should be visible after the run:
54+
- [ ] measured `needId`
55+
- [ ] parser fail-closed framing
56+
- [ ] need derivation / provenance surface
57+
58+
### B. Candidate recall + ranking
59+
60+
- [ ] Run **Make ENGI branch**
61+
- [ ] Confirm evaluated candidates render
62+
- [ ] Confirm the top asset is still the rollback/auth material
63+
- [ ] Show:
64+
- [ ] multi-channel recall / fusion
65+
- [ ] need match
66+
- [ ] benchmark impact
67+
- [ ] actionability
68+
- [ ] penalties
69+
- [ ] whole-asset score / explainability
70+
71+
### C. Verification + use tiers
72+
73+
- [ ] Confirm verification is separate from ranking
74+
- [ ] Show:
75+
- [ ] issuance verification
76+
- [ ] provenance verification
77+
- [ ] verification sufficiency
78+
- [ ] issuer policy status
79+
- [ ] Confirm use tiers are visible
80+
- [ ] Confirm branch-mode rights are visible / inferable
81+
82+
### D. Asset pack + branch artifacts
83+
84+
- [ ] Confirm an `assetPackId` is generated
85+
- [ ] Confirm branch artifacts include at least:
86+
- [ ] `.engi/need.json`
87+
- [ ] `.engi/verification-report.json`
88+
- [ ] `.engi/asset-pack.lock.json`
89+
- [ ] `.engi/authorization-decisions.json`
90+
- [ ] `.engi/sensitive-data-flow.json`
91+
- [ ] `.engi/policy-release.json`
92+
- [ ] `.engi/unit-catalog.json`
93+
- [ ] `.engi/pipeline-telemetry.json`
94+
- [ ] `.engi/system-proof-bundle.json`
95+
- [ ] `ENGI_NEED.md`
96+
97+
### E. Settlement / proof closure
98+
99+
- [ ] Confirm settlement preview exists
100+
- [ ] Confirm journal diff exists
101+
- [ ] Confirm `debitsEqualCredits = true`
102+
- [ ] Confirm asset-pack-lock binding is visible in settlement/proof surfaces
103+
- [ ] Confirm participating assets and shares are visible
60104

61105
---
62106

63-
## Expected live outputs after gold path
107+
## 3. Advanced V7 surfaces
64108

65-
After one normal gold-path run, expect roughly:
109+
### Content-unit semantics / vector interfaces
66110

67-
- [ ] private bundle issued successfully
68-
- [ ] top-ranked asset: `Enterprise auth migration rollback playbook`
69-
- [ ] allocation conservation: `verified`
70-
- [ ] public receipts present
71-
- [ ] benchmark uplift: `2500 bp`
72-
- [ ] buyer impact mentions:
73-
- [ ] higher-confidence incident recovery
74-
- [ ] faster safe rollback
75-
- [ ] lower risk of breaking live sessions
111+
- [ ] Confirm unit catalog exists
112+
- [ ] Confirm content units expose:
113+
- [ ] semantic summary
114+
- [ ] embedding / vector contract metadata
115+
- [ ] provenance / unit hash
116+
- [ ] Confirm these are framed as **Profile A deterministic stand-ins** for richer Profile B embeddings
76117

77-
---
118+
### Static vs inferred evaluator boundaries
119+
120+
- [ ] Confirm eval/proof surfaces distinguish between:
121+
- [ ] static analysis / deterministic measurement
122+
- [ ] inferred measurement / evaluator surfaces
123+
- [ ] stand-in vs production-boundary behavior
78124

79-
## If presenting in light mode
125+
### Telemetry / harness
80126

81-
- [ ] Keep proof group collapsed until the proof step
82-
- [ ] Use the proof summary card as the trust-at-a-glance surface
83-
- [ ] Do not get stuck inside raw proof payloads
84-
- [ ] Return quickly to the benchmark ending
127+
- [ ] Confirm pipeline telemetry artifact exists
128+
- [ ] Confirm telemetry explains:
129+
- [ ] unit extraction
130+
- [ ] recall channels / fusion
131+
- [ ] score composition
132+
- [ ] verification decisions
133+
- [ ] use-tier propagation
134+
- [ ] artifact materialization
135+
- [ ] settlement / shares
136+
- [ ] fail-closed behavior when relevant
85137

86138
---
87139

88-
## If someone asks for deeper proof
140+
## 4. E2E QA verdict
89141

90-
Expand the proof group and walk in this order:
142+
Call the demo **interactive V7 E2E-QA ready** only if all of the following are true:
91143

92-
1. ranking explanation
93-
2. conservation check
94-
3. public receipts
95-
4. receipt schemas
96-
5. policy release / attestation
97-
6. proof log timeline
144+
- [ ] page loads cleanly
145+
- [ ] reset works
146+
- [ ] make-ENGI-branch gold path works end-to-end
147+
- [ ] V7 profile/derivation/rights/telemetry surfaces are visible
148+
- [ ] settlement invariants hold
149+
- [ ] no stale query-first story is required to understand the demo
150+
- [ ] docs/checklist match the actual UI/runtime behavior
98151

99152
---
100153

101-
## If something looks wrong
154+
## 5. If something is wrong
102155

103-
### If state is dirty
156+
### If state looks dirty
104157
- [ ] Click **Reset demo**
105-
- [ ] Reconfirm 0 receipts
158+
- [ ] Re-run the gold path
106159

107-
### If proof group is distracting
108-
- [ ] Switch to `light` mode
109-
110-
### If the benchmark panel is not the last visual beat
111-
- [ ] Scroll back to `3. Utility proof`
112-
- [ ] re-land the value claim before closing
160+
### If the UI seems stale
161+
- [ ] Hard refresh browser
162+
- [ ] Verify `data/state.json` was regenerated from the current V7 model if needed
113163

114164
### If the server is not responding
115-
Run from repo root:
116165

117166
```bash
118-
cd /Users/garrettmaring/.openclaw/workspace/engi-demo
119-
node server.js
167+
cd /Users/garrettmaring/Developer/ENGI/engi-demo
168+
npm start
120169
```
121170

122-
Then reload:
123-
124-
`http://127.0.0.1:4318`
171+
### If invariants fail
172+
- [ ] stop the demo
173+
- [ ] run `npm test`
174+
- [ ] do not present the prototype as QA-ready until the failure is understood
125175

126176
---
127177

128178
## Final reminder
129179

130-
Do not end on proof mechanics.
131-
132-
End on this:
180+
Do not present the demo as:
181+
- a live GitHub-integrated production system
182+
- a real embedding/LLM evaluator deployment
183+
- a real policy publication / authz enforcement plane
133184

134-
- the buyer had a real production auth incident
135-
- the system assembled the right licensed bundle
136-
- the read was provable
137-
- the read improved the buyer's remediation system
185+
Present it as:
186+
- a **Spec V7 Profile A deterministic prototype**
187+
- with explicit **Profile B production-boundary intent**
188+
- and with strong inspectability across ranking, verification, artifacts, telemetry, and settlement

engi-demo/README.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# ENGI Demo — Spec V6 Deterministic Local Prototype
1+
# ENGI Demo — Spec V7 Deterministic Local Prototype
22

3-
This demo now tracks the Spec V6 core flow much more closely:
3+
This demo now tracks the Spec V7 core flow much more closely:
44

55
1. parse mocked GitHub Actions evidence through a declared benchmark parser contract and build a `GitHubNeedDescriptor`,
66
2. model hybrid candidate recall across task, failure-mode, technical-context, lexical, symbol, path, config, and artifact-kind channels,
7-
3. rank deposited candidate assets with explicit Spec V6 subscores, explainability traces, and penalties,
7+
3. rank deposited candidate assets with explicit Spec V7 subscores, explainability traces, and penalties,
88
4. apply separate verification determinisms, issuer policy, and downstream use-tier propagation,
99
5. assemble a locked `AssetPack` plus selected source-material manifest,
1010
6. stage a private remediation branch artifact set with deliverable metadata, authorization decisions, and sensitive-data-flow records,
@@ -13,18 +13,22 @@ This demo now tracks the Spec V6 core flow much more closely:
1313

1414
## What this prototype is
1515

16-
A deterministic, local, no-dependency Node app that models the V6 architecture and naming faithfully enough to demo:
16+
A deterministic, local, no-dependency Node app that models the V7 Profile A architecture faithfully enough to demo while explicitly labeling Profile B production intent:
1717

1818
- need measurement from GitHub-bound benchmark evidence,
1919
- parser fail-closed behavior and canonical run-evidence normalization,
20+
- canonical need-descriptor derivation closure with explicit field derivations,
21+
- content-unit semantics with explicit embedding/vector hand-off interfaces,
2022
- need-measurement provenance plus inference proof surfaces,
23+
- clean separation between static deterministic analysis and inferred evaluator surfaces,
2124
- hybrid candidate recall and fusion provenance,
2225
- ranking vs verification separation,
2326
- issuer policy / sufficiency / use-tier propagation,
24-
- branch materialization rules by use tier,
25-
- authorization, identity binding, confidentiality, retention, and revocation modeling,
27+
- branch materialization rules by use tier and branch mode,
28+
- authorization, identity binding, confidentiality, retention, revocation, and bounded-public-proof modeling,
29+
- structured pipeline telemetry and unit catalogs for live demo inspection,
2630
- private remediation branch artifacts under `.engi/`,
27-
- exact fixed-point settlement with asset-scoped pending claims.
31+
- exact fixed-point settlement with asset-scoped pending claims and asset-pack-lock binding.
2832

2933
## What it still is not
3034

@@ -39,6 +43,18 @@ This is still a local prototype. It does **not**:
3943

4044
All of those surfaces are represented deterministically in local state.
4145

46+
## Conformance profiles
47+
48+
- `Profile A — local deterministic prototype`: what this repo implements and demos now.
49+
- `Profile B — production-boundary intent`: live GitHub binding, real branch/privacy/authz enforcement, real embeddings/evaluators/prompts, and external integrations still outside the local prototype boundary.
50+
51+
## Advanced V7 interface notes
52+
53+
- Content units now carry explicit semantic/embedding contracts so real embedding providers can replace deterministic stand-ins without changing downstream schemas.
54+
- Measurement provenance distinguishes static deterministic analysis from inferred evaluator surfaces.
55+
- Structured telemetry artifacts (`.engi/unit-catalog.json`, `.engi/pipeline-telemetry.json`) explain the live pipeline during demos.
56+
- Proof bundles now include prompt/evaluator implementation surfaces alongside the existing settlement / policy / identity proofs.
57+
4258
## Run
4359

4460
```bash
@@ -79,12 +95,15 @@ npm test
7995
- `.engi/authorization-decisions.json`
8096
- `.engi/sensitive-data-flow.json`
8197
- `.engi/policy-release.json`
98+
- `.engi/unit-catalog.json`
99+
- `.engi/pipeline-telemetry.json`
82100
- `.engi/deliverables.json`
83101
- `.engi/source-material/*`
84102
- `ENGI_NEED.md`
85103

86104
## Repo docs added for this alignment pass
87105

88106
- `ARCHITECTURE_MAP.md` — tight map of the original/current demo architecture baseline
89-
- `SPEC_V6_GAP_ANALYSIS.md` — gap analysis and implementation guide used for the refactor
107+
- `SPEC_V6_GAP_ANALYSIS.md`earlier gap analysis and implementation guide used for the V6 refactor
90108
- `SPEC_V6_COVERAGE_MATRIX.md` — durable section-by-section coverage audit against the V6 spec
109+
- `SPEC_V7_COVERAGE_MATRIX.md` — section-by-section coverage audit against the V7 spec, including V6→V7 deltas and Profile A/Profile B splits

0 commit comments

Comments
 (0)