Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(todos): fix wave 11 follow-ups
garrytan35286aff77eb
diff --git a/TODOS.md b/TODOS.mdindex c9d3784515..45c6a84cb8 100644--- a/TODOS.md+++ b/TODOS.md@@ -1,5 +1,26 @@# TODOS+## Fix wave 11 follow-ups (filed 2026-10-07, GBRA-55)++- [ ] **P2 — Ceiling for a stuck managed publication (W3.3b, #6176).** **What:** a publication that hangs inside a live consumer keeps renewing its claim; wave 11 ships detection only (`claim_phase`, doctor `persistence_write_stall` past `persistence.max_claim_ms`). **Fix:** a phase-split ceiling: a statement timeout inside `publishMutation`, a recovery handoff that releases the root, and a bounded abandonment counter, written against the consumer/coordinator after GBRA-45's sync-feeder work lands. **Effort:** M. **Priority:** P2.+- [ ] **P2 — Free relabel for a legacy bare `embedding_model` row (W4.7, #6113).** **What:** brains seeded before the qualified default store `text-embedding-3-large` without a provider, and the managed facts resolver refuses it. **Fix:** a restamp-only branch in `gbrain migrate embeddings --to <provider:model>` taken only for a positively established legacy identity (known seed default, every chunk/fact/take stamp equal to the bare value, known provider recipe, equal dimensions), then a resolver refusal and doctor finding that name it. **Effort:** M. **Priority:** P2.+- [ ] **P3 — Run the keyword and vector arms concurrently on Postgres (#5989).** **What:** the CJK keyword arm's time adds to every hybrid search. **Fix:** start both arms together in `hybrid.ts`, with a retrieval eval before the default changes. **Effort:** M. **Priority:** P3.+- [ ] **P3 — CJK relevance judgments and a pg_trgm decision (W6.2, D11).** **What:** the capped keyword retry and the OR fallback are covered by invariant tests, not relevance judgments; a trigram index on `chunk_text` was deferred. **Effort:** M. **Priority:** P3.+- [ ] **P3 — `extract.ts` rebuilds the basename index per lookup.** **What:** `resolveBasenameMatchesFromSlugs` rebuilds the whole index on every call (O(N) per wikilink on the filesystem path); this, not Unicode normalization, is the cost #6178 targeted. **Fix:** build once per run in the caller. **Effort:** S. **Priority:** P3.+- [ ] **P3 — `--json` BigInt ratchet.** **What:** about 223 `JSON.stringify(…, null, 2)` command sites can crash on Postgres BigInt values (#6193 was one). **Fix:** a lint that `--json` paths use `writeJsonDocument` or the BigInt replacer, then convert the sites. **Effort:** M. **Priority:** P3.+- [ ] **P3 — Agent-operator conformance suite in CI.** **What:** run every bundled skill's headless command in dry/offline mode plus every command's `--help` and `--json` on a seeded brain. Subsumes the help gate, the skill-command lint and the BigInt ratchet. **Effort:** M. **Priority:** P3.+- [ ] **P3 — `schema remove-*` read the type name from the first non-flag token.** **What:** `schema remove-type --pack mine people` reads `mine` as the type (fails loudly); the same class W1.6 fixed for `add-type`. **Fix:** parse the name as the first positional that isn't a flag value. **Effort:** S. **Priority:** P3.+- [ ] **P3 — `search modes --reset --source <mode>` should be `--mode`.** **What:** `--source` means a brain source everywhere else. **Fix:** add `--mode`, keep `--source` as a deprecated alias with a notice. **Effort:** S. **Priority:** P3.+- [ ] **P3 — Per-source `pages purge-deleted`.** **What:** the purge is brain-wide; wave 11 refuses `--source` instead of silently purging everything. **Fix:** scope the purge by source when asked. **Effort:** S. **Priority:** P3.+- [ ] **P3 — Doctor warning for harnesses with an instruction cap (#6170).** **What:** wave 11 moved the writeback contract inside Claude Code's 2,048-character cap; other harnesses with caps aren't detected. **Effort:** S. **Priority:** P3.+- [ ] **P3 — Expire capture-lane facts created after an explicit writeback `off`.** **What:** wave 11 stops new capture under `off`; facts captured before the fix stay. **Fix:** record the off time, then a preview/apply repair that retires facts captured after it. **Effort:** M. **Priority:** P3.+- [ ] **P3 — Workspace-lane (`bootstrap-v1`) hook marker durability.** **What:** the same lost-marker problem W2.2 fixed for the harness lane. **Fix:** stamp the lane first, then match by command shape. **Effort:** M. **Priority:** P3.+- [ ] **P3 — `remember` replay hitting `source_changed` stalls `repair failed-writes` (#5994 side note).** **Fix:** classify it in the preview as `file_database_drift` with the reconcile command. **Effort:** S. **Priority:** P3.+- [ ] **P3 — `waiting` follow-ups (#6174).** **What:** the 500-row fetch cap and the unbounded count term in the score. **Effort:** S. **Priority:** P3.+- [ ] **P3 — Measure dream patterns sizing on a real paid run (W5.11).** **What:** `planPatternsRun` assumes cost is linear in reflections; it's unmeasured. **Effort:** S. **Priority:** P3.+- [ ] **P3 — Deferred product calls from the wave 11 plan.** Coordinated type cleanup on managed brains (#6196 C), #6122 (b)/(c) and a managed commit path for agreed git-dirty bytes (#6138), connector contact pages yielding mentions to their main-brain twin (#6158), coordinated raw-file uploads (#5963 part B). Each needs a decision before code. **Priority:** P3.+- [ ] **P3 — #6131 Darwin export publication.** **What:** not reproduced on macOS 26 (800k publications, arm64 and x64); the report is from macOS 27. **Fix:** rerun the C loop when a macOS 27 runner is available; ship our own fix and rebuilt prebuilds only if it reproduces. **Priority:** P3.+## Fix wave 10 lane H follow-ups (filed 2026-10-06, GBRA-51)- [ ] **P2 — `gbrain jobs smoke --sigkill-rescue` and `--wedge-rescue` always throw.** **What:** both cases forge a claimed job with a raw `UPDATE minion_jobs SET status='active', lock_token=…`, which the `enforce_minion_queue_protocol` trigger refuses ("Minion queue protocol 1 required: old workers cannot claim upgraded queue jobs"), so neither regression check (#219 stall rescue, wall-clock eviction) runs at all; the command exits through the thrown error. `test/jobs-smoke-cleanup.test.ts` pins the refusal and that no smoke job is left behind. **Fix:** put the forged job into `active` through the queue's own claim path (claim it with a short-lived lock token, then age `lock_until`/`started_at`), or a test-only protocol-conformant transition, so both cases reach their assertions again; then flip the cleanup test's sigkill case to assert the rescue verdict. **Effort:** S. **Priority:** P2.