You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V30_PARITY_MATRIX.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ No `_legacy/` source is active source truth.
55
55
| --- | --- | --- | --- | --- |
56
56
| Draft family and branch posture | Gate 1 |`BITCODE_SPEC_V30.md`, DELTA, NOTES, PARITY, `BITCODE_SPEC.txt`, branch `v30/gate-1-roadmap-and-gating`| drafted | V30 family validates in draft mode over active V29 and `check:v30-gate1` passes. |
57
57
| Roadmap truth | Gate 1 |`SPECIFICATIONS_ROADMAP.md`, README, PR template, workflow posture | drafted | Roadmap states V29 active, V30 draft, and coherent V31-V37 responsibilities. |
58
-
| Protocol package API boundaries | Gate 2 |`packages/protocol`, `packages/btd`, `packages/api`, package READMEs/tests |pending| Shared Protocol/BTD objects have package-owned builders, parsers, validators, JSON-safe serializers, and tests. |
58
+
| Protocol package API boundaries | Gate 2 |`packages/btd/src/api-boundaries.ts`, `packages/api/src/routes/btd-crypto.ts`, package READMEs/tests |drafted| Shared Protocol/BTD objects have package-owned builders, parsers, validators, JSON-safe serializers, and tests. |
59
59
| Bitcoin Taproot PSBT fee rigor | Gate 3 | BTD fee/signer/PSBT primitives, API route adapters, tests | pending | BTC fee and signer states are typed, testnet/mainnet-safe, no-custody, and proof-rooted. |
@@ -93,6 +93,25 @@ No `_legacy/` source is active source truth.
93
93
94
94
- Gate 1 does not implement Protocol/BTD package hardening.
95
95
- Gate 1 does not create `BITCODE_SPEC_V30_PROVEN.md`.
96
+
97
+
## Gate 2 Parity
98
+
99
+
| Requirement | Source evidence | Current V30 judgment |
100
+
| --- | --- | --- |
101
+
| Package-owned BTD builders and parsers exist |`packages/btd/src/api-boundaries.ts` exports mint, registry, read-access, fee, ledger-anchor, Exchange, journal, reconciliation, deployment-readiness builders plus `parseBtdRequiredBigInt`, `parseBtdOptionalBigInt`, and `toBtdJsonSafe`| drafted |
102
+
| API route delegates BTD policy and receipt derivation |`packages/api/src/routes/btd-crypto.ts` imports package builders from `@bitcode/btd` and keeps route code scoped to auth, request parsing, registry projection reads/writes, and responses | drafted |
103
+
| Package tests cover the boundary |`packages/btd/__tests__/api-boundaries.test.ts` proves mint drafts, registry snapshots, read-access decisions, parsers, and JSON-safe serialization | drafted |
104
+
| Route tests consume package-owned builders |`packages/api/src/routes/__tests__/btd-crypto.test.ts` imports BTD builders from `@bitcode/btd` and route handlers from the API route module | drafted |
105
+
| Commercial runtime avoids standalone demonstration imports |`scripts/check-v30-gate2-protocol-package-api-boundaries.mjs` scans runtime source import statements for `protocol-demonstration/src` and `@bitcode/protocol-demonstration`| drafted |
106
+
| Package READMEs state accepted imports |`packages/btd/README.md`, `packages/api/README.md`, and `packages/protocol/README.md` name package ownership and accepted import direction | drafted |
107
+
| Gate checker protects the seam |`pnpm run check:v30-gate2` and gate-quality workflow call `scripts/check-v30-gate2-protocol-package-api-boundaries.mjs`| drafted |
108
+
109
+
## Gate 2 accepted boundaries
110
+
111
+
- Gate 2 does not change the active canon pointer.
112
+
- Gate 2 does not introduce bridge chain-of-record behavior.
113
+
- Gate 2 does not admit value-bearing mainnet settlement.
114
+
- Gate 2 does not remove existing API route persistence adapters; it narrows their policy and receipt derivation responsibilities to package calls.
96
115
- Gate 1 does not promote `BITCODE_SPEC.txt` to V30.
97
116
- Gate 1 may retarget workflows to active V29 / draft V30 so later gates are greenable.
98
117
- Gate 1 may update roadmap scope for V31-V37 to align with V28/V29 promotion learning without opening those versions.
Copy file name to clipboardExpand all lines: packages/api/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,14 @@ Unified Bitcode API orchestration layer. This package owns route-level request l
6
6
7
7
Interface-owned route bindings such as `uapi/app/api/*` should stay thin. They import formal route handlers from `packages/api` entry modules such as `@bitcode/api/src/routes/*`, while those handlers import narrower functionality from the appropriate subsystem packages.
8
8
9
+
For BTD routes, the accepted import direction is route code importing
10
+
package-owned builders, parsers, validators, and JSON serializers from
11
+
`@bitcode/btd`. The route-owned behavior is limited to authentication, request body
0 commit comments