|
| 1 | +# Bitcode Spec V36 Delta |
| 2 | + |
| 3 | +## Status |
| 4 | + |
| 5 | +- Version: `V36` |
| 6 | +- V36 state: active draft target opened; this delta records the planned V35-to-V36 Exchange-depth closure set |
| 7 | +- Current canonical/latest target: `V35` |
| 8 | +- Prior canonical anchor: `BITCODE_SPEC_V35.md` |
| 9 | +- Prior generated proof appendix: `BITCODE_SPEC_V35_PROVEN.md` |
| 10 | +- Generated structured artifact inventory: draft `.bitcode/v36-spec-family-report.json` and `.bitcode/v36-canonical-input-report.json`; later gates add Exchange generated artifacts |
| 11 | +- Source parity state: V36 source parity begins with Gate 1 roadmap/spec opening and is closed gate-by-gate through Exchange contracts, UI, telemetry, settlement, repair, rehearsal, and promotion readiness |
| 12 | +- Spec companion: `BITCODE_SPEC_V36.md` |
| 13 | +- Notes companion: `BITCODE_SPEC_V36_NOTES.md` |
| 14 | +- Parity companion: `BITCODE_SPEC_V36_PARITY_MATRIX.md` |
| 15 | +- Generated proof appendix: `BITCODE_SPEC_V36_PROVEN.md` only after V36 promotion |
| 16 | +- Scope: V36 draft delta for deeper Exchange over promoted V35 telemetry/documentation canon |
| 17 | + |
| 18 | +## Why V36 exists |
| 19 | + |
| 20 | +V35 promoted telemetry and documentation depth. |
| 21 | +That made Bitcode understandable, supportable, observable, and testnet-rollout ready. |
| 22 | + |
| 23 | +V36 exists because Bitcode now needs the Exchange surface to become real product law instead of deferred posture. |
| 24 | +Exchange must let enterprise users inspect market-wide activity, list or request rights transfers, buy, sell, bid, ask, cancel, accept, settle, and inspect history while preserving BTC fee separation, non-fungible BTD range identity, source-safe AssetPack previews, settlement finality, repair paths, and ledger/database synchronization. |
| 25 | + |
| 26 | +## Accepted V36 decisions |
| 27 | + |
| 28 | +- V35 remains active canon during V36 drafting. |
| 29 | +- V36 gate branches are opened from `version/v36` and merged back only when their gate acceptance criteria are closed. |
| 30 | +- V36 owns deeper Exchange: `ExchangeActivityBook`, `ExchangeIntent`, `ExchangeOrder`, `ExchangeRightsTransferPreview`, `ExchangePricingQuote`, `ExchangeSettlementReceipt`, `ExchangeDisputeRepairCase`, and `ExchangeRevenueRoute`. |
| 31 | +- Exchange contracts must be package-owned before they are exposed by route handlers, UI state, dashboards, runbooks, MCP tools, ChatGPT App actions, public docs, or generated artifacts. |
| 32 | +- Exchange previews disclose measurements, roots, rights posture, fee quote roots, owner posture, settlement state, and denial reasons; they must not disclose protected source, raw protected prompts, wallet private material, secrets, or unpaid AssetPack contents. |
| 33 | +- Ledger records and journals remain source-of-truth for ownership, settlement, and finality; database projections are repairable projections. |
| 34 | +- Exchange pricing may include measurement weights, measurement volume, liquidity bands, wrapper analysis, and BTC fee quotes only through deterministic auditable quote roots. |
| 35 | + |
| 36 | +## Explicitly deferred |
| 37 | + |
| 38 | +- V37 owns website Conversations product behavior. |
| 39 | +- Production-mainnet value-bearing launch remains explicitly blocked until a future promoted canon admits it. |
| 40 | +- Bridge chain-of-record implementation remains out of V36. |
| 41 | +- V36 does not reopen BTD supply law, Reading pipeline product law, V34 deployment law, V35 telemetry/docs law, or AssetPack source disclosure law. |
| 42 | + |
| 43 | +## Pre-Implementation Sequence |
| 44 | + |
| 45 | +1. Open `version/v36` from promoted `main`. |
| 46 | +2. Open `v36/gate-1-exchange-roadmap-opening` from `version/v36`. |
| 47 | +3. Create the V36 SPEC, DELTA, NOTES, and PARITY family while preserving `BITCODE_SPEC.txt -> V35`. |
| 48 | +4. Refresh `SPECIFICATIONS_ROADMAP.md` so V35 is active canon, V36 is draft target, and V37 scope remains coherent. |
| 49 | +5. Retarget gate-quality and canon-quality workflow posture checks to V35 active / V36 draft. |
| 50 | +6. Add `check:v36-gate1` and a V36 Gate 1 checker. |
| 51 | +7. Define V36 gates, acceptance criteria, carryforward parity rows, and post-V36 roadmap responsibilities. |
| 52 | +8. Validate spec family, canonical inputs, canon posture, workflows, roadmap truth, README/docs, and diff hygiene. |
| 53 | +9. Push the gate branch and open a pull request to `version/v36`. |
| 54 | + |
| 55 | +## Commit-Body Direction |
| 56 | + |
| 57 | +V36 gate commit bodies should describe the closed gate, specification changes, implementation surfaces, tests, proof commands, and accepted boundaries. |
| 58 | +The eventual V36 promotion commit body must name all closed V36 gates, generated Exchange proof artifacts, settlement/reconciliation evidence, UI proof, public/internal documentation evidence, telemetry/runbook evidence, local/staging rehearsal proof, and the `BITCODE_SPEC.txt` pointer change from `V35` to `V36`. |
| 59 | +It must explicitly defer V37 Conversations depth, bridge chain-of-record implementation, and value-bearing mainnet launch. |
| 60 | + |
| 61 | +## Gate Delta |
| 62 | + |
| 63 | +### Gate 1: V36 Exchange Roadmap And Spec Opening |
| 64 | + |
| 65 | +Gate 1 opens V36 correctly: |
| 66 | + |
| 67 | +- V36 SPEC, DELTA, NOTES, and PARITY files exist. |
| 68 | +- `BITCODE_SPEC.txt` remains `V35`. |
| 69 | +- README, roadmap, PR template, package docs, demonstration docs, and workflows describe V35 active / V36 draft posture. |
| 70 | +- `check:v36-gate1` validates branch naming, spec family, notes, parity, roadmap truth, workflow posture, Exchange vocabulary, and promotion boundaries. |
| 71 | +- The V36 gate list is explicit before Exchange implementation begins. |
| 72 | + |
| 73 | +### Gate 2: Exchange Activity Book And Market Master Detail |
| 74 | + |
| 75 | +Gate 2 inventories source-safe market activity. |
| 76 | + |
| 77 | +Closure acceptance: |
| 78 | + |
| 79 | +- `ExchangeActivityBook` owns market-wide activity rows, filters, detail payloads, proof roots, event ids, and redaction posture; |
| 80 | +- activity rows cover listings, bids, asks, cancellations, acceptances, settlements, repairs, revenue routes, and history entries; |
| 81 | +- activity detail never exposes protected source or unpaid AssetPack content. |
| 82 | + |
| 83 | +### Gate 3: Buy Sell Bid Ask Cancel Accept Intent Contracts |
| 84 | + |
| 85 | +Gate 3 defines market action envelopes. |
| 86 | + |
| 87 | +Closure acceptance: |
| 88 | + |
| 89 | +- `ExchangeIntent` and `ExchangeOrder` own buy, sell, bid, ask, cancel, accept, settle, and history transition contracts; |
| 90 | +- each transition names actor, organization role, wallet posture, authority proof, idempotency key, policy decision, and fail-closed result; |
| 91 | +- order history is replayable without private wallet material or secrets. |
| 92 | + |
| 93 | +### Gate 4: AssetPack Range Trading And Rights Transfer Review |
| 94 | + |
| 95 | +Gate 4 defines rights-transfer preview. |
| 96 | + |
| 97 | +Closure acceptance: |
| 98 | + |
| 99 | +- `ExchangeRightsTransferPreview` names BTD range identity, current owner, requested buyer, rights scope, settlement unlock condition, and disclosure limit; |
| 100 | +- AssetPack source is hidden until paid settlement and rights transfer are complete; |
| 101 | +- previews distinguish owner-read, licensed-read, and blocked transfer states. |
| 102 | + |
| 103 | +### Gate 5: Pricing Liquidity Fee Quote And Wrapper Analysis |
| 104 | + |
| 105 | +Gate 5 defines deterministic price and fee roots. |
| 106 | + |
| 107 | +Closure acceptance: |
| 108 | + |
| 109 | +- `ExchangePricingQuote` includes BTC amount, measurement weight, measurement volume, liquidity band, wrapper analysis, treasury route, depositor route, reader route, and quote root; |
| 110 | +- wrapper analysis cannot make BTD range cells fungible chain-of-record assets; |
| 111 | +- underpayment, overpayment, stale quote, or unsupported network posture fails closed. |
| 112 | + |
| 113 | +### Gate 6: Exchange Settlement Ledger Database Reconciliation |
| 114 | + |
| 115 | +Gate 6 synchronizes settlement. |
| 116 | + |
| 117 | +Closure acceptance: |
| 118 | + |
| 119 | +- `ExchangeSettlementReceipt` binds payment observation, finality state, rights transfer receipt, ledger root, database projection root, object storage root, delivery state, and repair id; |
| 120 | +- observers and repair jobs reconcile database projections to ledger truth; |
| 121 | +- settlement finality and delivery are auditable. |
| 122 | + |
| 123 | +### Gate 7: Dispute Repair Revenue Route Operations |
| 124 | + |
| 125 | +Gate 7 turns failure into operator action. |
| 126 | + |
| 127 | +Closure acceptance: |
| 128 | + |
| 129 | +- `ExchangeDisputeRepairCase` covers stale owner, cancelled order replay, underpayment, overpayment, projection drift, source leakage, and delivery mismatch; |
| 130 | +- `ExchangeRevenueRoute` covers depositor, reader, treasury, fee, BTC route, BTD right route, and conservation proof; |
| 131 | +- runbooks and repair commands are source-safe and proof-rooted. |
| 132 | + |
| 133 | +### Gate 8: Exchange UX And Terminal Navigation Integration |
| 134 | + |
| 135 | +Gate 8 makes Exchange usable. |
| 136 | + |
| 137 | +Closure acceptance: |
| 138 | + |
| 139 | +- `/exchange` exposes market-wide master-detail, filters, order history, rights-transfer review, pricing quote, settlement state, and repair state; |
| 140 | +- Terminal can hand off to Exchange without losing transaction context; |
| 141 | +- collapsed UI gives readable status and expanded UI exposes source-safe detail. |
| 142 | + |
| 143 | +### Gate 9: Local Staging Exchange Rehearsal And Proof Coverage |
| 144 | + |
| 145 | +Gate 9 proves Exchange locally and in staging-testnet. |
| 146 | + |
| 147 | +Closure acceptance: |
| 148 | + |
| 149 | +- local and staging-testnet rehearsals exercise list, bid, ask, cancel, accept, settle, repair, and history flows; |
| 150 | +- rehearsal logs/screenshots are source-safe; |
| 151 | +- ledger/database synchronization and value-bearing mainnet blocking are visible. |
| 152 | + |
| 153 | +### Gate 10: V36 Promotion Readiness |
| 154 | + |
| 155 | +Gate 10 owns final generated proof, promotion workflow support, source-safe `.bitcode/v36-promotion-readiness-report.json`, and V36 closure. |
| 156 | + |
| 157 | +Closure acceptance: |
| 158 | + |
| 159 | +- V36 promotion checks validate all Exchange artifacts, contracts, UI proof, telemetry/docs/runbook bindings, settlement/reconciliation evidence, repair evidence, rehearsal proof, and generated proof appendix support; |
| 160 | +- promotion scripts support V36 command planning, dry-run, generated proof output, and derived promotion commit body generation; |
| 161 | +- promotion rewrites runtime posture to active V36 / draft V37 only after validations pass. |
| 162 | + |
| 163 | +## Delta completion condition |
| 164 | + |
| 165 | +This delta is complete for Gate 1 when `version/v36` contains the V36 spec family, roadmap posture, workflow posture, README/package docs posture, PR template title guidance, `check:v36-gate1`, and validations proving V35 active / V36 draft readiness. |
0 commit comments