Skip to content

Commit a26d574

Browse files
V34 Gate 1: Open deployment roadmap
Open the V34 deployment-depth specification family over promoted V33 canon, including SPEC, DELTA, NOTES, and PARITY content for host capabilities, environment lanes, distributed execution receipts, storage posture, secret rotation, approval gates, repair jobs, rehearsal, and promotion readiness. Refresh roadmap, root/protocol/demonstration docs, PR template, package script, and gate/canon workflows for V33 active / V34 draft posture. Add check:v34-gate1 through scripts/check-v34-gate1-deployment-roadmap-opening.mjs to fail closed on stale posture, missing deployment vocabulary, missing gate plan, workflow drift, and versioned API routes. Proof: node scripts/check-bitcode-spec-family.mjs --version V34 --mode draft --current-target V33; node scripts/check-bitcode-canonical-inputs.mjs --current-target V33; node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V33 --draft-target V34; pnpm run check:v34-gate1; git diff --check.
1 parent 06f0245 commit a26d574

13 files changed

Lines changed: 1338 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: `V33 Gate N: Concise Topical Title`.
4-
Use the version and promotion prefix for version promotion PRs: `V33 Canonical Promotion: Concise Topical Title`.
3+
Use the version and gate prefix for gate PRs: `V34 Gate N: Concise Topical Title`.
4+
Use the version and promotion prefix for version promotion PRs: `V34 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
@@ -134,7 +134,15 @@ jobs:
134134
node scripts/check-bitcode-spec-family.mjs --version V33 --mode draft --current-target V32
135135
fi
136136
;;
137+
spec:\ V34*|spec:\ v34*)
138+
POINTER="$(cat BITCODE_SPEC.txt)"
139+
if [ "$POINTER" = "V34" ]; then
140+
node scripts/check-bitcode-spec-family.mjs --version V34 --mode promoted --current-target V34
141+
else
142+
node scripts/check-bitcode-spec-family.mjs --version V34 --mode draft --current-target V33
143+
fi
144+
;;
137145
*)
138-
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33 spec change."
146+
echo "Skipping strict spec-title conformance; title is not a V29/V30/V31/V32/V33/V34 spec change."
139147
;;
140148
esac

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ jobs:
147147
node scripts/check-bitcode-spec-family.mjs --version V34 --mode draft --current-target V33
148148
fi
149149
node scripts/check-v33-gate10-promotion-readiness.mjs --promotion-mode --skip-branch-check
150+
node scripts/check-v34-gate1-deployment-roadmap-opening.mjs --skip-branch-check
150151
else
151152
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
152153
exit 1

BITCODE_SPEC_V34.md

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

BITCODE_SPEC_V34_DELTA.md

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# Bitcode Spec V34 Delta
2+
3+
## Status
4+
5+
- Version: `V34`
6+
- V34 state: Gate 1 deployment-roadmap opening is active over promoted V33 canon
7+
- Current canonical/latest target: `V33`
8+
- Prior canonical anchor: `BITCODE_SPEC_V33.md`
9+
- Prior generated proof appendix: `BITCODE_SPEC_V33_PROVEN.md`
10+
- Generated structured artifact inventory: draft V34 specifying artifacts `.bitcode/v34-spec-family-report.json`, `.bitcode/v34-canonical-input-report.json`, and later deployment-depth artifacts as gates close
11+
- Source parity state: Gate 1 opens V34 deployment-depth parity; source-side deployment contracts are drafted but not closed until their gates close
12+
- Spec companion: `BITCODE_SPEC_V34.md`
13+
- Notes companion: `BITCODE_SPEC_V34_NOTES.md`
14+
- Parity companion: `BITCODE_SPEC_V34_PARITY_MATRIX.md`
15+
- Generated proof appendix: `BITCODE_SPEC_V34_PROVEN.md` only after V34 promotion
16+
- Scope: V34 draft delta for deployment depth over promoted V33 commercial interface canon
17+
18+
## Why V34 exists
19+
20+
V33 promoted commercial interface depth across MCP API, ChatGPT App, public API, package-owned schemas, interface authorization, Read license and AssetPack rights contracts, compatibility matrices, telemetry/proof hooks, consumer UX proof, and promotion readiness.
21+
That made external interface boundaries source-safe and contract-owned.
22+
23+
V34 exists because those interfaces and the Reading/BTD system must now be operator-deployable with explicit runtime truth.
24+
Deployment cannot be a dashboard assumption: host capability, environment lane, distributed execution receipts, storage posture, migration approvals, secret rotation, observer/broadcaster/repair jobs, rollback, upgrade, rehearsal, and promotion readiness must be specified and tested as Bitcode protocol reality.
25+
26+
## Accepted V34 decisions
27+
28+
- V33 remains active canon during V34 drafting.
29+
- V34 gate branches are opened from `version/v34` and merged back only when their gate acceptance criteria are closed.
30+
- V34 owns deployment-depth: `DeploymentHostCapabilityCatalog`, `EnvironmentLaneContract`, `DistributedExecutionRuntimeReceipt`, `DeploymentStoragePosture`, `MigrationApprovalGate`, `SecretRotationPlan`, `RuntimeObserverRepairJob`, `RollbackUpgradeRepairPlaybook`, `DeploymentReadinessRehearsal`, and `DeploymentPromotionReadinessReport`.
31+
- V34 deployment contracts must be package-owned before they are exposed by route handlers, workers, MCP tools, ChatGPT App actions, observers, broadcasters, repair jobs, or UI status surfaces.
32+
- Environment lanes distinguish local, regtest, signet, staging-testnet, public testnet, mainnet-ready dry run, and value-bearing mainnet; value-bearing mainnet remains blocked.
33+
- Distributed execution receipts are required for long-running Reading pipeline, ledger, wallet, settlement, proof, object-storage, and repair work.
34+
- Source-bearing AssetPack storage, proof artifacts, audit logs, and rollback material must have explicit storage posture and disclosure policy.
35+
36+
## Explicitly deferred
37+
38+
- V35 owns broad telemetry/documentation programs, dashboards, alert runbooks, public docs breadth, incidents, operator guides, and rollout material beyond V34 deployment contracts.
39+
- V36 owns deeper Exchange market behavior.
40+
- V37 owns deeper website Conversations product behavior.
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 V34.
43+
- V34 does not reopen BTD supply law, Reading pipeline product law, or V33 interface contract law.
44+
45+
## Pre-Implementation Sequence
46+
47+
1. Open `version/v34` from promoted `main`.
48+
2. Open `v34/gate-1-deployment-roadmap-opening` from `version/v34`.
49+
3. Create the V34 SPEC, DELTA, NOTES, and PARITY family while preserving `BITCODE_SPEC.txt -> V33`.
50+
4. Refresh `SPECIFICATIONS_ROADMAP.md` so V33 is active canon, V34 is draft target, and V35-V37 scopes remain coherent.
51+
5. Retarget gate-quality and canon-quality workflow posture checks to V33 active / V34 draft.
52+
6. Add `check:v34-gate1` and a V34 Gate 1 checker.
53+
7. Define V34 gates, acceptance criteria, carryforward parity rows, and post-V34 roadmap responsibilities.
54+
8. Validate spec family, canonical inputs, canon posture, workflows, roadmap truth, README/docs, and diff hygiene.
55+
9. Push the gate branch and open a pull request to `version/v34`.
56+
57+
## Commit-Body Direction
58+
59+
V34 gate commit bodies should describe the closed gate, specification changes, implementation surfaces, tests, proof commands, and accepted boundaries.
60+
The eventual V34 promotion commit body must name all closed V34 gates, generated deployment proof artifacts, host capability and lane contracts, runtime receipt evidence, storage posture evidence, deployment approval evidence, rehearsal proof, and the `BITCODE_SPEC.txt` pointer change from `V33` to `V34`.
61+
It must explicitly defer V35 telemetry/documentation breadth, V36 Exchange depth, V37 Conversations depth, bridge chain-of-record implementation, and value-bearing mainnet launch.
62+
63+
## Gate Delta
64+
65+
### Gate 1: V34 Deployment Roadmap And Spec Opening
66+
67+
Gate 1 opens V34 correctly:
68+
69+
- V34 SPEC, DELTA, NOTES, and PARITY files exist.
70+
- `BITCODE_SPEC.txt` remains `V33`.
71+
- README, roadmap, PR template, package docs, demonstration docs, and workflows describe V33 active / V34 draft posture.
72+
- `check:v34-gate1` validates branch naming, spec family, notes, parity, roadmap truth, workflow posture, deployment-depth vocabulary, and promotion boundaries.
73+
- The V34 gate list is explicit before deployment-depth implementation begins.
74+
75+
### Gate 2: Host Capability And Environment Lane Catalog
76+
77+
Gate 2 inventories deployable runtime truth.
78+
79+
Closure acceptance:
80+
81+
- website, API, MCP API, ChatGPT App, pipeline workers, observers, broadcasters, proof services, repair jobs, object storage, database projection, and ledger projection are enumerated;
82+
- local, regtest, signet, staging-testnet, public testnet, mainnet-ready dry run, and value-bearing mainnet lanes are represented;
83+
- value-bearing mainnet is visible as blocked, not hidden confidence;
84+
- `.bitcode/v34-deployment-host-capability-catalog.json` and `.bitcode/v34-environment-lane-contracts.json` are source-safe generated artifacts.
85+
86+
### Gate 3: Distributed Execution Runtime Contracts
87+
88+
Gate 3 defines `DistributedExecutionRuntimeReceipt`.
89+
90+
Closure acceptance:
91+
92+
- pipeline runs, PTRR agents, ThricifiedGenerations, tool calls, ledger operations, wallet operations, proof generation, object-storage writes, and repair jobs emit typed receipt shapes;
93+
- long-running work is not required to finish inside a request/response route handler;
94+
- receipts contain input roots, output roots, log roots, storage roots, ledger/database roots, status, and repair posture without serializing secrets or protected source.
95+
96+
### Gate 4: Ledger Database Object Storage Deployment Posture
97+
98+
Gate 4 defines durable storage posture.
99+
100+
Closure acceptance:
101+
102+
- ledger-derived state, canonical database projections, object storage, proof artifacts, audit logs, rollback material, backups, retention, encryption posture, and repair commands are specified and tested;
103+
- source-bearing AssetPack storage remains locked before settlement;
104+
- database and ledger projection drift has a repair posture.
105+
106+
### Gate 5: Secret Rotation And Credential Boundary Operations
107+
108+
Gate 5 defines credential operations.
109+
110+
Closure acceptance:
111+
112+
- OpenAI, Supabase, Vercel, GitHub, wallet, object storage, webhook, MCP, and ChatGPT App secret families are cataloged without tracked values;
113+
- rotation commands, cadence, CI masking, leak response, and blast-radius notes exist;
114+
- generated artifacts and logs prove no secret-shaped values are serialized.
115+
116+
### Gate 6: Migration CI/CD Deployment Approval Gates
117+
118+
Gate 6 hardens release automation.
119+
120+
Closure acceptance:
121+
122+
- schema migration approval, generated type refresh, route scans, build/test gates, generated artifact freshness, Vercel/Supabase lane checks, and promotion commits are fail-closed;
123+
- deployment approvals carry proof roots and reviewer posture;
124+
- gate-quality and canon-quality workflows remain greenable and promotion workflows remain version-aware.
125+
126+
### Gate 7: Runtime Observers Broadcasters Repair Jobs
127+
128+
Gate 7 makes background deployment work explicit.
129+
130+
Closure acceptance:
131+
132+
- settlement observers, ledger broadcasters, finality watchers, database projection repair jobs, object-storage repair jobs, generated proof jobs, and queue consumers have host capabilities, lane contracts, receipts, and replay commands;
133+
- observer/broadcaster drift is repairable and blocks unlock when unsafe.
134+
135+
### Gate 8: Rollback Upgrade Data Repair Playbooks
136+
137+
Gate 8 defines operator playbooks.
138+
139+
Closure acceptance:
140+
141+
- rollback, upgrade, migration rollback, object-storage repair, database repair, ledger projection repair, secret rotation incident response, and generated artifact repair playbooks exist;
142+
- each playbook names entry condition, operator approval, commands, proof roots, verification, and fail-closed result.
143+
144+
### Gate 9: Local Staging Testnet Deployment Rehearsal
145+
146+
Gate 9 proves deployability before promotion.
147+
148+
Closure acceptance:
149+
150+
- local and staging-testnet rehearsals exercise Terminal, public API, MCP API, ChatGPT App contract surfaces, Reading pipeline execution receipts, settlement/finality simulation, storage posture, repair posture, and source-safe logs;
151+
- screenshots or logs are source-safe and proof-rooted;
152+
- value-bearing mainnet remains blocked.
153+
154+
### Gate 10: V34 Promotion Readiness
155+
156+
Gate 10 owns final generated proof, promotion workflow support, source-safe `.bitcode/v34-promotion-readiness-report.json`, and V34 closure.
157+
158+
Closure acceptance:
159+
160+
- V34 promotion checks validate all deployment artifacts, host/lane contracts, runtime receipts, storage posture, secret rotation posture, migration approvals, observer/repair jobs, rehearsal proof, and generated proof appendix support;
161+
- promotion scripts support V34 command planning, dry-run, generated proof output, and derived promotion commit body generation;
162+
- promotion rewrites runtime posture to active V34 / draft V35 only after validations pass.
163+
164+
## Completion condition
165+
166+
This delta is complete when Gate 1 is merged into `version/v34`, the roadmap and docs are truthful for V33 active / V34 draft posture, and the gate checker prevents V34 from drifting back into V33 interface-depth wording or hidden deployment assumptions.

BITCODE_SPEC_V34_NOTES.md

Lines changed: 51 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,70 @@
33
## Status
44

55
- Version: `V34`
6-
- V34 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 V34 yet
12-
- Source parity state: not opened; V34 source parity begins only after V34 draft opening
13-
- Scope: future notes for deeper Deployment after V28 Protocol/Terminal/MCP/ChatGPT MVP QA, V29 Terminal depth, V30 Protocol/BTD hardening, V31 Auxillaries depth, V32 provation/testing depth, and V33 Interfaces.
6+
- V34 state: Gate 1 deployment-roadmap opening is active over promoted V33 canon
7+
- Current canonical/latest target: `V33`
8+
- Prior canonical anchor: `BITCODE_SPEC_V33.md`
9+
- Prior generated proof appendix: `BITCODE_SPEC_V33_PROVEN.md`
10+
- Generated structured artifact inventory: draft V34 specifying artifacts `.bitcode/v34-spec-family-report.json`, `.bitcode/v34-canonical-input-report.json`, and later deployment-depth artifacts as gates close
11+
- Source parity state: V34 deployment-depth source parity begins at Gate 1 and remains drafted until each gate closes
12+
- Scope: active draft notes for deployment depth after V33 commercial interface canon
1413

15-
This NOTES file does not promote V34 and does not open V34 implementation.
14+
This NOTES file does not promote V34.
15+
It guides V34 drafting while `BITCODE_SPEC.txt` remains `V33`.
1616

1717
## Notes companion rule
1818

19-
This file is planning memory only.
20-
Requirements become binding only when V34 is explicitly opened as the draft-target SPEC family.
19+
This file is planning memory for the active V34 draft family.
20+
Requirements are binding only when they are also represented in `BITCODE_SPEC_V34.md`, `BITCODE_SPEC_V34_DELTA.md`, `BITCODE_SPEC_V34_PARITY_MATRIX.md`, source, tests, generated artifacts, and gate checks.
2121

2222
## Concise current-system reading
2323

24-
V28 owns commercial Protocol/Terminal MVP QA.
25-
V34 owns the deployment depth needed before the system can behave like a testnet-ready commercial Bitcode application.
24+
V33 is the active canon.
25+
It proved the source-safe external interface layer across MCP API, ChatGPT App, public API, package-owned schemas, interface authorization, Read license and AssetPack rights contracts, compatibility matrices, telemetry/proof hooks, and consumer UX proof.
2626

27-
## Intended V34 focus
27+
V34 owns deployment depth.
28+
The commercial Bitcode system must now be deployable, lane-aware, recoverable, proof-producing, and rehearsal-backed without changing V33 Protocol/BTD, Reading, or interface law.
2829

29-
V34 owns deeper Deployment:
30+
## Simplified-spec reading rule
3031

31-
- host capabilities for website, API, MCP, ChatGPT App, workers, observers, broadcasters, and proof services;
32-
- real executions and distributed compute aligned with provations and operational receipts;
33-
- runtime expectations for wallet, BTC fee, ledger observation, Terminal journals, protocol settlement, reconciliation, and repair jobs;
34-
- storage expectations for ledger-derived state, metaphysical canonical database state, object storage, proof artifacts, audit logs, and rollback material;
35-
- CI/CD for canonical promotions, generated proof artifacts, migration sequencing, route scans, build/test gates, and deployment approvals;
36-
- environment-lane posture across local, regtest, signet, public testnet, mainnet-ready, and value-bearing mainnet;
37-
- deployment rollback, upgrade, secret rotation, data repair, and operational approval playbooks.
32+
Read the system as:
33+
34+
1. V33 defines what Bitcode is allowed to do commercially.
35+
2. V34 defines where and how that system may run.
36+
3. A deployment lane is not a source version.
37+
4. A runtime dashboard is not proof unless it produces a `DistributedExecutionRuntimeReceipt` or a generated artifact.
38+
5. Value-bearing mainnet remains blocked until a future canon admits it.
39+
40+
## V34 gate plan
41+
42+
1. Gate 1: V34 Deployment Roadmap And Spec Opening.
43+
2. Gate 2: Host Capability And Environment Lane Catalog.
44+
3. Gate 3: Distributed Execution Runtime Contracts.
45+
4. Gate 4: Ledger Database Object Storage Deployment Posture.
46+
5. Gate 5: Secret Rotation And Credential Boundary Operations.
47+
6. Gate 6: Migration CI/CD Deployment Approval Gates.
48+
7. Gate 7: Runtime Observers Broadcasters Repair Jobs.
49+
8. Gate 8: Rollback Upgrade Data Repair Playbooks.
50+
9. Gate 9: Local Staging Testnet Deployment Rehearsal.
51+
10. Gate 10: V34 Promotion Readiness.
52+
53+
## Deployment-depth notes
54+
55+
- `DeploymentHostCapabilityCatalog` must make hosts explicit: website, API, MCP API, ChatGPT App, pipeline workers, observers, broadcasters, proof services, repair jobs, and storage carriers.
56+
- `EnvironmentLaneContract` must distinguish local, regtest, signet, staging-testnet, public testnet, mainnet-ready dry run, and value-bearing mainnet.
57+
- `DistributedExecutionRuntimeReceipt` must represent long-running Reading, settlement, wallet, proof, object-storage, and repair work without relying on route-handler duration.
58+
- `DeploymentStoragePosture` must cover ledger-derived state, database projection, object storage, proof artifacts, audit logs, rollback material, retention, encryption, and repair commands.
59+
- `SecretRotationPlan` must never place secret values in tracked files or generated artifacts.
60+
- `MigrationApprovalGate` must connect schema diffs, generated types, dry-runs, reviewer approvals, and rollback plans.
61+
- `DeploymentReadinessRehearsal` must prove local and staging-testnet readiness without value-bearing mainnet admission.
3862

3963
## Boundaries
4064

4165
V34 deploys and hardens the proven commercial system.
42-
It should not replace V33 interface finalization or V35 telemetry/documentation depth, though it must expose deployment facts that those later surfaces document and monitor.
66+
It must not replace V33 interface contracts or V35 telemetry/documentation breadth.
67+
It may expose deployment facts that V35 later documents and monitors.
4368

44-
## Return To V28
69+
## Return To V34
4570

46-
Do not start V34 implementation during V28.
47-
Record host, runtime, storage, distributed-execution, and promotion-CI/CD gaps found during V28 QA as future V34 inputs.
71+
Future V34 gates should begin by reading `BITCODE_SPEC.txt`, this notes file, the delta, and the parity matrix.
72+
They should then close one deployment-depth contract slice at a time with source, tests, generated artifacts, workflow support, and clear promotion readiness.

0 commit comments

Comments
 (0)