Skip to content

Commit 5de5d55

Browse files
V36 Gate 1: Open Exchange roadmap
Open the V36 Exchange-depth spec family over promoted V35 canon, including SPEC, DELTA, NOTES, and PARITY files. Wire check:v36-gate1 through package scripts and gate/canon quality workflows, refresh roadmap and contributor docs to V35 active / V36 draft posture, and preserve V37 Conversations as deferred scope. Validation: node scripts/check-bitcode-spec-family.mjs --version V36 --mode draft --current-target V35; node scripts/check-bitcode-canonical-inputs.mjs --current-target V35; node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V35 --draft-target V36; pnpm run check:v36-gate1; node scripts/check-bitcode-spec-family.mjs --version V35 --mode promoted --current-target V35; node scripts/check-v35-gate10-promotion-readiness.mjs --promotion-mode --skip-branch-check; git diff --check.
1 parent 31310f6 commit 5de5d55

13 files changed

Lines changed: 1297 additions & 80 deletions

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Title
22

3-
Use the version and gate prefix for gate PRs: `V35 Gate N: Concise Topical Title`.
4-
Use the version and promotion prefix for version promotion PRs: `V35 Canonical Promotion: Concise Topical Title`.
3+
Use the version and gate prefix for gate PRs: `V36 Gate N: Concise Topical Title`.
4+
Use the version and promotion prefix for version promotion PRs: `V36 Canonical Promotion: Concise Topical Title`.
55

66
## Closure
77

.github/workflows/bitcode-canon-quality.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,15 @@ jobs:
164164
node scripts/check-bitcode-spec-family.mjs --version V35 --mode draft --current-target V34
165165
fi
166166
;;
167+
spec:\ V36*|spec:\ v36*)
168+
POINTER="$(cat BITCODE_SPEC.txt)"
169+
if [ "$POINTER" = "V36" ]; then
170+
node scripts/check-bitcode-spec-family.mjs --version V36 --mode promoted --current-target V36
171+
else
172+
node scripts/check-bitcode-spec-family.mjs --version V36 --mode draft --current-target V35
173+
fi
174+
;;
167175
*)
168-
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33/V34/V35 spec change."
176+
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33/V34/V35/V36 spec change."
169177
;;
170178
esac

.github/workflows/bitcode-gate-quality.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ jobs:
200200
node scripts/check-v35-gate10-promotion-readiness.mjs --promotion-mode --skip-branch-check
201201
if [ -f BITCODE_SPEC_V36.md ]; then
202202
node scripts/check-bitcode-spec-family.mjs --version V36 --mode draft --current-target V35
203+
node scripts/check-v36-gate1-exchange-roadmap-opening.mjs --skip-branch-check
203204
fi
204205
else
205206
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2

BITCODE_SPEC_V36.md

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

BITCODE_SPEC_V36_DELTA.md

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
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.

BITCODE_SPEC_V36_NOTES.md

Lines changed: 63 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,79 @@
33
## Status
44

55
- Version: `V36`
6-
- V36 state: future notes scaffold only
7-
- Current canonical/latest target: `V27`
8-
- Current active draft target: `V28`
9-
- Prior canonical anchor: `BITCODE_SPEC_V27.md`
10-
- Prior generated proof appendix: `BITCODE_SPEC_V27_PROVEN.md`
11-
- Generated structured artifact inventory: none for V36 yet
12-
- Source parity state: not opened; V36 source parity begins only after V36 draft opening
13-
- Scope: future notes for deeper Exchange work after V35 telemetry/documenting depth.
14-
15-
This NOTES file does not promote V36 and does not open V36 implementation.
6+
- V36 state: active draft target opened; Gate 1 turns prior future notes into the Exchange-depth working specification family
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`; Exchange artifacts begin after Gate 1
11+
- Source parity state: V36 source parity begins with Gate 1 and remains draft until each Exchange gate closes
12+
- Spec companion: `BITCODE_SPEC_V36.md`
13+
- Delta companion: `BITCODE_SPEC_V36_DELTA.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 notes for deeper Exchange work after promoted V35 telemetry/documenting depth
1617

1718
## Notes companion rule
1819

19-
This file is planning memory only.
20-
Requirements become binding only when V36 is explicitly opened as the draft-target SPEC family.
20+
This file records working notes for the V36 draft target.
21+
Requirements become binding when copied into `BITCODE_SPEC_V36.md`, `BITCODE_SPEC_V36_DELTA.md`, `BITCODE_SPEC_V36_PARITY_MATRIX.md`, checker scripts, package contracts, tests, or generated artifacts.
2122

2223
## Concise current-system reading
2324

24-
V28 no longer includes Exchange closure.
25-
Exchange returns after the Protocol/Terminal, Auxillaries, provation, interface, deployment, telemetry, and documentation spine is mature enough to support a market surface.
25+
V35 is active canon.
26+
V36 opens Exchange depth without changing Reading, BTD tokenomics, BTC fee separation, deployment law, telemetry/documentation law, or source disclosure law.
27+
28+
Exchange must operate as a market surface over rights and source-safe previews.
29+
It must not become a hidden tokenomics rewrite, a source leakage path, or a database-first settlement system.
30+
31+
## Simplified-spec reading rule
32+
33+
Read V36 as:
34+
35+
1. The active system is V35.
36+
2. V36 adds auditable Exchange product behavior.
37+
3. Exchange actions manipulate market intents, orders, rights-transfer previews, settlement receipts, dispute/repair cases, and revenue routes.
38+
4. BTD range identity remains non-fungible source-share law.
39+
5. Protected source remains hidden before paid settlement.
40+
6. Ledger truth remains stronger than database projection.
41+
42+
## Exchange depth notes
43+
44+
- Market activity needs master-detail clarity: a collapsed row should be enough for status, while expanded detail must include proof roots, safe metadata, and repair posture.
45+
- Buy/sell/bid/ask/cancel/accept/settle/history actions must be typed intents, not route-local ad hoc payloads.
46+
- Pricing must be deterministic and auditable. Initial design uses measurement weight times measurement volume as a source factor, then folds liquidity, fee, and policy factors into a BTC quote root.
47+
- Wrapper analysis is allowed only as analysis. A wrapper cannot become the chain-of-record for BTD ownership.
48+
- Rights-transfer preview must clearly separate current owner, prospective buyer, BTD range identity, source-safe measurements, quote roots, settlement posture, and post-settlement delivery.
49+
- Dispute and repair posture must exist before optimistic market UX is considered complete.
2650

27-
## Intended V36 focus
51+
## V36 gate plan
2852

29-
V36 owns deeper Exchange:
53+
1. Gate 1: V36 Exchange Roadmap And Spec Opening.
54+
2. Gate 2: Exchange Activity Book And Market Master Detail.
55+
3. Gate 3: Buy Sell Bid Ask Cancel Accept Intent Contracts.
56+
4. Gate 4: AssetPack Range Trading And Rights Transfer Review.
57+
5. Gate 5: Pricing Liquidity Fee Quote And Wrapper Analysis.
58+
6. Gate 6: Exchange Settlement Ledger Database Reconciliation.
59+
7. Gate 7: Dispute Repair Revenue Route Operations.
60+
8. Gate 8: Exchange UX And Terminal Navigation Integration.
61+
9. Gate 9: Local Staging Exchange Rehearsal And Proof Coverage.
62+
10. Gate 10: V36 Promotion Readiness.
3063

31-
- Exchange MVP/deepening after V35, not during V28;
32-
- market-wide activity master-detail;
33-
- buy, sell, bid, ask, cancel, accept, settle, and history flows;
34-
- AssetPack range trading UX and rights-transfer review;
35-
- pricing, liquidity, wrapper, and settlement analytics only where they preserve `$BTD` non-fungible source-share law;
36-
- dispute, repair, revenue-route, and ledger/database reconciliation operations specific to market activity;
37-
- Exchange-specific tests, proofs, telemetry, and public documentation.
64+
## Gate 1 working notes
3865

39-
## Boundaries
66+
Gate 1 closes when:
4067

41-
V36 must not redefine `$BTD` supply, BTC fee separation, AssetPack range identity, owner-read/licensed-read law, measureminting, or ancestry.
42-
V36 must not retroactively make Exchange a V28 promotion blocker.
68+
- V36 SPEC, DELTA, NOTES, and PARITY files exist;
69+
- `BITCODE_SPEC.txt` remains `V35`;
70+
- roadmap status marks V35 active and V36 draft;
71+
- README, protocol package README, demonstration README, and PR template name V36 workflow;
72+
- gate-quality and canon-quality workflows understand V36 draft posture;
73+
- `check:v36-gate1` passes locally and in CI.
4374

44-
## Return To V28
75+
## Accepted boundaries
4576

46-
Do not start V36 implementation during V28.
47-
Record Exchange findings during V28 only when they contaminate active V28 Terminal, Protocol, BTD, MCP API, or ChatGPT App behavior.
77+
- V36 owns deeper Exchange.
78+
- V37 owns website Conversations.
79+
- V36 does not authorize value-bearing production-mainnet launch.
80+
- V36 does not redefine BTD supply, BTC fee separation, AssetPack range identity, owner-read/licensed-read law, measureminting, ancestry, or Reading pipeline product law.
81+
- Exchange must not expose protected AssetPack source before settlement.

0 commit comments

Comments
 (0)