|
| 1 | +# Bitcode Spec V32 Delta |
| 2 | + |
| 3 | +## Status |
| 4 | + |
| 5 | +- Version: `V32` |
| 6 | +- V32 state: draft target opened; this delta records the intended V31-to-V32 provation/testing closure set |
| 7 | +- Current canonical/latest target: `V31` |
| 8 | +- Canonical proof-source commit: none until V32 promotion |
| 9 | +- Prior canonical anchor: `BITCODE_SPEC_V31.md` |
| 10 | +- Prior generated proof appendix: `BITCODE_SPEC_V31_PROVEN.md` |
| 11 | +- Generated structured artifact inventory: planned draft `.bitcode/v32-spec-family-report.json`, `.bitcode/v32-canonical-input-report.json`, `.bitcode/v32-canon-posture-drift-report.json`, V32 proof/test coverage artifacts, V32 gate-quality and promotion workflow evidence, and `BITCODE_SPEC_V32_PROVEN.md` only after promotion |
| 12 | +- Source parity state: V32 source-side proof-family replay, deterministic artifacts, test matrices, cross-surface regression, browser/accessibility/visual proof, testnet/mainnet-readiness rehearsal, and promotion-proof hardening are opened but not yet closed |
| 13 | +- State: draft target delta opened |
| 14 | +- Active canonical pointer during draft opening: `BITCODE_SPEC.txt` -> `V31` |
| 15 | +- Scope: V32 canonical delta for proof-family replay, deterministic proof artifacts, scenario/failure-state expansion, cross-surface regression, browser/accessibility/responsive/visual proof, testnet/mainnet-readiness rehearsal, and promotion-proof hardening over V31 |
| 16 | +- Spec companion: `BITCODE_SPEC_V32.md` |
| 17 | +- Notes companion: `BITCODE_SPEC_V32_NOTES.md` |
| 18 | +- Parity companion: `BITCODE_SPEC_V32_PARITY_MATRIX.md` |
| 19 | +- Generated proof appendix: none until V32 promotion |
| 20 | + |
| 21 | +## Why V32 exists |
| 22 | + |
| 23 | +V31 canonically promoted Auxillaries support/control over the commercial Reading, Terminal, Protocol/BTD, and interface substrate. |
| 24 | +It made profile/account, provider readiness, interface admission, wallet/BTD support, organization authority, recovery, telemetry, accessibility, and promotion posture stronger. |
| 25 | + |
| 26 | +V32 exists because the commercial system now needs deeper proof and testing breadth across every promoted surface. |
| 27 | +Terminal, Reading, Protocol/BTD, Auxillaries, MCP, ChatGPT App, API routes, ledger/database/object-storage projections, and protocol-demonstration must be provable together, not only individually green. |
| 28 | +The focus is not new product surface depth. |
| 29 | +The focus is proof-family replay, deterministic generated artifacts, scenario and failure-state coverage, cross-surface regression, browser/accessibility/responsive/visual proof, readiness rehearsal, and promotion-proof hardening. |
| 30 | + |
| 31 | +## Accepted V32 decisions |
| 32 | + |
| 33 | +- V31 remains active canon during V32 drafting. |
| 34 | +- V32 gate branches are opened from `version/v32` and merged back only when their gate acceptance criteria are closed. |
| 35 | +- V32 owns provation/testing deepening, not another Terminal redesign. |
| 36 | +- V32 preserves the V31 Reading journey: request Read, review synthesized Need, request Finding Fits, review source-safe AssetPack preview, buy/settle, and receive paid delivery. |
| 37 | +- V32 inventories promoted proof families before expanding proof generation. |
| 38 | +- V32 expands Reading pipeline test coverage for `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis` without changing their product law. |
| 39 | +- V32 hardens ledger, BTD, BTC fee, settlement, disclosure, rights transfer, reconciliation, and delivery failure-state proof. |
| 40 | +- V32 expands route/API/UI/interface regression proof without implementing deferred Exchange or Conversations product depth. |
| 41 | +- V32 records proof/test artifacts without exposing protected source, provider tokens, private prompts, wallet secrets, service-role keys, database credentials, or pre-settlement AssetPack contents. |
| 42 | +- V32 workflows and scripts must validate V31 active / V32 draft posture. |
| 43 | + |
| 44 | +## Explicitly deferred |
| 45 | + |
| 46 | +- Product feature expansion beyond proof/test seams remains out of V32. |
| 47 | +- V33 interface/MCP/ChatGPT/API depth remains V33 except for Protocol/BTD hooks needed by V32. |
| 48 | +- V34 deployment/runtime/storage depth remains V34 except for host-capability facts needed by V32. |
| 49 | +- V35 telemetry/documentation depth remains V35 except for proof/test documentation needed by V32. |
| 50 | +- Exchange product/market depth remains beyond V35. |
| 51 | +- Website Conversations product depth remains beyond V35. |
| 52 | +- New `$BTD` supply law remains out of scope. |
| 53 | +- Value-bearing mainnet launch remains separately approval-gated. |
| 54 | +- Bridge integrations remain research posture, not chain-of-record implementation. |
| 55 | + |
| 56 | +## Pre-Implementation Sequence |
| 57 | + |
| 58 | +1. Open `version/v32` from promoted `main`. |
| 59 | +2. Open `v32/gate-1-provation-roadmap-opening` from `version/v32`. |
| 60 | +3. Create the V32 SPEC, DELTA, NOTES, and PARITY family while preserving `BITCODE_SPEC.txt -> V31`. |
| 61 | +4. Refresh `SPECIFICATIONS_ROADMAP.md` so V31 is active canon, V32 is draft target, and V32-V37 scopes remain coherent after recent V28-V31 work. |
| 62 | +5. Retarget gate-quality and canon-quality workflow posture checks to V31 active / V32 draft. |
| 63 | +6. Add `check:v32-gate1` and a V32 Gate 1 checker. |
| 64 | +7. Define V32 gates, acceptance criteria, carryforward parity rows, and post-V32 roadmap responsibilities. |
| 65 | +8. Validate spec family, canonical inputs, canon posture, workflows, roadmap truth, README/docs, and diff hygiene. |
| 66 | +9. Push the gate branch and open a pull request to `version/v32`. |
| 67 | + |
| 68 | +## Commit-Body Direction |
| 69 | + |
| 70 | +V32 gate commit bodies should describe the closed gate, specification changes, implementation surfaces, tests, proof commands, and accepted boundaries. |
| 71 | +The eventual V32 promotion commit body must name all closed V32 gates, generated proof/test artifacts, source-safe coverage surfaces, and the `BITCODE_SPEC.txt` pointer change from `V31` to `V32`. |
| 72 | +It must explicitly defer V32+ scopes, Exchange, Conversations, bridge chain-of-record implementation, and value-bearing mainnet launch. |
| 73 | + |
| 74 | +## Gate Delta |
| 75 | + |
| 76 | +### Gate 1: V32 Roadmap And Spec Opening |
| 77 | + |
| 78 | +Gate 1 opens V32 correctly: |
| 79 | + |
| 80 | +- V32 SPEC, DELTA, NOTES, and PARITY files exist. |
| 81 | +- `BITCODE_SPEC.txt` remains `V31`. |
| 82 | +- README, roadmap, PR template, and workflows describe V31 active / V32 draft posture. |
| 83 | +- `check:v32-gate1` validates branch naming, spec family, notes, parity, roadmap truth, workflow posture, and promotion boundaries. |
| 84 | +- The V32 gate list is explicit before product implementation begins. |
| 85 | + |
| 86 | +### Gate 2: Proof Matrix Inventory And Required Contexts |
| 87 | + |
| 88 | +Gate 2 inventories V31 proof families and the exact V32 expansion plan. |
| 89 | + |
| 90 | +Closure acceptance: |
| 91 | + |
| 92 | +- Terminal, Reading, Protocol/BTD, Auxillaries, MCP, ChatGPT App, API, ledger, database, object storage, promotion, and protocol-demonstration proof surfaces are enumerated; |
| 93 | +- each proof row names owner package/interface, fixtures, replay command, generated artifact, source-safety class, and failure mode; |
| 94 | +- missing proof coverage is represented as planned work, not hidden confidence. |
| 95 | + |
| 96 | +### Gate 3: Deterministic Replay Harness And Artifact Stability |
| 97 | + |
| 98 | +Gate 3 hardens replay and generated artifact determinism. |
| 99 | + |
| 100 | +Closure acceptance: |
| 101 | + |
| 102 | +- proof-generation commands are repeatable locally and in CI; |
| 103 | +- generated JSON artifacts have stable ordering, source-safe payloads, and no volatile fields outside explicit volatility inventories; |
| 104 | +- promotion proof generation fails closed on missing, stale, or malformed artifacts. |
| 105 | + |
| 106 | +### Gate 4: Reading Pipeline Proof Coverage |
| 107 | + |
| 108 | +Gate 4 deepens proof over `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis`. |
| 109 | + |
| 110 | +Closure acceptance: |
| 111 | + |
| 112 | +- phases, PTRR agents, PTRR steps, ThricifiedGenerations, prompt-part compositions, tool calls, typed outputs, and telemetry records are covered by mock tests; |
| 113 | +- real-inference seams are validated without committing credentials or protected source; |
| 114 | +- source-safe AssetPack preview, settlement boundary, and paid delivery proof stay distinct. |
| 115 | + |
| 116 | +### Gate 5: Ledger BTD Settlement Failure-State Coverage |
| 117 | + |
| 118 | +Gate 5 deepens ledger, BTD, BTC fee, disclosure, rights-transfer, reconciliation, and delivery failure-state proof. |
| 119 | + |
| 120 | +Closure acceptance: |
| 121 | + |
| 122 | +- fee quote, Taproot/PSBT posture, range/read-license/right transfer, ledger/database projection, object-storage delivery, and PR delivery tests cover blocked, repair, and success states; |
| 123 | +- no test leaks pre-settlement AssetPack source to a Reader; |
| 124 | +- reconciliation tests prove deterministic repair roots. |
| 125 | + |
| 126 | +### Gate 6: Interface Contract Regression Suites |
| 127 | + |
| 128 | +Gate 6 hardens API, MCP, ChatGPT App, Terminal, Auxillaries, and deferred-interface contract tests. |
| 129 | + |
| 130 | +Closure acceptance: |
| 131 | + |
| 132 | +- route schemas, tool contracts, auth boundaries, source-safety classes, and policy denials are covered by shared fixtures; |
| 133 | +- deferred Exchange and Conversations hooks remain tested as blocked/deferred, not implemented product depth; |
| 134 | +- contract tests are reusable by future interface versions. |
| 135 | + |
| 136 | +### Gate 7: Browser Accessibility Responsive Visual Coverage |
| 137 | + |
| 138 | +Gate 7 expands operator-facing proof. |
| 139 | + |
| 140 | +Closure acceptance: |
| 141 | + |
| 142 | +- Terminal and Auxillaries guided/default/detail states are covered across desktop and mobile; |
| 143 | +- keyboard, labels, focus, contrast, reduced motion, overflow, and visual regression evidence are deterministic enough for CI; |
| 144 | +- browser proofs avoid brittle screenshots where semantic assertions can prove the same behavior. |
| 145 | + |
| 146 | +### Gate 8: Testnet And Mainnet Readiness Rehearsal |
| 147 | + |
| 148 | +Gate 8 rehearses environment readiness without approving value-bearing launch. |
| 149 | + |
| 150 | +Closure acceptance: |
| 151 | + |
| 152 | +- local, staging-testnet, production-mainnet, and disabled/offline lanes have typed readiness records; |
| 153 | +- secret presence, provider connectivity, ledger/database/object-storage posture, BTC network posture, and rollback/repair checks are source-safe; |
| 154 | +- production-mainnet remains blocked unless a future explicit launch gate admits it. |
| 155 | + |
| 156 | +### Gate 9: Promotion Proof Generation Hardening |
| 157 | + |
| 158 | +Gate 9 hardens V32 promotion proof generation and workflow debuggability. |
| 159 | + |
| 160 | +Closure acceptance: |
| 161 | + |
| 162 | +- `BITCODE_SPEC_V32_PROVEN.md` generation can be dry-run, checked, and promoted with clear failure messages; |
| 163 | +- promotion workflows surface generated artifact diffs and stale-posture causes; |
| 164 | +- branch protection and promotion commits do not require unsafe direct pushes to `main`. |
| 165 | + |
| 166 | +### Gate 10: V32 Promotion Readiness |
| 167 | + |
| 168 | +Gate 10 owns final local/staging proof, generated artifacts, and V32 promotion workflow support. |
| 169 | + |
| 170 | +Closure acceptance: |
| 171 | + |
| 172 | +- `check:v32-gate10` validates promoted-readiness posture; |
| 173 | +- V32 promotion workflow validates source branch, local proof commands, proof/test evidence, generated `.bitcode/v32-*` reports, and `BITCODE_SPEC_V32_PROVEN.md`; |
| 174 | +- promotion scripts support V32 and rewrite post-promotion active V32 / draft V33 posture; |
| 175 | +- `version/v32` can be requested into `main` only after all V32 gates close. |
| 176 | + |
| 177 | +Gate 10 implementation centers: |
| 178 | + |
| 179 | +- `scripts/check-v32-gate10-promotion-readiness.mjs`; |
| 180 | +- `.github/workflows/v32-canon-promotion.yml`; |
| 181 | +- V32 support in `scripts/promote-bitcode-canon.mjs`; |
| 182 | +- V32 status rewriting in `scripts/prepare-bitcode-spec-family-promotion.mjs`; |
| 183 | +- V32 generated appendix/artifact support in `packages/protocol/src/canonical/proven-generator.js`; |
| 184 | +- generated `.bitcode/v32-*` artifacts and source-safe `BITCODE_V32_QA.md`. |
0 commit comments