Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(trust-reads): goldens (tools-json, doctor, PGLite catalog, evidence and search envelopes carry trust fields), trust explain CLI, size rows, KEY_FILES entry, orphan permit dropped, fence test on the real hold table

garrytan671250f2dd22
diff --git a/docs/architecture/key-files/core-utilities-2.md b/docs/architecture/key-files/core-utilities-2.md
index 9facaf4853..934df0b950 100644
--- a/docs/architecture/key-files/core-utilities-2.md
+++ b/docs/architecture/key-files/core-utilities-2.md
@@ -42,6 +42,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `src/core/transcripts.ts` — `listRecentTranscripts(engine, opts)` library reused by both the `gbrain transcripts recent` CLI and the `get_recent_transcripts` MCP op. Reads `dream.synthesize.session_corpus_dir` + `dream.synthesize.meeting_transcripts_dir` config (same as `discoverTranscripts`); walks `.txt` files within `days`; applies the `isDreamOutput` guard from `transcript-discovery.ts` (skips dream-generated files); returns `{path, date, mtime, length, summary}[]` sorted newest-first. Summary mode (default true) = first non-empty line + ~250 trailing chars; full mode caps at 100KB/file. Missing/non-existent corpus dirs return `[]`, not error. Trust gate lives in the op handler, not here: the op throws `permission_denied` for `ctx.remote === true`; this is a trusted library function used by both the gated op and the local CLI.
- `src/core/trust/` — memory trust tiers (#5575). `tier.ts`: the six tiers in filter order (`user_confirmed` > `operator_curated` > `tool_observed` > `agent_written` > `unknown` > `external_untrusted`), `TRUST_TIER_LABELS` (the fixed user-facing labels; enums only in JSON), `minTrust`/`maxTrust`/`admitsTrust`/`tiersAtOrAbove`, `contentOriginTier` (`tool_output` lowers to external), `storedMinTrust` (a damaged token floor fails closed to the strictest), and `effectiveWriteTrust`, which computes a write's tier once (derived writes capped at `agent_written` and their least trusted input; `write_origin.taint_inputs` keeps the 32 least trusted with `taint_inputs_truncated`/`taint_input_count`). `schema.ts` (migration only, like attribution): `trust_tier` + `write_origin` on facts, takes, timeline_entries and pages, the page_versions snapshot, `min_trust` on oauth_clients/access_tokens, `trust_proposals`, and the BEFORE ROW `trust_tier_stamp` trigger (fires last: INSERT gets the writer's tier from `gbrain.write_trust_tier` or `unknown`; a `TRUST_CONTENT_COLUMNS` change restamps for an owner-tier writer and takes min(prior, writer) otherwise; an unchanged row keeps its tier; a raise needs `gbrain.write_trust_promotion` covering it, or `gbrain.write_trust_backfill` from `unknown` to below `user_confirmed`, else `trust_raise_refused`). Writers declare through `WriteAttribution.trust`, `withWriteTrust` and `maintenanceTransaction(…, trust)` (`persistence/context.ts`; nested declarations combine as min, a group member resets). `confirm.ts`: `requireOwnerConfirmation` (a remote caller needs `memory_confirm`; the local CLI needs a TTY where the user types the target token; `--yes` never confirms), `tierRaiseFix`, `trustRaiseRefusal`, test seam `__setConfirmationIoForTests`. `min-trust.ts`: the local-only floor writes behind `gbrain auth create --min-trust` and `gbrain auth set-min-trust`. `backfill.ts`: `gbrain trust backfill` (deterministic signals, read-only dry run that works before the migration, resumable batches inside `withCoordinatedWrite` on managed brains) and the doctor `trust_tiers` counts. Tests: `test/trust-tier.test.ts`, `test/trust-tier-schema.test.ts` and `test/trust-backfill.test.ts` (PGLite and Postgres), `test/trust-confirm-scope.test.ts`.
+- `src/core/eligibility/{policy,sql,labels,registry,stamp,activation,scan,explain}.ts` — the one reversible read eligibility policy for memory trust (#5575 A6, A7, CEO-18, CEO-20, DX-6, DX-10, ENG-8, ENG-14). `policy.ts`: `resolveReadEligibility` returns the effective floor (the strictest of `AuthInfo.minTrust`, the caller's `min_trust` and `trust.read_policy=filter`'s own `unknown` floor; label mode adds nothing, so ordering is byte-identical) and, for proactive reads, `suppressFlagged` unless `trust.agent_activation=allow`. `sql.ts`: vetted predicates over a caller alias (closed vocabularies only): `trustFloorSql`, `pageEligibleSql` (spliced by `buildVisibilityClause` and `pageReadFilter`, so every search arm filters before LIMIT; a chunk's tier is its page's), `projectionEligibleSql` (facts, takes and timeline reads: a quarantined page's projections and `needs_rederive` rows are hidden, never expired) and `activationSuppressedSql` (tier at or below `agent_written` plus an instruction-family `write_gate_receipts` flag). `labels.ts`: `trust_tier` + a short server-stamped `origin`; compact per-item text labels with the fixed words, `unknown` as a short origin line, and the `<external-data>` envelope only below `unknown`. `registry.ts`: `OP_READ_TRUST` classifies every read-scope op `filtered | labeled | text_free` (the dispatcher refuses a `labeled` op for a floored token) and `PROACTIVE_SURFACES` lists the injecting surfaces, each calling `proactiveEligibility(ctx, id)`; drift-tested by `test/eligibility-registry.test.ts`. `stamp.ts` labels rows after ranking and backstops the floor for rows a stage adds by slug; explicit reads mark flagged rows `unconfirmed`. `activation.ts` partitions proactive candidates (`partitionForActivation`, `pageActivationVerdicts`) and builds the `memory_suppressed` notice (count + `gbrain trust review`, never content). `scan.ts` (`gbrain trust scan`, doctor `trust_scan`) records flag receipts for agent-written-or-lower rows written before the gate, in resumable keyset batches bounded by the id ceiling of its first run (later rows are gated by their writers; a detector bump rescans). `explain.ts` is the `gbrain trust explain` data API: tier, origin, receipts and the per-surface decision for a typed ref. Tests: `test/eligibility-{policy,registry,reads}.test.ts`.
- `src/core/eligibility/fence-overlay.ts` + `src/core/trust/fence-append.ts` — the facts-fence eligibility overlay for chunks (#5575 ENG-1). `loadFenceChunkOverlay(engine, { sourceId, slug, compiled_truth, timeline })` reads, in one query and only when the body has world fence rows, which rows to omit (a `write_gate_holds` hold on the row's fingerprint, through the `registerFactHoldFingerprint` seam for the write gate's `holdFingerprint`; a `fact_purges` tombstone, the backstop to L3's import overlay) and which to demote (stored `facts.trust_tier` below the page tier, or a row a fence append is publishing, declared with `withPendingFenceRows`). `prepareMarkdownChunks(page, maxTokens, overlay)` (`markdown-chunks.ts`) drops both from the page's chunks and emits demoted rows as trailing chunks whose first line is `fenceTrustMarker(tier)` (a `compactTrustLabel` line with origin `facts-fence`); without overlay rows the output is byte-identical. The importer (`prepareFenceAwareMarkdownChunks`), projection rebuilds (`ProjectionSnapshot.fenceOverlay`), embed's chunkless rebuilds (`prepareProseChunks`) and evidence delivery's page document (`pageEvidenceText`) all cut through it; `healOversizedChunks` keeps the marker on every split piece. `eligibility/stamp.ts` labels a row carrying a marker min(page tier, marker tier) with origin `facts-fence` and applies floors at that tier; a marker can only lower. `withPageTierKept(tx, page, fn)` restores the page's prior `trust_tier`/`write_origin` after a fence append's page write (promotion capped at the prior tier when raising back), used by `fence-write.ts` (legacy mirror), `memory-prepare.ts` (remember) and `facts-prepare.ts` (managed entity facts). Tests: `test/fence-chunk-overlay.test.ts` (PGLite and Postgres via `test/e2e/fence-chunk-overlay-postgres.test.ts`).
- `src/core/types.ts` extension + `src/core/operations.ts:search` + `src/core/import-file.ts` + `src/cli.ts` + `src/core/search/telemetry.ts` — the wiring layer for the retrieval-quality stack. `SearchResult` carries `evidence`, `create_safety`, `title_match_boost`, `alias_hit` (all optional; evidence/create_safety reference the union types in `evidence.ts`). The `search` MCP op uses a cheap-hybrid path by default and accepts a per-call `mode` (conservative|balanced|tokenmax) honored ONLY for trusted/local callers (`resolvePerCallMode(ctx, ...)` — remote callers use the configured mode so a remote provider can't force tokenmax spend); every search path stamps evidence fail-soft. `importFromContent` projects frontmatter `aliases:` into `page_aliases` via `normalizeAliasList` + `engine.setPageAliases` so new + changed pages register aliases at ingest. `src/cli.ts` carries the `gbrain search diagnose` dispatch (lazy import) and reconciles the `search` CLI path with the cheap-hybrid op. `src/core/search/telemetry.ts` carries in its rollup the rank-1 base_score drift signal (sum/count + 3 coarse buckets, aggregate not per-query), surfaced via `gbrain search stats`, backed by migration v111's `search_telemetry` columns. Tests: `test/cli-search-dispatch.test.ts`, `test/search/per-call-mode.test.ts`, `test/search/telemetry-rank1.test.ts`, `test/search/title-boost-stage.test.ts`, `test/search/alias-hop.test.ts`, `test/search/evidence.test.ts`, `test/search/searchvector-maxpool.test.ts`, `test/search/pre-migration-failopen.test.ts`.
diff --git a/scripts/check-orphan-modules.mjs b/scripts/check-orphan-modules.mjs
index 7c7959842c..e19712d169 100644
--- a/scripts/check-orphan-modules.mjs
+++ b/scripts/check-orphan-modules.mjs
@@ -65,7 +65,6 @@ const PERMITTED_TEST_ONLY = [
{ path: 'src/core/progressive-batch/orchestrator.ts', reason: 'held: TODOS.md keeps an open item to re-compose progressive-batch with --workers on the 3 reindex sites (callers dropped in the v0.41.17.0 merge)' },
{ path: 'src/core/progressive-batch/retrofit-wrap.ts', reason: 'held: progressive-batch re-compose item still open in TODOS.md' },
{ path: 'src/core/progressive-batch/stage-report.ts', reason: 'held: progressive-batch re-compose item still open in TODOS.md' },
- { path: 'src/core/trust/confirm.ts', reason: 'held: memory-trust foundation (#5575 lane F); confirm_memory and gbrain trust review/release/revert (lane L1) are its runtime callers in the same feature PR; drop this row when they land' },
{ path: 'src/core/ingestion/daemon.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision (public gbrain/ingestion export, docs/guides/data-ingestion.md)' },
{ path: 'src/core/ingestion/dedup.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision' },
{ path: 'src/core/ingestion/skillpack-load.ts', reason: 'held: ingestion cluster awaits a wire-up vs delete product decision' },
diff --git a/scripts/module-size-limits.tsv b/scripts/module-size-limits.tsv
index 93e3eb6810..c64b4e3b68 100644
--- a/scripts/module-size-limits.tsv
+++ b/scripts/module-size-limits.tsv
@@ -16,14 +16,14 @@ src/commands/sync.ts 512 ratchet refactor wave 1 split target (W4 sync); ceiling
src/core/cycle.ts 3283 ratchet +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)
src/core/cycle/synthesize.ts 3227 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)
src/core/cycle/extract-atoms.ts 1650 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
-src/core/engine.ts 2721 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
+src/core/engine.ts 2728 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; +7 #5575 (L1b): FactListOpts/TakesListOpts eligibility, FactRow/Take trust fields, searchTakes/listSupersessions eligibility in the interface
src/core/import-file.ts 2046 ratchet -136 #5575 write gate: the content-sanity disposition block moved to import-screen.ts settleContentDisposition (one call, write gate joined there); +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)
src/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 341 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; +1 #5575 purge: purgeOperations import (spread shares the facts line)
src/core/pglite-engine.ts 2996 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)
src/core/postgres-engine.ts 2941 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)
src/core/search/hybrid.ts 1615 ratchet +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
-src/core/types.ts 2239 ratchet +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)
+src/core/types.ts 2250 ratchet +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)
src/core/minions/queue.ts 2528 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)
src/commands/init.ts 1878 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)
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)
@@ -39,7 +39,7 @@ src/core/chunkers/code.ts 1588 ratchet new row: crossed the 1500 unlisted cap in
src/core/config.ts 1924 ratchet +3 #5575: write_gate.external_mode / write_gate.agent_mode registered in KNOWN_CONFIG_KEYS; +22 fix wave 11 W6.2/W6.3 (#5989, #6132): search.cjk_keyword_deadline_ms and search.hnsw_iterative_scan type fields, KNOWN_CONFIG_KEYS rows and the mergeSearchScanKnobs helper that keeps loadConfigWithEngine under its function-size baseline (logic in search/cjk-keyword-deadline.ts, search/hnsw-iterative-scan.ts); +8 #5988: sync.holds/hold_cap/hold_escalate_count/hold_escalate_pct/parser_regression key registration (read by persistence/sync-holds.ts); +3 agent operator wave A4: GBrainConfig.consent file-plane slot + 2 consent.preapprove.* key rows (logic in core/consent.ts); +1 System One v1: decide.* key prefix (validated by ai/decide/config.ts); new row: crossed the 1500 unlisted cap in v0.46.26.0 megawave (spend-controls hint #3703, config-set validation); +3 wave G #3974: sync.include_working_tree key; grown wave-g (#4540 #4494 #4415): extractor caps + intent-pattern config keys; +1 chat-connectors: connectors. config prefix; wave-k: config-table snapshot serving the DB-plane reads (#3980 + #2119 merge); +8: loadConfig hook for ~/.gbrain/.env, loader lives in gbrain-env-file.ts (#3893); +17: litellm/together key-fold slots (#3904 reimpl: two GBrainConfig fields + KNOWN_CONFIG_KEYS rows); +1: link_resolution.cross_source key (#3908); +4 v0.47 gmail-loops: loops.extraction_enabled key; +1: pricing.overrides key (#4633 adoption); +7 #4667 adoption: sync.exclude key registration; +4: eval fix wave keys (quote_verify + 3 rescue knobs); +memorable file-plane key registration (integrations.memorable.enabled + consent-event doc); +33 ambient-writeback: memory.* + brain.audience key registration + GBrainConfig.memory mirror slot (resolvers live in facts/writeback-config.ts); +38 2026-08 wave: retrieval_reflex_volunteer key + env mapping (volunteer-arm kill switch) + E5a registration of the 10 adaptive_return*/autocut*/crag_* search (incl. adversarial batch isEnvDisabled dedup); ambient-writeback (master merge): facts/writeback-config.ts); new row: crossed the 1500 unlisted cap in v0.46.26.0 megawave; prior growth: sync/intent/chat-connectors/litellm/pricing/loops key folds; +34: #4702 content_sanity.disabled_patterns (type + DB-plane parse/merge + key registration); composition true-up (fix-wave multi-train) | merged v0.48.1.0: master #4788 writeback keys + wave #4702/#4748 keys; master: | merged v0.48.1.0 true-up; ranker wave v0.48.4.0: +4 KNOWN_CONFIG_KEYS rows (+8); +5 #4895: CWD_DOTENV_FILES gains the per-NODE_ENV .local variants Bun auto-loads; +2 #5003: sync.include_hidden key registration; +57 #4605: search.* registry reconciled to the keys mode.ts reads (+20 knob rows, +4 direct-read singletons) + GBrainConfig.search slot + adaptive_return* DB-plane merge; +2 pre-landing review: fts.reindex_in_progress key registration (#4795 marker escape hatch); +4 #4987: auto_timeline key registration (the documented off switch was rejected as unknown); lowered to 1793: GHSA wave v0.50.5.0 moved CWD_DOTENV_FILES + dotenvValuesForKey into core/env-trust.ts (-49, re-exported); re-summed to the merged line count after merging master v0.50.2.0 (#5122) with the v0.50.5.0 security wave; fix wave 3 x fix wave 2 (v0.60.5.0) composition: +1 at the merge; evidence delivery: 5 registered config keys + comment (+7); +2 #5691: embedding_query_prefix key registration; evidence delivery auto v2: search.return_budget_conversation key row (+1); +1 #5836: facts.entity_inference key row; +6 #5824: search.vector_legacy_guard key row + GBrainConfig.search slot + DB-plane merge; +3 wave 8 lane D1 #5885: takes.auto_embed key row; +3 #5232: GBrainConfig.persistence.write_wait_ms file-plane slot + key row (resolver in persistence/write-wait.ts); +2 F4b: planner.* and import.analyze_every_pages keys; +3 cat40 cost wave C1 (garrytan/gbrain-evals#57 follow-ups): mcp.result_rows GBrainConfig slot + key row (resolver in mcp/result-rows.ts); v0.60.46.0 merge: both waves' +3 compose (1824 + 3 = 1827 measured); +4 #5984: sync.bulk, sync.bulk_size, sync.bulk_max_txn_ms known keys; v0.60.48.0 merge: #5984 growth re-summed over v0.60.47.0 (1838 measured); +3 retrieval feedback: the feedback keys in KNOWN_CONFIG_KEYS; 2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); P3 x engine graduation composition: both deltas re-summed at the merge; 2 Lane D: facts.drain_budget_usd, facts.drain_daily_budget_usd, facts.drain_max_jobs key registration (validated in core/facts/drain.ts); +2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); P3 x foundations-2 composition: deltas re-summed at the merge; 2 Lane D: facts.drain_budget_usd, facts.drain_daily_budget_usd, facts.drain_max_jobs key registration (validated in core/facts/drain.ts); +2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); +1 GBRA-49: graph.* key prefix (graph.edge_validity, read by link-validity.ts); P3 x P1 (v0.60.57.0) composition: deltas re-summed at the merge; 2 Lane D: facts.drain_budget_usd, facts.drain_daily_budget_usd, facts.drain_max_jobs key registration (validated in core/facts/drain.ts); +2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); +1 GBRA-49: graph.* key prefix (graph.edge_validity, read by link-validity.ts); +3 P7 search.relational_planner / search.relational_orient_onehop key registration; +2 P7 search.relational_chain_slots key registration; P3 x P7 (v0.60.60.0) composition: deltas re-summed at the merge; 2 Lane D: facts.drain_budget_usd, facts.drain_daily_budget_usd, facts.drain_max_jobs key registration (validated in core/facts/drain.ts); +2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); +1 GBRA-49: graph.* key prefix (graph.edge_validity, read by link-validity.ts); +3 P7 search.relational_planner / search.relational_orient_onehop key registration; +2 P7 search.relational_chain_slots key registration; +3 agent operator follow-up Item 2: mcp.allow_session_widen (GBrainConfig.mcp slot + known key); P3 x aow-followup composition: deltas re-summed at the merge; 2 Lane D: facts.drain_budget_usd, facts.drain_daily_budget_usd, facts.drain_max_jobs key registration (validated in core/facts/drain.ts); +2 engine graduation (GBRA-50 G3): GBrainConfig.migrate.graduation file-plane opt-out slot + key row (read by commands/migrate-graduation.ts); +1 GBRA-49: graph.* key prefix (graph.edge_validity, read by link-validity.ts); +3 P7 search.relational_planner / search.relational_orient_onehop key registration; +2 P7 search.relational_chain_slots key registration; +3 agent operator follow-up Item 2: mcp.allow_session_widen (GBrainConfig.mcp slot + known key); +2 entity mention index: mentions.auto_link, mentions.entity_types, mentions.ignore key rows (resolver in core/mentions/policy.ts); cat40 entity wave merge with v0.60.61.0 (1853 measured); P3 x cat40-entity-wave composition: deltas re-summed at the merge; +6 fix wave lane B3: chat_fallback_on_refusal (GBrainConfig slot, GBRAIN_CHAT_FALLBACK_ON_REFUSAL env fold, known key); +2 W-B4: shared_skills.inventory.* known keys (logic in shared-skills/inventory-limits.ts); +2 fix wave 9 lane B #4921: ai.chat.per_turn_timeout_ms known key; +1 wave 9 lane W #5363: cycle.consolidate.cluster_threshold key row; +1 #5984 lanes: sync.lanes key registration; +2 P8: dream.quote_verify and think.quote_verify known keys; +2 P8: GBrainConfig.mcp.advertised_surface interface slot (resolver in mcp/surface.ts); +2 fix wave 10 lane L1 #4907: cycle.synthesize_concepts.budget_usd registered (validation in cycle/phase-config-values.ts); +2 #5958: dream.propose_takes.call_timeout_ms registered; 3 core memory: memory.core.* and memory.pressure.* known keys; +15 P5: wanted_pages.enabled/remote, line_grammar.enabled/allow_undeclared_types/effective_ranges and put_page.similar_pages key rows (logic in wanted-links.ts, line-grammar.ts, similar-pages.ts); +1 P2 extraction.date_grounding / facts.attribution keys; +1 #6188: fences.normalize registered in KNOWN_CONFIG_KEYS; +2 #6188: fences.repair.max_usd_per_page/per_day key rows; +1 fix wave 12 W2.3 #6231: facts.page_write_notability_filter key row (resolver in facts/notability-filter.ts)
src/core/bootstrap/harness.ts 2610 ratchet +29 live-PGLite-serve lane: LIVE_SERVE refusal ahead of source resolution + unpinned --token hooks (CI e2e fix); +46 wave review: resolveHookSource dep (serve-parity resolver + federated grant), --source shape validation, loud SOURCE_UNRESOLVED instead of a silent 'default'; +10: #4574 parseCodexBlockBearer http_headers shape + legacy bearer_token fallback; +4 at megawave/wave-k merge; +codex hooks lane: step-7 codex hooks.json + config.toml trust pair, removeHarness arm; +234 ambient-writeback WP3: kind:'instructions' targets (plan/apply/converge-off/remove/status probes, OV-A4 override pre-check) — splice/render mechanics live in instructions-block.ts; +59 adversarial fix wave: registrar-mode block suppression, converge-failure receipt tracking, MCP-confirmed guard before block install; +26 round-3 fixes: codex-lane MCP-confirmed guard + smoke-rollback block strip; master: | merged v0.48.1.0 true-up; +41 #4897 resolveImplicitSource dep + defaultResolveImplicitSource: hooks/token/receipt bind to the serve's implicit default source when --source is omitted; +23 #4586 statusHarness live claude-code mcp verdict (URL mismatch or same-scope non-HTTP registration reads failed, receipt untouched); shared-skills integration on company-ingestion base; +18 #5671: logAmbientPostureNotes helper (registrar note moved out of applyHarness + pre-consent warning when an explicit private facts default meets the HTTP harness; text shared with doctor in facts/writeback-config.ts); +24 #5893: rotation grant carry wiring and its rotationCarry/withheldOperationsNote helpers (carry rules live in token-mint.ts carryLegacyGrant); +6 #5878: --refresh-skills flag and status epoch line (refresh logic lives in harness-skills.ts); +7 #4618 seat: HarnessFlags.seat field, --seat/--no-seat parse via hooks.ts parseSeatFlags, GBRAIN_SEAT in the hook env; -119 #6082: plugin-lane detectors moved to plugin-lanes.ts (re-exported); +18 #6092/#6171: hook ownership identity on write/remove/converge, permission ownership carry, --remove --dry-run and the --status hook census (logic in hooks.ts + harness-hooks.ts)
src/core/oauth-provider.ts 1236 ratchet new row: crossed the 1500 unlisted cap absorbing #3819 (DCR 400 invalid_client_metadata + scope filtering + custom-scheme redirect_uris + pseudo-scheme guard); merged v0.49: transactional grant enforcement shared with hosted grant policies; +1 #5222 resourceUrl option
-src/core/ops/pages.ts 678 ratchet crossed the unlisted 1500 cap in the fix wave: pack-vocabulary enforcement on capture (#4721) + get_page alias follow (#4275) landed together; next growth should peel a pages-ops submodule; +3: alias hop reads the canonical in the owning source (ship-review); +5: explicit source_id liveness check in get_page/list_pages (#4620); +3: #4857 total-order slug sort + list_pages source_id parse; +5: #4620 explicit removed-source id fails loudly; master integration: +4: authenticated delegated private-write boundary and auto-link suppression; #5105: canonical page mutations peeled into persistence modules; +2 v0.50.5.0 purge parameter and shared preflight call; preparation composes through the persistence modules; +7: source-qualified deep-research fetch authorization and ambiguity refusal (codec lives in deep-research-id.ts); +1 #5567: remote get_page keeps materialized markers; +1 #5622: trusted local capture file parameter; +5 #5709: get_page include_timeline_entries (rows via get_timeline's read policy); +8 GBRA-36 security wave: required outputRedaction policy on each pages op; +1 #5154: list_pages passes listColumnsOnly; +17 #5641: list_pages exposes the updated_after_slug keyset cursor and updated_at_iso; +8 agent operator wave A2: every op declares mutating + idempotent (tags only); +7 F3b (#5954): list_pages pagination meta + listing_truncated notice for MCP callers (logic in ops/list-pages-pagination.ts); +4 #5988: get_page file_held (one indexed hold lookup; logic in persistence/held-reads.ts); +6 #6103: list_pages maps an unreadable updated_after (SQLSTATE 22007/22008) to invalid_params; wave 10 collector: #6103 (+6) and #4807 (+2) compose; +1 wave 11 W4.3 (#5969 D3): put_page drop_timeline param; +1 wave 11 security review: purge_deleted_pages yes param + trusted-CLI guard (consent logic in persistence/purge-deleted.ts); +5 #5575 (L1b): get_page/fetch min_trust param and read-floor refusal (logic in get-page-projection.ts pageTrustForRead)
+src/core/ops/pages.ts 679 ratchet crossed the unlisted 1500 cap in the fix wave: pack-vocabulary enforcement on capture (#4721) + get_page alias follow (#4275) landed together; next growth should peel a pages-ops submodule; +3: alias hop reads the canonical in the owning source (ship-review); +5: explicit source_id liveness check in get_page/list_pages (#4620); +3: #4857 total-order slug sort + list_pages source_id parse; +5: #4620 explicit removed-source id fails loudly; master integration: +4: authenticated delegated private-write boundary and auto-link suppression; #5105: canonical page mutations peeled into persistence modules; +2 v0.50.5.0 purge parameter and shared preflight call; preparation composes through the persistence modules; +7: source-qualified deep-research fetch authorization and ambiguity refusal (codec lives in deep-research-id.ts); +1 #5567: remote get_page keeps materialized markers; +1 #5622: trusted local capture file parameter; +5 #5709: get_page include_timeline_entries (rows via get_timeline's read policy); +8 GBRA-36 security wave: required outputRedaction policy on each pages op; +1 #5154: list_pages passes listColumnsOnly; +17 #5641: list_pages exposes the updated_after_slug keyset cursor and updated_at_iso; +8 agent operator wave A2: every op declares mutating + idempotent (tags only); +7 F3b (#5954): list_pages pagination meta + listing_truncated notice for MCP callers (logic in ops/list-pages-pagination.ts); +4 #5988: get_page file_held (one indexed hold lookup; logic in persistence/held-reads.ts); +6 #6103: list_pages maps an unreadable updated_after (SQLSTATE 22007/22008) to invalid_params; wave 10 collector: #6103 (+6) and #4807 (+2) compose; +1 wave 11 W4.3 (#5969 D3): put_page drop_timeline param; +1 wave 11 security review: purge_deleted_pages yes param + trusted-CLI guard (consent logic in persistence/purge-deleted.ts); +6 #5575 (L1b): get_page/fetch min_trust param, read-floor refusal and labeled timeline rows (logic in get-page-projection.ts pageTrustForRead)
src/core/search/mode.ts 1594 ratchet +10 System One v1: decide.* snapshot subset in loadSearchModeConfig, append-only dec= knobsHash part; +5 #3617 follow-up: v27 same-knobs behavioral-change note (relaxed-row fusion demotion rides the bump); new row: crossed the 1500 unlisted cap in the 2026-08 eval fix wave — KNOBS_HASH v=27 adaptive-return fold (ar/arem/arom/armk/ari parts + KnobsHashContext.adaptiveReturn field + contamination rationale comments) | merged v0.48.1.0 (+#4787) true-up; +master v0.48 merge true-up (reranker succession: no_key preflight, reranker_skipped stage, readiness); ranker wave v0.48.4.0: four knobs (expansion_variant_budget, relational_rerank_pin, keyword_arm_confidence_floor, metadata_boost_gate) + v29 hash parts + doc receipts (+218); #4781 loadSearchModeConfig reads the config table once via loadConfigSnapshot (+6); +4 #4359: update loadSearchModeConfig docstring — the cached path now reads config once (threaded snapshot), not twice; retired provider integration removed; +12 fw3-search: search.source_boosts + search.alias_token_hop read in the mode snapshot; +10 #5691: KnobsHashContext.queryPrefix and its append-only qp= part; P7 relational_planner / relational_orient_onehop knobs (interface docs, bundles, overrides, config parse, hash parts); +18 P7 relational_chain_slots knob (interface doc, bundles, override, config parse, rcs= hash part)
src/commands/eval-longmemeval.ts 1519 ratchet new row: crossed the 1500 unlisted cap in fw3-search (#5092 benchmark-brain recycling: configureBrain split + recycler wiring + test seams; the recycler itself lives in src/eval/longmemeval/harness.ts); +1 P6: tokenmax synopsis-tier wiring (logic in eval/longmemeval/synopsis-tier.ts)
src/commands/doctor/checks/extraction-sync.ts 1511 ratchet new row: crossed the 1500 unlisted cap at the fix wave 9 merge: +7 lane W #5028 (extract_atoms freshness judged by the phase itself) and +3 lane F #5863 (extract_health dates a high halt rate by its last halt), each under the cap alone; +7 #5019: content_hash_duplicates fix pins the pairs' source (GBRAIN_SOURCE) and names a delete that runs; +1 fix wave 10 lane L1 #5556: links_extraction_lag denominator excludes quarantined pages (quarantineFilterFragment import)
diff --git a/src/cli/commands/trust.ts b/src/cli/commands/trust.ts
index b4d9f45e53..920bd0e1ce 100644
--- a/src/cli/commands/trust.ts
+++ b/src/cli/commands/trust.ts
@@ -10,6 +10,7 @@ import type { BrainEngine } from '../../core/engine.ts';
import { TRUST_TIERS, trustLabel } from '../../core/trust/tier.ts';
import { runTrustBackfill, type TrustBackfillReport } from '../../core/trust/backfill.ts';
import { runTrustScan } from '../../core/eligibility/scan.ts';
+import { explainTrust } from '../../core/eligibility/explain.ts';
import type { CliDispatchContext } from '../command-table.ts';
export const TRUST_USAGE = [
@@ -24,6 +25,11 @@ export const TRUST_USAGE = [
' Runs the write gate\'s deterministic detector over agent-written and lower rows written before the gate,',
' recording a receipt for each instruction-like row so proactive surfaces stop injecting it until you confirm',
' it (gbrain trust review). Changes no row; resumable (rerun to continue); a detector upgrade rescans.',
+ '',
+ 'Usage: gbrain trust explain <ref> [--json]',
+ ' Why a memory is or is not used: its trust tier and origin, the write gate\'s verdict and receipts, and whether',
+ ' each proactive surface (hook, context engine, context pack, volunteer, reflex, core, hot memory) and explicit',
+ ' reads use it. Refs: f<id> fact, t<id> take, e<id> timeline entry, h<id> hold, p:<source>/<slug> page. Read-only.',
].join('\n');
function render(report: TrustBackfillReport): string {
@@ -39,7 +45,7 @@ function render(report: TrustBackfillReport): string {
export async function run(engine: BrainEngine, args: string[], ctx: CliDispatchContext): Promise<void> {
const [sub, ...rest] = args;
- const known = sub === 'backfill' || sub === 'scan';
+ const known = sub === 'backfill' || sub === 'scan' || sub === 'explain';
if (!sub || args.includes('--help') || args.includes('-h') || !known) {
console.log(TRUST_USAGE);
if (sub && !known && !args.includes('--help') && !args.includes('-h')) setCliExitVerdict(2);
@@ -53,6 +59,18 @@ export async function run(engine: BrainEngine, args: string[], ctx: CliDispatchC
setCliExitVerdict(2);
return;
}
+ if (sub === 'explain') {
+ const ref = rest.find(a => !a.startsWith('--'));
+ if (!ref) { console.error('Usage: gbrain trust explain <ref> [--json]'); setCliExitVerdict(2); return; }
+ const why = await explainTrust(engine, ref);
+ if (!why.found) setCliExitVerdict(1);
+ if (jsonRequested(args)) { await writeStdoutFinal(`${JSON.stringify(why, null, 2)}\n`); return; }
+ if (!why.found) { console.log(`${ref}: no fact, take, timeline entry, hold or page has this ref.`); return; }
+ console.log([`${ref}: ${why.label} (${why.trust_tier}), origin ${why.origin}; gate verdict ${why.verdict}${why.unconfirmed ? ', unconfirmed' : ''}`,
+ ...Object.entries(why.activation).map(([surface, decision]) => ` ${surface}: ${decision}`),
+ ...(why.next ? [` Review: ${why.next.join(' ')}`] : [])].join('\n'));
+ return;
+ }
if (sub === 'scan') {
await ctx.completeStartup?.(engine);
const scan = await runTrustScan(engine, batchSize ? { batchSize } : {});
diff --git a/src/commands/doctor/checks/trust-scan.ts b/src/commands/doctor/checks/trust-scan.ts
index f0fd593c3b..592eade2aa 100644
--- a/src/commands/doctor/checks/trust-scan.ts
+++ b/src/commands/doctor/checks/trust-scan.ts
@@ -14,23 +14,27 @@ import { isUndefinedColumnError, isUndefinedTableError } from '../../../core/uti
async function runTrustScan(ctx: DoctorContext): Promise<Check[]> {
const engine = connectedEngine(ctx);
+ const checks: Check[] = [];
try {
const state = await readTrustScanState(engine);
const details = { detector_version: state.detector_version, unscanned: state.unscanned, total_unscanned: state.total_unscanned, completed_at: state.completed_at };
if (state.total_unscanned === 0) {
- return [{ name: 'trust_scan', status: 'ok', details,
- message: 'Every agent-written or lower row has been scanned by the current write-gate detector; proactive suppression covers them.' }];
+ checks.push({ name: 'trust_scan', status: 'ok', details,
+ message: 'Every agent-written or lower row has been scanned by the current write-gate detector; proactive suppression covers them.' });
+ return checks;
}
- return [{ name: 'trust_scan', status: 'warn', details,
+ checks.push({ name: 'trust_scan', status: 'warn', details,
message: `${state.total_unscanned} agent-written or lower row(s) have not been scanned by the write-gate detector (v${state.detector_version}), `
+ 'so proactive surfaces cannot yet withhold instruction-like ones. Run gbrain trust scan on the brain host; it records receipts in resumable batches and changes no row.',
- fix: agentFix(['gbrain', 'trust', 'scan'], 'Scans legacy agent-written rows with the deterministic detector and records flag receipts; it never hides, moves or rewrites a row.', 'trust_scan') }];
+ fix: agentFix(['gbrain', 'trust', 'scan'], 'Scans legacy agent-written rows with the deterministic detector and records flag receipts; it never hides, moves or rewrites a row.', 'trust_scan') });
} catch (err) {
if (isUndefinedColumnError(err, 'trust_tier') || isUndefinedTableError(err)) {
- return [{ name: 'trust_scan', status: 'ok', details: { schema: 'pre_trust' }, message: 'This schema predates the write gate; the scan arrives with its migration.' }];
+ checks.push({ name: 'trust_scan', status: 'ok', details: { schema: 'pre_trust' }, message: 'This schema predates the write gate; the scan arrives with its migration.' });
+ } else {
+ checks.push(checkError('trust_scan', 'read the trust scan state', err));
}
- return [checkError('trust_scan', 'read the trust scan state', err)];
}
+ return checks;
}
export const trustScanEntry: DoctorEntry = { name: 'trust_scan', emits: ['trust_scan'], run: runTrustScan };
diff --git a/src/core/context/retrieval-reflex.ts b/src/core/context/retrieval-reflex.ts
index 4da18cd4d0..15ea2dc860 100644
--- a/src/core/context/retrieval-reflex.ts
+++ b/src/core/context/retrieval-reflex.ts
@@ -31,7 +31,7 @@ import type { TrustTier } from '../trust/tier.ts';
import type { ReadEligibility } from '../eligibility/policy.ts';
import { proactiveEligibility } from '../eligibility/registry.ts';
import { pageActivationVerdicts, pageKey } from '../eligibility/activation.ts';
-import { renderTrustedInline, trustFields } from '../eligibility/labels.ts';
+import { renderTrustedInline, trustFields, type TrustFields } from '../eligibility/labels.ts';
import { normalizeAlias } from '../search/alias-normalize.ts';
import { CJK_SLUG_CHARS } from '../cjk.ts';
import { escapeLikePattern } from '../search/sql-ranking.ts';
@@ -552,20 +552,12 @@ export async function resolveEntitiesToPointers(
rowByKey.set(keyOf(r.source_id, r.slug), r); push(r.slug, r.source_id, 'weak-title', (r.title ?? '').toLowerCase());
}
- // #5575: trust labels, read floor and activation control for every
- // candidate page in one query; a page that cannot be checked is dropped.
- const policy = opts.eligibility ?? await proactiveEligibility({ engine }, 'retrieval_reflex');
- const verdicts = await pageActivationVerdicts(engine, resolved.map(r => ({ source_id: r.source_id, slug: r.slug })), policy).catch(() => null);
- const withheld: string[] = [];
-
- // Build pointers in confidence order, applying suppression + cap.
+ const trust = await gatePointerCandidates(engine, resolved, opts); // #5575 gate; then pointers by confidence, suppression + cap
const suppression = opts.suppression ?? 'slug-and-title';
const pointers: ReflexPointer[] = [];
for (const { slug, source_id, arm, matchedNorm } of resolved) {
const row = rowByKey.get(keyOf(source_id, slug));
- if (!row) continue;
- const verdict = verdicts?.get(pageKey({ source_id, slug }));
- if (!verdict || verdict.belowFloor) continue;
+ if (!row || !trust.has(pageKey({ source_id, slug }))) continue;
// Suppression: already present in PRIOR context. The current turn is
// deliberately excluded from priorContextText. Under windowing
// ('slug-only', codex D7) only the slug counts — a slug appears in prior
@@ -578,19 +570,37 @@ export async function resolveEntitiesToPointers(
if (titleLc && wholeWordIncludes(priorLc, titleLc)) continue;
}
}
- if (verdict.suppressed) { withheld.push(`${source_id}:${slug}`); continue; }
const display = displayForRow(row, displayByNorm);
const synopsis = safeSynopsis(row);
- const trust = trustFields(verdict.tier, verdict.origin);
- pointers.push({ display, slug, source_id, synopsis, arm, confidence: ARM_CONFIDENCE[arm], matchedNorm, ...trust });
+ pointers.push({ display, slug, source_id, synopsis, arm, confidence: ARM_CONFIDENCE[arm], matchedNorm, ...trust.get(pageKey({ source_id, slug })) });
if (pointers.length >= maxPointers) break;
}
- if (withheld.length) opts.onWithheld?.(withheld);
if (!pointers.length) return null;
return { pointers, text: renderPointerBlock(pointers) };
}
+/**
+ * #5575 (CEO-20, A6): one query over every resolved candidate page. Returns
+ * the label fields of the pages a pointer may name; pages below the floor or
+ * unreadable are absent (fail-closed), and activation-suppressed pages are
+ * absent and reported through `opts.onWithheld`.
+ */
+async function gatePointerCandidates(engine: BrainEngine, resolved: ReadonlyArray<{ source_id: string; slug: string }>,
+ opts: ResolvePointersOpts): Promise<Map<string, TrustFields>> {
+ const policy = opts.eligibility ?? await proactiveEligibility({ engine }, 'retrieval_reflex');
+ const verdicts = await pageActivationVerdicts(engine, resolved.map(r => ({ source_id: r.source_id, slug: r.slug })), policy).catch(() => null);
+ const out = new Map<string, TrustFields>();
+ const withheld: string[] = [];
+ for (const [key, v] of verdicts ?? []) {
+ if (v.belowFloor) continue;
+ if (v.suppressed) withheld.push(key.replace('\u0000', ':'));
+ else out.set(key, trustFields(v.tier, v.origin));
+ }
+ if (withheld.length) opts.onWithheld?.(withheld);
+ return out;
+}
+
/** Recover a display label: prefer the matched candidate surface, else the page title. */
function displayForRow(row: PageRow, displayByNorm: Map<string, string>): string {
const byTitle = displayByNorm.get(normalizeAlias(row.title ?? ''));
diff --git a/src/core/context/turn-context.ts b/src/core/context/turn-context.ts
index 7910b0f9a5..3ae8fe9520 100644
--- a/src/core/context/turn-context.ts
+++ b/src/core/context/turn-context.ts
@@ -369,7 +369,8 @@ export async function assembleTurnContext(
// injected this session is not repeated. Matched without the trailing
// confidence, which drifts as facts age.
const prior = opts.priorContextText;
- return prior ? all.filter((f) => !prior.includes(renderFactLine(f).replace(/ \([0-9.]+\)$/, ' ('))) : all;
+ // The trust label is not part of the match: a fact injected before labels (or before its tier changed) stays injected.
+ return prior ? all.filter((f) => !prior.includes(renderFactLine({ ...f, trust_tier: undefined }).replace(/ \([0-9.]+\)$/, ' (').slice(2))) : all;
} catch {
return [];
}
diff --git a/src/core/eligibility/fence-overlay.ts b/src/core/eligibility/fence-overlay.ts
index 26bb588425..ca57b67453 100644
--- a/src/core/eligibility/fence-overlay.ts
+++ b/src/core/eligibility/fence-overlay.ts
@@ -140,13 +140,19 @@ type HoldTexts = ReadonlyArray<string | null | undefined>;
* texts)` (write-gate-store.ts), so a fence row matches the hold its
* projection created. Tests may swap it; null turns the held lookup off.
*/
-let factHoldFingerprint: ((texts: HoldTexts) => string) | null = texts => holdFingerprint('fact', texts);
+const gateHoldFingerprint = (texts: HoldTexts) => holdFingerprint('fact', texts);
+let factHoldFingerprint: ((texts: HoldTexts) => string) | null = gateHoldFingerprint;
/** Installs the held-row fingerprint (the write gate's `holdFingerprint('fact', …)`); null turns the held lookup off. */
export function registerFactHoldFingerprint(fingerprint: ((texts: HoldTexts) => string) | null): void {
factHoldFingerprint = fingerprint;
}
+/** Restores the write gate's fingerprint (test cleanup). */
+export function resetFactHoldFingerprint(): void {
+ factHoldFingerprint = gateHoldFingerprint;
+}
+
/** The gated text fields of a fence row, in the gate's `decideFactWrite` order (fact, context, value). */
export function fenceRowHoldTexts(row: Pick<ParsedFact, 'claim' | 'context'>): HoldTexts {
return [row.claim, row.context ?? null, null];
diff --git a/src/core/ops/facts.ts b/src/core/ops/facts.ts
index d52d235e88..bf64435b9d 100644
--- a/src/core/ops/facts.ts
+++ b/src/core/ops/facts.ts
@@ -42,7 +42,6 @@ import { MIN_TRUST_PARAM, resolveReadEligibility } from '../eligibility/policy.t
import { proactiveEligibility } from '../eligibility/registry.ts';
import { activationSuppressionNotice, suppressionSummary } from '../eligibility/activation.ts';
import { stampPageTrust, stampRowTrust } from '../eligibility/stamp.ts';
-import { trustFields } from '../eligibility/labels.ts';
import type { TrustTier } from '../trust/tier.ts';
import { AUDIT_ROW_SOURCES } from '../facts/audit-sources.ts';
@@ -282,9 +281,7 @@ const recall: Operation = {
ctx.remote === false
? undefined
: ['world'] as ('private' | 'world')[];
- // #5575: read floor (token floor, min_trust, read policy) plus the
- // quarantined-page and needs_rederive hiding, applied in each arm's SQL.
- const eligibility = await resolveReadEligibility(ctx, { minTrust: p.min_trust });
+ const eligibility = await resolveReadEligibility(ctx, { minTrust: p.min_trust }); // #5575 floor + quarantine/rederive hiding
type FactRows = Awaited<ReturnType<typeof ctx.engine.listFactsByEntity>>;
type FactRowItem = FactRows[number];
@@ -339,8 +336,7 @@ const recall: Operation = {
limit,
visibility,
grep: grep ?? undefined,
- excludeAuditRows: true,
- eligibility,
+ excludeAuditRows: true, eligibility,
};
if (p.supersessions === true) {
@@ -526,10 +522,8 @@ const recall: Operation = {
}
: undefined;
- const factTrust = new Map((await stampRowTrust(ctx.engine, 'facts', packedFacts, r => r.id))
- .map(r => [r.id, { trust_tier: r.trust_tier, origin: r.origin, ...(r.unconfirmed ? { unconfirmed: true as const } : {}) }]));
return {
- facts: packedFacts.map(r => ({
+ facts: await stampRowTrust(ctx.engine, 'facts', packedFacts.map(r => ({ // #5575 A6: + trust_tier, origin, unconfirmed
id: r.id,
fact: r.fact,
kind: r.kind,
@@ -559,8 +553,7 @@ const recall: Operation = {
// is the protocol name for the stored source attribution.
fact_id: String(r.id),
provenance: r.source, ...(r.attributed_to ? { attributed_to: r.attributed_to } : {}),
- ...(factTrust.get(r.id) ?? trustFields(r.trust_tier, r.write_origin)),
- })),
+ })), f => f.id),
total: packedFacts.length,
...(ambiguousEntity ? { ambiguous_entity: { candidates: ambiguousEntity, suggestion: AMBIGUOUS_ENTITY_SUGGESTION } } : {}),
...(pending_consolidation_count !== undefined ? { pending_consolidation_count } : {}),
@@ -577,8 +570,7 @@ const recall: Operation = {
provenance: r.slug,
...(r.delivered ? { delivered: r.delivered } : {}),
...(r.relational ? { relational: r.relational } : {}),
- ...(r.trust_tier ? { trust_tier: r.trust_tier, origin: r.origin } : {}),
- ...(r.unconfirmed ? { unconfirmed: true } : {}),
+ ...(r.trust_tier ? { trust_tier: r.trust_tier, origin: r.origin, ...(r.unconfirmed ? { unconfirmed: true } : {}) } : {}),
})),
...(searchDegraded ? { search_degraded: searchDegraded } : {}),
...(searchDegraded ? {} : await searchAnswerFeedback(ctx, 'recall', packedResults)),
diff --git a/test/evidence-delivery.test.ts b/test/evidence-delivery.test.ts
index a4808eb2e0..a74a820534 100644
--- a/test/evidence-delivery.test.ts
+++ b/test/evidence-delivery.test.ts
@@ -599,7 +599,7 @@ describe('ops', () => {
test('recall keeps legacy fields and packing, adding delivered/delivery only when on', async () => {
const off = await op('recall').handler(ctxOf(), { query: 'narwhal', budget_tokens: 5000, return_unit: 'chunk' }) as Record<string, any>;
expect(off.delivery).toBeUndefined();
- expect(off.results.every((r: Record<string, unknown>) => Object.keys(r).join(',') === 'slug,title,chunk,evidence,create_safety,provenance')).toBe(true);
+ expect(off.results.every((r: Record<string, unknown>) => Object.keys(r).join(',') === 'slug,title,chunk,evidence,create_safety,provenance,trust_tier,origin')).toBe(true);
const on = await op('recall').handler(ctxOf(), { query: 'narwhal', budget_tokens: 5000, return_unit: 'page' }) as Record<string, any>;
expect(on.delivery.requested_unit).toBe('page');
expect(on.results[0].delivered.unit).toBe('page');
diff --git a/test/fence-chunk-overlay.test.ts b/test/fence-chunk-overlay.test.ts
index e85fe2d08c..02bf75e008 100644
--- a/test/fence-chunk-overlay.test.ts
+++ b/test/fence-chunk-overlay.test.ts
@@ -14,8 +14,8 @@
* low-tier chunk loses its marker. Runs on PGLite, and on Postgres through
* test/e2e/fence-chunk-overlay-postgres.test.ts.
*/
+import { holdFingerprint } from '../src/core/write-gate-store.ts';
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
-import { createHash } from 'node:crypto';
import { PGLiteEngine } from '../src/core/pglite-engine.ts';
import type { BrainEngine } from '../src/core/engine.ts';
import { isolatedPersistencePostgres } from './helpers/persistence-postgres.ts';
@@ -32,7 +32,7 @@ import { preparePageProjection, readProjectionSnapshot } from '../src/core/page-
import { stampPageTrust } from '../src/core/eligibility/stamp.ts';
import { compactTrustLabel } from '../src/core/eligibility/labels.ts';
import {
- chunkTrustMarker, fenceTrustMarker, lowestFenceTrustMarker, loadFenceChunkOverlay, registerFactHoldFingerprint, splitFenceOverlay,
+ chunkTrustMarker, fenceTrustMarker, lowestFenceTrustMarker, loadFenceChunkOverlay, registerFactHoldFingerprint, resetFactHoldFingerprint, splitFenceOverlay,
unmarkFenceChunk, withPendingFenceRows, type FenceChunkOverlay,
} from '../src/core/eligibility/fence-overlay.ts';
import { withPageTierKept } from '../src/core/trust/fence-append.ts';
@@ -44,9 +44,6 @@ const row = (rowNum: number, claim: string, visibility: 'world' | 'private' = 'w
const truthWith = (rows: ParsedFact[]) => `Alice Example runs acme-example.\n\n## Facts\n\n${renderFactsTable(rows)}\n`;
const pageWith = (rows: ParsedFact[]) => `---\ntype: person\ntitle: Alice Example\n---\n${truthWith(rows)}`;
const overlay = (omit: number[], demote: Array<[number, TrustTier]> = []): FenceChunkOverlay => ({ omit: new Set(omit), demote: new Map(demote) });
-/** Stand-in for the write gate's holdFingerprint('fact', texts) (write-gate-store.ts on capy/memory-trust-gate). */
-const testHoldFingerprint = (texts: ReadonlyArray<string | null | undefined>) =>
- createHash('sha256').update(`fact\u0000${texts.map(t => (t ?? '').toLowerCase().replace(/\s+/g, ' ').trim()).join('\u0001')}`).digest('hex');
describe('fence trust marker', () => {
test('round-trips every tier as a compact label line and reads nothing else as a marker', () => {
@@ -121,7 +118,7 @@ beforeAll(async () => {
}
}, 180_000);
afterAll(async () => { for (const b of backends) await b.close(); });
-afterEach(() => registerFactHoldFingerprint(null));
+afterEach(() => resetFactHoldFingerprint());
const SOURCE = 'default';
const trust = (tier: TrustTier, channel: string) => ({ tier, origin: { channel } });
@@ -152,12 +149,8 @@ for (const name of testBackends()) {
await importPage(engine, slug, pageWith(rows));
await engine.executeRaw("UPDATE pages SET trust_tier='external_untrusted' WHERE source_id=$1 AND slug=$2", [SOURCE, slug]);
expect(await hits(engine, 'zanzibarquux', slug)).toHaveLength(1);
- // The write gate's hold table (lane L2a contract), created here until the gate lands on this branch.
- await engine.executeRaw(`CREATE TABLE IF NOT EXISTS write_gate_holds (id BIGSERIAL PRIMARY KEY, kind TEXT NOT NULL, source_id TEXT NOT NULL,
- slug TEXT NOT NULL DEFAULT '', fingerprint TEXT NOT NULL, status TEXT NOT NULL DEFAULT 'held', payload JSONB NOT NULL DEFAULT '{}'::jsonb)`);
- await engine.executeRaw("INSERT INTO write_gate_holds (kind, source_id, slug, fingerprint) VALUES ('fact', $1, $2, $3)",
- [SOURCE, slug, testHoldFingerprint([rows[1]!.claim, null, null])]);
- registerFactHoldFingerprint(testHoldFingerprint);
+ await engine.executeRaw(`INSERT INTO write_gate_holds (kind, source_id, slug, fingerprint, detector_version, tier, payload)
+ VALUES ('fact', $1, $2, $3, 1, 'external_untrusted', '{}'::jsonb)`, [SOURCE, slug, holdFingerprint('fact', [rows[1]!.claim, null, null])]);
await importPage(engine, slug, pageWith(rows));
expect(await hits(engine, 'zanzibarquux', slug)).toHaveLength(0);
expect(await hits(engine, 'widgets', slug)).toHaveLength(1);
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-default.json b/test/fixtures/goldens/catalog/pglite-engine-init-default.json
index 83bd44233d..3353aed6c7 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-default.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-default.json
@@ -407,6 +407,9 @@
"write_gate_holds.write_gate_holds_kind_check": "c CHECK ((kind = ANY (ARRAY['fact'::text, 'take'::text])))",
"write_gate_holds.write_gate_holds_pkey": "p PRIMARY KEY (id)",
"write_gate_holds.write_gate_holds_status_check": "c CHECK ((status = ANY (ARRAY['held'::text, 'released'::text, 'dropped'::text])))",
+ "write_gate_receipts.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.write_gate_receipts_pkey": "p PRIMARY KEY (id)",
"write_gate_receipts.write_gate_receipts_target_table_check": "c CHECK ((target_table = ANY (ARRAY['pages'::text, 'facts'::text, 'takes'::text, 'timeline_entries'::text, 'write_gate_holds'::text])))",
"write_gate_receipts.write_gate_receipts_verdict_check": "c CHECK ((verdict = ANY (ARRAY['flag'::text, 'quarantine'::text])))"
@@ -3500,7 +3503,10 @@
"timeline_entries.planner_stats_ins": "CREATE TRIGGER planner_stats_ins AFTER INSERT ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.planner_stats_upd": "CREATE TRIGGER planner_stats_upd AFTER UPDATE ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.timeline_entries DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
- "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()"
+ "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
+ "write_gate_receipts.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((((((old.verdict IS DISTINCT FROM new.verdict) OR (old.reason_families IS DISTINCT FROM new.reason_families)) OR (old.content_hash IS DISTINCT FROM new.content_hash)) OR (old.target_table IS DISTINCT FROM new.target_table)) OR (old.target_id IS DISTINCT FROM new.target_id))) EXECUTE FUNCTION gbrain_bump_trust_generation()"
},
"viewColumns": {
"page_links": [
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
index 4b4fb056b6..2a6ea38d4d 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
@@ -407,6 +407,9 @@
"write_gate_holds.write_gate_holds_kind_check": "c CHECK ((kind = ANY (ARRAY['fact'::text, 'take'::text])))",
"write_gate_holds.write_gate_holds_pkey": "p PRIMARY KEY (id)",
"write_gate_holds.write_gate_holds_status_check": "c CHECK ((status = ANY (ARRAY['held'::text, 'released'::text, 'dropped'::text])))",
+ "write_gate_receipts.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.write_gate_receipts_pkey": "p PRIMARY KEY (id)",
"write_gate_receipts.write_gate_receipts_target_table_check": "c CHECK ((target_table = ANY (ARRAY['pages'::text, 'facts'::text, 'takes'::text, 'timeline_entries'::text, 'write_gate_holds'::text])))",
"write_gate_receipts.write_gate_receipts_verdict_check": "c CHECK ((verdict = ANY (ARRAY['flag'::text, 'quarantine'::text])))"
@@ -3500,7 +3503,10 @@
"timeline_entries.planner_stats_ins": "CREATE TRIGGER planner_stats_ins AFTER INSERT ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.planner_stats_upd": "CREATE TRIGGER planner_stats_upd AFTER UPDATE ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.timeline_entries DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
- "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()"
+ "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
+ "write_gate_receipts.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((((((old.verdict IS DISTINCT FROM new.verdict) OR (old.reason_families IS DISTINCT FROM new.reason_families)) OR (old.content_hash IS DISTINCT FROM new.content_hash)) OR (old.target_table IS DISTINCT FROM new.target_table)) OR (old.target_id IS DISTINCT FROM new.target_id))) EXECUTE FUNCTION gbrain_bump_trust_generation()"
},
"viewColumns": {
"page_links": [
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
index 1b03aa2058..7268c179bf 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
@@ -407,6 +407,9 @@
"write_gate_holds.write_gate_holds_kind_check": "c CHECK ((kind = ANY (ARRAY['fact'::text, 'take'::text])))",
"write_gate_holds.write_gate_holds_pkey": "p PRIMARY KEY (id)",
"write_gate_holds.write_gate_holds_status_check": "c CHECK ((status = ANY (ARRAY['held'::text, 'released'::text, 'dropped'::text])))",
+ "write_gate_receipts.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
+ "write_gate_receipts.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.write_gate_receipts_pkey": "p PRIMARY KEY (id)",
"write_gate_receipts.write_gate_receipts_target_table_check": "c CHECK ((target_table = ANY (ARRAY['pages'::text, 'facts'::text, 'takes'::text, 'timeline_entries'::text, 'write_gate_holds'::text])))",
"write_gate_receipts.write_gate_receipts_verdict_check": "c CHECK ((verdict = ANY (ARRAY['flag'::text, 'quarantine'::text])))"
@@ -3496,7 +3499,10 @@
"timeline_entries.planner_stats_ins": "CREATE TRIGGER planner_stats_ins AFTER INSERT ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.planner_stats_upd": "CREATE TRIGGER planner_stats_upd AFTER UPDATE ON public.timeline_entries REFERENCING NEW TABLE AS new_rows FOR EACH STATEMENT EXECUTE FUNCTION gbrain_count_modifications()",
"timeline_entries.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.timeline_entries DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
- "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()"
+ "timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
+ "write_gate_receipts.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
+ "write_gate_receipts.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((((((old.verdict IS DISTINCT FROM new.verdict) OR (old.reason_families IS DISTINCT FROM new.reason_families)) OR (old.content_hash IS DISTINCT FROM new.content_hash)) OR (old.target_table IS DISTINCT FROM new.target_table)) OR (old.target_id IS DISTINCT FROM new.target_id))) EXECUTE FUNCTION gbrain_bump_trust_generation()"
},
"viewColumns": {
"page_links": [
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index ac30d1c1f6..9061b20b1a 100644
--- a/test/fixtures/goldens/cli/tools-json.json
+++ b/test/fixtures/goldens/cli/tools-json.json
@@ -2,8 +2,8 @@
"golden": {
"exitCode": 0,
"stderr": "",
- "stdoutBytes": 218195,
- "stdoutSha256": "47b74412739a61e9149e02ca61ed49d8d15d598ca1327647c6d6fba3a421bdc6",
+ "stdoutBytes": 218589,
+ "stdoutSha256": "9f8fd6331b2d83da62a9b91a37e8235d251af39deabe226a3b23cdad09593b57",
"toolNames": [
"remember",
"entity",
@@ -3228,11 +3228,24 @@
"mutating": false,
"name": "get_chunks",
"parameters": {
+ "min_trust": "string?",
"slug": "string"
},
"required_scopes": [],
"schema": {
"properties": {
+ "min_trust": {
+ "description": "Lowest trust tier to return (the connection floor still applies).",
+ "enum": [
+ "user_confirmed",
+ "operator_curated",
+ "tool_observed",
+ "agent_written",
+ "unknown",
+ "external_untrusted"
+ ],
+ "type": "string"
+ },
"slug": {
"description": "Slug of the page whose content chunks to return.",
"type": "string"
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index 9db1ed3079..5a150eed6f 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -1730,6 +1730,23 @@
"name": "trust_tiers",
"status": "ok"
},
+ {
+ "category": "brain",
+ "details": {
+ "completed_at": null,
+ "detector_version": 1,
+ "total_unscanned": 0,
+ "unscanned": {
+ "facts": 0,
+ "pages": 0,
+ "takes": 0,
+ "timeline_entries": 0
+ }
+ },
+ "message": "Every agent-written or lower row has been scanned by the current write-gate detector; proactive suppression covers them.",
+ "name": "trust_scan",
+ "status": "ok"
+ },
{
"category": "brain",
"details": {
@@ -1839,7 +1856,7 @@
},
{
"category": "brain",
- "message": "1 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts. Re-run `gbrain eval run-all` after committing these changes.",
+ "message": "No retrieval-affecting files changed in working tree.",
"name": "eval_drift",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index e50ce60e31..43973a0b66 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -1807,6 +1807,23 @@
"name": "trust_tiers",
"status": "ok"
},
+ {
+ "category": "brain",
+ "details": {
+ "completed_at": null,
+ "detector_version": 1,
+ "total_unscanned": 0,
+ "unscanned": {
+ "facts": 0,
+ "pages": 0,
+ "takes": 0,
+ "timeline_entries": 0
+ }
+ },
+ "message": "Every agent-written or lower row has been scanned by the current write-gate detector; proactive suppression covers them.",
+ "name": "trust_scan",
+ "status": "ok"
+ },
{
"category": "brain",
"details": {
@@ -1916,7 +1933,7 @@
},
{
"category": "brain",
- "message": "1 retrieval-affecting file(s) changed since HEAD: src/core/operations.ts. Re-run `gbrain eval run-all` after committing these changes.",
+ "message": "No retrieval-affecting files changed in working tree.",
"name": "eval_drift",
"status": "ok"
},
diff --git a/test/fixtures/goldens/doctor/registry-build-checks.json b/test/fixtures/goldens/doctor/registry-build-checks.json
index 21bab3eae0..9991c65f87 100644
--- a/test/fixtures/goldens/doctor/registry-build-checks.json
+++ b/test/fixtures/goldens/doctor/registry-build-checks.json
@@ -689,6 +689,10 @@
"category": "brain",
"name": "trust_tiers"
},
+ {
+ "category": "brain",
+ "name": "trust_scan"
+ },
{
"category": "brain",
"name": "core_memory"
diff --git a/test/fixtures/goldens/evidence-delivery/off-path.json b/test/fixtures/goldens/evidence-delivery/off-path.json
index 135e3e9b9f..33b2c35036 100644
--- a/test/fixtures/goldens/evidence-delivery/off-path.json
+++ b/test/fixtures/goldens/evidence-delivery/off-path.json
@@ -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\"},{\"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\"},{\"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\"},{\"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\"}],\"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\"}],\"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\"},{\"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\"},{\"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\"},{\"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\"}],\"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\"}],\"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\"}],\"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\"}],\"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\"},{\"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\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\"}],\"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\"},{\"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\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\"}],\"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\"},{\"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\"},{\"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\"},{\"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\"}],\"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\"}],\"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\"},{\"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\"},{\"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\"},{\"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\"}],\"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\"}],\"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\"}],\"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\"}],\"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\"},{\"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\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\"}],\"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\"},{\"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\"},{\"slug\":\"notes/ocelot-private\",\"title\":\"notes/ocelot-private\",\"chunk\":\"Private ocelot memo body.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/ocelot-private\"},{\"slug\":\"notes/short\",\"title\":\"notes/short\",\"chunk\":\"A short ocelot note.\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"provenance\":\"notes/short\"}],\"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\\\"},{\\\"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\\\"},{\\\"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\\\"}]\"}],\"_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\\\"},{\\\"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\\\"},{\\\"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\\\"}]\"}],\"_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\\\"},{\\\"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\\\"},{\\\"slug\\\":\\\"notes/short\\\",\\\"title\\\":\\\"notes/short\\\",\\\"chunk\\\":\\\"A short ocelot note.\\\",\\\"evidence\\\":\\\"weak_semantic\\\",\\\"create_safety\\\":\\\"unknown\\\",\\\"provenance\\\":\\\"notes/short\\\"}],\\\"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\\\">\\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.\"}]"
+ "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-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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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-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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\\\",\\\"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\\\",\\\"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\\\",\\\"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 --git a/test/fixtures/goldens/search-c5/notices.json b/test/fixtures/goldens/search-c5/notices.json
index b7a4c52336..e5776392d2 100644
--- a/test/fixtures/goldens/search-c5/notices.json
+++ b/test/fixtures/goldens/search-c5/notices.json
@@ -2,7 +2,7 @@
"with": {
"search NULA billing contact": {
"content": [
- "[{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\"},{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":0.9836065573770493,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":0.4838709677419355,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":0.9836065573770493,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":0.4838709677419355,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"Other names in these results (documents may use either; search the one you have not tried): NULA = Numbat Labs (declared in contracts/numbat-labs-msa).",
"Saved facts (remember) matching this query, newest first; recall returns more:\n- The billing contact for Numbat Labs is New Person. [entity: numbat-labs; saved 2026-09-01; provenance: user update]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
@@ -51,7 +51,7 @@
},
"search Numbat Labs payment terms": {
"content": [
- "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\"}]",
+ "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"Other names in these results (documents may use either; search the one you have not tried): NULA = Numbat Labs (declared in crm/numbat-labs).",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
@@ -89,7 +89,7 @@
},
"search OCFR renewal": {
"content": [
- "[{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight, also known as OCFR. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight, also known as OCFR. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"Other names in these results (documents may use either; search the one you have not tried): OCFR = Ocelot Freight (declared in crm/ocelot-freight).",
"Saved facts (remember) matching this query, newest first; recall returns more:\n- Ocelot Freight renewal moves to the platform team. [entity: ocelot-freight; saved 2026-09-02; provenance: user update]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
@@ -138,7 +138,7 @@
},
"search renewal quote": {
"content": [
- "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -168,7 +168,7 @@
},
"query Numbat Labs payment terms": {
"content": [
- "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\"}]",
+ "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs (account code NULA). Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Account code: NULA. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"Other names in these results (documents may use either; search the one you have not tried): NULA = Numbat Labs (declared in crm/numbat-labs).",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
@@ -211,7 +211,7 @@
},
"query OCFR renewal owner": {
"content": [
- "[{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight, also known as OCFR. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight, also known as OCFR. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"Other names in these results (documents may use either; search the one you have not tried): OCFR = Ocelot Freight (declared in crm/ocelot-freight).",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
@@ -256,7 +256,7 @@
"without": {
"search NULA billing contact": {
"content": [
- "[{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5081967213114754,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":0.4998656275194841,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"contracts/amendment-one\",\"title\":\"Amendment No. 1: NULA\",\"type\":\"note\",\"chunk_text\":\"Executed amendment for NULA: payment terms change to Net 30.\",\"chunk_id\":3,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL2FtZW5kbWVudC1vbmUiXQ\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5081967213114754,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":0.4998656275194841,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -286,7 +286,7 @@
},
"search Numbat Labs payment terms": {
"content": [
- "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs . Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"}]",
+ "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs . Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -316,7 +316,7 @@
},
"search OCFR renewal": {
"content": [
- "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"},{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":0.5041322314049587,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\"}]",
+ "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":0.5041322314049587,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -346,7 +346,7 @@
},
"search renewal quote": {
"content": [
- "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"}]",
+ "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -376,7 +376,7 @@
},
"query Numbat Labs payment terms": {
"content": [
- "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs . Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\"}]",
+ "[{\"slug\":\"contracts/numbat-labs-msa\",\"title\":\"MSA: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Master services agreement with Numbat Labs . Payment terms: Net 45.\",\"chunk_id\":2,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"keyword_exact\",\"create_safety\":\"probable\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY29udHJhY3RzL251bWJhdC1sYWJzLW1zYSJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/numbat-labs\",\"title\":\"CRM record: Numbat Labs\",\"type\":\"note\",\"chunk_text\":\"Account record. Segment: mid-market. Billing contact: Old Person.\",\"chunk_id\":1,\"score\":0.5948760330578512,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL251bWJhdC1sYWJzIl0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {
@@ -411,7 +411,7 @@
},
"query OCFR renewal owner": {
"content": [
- "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\"},{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":0.5041322314049587,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\"}]",
+ "[{\"slug\":\"notes/renewal-playbook\",\"title\":\"Renewal playbook\",\"type\":\"note\",\"chunk_text\":\"Confirm the billing contact, check payment terms, send the renewal quote 60 days before the term ends.\",\"chunk_id\":5,\"score\":1,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0Iiwibm90ZXMvcmVuZXdhbC1wbGF5Ym9vayJd\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"},{\"slug\":\"crm/ocelot-freight\",\"title\":\"CRM record: Ocelot Freight\",\"type\":\"note\",\"chunk_text\":\"Account record for Ocelot Freight. Renewal owner: the platform team.\",\"chunk_id\":4,\"score\":0.5041322314049587,\"source_id\":\"default\",\"effective_date\":\"DATE\",\"evidence\":\"weak_semantic\",\"create_safety\":\"unknown\",\"id\":\"gbrain-page:v1:WyJkZWZhdWx0IiwiY3JtL29jZWxvdC1mcmVpZ2h0Il0\",\"trust_tier\":\"unknown\",\"origin\":\"legacy\"}]",
"[gbrain notice degraded_recall kind=degraded]\nwhy: Recall was degraded (embed_unavailable): semantic (vector) search did not run, so matches phrased differently from the query can be missing. Treat a thin or empty result as \"not found with a degraded search\", never as \"the brain has nothing on this\".\nfix: gbrain init --force --embedding-model voyage:voyage-4 --embedding-dimensions 1024\nnext: tell_user_to_run\nuser_message: Semantic search needs an embedding API key. Voyage AI works with this brain; if you add a key (<provider key>), I can turn it on. Embedding costs a little per page; your notes and facts stay as they are."
],
"retrieval": {