Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge #7434 head; CHANGELOG and behavior row for #7436
garrytan7667a22a5c32
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0e0326f4a7..1ea9c8261b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,28 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.409.0] - 2026-10-23++**A page write onto a file that differs from the database no longer freezes the write owner while Git runs, and a stall in that check now says `waiting_on=git`.** Before such a write is refused as an uncoordinated edit, gbrain checks whether the file holds a committed Git change that sync hasn't imported yet. That check ran its Git commands synchronously, each with a 30 s timeout. On a slow checkout, `serve` (the managed write owner) stopped for as long as Git took: lease renewals and every other preparation waited. The stall line then blamed the database: `step=link_resolution waiting_on=db last_sql=SELECT_sources@25s`. That reproduces exactly with a delayed `git hash-object`.++### What changed++| Situation | Before | Now |+|---|---|---|+| The pending-import check on a drifted page's file | four synchronous Git calls that blocked the whole process | the same Git calls, awaited; the process keeps serving while they run; the answers are unchanged |+| A preparation stalled in that check, or in the new-page `.gitignore` check | `waiting_on=db`, and `last_sql` naming the last statement sent before Git started | `waiting_on=git` for the length of the Git call; the step keeps its name |++### What to watch for after you upgrade++- A write onto a drifted file still ends with the drift refusal (`source_changed`, `file_database_drift`), and with `pending_import` when the file holds an unimported commit. A Git call longer than the preparation budget still ends the preparation, with the stall line naming `git`.++### Itemized changes++- `src/core/persistence/pending-import.ts`: `committedPendingImport` uses `syncGitAsync`.+- `src/core/persistence/claim-phase.ts`: `waitingOnWhile`, a non-database wait inside a step.+- `src/core/persistence/page-prepare.ts`: `prepareFileTarget` takes the preparation clock; its Git checks run under `waiting_on=git`.+- Tests: `test/pending-import-async-git-7436.test.ts` (a delayed `git` shim, an event-loop tick counter, and the stamped wait).+## [0.60.408.0] - 2026-10-23**Warm hybrid search on a large brain behind a transaction-mode pooler spends about 500 ms less on the server.** On a synthetic 600k-page brain at a 66 ms round trip (mock embed 200 ms, mock rerank 300 ms), warm p50 went from 1,995 ms wall / 1,891 ms server total to 1,436 / 1,356 ms. Search reads no longer wait a round trip for BEGIN, the title arm reads a small weight-A index, search arms take pool slots ahead of background work, and two reads that only depend on fusion's inputs start beside it. Results are unchanged: the new title predicate returned identical rows and scores to the old one on 405 strict and relaxed queries at 600k.diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.tsindex f1c43752bf..4903932397 100644--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@ -1181,6 +1181,8 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText;{ since: '0.60.406.0', text: '`gbrain repair <kind> --apply` no longer stops with `idempotency_conflict` when two of its items write the same page (two facts of one page in `repair visibility`, two duplicate groups or two takes on one page) while the first write is still pending: each item now has its own request id, where before both used the page and revision, and an item whose page has a pending write from the same run waits for that write (up to the write wait, then the run stops resumable as `write_pending`) and writes the page\'s new revision, so every fact of a many-fact page applies in one run. A rerun of the same approved set still replays its own pending writes (#7436).' },// list_jobs row bound (GBRA-133 wave 4).{ since: '0.60.407.0', text: 'A remote `list_jobs` call (an MCP client, or `gbrain jobs list` on a thin client) now returns at most 500 jobs whatever limit it names, so one call can no longer load the whole job table on a serve and run it out of memory. When more jobs match, the last job carries `truncated: true` and `next_cursor`; pass `cursor` to read the next older jobs. `gbrain jobs list --limit N` on a thin client follows the cursor itself. A `limit` that is not a positive integer is now `invalid_params` instead of falling back to 50. The trusted local CLI keeps any limit.' },+ // #7436 (GBRA-151). `since` is restamped at the merge slot.+ { since: '0.60.409.0', text: 'A page write onto a file that differs from the database no longer stops the write owner (`serve`) while gbrain checks, with Git, whether the file holds a committed change sync has not imported yet: the Git commands are awaited instead of run synchronously, so lease renewals and other preparations keep going. A preparation stalled in that check, or in the new-page `.gitignore` check, now reports `waiting_on=git` instead of `waiting_on=db` with the last statement before Git started (`last_sql=SELECT_sources`). The refusals are unchanged (#7436).' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */