Skip to content

Commit 2ffb0ef

Browse files
wip v23
1 parent f9ee112 commit 2ffb0ef

19 files changed

Lines changed: 1049 additions & 667 deletions

.engi/v23-canon-posture-drift-report.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"checkedActiveCanonVersion": "V23",
55
"checkedDraftTargetVersion": "V24",
66
"pointerVersion": "V23",
7-
"proofSourceCommit": "ea3cdb1541c9c0016753450091fa21ea090cc819",
8-
"generatedAt": "2026-04-14T17:26:13-03:00",
7+
"proofSourceCommit": "f9ee1122af7670d9b34098686691be9b0987f775",
8+
"generatedAt": "2026-04-14T20:58:36-03:00",
99
"generatorId": "engi-demo.proven-generator.v1",
1010
"worktreeState": "dirty-preview",
1111
"passed": true,

.engi/v23-canonical-input-report.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"reportId": "v23-canonical-input-report",
33
"version": "V23",
4-
"proofSourceCommit": "ea3cdb1541c9c0016753450091fa21ea090cc819",
5-
"generatedAt": "2026-04-14T17:26:13-03:00",
4+
"proofSourceCommit": "f9ee1122af7670d9b34098686691be9b0987f775",
5+
"generatedAt": "2026-04-14T20:58:36-03:00",
66
"generatorId": "engi-demo.proven-generator.v1",
77
"worktreeState": "dirty-preview",
88
"checkedTargetVersion": "V23",

.engi/v23-spec-family-report.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
22
"reportId": "v23-spec-family-report",
33
"version": "V23",
4-
"proofSourceCommit": "ea3cdb1541c9c0016753450091fa21ea090cc819",
5-
"generatedAt": "2026-04-14T17:26:13-03:00",
4+
"proofSourceCommit": "f9ee1122af7670d9b34098686691be9b0987f775",
5+
"generatedAt": "2026-04-14T20:58:36-03:00",
66
"generatorId": "engi-demo.proven-generator.v1",
77
"worktreeState": "dirty-preview",
88
"checkedVersion": "V23",
99
"mode": "promoted",
1010
"currentTarget": "V23",
1111
"pointerVersion": "V23",
12-
"passed": false,
13-
"failureCount": 1,
14-
"failures": [
15-
"parity row \"Test closure\" still carries non-closed promoted judgment: implemented; promotion pending"
16-
],
12+
"passed": true,
13+
"failureCount": 0,
14+
"failures": [],
1715
"requiredFiles": [
1816
"ENGI_SPEC_V23.md",
1917
"ENGI_SPEC_V23_DELTA.md",

ENGI_SPEC.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
V23
1+
V22

ENGI_SPEC_V23.md

Lines changed: 55 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
- Companion notes file: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V23_NOTES.md`
1212
- Companion delta file: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V23_DELTA.md`
1313
- Companion parity ledger: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V23_PARITY_MATRIX.md`
14-
- Active canonical anchor: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V22.md`
15-
- Active generated proof appendix: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V22_PROVEN.md`
16-
- Current canonical pointer: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC.txt` -> `V22`
17-
- Current canonical/latest target remains `V22`; `V23` is the current draft target only
18-
- Inherited canonical proof-source commit from the active anchor: `5c3410df386022bb3f7c9c102c60724be46fe1c1`
14+
- Active canonical anchor: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V23.md`
15+
- Active generated proof appendix: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC_V23_PROVEN.md`
16+
- Current canonical pointer: `/Users/garrettmaring/Developer/ENGI/ENGI_SPEC.txt` -> `V23`
17+
- Inherited canonical proof-source commit from the prior anchor: `5c3410df386022bb3f7c9c102c60724be46fe1c1`
1918
- Source parity state: V23 source-side bitcoin-facing artifacts, sidechain-connected settlement interfaces, prototype compute/storage reality manifests, canon-posture drift detection, and generated evidence are canonicalized in the promoted V23 file family
2019
- V23 state: canonical promotion complete; V23 is the active deployed-infrastructure canon and runtime, API, browser shell, tests, demo-local docs, and generated canon are aligned
2120
- Last fully realized canonical target preserved in source: `V23`
@@ -24,7 +23,7 @@
2423

2524
V22 returned ENGI to system work and closed first-gate runtime/API/browser/doc truth alignment.
2625

27-
That changes the next draft question.
26+
That changes the next system question.
2827
V23 is not centered on whether ENGI can specify itself correctly.
2928
V23 is centered on how ENGI's already-auditable proof and settlement surfaces should bind to an external public audit substrate and a spend-native settlement interface without overstating what is already live.
3029

@@ -35,14 +34,14 @@ Its job is to:
3534
- make principal-scoped public and private commitment roots explicit,
3635
- define audited spend and confirmation carriers that bind payment to bundle and settlement closure,
3736
- keep a sidechain connection point inside first-gate V23 so the ENGI:BTC bridge is not mainchain-only,
38-
- and keep active-canon honesty intact while those deployment rails remain unimplemented in source.
37+
- and keep active-canon honesty intact while live networked deployment rails remain explicitly modeled where source has not closed them.
3938

4039
## Version executive summary
4140

4241
ENGI remains a proof-bearing operating system for engineering assetizing.
4342

4443
V23 does not change that identity.
45-
It extends the V22 system by drafting the next deployment-facing layer:
44+
It extends the V22 system by specifying and prototype-demonstrating the next deployment-facing layer:
4645
- exact ENGI proofs and settlement artifacts continue to materialize off-chain in deterministic ENGI runtime surfaces,
4746
- stable canonical hashing and proof-witness manifests already emitted by current source become the commitment substrate,
4847
- bounded-public and private proof surfaces become separately anchorable commitment scopes,
@@ -76,7 +75,7 @@ It inserts an explicit external audit and settlement layer after proof, disclosu
7675

7776
## V23 inheritance rule
7877

79-
V23 inherits V22 as the active full-system authority.
78+
V23 inherits V22 as the immediate prior full-system authority.
8079

8180
That means:
8281
- V22 exact source-to-shares settlement remains authoritative,
@@ -132,30 +131,41 @@ V23 therefore should anchor at least two scopes:
132131
- a bounded-public commitment scope,
133132
- and a private proof-and-settlement commitment scope.
134133

135-
### 4. The external boundary is already named, but not yet specialized
134+
### 4. The external boundary is already named and is now specialized into a V23 demonstration service layer
136135

137-
Current `engi-demo/src/engi-demo.js` already emits `.engi/external-boundary-manifest.json` and includes `settlement-network-effects` as a boundary interface whose local prototype is deterministic accounting only and whose external contract is still unimplemented.
136+
Current `engi-demo/src/engi-demo.js` emits `.engi/external-boundary-manifest.json` and specializes `settlement-network-effects` into explicit Bitcoin-facing interfaces for payment observation, anchor publication, and sidechain checkpoint binding.
137+
138+
Current `engi-demo/src/canonical/v23-bitcoin-demonstration-service.js` closes first-gate V23 with deterministic `stubbed-testnet-demonstration-service` code that assembles:
139+
- PSBT-shaped base-layer purchase carriers,
140+
- BOLT11-shaped repeated-read payment carriers,
141+
- sidechain bridge checkpoint stand-ins,
142+
- and anchor publication envelopes and receipts.
138143

139144
V23 should specialize that generic boundary into Bitcoin-facing interfaces:
140145
- audited spend construction,
141146
- settlement execution observation,
142147
- and public anchor publication.
143148

144-
### 5. The local prototype still does not execute networked settlement or external proof publication
149+
### 5. The local prototype now executes a stubbed-testnet demonstration service, but still does not claim live mainnet execution
145150

146151
Current `engi-demo/README.md` remains explicit that the repo does not:
147152
- publish proof artifacts to an external system,
148-
- execute real networked settlement effects,
153+
- execute live mainnet or third-party network settlement effects,
149154
- fetch live workflow artifacts,
150155
- or run live model/network infrastructure.
151156

157+
At the same time, V23 now requires and source now emits deterministic demonstration-service carriers and receipts inside the local runtime:
158+
- `bitcoin-settlement-intent` includes a spend carrier and request envelope,
159+
- `bitcoin-settlement-observation` includes a stubbed-testnet receipt and reference,
160+
- and `bitcoin-anchor` / `bitcoin-bounded-public-anchor` include publication envelopes and publication receipts.
161+
152162
V23 must preserve that honesty.
153-
This file drafts the next deployment architecture.
154-
It does not authorize user-facing claims that BTC integration is already live in the local prototype.
163+
This file specifies the first-gate deployment architecture.
164+
It does not authorize user-facing claims that live mainnet BTC integration is already active in the local prototype.
155165

156-
## V23 accepted drafting decisions
166+
## V23 accepted decisions
157167

158-
V23 accepts the following initial decisions:
168+
V23 accepts the following decisions:
159169

160170
1. V23 is deployment-facing and audit-facing rather than another truth-alignment release.
161171
2. Bitcoin enters ENGI first as a public audit substrate and spend rail, not as the place where ENGI performs bulk proof computation or bulk private artifact storage.
@@ -165,24 +175,22 @@ V23 accepts the following initial decisions:
165175
6. Public commitment scopes must derive only from artifacts already classified as `potentiallyDisclosable: true`; private commitment scopes may include full proof-contract and settlement closure surfaces.
166176
7. Larger, reviewable purchases should default to audited spend-intent and confirmation carriers; smaller repeated read-like purchases may use a lighter payment-carrier mode, but the same bundle-binding and receipt-binding rules still apply.
167177
8. A sidechain connection point is part of first-gate V23 so the ENGI:BTC bridge is not mainchain-only; generalized sidechain-issued transferability remains later work.
168-
9. V23 does not authorize pointer promotion, `_PROVEN_` generation, or source posture changes until the new artifact family and validation surfaces are implemented.
178+
9. V23 required pointer promotion, `_PROVEN_` generation, and source posture changes only after the new artifact family, validation surfaces, and generated evidence were implemented.
169179

170180
## V23 source-of-truth hierarchy
171181

172-
Because V23 is only a draft target, current truth order remains:
182+
Current truth order is:
173183
1. `ENGI_SPEC.txt`
174-
2. `ENGI_SPEC_V22.md`
175-
3. `ENGI_SPEC_V22_DELTA.md`
176-
4. `ENGI_SPEC_V22_PARITY_MATRIX.md`
177-
5. `ENGI_SPEC_V22_PROVEN.md`
178-
6. active canonical `.engi/v19-*`, `.engi/v20-*`, and `.engi/v22-*` artifacts
179-
7. current source and tests explicitly referenced by V22
180-
8. V23 draft files as non-promoted next-version targets
181-
9. optional non-canonical notes
182-
10. historical prior specs
183-
184-
V23 draft truth may specify the next system.
185-
It may not claim to outrank the active V22 canon until promotion is complete.
184+
2. `ENGI_SPEC_V23.md`
185+
3. `ENGI_SPEC_V23_DELTA.md`
186+
4. `ENGI_SPEC_V23_PARITY_MATRIX.md`
187+
5. `ENGI_SPEC_V23_PROVEN.md`
188+
6. active canonical `.engi/v19-*`, `.engi/v20-*`, and `.engi/v23-*` artifacts
189+
7. current source and tests explicitly referenced by V23
190+
8. optional non-canonical notes
191+
9. historical prior specs
192+
193+
V22 remains the immediate inherited authority for any behavior V23 carries forward without redefining.
186194

187195
## V23 system goals, non-goals, and design principles
188196

@@ -212,7 +220,7 @@ It may not claim to outrank the active V22 canon until promotion is complete.
212220

213221
## V23 system architecture and layer boundaries
214222

215-
The V23 draft keeps the V22 system layers and adds one new deployment-facing layer:
223+
V23 keeps the V22 system layers and adds one new deployment-facing layer:
216224

217225
1. Core deterministic primitives
218226
Current basis: `engi-demo/src/engi-demo.js`, `engi-demo/src/canonical/run-artifacts.js`, `engi-demo/src/canonical/proof-materialization.js`
@@ -243,7 +251,7 @@ The V23 draft keeps the V22 system layers and adds one new deployment-facing lay
243251
Responsibilities: modeled external interfaces for model execution, vector retrieval, GitHub actions, signer verification, and settlement network effects.
244252

245253
8. Bitcoin-facing audit and spend interface layer
246-
V23 draft basis: specified here; not yet implemented in source
254+
Current basis: `engi-demo/src/canonical/v23-bitcoin.js`, `engi-demo/src/engi-demo.js`, `engi-demo/src/canonical/proof-materialization.js`
247255
Responsibilities: commitment scope derivation, anchor publication receipts, audited payment intent, audited payment observation, NGI denomination binding, and sidechain bridge binding.
248256

249257
## V23 compute and storage reality rule
@@ -269,7 +277,7 @@ First-gate V23 therefore requires two additional deployment-facing surfaces:
269277

270278
## V23 artifact family additions
271279

272-
V23 introduces the following draft artifacts:
280+
V23 introduces the following artifacts:
273281

274282
| Artifact path | Intended role | Default disclosure posture | Minimum closure fields |
275283
| --- | --- | --- | --- |
@@ -543,7 +551,7 @@ Across all modes:
543551

544552
Prototype-demonstration rule:
545553
- first-gate V23 implementation must emit local deterministic versions of `compute-reality-manifest` and `storage-reality-manifest`
546-
- those prototype surfaces may still describe modeled deployment boundaries
554+
- those prototype surfaces may describe live-mainnet boundaries as deferred while still binding the stubbed-testnet demonstration service that is implemented in source
547555
- but they must be real emitted artifacts and test-covered, not only prose
548556

549557
## V23 phased deployment rule
@@ -552,11 +560,13 @@ V23 adopts the following phased rule:
552560

553561
- Phase 0: current reality
554562
- deterministic ENGI proof and settlement artifacts exist locally
555-
- external proof publication and networked settlement remain modeled only
563+
- stubbed-testnet demonstration service code assembles spend carriers, observation receipts, and anchor publication receipts locally
564+
- live mainnet publication and third-party settlement remain deferred
556565

557566
- Phase 1: audited anchor introduction
558567
- derive bounded-public and private roots from existing digests
559568
- emit Bitcoin anchor artifacts and public-safe anchor receipts
569+
- bind those receipts to the stubbed-testnet demonstration service
560570
- declare sidechain bridge policy alongside mainchain anchor policy
561571
- keep spend and confirmation observation explicit and fail-closed
562572

@@ -572,20 +582,18 @@ V23 adopts the following phased rule:
572582

573583
## Accepted boundaries
574584

575-
The following remain explicit boundaries for V23 drafting:
585+
The following remain explicit boundaries for V23:
576586

577-
1. No live Bitcoin transaction construction is currently implemented in source.
578-
2. No live anchor publication is currently implemented in source.
579-
3. No V23-generated appendix or generated `.engi/v23-*` artifact family exists yet.
580-
4. No current source surface proves mode-specific payment semantics for large purchases, repeated reads, or sidechain bridge mode.
581-
5. Current source does not yet emit prototype compute-reality or storage-reality manifests.
582-
6. Bulk private proof and source-material storage remain off-chain by default.
583-
7. Generalized sidechain-issued transferability or asset issuance is optional later work, not the center of V23 first gate.
584-
8. Merkle inclusion paths are deferred; first-gate V23 uses replayable manifest roots only.
587+
1. No live mainnet Bitcoin transaction signing or broadcast is implemented in source.
588+
2. No live mainnet anchor publication is implemented in source.
589+
3. No live repeated-read payment processor or live sidechain bridge operator is implemented in source.
590+
4. Bulk private proof and source-material storage remain off-chain by default.
591+
5. Generalized sidechain-issued transferability or asset issuance is optional later work, not the center of V23 first gate.
592+
6. Merkle inclusion paths are deferred; first-gate V23 uses replayable manifest roots only.
585593

586594
## V23 completion condition
587595

588-
This draft is ready for eventual promotion only when:
596+
V23 is complete only when:
589597
1. the V23 document family is complete and internally consistent,
590598
2. current source emits the new Bitcoin-facing artifact family,
591599
3. current source emits prototype-demonstration `compute-reality-manifest` and `storage-reality-manifest` artifacts,
@@ -594,5 +602,5 @@ This draft is ready for eventual promotion only when:
594602
6. current external boundary manifest specializes settlement network effects into anchor and spend interfaces and makes compute/storage reality honest,
595603
7. current source enforces the manifest-root derivation contract and canonical enum vocabulary defined here,
596604
8. current tests fail closed on public/private root misclassification, anchor receipt drift, payment-observation drift, compute/storage reality drift, and mode-specific finalization drift,
597-
9. generated V23 proof and draft-readiness artifacts exist,
605+
9. generated V23 proof and promotion-readiness artifacts exist,
598606
10. and `ENGI_SPEC_V23_PROVEN.md` is generated from real source behavior rather than from hand-authored aspiration.

0 commit comments

Comments
 (0)