Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into capy/wave-b-pr4-slot
garrytana98e68b7042e
diff --cc docs/architecture/key-files/providers.mdindex af5a6b23be,f51ce2d1fc..e9a249c175--- a/docs/architecture/key-files/providers.md+++ b/docs/architecture/key-files/providers.md@@@ -27,8 -27,7 +27,8 @@@ Current behavior and load-bearing invar- `src/core/embed-stale.ts` — source-wide stale embedding and explicit-page completion keep vector installation, complete-provenance signature checks and title-tier demotion in one page-guarded transaction. The three `src/commands/embed.ts` paths use the same transaction boundary; providers run before it. Standalone/background projection recovery preserves NULL-signature grandfathering and existing stale eligibility; the job's deadline, abort signal and source lease fence recovery, invalidation and publication. Oversized-chunk healing checks ownership and stop conditions before and after its transaction, rolling back prepared changes on loss. The restamp always uses the captured page metadata, so a later same-revision contextual rebuild cannot retain its vectors while an older completion overwrites its mode or corpus generation. `persistence/effects.ts` also retains this atomic completion boundary. `test/embedding-completion-atomic.serial.test.ts` exercises all five completion paths; `test/e2e/migration-wave-healing-fence.test.ts` pins healing rollback on both engines. #5902: without an explicit `concurrency`, `embedStaleForSource` (the unpaced `embed-backfill` job and the remediation embed step) runs `resolveStaleEmbedConcurrency` workers from `src/core/embed-concurrency.ts`: `min(20, max(1, floor(poolMax/2)))` of the engine's real pool (`getPoolDiagnostics().poolMax`, a worker's instance pool included), 20 without a pool; an explicit `GBRAIN_EMBED_CONCURRENCY` keeps the full-pool clamp. Pinned by `test/embed-stale-pool-default.test.ts` + `test/e2e/embed-stale-pool-default-postgres.test.ts`. Wave B: a segmented page is embedded by `page-body/segmented-embedding.ts` (vector-less live rows by chunk_index keyset with the title and plain tier, metered per page, installed by chunk_index and exact text onto rows still in the live generation; never the body or every chunk), from here, `gbrain embed` and the post-commit embedding effect (`data.occurrence_ids` limits an append's effect to the new occurrences).- `src/core/content-drift-sweep.ts` — the content-drift sweep (#4246) as a resumable pass: `runContentDriftSweep(engine, { sourceId?, signal?, deadline?, stopped?, assertOwned?, timeBudgetMs?, batchRows? })` runs `engine-sql/chunks.ts` `invalidateContentDriftBatch` (5,000 chunk rows past the cursor in id order, bounded before any md5) one transaction per batch, committing the cursor in config row `embed.content_drift_sweep.<column>.<all|source:id>` with the batch under a `FOR UPDATE` lock on that row, so concurrent runs share one pass. A run stops at its 60 s budget, the job deadline or an abort; a completed pass restarts after `embed.content_drift.pass_interval_hours` (default 24) unless it fit in one batch. A failed batch is returned as `state: 'failed'` with the error and recorded as `last_error` (cleared by the next committed batch); a missing v133/v221 column is `unsupported`; an `assertOwned` throw propagates. `embedAllStale` (`EmbedResult.content_drift`), `embedStaleForSource` (`contentDrift`) and the embed, embed-backfill and cycle embed results carry the status; doctor `content_drift_sweep` reads the saved rows.+- `src/core/page-embedding-lease.ts` — one provider call per chunk content version (gbrain-evals#180, N14). Every path that embeds a page's vector-less chunks holds the page's embedding lease from reading which chunks lack a vector through its install: the post-write embedding effect (`persistence/effects.ts`, inline and segmented), the `gbrain embed --stale` drain (`src/commands/embed.ts`), `embedStaleForSource` and `embedStalePages` (`embed-stale.ts`), and every segmented install (`embedSegmentedRows` in `page-body/segmented-embedding.ts`). `acquirePageEmbeddingLease` takes a `gbrain_cycle_locks` row `embed-page:<page id>` with plain statements (TTL 2 minutes, refreshed every 30 s while held, no process-liveness takeover), waiting with backoff while another path holds it; an effect renews its claim in `whileWaiting`. The wait is bounded by the caller's `deadline` (`embedStaleForSource` passes its drain deadline) or one TTL, and then returns a busy lease (`{ busy: true }`): drains skip the page without counting a failure, the effect and the segmented effect throw `pageEmbeddingLeaseUnavailable` (`lock_busy`, retried with backoff), and `embedSegmentedPage` stops with `stopped: 'busy'`. A held lease's `assertHeld(tx)` renews the row inside every install transaction and throws `lock_busy` when it matches no row (the lease expired and another path took or deleted it), so a holder that stalled past the TTL installs nothing; a background refresh that matches no row marks the lease lost the same way. `embedStalePages` looks the page id up first and reads its snapshot under the lease. Callers bind it with `await using`, so leaving the scope releases it, error paths included; each release also deletes expired `embed-page:` rows (a crashed holder's), which keeps doctor `stale_locks` from listing them past the next embed. `NOT_PAGE_EMBEDDING_LEASE` (on `PAGE_EMBEDDING_LEASE_PREFIX`) keeps these rows, live or expired, out of activation's legacy-lock inspection (`persistence/legacy-locks.ts`), deactivation's lease blockers and shared-skill activation's quiescence check: a lease dedupes provider calls and guards vector installs that ran unleased before it, its holders run inside a lock, job lease or effect claim those checks already see, and a crashed holder's expired row must not block them (the writer admin fingerprint in `admin-intent.ts` skips them too). The holder then keeps only the chunks still without a vector (inline: `stillPendingChunks` over the fresh `getChunks` read; segmented: `vectorlessChunkIndexes`), so a drain whose listing predates an effect's install sends nothing for them. `pageEmbeddingLeaseProbe` (`contended`, `waitBoundMs`) is the test seam. Forced probes (effect first on a segmented page after `append_page`, drain first on an inline page; both engines): `test/embed-once-per-content-version.serial.test.ts`; bounded wait, lost lease, snapshot under the lease, expired-row sweep and release on throw (both engines): `test/page-embedding-lease.serial.test.ts`.- - `src/core/embed-stale-images.ts` — `gbrain embed --stale --images [--source <id>] [--dry-run] [--json]` (requires `GBRAIN_EMBEDDING_MULTIMODAL=true`): selects live image pages whose index `importImageFile`'s hash-skip would call incomplete: an unsealed page only in the `reimport` class (`page-state/projection-class.ts`; `sealable`, `protected` and `archived` are counted, never candidates), a sealed one with no `embedding_image` chunk or no OCR text/`ocr_status: done` while `GBRAIN_EMBEDDING_IMAGE_OCR=true` (`incomplete_sealed`); `ocr_required` counts distrusted reimport pages (the dry run's expectation with OCR off, the importer's refusals after a run), resolves each file from the source's `local_path` (the `default` source falls back to `sync.repo_path`; a subpath-scoped `source_path` resolves against the checkout's git root; a page with no recorded `source_path` is located by its slug, which is the lower-cased repo-relative path, and counted in `missingSourcePath`) and hands it back to the importer, so OCR budget, protected-OCR refusal and the rebuild stay there. #6529: on a managed brain the import goes through `importManagedFile` (the coordinated importer; the legacy writer refuses a managed brain), only for a file inside the source root, and the import records `source_path`. Reports candidates, rebuilt, unchanged, missing source files (`missing_samples`: up to 5 `source:slug: no file at <path tried>` lines, the first printed) and failures; the explicit `--images` CLI (`runEmbedStaleImagesCli`) counts an all-missing, nothing-rebuilt sweep as failures (`sweepFoundNoFiles`), so it never exits 0 as a quiet success. `runStaleImageSweepFirst` is the sweep a plain `gbrain embed --stale` (no `--slugs`) runs before its text drain when multimodal embedding is on, and `foldImageSweep` folds it into the `EmbedResult` as `images`: import failures count toward the run's failures, fileless pages are reported once on stderr (`missingFile`, first sample) and leave the exit code to the text run; a text-only install skips it and keeps the `--images` hint. Pinned by `test/embed-stale-images.test.ts` and `test/embed-stale-images-managed-6529.test.ts` (both engines). Under a cost cap (fix wave 13 P1.18) each import is metered and the sweep stops before the next image once the cap refused; a refused image is not a failure.+ - `src/core/embed-stale-images.ts` — `gbrain embed --stale --images [--source <id>] [--dry-run] [--json]` (requires `GBRAIN_EMBEDDING_MULTIMODAL=true`): selects live image pages whose index `importImageFile`'s hash-skip would call incomplete: an unsealed page only in the `reimport` class (`page-state/projection-class.ts`; `sealable`, `protected` and `archived` are counted, never candidates), a sealed one with no `embedding_image` chunk or no OCR text/`ocr_status: done` while `GBRAIN_EMBEDDING_IMAGE_OCR=true` (`incomplete_sealed`); `ocr_required` counts distrusted reimport pages (the dry run's expectation with OCR off, the importer's refusals after a run), resolves each file from the source's `local_path` (the `default` source falls back to `sync.repo_path`; a subpath-scoped `source_path` resolves against the checkout's git root; a page with no recorded `source_path` is located by its slug, which is the lower-cased repo-relative path, and counted in `missingSourcePath`) and hands it back to the importer, so OCR budget, protected-OCR refusal and the rebuild stay there. #6529: on a managed brain the import goes through `importManagedFile` (the coordinated importer; the legacy writer refuses a managed brain), only for a file inside the source root, and the import records `source_path`. Reports candidates, rebuilt, unchanged, missing source files (`missing_samples`: up to 5 `source:slug: no file at <path tried>` lines, the first printed) and failures; the explicit `--images` CLI (`runEmbedStaleImagesCli`) counts an all-missing, nothing-rebuilt sweep as failures (`sweepFoundNoFiles`), so it never exits 0 as a quiet success. `runStaleImageSweepFirst` is the sweep a plain `gbrain embed --stale` (no `--slugs`) runs before its text drain when multimodal embedding is on, and `foldImageSweep` folds it into the `EmbedResult` as `images`: import failures count toward the run's failures, fileless pages are reported once on stderr (`missingFile`, first sample) and leave the exit code to the text run; a text-only install skips it and keeps the `--images` hint. Pinned by `test/embed-stale-images.test.ts` and `test/embed-stale-images-managed-6529.test.ts` (both engines). Under a cost cap (fix wave 13 P1.18) each import is metered and the sweep stops before the next image once the cap refused; a refused image is not a failure. An explicit `--images` run that rebuilds none of its candidates (files missing, left unchanged or needing OCR) reports `status: nothing_rebuilt` with a `reason` by cause and counts every candidate as failed, so it exits 1 (#7193; `test/image-distrusted-reimport.test.ts`).- `src/core/embed-budget-stop.ts` — the loud time-budget stop for `gbrain embed --stale`. `noteEmbedBudgetStop(engine, result, {sourceId, signature, includeNullSignature, skip})` counts the stale chunks left (same predicate as the catch-up remaining count) and, when any remain, sets `reason: 'time_budget'`, `remaining_stale` and `resume_command` (`gbrain embed --stale --catch-up [--source X] [--include-null-signature]`) on the result; `skip` covers dry runs, `--catch-up` and caller aborts. `embedBudgetStopVerdict(result)` is the stdout verdict `runEmbed` prints; `src/cli/commands/embed.ts` maps the reason to `BUDGET_STOP_EXIT_CODE` (failures still win with 1). Called from every budget exit in `embedAllStale` (readiness-phase deadline returns and the main drain). Pinned by `test/embed.serial.test.ts` ("time-budget stop is loud").- `src/core/embed-cost-cap.ts` — fix wave 13 P1.18 (from #6400): the approved `--max-usd` (or derived/default) cap of a foreground `gbrain embed`. `embedCostCap(cap, source)` builds a BudgetTracker plus an AbortController; the first refused reservation aborts the run's signal before the refusal propagates, so page/batch catches treat it as shutdown (no failure, quarantine strike or per-chunk fan-out) and installed vectors stay banked. `noteEmbedCostStop` records `reason: 'cost_cap'`, `budget_reason` (`cost`/`no_pricing`), cap, spend and the resume command (the run without its approval flags); `embedCostStopVerdict` is the stdout line (stderr under `--json`). The gateway side: `embedMultimodal` reserves before any provider call (each image at `MULTIMODAL_IMAGE_TOKEN_CEILING`, Voyage's 16M-pixel maximum at 560 pixels per token) and settles at Voyage's reported `usage.total_tokens`; `generateOcrText` reserves and sends `maxOutputTokens: OCR_MAX_OUTPUT_TOKENS`, the bound it reserved (`test/gateway-ocr-reserve.test.ts`).diff --cc scripts/function-size-baseline.tsvindex f985bb717d,6b4286b92b..8d7f94c1d3--- a/scripts/function-size-baseline.tsv+++ b/scripts/function-size-baseline.tsv@@@ -34,9 -34,8 +34,9 @@@ src/core/cycle/extract-atoms.ts runPhassrc/core/cycle/extract-facts.ts runExtractFacts 382 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); -129 wave 9 follow-ups (receipts): the page reconcile plan and writes moved into planFenceReconcile/reconcileWrites/writeFenceReconcile, shared with the managed preparer; +2 #6264 (landed alongside): ontology observations never gate the unfenced-rows count; +2 #6259 (landed alongside): a quarantined page projects no fence facts; +1 #5575 I2 (L1a-taint): the run result sums the write-gate tally each page reconcile returns; +1 merge v0.60.249.0: Wave B PR 1 segmented-page skip (+4, absorbed before) and master growth compose at 382src/core/cycle/grade-takes.ts GradeTakesPhase.process 402 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1)src/core/cycle/propose-takes.ts ProposeTakesPhase.process 430 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +2 #5958 (issue #5874): call_timeout_ms read and its per-page bound (phaseBoundedCallTimeout); +1 #5425 [UC4]: the one attribution-check call after the extractor returns (logic in propose-takes-attribution.ts)- src/core/cycle/synthesize-concepts.ts runPhaseSynthesizeConcepts 498 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +4 #5490 review: a narrative a chat_fallback_chain model wrote is hashed under that model so the next cycle re-synthesizes it; +13 fix wave 9 lane P (D-N3): fence-stripped member hash with legacy-hash grandfathering, and the classic write moved to publishClassicConcept (concept-publication.ts); +3 (#5041): opt-in concept write-through hook and the import callback publishClassicConcept runs under the page lock; +6 #4907 (issue #4906): configured budget read, budget-capped counter, summary clause and details.warnings (message text in budgetWarnings); +4 fix wave 11 #6161: concept redirects in grouping and the skipped_deleted pre-check (logic in cycle/concept-redirects.ts); +13 fix wave 12 #6260: a narrative stopped before the end is a counted failure, and the per-member-hash retry bound (state in cycle/concept-retry-bound.ts); +8 #6643 PR B: drifted concepts skipped before spend (state and the live check in persistence/drift-conflicts.ts ConceptDriftSkips), with the warn status, summary clause and skipped_file_drift details- src/core/cycle/synthesize.ts runPhaseSynthesizeInner 1048 +1 #5575 I2: output refs take their transcript taint before the provenance stamp (the stamp line stays the signal-guarded literal cycle-abort pins); seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +3 #5854: publish_pending from postprocess, a pending summary publish deferred instead of failing the phase; +1 fix wave 11 #6160: oneshot_task_prefixes on the child job data-src/core/cycle/synthesize-concepts.ts runPhaseSynthesizeConcepts 450 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +4 #5490 review: a narrative a chat_fallback_chain model wrote is hashed under that model so the next cycle re-synthesizes it; +13 fix wave 9 lane P (D-N3): fence-stripped member hash with legacy-hash grandfathering, and the classic write moved to publishClassicConcept (concept-publication.ts); +3 (#5041): opt-in concept write-through hook and the import callback publishClassicConcept runs under the page lock; +6 #4907 (issue #4906): configured budget read, budget-capped counter, summary clause and details.warnings (message text in budgetWarnings); +4 fix wave 11 #6161: concept redirects in grouping and the skipped_deleted pre-check (logic in cycle/concept-redirects.ts); +13 fix wave 12 #6260: a narrative stopped before the end is a counted failure, and the per-member-hash retry bound (state in cycle/concept-retry-bound.ts); +8 #6643 PR B: drifted concepts skipped before spend (state and the live check in persistence/drift-conflicts.ts ConceptDriftSkips), with the warn status, summary clause and skipped_file_drift details; +10 #7269 (GBRA-161 PR 4): a T3 group hashes without the synthesis model, and a rewrite that would leave a deterministic-tier page at its current template body and visibility is skipped unchanged; -94 GBRA-60 G6: the publication steps (managed batches, provenance edges, world promotion) moved to cycle/concept-writes.ts++src/core/cycle/synthesize-concepts.ts runPhaseSynthesizeConcepts 498 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +4 #5490 review: a narrative a chat_fallback_chain model wrote is hashed under that model so the next cycle re-synthesizes it; +13 fix wave 9 lane P (D-N3): fence-stripped member hash with legacy-hash grandfathering, and the classic write moved to publishClassicConcept (concept-publication.ts); +3 (#5041): opt-in concept write-through hook and the import callback publishClassicConcept runs under the page lock; +6 #4907 (issue #4906): configured budget read, budget-capped counter, summary clause and details.warnings (message text in budgetWarnings); +4 fix wave 11 #6161: concept redirects in grouping and the skipped_deleted pre-check (logic in cycle/concept-redirects.ts); +13 fix wave 12 #6260: a narrative stopped before the end is a counted failure, and the per-member-hash retry bound (state in cycle/concept-retry-bound.ts); +8 #6643 PR B: drifted concepts skipped before spend (state and the live check in persistence/drift-conflicts.ts ConceptDriftSkips), with the warn status, summary clause and skipped_file_drift details; +10 #7269 (GBRA-161 PR 4): a T3 group hashes without the synthesis model, and a rewrite that would leave a deterministic-tier page at its current template body and visibility is skipped unchanged; -94 GBRA-60 G6: the publication steps (managed batches, provenance edges, world promotion) moved to cycle/concept-writes.ts+ src/core/cycle/synthesize.ts runPhaseSynthesizeInner 1056 +1 #5575 I2: output refs take their transcript taint before the provenance stamp (the stamp line stays the signal-guarded literal cycle-abort pins); seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +3 #5854: publish_pending from postprocess, a pending summary publish deferred instead of failing the phase; +1 fix wave 11 #6160: oneshot_task_prefixes on the child job data; +6 GBRA-161 PR 4 (#7065): the synthesis generation activation after postprocess (logic in cycle/synthesize-generations.ts), its file holds and details.synthesis_generations; +1 GBRA-161 PR 5 (S-2): the summary revision read before the children are submitted; +1 GBRA-60: a managed child carries dream_output, so it writes each page verified and stamped (logic in cycle/synthesize-child-verify.ts)+src/core/embed-stale.ts embedStaleForSource 302 PR 4 E round 2 (gbrain-evals#180): the page embedding lease gives up at the drain deadline with a busy lease (page skipped) and is renewed inside the install transaction; lease logic lives in core/page-embedding-lease.tssrc/core/facts/backstop.ts runPipelineBodyInner 358 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1)src/core/import-file.ts importFromContent 692 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +2 wave 8 lane D1 #5158: key-order fallback equality and legacy-hash ordering; lowered to 807 (#5988: screen and sanity config peeled to core/import-screen.ts); +1 #6007: the prepared apply reports its written page and seal (PreparedImportApplied) so put_page skips a re-read and a second seal; +1 #5333: embed-skip transition defeats the unchanged fast paths (the stale-marker clear stays inside the sanity block); +3 #6188: Tier 1 fence step in place before the hidden-row merge (logic in fence-repair/import-step.ts); -146 #5575: content-sanity/write-gate disposition moved to import-screen.ts settleContentDisposition; +4 TODO: large-pages A6/T33: a page over PAGE_INLINE_MAX_BYTES commits with NULL vectors and embeds through the metered stale sweep; +1 #6722: an embed_skip page is chunked and never embedded (noEmbed folds the marker); +16 Wave B lane 1d (TODO wave-b PR 1): a body above the inline threshold takes the segmented stage and generation flip at the storage step (logic in persistence/segmented-apply.ts); +3 Wave B review: reuseSegments option (a rename re-preparation reuses the staged segmented body) and the remote fence merge over fenceBody; +2 Wave B gem A: a coordinated demotion versions the segmented page before demoting itsrc/core/minions/handlers/subagent-oneshot.ts runSubagentOneshot 378 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +1 fix wave 9 lane B #4921: the oneshot sub-budget is passed as the call timeoutMs so the 300 s gateway backstop cannot cut itdiff --cc scripts/module-size-limits.tsvindex 05540f1403,db6c8efd29..456b1ff30f--- a/scripts/module-size-limits.tsv+++ b/scripts/module-size-limits.tsv@@@ -3,28 -3,28 +3,28 @@@# Raising a ceiling is a conscious, reviewer-visible act. Lower ceilings in# the same commit as any peel (the guard fails on >50 lines of stale slack).# Columns: path max_lines policy note- src/cli/main.ts 3018 ratchet +1 W1 belief ledger: `gbrain beliefs --help` in SELF_HELP_WITHOUT_ENGINE; +1 Cat 41 run 4: recall's SELF_HELP_WITHOUT_ENGINE table entry (a dispatch table row cannot move); moved from src/cli.ts at 3214 (cold start: src/cli.ts is now the 66-line entry with the --version/help fast path; the top-level help text moved to cli/top-help.ts and the exit seam became runCli/exitOnFatalCliError); +2 #6340: the sync status / sync unblock preflight skip (logic in commands/sync/operator.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +2 retrieval feedback: answer id line on stderr and additive answer_id on --json search/query rows (logic in feedback/record.ts); +1 feedback help line and its D3 table-dispatch entry (logic in commands/feedback.ts); 6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); P3 x engine graduation composition: both deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); P3 x foundations-2 composition: deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); P3 x P1 (v0.60.57.0) composition: deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); -25 agent-operator follow-up Item 3: the host connect moved to core/engine-connect.ts (throw-only connectEngineForServe, wrapped by connectEngine; the graduation connect gate moved with it); 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); -25 agent-operator follow-up Item 3: the host connect moved to core/engine-connect.ts (throw-only connectEngineForServe, wrapped by connectEngine; the graduation connect gate moved with it); +2 entity recall: the human `gbrain entity` card prints referenced_by groups and a non-complete mention coverage; cat40 entity wave merge with v0.60.61.0 (3179 measured); +3 #4772 (W14 PR3): get_health text output says the entity ratios are n/a because the schema pack did not load (entity_types_status); +1 C4: gbrain questions CLI-only dispatch row (its help line is in cli/top-help.ts); +1 #6696 (A4): a local write captures the capacity notices (one call; logic in cli/op-notices.ts captureCapacityNotices); +1 large pages A6: the stdin cap reads PAGE_MAX_BYTES from core/page-size-policy.ts; +3 Wave B PR 2: local gbrain get of a segmented page streams on the page_body_segmented refusal (logic in cli/page-render.ts streamSegmentedGet); +1 #6712 PR 3 (L7): the sync_retry_failed_deprecated notice call (logic in commands/sync/args.ts noteRetryFailedDeprecated);+1 Cat 41 run 4: recall's SELF_HELP_WITHOUT_ENGINE table entry (a dispatch table row cannot move); +1 GBRA-133 PR 2a: sync trigger through a live PGLite serve (logic in commands/sync-delegate.ts maybeTriggerThroughServe); +1 GBRA-133 PR 2a merge: master and the sync trigger serve hand-off each added a dispatch row; +1 GBRA-154 #7171: captureRetrievalNotices call after a search/query op (logic in cli/op-notices.ts); GBRA-151 operability wave x v0.60.332.0 merge: both sides added a line, re-summed (3020 measured); GBRA-151 #7147 follow-up (cold one-shot read snapshot handoff and pool cap) re-summed at the v0.60.333.0 merge (3027 measured); +1 GBRA-156 warm CLI socket: one gated dispatch call before CLI_ONLY (logic in cli/cli-socket-client.ts); -11 GBRA-156: MERGED_CONFIG_BY_ENGINE and its comment moved to core/published-config.ts (serve reads it); lowered at the v0.60.340.0 merge (3018 measured)+ src/cli/main.ts 2955 ratchet +1 W1 belief ledger: `gbrain beliefs --help` in SELF_HELP_WITHOUT_ENGINE; +1 Cat 41 run 4: recall's SELF_HELP_WITHOUT_ENGINE table entry (a dispatch table row cannot move); moved from src/cli.ts at 3214 (cold start: src/cli.ts is now the 66-line entry with the --version/help fast path; the top-level help text moved to cli/top-help.ts and the exit seam became runCli/exitOnFatalCliError); +2 #6340: the sync status / sync unblock preflight skip (logic in commands/sync/operator.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +2 retrieval feedback: answer id line on stderr and additive answer_id on --json search/query rows (logic in feedback/record.ts); +1 feedback help line and its D3 table-dispatch entry (logic in commands/feedback.ts); 6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); P3 x engine graduation composition: both deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); P3 x foundations-2 composition: deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); P3 x P1 (v0.60.57.0) composition: deltas re-summed at the merge; 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); -25 agent-operator follow-up Item 3: the host connect moved to core/engine-connect.ts (throw-only connectEngineForServe, wrapped by connectEngine; the graduation connect gate moved with it); 1 Foundations 2 Lane F: sources refresh pre-connect delegation to a resident PGLite owner (logic in commands/sources-refresh-delegate.ts); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +3 agent operator gate fixes: repair-failed connect wrapper (logic in cli/cli-error.ts exitOnRepairFailed), transcripts recent through a live serve (logic in commands/transcripts.ts), pre-connect status reason (logic in commands/serve-status.ts); +23 merged from the collector (Lanes B/E/F: thin-client token reason, status-only serve hand-off, jobs/sync readiness wiring); +9 agent operator wave D3/D4: curated --help short-circuit (renderer in cli/help/render.ts), curated flag-value validation call (cli/help/validate.ts), table-dispatched SELF_HELP_WITHOUT_ENGINE entries for the selfHelp flips; +5 agent operator wave C10 (merged from the collector): serve --fail-fast in the connect-failure path; +31 #5950 (D6): connectEngine thin-client backstop, engine-free MCP-twin dispatch, recall/advisor/export refusal hints, refusal fix subcommand (lowered to 3131 by D1's renderCliError seam first); +2 agent operator wave A4: observational startup (probe-only connect for startup:observational commands; completeEngineStartup split out of connectEngine, exposed as ctx.completeStartup); +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5232: write-wait import, reporter-owned verdict in the op catch, thin-client writeWaitMs, ctx.writeWaitMs (logic in persistence/write-wait.ts); +1 #4768: serve --access help line; +4 #5433: list_pages TSV cell escaping in formatResult; +2 #lane-h pricing: help line + thin-client refusal hint for `gbrain pricing`; +2 fix wave 5 (#5401): projections drain help line and thin-client hint; +2 (#5137) key-shadow warning seam, logic in ai/key-warnings.ts; +2 System One v1: decide help line + thin-client refusal hint; refactor wave 1 split target (W4 cli); ceiling rationale: docs/architecture/key-files/entrypoints-and-docs.md entry for src/cli.ts; evidence delivery: thin-client return_unit version-skew warning (+3; logic in search/evidence-delivery.ts); put stdin recovery (#5700): stdin hint in the --content requires-a-value error and stdin usage/required text in printOpHelp (+7); logic in persistence/deactivation.ts); +36 #5827: link-command help examples, local --source vs --source-id/--all-sources conflict check, ambient-binding return from applyThinClientSourceScope (logic in cli/source-scope.ts); +4 #5433: list_pages TSV cell escaping in formatResult; +1 #5984: a strict run deadline when no progress window is set; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (3199 measured); +6 engine graduation (GBRA-50 G3): migrate pre-connect route (logic in commands/migrate-graduation.ts), serve start refusal and degraded-reconnect identity gate (logic in persistence/graduation-serve-guard.ts), usage line; +3 engine graduation (GBRA-50 G2a): connect-path graduation check on every engine (logic in persistence/graduation-custody.ts assertGraduationConnectAllowed); GBRA-49: edge-proposals answers --help without a brain (SELF_HELP_WITHOUT_ENGINE row); -25 agent-operator follow-up Item 3: the host connect moved to core/engine-connect.ts (throw-only connectEngineForServe, wrapped by connectEngine; the graduation connect gate moved with it); +2 entity recall: the human `gbrain entity` card prints referenced_by groups and a non-complete mention coverage; cat40 entity wave merge with v0.60.61.0 (3179 measured); +3 #4772 (W14 PR3): get_health text output says the entity ratios are n/a because the schema pack did not load (entity_types_status); +1 C4: gbrain questions CLI-only dispatch row (its help line is in cli/top-help.ts); +1 #6696 (A4): a local write captures the capacity notices (one call; logic in cli/op-notices.ts captureCapacityNotices); +1 large pages A6: the stdin cap reads PAGE_MAX_BYTES from core/page-size-policy.ts; +3 Wave B PR 2: local gbrain get of a segmented page streams on the page_body_segmented refusal (logic in cli/page-render.ts streamSegmentedGet); +1 #6712 PR 3 (L7): the sync_retry_failed_deprecated notice call (logic in commands/sync/args.ts noteRetryFailedDeprecated);+1 Cat 41 run 4: recall's SELF_HELP_WITHOUT_ENGINE table entry (a dispatch table row cannot move); +1 GBRA-133 PR 2a: sync trigger through a live PGLite serve (logic in commands/sync-delegate.ts maybeTriggerThroughServe); +1 GBRA-133 PR 2a merge: master and the sync trigger serve hand-off each added a dispatch row; +1 GBRA-154 #7171: captureRetrievalNotices call after a search/query op (logic in cli/op-notices.ts); GBRA-151 operability wave x v0.60.332.0 merge: both sides added a line, re-summed (3020 measured); GBRA-151 #7147 follow-up (cold one-shot read snapshot handoff and pool cap) re-summed at the v0.60.333.0 merge (3027 measured); +1 GBRA-156 warm CLI socket: one gated dispatch call before CLI_ONLY (logic in cli/cli-socket-client.ts); -11 GBRA-156: MERGED_CONFIG_BY_ENGINE and its comment moved to core/published-config.ts (serve reads it); lowered at the v0.60.340.0 merge (3018 measured); +5 #7191: search --exact routing call (dispatch, cannot move; rule in cli/command-route.ts) and the search_exact formatter case + imports; +3 GBRA-156 warm CLI startup: page-render, volunteer and operation-load imported lazily where used, so a warm socket hit loads 169 modules instead of 709 (2955 measured)src/commands/autopilot.ts 1662 ratchet refactor wave 1 split target (W4 autopilot, cut line); ceiling rationale: docs/architecture/key-files/commands-1.md entry for src/commands/autopilot.ts; +2 fix wave 5: nosemgrep justifications on the per-brain job launchctl/systemctl calls (#5195); +2 #5813: boot reconcile names attempted and running versions in log + audit; +2 #5855: Bun floor gate before the swap and the swap-refusal hold (logic in core/bun-floor.ts); +3 agent operator wave E9: --dry-run and the persistent_install consent gate before anything is written (logic in autopilot/install-consent.ts); +8 GBRA-130 C-6/A-10: the --retry-global mode row, help line and --phase value flag, and --status reading the brain-wide maintenance verdict into its JSON, text and exit code (logic in core/minions/global-maintenance-stall.ts and autopilot-retry-global.ts); +12 GBRA-133 #7003: --status grades from the daemon's heartbeat sidecar (two report fields and their doc line, the classifier's daemon input and threshold branch, the import and the showStatus read; logic in core/autopilot-heartbeat.ts)- src/commands/doctor.ts 692 ratchet +2 Wave B decision #10: Check.skipped_segmented field (logic in doctor/check-fix.ts withSkippedSegmented); +19 #6696 doctor tiers: Check.elapsed_ms and DoctorReport tier/complete/unknown_sections/elapsed_ms/budget_ms fields, buildChecks/runDoctor deadline params (logic in doctor/budget.ts); +1 agent operator gate fixes: --probe consent gate (logic in doctor/probe-consent.ts); refactor wave 1 split target (W4 doctor); ceiling rationale: docs/architecture/key-files/commands-2.md entry for src/commands/doctor.ts; +4 #7142: DoctorReport.last_known_sections field and the buildChecks last-known/refresh scope params (logic in doctor/last-known.ts)- src/commands/embed.ts 2306 ratchet +2 agent operator wave D2: --json failure envelope via writeCliError; lowered v0.46.26.0: embedBatchWithBackoff + retry cluster peeled to core/embed-retry.ts (core/commands layering fix); grown wave-g (#4530): per-model input-limit wiring; wave-k #3622 reimpl: --stale zero-progress failure quarantine; +29 #4668 (#4530): oversize-heal call sites in both --stale drains — kept low by peeling the healed-row remap to core/embed-oversize-heal.ts (shared with embed-stale.ts); +35 #4647 (refs #4599): per-tick timeout+abort on the single-flight lock heartbeat refresh (interval deliberately NOT unref'd); +122 refs #4599: stall-watchdog race around the drain + shared idempotent flushAndRelease + CLI stall exit mapping (watchdog machinery itself lives in core/embed-stall.ts); +12: adversarial-review hardening (healed_splits progress key + heal-tick comment); #5105: guarded derived projection preparation and read seals; #5105: conditional embedding installer wiring; archived eligibility: active-only dispatch with honest stranded-work reporting; explicit archived admission: live-source snapshots and honest refused-installation failures; +2 fw3: embed --stale --images dispatch (sweep lives in core/embed-stale-images.ts); +5 #5289: dry run reports restamp-only chunks apart from chunks to embed (count lives in core/embedding-invalidation.ts); +6 #4616: keep a partially refused batch in embedPageTexts and name the recovery command in failure samples (guard lives in core/ai/embedding-guard.ts); +5 #5226: embed summary counts distinct pages; +3 #5804: null projection snapshot counted as a failure with one batch summary in embed --stale; +18 wave 8 lane D1: #5527 mixed-space warning subtracts current-model chunks (+4), #5885 takes option/result fields and the stale-drain takes call (pass lives in core/embed-takes.ts); +9 Foundations 1 F4d: time-budget stop result fields, stdout verdict and stop recording in embed --stale (logic in core/embed-budget-stop.ts); +8 green-master lane A: chunkless install re-reads through retryProjectionConflict instead of recording an unavailable page (retry lives in core/page-state/projections.ts, failure line in core/agent-output.ts); +8 fix wave 13 P1.18: runEmbed consent parameter, cost-cap stop wiring and result fields, --slugs parsing to the next flag (cap, verdict and resume logic live in core/embed-cost-cap.ts); +28 large pages A9/T3/T16: --held listing and per-page cap metering on every embed path (logic in core/page-embedding-budget.ts meterPageBatch/spendGrant/heldEmbedArgv), approvedPageCapUsd from --max-usd on --slugs; +1 #6722: an explicit slug embed skips an embed_skip page (it keeps keyword chunks, never vectors); merge v0.60.240.0: large pages and master growth compose at 2265; +39 large pages Wave B lane 1e: segmented pages route to the keyset sweep on the slug, --all and --stale paths, with a dry-run count and provenance stamp (logic in core/page-body/segmented-embedding.ts); +1 PR 4 E (gbrain-evals#180): per-page embedding lease import (lease and still-pending filter live in core/page-embedding-lease.ts); +2 PR 4 E round 2 (gbrain-evals#180): a busy lease skips the page and the install renews the lease (logic in core/page-embedding-lease.ts)- src/commands/extract-conversation-facts.ts 1945 ratchet grown v0.46.x per-provider gateway-unavailable copy; grown wave-g (#4482): expected budget/deadline caps classified apart from error halts; wave-k: save-time resolution caller (#4052/#3729 — supersedes wave-g's per-row resolveEntitySlug mapper); +1: key-aware llm-fallback default (#3813); +1: pricingOverrides wiring into the owned BudgetTracker (#4633 adoption); +3: #4869 snapshot-mismatch counts as pages_failed; merged reliability/shared-skills source integration; +19: additive skip reasons and model-free dry-run (#5364); +21 #5757: managed extraction buffers a page's rows and replaces the prior batch in one coordinator transaction (replacement helper lives in core/persistence/derived-facts.ts); +18 #5823: result diagnostics, strict explicit-cap parsing and CLI recovery/help; default-cap decision lives in facts/conversation-budget.ts; +18 fix wave 7 (#5704, #5448): --json envelope on stdout (parser flag, help line, summary block gated behind the human-output branch); +2 fix wave 10 (#6037, issue #6033): explicit-slug page failures are contained per page through one bounded failure logger (recordPageFailure) shared with the pooled path; +4 fix wave 10 (#5120): facts.default_visibility resolved once per run (resolveDefaultVisibility) and applied to extracted rows only; 2 P2 segmentObservationDate + segmentValidFrom helpers (date-grounding observation time per segment; extractor event date wins over segment start); +4: ExtractConversationFactsResult.failed_pages (interface field) and the help text exit-status paragraph; partial-success logic lives in core/facts/conversation-run-status.ts; re-summed at the master 6ccf30c3e merge (2179 master lines + 20 integration lines over base); re-summed at the #6020 merge on actual lines (as rehearsed on capy/mpw-integration-p2); re-summed at the wave 10 merge on actual lines (+1 recordPageFailure fills failed_pages); lowered at the wave-9 follow-ups merge: the three zero-result literals became emptyExtractConversationFactsResult(); lowered to 2075 at wave 15 P2.5 (#6267): segment tunables, splitIntoSegments and renderSegmentForExtraction moved to core/facts/conversation-windows.ts, the message/segment types to core/facts/conversation-types.ts (re-exported here); +12 large pages T2: the oversized-sidecar snapshot and the durable size-skip receipt (skippedForSize; the cap and the bounded sidecar read live in core/conversation-parser/body.ts, the receipt in core/extraction-watermark.ts); merge v0.60.240.0: large pages and master growth compose at 2087; -6 wave 18 lane 3 (#6731 #6764): the two extractor call sites share one input object, inference lives in core/facts/conversation-subject-infer.ts; Wave B PR 2 (kept at the master 4e29d0904 merge): +7 large pages PR 2 lane 2e2: a segmented conversation over the window cap (snapshot.window, the tail_window receipt, the window fallback date; the window read lives in core/page-body/segment-conversation.ts); +9 lane 2e2 follow-up: the lossless window rule (a page over the window with conversation facts keeps them and is skipped, the receipt names the rule; the count lives in core/facts/conversation-publication.ts); integrated at the master 4e29d0904 merge: 2097 measured; lowered to 2044 by #7013: a page's rows publish once through publishConversationFacts (core/facts/conversation-publication.ts), so the delete-first cleanup, the per-segment inserts and the row-number peek left; +1 GBRA-159: facts from a private page are private (tightenToPage per page; helper in core/facts/visibility.ts); +46 PR 4 (Wave B incremental derivation, transcripts) round 9: --grammar <format|none> for a held conversation page (the parser branch, six CLI help lines, the core option and two result fields with their doc comments, the assertGrammarTarget pre-check, the summary lines for held pages and previews); the held rule, the recorded choice and the preview live in core/facts/conversation-incremental.ts; +9 PR 4 round 10: --grammar resolves exactly one source (resolveGrammarSource replaces assertGrammarTarget: --source-id, else the only source holding the slug; a slug in several sources refuses with each source's command) and two help lines saying so and how long a choice holds- src/commands/extract.ts 2677 ratchet +8 GBRA-130 A-1: extract --stale --retry-held flag, help lines and the managed result failure fields (logic in core/persistence/links-maintenance.ts and links-extraction-holds.ts); grown v0.46.26.0 megawave: FS-walk stamp snapshot + legacy timeline repair wiring (#3957 D4) + PR#4486 rebase onto current master; grown wave-g (#4542): --from-meetings zero-match warning + default-pass note; +29: #3478 federated-only gate on the cross-source 'default' link fallback; +44: #3908 cross_source opt-in — counted drops + deterministic cross-source pick; +36: #4611 configured-sources.default fallback (resolveLinkFallbackDefault); +14: #4890 extractStaleFromDB quiet opt + extractForSlugs jsonMode batch_error stderr fallback; +5: #4855 stroke-letter fold in link extraction; +5: #4793 by-mention scan honours link_resolution.cross_source; +18: wave review — ExtractOpts.quiet threaded through the fs-walk extractors (stdout silence decoupled from jsonMode); +77: shared buildSlugPathIndex — every per-slug extractor resolves the real on-disk path, and the sync hooks report which slugs they actually read; +10 #4999: includeFrontmatter default-resolved inside extractLinksForSlugs + extractStaleFromDB (resolveIncludeFrontmatter), --stale flag absent -> configured knob; +20: pre-landing review of #4967 — resolveSlugRelPath: index miss falls back to the legacy slug+'.md' path so admitted _-prefixed / include_hidden pages keep their edges; T2: source-qualified inference and atomic origin-scoped derived links; standard DB extraction fences captured endpoint revisions; shared authoritative attendance/source reconciliation moved to the core module; +7 A2 preview-bound attendance repair import, help and authority dispatch; bounded incomplete-attendance diagnostics and consistent basename resolution; fail closed before graph mutation when active ontology is unavailable; +16 source-selected ontology cache, type-scoped preflight and non-starving failed stale drain; +7 write-path wave: per-slug extractors replace page links + retract removed timeline rows + rename-alias resolution; +5 fw3 derived-sync: timeline --prune-orphans CLI (#4649) and full-walk page link replacement; +13 fw3 A16/A15: sync link hook reads scoped page metadata and reports per-page extraction errors; +1 fw3 managed-lifecycle: extract --stale dispatches managed brains to the coordinator-safe path; +4 fw3 integration: managed brains refuse the direct timeline orphan prune; +26 #5609: managed extract --stale publishes links, canonical timeline and watermark per page in one coordinated transaction; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +4 at the merge; +6 fix wave 3 lane B: a managed brain routes the extract phase file walk through extractManagedStaleLinks instead of the refused raw timeline batch, keeping the extract.links_fs progress phase; +6 #5761: the unmanaged extract --stale sweep marks unresolved-attendance skips attendance-blocked; +2 eval-wave N9-3/N12-7: a page-type-bound pack attended rule defers to canonical attendance on the filesystem path (ownsAttendanceInference); lowered to 2528 #5904: the DB timeline walk moved to commands/extract-timeline-db.ts (coordinated publication on managed brains, honest refusal + non-zero exit); +13 entity mention index: extract --stale runs the mention pass after link work (half the budget reserved while mention-due pages exist), dry-run and JSON report mention counts, and the help documents the pass and `extract mentions --explain` (logic in core/mentions/); cat40 entity wave merge with v0.60.61.0 (2541 measured); +6 fix wave 10 lane L1 #5556: quarantined pages skipped by the file walks, slug lists and DB walks (slug lookup in quarantine.ts quarantinedSlugs); +3 #5556: the abort check stays its own statement in each quarantine-aware scan loop (cycle-abort coverage pin); 2 P5 wanted pages: both DB extract paths record unresolved authored refs with each page's links; +5 P5 line grammar: stated relation types on the filesystem link scan; +3 PGLite stale link drains refresh planner statistics before and during the drain (logic in planner-stats.ts plannerStatsForLinkDrain); +10 fix wave 12 W2.1 S4 (#6228): extract --stale flushes and stamps the pages a batch finished before an aborting page; +12 P5 wanted pages: both DB extract paths record unresolved authored refs with each page's links; +9 Q2 parser gaps: both DB extract paths read the line-grammar settings once, publish through replaceDerivedLinksUnlessSettingsChanged and report pages a mid-run settings change left stale; +25 GBRA-69: extract --source db reads snapshots and publishes derived links BATCH_SIZE pages at a time (readPageSnapshotsBatch in core/page-snapshot-batch.ts, replay in derived-links.ts replaceDerivedLinksBatchOrReplay); +2 GBRA-75 w7: the --source db links walk refreshes planner statistics (logic in planner-stats.ts plannerStatsForLinkDrain); +10 fix wave 13 P2.16 (#6272): both unmanaged DB link drains defer and count a page a concurrent writer moved (skipped_concurrent_write) instead of aborting the run (classifier and skip line in core/derived-links.ts); +3 fix wave 13 P2.18 (S4): extract all --source db stamps the pages both phases completed at one revision, in a finally (stampCompletedIntersection), instead of every links-phase page; +1 fix wave 13 P2.15 (#6273): --from-meetings exits non-zero while managed entity pages are still pending; +7 fix wave 13 PR2: extractFromDB split out of runExtract so runExtract stays under its function-size baseline; Wave B PR 2 (kept at the master 4e29d0904 merge): +3 PR 2 fix lane J1: extract --stale reads a segmented page block by block (extractSegmentedPageLinks, segmentedTimelineText) now that the stale list includes it; integrated at the master 4e29d0904 merge: 2635 measured; +23 fix wave 20 #6954: the fs walks and the slug-scoped extract collect lost link/timeline writes, stamp only the pages whose writes landed and throw extract_write_lost (helpers in core/extract-watermark.ts); fix wave 20 integration: lane 1 (#6808, +11) and lane 2 (#6954, +23) compose at 2677 measured- src/commands/jobs.ts 667 ratchet refactor wave 1 split target (W4 jobs, cut line); ceiling rationale: docs/architecture/key-files/commands-4.md entry for src/commands/jobs.ts; help lines: authorize-legacy --select (#5157 T3) and jobs cancel --select (DX-T2); submit --queue-only + PGLite work drain note (agent-first operator wave E5); +2 spend authorization: jobs submit --yes/--max-usd and jobs list --group help lines; +4 fix wave 9: supervisor stop help documents the 45 s wait, --queue and the verified-drain exit codes; +1 #7142: doctor-refresh handler registration (logic in doctor/last-known.ts)+ src/commands/doctor.ts 700 ratchet +2 Wave B decision #10: Check.skipped_segmented field (logic in doctor/check-fix.ts withSkippedSegmented); +19 #6696 doctor tiers: Check.elapsed_ms and DoctorReport tier/complete/unknown_sections/elapsed_ms/budget_ms fields, buildChecks/runDoctor deadline params (logic in doctor/budget.ts); +1 agent operator gate fixes: --probe consent gate (logic in doctor/probe-consent.ts); refactor wave 1 split target (W4 doctor); ceiling rationale: docs/architecture/key-files/commands-2.md entry for src/commands/doctor.ts; +4 #7142: DoctorReport.last_known_sections field and the buildChecks last-known/refresh scope params (logic in doctor/last-known.ts); +8 #7276: DoctorReport.unknown_count field and the unknown category/count lines of the text headline (scoring logic in doctor/budget.ts scoredChecks)-src/commands/embed.ts 2304 ratchet +2 agent operator wave D2: --json failure envelope via writeCliError; lowered v0.46.26.0: embedBatchWithBackoff + retry cluster peeled to core/embed-retry.ts (core/commands layering fix); grown wave-g (#4530): per-model input-limit wiring; wave-k #3622 reimpl: --stale zero-progress failure quarantine; +29 #4668 (#4530): oversize-heal call sites in both --stale drains — kept low by peeling the healed-row remap to core/embed-oversize-heal.ts (shared with embed-stale.ts); +35 #4647 (refs #4599): per-tick timeout+abort on the single-flight lock heartbeat refresh (interval deliberately NOT unref'd); +122 refs #4599: stall-watchdog race around the drain + shared idempotent flushAndRelease + CLI stall exit mapping (watchdog machinery itself lives in core/embed-stall.ts); +12: adversarial-review hardening (healed_splits progress key + heal-tick comment); #5105: guarded derived projection preparation and read seals; #5105: conditional embedding installer wiring; archived eligibility: active-only dispatch with honest stranded-work reporting; explicit archived admission: live-source snapshots and honest refused-installation failures; +2 fw3: embed --stale --images dispatch (sweep lives in core/embed-stale-images.ts); +5 #5289: dry run reports restamp-only chunks apart from chunks to embed (count lives in core/embedding-invalidation.ts); +6 #4616: keep a partially refused batch in embedPageTexts and name the recovery command in failure samples (guard lives in core/ai/embedding-guard.ts); +5 #5226: embed summary counts distinct pages; +3 #5804: null projection snapshot counted as a failure with one batch summary in embed --stale; +18 wave 8 lane D1: #5527 mixed-space warning subtracts current-model chunks (+4), #5885 takes option/result fields and the stale-drain takes call (pass lives in core/embed-takes.ts); +9 Foundations 1 F4d: time-budget stop result fields, stdout verdict and stop recording in embed --stale (logic in core/embed-budget-stop.ts); +8 green-master lane A: chunkless install re-reads through retryProjectionConflict instead of recording an unavailable page (retry lives in core/page-state/projections.ts, failure line in core/agent-output.ts); +8 fix wave 13 P1.18: runEmbed consent parameter, cost-cap stop wiring and result fields, --slugs parsing to the next flag (cap, verdict and resume logic live in core/embed-cost-cap.ts); +28 large pages A9/T3/T16: --held listing and per-page cap metering on every embed path (logic in core/page-embedding-budget.ts meterPageBatch/spendGrant/heldEmbedArgv), approvedPageCapUsd from --max-usd on --slugs; +1 #6722: an explicit slug embed skips an embed_skip page (it keeps keyword chunks, never vectors); merge v0.60.240.0: large pages and master growth compose at 2265; +39 large pages Wave B lane 1e: segmented pages route to the keyset sweep on the slug, --all and --stale paths, with a dry-run count and provenance stamp (logic in core/page-body/segmented-embedding.ts)-src/commands/extract-conversation-facts.ts 2049 ratchet grown v0.46.x per-provider gateway-unavailable copy; grown wave-g (#4482): expected budget/deadline caps classified apart from error halts; wave-k: save-time resolution caller (#4052/#3729 — supersedes wave-g's per-row resolveEntitySlug mapper); +1: key-aware llm-fallback default (#3813); +1: pricingOverrides wiring into the owned BudgetTracker (#4633 adoption); +3: #4869 snapshot-mismatch counts as pages_failed; merged reliability/shared-skills source integration; +19: additive skip reasons and model-free dry-run (#5364); +21 #5757: managed extraction buffers a page's rows and replaces the prior batch in one coordinator transaction (replacement helper lives in core/persistence/derived-facts.ts); +18 #5823: result diagnostics, strict explicit-cap parsing and CLI recovery/help; default-cap decision lives in facts/conversation-budget.ts; +18 fix wave 7 (#5704, #5448): --json envelope on stdout (parser flag, help line, summary block gated behind the human-output branch); +2 fix wave 10 (#6037, issue #6033): explicit-slug page failures are contained per page through one bounded failure logger (recordPageFailure) shared with the pooled path; +4 fix wave 10 (#5120): facts.default_visibility resolved once per run (resolveDefaultVisibility) and applied to extracted rows only; 2 P2 segmentObservationDate + segmentValidFrom helpers (date-grounding observation time per segment; extractor event date wins over segment start); +4: ExtractConversationFactsResult.failed_pages (interface field) and the help text exit-status paragraph; partial-success logic lives in core/facts/conversation-run-status.ts; re-summed at the master 6ccf30c3e merge (2179 master lines + 20 integration lines over base); re-summed at the #6020 merge on actual lines (as rehearsed on capy/mpw-integration-p2); re-summed at the wave 10 merge on actual lines (+1 recordPageFailure fills failed_pages); lowered at the wave-9 follow-ups merge: the three zero-result literals became emptyExtractConversationFactsResult(); lowered to 2075 at wave 15 P2.5 (#6267): segment tunables, splitIntoSegments and renderSegmentForExtraction moved to core/facts/conversation-windows.ts, the message/segment types to core/facts/conversation-types.ts (re-exported here); +12 large pages T2: the oversized-sidecar snapshot and the durable size-skip receipt (skippedForSize; the cap and the bounded sidecar read live in core/conversation-parser/body.ts, the receipt in core/extraction-watermark.ts); merge v0.60.240.0: large pages and master growth compose at 2087; -6 wave 18 lane 3 (#6731 #6764): the two extractor call sites share one input object, inference lives in core/facts/conversation-subject-infer.ts; Wave B PR 2 (kept at the master 4e29d0904 merge): +7 large pages PR 2 lane 2e2: a segmented conversation over the window cap (snapshot.window, the tail_window receipt, the window fallback date; the window read lives in core/page-body/segment-conversation.ts); +9 lane 2e2 follow-up: the lossless window rule (a page over the window with conversation facts keeps them and is skipped, the receipt names the rule; the count lives in core/facts/conversation-publication.ts); integrated at the master 4e29d0904 merge: 2097 measured; lowered to 2044 by #7013: a page's rows publish once through publishConversationFacts (core/facts/conversation-publication.ts), so the delete-first cleanup, the per-segment inserts and the row-number peek left; +1 GBRA-159: facts from a private page are private (tightenToPage per page; helper in core/facts/visibility.ts); +3 #7438: ExtractConversationFactsResult.facts_skipped_purged (interface field) and one notePurgedSkips call (the count and log live in core/facts/conversation-publication.ts)++src/commands/embed.ts 2306 ratchet +2 agent operator wave D2: --json failure envelope via writeCliError; lowered v0.46.26.0: embedBatchWithBackoff + retry cluster peeled to core/embed-retry.ts (core/commands layering fix); grown wave-g (#4530): per-model input-limit wiring; wave-k #3622 reimpl: --stale zero-progress failure quarantine; +29 #4668 (#4530): oversize-heal call sites in both --stale drains — kept low by peeling the healed-row remap to core/embed-oversize-heal.ts (shared with embed-stale.ts); +35 #4647 (refs #4599): per-tick timeout+abort on the single-flight lock heartbeat refresh (interval deliberately NOT unref'd); +122 refs #4599: stall-watchdog race around the drain + shared idempotent flushAndRelease + CLI stall exit mapping (watchdog machinery itself lives in core/embed-stall.ts); +12: adversarial-review hardening (healed_splits progress key + heal-tick comment); #5105: guarded derived projection preparation and read seals; #5105: conditional embedding installer wiring; archived eligibility: active-only dispatch with honest stranded-work reporting; explicit archived admission: live-source snapshots and honest refused-installation failures; +2 fw3: embed --stale --images dispatch (sweep lives in core/embed-stale-images.ts); +5 #5289: dry run reports restamp-only chunks apart from chunks to embed (count lives in core/embedding-invalidation.ts); +6 #4616: keep a partially refused batch in embedPageTexts and name the recovery command in failure samples (guard lives in core/ai/embedding-guard.ts); +5 #5226: embed summary counts distinct pages; +3 #5804: null projection snapshot counted as a failure with one batch summary in embed --stale; +18 wave 8 lane D1: #5527 mixed-space warning subtracts current-model chunks (+4), #5885 takes option/result fields and the stale-drain takes call (pass lives in core/embed-takes.ts); +9 Foundations 1 F4d: time-budget stop result fields, stdout verdict and stop recording in embed --stale (logic in core/embed-budget-stop.ts); +8 green-master lane A: chunkless install re-reads through retryProjectionConflict instead of recording an unavailable page (retry lives in core/page-state/projections.ts, failure line in core/agent-output.ts); +8 fix wave 13 P1.18: runEmbed consent parameter, cost-cap stop wiring and result fields, --slugs parsing to the next flag (cap, verdict and resume logic live in core/embed-cost-cap.ts); +28 large pages A9/T3/T16: --held listing and per-page cap metering on every embed path (logic in core/page-embedding-budget.ts meterPageBatch/spendGrant/heldEmbedArgv), approvedPageCapUsd from --max-usd on --slugs; +1 #6722: an explicit slug embed skips an embed_skip page (it keeps keyword chunks, never vectors); merge v0.60.240.0: large pages and master growth compose at 2265; +39 large pages Wave B lane 1e: segmented pages route to the keyset sweep on the slug, --all and --stale paths, with a dry-run count and provenance stamp (logic in core/page-body/segmented-embedding.ts); +2 agent operator wave D2: --json failure envelope via writeCliError++src/commands/extract-conversation-facts.ts 1949 ratchet grown v0.46.x per-provider gateway-unavailable copy; grown wave-g (#4482): expected budget/deadline caps classified apart from error halts; wave-k: save-time resolution caller (#4052/#3729 — supersedes wave-g's per-row resolveEntitySlug mapper); +1: key-aware llm-fallback default (#3813); +1: pricingOverrides wiring into the owned BudgetTracker (#4633 adoption); +3: #4869 snapshot-mismatch counts as pages_failed; merged reliability/shared-skills source integration; +19: additive skip reasons and model-free dry-run (#5364); +21 #5757: managed extraction buffers a page's rows and replaces the prior batch in one coordinator transaction (replacement helper lives in core/persistence/derived-facts.ts); +18 #5823: result diagnostics, strict explicit-cap parsing and CLI recovery/help; default-cap decision lives in facts/conversation-budget.ts; +18 fix wave 7 (#5704, #5448): --json envelope on stdout (parser flag, help line, summary block gated behind the human-output branch); +2 fix wave 10 (#6037, issue #6033): explicit-slug page failures are contained per page through one bounded failure logger (recordPageFailure) shared with the pooled path; +4 fix wave 10 (#5120): facts.default_visibility resolved once per run (resolveDefaultVisibility) and applied to extracted rows only; 2 P2 segmentObservationDate + segmentValidFrom helpers (date-grounding observation time per segment; extractor event date wins over segment start); +4: ExtractConversationFactsResult.failed_pages (interface field) and the help text exit-status paragraph; partial-success logic lives in core/facts/conversation-run-status.ts; re-summed at the master 6ccf30c3e merge (2179 master lines + 20 integration lines over base); re-summed at the #6020 merge on actual lines (as rehearsed on capy/mpw-integration-p2); re-summed at the wave 10 merge on actual lines (+1 recordPageFailure fills failed_pages); lowered at the wave-9 follow-ups merge: the three zero-result literals became emptyExtractConversationFactsResult(); lowered to 2075 at wave 15 P2.5 (#6267): segment tunables, splitIntoSegments and renderSegmentForExtraction moved to core/facts/conversation-windows.ts, the message/segment types to core/facts/conversation-types.ts (re-exported here); +12 large pages T2: the oversized-sidecar snapshot and the durable size-skip receipt (skippedForSize; the cap and the bounded sidecar read live in core/conversation-parser/body.ts, the receipt in core/extraction-watermark.ts); merge v0.60.240.0: large pages and master growth compose at 2087; -6 wave 18 lane 3 (#6731 #6764): the two extractor call sites share one input object, inference lives in core/facts/conversation-subject-infer.ts; Wave B PR 2 (kept at the master 4e29d0904 merge): +7 large pages PR 2 lane 2e2: a segmented conversation over the window cap (snapshot.window, the tail_window receipt, the window fallback date; the window read lives in core/page-body/segment-conversation.ts); +9 lane 2e2 follow-up: the lossless window rule (a page over the window with conversation facts keeps them and is skipped, the receipt names the rule; the count lives in core/facts/conversation-publication.ts); integrated at the master 4e29d0904 merge: 2097 measured; lowered to 2044 by #7013: a page's rows publish once through publishConversationFacts (core/facts/conversation-publication.ts), so the delete-first cleanup, the per-segment inserts and the row-number peek left; +1 GBRA-159: facts from a private page are private (tightenToPage per page; helper in core/facts/visibility.ts); +3 #7438: ExtractConversationFactsResult.facts_skipped_purged (interface field) and one notePurgedSkips call (the count and log live in core/facts/conversation-publication.ts); grown v0.46.x per-provider gateway-unavailable copy; re-summed at the Wave B PR 4 merge with v0.60.452.0 (1949 measured)+ src/commands/extract.ts 2700 ratchet +8 GBRA-130 A-1: extract --stale --retry-held flag, help lines and the managed result failure fields (logic in core/persistence/links-maintenance.ts and links-extraction-holds.ts); grown v0.46.26.0 megawave: FS-walk stamp snapshot + legacy timeline repair wiring (#3957 D4) + PR#4486 rebase onto current master; grown wave-g (#4542): --from-meetings zero-match warning + default-pass note; +29: #3478 federated-only gate on the cross-source 'default' link fallback; +44: #3908 cross_source opt-in — counted drops + deterministic cross-source pick; +36: #4611 configured-sources.default fallback (resolveLinkFallbackDefault); +14: #4890 extractStaleFromDB quiet opt + extractForSlugs jsonMode batch_error stderr fallback; +5: #4855 stroke-letter fold in link extraction; +5: #4793 by-mention scan honours link_resolution.cross_source; +18: wave review — ExtractOpts.quiet threaded through the fs-walk extractors (stdout silence decoupled from jsonMode); +77: shared buildSlugPathIndex — every per-slug extractor resolves the real on-disk path, and the sync hooks report which slugs they actually read; +10 #4999: includeFrontmatter default-resolved inside extractLinksForSlugs + extractStaleFromDB (resolveIncludeFrontmatter), --stale flag absent -> configured knob; +20: pre-landing review of #4967 — resolveSlugRelPath: index miss falls back to the legacy slug+'.md' path so admitted _-prefixed / include_hidden pages keep their edges; T2: source-qualified inference and atomic origin-scoped derived links; standard DB extraction fences captured endpoint revisions; shared authoritative attendance/source reconciliation moved to the core module; +7 A2 preview-bound attendance repair import, help and authority dispatch; bounded incomplete-attendance diagnostics and consistent basename resolution; fail closed before graph mutation when active ontology is unavailable; +16 source-selected ontology cache, type-scoped preflight and non-starving failed stale drain; +7 write-path wave: per-slug extractors replace page links + retract removed timeline rows + rename-alias resolution; +5 fw3 derived-sync: timeline --prune-orphans CLI (#4649) and full-walk page link replacement; +13 fw3 A16/A15: sync link hook reads scoped page metadata and reports per-page extraction errors; +1 fw3 managed-lifecycle: extract --stale dispatches managed brains to the coordinator-safe path; +4 fw3 integration: managed brains refuse the direct timeline orphan prune; +26 #5609: managed extract --stale publishes links, canonical timeline and watermark per page in one coordinated transaction; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +4 at the merge; +6 fix wave 3 lane B: a managed brain routes the extract phase file walk through extractManagedStaleLinks instead of the refused raw timeline batch, keeping the extract.links_fs progress phase; +6 #5761: the unmanaged extract --stale sweep marks unresolved-attendance skips attendance-blocked; +2 eval-wave N9-3/N12-7: a page-type-bound pack attended rule defers to canonical attendance on the filesystem path (ownsAttendanceInference); lowered to 2528 #5904: the DB timeline walk moved to commands/extract-timeline-db.ts (coordinated publication on managed brains, honest refusal + non-zero exit); +13 entity mention index: extract --stale runs the mention pass after link work (half the budget reserved while mention-due pages exist), dry-run and JSON report mention counts, and the help documents the pass and `extract mentions --explain` (logic in core/mentions/); cat40 entity wave merge with v0.60.61.0 (2541 measured); +6 fix wave 10 lane L1 #5556: quarantined pages skipped by the file walks, slug lists and DB walks (slug lookup in quarantine.ts quarantinedSlugs); +3 #5556: the abort check stays its own statement in each quarantine-aware scan loop (cycle-abort coverage pin); 2 P5 wanted pages: both DB extract paths record unresolved authored refs with each page's links; +5 P5 line grammar: stated relation types on the filesystem link scan; +3 PGLite stale link drains refresh planner statistics before and during the drain (logic in planner-stats.ts plannerStatsForLinkDrain); +10 fix wave 12 W2.1 S4 (#6228): extract --stale flushes and stamps the pages a batch finished before an aborting page; +12 P5 wanted pages: both DB extract paths record unresolved authored refs with each page's links; +9 Q2 parser gaps: both DB extract paths read the line-grammar settings once, publish through replaceDerivedLinksUnlessSettingsChanged and report pages a mid-run settings change left stale; +25 GBRA-69: extract --source db reads snapshots and publishes derived links BATCH_SIZE pages at a time (readPageSnapshotsBatch in core/page-snapshot-batch.ts, replay in derived-links.ts replaceDerivedLinksBatchOrReplay); +2 GBRA-75 w7: the --source db links walk refreshes planner statistics (logic in planner-stats.ts plannerStatsForLinkDrain); +10 fix wave 13 P2.16 (#6272): both unmanaged DB link drains defer and count a page a concurrent writer moved (skipped_concurrent_write) instead of aborting the run (classifier and skip line in core/derived-links.ts); +3 fix wave 13 P2.18 (S4): extract all --source db stamps the pages both phases completed at one revision, in a finally (stampCompletedIntersection), instead of every links-phase page; +1 fix wave 13 P2.15 (#6273): --from-meetings exits non-zero while managed entity pages are still pending; +7 fix wave 13 PR2: extractFromDB split out of runExtract so runExtract stays under its function-size baseline; Wave B PR 2 (kept at the master 4e29d0904 merge): +3 PR 2 fix lane J1: extract --stale reads a segmented page block by block (extractSegmentedPageLinks, segmentedTimelineText) now that the stale list includes it; integrated at the master 4e29d0904 merge: 2635 measured; +23 fix wave 20 #6954: the fs walks and the slug-scoped extract collect lost link/timeline writes, stamp only the pages whose writes landed and throw extract_write_lost (helpers in core/extract-watermark.ts); fix wave 20 integration: lane 1 (#6808, +11) and lane 2 (#6954, +23) compose at 2677 measured; +16 #7394: --type/--since/--infer-dates on the file walk refuse with the --source db command beside the other --source db refusals, and the help says so; +5 GBRA-161 PR 5 (T-2, L-6): timeline retraction and the mention rebuild sweep are bound to the revision they read (PageRevisionConflictError import, the scanned-revision read and its FOR SHARE check); +2 GBRA-133: ExtractOpts.timeBudgetMs, forwarded to the managed stale-page pass so the cycle bounds a pass with no slug list+ src/commands/jobs.ts 687 ratchet refactor wave 1 split target (W4 jobs, cut line); ceiling rationale: docs/architecture/key-files/commands-4.md entry for src/commands/jobs.ts; help lines: authorize-legacy --select (#5157 T3) and jobs cancel --select (DX-T2); submit --queue-only + PGLite work drain note (agent-first operator wave E5); +2 spend authorization: jobs submit --yes/--max-usd and jobs list --group help lines; +4 fix wave 9: supervisor stop help documents the 45 s wait, --queue and the verified-drain exit codes; +1 #7142: doctor-refresh handler registration (logic in doctor/last-known.ts); +20 #7242 jobs wait: subcommand row, import, usage lines and its --help text with the exit codes (logic in jobs/wait.ts)src/commands/serve-http.ts 937 ratchet refactor wave 1 W4 split into serve-http-<area>.ts modules; ceiling rationale: docs/architecture/key-files/commands-5.md entry for src/commands/serve-http.ts; +2 agent operator wave A6: ServeHttpContext.noticeLedger (import + field; logic in core/notice-ledger.ts); +2 agent contract F1/F2: ServeHttpContext.readinessCache (probed readiness for initialize tails + gbrain://capabilities); +5 Lane D facts drain: serve --http starts the drain scheduler and stops it before the engine disconnect (logic in core/facts/drain-scheduler.ts); +2 agent-operator follow-up Item 3: ServeHttpOptions.adoptServer (status-only recovery hands its bound listener to listenOrRefuse; logic in serve-http-status.ts); +5 #6317: managed-sync movement watch start/stop (watch in persistence/sync-movement.ts); +1 #6589: imports loadServeConfigs (operations see the DB-plane config read once at startup; logic in mcp/serve-config.ts); +5 #6858 ask 6: on-commit HEAD watcher start/stop (watcher in core/serve-head-watcher.ts)- src/core/ai/gateway.ts 4533 ratchet +2 PR 4 (Wave B incremental derivation, transcripts) 4b round 4: chat() forwards a metered page step's providerRetries (BudgetTracker) as the SDK's maxRetries, so every attempt is one it reserved for; +2 #6997: ChatResult.fallbackReason (interface field + doc; recorded in ai/chat-fallback.ts); +17 #6607: lazy OpenAI model discovery (discoverBeforeOpenAICall, once per reconfigure, at the chat/expand/embed entry points; it re-resolves through the gateway-internal resolveGatewayModels, so it cannot move); +18 W11 item 3: embedQuery query-embedding cache lookup/store + clear at every model-cache clear site and the test transport seam (cache lives in ai/query-embed-cache.ts); +7 fix wave 5 (#5137): provider-key redactor on every upstream error path and the first embedding 401/403 report (logic in ai/key-redact.ts, ai/key-warnings.ts); +20 System One v1: decide() delegating export + transport seam, RerankInput.onMeta/RerankMeta, TypeSafe reranker delegation to ai/decide/rerank-adapter.ts; +3 #5585: reconfigureGatewayWithEngine records expansion/chat model provenance (ai/gateway-model-sources.ts) + clears it with gateway state; lowered #5585: tracker record sites collapsed onto ai/budget-record.ts (recordOnTracker + failedCallUsage) while adding ledger fields (requested model, purpose, failed, estimated, countsAsCall); +20: schema-rejection fallback in chat() (retry once schemaless on a json_schema 4xx, remember the recipe for the process — mirrors expand()); re-summed after merging master v0.50.0.0 with the wave (structured-output + pricing hunks); +48: #4863 ChatOpts.responseSchema → tolerant json_schema Output on the chat() generateText call for openai-compatible recipes that declare structured outputs (facts extraction on Ollama); +74: #3657 post-sunset rerank short-circuit (effective-model check, once-per-process audit row + stderr, injected-clock seam); grown v0.46.26.0 megawave: config-plane probes + halt telemetry (#3387 #4312); +21 lines (OpenAI Responses API reasoning-item echo: ChatBlock 'reasoning' variant, chat()/toModelMessages() round-trip); wave-k absorbs: OCR routing seam (#4107 class), config-snapshot reader block (#3980); +21: #4107 OCR-model routing (getImageOcrModel); +10: keyless OPENAI_BASE_URL embedding override (#4385); wave-k #3622 reimpl: GBRAIN_EMBED_MAX_BATCH_TOKENS env cap for no_batch_cap recipes; +9: DeepSeek judge thinking pin plumbed through chat opts (#4069); +master v0.48 merge true-up (reranker succession: no_key preflight, reranker_skipped stage, readiness); ranker wave v0.48.4.0: ChatOpts.temperature threaded to the transport (+15); +24: #4172 recipe-declared thinking headroom on the chat()/toolLoop() default — shared isThinkingModel predicate (Claude-5 regex || recipe thinking_by_default, fail-closed), also consumed by the subagent handler; +20: #4861 claude-cli expansion routed to the schemaless viaText path (the CLI adapter ignores responseFormat, so the native generateObject branch had no fallback); retired provider integration removed; safety wave: migration reranker input ceilings; lowered by fix wave 3 #5680 (embed request planning peeled to ai/embed-batch-plan.ts); +5 #4616: empty inputs skip the provider and every text/multimodal result is screened for zero-norm/NaN/Inf vectors (logic lives in ai/embedding-guard.ts); fix wave 3 integration: #4616 empty-input filtering feeds the shared #5680 batch planner; +3 #5691: embedQuery takes a per-request queryPrefix (no gateway state); +26 fix wave 7 (#5642): embed spend records bank provider-reported usage.tokens (all sub-batches reported → measured; chars-per-token estimate stays the fallback and the failure charge); +2 #5892: import + load-time call of installAiSdkWarningWriter (writer lives in ai/sdk-warnings.ts); +12 #5490: chat() delegation to ai/chat-fallback.ts when chat_fallback_chain is set (attempt loop lives there), ChatOpts.allowFallback + ToolLoopOpts.allowFallback fields and the toolLoop forward; +2 #5490 review: ChatResult.fallbackFrom (the call model a chat_fallback_chain answer replaced); +1 fix wave lane B3: configureGateway keeps chat_fallback_on_refusal (the refusal switch lives in ai/chat-fallback.ts); +18 fix wave 9 lane B: ChatOpts.thinking (#5331, per-route mapping lives in ai/thinking-off.ts), ChatOpts.timeoutMs + ToolLoopOpts.turnTimeoutMs and the turn forward (#4921); interface fields and their docs cannot move; +2 P8: GBRAIN_AI_CALL_LOG observer install in configureGateway (logic in ai/call-log.ts); +2 W9F item 5: thinkingOffOutputCap export shared by chat() and the judge preflight estimates (capability table lives in ai/thinking-off.ts); +3 A1 (wave 0): ChatResult.usage.reasoning_tokens (interface field + doc) and the chat() reasoning-subset read beside the cache counts; the ai-sdk importer allowlist is shrink-only, so the seam stays here); +9 GOOGLE_GENERATIVE_AI_BASE_URL: resolveNativeBaseUrl('google') + the three native-google construction sites (eval metering proxy); re-summed at the master 6ccf30c3e merge (4417 integration + 4423 master - 4408 base); lowered -5: the expand() prompt template peeled to ai/expansion-prompt.ts (buildExpansionPrompt) so the longmemeval call planner measures the same text; +5 #7176: expand() writes its chat_usage_log row (phase expansion) beside the budget record, and the guardedExpansion instance that names its invocation gateway.expand (ledger in ai/chat-usage.ts); +1 PR 4 (Wave B incremental derivation, transcripts) 4b round 5: an embed inside a metered page step takes its providerRetries as maxRetries too, so the synopsis step books every attempt it reserved for- src/commands/sync.ts 548 ratchet refactor wave 1 split target (W4 sync); ceiling rationale: docs/architecture/key-files/commands-6.md entry for src/commands/sync.ts; +2 for the #5751 SyncResult.legacySkips interface field (fix wave 4); +2 fix wave 4 lane B: SyncResult.connectorHolds interface field (held counts for the sync summary); +1 fix wave 5 (#5032): SyncResult.fileRefusals interface field (named per-file Windows colon refusals); +13 #5984: SyncResult.drain / managedCursor and SyncOpts.drain / drainStartedAt interface fields (drain loop lives in persistence/sync-drain.ts); +1 #5984: SyncOpts.noBulk / bulk interface fields; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (510 measured); +2 #5984 lanes: SyncOpts.lanes field and the lanes progress-event field; +2 #6278: SyncResult.breaker interface field (the preparation-stall breaker verdict); +1 fix wave 13 P4.3 #6386: the JSON-output comment names writeJsonDocument for sync status/unblock; +2 fix wave 13 PR2: the transaction-pooler stderr line (P2.2) and the staged catch-up result field (P2.14, loop in commands/sync/perform.ts); +2 fix wave 15 P4.5 (#5459 adjacent): SyncResult.working_tree_kept interface field (the tree-walk keep lives in persistence/sync-discovery.ts); +4 #6643: SyncResult.retryWait / knockOns interface fields (recovery lives in persistence/sync-run.ts, sync-knock-on.ts); +2 #6696 (A7): SyncOpts.capacityPreflight interface field (preflight lives in persistence/sync-capacity-preflight.ts); +2 #6696 C1: SyncOpts.embedDeferred interface field (the cost gate's runtime embed deferral; an interface field cannot move), composed with PR A's SyncOpts.capacityPreflight; +2 #6693: SyncResult.replayedRemembers interface field (the post-sync replay lives in commands/sync/perform.ts and repair/failed-writes.ts); +12 #6712 PR 1: SyncResult.leaseHeld / inherited_options / cursorAdopted / cursorFanIn and SyncOpts.drainHolder / followDrainLease interface fields (the lease lives in persistence/sync-lease.ts, adoption in persistence/sync-cursor-key.ts and sync-admitted.ts); +2 #6712 PR 2 (L5): SyncResult.tail interface field (the tail lives in persistence/sync-tail.ts); +2 #6712 PR 2 integration: L4 ghostPages and L5 tail SyncResult interface fields both land (each lane raised 542->544 alone); +2 #6948: SyncResult.origin_twins_resolved interface field (the heal lives in repair/origin-twins-heal.ts); +5 #6712 PR 4b: SyncResult.pass / reconcile and SyncOpts.costApproved interface fields (an interface field cannot move; the pass summary and the pass reason union live in persistence/sync-pass-row.ts, the remote reconcile in sync-pass-apply.ts); lowered to 546 #6712 PR 4b lane C: SyncResult.cursorAdopted / cursorFanIn retired with the cursor engine- src/core/cycle.ts 3332 ratchet +2 GBRA-130 C-2 (#6946): the sync phase reads an owned clone's pull block and reports it as pull_blocked (logic in url-clone.ts urlClonePullBlock/urlClonePullBlockSummary); +6 GBRA-130 A-1: the extract phase warns on failed or breaker-stopped stale drain pages (logic in cycle/connector-extract.ts staleDrainFailures); +1 W1 belief ledger: the extract phase runs the sampled belief drift reconcile (logic in belief/coverage-report.ts); +2 System One v1 S9: extract_facts phase tail runs the conflict sweep (ai/decide/sweep.ts) only when the slot is not off; +2 System One v1: purge phase prunes decision receipts (ai/decide/store.ts); grown v0.46.26.0 megawave (#4102 #2608) + master v0.46.26.0 cycle-start orphan recovery; +10 wave G #3974: cycle-sync uncommitted-drift warn; grown wave-g (#4416): synthesize_concepts source threading; grown wave-g (#4416): synthesize_concepts source threading (same fix absorbed as #4417 on wave-k); wave-k: ); +7: #4077 abort threading; +10: #4745 fullImplicitSourceCycle opt-in contract; +3: #4890 extract phase jsonMode/quiet + pages-not-links totals; +1: wave review — extract phase passes quiet:true + jsonMode:false; +1: extract_facts pagesFailed detail; +8 fix wave 3: one cycle date resolved in runCycle and threaded to synthesize/patterns/drift (C-15); +1 #5632: cycle sync resumes an unfinished managed cursor with its stored options; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +1 at the merge; -41 #5809: anyAbortSignal peeled to abort-signals.ts; +5 #5809: extract_atoms phase gets a real abort signal; +4 #5809: cycle_already_running names the lock holder; +7 #5255: cycle sync runs a managed pull request as no-pull and reports upstream_refresh; +1 #4578: a lock steal during the last selected phase reports lock_stolen, not aborted; +3 #5536: keyless embed phase clean-skips when embedding_disabled is set; +5 F4b: planner-stats refresh after the freshness phases (logic in planner-stats.ts); +2 agent operator wave A1: PhaseResult sibling code/fix; +20 #5876: Life Chronicle phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block; v0.60.46.0 merge: re-summed to the merged line count (3224); +3 retrieval feedback retention in the purge phase (logic in feedback/store.ts pruneRetrievalFeedback); 12 Lane D: facts_drain phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch line (logic in cycle/facts-drain.ts); P3 x foundations-2 composition: deltas re-summed at the merge; 12 Lane D: facts_drain phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch line (logic in cycle/facts-drain.ts); +15 GBRA-49 temporal typed edges: edge_contradictions phase registration + dispatch block + extract-phase relationship sweep call (logic in cycle/edge-contradictions.ts, link-relationships.ts); P3 x P1 (v0.60.57.0) composition: deltas re-summed at the merge; +1 fix wave 9 lane P (#5151): extract_facts phase passes drain so the facts watermark drain runs (logic in facts/reconcile-watermark.ts); +10 #6188: fence_repair phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block (logic in cycle/fence-repair.ts); +19 fix wave 12 #6242: source cycles with brain-wide phases also take the shared gbrain-cycle lease (acquireDbCycleLock lease set, needsMaintenanceLease, skipBrainWidePhases, all-skipped deriveStatus case; lease logic in cycle/lock-set.ts); +16 #6377: content_repair phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK), the REPAIR_LANE_PHASES dispatch helper shared with fence_repair (logic in cycle/content-repair.ts); +10 C4 pinned questions: standing_questions phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block (logic in questions/phase.ts); +11 #6696 (A5, A4): runCycle becomes the background-origin wrapper over runCycleUnscoped and adds the capacity notices (logic in persistence/admission-origin.ts, capacity-snapshot.ts) plus the CycleReport.notices interface field; +2 #6297: CycleOpts.directPhases (operator-named phases skip the patterns cadence); +5 #6865: unindexed_files phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its line in the REPAIR_LANE_PHASES dispatch helper (logic in cycle/unindexed-files.ts); +2 fix wave 20 #6954: the extract phase warns on extract_write_lost and its stale drain retries the pages left due- src/core/cycle/synthesize.ts 3230 ratchet +26 System One v1 S7/S8: triage and grounding decide delegation (triage-decide.ts, grounding-decide.ts); merged waves; grown v0.46.26.0 megawave + master rolling lease via shared throttled renewer; grown wave-g (#4506): cycle summaries can stay out of the source repo; +18: expired-verdict sweep + DeepSeek judge thinking pin (#4069); +47: #4077 cooperative-abort threading; +110: eval fix wave F6 spend surfacing (withChatPhase wrap, triage/child token telemetry, zero-page counter); +32: F1b quote-verify call site + kill switch; +2: F1a/F3/F4a OUTPUT POLICY rules; +59: F2 verified-segment rescue (gate at report construction, rescue knobs, telemetry); +19: rubric v2 peak-scoring + docblock rescue branch; +50: #4337 summary link-sample cap + dream_created_cycle_date preserve-on-rerun; +5: #4348 resolveCycleDate wiring (local-day summary bucketing); +3 round-3 rebase true-up; +55: #4805 synth-v2 completion skip (findSynthV2Completion + prefix-parameterized loadSuccessfulSynthesisKeys); +10: #4886 mode-aware buildSynthesisPrompt (oneshot children drop tool-use/final-prose guidance); #5105: small legacy writer/refusal and shared revision CAS delegates; +4: merge of #5666 durable synthesis completions with the v0.59.18.0 verify-epoch wiring; +7 #5413/#5471 discovery exclusions (self-capture session ids, dream output directories); +6 fix wave 2 (v0.60.5.0) integration: W7 paid-loop breaker check before submission and released-key daily-cap count on top of the W1b discovery exclusions; +6 v0.60.5.0 master-merge true-up: the wave-2 growth (+13 W1b, +6 W7) re-summed over master v0.59.18.0 at 3222 lines with no slack; +76 fix wave 3: per-run USD gate + fail-closed daily cap (C-13), child first-write ownership for stamp/reverse-write (C-8, #5685), cycle-date prompt hint (C-15), opt-in attribution rule (#5425); fix wave 3 x fix wave 2 (v0.60.5.0) composition: +19 at the merge; +2 #5806 triageNow clock seam forwarded to triage (interface field + call-site option); +4 #5854: a postprocess or summary publish still pending after its wait is deferred (publish_pending warn, no cooldown stamp; helper in synthesize-postprocess.ts); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); Foundations 2 Lane C: maintenanceTransaction import (attributed summary page); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); Foundations 2 Lane C: maintenanceTransaction import (attributed summary page); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); lowered to 3200 by wave 9 lane W #5145: completion-key helpers (findLegacyCompletion, findSynthV2Completion, loadSuccessfulSynthesisKeys) peeled to synthesize-completion.ts with the new pre-triage partition; +13 P2 extraction.date_grounding: transcript observation date line instead of a run-date "Today's date" (config field + prompt arg); +1 fix wave 11 #6160: oneshot_task_prefixes on the child job data; +18 fix wave 12 #6069: unreliable-verdict backoff in runTriagePass (report code, pass backoff count, triage details entry; marker logic in triage-backoff.ts); +1 fix wave 12 #6242: SYNTH_PHASE_FAIL keeps an OperationError's suggestion and code (OperationError import); +3 wave 17 #6616: slug discovery and postprocessing share the canonical committed child outputs (loadCommittedSynthesisOutputs in synthesize-postprocess.ts; one call-site line, one parameter, one lookup line); lowered to 3224 by wave 17 #6642: the summary provenance section moved to summaryProvenanceLines in dream-provenance.ts; +6 GBRA-130 B-6 (#6860): surrogate-safe triage cuts (truncateUtf8) and the per-transcript verdict-cache write call site (logic in triage-backoff.ts VerdictCacheWrites)-src/core/ai/gateway.ts 4530 ratchet +2 #6997: ChatResult.fallbackReason (interface field + doc; recorded in ai/chat-fallback.ts); +17 #6607: lazy OpenAI model discovery (discoverBeforeOpenAICall, once per reconfigure, at the chat/expand/embed entry points; it re-resolves through the gateway-internal resolveGatewayModels, so it cannot move); +18 W11 item 3: embedQuery query-embedding cache lookup/store + clear at every model-cache clear site and the test transport seam (cache lives in ai/query-embed-cache.ts); +7 fix wave 5 (#5137): provider-key redactor on every upstream error path and the first embedding 401/403 report (logic in ai/key-redact.ts, ai/key-warnings.ts); +20 System One v1: decide() delegating export + transport seam, RerankInput.onMeta/RerankMeta, TypeSafe reranker delegation to ai/decide/rerank-adapter.ts; +3 #5585: reconfigureGatewayWithEngine records expansion/chat model provenance (ai/gateway-model-sources.ts) + clears it with gateway state; lowered #5585: tracker record sites collapsed onto ai/budget-record.ts (recordOnTracker + failedCallUsage) while adding ledger fields (requested model, purpose, failed, estimated, countsAsCall); +20: schema-rejection fallback in chat() (retry once schemaless on a json_schema 4xx, remember the recipe for the process — mirrors expand()); re-summed after merging master v0.50.0.0 with the wave (structured-output + pricing hunks); +48: #4863 ChatOpts.responseSchema → tolerant json_schema Output on the chat() generateText call for openai-compatible recipes that declare structured outputs (facts extraction on Ollama); +74: #3657 post-sunset rerank short-circuit (effective-model check, once-per-process audit row + stderr, injected-clock seam); grown v0.46.26.0 megawave: config-plane probes + halt telemetry (#3387 #4312); +21 lines (OpenAI Responses API reasoning-item echo: ChatBlock 'reasoning' variant, chat()/toModelMessages() round-trip); wave-k absorbs: OCR routing seam (#4107 class), config-snapshot reader block (#3980); +21: #4107 OCR-model routing (getImageOcrModel); +10: keyless OPENAI_BASE_URL embedding override (#4385); wave-k #3622 reimpl: GBRAIN_EMBED_MAX_BATCH_TOKENS env cap for no_batch_cap recipes; +9: DeepSeek judge thinking pin plumbed through chat opts (#4069); +master v0.48 merge true-up (reranker succession: no_key preflight, reranker_skipped stage, readiness); ranker wave v0.48.4.0: ChatOpts.temperature threaded to the transport (+15); +24: #4172 recipe-declared thinking headroom on the chat()/toolLoop() default — shared isThinkingModel predicate (Claude-5 regex || recipe thinking_by_default, fail-closed), also consumed by the subagent handler; +20: #4861 claude-cli expansion routed to the schemaless viaText path (the CLI adapter ignores responseFormat, so the native generateObject branch had no fallback); retired provider integration removed; safety wave: migration reranker input ceilings; lowered by fix wave 3 #5680 (embed request planning peeled to ai/embed-batch-plan.ts); +5 #4616: empty inputs skip the provider and every text/multimodal result is screened for zero-norm/NaN/Inf vectors (logic lives in ai/embedding-guard.ts); fix wave 3 integration: #4616 empty-input filtering feeds the shared #5680 batch planner; +3 #5691: embedQuery takes a per-request queryPrefix (no gateway state); +26 fix wave 7 (#5642): embed spend records bank provider-reported usage.tokens (all sub-batches reported → measured; chars-per-token estimate stays the fallback and the failure charge); +2 #5892: import + load-time call of installAiSdkWarningWriter (writer lives in ai/sdk-warnings.ts); +12 #5490: chat() delegation to ai/chat-fallback.ts when chat_fallback_chain is set (attempt loop lives there), ChatOpts.allowFallback + ToolLoopOpts.allowFallback fields and the toolLoop forward; +2 #5490 review: ChatResult.fallbackFrom (the call model a chat_fallback_chain answer replaced); +1 fix wave lane B3: configureGateway keeps chat_fallback_on_refusal (the refusal switch lives in ai/chat-fallback.ts); +18 fix wave 9 lane B: ChatOpts.thinking (#5331, per-route mapping lives in ai/thinking-off.ts), ChatOpts.timeoutMs + ToolLoopOpts.turnTimeoutMs and the turn forward (#4921); interface fields and their docs cannot move; +2 P8: GBRAIN_AI_CALL_LOG observer install in configureGateway (logic in ai/call-log.ts); +2 W9F item 5: thinkingOffOutputCap export shared by chat() and the judge preflight estimates (capability table lives in ai/thinking-off.ts); +3 A1 (wave 0): ChatResult.usage.reasoning_tokens (interface field + doc) and the chat() reasoning-subset read beside the cache counts; the ai-sdk importer allowlist is shrink-only, so the seam stays here); +9 GOOGLE_GENERATIVE_AI_BASE_URL: resolveNativeBaseUrl('google') + the three native-google construction sites (eval metering proxy); re-summed at the master 6ccf30c3e merge (4417 integration + 4423 master - 4408 base); lowered -5: the expand() prompt template peeled to ai/expansion-prompt.ts (buildExpansionPrompt) so the longmemeval call planner measures the same text; +5 #7176: expand() writes its chat_usage_log row (phase expansion) beside the budget record, and the guardedExpansion instance that names its invocation gateway.expand (ledger in ai/chat-usage.ts)++src/core/ai/gateway.ts 4533 ratchet +2 #6997: ChatResult.fallbackReason (interface field + doc; recorded in ai/chat-fallback.ts); +17 #6607: lazy OpenAI model discovery (discoverBeforeOpenAICall, once per reconfigure, at the chat/expand/embed entry points; it re-resolves through the gateway-internal resolveGatewayModels, so it cannot move); +18 W11 item 3: embedQuery query-embedding cache lookup/store + clear at every model-cache clear site and the test transport seam (cache lives in ai/query-embed-cache.ts); +7 fix wave 5 (#5137): provider-key redactor on every upstream error path and the first embedding 401/403 report (logic in ai/key-redact.ts, ai/key-warnings.ts); +20 System One v1: decide() delegating export + transport seam, RerankInput.onMeta/RerankMeta, TypeSafe reranker delegation to ai/decide/rerank-adapter.ts; +3 #5585: reconfigureGatewayWithEngine records expansion/chat model provenance (ai/gateway-model-sources.ts) + clears it with gateway state; lowered #5585: tracker record sites collapsed onto ai/budget-record.ts (recordOnTracker + failedCallUsage) while adding ledger fields (requested model, purpose, failed, estimated, countsAsCall); +20: schema-rejection fallback in chat() (retry once schemaless on a json_schema 4xx, remember the recipe for the process — mirrors expand()); re-summed after merging master v0.50.0.0 with the wave (structured-output + pricing hunks); +48: #4863 ChatOpts.responseSchema → tolerant json_schema Output on the chat() generateText call for openai-compatible recipes that declare structured outputs (facts extraction on Ollama); +74: #3657 post-sunset rerank short-circuit (effective-model check, once-per-process audit row + stderr, injected-clock seam); grown v0.46.26.0 megawave: config-plane probes + halt telemetry (#3387 #4312); +21 lines (OpenAI Responses API reasoning-item echo: ChatBlock 'reasoning' variant, chat()/toModelMessages() round-trip); wave-k absorbs: OCR routing seam (#4107 class), config-snapshot reader block (#3980); +21: #4107 OCR-model routing (getImageOcrModel); +10: keyless OPENAI_BASE_URL embedding override (#4385); wave-k #3622 reimpl: GBRAIN_EMBED_MAX_BATCH_TOKENS env cap for no_batch_cap recipes; +9: DeepSeek judge thinking pin plumbed through chat opts (#4069); +master v0.48 merge true-up (reranker succession: no_key preflight, reranker_skipped stage, readiness); ranker wave v0.48.4.0: ChatOpts.temperature threaded to the transport (+15); +24: #4172 recipe-declared thinking headroom on the chat()/toolLoop() default — shared isThinkingModel predicate (Claude-5 regex || recipe thinking_by_default, fail-closed), also consumed by the subagent handler; +20: #4861 claude-cli expansion routed to the schemaless viaText path (the CLI adapter ignores responseFormat, so the native generateObject branch had no fallback); retired provider integration removed; safety wave: migration reranker input ceilings; lowered by fix wave 3 #5680 (embed request planning peeled to ai/embed-batch-plan.ts); +5 #4616: empty inputs skip the provider and every text/multimodal result is screened for zero-norm/NaN/Inf vectors (logic lives in ai/embedding-guard.ts); fix wave 3 integration: #4616 empty-input filtering feeds the shared #5680 batch planner; +3 #5691: embedQuery takes a per-request queryPrefix (no gateway state); +26 fix wave 7 (#5642): embed spend records bank provider-reported usage.tokens (all sub-batches reported → measured; chars-per-token estimate stays the fallback and the failure charge); +2 #5892: import + load-time call of installAiSdkWarningWriter (writer lives in ai/sdk-warnings.ts); +12 #5490: chat() delegation to ai/chat-fallback.ts when chat_fallback_chain is set (attempt loop lives there), ChatOpts.allowFallback + ToolLoopOpts.allowFallback fields and the toolLoop forward; +2 #5490 review: ChatResult.fallbackFrom (the call model a chat_fallback_chain answer replaced); +1 fix wave lane B3: configureGateway keeps chat_fallback_on_refusal (the refusal switch lives in ai/chat-fallback.ts); +18 fix wave 9 lane B: ChatOpts.thinking (#5331, per-route mapping lives in ai/thinking-off.ts), ChatOpts.timeoutMs + ToolLoopOpts.turnTimeoutMs and the turn forward (#4921); interface fields and their docs cannot move; +2 P8: GBRAIN_AI_CALL_LOG observer install in configureGateway (logic in ai/call-log.ts); +2 W9F item 5: thinkingOffOutputCap export shared by chat() and the judge preflight estimates (capability table lives in ai/thinking-off.ts); +3 A1 (wave 0): ChatResult.usage.reasoning_tokens (interface field + doc) and the chat() reasoning-subset read beside the cache counts; the ai-sdk importer allowlist is shrink-only, so the seam stays here); +9 GOOGLE_GENERATIVE_AI_BASE_URL: resolveNativeBaseUrl('google') + the three native-google construction sites (eval metering proxy); re-summed at the master 6ccf30c3e merge (4417 integration + 4423 master - 4408 base); lowered -5: the expand() prompt template peeled to ai/expansion-prompt.ts (buildExpansionPrompt) so the longmemeval call planner measures the same text; +5 #7176: expand() writes its chat_usage_log row (phase expansion) beside the budget record, and the guardedExpansion instance that names its invocation gateway.expand (ledger in ai/chat-usage.ts); +2 PR 4 (Wave B incremental derivation, transcripts) 4b round 4: chat() forwards a metered page step's providerRetries (BudgetTracker) as the SDK's maxRetries, so every attempt is one it reserved for+ src/commands/sync.ts 550 ratchet refactor wave 1 split target (W4 sync); ceiling rationale: docs/architecture/key-files/commands-6.md entry for src/commands/sync.ts; +2 for the #5751 SyncResult.legacySkips interface field (fix wave 4); +2 fix wave 4 lane B: SyncResult.connectorHolds interface field (held counts for the sync summary); +1 fix wave 5 (#5032): SyncResult.fileRefusals interface field (named per-file Windows colon refusals); +13 #5984: SyncResult.drain / managedCursor and SyncOpts.drain / drainStartedAt interface fields (drain loop lives in persistence/sync-drain.ts); +1 #5984: SyncOpts.noBulk / bulk interface fields; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (510 measured); +2 #5984 lanes: SyncOpts.lanes field and the lanes progress-event field; +2 #6278: SyncResult.breaker interface field (the preparation-stall breaker verdict); +1 fix wave 13 P4.3 #6386: the JSON-output comment names writeJsonDocument for sync status/unblock; +2 fix wave 13 PR2: the transaction-pooler stderr line (P2.2) and the staged catch-up result field (P2.14, loop in commands/sync/perform.ts); +2 fix wave 15 P4.5 (#5459 adjacent): SyncResult.working_tree_kept interface field (the tree-walk keep lives in persistence/sync-discovery.ts); +4 #6643: SyncResult.retryWait / knockOns interface fields (recovery lives in persistence/sync-run.ts, sync-knock-on.ts); +2 #6696 (A7): SyncOpts.capacityPreflight interface field (preflight lives in persistence/sync-capacity-preflight.ts); +2 #6696 C1: SyncOpts.embedDeferred interface field (the cost gate's runtime embed deferral; an interface field cannot move), composed with PR A's SyncOpts.capacityPreflight; +2 #6693: SyncResult.replayedRemembers interface field (the post-sync replay lives in commands/sync/perform.ts and repair/failed-writes.ts); +12 #6712 PR 1: SyncResult.leaseHeld / inherited_options / cursorAdopted / cursorFanIn and SyncOpts.drainHolder / followDrainLease interface fields (the lease lives in persistence/sync-lease.ts, adoption in persistence/sync-cursor-key.ts and sync-admitted.ts); +2 #6712 PR 2 (L5): SyncResult.tail interface field (the tail lives in persistence/sync-tail.ts); +2 #6712 PR 2 integration: L4 ghostPages and L5 tail SyncResult interface fields both land (each lane raised 542->544 alone); +2 #6948: SyncResult.origin_twins_resolved interface field (the heal lives in repair/origin-twins-heal.ts); +5 #6712 PR 4b: SyncResult.pass / reconcile and SyncOpts.costApproved interface fields (an interface field cannot move; the pass summary and the pass reason union live in persistence/sync-pass-row.ts, the remote reconcile in sync-pass-apply.ts); lowered to 546 #6712 PR 4b lane C: SyncResult.cursorAdopted / cursorFanIn retired with the cursor engine; +2 #7167: SyncResult.writer interface field (a managed dry run reports the writer instead of waiting on it; the read lives in persistence/sync-dry-run-writer.ts)+ src/core/cycle.ts 3338 ratchet +2 GBRA-130 C-2 (#6946): the sync phase reads an owned clone's pull block and reports it as pull_blocked (logic in url-clone.ts urlClonePullBlock/urlClonePullBlockSummary); +6 GBRA-130 A-1: the extract phase warns on failed or breaker-stopped stale drain pages (logic in cycle/connector-extract.ts staleDrainFailures); +1 W1 belief ledger: the extract phase runs the sampled belief drift reconcile (logic in belief/coverage-report.ts); +2 System One v1 S9: extract_facts phase tail runs the conflict sweep (ai/decide/sweep.ts) only when the slot is not off; +2 System One v1: purge phase prunes decision receipts (ai/decide/store.ts); grown v0.46.26.0 megawave (#4102 #2608) + master v0.46.26.0 cycle-start orphan recovery; +10 wave G #3974: cycle-sync uncommitted-drift warn; grown wave-g (#4416): synthesize_concepts source threading; grown wave-g (#4416): synthesize_concepts source threading (same fix absorbed as #4417 on wave-k); wave-k: ); +7: #4077 abort threading; +10: #4745 fullImplicitSourceCycle opt-in contract; +3: #4890 extract phase jsonMode/quiet + pages-not-links totals; +1: wave review — extract phase passes quiet:true + jsonMode:false; +1: extract_facts pagesFailed detail; +8 fix wave 3: one cycle date resolved in runCycle and threaded to synthesize/patterns/drift (C-15); +1 #5632: cycle sync resumes an unfinished managed cursor with its stored options; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +1 at the merge; -41 #5809: anyAbortSignal peeled to abort-signals.ts; +5 #5809: extract_atoms phase gets a real abort signal; +4 #5809: cycle_already_running names the lock holder; +7 #5255: cycle sync runs a managed pull request as no-pull and reports upstream_refresh; +1 #4578: a lock steal during the last selected phase reports lock_stolen, not aborted; +3 #5536: keyless embed phase clean-skips when embedding_disabled is set; +5 F4b: planner-stats refresh after the freshness phases (logic in planner-stats.ts); +2 agent operator wave A1: PhaseResult sibling code/fix; +20 #5876: Life Chronicle phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block; v0.60.46.0 merge: re-summed to the merged line count (3224); +3 retrieval feedback retention in the purge phase (logic in feedback/store.ts pruneRetrievalFeedback); 12 Lane D: facts_drain phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch line (logic in cycle/facts-drain.ts); P3 x foundations-2 composition: deltas re-summed at the merge; 12 Lane D: facts_drain phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch line (logic in cycle/facts-drain.ts); +15 GBRA-49 temporal typed edges: edge_contradictions phase registration + dispatch block + extract-phase relationship sweep call (logic in cycle/edge-contradictions.ts, link-relationships.ts); P3 x P1 (v0.60.57.0) composition: deltas re-summed at the merge; +1 fix wave 9 lane P (#5151): extract_facts phase passes drain so the facts watermark drain runs (logic in facts/reconcile-watermark.ts); +10 #6188: fence_repair phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block (logic in cycle/fence-repair.ts); +19 fix wave 12 #6242: source cycles with brain-wide phases also take the shared gbrain-cycle lease (acquireDbCycleLock lease set, needsMaintenanceLease, skipBrainWidePhases, all-skipped deriveStatus case; lease logic in cycle/lock-set.ts); +16 #6377: content_repair phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK), the REPAIR_LANE_PHASES dispatch helper shared with fence_repair (logic in cycle/content-repair.ts); +10 C4 pinned questions: standing_questions phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its runCycle dispatch block (logic in questions/phase.ts); +11 #6696 (A5, A4): runCycle becomes the background-origin wrapper over runCycleUnscoped and adds the capacity notices (logic in persistence/admission-origin.ts, capacity-snapshot.ts) plus the CycleReport.notices interface field; +2 #6297: CycleOpts.directPhases (operator-named phases skip the patterns cadence); +5 #6865: unindexed_files phase registration (CyclePhase, ALL_PHASES, NEEDS_LOCK) and its line in the REPAIR_LANE_PHASES dispatch helper (logic in cycle/unindexed-files.ts); +2 fix wave 20 #6954: the extract phase warns on extract_write_lost and its stale drain retries the pages left due; +5 #7241: CycleOpts.onPhaseStart and its best-effort call in timePhase, so the autopilot-cycle job writes its current phase to minion_jobs.progress; +1 GBRA-133: the extract phase passes the stale-drain budget to its targeted pass when sync gave no slug list+ src/core/cycle/synthesize.ts 3241 ratchet +26 System One v1 S7/S8: triage and grounding decide delegation (triage-decide.ts, grounding-decide.ts); merged waves; grown v0.46.26.0 megawave + master rolling lease via shared throttled renewer; grown wave-g (#4506): cycle summaries can stay out of the source repo; +18: expired-verdict sweep + DeepSeek judge thinking pin (#4069); +47: #4077 cooperative-abort threading; +110: eval fix wave F6 spend surfacing (withChatPhase wrap, triage/child token telemetry, zero-page counter); +32: F1b quote-verify call site + kill switch; +2: F1a/F3/F4a OUTPUT POLICY rules; +59: F2 verified-segment rescue (gate at report construction, rescue knobs, telemetry); +19: rubric v2 peak-scoring + docblock rescue branch; +50: #4337 summary link-sample cap + dream_created_cycle_date preserve-on-rerun; +5: #4348 resolveCycleDate wiring (local-day summary bucketing); +3 round-3 rebase true-up; +55: #4805 synth-v2 completion skip (findSynthV2Completion + prefix-parameterized loadSuccessfulSynthesisKeys); +10: #4886 mode-aware buildSynthesisPrompt (oneshot children drop tool-use/final-prose guidance); #5105: small legacy writer/refusal and shared revision CAS delegates; +4: merge of #5666 durable synthesis completions with the v0.59.18.0 verify-epoch wiring; +7 #5413/#5471 discovery exclusions (self-capture session ids, dream output directories); +6 fix wave 2 (v0.60.5.0) integration: W7 paid-loop breaker check before submission and released-key daily-cap count on top of the W1b discovery exclusions; +6 v0.60.5.0 master-merge true-up: the wave-2 growth (+13 W1b, +6 W7) re-summed over master v0.59.18.0 at 3222 lines with no slack; +76 fix wave 3: per-run USD gate + fail-closed daily cap (C-13), child first-write ownership for stamp/reverse-write (C-8, #5685), cycle-date prompt hint (C-15), opt-in attribution rule (#5425); fix wave 3 x fix wave 2 (v0.60.5.0) composition: +19 at the merge; +2 #5806 triageNow clock seam forwarded to triage (interface field + call-site option); +4 #5854: a postprocess or summary publish still pending after its wait is deferred (publish_pending warn, no cooldown stamp; helper in synthesize-postprocess.ts); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); Foundations 2 Lane C: maintenanceTransaction import (attributed summary page); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); Foundations 2 Lane C: maintenanceTransaction import (attributed summary page); +14 #5490 review: a triage verdict a chat_fallback_chain model gave is used for the run but not cached (TriageResult.answeredBy, judge-client marker, guarded putDreamVerdict); lowered to 3200 by wave 9 lane W #5145: completion-key helpers (findLegacyCompletion, findSynthV2Completion, loadSuccessfulSynthesisKeys) peeled to synthesize-completion.ts with the new pre-triage partition; +13 P2 extraction.date_grounding: transcript observation date line instead of a run-date "Today's date" (config field + prompt arg); +1 fix wave 11 #6160: oneshot_task_prefixes on the child job data; +18 fix wave 12 #6069: unreliable-verdict backoff in runTriagePass (report code, pass backoff count, triage details entry; marker logic in triage-backoff.ts); +1 fix wave 12 #6242: SYNTH_PHASE_FAIL keeps an OperationError's suggestion and code (OperationError import); +3 wave 17 #6616: slug discovery and postprocessing share the canonical committed child outputs (loadCommittedSynthesisOutputs in synthesize-postprocess.ts; one call-site line, one parameter, one lookup line); lowered to 3224 by wave 17 #6642: the summary provenance section moved to summaryProvenanceLines in dream-provenance.ts; +6 GBRA-130 B-6 (#6860): surrogate-safe triage cuts (truncateUtf8) and the per-transcript verdict-cache write call site (logic in triage-backoff.ts VerdictCacheWrites); +2 GBRA-161 PR 4 (#7065): the synthesize phase activates each synthesized transcript's outputs as its generation (activateSynthesisGenerations import and call site; logic in cycle/synthesize-generations.ts); +8 GBRA-161 PR 5 (S-2): the dream summary publishes as a single-item dream_summary generation bound to its pre-run revision (publishSinglePage with a generation_fenced skip); +1 GBRA-60: a managed synthesis child carries dream_output (verify and stamp before put_page; cycle/synthesize-child-verify.ts)src/core/cycle/extract-atoms.ts 1658 ratchet crossed the 1500 unlisted cap in the atoms/extraction fix wave: +21 embed-aware cost gate (#4878), +65 atoms-array anchor scan (#4913); peel candidate: the parse block (parseAtomsOutcome / parseArrayAtOffset / atomsFromParsedArray) into extract-atoms-parse.ts; +35: #4853 transcript-origin atoms link to their conversation page; +130: #4916 transcript failure-count/tombstone (extract_atoms_transcript_state, TODOS P2(b)); wave composition: #4916 transcript-state skip + #4948 zero-atom prompt + #4943 meetings source-id summed; +3: wave review — a later `[]` is an honest zero-yield, a non-atom-shaped array is a counted failure; +13: wave review — explicit budget keeps the cap over an unpriced embed route ($0-priced); +14: wave review — transcript-state write errors surfaced, missing table warns once; merged reliability/shared-skills source integration; +37 fix wave 3: stable undated atom dates + stale-atom retirement (C-14); +3 #5525: effectiveVisibility stamped on non-managed atoms; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +3 at the merge; +6 fix wave 3 lane A (#5601): accepted-pending atom batches count as progress (helper in persistence/accepted-pending.ts); +4 fix wave 4: #5705 transcript-as-data system prompt lines and its message helper, #5627 response schema import (the atom-type list moved to extract-atoms-schema.ts); +30 #5809/#5832: drain hard/soft stop signals (ExtractAtomsOpts.signal/stopSignal, pre-commit abort checks, no strike or post-stop writes after a hard stop) and the cancellable backlog count; +1 #5812: transcript items are paste-stripped (corpusTextForExtraction import) before the input cut; +1 #5820: extract_atoms discovery passes selfCaptureSessionIds like synthesize; +10 #5856/#5854: drain attempt state (one BudgetTracker + one publish wait across batches) and the opt-in connector email/meeting exclusion (predicate in connector-atoms.ts); +1 Foundations 2 Lane C: maintenanceTransaction import (attributed stale-atom retirement); +5 fix wave 9 lane P (#5041): opt-in atom write-through hook and retired-atom slugs returned for file removal (logic in derived-write-through.ts); the parse block (parseAtomsOutcome / parseArrayAtOffset / atomsFromParsedArray) is peeled into extract-atoms-parse.ts (-193, fix wave 10 lane B); +35: #4853 transcript-origin atoms link to their conversation page; +130: #4916 transcript failure-count/tombstone (extract_atoms_transcript_state, TODOS P2(b)); wave composition: #4916 transcript-state skip + #4948 zero-atom prompt + #4943 meetings source-id summed; +3: wave review — a later `[]` is an honest zero-yield, a non-atom-shaped array is a counted failure; +13: wave review — explicit budget keeps the cap over an unpriced embed route ($0-priced); +14: wave review — transcript-state write errors surfaced, missing table warns once; merged reliability/shared-skills source integration; +37 fix wave 3: stable undated atom dates + stale-atom retirement (C-14); +3 #5525: effectiveVisibility stamped on non-managed atoms; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +3 at the merge; +6 fix wave 3 lane A (#5601): accepted-pending atom batches count as progress (helper in persistence/accepted-pending.ts); +4 fix wave 4: #5705 transcript-as-data system prompt lines and its message helper, #5627 response schema import (the atom-type list moved to extract-atoms-schema.ts); +30 #5809/#5832: drain hard/soft stop signals (ExtractAtomsOpts.signal/stopSignal, pre-commit abort checks, no strike or post-stop writes after a hard stop) and the cancellable backlog count; +1 #5812: transcript items are paste-stripped (corpusTextForExtraction import) before the input cut; +1 #5820: extract_atoms discovery passes selfCaptureSessionIds like synthesize; +10 #5856/#5854: drain attempt state (one BudgetTracker + one publish wait across batches) and the opt-in connector email/meeting exclusion (predicate in connector-atoms.ts); +1 Foundations 2 Lane C: maintenanceTransaction import (attributed stale-atom retirement); +5 fix wave 9 lane P (#5041): opt-in atom write-through hook and retired-atom slugs returned for file removal (logic in derived-write-through.ts); +17 #5031: same-page case-insensitive atom adoption fallback (one page-atom scan per source page per run); +12 P2 atomsPrompt helper: extraction.date_grounding source observation date + rule in the atoms prompt; +4 GBRA-75: octet_length-bounded body-length predicate (minCompiledTruthChars) for discovery and the backlog count; GBRA-130 A-42 (#6804): dot-led atom stems and the legacy-slug adoption guard- src/core/engine.ts 2839 ratchet grown v0.46.26.0 megawave: relational/visibility/usage contract surface (#4352 #4218); grown wave-g (#4524 #4527): orphans-mode contract + removeLink deleted count; wave-k: +4 fail-closed TrajectoryOpts.remote contract doc (#3855), +2 FactListOpts.unconsolidatedOnly (#4070), +14 getAllConfig bulk-read contract (#3980); +1: getBacklinkCounts page-id contract doc (#4380); +9: FactListOpts.grep SQL pre-limit contract (#3851); +13: dream-verdict TTL contract (#4069); +33: softDeletePages batch soft-delete contract (#4587); +8: #4592 scoped getStats/getHealth contract doc; +5 read-time TTL validity contract docs (active vs history read semantics); +12: #4280 findOrphanPages type/quarantined metadata contract; +14: traversePathsDetailed row-cap contract (ship-review); +12: resolveSlugWithAliasDetailed owning-source contract (ship-review) | merged v0.48.1.0: master #4788 + wave traversePathsDetailed/resolveSlugWithAliasDetailed; master: | merged v0.48.1.0 true-up; corrective release: read-policy signatures and Chronicle scope; +7: #4882 listFactsSince entitySlug/sessionId composition doc; #5105: canonical page state shared module and transaction/snapshot delegates; #5105: guarded derived projection preparation and read seals; #5105: resident-stop registration and direct transaction contract; #5105: +1 raw preservation contract for legacy engine migration; merged company ingestion/schema routing changes; safety wave: fact embedding model and text identity contract; +5 write-path wave: findDuplicatePage excludeSlug + id-first ranking contract; +2 fw3 A14: addTag tagSource provenance contract; evidence delivery: getChunkWindows interface member + type import (+3); #5761: +4 markPagesAttendanceBlocked member + countStalePagesForExtraction attendance option; +4 #5888: FactListOpts.fingerprint + FactRow.fact_fingerprint contract (hot-memory duplicate collapse); +1 GBRA-49: LinkReadScope temporal opts on the link read contract; +4 #5984: upsertChunks sealChunkerVersion and createVersion preimage contract docs (round-trip diet); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2683 measured); +10 P7 relationalChainHop member + ChainHopOpts/ChainHopEdge imports (SQL in search/read-enrichment.ts); +14 contributor audit wave P0: listFactsKeyset member (delta facts keyset read contract) + FactRow.created_at_iso; +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 3 P2 speaker attribution: FactAttribution type + FactRow/NewFact.attributed_to fields + findCandidateDuplicates attributedTo option contract; +4 #5984 lane apply diet: setPageAliases inline option and upsertChunks pageId contract docs; +10 #6278: executeRaw timeoutMs contract (transaction-local statement_timeout for bounded preparation reads); +2 GBRA-69: replaceDerivedLinksBatch member; master v0.60.136.0 merge into #5575 memory trust (both sides kept); +6 GBRA-67: readPageSnapshotsBatch interface member (BrainEngine signatures cannot move); +1 GBRA-75 wave 10: optional findDuplicatePages member (batched findDuplicatePage, contract in engine-sql/pages.ts); +4 FactListOpts/TrajectoryOpts.excludePrivate fact-provenance visibility contract (interface fields cannot move); +18 GBRA-76: TransactionOptions (abort signal) interface and the transaction/transactionDirect signatures (abort logic in postgres-engine/transaction-abort.ts); +2 W14 P3.11 (#4381): LinkBatchInput.resolution_type on top of W13; +1 C2: findCandidateDuplicates arm:'keyword' contract doc (facts.candidate_fusion); re-summed at the master 6ccf30c3e merge (2708 integration + 2707 master - 2707 base); +5 Cat 40 Hard fix wave F2 (#6271): countKeywordPages/searchKeywordPages BrainEngine signatures (SQL in engine-sql/keyword-pages.ts); +6 W15 P1.2 (#6454): countStaleFrontmatterKeyPages/listStaleFrontmatterKeyPages/stripStaleFrontmatterKeys contract (SQL in engine-sql/pages.ts); +2 large pages Wave A sub-a: getChunkPage signature (get_chunks paging; SQL in engine-sql/chunks.ts); +5 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows signatures + type import (SQL in engine-sql/chunks.ts); +2 Cat 40 next wave part 1: non-ranking link types on the relationalFanout/relationalChainHop/getBacklinkCounts/getAdjacencyBoosts contract docs (policy in link-ranking-policy.ts; re-summed at the 0.60.242.0 merge: master 2794 + 2); +26 Wave B PR 1: segmented page storage members (allocateBodyOccurrenceIds..sweepSegments) + page-body type import (SQL in engine-sql/page-body.ts); merge v0.60.248.0: Wave B PR 1 and master growth compose at 2822; +1 LHF wave 2 item 1: executeRaw opts gain jitOff/prepare (the JIT-off typed-search type check; logic in ops/search-type-filter.ts); +9 PR2 fix lane X: BrainEngine.keywordBoundedRead, one unscoped read under the keyword statement bound for the segmented-region read (interface member and its doc cannot move): 2823 + 9; +7 Wave B PR 4 interface: readSegmentDerivations/upsertSegmentDerivations/retireSegmentDerivations members + derivations type import (SQL in engine-sql/page-body.ts, types in page-body/derivations.ts)- src/core/import-file.ts 2064 ratchet +2 W1 belief ledger: the legacy import is an unmanaged projection point (logic in belief/projection-point.ts); +2: pre-publication withdrawal validation; grown v0.46.26.0 megawave: OCR budget + image import + embed-retry rewire (#3973 #3374); grown wave-g (#4530): per-model chunk-token cap wiring; +24 #4548: row-level visibility-aware fence merge on remote write-back (replaces the #2044 whole-block swap + #4553/#4555 warn-only paths); +7 #4546: merge extended to the timeline-embedded fence; +5 #4107: maybeOcr gates on the OCR model's provider; +3 #3893; +7: #4702 disabled_patterns pass-through to the sanity gate; composition true-up (fix-wave multi-train); +8 #4903: importCodeFile writes source_path so the full-sync reconcile can see code pages; -11: wave review — local fence append replaced by facts-fence.replaceOrInsertFactsFence (#4756 rule); security: durable queued authority and confined filesystem dispatch; master integration: grown v0.46.26.0 megawave: OCR budget + image import + embed-retry rewire (#3973 #3374); grown wave-g (#4530): per-model chunk-token cap wiring; +24 #4548: row-level visibility-aware fence merge on remote write-back (replaces the #2044 whole-block swap + #4553/#4555 warn-only paths); +7 #4546: merge extended to the timeline-embedded fence; +5 #4107: maybeOcr gates on the OCR model's provider; +3 #3893; +7: #4702 disabled_patterns pass-through to the sanity gate; composition true-up (fix-wave multi-train); +8 #4903: importCodeFile writes source_path so the full-sync reconcile can see code pages; -11: wave review — local fence append replaced by facts-fence.replaceOrInsertFactsFence (#4756 rule); harness support: boundary wiring to shared grants, isolated setup, withdrawal and delegated guards; merged v0.49: withdrawal preservation after data-only frontmatter parsing; #5105: small legacy writer/refusal and shared revision CAS delegates; #5105: +8 prepared contextual retrieval policy and retry boundary wiring; upstream integration: preserve independently reviewed master additions with branch facade extraction; #5252 wave: shared provider-free Markdown and code preparation; merged company ingestion/schema routing changes; master retrieval/projection integration with company ingestion; shared content: prepare managed image imports without bypassing canonical publication; +29 write-path wave: identity move/collision wiring (logic in import-identity.ts), deferred embedding on provider failure, image index completeness, file-time date anchor; +22 fw3 A13: markdown re-import reuses unchanged chunk vectors under the seal/wrapper/signature/protected-fence gate; +2 fw3 A12: importFromFile firstCommitAt option; +3 fw3 A14: managed imports keep add-only tags; +4 #5675: record the file origin move inference binds to (logic in import-identity.ts); fw3 integration: A12/A13/A14 (+27) and #5675 (+4) compose; +17 wave-2 W4: safe-chunk re-seal of unchanged legacy markdown/code pages (#5050 #5247) and embedding-input provenance on inline imports (#5553); -1 fix wave 2 (v0.60.5.0) integration: W4 delta re-summed over the merged master line count; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +16 at the merge; +11 #4616: markdown and code imports keep the usable vectors of a partially refused batch and leave refused chunks for embed --stale; lowered to 2230: #5621 contextual-mode resolution peeled to core/import-contextual-mode.ts (shared with gbrain repair contextual-mode); +2 wave 8 lane D1 #5158: key-order fallback equality call (comparison lives in page-state/import-guard.ts); +1 F1c: direct imports run in maintenanceTransaction (write attribution; helper in persistence/attribution.ts); lowered to 2178: #5988 content screen and content-sanity config peeled to core/import-screen.ts; +1 #6007: the prepared apply returns its page id and seal (PreparedImportApplied); +1 #5333: trusted imports drop a stale oversized embed_skip/content_flag the gate no longer sets, and an embed_skip transition defeats both unchanged fast paths; wave 10 collector: lane E (#5333) and the other lanes compose at 2183; grown #6188 (+17): fence options interface, result fields and the Tier 1 step call (logic in fence-repair/import-step.ts); +2 #5984 single-write fast path: the coordinated existingSnapshot option (interface field) composes with the lane apply diet at 2202; +1 GBRA-69: a coordinated apply defers its chunker seal to the caller (sealImportedPage in page-state/projections.ts); lowered to 2023: #5001 the edge-mapping loop moved to code-chunks.ts mapCodeEdges (shared with the prepared apply); W14 P3.13 (#5001) lowered 2049→2023 by moving the edge loop to mapCodeEdges; +2 W13 PR1 on top (2025 measured); +2 #6529: the unchanged-image skip path records source_path (refreshSourcePath, as #4588 does for Markdown); +4 large pages A6/T33: code files keep CODE_FILE_MAX_BYTES, a page over PAGE_INLINE_MAX_BYTES commits with NULL vectors for the metered stale sweep; +1 #6722: an embed_skip page is chunked and never embedded (noEmbed folds the marker); merge v0.60.240.0: large pages and master growth compose at 2032; +24 Wave B lane 1d: the segmented storage step (stage before publication, flip in the apply, seal and post-commit projection; logic in persistence/segmented-apply.ts and page-body/ingest.ts) and the streamed-import dispatch over the single-string ceiling (logic in page-body/streamed-import.ts); merge v0.60.248.0: Wave B PR 1 and master growth compose at 2056; +4 Wave B review: a rename re-preparation reuses the staged segmented body (reuseSegments option) and the remote fence merge reads an unread body as fence-free (fenceBody in page-body/page-shape.ts); +2 Wave B gem A: a coordinated demotion versions the segmented page before demoting it (createVersion order); lanes compose at 2062; +2 Wave B lane 2q: ImportResult.searchable (interface field; the value comes from SegmentedImport.afterCommit);+2: pre-publication withdrawal validation-src/core/engine.ts 2858 ratchet grown v0.46.26.0 megawave: relational/visibility/usage contract surface (#4352 #4218); grown wave-g (#4524 #4527): orphans-mode contract + removeLink deleted count; wave-k: +4 fail-closed TrajectoryOpts.remote contract doc (#3855), +2 FactListOpts.unconsolidatedOnly (#4070), +14 getAllConfig bulk-read contract (#3980); +1: getBacklinkCounts page-id contract doc (#4380); +9: FactListOpts.grep SQL pre-limit contract (#3851); +13: dream-verdict TTL contract (#4069); +33: softDeletePages batch soft-delete contract (#4587); +8: #4592 scoped getStats/getHealth contract doc; +5 read-time TTL validity contract docs (active vs history read semantics); +12: #4280 findOrphanPages type/quarantined metadata contract; +14: traversePathsDetailed row-cap contract (ship-review); +12: resolveSlugWithAliasDetailed owning-source contract (ship-review) | merged v0.48.1.0: master #4788 + wave traversePathsDetailed/resolveSlugWithAliasDetailed; master: | merged v0.48.1.0 true-up; corrective release: read-policy signatures and Chronicle scope; +7: #4882 listFactsSince entitySlug/sessionId composition doc; #5105: canonical page state shared module and transaction/snapshot delegates; #5105: guarded derived projection preparation and read seals; #5105: resident-stop registration and direct transaction contract; #5105: +1 raw preservation contract for legacy engine migration; merged company ingestion/schema routing changes; safety wave: fact embedding model and text identity contract; +5 write-path wave: findDuplicatePage excludeSlug + id-first ranking contract; +2 fw3 A14: addTag tagSource provenance contract; evidence delivery: getChunkWindows interface member + type import (+3); #5761: +4 markPagesAttendanceBlocked member + countStalePagesForExtraction attendance option; +4 #5888: FactListOpts.fingerprint + FactRow.fact_fingerprint contract (hot-memory duplicate collapse); +1 GBRA-49: LinkReadScope temporal opts on the link read contract; +4 #5984: upsertChunks sealChunkerVersion and createVersion preimage contract docs (round-trip diet); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2683 measured); +10 P7 relationalChainHop member + ChainHopOpts/ChainHopEdge imports (SQL in search/read-enrichment.ts); +14 contributor audit wave P0: listFactsKeyset member (delta facts keyset read contract) + FactRow.created_at_iso; +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 3 P2 speaker attribution: FactAttribution type + FactRow/NewFact.attributed_to fields + findCandidateDuplicates attributedTo option contract; +4 #5984 lane apply diet: setPageAliases inline option and upsertChunks pageId contract docs; +10 #6278: executeRaw timeoutMs contract (transaction-local statement_timeout for bounded preparation reads); +2 GBRA-69: replaceDerivedLinksBatch member; master v0.60.136.0 merge into #5575 memory trust (both sides kept); +6 GBRA-67: readPageSnapshotsBatch interface member (BrainEngine signatures cannot move); +1 GBRA-75 wave 10: optional findDuplicatePages member (batched findDuplicatePage, contract in engine-sql/pages.ts); +4 FactListOpts/TrajectoryOpts.excludePrivate fact-provenance visibility contract (interface fields cannot move); +18 GBRA-76: TransactionOptions (abort signal) interface and the transaction/transactionDirect signatures (abort logic in postgres-engine/transaction-abort.ts); +2 W14 P3.11 (#4381): LinkBatchInput.resolution_type on top of W13; +1 C2: findCandidateDuplicates arm:'keyword' contract doc (facts.candidate_fusion); re-summed at the master 6ccf30c3e merge (2708 integration + 2707 master - 2707 base); +5 Cat 40 Hard fix wave F2 (#6271): countKeywordPages/searchKeywordPages BrainEngine signatures (SQL in engine-sql/keyword-pages.ts); +6 W15 P1.2 (#6454): countStaleFrontmatterKeyPages/listStaleFrontmatterKeyPages/stripStaleFrontmatterKeys contract (SQL in engine-sql/pages.ts); +2 large pages Wave A sub-a: getChunkPage signature (get_chunks paging; SQL in engine-sql/chunks.ts); +5 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows signatures + type import (SQL in engine-sql/chunks.ts); +2 Cat 40 next wave part 1: non-ranking link types on the relationalFanout/relationalChainHop/getBacklinkCounts/getAdjacencyBoosts contract docs (policy in link-ranking-policy.ts; re-summed at the 0.60.242.0 merge: master 2794 + 2); +26 Wave B PR 1: segmented page storage members (allocateBodyOccurrenceIds..sweepSegments) + page-body type import (SQL in engine-sql/page-body.ts); merge v0.60.248.0: Wave B PR 1 and master growth compose at 2822; +1 LHF wave 2 item 1: executeRaw opts gain jitOff/prepare (the JIT-off typed-search type check; logic in ops/search-type-filter.ts); +9 PR2 fix lane X: BrainEngine.keywordBoundedRead, one unscoped read under the keyword statement bound for the segmented-region read (interface member and its doc cannot move): 2823 + 9; +9 GBRA-177: TakesListOpts.oldestFirst/sinceOnOrBefore/ungradedFirst for the grade_takes window (interface fields cannot move; SQL in engine-sql/takes.ts): 2832 + 9; +6 GBRA-156: TransactionOptions.pipelineFirst (the declaration goes out with BEGIN behind a transaction-mode pooler; predicate in persistence/protocol.ts); interface fields cannot move; +1 GBRA-161 PR 2: deprecation notes on insertFacts({ deleteForPageFirst }), deleteFactsForPage and expireFact (interface docs cannot move); +7 GBRA-156: TransactionOptions.pipelineEarly (search read bodies go out behind BEGIN; predicate in postgres-engine/search-settings.ts); interface fields cannot move; +2 GBRA-156: TransactionOptions.readOnly (search read transactions open BEGIN READ ONLY; 2858 measured)++src/core/engine.ts 2866 ratchet grown v0.46.26.0 megawave: relational/visibility/usage contract surface (#4352 #4218); grown wave-g (#4524 #4527): orphans-mode contract + removeLink deleted count; wave-k: +4 fail-closed TrajectoryOpts.remote contract doc (#3855), +2 FactListOpts.unconsolidatedOnly (#4070), +14 getAllConfig bulk-read contract (#3980); +1: getBacklinkCounts page-id contract doc (#4380); +9: FactListOpts.grep SQL pre-limit contract (#3851); +13: dream-verdict TTL contract (#4069); +33: softDeletePages batch soft-delete contract (#4587); +8: #4592 scoped getStats/getHealth contract doc; +5 read-time TTL validity contract docs (active vs history read semantics); +12: #4280 findOrphanPages type/quarantined metadata contract; +14: traversePathsDetailed row-cap contract (ship-review); +12: resolveSlugWithAliasDetailed owning-source contract (ship-review) | merged v0.48.1.0: master #4788 + wave traversePathsDetailed/resolveSlugWithAliasDetailed; master: | merged v0.48.1.0 true-up; corrective release: read-policy signatures and Chronicle scope; +7: #4882 listFactsSince entitySlug/sessionId composition doc; #5105: canonical page state shared module and transaction/snapshot delegates; #5105: guarded derived projection preparation and read seals; #5105: resident-stop registration and direct transaction contract; #5105: +1 raw preservation contract for legacy engine migration; merged company ingestion/schema routing changes; safety wave: fact embedding model and text identity contract; +5 write-path wave: findDuplicatePage excludeSlug + id-first ranking contract; +2 fw3 A14: addTag tagSource provenance contract; evidence delivery: getChunkWindows interface member + type import (+3); #5761: +4 markPagesAttendanceBlocked member + countStalePagesForExtraction attendance option; +4 #5888: FactListOpts.fingerprint + FactRow.fact_fingerprint contract (hot-memory duplicate collapse); +1 GBRA-49: LinkReadScope temporal opts on the link read contract; +4 #5984: upsertChunks sealChunkerVersion and createVersion preimage contract docs (round-trip diet); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2683 measured); +10 P7 relationalChainHop member + ChainHopOpts/ChainHopEdge imports (SQL in search/read-enrichment.ts); +14 contributor audit wave P0: listFactsKeyset member (delta facts keyset read contract) + FactRow.created_at_iso; +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 3 P2 speaker attribution: FactAttribution type + FactRow/NewFact.attributed_to fields + findCandidateDuplicates attributedTo option contract; +4 #5984 lane apply diet: setPageAliases inline option and upsertChunks pageId contract docs; +10 #6278: executeRaw timeoutMs contract (transaction-local statement_timeout for bounded preparation reads); +2 GBRA-69: replaceDerivedLinksBatch member; master v0.60.136.0 merge into #5575 memory trust (both sides kept); +6 GBRA-67: readPageSnapshotsBatch interface member (BrainEngine signatures cannot move); +1 GBRA-75 wave 10: optional findDuplicatePages member (batched findDuplicatePage, contract in engine-sql/pages.ts); +4 FactListOpts/TrajectoryOpts.excludePrivate fact-provenance visibility contract (interface fields cannot move); +18 GBRA-76: TransactionOptions (abort signal) interface and the transaction/transactionDirect signatures (abort logic in postgres-engine/transaction-abort.ts); +2 W14 P3.11 (#4381): LinkBatchInput.resolution_type on top of W13; +1 C2: findCandidateDuplicates arm:'keyword' contract doc (facts.candidate_fusion); re-summed at the master 6ccf30c3e merge (2708 integration + 2707 master - 2707 base); +5 Cat 40 Hard fix wave F2 (#6271): countKeywordPages/searchKeywordPages BrainEngine signatures (SQL in engine-sql/keyword-pages.ts); +6 W15 P1.2 (#6454): countStaleFrontmatterKeyPages/listStaleFrontmatterKeyPages/stripStaleFrontmatterKeys contract (SQL in engine-sql/pages.ts); +2 large pages Wave A sub-a: getChunkPage signature (get_chunks paging; SQL in engine-sql/chunks.ts); +5 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows signatures + type import (SQL in engine-sql/chunks.ts); +2 Cat 40 next wave part 1: non-ranking link types on the relationalFanout/relationalChainHop/getBacklinkCounts/getAdjacencyBoosts contract docs (policy in link-ranking-policy.ts; re-summed at the 0.60.242.0 merge: master 2794 + 2); +26 Wave B PR 1: segmented page storage members (allocateBodyOccurrenceIds..sweepSegments) + page-body type import (SQL in engine-sql/page-body.ts); merge v0.60.248.0: Wave B PR 1 and master growth compose at 2822; +1 LHF wave 2 item 1: executeRaw opts gain jitOff/prepare (the JIT-off typed-search type check; logic in ops/search-type-filter.ts); +9 PR2 fix lane X: BrainEngine.keywordBoundedRead, one unscoped read under the keyword statement bound for the segmented-region read (interface member and its doc cannot move): 2823 + 9; +9 GBRA-177: TakesListOpts.oldestFirst/sinceOnOrBefore/ungradedFirst for the grade_takes window (interface fields cannot move; SQL in engine-sql/takes.ts): 2832 + 9; +6 GBRA-156: TransactionOptions.pipelineFirst (the declaration goes out with BEGIN behind a transaction-mode pooler; predicate in persistence/protocol.ts); interface fields cannot move; +1 GBRA-161 PR 2: deprecation notes on insertFacts({ deleteForPageFirst }), deleteFactsForPage and expireFact (interface docs cannot move); +7 GBRA-156: TransactionOptions.pipelineEarly (search read bodies go out behind BEGIN; predicate in postgres-engine/search-settings.ts); interface fields cannot move; +2 GBRA-156: TransactionOptions.readOnly (search read transactions open BEGIN READ ONLY; 2858 measured); grown v0.46.26.0 megawave: relational/visibility/usage contract surface (#4352 #4218); re-summed at the Wave B PR 4 merge with v0.60.452.0 (2866 measured)+ src/core/import-file.ts 2075 ratchet +2 W1 belief ledger: the legacy import is an unmanaged projection point (logic in belief/projection-point.ts); +2: pre-publication withdrawal validation; grown v0.46.26.0 megawave: OCR budget + image import + embed-retry rewire (#3973 #3374); grown wave-g (#4530): per-model chunk-token cap wiring; +24 #4548: row-level visibility-aware fence merge on remote write-back (replaces the #2044 whole-block swap + #4553/#4555 warn-only paths); +7 #4546: merge extended to the timeline-embedded fence; +5 #4107: maybeOcr gates on the OCR model's provider; +3 #3893; +7: #4702 disabled_patterns pass-through to the sanity gate; composition true-up (fix-wave multi-train); +8 #4903: importCodeFile writes source_path so the full-sync reconcile can see code pages; -11: wave review — local fence append replaced by facts-fence.replaceOrInsertFactsFence (#4756 rule); security: durable queued authority and confined filesystem dispatch; master integration: grown v0.46.26.0 megawave: OCR budget + image import + embed-retry rewire (#3973 #3374); grown wave-g (#4530): per-model chunk-token cap wiring; +24 #4548: row-level visibility-aware fence merge on remote write-back (replaces the #2044 whole-block swap + #4553/#4555 warn-only paths); +7 #4546: merge extended to the timeline-embedded fence; +5 #4107: maybeOcr gates on the OCR model's provider; +3 #3893; +7: #4702 disabled_patterns pass-through to the sanity gate; composition true-up (fix-wave multi-train); +8 #4903: importCodeFile writes source_path so the full-sync reconcile can see code pages; -11: wave review — local fence append replaced by facts-fence.replaceOrInsertFactsFence (#4756 rule); harness support: boundary wiring to shared grants, isolated setup, withdrawal and delegated guards; merged v0.49: withdrawal preservation after data-only frontmatter parsing; #5105: small legacy writer/refusal and shared revision CAS delegates; #5105: +8 prepared contextual retrieval policy and retry boundary wiring; upstream integration: preserve independently reviewed master additions with branch facade extraction; #5252 wave: shared provider-free Markdown and code preparation; merged company ingestion/schema routing changes; master retrieval/projection integration with company ingestion; shared content: prepare managed image imports without bypassing canonical publication; +29 write-path wave: identity move/collision wiring (logic in import-identity.ts), deferred embedding on provider failure, image index completeness, file-time date anchor; +22 fw3 A13: markdown re-import reuses unchanged chunk vectors under the seal/wrapper/signature/protected-fence gate; +2 fw3 A12: importFromFile firstCommitAt option; +3 fw3 A14: managed imports keep add-only tags; +4 #5675: record the file origin move inference binds to (logic in import-identity.ts); fw3 integration: A12/A13/A14 (+27) and #5675 (+4) compose; +17 wave-2 W4: safe-chunk re-seal of unchanged legacy markdown/code pages (#5050 #5247) and embedding-input provenance on inline imports (#5553); -1 fix wave 2 (v0.60.5.0) integration: W4 delta re-summed over the merged master line count; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +16 at the merge; +11 #4616: markdown and code imports keep the usable vectors of a partially refused batch and leave refused chunks for embed --stale; lowered to 2230: #5621 contextual-mode resolution peeled to core/import-contextual-mode.ts (shared with gbrain repair contextual-mode); +2 wave 8 lane D1 #5158: key-order fallback equality call (comparison lives in page-state/import-guard.ts); +1 F1c: direct imports run in maintenanceTransaction (write attribution; helper in persistence/attribution.ts); lowered to 2178: #5988 content screen and content-sanity config peeled to core/import-screen.ts; +1 #6007: the prepared apply returns its page id and seal (PreparedImportApplied); +1 #5333: trusted imports drop a stale oversized embed_skip/content_flag the gate no longer sets, and an embed_skip transition defeats both unchanged fast paths; wave 10 collector: lane E (#5333) and the other lanes compose at 2183; grown #6188 (+17): fence options interface, result fields and the Tier 1 step call (logic in fence-repair/import-step.ts); +2 #5984 single-write fast path: the coordinated existingSnapshot option (interface field) composes with the lane apply diet at 2202; +1 GBRA-69: a coordinated apply defers its chunker seal to the caller (sealImportedPage in page-state/projections.ts); lowered to 2023: #5001 the edge-mapping loop moved to code-chunks.ts mapCodeEdges (shared with the prepared apply); W14 P3.13 (#5001) lowered 2049→2023 by moving the edge loop to mapCodeEdges; +2 W13 PR1 on top (2025 measured); +2 #6529: the unchanged-image skip path records source_path (refreshSourcePath, as #4588 does for Markdown); +4 large pages A6/T33: code files keep CODE_FILE_MAX_BYTES, a page over PAGE_INLINE_MAX_BYTES commits with NULL vectors for the metered stale sweep; +1 #6722: an embed_skip page is chunked and never embedded (noEmbed folds the marker); merge v0.60.240.0: large pages and master growth compose at 2032; +24 Wave B lane 1d: the segmented storage step (stage before publication, flip in the apply, seal and post-commit projection; logic in persistence/segmented-apply.ts and page-body/ingest.ts) and the streamed-import dispatch over the single-string ceiling (logic in page-body/streamed-import.ts); merge v0.60.248.0: Wave B PR 1 and master growth compose at 2056; +4 Wave B review: a rename re-preparation reuses the staged segmented body (reuseSegments option) and the remote fence merge reads an unread body as fence-free (fenceBody in page-body/page-shape.ts); +2 Wave B gem A: a coordinated demotion versions the segmented page before demoting it (createVersion order); lanes compose at 2062; +2 Wave B lane 2q: ImportResult.searchable (interface field; the value comes from SegmentedImport.afterCommit);+2: pre-publication withdrawal validation; +9 #7172: kept chunk rows move to their new index and a bounded managed publication defers its chunk replacement (logic in page-state/chunk-moves.ts and page-state/projections.ts continueDeferredProjection); merge v0.60.332.0: #7172 and master growth compose at 2075src/core/migrate.ts 602 ratchet schema-migration runner only; migrations live in src/core/schema-migrations/ (W3); +3 #5216: resumable page revision backfill runs after every migration pass while pages.knowledge_revision is nullable- src/core/operations.ts 242 ratchet peel target: containment sprint C4-C7; grown v0.46.26.0 megawave op wiring; +chat-connectors wiring (master merge); +5 v0.47 gmail-loops: loopsOperations spread + OP_AREAS; #5105: receipt operation registry wiring; shared-skills integration on company-ingestion base; +2 security wave: withOutputRedaction applied at op registration; +1 #5616: pageEditOperations import (spread shares the pages line); +1 Foundations 1 F1b: attributionOperations import (spread shares the admin line); +1 agent operator wave A6: ops/notices.ts import (mute_notice); +2 agent operator closeout A1: registerOpRoutes import + call (routing logic in fix-routing.ts); +2 retrieval feedback: feedbackOperations import and spread (ops/feedback.ts); +1 #6007: pageBatchOperations import (spread shares the pages line); +1 P5: wanted_pages area row; lowered GBRA-75 W11 cold start: OP_AREAS + finalize step moved to operation-load.ts (shared with the CLI per-op loader); +1 C4 pinned questions: questionsOperations import and spread (ops/questions.ts; its areas live in operation-load.ts OP_AREAS); +1 Wave B append: pageAppendOperations import (spread shares the pages line); +1 Wave B upload sessions: pageUploadOperations import (spread shares the pages line)- src/core/pglite-engine.ts 3095 ratchet +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +5 GBRA-67: readPageSnapshotsBatch delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages delegate (SQL in engine-sql/pages.ts); +2 GBRA-76: transaction/transactionDirect take TransactionOptions and refuse an already-aborted signal before BEGIN; +2 #4772 (W14 PR3): entityTypes HealthDeps delegate + import (policy in schema-pack/entity-types.ts, SQL in engine-sql/health.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3023 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates (SQL in engine-sql/pages.ts); +6 large pages Wave A sub-a: getChunkPage delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +7 LHF wave 2 item 5: request config snapshot delegate lines in getConfig/getAllConfig/setConfig/unsetConfig (logic in config-snapshot.ts); +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3072 + 3; +5 PR2 fix lane X: keywordBoundedRead runs the read on the engine itself (engine methods cannot move): 3075 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3080 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3085); +8 Wave B PR 4 interface: segment-derivation delegations + type import (SQL in engine-sql/page-body.ts)- src/core/postgres-engine.ts 3124 ratchet +2 wave-b PR 4 merged with #7218 (both sides added imports); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); ceiling rationale: docs/architecture/key-files/engines-2.md entry for src/core/postgres-engine.ts; evidence delivery: getChunkWindows scoped-read delegate + type import (+5; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +10 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3242 #5824: searchVector SQL moved to search/vector-statement.ts, +explainVectorSearch/runVectorAttempt (-156); +6 #5730: onpoisoned wiring on the instance/module/connection-manager pools + poisonedDiscards in getPoolDiagnostics (counter in pool-gauge.ts); +5 #5801: onCheckout observer seam (fires after reserve resolution / transaction-callback entry; listeners in pool-gauge.ts); lowered to 3119 #5889: searchTitles SQL moved to engine-sql/titles.ts (-133); lowered to 2914 F4a: getHealth SQL moved to engine-sql/health.ts (-216); +2 #5984: transactions track held page guards like PGLite (withHeldPageKeys), so repeated guards in one transaction cost no round trips; +1 #5984: traceSqlOptions import for the env-gated GBRAIN_SQL_TRACE bench hook (src/core/sql-trace.ts); v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (2917 measured); +2 engine graduation (GBRA-50 G2a): initSchema sizing parameter (the source embedding layout sizes a fresh target); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2920 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 6 #6085: initSchema pins advisory lock 42, bootstrap, schema replay and unlock to one reserved backend when the DDL pool has more than one slot (gauge only, no long-hold permit), released in finally; wave 10 collector: lane E (#6085), lane G (#5375) and master compose at 2939; +2 #6110: search transactions pass jitOff to withScopedReadTransaction (SET LOCAL jit = off in postgres-engine/search-settings.ts); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +1 #5984 single-write fast path composes with the lane apply diet at 2944; +2 #5984 shared parameter types: the instance pool passes shared_types and initSchema clears them after migrations (helpers in db.ts); +2 #6276: the remote alias-resolving readPageSnapshot runs with JIT off (withScopedReadTransaction jitOff); +5 #6278: executeRaw timeoutMs delegate (statement in postgres-engine/bounded-statement.ts); +23 #6278 PR 1.5: cancelSettleMs() and the settle timer in runUnsafe that discards a reserved connection whose cancel a transaction-mode pooler never completed; +3 #6317 lane 2: getPoolDiagnostics().pool from the vendored driver (postgres-engine/pool-stats.ts) and the prepare mark; +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +1 GBRA-69 extract batching: replaceDerivedLinksBatch delegate (batch logic in derived-links.ts); +9 GBRA-75: getBacklinkCounts and getHealth statements run JIT-off through the private jitOffRead transaction helper (engine methods cannot move); +3 GBRA-75 wave 7: searchKeyword and searchVector start the once-per-engine background search statistics guard (logic in search/projection-statistics.ts); +7 GBRA-67: readPageSnapshotsBatch scoped-read delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages scoped-read delegate (SQL in engine-sql/pages.ts); +7 #6383: poolIncidents hooks on the instance/module/connection-manager pools (counter and lines in pool-gauge.ts, budget in db.ts) and stuckDiscards/buildFailures in getPoolDiagnostics; +3 GBRA-76: transaction/transactionDirect take TransactionOptions; transactionOn attaches the begin handle to withTransactionAbort (logic in postgres-engine/transaction-abort.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +1 #5227: schema.sql replay under withSchemaLockTimeout (wave 14 PR1); +1 driver desync tripwire: desyncDiscards in getPoolDiagnostics (counter and line in pool-gauge.ts); +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages scoped-read delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3027 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates, reads scoped (SQL in engine-sql/pages.ts); +12 wave 16 G5.1 (#6495): keywordStatementTimeout memo field, its connect/disconnect resets and the keywordStatementTimeoutSetting accessor, plus one awaited setting per keyword/chunk/CJK transaction (resolver in postgres-engine/keyword-statement-timeout.ts); wave 16 G5.1 gate fix: keywordStatementTimeoutSetting resolves the knob once per connection on the first keyword statement from the saved connect config (connect issues no statement for it; 3042 measured); +7 large pages Wave A sub-a: getChunkPage scoped-read delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +3 wave 18b lane 2 (#6495): keywordTimeouts negative-cache field and the searchKeyword runner wrap (logic in postgres-engine/keyword-timeout-cache.ts); integrated at wave 18b: master 3082 + 3; +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3085 + 3; +3 PR2 fix lane E (E1): getChunks/getChunkPage/getChunkWindows run the manifest privilege probe in their scoped transaction (chunkManifestReads in search/safe-chunks.ts); integrated at the lane E merge onto b75a69a6d: 3088 + 3; +6 PR2 fix lane X: searchVector, explainVectorSearch, the hasMore witness and runVectorAttempt pick the chunk-manifest statement form inside each bounded attempt transaction, so its statement_timeout bounds the probe (form memo vectorStatementForms in search/vector-statement.ts; engine methods cannot move): 3091 + 6; +5 PR2 fix lane X: keywordBoundedRead runs the read in withScopedReadTransaction under the keyword statement timeout setting (engine methods cannot move): 3097 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3102 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3107); +8 Wave B PR 4 interface: segment-derivation delegations + type import (SQL in engine-sql/page-body.ts)+ src/core/operations.ts 245 ratchet +1 #7168: graphRankOperations import (ops/graph-rank.ts; spread shares the orphans line); peel target: containment sprint C4-C7; grown v0.46.26.0 megawave op wiring; +chat-connectors wiring (master merge); +5 v0.47 gmail-loops: loopsOperations spread + OP_AREAS; #5105: receipt operation registry wiring; shared-skills integration on company-ingestion base; +2 security wave: withOutputRedaction applied at op registration; +1 #5616: pageEditOperations import (spread shares the pages line); +1 Foundations 1 F1b: attributionOperations import (spread shares the admin line); +1 agent operator wave A6: ops/notices.ts import (mute_notice); +2 agent operator closeout A1: registerOpRoutes import + call (routing logic in fix-routing.ts); +2 retrieval feedback: feedbackOperations import and spread (ops/feedback.ts); +1 #6007: pageBatchOperations import (spread shares the pages line); +1 P5: wanted_pages area row; lowered GBRA-75 W11 cold start: OP_AREAS + finalize step moved to operation-load.ts (shared with the CLI per-op loader); +1 C4 pinned questions: questionsOperations import and spread (ops/questions.ts; its areas live in operation-load.ts OP_AREAS); +1 Wave B append: pageAppendOperations import (spread shares the pages line); +1 Wave B upload sessions: pageUploadOperations import (spread shares the pages line); +1 #7191: search-exact import; +1 GBRA-156: whois import (ops/whois.ts; spread shares the chunks line)-src/core/pglite-engine.ts 3089 ratchet +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +5 GBRA-67: readPageSnapshotsBatch delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages delegate (SQL in engine-sql/pages.ts); +2 GBRA-76: transaction/transactionDirect take TransactionOptions and refuse an already-aborted signal before BEGIN; +2 #4772 (W14 PR3): entityTypes HealthDeps delegate + import (policy in schema-pack/entity-types.ts, SQL in engine-sql/health.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3023 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates (SQL in engine-sql/pages.ts); +6 large pages Wave A sub-a: getChunkPage delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +7 LHF wave 2 item 5: request config snapshot delegate lines in getConfig/getAllConfig/setConfig/unsetConfig (logic in config-snapshot.ts); +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3072 + 3; +5 PR2 fix lane X: keywordBoundedRead runs the read on the engine itself (engine methods cannot move): 3075 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3080 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3085); +2 #7159: the frontmatter where clause in searchKeyword and its import (SQL in search/frontmatter-where.ts; engine methods cannot move); +2 GBRA-156 keyword OR rarity: the import and the searchKeyword OR retry through rankOrFallbackByRarity with an orFallback rank parameter like Postgres (logic in search/keyword-or-rarity.ts; engine methods cannot move)-src/core/postgres-engine.ts 3147 ratchet +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); ceiling rationale: docs/architecture/key-files/engines-2.md entry for src/core/postgres-engine.ts; evidence delivery: getChunkWindows scoped-read delegate + type import (+5; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +10 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3242 #5824: searchVector SQL moved to search/vector-statement.ts, +explainVectorSearch/runVectorAttempt (-156); +6 #5730: onpoisoned wiring on the instance/module/connection-manager pools + poisonedDiscards in getPoolDiagnostics (counter in pool-gauge.ts); +5 #5801: onCheckout observer seam (fires after reserve resolution / transaction-callback entry; listeners in pool-gauge.ts); lowered to 3119 #5889: searchTitles SQL moved to engine-sql/titles.ts (-133); lowered to 2914 F4a: getHealth SQL moved to engine-sql/health.ts (-216); +2 #5984: transactions track held page guards like PGLite (withHeldPageKeys), so repeated guards in one transaction cost no round trips; +1 #5984: traceSqlOptions import for the env-gated GBRAIN_SQL_TRACE bench hook (src/core/sql-trace.ts); v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (2917 measured); +2 engine graduation (GBRA-50 G2a): initSchema sizing parameter (the source embedding layout sizes a fresh target); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2920 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 6 #6085: initSchema pins advisory lock 42, bootstrap, schema replay and unlock to one reserved backend when the DDL pool has more than one slot (gauge only, no long-hold permit), released in finally; wave 10 collector: lane E (#6085), lane G (#5375) and master compose at 2939; +2 #6110: search transactions pass jitOff to withScopedReadTransaction (SET LOCAL jit = off in postgres-engine/search-settings.ts); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +1 #5984 single-write fast path composes with the lane apply diet at 2944; +2 #5984 shared parameter types: the instance pool passes shared_types and initSchema clears them after migrations (helpers in db.ts); +2 #6276: the remote alias-resolving readPageSnapshot runs with JIT off (withScopedReadTransaction jitOff); +5 #6278: executeRaw timeoutMs delegate (statement in postgres-engine/bounded-statement.ts); +23 #6278 PR 1.5: cancelSettleMs() and the settle timer in runUnsafe that discards a reserved connection whose cancel a transaction-mode pooler never completed; +3 #6317 lane 2: getPoolDiagnostics().pool from the vendored driver (postgres-engine/pool-stats.ts) and the prepare mark; +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +1 GBRA-69 extract batching: replaceDerivedLinksBatch delegate (batch logic in derived-links.ts); +9 GBRA-75: getBacklinkCounts and getHealth statements run JIT-off through the private jitOffRead transaction helper (engine methods cannot move); +3 GBRA-75 wave 7: searchKeyword and searchVector start the once-per-engine background search statistics guard (logic in search/projection-statistics.ts); +7 GBRA-67: readPageSnapshotsBatch scoped-read delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages scoped-read delegate (SQL in engine-sql/pages.ts); +7 #6383: poolIncidents hooks on the instance/module/connection-manager pools (counter and lines in pool-gauge.ts, budget in db.ts) and stuckDiscards/buildFailures in getPoolDiagnostics; +3 GBRA-76: transaction/transactionDirect take TransactionOptions; transactionOn attaches the begin handle to withTransactionAbort (logic in postgres-engine/transaction-abort.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +1 #5227: schema.sql replay under withSchemaLockTimeout (wave 14 PR1); +1 driver desync tripwire: desyncDiscards in getPoolDiagnostics (counter and line in pool-gauge.ts); +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages scoped-read delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3027 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates, reads scoped (SQL in engine-sql/pages.ts); +12 wave 16 G5.1 (#6495): keywordStatementTimeout memo field, its connect/disconnect resets and the keywordStatementTimeoutSetting accessor, plus one awaited setting per keyword/chunk/CJK transaction (resolver in postgres-engine/keyword-statement-timeout.ts); wave 16 G5.1 gate fix: keywordStatementTimeoutSetting resolves the knob once per connection on the first keyword statement from the saved connect config (connect issues no statement for it; 3042 measured); +7 large pages Wave A sub-a: getChunkPage scoped-read delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +3 wave 18b lane 2 (#6495): keywordTimeouts negative-cache field and the searchKeyword runner wrap (logic in postgres-engine/keyword-timeout-cache.ts); integrated at wave 18b: master 3082 + 3; +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3085 + 3; +3 PR2 fix lane E (E1): getChunks/getChunkPage/getChunkWindows run the manifest privilege probe in their scoped transaction (chunkManifestReads in search/safe-chunks.ts); integrated at the lane E merge onto b75a69a6d: 3088 + 3; +6 PR2 fix lane X: searchVector, explainVectorSearch, the hasMore witness and runVectorAttempt pick the chunk-manifest statement form inside each bounded attempt transaction, so its statement_timeout bounds the probe (form memo vectorStatementForms in search/vector-statement.ts; engine methods cannot move): 3091 + 6; +5 PR2 fix lane X: keywordBoundedRead runs the read in withScopedReadTransaction under the keyword statement timeout setting (engine methods cannot move): 3097 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3102 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3107); +3 #7159: the frontmatter where clause in the two keyword typesClause sites and its import (SQL in search/frontmatter-where.ts; engine methods cannot move); GBRA-156 retrieval wave (#7201) composed with #7194 at the merge: re-summed (3114 measured); +2 warm CLI socket (#7218): connectedDatabaseUrl getter (the URL the engine connected with, bound into the socket identity), composed over the GBRA-156 retrieval wave (3116 measured); +1 GBRA-133 PR 2b: transactionOn hands the outermost transaction its commit checks (page-state/transactions.ts withCommitChecks), composed with the warm CLI socket at the merge (3117 measured); +18 GBRA-156: the private readTransaction helper behind withScopedReadTransaction and jitOffRead answers a top-level read before its COMMIT settles (engine methods cannot move; 3135 measured); +1 GBRA-156: transactionOn and runUnsafe hold a per-search connection slot (import of search/connection-budget.ts; 3136 measured); +2 GBRA-156: transactionOn passes TransactionOptions.pipelineFirst to the pool begin as { first } (driver gate in vendor/postgres index.js begin); an engine method cannot move; composed with the warm CLI socket and GBRA-133 PR 2b at the master v0.60.344.0 merge (3119 measured); GBRA-151 #7183/#7187/#7188 re-summed at the v0.60.402.0 merge (3135 measured); +2 #7183 (GBRA-151) at the v0.60.412.0 merge: read-write-transactions import and transactionOn wraps its connection in readWriteTransactions (logic in postgres-engine/read-write-transactions.ts; engine methods cannot move): 3135 + 2; +7 GBRA-156: transactionOn opens readOnly transactions as BEGIN READ ONLY and a top-level read inherits its request signal, runUnsafe refuses an aborted request (logic in request-signal.ts; engine methods cannot move): 3137 + 7; +3 GBRA-156 keyword OR rarity: the import and the searchKeyword OR retry through rankOrFallbackByRarity (logic in search/keyword-or-rarity.ts; engine methods cannot move)++src/core/pglite-engine.ts 3097 ratchet +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); 4 Foundations 2 Lane F: autocommit write statements take the WAL checkpoint guard (classifier writesWal in pglite-engine/checkpoint-guard.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); E1 bootstrap moved to engine-sql/bootstrap.ts; ceiling rationale: docs/architecture/key-files/engines-1.md entry for src/core/pglite-engine.ts; evidence delivery: getChunkWindows delegate + type import (+3; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +12 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3213 #5824: searchVector SQL moved to search/vector-statement.ts (-166); lowered to 3117 #5889: searchTitles SQL moved to engine-sql/titles.ts (-108); lowered to 2915 F4a: getHealth SQL moved to engine-sql/health.ts (-202); +6 F4b: planner-sensitive reads call beforePlannerRead/plannerRead (logic in planner-stats.ts); +52 engine graduation (GBRA-50 G2a): marker/tombstone checks before and after the kernel lock (logic in persistence/graduation-custody.ts), lock-retaining close and held-lock open (engine lifecycle methods cannot move); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2983 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +5 GBRA-67: readPageSnapshotsBatch delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages delegate (SQL in engine-sql/pages.ts); +2 GBRA-76: transaction/transactionDirect take TransactionOptions and refuse an already-aborted signal before BEGIN; +2 #4772 (W14 PR3): entityTypes HealthDeps delegate + import (policy in schema-pack/entity-types.ts, SQL in engine-sql/health.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3023 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates (SQL in engine-sql/pages.ts); +6 large pages Wave A sub-a: getChunkPage delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +7 LHF wave 2 item 5: request config snapshot delegate lines in getConfig/getAllConfig/setConfig/unsetConfig (logic in config-snapshot.ts); +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3072 + 3; +5 PR2 fix lane X: keywordBoundedRead runs the read on the engine itself (engine methods cannot move): 3075 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3080 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3085); +2 #7159: the frontmatter where clause in searchKeyword and its import (SQL in search/frontmatter-where.ts; engine methods cannot move); +2 GBRA-156 keyword OR rarity: the import and the searchKeyword OR retry through rankOrFallbackByRarity with an orFallback rank parameter like Postgres (logic in search/keyword-or-rarity.ts; engine methods cannot move); +5 agent operator gate fixes: repair-failed marker gate before the lock and the marker record after a failed auto-repair (logic in pglite-repair.ts, refusal in pglite-repair-consent.ts); re-summed at the Wave B PR 4 merge with v0.60.452.0 (3097 measured)++src/core/postgres-engine.ts 3155 ratchet +1 System One v1 evals: search arms clamp to searchLimitCap() (import of search/eval-pool-depth.ts; eval-only --eval-pool-depth, production cap unchanged); refactor wave 1 split target (W1 engine-sql); ceiling rationale: docs/architecture/key-files/engines-2.md entry for src/core/postgres-engine.ts; evidence delivery: getChunkWindows scoped-read delegate + type import (+5; SQL in engine-sql/chunks.ts); #5761: +4 markPagesAttendanceBlocked delegate (SQL in engine-sql/pages.ts); +10 eval wave N1-2/N1-3: mergeOntologyFact same-stint noop check + ontology visibility filter in the grandfathered ontology methods; lowered to 3242 #5824: searchVector SQL moved to search/vector-statement.ts, +explainVectorSearch/runVectorAttempt (-156); +6 #5730: onpoisoned wiring on the instance/module/connection-manager pools + poisonedDiscards in getPoolDiagnostics (counter in pool-gauge.ts); +5 #5801: onCheckout observer seam (fires after reserve resolution / transaction-callback entry; listeners in pool-gauge.ts); lowered to 3119 #5889: searchTitles SQL moved to engine-sql/titles.ts (-133); lowered to 2914 F4a: getHealth SQL moved to engine-sql/health.ts (-216); +2 #5984: transactions track held page guards like PGLite (withHeldPageKeys), so repeated guards in one transaction cost no round trips; +1 #5984: traceSqlOptions import for the env-gated GBRAIN_SQL_TRACE bench hook (src/core/sql-trace.ts); v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (2917 measured); +2 engine graduation (GBRA-50 G2a): initSchema sizing parameter (the source embedding layout sizes a fresh target); +1 #5984: upsertChunks guards pass the per-transaction config memo (transactionMemo in page-state/transactions.ts); v0.60.58.0 merge: #5984 diet growth re-summed over v0.60.57.0 (2920 measured); +4 P7 relationalChainHop delegate; +8 contributor audit wave P0: listFactsKeyset delegate (SQL in engine-sql/facts.ts); +1 #5375: get_versions limit/include_body type import (GetVersionsOpts, PageVersionRows); 6 #6085: initSchema pins advisory lock 42, bootstrap, schema replay and unlock to one reserved backend when the DDL pool has more than one slot (gauge only, no long-hold permit), released in finally; wave 10 collector: lane E (#6085), lane G (#5375) and master compose at 2939; +2 #6110: search transactions pass jitOff to withScopedReadTransaction (SET LOCAL jit = off in postgres-engine/search-settings.ts); +2 #5984 lane apply diet: putPage/setPageAliases write inline in the caller's page transaction (engine methods cannot move); +1 #5984 single-write fast path composes with the lane apply diet at 2944; +2 #5984 shared parameter types: the instance pool passes shared_types and initSchema clears them after migrations (helpers in db.ts); +2 #6276: the remote alias-resolving readPageSnapshot runs with JIT off (withScopedReadTransaction jitOff); +5 #6278: executeRaw timeoutMs delegate (statement in postgres-engine/bounded-statement.ts); +23 #6278 PR 1.5: cancelSettleMs() and the settle timer in runUnsafe that discards a reserved connection whose cancel a transaction-mode pooler never completed; +3 #6317 lane 2: getPoolDiagnostics().pool from the vendored driver (postgres-engine/pool-stats.ts) and the prepare mark; +4 GBRA-69: replaceDerivedLinksBatch delegate (logic in derived-links.ts); +1 GBRA-69 extract batching: replaceDerivedLinksBatch delegate (batch logic in derived-links.ts); +9 GBRA-75: getBacklinkCounts and getHealth statements run JIT-off through the private jitOffRead transaction helper (engine methods cannot move); +3 GBRA-75 wave 7: searchKeyword and searchVector start the once-per-engine background search statistics guard (logic in search/projection-statistics.ts); +7 GBRA-67: readPageSnapshotsBatch scoped-read delegate (batch logic in page-snapshot-batch.ts); +1 GBRA-75 wave 10: findDuplicatePages scoped-read delegate (SQL in engine-sql/pages.ts); +7 #6383: poolIncidents hooks on the instance/module/connection-manager pools (counter and lines in pool-gauge.ts, budget in db.ts) and stuckDiscards/buildFailures in getPoolDiagnostics; +3 GBRA-76: transaction/transactionDirect take TransactionOptions; transactionOn attaches the begin handle to withTransactionAbort (logic in postgres-engine/transaction-abort.ts); +2 W14 P3.12 (#4772): entityTypes HealthDeps delegate + import on top of W13; +1 #5227: schema.sql replay under withSchemaLockTimeout (wave 14 PR1); +1 driver desync tripwire: desyncDiscards in getPoolDiagnostics (counter and line in pool-gauge.ts); +11 Cat 40 Hard fix wave F2 (#6271) on top: countKeywordPages/searchKeywordPages scoped-read delegations (SQL in engine-sql/keyword-pages.ts) and the rankQuery score parameter (3027 measured); +3 W15 P1.2 (#6454): three one-line stale-frontmatter-key delegates, reads scoped (SQL in engine-sql/pages.ts); +12 wave 16 G5.1 (#6495): keywordStatementTimeout memo field, its connect/disconnect resets and the keywordStatementTimeoutSetting accessor, plus one awaited setting per keyword/chunk/CJK transaction (resolver in postgres-engine/keyword-statement-timeout.ts); wave 16 G5.1 gate fix: keywordStatementTimeoutSetting resolves the knob once per connection on the first keyword statement from the saved connect config (connect issues no statement for it; 3042 measured); +7 large pages Wave A sub-a: getChunkPage scoped-read delegate (SQL in engine-sql/chunks.ts); +11 #6696 B3: readEmbeddingStateCounts/listEmbeddingStateRows delegations + type import; +22 Wave B lane 1a: segmented page storage delegations (allocateBodyOccurrenceIds..sweepSegments, SQL in engine-sql/page-body.ts) and their imports; +3 wave 18b lane 2 (#6495): keywordTimeouts negative-cache field and the searchKeyword runner wrap (logic in postgres-engine/keyword-timeout-cache.ts); integrated at wave 18b: master 3082 + 3; +3 PR2 fix lane B: logIngest stamps writer_version/writer_host_id/writer_segment_reader and getIngestLog names its columns (engine methods cannot move); integrated at the Wave B PR 2 master merge (v0.60.264.0): master 3085 + 3; +3 PR2 fix lane E (E1): getChunks/getChunkPage/getChunkWindows run the manifest privilege probe in their scoped transaction (chunkManifestReads in search/safe-chunks.ts); integrated at the lane E merge onto b75a69a6d: 3088 + 3; +6 PR2 fix lane X: searchVector, explainVectorSearch, the hasMore witness and runVectorAttempt pick the chunk-manifest statement form inside each bounded attempt transaction, so its statement_timeout bounds the probe (form memo vectorStatementForms in search/vector-statement.ts; engine methods cannot move): 3091 + 6; +5 PR2 fix lane X: keywordBoundedRead runs the read in withScopedReadTransaction under the keyword statement timeout setting (engine methods cannot move): 3097 + 5; +2 GBRA-130 B-6 (#6860): putDreamVerdict passes its payload through wellFormedJson (engine methods cannot move); +1 GBRA-130 A-1: held option on the stale-page list/count signatures (SQL in engine-sql/pages.ts); +1 GBRA-130 integration: the A-1 (links_extract_failure) and B-6 (wellFormedJson putDreamVerdict) engine hunks composed at the lane merge; +2 #6948: putPage runs assertOriginUnclaimed in its page transaction and restorePage runs assertRevivalUnclaimed (logic in persistence/origin-guard.ts; engine methods cannot move): 3102 + 2; GBRA-130 composed with #6948 at the master 0e0cd27b merge: re-summed to the merged line count (3107); +3 #7159: the frontmatter where clause in the two keyword typesClause sites and its import (SQL in search/frontmatter-where.ts; engine methods cannot move); GBRA-156 retrieval wave (#7201) composed with #7194 at the merge: re-summed (3114 measured); +2 warm CLI socket (#7218): connectedDatabaseUrl getter (the URL the engine connected with, bound into the socket identity), composed over the GBRA-156 retrieval wave (3116 measured); +1 GBRA-133 PR 2b: transactionOn hands the outermost transaction its commit checks (page-state/transactions.ts withCommitChecks), composed with the warm CLI socket at the merge (3117 measured); +18 GBRA-156: the private readTransaction helper behind withScopedReadTransaction and jitOffRead answers a top-level read before its COMMIT settles (engine methods cannot move; 3135 measured); +1 GBRA-156: transactionOn and runUnsafe hold a per-search connection slot (import of search/connection-budget.ts; 3136 measured); +2 GBRA-156: transactionOn passes TransactionOptions.pipelineFirst to the pool begin as { first } (driver gate in vendor/postgres index.js begin); an engine method cannot move; composed with the warm CLI socket and GBRA-133 PR 2b at the master v0.60.344.0 merge (3119 measured); GBRA-151 #7183/#7187/#7188 re-summed at the v0.60.402.0 merge (3135 measured); +2 #7183 (GBRA-151) at the v0.60.412.0 merge: read-write-transactions import and transactionOn wraps its connection in readWriteTransactions (logic in postgres-engine/read-write-transactions.ts; engine methods cannot move): 3135 + 2; +7 GBRA-156: transactionOn opens readOnly transactions as BEGIN READ ONLY and a top-level read inherits its request signal, runUnsafe refuses an aborted request (logic in request-signal.ts; engine methods cannot move): 3137 + 7; +3 GBRA-156 keyword OR rarity: the import and the searchKeyword OR retry through rankOrFallbackByRarity (logic in search/keyword-or-rarity.ts; engine methods cannot move); +2 wave-b PR 4 merged with #7218 (both sides added imports); re-summed at the Wave B PR 4 merge with v0.60.452.0 (3155 measured)src/core/search/hybrid.ts 1562 ratchet +5 GBRA-81 item 5 per-stage search timings: HybridSearchOpts._timings (interface field) and the timer bindings and import in hybridSearch/hybridSearchCached (collector logic in search/stage-timings.ts); +2 W5 page-unit ranking cut: HybridSearchOpts.pageRankCut (logic in search/page-rank-cut.ts); +9 W3 confidence-gated reranking: HybridSearchOpts.rerankGate and the gate/lookup threading through rerankAndPin and sizeReturnPool (logic in search/hybrid/rerank-gate.ts, crag.ts gradePreRerank); re-summed at the W3 merge onto master v0.60.168.0 (1641 measured); +2 System One v1: HybridSearchOpts.decide (search/decide-stage.ts); refactor wave 1 split target (W4 hybrid, cut line); ceiling rationale: docs/architecture/key-files/core-search-1.md entry for src/core/search/hybrid.ts; +10 #5691: per-request embedding_query_prefix read once and threaded to the embeds and cache key; +5 green master wave (embedding opt-out): HybridSearchOpts._embeddingOptedOut (interface field) read once per request and threaded to the cache-lookup embed and the keyword-only gate; +24 P2 explain RRF attribution stamp in rrfFusionWeighted, backlink_count stamp, explain_target stage observations, explain/explainTarget opts; +14 fix wave 13 P4.8 #6400: lazyQueryEmbedDeadline (the query-embed deadline starts when the embed starts) and the _queryEmbedDeadline getter; +1 query facts arm: HybridSearchOpts.onQueryEmbedding (interface field; its one-line call is paid inside the ceiling) after the vector arms, so the facts arm reuses the query embedding without a second model call; re-summed at the master a08578ca5 merge (1591 master lines + 3 integration lines: the onQueryEmbedding hook); lowered to 1562: LHF wave 2 item 3 peeled cosineReScore into search/cosine-rescore.tssrc/core/types.ts 2347 ratchet +4 Wave B PR 1 (1c): Page.body_storage/body_bytes (interface fields; guard logic in page-body/page-shape.ts); +8 W3 confidence-gated reranking: HybridSearchMeta.rerank_gate (RerankGateMeta in search/hybrid/rerank-gate.ts); re-summed at the W3 merge onto master v0.60.168.0 (2279 measured); +7 fix wave 11 W6.2/W6.3 (#5989, #6132): SearchOpts.hnswIterativeScan and cjkKeyword, the keyword_candidates_incomplete stage and HybridSearchMeta.keyword_candidates (logic in engine-sql/cjk-search.ts); +5 System One v1 retrieval lane: SearchResult injection_p/injection_suspected, HybridSearchMeta answerability, egress_denied degraded reason; +4 System One v1: SearchResult rerank_score_kind/decide_evidence, HybridSearchMeta decide/rerank; +3 wave review: PAGE_SORT_SQL.updated_asc source_id + id tiebreakers (total order under federated scopes); +5 #4881: OntologyReadOpts extends PageReadScope doc; +3 #4857: PAGE_SORT_SQL.slug total-order tiebreaker comment; grown v0.46.26.0 megawave: EvidenceOpts, pacing/usage result fields, PageFilters growth (#4352 #4218); wave-k: +9 SalienceOpts/AnomaliesOpts source scope (#3867); +20 2026-09 adversarial batch 2: keyword_relaxed_carried stage + relaxed_dropped meta field docs; +16 2026-09 fix wave: SearchResult.keyword_relaxed field + full fusion-demotion doc; (#3867); +9: #4648 rerank_passthrough degraded stage + empty_result_set/malformed_shape reasons | merged v0.48.1.0 true-up; +master v0.48 merge true-up (reranker succession: no_key preflight, reranker_skipped stage, readiness); corrective release: shared internal PageReadScope and PageReadPolicy; ranker wave v0.48.4.0: HybridSearchMeta relational_rerank_pin / keyword_arm_confidence / metadata_boost_gate + SearchResult.relational_pinned (+48 over master's peel); +12: #4681 Page.updated_at_iso + keyset cursor precision docs; #5105: canonical page state shared module and transaction/snapshot delegates; #5105: public page revision fields; upstream integration: preserve independently reviewed master additions with branch facade extraction; #5252 wave: typed vector pool and readiness metadata; merged company ingestion/schema routing changes; retired provider integration removed; +1 write-path wave: 'created' effective-date source; +3 read-path wave: rerank_failed degraded stage + budget reason (closed vocabularies) and its recall classification note; +8 fw3-search: SearchOpts.source_boosts + keyword_arm_failed/title_arm_failed stages; +2 wave-2 W4: ChunkInput.embedding_input_hash (#5553); fix wave 3 x fix wave 2 (v0.60.5.0) composition: +2 at the merge; evidence delivery: optional SearchResult.delivered (+2; shape in search/evidence-delivery.ts); +2 eval wave N1-3: OntologyReadOpts.visibility (remote world-only ontology reads); +4 #5827: GraphNode.source_id and GraphPath from_source_id/to_source_id; +2 #5824: SearchOpts.vectorLegacyGuard rollback switch; +7 #5154: PageFilters.listColumnsOnly (interface field); +11 Foundations 1 F1b: WriteAttributionView + AttributedPageVersion (get_versions / get_write_attribution read shapes); +1 #5988: SearchResult.stale carries the held-file detail (interface field); +6 retrieval feedback: SearchResult feedback_boost/content_hash/relational_path_edges stamps and RelationalFanoutRow.path_edges (interface fields); +2 RelationalFanoutOpts.wide (interface field); 1 GBRA-49: temporal annotation field on link rows; 1 GBRA-49: temporal annotation field on link rows; 1 GBRA-49: temporal annotation field on link rows; +44 P7 ChainHopOpts/ChainHopEdge chain-hop contract types; P7 SearchResult.relational evidence + RelationalEvidence type + relational_plan meta + planner per-call overrides; +2 P7 SearchOpts.relationalChainSlots per-call override; +1 P7 ChainHopOpts.temporal (relationship-validity policy per hop); P3 x P7 (v0.60.60.0) composition: deltas re-summed at the merge; 1 GBRA-49: temporal annotation field on link rows; +44 P7 ChainHopOpts/ChainHopEdge chain-hop contract types; P7 SearchResult.relational evidence + RelationalEvidence type + relational_plan meta + planner per-call overrides; +2 P7 SearchOpts.relationalChainSlots per-call override; +1 P7 ChainHopOpts.temporal (relationship-validity policy per hop); +1 green master wave: embedding_disabled degraded reason (closed vocabulary); +2 #5951: Chunk.source_id (get_chunks names each row's source); 1 P2 SearchResult explain fields (rrf attribution, blend_norm_rrf, score_details, backlink_count) + RrfAttribution (interface fields); +11 #5575 (L1b): PageReadScope minTrust/suppressFlagged, SearchResult trust_tier/origin/unconfirmed, TimelineOpts eligibility (interface fields cannot move); +8 #4772 (W14 PR3): BrainHealth.entity_types_status field (interface fields cannot move); +1 C4: question page type row; +6 entity anchoring: optional SearchResult.entity_anchored row stamp (logic in search/entity-anchor.ts); +4 query facts arm: optional SearchResult.fact_row and superseded_claim row fields (logic in search/facts-arm.ts); +2 query facts arm: SearchResult result_type/fact_id/page_slug/follow_up (fact rows are never page-shaped); +9 Cat 40 Hard fix wave (#6271): SearchResult matched_alias/evidence_omitted/provenance, SearchOpts.rankQuery, keyword_count_unavailable stage and rerank_failed reasons; +12 fix wave 15 P2.1 (#6500): PageFilters.slugAfter (single-source slug keyset, interface field + doc) and the updated_desc tiebreaker comment (the keyset walk lives in facts/conversation-enumeration.ts); +2 wave 16 G5.1 (#6495): EngineConfig.keyword_statement_timeout_ms (interface field + doc); +2 GBRA-92: EngineConfig.pglite_shared_buffers (interface field + doc); +11 large pages (Wave A): Chunk/ChunkInput projected_byte_start/end interface fields (span logic in chunkers/recursive.ts, page-window/document.ts); +4 wave 18b lane 2 (#6495): SearchOpts.keywordTimeoutCache, the skipped_after_timeout degraded reason and the useCache doc line; integrated at wave 18b: master 2319 + 4; +2 LHF wave 2 item 3: retrieval meta cosine_rescore field (js_fallback disclosure; logic in search/cosine-rescore.ts); +14 GBRA-154 ranking wave (#4612 #7153 #7156 #7162 #7164): SearchResult collapsed/redirect_to/image_page/rank_prior/rank_score/fused_score stamps and HybridSearchMeta.collapse (interface fields; logic in search/collapse.ts, rank-priors.ts, score-contract.ts); GBRA-151 retrieval P0 x operability wave merge: both sides grew the file, re-summed (2343 measured); GBRA-156 retrieval wave (#7201) composed with #7194 at the merge: re-summed (2345 measured); GBRA-151 #7147 follow-up re-summed at the v0.60.338.0 merge (2347 measured)- src/core/minions/queue.ts 2533 ratchet grown #4078 + megawave probe-liveness unlatch (#4310) + master private-queue lifecycle: recovery classifier + monotonic lease; security: durable queued authority and confined filesystem dispatch; master integration: grown #4078 + megawave probe-liveness unlatch (#4310) + master private-queue lifecycle: recovery classifier + monotonic lease; harness support: boundary wiring to shared grants, isolated setup, withdrawal and delegated guards; merged v0.49: durable authority and delegated admission both enforced; typed readiness, configuration-blocked lifecycle and bounded release; +9: prune archives completed dream synthesis keys; +18 Lane D: deferJob (a deferral returns a job to delayed with no attempt counted and no stacktrace growth); the ceiling had 17 lines of slack; +5 agent operator follow-up Item 5 merged over master: claim-time spend fence token and legacy_default stamp (logic in minions/spend-authorization.ts); +5 GBRA-130 A-30: claim excludeWatchdogSuspects option (signature, doc and the mark parameter), the releaseWatchdogClaim delegate, and the co-runner stall call site in handleStalled (logic in minions/watchdog-attribution.ts)+ src/core/minions/queue.ts 2547 ratchet grown #4078 + megawave probe-liveness unlatch (#4310) + master private-queue lifecycle: recovery classifier + monotonic lease; security: durable queued authority and confined filesystem dispatch; master integration: grown #4078 + megawave probe-liveness unlatch (#4310) + master private-queue lifecycle: recovery classifier + monotonic lease; harness support: boundary wiring to shared grants, isolated setup, withdrawal and delegated guards; merged v0.49: durable authority and delegated admission both enforced; typed readiness, configuration-blocked lifecycle and bounded release; +9: prune archives completed dream synthesis keys; +18 Lane D: deferJob (a deferral returns a job to delayed with no attempt counted and no stacktrace growth); the ceiling had 17 lines of slack; +5 agent operator follow-up Item 5 merged over master: claim-time spend fence token and legacy_default stamp (logic in minions/spend-authorization.ts); +5 GBRA-130 A-30: claim excludeWatchdogSuspects option (signature, doc and the mark parameter), the releaseWatchdogClaim delegate, and the co-runner stall call site in handleStalled (logic in minions/watchdog-attribution.ts); +5 GBRA-158 #7239/#7240: failJob result parameter (the #7216 hunk), jsonbSafeJson import and its call in add (sanitizer in text-safe.ts); +2 #7242 lane reservation: claim excludeNames option (doc line and the bound array; policy in minions/lanes.ts); +1 #7241 submitter label import (job-insight.ts) + 1 queue-families type import; #7252 x #7249 merge: both sides grew the file, re-summed (2544 measured); +3 GBRA-133: the stall sweep deletes a drain-lease holder record whose lease lock is gone or expiredsrc/commands/init.ts 1884 ratchet +2 fix wave 9 lane F #5253: leaving deferred setup also clears the DB-plane embedding_disabled row (both init branches); grown v0.46.x keyless capability notices; grown db-availability loop: initPostgresCore typed-failure extraction + --prefer-postgres ladder hook + pgvector rethrow fix; +1 at megawave/wave-k merge; +master-merge true-up; wave-k: merge; #3753 --force re-init engine-preservation guard; +1 wave-k merge-union brace (--prefer-postgres close); +10 ambient-writeback WP8: runWritebackNudge consent ask in both engine epilogues (logic lives in core/onboard/writeback-nudge.ts); +4: v0.48.2 reranker readiness at init + test seam; +1: v0.48.2 provider normalization; +3: v0.48.2 review fixes; master integration: +2: preserve typed PGLite busy errors in schema-only init; shared-skills integration on company-ingestion base; retired provider integration removed; retain stored-vector identity on re-init; -14: first-run bundle + quickstart registration helpers live in init-first-run.ts (writeback/skills asks folded into the bundle); +5 agent operator follow-up Item 2: --surface flag (value flag, parse, help line, module-level registration surface, type import) for the printed harness registration; +2 fix wave lane B3: both engine paths stamp a database init created as a fresh install for the behavior_changes notice (core/behavior-change-notice.ts); +4 GBRA-81 item 1: --search-mode value flag, its parse line, module-level choice, help line (picker logic lives in init-mode-picker.ts); +2 D8 funnel: a fresh init counts one clean_install when the opt-in funnel is on (core/funnel.ts)src/commands/integrations.ts 1739 ratchet grown v0.46.26.0 megawave (#4039 connector compat) + 1 nosemgrep dataflow annotation (path-traversal audit); wave-k: exported heartbeatPath seam (#3900)src/core/minions/handlers/subagent.ts 1925 ratchet merged: master v131 settle rework + dream-wave C5 peel + C6 accounting + C7 lease heartbeats/lost-lease aborts + C9 oneshot dispatch + adversarial fix batches; grown by #4078 subagent-loop capability fix; +6 lines (reasoning-item replay: adaptContentBlocksToChatBlocks handles 'reasoning' blocks); +3 wave G #4514: Anthropic-via-OpenRouter allowed on the subagent loop; +36 lines (code review, same PR): isPromptTooLongError walks a bounded .cause chain so it still matches post-normalizeAIError() wrapping, plus extractPromptTooLongDetail so the dead-lettered job's error carries the matched provider detail instead of the generic normalizeAIError() wrapper text; master integration: harness support: boundary wiring to shared grants, isolated setup, withdrawal and delegated guards; #5105: +13 call-site wiring to shared tool-write-identity helper across fresh and replay dispatch; +7 fix wave 9 lane B #4921: ai.chat.per_turn_timeout_ms read once and passed to the oneshot and gateway-loop paths (resolver lives in minions/handler-timeouts.ts)diff --cc scripts/page-body-readers-baseline.tsvindex 66fb9745c3,b06a167af3..4172725847--- a/scripts/page-body-readers-baseline.tsv+++ b/scripts/page-body-readers-baseline.tsv@@@ -28,9 -28,8 +28,7 @@@ src/commands/doctor/checks/graph-healthsrc/commands/doctor/checks/graph-health.ts runGraphCoverage sql NONE not the page body: timeline coverage count aliassrc/commands/enrich.ts enrichOneLocked call:serializeMarkdown SEGWsrc/commands/enrich.ts enrichOneLocked field SEGW- src/commands/export.ts runExport call:serializeMarkdown SEGW- src/commands/export.ts runExport field STREAMsrc/commands/export.ts runExport sql STREAM-src/commands/extract-conversation-facts.ts regularPageVersionToken field STREAMsrc/commands/extract-mentions-explain.ts explainMention field STREAMsrc/commands/extract-mentions-explain.ts explainMention sql STREAMsrc/commands/extract-mentions-explain.ts pageNames sql STREAMdiff --cc scripts/postgres-arm-weights.jsonindex f48aa420ce,c2b45c4570..6832690539--- a/scripts/postgres-arm-weights.json+++ b/scripts/postgres-arm-weights.json@@@ -1,453 -1,438 +1,453 @@@{- "test/activation-unbound-rooted-6449.test.ts": 5147,- "test/alias-source-cascade-5094.test.ts": 18320,- "test/attribution-backfill-history.test.ts": 14502,- "test/backstop-same-page-shadow-managed-6333.test.ts": 6480,- "test/behavior-change-notice.test.ts": 6610,- "test/belief-ledger-append-owner.test.ts": 14461,- "test/belief-ledger-coverage.test.ts": 149889,- "test/belief-ledger-group.test.ts": 28152,- "test/belief-ledger-identity.test.ts": 49456,- "test/belief-ledger-lifecycle.test.ts": 45422,- "test/belief-ledger-page-at-time.test.ts": 61317,- "test/belief-ledger-privacy.test.ts": 18960,- "test/belief-ledger-purge-review.test.ts": 175525,- "test/belief-ledger-purge.test.ts": 147333,- "test/belief-ledger-restore.test.ts": 206313,- "test/belief-ledger-touched.test.ts": 30202,- "test/belief-ledger-trust.test.ts": 21355,- "test/belief-ledger-w5-time-model.test.ts": 20008,- "test/belief-ledger-weekly-diff.test.ts": 118479,- "test/belief-ledger-weekly-probes.test.ts": 27975,- "test/capacity-bounded-read-6803.test.ts": 6867,- "test/capture-consent-admission.test.ts": 6155,- "test/capture-dispatch-provenance-6524.test.ts": 7080,- "test/chronicle-backfill-max-usd.test.ts": 5122,- "test/claim-fifo-foreground-waiting.test.ts": 5269,- "test/claim-lease-holder-only-6712.test.ts": 5143,- "test/claude-cli-output-cap.test.ts": 4568,- "test/cli-page-writes.test.ts": 172208,- "test/colon-slug-windows-5032.test.ts": 8505,- "test/company-brain-policy.test.ts": 25416,- "test/company-brain-runtime.test.ts": 37641,- "test/consolidate-same-instant-6023.test.ts": 13798,- "test/conversation-facts-oversized-sidecar.test.ts": 6466,- "test/cycle/synthesize-concepts-merge.test.ts": 5637,- "test/decide/conflict-proposals-managed.test.ts": 5301,- "test/declared-lineage-visibility.test.ts": 3811,- "test/derived-link-reconciliation.test.ts": 8270,- "test/doctor-frontmatter-holds.test.ts": 7149,- "test/doctor-image-embedding-coverage.test.ts": 7712,- "test/doctor-keyword-plan-6495.test.ts": 6338,- "test/doctor-routing-skill-pack-source.test.ts": 4862,- "test/doctor-sync-freshness-skill-pack-6076.test.ts": 4080,- "test/embed-stale-images-managed-6529.test.ts": 7348,- "test/embedding-completion-atomic.serial.test.ts": 6766,- "test/engine-sql-facts-keyset.test.ts": 5300,- "test/extract-all-stamp-intersection.serial.test.ts": 5239,- "test/extract-atoms-input-truncated-6503.test.ts": 11305,- "test/extract-endpoint-revision.serial.test.ts": 6952,- "test/extract-entities-managed.test.ts": 21227,- "test/extract-timeline-from-meetings-managed.test.ts": 18768,- "test/extraction-watermark-atoms.test.ts": 4862,- "test/fact-fence-adoption-exits.test.ts": 33924,- "test/fact-purge-lookup-timeout-6511.test.ts": 4333,- "test/facts-insert-guards-7105.test.ts": 8959,- "test/facts-publication-large-fence-6898.test.ts": 34731,- "test/fence-repair-receipts.test.ts": 11374,- "test/forecast-journal.test.ts": 17832,- "test/frontmatter-reserved-keys-6454.test.ts": 5735,- "test/get-chunks-paging.test.ts": 5048,- "test/graduation-copy.test.ts": 71482,- "test/graduation-digest.test.ts": 2735,- "test/graduation-drain.test.ts": 13229,- "test/graduation-inventory.test.ts": 5836,- "test/graduation-rollback.test.ts": 116358,- "test/graduation-state.test.ts": 186788,- "test/graduation-target.test.ts": 4801,- "test/graduation-verify-sync-freshness.test.ts": 8779,- "test/graduation-verify.test.ts": 20688,- "test/grandfather-managed.test.ts": 47467,- "test/harness-skills-epoch.test.ts": 4703,- "test/held-read-signals.test.ts": 8640,- "test/hold-action-chain-6712.test.ts": 27253,- "test/import-file-result-callback-gbra130.test.ts": 7418,- "test/import-frontmatter-key-order-5158.test.ts": 4924,- "test/import-inline-chunk-keep.test.ts": 5735,- "test/import-revision-concurrency.test.ts": 5537,- "test/keyword-statement-timeout-knob-6495.test.ts": 12874,- "test/keyword-timeout-negative-cache-6495.test.ts": 7350,- "test/lane-apply-pipelining.test.ts": 6060,- "test/large-pages/append-concurrency.test.ts": 29307,- "test/large-pages/append-cost.test.ts": 32879,- "test/large-pages/append-mention-links.test.ts": 15718,- "test/large-pages/chunk-retirement-plan.test.ts": 3304,- "test/large-pages/chunk-visibility.test.ts": 8074,- "test/large-pages/contextual-reembed-segmented.test.ts": 8014,- "test/large-pages/credential-reseal-segments.test.ts": 6959,- "test/large-pages/doctor-skipped-segmented.test.ts": 14815,- "test/large-pages/edit-segmented.test.ts": 30647,- "test/large-pages/forget-reason-segmented.test.ts": 11249,- "test/large-pages/forget-scope.test.ts": 26208,- "test/large-pages/gbra117-segmented-classes-window.test.ts": 70304,- "test/large-pages/held-budget-count-list.test.ts": 17164,- "test/large-pages/held-budget-shrink.test.ts": 16201,- "test/large-pages/managed-import-outside-root.test.ts": 27849,- "test/large-pages/managed-import-projection-pending.test.ts": 21760,- "test/large-pages/managed-links-timeline-heap.test.ts": 19020,- "test/large-pages/managed-streamed-import.test.ts": 56299,- "test/large-pages/managed-sync-segmented-rename.test.ts": 23871,- "test/large-pages/managed-sync-streamed.test.ts": 109569,- "test/large-pages/oversized-backfill-segmented.test.ts": 7791,- "test/large-pages/page-purge-segments.test.ts": 32486,- "test/large-pages/pinned-segmented-reads.test.ts": 26270,- "test/large-pages/projection-claim-ownership.test.ts": 19457,- "test/large-pages/projection-demotion-race.test.ts": 8398,- "test/large-pages/projection-parity.test.ts": 49968,- "test/large-pages/publication-seal-bounded.test.ts": 22566,- "test/large-pages/purge-fact-inflight-staging.test.ts": 10038,- "test/large-pages/purge-fact-segmented-preimage.test.ts": 14294,- "test/large-pages/purge-inflight-create.test.ts": 11520,- "test/large-pages/purge-replay-segments.test.ts": 11777,- "test/large-pages/purge-segment-residue.test.ts": 6994,- "test/large-pages/purge-segmented-versions-batch.test.ts": 15943,- "test/large-pages/purge-segments.test.ts": 14235,- "test/large-pages/recovery-budget-ceiling.slow.test.ts": 162206,- "test/large-pages/recovery-budget-default.test.ts": 9178,- "test/large-pages/remote-get-page-privacy.test.ts": 70735,- "test/large-pages/remote-versions-storage-change.test.ts": 6848,- "test/large-pages/remote-window-privacy.test.ts": 56340,- "test/large-pages/restore-deferred-retire.test.ts": 23255,- "test/large-pages/restore-publication-statement-bound.test.ts": 23136,- "test/large-pages/restore-segmented-reprojects.test.ts": 62115,- "test/large-pages/sealed-segmented-search.test.ts": 10242,- "test/large-pages/second-write-deferred-retire.test.ts": 13277,- "test/large-pages/segment-rewrite-cr-tier.test.ts": 11174,- "test/large-pages/segment-vector-reuse.test.ts": 6710,- "test/large-pages/segmented-append-reembed.test.ts": 5867,- "test/large-pages/segmented-body-unreachable.test.ts": 8189,- "test/large-pages/segmented-bom.test.ts": 15646,- "test/large-pages/segmented-conversation-facts.test.ts": 35040,- "test/large-pages/segmented-conversation-sidecar-token.test.ts": 29330,- "test/large-pages/segmented-core-list.test.ts": 26267,- "test/large-pages/segmented-create-searchable.test.ts": 26568,- "test/large-pages/segmented-delete-crash.slow.test.ts": 55133,- "test/large-pages/segmented-delete-restore-file.slow.test.ts": 148129,- "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 95223,- "test/large-pages/segmented-derived-parity.test.ts": 17965,- "test/large-pages/segmented-derived-passes.test.ts": 16760,- "test/large-pages/segmented-derived-work.test.ts": 100889,- "test/large-pages/segmented-embedding-paths.test.ts": 25476,- "test/large-pages/segmented-embedding.test.ts": 6344,- "test/large-pages/segmented-evidence-read-cost.test.ts": 27214,- "test/large-pages/segmented-evidence.test.ts": 34704,- "test/large-pages/segmented-extraction-stale.test.ts": 13415,- "test/large-pages/segmented-facts-forced-lines.test.ts": 10640,- "test/large-pages/segmented-facts-reconcile.test.ts": 133927,- "test/large-pages/segmented-file-drift-ledger.test.ts": 50854,- "test/large-pages/segmented-file-drift.test.ts": 100516,- "test/large-pages/segmented-forced-cuts.test.ts": 54820,- "test/large-pages/segmented-frontmatter-reimport.test.ts": 27231,- "test/large-pages/segmented-get-cli.test.ts": 18535,- "test/large-pages/segmented-get-page-parity.test.ts": 20038,- "test/large-pages/segmented-leads.test.ts": 14205,- "test/large-pages/segmented-loser-chunks.test.ts": 6625,- "test/large-pages/segmented-maintenance-commands.test.ts": 13771,- "test/large-pages/segmented-prior-view.test.ts": 14816,- "test/large-pages/segmented-read-refusals.test.ts": 12268,- "test/large-pages/segmented-real-size.slow.test.ts": 51303,- "test/large-pages/segmented-remember-refusal.test.ts": 20556,- "test/large-pages/segmented-repair-scans.test.ts": 20702,- "test/large-pages/segmented-retained-blocks.test.ts": 53010,- "test/large-pages/segmented-search-dedup.test.ts": 8710,- "test/large-pages/segmented-semantic-writes-near-ceiling.slow.test.ts": 80173,- "test/large-pages/segmented-semantic-writes.test.ts": 69698,- "test/large-pages/segmented-shrink-below-ceiling.test.ts": 74405,- "test/large-pages/segmented-storage-visibility.test.ts": 18766,- "test/large-pages/segmented-sweep-budget.test.ts": 24087,- "test/large-pages/segmented-sweep-deferral.test.ts": 11624,- "test/large-pages/segmented-switch.test.ts": 29216,- "test/large-pages/segmented-think-compile-leads.serial.test.ts": 10172,- "test/large-pages/segmented-timeline-heap.test.ts": 63099,- "test/large-pages/segmented-timeline-retract-versions.test.ts": 8860,- "test/large-pages/segmented-versions.test.ts": 6726,- "test/large-pages/segmented-withdrawal-mirror.test.ts": 204571,- "test/large-pages/segmented-withdrawn-fence-delete.test.ts": 54282,- "test/large-pages/streamed-import-drift.test.ts": 24473,- "test/large-pages/streamed-sync-origin-b14.test.ts": 42608,- "test/large-pages/stuck-recovery-large.slow.test.ts": 127178,- "test/large-pages/upload-binding.test.ts": 8504,- "test/large-pages/upload-over-ceiling.test.ts": 77779,- "test/large-pages/upload-review.test.ts": 13365,- "test/large-pages/v252-master-reader-compat.test.ts": 4829,- "test/link-cross-source.test.ts": 13961,- "test/link-preparation-shared-index.test.ts": 9703,- "test/links-attendance-blocked.test.ts": 9388,- "test/managed-cycle-pull-upstream.test.ts": 7865,- "test/managed-facts-withdrawal-recovery-6506.test.ts": 8050,- "test/managed-facts-withdrawn-skip-6506.test.ts": 7089,- "test/managed-lint.test.ts": 14721,- "test/managed-maintenance-links.test.ts": 8197,- "test/managed-sweep-corpus-windows.test.ts": 6410,- "test/managed-sweep-refused-window-retry.test.ts": 11398,- "test/managed-sweep-timeline.test.ts": 7213,- "test/managed-sync-blocked-job-6858.test.ts": 7323,- "test/managed-sync-bulk.test.ts": 229191,- "test/managed-sync-checkpoint-controls-company.test.ts": 7525,- "test/managed-sync-chunker-version.test.ts": 7026,- "test/managed-sync-concurrent-write-hold.test.ts": 23045,- "test/managed-sync-connection-loss.test.ts": 12105,- "test/managed-sync-drain.test.ts": 8298,- "test/managed-sync-foreground-priority.test.ts": 71288,- "test/managed-sync-gate-markers-6858.test.ts": 7527,- "test/managed-sync-group-completion.test.ts": 19415,- "test/managed-sync-group-uncommitted-head.test.ts": 27943,- "test/managed-sync-images-5493.test.ts": 14180,- "test/managed-sync-keep-disk-6858.test.ts": 33539,- "test/managed-sync-lanes.test.ts": 33782,- "test/managed-sync-orphans-incarnation-6518.test.ts": 5595,- "test/managed-sync-page-fault-holds.test.ts": 32312,- "test/managed-sync-pinned-reads.test.ts": 29283,- "test/managed-sync-preparation-stalled-holds.test.ts": 79229,- "test/managed-sync-row-parity.test.ts": 11652,- "test/managed-sync-stale-group-head.test.ts": 8805,- "test/migration-persistence-request-id-index.test.ts": 7014,- "test/migration-persistence-request-slug-index.test.ts": 10107,- "test/on-commit-embedding.serial.test.ts": 10324,- "test/origin-guard-6948.test.ts": 11196,- "test/origin-twins-6948.test.ts": 5711,- "test/overwritten-edits-6712.test.ts": 40167,- "test/owner-refusal.test.ts": 4645,- "test/pack-relation-direction-engine.test.ts": 6009,- "test/page-embedding-budget.test.ts": 4277,- "test/page-embedding-content-validity.test.ts": 6087,- "test/page-embedding-install-batch.test.ts": 4629,- "test/page-prepare-shared-origin-6517.test.ts": 16660,- "test/page-purge-batch-sweep-6884.test.ts": 9324,- "test/page-purge-journal-timeout-6511.test.ts": 23909,- "test/page-state-engine.test.ts": 5497,- "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 6878,- "test/pathological/a-42-atom-dot-led-slug.test.ts": 10054,- "test/pathological/a-51-conversation-batch-booking.test.ts": 11911,- "test/pathological/a-60-belief-commit-mark.test.ts": 6650,- "test/pathological/a-65-captured-facts-unreadable-corpus.test.ts": 3669,- "test/pathological/a1-links-extract.test.ts": 40191,- "test/pathological/a10-global-maintenance-stamp.test.ts": 5099,- "test/pathological/a11-effect-retry-budget.test.ts": 57275,- "test/pathological/a12-withdrawal-mirror-gate.test.ts": 56463,- "test/pathological/a13-embedding-target-park.test.ts": 27871,- "test/pathological/a15-deactivate-exits.test.ts": 10445,- "test/pathological/a18-ledger-path-text.test.ts": 44147,- "test/pathological/a2-transcripts-ingest.test.ts": 99073,- "test/pathological/a21-facts-expire-deleted.test.ts": 36305,- "test/pathological/a22-consolidate-buckets.test.ts": 44618,- "test/pathological/a23-patterns-grounding.test.ts": 76889,- "test/pathological/a24-phantom-redirect-cursor.test.ts": 25180,- "test/pathological/a25-propose-takes-poison-pages.test.ts": 34617,- "test/pathological/a26-safe-chunks-reseal.test.ts": 6887,- "test/pathological/a27-credential-reseal.test.ts": 5802,- "test/pathological/a3-google-items.test.ts": 97314,- "test/pathological/a30-watchdog-attribution.test.ts": 6515,- "test/pathological/a31-migrate-loop-rows.serial.test.ts": 35113,- "test/pathological/a4-synthesize-postprocess.test.ts": 15029,- "test/pathological/a41-maintain-sources.test.ts": 38248,- "test/pathological/a44-slug-conflicts-rotation.test.ts": 43768,- "test/pathological/a45-repair-all-kinds.test.ts": 3344,- "test/pathological/a46-content-lane-kinds.test.ts": 3970,- "test/pathological/a47-backfill-poison-row.test.ts": 4703,- "test/pathological/a49-unmanaged-purge-tombstones.test.ts": 23871,- "test/pathological/a50-unmanaged-expired-sources.test.ts": 4800,- "test/pathological/a9-repair-core.test.ts": 5132,- "test/pathological/b-10-ontology-rekey-collision.test.ts": 5659,- "test/pathological/b-7-facts-pageless-entity.test.ts": 13954,- "test/pathological/b-9-enrich-retired-alias.test.ts": 8263,- "test/pathological/b12-slug-segment-bytes.test.ts": 18014,- "test/pathological/b5-enrich-entity-identity.test.ts": 6635,- "test/pathological/b5-export-unsafe-slugs.test.ts": 23515,- "test/pathological/b6-triage-verdict-surrogate.test.ts": 4436,- "test/pathological/c-23-override-and-doctor-fixes.test.ts": 6416,- "test/pathological/c-9-facts-absorb-dead.test.ts": 7877,- "test/pathological/c1-effect-stuck-recovery.test.ts": 36261,- "test/pathological/c2-url-clone-fences.test.ts": 75206,- "test/pathological/c22-stuck-recovery-large-file.test.ts": 21602,- "test/pathological/c4-bundle-stuck-recovery.test.ts": 114975,- "test/pathological/c5-writer-transfer-cancel.test.ts": 34539,- "test/pathological/c7-content-receipt-root.test.ts": 27495,- "test/pathological/d1-unfenced-facts-overwrite.test.ts": 45747,- "test/pathological/d10-derived-atom-file-overwrite.test.ts": 23665,- "test/pathological/d11-derived-retired-atom-unlink.test.ts": 16158,- "test/pathological/d12-concept-stale-fences.test.ts": 20023,- "test/pathological/d13-concept-occupied-path.test.ts": 22455,- "test/pathological/d14-brainstorm-resume-overwrite.test.ts": 24642,- "test/pathological/d15-sync-reexport-overwrite.test.ts": 46482,- "test/pathological/d16-google-file-replacement.test.ts": 53196,- "test/pathological/d17-github-file-replacement.test.ts": 36499,- "test/pathological/d18-think-take-db-only.test.ts": 40617,- "test/pathological/d19-takes-bootstrap-db-only.test.ts": 21696,- "test/pathological/d2-fence-write-overwrite.test.ts": 35747,- "test/pathological/d21-migration-verifier-record.test.ts": 68460,- "test/pathological/d22-legacy-hash-body-history.test.ts": 86395,- "test/pathological/d23-extract-atoms-db-only.test.ts": 24446,- "test/pathological/d3-forget-overwrite.test.ts": 86393,- "test/pathological/d4-proposal-overwrite.test.ts": 71356,- "test/pathological/d5-phantom-canonical-overwrite.test.ts": 26975,- "test/pathological/d6-phantom-file-unlink.test.ts": 17725,- "test/pathological/d7-synthesize-reverse-write.test.ts": 23429,- "test/pathological/d8-patterns-reverse-write.test.ts": 27924,- "test/pathological/d9-dream-summary-overwrite.test.ts": 33607,- "test/pathological/facts-mirror-failures.test.ts": 62439,- "test/pathological/h1-zero-yield-atom-reextract.test.ts": 19133,- "test/pathological/h2-git-effect-moved-remote.test.ts": 17618,- "test/pathological/h3-chronicle-partial-generation.test.ts": 57863,- "test/pathological/h4-conversation-facts-zero-yield.test.ts": 63876,- "test/pathological/h5-atoms-restore.test.ts": 24496,- "test/pathological/lp-a-segmented-mirror.test.ts": 45650,- "test/pathological/lp-b-transient-retry-budget.test.ts": 68193,- "test/pathological/lp-c-publication-ceiling-retry.test.ts": 64944,- "test/pathological/lp-d-recovery-version.test.ts": 12715,- "test/pathological/lp-d-segmented-mirror-gate.test.ts": 12631,- "test/pathological/lp-f-split-fence-withdrawal-capacity.test.ts": 11265,- "test/pathological/lp-g-file-digest-fence-bound.test.ts": 22407,- "test/pathological/lp-h-purge-orphan-segment-text.test.ts": 42158,- "test/pathological/w1-write-through-staging-window.serial.test.ts": 9831,- "test/persistence-background-pause.test.ts": 5740,- "test/persistence-bounded-read-session.test.ts": 7827,- "test/persistence-capacity-forecast.test.ts": 6390,- "test/persistence-capacity-notices.test.ts": 11360,- "test/persistence-commit-durability.test.ts": 5477,- "test/persistence-deactivate.test.ts": 27447,- "test/persistence-diagnostics.test.ts": 7698,- "test/persistence-edit-embedding-reuse.test.ts": 11838,- "test/persistence-embedding-noop-settle.test.ts": 18029,- "test/persistence-file-import.test.ts": 39243,- "test/persistence-git-subdir-origin.test.ts": 23690,- "test/persistence-graph-publication.test.ts": 9387,- "test/persistence-history-fixture.test.ts": 30895,- "test/persistence-image-import.serial.test.ts": 8770,- "test/persistence-import-batch.test.ts": 27011,- "test/persistence-managed-lifecycle.test.ts": 20760,- "test/persistence-managed-sync.test.ts": 188787,- "test/persistence-manifest-git-scope.test.ts": 6948,- "test/persistence-memory-mutations.test.ts": 17335,- "test/persistence-page-authority.test.ts": 11651,- "test/persistence-physical-root-device.test.ts": 8087,- "test/persistence-preactivation-claim.test.ts": 17426,- "test/persistence-publication-deadline.test.ts": 15865,- "test/persistence-receipt-true-up.test.ts": 6858,- "test/persistence-reconcile-git-dirty-6138.test.ts": 7938,- "test/persistence-skill-bundles.serial.test.ts": 8232,- "test/persistence-skill-crash.slow.test.ts": 55706,- "test/persistence-skip-cost.test.ts": 12290,- "test/persistence-sync-cursor-options.test.ts": 15122,- "test/persistence-sync-cursor-strategy-6696.test.ts": 9119,- "test/persistence-sync-fence-holds.test.ts": 27601,- "test/persistence-sync-holds.test.ts": 20701,- "test/persistence-sync-lease.test.ts": 31120,- "test/persistence-sync-metafile-pages.test.ts": 10946,- "test/persistence-write-interrupted.test.ts": 52546,- "test/persistence-write-stall.test.ts": 6707,- "test/persistence-writer-fences.test.ts": 5065,- "test/physical-root-birth-tolerance-6501.test.ts": 11211,- "test/purge-fact.test.ts": 8846,- "test/purge-global-marker.test.ts": 11325,- "test/purge-missing-cache-6911.test.ts": 11445,- "test/purge-read-surfaces.test.ts": 11610,- "test/recall-page-fill.test.ts": 7056,- "test/receipt-compaction-newest-sync-gbra130.test.ts": 6880,- "test/remediation-manual-only.test.ts": 14638,- "test/repair-apply-pending-6543.test.ts": 51967,- "test/repair-embedding-effects.test.ts": 9932,- "test/repair-failed-writes-conflict-6429.test.ts": 9306,- "test/repair-failed-writes-drift-w411.test.ts": 5486,- "test/repair-fences.test.ts": 35248,- "test/repair-file-drift-deleted-6712.test.ts": 17935,- "test/repair-file-drift-held-6712.test.ts": 13836,- "test/repair-frontmatter-keys-sweep-6454.test.ts": 4892,- "test/repair-frontmatter.test.ts": 19462,- "test/repair-receipt-compaction.test.ts": 11290,- "test/repair-rename-identity-6729.test.ts": 12251,- "test/schema-missing-tables.test.ts": 7947,- "test/scripts/test-stress-postgres.test.ts": 13530,- "test/search-read-keyword-bound.test.ts": 5082,- "test/search/page-rank-cut.test.ts": 12126,- "test/search/rerank-gate-hybrid.test.ts": 5329,- "test/search/rerank-gate-telemetry.test.ts": 6264,- "test/serve-head-watcher-managed.serial.test.ts": 9589,- "test/shared-content-freshness.test.ts": 7925,- "test/shared-skills-catalog.test.ts": 69906,- "test/shared-skills-retention-capacity.test.ts": 9839,- "test/shared-skills-source-opt-out.test.ts": 4592,- "test/shared-skills-writer-boundary.test.ts": 22624,- "test/source-lifecycle-dry-run-physical-root-6849.test.ts": 5091,- "test/source-retire-missing-checkout.test.ts": 9534,- "test/source-row-diagnostics.test.ts": 4336,- "test/sources-resolve-path.test.ts": 17904,- "test/stats-health-source-scope.test.ts": 4849,- "test/sync-absent-from-worktree-s27.test.ts": 20365,- "test/sync-admission-6712.test.ts": 2676,- "test/sync-capacity-preflight.test.ts": 6922,- "test/sync-checkpoint-moved-6834.test.ts": 8805,- "test/sync-drain-claims.test.ts": 14982,- "test/sync-drain-effect-recovery-blocked.test.ts": 7987,- "test/sync-drain-head-blocked-6543.test.ts": 6329,- "test/sync-drain-inpass-stall.test.ts": 4694,- "test/sync-drain-write-capacity.test.ts": 8144,- "test/sync-exits-l4-6712.test.ts": 13206,- "test/sync-freshness-6858.test.ts": 7211,- "test/sync-frontmatter-recovery.test.ts": 6223,- "test/sync-frontmatter-slug-conflict.test.ts": 6161,- "test/sync-full-cursor-slices-6349.test.ts": 8991,- "test/sync-full-untracked-import-5459.test.ts": 12375,- "test/sync-group-member-order.test.ts": 12389,- "test/sync-handler-drain-6706.test.ts": 30495,- "test/sync-import-provenance-disk.test.ts": 12515,- "test/sync-inexact-rename-6729.test.ts": 15146,- "test/sync-landing-gaps.test.ts": 8662,- "test/sync-legacy-holds.test.ts": 13990,- "test/sync-legacy-retry-actions-6696.test.ts": 7865,- "test/sync-legacy-slug-adoption-6727.test.ts": 14061,- "test/sync-origin-live-wins-6517.test.ts": 4882,- "test/sync-page-identity-hold-gbra130.test.ts": 28352,- "test/sync-page-write-failed-gbra130.test.ts": 11849,- "test/sync-pass-cost-grouping-gbra130.test.ts": 4192,- "test/sync-pass-dirty-after-freeze-gbra130.test.ts": 9543,- "test/sync-prescreen-both-delta-6712.test.ts": 27877,- "test/sync-prescreen-drift-6712.test.ts": 114084,- "test/sync-slug-root-mode-6694.test.ts": 11421,- "test/sync-staged-catchup.test.ts": 7510,- "test/sync-status-failure-detail-6513.test.ts": 6457,- "test/sync-unblock-repair-error-gbra130.test.ts": 7374,- "test/sync-unreadable-file-gbra130.test.ts": 19585,- "test/sync-waiver-budget.test.ts": 9346,- "test/sync-waiver-run-imports.test.ts": 11121,- "test/take-resolution-survives-publish.test.ts": 5214,- "test/takes-vector-lifecycle-5885.serial.test.ts": 11332,- "test/terminal-failures-6650.test.ts": 17798,- "test/trust-channel-writes.test.ts": 27306,- "test/trust-guarded-supersession.test.ts": 14873,- "test/trust-held-removals.test.ts": 20034,- "test/trust-owner-actions.test.ts": 9037,- "test/unbound-source-6536.test.ts": 8308,- "test/unindexed-files.test.ts": 10784,- "test/vector-manifest-probe-bound.test.ts": 22324,- "test/withdrawal-overlay-concurrency.test.ts": 8300,- "test/withdrawal-publication-file.test.ts": 7507,- "test/worktree-refresh-recovery-row-gbra130.test.ts": 6082,- "test/writer-status-movement-not-read-gbra130.test.ts": 7387,- "test/writer-status-owner-backends.test.ts": 4952+ "test/activation-unbound-rooted-6449.test.ts": 4525,+ "test/alias-source-cascade-5094.test.ts": 10600,+ "test/attribution-backfill-history.test.ts": 18139,+ "test/backstop-same-page-shadow-managed-6333.test.ts": 5446,+ "test/behavior-change-notice.test.ts": 4723,+ "test/belief-ledger-append-owner.test.ts": 7371,+ "test/belief-ledger-coverage.test.ts": 117368,+ "test/belief-ledger-group.test.ts": 16970,+ "test/belief-ledger-identity.test.ts": 48173,+ "test/belief-ledger-lifecycle.test.ts": 48116,+ "test/belief-ledger-page-at-time.test.ts": 52353,+ "test/belief-ledger-privacy.test.ts": 35109,+ "test/belief-ledger-purge-review.test.ts": 134661,+ "test/belief-ledger-purge.test.ts": 101286,+ "test/belief-ledger-restore.test.ts": 157535,+ "test/belief-ledger-touched.test.ts": 34747,+ "test/belief-ledger-trust.test.ts": 19634,+ "test/belief-ledger-w5-time-model.test.ts": 15862,+ "test/belief-ledger-weekly-diff.test.ts": 59286,+ "test/belief-ledger-weekly-probes.test.ts": 25077,+ "test/capacity-bounded-read-6803.test.ts": 5837,+ "test/capture-consent-admission.test.ts": 7186,+ "test/capture-dispatch-provenance-6524.test.ts": 4239,+ "test/chronicle-backfill-max-usd.test.ts": 3857,+ "test/claim-fifo-foreground-waiting.test.ts": 7266,+ "test/claim-lease-holder-only-6712.test.ts": 9760,+ "test/claude-cli-output-cap.test.ts": 5226,+ "test/cli-page-writes.test.ts": 138005,+ "test/colon-slug-windows-5032.test.ts": 8101,+ "test/company-brain-policy.test.ts": 19588,+ "test/company-brain-runtime.test.ts": 23895,+ "test/consolidate-same-instant-6023.test.ts": 17190,+ "test/conversation-facts-oversized-sidecar.test.ts": 4085,+ "test/cycle/synthesize-concepts-merge.test.ts": 11041,+ "test/db-lock-reconnect.test.ts": 4653,+ "test/decide/conflict-proposals-managed.test.ts": 5307,+ "test/declared-lineage-visibility.test.ts": 6830,+ "test/derived-link-reconciliation.test.ts": 6660,+ "test/doctor-frontmatter-holds.test.ts": 13370,+ "test/doctor-image-embedding-coverage.test.ts": 5909,+ "test/doctor-keyword-plan-6495.test.ts": 4180,+ "test/doctor-routing-skill-pack-source.test.ts": 4701,+ "test/doctor-sync-freshness-skill-pack-6076.test.ts": 6609,+ "test/embed-once-per-content-version.serial.test.ts": 10566,+ "test/embed-stale-images-managed-6529.test.ts": 8339,+ "test/embedding-completion-atomic.serial.test.ts": 7835,+ "test/engine-sql-facts-keyset.test.ts": 4005,+ "test/extract-all-stamp-intersection.serial.test.ts": 6588,+ "test/extract-atoms-input-truncated-6503.test.ts": 13228,+ "test/extract-endpoint-revision.serial.test.ts": 5562,+ "test/extract-entities-managed.test.ts": 18391,+ "test/extract-timeline-from-meetings-managed.test.ts": 17234,+ "test/extraction-watermark-atoms.test.ts": 4304,+ "test/fact-fence-adoption-exits.test.ts": 23607,+ "test/fact-purge-lookup-timeout-6511.test.ts": 3524,+ "test/facts-insert-guards-7105.test.ts": 8883,+ "test/facts-publication-large-fence-6898.test.ts": 22425,+ "test/fence-repair-receipts.test.ts": 8636,+ "test/forecast-journal.test.ts": 22619,+ "test/frontmatter-reserved-keys-6454.test.ts": 4771,+ "test/get-chunks-paging.test.ts": 6583,+ "test/graduation-copy.test.ts": 72481,+ "test/graduation-digest.test.ts": 3252,+ "test/graduation-drain.test.ts": 12303,+ "test/graduation-inventory.test.ts": 4445,+ "test/graduation-rollback.test.ts": 127218,+ "test/graduation-state.test.ts": 206517,+ "test/graduation-target.test.ts": 3460,+ "test/graduation-verify-sync-freshness.test.ts": 5275,+ "test/graduation-verify.test.ts": 24196,+ "test/grandfather-managed.test.ts": 54429,+ "test/harness-skills-epoch.test.ts": 3596,+ "test/held-read-signals.test.ts": 7590,+ "test/hold-action-chain-6712.test.ts": 15334,+ "test/import-file-result-callback-gbra130.test.ts": 4466,+ "test/import-frontmatter-key-order-5158.test.ts": 3028,+ "test/import-inline-chunk-keep.test.ts": 5064,+ "test/import-revision-concurrency.test.ts": 7998,+ "test/keyword-statement-timeout-knob-6495.test.ts": 12857,+ "test/keyword-timeout-negative-cache-6495.test.ts": 4858,+ "test/lane-apply-pipelining.test.ts": 4757,+ "test/large-pages/append-concurrency.test.ts": 33155,+ "test/large-pages/append-cost.test.ts": 38406,+ "test/large-pages/append-mention-links.test.ts": 14975,+ "test/large-pages/chunk-retirement-plan.test.ts": 4421,+ "test/large-pages/chunk-visibility.test.ts": 5447,+ "test/large-pages/contextual-reembed-segmented.test.ts": 7810,+ "test/large-pages/credential-reseal-segments.test.ts": 11089,+ "test/large-pages/doctor-skipped-segmented.test.ts": 18197,+ "test/large-pages/edit-segmented.test.ts": 24603,+ "test/large-pages/forget-reason-segmented.test.ts": 8182,+ "test/large-pages/forget-scope.test.ts": 14700,+ "test/large-pages/gbra117-segmented-classes-window.test.ts": 51121,+ "test/large-pages/held-budget-count-list.test.ts": 19049,+ "test/large-pages/held-budget-shrink.test.ts": 11519,+ "test/large-pages/managed-import-outside-root.test.ts": 21073,+ "test/large-pages/managed-import-projection-pending.test.ts": 55901,+ "test/large-pages/managed-links-timeline-heap.test.ts": 31890,+ "test/large-pages/managed-streamed-import.test.ts": 51995,+ "test/large-pages/managed-sync-segmented-rename.test.ts": 23564,+ "test/large-pages/managed-sync-streamed.test.ts": 113947,+ "test/large-pages/oversized-backfill-segmented.test.ts": 7833,+ "test/large-pages/page-purge-segments.test.ts": 28813,+ "test/large-pages/pinned-segmented-reads.test.ts": 35818,+ "test/large-pages/projection-claim-ownership.test.ts": 27764,+ "test/large-pages/projection-demotion-race.test.ts": 6225,+ "test/large-pages/projection-lock-hold.test.ts": 65221,+ "test/large-pages/projection-parity.test.ts": 35827,+ "test/large-pages/publication-seal-bounded.test.ts": 14515,+ "test/large-pages/purge-fact-inflight-staging.test.ts": 12565,+ "test/large-pages/purge-fact-segmented-preimage.test.ts": 16233,+ "test/large-pages/purge-inflight-create.test.ts": 9122,+ "test/large-pages/purge-replay-segments.test.ts": 8868,+ "test/large-pages/purge-segment-residue.test.ts": 12483,+ "test/large-pages/purge-segmented-versions-batch.test.ts": 10858,+ "test/large-pages/purge-segments.test.ts": 11267,+ "test/large-pages/recovery-budget-ceiling.slow.test.ts": 122674,+ "test/large-pages/recovery-budget-default.test.ts": 7748,+ "test/large-pages/remote-get-page-privacy.test.ts": 68266,+ "test/large-pages/remote-versions-storage-change.test.ts": 4844,+ "test/large-pages/remote-window-privacy.test.ts": 41980,+ "test/large-pages/restore-deferred-retire.test.ts": 24014,+ "test/large-pages/restore-publication-statement-bound.test.ts": 23371,+ "test/large-pages/restore-segmented-reprojects.test.ts": 55628,+ "test/large-pages/sealed-segmented-search.test.ts": 9340,+ "test/large-pages/second-write-deferred-retire.test.ts": 11949,+ "test/large-pages/segment-rewrite-cr-tier.test.ts": 6014,+ "test/large-pages/segment-vector-reuse.test.ts": 4329,+ "test/large-pages/segmented-append-reembed.test.ts": 9261,+ "test/large-pages/segmented-body-unreachable.test.ts": 5724,+ "test/large-pages/segmented-bom.test.ts": 13962,+ "test/large-pages/segmented-conversation-facts.test.ts": 53592,+ "test/large-pages/segmented-conversation-sidecar-token.test.ts": 24086,+ "test/large-pages/segmented-core-list.test.ts": 24009,+ "test/large-pages/segmented-create-searchable.test.ts": 17744,+ "test/large-pages/segmented-delete-crash.slow.test.ts": 50045,+ "test/large-pages/segmented-delete-restore-file.slow.test.ts": 114875,+ "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 98029,+ "test/large-pages/segmented-derived-parity.test.ts": 13352,+ "test/large-pages/segmented-derived-passes.test.ts": 20650,+ "test/large-pages/segmented-derived-work.test.ts": 77497,+ "test/large-pages/segmented-embedding-paths.test.ts": 34242,+ "test/large-pages/segmented-embedding.test.ts": 4306,+ "test/large-pages/segmented-evidence-read-cost.test.ts": 40119,+ "test/large-pages/segmented-evidence.test.ts": 29160,+ "test/large-pages/segmented-extraction-stale.test.ts": 15926,+ "test/large-pages/segmented-facts-forced-lines.test.ts": 12048,+ "test/large-pages/segmented-facts-reconcile.test.ts": 104820,+ "test/large-pages/segmented-file-drift-ledger.test.ts": 36250,+ "test/large-pages/segmented-file-drift.test.ts": 78141,+ "test/large-pages/segmented-forced-cuts.test.ts": 61743,+ "test/large-pages/segmented-frontmatter-reimport.test.ts": 25775,+ "test/large-pages/segmented-get-cli.test.ts": 21471,+ "test/large-pages/segmented-get-page-parity.test.ts": 13891,+ "test/large-pages/segmented-leads.test.ts": 22104,+ "test/large-pages/segmented-loser-chunks.test.ts": 6977,+ "test/large-pages/segmented-maintenance-commands.test.ts": 14770,+ "test/large-pages/segmented-prior-view.test.ts": 11163,+ "test/large-pages/segmented-read-refusals.test.ts": 9419,+ "test/large-pages/segmented-real-size.slow.test.ts": 37797,+ "test/large-pages/segmented-remember-refusal.test.ts": 26482,+ "test/large-pages/segmented-repair-scans.test.ts": 16056,+ "test/large-pages/segmented-retained-blocks.test.ts": 71751,+ "test/large-pages/segmented-search-dedup.test.ts": 14049,+ "test/large-pages/segmented-semantic-writes-near-ceiling.slow.test.ts": 78542,+ "test/large-pages/segmented-semantic-writes.test.ts": 46997,+ "test/large-pages/segmented-shrink-below-ceiling.test.ts": 76476,+ "test/large-pages/segmented-storage-visibility.test.ts": 20431,+ "test/large-pages/segmented-sweep-budget.test.ts": 23980,+ "test/large-pages/segmented-sweep-deferral.test.ts": 17068,+ "test/large-pages/segmented-switch.test.ts": 20238,+ "test/large-pages/segmented-think-compile-leads.serial.test.ts": 17575,+ "test/large-pages/segmented-timeline-heap.test.ts": 74593,+ "test/large-pages/segmented-timeline-retract-versions.test.ts": 11512,+ "test/large-pages/segmented-versions.test.ts": 6435,+ "test/large-pages/segmented-withdrawal-mirror.test.ts": 204428,+ "test/large-pages/segmented-withdrawn-fence-delete.test.ts": 83339,+ "test/large-pages/streamed-import-drift.test.ts": 30022,+ "test/large-pages/streamed-sync-origin-b14.test.ts": 66144,+ "test/large-pages/stuck-recovery-large.slow.test.ts": 125951,+ "test/large-pages/timeline-top-insert-reembed.test.ts": 7129,+ "test/large-pages/upload-binding.test.ts": 9757,+ "test/large-pages/upload-over-ceiling.test.ts": 118659,+ "test/large-pages/upload-review.test.ts": 8016,+ "test/large-pages/v252-master-reader-compat.test.ts": 4771,+ "test/link-cross-source.test.ts": 18198,+ "test/link-preparation-shared-index.test.ts": 7117,+ "test/links-attendance-blocked.test.ts": 6436,+ "test/managed-cycle-pull-upstream.test.ts": 7333,+ "test/managed-facts-withdrawal-recovery-6506.test.ts": 7090,+ "test/managed-facts-withdrawn-skip-6506.test.ts": 6346,+ "test/managed-lint.test.ts": 13267,+ "test/managed-maintenance-links.test.ts": 6242,+ "test/managed-root-aliases-7203.test.ts": 32408,+ "test/managed-sweep-corpus-windows.test.ts": 8122,+ "test/managed-sweep-refused-window-retry.test.ts": 10726,+ "test/managed-sweep-timeline.test.ts": 5785,+ "test/managed-sync-blocked-job-6858.test.ts": 6226,+ "test/managed-sync-bulk.test.ts": 228759,+ "test/managed-sync-checkpoint-controls-company.test.ts": 6309,+ "test/managed-sync-chunker-version.test.ts": 6052,+ "test/managed-sync-concurrent-write-hold.test.ts": 17216,+ "test/managed-sync-connection-loss.test.ts": 11887,+ "test/managed-sync-drain.test.ts": 10725,+ "test/managed-sync-foreground-priority.test.ts": 70832,+ "test/managed-sync-gate-markers-6858.test.ts": 10678,+ "test/managed-sync-group-completion.test.ts": 10920,+ "test/managed-sync-group-uncommitted-head.test.ts": 23661,+ "test/managed-sync-images-5493.test.ts": 18803,+ "test/managed-sync-keep-disk-6858.test.ts": 31376,+ "test/managed-sync-lanes.test.ts": 30714,+ "test/managed-sync-orphans-incarnation-6518.test.ts": 4609,+ "test/managed-sync-page-fault-holds.test.ts": 27437,+ "test/managed-sync-pinned-reads.test.ts": 31479,+ "test/managed-sync-preparation-stalled-holds.test.ts": 86744,+ "test/managed-sync-row-parity.test.ts": 15329,+ "test/managed-sync-stale-group-head.test.ts": 7399,+ "test/migration-persistence-request-id-index.test.ts": 7096,+ "test/migration-persistence-request-slug-index.test.ts": 6856,+ "test/on-commit-embedding.serial.test.ts": 9217,+ "test/origin-guard-6948.test.ts": 11052,+ "test/origin-twins-6948.test.ts": 4578,+ "test/overwritten-edits-6712.test.ts": 44436,+ "test/owner-refusal.test.ts": 3546,+ "test/pack-relation-direction-engine.test.ts": 5760,+ "test/page-embedding-budget.test.ts": 5314,+ "test/page-embedding-content-validity.test.ts": 5544,+ "test/page-embedding-install-batch.test.ts": 4336,+ "test/page-embedding-lease.serial.test.ts": 10828,+ "test/page-prepare-shared-origin-6517.test.ts": 18354,+ "test/page-purge-batch-sweep-6884.test.ts": 7759,+ "test/page-purge-journal-timeout-6511.test.ts": 21525,+ "test/page-spend-reservation.test.ts": 6345,+ "test/page-state-engine.test.ts": 5745,+ "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 10314,+ "test/pathological/a-42-atom-dot-led-slug.test.ts": 9528,+ "test/pathological/a-51-conversation-batch-booking.test.ts": 9552,+ "test/pathological/a-60-belief-commit-mark.test.ts": 5309,+ "test/pathological/a-65-captured-facts-unreadable-corpus.test.ts": 3612,+ "test/pathological/a1-links-extract.test.ts": 36627,+ "test/pathological/a10-global-maintenance-stamp.test.ts": 4864,+ "test/pathological/a11-effect-retry-budget.test.ts": 36005,+ "test/pathological/a12-withdrawal-mirror-gate.test.ts": 75439,+ "test/pathological/a13-embedding-target-park.test.ts": 25821,+ "test/pathological/a15-deactivate-exits.test.ts": 22568,+ "test/pathological/a18-ledger-path-text.test.ts": 41386,+ "test/pathological/a2-transcripts-ingest.test.ts": 79963,+ "test/pathological/a21-facts-expire-deleted.test.ts": 58939,+ "test/pathological/a22-consolidate-buckets.test.ts": 39357,+ "test/pathological/a23-patterns-grounding.test.ts": 64115,+ "test/pathological/a24-phantom-redirect-cursor.test.ts": 33191,+ "test/pathological/a25-propose-takes-poison-pages.test.ts": 56122,+ "test/pathological/a26-safe-chunks-reseal.test.ts": 7961,+ "test/pathological/a27-credential-reseal.test.ts": 5207,+ "test/pathological/a3-google-items.test.ts": 71735,+ "test/pathological/a30-watchdog-attribution.test.ts": 4959,+ "test/pathological/a31-migrate-loop-rows.serial.test.ts": 27326,+ "test/pathological/a4-synthesize-postprocess.test.ts": 16944,+ "test/pathological/a41-maintain-sources.test.ts": 27811,+ "test/pathological/a44-slug-conflicts-rotation.test.ts": 42376,+ "test/pathological/a45-repair-all-kinds.test.ts": 7102,+ "test/pathological/a46-content-lane-kinds.test.ts": 5710,+ "test/pathological/a47-backfill-poison-row.test.ts": 7143,+ "test/pathological/a49-unmanaged-purge-tombstones.test.ts": 45815,+ "test/pathological/a50-unmanaged-expired-sources.test.ts": 3626,+ "test/pathological/a9-repair-core.test.ts": 4179,+ "test/pathological/b-10-ontology-rekey-collision.test.ts": 3413,+ "test/pathological/b-7-facts-pageless-entity.test.ts": 8297,+ "test/pathological/b-9-enrich-retired-alias.test.ts": 7178,+ "test/pathological/b12-slug-segment-bytes.test.ts": 14141,+ "test/pathological/b5-enrich-entity-identity.test.ts": 5246,+ "test/pathological/b5-export-unsafe-slugs.test.ts": 32139,+ "test/pathological/b6-triage-verdict-surrogate.test.ts": 3833,+ "test/pathological/c-23-override-and-doctor-fixes.test.ts": 5920,+ "test/pathological/c-9-facts-absorb-dead.test.ts": 7084,+ "test/pathological/c1-effect-stuck-recovery.test.ts": 33179,+ "test/pathological/c2-url-clone-fences.test.ts": 90429,+ "test/pathological/c22-stuck-recovery-large-file.test.ts": 19765,+ "test/pathological/c4-bundle-stuck-recovery.test.ts": 111149,+ "test/pathological/c5-writer-transfer-cancel.test.ts": 20158,+ "test/pathological/c7-content-receipt-root.test.ts": 36045,+ "test/pathological/d1-unfenced-facts-overwrite.test.ts": 39209,+ "test/pathological/d10-derived-atom-file-overwrite.test.ts": 26572,+ "test/pathological/d11-derived-retired-atom-unlink.test.ts": 15468,+ "test/pathological/d12-concept-stale-fences.test.ts": 19750,+ "test/pathological/d13-concept-occupied-path.test.ts": 27114,+ "test/pathological/d14-brainstorm-resume-overwrite.test.ts": 24344,+ "test/pathological/d15-sync-reexport-overwrite.test.ts": 16345,+ "test/pathological/d16-google-file-replacement.test.ts": 34396,+ "test/pathological/d17-github-file-replacement.test.ts": 36064,+ "test/pathological/d18-think-take-db-only.test.ts": 44643,+ "test/pathological/d19-takes-bootstrap-db-only.test.ts": 17893,+ "test/pathological/d2-fence-write-overwrite.test.ts": 32412,+ "test/pathological/d21-migration-verifier-record.test.ts": 40027,+ "test/pathological/d22-legacy-hash-body-history.test.ts": 58980,+ "test/pathological/d23-extract-atoms-db-only.test.ts": 23483,+ "test/pathological/d3-forget-overwrite.test.ts": 52431,+ "test/pathological/d4-proposal-overwrite.test.ts": 53327,+ "test/pathological/d5-phantom-canonical-overwrite.test.ts": 24509,+ "test/pathological/d6-phantom-file-unlink.test.ts": 25283,+ "test/pathological/d7-synthesize-reverse-write.test.ts": 33108,+ "test/pathological/d8-patterns-reverse-write.test.ts": 34324,+ "test/pathological/d9-dream-summary-overwrite.test.ts": 20736,+ "test/pathological/facts-mirror-failures.test.ts": 62613,+ "test/pathological/h1-zero-yield-atom-reextract.test.ts": 15456,+ "test/pathological/h2-git-effect-moved-remote.test.ts": 13136,+ "test/pathological/h3-chronicle-partial-generation.test.ts": 52370,+ "test/pathological/h4-conversation-facts-zero-yield.test.ts": 67414,+ "test/pathological/h5-atoms-restore.test.ts": 22070,+ "test/pathological/lp-a-segmented-mirror.test.ts": 40449,+ "test/pathological/lp-b-transient-retry-budget.test.ts": 65971,+ "test/pathological/lp-c-publication-ceiling-retry.test.ts": 61409,+ "test/pathological/lp-d-recovery-version.test.ts": 10949,+ "test/pathological/lp-d-segmented-mirror-gate.test.ts": 17473,+ "test/pathological/lp-f-split-fence-withdrawal-capacity.test.ts": 6114,+ "test/pathological/lp-g-file-digest-fence-bound.test.ts": 32355,+ "test/pathological/lp-h-purge-orphan-segment-text.test.ts": 36724,+ "test/pathological/w1-write-through-staging-window.serial.test.ts": 13301,+ "test/persistence-background-pause.test.ts": 5103,+ "test/persistence-bounded-read-session.test.ts": 5482,+ "test/persistence-capacity-forecast.test.ts": 13121,+ "test/persistence-capacity-notices.test.ts": 11105,+ "test/persistence-commit-durability.test.ts": 7182,+ "test/persistence-deactivate.test.ts": 24541,+ "test/persistence-diagnostics.test.ts": 11249,+ "test/persistence-edit-embedding-reuse.test.ts": 5361,+ "test/persistence-embedding-noop-settle.test.ts": 8785,+ "test/persistence-file-import.test.ts": 27866,+ "test/persistence-git-subdir-origin.test.ts": 14385,+ "test/persistence-graph-publication.test.ts": 4937,+ "test/persistence-history-fixture.test.ts": 30097,+ "test/persistence-image-import.serial.test.ts": 10477,+ "test/persistence-import-batch.test.ts": 29851,+ "test/persistence-managed-lifecycle.test.ts": 21408,+ "test/persistence-managed-sync.test.ts": 199714,+ "test/persistence-manifest-git-scope.test.ts": 4888,+ "test/persistence-memory-mutations.test.ts": 10940,+ "test/persistence-page-authority.test.ts": 10407,+ "test/persistence-physical-root-device.test.ts": 8134,+ "test/persistence-preactivation-claim.test.ts": 12379,+ "test/persistence-publication-deadline.test.ts": 18595,+ "test/persistence-receipt-true-up.test.ts": 10274,+ "test/persistence-reconcile-git-dirty-6138.test.ts": 4889,+ "test/persistence-skill-bundles.serial.test.ts": 4524,+ "test/persistence-skill-crash.slow.test.ts": 31714,+ "test/persistence-skip-cost.test.ts": 7530,+ "test/persistence-sync-cursor-options.test.ts": 9052,+ "test/persistence-sync-cursor-strategy-6696.test.ts": 12215,+ "test/persistence-sync-fence-holds.test.ts": 21804,+ "test/persistence-sync-holds.test.ts": 17738,+ "test/persistence-sync-lease.test.ts": 35669,+ "test/persistence-sync-metafile-pages.test.ts": 6709,+ "test/persistence-write-interrupted.test.ts": 50460,+ "test/persistence-write-stall.test.ts": 9864,+ "test/persistence-writer-fences.test.ts": 4503,+ "test/physical-root-birth-tolerance-6501.test.ts": 6185,+ "test/purge-fact.test.ts": 14026,+ "test/purge-global-marker.test.ts": 12254,+ "test/purge-missing-cache-6911.test.ts": 7947,+ "test/purge-read-surfaces.test.ts": 12587,+ "test/purge-sync-tombstone-hold-7130.test.ts": 32010,+ "test/recall-page-fill.test.ts": 15026,+ "test/receipt-compaction-newest-sync-gbra130.test.ts": 4159,+ "test/remediation-manual-only.test.ts": 11868,+ "test/repair-apply-pending-6543.test.ts": 48045,+ "test/repair-embedding-effects.test.ts": 7141,+ "test/repair-failed-writes-conflict-6429.test.ts": 7077,+ "test/repair-failed-writes-drift-w411.test.ts": 5000,+ "test/repair-fences.test.ts": 15481,+ "test/repair-file-drift-deleted-6712.test.ts": 9480,+ "test/repair-file-drift-held-6712.test.ts": 7580,+ "test/repair-frontmatter-keys-sweep-6454.test.ts": 5807,+ "test/repair-frontmatter.test.ts": 19514,+ "test/repair-receipt-compaction.test.ts": 5576,+ "test/repair-rename-identity-6729.test.ts": 12333,+ "test/schema-missing-tables.test.ts": 5956,+ "test/scripts/test-stress-postgres.test.ts": 12439,+ "test/search-read-keyword-bound.test.ts": 5120,+ "test/search/page-rank-cut.test.ts": 16049,+ "test/search/rerank-gate-hybrid.test.ts": 4536,+ "test/search/rerank-gate-telemetry.test.ts": 5611,+ "test/serve-head-watcher-managed.serial.test.ts": 6281,+ "test/shared-content-freshness.test.ts": 7402,+ "test/shared-skills-catalog.test.ts": 61707,+ "test/shared-skills-retention-capacity.test.ts": 8765,+ "test/shared-skills-source-opt-out.test.ts": 6068,+ "test/shared-skills-writer-boundary.test.ts": 29218,+ "test/source-lifecycle-dry-run-physical-root-6849.test.ts": 5349,+ "test/source-retire-missing-checkout.test.ts": 7678,+ "test/source-row-diagnostics.test.ts": 4799,+ "test/sources-resolve-path.test.ts": 9676,+ "test/stats-health-source-scope.test.ts": 5829,+ "test/sync-absent-from-worktree-s27.test.ts": 19460,+ "test/sync-admission-6712.test.ts": 4896,+ "test/sync-capacity-preflight.test.ts": 5583,+ "test/sync-checkpoint-moved-6834.test.ts": 5966,+ "test/sync-discovery-legacy-origin-7130.test.ts": 5671,+ "test/sync-drain-claims.test.ts": 14883,+ "test/sync-drain-effect-recovery-blocked.test.ts": 9277,+ "test/sync-drain-head-blocked-6543.test.ts": 6474,+ "test/sync-drain-inpass-stall.test.ts": 5882,+ "test/sync-drain-write-capacity.test.ts": 9040,+ "test/sync-exits-l4-6712.test.ts": 6701,+ "test/sync-freshness-6858.test.ts": 8643,+ "test/sync-frontmatter-recovery.test.ts": 5664,+ "test/sync-frontmatter-slug-conflict.test.ts": 5365,+ "test/sync-full-cursor-slices-6349.test.ts": 7982,+ "test/sync-full-untracked-import-5459.test.ts": 11898,+ "test/sync-group-member-order.test.ts": 20111,+ "test/sync-handler-drain-6706.test.ts": 33630,+ "test/sync-import-provenance-disk.test.ts": 10173,+ "test/sync-inexact-rename-6729.test.ts": 28436,+ "test/sync-landing-gaps.test.ts": 6620,+ "test/sync-legacy-holds.test.ts": 9154,+ "test/sync-legacy-retry-actions-6696.test.ts": 9253,+ "test/sync-legacy-slug-adoption-6727.test.ts": 14292,+ "test/sync-legacy-sweep-resume-7189.test.ts": 62269,+ "test/sync-origin-live-wins-6517.test.ts": 5794,+ "test/sync-page-identity-hold-gbra130.test.ts": 18933,+ "test/sync-page-write-failed-gbra130.test.ts": 14354,+ "test/sync-pass-cost-grouping-gbra130.test.ts": 4296,+ "test/sync-pass-dirty-after-freeze-gbra130.test.ts": 7629,+ "test/sync-prescreen-both-delta-6712.test.ts": 18168,+ "test/sync-prescreen-drift-6712.test.ts": 53541,+ "test/sync-slug-root-mode-6694.test.ts": 9225,+ "test/sync-staged-catchup.test.ts": 5323,+ "test/sync-status-failure-detail-6513.test.ts": 5377,+ "test/sync-unblock-repair-error-gbra130.test.ts": 6768,+ "test/sync-uncommitted-origin-7130.test.ts": 24886,+ "test/sync-unreadable-file-gbra130.test.ts": 14293,+ "test/sync-waiver-budget.test.ts": 5164,+ "test/sync-waiver-run-imports.test.ts": 6905,+ "test/take-resolution-survives-publish.test.ts": 5399,+ "test/takes-vector-lifecycle-5885.serial.test.ts": 9376,+ "test/terminal-failures-6650.test.ts": 15271,+ "test/trust-channel-writes.test.ts": 23256,+ "test/trust-guarded-supersession.test.ts": 9549,+ "test/trust-held-removals.test.ts": 27839,+ "test/trust-owner-actions.test.ts": 8299,+ "test/unbound-source-6536.test.ts": 4693,+ "test/unindexed-files.test.ts": 14440,- "test/v265-validate-timeouts.test.ts": 4893,++ "test/v273-validate-timeouts.test.ts": 4893,+ "test/vector-manifest-probe-bound.test.ts": 25173,+ "test/visibility-fail-closed-derived-writes.test.ts": 10699,+ "test/withdrawal-overlay-concurrency.test.ts": 7148,+ "test/withdrawal-publication-file.test.ts": 5332,+ "test/worktree-refresh-recovery-row-gbra130.test.ts": 9155,+ "test/write-through-leak-guard-alias-7203.test.ts": 63901,+ "test/writer-admin-state-embed-lease.test.ts": 2960,+ "test/writer-status-movement-not-read-gbra130.test.ts": 4107,+ "test/writer-status-owner-backends.test.ts": 6379}diff --cc scripts/serial-files.tsvindex e7d77f8cd7,27a522b85f..b2a3f9a703--- a/scripts/serial-files.tsv+++ b/scripts/serial-files.tsv@@@ -439,5 -442,5 +442,7 @@@ test/search-tune-apply-truthful.serial.test/search-cost.serial.test.ts global-state global-state: process-wide test seams __setEmbedTransportForTests, __setRerankTransportForTests; configureGateway changes the process-wide AI gatewaytest/chat-usage-phases.serial.test.ts global-state global-state: process-wide test seams __setChatTransportForTests, __setEmbedTransportForTests, __setGenerateObjectTransportForTests; configureGateway changes the process-wide AI gateway; setChatUsageSink replaces the process-wide ledger sink; R1: mutates process.env (ANTHROPIC_API_KEY)test/doctor-only-sync-failures-7143.serial.test.ts global-state global-state: spawns the real gbrain CLI against a tmpdir PGLite brain and home (doctor --only sync_failures connects the brain)+ test/decide/triage-decide-recheck-7307.serial.test.ts global-state global-state: process-wide test seams __setDecideTransportForTests, __resetDecideStoreForTests; configureGateway changes the process-wide AI gateway+ test/sync-pass-phase-lines-7243.serial.test.ts global-state global-state: process-wide test seams __resetDelegatedSyncForTests (runs a resident pass through runnerStart)+test/embed-once-per-content-version.serial.test.ts global-state global-state: process-wide test seams __setEmbedTransportForTests (the forced probes hold the first provider call at the transport) and pageEmbeddingLeaseProbe (the module-wide lease contention hook); withEnv scopes GBRAIN_HOME+test/page-embedding-lease.serial.test.ts global-state global-state: process-wide test seams __setEmbedTransportForTests (each case swaps the embed transport, one to a refusing provider) and pageEmbeddingLeaseProbe (the module-wide lease contention hook); withEnv scopes GBRAIN_HOMEdiff --cc scripts/stress/iteration-weights.jsonindex c5d38cf6c0,da85c274d8..15146996b3--- a/scripts/stress/iteration-weights.json+++ b/scripts/stress/iteration-weights.json@@@ -3,60 -5,71 +5,104 @@@"test/ambient-recall-hooks.serial.test.ts": 1800,"test/append-file-read.test.ts": 100,"test/append-page-operation-lists.test.ts": 200,+ "test/attendance-retrieval.test.ts": 11800,+ "test/attribution-backfill-history.test.ts": 27300,+ "test/backstop-same-page-shadow-managed-6333.test.ts": 7400,"test/behavior-change-notice-6712-block.test.ts": 100,- "test/belief-ledger-append-owner.test.ts": 16350,- "test/belief-ledger-coverage.test.ts": 85800,+ "test/behavior-change-notice.test.ts": 6700,+ "test/belief-ledger-append-owner.test.ts": 18300,+ "test/belief-ledger-coverage.test.ts": 143100,+ "test/belief-ledger-group.test.ts": 22300,+ "test/belief-ledger-identity.test.ts": 32900,+ "test/belief-ledger-lifecycle.test.ts": 37700,+ "test/belief-ledger-page-at-time.test.ts": 46300,+ "test/belief-ledger-privacy.test.ts": 34000,+ "test/belief-ledger-purge-review.test.ts": 105200,+ "test/belief-ledger-purge.test.ts": 96700,+ "test/belief-ledger-restore.test.ts": 139500,+ "test/belief-ledger-touched.test.ts": 32600,+ "test/belief-ledger-trust.test.ts": 17100,+ "test/belief-ledger-w5-time-model.test.ts": 10900,+ "test/belief-ledger-weekly-diff.test.ts": 83800,+ "test/belief-ledger-weekly-probes.test.ts": 32000,"test/brainstorm/save.test.ts": 1800,- "test/cli-page-writes.test.ts": 185950,+ "test/capacity-bounded-read-6803.test.ts": 5700,+ "test/capture-consent-admission.test.ts": 6700,+ "test/capture-dispatch-provenance-6524.test.ts": 6000,+ "test/chronicle-backfill-max-usd.test.ts": 4000,+ "test/chunkers/recursive.test.ts": 700,+ "test/claim-fifo-foreground-waiting.test.ts": 4900,+ "test/claim-lease-holder-only-6712.test.ts": 4500,+ "test/claude-cli-output-cap.test.ts": 10800,+ "test/cli-cold-start-registries.test.ts": 12500,+ "test/cli-page-writes.test.ts": 159200,"test/code-file-path-6712.test.ts": 100,+ "test/colon-slug-windows-5032.test.ts": 7600,+ "test/company-brain-policy.test.ts": 19100,+ "test/company-brain-runtime.test.ts": 23800,"test/config-reader-keys-registered.test.ts": 2200,+ "test/consolidate-same-instant-6023.test.ts": 8900,+ "test/contextual-retrieval-service-pure.test.ts": 300,+ "test/conversation-facts-oversized-sidecar.test.ts": 3700,+ "test/conversation-stream-work.test.ts": 100,+ "test/coordinated-write-commit-gbra133.test.ts": 1350,+ "test/cycle/synthesize-concepts-merge.test.ts": 4300,+ "test/db-lock-reconnect.test.ts": 4800,+ "test/decide/conflict-proposals-managed.test.ts": 12300,+ "test/declared-lineage-visibility.test.ts": 3000,+ "test/derived-link-reconciliation.test.ts": 5700,"test/destructive-guard.test.ts": 7150,+ "test/direct-pool-profile.test.ts": 9300,"test/doctor-content-golden.test.ts": 16600,"test/doctor-day-zero.test.ts": 9250,"test/doctor-early-stop-golden.serial.test.ts": 700,- "test/doctor-frontmatter-holds.test.ts": 6200,+ "test/doctor-frontmatter-holds.test.ts": 12200,"test/doctor-harness-smoke.test.ts": 5650,"test/doctor-hot-checks-golden.test.ts": 31400,+ "test/doctor-image-embedding-coverage.test.ts": 2500,"test/doctor-json-golden-latest.test.ts": 100,"test/doctor-json-golden.test.ts": 16150,+ "test/doctor-keyword-plan-6495.test.ts": 3700,+ "test/doctor-routing-skill-pack-source.test.ts": 6200,"test/doctor-slow-pass-6712.test.ts": 1900,+ "test/doctor-sync-freshness-skill-pack-6076.test.ts": 4200,"test/drift-watch.test.ts": 2700,"test/e2e/agent-journey-postgres.test.ts": 16400,+ "test/e2e/attendance-retrieval-postgres.test.ts": 31200,+ "test/e2e/conversation-facts-incremental-core-postgres.test.ts": 38700,+ "test/e2e/conversation-facts-incremental-deletion-postgres.test.ts": 12750,+ "test/e2e/conversation-facts-incremental-grammar-choice-postgres.test.ts": 12950,+ "test/e2e/conversation-facts-incremental-grammar-flag-postgres.test.ts": 11550,+ "test/e2e/conversation-facts-incremental-grammar-postgres.test.ts": 24050,+ "test/e2e/conversation-facts-incremental-held-postgres.test.ts": 19400,+ "test/e2e/conversation-facts-incremental-page-change-postgres.test.ts": 16200,+ "test/e2e/conversation-facts-incremental-recovery-postgres.test.ts": 26350,+ "test/e2e/conversation-facts-property-seeds-01-02-postgres.test.ts": 38150,+ "test/e2e/conversation-facts-property-seeds-03-04-postgres.test.ts": 72600,+ "test/e2e/conversation-facts-property-seeds-05-06-postgres.test.ts": 60100,+ "test/e2e/conversation-facts-property-seeds-07-08-postgres.test.ts": 38200,+ "test/e2e/conversation-facts-property-seeds-09-10-postgres.test.ts": 33250,+ "test/e2e/conversation-facts-property-seeds-11-12-postgres.test.ts": 32700,+ "test/e2e/conversation-facts-property-seeds-13-14-postgres.test.ts": 36450,+ "test/e2e/conversation-facts-property-seeds-15-16-postgres.test.ts": 31850,+ "test/e2e/conversation-facts-property-seeds-17-18-postgres.test.ts": 30550,+ "test/e2e/conversation-facts-property-seeds-19-20-postgres.test.ts": 35750,+ "test/e2e/conversation-facts-property-seeds-21-22-postgres.test.ts": 32400,+ "test/e2e/conversation-facts-property-seeds-23-24-postgres.test.ts": 27600,+ "test/e2e/conversation-facts-property-seeds-25-26-postgres.test.ts": 35900,+ "test/e2e/conversation-facts-property-seeds-27-28-postgres.test.ts": 28900,+ "test/e2e/conversation-facts-property-seeds-29-30-postgres.test.ts": 30800,+ "test/e2e/coordinated-write-commit-gbra133-postgres.test.ts": 4250,+ "test/e2e/derivation-equivalence-postgres.test.ts": 33650,+ "test/e2e/derivation-purge-batching-postgres.test.ts": 53300,+ "test/e2e/derivation-purge-normalized-postgres.test.ts": 28600,+ "test/e2e/derivation-purge-retired-postgres.test.ts": 32850,+ "test/e2e/derivation-purge-scope-postgres.test.ts": 40050,+ "test/e2e/derivation-purge-stalls-postgres.test.ts": 60050,"test/e2e/doctor-hot-checks-golden.test.ts": 13900,"test/e2e/doctor-json-golden.test.ts": 6850,+ "test/e2e/engine-sql-transaction-parity.test.ts": 4750,+ "test/e2e/extract-atoms-segmented-skip-postgres.test.ts": 3200,"test/e2e/file-drift-bulk-reconcile-postgres.test.ts": 5600,"test/e2e/fix-wave-4-integration.test.ts": 15450,"test/e2e/fix-wave-4-lane-a.test.ts": 39800,@@@ -68,12 -81,16 +114,19 @@@"test/e2e/managed-sync-shared-origin-6517.test.ts": 4000,"test/e2e/managed-synthesis-postprocess.test.ts": 16050,"test/e2e/persistence-request-indexes-postgres.test.ts": 59150,+ "test/e2e/pg-round-trips-6930-postgres.test.ts": 6400,"test/e2e/pool-size-one-migrations.test.ts": 6250,+ "test/e2e/read-waves-gbra133-postgres.test.ts": 2750,+ "test/e2e/rechunk-segmented-postgres.test.ts": 11950,"test/e2e/repair-fences-during-catchup-postgres.test.ts": 6650,"test/e2e/repair-legacy-twins-6885-postgres.test.ts": 5250,+ "test/e2e/s-7086-mirror-dry-run-postgres.test.ts": 4100,+ "test/e2e/s-classic-byte-paths-postgres.test.ts": 21550,+ "test/e2e/s-notifier-sigterm-lease-postgres.test.ts": 10850,+ "test/e2e/s-sync-offpath-2b-postgres.test.ts": 65550,+ "test/e2e/s-truthful-sync-status-postgres.test.ts": 11000,+ "test/e2e/segment-derivations-postgres.test.ts": 1800,+ "test/e2e/segmented-rls-scope.test.ts": 5050,"test/e2e/sync-alias-limit-hold-6712-postgres.test.ts": 7700,"test/e2e/sync-convergence-seeded-6712-postgres.test.ts": 15500,"test/e2e/sync-delegation-under-serve.serial.test.ts": 74850,@@@ -84,33 -103,35 +139,49 @@@"test/e2e/sync-pass-carried-6712-postgres.test.ts": 19300,"test/e2e/sync-pass-closure-memo-6712-postgres.test.ts": 3700,"test/e2e/sync-pass-confirm-6712-postgres.test.ts": 10850,- "test/e2e/sync-pass-confirm-parallel-6712-postgres.test.ts": 4500,+ "test/e2e/sync-pass-confirm-parallel-6712-postgres.test.ts": 5150,"test/e2e/sync-pass-fold-6712-postgres.test.ts": 15500,- "test/e2e/sync-pass-fold-xmin-6712-postgres.test.ts": 6000,+ "test/e2e/sync-pass-fold-xmin-6712-postgres.test.ts": 11700,"test/e2e/sync-pass-narrow-6712-postgres.test.ts": 48400,"test/e2e/sync-pass-origin-twins-6948-postgres.test.ts": 3300,- "test/e2e/sync-pass-shared-budget-6712-postgres.test.ts": 3600,+ "test/e2e/sync-pass-shared-budget-6712-postgres.test.ts": 6000,"test/e2e/sync-pass-writeback-fold-6712-postgres.test.ts": 18750,"test/e2e/sync-pass-xid-arms-gbra108-postgres.test.ts": 1600,+ "test/e2e/synopsis-segment-hash-postgres.test.ts": 28300,+ "test/e2e/takes-propose-accept-managed.test.ts": 15000,+ "test/e2e/transcripts-part-churn-postgres.test.ts": 11550,"test/e2e/upload-transport.test.ts": 56150,"test/e2e/worker-shutdown-error-matrix-postgres.test.ts": 4700,"test/e2e/worktree-refresh-postgres.test.ts": 20900,+ "test/embed-chunk-statistics.test.ts": 400,+ "test/embed-default-concurrency.test.ts": 800,+ "test/embed-once-per-content-version.serial.test.ts": 11700,+ "test/embed-partial-failure-3037.serial.test.ts": 5150,+ "test/embed-pool-abort.test.ts": 300,+ "test/embed-quarantine.serial.test.ts": 200,+ "test/embed-stale-images-managed-6529.test.ts": 6900,+ "test/embed.serial.test.ts": 10950,+ "test/embedding-completion-atomic.serial.test.ts": 4800,+ "test/embedding-readiness.test.ts": 100,+ "test/engine-sql-facts-keyset.test.ts": 3400,+ "test/engine-sql-segment-derivations.test.ts": 1150,+ "test/engine-sql-sql-text.test.ts": 300,+ "test/engine-sql-transaction.test.ts": 1800,+ "test/engine-surface-coverage.test.ts": 2100,+ "test/entity-card-perf.slow.test.ts": 246300,"test/entity-resolve-perf.slow.test.ts": 6250,- "test/facts-insert-guards-7105.test.ts": 9800,+ "test/extract-all-stamp-intersection.serial.test.ts": 9500,+ "test/extract-atoms-input-truncated-6503.test.ts": 4900,+ "test/extract-endpoint-revision.serial.test.ts": 5300,+ "test/extract-entities-managed.test.ts": 17300,+ "test/extract-timeline-from-meetings-managed.test.ts": 11600,+ "test/extraction-watermark-atoms.test.ts": 5200,+ "test/fact-embedding-oversized-7211.test.ts": 5600,+ "test/fact-fence-adoption-exits.test.ts": 17600,+ "test/fact-purge-lookup-timeout-6511.test.ts": 5200,+ "test/facts-insert-guards-7105.test.ts": 12000,+ "test/facts-publication-large-fence-6898.test.ts": 33700,+ "test/fence-repair-receipts.test.ts": 5900,"test/file-drift-bulk-reconcile.test.ts": 5550,"test/fix-wave-4-journeys.test.ts": 6050,"test/fix-wave-5-integration.test.ts": 9100,@@@ -124,177 -166,387 +216,429 @@@"test/keep-db-consumer-retired.test.ts": 10550,"test/keep-db-pass-admission.test.ts": 4150,"test/keep-db-pass-cap-6712.test.ts": 18800,- "test/large-pages/append-concurrency.test.ts": 30800,- "test/large-pages/append-cost.test.ts": 45200,- "test/large-pages/append-mention-links.test.ts": 13750,- "test/large-pages/contextual-reembed-segmented.test.ts": 7550,+ "test/keyword-statement-timeout-knob-6495.test.ts": 11000,+ "test/keyword-timeout-negative-cache-6495.test.ts": 4600,+ "test/lane-apply-pipelining.test.ts": 2800,+ "test/large-pages/append-concurrency.test.ts": 30500,+ "test/large-pages/append-cost.test.ts": 44800,+ "test/large-pages/append-mention-links.test.ts": 22800,+ "test/large-pages/chunk-retirement-plan.test.ts": 6700,+ "test/large-pages/chunk-visibility.test.ts": 3900,+ "test/large-pages/contextual-reembed-segmented.test.ts": 3900,+ "test/large-pages/conversation-facts-incremental-core.test.ts": 43100,+ "test/large-pages/conversation-facts-incremental-deletion.test.ts": 14100,+ "test/large-pages/conversation-facts-incremental-grammar-choice.test.ts": 14600,+ "test/large-pages/conversation-facts-incremental-grammar-flag.test.ts": 10700,+ "test/large-pages/conversation-facts-incremental-grammar.test.ts": 25800,+ "test/large-pages/conversation-facts-incremental-held.test.ts": 19100,+ "test/large-pages/conversation-facts-incremental-page-change.test.ts": 14400,+ "test/large-pages/conversation-facts-incremental-recovery.test.ts": 25900,+ "test/large-pages/conversation-facts-property-seeds-01-02.test.ts": 39300,+ "test/large-pages/conversation-facts-property-seeds-03-04.test.ts": 30500,+ "test/large-pages/conversation-facts-property-seeds-05-06.test.ts": 28500,+ "test/large-pages/conversation-facts-property-seeds-07-08.test.ts": 32100,+ "test/large-pages/conversation-facts-property-seeds-09-10.test.ts": 30300,+ "test/large-pages/conversation-facts-property-seeds-11-12.test.ts": 29400,+ "test/large-pages/conversation-facts-property-seeds-13-14.test.ts": 38900,+ "test/large-pages/conversation-facts-property-seeds-15-16.test.ts": 33600,+ "test/large-pages/conversation-facts-property-seeds-17-18.test.ts": 32500,+ "test/large-pages/conversation-facts-property-seeds-19-20.test.ts": 30900,+ "test/large-pages/conversation-facts-property-seeds-21-22.test.ts": 35800,+ "test/large-pages/conversation-facts-property-seeds-23-24.test.ts": 28400,+ "test/large-pages/conversation-facts-property-seeds-25-26.test.ts": 37700,+ "test/large-pages/conversation-facts-property-seeds-27-28.test.ts": 28400,+ "test/large-pages/conversation-facts-property-seeds-29-30.test.ts": 33100,+ "test/large-pages/credential-reseal-segments.test.ts": 5400,+ "test/large-pages/derivation-equivalence.test.ts": 38550,+ "test/large-pages/derivation-purge-batching.test.ts": 24900,+ "test/large-pages/derivation-purge-normalized.test.ts": 28200,+ "test/large-pages/derivation-purge-retired.test.ts": 26300,+ "test/large-pages/derivation-purge-scope.test.ts": 15800,+ "test/large-pages/derivation-purge-stalls.test.ts": 31500,- "test/large-pages/edit-segmented.test.ts": 21100,+ "test/large-pages/doctor-skipped-segmented.test.ts": 16000,+ "test/large-pages/edit-segmented.test.ts": 34800,+ "test/large-pages/extract-atoms-segmented-skip.test.ts": 2200,- "test/large-pages/managed-import-outside-root.test.ts": 25800,- "test/large-pages/managed-import-projection-pending.test.ts": 30850,- "test/large-pages/managed-streamed-import.test.ts": 54800,+ "test/large-pages/forget-reason-segmented.test.ts": 6500,+ "test/large-pages/forget-scope.test.ts": 14700,+ "test/large-pages/gbra117-segmented-classes-window.test.ts": 48300,+ "test/large-pages/held-budget-count-list.test.ts": 12000,+ "test/large-pages/held-budget-shrink.test.ts": 10800,+ "test/large-pages/managed-import-outside-root.test.ts": 30700,+ "test/large-pages/managed-import-projection-pending.test.ts": 83100,+ "test/large-pages/managed-links-timeline-heap.test.ts": 41900,+ "test/large-pages/managed-streamed-import.test.ts": 43600,+ "test/large-pages/managed-sync-segmented-rename.test.ts": 22800,"test/large-pages/managed-sync-streamed-crash.test.ts": 16000,- "test/large-pages/managed-sync-streamed.test.ts": 111500,+ "test/large-pages/managed-sync-streamed.test.ts": 110500,+ "test/large-pages/needle-sentence-chunk.test.ts": 600,- "test/large-pages/projection-claim-ownership.test.ts": 28100,- "test/large-pages/publication-seal-bounded.test.ts": 22350,- "test/large-pages/purge-fact-segmented-preimage.test.ts": 17300,+ "test/large-pages/oversized-backfill-segmented.test.ts": 12600,+ "test/large-pages/page-purge-segments.test.ts": 45200,+ "test/large-pages/pinned-segmented-reads.test.ts": 40500,+ "test/large-pages/projection-claim-ownership.test.ts": 32300,+ "test/large-pages/projection-demotion-race.test.ts": 5100,+ "test/large-pages/projection-lock-hold.test.ts": 46100,+ "test/large-pages/projection-parity.test.ts": 44900,+ "test/large-pages/publication-seal-bounded.test.ts": 17800,+ "test/large-pages/purge-fact-inflight-staging.test.ts": 14000,+ "test/large-pages/purge-fact-segmented-preimage.test.ts": 14300,+ "test/large-pages/purge-inflight-create.test.ts": 10500,+ "test/large-pages/purge-replay-segments.test.ts": 10700,+ "test/large-pages/purge-segment-residue.test.ts": 3900,+ "test/large-pages/purge-segmented-versions-batch.test.ts": 11600,+ "test/large-pages/purge-segments.test.ts": 8500,+ "test/large-pages/rechunk-segmented.test.ts": 14100,- "test/large-pages/recovery-budget-ceiling.slow.test.ts": 210350,- "test/large-pages/recovery-budget-default.test.ts": 6450,- "test/large-pages/sealed-segmented-search.test.ts": 10600,+ "test/large-pages/recovery-budget-ceiling.slow.test.ts": 254000,+ "test/large-pages/recovery-budget-default.test.ts": 7800,+ "test/large-pages/remote-get-page-privacy.test.ts": 66000,+ "test/large-pages/remote-versions-storage-change.test.ts": 3800,+ "test/large-pages/remote-window-privacy.test.ts": 48200,+ "test/large-pages/restore-deferred-retire.test.ts": 29700,+ "test/large-pages/restore-publication-statement-bound.test.ts": 33600,+ "test/large-pages/restore-segmented-reprojects.test.ts": 71800,+ "test/large-pages/sealed-segmented-search.test.ts": 12400,+ "test/large-pages/second-write-deferred-retire.test.ts": 13600,+ "test/large-pages/segment-derivations-plan.test.ts": 100,- "test/large-pages/segmented-conversation-facts.test.ts": 42100,- "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 124300,- "test/large-pages/segmented-file-drift-ledger.test.ts": 36300,- "test/large-pages/segmented-get-page-parity.test.ts": 15800,- "test/large-pages/segmented-semantic-writes.test.ts": 74450,- "test/large-pages/segmented-storage-visibility.test.ts": 19750,- "test/large-pages/segmented-switch.test.ts": 24900,- "test/large-pages/segmented-withdrawal-mirror.test.ts": 240950,+ "test/large-pages/segment-rewrite-cr-tier.test.ts": 7500,+ "test/large-pages/segment-vector-reuse.test.ts": 4100,+ "test/large-pages/segmented-append-reembed.test.ts": 7800,+ "test/large-pages/segmented-body-unreachable.test.ts": 4000,+ "test/large-pages/segmented-bom.test.ts": 22600,+ "test/large-pages/segmented-conversation-facts.test.ts": 32100,+ "test/large-pages/segmented-conversation-sidecar-token.test.ts": 23900,+ "test/large-pages/segmented-core-list.test.ts": 22500,+ "test/large-pages/segmented-create-searchable.test.ts": 37400,+ "test/large-pages/segmented-delete-crash.slow.test.ts": 75400,+ "test/large-pages/segmented-delete-restore-file.slow.test.ts": 138200,+ "test/large-pages/segmented-delete-stage-crash.slow.test.ts": 169100,+ "test/large-pages/segmented-derived-parity.test.ts": 12400,+ "test/large-pages/segmented-derived-passes.test.ts": 21600,+ "test/large-pages/segmented-derived-work.test.ts": 77800,+ "test/large-pages/segmented-embedding-paths.test.ts": 36500,+ "test/large-pages/segmented-embedding.test.ts": 2700,+ "test/large-pages/segmented-evidence-read-cost.test.ts": 34300,+ "test/large-pages/segmented-evidence.test.ts": 33500,+ "test/large-pages/segmented-extraction-stale.test.ts": 11600,+ "test/large-pages/segmented-facts-forced-lines.test.ts": 8600,+ "test/large-pages/segmented-facts-reconcile.test.ts": 94800,+ "test/large-pages/segmented-file-drift-ledger.test.ts": 57700,+ "test/large-pages/segmented-file-drift.test.ts": 86600,+ "test/large-pages/segmented-forced-cuts.test.ts": 71200,+ "test/large-pages/segmented-frontmatter-reimport.test.ts": 43200,+ "test/large-pages/segmented-get-cli.test.ts": 32500,+ "test/large-pages/segmented-get-page-parity.test.ts": 13500,+ "test/large-pages/segmented-leads.test.ts": 17800,+ "test/large-pages/segmented-loser-chunks.test.ts": 7100,+ "test/large-pages/segmented-maintenance-commands.test.ts": 15400,+ "test/large-pages/segmented-prior-view.test.ts": 10500,+ "test/large-pages/segmented-read-refusals.test.ts": 9900,+ "test/large-pages/segmented-real-size.slow.test.ts": 58000,+ "test/large-pages/segmented-remember-refusal.test.ts": 19900,+ "test/large-pages/segmented-repair-scans.test.ts": 18700,+ "test/large-pages/segmented-retained-blocks.test.ts": 52500,+ "test/large-pages/segmented-search-dedup.test.ts": 15200,+ "test/large-pages/segmented-semantic-writes-near-ceiling.slow.test.ts": 135800,+ "test/large-pages/segmented-semantic-writes.test.ts": 79400,+ "test/large-pages/segmented-shrink-below-ceiling.test.ts": 69700,+ "test/large-pages/segmented-storage-visibility.test.ts": 21200,+ "test/large-pages/segmented-sweep-budget.test.ts": 20900,+ "test/large-pages/segmented-sweep-deferral.test.ts": 21800,+ "test/large-pages/segmented-switch.test.ts": 35200,+ "test/large-pages/segmented-think-compile-leads.serial.test.ts": 10300,+ "test/large-pages/segmented-timeline-heap.test.ts": 64300,+ "test/large-pages/segmented-timeline-retract-versions.test.ts": 9600,+ "test/large-pages/segmented-versions.test.ts": 3100,+ "test/large-pages/segmented-withdrawal-mirror.test.ts": 191800,+ "test/large-pages/segmented-withdrawn-fence-delete.test.ts": 68400,"test/large-pages/segmented-writer-floor.test.ts": 100,- "test/large-pages/streamed-sync-origin-b14.test.ts": 74450,- "test/large-pages/stuck-recovery-large.slow.test.ts": 230300,+ "test/large-pages/streamed-import-drift.test.ts": 31500,+ "test/large-pages/streamed-sync-origin-b14.test.ts": 79900,+ "test/large-pages/stuck-recovery-large.slow.test.ts": 150400,+ "test/large-pages/synopsis-segment-hash.test.ts": 37100,+ "test/large-pages/timeline-bullet-chunks.test.ts": 900,+ "test/large-pages/timeline-top-insert-reembed.test.ts": 8450,- "test/large-pages/upload-binding.test.ts": 5250,- "test/large-pages/upload-over-ceiling.test.ts": 91450,- "test/large-pages/upload-review.test.ts": 4400,- "test/managed-sync-blocked-job-6858.test.ts": 2800,- "test/managed-sync-bulk.test.ts": 216950,- "test/managed-sync-checkpoint-controls-company.test.ts": 3000,- "test/managed-sync-concurrent-write-hold.test.ts": 7850,- "test/managed-sync-drain.test.ts": 5750,- "test/managed-sync-group-uncommitted-head.test.ts": 38850,- "test/managed-sync-keep-disk-6858.test.ts": 25050,- "test/managed-sync-lanes.test.ts": 20000,- "test/managed-sync-page-fault-holds.test.ts": 12750,- "test/managed-sync-pinned-reads.test.ts": 17400,- "test/managed-sync-preparation-stalled-holds.test.ts": 98050,- "test/managed-sync-row-parity.test.ts": 5850,- "test/managed-sync-stale-group-head.test.ts": 6000,+ "test/large-pages/upload-binding.test.ts": 5800,+ "test/large-pages/upload-over-ceiling.test.ts": 154600,+ "test/large-pages/upload-review.test.ts": 7400,+ "test/large-pages/v252-master-reader-compat.test.ts": 8600,+ "test/link-cross-source.test.ts": 6600,+ "test/link-preparation-shared-index.test.ts": 8000,+ "test/links-attendance-blocked.test.ts": 10400,+ "test/links-extraction-yield.test.ts": 9100,+ "test/loop-lag-cpu-clock.test.ts": 550,+ "test/managed-cycle-pull-upstream.test.ts": 6400,+ "test/managed-facts-withdrawal-recovery-6506.test.ts": 13900,+ "test/managed-facts-withdrawn-skip-6506.test.ts": 5900,+ "test/managed-lint.test.ts": 9600,+ "test/managed-maintenance-links.test.ts": 9600,+ "test/managed-root-aliases-7203.test.ts": 45000,+ "test/managed-sweep-corpus-windows.test.ts": 8100,+ "test/managed-sweep-refused-window-retry.test.ts": 9300,+ "test/managed-sweep-timeline.test.ts": 6300,+ "test/managed-sync-blocked-job-6858.test.ts": 6300,+ "test/managed-sync-bulk.test.ts": 221000,+ "test/managed-sync-checkpoint-controls-company.test.ts": 8200,+ "test/managed-sync-chunker-version.test.ts": 4100,+ "test/managed-sync-concurrent-write-hold.test.ts": 11100,+ "test/managed-sync-connection-loss.test.ts": 10400,+ "test/managed-sync-drain.test.ts": 7400,+ "test/managed-sync-foreground-priority.test.ts": 65400,+ "test/managed-sync-gate-markers-6858.test.ts": 7300,+ "test/managed-sync-group-completion.test.ts": 11600,+ "test/managed-sync-group-uncommitted-head.test.ts": 40300,+ "test/managed-sync-images-5493.test.ts": 10000,+ "test/managed-sync-keep-disk-6858.test.ts": 28000,+ "test/managed-sync-lanes.test.ts": 22300,+ "test/managed-sync-orphans-incarnation-6518.test.ts": 2200,+ "test/managed-sync-page-fault-holds.test.ts": 28000,+ "test/managed-sync-pinned-reads.test.ts": 25300,+ "test/managed-sync-preparation-stalled-holds.test.ts": 107500,+ "test/managed-sync-row-parity.test.ts": 11500,+ "test/managed-sync-stale-group-head.test.ts": 9000,"test/managed-synthesis-postprocess.test.ts": 11250,+ "test/mentions-policy-aliases.test.ts": 200,+ "test/migrate.test.ts": 10400,+ "test/migration-persistence-request-id-index.test.ts": 7400,+ "test/migration-persistence-request-slug-index.test.ts": 7900,"test/normalized-file-hash.test.ts": 200,+ "test/on-commit-embedding.serial.test.ts": 7700,+ "test/oneshot-consumer-direct-route.test.ts": 4200,+ "test/oneshot-housekeeping-cli.test.ts": 12900,"test/op-checkpoint-pass-rows-gc-6712.test.ts": 700,"test/operations-coverage-ledger.test.ts": 200,- "test/overwritten-edits-6712.test.ts": 19000,+ "test/origin-guard-6948.test.ts": 9800,+ "test/origin-twin-sequence-7150.test.ts": 13400,+ "test/origin-twins-6948.test.ts": 4300,+ "test/overwritten-edits-6712.test.ts": 18600,+ "test/owner-refusal.test.ts": 5700,+ "test/pack-relation-direction-engine.test.ts": 5100,+ "test/page-embedding-budget.test.ts": 3100,+ "test/page-embedding-content-validity.test.ts": 4300,+ "test/page-embedding-install-batch.test.ts": 3200,+ "test/page-embedding-lease.serial.test.ts": 10700,- "test/page-prepare-shared-origin-6517.test.ts": 8400,+ "test/page-prepare-shared-origin-6517.test.ts": 10100,+ "test/page-purge-batch-sweep-6884.test.ts": 6200,+ "test/page-purge-journal-timeout-6511.test.ts": 16300,"test/page-row-deleters-guard-6712.test.ts": 300,+ "test/page-spend-reservation.test.ts": 4950,+ "test/page-state-engine.test.ts": 5800,+ "test/pages-status-7179.test.ts": 17100,"test/pages-unsearchable.test.ts": 4600,- "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 12050,- "test/pathological/a-42-atom-dot-led-slug.test.ts": 13750,- "test/pathological/a-51-conversation-batch-booking.test.ts": 7700,- "test/pathological/a1-links-extract.test.ts": 26800,- "test/pathological/a10-global-maintenance-stamp.test.ts": 2600,- "test/pathological/a11-effect-retry-budget.test.ts": 45700,- "test/pathological/a12-withdrawal-mirror-gate.test.ts": 62900,- "test/pathological/a13-embedding-target-park.test.ts": 23850,- "test/pathological/a15-deactivate-exits.test.ts": 5150,- "test/pathological/a18-ledger-path-text.test.ts": 29950,- "test/pathological/a2-transcripts-ingest.test.ts": 40800,- "test/pathological/a21-facts-expire-deleted.test.ts": 21950,- "test/pathological/a22-consolidate-buckets.test.ts": 30050,- "test/pathological/a23-patterns-grounding.test.ts": 25750,- "test/pathological/a24-phantom-redirect-cursor.test.ts": 22350,- "test/pathological/a25-propose-takes-poison-pages.test.ts": 33000,- "test/pathological/a26-safe-chunks-reseal.test.ts": 7250,- "test/pathological/a27-credential-reseal.test.ts": 5200,- "test/pathological/a3-google-items.test.ts": 89450,- "test/pathological/a30-watchdog-attribution.test.ts": 5600,- "test/pathological/a31-migrate-loop-rows.serial.test.ts": 29600,- "test/pathological/a4-synthesize-postprocess.test.ts": 13100,- "test/pathological/a41-maintain-sources.test.ts": 36850,- "test/pathological/a45-repair-all-kinds.test.ts": 3300,- "test/pathological/a47-backfill-poison-row.test.ts": 3600,- "test/pathological/a9-repair-core.test.ts": 6400,- "test/pathological/b-7-facts-pageless-entity.test.ts": 8500,- "test/pathological/b-9-enrich-retired-alias.test.ts": 3300,- "test/pathological/b12-slug-segment-bytes.test.ts": 13550,- "test/pathological/b5-enrich-entity-identity.test.ts": 2450,- "test/pathological/b5-export-unsafe-slugs.test.ts": 21150,- "test/pathological/b6-triage-verdict-surrogate.test.ts": 2000,- "test/pathological/c-23-override-and-doctor-fixes.test.ts": 8500,- "test/pathological/c1-effect-stuck-recovery.test.ts": 45450,- "test/pathological/c2-url-clone-fences.test.ts": 39700,+ "test/pathological/a-36-facts-batch-partial-refusal.test.ts": 6900,+ "test/pathological/a-42-atom-dot-led-slug.test.ts": 11000,+ "test/pathological/a-51-conversation-batch-booking.test.ts": 8200,+ "test/pathological/a-60-belief-commit-mark.test.ts": 5000,+ "test/pathological/a-65-captured-facts-unreadable-corpus.test.ts": 5700,+ "test/pathological/a1-links-extract.test.ts": 44800,+ "test/pathological/a10-global-maintenance-stamp.test.ts": 4400,+ "test/pathological/a11-effect-retry-budget.test.ts": 25300,+ "test/pathological/a12-withdrawal-mirror-gate.test.ts": 67000,+ "test/pathological/a13-embedding-target-park.test.ts": 47000,+ "test/pathological/a15-deactivate-exits.test.ts": 4500,+ "test/pathological/a18-ledger-path-text.test.ts": 19300,+ "test/pathological/a2-transcripts-ingest.test.ts": 71000,+ "test/pathological/a21-facts-expire-deleted.test.ts": 45400,+ "test/pathological/a22-consolidate-buckets.test.ts": 18800,+ "test/pathological/a23-patterns-grounding.test.ts": 46800,+ "test/pathological/a24-phantom-redirect-cursor.test.ts": 27200,+ "test/pathological/a25-propose-takes-poison-pages.test.ts": 26600,+ "test/pathological/a26-safe-chunks-reseal.test.ts": 8900,+ "test/pathological/a27-credential-reseal.test.ts": 5000,+ "test/pathological/a3-google-items.test.ts": 81200,+ "test/pathological/a30-watchdog-attribution.test.ts": 5400,+ "test/pathological/a31-migrate-loop-rows.serial.test.ts": 21700,+ "test/pathological/a4-synthesize-postprocess.test.ts": 11000,+ "test/pathological/a41-maintain-sources.test.ts": 19800,+ "test/pathological/a44-slug-conflicts-rotation.test.ts": 33100,+ "test/pathological/a45-repair-all-kinds.test.ts": 5900,+ "test/pathological/a46-content-lane-kinds.test.ts": 2500,+ "test/pathological/a47-backfill-poison-row.test.ts": 3900,+ "test/pathological/a49-unmanaged-purge-tombstones.test.ts": 27400,+ "test/pathological/a50-unmanaged-expired-sources.test.ts": 7900,+ "test/pathological/a9-repair-core.test.ts": 3900,+ "test/pathological/b-10-ontology-rekey-collision.test.ts": 3100,+ "test/pathological/b-7-facts-pageless-entity.test.ts": 11300,+ "test/pathological/b-9-enrich-retired-alias.test.ts": 12500,+ "test/pathological/b12-slug-segment-bytes.test.ts": 13800,+ "test/pathological/b5-enrich-entity-identity.test.ts": 3000,+ "test/pathological/b5-export-unsafe-slugs.test.ts": 21100,+ "test/pathological/b6-triage-verdict-surrogate.test.ts": 3100,+ "test/pathological/c-23-override-and-doctor-fixes.test.ts": 10000,+ "test/pathological/c-9-facts-absorb-dead.test.ts": 5700,+ "test/pathological/c1-effect-stuck-recovery.test.ts": 40800,+ "test/pathological/c2-url-clone-fences.test.ts": 45300,+ "test/pathological/c22-stuck-recovery-large-file.test.ts": 33400,"test/pathological/c3-pglite-legacy-lock.test.ts": 4200,- "test/pathological/c4-bundle-stuck-recovery.test.ts": 149500,- "test/pathological/c5-writer-transfer-cancel.test.ts": 32250,- "test/pathological/c7-content-receipt-root.test.ts": 17350,+ "test/pathological/c4-bundle-stuck-recovery.test.ts": 149400,+ "test/pathological/c5-writer-transfer-cancel.test.ts": 20000,+ "test/pathological/c7-content-receipt-root.test.ts": 25200,+ "test/pathological/d1-unfenced-facts-overwrite.test.ts": 37000,+ "test/pathological/d10-derived-atom-file-overwrite.test.ts": 17900,+ "test/pathological/d11-derived-retired-atom-unlink.test.ts": 20600,+ "test/pathological/d12-concept-stale-fences.test.ts": 22300,+ "test/pathological/d13-concept-occupied-path.test.ts": 10000,+ "test/pathological/d14-brainstorm-resume-overwrite.test.ts": 13300,+ "test/pathological/d15-sync-reexport-overwrite.test.ts": 11600,+ "test/pathological/d16-google-file-replacement.test.ts": 16500,+ "test/pathological/d17-github-file-replacement.test.ts": 25000,+ "test/pathological/d18-think-take-db-only.test.ts": 19300,+ "test/pathological/d19-takes-bootstrap-db-only.test.ts": 41600,+ "test/pathological/d2-fence-write-overwrite.test.ts": 27700,+ "test/pathological/d21-migration-verifier-record.test.ts": 58200,+ "test/pathological/d22-legacy-hash-body-history.test.ts": 24600,+ "test/pathological/d23-extract-atoms-db-only.test.ts": 56600,+ "test/pathological/d3-forget-overwrite.test.ts": 24900,+ "test/pathological/d4-proposal-overwrite.test.ts": 68400,+ "test/pathological/d5-phantom-canonical-overwrite.test.ts": 20800,+ "test/pathological/d6-phantom-file-unlink.test.ts": 16700,+ "test/pathological/d7-synthesize-reverse-write.test.ts": 25600,+ "test/pathological/d8-patterns-reverse-write.test.ts": 38300,+ "test/pathological/d9-dream-summary-overwrite.test.ts": 15100,+ "test/pathological/facts-mirror-failures.test.ts": 29600,+ "test/pathological/g0-derived-retirement-hold.test.ts": 9000,+ "test/pathological/g1-atom-generations.test.ts": 17600,+ "test/pathological/g1-generation-crash.test.ts": 21400,+ "test/pathological/g1-generation-probes.test.ts": 23600,+ "test/pathological/g1-generations.test.ts": 30600,+ "test/pathological/h1-zero-yield-atom-reextract.test.ts": 17000,+ "test/pathological/h2-git-effect-moved-remote.test.ts": 14200,+ "test/pathological/h3-chronicle-partial-generation.test.ts": 54100,+ "test/pathological/h4-conversation-facts-zero-yield.test.ts": 49900,+ "test/pathological/h5-atoms-restore.test.ts": 22200,"test/pathological/inventory-deferred.test.ts": 100,"test/pathological/item-failure.test.ts": 250,+ "test/pathological/lp-a-segmented-mirror.test.ts": 76000,+ "test/pathological/lp-b-transient-retry-budget.test.ts": 86300,+ "test/pathological/lp-c-publication-ceiling-retry.test.ts": 83400,+ "test/pathological/lp-d-recovery-version.test.ts": 14100,+ "test/pathological/lp-d-segmented-mirror-gate.test.ts": 13200,+ "test/pathological/lp-f-split-fence-withdrawal-capacity.test.ts": 12400,+ "test/pathological/lp-g-file-digest-fence-bound.test.ts": 24600,+ "test/pathological/lp-h-purge-orphan-segment-text.test.ts": 39300,+ "test/pathological/pg-round-trips-6930.test.ts": 1600,+ "test/pathological/s-7086-mirror-dry-run.test.ts": 900,+ "test/pathological/s-classic-byte-paths.test.ts": 8150,+ "test/pathological/s-notifier-sigterm-lease.test.ts": 6250,+ "test/pathological/s-sync-offpath-2b.test.ts": 19900,+ "test/pathological/s-truthful-sync-status.test.ts": 2950,"test/pathological/sites.test.ts": 100,+ "test/pathological/w1-write-through-staging-window.serial.test.ts": 6000,+ "test/persistence-background-pause.test.ts": 4100,+ "test/persistence-bounded-read-session.test.ts": 6100,+ "test/persistence-capacity-forecast.test.ts": 11100,+ "test/persistence-capacity-notices.test.ts": 7600,+ "test/persistence-commit-durability.test.ts": 3800,"test/persistence-crash-robot.test.ts": 40650,- "test/persistence-managed-lifecycle.test.ts": 13850,- "test/persistence-managed-sync.test.ts": 171200,+ "test/persistence-deactivate.test.ts": 11900,+ "test/persistence-diagnostics.test.ts": 9100,+ "test/persistence-edit-embedding-reuse.test.ts": 6400,+ "test/persistence-embedding-noop-settle.test.ts": 6900,+ "test/persistence-file-import.test.ts": 28400,+ "test/persistence-git-subdir-origin.test.ts": 18000,+ "test/persistence-graph-publication.test.ts": 5100,+ "test/persistence-history-fixture.test.ts": 25400,+ "test/persistence-image-import.serial.test.ts": 4900,+ "test/persistence-import-batch.test.ts": 21400,+ "test/persistence-index-lock-reclaim-6932.test.ts": 8750,+ "test/persistence-managed-lifecycle.test.ts": 14300,+ "test/persistence-managed-sync.test.ts": 188800,+ "test/persistence-manifest-git-scope.test.ts": 8200,+ "test/persistence-memory-mutations.test.ts": 7100,+ "test/persistence-page-authority.test.ts": 5700,+ "test/persistence-physical-root-device.test.ts": 3200,+ "test/persistence-preactivation-claim.test.ts": 9400,+ "test/persistence-publication-deadline.test.ts": 20200,+ "test/persistence-receipt-true-up.test.ts": 6300,+ "test/persistence-reconcile-git-dirty-6138.test.ts": 4500,+ "test/persistence-skill-bundles.serial.test.ts": 7800,+ "test/persistence-skill-crash.slow.test.ts": 50300,+ "test/persistence-skip-cost.test.ts": 8200,"test/persistence-sync-checkpoint-validation.test.ts": 10400,- "test/persistence-sync-cursor-options.test.ts": 3500,- "test/persistence-sync-cursor-strategy-6696.test.ts": 4650,+ "test/persistence-sync-cursor-options.test.ts": 7400,+ "test/persistence-sync-cursor-strategy-6696.test.ts": 9100,"test/persistence-sync-failures.serial.test.ts": 36700,- "test/persistence-sync-fence-holds.test.ts": 13000,- "test/persistence-sync-holds.test.ts": 14300,+ "test/persistence-sync-fence-holds.test.ts": 17100,+ "test/persistence-sync-holds.test.ts": 34400,+ "test/persistence-sync-lease.test.ts": 33400,"test/persistence-sync-legacy-files-5751.test.ts": 2400,- "test/persistence-sync-options.serial.test.ts": 75750,+ "test/persistence-sync-metafile-pages.test.ts": 5300,+ "test/persistence-sync-options.serial.test.ts": 58950,"test/persistence-sync-origin-native.test.ts": 10750,"test/persistence-sync-stdio-owner.test.ts": 22450,"test/persistence-worktree-refresh.test.ts": 24800,- "test/persistence-write-interrupted.test.ts": 40700,+ "test/persistence-write-interrupted.test.ts": 66200,+ "test/persistence-write-stall.test.ts": 4500,+ "test/persistence-writer-fences.test.ts": 3900,+ "test/physical-root-birth-tolerance-6501.test.ts": 7500,+ "test/postgres-driver-vendor-6930.test.ts": 100,+ "test/postgres-engine-gauge-golden.test.ts": 300,+ "test/postgres-rls-scope-inventory.test.ts": 500,- "test/receipt-compaction-newest-sync-gbra130.test.ts": 3350,+ "test/projection-statistics.test.ts": 17350,+ "test/purge-fact.test.ts": 5300,+ "test/purge-global-marker.test.ts": 7700,+ "test/purge-missing-cache-6911.test.ts": 6600,+ "test/purge-read-surfaces.test.ts": 19400,+ "test/purge-sync-tombstone-hold-7130.test.ts": 20900,+ "test/read-meta-diag.test.ts": 2900,+ "test/read-waves-gbra133.test.ts": 2200,+ "test/recall-page-fill.test.ts": 14800,+ "test/receipt-compaction-newest-sync-gbra130.test.ts": 7200,"test/receipt-coverage.test.ts": 200,"test/reconcile-owner-journey.serial.test.ts": 91500,+ "test/remediation-manual-only.test.ts": 8300,+ "test/remote-body.test.ts": 100,"test/remote-privacy-sweep.test.ts": 7250,"test/repair-apply-continue-6459.test.ts": 1400,- "test/repair-apply-pending-6543.test.ts": 55800,+ "test/repair-apply-pending-6543.test.ts": 43800,+ "test/repair-database-stop-gbra133.test.ts": 5000,+ "test/repair-embedding-effects.test.ts": 20300,"test/repair-explicit-only.test.ts": 1300,+ "test/repair-failed-writes-conflict-6429.test.ts": 6800,+ "test/repair-failed-writes-drift-w411.test.ts": 12300,"test/repair-fences-during-catchup.test.ts": 3250,- "test/repair-file-drift-held-6712.test.ts": 5900,- "test/repair-frontmatter.test.ts": 11450,+ "test/repair-fences.test.ts": 24000,+ "test/repair-file-drift-deleted-6712.test.ts": 21800,+ "test/repair-file-drift-held-6712.test.ts": 6200,+ "test/repair-file-drift-held-window-gbra133.test.ts": 43500,+ "test/repair-file-drift-provenance-gbra133.test.ts": 9400,+ "test/repair-frontmatter-keys-sweep-6454.test.ts": 6600,+ "test/repair-frontmatter.test.ts": 19100,+ "test/repair-ghost-database-ahead-gbra133.test.ts": 7900,"test/repair-legacy-twins-6885.test.ts": 5100,+ "test/repair-receipt-compaction.test.ts": 4000,+ "test/repair-rename-identity-6729.test.ts": 22300,"test/repair-stuck-recovery.test.ts": 3450,+ "test/retrieval-coverage-notices.test.ts": 5800,+ "test/schema-bootstrap-coverage.test.ts": 6400,+ "test/schema-missing-tables.test.ts": 3800,"test/scripts/check-item-allowlist-catches.test.ts": 800,"test/scripts/nightly-issue.test.ts": 200,+ "test/scripts/test-stress-postgres.test.ts": 11400,+ "test/search-read-keyword-bound.test.ts": 3700,+ "test/search/page-rank-cut.test.ts": 8500,+ "test/search/rerank-gate-hybrid.test.ts": 5900,+ "test/search/rerank-gate-telemetry.test.ts": 5100,+ "test/secret-scan-perf.test.ts": 11000,+ "test/serve-head-watcher-managed.serial.test.ts": 7200,+ "test/serve-http-head-watcher.serial.test.ts": 1050,+ "test/serve-http-run-teardown.serial.test.ts": 1400,"test/serve-sync-handoff.serial.test.ts": 4100,+ "test/shared-content-freshness.test.ts": 6900,+ "test/shared-skills-catalog.test.ts": 17200,+ "test/shared-skills-retention-capacity.test.ts": 3800,+ "test/shared-skills-source-opt-out.test.ts": 2400,+ "test/shared-skills-writer-boundary.test.ts": 25300,"test/slice-memo-gbra108.test.ts": 100,"test/slug-autoheal-pass-6712.test.ts": 1000,- "test/sync-absent-from-worktree-s27.test.ts": 7400,- "test/sync-admission-6712.test.ts": 1500,+ "test/source-lifecycle-dry-run-physical-root-6849.test.ts": 1900,+ "test/source-retire-missing-checkout.test.ts": 4200,+ "test/source-row-diagnostics.test.ts": 2100,+ "test/sources-resolve-path.test.ts": 12100,+ "test/stats-health-source-scope.test.ts": 5400,+ "test/sync-absent-from-worktree-s27.test.ts": 12000,+ "test/sync-admission-6712.test.ts": 3000,"test/sync-alias-limit-hold-6712.test.ts": 4000,- "test/sync-checkpoint-moved-6834.test.ts": 3500,+ "test/sync-capacity-preflight.test.ts": 5500,+ "test/sync-checkpoint-moved-6834.test.ts": 9100,"test/sync-classify-6712.test.ts": 950,"test/sync-config-keys-6712.test.ts": 600,"test/sync-convergence-seeded-6712.test.ts": 7200,@@@ -352,16 -637,18 +729,23 @@@"test/sync-waiver-unreadable-6712.test.ts": 300,"test/sync-working-level-6712.test.ts": 1200,"test/sync-working-stat-cache-6712.test.ts": 10800,+ "test/take-resolution-survives-publish.test.ts": 4300,+ "test/takes-propose-accept-managed.test.ts": 7700,+ "test/takes-vector-lifecycle-5885.serial.test.ts": 9900,+ "test/terminal-failures-6650.test.ts": 20900,+ "test/timeline-citations.test.ts": 1200,+ "test/transcript-render.test.ts": 200,"test/transcripts-codex-subagent.test.ts": 1000,+ "test/transcripts-ingest-pglite.test.ts": 8100,+ "test/transcripts-part-churn.test.ts": 5450,+ "test/traverse-walk-cap.test.ts": 700,+ "test/trust-guarded-supersession.test.ts": 5800,"test/trust-write-gate-drift.test.ts": 100,"test/upload-part-cutter.test.ts": 200,- "test/v265-validate-timeouts.test.ts": 7250,++ "test/v273-validate-timeouts.test.ts": 7250,"test/worker-shutdown-error-matrix.test.ts": 2300,"test/worktree-refresh-recovery-row-gbra130.test.ts": 3900,+ "test/writer-admin-state-embed-lease.test.ts": 3900,"test/writer-failures-cli-6650.test.ts": 850,"test/writer-status-movement-not-read-gbra130.test.ts": 2400}diff --cc src/commands/doctor/registry.tsindex ceb0fa3db1,796ad5c074..3ffba0f63e--- a/src/commands/doctor/registry.ts+++ b/src/commands/doctor/registry.ts@@@ -260,14 -269,15 +271,17 @@@ export const DOCTOR_CHECK_REGISTRY: reatrustSourcesUnclaimedEntry,coreMemoryEntry,persistenceConsumersEntry,+ runtimeBuildSkewEntry,+ cliSocketRefusalsEntry,atomHeldFailedEntry,extractionInputTruncatedEntry,+ derivationUnpricedModelEntry,ghostPagesEntry,originTwinsEntry,+ slugPathMismatchEntry,renameIdentityDowngradesEntry,purgeParkedPagesEntry,+ derivationPurgeSweepsEntry,missingRecordedFilesEntry,uncommittedSyncDeletionsEntry,unindexedFilesEntry,diff --cc src/core/cli-flag-registry.generated.tsindex 11d9e22cda,bd3f26a305..b267d44c9d--- a/src/core/cli-flag-registry.generated.ts+++ b/src/core/cli-flag-registry.generated.ts@@@ -49,19 -49,20 +49,20 @@@ export const CLI_FLAG_REGISTRY: Record<'creds': ['--allow-create-db', '--allow-docker', '--brain', '--chat-model', '--content-root', '--db-only', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--http', '--ids', '--issuer-url', '--json', '--key', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-embedding', '--no-git', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--out', '--passphrase-env', '--path', '--pglite', '--plan', '--prefer-postgres', '--provenance', '--provider', '--query', '--schema-pack', '--scopes', '--search-mode', '--skip-embed-check', '--source', '--status', '--supabase', '--surface', '--to', '--url', '--version'],'db-repair': ['--accept-pending', '--apply', '--apply-rewrites', '--background', '--brain', '--break-lock', '--db-url', '--dry-run', '--explain', '--filter', '--follow', '--force', '--force-retry', '--format', '--help', '--http', '--json', '--legacy-lock', '--locks', '--name', '--no-accept-pending', '--path', '--prefer-postgres', '--probe', '--progress-interval', '--progress-json', '--quiet', '--remediate', '--restart', '--skip-verify', '--source', '--statement-timeout', '--supabase', '--timeout', '--timings', '--undo-last-rewrite', '--url', '--version', '--wait', '--yes'],'decide': ['--accept-all', '--all', '--all-from', '--apply', '--brain', '--call-site', '--dataset', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--expect', '--from', '--help', '--include-withdrawals', '--input', '--items-out', '--json', '--kind', '--limit', '--max-cost', '--max-usd', '--min', '--non-interactive', '--out', '--provenance', '--provider', '--query', '--rate', '--reason', '--reason-family', '--recommended', '--remove', '--shadow', '--since', '--slot', '--source', '--status', '--suite', '--target', '--threshold', '--trust', '--undo', '--uri-prefix', '--version', '--what-if-threshold', '--yes'],- 'doctor': ['--abandon', '--abbrev-ref', '--accept-pending', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt', '--adopt-columns', '--adopt-permissions', '--after', '--aliases', '--all', '--all-drifted', '--all-from', '--allow-old-serve', '--allow-shell-jobs', '--allow-unverified-remote', '--allowed-operations', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--auto-fix', '--autostash', '--background', '--batch', '--batch-check', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--branch', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--cached', '--call-site', '--catch-up', '--check', '--class', '--clear', '--clear-never-installed', '--cli-socket', '--client', '--close', '--concurrency', '--confidence', '--confirm', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--content-root', '--continue', '--conversation', '--count', '--cursor', '--dataset', '--db-url', '--delegated-namespace', '--delegated-slug-prefixes', '--delete-brain', '--dest', '--detach', '--detail', '--diff-filter', '--dim', '--dimensions', '--dir', '--disable', '--drain', '--drain-timeout', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--enable', '--enable-dcr', '--end-of-options', '--entity', '--env', '--error-unmatch', '--exclude', '--exclude-standard', '--expand', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-retry', '--force-schema', '--format', '--fresh', '--fresh-token', '--from', '--from-meetings', '--from-pages', '--full', '--fuzzy', '--get', '--git-common-dir', '--git-dir', '--git-path', '--grammar', '--group', '--group-by', '--hard', '--hard-deadline', '--harness', '--held', '--help', '--home', '--http', '--id', '--if-version', '--ignore-env-override', '--images', '--include-ambiguous', '--include-deleted', '--include-failures', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-pseudo', '--include-repairs', '--include-withdrawals', '--index-audit', '--init', '--input', '--install', '--is-ancestor', '--is-inside-work-tree', '--items-out', '--job-isolation', '--jq', '--json', '--keep', '--keep-checkout', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--local', '--local-env-vars', '--locks', '--log-noop', '--manifest', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-runtime', '--max-usd', '--max-waiting', '--mcp-only', '--migrate-legacy', '--migrate-only', '--migration', '--min', '--min-n', '--mode', '--model', '--multimodal', '--name', '--name-only', '--nice', '--no-accept-pending', '--no-autopilot-install', '--no-autostash', '--no-capture', '--no-confirm', '--no-cron', '--no-delegate', '--no-edit', '--no-embed', '--no-embed-cache', '--no-embedding', '--no-expand', '--no-extract', '--no-filters', '--no-hooks', '--no-lanes', '--no-llm', '--no-migrate', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-seat', '--no-tags', '--no-verify', '--no-walk', '--non-interactive', '--now', '--older-than', '--once', '--only', '--operations', '--others', '--out', '--output', '--oversized', '--overwrite', '--page', '--parallel', '--params', '--parked-pushes', '--pat-file', '--path', '--path-format', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--port', '--prefer', '--prefer-postgres', '--preset', '--preview', '--probe', '--probe-pglite', '--profile', '--progress-interval', '--progress-json', '--project', '--provider', '--providers', '--prune-orphans', '--public-url', '--pull', '--pure', '--purge', '--push-only', '--query', '--question', '--queue', '--quiet', '--rate', '--reader-mode', '--reauth', '--rebase', '--rebuild', '--recommended', '--redact-paths', '--reference-date', '--refresh', '--refresh-operations', '--refresh-skills', '--regenerate', '--reissue', '--relative', '--relower', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--repair', '--repair-unknown-markers', '--replace', '--repo', '--request', '--request-id', '--require-clean', '--reranker', '--reset', '--reset-checkpoint', '--reset-default', '--resolve', '--restore-only', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--reverse', '--review-lower', '--revision', '--rollback-to-source', '--save', '--scope', '--scopes', '--search-mode', '--seat', '--section', '--segmented', '--select', '--self-transfer', '--semantic', '--session', '--session-id', '--set', '--set-upstream-to', '--shadow', '--short', '--show-current', '--show-prefix', '--show-token', '--show-toplevel', '--side', '--since', '--since-last-run', '--skills-dir', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--skip-verify', '--slot', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--state', '--statement-timeout', '--status', '--stdin', '--strategy', '--strict', '--suite', '--supabase', '--surface', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--threshold', '--tier', '--timeout', '--timings', '--to', '--token', '--token-ttl', '--top-k', '--trust', '--type', '--unindexed', '--uninstall', '--unsafe-bypass-dream-guard', '--unset-all', '--untracked-files', '--url', '--url-env', '--user', '--vacuum', '--vectors', '--verbose', '--verify', '--version', '--wait', '--wait-drain', '--warn-only', '--watch', '--what-if-threshold', '--window', '--workers', '--working-tree', '--workspace', '--yes'],+ 'diag': ['--access', '--add', '--all', '--allowed-operations', '--apply', '--asof', '--body', '--bound-slug-prefixes', '--brain', '--budget-ms', '--client', '--count', '--cursor', '--date', '--dated-since', '--days', '--detach', '--entities', '--expect', '--expected-revision', '--federated-read', '--format', '--from-index', '--full', '--fuzzy', '--group-by', '--held', '--help', '--http', '--id', '--include-ambiguous', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--no-pull', '--no-walk', '--only', '--page', '--params', '--path', '--phase', '--prefer', '--preview', '--purge', '--query', '--recent', '--refresh-operations', '--replace', '--restart-only', '--reverse', '--row', '--scopes', '--session', '--side', '--since', '--slug', '--slugs', '--source', '--source-id', '--sources', '--stale', '--state', '--surface', '--to', '--updated-after', '--url', '--yes'],- 'doctor': ['--abandon', '--abbrev-ref', '--accept-pending', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt', '--adopt-columns', '--adopt-permissions', '--after', '--aggressive', '--aliases', '--all', '--all-drifted', '--all-from', '--allow-old-serve', '--allow-outside-source-root', '--allow-shell-jobs', '--allow-unverified-remote', '--allowed-operations', '--applied', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--auto-fix', '--autostash', '--background', '--batch', '--batch-check', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--branch', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--cached', '--cacheinfo', '--call-site', '--catch-up', '--channel', '--check', '--cherry-mark', '--class', '--clear', '--clear-never-installed', '--cli-socket', '--client', '--close', '--concurrency', '--confidence', '--confirm', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--content-root', '--conversation', '--count', '--cursor', '--dataset', '--day', '--db-url', '--deadline', '--delegated-namespace', '--delegated-slug-prefixes', '--delete-brain', '--dest', '--detach', '--detail', '--diff-filter', '--dim', '--dimensions', '--dir', '--disable', '--drain', '--drain-timeout', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--enable', '--enable-dcr', '--end-of-options', '--entity', '--env', '--error-unmatch', '--exclude', '--exclude-standard', '--exit-code', '--expand', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--federated', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-remove', '--force-retry', '--force-schema', '--format', '--fresh', '--fresh-token', '--from', '--from-meetings', '--from-pages', '--full', '--full-tree', '--fuzzy', '--generation', '--get', '--get-all', '--get-url', '--git-common-dir', '--git-dir', '--git-path', '--group', '--group-by', '--hard', '--hard-deadline', '--harness', '--held', '--help', '--hold-state', '--holds', '--home', '--http', '--id', '--if-version', '--ignore-env-override', '--images', '--include-ambiguous', '--include-cross-entity', '--include-deleted', '--include-failures', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-pseudo', '--include-repairs', '--include-withdrawals', '--index-audit', '--index-info', '--infer-dates', '--init', '--input', '--install', '--is-ancestor', '--is-inside-work-tree', '--items-out', '--job-isolation', '--jq', '--json', '--keep', '--keep-checkout', '--key', '--kind', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--local', '--local-env-vars', '--locks', '--log-noop', '--manifest', '--markdown', '--max-cost', '--max-cost-usd', '--max-count', '--max-facts', '--max-jobs', '--max-requests', '--max-rss', '--max-runtime', '--max-usd', '--max-waiting', '--mcp-only', '--merge-base', '--migrate-legacy', '--migrate-only', '--migration', '--min', '--min-n', '--mode', '--model', '--multimodal', '--name', '--name-only', '--name-status', '--nice', '--no-accept-pending', '--no-autopilot-install', '--no-autostash', '--no-capture', '--no-commit-id', '--no-confirm', '--no-cron', '--no-delegate', '--no-edit', '--no-embed', '--no-embed-cache', '--no-embedding', '--no-expand', '--no-extract', '--no-federated', '--no-filters', '--no-gpg-sign', '--no-hooks', '--no-lanes', '--no-llm', '--no-merges', '--no-migrate', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-seat', '--no-tags', '--no-verify', '--no-walk', '--no-write-fetch-head', '--non-interactive', '--not', '--now', '--older-than', '--once', '--only', '--operations', '--others', '--out', '--output', '--oversized', '--overwrite', '--page', '--parallel', '--params', '--parents', '--parked-code', '--parked-pushes', '--pat-file', '--path', '--path-format', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--port', '--prefer', '--prefer-postgres', '--preset', '--preview', '--probe', '--probe-pglite', '--profile', '--progress-interval', '--progress-json', '--project', '--provenance', '--provider', '--providers', '--prune-orphans', '--public-url', '--pull', '--pure', '--purge', '--push', '--push-only', '--query', '--question', '--queue', '--quiet', '--rate', '--reader-mode', '--reauth', '--rebase', '--rebuild', '--recommended', '--redact-paths', '--reference-date', '--refresh', '--refresh-operations', '--refresh-skills', '--regenerate', '--reissue', '--relative', '--relower', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--repair', '--repair-unknown-markers', '--replace', '--repo', '--request', '--request-id', '--require-clean', '--reranker', '--reset', '--reset-checkpoint', '--reset-default', '--resolve', '--restart-only', '--restore-only', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--reverse', '--review-lower', '--revision', '--right-only', '--rollback-to-source', '--root', '--run', '--sample', '--save', '--scope', '--scopes', '--search-mode', '--seat', '--section', '--select', '--self-transfer', '--semantic', '--session', '--session-id', '--set', '--set-upstream-to', '--shadow', '--short', '--show-current', '--show-object-format', '--show-prefix', '--show-token', '--show-toplevel', '--side', '--since', '--since-last-run', '--skills-dir', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--skip-verify', '--slot', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--stat', '--state', '--statement-timeout', '--status', '--stdin', '--stop-mcp', '--strategy', '--strict', '--suite', '--supabase', '--surface', '--swap-only', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--threshold', '--tier', '--timeout', '--timings', '--to', '--token', '--token-ttl', '--top-k', '--topo-order', '--trust', '--type', '--unindexed', '--uninstall', '--unsafe-bypass-dream-guard', '--unset-all', '--untracked-files', '--url', '--url-env', '--user', '--vacuum', '--vectors', '--verbose', '--verify', '--version', '--wait', '--wait-drain', '--warn-only', '--watch', '--what-if-threshold', '--window', '--workers', '--working-tree', '--workspace', '--write-tree', '--yes'],++ 'doctor': ['--abandon', '--abbrev-ref', '--accept-pending', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt', '--adopt-columns', '--adopt-permissions', '--after', '--aggressive', '--aliases', '--all', '--all-drifted', '--all-from', '--allow-old-serve', '--allow-outside-source-root', '--allow-shell-jobs', '--allow-unverified-remote', '--allowed-operations', '--applied', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--auto-fix', '--autostash', '--background', '--batch', '--batch-check', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--branch', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--cached', '--cacheinfo', '--call-site', '--catch-up', '--channel', '--check', '--cherry-mark', '--class', '--clear', '--clear-never-installed', '--cli-socket', '--client', '--close', '--concurrency', '--confidence', '--confirm', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--content-root', '--continue', '--conversation', '--count', '--cursor', '--dataset', '--day', '--db-url', '--deadline', '--delegated-namespace', '--delegated-slug-prefixes', '--delete-brain', '--dest', '--detach', '--detail', '--diff-filter', '--dim', '--dimensions', '--dir', '--disable', '--drain', '--drain-timeout', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--enable', '--enable-dcr', '--end-of-options', '--entity', '--env', '--error-unmatch', '--exclude', '--exclude-standard', '--exit-code', '--expand', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--federated', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-remove', '--force-retry', '--force-schema', '--format', '--fresh', '--fresh-token', '--from', '--from-meetings', '--from-pages', '--full', '--full-tree', '--fuzzy', '--generation', '--get', '--get-all', '--get-url', '--git-common-dir', '--git-dir', '--git-path', '--grammar', '--group', '--group-by', '--hard', '--hard-deadline', '--harness', '--held', '--help', '--hold-state', '--holds', '--home', '--http', '--id', '--if-version', '--ignore-env-override', '--images', '--include-ambiguous', '--include-cross-entity', '--include-deleted', '--include-failures', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-pseudo', '--include-repairs', '--include-withdrawals', '--index-audit', '--index-info', '--infer-dates', '--init', '--input', '--install', '--is-ancestor', '--is-inside-work-tree', '--items-out', '--job-isolation', '--jq', '--json', '--keep', '--keep-checkout', '--key', '--kind', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--local', '--local-env-vars', '--locks', '--log-noop', '--manifest', '--markdown', '--max-cost', '--max-cost-usd', '--max-count', '--max-facts', '--max-jobs', '--max-requests', '--max-rss', '--max-runtime', '--max-usd', '--max-waiting', '--mcp-only', '--merge-base', '--migrate-legacy', '--migrate-only', '--migration', '--min', '--min-n', '--mode', '--model', '--multimodal', '--name', '--name-only', '--name-status', '--nice', '--no-accept-pending', '--no-autopilot-install', '--no-autostash', '--no-capture', '--no-commit-id', '--no-confirm', '--no-cron', '--no-delegate', '--no-edit', '--no-embed', '--no-embed-cache', '--no-embedding', '--no-expand', '--no-extract', '--no-federated', '--no-filters', '--no-gpg-sign', '--no-hooks', '--no-lanes', '--no-llm', '--no-merges', '--no-migrate', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-seat', '--no-tags', '--no-verify', '--no-walk', '--no-write-fetch-head', '--non-interactive', '--not', '--now', '--older-than', '--once', '--only', '--operations', '--others', '--out', '--output', '--oversized', '--overwrite', '--page', '--parallel', '--params', '--parents', '--parked-code', '--parked-pushes', '--pat-file', '--path', '--path-format', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--port', '--prefer', '--prefer-postgres', '--preset', '--preview', '--probe', '--probe-pglite', '--profile', '--progress-interval', '--progress-json', '--project', '--provenance', '--provider', '--providers', '--prune-orphans', '--public-url', '--pull', '--pure', '--purge', '--push', '--push-only', '--query', '--question', '--queue', '--quiet', '--rate', '--reader-mode', '--reauth', '--rebase', '--rebuild', '--recommended', '--redact-paths', '--reference-date', '--refresh', '--refresh-operations', '--refresh-skills', '--regenerate', '--reissue', '--relative', '--relower', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--repair', '--repair-unknown-markers', '--replace', '--repo', '--request', '--request-id', '--require-clean', '--reranker', '--reset', '--reset-checkpoint', '--reset-default', '--resolve', '--restart-only', '--restore-only', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--reverse', '--review-lower', '--revision', '--right-only', '--rollback-to-source', '--root', '--run', '--sample', '--save', '--scope', '--scopes', '--search-mode', '--seat', '--section', '--segmented', '--select', '--self-transfer', '--semantic', '--session', '--session-id', '--set', '--set-upstream-to', '--shadow', '--short', '--show-current', '--show-object-format', '--show-prefix', '--show-token', '--show-toplevel', '--side', '--since', '--since-last-run', '--skills-dir', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--skip-verify', '--slot', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--stat', '--state', '--statement-timeout', '--status', '--stdin', '--stop-mcp', '--strategy', '--strict', '--suite', '--supabase', '--surface', '--swap-only', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--threshold', '--tier', '--timeout', '--timings', '--to', '--token', '--token-ttl', '--top-k', '--topo-order', '--trust', '--type', '--unindexed', '--uninstall', '--unsafe-bypass-dream-guard', '--unset-all', '--untracked-files', '--url', '--url-env', '--user', '--vacuum', '--vectors', '--verbose', '--verify', '--version', '--wait', '--wait-drain', '--warn-only', '--watch', '--what-if-threshold', '--window', '--workers', '--working-tree', '--workspace', '--write-tree', '--yes'],'dream': ['--audit-rejects', '--brain', '--cancel-unmatched', '--date', '--dir', '--drain', '--dry-run', '--eval-run', '--force', '--from', '--help', '--input', '--install', '--json', '--limit', '--list', '--max-usd', '--once', '--path', '--phase', '--probe', '--pull', '--reconcile-queue', '--since', '--source', '--source-id', '--threshold', '--to', '--unsafe-bypass-dream-guard', '--window', '--yes'],'edge-proposals': ['--access', '--add', '--all', '--all-applied', '--all-held', '--allowed-operations', '--asof', '--body', '--bound-slug-prefixes', '--brain', '--client', '--cursor', '--date', '--dated-since', '--days', '--entities', '--federated-read', '--from-index', '--full', '--fuzzy', '--group-by', '--help', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--page', '--params', '--path', '--phase', '--prefer', '--purge', '--recent', '--refresh-operations', '--row', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--status', '--surface', '--to', '--updated-after', '--url', '--yes'],'edges-backfill': ['--all-sources', '--brain', '--concurrency', '--help', '--json', '--max-chunks', '--source', '--workers'],- 'embed': ['--accept-pending', '--all', '--background', '--batch-size', '--brain', '--break-lock', '--budget-ms', '--catch-up', '--client', '--db-url', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--explain', '--facts', '--follow', '--force', '--group', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-null-signature', '--json', '--legacy-lock', '--max-cost', '--max-cost-usd', '--max-facts', '--max-runtime', '--max-usd', '--no-accept-pending', '--no-autopilot-install', '--no-confirm', '--no-embed', '--no-embedding', '--no-hooks', '--only', '--oversized', '--pace', '--pace-max-concurrency', '--path', '--priority', '--probe', '--progress-interval', '--progress-json', '--quiet', '--replace', '--scopes', '--show-toplevel', '--slugs', '--source', '--stale', '--status', '--supabase', '--surface', '--timeout', '--timings', '--to', '--wait', '--yes'],+ 'embed': ['--accept-pending', '--all', '--background', '--batch-size', '--brain', '--break-lock', '--budget-ms', '--catch-up', '--client', '--db-url', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--explain', '--facts', '--follow', '--force', '--group', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-null-signature', '--json', '--legacy-lock', '--max-cost', '--max-cost-usd', '--max-facts', '--max-runtime', '--max-usd', '--no-accept-pending', '--no-autopilot-install', '--no-confirm', '--no-embed', '--no-embedding', '--no-hooks', '--only', '--oversized', '--pace', '--pace-max-concurrency', '--path', '--priority', '--probe', '--progress-interval', '--progress-json', '--quiet', '--replace', '--scopes', '--section', '--show-toplevel', '--slugs', '--source', '--stale', '--status', '--supabase', '--surface', '--timeout', '--timings', '--to', '--wait', '--yes'],- 'embeddings': ['--accept-pending', '--background', '--brain', '--db-url', '--dim', '--embedding-dimensions', '--embedding-model', '--explain', '--follow', '--force', '--help', '--json', '--no-accept-pending', '--no-embedding', '--path', '--probe', '--progress-interval', '--progress-json', '--quiet', '--source', '--stale', '--status', '--supabase', '--timeout', '--timings', '--to', '--wait', '--yes'],+ 'embeddings': ['--accept-pending', '--background', '--brain', '--db-url', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--explain', '--follow', '--force', '--help', '--json', '--no-accept-pending', '--no-embedding', '--path', '--probe', '--progress-interval', '--progress-json', '--quiet', '--source', '--stale', '--status', '--supabase', '--timeout', '--timings', '--to', '--wait', '--yes'],'engine': ['--apply-rewrites', '--brain', '--break-lock', '--db-url', '--help', '--http', '--json', '--legacy-lock', '--path', '--prefer-postgres', '--probe', '--source', '--supabase', '--url', '--yes'],'enrich': ['--accept-pending', '--access', '--add', '--all', '--allowed-operations', '--apply', '--asof', '--audit', '--background', '--body', '--bound-slug-prefixes', '--brain', '--client', '--concurrency', '--confirm-destructive', '--conflicts', '--cursor', '--date', '--dated-since', '--days', '--dry-run', '--embedding-dimensions', '--embedding-model', '--entities', '--expect', '--explain', '--federated-read', '--follow', '--force', '--from-index', '--full', '--fuzzy', '--group', '--group-by', '--help', '--http', '--id', '--include-deleted', '--input', '--json', '--kind', '--limit', '--max-cost', '--max-cost-usd', '--max-runtime', '--max-usd', '--min-context', '--model', '--multimodal', '--no-accept-pending', '--no-autopilot-install', '--no-confirm', '--non-interactive', '--order', '--output', '--page', '--params', '--path', '--phase', '--prefer', '--preview', '--progress-interval', '--progress-json', '--purge', '--quiet', '--rate', '--recent', '--reenrich-after', '--refresh-operations', '--resume', '--row', '--scopes', '--session', '--since', '--slug', '--slugs', '--source', '--source-id', '--sources', '--stale', '--status', '--surface', '--thin', '--thin-threshold', '--timeout', '--timings', '--to', '--trust', '--types', '--updated-after', '--url', '--wait', '--workers', '--yes'],'errors': ['--brain', '--changed', '--help', '--json', '--source'],'eval': ['--ab-relational', '--accept-pending', '--against', '--allow-incomplete-judgments', '--allow-mixed-run-config', '--allow-regression', '--asof', '--autocut', '--background', '--baseline', '--batch', '--brain', '--budget-usd', '--budget-usd-answer', '--budget-usd-retrieval', '--by-type', '--by-type-floor', '--by-type-floor-metric', '--call-plan', '--call-plan-gate', '--candidate', '--capture-pool', '--committed-baseline', '--compare', '--compare-limit', '--concurrent', '--config-a', '--config-b', '--corpus', '--cycles', '--days', '--decide', '--decide-calibration', '--decide-dataset', '--decide-force-on', '--decide-provider', '--decide-threshold', '--dedup-cosine', '--dedup-max-per-page', '--dedup-type-ratio', '--dimensions', '--distance-min', '--draws', '--embed-cache', '--embedder', '--embedding-dimensions', '--embedding-model', '--error-unmatch', '--eval-pool-depth', '--expand', '--expansion', '--expansion-replay', '--expansion-variant-budget', '--explain', '--fact-extractor', '--fact-keys', '--fact-keys-max-usd', '--fact-keys-model', '--fixtures', '--follow', '--force-rechunk', '--format', '--from-capture', '--from-db', '--gold', '--grounding-min', '--harness', '--help', '--include-abstention', '--include-holdout', '--input', '--json', '--judge', '--judge-concurrency', '--judge-model', '--justification', '--k', '--keyword-only', '--limit', '--llm', '--max-pair-chars', '--max-tokens', '--max-usd', '--mcp-only', '--md', '--metric', '--min-recall', '--mode', '--model', '--models', '--modes', '--name-only', '--no-accept-pending', '--no-cache', '--no-embed-cache', '--no-expand', '--no-llm', '--no-trajectory', '--older-than', '--op-expand', '--out', '--output', '--output-dir', '--parallel', '--parity-baseline', '--porcelain', '--progress-interval', '--progress-json', '--qrels', '--queries-file', '--query', '--question-ids', '--questions', '--quiet', '--reader-max-tokens', '--reader-mode', '--receipt-dir', '--record', '--refresh-cache', '--request-id', '--reranker', '--resume-from', '--retrieval-only', '--rrf-k', '--rubric-version', '--runs', '--sample', '--sampling', '--save', '--search-pin', '--seed', '--severity', '--short', '--show-toplevel', '--since', '--skip-replay', '--slot', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--slug-prefix', '--source', '--stale', '--status', '--strategy', '--suite', '--suites', '--supabase', '--synopsis-cache', '--synopsis-concurrency', '--synopsis-max-usd', '--task', '--threshold', '--threshold-expected-top1', '--threshold-first-relevant-hit', '--threshold-jaccard', '--threshold-latency-multiplier', '--threshold-recall-at-k', '--threshold-top1', '--time-scope', '--time-scope-pool', '--timeout', '--timings', '--tool', '--top-k', '--top-regressions', '--until', '--untracked-files', '--update-baseline', '--usefulness-min', '--vectors', '--verbose', '--verify', '--via-operation', '--wait', '--with-code-intel', '--yes'],'export': ['--accept-pending', '--background', '--body', '--brain', '--dir', '--explain', '--fix', '--follow', '--help', '--json', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--repo', '--restore-only', '--slug-prefix', '--source', '--timeout', '--timings', '--type', '--wait'],- 'extract': ['--accept-pending', '--admin-intent', '--after-slug', '--apply', '--apply-preview', '--background', '--backup-verified', '--batch-check', '--body', '--brain', '--break-lock', '--by-mention', '--catch-up', '--checkpoint', '--client', '--concurrency', '--confirm', '--confirm-relocated-root', '--db-url', '--dir', '--dry-run', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--from-meetings', '--help', '--http', '--id', '--include-frontmatter', '--infer-dates', '--json', '--kind', '--legacy-lock', '--limit', '--literal-pathspecs', '--manifest', '--ner', '--no-accept-pending', '--pack', '--page', '--path', '--progress-interval', '--progress-json', '--prune-orphans', '--quiet', '--rebuild', '--repair-attendance', '--retry-held', '--scopes', '--self-transfer', '--since', '--source', '--source-id', '--stale', '--timeout', '--timings', '--type', '--verbose', '--wait', '--workers', '--yes'],+ 'extract': ['--accept-pending', '--admin-intent', '--after-slug', '--apply', '--apply-preview', '--background', '--backup-verified', '--body', '--brain', '--break-lock', '--by-mention', '--catch-up', '--checkpoint', '--client', '--concurrency', '--confirm', '--confirm-relocated-root', '--db-url', '--dir', '--dry-run', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--from-meetings', '--help', '--http', '--id', '--include-frontmatter', '--infer-dates', '--json', '--kind', '--legacy-lock', '--limit', '--manifest', '--ner', '--no-accept-pending', '--pack', '--page', '--path', '--progress-interval', '--progress-json', '--prune-orphans', '--quiet', '--rebuild', '--repair-attendance', '--retry-held', '--scopes', '--self-transfer', '--since', '--source', '--source-id', '--stale', '--timeout', '--timings', '--type', '--verbose', '--wait', '--workers', '--yes'],- 'extract-conversation-facts': ['--accept-pending', '--admin-intent', '--background', '--brain', '--concurrency', '--confirm-destructive', '--confirm-relocated-root', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--help', '--input', '--json', '--limit', '--manifest', '--max-cost', '--max-cost-usd', '--max-runtime', '--no-accept-pending', '--no-autopilot-install', '--no-embedding', '--output', '--override-disabled', '--path', '--progress-interval', '--progress-json', '--quiet', '--rate', '--segment-limit', '--self-transfer', '--since', '--sleep', '--slug', '--slugs', '--source', '--source-id', '--stale', '--status', '--supabase', '--timeout', '--timings', '--to', '--types', '--url', '--wait', '--workers', '--yes'],+ 'extract-conversation-facts': ['--accept-pending', '--admin-intent', '--background', '--body', '--brain', '--concurrency', '--confirm-destructive', '--confirm-relocated-root', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--grammar', '--help', '--input', '--json', '--limit', '--manifest', '--max-cost', '--max-cost-usd', '--max-runtime', '--no-accept-pending', '--no-autopilot-install', '--no-embedding', '--output', '--override-disabled', '--path', '--progress-interval', '--progress-json', '--quiet', '--rate', '--segment-limit', '--self-transfer', '--since', '--sleep', '--slug', '--slugs', '--source', '--source-id', '--stale', '--status', '--supabase', '--timeout', '--timings', '--to', '--types', '--url', '--wait', '--workers', '--yes'],'facts': ['--admin-intent', '--after-id', '--all', '--brain', '--clear', '--conversation', '--dry-run', '--entity', '--examples', '--expected-state', '--force', '--help', '--include-private', '--json', '--limit', '--list', '--max-cost-usd', '--max-usd', '--no-conflict-queue', '--no-llm', '--path', '--reset', '--retry-model', '--since', '--slug', '--slugs', '--source', '--source-id'],'features': ['--all', '--apply', '--auto', '--auto-fix', '--background', '--batch-size', '--brain', '--by-mention', '--catch-up', '--concurrency', '--dir', '--embedding-model', '--expect', '--explain', '--facts', '--force', '--from-meetings', '--held', '--help', '--images', '--include-frontmatter', '--include-null-signature', '--infer-dates', '--json', '--kind', '--max-cost', '--max-usd', '--ner', '--non-interactive', '--only', '--oversized', '--overwrite', '--pace', '--pace-max-concurrency', '--pack', '--page', '--path', '--priority', '--probe', '--prune-orphans', '--rebuild', '--refresh', '--repo', '--retry-held', '--save', '--since', '--slugs', '--source', '--source-id', '--stale', '--target', '--trust', '--type', '--verbose', '--workers', '--yes'],'feedback': ['--brain', '--help', '--json', '--page', '--source'],@@@ -75,14 -76,14 +76,14 @@@'graph-query': ['--brain', '--depth', '--direction', '--help', '--hop', '--include-foreign', '--json', '--mcp-only', '--request-id', '--source', '--type'],'hook': ['--allow-unverified-remote', '--auto', '--batch-check', '--brain', '--branch', '--cached', '--count', '--diff-filter', '--enable', '--end-of-options', '--env', '--get', '--harness', '--help', '--jq', '--json', '--limit', '--name-only', '--others', '--pat-file', '--path', '--porcelain', '--pure', '--quiet', '--remove', '--seat', '--session', '--show-current', '--show-toplevel', '--since', '--source', '--yes'],'import': ['--accept-pending', '--admin-intent', '--allow-empty', '--allow-noncanonical-root', '--apply', '--background', '--batch-check', '--brain', '--cached', '--confirm-relocated-root', '--diff-filter', '--dim', '--embedding-dimensions', '--embedding-model', '--empty', '--exclude', '--exclude-standard', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--force-rechunk', '--format', '--fresh', '--help', '--include-gitignored', '--is-shallow-repository', '--json', '--literal-pathspecs', '--log-noop', '--manifest', '--name-only', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-gpg-sign', '--no-pull', '--no-renames', '--no-verify', '--only', '--others', '--path', '--probe', '--progress-interval', '--progress-json', '--quiet', '--self-transfer', '--show-toplevel', '--skip-failed', '--slugs', '--source', '--source-id', '--stale', '--status', '--supabase', '--timeout', '--timings', '--to', '--url', '--verify', '--wait', '--workers'],- 'init': ['--access', '--acknowledge-managed', '--adopt', '--after', '--aliases', '--all', '--all-drifted', '--allow-create-db', '--allow-docker', '--apply', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--background', '--batch', '--bound-slug-prefixes', '--brain', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--catch-up', '--chat-model', '--check', '--class', '--clear-never-installed', '--cli-socket', '--client', '--close', '--confirm-relocated-root', '--conflicts', '--content-root', '--continue', '--conversation', '--cursor', '--db-only', '--dest', '--detach', '--detail', '--dim', '--disable', '--drain', '--embedding-dimensions', '--embedding-model', '--enable', '--entity', '--exclude', '--expand', '--expansion-model', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--explain', '--facts', '--fast', '--file', '--fix', '--force', '--force-retry', '--format', '--fresh-token', '--from', '--from-meetings', '--full', '--git', '--grammar', '--grant-types', '--group-by', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--input', '--install', '--issuer-url', '--json', '--keep', '--keep-checkout', '--key', '--lanes', '--legacy-lock', '--limit', '--list', '--local-postgres', '--markdown', '--max-cost-usd', '--max-usd', '--mcp-only', '--mcp-url', '--migrate-only', '--migration', '--min-n', '--model', '--no-autopilot-install', '--no-autostash', '--no-delegate', '--no-embed', '--no-embedding', '--no-expand', '--no-extract', '--no-filters', '--no-git', '--no-lanes', '--no-llm', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--older-than', '--once', '--only', '--output', '--oversized', '--page', '--params', '--pat-file', '--path', '--pglite', '--phase', '--plan', '--prefer', '--prefer-postgres', '--preview', '--probe', '--profile', '--provenance', '--providers', '--pull', '--purge', '--push-only', '--query', '--question', '--quiet', '--rebase', '--rebuild', '--redact-paths', '--reference-date', '--remediate', '--remove', '--repair', '--repair-unknown-markers', '--repo', '--request', '--request-id', '--reset', '--resolve', '--resume', '--retry-failed', '--retry-parked', '--save', '--schema-pack', '--scope', '--scopes', '--search-mode', '--section', '--segmented', '--self-transfer', '--semantic', '--session', '--session-id', '--show-toplevel', '--side', '--since', '--since-last-run', '--skip', '--skip-embed-check', '--skip-failed', '--slug', '--slugs', '--source', '--source-id', '--src-subpath', '--stale', '--state', '--status', '--stdin', '--strategy', '--supabase', '--surface', '--tier', '--timeout', '--to', '--token', '--touchpoint', '--url', '--url-env', '--user', '--vacuum', '--verbose', '--version', '--wait', '--warn-only', '--watch', '--working-tree', '--workspace', '--yes'],- 'init': ['--access', '--acknowledge-managed', '--adopt', '--after', '--aliases', '--all', '--all-drifted', '--allow-create-db', '--allow-docker', '--allow-outside-source-root', '--applied', '--apply', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--background', '--batch', '--bound-slug-prefixes', '--brain', '--branch', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--catch-up', '--channel', '--chat-model', '--check', '--class', '--clear-never-installed', '--cli-socket', '--client', '--close', '--confirm-relocated-root', '--conflicts', '--content-root', '--conversation', '--cursor', '--db-only', '--deadline', '--dest', '--detach', '--detail', '--dim', '--disable', '--drain', '--embedding-dimensions', '--embedding-model', '--enable', '--entity', '--exclude', '--expand', '--expansion-model', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--explain', '--facts', '--fast', '--federated', '--file', '--fix', '--force', '--force-retry', '--format', '--fresh-token', '--from', '--from-meetings', '--full', '--git', '--grant-types', '--group-by', '--harness', '--held', '--help', '--hold-state', '--holds', '--http', '--id', '--images', '--include-ambiguous', '--include-cross-entity', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--infer-dates', '--install', '--issuer-url', '--job-isolation', '--json', '--keep', '--keep-checkout', '--key', '--kind', '--lanes', '--legacy-lock', '--limit', '--list', '--local-postgres', '--markdown', '--max-cost-usd', '--max-facts', '--max-requests', '--max-rss', '--max-usd', '--mcp-only', '--mcp-url', '--migrate-only', '--migration', '--min-n', '--mode', '--model', '--no-autopilot-install', '--no-autostash', '--no-delegate', '--no-embed', '--no-embedding', '--no-expand', '--no-extract', '--no-federated', '--no-filters', '--no-git', '--no-lanes', '--no-llm', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-verify', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--older-than', '--once', '--only', '--oversized', '--page', '--params', '--parked-code', '--parked-pushes', '--pat-file', '--path', '--pending', '--pglite', '--phase', '--plan', '--prefer', '--prefer-postgres', '--preview', '--probe', '--profile', '--provenance', '--providers', '--pull', '--purge', '--push-only', '--query', '--question', '--quiet', '--rebase', '--rebuild', '--redact-paths', '--reference-date', '--remediate', '--remove', '--repair', '--repair-unknown-markers', '--repo', '--request', '--require-clean', '--reset', '--resolve', '--restart-only', '--resume', '--retry-failed', '--retry-parked', '--save', '--schema-pack', '--scope', '--scopes', '--search-mode', '--section', '--self-transfer', '--semantic', '--session', '--session-id', '--show-toplevel', '--side', '--since', '--since-last-run', '--skip', '--skip-embed-check', '--skip-failed', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--status', '--stdin', '--stop-mcp', '--strategy', '--supabase', '--surface', '--swap-only', '--tier', '--timeout', '--to', '--token', '--touchpoint', '--type', '--url', '--url-env', '--user', '--vacuum', '--verbose', '--version', '--wait', '--warn-only', '--watch', '--working-tree', '--workspace', '--yes'],++ 'init': ['--access', '--acknowledge-managed', '--adopt', '--after', '--aliases', '--all', '--all-drifted', '--allow-create-db', '--allow-docker', '--allow-outside-source-root', '--applied', '--apply', '--assign-corpus', '--audit', '--auto', '--auto-additive', '--background', '--batch', '--bound-slug-prefixes', '--brain', '--branch', '--break-lock', '--budget-ms', '--budget-policy', '--budget-tokens', '--budget-usd', '--by-mention', '--catch-up', '--channel', '--chat-model', '--check', '--class', '--clear-never-installed', '--cli-socket', '--client', '--close', '--confirm-relocated-root', '--conflicts', '--content-root', '--continue', '--conversation', '--cursor', '--db-only', '--deadline', '--dest', '--detach', '--detail', '--dim', '--disable', '--drain', '--embedding-dimensions', '--embedding-model', '--enable', '--entity', '--exclude', '--expand', '--expansion-model', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--explain', '--facts', '--fast', '--federated', '--file', '--fix', '--force', '--force-retry', '--format', '--fresh-token', '--from', '--from-meetings', '--full', '--git', '--grammar', '--grant-types', '--group-by', '--harness', '--held', '--help', '--hold-state', '--holds', '--http', '--id', '--images', '--include-ambiguous', '--include-cross-entity', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--infer-dates', '--input', '--install', '--issuer-url', '--job-isolation', '--json', '--keep', '--keep-checkout', '--key', '--kind', '--lanes', '--legacy-lock', '--limit', '--list', '--local-postgres', '--markdown', '--max-cost-usd', '--max-facts', '--max-requests', '--max-rss', '--max-usd', '--mcp-only', '--mcp-url', '--migrate-only', '--migration', '--min-n', '--mode', '--model', '--no-autopilot-install', '--no-autostash', '--no-delegate', '--no-embed', '--no-embedding', '--no-expand', '--no-extract', '--no-federated', '--no-filters', '--no-git', '--no-lanes', '--no-llm', '--no-probe', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-verify', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--older-than', '--once', '--only', '--output', '--oversized', '--page', '--params', '--parked-code', '--parked-pushes', '--pat-file', '--path', '--pending', '--pglite', '--phase', '--plan', '--prefer', '--prefer-postgres', '--preview', '--probe', '--profile', '--provenance', '--providers', '--pull', '--purge', '--push-only', '--query', '--question', '--quiet', '--rebase', '--rebuild', '--redact-paths', '--reference-date', '--remediate', '--remove', '--repair', '--repair-unknown-markers', '--repo', '--request', '--request-id', '--require-clean', '--reset', '--resolve', '--restart-only', '--resume', '--retry-failed', '--retry-parked', '--save', '--schema-pack', '--scope', '--scopes', '--search-mode', '--section', '--segmented', '--self-transfer', '--semantic', '--session', '--session-id', '--show-toplevel', '--side', '--since', '--since-last-run', '--skip', '--skip-embed-check', '--skip-failed', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--status', '--stdin', '--stop-mcp', '--strategy', '--supabase', '--surface', '--swap-only', '--tier', '--timeout', '--to', '--token', '--touchpoint', '--type', '--url', '--url-env', '--user', '--vacuum', '--verbose', '--version', '--wait', '--warn-only', '--watch', '--working-tree', '--workspace', '--yes'],'integrations': ['--auto', '--brain', '--dry-run', '--help', '--json', '--overwrite', '--refresh', '--source', '--target'],'integrity': ['--accept-pending', '--auto', '--backend', '--background', '--body', '--brain', '--check', '--confidence', '--cost', '--dry-run', '--explain', '--follow', '--fresh', '--help', '--json', '--limit', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--review-lower', '--skip-bare-tweet', '--skip-urls', '--source', '--timeout', '--timings', '--type', '--wait'],- 'jobs': ['--abbrev-ref', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt-slug-path', '--aliases', '--all', '--all-sources', '--allow-empty', '--allow-shell-jobs', '--allowed-operations', '--apply', '--asof', '--auto', '--background', '--backoff-delay', '--backoff-jitter', '--backoff-type', '--batch-size', '--body', '--bound-slug-prefixes', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--check', '--cli-path', '--client', '--close', '--cluster-errors', '--concurrency', '--confidence', '--confirm-destructive', '--confirm-relocated-root', '--cost-estimate', '--cursor', '--date', '--dated-since', '--days', '--delay', '--detach', '--detail', '--diff-filter', '--dir', '--drain', '--drain-timeout', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entities', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-state', '--explain', '--facts', '--federated-read', '--ff-only', '--file', '--filters', '--fix', '--follow', '--force', '--force-break-lock', '--force-retry', '--format', '--fresh', '--from-index', '--from-meetings', '--full', '--full-history', '--fuzzy', '--git', '--grammar', '--grammar-diagnostics', '--group', '--group-by', '--hard-deadline', '--health-interval', '--held', '--help', '--http', '--id', '--idempotency-key', '--ids', '--images', '--include-ambiguous', '--include-deleted', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--infer-dates', '--inject-bootstrap', '--inline', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--job-id', '--job-isolation', '--json', '--keep', '--kind', '--lanes', '--legacy-lock', '--limit', '--list', '--lock-duration-ms', '--log-noop', '--markdown', '--max-age', '--max-attempts', '--max-cost', '--max-cost-usd', '--max-crashes', '--max-rss', '--max-sources', '--max-stalled', '--max-usd', '--max-waiting', '--mcp-only', '--migration', '--min-context', '--missing-path', '--mode', '--model', '--multimodal', '--name-only', '--ner', '--nice', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-confirm', '--no-delegate', '--no-embed', '--no-embedding', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-inject', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-worker', '--non-interactive', '--now', '--older-than', '--once', '--only', '--order', '--others', '--output', '--override-disabled', '--oversized', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--pat-file', '--path', '--pause', '--pglite', '--phase', '--pid-file', '--plan', '--port', '--prefer', '--preview', '--priority', '--probe', '--prune-orphans', '--pull', '--purge', '--question', '--queue', '--queue-only', '--quiet', '--rate', '--reason', '--rebuild', '--recent', '--record', '--redact-paths', '--redact-secrets', '--reenrich-after', '--refresh-ms', '--refresh-operations', '--remediate', '--repo', '--request-id', '--reset-checkpoint', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--review-lower', '--row', '--scope', '--scopes', '--section', '--segment-limit', '--segmented', '--select', '--self-transfer', '--serial', '--session', '--show-toplevel', '--side', '--sigkill-rescue', '--since', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--sleep', '--slug', '--slugs', '--source', '--source-guard', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--statement-timeout', '--status', '--strategy', '--suites', '--surface', '--swap-only', '--target', '--thin', '--thin-threshold', '--tier', '--timeout', '--timeout-ms', '--to', '--token', '--trust', '--type', '--types', '--uninstall', '--updated-after', '--url', '--user', '--vectors', '--verbose', '--verify', '--version', '--watch', '--wedge-rescue', '--workers', '--working-tree', '--yes'],- 'lint': ['--abbrev-ref', '--accept-pending', '--adopt-slug-path', '--audit', '--autostash', '--background', '--brain', '--branch', '--cached', '--client', '--confirm-relocated-root', '--conflicts', '--dry-run', '--enable', '--exclude', '--expect-remote', '--expected-epoch', '--expected-revision', '--explain', '--ff-only', '--file', '--fix', '--follow', '--force', '--get', '--git-dir', '--git-path', '--grammar-diagnostics', '--hard', '--help', '--id', '--infer-entity', '--is-inside-work-tree', '--json', '--keep', '--local', '--local-env-vars', '--manifest', '--max-cost-usd', '--no-accept-pending', '--no-autostash', '--no-cron', '--no-pull', '--no-tags', '--no-verify', '--only', '--pat-file', '--path', '--prefer', '--preview', '--probe', '--progress-interval', '--progress-json', '--provenance', '--pull', '--purge', '--push-only', '--quiet', '--rebase', '--require-clean', '--resolve', '--scopes', '--self-transfer', '--short', '--show-toplevel', '--slug', '--slugs', '--source', '--source-id', '--timeout', '--timings', '--unset-all', '--wait', '--yes'],- 'jobs': ['--abbrev-ref', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt-slug-path', '--aliases', '--all', '--all-sources', '--allow-empty', '--allow-shell-jobs', '--allowed-operations', '--apply', '--asof', '--auto', '--background', '--backoff-delay', '--backoff-jitter', '--backoff-type', '--batch-size', '--body', '--bound-slug-prefixes', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--channel', '--check', '--cli-path', '--client', '--close', '--cluster-errors', '--concurrency', '--confidence', '--confirm-destructive', '--confirm-relocated-root', '--cost-estimate', '--cursor', '--date', '--dated-since', '--days', '--delay', '--detach', '--detail', '--diff-filter', '--dir', '--drain', '--drain-timeout', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entities', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-state', '--explain', '--facts', '--federated-read', '--ff-only', '--file', '--filters', '--finished-since', '--fix', '--follow', '--force', '--force-break-lock', '--force-retry', '--format', '--fresh', '--from-index', '--from-meetings', '--full', '--full-history', '--fuzzy', '--git', '--grammar-diagnostics', '--group', '--group-by', '--hard-deadline', '--health-interval', '--held', '--help', '--hold-state', '--http', '--id', '--idempotency-key', '--ids', '--images', '--include-ambiguous', '--include-deleted', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--infer-dates', '--inject-bootstrap', '--inline', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--job-id', '--job-isolation', '--json', '--keep', '--kind', '--lanes', '--legacy-lock', '--limit', '--list', '--local', '--lock-duration-ms', '--log-noop', '--markdown', '--max-age', '--max-attempts', '--max-cost', '--max-cost-usd', '--max-crashes', '--max-rss', '--max-sources', '--max-stalled', '--max-usd', '--max-waiting', '--mcp-only', '--migration', '--min-context', '--missing-path', '--mode', '--model', '--multimodal', '--name', '--name-only', '--ner', '--nice', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-confirm', '--no-delegate', '--no-embed', '--no-embedding', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-inject', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-verify', '--no-worker', '--non-interactive', '--now', '--older-than', '--once', '--only', '--order', '--others', '--output', '--override-disabled', '--oversized', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--parked-code', '--pat-file', '--path', '--pause', '--pglite', '--phase', '--pid-file', '--plan', '--port', '--prefer', '--preview', '--priority', '--probe', '--prune-orphans', '--pull', '--purge', '--question', '--queue', '--queue-only', '--quiet', '--rate', '--reason', '--rebuild', '--recent', '--record', '--redact-paths', '--redact-secrets', '--reenrich-after', '--refresh-ms', '--refresh-operations', '--remediate', '--repo', '--request-id', '--reset-checkpoint', '--restart-only', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--review-lower', '--row', '--scope', '--scopes', '--section', '--segment-limit', '--select', '--self-transfer', '--serial', '--session', '--show-toplevel', '--side', '--sigkill-rescue', '--since', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--sleep', '--slug', '--slugs', '--source', '--source-guard', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--statement-timeout', '--status', '--stop-mcp', '--strategy', '--suites', '--surface', '--swap-only', '--target', '--thin', '--thin-threshold', '--tier', '--timeout', '--timeout-ms', '--to', '--token', '--trust', '--type', '--types', '--uninstall', '--updated-after', '--url', '--user', '--vectors', '--verbose', '--verify', '--version', '--watch', '--wedge-rescue', '--workers', '--working-tree', '--yes'],++ 'jobs': ['--abbrev-ref', '--access', '--account', '--acknowledge-managed', '--add', '--admin-intent', '--adopt-slug-path', '--aliases', '--all', '--all-sources', '--allow-empty', '--allow-shell-jobs', '--allowed-operations', '--apply', '--asof', '--auto', '--background', '--backoff-delay', '--backoff-jitter', '--backoff-type', '--batch-size', '--body', '--bound-slug-prefixes', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--channel', '--check', '--cli-path', '--client', '--close', '--cluster-errors', '--concurrency', '--confidence', '--confirm-destructive', '--confirm-relocated-root', '--cost-estimate', '--cursor', '--date', '--dated-since', '--days', '--delay', '--detach', '--detail', '--diff-filter', '--dir', '--drain', '--drain-timeout', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entities', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-state', '--explain', '--facts', '--federated-read', '--ff-only', '--file', '--filters', '--finished-since', '--fix', '--follow', '--force', '--force-break-lock', '--force-retry', '--format', '--fresh', '--from-index', '--from-meetings', '--full', '--full-history', '--fuzzy', '--git', '--grammar', '--grammar-diagnostics', '--group', '--group-by', '--hard-deadline', '--health-interval', '--held', '--help', '--hold-state', '--http', '--id', '--idempotency-key', '--ids', '--images', '--include-ambiguous', '--include-deleted', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--infer-dates', '--inject-bootstrap', '--inline', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--job-id', '--job-isolation', '--json', '--keep', '--kind', '--lanes', '--legacy-lock', '--limit', '--list', '--local', '--lock-duration-ms', '--log-noop', '--markdown', '--max-age', '--max-attempts', '--max-cost', '--max-cost-usd', '--max-crashes', '--max-rss', '--max-sources', '--max-stalled', '--max-usd', '--max-waiting', '--mcp-only', '--migration', '--min-context', '--missing-path', '--mode', '--model', '--multimodal', '--name', '--name-only', '--ner', '--nice', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-confirm', '--no-delegate', '--no-embed', '--no-embedding', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-inject', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-restart', '--no-schema-pack', '--no-verify', '--no-worker', '--non-interactive', '--now', '--older-than', '--once', '--only', '--order', '--others', '--output', '--override-disabled', '--oversized', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--parked-code', '--pat-file', '--path', '--pause', '--pglite', '--phase', '--pid-file', '--plan', '--port', '--prefer', '--preview', '--priority', '--probe', '--prune-orphans', '--pull', '--purge', '--question', '--queue', '--queue-only', '--quiet', '--rate', '--reason', '--rebuild', '--recent', '--record', '--redact-paths', '--redact-secrets', '--reenrich-after', '--refresh-ms', '--refresh-operations', '--remediate', '--repo', '--request-id', '--reset-checkpoint', '--restart-only', '--resume', '--retry-failed', '--retry-global', '--retry-held', '--retry-parked', '--review-lower', '--row', '--scope', '--scopes', '--section', '--segment-limit', '--segmented', '--select', '--self-transfer', '--serial', '--session', '--show-toplevel', '--side', '--sigkill-rescue', '--since', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--sleep', '--slug', '--slugs', '--source', '--source-guard', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--statement-timeout', '--status', '--stop-mcp', '--strategy', '--suites', '--surface', '--swap-only', '--target', '--thin', '--thin-threshold', '--tier', '--timeout', '--timeout-ms', '--to', '--token', '--trust', '--type', '--types', '--uninstall', '--updated-after', '--url', '--user', '--vectors', '--verbose', '--verify', '--version', '--watch', '--wedge-rescue', '--workers', '--working-tree', '--yes'],+ 'lint': ['--abbrev-ref', '--accept-pending', '--add', '--adopt-slug-path', '--audit', '--autostash', '--background', '--brain', '--branch', '--cached', '--client', '--confirm-relocated-root', '--conflicts', '--dry-run', '--enable', '--exclude', '--expect-remote', '--expected-epoch', '--expected-revision', '--explain', '--ff-only', '--file', '--fix', '--follow', '--force', '--get', '--get-all', '--git-dir', '--git-path', '--grammar-diagnostics', '--hard', '--help', '--id', '--infer-entity', '--is-inside-work-tree', '--json', '--keep', '--keep-checkout', '--local', '--local-env-vars', '--manifest', '--max-cost-usd', '--no-accept-pending', '--no-autostash', '--no-cron', '--no-pull', '--no-tags', '--no-verify', '--older-than', '--only', '--pat-file', '--path', '--prefer', '--preview', '--probe', '--progress-interval', '--progress-json', '--provenance', '--pull', '--purge', '--push-only', '--quiet', '--rebase', '--require-clean', '--resolve', '--scopes', '--self-transfer', '--short', '--show-toplevel', '--slug', '--slugs', '--source', '--source-id', '--timeout', '--timings', '--unset-all', '--wait', '--yes'],'loops': ['--all', '--as-of', '--brain', '--dry-run', '--fail-fast', '--help', '--json', '--note', '--source', '--stale-ok', '--status', '--tools-json', '--top', '--type'],'lsd': ['--brain', '--force-resume', '--help', '--json', '--judge-model', '--limit', '--list-runs', '--max-cost', '--max-far-set', '--max-ideas-per-judge-call', '--max-usd', '--no-save', '--resume', '--save', '--source', '--strict-budget', '--yes'],- 'maintain': ['--account', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--apply', '--assign-corpus', '--audit', '--background', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--concurrency', '--conflicts', '--contacts-dir', '--content-audit', '--continue', '--conversation', '--count', '--detach', '--detail', '--dim', '--dir', '--drain', '--dry-run', '--enable', '--entity', '--expect', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--fix', '--follow', '--force', '--force-retry', '--force-schema', '--format', '--from-meetings', '--full', '--grammar', '--group-by', '--hard-deadline', '--harness', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-repairs', '--index-audit', '--infer-dates', '--input', '--install', '--json', '--keep-checkout', '--kind', '--lang', '--left-right', '--limit', '--link-source', '--link-type', '--list', '--locks', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--migrate-legacy', '--migrate-only', '--multimodal', '--name', '--name-only', '--ner', '--no-autopilot-install', '--no-capture', '--no-delegate', '--no-embed', '--no-pull', '--once', '--only', '--operations', '--output', '--oversized', '--pack', '--page', '--parallel', '--params', '--path', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--preview', '--probe', '--probe-pglite', '--project', '--providers', '--prune-orphans', '--purge', '--push-only', '--query', '--question', '--queue', '--reader-mode', '--reauth', '--rebuild', '--regenerate', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--request-id', '--reset', '--reset-default', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--safe', '--scope', '--scopes', '--show-current', '--show-toplevel', '--since', '--skills-dir', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--stale', '--state', '--status', '--supabase', '--symbol-kind', '--takes-holders', '--target', '--target-score', '--tier', '--to', '--token', '--top-k', '--type', '--unindexed', '--url-env', '--user', '--verbose', '--version', '--window', '--workers', '--yes'],- 'maintain': ['--account', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--allow-outside-source-root', '--apply', '--assign-corpus', '--audit', '--background', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--class', '--concurrency', '--conflicts', '--contacts-dir', '--content-audit', '--conversation', '--count', '--detach', '--detail', '--dim', '--dir', '--drain', '--dry-run', '--enable', '--entity', '--expect', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--fix', '--follow', '--force', '--force-retry', '--force-schema', '--format', '--from-meetings', '--full', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-repairs', '--index-audit', '--infer-dates', '--install', '--json', '--keep-checkout', '--kind', '--lang', '--left-right', '--limit', '--link-source', '--link-type', '--list', '--locks', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--migrate-legacy', '--migrate-only', '--multimodal', '--name', '--name-only', '--ner', '--no-autopilot-install', '--no-capture', '--no-delegate', '--no-embed', '--no-pull', '--no-renames', '--once', '--only', '--operations', '--oversized', '--pack', '--page', '--parallel', '--params', '--path', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--preview', '--probe', '--probe-pglite', '--project', '--providers', '--prune-orphans', '--pull', '--push-only', '--query', '--question', '--queue', '--quiet', '--reader-mode', '--reauth', '--rebuild', '--regenerate', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--request-id', '--reset', '--reset-default', '--restart-only', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--safe', '--scope', '--scopes', '--show-current', '--show-toplevel', '--since', '--skills-dir', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--staged', '--stale', '--stat', '--state', '--status', '--supabase', '--symbol-kind', '--takes-holders', '--target', '--target-score', '--tier', '--to', '--token', '--top-k', '--type', '--unindexed', '--url-env', '--verbose', '--verify', '--version', '--window', '--workers', '--yes'],++ 'maintain': ['--account', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--allow-outside-source-root', '--apply', '--assign-corpus', '--audit', '--background', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--class', '--concurrency', '--conflicts', '--contacts-dir', '--content-audit', '--continue', '--conversation', '--count', '--detach', '--detail', '--dim', '--dir', '--drain', '--dry-run', '--enable', '--entity', '--expect', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--fix', '--follow', '--force', '--force-retry', '--force-schema', '--format', '--from-meetings', '--full', '--grammar', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-repairs', '--index-audit', '--infer-dates', '--input', '--install', '--json', '--keep-checkout', '--kind', '--lang', '--left-right', '--limit', '--link-source', '--link-type', '--list', '--locks', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--migrate-legacy', '--migrate-only', '--multimodal', '--name', '--name-only', '--ner', '--no-autopilot-install', '--no-capture', '--no-delegate', '--no-embed', '--no-pull', '--no-renames', '--once', '--only', '--operations', '--output', '--oversized', '--pack', '--page', '--parallel', '--params', '--path', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--preview', '--probe', '--probe-pglite', '--project', '--providers', '--prune-orphans', '--pull', '--purge', '--push-only', '--query', '--question', '--queue', '--quiet', '--reader-mode', '--reauth', '--rebuild', '--regenerate', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--request-id', '--reset', '--reset-default', '--restart-only', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--safe', '--scope', '--scopes', '--show-current', '--show-toplevel', '--since', '--skills-dir', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--staged', '--stale', '--stat', '--state', '--status', '--supabase', '--symbol-kind', '--takes-holders', '--target', '--target-score', '--tier', '--to', '--token', '--top-k', '--type', '--unindexed', '--url-env', '--verbose', '--verify', '--version', '--window', '--workers', '--yes'],'mcp': ['--admin-token-file', '--agent', '--arg', '--bearer-token-env-var', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--budget-usd-per-day', '--client', '--credentials-file', '--credentials-out', '--delegate', '--delegated-namespace', '--delegated-slug-prefixes', '--dry-run', '--enable-dcr', '--federated-read', '--flow', '--force', '--funnel', '--harness', '--header', '--help', '--if-version', '--install', '--issuer-url', '--json', '--limit', '--mcp-only', '--mcp-url', '--no-install', '--no-service', '--no-tailscale', '--oauth-client-id', '--oauth-client-secret', '--oauth-request', '--port', '--profile', '--queue', '--redirect-uri', '--remove', '--resume', '--root', '--scope', '--scopes', '--skills', '--source', '--status', '--surface', '--timeout-ms', '--token', '--token-endpoint-auth-method', '--token-ttl', '--url', '--yes'],'migrate': ['--accept-pending', '--admin-intent', '--all', '--apply', '--background', '--batch-size', '--brain', '--catch-up', '--dim', '--drain-timeout', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--expected-epoch', '--expected-state', '--explain', '--facts', '--follow', '--force', '--force-retry', '--harness', '--held', '--help', '--ignore-env-override', '--images', '--include-null-signature', '--json', '--locks', '--manifest', '--max-cost', '--max-cost-usd', '--max-usd', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-migrate', '--non-interactive', '--only', '--oversized', '--pace', '--pace-max-concurrency', '--path', '--pglite', '--plan', '--priority', '--probe', '--progress-interval', '--progress-json', '--quiet', '--replace', '--reranker', '--resume', '--retarget', '--rollback-to-source', '--scope', '--skip-verify', '--slugs', '--source', '--stale', '--statement-timeout', '--status', '--timeout', '--timings', '--to', '--trigger-bypass', '--trust', '--url', '--url-env', '--wait', '--yes'],'models': ['--batch', '--brain', '--concurrent', '--cycles', '--dim', '--dimensions', '--embedding-dimensions', '--embedding-model', '--help', '--json', '--limit', '--max-tokens', '--max-usd', '--output', '--receipt-dir', '--skip', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--source', '--status', '--task', '--to', '--yes'],@@@ -90,10 -91,10 +91,10 @@@'notability-eval': ['--brain', '--embedding-dimensions', '--embedding-model', '--help', '--in', '--json', '--out', '--repo', '--skip-llm', '--source', '--status', '--target-high', '--target-low', '--target-medium'],'notices': ['--brain', '--help', '--json', '--source'],'onboard': ['--access', '--add', '--all', '--allowed-operations', '--apply', '--asof', '--auto', '--body', '--bound-slug-prefixes', '--brain', '--check', '--client', '--cursor', '--date', '--dated-since', '--days', '--entities', '--explain', '--federated-read', '--from-index', '--from-pages', '--full', '--fuzzy', '--group-by', '--help', '--history', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--only', '--page', '--params', '--path', '--phase', '--prefer', '--probe', '--purge', '--recent', '--refresh-operations', '--remediate', '--remediation-plan', '--resume', '--row', '--save', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--target-score', '--to', '--updated-after', '--url', '--yes'],- 'orphans': ['--accept-pending', '--background', '--brain', '--count', '--explain', '--follow', '--force', '--help', '--include-pseudo', '--json', '--mode', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--source', '--timeout', '--timings', '--wait'],- 'pages': ['--brain', '--dry-run', '--force', '--help', '--json', '--limit', '--older-than', '--retry-parked', '--source', '--source-id', '--state', '--yes'],+ 'orphans': ['--accept-pending', '--all', '--background', '--brain', '--count', '--cursor', '--explain', '--follow', '--force', '--help', '--include-pseudo', '--json', '--limit', '--mode', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--source', '--timeout', '--timings', '--wait'],+ 'pages': ['--brain', '--dry-run', '--force', '--help', '--json', '--limit', '--literal-pathspecs', '--name-only', '--older-than', '--quiet', '--retry-parked', '--show-toplevel', '--source', '--source-id', '--state', '--verify', '--yes'],'pglite-repair': ['--brain', '--break-lock', '--dry-run', '--expect', '--help', '--http', '--json', '--legacy-lock', '--path', '--probe', '--source', '--vectors', '--yes'],- 'post-upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--resume', '--retry-global', '--search-mode', '--segmented', '--self-transfer', '--skills-dir', '--skip-verify', '--slug', '--source', '--stale', '--statement-timeout', '--status', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--vectors', '--verify', '--version', '--workers', '--yes'],- 'post-upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--channel', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--is-ancestor', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-restart', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--restart-only', '--resume', '--retry-global', '--search-mode', '--self-transfer', '--skills-dir', '--skip-verify', '--source', '--stale', '--statement-timeout', '--status', '--stop-mcp', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--value', '--vectors', '--verify', '--version', '--workers', '--yes'],++ 'post-upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--channel', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--is-ancestor', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-restart', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--restart-only', '--resume', '--retry-global', '--search-mode', '--segmented', '--self-transfer', '--skills-dir', '--skip-verify', '--slug', '--source', '--stale', '--statement-timeout', '--status', '--stop-mcp', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--value', '--vectors', '--verify', '--version', '--workers', '--yes'],'pricing': ['--brain', '--help', '--input', '--json', '--max-cost', '--max-runtime', '--output', '--rate', '--source'],'projections': ['--brain', '--dry-run', '--enable-dcr', '--help', '--http', '--images', '--install', '--json', '--limit', '--now', '--only', '--port', '--public-url', '--remove', '--source', '--stale', '--status', '--surface', '--user'],'protocol': ['--access', '--add', '--all', '--allowed-operations', '--asof', '--body', '--bound-slug-prefixes', '--brain', '--client', '--cursor', '--date', '--dated-since', '--days', '--entities', '--federated-read', '--from-index', '--full', '--fuzzy', '--group-by', '--help', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--page', '--params', '--path', '--phase', '--prefer', '--provenance', '--purge', '--recent', '--refresh-operations', '--row', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--synthesize', '--target', '--to', '--token', '--updated-after', '--url', '--yes'],@@@ -101,9 -102,9 +102,9 @@@'publish': ['--accent', '--bg', '--border', '--brain', '--card-bg', '--code-bg', '--error', '--fg', '--help', '--json', '--link', '--muted', '--out', '--password', '--source', '--title'],'quarantine': ['--accept-all', '--accept-pending', '--admin-intent', '--all', '--apply', '--background', '--body', '--brain', '--break-lock', '--client', '--confirm-relocated-root', '--db-url', '--dir', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--force-rechunk', '--from', '--help', '--http', '--id', '--include-flagged', '--json', '--kind', '--legacy-lock', '--limit', '--manifest', '--no-accept-pending', '--no-embed', '--path', '--progress-interval', '--progress-json', '--quiet', '--reason', '--reason-family', '--remove', '--resume', '--scopes', '--self-transfer', '--since', '--source', '--source-id', '--stale', '--timeout', '--timings', '--undo', '--uri-prefix', '--version', '--wait', '--yes'],'questions': ['--brain', '--defer', '--entity', '--fail-fast', '--full', '--help', '--id', '--include-archived', '--json', '--prefix', '--probe', '--publish', '--source', '--tools-json', '--wait-ms', '--yes'],- 'recall': ['--accept-pending', '--access', '--add', '--all', '--all-subjects', '--allowed-operations', '--as-context', '--asof', '--background', '--body', '--bound-slug-prefixes', '--brain', '--budget-policy', '--budget-tokens', '--client', '--continue', '--cursor', '--date', '--dated-since', '--days', '--entities', '--explain', '--federated-read', '--follow', '--from-index', '--full', '--fuzzy', '--grep', '--group-by', '--help', '--http', '--id', '--include-deleted', '--include-expired', '--json', '--kind', '--limit', '--match', '--max-usd', '--mcp-only', '--model', '--multimodal', '--no-accept-pending', '--no-autopilot-install', '--page', '--params', '--path', '--pending', '--phase', '--prefer', '--progress-interval', '--progress-json', '--purge', '--query', '--question', '--quiet', '--reason', '--recent', '--refresh-operations', '--request-id', '--rollup', '--row', '--scopes', '--session', '--session-id', '--since', '--since-last-run', '--slugs', '--source', '--source-id', '--sources', '--stale', '--status', '--supersessions', '--surface', '--timeout', '--timings', '--to', '--today', '--updated-after', '--url', '--vacuum', '--wait', '--watch', '--yes'],- 'recall': ['--accept-pending', '--access', '--add', '--all', '--all-subjects', '--allowed-operations', '--as-context', '--asof', '--background', '--body', '--bound-slug-prefixes', '--brain', '--budget-policy', '--budget-tokens', '--client', '--cursor', '--date', '--dated-since', '--days', '--entities', '--entity', '--explain', '--federated-read', '--follow', '--from-index', '--full', '--fuzzy', '--grep', '--group-by', '--help', '--http', '--id', '--include-deleted', '--include-expired', '--json', '--kind', '--limit', '--match', '--max-usd', '--mcp-only', '--model', '--multimodal', '--no-accept-pending', '--no-autopilot-install', '--page', '--params', '--path', '--pending', '--phase', '--prefer', '--progress-interval', '--progress-json', '--purge', '--query', '--question', '--quiet', '--reason', '--recent', '--refresh-operations', '--request-id', '--rollup', '--row', '--scopes', '--session', '--session-id', '--since', '--since-last-run', '--slugs', '--source', '--source-id', '--sources', '--stale', '--status', '--supersessions', '--surface', '--timeout', '--timings', '--to', '--today', '--updated-after', '--url', '--vacuum', '--wait', '--watch', '--yes'],++ 'recall': ['--accept-pending', '--access', '--add', '--all', '--all-subjects', '--allowed-operations', '--as-context', '--asof', '--background', '--body', '--bound-slug-prefixes', '--brain', '--budget-policy', '--budget-tokens', '--client', '--continue', '--cursor', '--date', '--dated-since', '--days', '--entities', '--entity', '--explain', '--federated-read', '--follow', '--from-index', '--full', '--fuzzy', '--grep', '--group-by', '--help', '--http', '--id', '--include-deleted', '--include-expired', '--json', '--kind', '--limit', '--match', '--max-usd', '--mcp-only', '--model', '--multimodal', '--no-accept-pending', '--no-autopilot-install', '--page', '--params', '--path', '--pending', '--phase', '--prefer', '--progress-interval', '--progress-json', '--purge', '--query', '--question', '--quiet', '--reason', '--recent', '--refresh-operations', '--request-id', '--rollup', '--row', '--scopes', '--session', '--session-id', '--since', '--since-last-run', '--slugs', '--source', '--source-id', '--sources', '--stale', '--status', '--supersessions', '--surface', '--timeout', '--timings', '--to', '--today', '--updated-after', '--url', '--vacuum', '--wait', '--watch', '--yes'],'reconcile-links': ['--accept-pending', '--background', '--body', '--brain', '--dry-run', '--explain', '--follow', '--help', '--json', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--source', '--timeout', '--timings', '--wait'],- 'reindex': ['--accept-pending', '--admin-intent', '--aliases', '--all-drifted', '--apply', '--background', '--body', '--brain', '--class', '--close', '--concurrency', '--confirm-relocated-root', '--cost-estimate', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--force-rechunk', '--from', '--held', '--help', '--include-ambiguous', '--json', '--keep', '--limit', '--manifest', '--markdown', '--max-cost', '--max-runtime', '--max-usd', '--multimodal', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-llm', '--only', '--oversized', '--path', '--plan', '--prefer', '--progress-interval', '--progress-json', '--quiet', '--repo', '--request', '--request-id', '--segmented', '--self-transfer', '--side', '--since', '--skip', '--slug', '--source', '--stale', '--state', '--status', '--supabase', '--timeout', '--timings', '--to', '--type', '--vectors', '--wait', '--workers', '--yes'],- 'reindex': ['--accept-pending', '--admin-intent', '--aliases', '--all-drifted', '--apply', '--background', '--body', '--brain', '--class', '--close', '--concurrency', '--confirm-relocated-root', '--cost-estimate', '--cursor', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--force-rechunk', '--from', '--held', '--help', '--include-ambiguous', '--include-cross-entity', '--json', '--keep', '--limit', '--manifest', '--markdown', '--max-cost', '--max-runtime', '--max-usd', '--multimodal', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-llm', '--only', '--oversized', '--path', '--plan', '--prefer', '--progress-interval', '--progress-json', '--provenance', '--quiet', '--repo', '--request', '--request-id', '--self-transfer', '--side', '--since', '--skip', '--slug', '--source', '--stale', '--state', '--status', '--supabase', '--timeout', '--timings', '--to', '--type', '--vectors', '--wait', '--workers', '--yes'],++ 'reindex': ['--accept-pending', '--admin-intent', '--aliases', '--all-drifted', '--apply', '--background', '--body', '--brain', '--class', '--close', '--concurrency', '--confirm-relocated-root', '--cost-estimate', '--cursor', '--dim', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--expected-epoch', '--expected-state', '--explain', '--follow', '--force', '--force-rechunk', '--from', '--held', '--help', '--include-ambiguous', '--include-cross-entity', '--json', '--keep', '--limit', '--manifest', '--markdown', '--max-cost', '--max-runtime', '--max-usd', '--multimodal', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-llm', '--only', '--oversized', '--path', '--plan', '--prefer', '--progress-interval', '--progress-json', '--provenance', '--quiet', '--repo', '--request', '--request-id', '--segmented', '--self-transfer', '--side', '--since', '--skip', '--slug', '--source', '--stale', '--state', '--status', '--supabase', '--timeout', '--timings', '--to', '--type', '--vectors', '--wait', '--workers', '--yes'],'reindex-code': ['--accept-pending', '--apply', '--background', '--brain', '--break-lock', '--client', '--concurrency', '--db-url', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--explain', '--follow', '--force', '--help', '--http', '--id', '--json', '--legacy-lock', '--max-cost', '--max-cost-usd', '--max-runtime', '--max-usd', '--no-accept-pending', '--no-embed', '--non-interactive', '--only', '--path', '--probe', '--progress-interval', '--progress-json', '--quiet', '--scopes', '--source', '--status', '--timeout', '--timings', '--trust', '--wait', '--workers', '--yes'],'reindex-frontmatter': ['--apply', '--brain', '--concurrency', '--dry-run', '--expect', '--force', '--help', '--json', '--max-cost', '--max-usd', '--non-interactive', '--slug-prefix', '--source', '--trust', '--workers', '--yes'],'reindex-search-vector': ['--accept-pending', '--background', '--brain', '--dry-run', '--explain', '--follow', '--help', '--json', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--resume', '--source', '--timeout', '--timings', '--wait', '--yes'],@@@ -126,16 -127,16 +127,16 @@@'skillpack': ['--all', '--apply-clean-hunks', '--author', '--auto', '--brain', '--dest', '--dry-run', '--env', '--exit-code', '--fast', '--fix', '--force-unlock', '--format', '--from', '--full', '--harness', '--help', '--homepage', '--json', '--license', '--list', '--minimal', '--name-only', '--no-cache', '--no-lint', '--note', '--out', '--overwrite-local', '--persona', '--probe', '--pure', '--push', '--quick', '--quiet', '--refresh', '--repo', '--schema-pack', '--scope', '--short', '--since', '--skill', '--skills', '--skills-dir', '--skip-doctor', '--source', '--strict', '--stub', '--supabase', '--target', '--tier', '--trust', '--url', '--verify', '--version', '--workspace', '--yes'],'skillpack-check': ['--accept-pending', '--background', '--brain', '--explain', '--fast', '--follow', '--help', '--json', '--list', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--source', '--strict', '--timeout', '--timings', '--wait', '--yes'],'smoke-test': ['--brain', '--help', '--json', '--source'],- 'sources': ['--abandon', '--abbrev-ref', '--abort', '--accept-pending', '--accept-suggested', '--access', '--account', '--add', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--adopt-slug-path', '--after', '--all', '--all-new', '--allow-unverified-remote', '--allowed-operations', '--app-id', '--app-install', '--app-pem', '--apply', '--audit', '--auto-additive', '--autostash', '--background', '--backups', '--batch-check', '--before', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--branch', '--break-lock', '--budget-usd-per-day', '--cached', '--calendar-id', '--category', '--classify', '--cleanup-dead-local-locks', '--clear', '--client', '--clone-dir', '--code', '--confirm-destructive', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--count', '--days', '--db-url', '--decisions', '--delegated-namespace', '--delegated-slug-prefixes', '--depth', '--detect', '--diff-filter', '--dir', '--disable', '--dry-run', '--enable', '--error-unmatch', '--exclude', '--expect-local', '--expect-remote', '--expect-upstream', '--expected-epoch', '--expected-incarnation', '--expected-state', '--explain', '--federated', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--fix', '--follow', '--force', '--format', '--from', '--full', '--future-days', '--get', '--git-dir', '--git-path', '--github-repo', '--grant-types', '--group-by', '--hard', '--help', '--history-days', '--http', '--id', '--if-version', '--include', '--include-warns', '--is-ancestor', '--is-inside-work-tree', '--json', '--keep', '--keep-storage', '--kind', '--lanes', '--legacy-lock', '--limit', '--local', '--local-env-vars', '--loops-exclude-labels', '--manifest', '--max-cost-usd', '--message', '--migrate-legacy', '--migration', '--min-trust', '--name', '--name-only', '--no-accept-pending', '--no-autostash', '--no-cron', '--no-embed', '--no-federate', '--no-federated', '--no-harden', '--no-lanes', '--no-pull', '--no-tags', '--no-verify', '--not', '--only', '--operations', '--origin', '--others', '--out', '--params', '--parked-pushes', '--pat-file', '--path', '--path-format', '--plan', '--porcelain', '--preview', '--probe', '--profile', '--progress-interval', '--progress-json', '--pull', '--push-only', '--quiet', '--read-sources', '--rebase', '--redirect-uri', '--refresh-operations', '--remove-backup', '--repair', '--replace', '--repos', '--request-id', '--require-clean', '--reset-checkpoint', '--reset-default', '--resolve', '--resume', '--retry-failed', '--scope', '--scopes', '--secret', '--self-transfer', '--services', '--set', '--set-upstream-to', '--shared-skills', '--short', '--show-toplevel', '--since', '--slug-prefixes', '--source', '--source-id', '--source-ids', '--sources', '--stale', '--state', '--status', '--stdin', '--surface', '--symbolic-full-name', '--takes-holders', '--timeout', '--timings', '--token', '--token-command', '--token-endpoint-auth-method', '--token-env', '--token-ttl', '--unindexed', '--unset-all', '--untracked-files', '--url', '--usage', '--verify', '--wait', '--wait-drain', '--warn-only', '--window', '--yes'],- 'status': ['--abbrev-ref', '--acknowledge-managed', '--all', '--allow-empty', '--apply', '--body', '--brain', '--break-lock', '--cached', '--check', '--concurrency', '--confirm-destructive', '--count', '--deadline-ms', '--delete', '--detail', '--diff-filter', '--empty', '--enable', '--exclude', '--exclude-standard', '--fast', '--filters', '--fix', '--force-break-lock', '--format', '--full', '--full-history', '--funnel', '--hard-deadline', '--help', '--include-gitignored', '--include-hidden', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--json', '--lanes', '--max-age', '--max-sources', '--mcp-only', '--missing-path', '--name-only', '--no-auto-embed', '--no-bulk', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-walk', '--others', '--parallel', '--path', '--prefer', '--preview', '--priority', '--quiet', '--redact-paths', '--repo', '--request-id', '--reset-checkpoint', '--retry-failed', '--retry-held', '--reverse', '--section', '--serial', '--show-toplevel', '--skip-failed', '--slugs', '--source', '--source-id', '--src-subpath', '--stale', '--status', '--strategy', '--timeout', '--url', '--verify', '--watch', '--workers', '--working-tree', '--yes'],+ 'sources': ['--abandon', '--abbrev-ref', '--abort', '--accept-pending', '--accept-suggested', '--access', '--account', '--add', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--adopt-slug-path', '--after', '--all', '--all-new', '--allow-unverified-remote', '--allowed-operations', '--app-id', '--app-install', '--app-pem', '--apply', '--audit', '--auto-additive', '--autostash', '--background', '--backups', '--batch-check', '--before', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--branch', '--break-lock', '--budget-usd-per-day', '--cached', '--calendar-id', '--category', '--classify', '--cleanup-dead-local-locks', '--clear', '--client', '--clone-dir', '--code', '--confirm-destructive', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--count', '--cursor', '--days', '--db-url', '--decisions', '--delegated-namespace', '--delegated-slug-prefixes', '--depth', '--detect', '--diff-filter', '--dir', '--disable', '--dry-run', '--enable', '--error-unmatch', '--exclude', '--expect', '--expect-local', '--expect-remote', '--expect-upstream', '--expected-epoch', '--expected-incarnation', '--expected-state', '--explain', '--federated', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--fix', '--follow', '--force', '--format', '--from', '--from-git', '--full', '--future-days', '--get', '--get-all', '--git-dir', '--git-path', '--github-repo', '--grant-types', '--group-by', '--hard', '--help', '--history-days', '--holds', '--http', '--id', '--if-version', '--include', '--include-warns', '--is-ancestor', '--is-inside-work-tree', '--json', '--keep', '--keep-checkout', '--keep-storage', '--kind', '--lanes', '--legacy-lock', '--limit', '--local', '--local-env-vars', '--loops-exclude-labels', '--manifest', '--max-cost-usd', '--message', '--migrate-legacy', '--migration', '--min-trust', '--name', '--name-only', '--no-accept-pending', '--no-autostash', '--no-cron', '--no-embed', '--no-extract', '--no-federate', '--no-federated', '--no-harden', '--no-lanes', '--no-pull', '--no-tags', '--no-verify', '--not', '--only', '--operations', '--origin', '--others', '--out', '--params', '--parked-code', '--parked-pushes', '--pat-file', '--path', '--path-format', '--plan', '--porcelain', '--preview', '--probe', '--profile', '--progress-interval', '--progress-json', '--pull', '--push-only', '--quiet', '--read-sources', '--rebase', '--redirect-uri', '--refresh-operations', '--remove-backup', '--repair', '--replace', '--repos', '--request-id', '--require-clean', '--reset-checkpoint', '--reset-default', '--resolve', '--resume', '--retry-failed', '--sample', '--scope', '--scopes', '--secret', '--self-transfer', '--services', '--set', '--set-upstream-to', '--shared-skills', '--short', '--show-toplevel', '--since', '--slug-prefixes', '--source', '--source-id', '--source-ids', '--sources', '--stale', '--state', '--status', '--stdin', '--surface', '--symbolic-full-name', '--takes-holders', '--timeout', '--timings', '--token', '--token-command', '--token-endpoint-auth-method', '--token-env', '--token-ttl', '--unindexed', '--unset-all', '--untracked-files', '--url', '--usage', '--verify', '--wait', '--wait-drain', '--warn-only', '--window', '--yes'],+ 'status': ['--abbrev-ref', '--acknowledge-managed', '--all', '--allow-empty', '--apply', '--body', '--brain', '--break-lock', '--cached', '--check', '--concurrency', '--confirm-destructive', '--count', '--cursor', '--deadline-ms', '--delete', '--detail', '--diff-filter', '--empty', '--enable', '--exclude', '--exclude-standard', '--fast', '--filters', '--fix', '--force-break-lock', '--format', '--full', '--full-history', '--funnel', '--hard-deadline', '--help', '--hold-state', '--include-gitignored', '--include-hidden', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--json', '--lanes', '--limit', '--max-age', '--max-sources', '--mcp-only', '--missing-path', '--name-only', '--no-auto-embed', '--no-bulk', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-walk', '--others', '--parallel', '--path', '--prefer', '--preview', '--priority', '--quiet', '--redact-paths', '--repo', '--request-id', '--reset-checkpoint', '--retry-failed', '--retry-held', '--reverse', '--section', '--serial', '--show-toplevel', '--skip-failed', '--slugs', '--source', '--source-id', '--src-subpath', '--stale', '--status', '--strategy', '--timeout', '--url', '--verify', '--watch', '--workers', '--working-tree', '--yes'],'storage': ['--brain', '--fix', '--help', '--json', '--plan', '--repo', '--restore-only', '--source', '--to'],'sweep': ['--accept-pending', '--apply', '--assign-corpus', '--background', '--batch-limit', '--brain', '--budget-ms', '--delete-brain', '--explain', '--follow', '--help', '--home', '--json', '--no-accept-pending', '--no-delegate', '--once', '--only', '--progress-interval', '--progress-json', '--quiet', '--retry-failed', '--session', '--source', '--source-id', '--stale', '--timeout', '--timings', '--wait'],- 'sync': ['--abbrev-ref', '--accept-pending', '--account', '--acknowledge-managed', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--allow-empty', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--background', '--batch', '--batch-check', '--batch-size', '--body', '--brain', '--branch', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--check', '--client', '--close', '--concurrency', '--confirm-destructive', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--continue', '--conversation', '--count', '--db-url', '--delete-brain', '--depth', '--detach', '--detail', '--diff-filter', '--dim', '--dir', '--drain', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entity', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--ff-only', '--filters', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-retry', '--force-schema', '--format', '--fresh', '--from', '--from-meetings', '--full', '--full-history', '--git-dir', '--git-path', '--grammar', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--home', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--include-repairs', '--index-audit', '--infer-dates', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--json', '--keep-checkout', '--kind', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--locks', '--log-noop', '--manifest', '--markdown', '--max-age', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-sources', '--max-usd', '--migrate-legacy', '--migrate-only', '--missing-path', '--multimodal', '--name', '--name-only', '--name-status', '--ner', '--no-accept-pending', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-capture', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-walk', '--once', '--only', '--operations', '--others', '--output', '--oversized', '--overwrite', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--path', '--path-format', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--prefer-postgres', '--preview', '--priority', '--probe', '--probe-pglite', '--progress-interval', '--progress-json', '--project', '--providers', '--prune-orphans', '--pull', '--purge', '--push-only', '--query', '--question', '--queue', '--quiet', '--raw', '--reader-mode', '--reauth', '--rebuild', '--redact-paths', '--refresh', '--regenerate', '--relative', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--replace', '--repo', '--request-id', '--reset', '--reset-checkpoint', '--reset-default', '--restore-only', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--scope', '--scopes', '--self-transfer', '--serial', '--short', '--show-current', '--show-toplevel', '--side', '--since', '--skills-dir', '--skip', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--stale', '--state', '--status', '--stdin', '--strategy', '--supabase', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--tier', '--timeout', '--timings', '--to', '--token', '--top-k', '--type', '--unindexed', '--url', '--url-env', '--user', '--verbose', '--verify', '--version', '--wait', '--watch', '--window', '--workers', '--working-tree', '--yes'],- 'sync': ['--abbrev-ref', '--accept-pending', '--account', '--acknowledge-managed', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--allow-empty', '--allow-outside-source-root', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--background', '--batch', '--batch-check', '--batch-size', '--body', '--brain', '--branch', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--check', '--class', '--client', '--close', '--concurrency', '--confirm-destructive', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--conversation', '--count', '--cursor', '--db-url', '--delete-brain', '--depth', '--detach', '--detail', '--diff-filter', '--dim', '--dir', '--drain', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entity', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--ff-only', '--filters', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-retry', '--force-schema', '--format', '--fresh', '--from', '--from-meetings', '--full', '--full-history', '--git-dir', '--git-path', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--hold-state', '--home', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--include-repairs', '--index-audit', '--infer-dates', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--json', '--keep-checkout', '--kind', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--locks', '--log-noop', '--manifest', '--markdown', '--max-age', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-sources', '--max-usd', '--migrate-legacy', '--migrate-only', '--missing-path', '--multimodal', '--name', '--name-only', '--name-status', '--ner', '--no-accept-pending', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-capture', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-walk', '--once', '--only', '--operations', '--others', '--oversized', '--overwrite', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--path', '--path-format', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--prefer-postgres', '--preview', '--priority', '--probe', '--probe-pglite', '--progress-interval', '--progress-json', '--project', '--providers', '--prune-orphans', '--pull', '--push-only', '--query', '--question', '--queue', '--quiet', '--raw', '--reader-mode', '--reauth', '--rebuild', '--redact-paths', '--refresh', '--regenerate', '--relative', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--replace', '--repo', '--request-id', '--reset', '--reset-checkpoint', '--reset-default', '--restart-only', '--restore-only', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--scope', '--scopes', '--self-transfer', '--serial', '--short', '--show-current', '--show-toplevel', '--side', '--since', '--skills-dir', '--skip', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--stat', '--state', '--status', '--stdin', '--strategy', '--supabase', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--tier', '--timeout', '--timings', '--to', '--token', '--top-k', '--type', '--unindexed', '--url', '--url-env', '--verbose', '--verify', '--version', '--wait', '--watch', '--window', '--workers', '--working-tree', '--yes'],++ 'sync': ['--abbrev-ref', '--accept-pending', '--account', '--acknowledge-managed', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--after', '--all', '--allow-empty', '--allow-outside-source-root', '--apply', '--apply-rewrites', '--assign-corpus', '--audit', '--auto', '--background', '--batch', '--batch-check', '--batch-size', '--body', '--brain', '--branch', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--check', '--class', '--client', '--close', '--concurrency', '--confirm-destructive', '--confirm-quiesced', '--confirm-relocated-root', '--conflicts', '--contacts-dir', '--content-audit', '--continue', '--conversation', '--count', '--cursor', '--db-url', '--delete-brain', '--depth', '--detach', '--detail', '--diff-filter', '--dim', '--dir', '--drain', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--enable', '--entity', '--exclude', '--exclude-standard', '--expect', '--expect-local', '--expect-upstream', '--expected-epoch', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--ff-only', '--filters', '--first-parent', '--fix', '--follow', '--force', '--force-break-lock', '--force-rechunk', '--force-retry', '--force-schema', '--format', '--fresh', '--from', '--from-meetings', '--full', '--full-history', '--git-dir', '--git-path', '--grammar', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--hold-state', '--home', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--include-repairs', '--index-audit', '--infer-dates', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--json', '--keep-checkout', '--kind', '--lanes', '--lang', '--left-right', '--legacy-lock', '--limit', '--link-source', '--link-type', '--list', '--literal-pathspecs', '--locks', '--log-noop', '--manifest', '--markdown', '--max-age', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-sources', '--max-usd', '--migrate-legacy', '--migrate-only', '--missing-path', '--multimodal', '--name', '--name-only', '--name-status', '--ner', '--no-accept-pending', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-capture', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-lanes', '--no-llm', '--no-pull', '--no-renames', '--no-repair', '--no-schema-pack', '--no-verify', '--no-walk', '--once', '--only', '--operations', '--others', '--output', '--oversized', '--overwrite', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--path', '--path-format', '--pending', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--prefer-postgres', '--preview', '--priority', '--probe', '--probe-pglite', '--progress-interval', '--progress-json', '--project', '--providers', '--prune-orphans', '--pull', '--purge', '--push-only', '--query', '--question', '--queue', '--quiet', '--raw', '--reader-mode', '--reauth', '--rebuild', '--redact-paths', '--refresh', '--regenerate', '--relative', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--replace', '--repo', '--request-id', '--reset', '--reset-checkpoint', '--reset-default', '--restart-only', '--restore-only', '--resume', '--retry-failed', '--retry-held', '--retry-parked', '--reverse', '--scope', '--scopes', '--self-transfer', '--serial', '--short', '--show-current', '--show-toplevel', '--side', '--since', '--skills-dir', '--skip', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--stat', '--state', '--status', '--stdin', '--strategy', '--supabase', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--tier', '--timeout', '--timings', '--to', '--token', '--top-k', '--type', '--unindexed', '--url', '--url-env', '--verbose', '--verify', '--version', '--wait', '--watch', '--window', '--workers', '--working-tree', '--yes'],'takes': ['--about', '--accept', '--applied', '--apply', '--batch-size', '--before', '--brain', '--bucket-size', '--by', '--claim', '--date', '--dim', '--dir', '--domain', '--dry-run', '--embedding-dimensions', '--embedding-model', '--evidence', '--expected-revision', '--expired', '--failed', '--force', '--from-pages', '--group-by', '--help', '--holder', '--include-covered', '--json', '--kind', '--limit', '--max-pages', '--min-confidence', '--min-n', '--no-embed', '--no-embedding', '--offset', '--outcome', '--path', '--quality', '--reject', '--request-id', '--retry-failed', '--row', '--semantic', '--since', '--slug', '--sort', '--source', '--source-id', '--stale', '--state', '--status', '--supabase', '--to', '--unapplied', '--unit', '--until', '--value', '--verdict', '--weight', '--who', '--yes'],'think': ['--anchor', '--brain', '--calibration-holder', '--help', '--json', '--mcp-only', '--model', '--only', '--reference-date', '--request-id', '--rounds', '--save', '--since', '--source', '--source-id', '--take', '--until', '--with-calibration'],'transcripts': ['--accept-pending', '--all', '--all-discovery', '--apply', '--background', '--brain', '--days', '--dry-run', '--embed', '--explain', '--facts', '--follow', '--format', '--full', '--help', '--include-self', '--json', '--limit', '--max-bytes', '--max-cost-usd', '--no-accept-pending', '--only', '--progress-interval', '--progress-json', '--purge', '--quiet', '--since', '--source', '--source-id', '--timeout', '--timings', '--wait'],'trust': ['--accept-all', '--accept-pending', '--all', '--background', '--batch-size', '--brain', '--break-lock', '--db-url', '--dry-run', '--expect', '--explain', '--follow', '--from', '--help', '--http', '--json', '--kind', '--legacy-lock', '--no-accept-pending', '--only', '--path', '--progress-interval', '--progress-json', '--quiet', '--reason', '--reason-family', '--relower', '--remove', '--repair-unknown-markers', '--resume', '--since', '--slug', '--source', '--source-id', '--timeout', '--timings', '--undo', '--uri-prefix', '--version', '--wait', '--yes'],- 'upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--resume', '--retry-global', '--search-mode', '--segmented', '--self-transfer', '--skills-dir', '--skip-verify', '--slug', '--source', '--stale', '--statement-timeout', '--status', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--vectors', '--verify', '--version', '--workers', '--yes'],- 'upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--channel', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--dry-run', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--is-ancestor', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-restart', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--restart-only', '--resume', '--retry-global', '--search-mode', '--self-transfer', '--skills-dir', '--skip-verify', '--source', '--stale', '--statement-timeout', '--status', '--stop-mcp', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--value', '--vectors', '--verify', '--version', '--workers', '--yes'],++ 'upgrade': ['--accept-reviewed-inventory', '--acknowledge-no-backup', '--admin-intent', '--all', '--all-applied', '--apply', '--apply-clean-hunks', '--backup-confirmed', '--brain', '--catch-up', '--changed', '--channel', '--check', '--concurrency', '--confirm-quiesced', '--confirm-relocated-root', '--content-root', '--cost-estimate', '--dry-run', '--embedding-dimensions', '--embedding-model', '--exit-code', '--expand', '--expected-epoch', '--expected-state', '--explain', '--export-db-only', '--export-source', '--ff-only', '--force', '--force-all', '--force-orchestrator', '--force-retry', '--force-schema', '--format', '--held', '--help', '--host-dir', '--images', '--inject-bootstrap', '--inline', '--install', '--interval', '--is-ancestor', '--json', '--limit', '--list', '--manifest', '--markdown', '--max-rss', '--max-usd', '--migrate-only', '--migration', '--mode', '--multimodal', '--name-only', '--no-autopilot-install', '--no-bun-floor-check', '--no-embed', '--no-expand', '--no-inject', '--no-restart', '--no-worker', '--non-interactive', '--now', '--once', '--only', '--oversized', '--path', '--pause', '--phase', '--quiet', '--reason', '--refs', '--remediation-plan', '--repo', '--require-db', '--restart-only', '--resume', '--retry-global', '--search-mode', '--segmented', '--self-transfer', '--skills-dir', '--skip-verify', '--slug', '--source', '--stale', '--statement-timeout', '--status', '--stop-mcp', '--swap-only', '--tags', '--target', '--uninstall', '--user', '--value', '--vectors', '--verify', '--version', '--workers', '--yes'],'waiting': ['--all', '--as-of', '--brain', '--dry-run', '--fail-fast', '--help', '--json', '--note', '--source', '--stale-ok', '--status', '--tools-json', '--top', '--type'],'watch': ['--brain', '--help', '--json', '--max-pages', '--min-confidence', '--source', '--window-turns'],'whoknows': ['--access', '--add', '--all', '--allowed-operations', '--asof', '--body', '--bound-slug-prefixes', '--brain', '--client', '--cursor', '--date', '--dated-since', '--days', '--entities', '--explain', '--federated-read', '--from-index', '--full', '--fuzzy', '--group-by', '--help', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--mcp-only', '--model', '--multimodal', '--no-autopilot-install', '--page', '--params', '--path', '--phase', '--prefer', '--purge', '--recent', '--refresh-operations', '--request-id', '--row', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--to', '--updated-after', '--url', '--yes'],diff --cc src/core/cycle/extract-facts.tsindex c2432c63d5,3cb1afd69e..2b691da46e--- a/src/core/cycle/extract-facts.ts+++ b/src/core/cycle/extract-facts.ts@@@ -83,7 -83,10 +83,10 @@@ import { writeReceipt } from '../extracimport { fenceUnfencedFacts, planUnfencedFacts } from '../facts/unfenced-facts.ts';import { classifyRunStop, upsertExtractRollup } from '../extract/rollup-writer.ts';import { factsFenceView } from '../facts-fence.ts';- import { incrementalFactsFenceView, segmentedBodyMatchesFile } from '../page-body/segment-facts.ts';+ import { fenceReadOf, publishFenceGeneration, readFenceBlocks, FACT_FENCE_KIND, type FenceRead } from '../generations/fence.ts';+ import type { BodyStorage } from '../page-body/types.ts';+ import { factFenceItems, factPreimages, factRetireItem } from '../generations/adapters/fact-rows.ts';-import { segmentedBodyMatchesFile, segmentedFactsFence } from '../page-body/segment-facts.ts';++import { incrementalFactsFence, segmentedBodyMatchesFile } from '../page-body/segment-facts.ts';import {duplicateActiveFenceRows,extractFactsFromFenceText,@@@ -390,8 -396,8 +396,9 @@@ interface FenceReconcilePlan* fence in each section of the page (#6686: a split fence) preserves the page's existing index.*/async function planFenceReconcile(db: BrainEngine, page: PageFenceInput, slug: string, sourceId: string, warnings: string[]): Promise<FenceReconcilePlan | null> {- // A segmented page's view comes from its fences rows: only runs changed since their row was written are read.- const view = isSegmentedPage(page) ? await incrementalFactsFenceView(db, page) : factsFenceView(page);- const segmented = isSegmentedPage(page) ? await segmentedFactsFence(db, page) : null;++ // A segmented page's view and fence text come from its fences rows: only runs changed since their row was written are read.++ const segmented = isSegmentedPage(page) ? await incrementalFactsFence(db, page) : null;+ const view = segmented?.view ?? factsFenceView(page);// #6686: a lone fence below the timeline sentinel that parses cleanly is the page's fence, read where the writers// edit it; one that does not parse keeps the #3625 guard below.const below = !view.sections.body && view.sections.timeline ? view.timeline : null;diff --cc src/core/facts/conversation-publication.tsindex e857de000e,018d0a3eb5..9602ecbda0--- a/src/core/facts/conversation-publication.ts+++ b/src/core/facts/conversation-publication.ts@@@ -81,7 -83,7 +84,8 @@@ import { tightenToPage } from './visibiimport { recordTaintEdges } from '../trust/taint.ts';import { applyGateDecision, derivedGateConfig, derivedGateInput } from '../trust/derived-gate.ts';import { decideFactWrite, recordFlaggedRow } from '../write-gate-store.ts';+import { sourceWindowKey, type SourceWindow } from '../page-body/derivations.ts';+ import { findCaptureDuplicate } from './capture-dedup.ts';export const CONVERSATION_FACTS_INTENT = 'managed_maintenance_conversation_facts';export const CONVERSATION_FACTS_PROTOCOL = 1;@@@ -468,40 -450,44 +495,53 @@@ async function stampSourceWindows(tx: B* prior facts stay: the outcome replaces the page's prior outcome rows, so* the page is not paid for again, a `window` run's facts are added beside* the prior ones, and a partial run's facts are not published over them.+ * #7043: a fact an active row of the source already states is not stored+ * again (the capture lane's fingerprint, entity and visibility rule with no+ * time bound); the page's own rows a replacement clears do not count.*/export async function publishConversationFacts(tx: BrainEngine, sourceId: string, slug: string, rows: UnnumberedFact[],- opts: { scope: ConversationScope; requestId?: string; segments?: ConversationSegmentsPublication }): Promise<{ deleted: number; facts_inserted: number }> {- opts: { scope: ConversationScope; requestId?: string }): Promise<{ deleted: number; facts_inserted: number; duplicates_skipped: number; purged_skipped: number }> {++ opts: { scope: ConversationScope; requestId?: string; segments?: ConversationSegmentsPublication }): Promise<{ deleted: number; facts_inserted: number; duplicates_skipped: number; purged_skipped: number }> {const derivation = await conversationDerivation(tx, sourceId, slug);const cfg = await derivedGateConfig(tx);- const gated = rows.map(row => ({ row, decision: OUTCOME_SOURCES.has(row.source) ? null : decideFactWrite(row,+ const gated = rows.map((row, index) => ({ row, index, decision: OUTCOME_SOURCES.has(row.source) ? null : decideFactWrite(row,{ sourceId, slug, payload: { ...row, embedding: null }, input: derivedGateInput(derivation.trust, opts.requestId), cfg }) }));for (const { decision } of gated) if (decision && decision.action !== 'insert') await applyGateDecision(tx, decision, { table: 'facts', sourceId }, async () => null);const kept = gated.filter(({ decision }) => decision?.action !== 'hold' && decision?.action !== 'reject');const [active] = await tx.executeRaw<{ n: number }>(`SELECT count(*)::int AS n FROM facts f WHERE f.source_id=$1 AND f.source_markdown_slug=$2AND f.source LIKE '${CONVERSATION_FACTS_SOURCE_PREFIX}%' AND f.expired_at IS NULL AND NOT (f.source = ANY($3::text[]))`, [sourceId, slug, [...AUDIT_ROW_SOURCES]]);- const retire = !Number(active?.n ?? 0) || (opts.scope === 'full' && kept.length === rows.length && kept.some(({ row }) => !OUTCOME_SOURCES.has(row.source)));- const scope = { engine: tx, sourceId, lane: CONVERSATION_FACTS_SOURCE_PREFIX, sessionId: null, anchor: null, ...(retire ? { replacingPage: slug } : {}) };+ const segments = opts.segments;+ const retire = !segments && (!Number(active?.n ?? 0) || (opts.scope === 'full' && kept.length === rows.length && kept.some(({ row }) => !OUTCOME_SOURCES.has(row.source))));- const published = retire || opts.scope === 'window' || segments ? kept : kept.filter(({ row }) => OUTCOME_SOURCES.has(row.source));- const { deleted, ids } = await withWriteTrust(tx, derivation.trust, async () => {++ // A segmented page's windowed publication clears or keeps its own rows window by window, so the page's own rows never count as duplicates.++ const scope = { engine: tx, sourceId, lane: CONVERSATION_FACTS_SOURCE_PREFIX, sessionId: null, anchor: null, ...(retire || segments ? { replacingPage: slug } : {}) };+ const published: typeof kept = [];+ let duplicates = 0;- for (const entry of retire || opts.scope === 'window' ? kept : kept.filter(({ row }) => OUTCOME_SOURCES.has(row.source))) {++ for (const entry of retire || opts.scope === 'window' || segments ? kept : kept.filter(({ row }) => OUTCOME_SOURCES.has(row.source))) {+ const { row } = entry;+ if (OUTCOME_SOURCES.has(row.source) || !await findCaptureDuplicate(scope, { fact: row.fact, entitySlug: row.entity_slug ?? null,+ visibility: row.visibility ?? 'private', attributedTo: row.attributed_to ?? null })) published.push(entry);+ else duplicates++;+ }+ const { deleted, ids, purged } = await withWriteTrust(tx, derivation.trust, async () => {if (retire) return replaceConversationFacts(tx, sourceId, slug, published.map(({ row }) => row));+ let retiredWindows = 0;+ if (segments) {+ retiredWindows += await moveSourceWindows(tx, sourceId, slug, segments.moves);+ if (segments.replace.length) retiredWindows += await clearConversationFacts(tx, sourceId, slug, { keys: segments.replace, keep: false, unanchored: false });+ if (segments.live) retiredWindows += await clearConversationFacts(tx, sourceId, slug, { keys: segments.live, keep: true, unanchored: true });+ }const outcomes = published.some(({ row }) => OUTCOME_SOURCES.has(row.source)) ? await tx.executeRaw<{ id: number }>(`DELETE FROM factsWHERE source_id=$1 AND source_markdown_slug=$2 AND source = ANY($3::text[]) RETURNING id`, [sourceId, slug, [...AUDIT_ROW_SOURCES]]) : [];- return { deleted: outcomes.length, ...await insertConversationFacts(tx, sourceId, slug, published.map(({ row }) => row)) };+ return { deleted: retiredWindows + outcomes.length, ...await insertConversationFacts(tx, sourceId, slug, published.map(({ row }) => row)) };});- if (segments) await stampSourceWindows(tx, ids, published.map(({ index }) => segments.windows[index] ?? null));+ const stored = published.filter((_, i) => !purged.has(i));++ if (segments) await stampSourceWindows(tx, ids, stored.map(({ index }) => segments.windows[index] ?? null));for (const [i, id] of ids.entries()) {await recordTaintEdges(tx, { table: 'facts', id, sourceId }, derivation.inputs);- const decision = published[i]?.decision;- if (decision && ids.length === published.length) await recordFlaggedRow(tx, decision, { table: 'facts', id, sourceId });+ const decision = stored[i]?.decision;+ if (decision && ids.length === stored.length) await recordFlaggedRow(tx, decision, { table: 'facts', id, sourceId });}- if (published.some(({ row }) => row.source === TERMINAL_AUDIT_SOURCE)) await recordReextractMemo(tx, sourceId, slug); // #6764- return { deleted, facts_inserted: published.filter(({ row }) => !OUTCOME_SOURCES.has(row.source)).length };+ if (stored.some(({ row }) => row.source === TERMINAL_AUDIT_SOURCE)) await recordReextractMemo(tx, sourceId, slug); // #6764+ return { deleted, facts_inserted: stored.filter(({ row }) => !OUTCOME_SOURCES.has(row.source)).length, duplicates_skipped: duplicates, purged_skipped: purged.size };}/**diff --cc src/core/facts/purge.tsindex 1f3194d8d7,7abaf119f0..4c38668279--- a/src/core/facts/purge.ts+++ b/src/core/facts/purge.ts@@@ -561,8 -541,8 +562,8 @@@ export async function submitPurgeFactMucommit_subject: `gbrain: purge fact ${token}`, commit_line: `purge fact ${token}`,targets: pages.map(page => ({ slug: page.slug, page_id: Number(page.id), revision: page.knowledge_revision })) })]);counts = { facts, takes, chunks, page_versions: versions.redacted, pages: rewritten.length, persistence_requests: intents,- query_cache: cache, decide_review: review, open_loops: loops, take_proposals: proposals, core_edit_notices: notices,+ query_cache: cache, decide_review: review, open_loops: loops, take_proposals: proposals, core_edit_notices: notices, ...ledger,- write_gate_holds: holdIds.length, write_gate_receipts: gateReceipts, page_segment_texts: segments.texts,+ write_gate_holds: holdIds.length, write_gate_receipts: gateReceipts, page_segment_texts: segments.texts, page_segment_derivations: bodies.derivations,page_body_stagings: segments.stagings, page_body_staging_parts: segments.parts, persistence_requests_cancelled: segments.cancelled,derived_hidden: Object.values(derived.hidden).reduce((a, b) => a + b, 0) };derivedHidden = derived;diff --cc src/core/import-chunk-reuse.tsindex 0b2efa2653,7910269be1..58e5d8c448--- a/src/core/import-chunk-reuse.ts+++ b/src/core/import-chunk-reuse.ts@@@ -12,8 -12,13 +12,14 @@@ import type { SegmentChunkInput } fromimport { quoteIdentifier } from './search/embedding-column.ts';import { chunkGenerationFilter } from './search/safe-chunks.ts';import { parseEmbedding } from './utils.ts';+import { segmentSynopsisInputHashes, segmentSynopsisLead } from './page-body/segment-synopsis.ts';+ /**+ * A stored row an import keeps: its id and the index it holds now (a kept row whose new chunk sits elsewhere moves+ * there). `vector`: the row holds one, so moving it is a vector-index write (page-state/chunk-moves.ts).+ */+ export interface KeptChunkRow { id: number; chunk_index: number; vector: boolean }+/*** A13 reuse for one page import: copies each stored vector the reuse gate* admits onto its matching new chunk in `into`, and maps the chunk's index todiff --cc src/core/mentions/pass.tsindex 8794556705,e16e2337be..11f46fcac8--- a/src/core/mentions/pass.ts+++ b/src/core/mentions/pass.ts@@@ -58,9 -55,8 +58,10 @@@ importbuildGazetteer, findMentionedEntities, gazetteerEntryKeys, tokenizeTitle,type FindMentionsOpts, type Gazetteer, type GazetteerEntry, type GazetteerEntryKey, type Mention,} from '../by-mention.ts';-import { bodyBlocks } from '../page-body/segment-blocks.ts';+import { bodyBlocks, detachedValue } from '../page-body/segment-blocks.ts';+import { commitRuns, derivationScope, keyDigest, planRuns, readRuns, SegmentDerivationRaced, type DeriveRun } from '../page-body/segment-derive.ts';+import { canonicalJson } from '../belief/keys.ts';+ import { classifyItemFailure } from '../item-failure.ts';import { linkableTypesFor, loadSourcePack, parseNameList, readMentionPolicy, type MentionPolicy, type PackTypes } from './policy.ts';import { deriveEntityAliases, type DerivedAlias } from './aliases.ts';import { normalizeAliasList } from '../search/alias-normalize.ts';diff --cc src/core/page-body/derivations.tsindex 2866b9b951,0000000000..7e9fc60df0mode 100644,000000..100644--- a/src/core/page-body/derivations.ts+++ b/src/core/page-body/derivations.ts@@@ -1,134 -1,0 +1,134 @@@+/**+ * Per-segment derivation watermarks (Wave B PR 4, wave-b spec 8.1-8.6): the shared types and pure helpers every+ * incremental pipeline codes against. Rows live in page_segment_derivations (DDL in page-body/schema.ts, migration- * v265); the engine reads and writes them through readSegmentDerivations / upsertSegmentDerivations /++ * v273); the engine reads and writes them through readSegmentDerivations / upsertSegmentDerivations /+ * retireSegmentDerivations (SQL in engine-sql/page-body.ts).+ *+ * A row says: pipeline `kind` at `version` ran on occurrence `occurrenceId` of a page while the occurrence held the+ * segment text `segmentSha256` in the context `contextHash`, and settled in `state`. The work left for a pipeline is+ * every live occurrence without a settled row whose three inputs match (planSegmentDerivations), so the set is found+ * from manifest metadata without reading a body. 'done' and 'skipped' are settled (a skip is a decision made for those+ * exact inputs); 'partial' and 'failed' are retried.+ *+ * facts.source_window anchors a conversation fact to the window it was extracted from (SourceWindow), so an append+ * extracts only new windows and deletes only the facts of retired ones.+ */+import { createHash } from 'node:crypto';+import { canonicalJson } from '../belief/keys.ts';+import { SEGMENT_DERIVATION_KINDS, SEGMENT_DERIVATION_STATES } from './schema.ts';++export { SEGMENT_DERIVATION_KINDS, SEGMENT_DERIVATION_STATES };+export type SegmentDerivationKind = typeof SEGMENT_DERIVATION_KINDS[number];+export type SegmentDerivationState = typeof SEGMENT_DERIVATION_STATES[number];+export const SETTLED_DERIVATION_STATES: readonly SegmentDerivationState[] = ['done', 'skipped'];++/**+ * What a pipeline records for one occurrence. `output` stays bounded per segment (candidates, keys, digests, anchors).+ * It is not text-free: a links row keeps the excerpts and dated lines its candidates carry (what links.context and the+ * temporal pass store), so the store is swept, not probed: a fact purge deletes every row of the pages it rewrote, or that+ * no live segment backs, whose output or receipt holds the claim in its normalized form (segment-derive.ts+ * continueDerivationPurges, in batches after the purge commits; a live segment's row on another page holds what that page's prose still says, and the receipt+ * reports it with that prose), fence rewrites delete the rows of the runs they touched and of+ * occurrences no longer live, and demotion to inline deletes the page's rows. Prefer digests and offsets where the+ * pipeline can read the segment again (a fences row keeps fence digests, never fence text).+ */+export interface SegmentDerivationInput {+ pageId: number;+ kind: SegmentDerivationKind;+ occurrenceId: number;+ version: number;+ segmentSha256: Uint8Array;+ contextHash: Uint8Array;+ state: SegmentDerivationState;+ output: unknown;+ receipt: unknown;+}++/** A stored row: the input plus its timestamps (ISO-8601 UTC). */+export interface SegmentDerivationRow extends SegmentDerivationInput {+ createdAt: string;+ updatedAt: string;+}++/**+ * The context hash of one segment for one pipeline: SHA-256 over the canonical JSON of the pipeline kind, the+ * segment's manifest `entry_state` and every page-level input the pipeline reads (title, type, pack fingerprint,+ * gazetteer generation, gap settings, ...). Canonical JSON sorts keys at every depth, so an entry state read back+ * from JSONB hashes the same as the one the segmenter built. The pipeline version is stored beside the hash, not in it.+ */+export function segmentDerivationContextHash(kind: SegmentDerivationKind, input: { entryState: unknown; page: Record<string, unknown> }): Uint8Array {+ const digest = createHash('sha256').update(canonicalJson(['gbrain.segment_derivation.v1', kind, input.entryState ?? null, input.page])).digest();+ return new Uint8Array(digest.buffer, digest.byteOffset, digest.byteLength);+}++/** A live occurrence as a pipeline sees it: identity, segment text hash and its context hash for that pipeline. */+export interface LiveSegment {+ occurrenceId: number;+ sha256: Uint8Array;+ contextHash: Uint8Array;+}++export interface SegmentDerivationPlan {+ /** Live occurrences to (re)derive, in input order. */+ todo: LiveSegment[];+ /** Settled rows whose inputs still match a live occurrence: their outputs are the page aggregate's inputs. */+ current: SegmentDerivationRow[];+ /** Rows whose occurrence is no longer live: delete them (retireSegmentDerivations) and undo their effects. */+ retired: SegmentDerivationRow[];+}++const sameBytes = (a: Uint8Array, b: Uint8Array) => a.byteLength === b.byteLength && Buffer.from(a).equals(Buffer.from(b));++/** Split one pipeline's rows of a page against its live occurrences at `version` (rows of another kind are ignored). */+export function planSegmentDerivations(kind: SegmentDerivationKind, version: number, live: readonly LiveSegment[],+ rows: readonly SegmentDerivationRow[]): SegmentDerivationPlan {+ const byOccurrence = new Map<number, SegmentDerivationRow>();+ for (const row of rows) if (row.kind === kind) byOccurrence.set(row.occurrenceId, row);+ const liveIds = new Set(live.map(segment => segment.occurrenceId));+ const plan: SegmentDerivationPlan = { todo: [], current: [], retired: [] };+ for (const segment of live) {+ const row = byOccurrence.get(segment.occurrenceId);+ const settled = row !== undefined && SETTLED_DERIVATION_STATES.includes(row.state) && row.version === version+ && sameBytes(row.segmentSha256, segment.sha256) && sameBytes(row.contextHash, segment.contextHash);+ if (settled) plan.current.push(row);+ else plan.todo.push(segment);+ }+ for (const row of byOccurrence.values()) if (!liveIds.has(row.occurrenceId)) plan.retired.push(row);+ return plan;+}++/** facts.source_window: the conversation window a fact came from. Snake-case keys: it is stored as JSONB as-is. */+export interface SourceWindow {+ occurrence_id: number;+ window_ordinal: number;+ /** Lowercase hex SHA-256 of the rendered window text the extractor saw. */+ window_text_sha: string;+}++export function sourceWindowFor(occurrenceId: number, windowOrdinal: number, windowText: string): SourceWindow {+ return { occurrence_id: occurrenceId, window_ordinal: windowOrdinal, window_text_sha: createHash('sha256').update(windowText).digest('hex') };+}++/** One string per window identity, for set membership (live windows vs a page's stored facts). */+export function sourceWindowKey(window: SourceWindow): string {+ return `${window.occurrence_id}:${window.window_ordinal}:${window.window_text_sha}`;+}++/** A stored source_window (already JSONB-decoded), or null for NULL; throws on a value the column CHECK would refuse. */+export function parseSourceWindow(value: unknown): SourceWindow | null {+ if (value === null || value === undefined) return null;+ const w = value as Record<string, unknown>;+ if (typeof value !== 'object' || Array.isArray(value) || !Number.isSafeInteger(w.occurrence_id) || !Number.isSafeInteger(w.window_ordinal)+ || typeof w.window_text_sha !== 'string' || !/^[0-9a-f]{64}$/.test(w.window_text_sha)) {+ throw new Error(`malformed facts.source_window: ${JSON.stringify(value)}`);+ }+ return { occurrence_id: w.occurrence_id as number, window_ordinal: w.window_ordinal as number, window_text_sha: w.window_text_sha };+}++/** Derivation rows a fact purge's recorded sweep refused (they hold its claim); the caller's step did not settle. */+export class DerivationWriteRefused extends Error {+ readonly code = 'derivation_purge_pending';+ constructor(readonly refused: number) {+ super(`${refused} derivation row(s) were not stored: a fact purge's sweep of stored derivation results is still running and they hold its claim.`);+ }+}diff --cc src/core/page-body/schema.tsindex 74897f67cd,bb676f2e57..a2529f79c3--- a/src/core/page-body/schema.ts+++ b/src/core/page-body/schema.ts@@@ -168,194 -168,9 +168,194 @@@ CREATE TABLE IF NOT EXISTS page_body_st);${PAGE_BODY_STAGING_TEXTS_SQL}`;+/**+ * The derivation pipelines whose per-segment results page_segment_derivations records (wave-b spec 8.1-8.6, PR 4), and+ * the states a row can settle in. One list feeds the table's CHECKs and the TS types (page-body/derivations.ts).+ */+export const SEGMENT_DERIVATION_KINDS = ['links', 'mentions', 'timeline', 'fences', 'conversation_facts', 'facts_backstop', 'synopsis'] as const;+export const SEGMENT_DERIVATION_STATES = ['done', 'partial', 'failed', 'skipped'] as const;+const sqlList = (values: readonly string[]) => values.map(v => `'${v}'`).join(',');++/**+ * Folds the lowercase forms a database writes depending on context or locale, applied after lowering on both sides:+ * Greek final sigma (lower('ΚΩΣΤΑΣ') is 'κωστασ' while stored text keeps 'κωστας') and the dot JavaScript and ICU keep+ * after a lowered Turkish İ ('i̇'). gbrain_fact_normalize itself stays as it is: fact fingerprints are stored.+ */+export const foldSql = (expr: string) => `replace(translate(${expr}, 'ς', 'σ'), 'i\u0307', 'i')`;++/**+ * SQL predicate, the prefilter: `text`, lowered and folded, matches one of the patterns in the text[] parameter+ * `patterns` (from derivationNeedles): has a claim's words in the claim's order. Normalization only lowers, folds+ * characters to spaces and collapses spaces, keeping order, so the words of a claim a text holds occur in it in that+ * order (in a row's JSON text too: JSON escapes only quotes, backslashes and control characters, which no word holds);+ * a text this rejects never holds the claim.+ */+const hasWordsSql = (text: string, patterns: string) => `${foldSql(`lower(${text})`)} LIKE ANY (${patterns}::text[])`;++/** SQL predicate: derivation row `d`'s output and receipt JSON text passes the prefilter (see hasWordsSql). */+export function derivationClaimCandidateSql(d: string, patterns: string): string {+ return hasWordsSql(`COALESCE(${d}.output::text, '') || ' ' || COALESCE(${d}.receipt::text, '')`, patterns);+}++/**+ * SQL predicate: derivation row `d` holds one of the claims (the text[] parameters `needles` and `patterns`, from+ * derivationNeedles). The row goes through the needle's own normalization (gbrain_fact_normalize, the fact fingerprint's:+ * lowercase, punctuation folded, whitespace collapsed; then foldSql) in the database, so it matches whatever case,+ * spacing or locale lowercasing the claim was written in. The claim must fill whole words of one string value or object+ * key of the row's output or receipt (link excerpts carry it inside a longer window, so equality would miss them): "plays+ * oboe" never matches "plays oboes", nor a claim straddling two fields. Only a row, and then a value, passing the+ * prefilter is normalized.+ */+export function derivationHoldsClaimSql(d: string, needles: string, patterns: string): string {+ return `CASE WHEN ${derivationClaimCandidateSql(d, patterns)} THEN EXISTS (SELECT 1 FROM (VALUES (${d}.output), (${d}.receipt)) doc(j),+ LATERAL (SELECT jsonb_path_query(doc.j, 'strict $.** ? (@.type() == "string")') #>> '{}' AS t+ UNION ALL SELECT jsonb_path_query(doc.j, 'strict $.** ? (@.type() == "object").keyvalue().key') #>> '{}') s+ WHERE CASE WHEN ${hasWordsSql('s.t', patterns)} THEN EXISTS (SELECT 1 FROM unnest(${needles}::text[]) k(n)+ WHERE strpos(' ' || ${foldSql('gbrain_fact_normalize(s.t)')} || ' ', k.n) > 0) ELSE false END) ELSE false END`;+}++/**+ * SQL predicate: derivation row `d` of page `p` is one a fact purge sweeps: a row of a page the purge rewrote (the+ * int[] parameter `pageIds`), or a row no live segment backs (its occurrence retired, its page demoted to inline or+ * soft-deleted). Any other row was derived from a live segment of a page the purge left alone, so it holds only what+ * that page's prose still says, and the next derivation would write it back.+ */+export function derivationSweepScopeSql(d: string, p: string, pageIds: string): string {+ return `(${d}.page_id = ANY(${pageIds}::int[]) OR ${p}.deleted_at IS NOT NULL OR NOT EXISTS (SELECT 1 FROM page_body_manifest m+ WHERE m.page_id = ${d}.page_id AND m.occurrence_id = ${d}.occurrence_id AND m.gen_to IS NULL AND m.staging_id IS NULL AND m.sha256 = ${d}.segment_sha256))`;+}++/**+ * SQL: the advisory lock key that serializes a write bringing a row into a derivation sweep's scope with the end of the+ * source's sweeps. The scope-entry trigger takes it shared in the writer's transaction every time it fires, a sweep+ * recorded or not. A sweep moves from its first walk to its verify walks, and ends (deletes its record), only under it+ * held exclusively: so every writer that fired before the sweep was recorded, and left no note, has committed before a+ * verify walk starts, and every later writer's note is visible when the record ends. The sweep tries it without waiting+ * and otherwise waits a bounded time in a transaction that holds no other lock (segment-derive.ts continueDerivationPurges).+ */+export function derivationScopeLockSql(sourceId: string): string {+ return `hashtextextended('gbrain:derivation-scope:' || ${sourceId}, 0)`;+}++/**- * Per-segment derivation watermarks (migration v265): one row per page, pipeline and manifest occurrence, recording++ * Per-segment derivation watermarks (migration v273): one row per page, pipeline and manifest occurrence, recording+ * the segment text and the context (`context_hash`: entry state plus the page-level inputs the pipeline reads) it was+ * derived from, the pipeline version, the outcome and a bounded per-segment output. A pipeline's work on a page is the+ * live occurrences without a settled row whose segment sha, context hash and version match, found from metadata alone.+ * Rows of an occurrence that left the live generation are deleted by their pipeline (retireSegmentDerivations) or by a+ * fence rewrite; demotion to inline deletes the page's rows, a fact purge the rows holding the claim, and a page+ * delete cascades. The output holds link context and window anchors, so the table gets the segment tables' RLS posture.+ *+ * page_segment_derivation_purges holds a fact purge's derivation sweep from the purge's commit until it is verified+ * (segment-derive.ts continueDerivationPurges): the claim's normalized forms, the pages the purge rewrote, the walk's+ * phase and cursor, its adaptive batch size, once a row alone outran the statement budget, when it stalled and, while a+ * write still open in the source keeps it from ending past its bounded wait, that it waits on one (`pending_reason`). While it+ * is there, the trigger on page_segment_derivations drops a write of a row of the source that the sweep would delete (in+ * its scope, derivationSweepScopeSql, and holding the claim; returns NULL: the row is not stored and the pipeline derives+ * it again after the sweep; a paid pipeline makes no call on such a page meanwhile, page-embedding-budget.ts+ * meterPaidCall), so a row the walk has passed cannot come back behind it. A derivation write that read a purged page+ * before the purge committed is refused by its own generation guard instead. A row can also enter the scope without a+ * write, when its occurrence is retired or its page soft-deleted: the triggers on page_body_manifest and pages note the+ * page in page_segment_derivation_purge_pages for every sweep of the source, and the sweep checks those pages again+ * before it ends.+ *+ * PR 4 (Wave B incremental derivation, transcripts): page_derivation_spend is the per-page lifetime spend ledger of each+ * paid derivation family (`facts`, `synopsis`; page-spend.ts), each capped by `derive.max_usd_per_page` on its own,+ * apart from the embedding ledger (page_embedding_budget), so derivation spend never starves a page's embeddings.+ */+export const PAGE_SEGMENT_DERIVATIONS_SQL = `CREATE TABLE IF NOT EXISTS page_segment_derivations (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ pipeline TEXT NOT NULL CHECK (pipeline IN (${sqlList(SEGMENT_DERIVATION_KINDS)})),+ occurrence_id BIGINT NOT NULL,+ pipeline_version INTEGER NOT NULL CHECK (pipeline_version >= 0),+ segment_sha256 BYTEA NOT NULL CHECK (octet_length(segment_sha256) = 32),+ context_hash BYTEA NOT NULL CHECK (octet_length(context_hash) = 32),+ state TEXT NOT NULL CHECK (state IN (${sqlList(SEGMENT_DERIVATION_STATES)})),+ output JSONB,+ receipt JSONB,+ created_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, pipeline, occurrence_id)+);+CREATE INDEX IF NOT EXISTS page_segment_derivations_unsettled ON page_segment_derivations (pipeline, page_id) WHERE state IN ('partial','failed');+CREATE TABLE IF NOT EXISTS page_derivation_spend (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ family TEXT NOT NULL CHECK (family IN ('facts','synopsis')),+ spent_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (spent_usd >= 0),+ reserved_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (reserved_usd >= 0),+ reserved_at TIMESTAMPTZ,+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, family)+);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purges (+ request_id UUID PRIMARY KEY,+ source_id TEXT NOT NULL REFERENCES sources(id) ON DELETE CASCADE,+ needles TEXT[] NOT NULL,+ patterns TEXT[] NOT NULL,+ page_ids INTEGER[] NOT NULL DEFAULT '{}',+ phase TEXT NOT NULL DEFAULT 'sweep' CHECK (phase IN ('sweep','verify','recheck')),+ recheck INTEGER[],+ found INTEGER NOT NULL DEFAULT 0 CHECK (found >= 0),+ cursor_page INTEGER,+ cursor_pipeline TEXT,+ cursor_occurrence BIGINT,+ batch_rows INTEGER CHECK (batch_rows >= 1),+ stalled_at TIMESTAMPTZ,+ stalled_reason TEXT CHECK (stalled_reason IN ('statement_timeout','paid_row_unreadable')),+ pending_reason TEXT CHECK (pending_reason IN ('scope_lock_busy')),+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()+);+CREATE INDEX IF NOT EXISTS page_segment_derivation_purges_source ON page_segment_derivation_purges (source_id, created_at);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purge_pages (+ request_id UUID NOT NULL,+ page_id INTEGER NOT NULL,+ PRIMARY KEY (request_id, page_id)+);+CREATE OR REPLACE FUNCTION gbrain_mark_derivation_scope_entry() RETURNS trigger SET search_path = pg_catalog, public AS $func$+DECLARE+ src TEXT;+ page INTEGER;+BEGIN+ IF TG_TABLE_NAME = 'pages' THEN+ src := NEW.source_id;+ page := NEW.id;+ ELSE+ src := OLD.source_id;+ page := OLD.page_id;+ END IF;+ PERFORM pg_advisory_xact_lock_shared(${derivationScopeLockSql('src')});+ INSERT INTO page_segment_derivation_purge_pages (request_id, page_id)+ SELECT x.request_id, page FROM page_segment_derivation_purges x WHERE x.source_id = src ON CONFLICT DO NOTHING;+ RETURN NULL;+END+$func$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_retire ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_retire AFTER UPDATE OF gen_to ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND NEW.gen_to IS NOT NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_delete ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_delete AFTER DELETE ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS pages_derivation_scope_delete ON pages;+CREATE TRIGGER pages_derivation_scope_delete AFTER UPDATE OF deleted_at ON pages+ FOR EACH ROW WHEN (OLD.deleted_at IS NULL AND NEW.deleted_at IS NOT NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+CREATE OR REPLACE FUNCTION gbrain_refuse_purging_derivation() RETURNS trigger SET search_path = pg_catalog, public AS $func$+BEGIN+ IF EXISTS (SELECT 1 FROM page_segment_derivation_purges x JOIN pages p ON p.source_id = x.source_id+ WHERE p.id = NEW.page_id AND ${derivationSweepScopeSql('NEW', 'p', 'x.page_ids')}+ AND ${derivationHoldsClaimSql('NEW', 'x.needles', 'x.patterns')}) THEN+ RETURN NULL;+ END IF;+ RETURN NEW;+END+$func$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_segment_derivations_refuse_purging ON page_segment_derivations;+CREATE TRIGGER page_segment_derivations_refuse_purging BEFORE INSERT OR UPDATE OF output, receipt ON page_segment_derivations+ FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purging_derivation();`;+/*** The segment tables hold page text (`page_segment_texts`, `page_body_staging_parts`) or a page's shape and- * headings (`page_body_manifest`, `page_body_stagings`, `page_view_digests`), so they get the posture of `pages`+ * headings (`page_body_manifest`, `page_body_stagings`, `page_view_digests`) or derived link context+ * (`page_segment_derivations`, and the purged claims `page_segment_derivation_purges` holds), so they get the posture of `pages`* and `content_chunks`: RLS on, re-asserted on every schema replay like the core list in src/schema.sql, so a brain* the auto-RLS event trigger (v35) missed, or one where it was dropped or disabled, never serves segment text to a* role `pages` returns no rows to. Only under a role that bypasses RLS (else the runtime role would lock itself out),diff --cc src/core/page-body/segment-facts.tsindex e45f132650,e896c0f988..e793ada998--- a/src/core/page-body/segment-facts.ts+++ b/src/core/page-body/segment-facts.ts@@@ -100,37 -79,14 +100,37 @@@ export class FactsFenceScan}const end = indexOfOutsideCode(text, FACTS_FENCE_END, search);const piece = text.slice(from, end === -1 ? text.length : end + FACTS_FENCE_END.length);- fenceChars += piece.length;+ this.fenceChars += piece.length;segmentedPassWork.carry += piece.length;- if (fenceChars > BLOCK_MAX_BYTES) throw blockTooLargeError(page.slug, page.source_id, fenceChars);- fence.push(piece);- if (end !== -1) parsedText = fence.join('');+ if (this.fenceChars > BLOCK_MAX_BYTES) throw blockTooLargeError(this.page.slug, this.page.source_id, this.fenceChars);+ this.fence.push(piece);+ if (end !== -1) this.parsedText = this.fence.join('');}- const reduced = parsedText ?? (fence ? FACTS_FENCE_BEGIN : endOnly ? `${'\n'.repeat(FACTS_FENCE_BEGIN.length)}${FACTS_FENCE_END}` : '');- return { parsed: parseFactsFence(reduced), holds: fence !== null, marker, text: parsedText };++ result(): RegionFence {+ return regionFenceOf(this.parsedText, this.fence !== null, this.endOnly, this.marker);+ }++ /** What the blocks pushed so far hold, for a run's fences row. */+ summary(): FactsRunSummary {+ const text = this.fence?.join('');+ return { marker: this.marker, endOnly: this.endOnly, fence: text === undefined ? null : { sha: keyDigest(text), closed: this.parsedText !== null, text } };+ }+}+- interface RegionFence { parsed: FactsFenceParseResult; holds: boolean; marker: boolean }++interface RegionFence { parsed: FactsFenceParseResult; holds: boolean; marker: boolean; text: string | null }++function regionFenceOf(parsedText: string | null, holds: boolean, endOnly: boolean, marker: boolean): RegionFence {+ const reduced = parsedText ?? (holds ? FACTS_FENCE_BEGIN : endOnly ? `${'\n'.repeat(FACTS_FENCE_BEGIN.length)}${FACTS_FENCE_END}` : '');- return { parsed: parseFactsFence(reduced), holds, marker };++ return { parsed: parseFactsFence(reduced), holds, marker, text: parsedText };+}++/** One region of the facts fence view, streamed, reading only the runs that can hold a fence marker. */+async function regionFence(engine: BrainEngine, page: FencePage, region: BodyRegion, marked: ReadonlySet<number>): Promise<RegionFence> {+ const scan = new FactsFenceScan(page, region);+ const want = ({ seqs }: { seqs: readonly number[] }) => scan.open || ((!scan.parsed || region === 'timeline') && seqs.some(seq => marked.has(seq)));+ for await (const { text, at } of bodyBlocks(engine, page, { regions: [region], want })) scan.push(text, at === 0);+ return scan.result();}/** factsFenceView of a segmented page, reading only the runs that can hold a fence marker. */@@@ -139,127 -100,10 +144,134 @@@ export async function segmentedFactsFenconst marked = await markerSeqs(engine, p.id);const truth = await regionFence(engine, p, 'truth', marked);const timeline = await regionFence(engine, p, 'timeline', marked);- return { body: truth.parsed, timeline: timeline.parsed, sections: { body: truth.holds, timeline: timeline.holds }, timelineMarker: timeline.marker };+ return { view: { body: truth.parsed, timeline: timeline.parsed, sections: { body: truth.holds, timeline: timeline.holds }, timelineMarker: timeline.marker },+ blocks: { body: truth.text, timeline: timeline.text } };}+/**+ * One run's FactsFenceScan state (a scan started fresh at the run): the timeline marker, the end-only scan before any+ * begin, and its first fence: its digest and whether it closed. Its `text` is held in memory only (a run just scanned,+ * or read again for it) and never stored on the fences row.+ */+export interface FactsRunSummary { marker: boolean; endOnly: boolean; fence: { sha: string; closed: boolean; text?: string } | null }++/** What a run's fences row holds (spec 8.2 facts / takes fences): the facts and takes scans of its blocks, fence texts left out. */+export interface FenceRunOutput { facts: FactsRunSummary; takes: TakesRunSummary }++const withoutText = <F extends { fence: { sha: string; closed: boolean; text?: string } | null }>(summary: F): F =>+ ({ ...summary, fence: summary.fence && { sha: summary.fence.sha, closed: summary.fence.closed } });++/**+ * Each run of a segmented page with its fences row output, in page order (spec 8.2 facts / takes fences): runs whose+ * rows match their text are reused, the others are read block by block and stored. Null when the page is not+ * segmented. A fence parse is a function of the text alone (fence trust moves stored regions, not markers), so the+ * context is the run's identity, the ledger and the segmenter version the driver adds.+ */+export async function segmentedFenceRuns(engine: BrainEngine, page: FencePage): Promise<Array<{ run: DeriveRun; output: FenceRunOutput }> | null> {+ const scope = await derivationScope(engine, page);+ if (!scope) return null;+ const fences = await openFenceRuns(engine, page, scope);+ return fences.finish();+}++type FenceScans = Map<number, { facts: FactsFenceScan; takes: TakesFenceScan; at: number; seen: boolean }>;+const fenceScans = (page: FencePage, runs: readonly DeriveRun[]): FenceScans =>+ new Map(runs.map(run => [run.index, { facts: new FactsFenceScan(page, run.region), takes: new TakesFenceScan(page), at: 0, seen: false }]));+const scanOf = (scans: FenceScans) => [...scans].map(([index, scan]) => [index, { facts: scan.facts.summary(), takes: scan.takes.summary() }] as const);++/** Feed one block of a run to that run's scans, in order. */+const feed = (scans: FenceScans) => (run: DeriveRun | null, block: BodyBlock) => {+ const scan = run && scans.get(run.index);+ if (!scan) return;+ scan.seen = true;+ scan.facts.push(block.text, run.first && scan.at === 0);+ scan.takes.push({ text: block.text, at: run.first ? scan.at : Number.MAX_SAFE_INTEGER });+ scan.at += block.text.length;+};++/**+ * The fences rows of a scope, for a caller that reads some runs for another kind: `push` the blocks it reads (a due+ * run seen whole is scanned there), then `finish` reads only the due runs still unscanned and stores every scan. A+ * row keeps a fence's digest, not its text (spec 11): the run holding each region's first closed facts or takes fence+ * is read again for it when its row is current, and a text whose digest moved throws SegmentDerivationRaced.+ */+export async function openFenceRuns(engine: BrainEngine, page: FencePage, scope: DerivationScope) {+ const inputs = () => ({ facts: FACTS_FENCE_BEGIN, takes: TAKES_FENCE_BEGIN });+ const plan = await planRuns<FenceRunOutput>(engine, 'fences', scope, inputs);+ const scans = fenceScans(page, plan.todo);+ const push = feed(scans);+ return {+ /** Feed one block a caller read whole with its run's other blocks, in order. */+ push,+ async finish(): Promise<Array<{ run: DeriveRun; output: FenceRunOutput }>> {+ await readRuns(engine, scope, new Set([...scans].filter(([, scan]) => !scan.seen).map(([index]) => index)), push);+ const outputs = new Map<number, FenceRunOutput>(scanOf(scans));+ await commitRuns(engine, 'fences', scope, new Map([...outputs].map(([index, o]) => [index, { facts: withoutText(o.facts), takes: withoutText(o.takes) }])), inputs);+ const runs = scope.runs.map(run => ({ run, output: outputs.get(run.index) ?? plan.current.get(run.index)! }));+ const holders = new Set<number>();+ const unread = (fence: FactsRunSummary['fence']) => !!fence?.closed && fence.text === undefined;+ for (const region of ['truth', 'timeline'] as const) {+ const own = runs.filter(({ run }) => run.region === region);+ const facts = own.find(({ output }) => output.facts.fence), takes = own.find(({ output }) => output.takes.fence);+ if (facts && unread(facts.output.facts.fence)) holders.add(facts.run.index);+ if (takes && unread(takes.output.takes.fence)) holders.add(takes.run.index);+ }+ if (!holders.size) return runs;+ const again = fenceScans(page, scope.runs.filter(run => holders.has(run.index)));+ await readRuns(engine, scope, holders, feed(again));+ segmentDeriveWork.fences.reread += holders.size;+ const text = <F extends FactsRunSummary | TakesRunSummary>(stored: F, read: F): F => {+ if (!stored.fence || stored.fence.text !== undefined) return stored;+ if (read.fence?.sha !== stored.fence.sha) throw new SegmentDerivationRaced(page.slug);+ return { ...stored, fence: { ...stored.fence, text: read.fence.text } };+ };+ for (const [index, read] of scanOf(again)) {+ const at = runs[index]!;+ at.output = { facts: text(at.output.facts, read.facts), takes: text(at.output.takes, read.takes) };+ }+ return runs;+ },+ };+}++/** A region's facts fence from its runs' summaries, in order; null when a fence does not close in the run it begins in. */+export function factsFromRuns(summaries: readonly FactsRunSummary[]): RegionFence | null {+ let endOnly = false, marker = false, parsedText: string | null = null;+ for (const summary of summaries) {+ marker ||= summary.marker;+ if (parsedText !== null) continue;+ if (summary.fence) {+ if (!summary.fence.closed || summary.fence.text === undefined) return null;+ parsedText = summary.fence.text;+ } else endOnly ||= summary.endOnly;+ }+ return regionFenceOf(parsedText, parsedText !== null, endOnly, marker);+}++/**+ * factsFenceView of a segmented page from its fences rows (segmentedFenceRuns): only runs that changed since their row+ * was written are read. Falls back to segmentedFactsFenceView when a fence runs past the run it begins in or the body+ * moves during the read.+ */+export async function incrementalFactsFenceView(engine: BrainEngine, page: { id?: number; slug?: string; source_id?: string }): Promise<FactsFenceView> {++ return (await incrementalFactsFence(engine, page)).view;++}++++/** incrementalFactsFenceView with each region's whole fence text, as segmentedFactsFence returns them. */++export async function incrementalFactsFence(engine: BrainEngine, page: { id?: number; slug?: string; source_id?: string }): Promise<{ view: FactsFenceView; blocks: { body: string | null; timeline: string | null } }> {+ const p = { id: Number(page.id), slug: page.slug ?? '', source_id: page.source_id ?? 'default' };+ const runs = await segmentedFenceRuns(engine, p).catch(error => {+ if (error instanceof SegmentDerivationRaced) return null;+ throw error;+ });+ const region = (name: BodyRegion) => runs && factsFromRuns(runs.filter(({ run }) => run.region === name).map(({ output }) => output.facts));+ const truth = region('truth');+ const timeline = region('timeline');- if (!truth || !timeline) return segmentedFactsFenceView(engine, page);- return { body: truth.parsed, timeline: timeline.parsed, sections: { body: truth.holds, timeline: timeline.holds }, timelineMarker: timeline.marker };++ if (!truth || !timeline) return segmentedFactsFence(engine, page);++ return { view: { body: truth.parsed, timeline: timeline.parsed, sections: { body: truth.holds, timeline: timeline.holds }, timelineMarker: timeline.marker },++ blocks: { body: truth.text, timeline: timeline.text } };+}+const FILE_READ_BYTES = 1024 * 1024;/** Each region's [bytes, SHA-256] as the file splits it (parseMarkdown's compiled_truth and timeline), streamed from the file. */diff --cc src/core/persistence/canonical-projections.tsindex f08df03fc4,e9d1e150e8..6e7f50dff2--- a/src/core/persistence/canonical-projections.ts+++ b/src/core/persistence/canonical-projections.ts@@@ -5,9 -5,9 +5,9 @@@ import type { PageSnapshot } from '../pimport { pipelined } from '../page-state/transactions.ts';import { FACTS_FENCE_BEGIN, FACTS_FENCE_END, parseFactsFence } from '../facts-fence.ts';import { TAKES_FENCE_BEGIN, TAKES_FENCE_END, parseTakesFence } from '../takes-fence.ts';- import { extractFactsFromFenceText } from '../facts/extract-from-fence.ts';+ import { extractFactsFromFenceText, pageFactDate } from '../facts/extract-from-fence.ts';import { takesPreparation } from '../takes-write.ts';-import { parseTimelineEntries } from '../link-extraction.ts';+import { LINK_EXTRACTOR_VERSION_TS, parseTimelineEntries } from '../link-extraction.ts';import { eachStoredTimelineRow, extractTimelineFromContent, hasExtractorDetail, supersededCitationTimeline, TimelineKeySet,type ExtractedTimelineEntry } from '../timeline-extract.ts';import { sanitizeRemoteBody } from '../remote-body.ts';diff --cc src/core/persistence/links-preparation.tsindex 66d901007e,b308f22967..48a393919d--- a/src/core/persistence/links-preparation.ts+++ b/src/core/persistence/links-preparation.ts@@@ -11,16 -11,11 +11,18 @@@ import { readFix } from '../ops/op-fix.import { readLineGrammarSettings, type LineGrammarSettings } from '../line-grammar.ts';import { primeRelationSemantics } from '../link-semantics-pack.ts';import { bodyUnread, isSegmentedPage } from '../page-body/page-shape.ts';-import { extractSegmentedPageLinks, segmentedRoleText } from '../page-body/segment-links.ts';+import { extractSegmentedPageLinks, openSegmentedLinkSession, segmentedRoleText } from '../page-body/segment-links.ts';+import { SegmentDerivationRaced } from '../page-body/segment-derive.ts';import { temporalBodyOf, type TemporalBody } from '../link-temporal-apply.ts';+ import { linksFenceProjectionRows, projectLinksFence } from '../links-fence-projection.ts';+ import { isQuarantined } from '../quarantine.ts';+/** A body that moved under an incremental read: null, so the caller takes the full pass. */+const raced = (error: unknown): null => {+ if (error instanceof SegmentDerivationRaced) return null;+ throw error;+};+async function liveSlugAliases(engine: BrainEngine, sourceId: string, targets: string[]): Promise<Map<string, string>> {if (!targets.length) return new Map();try {@@@ -104,17 -98,12 +106,19 @@@ export async function prepareAutomaticLif (!opts.pack || !settings) return { pageKeys: [{ sourceId, slug }], attendanceComplete: true, settings,apply: async () => ({ created: 0, removed: 0, errors: 1, unresolved_count: 1 }) };const segmented = bodyUnread(page) ? { id: Number(page.id), slug, source_id: sourceId, type: page.type, frontmatter: page.frontmatter } : null;+ // G5: re-derivation also restores the page's links fence edges (a body with no readable fence leaves them alone).+ const fenceLinks = segmented || isQuarantined(page.frontmatter) ? null : await linksFenceProjectionRows(engine, sourceId, page);- const roleText = segmented ? await segmentedRoleText(engine, segmented) : undefined;- const extract = (o: ExtractPageLinksOptions & { temporal?: boolean }): Promise<PageLinksResult & { temporalBody?: TemporalBody }> => segmented- ? extractSegmentedPageLinks(engine, segmented, resolver, { ...o, roleText })- : extractPageLinks(slug, `${page.compiled_truth}\n${page.timeline}`, page.frontmatter, page.type, resolver, o);+ let session = segmented ? await openSegmentedLinkSession(engine, segmented, resolver, opts).catch(raced) : null;+ let roleText: string | undefined;+ const extract = async (o: ExtractPageLinksOptions & { temporal?: boolean }): Promise<PageLinksResult & { temporalBody?: TemporalBody }> => {+ if (!segmented) return extractPageLinks(slug, `${page.compiled_truth}\n${page.timeline}`, page.frontmatter, page.type, resolver, o);+ const targetType = o.targetType;+ const incremental = session && await (targetType ? session.finish({ ...o, targetType }) : session.targets(o)).catch(raced);+ if (incremental) return incremental;+ session = null;+ roleText ??= await segmentedRoleText(engine, segmented);+ return extractSegmentedPageLinks(engine, segmented, resolver, { ...o, roleText });+ };const referenced = new Set([slug]);const initial = await extract({ ...opts, onResolvedFrontmatterTarget: target => referenced.add(target) });// A link written against a renamed page's old slug follows its slug alias, like get_page does.diff --cc src/core/pglite-schema.generated.tsindex 0ca773f286,02a44f2540..ba667bf4dd--- a/src/core/pglite-schema.generated.ts+++ b/src/core/pglite-schema.generated.ts@@@ -1388,101 -1466,6 +1466,101 @@@ CREATE TABLE IF NOT EXISTS page_body_st);CREATE INDEX IF NOT EXISTS page_body_staging_texts_text ON page_body_staging_texts (source_id, sha256);- -- Wave B per-segment derivation watermarks (migration v265; src/core/page-body/derivations.ts).++-- Wave B per-segment derivation watermarks (migration v273; src/core/page-body/derivations.ts).+CREATE TABLE IF NOT EXISTS page_segment_derivations (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ pipeline TEXT NOT NULL CHECK (pipeline IN ('links','mentions','timeline','fences','conversation_facts','facts_backstop','synopsis')),+ occurrence_id BIGINT NOT NULL,+ pipeline_version INTEGER NOT NULL CHECK (pipeline_version >= 0),+ segment_sha256 BYTEA NOT NULL CHECK (octet_length(segment_sha256) = 32),+ context_hash BYTEA NOT NULL CHECK (octet_length(context_hash) = 32),+ state TEXT NOT NULL CHECK (state IN ('done','partial','failed','skipped')),+ output JSONB,+ receipt JSONB,+ created_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, pipeline, occurrence_id)+);+CREATE INDEX IF NOT EXISTS page_segment_derivations_unsettled ON page_segment_derivations (pipeline, page_id) WHERE state IN ('partial','failed');+CREATE TABLE IF NOT EXISTS page_derivation_spend (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ family TEXT NOT NULL CHECK (family IN ('facts','synopsis')),+ spent_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (spent_usd >= 0),+ reserved_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (reserved_usd >= 0),+ reserved_at TIMESTAMPTZ,+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, family)+);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purges (+ request_id UUID PRIMARY KEY,+ source_id TEXT NOT NULL REFERENCES sources(id) ON DELETE CASCADE,+ needles TEXT[] NOT NULL,+ patterns TEXT[] NOT NULL,+ page_ids INTEGER[] NOT NULL DEFAULT '{}',+ phase TEXT NOT NULL DEFAULT 'sweep' CHECK (phase IN ('sweep','verify','recheck')),+ recheck INTEGER[],+ found INTEGER NOT NULL DEFAULT 0 CHECK (found >= 0),+ cursor_page INTEGER,+ cursor_pipeline TEXT,+ cursor_occurrence BIGINT,+ batch_rows INTEGER CHECK (batch_rows >= 1),+ stalled_at TIMESTAMPTZ,+ stalled_reason TEXT CHECK (stalled_reason IN ('statement_timeout','paid_row_unreadable')),+ pending_reason TEXT CHECK (pending_reason IN ('scope_lock_busy')),+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()+);+CREATE INDEX IF NOT EXISTS page_segment_derivation_purges_source ON page_segment_derivation_purges (source_id, created_at);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purge_pages (+ request_id UUID NOT NULL,+ page_id INTEGER NOT NULL,+ PRIMARY KEY (request_id, page_id)+);+CREATE OR REPLACE FUNCTION gbrain_mark_derivation_scope_entry() RETURNS trigger SET search_path = pg_catalog, public AS \$func\$+DECLARE+ src TEXT;+ page INTEGER;+BEGIN+ IF TG_TABLE_NAME = 'pages' THEN+ src := NEW.source_id;+ page := NEW.id;+ ELSE+ src := OLD.source_id;+ page := OLD.page_id;+ END IF;+ PERFORM pg_advisory_xact_lock_shared(hashtextextended('gbrain:derivation-scope:' || src, 0));+ INSERT INTO page_segment_derivation_purge_pages (request_id, page_id)+ SELECT x.request_id, page FROM page_segment_derivation_purges x WHERE x.source_id = src ON CONFLICT DO NOTHING;+ RETURN NULL;+END+\$func\$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_retire ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_retire AFTER UPDATE OF gen_to ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND NEW.gen_to IS NOT NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_delete ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_delete AFTER DELETE ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS pages_derivation_scope_delete ON pages;+CREATE TRIGGER pages_derivation_scope_delete AFTER UPDATE OF deleted_at ON pages+ FOR EACH ROW WHEN (OLD.deleted_at IS NULL AND NEW.deleted_at IS NOT NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+CREATE OR REPLACE FUNCTION gbrain_refuse_purging_derivation() RETURNS trigger SET search_path = pg_catalog, public AS \$func\$+BEGIN+ IF EXISTS (SELECT 1 FROM page_segment_derivation_purges x JOIN pages p ON p.source_id = x.source_id+ WHERE p.id = NEW.page_id AND (NEW.page_id = ANY(x.page_ids::int[]) OR p.deleted_at IS NOT NULL OR NOT EXISTS (SELECT 1 FROM page_body_manifest m+ WHERE m.page_id = NEW.page_id AND m.occurrence_id = NEW.occurrence_id AND m.gen_to IS NULL AND m.staging_id IS NULL AND m.sha256 = NEW.segment_sha256))+ AND CASE WHEN replace(translate(lower(COALESCE(NEW.output::text, '') || ' ' || COALESCE(NEW.receipt::text, '')), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM (VALUES (NEW.output), (NEW.receipt)) doc(j),+ LATERAL (SELECT jsonb_path_query(doc.j, 'strict \$.** ? (@.type() == "string")') #>> '{}' AS t+ UNION ALL SELECT jsonb_path_query(doc.j, 'strict \$.** ? (@.type() == "object").keyvalue().key') #>> '{}') s+ WHERE CASE WHEN replace(translate(lower(s.t), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM unnest(x.needles::text[]) k(n)+ WHERE strpos(' ' || replace(translate(gbrain_fact_normalize(s.t), 'ς', 'σ'), 'i̇', 'i') || ' ', k.n) > 0) ELSE false END) ELSE false END) THEN+ RETURN NULL;+ END IF;+ RETURN NEW;+END+\$func\$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_segment_derivations_refuse_purging ON page_segment_derivations;+CREATE TRIGGER page_segment_derivations_refuse_purging BEFORE INSERT OR UPDATE OF output, receipt ON page_segment_derivations+ FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purging_derivation();+-- Durable concurrent persistence (migration 151).diff --cc src/core/schema-embedded.generated.tsindex f38e846219,7de5ffd4c0..6863a511d6--- a/src/core/schema-embedded.generated.ts+++ b/src/core/schema-embedded.generated.ts@@@ -2131,103 -2211,6 +2211,103 @@@ CREATE TABLE IF NOT EXISTS page_body_stCREATE INDEX IF NOT EXISTS page_body_staging_texts_text ON page_body_staging_texts (source_id, sha256);-- END GENERATED from src/core/page-body/schema.ts (PAGE_BODY_SCHEMA_SQL)- -- Wave B per-segment derivation watermarks (migration v265; src/core/page-body/derivations.ts).++-- Wave B per-segment derivation watermarks (migration v273; src/core/page-body/derivations.ts).+-- BEGIN GENERATED from src/core/page-body/schema.ts (PAGE_SEGMENT_DERIVATIONS_SQL). Edit that file, then run: bun run build:schema+CREATE TABLE IF NOT EXISTS page_segment_derivations (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ pipeline TEXT NOT NULL CHECK (pipeline IN ('links','mentions','timeline','fences','conversation_facts','facts_backstop','synopsis')),+ occurrence_id BIGINT NOT NULL,+ pipeline_version INTEGER NOT NULL CHECK (pipeline_version >= 0),+ segment_sha256 BYTEA NOT NULL CHECK (octet_length(segment_sha256) = 32),+ context_hash BYTEA NOT NULL CHECK (octet_length(context_hash) = 32),+ state TEXT NOT NULL CHECK (state IN ('done','partial','failed','skipped')),+ output JSONB,+ receipt JSONB,+ created_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, pipeline, occurrence_id)+);+CREATE INDEX IF NOT EXISTS page_segment_derivations_unsettled ON page_segment_derivations (pipeline, page_id) WHERE state IN ('partial','failed');+CREATE TABLE IF NOT EXISTS page_derivation_spend (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ family TEXT NOT NULL CHECK (family IN ('facts','synopsis')),+ spent_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (spent_usd >= 0),+ reserved_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (reserved_usd >= 0),+ reserved_at TIMESTAMPTZ,+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, family)+);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purges (+ request_id UUID PRIMARY KEY,+ source_id TEXT NOT NULL REFERENCES sources(id) ON DELETE CASCADE,+ needles TEXT[] NOT NULL,+ patterns TEXT[] NOT NULL,+ page_ids INTEGER[] NOT NULL DEFAULT '{}',+ phase TEXT NOT NULL DEFAULT 'sweep' CHECK (phase IN ('sweep','verify','recheck')),+ recheck INTEGER[],+ found INTEGER NOT NULL DEFAULT 0 CHECK (found >= 0),+ cursor_page INTEGER,+ cursor_pipeline TEXT,+ cursor_occurrence BIGINT,+ batch_rows INTEGER CHECK (batch_rows >= 1),+ stalled_at TIMESTAMPTZ,+ stalled_reason TEXT CHECK (stalled_reason IN ('statement_timeout','paid_row_unreadable')),+ pending_reason TEXT CHECK (pending_reason IN ('scope_lock_busy')),+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()+);+CREATE INDEX IF NOT EXISTS page_segment_derivation_purges_source ON page_segment_derivation_purges (source_id, created_at);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purge_pages (+ request_id UUID NOT NULL,+ page_id INTEGER NOT NULL,+ PRIMARY KEY (request_id, page_id)+);+CREATE OR REPLACE FUNCTION gbrain_mark_derivation_scope_entry() RETURNS trigger SET search_path = pg_catalog, public AS \$func\$+DECLARE+ src TEXT;+ page INTEGER;+BEGIN+ IF TG_TABLE_NAME = 'pages' THEN+ src := NEW.source_id;+ page := NEW.id;+ ELSE+ src := OLD.source_id;+ page := OLD.page_id;+ END IF;+ PERFORM pg_advisory_xact_lock_shared(hashtextextended('gbrain:derivation-scope:' || src, 0));+ INSERT INTO page_segment_derivation_purge_pages (request_id, page_id)+ SELECT x.request_id, page FROM page_segment_derivation_purges x WHERE x.source_id = src ON CONFLICT DO NOTHING;+ RETURN NULL;+END+\$func\$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_retire ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_retire AFTER UPDATE OF gen_to ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND NEW.gen_to IS NOT NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_delete ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_delete AFTER DELETE ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS pages_derivation_scope_delete ON pages;+CREATE TRIGGER pages_derivation_scope_delete AFTER UPDATE OF deleted_at ON pages+ FOR EACH ROW WHEN (OLD.deleted_at IS NULL AND NEW.deleted_at IS NOT NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+CREATE OR REPLACE FUNCTION gbrain_refuse_purging_derivation() RETURNS trigger SET search_path = pg_catalog, public AS \$func\$+BEGIN+ IF EXISTS (SELECT 1 FROM page_segment_derivation_purges x JOIN pages p ON p.source_id = x.source_id+ WHERE p.id = NEW.page_id AND (NEW.page_id = ANY(x.page_ids::int[]) OR p.deleted_at IS NOT NULL OR NOT EXISTS (SELECT 1 FROM page_body_manifest m+ WHERE m.page_id = NEW.page_id AND m.occurrence_id = NEW.occurrence_id AND m.gen_to IS NULL AND m.staging_id IS NULL AND m.sha256 = NEW.segment_sha256))+ AND CASE WHEN replace(translate(lower(COALESCE(NEW.output::text, '') || ' ' || COALESCE(NEW.receipt::text, '')), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM (VALUES (NEW.output), (NEW.receipt)) doc(j),+ LATERAL (SELECT jsonb_path_query(doc.j, 'strict \$.** ? (@.type() == "string")') #>> '{}' AS t+ UNION ALL SELECT jsonb_path_query(doc.j, 'strict \$.** ? (@.type() == "object").keyvalue().key') #>> '{}') s+ WHERE CASE WHEN replace(translate(lower(s.t), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM unnest(x.needles::text[]) k(n)+ WHERE strpos(' ' || replace(translate(gbrain_fact_normalize(s.t), 'ς', 'σ'), 'i̇', 'i') || ' ', k.n) > 0) ELSE false END) ELSE false END) THEN+ RETURN NULL;+ END IF;+ RETURN NEW;+END+\$func\$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_segment_derivations_refuse_purging ON page_segment_derivations;+CREATE TRIGGER page_segment_derivations_refuse_purging BEFORE INSERT OR UPDATE OF output, receipt ON page_segment_derivations+ FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purging_derivation();+-- END GENERATED from src/core/page-body/schema.ts (PAGE_SEGMENT_DERIVATIONS_SQL)+-- BEGIN GENERATED from src/core/page-body/schema.ts (PAGE_BODY_RLS_SQL). Edit that file, then run: bun run build:schemaDO \$rls\$DECLARE target TEXT;diff --cc src/core/schema-migrations/latest.generated.tsindex d776960602,0ce9625d70..1a209b9221--- a/src/core/schema-migrations/latest.generated.ts+++ b/src/core/schema-migrations/latest.generated.ts@@@ -4,4 -4,4 +4,4 @@@// The highest schema migration version (migrate.ts LATEST_VERSION), importable without// loading the migrations themselves.- export const LATEST_SCHEMA_VERSION = 265;-export const LATEST_SCHEMA_VERSION = 272;++export const LATEST_SCHEMA_VERSION = 273;diff --cc src/core/schema-migrations/registry.generated.tsindex 5e4bd2df01,f9798571c9..f6c232ce69--- a/src/core/schema-migrations/registry.generated.ts+++ b/src/core/schema-migrations/registry.generated.ts@@@ -265,7 -265,14 +265,15 @@@ import { v261 } from './v261-persistencimport { v262 } from './v262-commit-notifier.ts';import { v263 } from './v263-try-jsonb-function.ts';import { v264 } from './v264-set-based-fact-insert-guards.ts';- import { v265 } from './v265-segment-derivations.ts';+ import { v265 } from './v265-derived-generations.ts';+ import { v266 } from './v266-derived-generation-activations.ts';+ import { v267 } from './v267-pages-title-search-index.ts';+ import { v268 } from './v268-effect-claim-owner.ts';+ import { v269 } from './v269-links-supersedes-index.ts';+ import { v270 } from './v270-pages-source-created-index.ts';+ import { v271 } from './v271-facts-superseded-by-index.ts';+ import { v272 } from './v272-git-canonical-declared.ts';++import { v273 } from './v273-segment-derivations.ts';// Array order is historical (see HISTORICAL_ARRAY_ORDER in the generator); the// runner sorts by version before applying.@@@ -530,4 -537,11 +538,12 @@@ export const MIGRATIONS: Migration[] =v263,v264,v265,+ v266,+ v267,+ v268,+ v269,+ v270,+ v271,+ v272,++ v273,];diff --cc src/core/schema-migrations/v273-segment-derivations.tsindex 49a237c944,0000000000..f971a5d0famode 100644,000000..100644--- a/src/core/schema-migrations/v273-segment-derivations.ts+++ b/src/core/schema-migrations/v273-segment-derivations.ts@@@ -1,50 -1,0 +1,50 @@@+import type { Migration } from './types.ts';+import { PAGE_SEGMENT_DERIVATIONS_SQL } from '../page-body/schema.ts';+import { runMigrationStatement } from './helpers.ts';++// Applied by src/core/migrate.ts on the next initSchema(); see docs/ENGINES.md+// ("Canonical schema sources") for when schema.sql or a TS fragment also changes.+//+// Wave B PR 4, incremental derivation (wave-b spec 1.2 item 7, 8.1, 8.2):+// - page_segment_derivations: per page, pipeline and manifest occurrence, the+// segment sha, context hash and pipeline version a derivation ran on, its+// outcome and a bounded output (also in both blobs; the blob's RLS block,+// replayed on every initSchema, covers it on Postgres).+// - facts.source_window: the conversation window a fact was extracted from,+// {occurrence_id, window_ordinal, window_text_sha} (page-body/derivations.ts+// SourceWindow), so an append re-extracts only new windows and deletes only+// the facts of retired ones. NULL for every existing fact and every fact not+// extracted from a segmented conversation window. Migration-only, like every+// facts column (v045 creates the table). Classified as a projection column+// for write attribution: it locates the fact's source text and is not+// asserted content, so the attribution trigger is unchanged.+//+// Nothing to backfill. facts_source_window_chk keeps a malformed anchor (a+// double-encoded JSON string included) out; it is added NOT VALID and+// validated in its own statement, so no facts scan runs under the exclusive+// lock of the ALTER; that statement gets the same statement budget and bounded+// lock wait as the migration's SQL (runMigrationStatement). Per-page window reads use the existing+// (source_id, source_markdown_slug, row_num) index.- export const v265: Migration = {- version: 265,++export const v273: Migration = {++ version: 273,+ name: 'segment_derivations',+ idempotent: true,+ transaction: false,+ sql: `+ ${PAGE_SEGMENT_DERIVATIONS_SQL}+ ALTER TABLE facts ADD COLUMN IF NOT EXISTS source_window JSONB;+ DO $do$ BEGIN+ IF NOT EXISTS (SELECT 1 FROM pg_constraint WHERE conname = 'facts_source_window_chk' AND conrelid = 'facts'::regclass) THEN+ ALTER TABLE facts ADD CONSTRAINT facts_source_window_chk CHECK (source_window IS NULL OR (+ jsonb_typeof(source_window) = 'object'+ AND jsonb_typeof(source_window->'occurrence_id') = 'number'+ AND jsonb_typeof(source_window->'window_ordinal') = 'number'+ AND jsonb_typeof(source_window->'window_text_sha') = 'string'+ )) NOT VALID;+ END IF;+ END $do$;+ `,+ handler: async engine => {- await runMigrationStatement(engine, 265, 'ALTER TABLE facts VALIDATE CONSTRAINT facts_source_window_chk;');++ await runMigrationStatement(engine, 273, 'ALTER TABLE facts VALIDATE CONSTRAINT facts_source_window_chk;');+ },+};diff --cc src/core/transcripts/render.tsindex 7a6e7cba3a,5df732a303..f861b05151--- a/src/core/transcripts/render.ts+++ b/src/core/transcripts/render.ts@@@ -16,35 -16,22 +16,35 @@@* match it is escaped so hostile message content cannot forge speakers or* timestamps on re-parse.*- * Split pages: bodies over PART_TARGET_BYTES split at message boundaries- * with OVERLAP_MESSAGES carried into the next part (cross-boundary- * decision/answer pairs can still ground facts; extraction dedup absorbs the- * duplicates). No message is truncated (#6388): one too large for a part- * becomes continuation blocks that repeat its speaker and timestamp anchor,- * cut only at code-point boundaries, after redaction and escaping ran over- * the whole message; continuation blocks are never repeated as overlap. Splitting exists because pages over the ~500KB embed_skip- * threshold import as zero-chunk, unsearchable pages — the 5MB import cap is- * NOT the binding limit, embed-skip is. Part slugs: part 1 keeps the base- * slug (stable when a session later grows into more parts); parts 2..N get- * `-pN`. frontmatter.id is UNIQUE PER PART (`<id8>-pN`) — a shared- * per-session id would make parts 2..N skip as cross-slug duplicates.+ * Layouts (Wave B; the mode comes from what is stored, see ingest.ts+ * `storedTranscriptLayout`):+ * - single: a new session is one page, grouped under the page ceiling+ * (`pages.max_bytes` or the content-sanity block line, whichever is+ * lower, times PAGE_CEILING_FILL). Since Wave A a page up to that ceiling+ * is stored, chunked and embedded like any other, so there is no smaller+ * size a session has to be split at. Its frontmatter is `part: 1, of: 1`,+ * as before.+ * - split: a session imported before Wave B as parts of PART_TARGET_BYTES+ * keeps them and their greedy grouping, so a grown session leaves parts+ * 1..N-1 byte-identical and only the last part (or a new one) changes.+ * The part count is not in hashed content: the title is+ * `<title> (part X)` and `transcript_import` carries `part` and the+ * `part_bytes` the parts are grouped at, never `of`. A single-layout+ * session that overflows the ceiling (a message larger than the ceiling,+ * or a session past it) is written the same way, pinned at that ceiling.+ * Groups break at message boundaries with OVERLAP_MESSAGES carried into the+ * next part (cross-boundary decision/answer pairs can still ground facts;+ * extraction dedup absorbs the duplicates). No message is truncated (#6388):+ * one too large for a part becomes continuation blocks that repeat its+ * speaker and timestamp anchor, cut only at code-point boundaries, after+ * redaction and escaping ran over the whole message; continuation blocks are+ * never repeated as overlap. Part slugs: part 1 keeps the base slug; parts+ * 2..N get `-pN`. frontmatter.id is UNIQUE PER PART (`<id8>-pN`) — a+ * shared per-session id would make parts 2..N skip as cross-slug duplicates.*/+ import { gbrainPath } from '../config.ts';import { dumpFrontmatterYaml } from '../data-frontmatter.ts';- import { homedir } from 'node:os';import { join } from 'node:path';import { DEFAULT_BYTES_WARN } from '../content-sanity.ts';import { applyRedaction, planRedaction, type EchoDictionary, type RedactionPlan } from '../secret-scan.ts';diff --cc src/schema.sqlindex 98a6a43e18,4b46a3bed2..7cd85b5ea2--- a/src/schema.sql+++ b/src/schema.sql@@@ -2127,103 -2207,6 +2207,103 @@@ CREATE TABLE IF NOT EXISTS page_body_stCREATE INDEX IF NOT EXISTS page_body_staging_texts_text ON page_body_staging_texts (source_id, sha256);-- END GENERATED from src/core/page-body/schema.ts (PAGE_BODY_SCHEMA_SQL)- -- Wave B per-segment derivation watermarks (migration v265; src/core/page-body/derivations.ts).++-- Wave B per-segment derivation watermarks (migration v273; src/core/page-body/derivations.ts).+-- BEGIN GENERATED from src/core/page-body/schema.ts (PAGE_SEGMENT_DERIVATIONS_SQL). Edit that file, then run: bun run build:schema+CREATE TABLE IF NOT EXISTS page_segment_derivations (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ pipeline TEXT NOT NULL CHECK (pipeline IN ('links','mentions','timeline','fences','conversation_facts','facts_backstop','synopsis')),+ occurrence_id BIGINT NOT NULL,+ pipeline_version INTEGER NOT NULL CHECK (pipeline_version >= 0),+ segment_sha256 BYTEA NOT NULL CHECK (octet_length(segment_sha256) = 32),+ context_hash BYTEA NOT NULL CHECK (octet_length(context_hash) = 32),+ state TEXT NOT NULL CHECK (state IN ('done','partial','failed','skipped')),+ output JSONB,+ receipt JSONB,+ created_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, pipeline, occurrence_id)+);+CREATE INDEX IF NOT EXISTS page_segment_derivations_unsettled ON page_segment_derivations (pipeline, page_id) WHERE state IN ('partial','failed');+CREATE TABLE IF NOT EXISTS page_derivation_spend (+ page_id INTEGER NOT NULL REFERENCES pages(id) ON DELETE CASCADE,+ family TEXT NOT NULL CHECK (family IN ('facts','synopsis')),+ spent_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (spent_usd >= 0),+ reserved_usd DOUBLE PRECISION NOT NULL DEFAULT 0 CHECK (reserved_usd >= 0),+ reserved_at TIMESTAMPTZ,+ updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),+ PRIMARY KEY (page_id, family)+);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purges (+ request_id UUID PRIMARY KEY,+ source_id TEXT NOT NULL REFERENCES sources(id) ON DELETE CASCADE,+ needles TEXT[] NOT NULL,+ patterns TEXT[] NOT NULL,+ page_ids INTEGER[] NOT NULL DEFAULT '{}',+ phase TEXT NOT NULL DEFAULT 'sweep' CHECK (phase IN ('sweep','verify','recheck')),+ recheck INTEGER[],+ found INTEGER NOT NULL DEFAULT 0 CHECK (found >= 0),+ cursor_page INTEGER,+ cursor_pipeline TEXT,+ cursor_occurrence BIGINT,+ batch_rows INTEGER CHECK (batch_rows >= 1),+ stalled_at TIMESTAMPTZ,+ stalled_reason TEXT CHECK (stalled_reason IN ('statement_timeout','paid_row_unreadable')),+ pending_reason TEXT CHECK (pending_reason IN ('scope_lock_busy')),+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()+);+CREATE INDEX IF NOT EXISTS page_segment_derivation_purges_source ON page_segment_derivation_purges (source_id, created_at);+CREATE TABLE IF NOT EXISTS page_segment_derivation_purge_pages (+ request_id UUID NOT NULL,+ page_id INTEGER NOT NULL,+ PRIMARY KEY (request_id, page_id)+);+CREATE OR REPLACE FUNCTION gbrain_mark_derivation_scope_entry() RETURNS trigger SET search_path = pg_catalog, public AS $func$+DECLARE+ src TEXT;+ page INTEGER;+BEGIN+ IF TG_TABLE_NAME = 'pages' THEN+ src := NEW.source_id;+ page := NEW.id;+ ELSE+ src := OLD.source_id;+ page := OLD.page_id;+ END IF;+ PERFORM pg_advisory_xact_lock_shared(hashtextextended('gbrain:derivation-scope:' || src, 0));+ INSERT INTO page_segment_derivation_purge_pages (request_id, page_id)+ SELECT x.request_id, page FROM page_segment_derivation_purges x WHERE x.source_id = src ON CONFLICT DO NOTHING;+ RETURN NULL;+END+$func$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_retire ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_retire AFTER UPDATE OF gen_to ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND NEW.gen_to IS NOT NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS page_body_manifest_derivation_scope_delete ON page_body_manifest;+CREATE TRIGGER page_body_manifest_derivation_scope_delete AFTER DELETE ON page_body_manifest+ FOR EACH ROW WHEN (OLD.gen_to IS NULL AND OLD.staging_id IS NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+DROP TRIGGER IF EXISTS pages_derivation_scope_delete ON pages;+CREATE TRIGGER pages_derivation_scope_delete AFTER UPDATE OF deleted_at ON pages+ FOR EACH ROW WHEN (OLD.deleted_at IS NULL AND NEW.deleted_at IS NOT NULL) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry();+CREATE OR REPLACE FUNCTION gbrain_refuse_purging_derivation() RETURNS trigger SET search_path = pg_catalog, public AS $func$+BEGIN+ IF EXISTS (SELECT 1 FROM page_segment_derivation_purges x JOIN pages p ON p.source_id = x.source_id+ WHERE p.id = NEW.page_id AND (NEW.page_id = ANY(x.page_ids::int[]) OR p.deleted_at IS NOT NULL OR NOT EXISTS (SELECT 1 FROM page_body_manifest m+ WHERE m.page_id = NEW.page_id AND m.occurrence_id = NEW.occurrence_id AND m.gen_to IS NULL AND m.staging_id IS NULL AND m.sha256 = NEW.segment_sha256))+ AND CASE WHEN replace(translate(lower(COALESCE(NEW.output::text, '') || ' ' || COALESCE(NEW.receipt::text, '')), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM (VALUES (NEW.output), (NEW.receipt)) doc(j),+ LATERAL (SELECT jsonb_path_query(doc.j, 'strict $.** ? (@.type() == "string")') #>> '{}' AS t+ UNION ALL SELECT jsonb_path_query(doc.j, 'strict $.** ? (@.type() == "object").keyvalue().key') #>> '{}') s+ WHERE CASE WHEN replace(translate(lower(s.t), 'ς', 'σ'), 'i̇', 'i') LIKE ANY (x.patterns::text[]) THEN EXISTS (SELECT 1 FROM unnest(x.needles::text[]) k(n)+ WHERE strpos(' ' || replace(translate(gbrain_fact_normalize(s.t), 'ς', 'σ'), 'i̇', 'i') || ' ', k.n) > 0) ELSE false END) ELSE false END) THEN+ RETURN NULL;+ END IF;+ RETURN NEW;+END+$func$ LANGUAGE plpgsql;+DROP TRIGGER IF EXISTS page_segment_derivations_refuse_purging ON page_segment_derivations;+CREATE TRIGGER page_segment_derivations_refuse_purging BEFORE INSERT OR UPDATE OF output, receipt ON page_segment_derivations+ FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purging_derivation();+-- END GENERATED from src/core/page-body/schema.ts (PAGE_SEGMENT_DERIVATIONS_SQL)+-- BEGIN GENERATED from src/core/page-body/schema.ts (PAGE_BODY_RLS_SQL). Edit that file, then run: bun run build:schemaDO $rls$DECLARE target TEXT;diff --cc test/e2e/segment-derivations-postgres.test.tsindex 0235dca888,0000000000..22aaf1d7d8mode 100644,000000..100644--- a/test/e2e/segment-derivations-postgres.test.ts+++ b/test/e2e/segment-derivations-postgres.test.ts@@@ -1,15 -1,0 +1,15 @@@+/**- * Per-segment derivation rows and facts.source_window on Postgres (Wave B PR 4 interface, migration v265): the shared++ * Per-segment derivation rows and facts.source_window on Postgres (Wave B PR 4 interface, migration v273): the shared+ * cases, including the JSONB double-encoding checks PGLite can't catch. PGLite arm: test/engine-sql-segment-derivations.test.ts.+ */+import { afterAll, beforeAll, describe } from 'bun:test';+import type { PostgresEngine } from '../../src/core/postgres-engine.ts';+import { defineSegmentDerivationCases } from '../helpers/segment-derivation-cases.ts';+import { hasDatabase, setupDB, teardownDB } from './helpers.ts';++(hasDatabase() ? describe : describe.skip)('segment derivations [postgres]', () => {+ let engine: PostgresEngine;+ beforeAll(async () => { engine = await setupDB(); }, 120_000);+ afterAll(async () => { await teardownDB(); });+ defineSegmentDerivationCases({ getEngine: () => engine });+});diff --cc test/fixtures/goldens/catalog/pglite-engine-init-default.jsonindex ac5c80b33e,f576eec51d..c7d8a65e92--- a/test/fixtures/goldens/catalog/pglite-engine-init-default.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-default.json@@@ -544,8 -541,7 +563,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.jsonindex 4d1d9296eb,e9f24cdc68..73a29767e2--- a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json@@@ -544,8 -541,7 +563,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/catalog/pglite-engine-init-high-dims.jsonindex f2b4dd5981,1e8d82a921..296b125d1c--- a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json@@@ -544,8 -541,7 +563,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/catalog/pglite-schema-blob-default.jsonindex 2115fc8a02,602fd71e36..efd7faefbb--- a/test/fixtures/goldens/catalog/pglite-schema-blob-default.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-default.json@@@ -400,10 -399,8 +419,10 @@@"gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=12baf1d365a8aa3009ac0fe6605497e6433304e8d5915a3fc0b0b39ad748f6c2","gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9","gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",+ "gbrain_mark_derivation_scope_entry()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=72ac0027fd37ecc4c72ad2e294ae3a98564736339b9ac917ea5d4112ec3cd35f","gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=6c544b9c129b6a17dcabeb5ee8d44a2b0e0af9d02ca3fe47c7d7f22ec313042c",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_try_jsonb(input text)": "RETURNS jsonb kind=f lang=plpgsql volatility=i secdef=false config=[search_path=pg_catalog, public] body_sha256=11b96a0400158fcb3dbd84255985cd11e473688c53fff64ebf92602fceccbedf","update_page_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f354d9571ef5de74a98cfd1661e09aebca711541cbdd6eb86effa48aae8822cc"diff --cc test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.jsonindex c9bcfa94df,6c74df0d18..d8bb6ddfc8--- a/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.json@@@ -400,10 -399,8 +419,10 @@@"gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=12baf1d365a8aa3009ac0fe6605497e6433304e8d5915a3fc0b0b39ad748f6c2","gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9","gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",+ "gbrain_mark_derivation_scope_entry()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=72ac0027fd37ecc4c72ad2e294ae3a98564736339b9ac917ea5d4112ec3cd35f","gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=6c544b9c129b6a17dcabeb5ee8d44a2b0e0af9d02ca3fe47c7d7f22ec313042c",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_try_jsonb(input text)": "RETURNS jsonb kind=f lang=plpgsql volatility=i secdef=false config=[search_path=pg_catalog, public] body_sha256=11b96a0400158fcb3dbd84255985cd11e473688c53fff64ebf92602fceccbedf","update_page_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=c393710877f69961517a5a820b741b9229ee9e20d045e736b191e8366170fedc"diff --cc test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.jsonindex 5214be0c5d,8bdc1c4e77..9556d6703c--- a/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.json@@@ -400,10 -399,8 +419,10 @@@"gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=12baf1d365a8aa3009ac0fe6605497e6433304e8d5915a3fc0b0b39ad748f6c2","gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9","gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",+ "gbrain_mark_derivation_scope_entry()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=72ac0027fd37ecc4c72ad2e294ae3a98564736339b9ac917ea5d4112ec3cd35f","gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=6c544b9c129b6a17dcabeb5ee8d44a2b0e0af9d02ca3fe47c7d7f22ec313042c",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_try_jsonb(input text)": "RETURNS jsonb kind=f lang=plpgsql volatility=i secdef=false config=[search_path=pg_catalog, public] body_sha256=11b96a0400158fcb3dbd84255985cd11e473688c53fff64ebf92602fceccbedf","update_page_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f354d9571ef5de74a98cfd1661e09aebca711541cbdd6eb86effa48aae8822cc"diff --cc test/fixtures/goldens/catalog/postgres-db-initschema.jsonindex 4fd2ea5dcc,7daef9d05a..ccc8d42b9c--- a/test/fixtures/goldens/catalog/postgres-db-initschema.json+++ b/test/fixtures/goldens/catalog/postgres-db-initschema.json@@@ -409,10 -408,8 +428,10 @@@"gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=12baf1d365a8aa3009ac0fe6605497e6433304e8d5915a3fc0b0b39ad748f6c2","gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9","gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",+ "gbrain_mark_derivation_scope_entry()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=72ac0027fd37ecc4c72ad2e294ae3a98564736339b9ac917ea5d4112ec3cd35f","gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=6c544b9c129b6a17dcabeb5ee8d44a2b0e0af9d02ca3fe47c7d7f22ec313042c",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_try_jsonb(input text)": "RETURNS jsonb kind=f lang=plpgsql volatility=i secdef=false config=[search_path=pg_catalog, public] body_sha256=11b96a0400158fcb3dbd84255985cd11e473688c53fff64ebf92602fceccbedf","notify_minion_job_change()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=17f7c36408688409c80befd0a9ef9314e597d78a195418d1b94426e3d0b662f8",diff --cc test/fixtures/goldens/catalog/postgres-engine-init-default.jsonindex 0d2e54750f,409b37624a..3e45643c4f--- a/test/fixtures/goldens/catalog/postgres-engine-init-default.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-default.json@@@ -547,8 -544,7 +566,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.jsonindex 316dde4f52,ad91a90bcb..8420dab3d5--- a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json@@@ -547,8 -544,7 +566,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/catalog/postgres-engine-init-high-dims.jsonindex 7c0c43d7aa,92cf585744..6f8006f2d4--- a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json@@@ -547,8 -544,7 +566,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/cli/tools-json.jsonindex bcebdf28e1,eedd70d184..0f55a875dc--- a/test/fixtures/goldens/cli/tools-json.json+++ b/test/fixtures/goldens/cli/tools-json.json@@@ -2,8 -2,8 +2,8 @@@"golden": {"exitCode": 0,"stderr": "",- "stdoutBytes": 255009,- "stdoutSha256": "9aafe2eedddce06f81e84e22147fc7ac51db5459e9c5d20e1b297cb73c2daac2",- "stdoutBytes": 264227,- "stdoutSha256": "f1f964ec0bac00c293cdf8e2dfdd28c67c75cde928f45b71f189690e93762e67",++ "stdoutBytes": 264473,++ "stdoutSha256": "f5647f0a0d45a36ed8685afa000792cef233379d012eeceec6fa2f9366d1b0ee","toolNames": ["remember","entity",diff --cc test/fixtures/goldens/doctor/content-pglite-human.jsonindex 51850ffaee,58bf82555d..3796f3b45d--- a/test/fixtures/goldens/doctor/content-pglite-human.json+++ b/test/fixtures/goldens/doctor/content-pglite-human.json@@@ -76,10 -77,11 +77,11 @@@" [OK] publication_refusals: No write was refused by a database guard in the last 7 days."," [OK] links_link_source_check: links_link_source_check has the v114 kebab-case gate"," [OK] pglite_scale: PGLite at 5 pages — comfortable below the 1000-page threshold",+ " [OK] derived_visibility: Every derived page and fact carries a visibility no looser than its source, and no page relies on a privacy alias alone."," [OK] rls: Skipped (PGLite — no PostgREST exposure, RLS not applicable)"," [OK] schema_version: Version <latest> (latest: <latest>)",- " [OK] schema_columns: 1331 column(s) verified against live schema",- " [OK] schema_missing_tables: All 156 table(s) the applied migrations create exist.",- " [OK] schema_columns: 1353 column(s) verified against live schema",- " [OK] schema_missing_tables: All 158 table(s) the applied migrations create exist.",++ " [OK] schema_columns: 1388 column(s) verified against live schema",++ " [OK] schema_missing_tables: All 162 table(s) the applied migrations create exist."," [OK] rls_event_trigger: Skipped (PGLite — no event trigger support)"," [INFO] embeddings: Not applicable: embeddings are disabled on this brain (keyword search keeps working)."," [INFO] embedding_provider: Not probed: embeddings are disabled on this brain by choice (keyword search keeps working).",@@@ -208,15 -213,15 +213,18 @@@" [OK] two_consumers_on_host: PGLite admits one process; no consumer heartbeat rows are kept."," [OK] consumers_without_heartbeat: PGLite admits one process; no consumer heartbeat rows are kept."," [OK] host_identity_mismatch: This process's host identity (<home>/.gbrain/persistence/host.json) owns every binding this filesystem holds.",+ " [OK] runtime_build_skew: No long-running gbrain process (serve, jobs supervisor, worker) is running on this host.",+ " [OK] cli_socket_refusals: The warm CLI socket refused no CLI call in the last 24 hours."," [OK] extract_atoms_held_failed: No managed atom page or transcript is held after repeated extraction failures.",+ " [OK] conversation_detection_ambiguous: No conversation page is held for an undetected format."," [OK] extraction_input_truncated: Every page extraction read all of its input (no head-only, tail-window or size-skip receipts).",+ " [OK] derivation_unpriced_model: No segmented page derivation is held back by a model without a price."," [OK] ghost_pages: No live page is missing its canonical file (5 page(s) inspected)."," [OK] origin_twins: pages_live_origin_key is present: no two live pages can record one file.",+ " [OK] slug_path_mismatch: Every live page's slug is the one its recorded file path derives (0 candidate(s) inspected)."," [OK] rename_identity_downgrades: No rename that lost its page identity is waiting for a disposition."," [OK] purge_parked_pages: No soft-deleted page is parked by the managed purge.",+ " [OK] derivation_purge_sweeps: No fact purge has a sweep of stored derivation results pending or stalled."," [INFO] missing_recorded_files: Not applicable: no source is a classic checkout on this host (managed sources are checked by ghost_pages)."," [OK] uncommitted_sync_deletions: No soft-deleted page was removed by a sync while Git never held its file (0 tombstone(s) checked)."," [INFO] unindexed_files: Unindexed files are not known for default (not computed yet), notes (not computed yet). The maintenance phase unindexed_files computes them on each run and continues an incomplete scan; to compute them now, run gbrain sources retry-held <id> --unindexed.",@@@ -225,7 -233,7 +236,7 @@@" [OK] fence_integrity: No malformed facts or takes fence is held, stored or waiting in a checkout (2 source(s) scanned)."," [OK] search_mode: Mode: conservative (no per-key overrides — mode bundle is canonical)."," [OK] hidden_by_search_policy: No pages hidden by search-exclude policy.",-- " [OK] eval_drift: No retrieval-affecting files changed in working tree.",++ " [OK] eval_drift: 34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes."," [OK] reranker_health: Reranker disabled — no failures expected"," [OK] batch_retry_health: No exhausted batch retries in last 24h."," [OK] wedged_queue: PGLite — no queue to check",diff --cc test/fixtures/goldens/doctor/content-pglite-json.jsonindex 2bf99d0141,4f082807da..9b556b9f09--- a/test/fixtures/goldens/doctor/content-pglite-json.json+++ b/test/fixtures/goldens/doctor/content-pglite-json.json@@@ -1036,14 -1059,14 +1059,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1331 column(s) verified against live schema",- "message": "1353 column(s) verified against live schema",++ "message": "1388 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 156 table(s) the applied migrations create exist.",- "message": "All 158 table(s) the applied migrations create exist.",++ "message": "All 162 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3544,7 -3705,7 +3736,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/doctor/hot-checks-pglite-json.jsonindex fd77f87bfb,53e5a59e74..24b030bf08--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json@@@ -1107,14 -1130,14 +1130,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1331 column(s) verified against live schema",- "message": "1353 column(s) verified against live schema",++ "message": "1388 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 156 table(s) the applied migrations create exist.",- "message": "All 158 table(s) the applied migrations create exist.",++ "message": "All 162 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3934,7 -4096,7 +4127,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},@@@ -5648,14 -5834,14 +5865,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1331 column(s) verified against live schema",- "message": "1353 column(s) verified against live schema",++ "message": "1388 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 156 table(s) the applied migrations create exist.",- "message": "All 158 table(s) the applied migrations create exist.",++ "message": "All 162 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -8475,7 -8800,7 +8862,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/doctor/hot-checks-postgres-json.jsonindex d525a2bdcb,0a6e5dbb63..42784e3287--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json@@@ -1089,7 -1112,7 +1112,7 @@@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 155/155 public tables",- "message": "RLS enabled on 157/157 public tables",++ "message": "RLS enabled on 161/161 public tables","name": "rls","status": "ok"},@@@ -1103,14 -1126,14 +1126,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1337 column(s) verified against live schema",- "message": "1359 column(s) verified against live schema",++ "message": "1394 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 155 table(s) the applied migrations create exist.",- "message": "All 157 table(s) the applied migrations create exist.",++ "message": "All 161 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3937,7 -4099,7 +4130,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},@@@ -5631,7 -5817,7 +5848,7 @@@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 155/155 public tables",- "message": "RLS enabled on 157/157 public tables",++ "message": "RLS enabled on 161/161 public tables","name": "rls","status": "ok"},@@@ -5645,14 -5831,14 +5862,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1337 column(s) verified against live schema",- "message": "1359 column(s) verified against live schema",++ "message": "1394 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 155 table(s) the applied migrations create exist.",- "message": "All 157 table(s) the applied migrations create exist.",++ "message": "All 161 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -8479,7 -8804,7 +8866,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/doctor/json-pglite-degraded.jsonindex a06da9919d,2c5ab8072a..7634c8f47a--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json@@@ -949,14 -972,14 +972,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1331 column(s) verified against live schema",- "message": "1353 column(s) verified against live schema",++ "message": "1388 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 156 table(s) the applied migrations create exist.",- "message": "All 158 table(s) the applied migrations create exist.",++ "message": "All 162 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3199,7 -3326,7 +3357,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/doctor/json-pglite-fresh.jsonindex 1c0c6adc4a,fbd2490a3c..6e3eed74ee--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json@@@ -996,14 -1019,14 +1019,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1331 column(s) verified against live schema",- "message": "1353 column(s) verified against live schema",++ "message": "1388 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 156 table(s) the applied migrations create exist.",- "message": "All 158 table(s) the applied migrations create exist.",++ "message": "All 162 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3243,7 -3369,7 +3400,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/doctor/json-postgres-fresh.jsonindex 3b4da582c8,b4b69236f5..2c048f9c24--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json@@@ -978,7 -1001,7 +1001,7 @@@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 155/155 public tables",- "message": "RLS enabled on 157/157 public tables",++ "message": "RLS enabled on 161/161 public tables","name": "rls","status": "ok"},@@@ -992,14 -1015,14 +1015,14 @@@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1337 column(s) verified against live schema",- "message": "1359 column(s) verified against live schema",++ "message": "1394 column(s) verified against live schema","name": "schema_columns","status": "ok"},{"category": "meta","elapsed_ms": "<volatile>",- "message": "All 155 table(s) the applied migrations create exist.",- "message": "All 157 table(s) the applied migrations create exist.",++ "message": "All 161 table(s) the applied migrations create exist.","name": "schema_missing_tables","status": "ok"},@@@ -3246,7 -3372,7 +3403,7 @@@{"category": "brain","elapsed_ms": "<volatile>",-- "message": "No retrieval-affecting files changed in working tree.",++ "message": "34 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts, src/core/search/alias-fanout.ts, src/core/search/collapse.ts, …. Re-run `gbrain eval run-all` after committing these changes.","name": "eval_drift","status": "ok"},diff --cc test/fixtures/goldens/evidence-delivery/off-path.jsonindex 1bb3e2693c,1bb3e2693c..a65a21563e--- a/test/fixtures/goldens/evidence-delivery/off-path.json+++ b/test/fixtures/goldens/evidence-delivery/off-path.json@@@ -1,22 -1,22 +1,22 @@@{"search": "{\"result\":[{\"slug\":\"chat/session-a\",\"page_id\":1,\"title\":\"chat/session-a\",\"type\":\"note\",\"chunk_text\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":1,\"chunk_index\":0,\"score\":0.36266231536865234,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":0.3039635419845581,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"page_id\":3,\"title\":\"notes/ocelot-private\",\"type\":\"note\",\"chunk_text\":\"Private ocelot memo body.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":6,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LXByaXZhdGUiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"page_id\":4,\"title\":\"notes/short\",\"type\":\"note\",\"chunk_text\":\"A short ocelot note.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":7,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":4,\"retrieved_count\":4,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true}}}]}",-- "search-remote": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_id\":4,\"score\":0.8520091772079468,\"source_id\":\"default\",\"effective_date\":null,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}]}",++ "search-remote": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_id\":4,\"score\":0.852,\"source_id\":\"default\",\"effective_date\":null,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}]}","search-subagent": "{\"result\":[{\"slug\":\"chat/session-a\",\"page_id\":1,\"title\":\"chat/session-a\",\"type\":\"note\",\"chunk_text\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners an… [truncated 2337 chars — get_page chat/session-a for full text]\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":1,\"chunk_index\":0,\"score\":0.36266231536865234,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for t… [truncated 1692 chars — get_page notes/ocelot-handbook for full text]\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":0.3039635419845581,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"page_id\":3,\"title\":\"notes/ocelot-private\",\"type\":\"note\",\"chunk_text\":\"Private ocelot memo body.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":6,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LXByaXZhdGUiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"page_id\":4,\"title\":\"notes/short\",\"type\":\"note\",\"chunk_text\":\"A short ocelot note.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":7,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":4,\"retrieved_count\":4,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true}}}]}","query": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":1,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":1,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":504,\"dropped\":0,\"kept\":1},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}","query-budget": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat h\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":1,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":1,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":4,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":300,\"used\":300,\"dropped\":3,\"kept\":1,\"truncated\":true},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"},{\"stage\":\"budget_truncated\",\"reason\":\"first_result_truncated\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}","query-low": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":2,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":2,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":504,\"dropped\":0,\"kept\":1},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}",-- "recall": "{\"result\":{\"facts\":[],\"total\":0,\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\"},\"meta\":[]}",-- "recall-budget": "{\"result\":{\"facts\":[],\"total\":0,\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\",\"budget_tokens\":1500,\"budget_used\":1188,\"dropped_count\":0,\"budget_packing\":{\"policy\":\"query_first\",\"applied\":true,\"reason\":\"packed\",\"facts\":{\"candidates\":0,\"kept\":0,\"dropped\":0,\"used\":0},\"results\":{\"candidates\":4,\"kept\":4,\"dropped\":0,\"used\":1188}}},\"meta\":[]}",++ "recall": "{\"result\":{\"facts\":[],\"total\":0,\"facts_order\":\"newest\",\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\"},\"meta\":[]}",++ "recall-budget": "{\"result\":{\"facts\":[],\"total\":0,\"facts_order\":\"newest\",\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\",\"budget_tokens\":1500,\"budget_used\":1188,\"dropped_count\":0,\"budget_packing\":{\"policy\":\"query_first\",\"applied\":true,\"reason\":\"packed\",\"facts\":{\"candidates\":0,\"kept\":0,\"dropped\":0,\"used\":0},\"results\":{\"candidates\":4,\"kept\":4,\"dropped\":0,\"used\":1188}}},\"meta\":[]}","search:chunk": "{\"result\":[{\"slug\":\"chat/session-a\",\"page_id\":1,\"title\":\"chat/session-a\",\"type\":\"note\",\"chunk_text\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":1,\"chunk_index\":0,\"score\":0.36266231536865234,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":0.3039635419845581,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"page_id\":3,\"title\":\"notes/ocelot-private\",\"type\":\"note\",\"chunk_text\":\"Private ocelot memo body.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":6,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LXByaXZhdGUiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"page_id\":4,\"title\":\"notes/short\",\"type\":\"note\",\"chunk_text\":\"A short ocelot note.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":7,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":4,\"retrieved_count\":4,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true}}}]}",-- "search-remote:chunk": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_id\":4,\"score\":0.8520091772079468,\"source_id\":\"default\",\"effective_date\":null,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}]}",++ "search-remote:chunk": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_id\":4,\"score\":0.852,\"source_id\":\"default\",\"effective_date\":null,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}]}","search-subagent:chunk": "{\"result\":[{\"slug\":\"chat/session-a\",\"page_id\":1,\"title\":\"chat/session-a\",\"type\":\"note\",\"chunk_text\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners an… [truncated 2337 chars — get_page chat/session-a for full text]\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":1,\"chunk_index\":0,\"score\":0.36266231536865234,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for t… [truncated 1692 chars — get_page notes/ocelot-handbook for full text]\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":0.3039635419845581,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"page_id\":3,\"title\":\"notes/ocelot-private\",\"type\":\"note\",\"chunk_text\":\"Private ocelot memo body.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":6,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LXByaXZhdGUiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"page_id\":4,\"title\":\"notes/short\",\"type\":\"note\",\"chunk_text\":\"A short ocelot note.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":7,\"chunk_index\":0,\"score\":0.2431708425283432,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":4,\"retrieved_count\":4,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true}}}]}","query:chunk": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":1,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":1,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":504,\"dropped\":0,\"kept\":1},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}","query-budget:chunk": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat h\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":1,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":1,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":4,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":300,\"used\":300,\"dropped\":3,\"kept\":1,\"truncated\":true},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"},{\"stage\":\"budget_truncated\",\"reason\":\"first_result_truncated\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}","query-low:chunk": "{\"result\":[{\"slug\":\"notes/ocelot-handbook\",\"page_id\":2,\"title\":\"notes/ocelot-handbook\",\"type\":\"note\",\"chunk_text\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"chunk_source\":\"compiled_truth\",\"chunk_id\":4,\"chunk_index\":0,\"score\":2,\"stale\":false,\"source_id\":\"default\",\"effective_date\":null,\"effective_date_source\":null,\"keyword_hit\":true,\"base_score\":2,\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"meta\":[{\"key\":\"retrieval\",\"value\":{\"returned_count\":1,\"retrieved_count\":1,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":504,\"dropped\":0,\"kept\":1},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"moderate\",\"reason\":\"keyword_exact_top\",\"query_shape\":\"factual\"}}}]}",-- "recall:chunk": "{\"result\":{\"facts\":[],\"total\":0,\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\"},\"meta\":[]}",-- "recall-budget:chunk": "{\"result\":{\"facts\":[],\"total\":0,\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\",\"budget_tokens\":1500,\"budget_used\":1188,\"dropped_count\":0,\"budget_packing\":{\"policy\":\"query_first\",\"applied\":true,\"reason\":\"packed\",\"facts\":{\"candidates\":0,\"kept\":0,\"dropped\":0,\"used\":0},\"results\":{\"candidates\":4,\"kept\":4,\"dropped\":0,\"used\":1188}}},\"meta\":[]}",-- "mcp-search": "{\"content\":[{\"type\":\"text\",\"text\":\"[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"chunk_id\\\":1,\\\"score\\\":0.36266231536865234,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"chunk_id\\\":4,\\\"score\\\":0.3039635419845581,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"A short ocelot note.\\\",\\\"chunk_id\\\":7,\\\"score\\\":0.2431708425283432,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}]\"}],\"_meta\":{\"retrieval\":{\"returned_count\":3,\"retrieved_count\":3,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}}",-- "mcp-query": "{\"content\":[{\"type\":\"text\",\"text\":\"[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"chunk_id\\\":1,\\\"score\\\":0.36266231536865234,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"chunk_id\\\":4,\\\"score\\\":0.3039635419845581,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"A short ocelot note.\\\",\\\"chunk_id\\\":7,\\\"score\\\":0.2431708425283432,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}]\"}],\"_meta\":{\"retrieval\":{\"returned_count\":3,\"retrieved_count\":3,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":1176,\"dropped\":0,\"kept\":3},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"weak\",\"reason\":\"weak_semantic_top\",\"query_shape\":\"factual\",\"escalate_to_think\":true},\"rows\":\"lean\"}}}",-- "mcp-recall": "{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"facts\\\":[],\\\"total\\\":0,\\\"protocol_version\\\":1,\\\"results\\\":[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"chunk\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"chat/session-a\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"chunk\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"notes/ocelot-handbook\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"chunk\\\":\\\"A short ocelot note.\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"notes/short\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}],\\\"search_degraded\\\":\\\"keyword_only_no_embedding_provider\\\"}\"}]}",++ "recall:chunk": "{\"result\":{\"facts\":[],\"total\":0,\"facts_order\":\"newest\",\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\"},\"meta\":[]}",++ "recall-budget:chunk": "{\"result\":{\"facts\":[],\"total\":0,\"facts_order\":\"newest\",\"protocol_version\":1,\"results\":[{\"slug\":\"chat/session-a\",\"title\":\"chat/session-a\",\"chunk\":\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\n\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\n\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"chat/session-a\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-handbook\",\"title\":\"notes/ocelot-handbook\",\"chunk\":\"## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-handbook\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\",\"source_id\":\"default\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}],\"search_degraded\":\"keyword_only_no_embedding_provider\",\"budget_tokens\":1500,\"budget_used\":1188,\"dropped_count\":0,\"budget_packing\":{\"policy\":\"query_first\",\"applied\":true,\"reason\":\"packed\",\"facts\":{\"candidates\":0,\"kept\":0,\"dropped\":0,\"used\":0},\"results\":{\"candidates\":4,\"kept\":4,\"dropped\":0,\"used\":1188}}},\"meta\":[]}",++ "mcp-search": "{\"content\":[{\"type\":\"text\",\"text\":\"[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"chunk_id\\\":1,\\\"score\\\":0.3627,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"chunk_id\\\":4,\\\"score\\\":0.304,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"A short ocelot note.\\\",\\\"chunk_id\\\":7,\\\"score\\\":0.2432,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}]\"}],\"_meta\":{\"retrieval\":{\"returned_count\":3,\"retrieved_count\":3,\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"rows\":\"lean\"}}}",++ "mcp-query": "{\"content\":[{\"type\":\"text\",\"text\":\"[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"chunk_id\\\":1,\\\"score\\\":0.3627,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0IiwiY2hhdC9zZXNzaW9uLWEiXQ\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"chunk_id\\\":4,\\\"score\\\":0.304,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvb2NlbG90LWhhbmRib29rIl0\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"type\\\":\\\"note\\\",\\\"chunk_text\\\":\\\"A short ocelot note.\\\",\\\"chunk_id\\\":7,\\\"score\\\":0.2432,\\\"source_id\\\":\\\"default\\\",\\\"effective_date\\\":null,\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"id\\\":\\\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvc2hvcnQiXQ\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}]\"}],\"_meta\":{\"retrieval\":{\"returned_count\":3,\"retrieved_count\":3,\"vector_enabled\":false,\"expansion_applied\":false,\"cache\":\"disabled\",\"token_budget\":{\"budget\":12000,\"used\":1176,\"dropped\":0,\"kept\":3},\"degraded\":[{\"stage\":\"embed_unavailable\",\"reason\":\"no_provider\"}],\"projection_readiness\":{\"status\":\"ready\",\"ready\":true},\"crag\":{\"confidence\":\"weak\",\"reason\":\"weak_semantic_top\",\"query_shape\":\"factual\",\"escalate_to_think\":true},\"rows\":\"lean\"}}}",++ "mcp-recall": "{\"content\":[{\"type\":\"text\",\"text\":\"{\\\"facts\\\":[],\\\"total\\\":0,\\\"facts_order\\\":\\\"newest\\\",\\\"protocol_version\\\":1,\\\"results\\\":[{\\\"slug\\\":\\\"chat/session-a\\\",\\\"title\\\":\\\"chat/session-a\\\",\\\"chunk\\\":\\\"**user:** turn 0 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 0 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 1 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 1 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 2 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 2 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 3 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 3 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 4 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 4 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines \\\\n\\\\n**user:** turn 5 about the ocelot renewal and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap and the roadmap \\\\n\\\\n**assistant:** answer 5 owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines owners and timelines\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"chat/session-a\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/ocelot-handbook\\\",\\\"title\\\":\\\"notes/ocelot-handbook\\\",\\\"chunk\\\":\\\"## Overview\\\\n\\\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\\\n\\\\n## Pricing\\\\n\\\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"notes/ocelot-handbook\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"chunk\\\":\\\"A short ocelot note.\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"notes/short\\\",\\\"source_id\\\":\\\"default\\\",\\\"trust_tier\\\":\\\"unknown\\\",\\\"origin\\\":\\\"legacy\\\"}],\\\"search_degraded\\\":\\\"keyword_only_no_embedding_provider\\\"}\"}]}","think-prompt": "[{\"role\":\"user\",\"content\":\"Current date: 2026-01-15 (UTC)\\nQuestion: ocelot pricing\\n\\n<pages>\\n<page slug=\\\"notes/ocelot-handbook\\\" rank=\\\"1\\\" trust=\\\"unknown\\\" origin=\\\"legacy\\\">\\n## Overview\\n\\nThe ocelot program. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. Background prose for the handbook. \\n\\n## Pricing\\n\\nOcelot pricing is tiered. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here. Pricing details repeat here.\\n</page>\\n</pages>\\n\\n<takes>\\n(no take hits)\\n</takes>\\n\\nRespond with a single JSON object matching the schema. No prose outside JSON.\"}]"}diff --cc test/fixtures/goldens/exports/runtime.jsonindex b65bc1490e,31a783ebac..296957bd02--- a/test/fixtures/goldens/exports/runtime.json+++ b/test/fixtures/goldens/exports/runtime.json@@@ -361,8 -358,8 +361,9 @@@"readManifest","readPageSnapshot","readPageSnapshotsBatch",+ "readSegmentDerivations","readSegmentTexts",+ "readTransaction","reconnect","refreshPageBody","registerBeforeDisconnect",diff --cc test/fixtures/goldens/migrations/records.jsonindex f0a2211c75,d2239b450b..330895eb94--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@@ -1,6 -1,6 +1,6 @@@{"golden": {- "count": 260,- "count": 267,++ "count": 268,"gaps": [17,18,@@@ -72,10 -74,9 +76,10 @@@"slugifyPath": "401dbca23580865d8b168dd8d84db4a6c708c6610d7cb61abafc7d0ee9809063","sqlQueryForEngine": "71fb1ccec1b22cdc1662876dbd8c17ed81e9ab83485c6965cdf5caa4fc4a4ab5","tableRows": "906d2413b13d76a06d5910885e47ed5c544be4ff3a2266e83146715721b24270",- "verifyProjectionStatistics": "0d231b04ecfbc5a4109d6fca9567bf4e8c9e9db6c3fbbb35212e026579ed6f67"+ "verifyProjectionStatistics": "0d231b04ecfbc5a4109d6fca9567bf4e8c9e9db6c3fbbb35212e026579ed6f67",+ "withSchemaLockTimeout": "95605bd3004955e11e936c7a4aa6889319b401098abf9db18ef3e48da2c3fc59"},- "latest": 265,- "latest": 272,++ "latest": 273,"records": [{"handler": {@@@ -4205,26 -4206,173 +4209,194 @@@"verify": "absent","version": 264},+ {+ "handler": "absent",+ "idempotent": true,+ "name": "derived_generations",+ "sql": {+ "length": 2832,+ "sha256": "8f07eb75b6de03f1be543c4236cb47d50bb85bbd5e8d9e47c9f776e0cb514872"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 265+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "derived_generation_activations",+ "sql": {+ "length": 1151,+ "sha256": "a33706dbe93948e527af3f692ece4aed3ab7d41f6789ddb552e75fcf39e6055c"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 266+ },+ {+ "handler": {+ "form": "arrow",+ "helpers": [+ "PAGES_TITLE_SEARCH_INDEX",+ "PLANNER_REPAIR_TABLES",+ "analyzeAfterIndexBuild",+ "analyzeDeferred",+ "analyzeYieldingToVacuum",+ "buildIndexOnline",+ "dropInvalidConcurrentIndex",+ "lockTableForAnalyze",+ "migrationNotice",+ "quietMigrationNotices",+ "tableRows"+ ],+ "sha256": "08f633af1c107eb453085b9027b8cad8d2ba1595147c44acf4296aa4e5410b3d"+ },+ "idempotent": true,+ "name": "pages_title_search_index",+ "sql": {+ "length": 0,+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"+ },+ "sqlFor": "absent",+ "transaction": false,+ "verify": "absent",+ "version": 267+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "effect_claim_owner",+ "sql": {+ "length": 83,+ "sha256": "1342d23315a82e4b650358cc8ddd08a1197a2da8ddd3be107a2c96976a032a7f"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 268+ },+ {+ "handler": {+ "form": "arrow",+ "helpers": [+ "LINKS_SUPERSEDES_INDEX",+ "PLANNER_REPAIR_TABLES",+ "analyzeAfterIndexBuild",+ "analyzeDeferred",+ "analyzeYieldingToVacuum",+ "buildIndexOnline",+ "dropInvalidConcurrentIndex",+ "lockTableForAnalyze",+ "migrationNotice",+ "quietMigrationNotices",+ "tableRows"+ ],+ "sha256": "e7d77bcf13643b56d3b80e2d5cea59a1e35f94e47ede80dbb9bad76dd04cf4fc"+ },+ "idempotent": true,+ "name": "links_supersedes_index",+ "sql": {+ "length": 0,+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"+ },+ "sqlFor": "absent",+ "transaction": false,+ "verify": "absent",+ "version": 269+ },+ {+ "handler": {+ "form": "arrow",+ "helpers": [+ "PAGES_SOURCE_CREATED_INDEX",+ "PLANNER_REPAIR_TABLES",+ "analyzeAfterIndexBuild",+ "analyzeDeferred",+ "analyzeYieldingToVacuum",+ "buildIndexOnline",+ "dropInvalidConcurrentIndex",+ "lockTableForAnalyze",+ "migrationNotice",+ "quietMigrationNotices",+ "tableRows"+ ],+ "sha256": "61bbcf074ff9a40f227b7836eb1b4fefb5cc3ec22c4845c556c9e1f4e3e92b3b"+ },+ "idempotent": true,+ "name": "pages_source_created_index",+ "sql": {+ "length": 0,+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"+ },+ "sqlFor": "absent",+ "transaction": false,+ "verify": "absent",+ "version": 270+ },+ {+ "handler": {+ "form": "arrow",+ "helpers": [+ "FACTS_SUPERSEDED_BY_INDEX",+ "PLANNER_REPAIR_TABLES",+ "analyzeAfterIndexBuild",+ "analyzeDeferred",+ "analyzeYieldingToVacuum",+ "buildIndexOnline",+ "dropInvalidConcurrentIndex",+ "lockTableForAnalyze",+ "migrationNotice",+ "quietMigrationNotices",+ "tableRows"+ ],+ "sha256": "da2e5f805da6de37f972aa014bc83ce70e66c6f2d7f0485497efef6ae16f656b"+ },+ "idempotent": true,+ "name": "facts_superseded_by_index",+ "sql": {+ "length": 0,+ "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"+ },+ "sqlFor": "absent",+ "transaction": false,+ "verify": "absent",+ "version": 271+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "git_canonical_declared",+ "sql": {+ "length": 8553,+ "sha256": "c18a85c1f6621f60f19274990cca67fb0a87d988a01b38463464737192bf0a4b"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 272++ },+ {+ "handler": {+ "form": "arrow",+ "helpers": [+ "migrationStatementTimeoutMs",+ "runMigrationStatement",+ "withSchemaLockTimeout"+ ],- "sha256": "a0f284441a383fe4de8fe5b60125a015325fb3b9d058a214e96c4df366ae1db6"++ "sha256": "c0b02932c7327d8a0e02f2211a6e4f12ff860ae8aabece9c841ff537a1961d7a"+ },+ "idempotent": true,+ "name": "segment_derivations",+ "sql": {+ "length": 6527,+ "sha256": "6817b97b501c8fadfb66177fa317ecd4e1a05ef879cc0c411df134f99019e491"+ },+ "sqlFor": "absent",+ "transaction": false,+ "verify": "absent",- "version": 265++ "version": 273}],"versions": [@@@ -4487,7 -4635,14 +4659,15 @@@262,263,264,- 265+ 265,+ 266,+ 267,+ 268,+ 269,+ 270,+ 271,- 272++ 272,++ 273]},"normalizer": "migrations-record-v1"diff --cc test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.jsonindex 64877f98f5,b6a3d9a16c..028bdf2bef--- a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json+++ b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json@@@ -544,8 -541,7 +563,8 @@@"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d1d584b91ceea7f4e63c235b790ef89c958c578e635f77ddd644918bc36d33f1","gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=8aaaf7c22fc9acb4b1e84fe75f11ae6c889949b78de1ef6bdba1db54ef43844e","gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=4a291b0448ab7a31926aa482b5222e0595d31a6bfad81b851b13e4bf581a0d83",+ "gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=0d0afb3e61857f1668f2e7996da1c6aaf269aecaa1bf3763ce90df90e2d66fd3",- "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=f29ded3a50b998bbe342052444996675f57ddf2de3fd786b2373015d35e6d859",+ "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=ae9883e69ac3121bc07689f68518c1d97a02a2788a64e496a26f12720300fe8a","gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058","gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=7452350236ed4c68a6cd1f4d78a1381a4ef44cc70e8a032141f01bba4a704702","gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",diff --cc test/fixtures/goldens/rls-scope-inventory.jsonindex 3eb1b0de9a,315b72b8ab..8345f3a020--- a/test/fixtures/goldens/rls-scope-inventory.json+++ b/test/fixtures/goldens/rls-scope-inventory.json@@@ -3735,8 -3735,8 +3735,9 @@@"readManifest": "none","readPageSnapshot": "direct","readPageSnapshotsBatch": "direct",+ "readSegmentDerivations": "none","readSegmentTexts": "none",+ "readTransaction": "none","reconnect": "none","refreshPageBody": "none","registerBeforeDisconnect": "none",diff --cc test/fixtures/goldens/sql-text/_classification.jsonindex 4346d22a5a,c5bd652877..f0ad7b5523--- a/test/fixtures/goldens/sql-text/_classification.json+++ b/test/fixtures/goldens/sql-text/_classification.json@@@ -11,10 -11,10 +11,10 @@@"out-of-scope:dream-verdicts": 3,"out-of-scope:eval-capture": 5,"out-of-scope:ingest-log": 2,- "out-of-scope:internal-helper (private; exercised through public callers)": 19,+ "out-of-scope:internal-helper (private; exercised through public callers)": 20,"out-of-scope:lifecycle (connection, pool, transaction, raw seams)": 17,"out-of-scope:no-sql-stub": 1,- "out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)": 11,+ "out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)": 14,"out-of-scope:raw-data": 2,"out-of-scope:search (FTS/vector hot paths, dialect-specific, not a W1 domain)": 5,"out-of-scope:shared-read-enrichment (already one SQL copy in search/read-enrichment.ts)": 9,@@@ -175,8 -175,8 +175,9 @@@"readManifest": "out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)","readPageSnapshot": "pages","readPageSnapshotsBatch": "pages",+ "readSegmentDerivations": "out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)","readSegmentTexts": "out-of-scope:page-body (Wave B segmented storage, born in engine-sql/page-body.ts; pinned by test/engine-sql-page-body.test.ts)",+ "readTransaction": "out-of-scope:internal-helper (private; exercised through public callers)","reconnect": "out-of-scope:lifecycle (connection, pool, transaction, raw seams)","refreshPageBody": "pages","registerBeforeDisconnect": "out-of-scope:lifecycle (connection, pool, transaction, raw seams)",diff --cc test/graduation-inventory.test.tsindex 3f07ec2f79,81bbe777a2..7a7104e49b--- a/test/graduation-inventory.test.ts+++ b/test/graduation-inventory.test.ts@@@ -60,7 -60,7 +60,7 @@@ describe('graduation inventory', () =>expect(new Set(names).size).toBe(names.length);const counts: Record<string, number> = {};for (const e of GRADUATION_INVENTORY.entries) counts[e.class] = (counts[e.class] ?? 0) + 1;- expect(counts).toEqual({ carry: 140, rebind: 2, rebuild: 3, discard: 9, schema_owned: 4 });- expect(counts).toEqual({ carry: 142, rebind: 2, rebuild: 3, discard: 9, schema_owned: 4 });++ expect(counts).toEqual({ carry: 146, rebind: 2, rebuild: 3, discard: 9, schema_owned: 4 });for (const e of GRADUATION_INVENTORY.entries) {expect({ relation: e.relation, reason: e.reason.length > 5, present: e.engines.pglite || e.engines.postgres }).toEqual({ relation: e.relation, reason: true, present: true });diff --cc test/postgres-unit-arms.txtindex 1d1128467e,015b3eeec9..4d9bfb6075--- a/test/postgres-unit-arms.txt+++ b/test/postgres-unit-arms.txt@@@ -243,8 -261,9 +264,10 @@@ test/page-embedding-lease.serial.test.ttest/page-prepare-shared-origin-6517.test.tstest/page-purge-batch-sweep-6884.test.tstest/page-purge-journal-timeout-6511.test.ts+test/page-spend-reservation.test.tstest/page-state-engine.test.ts+ test/pages-source-created-idx-7379.test.ts+ test/pages-status-7179.test.tstest/pathological/a-36-facts-batch-partial-refusal.test.tstest/pathological/a-42-atom-dot-led-slug.test.tstest/pathological/a-51-conversation-batch-booking.test.ts@@@ -451,14 -500,15 +504,17 @@@ test/trust-guarded-supersession.test.ttest/trust-held-removals.test.tstest/trust-owner-actions.test.tstest/unbound-source-6536.test.ts+ test/unindexed-files-convergence-7149.test.tstest/unindexed-files.test.ts- test/v265-validate-timeouts.test.ts++test/v273-validate-timeouts.test.tstest/vector-manifest-probe-bound.test.tstest/visibility-fail-closed-derived-writes.test.ts+ test/visibility-repair-scale.test.tstest/withdrawal-overlay-concurrency.test.tstest/withdrawal-publication-file.test.tstest/worktree-refresh-recovery-row-gbra130.test.ts+ test/write-roundtrips-gbra156.test.tstest/write-through-leak-guard-alias-7203.test.ts+test/writer-admin-state-embed-lease.test.tstest/writer-status-movement-not-read-gbra130.test.tstest/writer-status-owner-backends.test.tsdiff --cc test/v273-validate-timeouts.test.tsindex 241d2687b0,0000000000..aed1d3a113mode 100644,000000..100644--- a/test/v273-validate-timeouts.test.ts+++ b/test/v273-validate-timeouts.test.ts@@@ -1,68 -1,0 +1,68 @@@+import { afterAll, beforeAll, beforeEach, describe, expect, test } from 'bun:test';+import postgres from '#postgres';+import type { BrainEngine } from '../src/core/engine.ts';+import { PGLiteEngine } from '../src/core/pglite-engine.ts';+import { setMigrationStatementTimeoutMs } from '../src/core/migration-timeout.ts';- import { v265 } from '../src/core/schema-migrations/v265-segment-derivations.ts';++import { v273 } from '../src/core/schema-migrations/v273-segment-derivations.ts';+import { isolatedPersistencePostgres } from './helpers/persistence-postgres.ts';+import { testBackends } from './helpers/test-backends.ts';+import { withEnv } from './helpers/with-env.ts';+- // v265 adds facts_source_window_chk NOT VALID in its SQL and validates it in the handler's own statement. That++// v273 adds facts_source_window_chk NOT VALID in its SQL and validates it in the handler's own statement. That+// statement gets the migration's bounds: the schema lock wait (GBRAIN_SCHEMA_LOCK_TIMEOUT_SECONDS) and the+// migration statement budget, on a dedicated backend. Before, it ran on the pool with neither, so a session+// holding facts waited the VALIDATE out (forever, or until a server statement_timeout).- for (const kind of testBackends()) describe(`v265 facts_source_window_chk validation (${kind})`, () => {++for (const kind of testBackends()) describe(`v273 facts_source_window_chk validation (${kind})`, () => {+ let engine: BrainEngine, databaseUrl = '', close: (() => Promise<void>) | undefined;+ beforeAll(async () => {+ if (kind === 'postgres') ({ engine, databaseUrl, close } = await isolatedPersistencePostgres(process.env.DATABASE_URL!));+ else { engine = new PGLiteEngine(); await engine.connect({}); await engine.initSchema(); }+ }, 120_000);+ afterAll(async () => { if (close) await close(); else await engine.disconnect(); });+ const validated = async () => (await engine.executeRaw<{ convalidated: boolean }>(+ `SELECT convalidated FROM pg_constraint WHERE conname = 'facts_source_window_chk' AND conrelid = 'facts'::regclass`)).map(row => row.convalidated);+ beforeEach(async () => {+ await engine.executeRaw('ALTER TABLE facts DROP CONSTRAINT facts_source_window_chk');- await engine.runMigration(265, v265.sql);++ await engine.runMigration(273, v273.sql);+ expect(await validated()).toEqual([false]);+ });++ test('the handler validates the constraint', async () => {- await v265.handler!(engine);++ await v273.handler!(engine);+ expect(await validated()).toEqual([true]);+ });++ if (kind !== 'postgres') return;+ /** Holds facts in SHARE mode (conflicts with VALIDATE's SHARE UPDATE EXCLUSIVE) on its own session until `release`. */+ async function holdFacts() {+ const sql = postgres(databaseUrl, { max: 1, prepare: false, onnotice: () => {} });+ const conn = await sql.reserve();+ await conn.unsafe('BEGIN');+ await conn.unsafe('LOCK TABLE facts IN SHARE MODE');+ const release = async () => { await conn.unsafe('COMMIT'); conn.release(); await sql.end(); };+ const timer = setTimeout(() => { void release(); }, 3_000);+ return async () => { clearTimeout(timer); await release().catch(() => {}); };+ }++ test('a session holding facts makes the VALIDATE refuse at the schema lock bound, and a rerun validates', async () => {+ const release = await holdFacts();+ try {+ await withEnv({ GBRAIN_SCHEMA_LOCK_TIMEOUT_SECONDS: '0.2' }, () =>- expect(v265.handler!(engine)).rejects.toMatchObject({ code: 'schema_lock_blocked' }));++ expect(v273.handler!(engine)).rejects.toMatchObject({ code: 'schema_lock_blocked' }));+ expect(await validated()).toEqual([false]);+ } finally { await release(); }- await v265.handler!(engine);++ await v273.handler!(engine);+ expect(await validated()).toEqual([true]);+ }, 30_000);++ test('the VALIDATE runs under the migration statement budget', async () => {+ const release = await holdFacts();+ setMigrationStatementTimeoutMs(300);+ try {- await expect(v265.handler!(engine)).rejects.toMatchObject({ code: '57014' });++ await expect(v273.handler!(engine)).rejects.toMatchObject({ code: '57014' });+ expect(await validated()).toEqual([false]);+ } finally { setMigrationStatementTimeoutMs(null); await release(); }- await v265.handler!(engine);++ await v273.handler!(engine);+ expect(await validated()).toEqual([true]);+ }, 30_000);+});