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_V29.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,27 @@ Layer boundaries:
147
147
- Ledger records and journals are source-of-truth for settlement/finality; Supabase/PostgreSQL projections must not contradict them.
148
148
- Source-safe previews may expose measurements, roots, score bands, policy ids, fee quote roots, and settlement posture; they may not expose protected source before payment.
V29 Gate 8 makes demonstration-origin canonical helpers package-native commercial APIs.
153
+
The formal package boundary is `packages/protocol` exposed as `@bitcode/protocol`.
154
+
Commercial scripts, workflows, API surfaces, Terminal code, and package tests must import canonical posture, spec-family checks, canon-drift checks, canonical-input checks, and proof generation from `packages/protocol/src/index.js` or from the package export.
155
+
They must not import `protocol-demonstration/src/*` runtime modules.
156
+
157
+
`protocol-demonstration/` remains valuable, but it is a standalone minimal witness, not a commercial runtime dependency.
158
+
It may be executed by its own test and proof workflows.
159
+
It may be cited as historical evidence by generated proof inventories.
160
+
It must not be the imported implementation source for gate checks, promotion scripts, commercial APIs, or Terminal runtime code.
161
+
162
+
The commercial protocol package owns the active/draft posture while V29 is in flight:
163
+
164
+
-`ACTIVE_CANON_VERSION = 'V28'`;
165
+
-`DRAFT_TARGET_VERSION = 'V29'`;
166
+
- spec-family, canonical-input, canon-posture-drift, and proven-generation helpers are exported through the package index;
167
+
- package tests and Gate 8 checks fail closed on direct demonstration-source imports.
168
+
169
+
This formalization preserves the demonstration boundary while allowing V29 promotion and later gates to operate from package-owned commercial source.
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V29_DELTA.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,16 @@ Closure acceptance:
169
169
170
170
Gate 8 owns cleanup of freshly ported demonstration-origin internals into package-native APIs, no demonstration runtime imports, durable package tests, and updated internal/public documentation.
171
171
172
+
Closure acceptance:
173
+
174
+
-`@bitcode/protocol` exports active/draft canon posture, spec-family checks, canonical-input checks, canon-posture-drift checks, and canonical proven-generation helpers through the package index and type declarations.
175
+
- Root scripts for spec quality, spec-family validation, canonical-input validation, canon-posture drift, pre-commit posture, and proven generation import those helpers from the protocol package instead of `protocol-demonstration/src/*`.
176
+
- Commercial/runtime source scans fail closed on direct imports from standalone demonstration source.
177
+
- The protocol package records active V28 / draft V29 posture while V29 is being developed.
178
+
- Protocol package tests prove exported helpers, posture, provenance-helper availability, repository-revision deposit behavior, and direct demonstration-source import boundaries.
179
+
- Gate-quality CI runs the Gate 8 checker, protocol package typecheck/test, and the UAPI commercial protocol boundary test.
180
+
- V29 SPEC, DELTA, NOTES, PARITY, protocol package README, package scripts, and gate-quality workflow name the Gate 8 formalization boundary.
181
+
172
182
### Gate 9: Terminal UX Quality And Browser Proof
173
183
174
184
Gate 9 owns accessibility, responsive layout, copy/prose clarity, empty/loading/blocked/failed states, Playwright coverage, and visual/browser verification for the complete Terminal transaction cockpit.
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V29_NOTES.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,27 @@ Gate 7 completion condition:
188
188
- Focused BTD, API, MCP, ChatGPT App, pipeline-hosts, and UAPI tests cover the authority primitive and interface surfaces.
189
189
- Spec, delta, notes, parity, Terminal README, package scripts, and gate-quality workflow name the Gate 7 closure surface.
190
190
191
+
## Gate 8 working notes
192
+
193
+
Gate 8 is a commercial-source boundary cleanup gate.
194
+
Earlier versions intentionally kept some proof and canon helpers close to the standalone demonstration so the minimal witness could remain easy to audit.
195
+
V29 keeps that witness, but the commercial repository now needs package-native imports for every helper used by scripts, workflows, Terminal, APIs, and promotion checks.
196
+
197
+
Accepted Gate 8 posture:
198
+
199
+
-`@bitcode/protocol` is the package boundary for canonical posture, spec-family, canonical-input, canon-posture-drift, and proven-generation helpers.
200
+
-`protocol-demonstration/` remains executable as a standalone minimal witness and may remain cited in proof inventories.
201
+
- Commercial/runtime code and root scripts must not import from `protocol-demonstration/src/*`.
202
+
- The protocol package posture must say active V28 and draft V29 until promotion.
203
+
- The protocol package tests own the durable import-boundary scan so future gates cannot silently regress into demonstration runtime imports.
204
+
- Gate-quality CI must run protocol package typecheck/test, the Gate 8 checker, and the UAPI commercial protocol boundary test.
205
+
206
+
Gate 8 completion condition:
207
+
208
+
-`pnpm run check:v29-gate8` passes.
209
+
- Protocol package tests pass.
210
+
- The spec family, package README, root scripts, and CI all name and enforce the package-native boundary.
211
+
191
212
## Later-version boundaries
192
213
193
214
- V30 remains reserved for Protocol/BTD hardening that is not necessary to close Terminal transaction depth.
| Commercial formalization | Gate 8 | packages/protocol, package tests, import scans, docs| pending| Demonstration-origin commercial internals are package-native and no runtime demo imports remain. |
58
+
| Commercial formalization | Gate 8 |`packages/protocol/src/index.js`, `packages/protocol/src/canon-posture.js`, root scripts, protocol package tests, import scans, docs, Gate 8 checker | drafted| Demonstration-origin commercial internals are package-native and no direct demonstration-source imports remain in commercial/runtime sources. |
59
59
| Terminal UX quality | Gate 9 | Playwright/Jest/a11y/responsive/browser QA | pending | Complete transaction cockpit is usable by default and inspectable in detail. |
60
60
| Promotion readiness | Gate 10 | promotion workflow, `.bitcode/v29-*`, `BITCODE_SPEC_V29_PROVEN.md`| pending |`version/v29` can promote to `main` only after all V29 checks pass. |
61
61
@@ -72,7 +72,8 @@ No `_legacy/` source is active source truth.
72
72
| Gate 4 Reading observability |`pnpm run check:v29-gate4` proves contract-aware Reading stream telemetry and Terminal rendering | drafted |
73
73
| Gate 5 AssetPack disclosure |`pnpm run check:v29-gate5` proves source-safe disclosure review, leakage detection, Terminal preview rendering, and PR title enforcement | drafted |
74
74
| Gate 7 organization authority |`pnpm run check:v29-gate7` proves shared org/interface authority across BTD, API, MCP, ChatGPT App, harness, and Terminal | drafted |
75
-
| Product implementation gates | Gates 8-9 close remaining Terminal transaction depth with tests and docs | pending |
75
+
| Gate 8 commercial formalization |`pnpm run check:v29-gate8` proves package-native protocol exports, V28/V29 posture, script import cleanup, docs, tests, and CI wiring | drafted |
-`packages/protocol/src/index.d.ts` declares the same package-native API surface for consumers that type-check against the protocol package.
255
+
-`packages/protocol/src/canon-posture.js` declares active V28 and draft V29 while V29 gates are in progress.
256
+
- Root scripts for spec-family checks, canonical-input checks, canon-posture drift, spec quality, pre-commit posture, and proven generation import through the protocol package source boundary.
257
+
-`packages/protocol/test/protocol-package-boundary.test.js` proves package exports, posture, provenance-helper availability, repository-revision deposit behavior, and direct demonstration-source import boundaries.
258
+
-`uapi/tests/protocolCommercialBoundary.test.ts` remains the commercial application boundary scan proving UAPI depends on `@bitcode/protocol` and not the standalone demonstration package.
259
+
-`.github/workflows/bitcode-gate-quality.yml` runs the Gate 8 checker, protocol package typecheck/test, and the commercial protocol boundary test.
260
+
261
+
Accepted boundaries:
262
+
263
+
- Gate 8 does not delete the standalone protocol demonstration.
264
+
- Gate 8 does not forbid generated proof inventories or historical documentation from citing `protocol-demonstration/` as evidence.
265
+
- Gate 8 forbids direct imports from standalone demonstration source in commercial/runtime source and root scripts.
266
+
- Gate 8 does not promote `BITCODE_SPEC.txt` to V29.
267
+
- Gate 8 does not add versioned API routes or source identifiers.
268
+
269
+
Gate 8 completion condition:
270
+
271
+
-`pnpm run check:v29-gate8` passes.
272
+
- Focused protocol package typecheck/test and the UAPI commercial protocol boundary test pass.
273
+
- V29 SPEC, DELTA, NOTES, PARITY, protocol package README, package scripts, and gate-quality workflow name the formalized package-native boundary.
274
+
- Root scripts use protocol package exports for canonical helpers and do not directly import `protocol-demonstration/src/*`.
0 commit comments