Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(#6803 lane B): leave core-minions-1 at its cap; held-embedding.ts entry covers embed-backfill

garrytan06bdd90fb353
diff --git a/docs/architecture/key-files/core-minions-1.md b/docs/architecture/key-files/core-minions-1.md
index 977d169978..3b4b206e0f 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. Success carries `budget_limited` (held-embedding.ts).
+- `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/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.