Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15,301 changes: 15,301 additions & 0 deletions .bitcode/v43-route-vocabulary-inventory.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .github/workflows/bitcode-canon-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ jobs:
if [ -f BITCODE_SPEC_V43.md ]; then
node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
fi
fi
else
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/bitcode-gate-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,9 @@ jobs:
if [ -f BITCODE_SPEC_V43.md ]; then
node scripts/check-bitcode-spec-family.mjs --version V43 --mode draft --current-target V42
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
fi
fi
else
echo "Unexpected BITCODE_SPEC.txt pointer: $POINTER" >&2
Expand Down Expand Up @@ -490,6 +493,9 @@ jobs:
if [ -f scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs ]; then
node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs --skip-branch-check
fi
if [ -f scripts/check-v43-gate2-route-vocabulary-inventory.mjs ]; then
node scripts/check-v43-gate2-route-vocabulary-inventory.mjs --skip-branch-check
fi
pnpm --filter @bitcode/protocol test
pnpm --filter @bitcode/btd exec jest --config jest.config.cjs --runInBand --forceExit
pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit
Expand Down
27 changes: 27 additions & 0 deletions BITCODE_SPEC_V43.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,33 @@ Gate 1 opens the V43 specification family, branch posture, workflow posture, che

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.

Gate 2 closes with the package-backed route vocabulary inventory
`V43RouteVocabularyInventory` and deterministic generated artifact
`.bitcode/v43-route-vocabulary-inventory.json`. The artifact records only
source-safe file/token counts, token totals, category totals, migration rows,
and proof roots. It does not serialize source snippets, raw prompts, protected
source, unpaid AssetPack source, provider responses, wallet private material,
private settlement payloads, credentials, or secrets.

The migration matrix is binding for later gates:

- `/exchange`, Exchange, and exchange activity names migrate to `/packs`,
Packs, and PackActivity under Gate 3, with redirect compatibility until old
links are retired.
- `/terminal` Reading state migrates to `/read` under Gate 4, preserving the
five-step Reading path and all Need review, Finding Fits, settlement, BTD
rights, delivery, and telemetry boundaries.
- `/terminal` Depositing state migrates to `/deposit` under Gate 5, where
deposit AssetPack options remain unminted, source-safe proposals until
depositor approval and Depository admission.
- Any retained debug cockpit is internal/operator-only and cannot be the
default product path or a parallel authority route.
- Redirect compatibility preserves transaction ids, reading stages, deposit
anchors, and proof roots without changing protocol authority.
- Self-referential product copy outside public docs must be removed during the
Gate 8 UX pass and replaced by route structure, labels, status, and
progressive proof detail.

## V43 Gate 3 Packs Activity Master-Detail Data Model

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.
Expand Down
15 changes: 14 additions & 1 deletion BITCODE_SPEC_V43_DELTA.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Prior canonical anchor: `BITCODE_SPEC_V42.md`
- Prior generated proof appendix: `BITCODE_SPEC_V42_PROVEN.md`
- Generated structured artifact inventory: `.bitcode/v43-spec-family-report.json`, `.bitcode/v43-canonical-input-report.json`, and V43 gate artifacts as introduced
- Source parity state: Gate 1 opens V43 specification and validation posture; implementation parity is gate-scoped
- Source parity state: Gate 1 opens V43 specification and validation posture; Gate 2 adds source-safe route vocabulary inventory and migration-matrix proof

## Why V43 exists

Expand All @@ -23,6 +23,7 @@ V42 proved the reliable MVP path, but the product route vocabulary is still tran
5. Deposit options must expose source-safe measurements, sub-criticality, demand, likely ROI, BTD potential, compensation posture, and admission blockers before approval.
6. `/read` remains the five-step Reading path: request read, review synthesized Need, request Finding Fits, review source-safe AssetPack preview, settle/buy/deliver.
7. Product UX outside public documentation must be self-explanatory through structure, labels, progressive detail, rich components, and visual quality, not self-referential copy.
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.

## Explicitly deferred

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

## Gate 2 delta closure

Gate 2 adds `V43RouteVocabularyInventory`, the generated
`.bitcode/v43-route-vocabulary-inventory.json` artifact, package exports,
protocol tests, workflow checks, and `check:v43-gate2`. The artifact inventories
`/exchange`, Exchange, `/terminal`, Terminal, `/packs`, `/read`, `/deposit`,
Reading, Depositing, PackActivity, DepositAssetPackOption, and self-referential
copy references with source-safe file/token counts. It also formalizes migration
rows for `/packs`, `/read`, `/deposit`, retained debug cockpit boundaries,
redirect compatibility, and product-copy cleanup without serializing source
snippets or source-bearing payloads.

## Commit-Body Direction

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:`.
13 changes: 13 additions & 0 deletions BITCODE_SPEC_V43_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,16 @@ The deposit-side pipeline should help an enterprise decide what IP to sell. It s
## V43 copy boundary

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.

## Gate 2 route vocabulary inventory note

Gate 2 closes by proving the current vocabulary surface before renaming it. The
source-safe `.bitcode/v43-route-vocabulary-inventory.json` artifact records
file/token counts for `/exchange`, Exchange, `/terminal`, Terminal, `/packs`,
`/read`, `/deposit`, Reading, Depositing, PackActivity,
DepositAssetPackOption, and self-referential copy references. Its migration
matrix prepares `/packs`, `/read`, `/deposit`, retained debug cockpit,
redirect compatibility, and later copy-removal work. The artifact is metadata
only; it intentionally excludes source snippets, raw prompts, provider
responses, protected source, unpaid AssetPack source, credentials, and wallet
or settlement private material.
11 changes: 7 additions & 4 deletions BITCODE_SPEC_V43_PARITY_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Prior canonical anchor: `BITCODE_SPEC_V42.md`
- Prior generated proof appendix: `BITCODE_SPEC_V42_PROVEN.md`
- Generated structured artifact inventory: `.bitcode/v43-spec-family-report.json`, `.bitcode/v43-canonical-input-report.json`, and future V43 gate artifacts
- Source parity state: V43 Gate 1 parity is documentation/workflow posture; implementation parity is pending
- Source parity state: V43 Gate 1 parity is documentation/workflow posture; V43 Gate 2 parity is source-safe inventory and migration planning

## Purpose

Expand All @@ -23,7 +23,7 @@ Audit V43 against `BITCODE_SPEC_V43.md`, V42 active canon, route source, package
| Area | Required V43 result | Source evidence | Judgment |
| --- | --- | --- | --- |
| 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 |
| Route vocabulary | `/exchange` renamed to `/packs`; `/terminal` split into `/read` and `/deposit` default paths | future Gate 2 artifact | draft-required |
| 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 |
| Packs master-detail | Searchable, sortable, filterable pack activity table and source-safe detail route | future Gate 3 artifact | draft-required |
| Read route | Five-step Reading UX owns Read Request through settlement/delivery | future Gate 4 artifact | draft-required |
| Deposit route | Connected-source deposit AssetPack option synthesis and review | future Gate 5 artifact | draft-required |
Expand All @@ -41,11 +41,14 @@ Audit V43 against `BITCODE_SPEC_V43.md`, V42 active canon, route source, package
| Package script | `check:v43-gate1` exists | drafted |
| Workflows | Gate/canon quality know active V42 / draft V43 | drafted |
| Documentation | README and roadmap name V43 route/product scope | drafted |
| Implementation | Route and pipeline source changes are not part of Gate 1 | accepted boundary |
| Gate 2 package proof | `V43RouteVocabularyInventory` exports, generated artifact, package test, workflow checks, and `check:v43-gate2` exist | implemented |
| Implementation | Route and pipeline source changes are not part of Gates 1 or 2 | accepted boundary |

## V43 accepted boundaries

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.
Gate 1 is allowed to specify and wire validation posture only. Gate 2 is allowed
to inventory and plan migration only. Neither gate may rename application routes
or add deposit option synthesis behavior before their owning implementation gates.

## V43 completion condition

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

Exchange is inherited V36 canon: market-wide activity master-detail, buy/sell/
bid/ask/cancel/accept/settle/history flows, AssetPack range trading,
Expand Down
7 changes: 4 additions & 3 deletions SPECIFICATIONS_ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
- Current active canonical pointer: `BITCODE_SPEC.txt` -> `V42`
- Current active canon: `BITCODE_SPEC_V42.md`
- Current draft target: `BITCODE_SPEC_V43.md`.
- Current working gate: V43 Gate 1 Packs, Read, Deposit Roadmap And Spec Opening.
- Next queued work after V43 Gate 1: route-vocabulary inventory and migration planning for `/exchange` to `/packs` and `/terminal` split into `/read` and `/deposit`.
- Current working gate: V43 Gate 2 Route Vocabulary Inventory And Migration Plan.
- Next queued work after V43 Gate 2: Packs activity master-detail data contracts and source-safe searchable activity projection.
- 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.
- 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.
- 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.
Expand All @@ -18,6 +18,7 @@
- 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`.
- 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`.
- 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`.
- 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`.
- 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.
- 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.
- 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.
Expand Down Expand Up @@ -196,6 +197,6 @@ They are referenced here for specification history only; active implementation w
- Do use `_legacy/` specifications to understand why current Bitcode concepts exist and what must not regress.
- V43 work must build on V42 active canon and V27 `$BTD` law unless a future promoted spec explicitly supersedes it.
- 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.
- V43 Gate 1 is specification/documentation/workflow posture only; later V43 gates own route migration, data models, pipelines, UI implementation, rehearsal, and promotion.
- 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.
- No implementation route should be versioned by spec number; source should move in place with the active canon.
- Future notes files are planning memory only until their version is explicitly opened as the draft-target SPEC family.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
"check:v42-promotion-readiness": "node scripts/generate-v42-promotion-readiness-report.mjs --check",
"check:v42-gate9": "node scripts/check-v42-gate9-promotion-readiness.mjs",
"check:v43-gate1": "node scripts/check-v43-gate1-packs-read-deposit-roadmap.mjs",
"generate:v43-route-vocabulary-inventory": "node scripts/generate-v43-route-vocabulary-inventory.mjs",
"check:v43-route-vocabulary-inventory": "node scripts/generate-v43-route-vocabulary-inventory.mjs --check",
"check:v43-gate2": "node scripts/check-v43-gate2-route-vocabulary-inventory.mjs",
"generate:v38-inference-surface-inventory": "node scripts/generate-v38-inference-surface-inventory.mjs",
"check:v38-inference-surface-inventory": "node scripts/generate-v38-inference-surface-inventory.mjs --check",
"check:v38-gate2": "node scripts/check-v38-gate2-inference-surface-inventory.mjs",
Expand Down
Loading
Loading