Skip to content

Commit d6e1523

Browse files
wip v16
1 parent 1d851da commit d6e1523

17 files changed

Lines changed: 4457 additions & 215 deletions

ENGI_SPEC_TEMPLATEGUIDE.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,14 @@ A full enriched ENGI release SHOULD normally include the following file family:
7878
The version-local drafting rationale, interpretation notes, numbering decisions, and clarification record.
7979
3. `ENGI_SPEC_VN_SYSTEM_PARITY_MATRIX.md`
8080
The primary parity/debt ledger between the system spec and current repository truth.
81-
4. `ENGI_SPEC_VN_INFORMATION_AUDIT.md`
81+
4. `ENGI_SPEC_VN_PROVEN.md`
82+
The generated-only canonical proof appendix for the committed canonical version. This file MUST never be edited manually and MUST be regenerated as part of any canonical version commit.
83+
5. `ENGI_SPEC_VN_INFORMATION_AUDIT.md`
8284
Required when a version is materially recovering lost density, parity, or conceptual coverage from earlier canon.
83-
5. optional realization/demo family, for example:
85+
6. optional realization/demo family, for example:
8486
- `engi-demo/ENGI_DEMO_SPEC_VN.md`
8587
- `engi-demo/SPEC_VN_IMPLEMENTATION_MATRIX.md`
86-
6. optional parity-bearing adjunct files
88+
7. optional parity-bearing adjunct files
8789
Examples include host capability documents, architecture maps, or other structured reference artifacts that the canonical spec relies on directly.
8890

8991
File-family rules:
@@ -95,6 +97,8 @@ File-family rules:
9597
6. If adjunct files are used as canonical parity surfaces, the spec or relevant matrix MUST name them explicitly and judge whether they are aligned.
9698
7. Notes and the system parity matrix MUST repeat the same pointer/latest-target vs last-fully-realized-canon interpretation as the main spec.
9799
8. When a realization/demo implementation matrix exists, its preferred filename under the realization root SHOULD be `SPEC_VN_IMPLEMENTATION_MATRIX.md`; longer demo-prefixed aliases MAY exist temporarily for compatibility but MUST NOT become the primary maintained path.
100+
9. When proof-family canon is part of the release, `ENGI_SPEC_VN_PROVEN.md` MUST be generated from proof-bearing runtime surfaces, not authored or edited as prose.
101+
10. A canonical version commit that advances `ENGI_SPEC.txt` or otherwise takes on canonical-version authority MUST include the regenerated `ENGI_SPEC_VN_PROVEN.md` file in that same commit.
98102

99103
The system parity matrix is not optional bookkeeping for a serious release.
100104
It is the ledger that separates:

ENGI_SPEC_V15_PROVEN.md

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

ENGI_SPEC_V16.md

Lines changed: 142 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ This pass now covers:
6060

6161
The following are still intentionally deferred:
6262
- theorem-family expansion beyond the current family-first pass,
63-
- proof appendix generation,
64-
- proof execution/audit orchestration,
65-
- and `_PROVEN_` file generation requirements.
63+
- and proof execution/audit orchestration beyond the now-implemented family appendix generation path.
6664

6765
The correct reading is:
6866
- V15 remains active canon,
6967
- V16 is being drafted through proof-family-by-proof-family tightening,
7068
- `prompt-completeness` remains the most tightened family,
71-
- and the rest of the proof families are now opened deeply enough to support the next member and theorem passes.
69+
- the rest of the proof families are now opened deeply enough to support the next member and theorem passes,
70+
- and `_PROVEN_` generation is now part of the V16 canon contract with a realized generator path.
7271

7372
## Member-proof closure rule
7473

@@ -3643,3 +3642,142 @@ What it now does have is:
36433642
4. an initial witness-materialization and replay direction,
36443643
5. an expected/realized/family-closure split,
36453644
6. and a provisional member-coverage inventory.
3645+
3646+
## 15. Generated `_PROVEN_` Appendix
3647+
3648+
### 15.1 Canonical artifact identity
3649+
3650+
V16 introduces a generated canonical proof appendix artifact:
3651+
3652+
1. `ENGI_SPEC_VN_PROVEN.md`
3653+
3654+
Where:
3655+
3656+
1. `VN` is the canonical spec version being committed,
3657+
2. the file is versioned alongside the canonical spec,
3658+
3. and the appendix is part of canon rather than an optional report.
3659+
3660+
### 15.2 Generated-only rule
3661+
3662+
`ENGI_SPEC_VN_PROVEN.md` is not a hand-authored notes file.
3663+
3664+
It must:
3665+
3666+
1. be generated from proof-bearing source surfaces,
3667+
2. be reproducible from the canonical commit being designated,
3668+
3. never be edited manually,
3669+
4. fail validation if its content diverges from the generator output for that commit,
3670+
5. and be treated as invalid canon if it is hand-mutated after generation.
3671+
3672+
The canonical intent is:
3673+
3674+
1. spec prose defines what `_PROVEN_` must contain,
3675+
2. source-side proof execution produces the proof surfaces,
3676+
3. the `_PROVEN_` generator renders those surfaces into markdown,
3677+
4. and the committed file is only the generated rendering of that proof state.
3678+
3679+
### 15.3 Canonical regeneration rule
3680+
3681+
`ENGI_SPEC_VN_PROVEN.md` must only be regenerated on canonical version commits.
3682+
3683+
A canonical version commit is any commit that:
3684+
3685+
1. introduces a new canonical spec version artifact,
3686+
2. advances the canonical pointer to a new version,
3687+
3. or otherwise declares a new canonical version as depended-on ENGI truth.
3688+
3689+
For such a commit:
3690+
3691+
1. `_PROVEN_` must be regenerated from that commit's proof surfaces,
3692+
2. the regenerated `_PROVEN_` file must be included in the same commit,
3693+
3. and a canonical version commit lacking the regenerated `_PROVEN_` file is invalid.
3694+
3695+
For non-canonical commits:
3696+
3697+
1. `_PROVEN_` should not be manually refreshed for incidental edits,
3698+
2. and partial or speculative `_PROVEN_` updates are forbidden.
3699+
3700+
### 15.4 Minimum proof inputs
3701+
3702+
The `_PROVEN_` generator must consume proof-bearing runtime surfaces rather than prose summaries.
3703+
3704+
Its minimum proof inputs must include:
3705+
3706+
1. proof-family proof objects,
3707+
2. theorem verdict catalogs,
3708+
3. member verdict catalogs,
3709+
4. artifact bindings,
3710+
5. replay steps,
3711+
6. system proof bundle proof-family catalog,
3712+
7. system proof bundle verifier entrypoint replay catalog,
3713+
8. proof witness manifest artifact digests,
3714+
9. proof witness manifest keyed artifact and family indexes,
3715+
10. deliverables manifest,
3716+
11. policy release artifact classifications,
3717+
12. and any canonical scenario/run matrix required to state what was actually executed.
3718+
3719+
At minimum, the generator must be able to read:
3720+
3721+
1. `.engi/system-proof-bundle.json`,
3722+
2. `.engi/proof-witness-manifest.json`,
3723+
3. each family-specific proof artifact named by the proof-family catalog,
3724+
4. and the canonical spec/version metadata for the commit being rendered.
3725+
3726+
### 15.5 Minimum rendered contents
3727+
3728+
`ENGI_SPEC_VN_PROVEN.md` must be singularly reliable as the stable proof appendix for the committed canonical version.
3729+
3730+
It must render at least:
3731+
3732+
1. canonical version and canonical commit id,
3733+
2. generator identity and generation timestamp,
3734+
3. proof-family inventory,
3735+
4. per-family member inventory,
3736+
5. per-family theorem inventory,
3737+
6. per-family theorem verdicts,
3738+
7. family witness artifact paths,
3739+
8. family replay artifact paths and replay step ids,
3740+
9. keyed artifact digest inventory,
3741+
10. disclosure classification relevant to proof artifacts,
3742+
11. any scenario/run matrix needed to interpret proof execution coverage,
3743+
12. all failing or incomplete verdicts if any exist,
3744+
13. and an aggregate statement of whether the canonical version is fully proven under the current V16 proof contract.
3745+
3746+
The appendix must prefer exact ids, hashes, paths, counts, and verdicts over prose paraphrase.
3747+
3748+
### 15.6 Reliability rule
3749+
3750+
`_PROVEN_` is only reliable when:
3751+
3752+
1. every carried proof family is represented directly from the runtime proof-family catalog,
3753+
2. theorem verdicts are rendered from proof objects rather than re-inferred by the markdown renderer,
3754+
3. witness and replay sections are rendered from the declared artifact/replay bindings,
3755+
4. keyed artifact digest data comes from the witness manifest rather than from filesystem inference,
3756+
5. and the canonical commit id in `_PROVEN_` matches the commit whose proof surfaces were rendered.
3757+
3758+
The generator must fail closed when:
3759+
3760+
1. a required proof artifact is missing,
3761+
2. a named family in the bundle lacks a proof object,
3762+
3. the witness manifest is missing a keyed digest for a required artifact,
3763+
4. replay catalogs disagree about required artifact paths,
3764+
5. or canonical version metadata and rendered proof state do not match.
3765+
3766+
### 15.7 Commit and templateguide ratchet
3767+
3768+
V16 requires templateguide and canonical release process language to ratchet this behavior.
3769+
3770+
The release ratchet is:
3771+
3772+
1. when creating a new canonical version commit, regenerate `ENGI_SPEC_VN_PROVEN.md`,
3773+
2. include the regenerated file in that same canonical commit,
3774+
3. reject canonical commits where `_PROVEN_` is stale, missing, or manually edited,
3775+
4. and treat `_PROVEN_` regeneration as part of canonical version materialization rather than post-hoc documentation.
3776+
3777+
Example canonical-version commits that would require regeneration include commits such as:
3778+
3779+
1. `8b1ccbc2481f80bc63d31a33901a463f3ea7028a`
3780+
2. `c021b9e48d6387f2aad9aab804c836736ef8437b`
3781+
3782+
The relevant rule is not those specific hashes.
3783+
The relevant rule is that any commit taking on canonical-version authority must also carry the regenerated `_PROVEN_` appendix for that version.

ENGI_SPEC_V16_NOTES.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ The current state after the member-tightening and theorem-catalog pass is:
6464
- every V15 proof family is open in V16 drafting,
6565
- every family now has member inventory plus member-closure criteria,
6666
- every family now has a current realization-basis theorem catalog and theorem-by-theorem closure reading,
67-
- and the next pass is no longer enumeration but theorem tightening, proof execution, and later appendix generation.
67+
- and the next pass is no longer enumeration but theorem tightening, proof execution, and then generated appendix formalization.
6868

6969
That theorem-by-theorem pass is now present across the family layer.
7070
The current theorem-binding reading is:
7171
- every family now has realized theorem identifiers in source,
7272
- the spec now binds each family to its current realization-basis theorem catalog,
7373
- the parity matrix now carries theorem-by-theorem closure readings rather than theorem debt only,
7474
- every family now has realized proof-object field and artifact/replay-binding direction,
75-
- and `_PROVEN_` generation remains intentionally deferred until the rest of V16 proving work is finished.
75+
- and `_PROVEN_` generation is now ready to be formalized because the rest of the V16 proving layer has been tightened far enough to support it.
7676

7777
## Prompt-completeness parity debt collection method
7878

@@ -314,14 +314,12 @@ It is a proof-family drafting wedge into V16, with some families tighter than ot
314314

315315
## What remains out of scope for now
316316

317-
This pass still does not yet draft:
318-
- the cross-family theorem catalog beyond the now-realized family theorem sets,
319-
- `_PROVEN_` appendix generation,
317+
This pass still does not yet complete:
320318
- proof-program inventory beyond the family-first closure pass,
321319
- or the full V16 system spec rewrite.
322320

323-
Those are still deferred on purpose.
324-
The proof families now come first so the same drafting and parity pattern can be pushed through every family before theorem and appendix work begins.
321+
The cross-family family theorem layer is now materially in place.
322+
That is why `_PROVEN_` is no longer deferred as a concept and is now backed by a realized generator path.
325323

326324
## Why static-code-analysis is the next family
327325

@@ -925,12 +923,29 @@ All nine V15 proof families are now opened in V16 drafting at the same broad clo
925923
- and theorem-by-theorem closure reading tied to realized source theorem ids.
926924

927925
The next work after this family pass is not to open more families.
928-
It is to translate this audited family layer into source-side implementation completion and proof execution, then only after that move into `_PROVEN_` appendix generation and broader proof-program inventory.
926+
It is to translate this audited family layer into source-side implementation completion and proof execution, and then use that tightened runtime surface to implement `_PROVEN_` appendix generation and broader proof-program inventory.
929927

930928
The current audit conclusion is:
931929

932930
1. every V15 proof family now has an explicit member inventory in the spec and parity matrix,
933931
2. every family member now also has explicit closure criteria and ratchetable debt language,
934932
3. every family now has a realized theorem catalog and theorem-by-theorem closure reading aligned to current source,
935-
4. the spec, matrix, and notes now consistently defer `_PROVEN_` until the rest of proving closure is finished,
936-
5. and the next productive move is source-side implementation completion rather than further family-level drafting.
933+
4. source-side theorem/proof execution tightening is now strong enough to support generated appendix work,
934+
5. `_PROVEN_` can now be specified as a generated-only canonical artifact rather than a deferred concept,
935+
6. and the generator plus canonical-commit regeneration ratchet can now be treated as realized source/process behavior rather than as a next-step note.
936+
937+
## `_PROVEN_` interpretation
938+
939+
The correct V16 reading for `_PROVEN_` is now:
940+
941+
1. `_PROVEN_` is a canonical generated appendix, not a hand-maintained markdown note,
942+
2. it must render directly from proof-bearing runtime surfaces,
943+
3. it must never be edited manually,
944+
4. it must be regenerated when a commit takes on canonical-version authority,
945+
5. and the regenerated file must be committed in the same canonical version commit.
946+
947+
The important operational consequence is:
948+
949+
1. `_PROVEN_` is not part of everyday drift churn,
950+
2. `_PROVEN_` is part of canonical version materialization,
951+
3. and a canonical version commit without regenerated `_PROVEN_` should be treated as incomplete.

ENGI_SPEC_V16_SYSTEM_PARITY_MATRIX.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ The opening V16 focus is:
3636
- family-member coverage within each proof family,
3737
- and the first family-specific closure tests required to support later V16 proof execution.
3838

39+
That family-tightening and theorem-execution work is now far enough along that `_PROVEN_` generation can be treated as a concrete parity target rather than a deferred placeholder.
40+
3941
## Interpretation rule
4042

4143
The correct V16 reading is:
@@ -51,7 +53,8 @@ For this drafting pass:
5153
- `inference-synthesis` is opened and theorem-shaped,
5254
- `static-code-analysis`, `verification-decisions`, and `selection-and-materialization` are now carried through theorem-by-theorem closure drafting,
5355
- `authorization-and-sensitive-flow`, `settlement-source-to-shares`, `disclosure-boundary`, and `proof-contract` are now also carried through theorem-by-theorem closure drafting,
54-
- and all nine V15 proof families are now inside the active V16 family pass.
56+
- all nine V15 proof families are now inside the active V16 family pass,
57+
- and `_PROVEN_` is now a valid implementation target for the next V16 canonical-output step.
5558

5659
## Member-tightening interpretation rule
5760

@@ -4902,3 +4905,47 @@ Proof-contract is now complete enough in V16 drafting terms to continue later fa
49024905
4. replay/witness direction exists,
49034906
5. expected versus realized versus family closure ownership is now named,
49044907
6. and family-member coverage is now enumerated.
4908+
4909+
## `_PROVEN_` parity target
4910+
4911+
### Canonical-output rule
4912+
4913+
V16 now treats `ENGI_SPEC_VN_PROVEN.md` as a generated canonical-output target.
4914+
4915+
Its parity requirement is:
4916+
4917+
1. the appendix must be renderable from source-realized proof surfaces,
4918+
2. it must not require hand-maintained family or theorem interpretation,
4919+
3. and it must be strict enough that canonical commits can regenerate it deterministically.
4920+
4921+
### Minimum source-side prerequisites
4922+
4923+
The matrix now considers the following prerequisites materially required for `_PROVEN_` generation:
4924+
4925+
1. every proof family emits theorem-bearing proof objects,
4926+
2. every proof family exposes witness artifact paths and replay artifact paths,
4927+
3. every proof family exposes replay steps with required artifact paths,
4928+
4. the system proof bundle exposes a normalized proof-family catalog,
4929+
5. the system proof bundle exposes a normalized verifier replay catalog and required-artifact set,
4930+
6. the proof witness manifest exposes keyed artifact digests by path,
4931+
7. the proof witness manifest exposes keyed proof families by family name,
4932+
8. and proof-contract closure remains strong enough to summarize bundle and witness coherence rather than only naming them.
4933+
4934+
### Canonical-commit regeneration rule
4935+
4936+
The parity target for release process is:
4937+
4938+
1. `_PROVEN_` is never edited manually,
4939+
2. `_PROVEN_` is regenerated only when a commit takes on canonical-version authority,
4940+
3. the regenerated `_PROVEN_` file is included in that same canonical commit,
4941+
4. and a canonical version commit without regenerated `_PROVEN_` is parity-incomplete.
4942+
4943+
### Current implementation reading
4944+
4945+
The current implementation now satisfies the minimum proof-surface preconditions for that next step:
4946+
4947+
1. proof-family theorem verdicts are no longer carried by unconditional `passed: true` placeholders,
4948+
2. witness/replay closure is derived from artifact bindings and replay-step coverage,
4949+
3. proof-contract is finalized against bundle and witness summaries,
4950+
4. the system proof bundle carries a proof-family catalog plus verifier replay catalog,
4951+
5. and the proof witness manifest carries keyed artifact and family indexes.

0 commit comments

Comments
 (0)