Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/fix-wave-9

time-attack602e44ebf549
diff --cc TODOS.md
index a036c2636c,038244bea3..f2faee36b5
--- a/TODOS.md
+++ b/TODOS.md
@@@ -1,17 -1,9 +1,21 @@@
# TODOS
+## Fix wave 9 follow-ups (filed 2026-10-05, follow-up from v0.60.74.0)
+
+- [ ] **P2 — Receipted publication for managed conversation facts.** **What:** `extract-conversation-facts` replaces a page's derived fact batch through `replaceDerivedFactsForPage` (`src/core/persistence/derived-facts.ts`), a coordinated transaction with no persistence request. On a managed brain a multi-message email thread is therefore skipped without writing and retried every run (`src/core/facts/conversation-skip.ts`), as are the single-email and prose outcomes; `test/helpers/managed-connector-job-contract.ts` case `extract_conversation_facts_thread` pins it. **Fix:** admit a persistence request for the derived batch (delete-by-prefix plus insert, page revision as the CAS) in the same transaction, so the write carries a receipt; then drop the managed gate and record the single-email/prose outcomes durably there too. **Effort:** M. **Priority:** P2.
+- [ ] **P2 — Re-extract conversation facts misattributed to meeting-note labels.** **What:** before v0.60.74.0 the conversation parser read `**Date:**`, `**Attendees:**` and similar labels as speakers, so conversation facts were written with entity "Date" and an epoch date. The parser fix stops new ones; existing rows stay. **Fix:** a `gbrain` command that finds conversation facts whose provenance is a metadata-label speaker, previews them by default, and on `--apply` re-extracts the source pages under an explicit cost cap (never an automatic spend). **Effort:** M. **Priority:** P2.
+- [ ] **P2 — Concept publication can overwrite a narrative edited in the file mid-cycle.** **What:** `src/core/cycle/concept-publication.ts` rechecks the database row against the synthesis baseline but not the markdown file it then rewrites; a file edit made after the cycle's sync and before the concept publishes is lost. **Fix:** when the file exists, also require its fence-stripped body to equal the baseline and defer with `revision_conflict` otherwise, with a test that proves no perpetual deferral on formatting-only differences. **Effort:** S. **Priority:** P2.
+- [ ] **P2 — `takes remove` can free a row number for reuse.** **What:** row allocation is max(fence)+1 (`src/core/takes-fence.ts`), so removing the highest row lets the next `takes add` reuse its number; `take_proposals.promoted_row_num` and agents caching row numbers then point at a different claim. **Fix:** keep a per-page high-water mark (or a struck tombstone row) so numbers are never reused, or clear `promoted_row_num` for proposals that pointed at the removed row. **Effort:** S. **Priority:** P2.
+- [ ] **P3 — Judge cost estimates ignore thinking headroom.** **What:** with `thinking: 'off'`, a thinking-by-default route without a per-call switch (GLM, claude-cli Claude 5) gets a 32,000-token output cap, but the takes-quality projection and cross-modal `--max-usd` preflight still price 2,000/4,000 output tokens. Google judges (`gemini-2.5-flash` on the default takes-quality panel) get no thinking switch at all. **Fix:** size both estimates with `thinkingOffMaxOutputTokens`, and map Google to `thinkingConfig.thinkingBudget: 0` after a live check. **Effort:** S. **Priority:** P3.
+- [ ] **P3 — In-process job errors during shutdown are always treated as shutdown interruptions.** **What:** `src/core/minions/worker.ts` re-queues any in-process job that throws while shutdown is in progress (no attempt burned, `error_text` overwritten), including an `UnrecoverableError` from a handler that ignores `shutdownSignal`. **Fix:** take the shutdown path only when the error is the shutdown abort's reason (or the shell handler's shutdown kill). **Effort:** S. **Priority:** P3.
+- [ ] **P3 — `jobs supervisor stop` liveness check can hit a recycled worker PID.** **What:** it checks every `worker_spawned` pid of the supervisor in this week's audit file, including workers that already exited; a recycled pid makes a clean drain exit 1 with `worker_still_running`. **Fix:** check only spawns without a later `worker_exited`, or record the last worker pid on the `stopped` event. **Effort:** S. **Priority:** P3.
+- [ ] **P3 — `gbrain takes rebuild` while `gbrain serve` owns a PGLite brain.** **What:** `takes remove` delegates through the owner, but `takes rebuild` (the recovery its refusal names) opens the engine and waits on the serve's lock. **Fix:** an IPC-delegated rebuild op, or route the refusal's hint through the owner. **Effort:** M. **Priority:** P3.
+- [ ] **P3 — Stall detection for subagent turns.** **What:** `ai.chat.per_turn_timeout_ms` bounds a whole turn (default 30 min) because gateway chat calls are not streamed, so a hung provider holds the turn for the full budget. **Fix:** once chat streams, abort a turn that produces no tokens for a shorter stall window. **Effort:** M. **Priority:** P3.
+
+ ## Dependency hygiene (filed 2026-10-06, GBRA-40)
+
+ - [ ] **P3 — Move js-yaml 3 → 4 to drop argparse@1 / sprintf-js.** **What:** `osv-scanner.toml` ignores GHSA-hp3w-g68c-fv3c (sprintf-js, no patched version) until 2027-01-06 because only js-yaml 3's CLI loads argparse@1 → sprintf-js. **Fix:** upgrade js-yaml to 4 (argparse 2 has no sprintf-js; `safeLoad`/`safeDump` become `load`/`dump`), update `@types/js-yaml` and the override, then delete the ignore entry. **Effort:** S. **Priority:** P3.
+
## Contributor audit wave follow-ups (filed 2026-10-05, GBRA-40)
### delta (owner: GBRA-40 (delta follow-ups))