Skip to content

Commit 090dbe9

Browse files
V43 Gate 2: Inventory route vocabulary migration
Add the source-safe V43 route vocabulary inventory artifact, generator, checker, protocol exports, and protocol tests. Document the Packs, Read, Deposit migration matrix across the V43 spec family, roadmap, README surfaces, and gate/canon workflow checks. Proof run: pnpm run check:v43-route-vocabulary-inventory; pnpm run check:v43-gate2; pnpm run check:v43-gate1; pnpm --filter @bitcode/protocol test; pnpm --filter @bitcode/protocol typecheck; node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42; node scripts/check-bitcode-canonical-inputs.mjs --current-target V42; node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V42 --draft-target V43; git diff --check.
1 parent 7794b52 commit 090dbe9

18 files changed

Lines changed: 16199 additions & 9 deletions

.bitcode/v43-route-vocabulary-inventory.json

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@ jobs:
328328
if [ -f BITCODE_SPEC_V43.md ]; then
329329
node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42
330330
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
331+
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
332+
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
333+
fi
331334
fi
332335
else
333336
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,9 @@ jobs:
457457
if [ -f BITCODE_SPEC_V43.md ]; then
458458
node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42
459459
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
460+
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
461+
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
462+
fi
460463
fi
461464
else
462465
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
@@ -490,6 +493,9 @@ jobs:
490493
if [ -f scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs ]; then
491494
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
492495
fi
496+
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
497+
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
498+
fi
493499
pnpm --filter @bitcode/protocol test
494500
pnpm --filter @bitcode/btd exec jest --config jest.config.cjs --runInBand --forceExit
495501
pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit

BITCODE_SPEC_V43.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,33 @@ Gate 1 opens the V43 specification family, branch posture, workflow posture, che
107107

108108
Gate 2 must inventory every `/exchange`, Exchange, `/terminal`, Terminal, Reading, Depositing, and pack-activity route/component/test/doc/API/telemetry reference. It must produce a migration matrix for Packs, Read, Deposit, retained debug cockpit surfaces, redirects, compatibility boundaries, and removal of self-referential product copy.
109109

110+
Gate 2 closes with the package-backed route vocabulary inventory
111+
`V43RouteVocabularyInventory` and deterministic generated artifact
112+
`.bitcode/v43-route-vocabulary-inventory.json`. The artifact records only
113+
source-safe file/token counts, token totals, category totals, migration rows,
114+
and proof roots. It does not serialize source snippets, raw prompts, protected
115+
source, unpaid AssetPack source, provider responses, wallet private material,
116+
private settlement payloads, credentials, or secrets.
117+
118+
The migration matrix is binding for later gates:
119+
120+
- `/exchange`, Exchange, and exchange activity names migrate to `/packs`,
121+
Packs, and PackActivity under Gate 3, with redirect compatibility until old
122+
links are retired.
123+
- `/terminal` Reading state migrates to `/read` under Gate 4, preserving the
124+
five-step Reading path and all Need review, Finding Fits, settlement, BTD
125+
rights, delivery, and telemetry boundaries.
126+
- `/terminal` Depositing state migrates to `/deposit` under Gate 5, where
127+
deposit AssetPack options remain unminted, source-safe proposals until
128+
depositor approval and Depository admission.
129+
- Any retained debug cockpit is internal/operator-only and cannot be the
130+
default product path or a parallel authority route.
131+
- Redirect compatibility preserves transaction ids, reading stages, deposit
132+
anchors, and proof roots without changing protocol authority.
133+
- Self-referential product copy outside public docs must be removed during the
134+
Gate 8 UX pass and replaced by route structure, labels, status, and
135+
progressive proof detail.
136+
110137
## V43 Gate 3 Packs Activity Master-Detail Data Model
111138

112139
Gate 3 must implement PackActivity data contracts, route APIs, table search, column sort, filtering, detail projection, source-safe metadata expansion, proof-root display, settlement/compensation/delivery/repair state readback, and no-source leak tests.

BITCODE_SPEC_V43_DELTA.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Prior canonical anchor: `BITCODE_SPEC_V42.md`
99
- Prior generated proof appendix: `BITCODE_SPEC_V42_PROVEN.md`
1010
- Generated structured artifact inventory: `.bitcode/v43-spec-family-report.json`, `.bitcode/v43-canonical-input-report.json`, and V43 gate artifacts as introduced
11-
- Source parity state: Gate 1 opens V43 specification and validation posture; implementation parity is gate-scoped
11+
- Source parity state: Gate 1 opens V43 specification and validation posture; Gate 2 adds source-safe route vocabulary inventory and migration-matrix proof
1212

1313
## Why V43 exists
1414

@@ -23,6 +23,7 @@ V42 proved the reliable MVP path, but the product route vocabulary is still tran
2323
5. Deposit options must expose source-safe measurements, sub-criticality, demand, likely ROI, BTD potential, compensation posture, and admission blockers before approval.
2424
6. `/read` remains the five-step Reading path: request read, review synthesized Need, request Finding Fits, review source-safe AssetPack preview, settle/buy/deliver.
2525
7. Product UX outside public documentation must be self-explanatory through structure, labels, progressive detail, rich components, and visual quality, not self-referential copy.
26+
8. Gate 2 records the route vocabulary inventory in `.bitcode/v43-route-vocabulary-inventory.json` as source-safe file/token counts and a migration matrix only; the actual route rename and split remain owned by later gates.
2627

2728
## Explicitly deferred
2829

@@ -43,6 +44,18 @@ V42 proved the reliable MVP path, but the product route vocabulary is still tran
4344
9. Rehearse cross-route local/staging-testnet path.
4445
10. Close promotion readiness.
4546

47+
## Gate 2 delta closure
48+
49+
Gate 2 adds `V43RouteVocabularyInventory`, the generated
50+
`.bitcode/v43-route-vocabulary-inventory.json` artifact, package exports,
51+
protocol tests, workflow checks, and `check:v43-gate2`. The artifact inventories
52+
`/exchange`, Exchange, `/terminal`, Terminal, `/packs`, `/read`, `/deposit`,
53+
Reading, Depositing, PackActivity, DepositAssetPackOption, and self-referential
54+
copy references with source-safe file/token counts. It also formalizes migration
55+
rows for `/packs`, `/read`, `/deposit`, retained debug cockpit boundaries,
56+
redirect compatibility, and product-copy cleanup without serializing source
57+
snippets or source-bearing payloads.
58+
4659
## Commit-Body Direction
4760

4861
V43 gate commits should state the route/product surface changed, the protocol objects preserved, the proof/test commands run, and the source-safety boundaries maintained. Gate PR titles must begin with `V43 Gate N:`.

BITCODE_SPEC_V43_NOTES.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,16 @@ The deposit-side pipeline should help an enterprise decide what IP to sell. It s
4747
## V43 copy boundary
4848

4949
Outside public docs, avoid self-referential copy such as text explaining that a component is powerful or that Bitcode is doing a thing. Use clear route names, labels, status rows, measurement summaries, empty states, and expandable proof metadata. Public docs may explain the protocol; product UI should operate it.
50+
51+
## Gate 2 route vocabulary inventory note
52+
53+
Gate 2 closes by proving the current vocabulary surface before renaming it. The
54+
source-safe `.bitcode/v43-route-vocabulary-inventory.json` artifact records
55+
file/token counts for `/exchange`, Exchange, `/terminal`, Terminal, `/packs`,
56+
`/read`, `/deposit`, Reading, Depositing, PackActivity,
57+
DepositAssetPackOption, and self-referential copy references. Its migration
58+
matrix prepares `/packs`, `/read`, `/deposit`, retained debug cockpit,
59+
redirect compatibility, and later copy-removal work. The artifact is metadata
60+
only; it intentionally excludes source snippets, raw prompts, provider
61+
responses, protected source, unpaid AssetPack source, credentials, and wallet
62+
or settlement private material.

BITCODE_SPEC_V43_PARITY_MATRIX.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- Prior canonical anchor: `BITCODE_SPEC_V42.md`
99
- Prior generated proof appendix: `BITCODE_SPEC_V42_PROVEN.md`
1010
- Generated structured artifact inventory: `.bitcode/v43-spec-family-report.json`, `.bitcode/v43-canonical-input-report.json`, and future V43 gate artifacts
11-
- Source parity state: V43 Gate 1 parity is documentation/workflow posture; implementation parity is pending
11+
- Source parity state: V43 Gate 1 parity is documentation/workflow posture; V43 Gate 2 parity is source-safe inventory and migration planning
1212

1313
## Purpose
1414

@@ -23,7 +23,7 @@ Audit V43 against `BITCODE_SPEC_V43.md`, V42 active canon, route source, package
2323
| Area | Required V43 result | Source evidence | Judgment |
2424
| --- | --- | --- | --- |
2525
| Gate 1 roadmap | Active V42 / draft V43 posture, route vocabulary, gate plan, docs, checker, workflows | `BITCODE_SPEC_V43.md`, `scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs` | drafted |
26-
| Route vocabulary | `/exchange` renamed to `/packs`; `/terminal` split into `/read` and `/deposit` default paths | future Gate 2 artifact | draft-required |
26+
| Route vocabulary | `/exchange` to `/packs` and `/terminal` to `/read`/`/deposit` are inventoried with route vocabulary inventory, migration matrix, retained debug cockpit boundary, redirect compatibility, self-referential copy audit, and source-safe file/token counts | `packages/protocol/src/canonical/v43-route-vocabulary-inventory.js`, `.bitcode/v43-route-vocabulary-inventory.json`, `scripts/check-v43-gate2-route-vocabulary-inventory.mjs` | implemented |
2727
| Packs master-detail | Searchable, sortable, filterable pack activity table and source-safe detail route | future Gate 3 artifact | draft-required |
2828
| Read route | Five-step Reading UX owns Read Request through settlement/delivery | future Gate 4 artifact | draft-required |
2929
| Deposit route | Connected-source deposit AssetPack option synthesis and review | future Gate 5 artifact | draft-required |
@@ -41,11 +41,14 @@ Audit V43 against `BITCODE_SPEC_V43.md`, V42 active canon, route source, package
4141
| Package script | `check:v43-gate1` exists | drafted |
4242
| Workflows | Gate/canon quality know active V42 / draft V43 | drafted |
4343
| Documentation | README and roadmap name V43 route/product scope | drafted |
44-
| Implementation | Route and pipeline source changes are not part of Gate 1 | accepted boundary |
44+
| Gate 2 package proof | `V43RouteVocabularyInventory` exports, generated artifact, package test, workflow checks, and `check:v43-gate2` exist | implemented |
45+
| Implementation | Route and pipeline source changes are not part of Gates 1 or 2 | accepted boundary |
4546

4647
## V43 accepted boundaries
4748

48-
Gate 1 is allowed to specify and wire validation posture only. It must not rename application routes or add deposit option synthesis behavior before the migration inventory is complete.
49+
Gate 1 is allowed to specify and wire validation posture only. Gate 2 is allowed
50+
to inventory and plan migration only. Neither gate may rename application routes
51+
or add deposit option synthesis behavior before their owning implementation gates.
4952

5053
## V43 completion condition
5154

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,18 @@ That later UX cleanup should remove self-referential product copy outside
183183
public docs and make Depositing, Reading, and Pack activity understandable
184184
through route structure, concise labels, progressive disclosure, and rich
185185
themed reusable components.
186+
V43 Gate 2 adds `V43RouteVocabularyInventory`,
187+
`.bitcode/v43-route-vocabulary-inventory.json`,
188+
`generate:v43-route-vocabulary-inventory`,
189+
`check:v43-route-vocabulary-inventory`, and `check:v43-gate2`. It inventories
190+
`/exchange`, Exchange, `/terminal`, Terminal, `/packs`, `/read`, `/deposit`,
191+
Reading, Depositing, PackActivity, DepositAssetPackOption, and
192+
self-referential copy references as source-safe file/token counts. It also
193+
records the migration matrix for `/packs`, `/read`, `/deposit`, retained debug
194+
cockpit boundaries, redirect compatibility, and later copy cleanup without
195+
renaming routes in Gate 2 or serializing source snippets, protected source, raw
196+
prompts, provider responses, unpaid AssetPack source, credentials, or wallet
197+
and settlement private material.
186198

187199
Exchange is inherited V36 canon: market-wide activity master-detail, buy/sell/
188200
bid/ask/cancel/accept/settle/history flows, AssetPack range trading,

SPECIFICATIONS_ROADMAP.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
- Current active canonical pointer: `BITCODE_SPEC.txt` -> `V42`
66
- Current active canon: `BITCODE_SPEC_V42.md`
77
- Current draft target: `BITCODE_SPEC_V43.md`.
8-
- Current working gate: V43 Gate 1 Packs, Read, Deposit Roadmap And Spec Opening.
9-
- Next queued work after V43 Gate 1: route-vocabulary inventory and migration planning for `/exchange` to `/packs` and `/terminal` split into `/read` and `/deposit`.
8+
- Current working gate: V43 Gate 2 Route Vocabulary Inventory And Migration Plan.
9+
- Next queued work after V43 Gate 2: Packs activity master-detail data contracts and source-safe searchable activity projection.
1010
- Latest closed version: V42 Reliable MVP Experience, which promoted shortest-path Depositing, five-step Reading, ReadNeed review/resynthesis, ReadFitsFinding source-safe preview and quote, settlement rights transfer, repository delivery, AI-reading demonstration, local/staging MVP rehearsal, and V42 promotion readiness.
1111
- Recent V42 canonical promotion anchor: V42 canonical promotion updated `BITCODE_SPEC.txt` to `V42`, generated `BITCODE_SPEC_V42_PROVEN.md`, preserved active V42 / draft V43 runtime posture, and closed reliable MVP experience canon.
1212
- Recent V42 opening anchor: reliable MVP experience opens over promoted V41 with V42 SPEC, DELTA, NOTES, and PARITY files, `check:v42-gate1`, active V41 / draft V42 posture, and a nine-gate plan for shortest-path Depositing, five-step Reading, ReadNeed product closure, ReadFitsFinding preview and quote closure, settlement and repository delivery, AI-reading demonstration, local/staging rehearsal, and promotion readiness.
@@ -18,6 +18,7 @@
1818
- V42 Gate 7 closure anchor: reliable MVP experience now owns AI-reading demonstration proof through `protocol-demonstration/src/ai-reading-demonstration.js`, public-data-only baseline scoring, reviewed local ReadNeed synthesis, local Depository Finding Fits selection, source-safe AssetPack preview, AssetPack-enhanced AI-reading answer scoring, deterministic benchmark uplift, `.bitcode/v42-ai-reading-demonstration.json`, focused demonstration/protocol tests, workflow wiring, and `check:v42-gate7`.
1919
- V42 Gate 8 closure anchor: reliable MVP experience now owns local/staging-testnet full MVP rehearsal proof through `ReadingLocalStagingRehearsal`, source-safe V42 operator receipts, staging-testnet Supabase project `tkpyosihuouusyaxtbau`, Gates 2 through 7 generated artifact binding, deposit source, request read, review synthesized Need, request Finding Fits, review source-safe AssetPack preview and quote, buy/settle, receive repository delivery, rich telemetry/database readback, ledger/database/storage reconciliation, blocked value-bearing mainnet, deterministic `.bitcode/v42-local-staging-mvp-rehearsal.json`, focused package/protocol/UAPI checks, workflow wiring, and `check:v42-gate8`.
2020
- V42 Gate 9 closure anchor: reliable MVP experience now owns package-backed `V42PromotionReadinessReport`, deterministic `.bitcode/v42-promotion-readiness-report.json`, `BITCODE_SPEC_V42_PROVEN.md` generation support, `v42-canon-promotion.yml`, promotion command dry-run support, gate/canon workflow posture, active V42 / draft V43 runtime preparation, all V42 reliable MVP artifacts covered, source-safe, parseable, and workflow-bound, and value-bearing mainnet admission blocked through `check:v42-gate9`.
21+
- V43 Gate 2 closure anchor: route-product cleanup now owns package-backed `V43RouteVocabularyInventory`, deterministic `.bitcode/v43-route-vocabulary-inventory.json`, source-safe file/token counts across `/exchange`, Exchange, `/terminal`, Terminal, `/packs`, `/read`, `/deposit`, Reading, Depositing, PackActivity, DepositAssetPackOption, and self-referential copy references, a migration matrix for `/packs`, `/read`, `/deposit`, retained debug cockpit boundaries, redirect compatibility, and copy cleanup, package exports, protocol tests, workflow wiring, and `check:v43-gate2`.
2122
- Recent V41 closure anchor: V41 canonical promotion updated `BITCODE_SPEC.txt` to `V41`, generated `BITCODE_SPEC_V41_PROVEN.md`, preserved active V41 / draft V42 runtime posture, and closed prompt-program excellence canon.
2223
- Recent V40 closure anchor: V40 canonical promotion updated `BITCODE_SPEC.txt` to `V40`, generated `BITCODE_SPEC_V40_PROVEN.md`, preserved active V40 / draft V41 runtime posture, and closed exhaustive commercial application testing canon.
2324
- Recent V39 closure anchor: V39 canonical promotion updated `BITCODE_SPEC.txt` to `V39`, generated `BITCODE_SPEC_V39_PROVEN.md`, preserved active V39 / draft V40 runtime posture, and closed commercial Reading readiness canon.
@@ -196,6 +197,6 @@ They are referenced here for specification history only; active implementation w
196197
- Do use `_legacy/` specifications to understand why current Bitcode concepts exist and what must not regress.
197198
- V43 work must build on V42 active canon and V27 `$BTD` law unless a future promoted spec explicitly supersedes it.
198199
- V43 is the active draft target for agentic deposit-side AssetPack option synthesis, `/read` and `/deposit` route separation, `/packs` renaming, searchable pack activity master-detail, and UX/product cleanup.
199-
- V43 Gate 1 is specification/documentation/workflow posture only; later V43 gates own route migration, data models, pipelines, UI implementation, rehearsal, and promotion.
200+
- V43 Gate 1 is specification/documentation/workflow posture only; V43 Gate 2 inventories route vocabulary and migration plans only. Later V43 gates own route migration, data models, pipelines, UI implementation, rehearsal, and promotion.
200201
- No implementation route should be versioned by spec number; source should move in place with the active canon.
201202
- Future notes files are planning memory only until their version is explicitly opened as the draft-target SPEC family.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@
330330
"check:v42-promotion-readiness": "node scripts/generate-v42-promotion-readiness-report.mjs --check",
331331
"check:v42-gate9": "node scripts/check-v42-gate9-promotion-readiness.mjs",
332332
"check:v43-gate1": "node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs",
333+
"generate:v43-route-vocabulary-inventory": "node scripts/generate-v43-route-vocabulary-inventory.mjs",
334+
"check:v43-route-vocabulary-inventory": "node scripts/generate-v43-route-vocabulary-inventory.mjs --check",
335+
"check:v43-gate2": "node scripts/check-v43-gate2-route-vocabulary-inventory.mjs",
333336
"generate:v38-inference-surface-inventory": "node scripts/generate-v38-inference-surface-inventory.mjs",
334337
"check:v38-inference-surface-inventory": "node scripts/generate-v38-inference-surface-inventory.mjs --check",
335338
"check:v38-gate2": "node scripts/check-v38-gate2-inference-surface-inventory.mjs",

0 commit comments

Comments
 (0)