Skip to content

Commit b721f18

Browse files
wip v28
1 parent 0fb6c08 commit b721f18

20 files changed

Lines changed: 1118 additions & 199 deletions

BITCODE_LIGHTPAPER.md

Lines changed: 704 additions & 3 deletions
Large diffs are not rendered by default.

BITCODE_SPEC_V28.md

Lines changed: 68 additions & 44 deletions
Large diffs are not rendered by default.

BITCODE_SPEC_V28_DELTA.md

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- Source parity state: first-gate draft parity opened in `BITCODE_SPEC_V28_PARITY_MATRIX.md`
1212
- State: draft target delta opened
1313
- Active canonical pointer during draft opening: `BITCODE_SPEC.txt` -> `V27`
14-
- Scope: commercial application MVP QA delta from V27 tokenomics and crypto-commercial rails to V28 operator-ready commercial surfaces
14+
- Scope: commercial Protocol implementation and Terminal MVP delta from V27 tokenomics and crypto-commercial rails, with MCP API and ChatGPT App MVP retained and Exchange plus website Conversations deferred beyond V35
1515
- Spec companion: `BITCODE_SPEC_V28.md`
1616
- Notes companion: `BITCODE_SPEC_V28_NOTES.md`
1717
- Parity companion: `BITCODE_SPEC_V28_PARITY_MATRIX.md`
@@ -33,28 +33,32 @@ V27 closed the core `$BTD` law and minimum practical crypto rails:
3333
- wallet signer-session and BTC fee receipt primitives;
3434
- ledger anchor, minimal Exchange, Terminal journal, reconciliation, telemetry, and upgrade primitives.
3535

36-
Those primitives are technically coherent but not yet commercial-application coherent.
37-
V28 exists to make the active application surfaces commercially MVP-readable, with Exchange MVP and Auxillaries shell cleanup treated as first-class QA work before deeper Terminal expansion.
36+
Those primitives are technically coherent but not yet commercially Protocol-operable through Terminal and the first interface surfaces.
37+
V28 exists to make the active Protocol/Terminal surfaces commercially MVP-readable, with Auxillaries readiness cleanup, MCP API, ChatGPT App, BTD-AssetPack minting, realistic testnetting, wallet/BTC flow, and demonstration-to-commercial package separation treated as first-class QA work before deeper Terminal expansion.
38+
Exchange and website Conversations are no longer V28 closure work.
3839

3940
## Delta Contract
4041

41-
V28 changes Bitcode by turning V27's package/API/receipt primitives into commercial application MVP workflows.
42+
V28 changes Bitcode by turning V27's package/API/receipt primitives into commercial Protocol/Terminal MVP workflows.
4243

4344
V28 must make all of these implementation-derivable:
4445

45-
- commercial application route QA across Terminal, Exchange, Auxillaries, BTD range disclosure, conversations, auth, and navigation;
46+
- commercial route QA across Terminal, Auxillaries, BTD range disclosure, MCP API, ChatGPT App, auth/readiness, wallet/BTC/testnet paths, and navigation;
4647
- Auxillaries contained tabs-left experience with old orbital style conflicts removed from active paths;
47-
- Exchange MVP activity/search/detail/range-acquisition readiness;
48+
- Exchange and website Conversations disabled or hidden for V28 QA and deferred beyond V35;
49+
- route-level flags disable direct Exchange and website Conversations entry during V28 QA;
4850
- Terminal wallet readiness and signer-session review;
4951
- BTC fee transaction preparation, signing, broadcast, finality, and failure display;
5052
- Need review and Fit review as explicit pre-settlement boundaries;
53+
- realistic synthetic measurement receipts, BTD-AssetPack minting, ledgerized journal rows, and projection/reconciliation readback in testnet-ready lanes;
5154
- measureminting entitlement and zero-cell/refit posture in the operator flow;
5255
- AssetPack range details from registry state;
5356
- owner-read/licensed-read/denied access decision surfaces;
5457
- Terminal journal diff and ledger/database reconciliation detail;
5558
- organization/team/read-license readiness from registry-derived facts;
56-
- MCP action gates based on range/read-license/policy truth;
59+
- MCP API and ChatGPT App action gates based on range/read-license/policy truth;
5760
- operational health over deployment lanes, telemetry, upgrades, migrations, and rollback state;
61+
- commercial package/UAPI implementations that no longer depend on runtime imports from `protocol-demonstration/`;
5862
- honest connected-provider readiness while broader provider/interface work remains staged beyond V28.
5963

6064
V28 must not:
@@ -64,44 +68,56 @@ V28 must not:
6468
- make `$BTD` a fee or spend token;
6569
- rely on compatibility aggregate balances as canonical range ownership;
6670
- approve value-bearing mainnet launch without operational approval;
67-
- pull broad Exchange depth beyond V28 Exchange MVP QA.
71+
- include Exchange or website Conversations in V28 closure.
72+
73+
## Research-Informed Chain Boundary
74+
75+
The BitVM/Taproot/BNB/Binance research is incorporated as V28 planning guidance:
76+
77+
- Bitcoin Taproot, PSBT, BIP340/BIP341/BIP342, and wallet-controlled signing remain V28's practical cryptographic center.
78+
- BitVM is compatible with Taproot and useful for future Bitcoin-side bridge research, but it is not a V28 production dependency.
79+
- BSC/opBNB/BEP-20/Binance Web3 Wallet pilots are future bridge/distribution work; they do not define the V28 `$BTD` chain of record.
80+
- BNB Chain is EVM-compatible and therefore bridge-mediated for Taproot/BitVM truth rather than a native Taproot execution lane.
81+
- V28 may expose disabled or documentation-only readiness for BSC/opBNB/Binance pilots, but must not imply live public BTD deployment on those chains unless a proof-bound testnet artifact exists.
6882

6983
## Accepted V28 decisions
7084

71-
- V28 is commercial-application-MVP-first.
85+
- V28 is commercial Protocol/Terminal MVP first.
7286
- V27 remains active canon during V28 drafting.
7387
- V28 productizes V27 primitives rather than redefining tokenomics.
74-
- Terminal, Exchange, Auxillaries, and BTD disclosure read models must be registry-derived where they speak about `$BTD`, fees, rights, or readiness.
88+
- Terminal, Auxillaries, BTD disclosure, MCP API, and ChatGPT App read models must be registry-derived where they speak about `$BTD`, fees, rights, or readiness.
7589
- UAPI route implementations remain unversioned.
7690
- Source implementation names remain unversioned and ungated unless explicitly required for a bounded compatibility artifact; V28 must not introduce route, file, stylesheet, constant, class, or test names such as `api/v1`, `v27-*`, `first-gate-*`, or `wip-*`.
7791
- value-bearing mainnet remains separately approval-gated.
7892

7993
## Explicitly deferred
8094

8195
- V29 owns deeper Terminal workflows beyond MVP QA.
82-
- V30 owns deeper Exchange beyond V28 Exchange MVP QA.
96+
- V30 is reserved for post-V29 Protocol/BTD hardening discovered during V28/V29; Exchange moves beyond V35.
8397
- V31 owns deeper Auxillaries beyond V28 active-shell cleanup.
8498
- V32 owns deeper provation and testing.
85-
- V33 owns deeper Interfaces, including the MCP API, ChatGPT App, and non-Auxillaries non-website application interfaces.
99+
- V33 owns deeper Interfaces beyond the V28 MCP API and ChatGPT App MVP.
86100
- V34 owns deeper Deployment, including host capabilities, real executions, distributed compute, runtime/storage expectations, and canonical-promotion CI/CD.
87101
- V35 owns deeper telemetry and documenting across internal codebase docs plus public `/docs` usage material.
88-
- broad Exchange market depth, wrappers, liquidity, and advanced market flows remain V30 unless an MVP Exchange QA issue requires a narrow V28 hook.
102+
- V36+ owns deeper Exchange and website Conversations work after V35 telemetry/documenting.
103+
- broad Exchange market depth, wrappers, liquidity, advanced market flows, and website Conversations remain out of V28.
89104
- final legal templates may be drafted in V28 but broader legal-product expansion is not a promotion blocker unless Terminal copy claims rights that are not policy-bound.
90105

91106
## Pre-Implementation Sequence
92107

93108
1. Confirm V27 active pointer and V28 draft target.
94109
2. Close V28 Gate 1 by synchronizing SPEC, DELTA, NOTES, PARITY, posture carriers, and route scans.
95-
3. Close commercial application MVP QA baseline across primary routes.
110+
3. Close commercial Protocol/Terminal MVP QA baseline across primary routes.
96111
4. Clean Auxillaries active shell to the contained tabs-left model.
97-
5. Harden Exchange MVP activity/search/detail/range-acquisition readiness.
98-
6. Build Terminal wallet, BTC fee, Need/Fit, measuremint, range, read-right, journal, and reconciliation surfaces to MVP.
112+
5. Build Terminal wallet, BTC fee, Need/Fit, synthetic measurement, BTD-AssetPack minting, range, read-right, journal, ledgerization, and reconciliation surfaces to MVP.
113+
6. Build MCP API and ChatGPT App MVP gates over registry-derived read/write authority.
99114
7. Build organization/access-policy and operational-health surfaces at MVP depth.
100-
8. Generate proof artifacts and promote only after tests/builds/QA pass.
115+
8. Commercialize remaining demonstration-derived runtime dependencies into packages/UAPI and prove commercial code does not import `protocol-demonstration/`.
116+
9. Generate proof artifacts and promote only after tests/builds/QA pass.
101117

102118
## Commit-Body Direction
103119

104-
The eventual V28 promotion commit body must describe commercial application MVP QA over V27 tokenomics, list gate closures, name tests/builds/proofs/visual QA, state route-versioning discipline, and explicitly defer deeper Terminal work to V29, deeper Exchange to V30, deeper Auxillaries to V31, deeper provation/testing to V32, deeper Interfaces to V33, deeper Deployment to V34, and deeper telemetry/documenting to V35.
120+
The eventual V28 promotion commit body must describe commercial Protocol/Terminal MVP QA over V27 tokenomics, list gate closures, name tests/builds/proofs/visual QA, state route-versioning discipline, name MCP API and ChatGPT App MVP closure, and explicitly defer deeper Terminal work to V29, Protocol/BTD hardening to V30, deeper Auxillaries to V31, deeper provation/testing to V32, deeper Interfaces beyond the V28 MVP to V33, deeper Deployment to V34, deeper telemetry/documenting to V35, and Exchange/website Conversations to V36+.
105121

106122
## From V27 To V28
107123

@@ -110,12 +126,12 @@ The eventual V28 promotion commit body must describe commercial application MVP
110126
| commercial application routes render but still contain mixed visual generations | V28 makes active routes MVP-coherent through QA, visual cleanup, route checks, and browser proof |
111127
| Auxillaries retained orbital-era shell styles while adopting contained tabs-left panes | V28 removes conflicting orbital layout from active Auxillaries auth/profile/readiness experience |
112128
| signed-in balance widget used currency-like `$BTD`, a raw pipe separator, explanatory hover title, and acquisition wording | V28 renders BTC and BTD as peer wallet balances, uses a styled separator, shows recent BTD AssetPacks in hover context, shows connected wallet identity in the action posture, and opens the `$BTD` wallet auxillary pane |
113-
| Exchange route exists as minimum commercial surface | V28 hardens Exchange MVP activity/search/detail/range-acquisition readiness without broad order-book depth |
129+
| Exchange route exists as a prior minimum commercial surface | V28 disables or hides Exchange from closure and defers Exchange product work beyond V35 |
114130
| `$BTD` supply and measureminting law are implemented in `packages/btd` | Terminal reads measuremint entitlement and zero-cell/refit posture as operator state |
115131
| wallet and BTC fee primitives exist | Terminal exposes wallet connection, signer-session state, PSBT handoff, txid, confirmation, replacement, reorg, and failure state |
116132
| AssetPack ranges exist as package/API/database primitives | Terminal makes range, cells, owner, policy hash, source root, proof root, and ledger anchor state readable |
117133
| access evaluation exists | Terminal separates owner-read, licensed-read, and denied branches with policy context |
118-
| minimal Exchange transfer exists | Terminal rereads Exchange state for transaction detail but does not widen market depth |
134+
| minimal Exchange transfer exists | Terminal uses protocol/settlement readback for V28 and does not depend on Exchange product surfaces |
119135
| Terminal journal primitive exists | Terminal turns journal rows and diffs into ordinary transaction detail |
120136
| reconciliation primitive exists | Terminal displays ledger facts, database projections, metaphysical facts, blocking drift, and repair receipts |
121137
| telemetry and deployment lanes exist | Terminal exposes crypto health, approval roots, upgrade posture, and rollback readiness |
@@ -134,9 +150,9 @@ Opened by:
134150

135151
### Gate 2: Commercial Application MVP QA Baseline
136152

137-
Adds primary-route QA, Auxillaries shell cleanup, Exchange MVP hardening, and browser/visual proof requirements.
153+
Adds primary-route QA, Auxillaries shell cleanup, Protocol/Terminal MVP hardening, MCP/ChatGPT App readiness, and browser/visual proof requirements.
138154
The automated browser layer is the commercial-MVP Playwright suite: product-route readability, micro-interface assertions, stitched user flows, URL-addressable filter state, data-share consent persistence, public docs article coverage, responsive route health, and browser-error cleanliness are required before Gate 2 can close.
139-
The package runner is intentionally serial against one deterministic mock-mode dev server. Its mock harness must own Auxillaries data, model-preferences, data-share, notifications, and conversation-stream calls so V28 QA validates commercial UI behavior rather than external account/session availability.
155+
The package runner is intentionally serial against one deterministic mock-mode dev server. Its mock harness must own Auxillaries data, model-preferences, data-share, notifications, Terminal activity, BTD mint/read state, and MCP/ChatGPT App readiness so V28 QA validates commercial Protocol/Terminal behavior rather than external account/session availability.
140156

141157
### Gate 3: Terminal Wallet, BTC Fee, And Need-Fit-Measuremint Workflow
142158

@@ -152,7 +168,7 @@ Adds transaction detail for journal/database/ledger agreement and repair.
152168

153169
### Gate 6: Terminal Organization And Access Policy
154170

155-
Adds registry-derived organization and MCP access decisions plus policy templates.
171+
Adds registry-derived organization, MCP API, ChatGPT App access decisions, and policy templates.
156172

157173
### Gate 7: Terminal Operations And Testnet Readiness
158174

@@ -165,9 +181,10 @@ Adds final proof, build/test, unversioned route, and scope-staging closure.
165181
## Later Version Handoff
166182

167183
- V29: deeper Terminal workflows and transaction operation beyond V28 MVP QA.
168-
- V30: deeper Exchange, including market depth, order books, range trading depth, wrappers, liquidity, and advanced settlement flows beyond MVP.
184+
- V30: Protocol/BTD hardening discovered during V28/V29, explicitly not Exchange unless a future spec reopens that scope.
169185
- V31: deeper Auxillaries, including expanded profile/connects/interfaces/BTD readiness, provider readiness, and commercial operator settings.
170186
- V32: deeper provation and testing, including stronger proof-family closure, E2E breadth, promotion proofs, and regression matrices.
171-
- V33: deeper Interfaces, including the MCP API, ChatGPT App, integratable chatbot app surfaces, API packaging, interface auth, and non-Auxillaries non-website application interfaces.
187+
- V33: deeper Interfaces beyond the V28 MCP API and ChatGPT App MVP, including broader API packaging, interface auth, non-Auxillaries non-website application interfaces, and integratable chatbot surfaces.
172188
- V34: deeper Deployment, including host capabilities, real executions, distributed compute aligned with provations, runtime expectations, storage expectations, and CI/CD for canonical promotions.
173189
- V35: deeper telemetry and documenting, including internal codebase documentation and public `/docs` usage material as the prelude to full commercial application testnet rollout.
190+
- V36+: deeper Exchange and website Conversations, including market depth, order books, range trading depth, wrappers, liquidity, buy/sell/bid/ask flows, and website conversational interface work.

0 commit comments

Comments
 (0)