Skip to content

Commit cc7a763

Browse files
spec: v8, explicit settlement semantics
Finalize the ENGI demo’s V8 closure pass and bring the repo’s current-state implementation, docs, and operator story into clean alignment. Core implementation alignment - rename the canonical demo engine from src/spec-v7-demo.js to src/engi-demo.js - update runtime/test imports and references accordingly - preserve historical V7 coverage material rather than collapsing versioned history Current-state V8 repo cleanup - update README, SCRIPT, SCRIPT_SHORT, and CHECKLIST to describe the demo as V8 - remove stale V7 framing from current operator-facing surfaces - keep SPEC_V7_COVERAGE_MATRIX.md as historical reference - refresh SPEC_V8_COVERAGE_MATRIX.md so it serves as the authoritative audit/design/closure document for the current demo Settlement semantics closure - keep the deterministic marginal-contribution settlement logic unchanged - make the semantics explicit instead of implying that all selected settlement-eligible assets must receive positive credit - distinguish in artifacts/UI/tests between: - selected branch assets - settlement participants - credited settlement assets - zero-credit participants - extend settlement preview surfaces with explicit IDs, richer allocations, rationale text, and operator-facing semantics notes - update ENGI_NEED markdown and UI summaries to reflect credited vs zero-credit outcomes clearly Verification - refresh seeded state to clean V8-aligned repo data - add/adjust tests to pin the seeded settlement semantics intentionally - npm test passes cleanly: 52/52
1 parent 7e53e1f commit cc7a763

10 files changed

Lines changed: 5502 additions & 60 deletions

File tree

engi-demo/CHECKLIST.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# ENGI Demo Checklist — Spec V7
1+
# ENGI Demo Checklist — Spec V8
22

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

55
---
66

@@ -15,7 +15,7 @@ npm start
1515

1616
- [ ] Open: `http://127.0.0.1:4318`
1717
- [ ] Confirm the page loads
18-
- [ ] Confirm the hero says **Spec V7**
18+
- [ ] Confirm the hero says **Spec V8**
1919
- [ ] Confirm the primary CTA is **Make ENGI branch**
2020
- [ ] Confirm no stale V6/query-era language is visible in the main flow
2121
- [ ] Confirm JSON-heavy surfaces default to **Visual** mode and can be flipped to **Raw**
@@ -40,7 +40,7 @@ Expected seeded scenario cues:
4040

4141
---
4242

43-
## 2. V7 gold-path interactive run
43+
## 2. V8 gold-path interactive run
4444

4545
### A. Need measurement
4646

@@ -105,7 +105,7 @@ What should be visible after the run:
105105

106106
---
107107

108-
## 3. Advanced V7 surfaces
108+
## 3. Advanced V8 surfaces
109109

110110
### Content-unit semantics / vector interfaces
111111

@@ -140,12 +140,12 @@ What should be visible after the run:
140140

141141
## 4. E2E QA verdict
142142

143-
Call the demo **interactive V7 E2E-QA ready** only if all of the following are true:
143+
Call the demo **interactive V8 E2E-QA ready** only if all of the following are true:
144144

145145
- [ ] page loads cleanly
146146
- [ ] reset works
147147
- [ ] make-ENGI-branch gold path works end-to-end
148-
- [ ] V7 profile/derivation/rights/telemetry surfaces are visible
148+
- [ ] V8 profile/derivation/rights/telemetry surfaces are visible
149149
- [ ] settlement invariants hold
150150
- [ ] no stale query-first story is required to understand the demo
151151
- [ ] docs/checklist match the actual UI/runtime behavior
@@ -160,7 +160,7 @@ Call the demo **interactive V7 E2E-QA ready** only if all of the following are t
160160

161161
### If the UI seems stale
162162
- [ ] Hard refresh browser
163-
- [ ] Verify `data/state.json` was regenerated from the current V7 model if needed
163+
- [ ] Verify `data/state.json` was regenerated from the current V8 model if needed
164164

165165
### If the server is not responding
166166

@@ -184,6 +184,6 @@ Do not present the demo as:
184184
- a real policy publication / authz enforcement plane
185185

186186
Present it as:
187-
- a **Spec V7 Profile A deterministic prototype**
187+
- a **Spec V8 Profile A deterministic prototype**
188188
- with explicit **Profile B production-boundary intent**
189189
- and with strong inspectability across ranking, verification, artifacts, telemetry, and settlement

engi-demo/README.md

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

3-
This demo now tracks the Spec V7 core flow much more closely:
3+
This demo now tracks the Spec V8 core flow 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 V7 subscores, explainability traces, and penalties,
7+
3. rank deposited candidate assets with explicit Spec V8 score groups, 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,7 +13,7 @@ This demo now tracks the Spec V7 core flow much more closely:
1313

1414
## What this prototype is
1515

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:
16+
A deterministic, local, no-dependency Node app that models the V8 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,
@@ -48,7 +48,7 @@ All of those surfaces are represented deterministically in local state.
4848
- `Profile A — local deterministic prototype`: what this repo implements and demos now.
4949
- `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.
5050

51-
## Advanced V7 interface notes
51+
## Advanced V8 interface notes
5252

5353
- Content units now carry explicit semantic/embedding contracts so real embedding providers can replace deterministic stand-ins without changing downstream schemas.
5454
- Measurement provenance distinguishes static deterministic analysis from inferred evaluator surfaces.
@@ -107,4 +107,5 @@ npm test
107107
- `ARCHITECTURE_MAP.md` — tight map of the original/current demo architecture baseline
108108
- `SPEC_V6_GAP_ANALYSIS.md` — earlier gap analysis and implementation guide used for the V6 refactor
109109
- `SPEC_V6_COVERAGE_MATRIX.md` — durable section-by-section coverage audit against the V6 spec
110-
- `SPEC_V7_COVERAGE_MATRIX.md` — section-by-section coverage audit against the V7 spec, including V6→V7 deltas and Profile A/Profile B splits
110+
- `SPEC_V7_COVERAGE_MATRIX.md` — preserved historical coverage audit for the V7 spec and V6→V7 deltas
111+
- `SPEC_V8_COVERAGE_MATRIX.md` — authoritative audit/design/closure plan for the current V8 demo

engi-demo/SCRIPT.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# ENGI Demo Script — Spec V7
1+
# ENGI Demo Script — Spec V8
22

3-
This is the live presentation / interactive QA script for the current ENGI V7 deterministic prototype.
3+
This is the live presentation / interactive QA script for the current ENGI V8 deterministic prototype.
44

55
---
66

@@ -12,7 +12,7 @@ ENGI measures a GitHub-bound engineering need, matches the right technical intel
1212

1313
## What this demo is
1414

15-
This demo is **Profile A — local deterministic prototype** behavior for ENGI Spec V7.
15+
This demo is **Profile A — local deterministic prototype** behavior for ENGI Spec V8.
1616

1717
It is meant to demonstrate:
1818
- need measurement from GitHub-bound benchmark evidence,
@@ -41,10 +41,10 @@ Say something like:
4141

4242
> ENGI is a system for turning engineering knowledge into an inspectable remediation pipeline.
4343
>
44-
> In Spec V7, the key idea is not just storing or retrieving technical knowledge. The key idea is measuring a real GitHub-bound need, selecting the right technical intelligence supply for that need, materializing governed artifacts for remediation, and proving how value and rights flow through the system.
44+
> In Spec V8, the key idea is not just storing or retrieving technical knowledge. The key idea is measuring a real GitHub-bound need, selecting the right technical intelligence supply for that need, materializing governed artifacts for remediation, and proving how value and rights flow through the system.
4545
4646
Then point out:
47-
- Spec V7
47+
- Spec V8
4848
- Profile A / Profile B framing
4949
- the seeded GitHub-bound auth rollback scenario
5050

@@ -182,7 +182,7 @@ Operator note:
182182
183183
---
184184

185-
### 5. Telemetry and advanced V7 surfaces
185+
### 5. Telemetry and advanced V8 surfaces
186186

187187
#### Where to look
188188

@@ -192,7 +192,7 @@ Operator note:
192192

193193
#### What to say
194194

195-
> V7 adds stronger interface codification around unitization, semantics, embeddings, evaluator surfaces, and telemetry.
195+
> V8 adds stronger interface codification around unitization, semantics, embeddings, evaluator surfaces, and telemetry.
196196
>
197197
> So now the demo can show not only what was selected, but how units were derived, what metadata/vector contracts exist, how recall/scoring hand-offs happened, and how those choices fed settlement and proof.
198198
@@ -239,7 +239,7 @@ Important line:
239239

240240
> ENGI turns engineering knowledge into a measurable, governable, inspectable remediation pipeline.
241241
>
242-
> In this V7 prototype, the system measures a GitHub-bound need, selects the right technical intelligence supply, materializes a governed branch artifact set, and proves both the operational and economic consequences.
242+
> In this V8 prototype, the system measures a GitHub-bound need, selects the right technical intelligence supply, materializes a governed branch artifact set, and proves both the operational and economic consequences.
243243
244244
---
245245

@@ -249,7 +249,7 @@ Use this sequence when verifying the demo live:
249249

250250
1. open the app
251251
2. reset seeded state
252-
3. confirm Profile A + Spec V7 labels
252+
3. confirm Profile A + Spec V8 labels
253253
4. confirm the auth rollback scenario
254254
5. click **Make ENGI branch**
255255
6. inspect evaluated candidates
@@ -266,7 +266,7 @@ Use this sequence when verifying the demo live:
266266
- Repo: `frontier/demo-auth`
267267
- Scenario: auth issuer rollback / migration recovery
268268
- Expected strongest asset: `Enterprise auth migration rollback playbook`
269-
- Important V7-only surfaces:
269+
- Important V8-only surfaces:
270270
- field derivations
271271
- use-tier rights
272272
- asset-pack-lock closure
@@ -286,5 +286,5 @@ Do **not** present the current demo as:
286286
- a real external proof-publication system.
287287

288288
Present it as:
289-
- a **Spec V7 Profile A deterministic prototype**
290-
- with strong codification of the production-facing hand-offs and artifact contracts.
289+
- a **Spec V8 Profile A deterministic prototype**
290+
- with strong codification of the production-facing hand-offs and artifact contracts.

engi-demo/SCRIPT_SHORT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ENGI Demo Script — Short Version (Spec V7)
1+
# ENGI Demo Script — Short Version (Spec V8)
22

33
Use this when you want the cleanest possible live explanation in ~90 seconds.
44

@@ -12,7 +12,7 @@ ENGI measures a GitHub-bound engineering need, matches the right technical intel
1212

1313
## 90-second script
1414

15-
> This demo shows ENGI as a Spec V7 deterministic prototype.
15+
> This demo shows ENGI as a Spec V8 deterministic prototype.
1616
>
1717
> A buyer has a concrete GitHub-bound auth rollback incident with benchmark evidence from GitHub Actions. ENGI first normalizes that evidence into a measured need descriptor instead of treating the task as a loose prompt.
1818
>
@@ -46,7 +46,7 @@ ENGI measures a GitHub-bound engineering need, matches the right technical intel
4646
- Repo: `frontier/demo-auth`
4747
- Scenario: auth issuer rollback / migration recovery
4848
- Expected strongest asset: `Enterprise auth migration rollback playbook`
49-
- V7-specific artifacts to mention if asked:
49+
- V8-specific artifacts to mention if asked:
5050
- `.engi/unit-catalog.json`
5151
- `.engi/pipeline-telemetry.json`
5252
- `.engi/policy-release.json`

0 commit comments

Comments
 (0)