Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Merge remote-tracking branch 'origin/master' into gbra133-commit-push-fixtext
garrytanc1f9874cb6f0
diff --cc src/core/behavior-change-notice.tsindex a16a6cf8fd,63bc53cc6a..c2836dbcc3--- a/src/core/behavior-change-notice.ts+++ b/src/core/behavior-change-notice.ts@@@ -1241,7 -1241,11 +1241,12 @@@ export const BEHAVIOR_CHANGES: Readonly{ since: '0.60.435.0', id: 'keyword_or_rarity', text: 'When no page holds every word of a keyword search of up to four words, the any-word retry of the keyword arm now ranks pages holding the rarest query words first, instead of ranking pages that repeat a common word above the few that hold a rare one. The strict all-words search and longer queries are unchanged.' },// GBRA-156 (exact identity lookup, same release as the #7471 row). `since` is stamped at the merge slot.{ since: '0.60.435.0', id: 'whois_exact_identity', text: 'New read operation `whois` (CLI `gbrain whois <email or name>`, MCP tool `whois`): an exact identity lookup for agents triaging email or calendar. It returns the entity pages whose frontmatter `email`/`emails`, title or declared alias equals the query, ignoring case, accents and surrounding quotes, labels each match `email`, `title` or `alias`, sets `ambiguous` when more than one page matches, and returns an empty list, never a search fallback, when none does. Remote callers see only their granted sources and no private or quarantined page. Nothing existing changes.' },+ // GBRA-190 connectors wave. `since` is stamped at the merge slot.+ { since: '0.60.437.0', text: 'Chat-connector syncs stop instead of retrying through a block: a bot challenge on any status (the `cf-mitigated: challenge` header, a challenge page on a 5xx, a redirect to a Cloudflare challenge) now ends the run as `forbidden`; a 429 that outlasts its four retries, or asks for a `Retry-After` over two minutes, ends it as the new status `rate_limited` without fetching the remaining conversations; and five conversation fetches in a row failing with a server error or no response stop it as `partial` with `stopReason: consecutive_fetch_failures`. The next sync resumes from the same place (#7482).' },+ { since: '0.60.437.0', text: 'A chat-connector cookie or token holding a line break, NUL, another control character or a non-ASCII character is refused before any request (`invalid_header_value`): `connectors auth` reports it and `connectors sync` returns `auth_required` with that hint and stamps the auth error. A request that fails before a response is reported by its error code (`ECONNREFUSED`, `TypeError`), never by the runtime\'s message, so a header value can never be echoed into probe output, sync hints or logs (#7483).' },+ // GBRA-133 G2 (superseded remote blobs). `since` is stamped at the merge slot.+ { since: '0.60.438.0', text: '`gbrain git commit-push` now keeps this machine\'s version of a file the remote changed back to a version this checkout already had at that path and later replaced (a stale clone or writer pushing an old copy, often inside a merge), instead of stopping with `integrate_conflict`. It reads the last 200 commits that changed the file. The push lists those files in `superseded_remote_paths` and the merge message names them. A version this checkout never had, a remote deletion and a file named with `--resolve` still conflict; when both kinds meet, `integrate_conflict` lists only the real conflicts and `detail.superseded` names the others.' },+ { since: 'TBD', text: '`gbrain git commit-push` takes `-m` more than once, like `git commit`: each `-m` is a new paragraph of the message (a second `-m` carries a trailer). With `--path <dir>` below the checkout top, the paths after `--` are now relative to `<dir>` (like `git -C`), as its help said; they used to be read relative to the checkout top. The commit step that `gbrain repair frontmatter`, `gbrain repair content`, `gbrain repair file-drift` and the legacy fence repair (`gbrain sources status`, doctor `fence_integrity`) print for a legacy source is now `gbrain git commit-push --path <root> -m <subject> [-m <trailer>] -- <paths>`, which takes the writer lock, commits only those paths, merges remote commits and pushes, instead of a bare `git add` plus `git commit` (the frontmatter step named no paths on its commit, so it also committed anything else staged). In a checkout with no Git remote at all (none configured and the branch names none), `gbrain git commit-push -m <msg> -- <paths>` now commits the named paths locally under the commit lock (outcome `committed_local` with `no_remote: true`, exit 0) and says nothing was pushed; it used to refuse `git_unavailable` and commit nothing. `--push-only`, `--pending`, `--branch`, `--resolve`/`--expect-remote` and `--require-clean` are refused there (`commit_paths_invalid`), and a branch that names a missing remote still refuses `git_unavailable`.' },];/** The newest disclosed change's release: the notice id moves only when a release adds rows. */diff --cc src/core/git/commit-push.tsindex a8daed1377,cedecf11b0..6759a799e3--- a/src/core/git/commit-push.ts+++ b/src/core/git/commit-push.ts@@@ -75,8 -74,8 +75,10 @@@ export interface CommitPushResultlagging_reason?: string;/** Opt-in quarantine (git config gbrain.quarantine): the local versions of conflicting files, parked under a ref; the remote's version was published. */quarantined?: QuarantineEntry;+ /** The checkout has no Git remote: the paths were committed locally (or were already committed) and nothing was pushed. */+ no_remote?: true;+ /** Conflicted files where the remote held a version this checkout had already replaced: this checkout's version was published. */+ superseded_remote_paths?: string[];}export interface PullResult {