|
| 1 | +# Bitcode Spec V33 Delta |
| 2 | + |
| 3 | +## Status |
| 4 | + |
| 5 | +- Version: `V33` |
| 6 | +- V33 state: draft target delta opened; interface-depth decisions are being specified over active V32 canon |
| 7 | +- Current canonical/latest target: `V32` |
| 8 | +- Prior canonical anchor: `BITCODE_SPEC_V32.md` |
| 9 | +- Prior generated proof appendix: `BITCODE_SPEC_V32_PROVEN.md` |
| 10 | +- Generated structured artifact inventory: draft V33 specifying artifacts `.bitcode/v33-spec-family-report.json` and `.bitcode/v33-canonical-input-report.json`; later V33 gates may add source-safe interface proof artifacts |
| 11 | +- Source parity state: Gate 1 opens the V33 parity ledger and checker; source implementation remains gate-scoped |
| 12 | +- Spec companion: `BITCODE_SPEC_V33.md` |
| 13 | +- Notes companion: `BITCODE_SPEC_V33_NOTES.md` |
| 14 | +- Parity companion: `BITCODE_SPEC_V33_PARITY_MATRIX.md` |
| 15 | +- Generated proof appendix: `BITCODE_SPEC_V33_PROVEN.md` only after V33 promotion |
| 16 | + |
| 17 | +## Why V33 exists |
| 18 | + |
| 19 | +V32 promoted proof and testing depth across Terminal, Reading, Protocol/BTD, Auxillaries, MCP, ChatGPT App, API, ledger/database/object-storage, browser proof, readiness rehearsal, and promotion automation. |
| 20 | +That made the core commercial system more provable. |
| 21 | + |
| 22 | +V33 exists because external enterprise consumers still need a deeper, stable, source-safe interface layer beyond the V28 MCP API and ChatGPT App MVP. |
| 23 | +MCP API, ChatGPT App, public API, and package consumers must share package-owned schemas, authorization policies, source-safe examples, compatibility tests, and telemetry/proof replay hooks instead of duplicating Terminal-local behavior. |
| 24 | + |
| 25 | +## Accepted V33 decisions |
| 26 | + |
| 27 | +- V32 remains active canon during V33 drafting. |
| 28 | +- V33 gate branches are opened from `version/v33` and merged back only when their gate acceptance criteria are closed. |
| 29 | +- V33 owns interface-depth: MCP API, ChatGPT App, public API, interface authorization policy, API schemas, examples, compatibility matrices, source-safe Read license contracts, AssetPack rights contracts, and interface telemetry/proof replay hooks. |
| 30 | +- V33 does not reopen BTD supply law, Reading pipeline product law, Exchange product depth, website Conversations product depth, deployment operations depth, or broad telemetry/documentation programs. |
| 31 | +- V33 interface contracts must be package-owned before they are exposed by MCP tools, ChatGPT App actions, public API routes, or Terminal handoffs. |
| 32 | +- Interface responses must be source-safe before settlement and must fail closed on missing auth, missing wallet capability, missing read license, unpaid protected-source request, stale proof, projection drift, or incompatible schema. |
| 33 | +- `InterfaceContractCatalog`, `InterfaceAuthorizationPolicy`, `ReadLicenseInterfaceContract`, `AssetPackRightsInterfaceContract`, `APISchemaCompatibilityMatrix`, and `InterfaceTelemetryProofHook` are the initial V33 contract anchors. |
| 34 | + |
| 35 | +## Explicitly deferred |
| 36 | + |
| 37 | +- V34 owns deployment, host capability, distributed execution, runtime/storage, environment lanes, CI/CD deployment approvals, rollback, upgrades, secret rotation, and repair playbooks beyond interface-owned hooks. |
| 38 | +- V35 owns deeper telemetry/documentation programs, dashboards, alert runbooks, public docs breadth, incident response, and operator guides beyond interface-owned proof hooks. |
| 39 | +- V36 owns deeper Exchange market behavior. |
| 40 | +- V37 owns website Conversations product depth. |
| 41 | +- Production-mainnet value-bearing launch remains explicitly blocked until a future promoted canon admits it. |
| 42 | +- Bridge chain-of-record implementation remains out of V33. |
| 43 | + |
| 44 | +## Pre-Implementation Sequence |
| 45 | + |
| 46 | +1. Open `version/v33` from promoted `main`. |
| 47 | +2. Open `v33/gate-1-interface-roadmap-opening` from `version/v33`. |
| 48 | +3. Create the V33 SPEC, DELTA, NOTES, and PARITY family while preserving `BITCODE_SPEC.txt -> V32`. |
| 49 | +4. Refresh `SPECIFICATIONS_ROADMAP.md` so V32 is active canon, V33 is draft target, and V34-V37 scopes remain coherent. |
| 50 | +5. Retarget gate-quality and canon-quality workflow posture checks to V32 active / V33 draft. |
| 51 | +6. Add `check:v33-gate1` and a V33 Gate 1 checker. |
| 52 | +7. Define V33 gates, acceptance criteria, carryforward parity rows, and post-V33 roadmap responsibilities. |
| 53 | +8. Validate spec family, canonical inputs, canon posture, workflows, roadmap truth, README/docs, and diff hygiene. |
| 54 | +9. Push the gate branch and open a pull request to `version/v33`. |
| 55 | + |
| 56 | +## Commit-Body Direction |
| 57 | + |
| 58 | +V33 gate commit bodies should describe the closed gate, specification changes, implementation surfaces, tests, proof commands, and accepted boundaries. |
| 59 | +The eventual V33 promotion commit body must name all closed V33 gates, generated interface proof artifacts, source-safe interface contracts, compatibility evidence, and the `BITCODE_SPEC.txt` pointer change from `V32` to `V33`. |
| 60 | +It must explicitly defer V34 deployment depth, V35 telemetry/documentation breadth, V36 Exchange depth, V37 Conversations depth, bridge chain-of-record implementation, and value-bearing mainnet launch. |
| 61 | + |
| 62 | +## Gate Delta |
| 63 | + |
| 64 | +### Gate 1: V33 Interface Roadmap And Spec Opening |
| 65 | + |
| 66 | +Gate 1 opens V33 correctly: |
| 67 | + |
| 68 | +- V33 SPEC, DELTA, NOTES, and PARITY files exist. |
| 69 | +- `BITCODE_SPEC.txt` remains `V32`. |
| 70 | +- README, roadmap, PR template, package docs, and workflows describe V32 active / V33 draft posture. |
| 71 | +- `check:v33-gate1` validates branch naming, spec family, notes, parity, roadmap truth, workflow posture, interface-depth vocabulary, and promotion boundaries. |
| 72 | +- The V33 gate list is explicit before interface implementation begins. |
| 73 | + |
| 74 | +### Gate 2: Interface Inventory And Contract Catalog |
| 75 | + |
| 76 | +Gate 2 inventories every active and deferred interface surface and creates the package-owned `InterfaceContractCatalog`. |
| 77 | + |
| 78 | +Closure acceptance: |
| 79 | + |
| 80 | +- MCP API, ChatGPT App, public API, Terminal handoff, package consumers, deferred Exchange hooks, and deferred Conversations hooks are enumerated; |
| 81 | +- each row names owner package, action/tool/route id, schema id, auth policy, source-safety class, example fixture, validation command, compatibility status, and failure mode; |
| 82 | +- deferred surfaces are represented as blocked or planned rows, not hidden confidence. |
| 83 | + |
| 84 | +### Gate 3: MCP API Tool And Registry Contracts |
| 85 | + |
| 86 | +Gate 3 hardens MCP API contracts. |
| 87 | + |
| 88 | +Closure acceptance: |
| 89 | + |
| 90 | +- MCP tool discovery is package-derived and source-safe; |
| 91 | +- tool input/output schemas, auth policy, denial states, proof roots, and examples are covered by tests; |
| 92 | +- MCP responses do not expose protected source before settlement. |
| 93 | + |
| 94 | +### Gate 4: ChatGPT App Action And Tool Contracts |
| 95 | + |
| 96 | +Gate 4 hardens ChatGPT App contracts. |
| 97 | + |
| 98 | +Closure acceptance: |
| 99 | + |
| 100 | +- ChatGPT App actions use package-owned schemas and source-safe response renderers; |
| 101 | +- denied-state readability and repair actions are tested; |
| 102 | +- Read, Need, Finding Fits, preview, fee, settlement, and delivery actions match the same contracts used by API and MCP. |
| 103 | + |
| 104 | +### Gate 5: Interface Authorization Policy Fail-Closed |
| 105 | + |
| 106 | +Gate 5 centralizes interface authorization. |
| 107 | + |
| 108 | +Closure acceptance: |
| 109 | + |
| 110 | +- `InterfaceAuthorizationPolicy` covers auth issuer, organization/team/role, wallet capability, read-license posture, AssetPack rights, protected-source disclosure, and repair posture; |
| 111 | +- API, MCP, ChatGPT App, and Terminal handoff tests share policy fixtures; |
| 112 | +- missing or stale authority fails closed with readable denial. |
| 113 | + |
| 114 | +### Gate 6: Read License And AssetPack Rights Interface Contracts |
| 115 | + |
| 116 | +Gate 6 proves paid/unpaid Reading boundaries across interfaces. |
| 117 | + |
| 118 | +Closure acceptance: |
| 119 | + |
| 120 | +- `ReadLicenseInterfaceContract` covers Read request, reviewed Need, Finding Fits admission, preview, fee quote, license posture, paid/unpaid denial, and proof root; |
| 121 | +- `AssetPackRightsInterfaceContract` covers source-safe preview, BTD range/read-right state, BTC settlement, delivery admission, and rights transfer projection; |
| 122 | +- pre-settlement protected source remains locked in all interface fixtures. |
| 123 | + |
| 124 | +### Gate 7: API Schemas Examples And Compatibility Matrix |
| 125 | + |
| 126 | +Gate 7 creates the schema compatibility spine. |
| 127 | + |
| 128 | +Closure acceptance: |
| 129 | + |
| 130 | +- `APISchemaCompatibilityMatrix` records schema ids, consumer surfaces, examples, breaking-change policy, compatibility status, fixture paths, and validation commands; |
| 131 | +- examples exist for success, denied, blocked, stale, and deferred states; |
| 132 | +- versionless API path discipline remains enforced. |
| 133 | + |
| 134 | +### Gate 8: Interface Telemetry And Proof Replay Hooks |
| 135 | + |
| 136 | +Gate 8 binds interface actions to proof replay. |
| 137 | + |
| 138 | +Closure acceptance: |
| 139 | + |
| 140 | +- `InterfaceTelemetryProofHook` records execution id, interface id, action id, request root, response root, ledger/database/object-storage roots, denial or success posture, and replay command; |
| 141 | +- hooks are source-safe and do not print secrets, protected prompts, or protected source; |
| 142 | +- proof replay joins Terminal, API, MCP, and ChatGPT App activity consistently. |
| 143 | + |
| 144 | +### Gate 9: Interface Consumer UX Regression Proof |
| 145 | + |
| 146 | +Gate 9 proves consumer readability and handoff quality. |
| 147 | + |
| 148 | +Closure acceptance: |
| 149 | + |
| 150 | +- MCP API, ChatGPT App, public API examples, Terminal handoff, and denied states have regression proof; |
| 151 | +- source-safe summary, proof roots, repair steps, and fee/rights preview are readable without overexposure; |
| 152 | +- interface consumer tests avoid brittle demo-only behavior. |
| 153 | + |
| 154 | +### Gate 10: V33 Promotion Readiness |
| 155 | + |
| 156 | +Gate 10 owns final generated proof, promotion workflow support, and V33 closure. |
| 157 | + |
| 158 | +Closure acceptance: |
| 159 | + |
| 160 | +- V33 promotion checks validate all gate artifacts, interface contracts, compatibility matrices, telemetry proof hooks, and generated proof appendix support; |
| 161 | +- promotion workflow can rewrite active V33 / draft V34 posture; |
| 162 | +- `version/v33` can be requested into `main` only after all V33 gates close. |
0 commit comments