Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

wip(#6803 lane B): partial_embedding entry contract, goldens, key files, regen

garrytandcaacaa34a75
diff --git a/docs/architecture/key-files/core-minions-1.md b/docs/architecture/key-files/core-minions-1.md
index 3b4b206e0f..94ee4c5d39 100644
--- a/docs/architecture/key-files/core-minions-1.md
+++ b/docs/architecture/key-files/core-minions-1.md
@@ -36,7 +36,7 @@ Current behavior and load-bearing invariants; history belongs in Git and CHANGEL
- `src/core/minions/handlers/contextual-reindex-per-chunk.ts` — per-page contextual re-embed handler. With `expected_source_id` it resolves the page in that source only and fails the job as stale when the page is missing there, never falling back to a same-slug page in another source; without it, it tries `default` and then every live source (`test/contextual-reindex-lease-release.test.ts`). Resolves `models.contextual_synopsis` once and isolates cross-worker leases by the full resolved model id. `GBRAIN_CONTEXTUAL_SYNOPSIS_RPM` controls the cap; `GBRAIN_CONTEXTUAL_HAIKU_RPM` is the compatibility alias.
-- `src/core/minions/handlers/embed-backfill.ts` — `embed-backfill` job handler (the deferred lane behind sync's cost gate). Cap ladder for `embed.backfill_max_usd`: a present-but-invalid value (`0`, negative, garbage) is `misconfigured` and FAILS CLOSED to the $10 default, which is never dropped; only the IMPLICIT default cap is lifted (uncapped-with-warning to stderr) when the embedding model is unpriceable via `isModelPriceable` + `pricing.overrides`; the off tokens (`off`/`unlimited`/`none`) remove the ceiling. Single-flights via the same per-source lock key as CLI `embed --stale` (`embed-backfill-lock.ts`). Carries the progress-keyed stall watchdog arm: progress = banked `embedded + chunksProcessed`; a stall aborts the drain and throws `stall_timeout` so the queue fails the job and the resumable cursor re-runs.
+- `src/core/minions/handlers/embed-backfill.ts` — `embed-backfill` job handler (the deferred lane behind sync's cost gate). Cap ladder for `embed.backfill_max_usd`: a present-but-invalid value (`0`, negative, garbage) is `misconfigured` and FAILS CLOSED to the $10 default, which is never dropped; only the IMPLICIT default cap is lifted (uncapped-with-warning to stderr) when the embedding model is unpriceable via `isModelPriceable` + `pricing.overrides`; the off tokens (`off`/`unlimited`/`none`) remove the ceiling. Single-flights via the same per-source lock key as CLI `embed --stale` (`embed-backfill-lock.ts`). Carries the progress-keyed stall watchdog arm: progress = banked `embedded + chunksProcessed`; a stall aborts the drain and throws `stall_timeout` so the queue fails the job and the resumable cursor re-runs. A success result carries `budget_limited` (held-embedding.ts) when large pages of the source wait for embedding approval; it is informational, never a failure or stall input.
- `src/core/minions/handlers/shell-audit.ts` — per-submission JSONL audit trail at `~/.gbrain/audit/shell-jobs-YYYY-Www.jsonl` (ISO-week rotation; override via `GBRAIN_AUDIT_DIR`). Best-effort: `mkdirSync(recursive)` + `appendFileSync`; failures logged to stderr, submission not blocked. Logs cmd (first 80 chars) or argv (JSON array). Never logs env values.
diff --git a/docs/architecture/key-files/core-utilities-1.md b/docs/architecture/key-files/core-utilities-1.md
index af9aee6aea..26890371f2 100644
--- a/docs/architecture/key-files/core-utilities-1.md
+++ b/docs/architecture/key-files/core-utilities-1.md
@@ -35,8 +35,10 @@ The `src/core/cycle.ts` entry is on its own page: [Core Cycle primitive](core-cy
- `src/core/enrichment-service.ts` — Global enrichment service: entity slug generation, tier auto-escalation, batch throttling. `slugifyEntity` keeps letters of every script (accents folded, NFC); before minting a page, `enrichEntity` reuses one at `legacyAsciiEntitySlug` (the old ASCII-only slug) only within the same source and only when that page's title names the entity, since the legacy slug is lossy. Write path is trust-gated: `enrichEntity` / `enrichEntities` / `extractAndEnrich` take `EnrichmentTrustOptions { trusted?, sourceId? }`; only an explicit `trusted: true` writes authoritative `people/` / `companies/` stubs. Anything else (undefined/false — fail-closed, mirroring `OperationContext.remote`) creates the stub with the extraction quarantine markers from `src/core/extraction-review.ts` and reports `quarantined: true` in `EnrichmentResult`. The ONLY sanctioned op surface is `extract_entities` (operations.ts), which grants `trusted` solely for `ctx.remote === false` callers passing `--trusted-extraction`. On a managed brain (`EnrichmentTrustOptions.ctx` set, #6262) every write goes through the coordinator under the caller's authority: the stub is a create-only `put_page` (`content_origin: tool_output` when the source page is `external_untrusted`), then `lowerDerivedPageIn`, the timeline row and the backlink each run in `coordinatedDatabaseWrite` as operation `extract_entities` at the source page's derived tier. There is no direct-write fallback; a refusal or `write_pending` stops the batch and its `why` names the entities already written. A grant without `put_page` cannot create stubs there. Pinned by `test/extract-entities-managed.test.ts`.
- `src/core/page-size-policy.ts` — large pages Wave A: the one page ceiling every raisable ingress bound derives from. `PAGE_MAX_BYTES` (24 MiB: import, sync and the managed sync read, CLI stdin, `content_sanity.bytes_block` default), `PUSH_SCAN_MAX_FILE_BYTES` (25 MiB; no canonical file write may exceed it), `CODE_FILE_MAX_BYTES` (5 MB, code keeps its own bound) and `PAGE_INLINE_MAX_BYTES` (1 MiB) with `isLargePageBytes`: a large page commits with NULL vectors, embeds through the sweep under the per-page cap, uses the title context tier and keeps `LARGE_PAGE_VERSIONS_KEPT` large snapshots. The per-entry-point table is in `docs/guides/memory-boundaries.md#large-page-limits`.
-- `src/core/page-embedding-budget.ts` — large pages: the per-page embedding spend cap `embed.max_usd_per_page` (default $2; unlimited under `spend.posture tokenmax` when unset) and its ledger `page_embedding_budget` (migration v246; states `open` / `held` / `capped`, spent and reserved USD per embedding signature). `planPageEmbedding(engine, page, stale, { signature, approvedCapUsd })` is called by every paid embedding entry point (embed-stale sweep, `gbrain embed` slug/`--all`/`--stale` paths, the managed embedding effect): small pages are `unmetered`; a held page returns `held` unless the user's approval is passed; otherwise it reserves the newest stale chunks that fit the remaining budget under a row lock and returns a grant to `settle`. A reservation older than an hour counts as spent. The sampled junk check (`assessSampledJunk`) holds a boilerplate large page. Held and capped pages leave the stale queue (`staleChunkWhere`, `listStaleChunks`, embedding-invalidation). `listBudgetLimitedPages` feeds doctor `partial_embedding` and `gbrain embed --held`. #6722 receipts: `pageSizeState` / `readPageSizeStates` / `sizeStateField` give the one `size_state` shape (`deferred` / `partial` / `held` / `skipped`, with reason and bytes) that `put_page` (page-prepare), managed sync (sync-prepare) and `remember` (memory-prepare) receipts carry for a large or embed_skip page; `addSizeState` / `sizeStateLines` build the sync tally `size_states` (managed cursor counts, legacy incremental and full sync) and its output lines. Tests: `test/oversized-backfill.serial.test.ts`, `test/persistence-embedding-effects.test.ts`, `test/size-state-receipts-6722.test.ts`.
-- `src/core/oversized-backfill.ts` — large pages upgrade: `runOversizedBackfill` (`gbrain reindex --oversized`, and a two-minute pass in `gbrain post-upgrade` via `printOversizedBackfillUpgradeNotice`) rewrites pages an older gbrain stored chunkless for size (gate-written `embed_skip.reason = oversized`) through the normal write path (canonical owner on a managed brain, as `quarantine clear` does) with `forceRechunk` and no embedding: under the effective `bytes_block` the marker and `content_flag: oversized` are removed; over it (and under the ceiling) a chunkless page keeps both and is only re-chunked for keyword search (`rechunked_over_block`, #6722). CPU-only, keyless-safe, idempotent, resumable. Pages over 1 MiB are held (`upgrade_backfill`) for embedding approval first. The receipt names pages re-indexed, chunks pending, estimated cost and the finish/preview/approve commands.
+- `src/core/page-embedding-budget.ts` — large pages: the per-page embedding spend cap `embed.max_usd_per_page` (default $2; unlimited under `spend.posture tokenmax` when unset) and its ledger `page_embedding_budget` (migration v246; states `open` / `held` / `capped`, spent and reserved USD per embedding signature). `planPageEmbedding(engine, page, stale, { signature, approvedCapUsd })` is called by every paid embedding entry point (embed-stale sweep, `gbrain embed` slug/`--all`/`--stale` paths, the managed embedding effect): small pages are `unmetered`; a held page returns `held` unless the user's approval is passed; otherwise it reserves the newest stale chunks that fit the remaining budget under a row lock and returns a grant to `settle`. A reservation older than an hour counts as spent. The sampled junk check (`assessSampledJunk`) holds a boilerplate large page. Held and capped pages leave the stale queue (`staleChunkWhere`, `listStaleChunks`, embedding-invalidation). `listBudgetLimitedPages` (no row cap with `limit: null`) feeds `gbrain embed --held`; the hold and cap lines `meterPageBatch` prints name a per-page approve with a concrete N (held-embedding-action.ts), and `sizeStateLines` names `gbrain embed --held --dry-run --source <id>`. Its ledger prices a free local recipe at $0 (#6847). #6722 receipts: `pageSizeState` / `readPageSizeStates` / `sizeStateField` give the one `size_state` shape (`deferred` / `partial` / `held` / `skipped`, with reason and bytes) that `put_page` (page-prepare), managed sync (sync-prepare) and `remember` (memory-prepare) receipts carry for a large or embed_skip page; `addSizeState` / `sizeStateLines` build the sync tally `size_states` (managed cursor counts, legacy incremental and full sync) and its output lines. Tests: `test/oversized-backfill.serial.test.ts`, `test/persistence-embedding-effects.test.ts`, `test/size-state-receipts-6722.test.ts`.
+- `src/core/oversized-backfill.ts` — large pages upgrade: `runOversizedBackfill` (`gbrain reindex --oversized`, and a two-minute pass in `gbrain post-upgrade` via `printOversizedBackfillUpgradeNotice`) rewrites pages an older gbrain stored chunkless for size (gate-written `embed_skip.reason = oversized`) through the normal write path (canonical owner on a managed brain, as `quarantine clear` does) with `forceRechunk` and no embedding: under the effective `bytes_block` the marker and `content_flag: oversized` are removed; over it (and under the ceiling) a chunkless page keeps both and is only re-chunked for keyword search (`rechunked_over_block`, #6722). CPU-only, keyless-safe, idempotent, resumable. Pages over 1 MiB are held (`upgrade_backfill`) for embedding approval first. The receipt names pages re-indexed, chunks pending, estimated cost and the finish/preview commands; after a run that held pages, `approvals` carries one approve per source with a concrete N (`budgetLimitedReport`).
+- `src/core/held-embedding.ts` — held embedding budgets surfaced (#6803 part 3) and approvable on every provider (#6847). `readBudgetLimited` counts held and capped large pages with chunks still waiting (active vector column, `embedded_at`, signature drift; no row cap), by source; `budgetLimitedReport` renders the one phrase plus one approve Action per source (most pending chunks first). Consumers: `gbrain embed --stale` (`noteBudgetLimited`, a `budget_limited` field and one line), the embed-backfill job (`budgetLimitedField`; never a failure or stall input), doctor `partial_embedding` (`budgetLimitedFinding`, its own registry entry), the oversized backfill receipt. `heldEmbedArgv`: `--held --dry-run` lists every source (exit 0); `--max-usd` across several sources without `--source` refuses `invalid_params`. `heldApprovalUsd`: an explicit `--max-usd N` on `--slugs`/`--held` is the hold approval on any provider, refused before release with `embedding_unavailable` or `no_pricing`; `--yes` never approves. Tests: `test/held-embedding-budgets.test.ts` (+ Postgres wrapper), `test/held-embedding-approval.test.ts`, `test/held-embedding-printed-commands.serial.test.ts`.
+- `src/core/held-embedding-action.ts` — leaf module for the held-embedding approval: `approvalAmount` (N = `derivedCapUsd` of the higher of the run-meter and per-page ledger estimates, so x1.5 with a $0.25 floor; $0.01 and no paid/egress consent on a free recipe), `ledgerPricePerMTok`, `heldApproveAction` (argv, source-scoped dry-run preview and verify, `ask_user`), `heldPreviewCommand` (the every-source listing opts out of routing's source pin) and `budgetLimitedPhrase`.
- `src/core/extraction-watermark.ts` — large pages A7: no silent head-only page extraction. `planExtraction(body, stored, { cap, pipeline, emptyTail })` decides what one extraction reads: the whole body when it fits `cap` (`full`); the text past a stored watermark when the body still starts with exactly the watermarked prefix (`tail`; UTF-8 byte offset + sha256 of the prefix + `EXTRACTION_PIPELINE_VERSION`), its newest `cap` characters when the tail is longer (receipt `tail_window`, never starting inside a surrogate pair, snapped to a line start in the first tenth); otherwise the head (`truncateUtf8`) with receipt `head` and reason `no_watermark` / `prefix_changed` / `version_changed` / `no_new_text`. An empty tail is a skip (`facts_backstop`) or a head re-read (`extract_atoms`, after a cap rise). `readPageWatermark` (by source + slug, fail-soft), `commitExtractionPlan` (after a successful extraction: the watermark moves to the end of the planned body; a full read clears `input_truncated`, a truncated read replaces it, a complete tail read keeps the gap an earlier read left) and `setExtractionReceipt` (the conversation-facts size skip, no watermark) write `page_extraction_state` (migration v247; hashes, offsets and counts only, rows cascade with the page). Doctor `extraction_input_truncated` reads the receipts. Tests: `test/extraction-watermark.test.ts`, `test/extraction-watermark-facts.test.ts`, `test/extraction-watermark-atoms.test.ts`.
- `src/core/env-number.ts` — numeric env-var resolution with ONE shared warn-once memo. `resolveEnvNumber(varName, fallback, {unit?})` (positive numbers only; zero/negative/garbage → warn once + fallback), `resolveHoursEnv` (hours unit pre-applied), `warnOnceForEnv(varName, message)` for disabled-unless-set vars that need the same memo without the fallback shape (e.g. `GBRAIN_EXTRACTION_LAG_FAIL_PCT`). Lives in core because `source-health.ts` needs the hours resolver for the staleness ceiling while `doctor.ts` already imports FROM `source-health.ts` — reaching back would cycle, and duplicating would fork the memo so one bad var warns twice. `doctor.ts` re-exports it as `_resolveEnvNumber` for `sync.ts`'s dynamic import. `_resetEnvNumberWarnedForTests()` is a test seam.
diff --git a/llms-full.txt b/llms-full.txt
index 94b039eb17..c714d040ca 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -4033,6 +4033,8 @@ per-token price), obtain each value as `how` describes and substitute it for
| `host_admin` | the operator of the brain host (a remote brain over HTTP, scope grants, server restarts). Never authorizable from MCP |
| `provider` | an outside service you wait on (rate limits, outages) |
+A fix whose expected run time exceeds 120 seconds (`AGENT_TOOL_LIMIT_MS`, the longest an agent tool call reliably stays open) is never `agent`: gbrain gives it actor `user` (or `host_admin` on a remote brain), so it renders `tell_user_to_run` and the user runs it in a terminal on the brain host.
+
### The `next` decision table
First matching row wins.
@@ -10602,7 +10604,8 @@ Source: https://raw.githubusercontent.com/garrytan/gbrain/master/docs/guides/tro
| `gbrain init` or `gbrain upgrade` stops with `schema_lock_blocked` naming a pid (or, before #5227, sat in `wait_event_type=Lock` with no output) | let the named session finish, or with the user's agreement end it on the database host: `SELECT pg_terminate_backend(<pid>)`; then rerun the same command ([ENGINES.md](../ENGINES.md#schema-lock-blocked)) | brain host, after the user agrees | `destructive` when it ends another session | the rerun completes; `gbrain doctor --json` shows the schema at head |
| [`queue_capacity`, `persistence_capacity` or `persistence_request_growth`](#write-capacity) | run the printed `gbrain config set persistence.limits.<limit> <value>` | brain host | none | `gbrain doctor --only persistence_capacity,persistence_request_growth --json` |
| [`dream_paid_loop`, or dream keeps skipping one transcript](#dream-paid-loop) | fix the cause, then `gbrain dream reset-key --list` and `gbrain dream reset-key '<key>'` | agent, after the user agrees | `paid` (the key is retried) | `gbrain doctor --only dream_paid_loop --json` |
-| [A page exists (`gbrain get <slug>` returns it) but search never finds text from it](memory-boundaries.md#large-pages) | find the cause: `gbrain reindex --oversized --dry-run --json` lists pages stored before the upgrade with a size-based `embed_skip` marker (run it without `--dry-run` to keyword-index them, free); a page above an operator-lowered `content_sanity.bytes_block` keeps its marker until the operator raises or unsets it; a page the content-quality gate quarantined as junk shows in `gbrain quarantine list`, and `gbrain quarantine clear <slug>` re-checks it once the user agrees; a file over the 24 MiB page ceiling was never stored ([`file_too_large`](write-refusals.md#file_too_large)). Embedding the re-indexed pages is a separate paid step: `gbrain embed --held --max-usd <N>` | agent for the reindex; the user decides embedding spend, a `bytes_block` change and a quarantine clear | none for the reindex (CPU only); `paid` for `gbrain embed` | `gbrain reindex --oversized --dry-run --json` lists nothing; `gbrain doctor --json`; `gbrain search "<phrase from deep in the page>"` returns the page |
+| [A page exists (`gbrain get <slug>` returns it) but search never finds text from it](memory-boundaries.md#large-pages) | find the cause: `gbrain reindex --oversized --dry-run --json` lists pages stored before the upgrade with a size-based `embed_skip` marker (run it without `--dry-run` to keyword-index them, free); a page above an operator-lowered `content_sanity.bytes_block` keeps its marker until the operator raises or unsets it; a page the content-quality gate quarantined as junk shows in `gbrain quarantine list`, and `gbrain quarantine clear <slug>` re-checks it once the user agrees; a file over the 24 MiB page ceiling was never stored ([`file_too_large`](write-refusals.md#file_too_large)). Embedding the re-indexed pages is a separate paid step: `gbrain embed --held --dry-run`, then `gbrain embed --held --source <id> --max-usd <N>` per source | agent for the reindex; the user decides embedding spend, a `bytes_block` change and a quarantine clear | none for the reindex (CPU only); `paid` for `gbrain embed` | `gbrain reindex --oversized --dry-run --json` lists nothing; `gbrain doctor --json`; `gbrain search "<phrase from deep in the page>"` returns the page |
+| [Large pages stay out of meaning-based search; `gbrain embed --stale` prints `large page(s) have chunks waiting for embedding approval` or doctor `partial_embedding` warns](memory-boundaries.md#large-pages) | preview with `gbrain embed --held --dry-run` (every source, free); with the user's approval `gbrain embed --held --source <id> --max-usd <N>` per source, with the N the preview prints (a ceiling: the run's cap and each page's extra allowance) | agent, after the user agrees | `paid`, `egress` (none on a local provider that bills nothing) | `gbrain embed --held --dry-run --source <id> --json` shows `held: 0` and `capped: 0` for that source; `gbrain doctor --only partial_embedding --json` |
| [Search answers look keyword-only on a large Postgres brain](#hybrid-search-returns-only-keyword-hits) | read doctor's `vector_plan`; run the index command it prints | brain host | none | `gbrain doctor --only vector_plan --json` |
| [Broad keyword queries take about 8 s and come back vector-only (`keyword_arm_failed`, or `skipped_after_timeout` for 10 minutes after a timeout) on a large Postgres brain](#keyword-search-times-out-on-a-large-postgres-brain) | read doctor's `keyword_plan`; narrow with `--source-id`, or raise `search.keyword_statement_timeout_ms` on the brain host and restart the serving process | brain host | none | `gbrain doctor --only keyword_plan --json` |
| A second `gbrain serve` cannot open the brain | the readiness `harness_wiring` fix: every session shares one `gbrain serve --http` | user | `persistent_install`, `credentials` | `gbrain doctor --only harness_wiring --json` |
diff --git a/plugin-variants/gbrain-coding/skills/conventions/agent-operator-protocol.md b/plugin-variants/gbrain-coding/skills/conventions/agent-operator-protocol.md
index e3fa3c6501..5591de4afe 100644
--- a/plugin-variants/gbrain-coding/skills/conventions/agent-operator-protocol.md
+++ b/plugin-variants/gbrain-coding/skills/conventions/agent-operator-protocol.md
@@ -663,6 +663,8 @@ per-token price), obtain each value as `how` describes and substitute it for
| `host_admin` | the operator of the brain host (a remote brain over HTTP, scope grants, server restarts). Never authorizable from MCP |
| `provider` | an outside service you wait on (rate limits, outages) |
+A fix whose expected run time exceeds 120 seconds (`AGENT_TOOL_LIMIT_MS`, the longest an agent tool call reliably stays open) is never `agent`: gbrain gives it actor `user` (or `host_admin` on a remote brain), so it renders `tell_user_to_run` and the user runs it in a terminal on the brain host.
+
### The `next` decision table
First matching row wins.
diff --git a/plugin-variants/gbrain-daily/skills/conventions/agent-operator-protocol.md b/plugin-variants/gbrain-daily/skills/conventions/agent-operator-protocol.md
index e3fa3c6501..5591de4afe 100644
--- a/plugin-variants/gbrain-daily/skills/conventions/agent-operator-protocol.md
+++ b/plugin-variants/gbrain-daily/skills/conventions/agent-operator-protocol.md
@@ -663,6 +663,8 @@ per-token price), obtain each value as `how` describes and substitute it for
| `host_admin` | the operator of the brain host (a remote brain over HTTP, scope grants, server restarts). Never authorizable from MCP |
| `provider` | an outside service you wait on (rate limits, outages) |
+A fix whose expected run time exceeds 120 seconds (`AGENT_TOOL_LIMIT_MS`, the longest an agent tool call reliably stays open) is never `agent`: gbrain gives it actor `user` (or `host_admin` on a remote brain), so it renders `tell_user_to_run` and the user runs it in a terminal on the brain host.
+
### The `next` decision table
First matching row wins.
diff --git a/plugin/skills/conventions/agent-operator-protocol.md b/plugin/skills/conventions/agent-operator-protocol.md
index e3fa3c6501..5591de4afe 100644
--- a/plugin/skills/conventions/agent-operator-protocol.md
+++ b/plugin/skills/conventions/agent-operator-protocol.md
@@ -663,6 +663,8 @@ per-token price), obtain each value as `how` describes and substitute it for
| `host_admin` | the operator of the brain host (a remote brain over HTTP, scope grants, server restarts). Never authorizable from MCP |
| `provider` | an outside service you wait on (rate limits, outages) |
+A fix whose expected run time exceeds 120 seconds (`AGENT_TOOL_LIMIT_MS`, the longest an agent tool call reliably stays open) is never `agent`: gbrain gives it actor `user` (or `host_admin` on a remote brain), so it renders `tell_user_to_run` and the user runs it in a terminal on the brain host.
+
### The `next` decision table
First matching row wins.
diff --git a/skills/conventions/agent-operator-protocol.md b/skills/conventions/agent-operator-protocol.md
index e3fa3c6501..5591de4afe 100644
--- a/skills/conventions/agent-operator-protocol.md
+++ b/skills/conventions/agent-operator-protocol.md
@@ -663,6 +663,8 @@ per-token price), obtain each value as `how` describes and substitute it for
| `host_admin` | the operator of the brain host (a remote brain over HTTP, scope grants, server restarts). Never authorizable from MCP |
| `provider` | an outside service you wait on (rate limits, outages) |
+A fix whose expected run time exceeds 120 seconds (`AGENT_TOOL_LIMIT_MS`, the longest an agent tool call reliably stays open) is never `agent`: gbrain gives it actor `user` (or `host_admin` on a remote brain), so it renders `tell_user_to_run` and the user runs it in a terminal on the brain host.
+
### The `next` decision table
First matching row wins.
diff --git a/skills/skills.lock.json b/skills/skills.lock.json
index 9462b04f67..09c1965bef 100644
--- a/skills/skills.lock.json
+++ b/skills/skills.lock.json
@@ -44,7 +44,7 @@
"concept-synthesis/routing-eval.jsonl": "96dbd7d9c1b606e9e06262d0c06282399741e2bccb8eeb7b9ca88c20f44cda0e",
"context-audit/SKILL.md": "6d786629d40544ddaab4f4e6e333569d270bcb8b581589dc16fb9f8bcb4f6207",
"context-audit/routing-eval.jsonl": "fb1832e24cc1b04163a74c5cde72bca53050a66246ca902e1a5f40303f52b5ab",
- "conventions/agent-operator-protocol.md": "abc15628a2f357af5e689a418ed1f15fa009939425b971da0a2fbce31f6aeb73",
+ "conventions/agent-operator-protocol.md": "47b9fa50838372d23e3a5ddc806f52a043f2b174b71b783d0d9c85b5aac8264d",
"conventions/brain-first.md": "987223ce443b3e8cdcd22975aafabce778016f238deddf544c346238dbde1bd9",
"conventions/brain-routing.md": "392998d9a109b330c9225af4ca5c8798b0ff02eba4d441c93fdb7c263687d0c6",
"conventions/calibration.md": "500dc26bd7c8400f50dc4c16fd83f1a588f3e7e68c59050a21fd8a0f69e4d198",
diff --git a/src/commands/doctor/checks/content-quality.ts b/src/commands/doctor/checks/content-quality.ts
index 767c0a528f..d7a047432f 100644
--- a/src/commands/doctor/checks/content-quality.ts
+++ b/src/commands/doctor/checks/content-quality.ts
@@ -244,16 +244,18 @@ export const contentSanityEntry: DoctorEntry = {
*/
async function runPartialEmbedding(ctx: DoctorContext): Promise<Check[]> {
const engine = connectedEngine(ctx);
+ const checks: Check[] = [];
ctx.progress.heartbeat('partial_embedding');
try {
const { budgetLimitedFinding } = await import('../../../core/held-embedding.ts');
const { currentEmbeddingSignature } = await import('../../../core/embedding.ts');
const found = await budgetLimitedFinding(engine, currentEmbeddingSignature());
- if (!found) return [{ name: 'partial_embedding', status: 'ok', message: 'No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).' }];
- return [{ name: 'partial_embedding', status: 'warn', message: found.message, fix: found.fix, details: found.details }];
+ if (!found) checks.push({ name: 'partial_embedding', status: 'ok', message: 'No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).' });
+ else checks.push({ name: 'partial_embedding', status: 'warn', message: found.message, fix: found.fix, details: found.details });
} catch (err) {
- return [checkError('partial_embedding', 'read the per-page embedding budget', err)];
+ checks.push(checkError('partial_embedding', 'read the per-page embedding budget', err));
}
+ return checks;
}
export const partialEmbeddingEntry: DoctorEntry = {
diff --git a/src/core/cli-flag-registry.generated.ts b/src/core/cli-flag-registry.generated.ts
index 83ffa4ae98..5a02f94769 100644
--- a/src/core/cli-flag-registry.generated.ts
+++ b/src/core/cli-flag-registry.generated.ts
@@ -81,7 +81,7 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'lint': ['--abbrev-ref', '--accept-pending', '--adopt-slug-path', '--audit', '--autostash', '--background', '--brain', '--branch', '--cached', '--client', '--confirm-relocated-root', '--conflicts', '--dry-run', '--enable', '--exclude', '--expect-remote', '--expected-epoch', '--expected-revision', '--explain', '--ff-only', '--file', '--fix', '--follow', '--force', '--get', '--git-dir', '--git-path', '--grammar-diagnostics', '--hard', '--help', '--id', '--is-inside-work-tree', '--json', '--local', '--local-env-vars', '--manifest', '--no-accept-pending', '--no-autostash', '--no-cron', '--no-pull', '--no-tags', '--no-verify', '--only', '--pat-file', '--path', '--prefer', '--preview', '--probe', '--progress-interval', '--progress-json', '--pull', '--purge', '--push-only', '--quiet', '--rebase', '--require-clean', '--resolve', '--scopes', '--self-transfer', '--short', '--show-toplevel', '--slug', '--source', '--source-id', '--timeout', '--unset-all', '--wait', '--yes'],
'loops': ['--all', '--as-of', '--brain', '--dry-run', '--fail-fast', '--help', '--json', '--note', '--source', '--stale-ok', '--status', '--tools-json', '--top', '--type'],
'lsd': ['--brain', '--force-resume', '--help', '--json', '--judge-model', '--limit', '--list-runs', '--max-cost', '--max-far-set', '--max-ideas-per-judge-call', '--max-usd', '--no-save', '--resume', '--save', '--source', '--strict-budget', '--yes'],
- 'maintain': ['--account', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--all', '--apply', '--assign-corpus', '--audit', '--background', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--concurrency', '--conflicts', '--contacts-dir', '--content-audit', '--count', '--detach', '--dim', '--dir', '--drain', '--dry-run', '--enable', '--expect', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--fix', '--follow', '--force', '--force-retry', '--force-schema', '--format', '--from-meetings', '--full', '--group-by', '--hard-deadline', '--harness', '--held', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-repairs', '--index-audit', '--infer-dates', '--install', '--json', '--kind', '--lang', '--left-right', '--link-source', '--link-type', '--locks', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--migrate-legacy', '--migrate-only', '--multimodal', '--name', '--ner', '--no-autopilot-install', '--no-capture', '--no-delegate', '--no-embed', '--no-pull', '--once', '--only', '--operations', '--oversized', '--pack', '--page', '--parallel', '--params', '--path', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--preview', '--probe', '--probe-pglite', '--project', '--providers', '--prune-orphans', '--query', '--question', '--queue', '--reauth', '--rebuild', '--regenerate', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--request-id', '--reset', '--reset-default', '--resume', '--retry-failed', '--reverse', '--safe', '--scope', '--scopes', '--show-current', '--show-toplevel', '--since', '--skills-dir', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--stale', '--state', '--status', '--supabase', '--symbol-kind', '--takes-holders', '--target', '--target-score', '--tier', '--to', '--token', '--top-k', '--type', '--url-env', '--user', '--verbose', '--version', '--window', '--workers', '--yes'],
+ 'maintain': ['--account', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--all', '--apply', '--assign-corpus', '--audit', '--background', '--brain', '--break-lock', '--budget-ms', '--by-mention', '--cached', '--catch-up', '--concurrency', '--conflicts', '--contacts-dir', '--content-audit', '--count', '--detach', '--dim', '--dir', '--drain', '--dry-run', '--enable', '--expect', '--expected-revision', '--expected-state', '--explain', '--facts', '--fast', '--fix', '--follow', '--force', '--force-retry', '--force-schema', '--format', '--from-meetings', '--full', '--group-by', '--hard-deadline', '--harness', '--help', '--http', '--id', '--images', '--include-ambiguous', '--include-flagged', '--include-frontmatter', '--include-gitignored', '--include-repairs', '--index-audit', '--infer-dates', '--install', '--json', '--kind', '--lang', '--left-right', '--link-source', '--link-type', '--locks', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--migrate-legacy', '--migrate-only', '--multimodal', '--name', '--ner', '--no-autopilot-install', '--no-capture', '--no-delegate', '--no-embed', '--no-pull', '--once', '--only', '--operations', '--oversized', '--pack', '--page', '--parallel', '--params', '--path', '--pglite', '--phase', '--pid-file', '--plan', '--porcelain', '--prefer', '--preview', '--probe', '--probe-pglite', '--project', '--providers', '--prune-orphans', '--query', '--question', '--queue', '--reauth', '--rebuild', '--regenerate', '--remediate', '--remediation-plan', '--remove', '--remove-core', '--request-id', '--reset', '--reset-default', '--resume', '--retry-failed', '--reverse', '--safe', '--scope', '--scopes', '--show-current', '--show-toplevel', '--since', '--skills-dir', '--skip-failed', '--slot', '--slug', '--slugs', '--source', '--source-id', '--sources', '--stale', '--state', '--status', '--supabase', '--symbol-kind', '--takes-holders', '--target', '--target-score', '--tier', '--to', '--token', '--top-k', '--type', '--url-env', '--user', '--verbose', '--version', '--window', '--workers', '--yes'],
'mcp': ['--admin-token-file', '--agent', '--arg', '--bearer-token-env-var', '--bound-brain', '--bound-max-concurrent', '--bound-slug-prefixes', '--bound-source', '--bound-tools', '--brain', '--budget-usd-per-day', '--client', '--credentials-file', '--credentials-out', '--delegate', '--delegated-namespace', '--delegated-slug-prefixes', '--dry-run', '--enable-dcr', '--federated-read', '--flow', '--force', '--funnel', '--harness', '--header', '--help', '--if-version', '--install', '--issuer-url', '--json', '--limit', '--mcp-only', '--mcp-url', '--no-install', '--no-service', '--no-tailscale', '--oauth-client-id', '--oauth-client-secret', '--oauth-request', '--port', '--profile', '--queue', '--redirect-uri', '--remove', '--resume', '--root', '--scope', '--scopes', '--skills', '--source', '--status', '--surface', '--timeout-ms', '--token', '--token-endpoint-auth-method', '--token-ttl', '--url', '--yes'],
'migrate': ['--accept-pending', '--admin-intent', '--all', '--apply', '--background', '--batch-size', '--brain', '--catch-up', '--dim', '--drain-timeout', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--expected-epoch', '--expected-state', '--explain', '--facts', '--follow', '--force', '--force-retry', '--full', '--harness', '--held', '--help', '--ignore-env-override', '--images', '--include-null-signature', '--json', '--locks', '--manifest', '--max-cost', '--max-cost-usd', '--max-usd', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-migrate', '--non-interactive', '--only', '--oversized', '--pace', '--pace-max-concurrency', '--path', '--pglite', '--plan', '--priority', '--probe', '--progress-interval', '--progress-json', '--quiet', '--replace', '--reranker', '--resume', '--retarget', '--rollback-to-source', '--scope', '--skip-verify', '--slugs', '--source', '--stale', '--status', '--timeout', '--to', '--trigger-bypass', '--trust', '--url', '--url-env', '--wait', '--yes'],
'models': ['--batch', '--brain', '--concurrent', '--cycles', '--dim', '--dimensions', '--embedding-dimensions', '--embedding-model', '--help', '--json', '--limit', '--max-tokens', '--max-usd', '--output', '--receipt-dir', '--skip', '--slot-a-model', '--slot-b-model', '--slot-c-model', '--slug', '--source', '--status', '--task', '--to', '--yes'],
diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.json
index 70eac0d171..b51f7c2023 100644
--- a/test/fixtures/goldens/doctor/content-pglite-human.json
+++ b/test/fixtures/goldens/doctor/content-pglite-human.json
@@ -135,9 +135,9 @@
" [OK] unified_multimodal_coverage: search.unified_multimodal is off; coverage check N/A",
" [OK] markdown_body_completeness: No truncated bodies detected",
" [OK] oversized_pages: No pages exceed 25165824 bytes (excluding embed_skip pages, which already took the accepted non-embeddable remediation)",
- " [OK] partial_embedding: No large page is held or capped by embed.max_usd_per_page.",
" [OK] scraper_junk_pages: No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
" [OK] content_sanity_audit_recent: No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ " [OK] partial_embedding: No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
" [OK] quarantined_pages: No quarantined pages",
" [OK] flagged_pages: No flagged pages",
" [OK] unverified_extractions: No stale unverified extraction stubs",
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 968d5d6d52..520983c9b2 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -1753,22 +1753,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 5 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 2ce1098498..92603fea8b 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -1884,22 +1884,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
@@ -5801,22 +5801,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index 882cacbef5..789a3b0a54 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -1889,22 +1889,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
@@ -5807,22 +5807,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 20 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index 92472188c0..b3d2a9e348 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -1641,22 +1641,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index 9677738d65..7ff068411b 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -1697,22 +1697,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index 4f1243add9..96513eea6c 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -1702,22 +1702,22 @@
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No large page is held or capped by embed.max_usd_per_page.",
- "name": "partial_embedding",
+ "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
+ "name": "scraper_junk_pages",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No junk-pattern hits in 0 recent page(s) (use --content-audit for full scan)",
- "name": "scraper_junk_pages",
+ "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
+ "name": "content_sanity_audit_recent",
"status": "ok"
},
{
"category": "brain",
"elapsed_ms": "<volatile>",
- "message": "No content-sanity events in last 7 days (audit JSONL is local to this host; share GBRAIN_AUDIT_DIR for multi-host visibility)",
- "name": "content_sanity_audit_recent",
+ "message": "No large page has chunks waiting for embedding approval (held or capped by embed.max_usd_per_page).",
+ "name": "partial_embedding",
"status": "ok"
},
{
diff --git a/test/fixtures/goldens/doctor/registry-build-checks.json b/test/fixtures/goldens/doctor/registry-build-checks.json
index a354504bb6..c04c270f8d 100644
--- a/test/fixtures/goldens/doctor/registry-build-checks.json
+++ b/test/fixtures/goldens/doctor/registry-build-checks.json
@@ -587,15 +587,15 @@
},
{
"category": "brain",
- "name": "partial_embedding"
+ "name": "scraper_junk_pages"
},
{
"category": "brain",
- "name": "scraper_junk_pages"
+ "name": "content_sanity_audit_recent"
},
{
"category": "brain",
- "name": "content_sanity_audit_recent"
+ "name": "partial_embedding"
},
{
"category": "brain",