Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into capy/gbrain-setup-codex-hash

garrytan3ffb3a7ffc34
diff --cc src/core/behavior-change-notice.ts
index 0c4966bdce,479ff0556f..82c6097c15
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -507,8 -507,17 +507,19 @@@ export const BEHAVIOR_CHANGES: Readonly
{ since: '0.60.189.0', text: 'The same-page rewording measurement (`would_dedup_same_page`, 0.60.177.0) now also runs on a managed brain: automatic fact extraction there counts the rewordings on the entity and completion receipts and the `extract_facts` result and prints the same one stderr line per match. Nothing is dropped; a replay of the same request reports the recorded count without a model call.' },
// wave 16 (GBRA-79) G5.1 #6495, v0.60.189.0.
{ since: '0.60.189.0', text: 'On Postgres, the keyword, keyword-count, keyword-page, title and CJK search statements run under one operator bound, `search.keyword_statement_timeout_ms` (default 8000, range 1000-60000; `gbrain config set`, then restart `gbrain serve` or the workers), instead of a fixed 8 s; a value outside the range is refused and never set from a request. `gbrain doctor` gains `keyword_plan`, a read-only canary that warns when the brain\'s commonest keyword term cannot be counted inside the bound (one term is not workload coverage, and a timed-out count is never "no matches"). A longer bound buys time, not a cheaper statement (#6495 stays open).' },
+ // #6543 fix wave PR 2 (GBRA-84). `since` is the release this PR is slotted for.
+ { since: '0.60.190.0', text: 'On a managed brain, `gbrain sync` (one source, `--all`, and a sync handed to `gbrain serve`) now implies `--no-pull` and prints one stderr line naming `gbrain sources refresh <id>` for taking upstream commits, instead of refusing with `writer_coordinator_required` until `--no-pull` was typed. Nothing changes on stdout or in `--json`; `--dry-run` and the library/MCP refusal of an explicit pull are unchanged.' },
+ { since: '0.60.190.0', text: 'A managed sync drain whose queued head no consumer can claim now stops within one governor tick with `drain_stalled`, `cause: head_blocked`, when the blocker needs an operator (a refresh fence no refresh process holds: `next.fix` is `gbrain sources refresh <id> --resume`; a running request ahead held by a process that reports `restart_required`: restart it), instead of waiting the 5-10 minute no-progress window. `drain.stall` gains `blocked_by` and `consumer`, the stall line prints `consumer=` and `blocked_by=`, and `claimable here` is read for the head itself (`unknown` when the read fails; it used to print a constant `no`). `gbrain sources writer status` names the blocker of each queued head (`blocked_by`, `claimable_here`) and adds `cancel_command` only when this caller may cancel the blocking request.' },
+ { since: '0.60.190.0', text: '`gbrain repair <kind> --apply` no longer stops at the first write that is accepted but still pending publication while a consumer on this host is publishing: it keeps the receipt (the saved position stays before it), admits the remaining items without a per-item publication wait (at most half the principal outstanding-request cap unresolved at once) and settles them against one shared wait (the write wait with nothing publishing). A run that still stops lists the receipts in `pending` and the same command resumes; `--wait 0` still waits for nothing. With no live consumer, or one that reports `restart_required`, the run stops at the first pending write as before and names the owner.' },
+ { since: '0.60.190.0', text: '`[persistence] phase=` log lines about one write request now carry `request_id`, `operation`, `source`, `slug`, `principal` and `elapsed_ms`, and their 30-second repeat suppression is per request: two requests failing the same phase log two lines.' },
+ { since: '0.60.190.0', text: '`gbrain serve` now logs the behavior changes this brain has not been told about once per process at startup, on stderr. It reads the notice state without marking it delivered, so the CLI, stdio and HTTP notices still show once each.' },
+ { since: '0.60.190.0', text: 'Importing an image no longer writes `type` or `title` into its frontmatter (the keys `gbrain repair frontmatter-keys` strips since 0.60.177.0). Doctor `stale_frontmatter_keys` names 0.60.177.0 and, on a brain with several sources, its fix is the all-sources `gbrain repair frontmatter-keys`, with the per-source commands listed.' },
+ { since: '0.60.190.0', text: '`gbrain embed --stale --images` and doctor `image_assets` find an image whose recorded path differs from the file on disk only in letter case (an exact match still wins), import it under the real-case path, and refuse a case-fold match that is ambiguous or resolves outside the source root instead of importing or counting it. `image_assets` reports case-only, ambiguous and unrooted counts.' },
+ { since: '0.60.190.0', text: 'On a managed brain, a successful `gbrain sync --source <id>` settles legacy rows the pre-managed sync left in `sync-failures.jsonl` one at a time (the imported commit holds the file and a live page claims it, or the file is gone and no page claims it); rows on an unknown commit, sentinel rows, held files and files it did not index stay. Doctor `sync_failures` says how many unresolved rows are legacy and which command settles them, and `gbrain sync --retry-failed` names them instead of saying the ledger is empty.' },
+ { since: '0.60.190.0', text: 'The Postgres in-flight watchdog now also retires a connection whose statement keeps receiving rows or notices past its budget (`pg_connection_stuck` `reason=age`; `reason=idle` when nothing came back, which used to be the only case), and the budget is per statement: an operation that declares a longer `statement_timeout` on its connection (`SET LOCAL`, `set_config`, a session `SET` on a reserved connection) gets that timeout plus the grace, and a declared 0 has no cap, read from the statements themselves so it holds behind a transaction-mode pooler. The warn line adds `reason=` and `budget_ms=`, and `/health?deep=1` reports `pool_inflight_over_budget` only for a statement past its own budget (a long transaction that declared its timeout no longer reads as over budget).' },
+ { since: '0.60.190.0', text: 'Pools count reconnects of connections retired after an incident (stuck, desynced, or closed under running statements): `recovered` and `recovery_failed` in `/health?deep=1` and `getPoolDiagnostics()`, and a failed reconnect logs `pg_connection_recovery_failed`. `gbrain serve` writes its stuck, desync and recovery events to the pool-recovery audit, so `gbrain doctor --only pool_reap_health` now fails on a recovery failure and warns on a stuck or desynced connection in the last hour.' },
+ // #6554 (GBRA-60 D8). `since` is provisional (current VERSION); the integrator restamps it at the merge slot.
+ { since: '0.60.184.0', text: '`gbrain bootstrap harness` now wires the Codex SessionEnd transcript-capture hook (its `hooks.json` group and `config.toml` trust entry) only when capture is on: turning capture off with its no-capture flag skips it, and registrar mode (a non-loopback `--url`) skips it like every other hook, because the hook talks to the local brain rather than the registered remote serve. The consent block names the hook when it is wired. A hook an earlier run installed stays until `gbrain bootstrap harness --remove`. New: `gbrain setup codex` wires Codex MCP and read-context hooks with hash-owned entries.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */