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
It must make deposited source materials measurable, indexable, vector-searchable, metadata-searchable, rights-aware, and repairable as the source set that Finding Fits can search.
87
87
The gate is closed by package-backed source, deterministic source-safe artifact generation, deposit lifecycle tests, embedding/vector policy tests, Supabase/storage projection readback, and a checker that proves no protected source or credentials enter public artifacts.
88
88
89
+
Gate 2 introduces `DepositorySupplyIndex` as the package-owned source-safe
90
+
index over deposited source supply. Each `DepositorySupplyRecord` binds
readback posture, repair actions, and the depositor/reader rights boundary.
94
+
Its search documents are lexical, metadata, measurement, and vector documents
95
+
derived from source-safe metadata only. Raw protected source remains stored
96
+
outside the index and is never visible to the Reader before settlement. The
97
+
active vector policy remains OpenAI `text-embedding-3-small`, 1536 dimensions,
98
+
cosine `match_deliverable_vectors`; rows that are missing or dimension-invalid
99
+
produce repair posture rather than pretending the corpus is searchable.
100
+
`ReadFitsFindingSynthesis` consumes the index by converting records into
101
+
source-safe `DepositoryAsset` candidates for Finding Fits.
102
+
89
103
### Gate 3: Enterprise Reading UX State Machine
90
104
91
105
Gate 3 implements the five-step enterprise Reading path in Terminal and connected Conversation handoffs.
@@ -199,6 +213,8 @@ Current source-bearing implementation basis: package source and route contracts
199
213
Current validating commands and parity basis: active V38 promoted checks plus V39 gate checks.
200
214
Current accepted boundaries: V39 only changes inference/search surfaces that consume deposits.
201
215
216
+
Gate 2 implementation basis: `packages/pipelines/asset-pack/src/depository-supply-index.ts` owns `DepositorySupplyIndex`, `DepositorySupplyRecord`, `DepositorySupplySearchDocument`, `DepositorySupplyVectorProjection`, and `DepositorySupplyStorageProjection`. The deterministic source-safe proof artifact is `.bitcode/v39-depository-supply-indexing.json`, generated by `pnpm run generate:v39-depository-supply-indexing` and checked by `pnpm run check:v39-gate2`.
217
+
202
218
### Reading and prompt/inference ownership
203
219
204
220
Current canonical objects and emitted artifacts: Read Request, synthesized Need, prompt registry receipts, PromptPart benchmark fixtures, Failsafe receipts, ThricifiedGeneration receipts, and typed Need outputs.
Copy file name to clipboardExpand all lines: BITCODE_SPEC_V39_DELTA.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,13 @@ Closure acceptance:
81
81
82
82
Closure implementation:
83
83
84
-
- Pending Gate 2 work must define its package-owned canonical source and deterministic artifact path before implementation begins.
85
-
- The artifact must use a source-safe disclosure posture and include repair/replay acceptance criteria.
84
+
- V39 Gate 2 package source is `packages/pipelines/asset-pack/src/depository-supply-index.ts`.
85
+
-`DepositorySupplyIndex` and `DepositorySupplyRecord` normalize deposited source supply into source-safe lifecycle receipts with repository, branch, commit, proof, measurement, reconciliation readback, BTD range, depositor wallet, and source-safe search document roots.
86
+
- Source-safe search documents are lexical, metadata, measurement, and vector projections. They carry source-safe text roots, source path roots, symbol roots, constraint roots, and active vector policy metadata without protected source text.
- Storage projection binds the retained physical `deliverables` and `deliverable_vectors` tables to the active AssetPack evidence semantics.
89
+
-`ReadFitsFindingSynthesis` consumes `DepositorySupplyIndex` through `depositorySupplyAssetsFromIndex`, preserving source-safe handoff into candidate recall and ranking.
90
+
- The deterministic artifact path is `.bitcode/v39-depository-supply-indexing.json`; `pnpm run check:v39-gate2` validates artifact freshness, protocol tests, package tests, source-safety markers, docs, and workflow wiring.
Gate 2 closes Depository supply indexing and searchable deposit lifecycle. The artifact must prove deposited source can be measured, embedded, indexed, rights-aware, and searched without exposing protected source or credentials.
177
177
178
+
Gate 2 closure note: `DepositorySupplyIndex` is now the package-owned
179
+
source-safe index for deposited supply. It produces `DepositorySupplyRecord`
180
+
receipts with source binding, proof roots, measurement roots, reconciliation
documents, active embedding vector projections, storage projection readback,
183
+
depositor/reader BTD rights boundary, and repair actions. The index converts
184
+
into `DepositoryAsset` candidates for `ReadFitsFindingSynthesis` through
185
+
`depositorySupplyAssetsFromIndex`, so Finding Fits can search deposited supply
186
+
without reading source-bearing payloads before settlement. The proof artifact is
187
+
`.bitcode/v39-depository-supply-indexing.json`.
188
+
178
189
## Gate 3 implementation notes
179
190
180
191
Gate 3 closes the enterprise Reading UX state machine. Terminal and Conversation handoff must expose the five-step Reading path with low-detail guidance by default and expandable source-safe pipeline detail.
| Depository supply indexing | Gate 2 |`packages/pipelines/asset-pack/src/depository-supply-index.ts`, `.bitcode/v39-depository-supply-indexing.json`, `packages/pipelines/asset-pack/src/__tests__/depository-supply-index.test.ts`, `packages/protocol/test/v39-depository-supply-indexing.test.js`| implemented| Deposited source becomes measurable, indexable, rights-aware, searchable, and repairable through source-safe `DepositorySupplyIndex` records. |
74
74
| Enterprise Reading UX state machine | Gate 3 | Terminal route state, Conversation handoff, rich execution log, browser proof | pending | The five-step enterprise Reading UX is implemented with low-detail defaults and expandable source-safe detail. |
75
75
| ReadNeed review and resynthesis | Gate 4 |`ReadNeedComprehensionSynthesis`, Need storage, feedback, resynthesis, accepted-Need admission | pending | Finding Fits remains blocked until a reviewed Need is accepted. |
76
76
| ReadFitsFinding runtime and replay | Gate 5 |`ReadFitsFindingSynthesis`, search tools, embeddings, ranking, selected-fit provenance, replay receipts | pending | Finding Fits searches the whole available Depository for many above-threshold candidates. |
@@ -92,7 +92,7 @@ No `_legacy/` source is active source truth.
92
92
| Gate-quality workflow | Gate workflow validates V38 active / V39 draft posture and the V39 Gate 1 checker | drafted |
93
93
| Canon-quality workflow | Canon workflow validates promoted V38 canon, V39 draft family when present, and V38/V39 posture | drafted |
94
94
| Package docs | README, protocol package README, demonstration README, and PR template state V38 active / V39 draft workflow | drafted |
95
-
| Depository supply indexing | Deposits become measurable, embedded, indexable, rights-aware, searchable, and repairable |pending|
95
+
| Depository supply indexing | Deposits become measurable, embedded, indexable, rights-aware, searchable, and repairable |implemented|
| Depositor and Reader rights boundary is explicit |`DepositorySupplyRecord.rightsBoundary`, BTD range, depositor wallet, settlement-required source-bearing unlock | implemented |
136
+
| Repair posture is deterministic | lifecycle blockers, warnings, and `repairActions` including `sync-active-embedding-vector-rows`| implemented |
137
+
| Finding Fits handoff is source-safe |`depositorySupplyAssetsFromIndex`, `depository-search.ts`, package tests returning `worthy_fit` without raw source text | implemented |
Later V39 gates must add gate-specific parity sections when their implementation begins. Gate 1 intentionally does not claim closure for Depository indexing, enterprise Reading UX, Need review, Finding Fits runtime, preview/quote, settlement/delivery, telemetry/repair, interface parity, rehearsal, or promotion readiness.
143
+
Later V39 gates must add gate-specific parity sections when their implementation begins. Gates 1 and 2 intentionally do not claim closure for enterprise Reading UX, Need review, Finding Fits runtime, preview/quote, settlement/delivery, telemetry/repair, interface parity, rehearsal, or promotion readiness.
129
144
130
145
## accepted boundaries and reopen conditions
131
146
132
147
V39 Gate 1 accepts only draft-family, roadmap, workflow, branch, and documentation posture closure.
148
+
V39 Gate 2 accepts only Depository supply indexing, source-safe search document, vector projection, storage readback posture, rights boundary, repair posture, and Finding Fits handoff closure.
133
149
Later gate scope is intentionally pending and must be reopened into gate-specific parity sections before implementation starts.
134
150
135
151
## completion condition
136
152
137
-
V39 Gate 1 is complete when `check:v39-gate1`, V39 draft spec-family validation, V38/V39 canon-posture drift validation, and promoted V38 spec-family validation all pass on a `v39/gate-1-*` branch.
153
+
V39 Gate 2 is complete when `check:v39-gate2`, package Depository supply tests, V39 draft spec-family validation, V38/V39 canon-posture drift validation, and promoted V38 spec-family validation all pass on a `v39/gate-2-*` branch.
- V34 Gate 2 closure anchor: deployment-depth now owns package-backed `DeploymentHostCapabilityCatalog` and `EnvironmentLaneContract` source, deterministic `.bitcode/v34-deployment-host-capability-catalog.json` and `.bitcode/v34-environment-lane-contracts.json`, and visible `value-bearing-mainnet` blocking through `blocked_future_canon_required`.
0 commit comments