Skip to content

Commit 8b682d9

Browse files
wip v14
1 parent c021b9e commit 8b682d9

12 files changed

Lines changed: 3655 additions & 165 deletions

ENGI_SPEC.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
V12
1+
V14

ENGI_SPEC_TEMPLATEGUIDE.md

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

ENGI_SPEC_V14.md

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

ENGI_SPEC_V14_NOTES.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
# ENGI Spec V14 Notes
2+
3+
## Why V14 exists
4+
5+
V14 is the first full writing pass after V13 finalized the ENGI spec-file structure standard.
6+
7+
With the V14 correction path, it is also the first version explicitly aligned to the standalone cross-version drafting guide at `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_TEMPLATEGUIDE.md`.
8+
9+
The point of V14 is not to reopen ENGI design.
10+
The point is to write the current canon densely enough that:
11+
- the operating model is recoverable,
12+
- the artifact contracts are explicit,
13+
- host/runtime truth is canonical rather than incidental,
14+
- proof and settlement obligations are inspectable,
15+
- test coverage and operator-experience parity are canonical,
16+
- and current source parity is legible.
17+
18+
## What V14 preserves
19+
20+
V14 preserves the later design truths that should no longer drift:
21+
- depositing, needing, and fit are the center of the operator story,
22+
- Profile A and Profile B are distinguished by deposit mode and need mode,
23+
- identity/auth is one spine,
24+
- repo-to-settlement is one operating chain,
25+
- proof and settlement are closure,
26+
- bounded public proof is derived from private closure,
27+
- boundary reality is explicit supporting truth rather than hidden implementation detail.
28+
29+
## What V14 restores
30+
31+
V14 restores the denser explicitness that compressed versions lost, especially:
32+
- fuller schema detail,
33+
- stronger subsystem invariants,
34+
- stronger host capability and execution-truth treatment,
35+
- fuller inference/evaluator contracts,
36+
- fuller proof-family and witness-manifest treatment,
37+
- a real artifact appendix,
38+
- a real proof-obligations appendix,
39+
- a real test-coverage appendix,
40+
- a real spec-to-source parity appendix,
41+
- explicit operator-experience parity treatment where explainers or tooltips are canonical.
42+
43+
## Template-guide alignment
44+
45+
V14 now explicitly follows `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_TEMPLATEGUIDE.md`.
46+
47+
That means this V14 file family now intentionally does all of the following:
48+
- keeps the V14 version executive summary separate from the canonical ENGI executive summary,
49+
- treats the spec, notes file, and implementation matrix as one coordinated file family,
50+
- preserves the latest-target vs last-fully-realized-canon distinction explicitly,
51+
- covers the whole ENGI operating chain rather than only the currently hottest subsystem,
52+
- treats host, inference, proof, test coverage, spec-to-source parity, and operator-experience parity as canonical structural material.
53+
54+
## Important numbering decision
55+
56+
V14 intentionally preserves the V12 semantic anchors for sections 6 through 13.
57+
58+
That is not nostalgia.
59+
It is a practical traceability decision so the demo's explainer and reasoning surfaces can move from V12 references to V14 references without semantic remapping.
60+
61+
## Important version-status nuance
62+
63+
`ENGI_SPEC.txt = V14` means V14 is the current canonical/latest target.
64+
65+
That does not erase the separate truth that V12 remains the last fully realized canon and the semantic implementation anchor for the current deterministic demo source.
66+
67+
Both statements are required together.
68+
Dropping either one makes the repo easier to misread.
69+
70+
## Important non-decision
71+
72+
This tightening pass does not repoint `ENGI_SPEC.txt` away from V14.
73+
74+
It also does not pretend that every V14 formalization is already fully source-realized.
75+
The current implementation is still the V12-target deterministic prototype, now interpreted and formalized through V14.
76+
77+
## Writing posture for V14
78+
79+
The right V14 posture is:
80+
- preserve current strong design truth,
81+
- restore explicitness around that current truth rather than reverting to obsolete framing,
82+
- prefer current builder, artifact, and subsystem names where they are already strong,
83+
- keep appendices purposeful rather than dumping notes,
84+
- record remaining doc/source lag explicitly in the implementation matrix rather than hiding it.
85+
86+
## What should count as a real parity gap in this pass
87+
88+
A real V14 parity gap is something like:
89+
- the spec and notes disagree about canonical pointer status,
90+
- the host/runtime section hand-waves execution truth instead of specifying it,
91+
- the inference appendix omits prompt contracts, context injectables, or parse contracts,
92+
- the proof appendix names proof families but does not map obligations and witnesses clearly,
93+
- the test appendix omits operator-experience parity where the demo depends on explainers,
94+
- the parity appendix fails to identify accepted boundaries or canonical UI interpretation surfaces.
95+
96+
A non-gap is something like:
97+
- live GitHub token minting still being external,
98+
- live branch writes not happening in the local prototype,
99+
- real external settlement effects remaining modeled rather than executed,
100+
101+
so long as those boundaries remain explicitly disclosed.
102+
103+
## V14 validation emphasis
104+
105+
The most important validation emphasis remains that browser e2e coverage is no longer "nice to have".
106+
It is canonical evidence that the operator story actually reads in the intended order.
107+
108+
Where explainers, tooltips, or visual/raw dual renderings materially affect operator interpretation, their parity also counts as canonical validation material.
109+
110+
## Tightening added in this correction path
111+
112+
This correction path added or strengthened the following:
113+
- `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_TEMPLATEGUIDE.md` as the standalone drafting guide for future enriched specs,
114+
- explicit V14 alignment to that guide,
115+
- explicit `ENGI_SPEC.txt = V14` plus `V12 remains the last fully realized canon` wording across the V14 file family,
116+
- stronger host capability treatment covering role, category boundaries, bootstrap/furnishing, containerization, telemetry/safety, and measurement/execution truth,
117+
- stronger inference appendix completeness covering moment contracts, prompt templates, context injectables, output ownership, and parse contracts,
118+
- stronger proof appendix completeness covering proof-family definitions, subsystem obligations, witness structures, theorem catalog material, and witness-manifest closure,
119+
- stronger operator-experience parity treatment in test and parity appendices.
120+
121+
## Practical drafting reminder
122+
123+
If a proposed addition makes the spec longer but not clearer, it is noise.
124+
125+
If it makes:
126+
- subsystem obligations clearer,
127+
- execution truth clearer,
128+
- parity boundaries clearer,
129+
- validation traceability clearer,
130+
- or the operator chain easier to recover,
131+
132+
then it is likely proper V14 material.

engi-demo/HOST_CAPABILITIES.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"inspectedAt": "2026-04-03",
3-
"specVersion": "ENGI Spec V9 deterministic local prototype",
3+
"specVersion": "ENGI Spec V14 canonical target over the deterministic local prototype",
4+
"canonicalPointerVersion": "V14",
5+
"lastFullyRealizedCanonVersion": "V12",
46
"repo": "engi-demo",
57
"host": {
68
"os": "Darwin 25.4.0",
@@ -84,7 +86,7 @@
8486
{
8587
"configurationId": "native-runtime",
8688
"command": "npm start",
87-
"purpose": "Serve the local V9 demo UI and API"
89+
"purpose": "Serve the local deterministic demo UI and API"
8890
},
8991
{
9092
"configurationId": "native-test",
@@ -93,14 +95,14 @@
9395
},
9496
{
9597
"configurationId": "docker-runtime",
96-
"buildCommand": "docker build -t engi-demo-v9 .",
97-
"runCommand": "docker run --rm -p 4318:4318 -e HOST=0.0.0.0 engi-demo-v9",
98+
"buildCommand": "docker build -t engi-demo-v14 .",
99+
"runCommand": "docker run --rm -p 4318:4318 -e HOST=0.0.0.0 engi-demo-v14",
98100
"purpose": "Serve the demo in a container"
99101
},
100102
{
101103
"configurationId": "docker-test",
102-
"buildCommand": "docker build -t engi-demo-v9 .",
103-
"runCommand": "docker run --rm engi-demo-v9 npm test",
104+
"buildCommand": "docker build -t engi-demo-v14 .",
105+
"runCommand": "docker run --rm engi-demo-v14 npm test",
104106
"purpose": "Run the regression suite in a container"
105107
}
106108
],

engi-demo/HOST_CAPABILITIES.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,27 @@
11
# ENGI Demo Host Capabilities
22

33
Last inspected: 2026-04-03 (America/Los_Angeles)
4-
Host scope: local machine capabilities relevant to the ENGI Spec V9 demo implementation in this repo.
4+
Host scope: local machine capabilities relevant to the ENGI Spec V14 canonical target over the current deterministic demo implementation in this repo.
5+
6+
## Canon status
7+
8+
- Canonical pointer: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC.txt -> V14`
9+
- Current canonical/latest target: `V14`
10+
- Last fully realized canon preserved in the demo source: `V12`
511

612
## Purpose
713

8-
This document records what the host actually needs to run the current V9 demo, what it can optionally support, what remains modeled instead of executed, and how the repo can be furnished natively or in a container without overclaiming production readiness.
14+
This document records what the host actually needs to run the current deterministic demo implementation, what it can optionally support, what remains modeled instead of executed, and how the repo can be furnished natively or in a container without overclaiming production readiness.
915

1016
The source of truth for this document is:
1117

1218
- live host inspection commands run on 2026-04-03
1319
- the current repo implementation in `server.js`, `src/engi-demo.js`, `public/app.js`, and `test/`
14-
- the current V9 artifact and proof flow, not older V8 assumptions
20+
- the current V14-canonical / V12-realized artifact and proof flow, not older V8/V9 framing
1521

1622
## Program usage truth
1723

18-
### Required for the current V9 demo
24+
### Required for the current demo implementation
1925

2026
The repo needs only a local Node runtime plus filesystem access to execute its real control-plane behavior:
2127

@@ -25,7 +31,7 @@ The repo needs only a local Node runtime plus filesystem access to execute its r
2531
- assemble proof/materialization/accounting artifacts
2632
- run the Node test suite
2733

28-
In the current implementation, the following V9 stages are real local program usage, but they are all executed by deterministic in-process Node logic rather than external commands:
34+
In the current implementation, the following stages are real local program usage, but they are all executed by deterministic in-process Node logic rather than external commands:
2935

3036
- benchmark parser normalization: `github-actions.benchmark-parser.v9`
3137
- repo code-analysis derivation: `github.repo-context.extract.v9`
@@ -51,7 +57,7 @@ These are useful for inspection, authoring, proof-log generation outside the cor
5157

5258
### Proof-program usage truth
5359

54-
The current V9 demo does **not** execute external proof engines as part of the core flow.
60+
The current demo does **not** execute external proof engines as part of the core flow.
5561

5662
Instead it:
5763

@@ -72,7 +78,7 @@ Observed on this host:
7278
- `gh` is installed
7379
- `gh auth status` currently reports the default token as invalid for `garrettmaring`
7480

75-
V9 interpretation:
81+
Current interpretation:
7682

7783
- GitHub CLI presence is real
7884
- GitHub CLI authorization is **not** currently healthy
@@ -141,14 +147,14 @@ For this repo specifically, furnishing is simpler:
141147

142148
### `docker-runtime`
143149

144-
- build command: `docker build -t engi-demo-v9 .`
145-
- run command: `docker run --rm -p 4318:4318 -e HOST=0.0.0.0 engi-demo-v9`
150+
- build command: `docker build -t engi-demo-v14 .`
151+
- run command: `docker run --rm -p 4318:4318 -e HOST=0.0.0.0 engi-demo-v14`
146152
- purpose: containerized local serving with no host Node requirement beyond Docker
147153

148154
### `docker-test`
149155

150-
- build command: `docker build -t engi-demo-v9 .`
151-
- run command: `docker run --rm engi-demo-v9 npm test`
156+
- build command: `docker build -t engi-demo-v14 .`
157+
- run command: `docker run --rm engi-demo-v14 npm test`
152158
- purpose: containerized regression check using the same image contents
153159

154160
## Telemetry and safety

0 commit comments

Comments
 (0)