Skip to content

Commit d418ec9

Browse files
wip v17
1 parent 389dc68 commit d418ec9

8 files changed

Lines changed: 371 additions & 36 deletions

File tree

ENGI_SPEC_V17.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Prior canonical anchor: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V16.md`
99
- Current canonical/latest target: `V16`
1010
- Last fully realized canon preserved in source: `V16`
11-
- V17 state: drafting; not yet the canonical pointer target
11+
- V17 state: advanced draft implementation/audit exhaustion; not yet the canonical pointer target
1212
- Current realization basis for this pass: `engi-demo`
1313

1414
## Version executive summary
@@ -201,9 +201,10 @@ For `engi-demo`, V17 should converge on:
201201
- dedicated integration workflow test entrypoints,
202202
- runtime test-coverage reporting that names the layered stack honestly,
203203
- a growing distinction between endpoint validation tests and multi-step workflow tests,
204-
- and an audit loop where V16 family/system parity claims can be checked through demonstrable workflows.
204+
- an audit loop where V16 family/system parity claims can be checked through demonstrable workflows,
205+
- and a clear `_PROVEN_` regeneration rule that keeps generated appendices out of draft edits and reserves them for canonical version-promotion commits.
205206

206-
The current opening source state now includes:
207+
The current source state now includes:
207208
- explicit `test:unit`, `test:integration`, and `test:e2e` scripts,
208209
- runtime `testCoverageReport` taxonomy updated to `unit` / `integration` / `e2e`,
209210
- a dedicated `engi-demo/test/workflow.integration.test.js` suite,
@@ -220,8 +221,13 @@ The current opening source state now includes:
220221
- privacy-boundary disclosure versus proof-replay visibility,
221222
- restrictive unsafe-patch verification/materialization exclusion closure,
222223
- reviewer versus internal projection differences,
224+
- all four projection principals across the full seeded HTTP scenario corpus,
223225
- full seeded scenario-corpus workflow closure across both `patch` and `context`,
224226
- exact proof-family catalog, member-id, and theorem-id closure across that seeded corpus,
227+
- mixed repo-backed and raw deposit workflow composition before branch realization,
228+
- repeated branch runs without reset while preserving latest-run truth and run-history order,
229+
- no-survivor branch creation classified as a `409` workflow conflict,
230+
- no-survivor state preservation and reset recovery back to a branchable seeded state,
225231
- prompt/inference workflow closure across prompt-owned fields, moment contracts, inference proofs, parsed envelopes, and declared downstream consumers,
226232
- static-vs-verification receipt-domain and proof-binding separation,
227233
- selection/materialization plus authorization/sensitive-flow private-source visibility closure,
@@ -235,19 +241,34 @@ The current opening source state now includes:
235241
- browser-visible internal versus reviewer source-material visibility boundaries,
236242
- browser-visible raw verification/materialization/proof inspection, including proof-family member ids and theorem ids,
237243
- browser-visible deposit validation failures,
244+
- browser-visible invalid-to-valid deposit recovery,
245+
- browser-visible no-survivor conflict recovery,
238246
- browser-visible reset after a realized run,
247+
- browser-visible repeated scenario runs without reset,
239248
- and deeper unit replay-catalog closure over proof families, witness paths, and emitted branch artifacts.
240249

241250
The current V17 audit also exposed and fixed a source-side documentation/runtime seam: `ENGI_NEED.md` was still returning an older markdown body before the V16 prompt-completeness additions. It now renders failure modes, constraints, target artifact kinds, and closure criteria from the same prompt/inference surfaces that prove those fields.
242251

252+
## V17 `_PROVEN_` regeneration posture
253+
254+
V17 should not generate or edit `ENGI_SPEC_V17_PROVEN.md` while it is still a draft audit pass.
255+
256+
The V16-generated appendix remains the canonical model for proof appendix production:
257+
- `_PROVEN_` output is generated, not manually edited,
258+
- regeneration belongs to canonical version-promotion commits,
259+
- the regenerated file should be included in the canonical bump commit,
260+
- and V17 should run that generation only after implementation parity and proof/demo closure are accepted for canonical promotion.
261+
262+
This pass therefore specifies the V17 `_PROVEN_` rule but intentionally does not create a draft generated appendix.
263+
243264
Current verification state for this pass is:
244265
- `npm run typecheck`
245266
- `npm run test:unit`
246267
- `npm run test:integration`
247268
- `npm run test:e2e`
248269
- `npm test`
249270

250-
All are green in the current worktree, with `104/104` tests passing in the full suite after the latest audit ratchets.
271+
All are green in the current worktree, with `111/111` tests passing in the full suite after the latest audit ratchets.
251272

252273
## V17 opening success condition
253274

ENGI_SPEC_V17_NOTES.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,24 @@ V17 starts from:
110110

111111
## Initial V17 debts in view
112112

113-
The current opening debts are:
113+
The current debts after this pass are:
114114

115-
1. The V16 audit guide is now materially reused, but not yet exhausted scenario-family by scenario-family.
116-
2. Integration workflows are first-class now, but `api.test.js` still carries some workflow-adjacent checks.
117-
3. Runtime-emitted coverage metadata is now honest, but the demo/test stack still needs more family/member-specific demonstrations.
118-
4. E2E flows are materially broader now, but they still do not cover every high-risk operator workflow or failure mode.
119-
5. Projection differences are now exercised all the way into the browser shell, but not every proof/artifact surface has been demonstrated across every principal.
120-
6. Demo-driven bug discovery is now strong enough to surface real seams, and the next V17 passes should keep pushing on those seams rather than reverting to abstract review.
115+
1. V16 audit inheritance is materially executable, but not yet generated as every possible family/member/scenario/principal/operator cross-product assertion.
116+
2. Integration workflows are first-class now, but `api.test.js` still carries limited workflow smoke checks that can migrate if a pure endpoint-boundary suite becomes required.
117+
3. Runtime-emitted coverage metadata is honest again after the latest ratchets, but it must continue changing whenever the suite taxonomy changes.
118+
4. E2E flows cover the highest-risk happy, projection, proof-inspection, failure, recovery, and repeated-run paths, but not every seeded scenario and proof/artifact surface.
119+
5. Projection differences are exercised across the full seeded HTTP corpus and representative browser surfaces, but not every proof/artifact UI surface has been demonstrated across every principal.
120+
6. V17 `_PROVEN_` generation remains deferred until canonical promotion; draft edits should only specify and test the generation rule.
121121

122-
## Immediate V17 target
122+
## Initial V17 target
123123

124-
The first clean V17 move is:
124+
The first clean V17 move was:
125125
- formalize the layered test stack in spec/notes/parity docs,
126126
- explicitly inherit V16 spec/parity as the first V17 audit guide,
127127
- reflect that taxonomy in source-side test scripts and runtime coverage reporting,
128-
- and add at least one explicit closer-to-real workflow integration path so the integration layer is not only a naming change.
128+
- and add explicit closer-to-real workflow integration paths so the integration layer is not only a naming change.
129+
130+
That target is now satisfied for the opening V17 posture. The remaining question is whether V17 acceptance requires cross-product generation beyond the current high-risk exhaustive surfaces.
129131

130132
## Current implemented V17 state
131133

@@ -148,7 +150,9 @@ The repo now has:
148150
- and corrected static/demo serving for favicon and SVG typing,
149151
- and first V16-guided audit ratchets around:
150152
- full seeded scenario-matrix closure across both `patch` and `context` branch modes,
153+
- all four projection principals across that seeded HTTP scenario corpus,
151154
- repo-authenticated workflow composition,
155+
- mixed repo-backed and raw deposit workflow composition,
152156
- normalization/projection workflow composition,
153157
- privacy-boundary public disclosure boundedness,
154158
- reviewer-visible proof replay surfaces,
@@ -158,6 +162,9 @@ The repo now has:
158162
- selection/materialization visibility and authorization/sensitive-flow closure,
159163
- normalization settlement zero-credit participation and accounting exactness,
160164
- restrictive unsafe-patch verification/materialization exclusion behavior,
165+
- repeated branch runs without reset while preserving latest-run truth and run history,
166+
- no-survivor workflow conflicts classified as `409`,
167+
- no-survivor state preservation and reset recovery,
161168
- browser-visible identity/auth plus proof/disclosure panels,
162169
- browser-visible projection visibility and proof-family catalog inspection,
163170
- browser-visible prompt/inference audit artifact inspection,
@@ -167,7 +174,10 @@ The repo now has:
167174
- reviewer versus internal projection differences,
168175
- API-side client-error handling for unsupported principals / branch modes / scenarios,
169176
- browser-visible invalid-deposit handling,
177+
- browser-visible invalid-to-valid deposit recovery,
178+
- browser-visible no-survivor conflict recovery,
170179
- browser-visible reset-after-run behavior,
180+
- browser-visible repeated scenario runs without reset,
171181
- and unit replay-catalog closure across proof families, witness artifacts, and verifier-required artifact paths.
172182

173183
This is the right shape for the beginning of V17 because it is already doing what the version is supposed to do:
@@ -182,6 +192,8 @@ The current verification state is also materially stronger than the opening pass
182192
- `npm run test:unit` is green,
183193
- `npm run test:integration` is green,
184194
- `npm run test:e2e` is green,
185-
- and `npm test` is green at `104/104`.
195+
- and `npm test` is green at `111/111`.
196+
197+
V17 `_PROVEN_` generation is intentionally not performed in this draft state. The V16 generated appendix remains the model, and V17 should regenerate `ENGI_SPEC_V17_PROVEN.md` only on the eventual canonical version-promotion commit after implementation/parity closure is accepted.
186198

187-
That does not mean V17 is finished. It means the version has moved from “opening posture established” to “advanced, demonstrable, and now ready to keep exhausting the remaining V16 audit surface through more workflow-driven ratchets.”
199+
That does not mean V17 is finished. It means the version has moved from “opening posture established” to “advanced, demonstrable, and now ready to decide whether the remaining work is cross-product exhaustiveness, browser-level proof-surface completeness, or canonical promotion preparation.”

0 commit comments

Comments
 (0)