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
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,40 @@ It may not expose protected AssetPack source, wallet secrets, provider tokens, o
247
247
- Current validating commands and parity basis: pipeline contract tests, route tests, prompt rendering/audit checks, local live OpenAI validation, and V29 gate checks.
248
248
- Current accepted boundaries: full-profile async push completion can deepen in V29 gates but cannot bypass source-safe preview or settlement boundaries.
249
249
250
+
#### V29 Reading pipeline observability canon
251
+
252
+
Reading pipeline observability is contract-projected, not ad hoc.
253
+
The asset-pack package owns the inventory for `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis`, and live harness events must project back to that inventory whenever they are emitted.
254
+
255
+
The observable contract levels are:
256
+
257
+
- execution;
258
+
- phase;
259
+
- PTRR agent;
260
+
- PTRR step;
261
+
- ThricifiedGeneration;
262
+
- prompt;
263
+
- tool;
264
+
- raw output;
265
+
- parsed output.
266
+
267
+
For every live Reading stream event that can be associated with a contract, Terminal-visible telemetry carries:
268
+
269
+
- pipeline name;
270
+
- phase id;
271
+
- PTRR agent id;
272
+
- PTRR step id and step name;
273
+
- ThricifiedGeneration id and failsafe;
274
+
- prompt template id and generation prompt ids;
275
+
- tool id, input type, and output type when the event is tool-backed;
276
+
- declared return type and output schema;
277
+
- prompt template/interpolated prompt presence;
278
+
- reasoning, judgment, raw model response, and parsed typed output presence.
279
+
280
+
The Vercel Sandbox harness must export both the observability inventory and an observability coverage summary in its evidence artifact.
281
+
Coverage readback is not a settlement proof by itself; it is the operational proof that Terminal can debug a live Reading run without relying on browser network logs.
282
+
Failure to observe prompt, raw-output, parsed-output, or tool telemetry in a run that reaches those stages is a blocked-readiness signal for Gate 4+ QA.
283
+
250
284
### Fit, recall, ranking, and verification
251
285
252
286
- Current canonical objects and emitted artifacts: FindingFits query root, lexical search result, vector search result, fit deposit list, candidate score, ranking root, blocker list, and verification decision.
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V29_DELTA.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,15 @@ Closure acceptance:
113
113
114
114
Gate 4 owns deep Terminal visibility over `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis`, including execution, phase, PTRR agent, PTRR step, ThricifiedGeneration, prompt, tool, output, and typed parse telemetry.
115
115
116
+
Closure acceptance:
117
+
118
+
-`@bitcode/pipeline-asset-pack` exposes a Reading pipeline observability inventory and `ReadingPipelineTelemetryProjection` over the existing Reading pipeline contracts.
119
+
- The inventory accounts for both Reading pipelines, 11 phases, 12 PTRR agents, 48 PTRR steps, 144 ThricifiedGenerations, all registered prompt templates, all ThricifiedGeneration prompt ids, and the four Finding Fits tools.
- Harness evidence includes Reading observability inventory and coverage readback so local/staging failures show exactly which telemetry levels were not observed.
122
+
- Terminal converts harness SSE events into the shared execution log shape with contract-aware execution state, summary rows, and expandable metadata for prompt template, interpolated prompt, raw response, parsed typed output, tools, and output schema.
123
+
- Gate-quality CI runs the Gate 4 checker plus focused asset-pack, pipeline-host, Terminal harness, and execution-log header tests.
124
+
116
125
### Gate 5: AssetPack Disclosure Rights And Preview Depth
117
126
118
127
Gate 5 owns AssetPack range detail, owner-read/licensed-read/denied-state flows, source-safe preview, disclosure policy review, paid unlock state, and protected-source leakage tests.
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V29_NOTES.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ For a simplified reading of V29:
60
60
61
61
4.**Gate 4: Reading Transaction Recovery And Pipeline Observability**
62
62
- Make `ReadNeedComprehensionSynthesis` and `ReadFitsFindingSynthesis` execution telemetry fully readable in Terminal at execution, phase, PTRR agent, PTRR step, ThricifiedGeneration, prompt, tool, raw output, and parsed output levels.
63
+
- Acceptance detail: the asset-pack package owns the observability inventory/projection; the sandbox harness stamps live stream events with contract identifiers and coverage; Terminal renders those identifiers in the shared execution stream header, row summary, and expandable metadata.
63
64
64
65
5.**Gate 5: AssetPack Disclosure Rights And Preview Depth**
65
66
- Deepen source-safe preview, AssetPack range detail, owner-read/licensed-read/denied state, disclosure policy review, paid unlock, and source-leakage tests.
@@ -120,6 +121,19 @@ Accepted Gate 3 posture:
120
121
- Terminal has a Wallet/BTC detail section so fee readiness is visible before raw ledger payload inspection.
121
122
- Gate 3 does not implement settlement reconciliation repair; Gate 6 owns drift repair and ledger/database reconciliation action depth.
122
123
124
+
## Gate 4 working notes
125
+
126
+
Gate 4 makes Reading pipeline telemetry readable without changing the underlying execution primitive names.
127
+
Execution remains the base primitive, Reading pipelines compose phases, each phase owns PTRR agents, each PTRR agent owns plan/try/refine/retry steps, and each step carries ThricifiedGeneration prompt/output evidence.
128
+
129
+
Accepted Gate 4 posture:
130
+
131
+
-`reading-pipeline-contract.ts` remains the source of pipeline, phase, PTRR agent, PTRR step, ThricifiedGeneration, prompt, tool, and return-type contracts.
132
+
-`reading-pipeline-observability.ts` projects live stream events onto those contracts and reports observability coverage.
133
+
- The sandbox harness records contract-aware telemetry events and stores coverage in exported evidence.
134
+
- Terminal's live harness stream shows pipeline, phase id, PTRR agent, PTRR step, ThricifiedGeneration, prompt, tool, output schema, raw output posture, and parsed typed output posture through the shared execution log components.
135
+
- Gate 4 does not implement disclosure-depth unlock, settlement repair, organization authority, or full browser proof; later gates own those slices.
136
+
123
137
## Later-version boundaries
124
138
125
139
- V30 remains reserved for Protocol/BTD hardening that is not necessary to close Terminal transaction depth.
@@ -139,3 +140,26 @@ Gate 2 is complete when Terminal selected transaction state rewrites recoverable
139
140
## Gate 3 completion condition
140
141
141
142
Gate 3 is complete when package primitives model BTC quotes, signer recovery, operation posture, and blocked readiness; API responses serialize operation posture; Terminal has a Wallet/BTC route-owned detail section; focused package and UAPI tests pass; `check:v29-gate3` passes; CI invokes the checker and tests; docs name the implemented source surfaces; and the gate branch is committed and pushed for review into `version/v29`.
143
+
144
+
## Gate 4 Parity
145
+
146
+
| Requirement | Source evidence | Current V29 judgment |
147
+
| --- | --- | --- |
148
+
| Reading pipeline contracts remain the source of truth |`reading-pipeline-contract.ts`, contract tests | drafted |
149
+
| Observability inventory covers both Reading pipelines and all contract levels |`reading-pipeline-observability.ts`, observability tests | drafted |
150
+
| Live sandbox harness stamps stream events with contract ids and output posture |`packages/pipeline-hosts/src/asset-pack-harness.ts`, harness tests | drafted |
| Terminal summaries and execution state expose pipeline, phase, PTRR, ThricifiedGeneration, prompt, tool, and schema fields |`terminal-pipeline-harness-client.ts`, Terminal harness tests | drafted |
153
+
| Shared execution log header renders contract-aware identifiers without raw JSON first |`pipeline-execution-log-header.tsx`, header tests | drafted |
154
+
| Gate 4 checker is wired to package scripts and CI |`scripts/check-v29-gate4-reading-pipeline-observability.mjs`, `package.json`, gate workflow | drafted |
155
+
156
+
## Gate 4 accepted boundaries
157
+
158
+
- Gate 4 does not add a new execution primitive; it projects existing execution, pipeline, PTRR, and ThricifiedGeneration primitives.
159
+
- Gate 4 does not expose protected AssetPack source before settlement.
160
+
- Gate 4 does not close disclosure-depth unlock, settlement repair, organization authority, or full browser proof.
161
+
- Gate 4 does not add versioned API routes or source identifiers.
162
+
163
+
## Gate 4 completion condition
164
+
165
+
Gate 4 is complete when Reading pipeline observability is package-owned, stream events are contract-projected in the sandbox harness, Terminal renders the projection through shared execution components, focused package and UAPI tests pass, `check:v29-gate4` passes, CI invokes the checker and tests, docs name the implemented source surfaces, and the gate branch is committed and pushed for review into `version/v29`.
0 commit comments