Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into gbra133-7382-m
garrytan8a492fae4c62
diff --cc src/core/behavior-change-notice.tsindex 6fdbf282da,1b13cb7b03..1c81818372--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@@ -1131,8 -1131,11 +1131,13 @@@ export const BEHAVIOR_CHANGES: Readonly{ since: '0.60.372.0', text: '`gbrain sources status --json` no longer prints every held file of a source by default: `git_holds` now carries `count`, `by_code` (each hold code with its count and one example item, whose `fix` applies to the rest), and the first 10 items with `items_complete: false` and an `items_command`. `--holds` lists every held file read, as before, and `--limit <n> [--cursor <c>]` pages them by path (the cursor needs the source id). The text output is unchanged.' },// #7355: a level read reports progress; pass_abandoned; racy floor{ since: '0.60.377.0', text: 'A managed `gbrain sync` pass no longer stops `drain_stalled` / `no_progress` on a large source while it is still reading and classifying the level before its first commit: the level read reports progress to the drain as it works (its loops and the history walk for the origin evidence of files a page lost), writes the open pass row every 30 s so a follower and `gbrain sync status` see it working, and a pass that asks for a history walk already running joins it. A hung read still stops after 5 minutes. When two passes in a row never end (abandoned by the drain or killed; the newest open one counts after 5 quiet minutes), `gbrain sync status` reads `blocked` with the new reason `pass_abandoned` and `next` is `gbrain doctor --json` and a report, instead of the plain sync. The stat caches of the dirtiness probe and the working level now take the racy window from the earlier of the process clock and the filesystem clock (a file written in the Git directory), so a mount whose clock lags the process no longer keeps a stale `clean` verdict.' },+ // GBRA-151 (slow reads say what they are doing; #7357). `since` is stamped at the merge slot.+ { since: '0.60.380.0', text: 'The slow whole-brain reads (`gbrain sync status`, `gbrain sources status`, `gbrain doctor`, `gbrain orphans`, `gbrain anomalies`, `gbrain status`, `gbrain diag`) print one stderr line when they start ("[gbrain] reading <what>; large brains can take minutes") and one every 10 s while they run, so a cut-off call is never silent. stdout is unchanged and still carries only the result; `--quiet` turns the lines off.' },+ { since: '0.60.380.0', text: 'The `--json` documents of those reads now carry `elapsed_ms` and `complete`. `complete` is false when a budget or bound cut the result short (a `*_read` field with `status: not_read`, a paged or capped list, a doctor check unknown for its budget), and `incomplete` lists each field with its reason. An error document gets `elapsed_ms` only, and `gbrain anomalies --json` stays a bare array.' },+ { since: '0.60.380.0', text: 'A `--json` command stopped by SIGTERM, SIGINT or SIGHUP before its result now writes `{error: "interrupted", code: "interrupted", ...}` instead of `command_failed`. During a slow read it does so at once, before cleanup, with the read and its `elapsed_ms`, plus one stderr line saying nothing was read, so the result is not empty.' },+ { since: '0.60.380.0', text: '`gbrain extract --stale` no longer exits 1 when one page holds a line or fence longer than the block bound (`page_body_segmented`). The link phase and the mention pass report that page by code, leave it stale and due, and finish every other page; before, the mention pass threw, and the unmanaged sweep stopped at that page.' },+ // GBRA-133: a page written after its file is never soft-deleted for the file's deletion+ { since: 'TBD', text: '`gbrain repair file-drift --held --side deleted --state file_gone --prefer file` (including `--provenance deleted_by_commit`) and `gbrain repair ghost-pages` no longer soft-delete a page whose revision was written in the database after its file last held it (neither the revision sync last imported from the file nor one a committed sync or Git-published write produced; for a page no import record covers, written after the commit that deleted its file): the preview lists it apart as `database_ahead_of_file` with how to recreate its file (`--slug <slug> --prefer database`), and the apply refuses it (`refused`, `database_ahead_of_file`), also for an approval saved before this release. Before, a commit that deleted the file was taken as the page\'s deletion, so content no commit held was soft-deleted.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */