Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Merge remote-tracking branch 'origin/master' into gbra133-pr3a

garrytandcedc2642824
diff --cc src/core/behavior-change-notice.ts
index 12fbfd3275,5aa480207b..951a4aef22
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@@ -1197,17 -1197,9 +1197,20 @@@ export const BEHAVIOR_CHANGES: Readonly
// Side-unknown file_drift holds and the pending-import fix (GBRA-133). `since` is stamped at the merge slot.
{ since: '0.60.417.0', id: 'legacy_validate_stamp_drift', text: 'A page an older gbrain imported, whose database copy carries the v0.13.1 grandfather stamp `validate: false` that its file lacks, is no longer held `file_drift` when its file is committed again: sync compares and imports such a file the way a page write already did (#6429), so the first sync records the page and a later commit imports, and the page keeps the stamp. A `file_drift` hold that has no import record now says it cannot tell whether the file or the database changed, instead of saying the page changed in the database. A hold already open stays held, because its baseline commit has moved past the edit: preview it with `gbrain repair file-drift --source <source> --held --side unknown --prefer file` (writes nothing) and apply the set the user approves.' },
{ since: '0.60.417.0', id: 'pending_import_owner_safe_fix', text: 'A write refused because its page\'s file holds a committed Git change sync has not imported yet (`pending_import`) no longer tells the caller to run `gbrain sync --source <source> --no-pull`. A running sync owner (`gbrain serve`, autopilot or a sync job) imports the commit on its own, and a second sync beside it competes with that owner. The fix of every such refusal, `put_page` included, is now the read-only `gbrain sync status --source <source> --json`, and the frozen `remember` refusal carries that fix too.' },
+ // GBRA-133 wave 6 (#7402 explicit request_id facts replay; git-durability push probe on a moved remote). `since` is stamped at the merge slot.
+ { since: '0.60.420.0', text: 'A managed facts write retried with the caller\'s own `request_id` now always returns that request\'s recorded outcome, a retained file refusal included; only a page-triggered or re-admitted facts job rechecks a refusal once its hold clears (#7402).' },
+ { since: '0.60.420.0', text: '`gbrain sources writer git-durability <source> --enable` no longer refuses with `git_push_unavailable` when the remote branch has commits the checkout lacks (`[rejected] (fetch first)` or `(non-fast-forward)` from the read-only push probe): the Git effect publishes that case itself by merging the remote commits in memory, without pulling into the checkout, so enable succeeds and reports `push_probe.remote_moved: true`. Authentication, permission, protected-branch and unreachable-remote failures are still refused.' },
+ // GBRA-133 PR 3a lane S (#7243 truthful sync status). `since` is stamped at the merge slot.
+ { since: 'TBD', text: '`gbrain sync status --json` now prints at most 20 holds without `--detail`: `holds_summary` counts every hold by code and by state (`needs_human`, `actionable`, `held`), and `holds` lists the first 20, needs-human first, after every other field. When holds are left out, `holds_page` carries `returned`, `limit`, `complete`, `next_cursor` and `next_command`; `--detail` pages 100 holds at a time, `--limit <n>` and `--cursor <next_cursor>` page, `--all` prints every hold, and `--hold-state <state>` lists one state. A source whose holds fit on one page prints them as before. The text status lists the same 20 and says how many more there are.' },
+ { since: 'TBD', text: '`gbrain sync status` always reports `last_commit` (the commit the source\'s sync applied through) and `live`: the process holding the source\'s drain lease (a serve pass, a sync job, a CLI sync or the cycle) with its pid, heartbeat and progress, `job_id` for a Minions sync job and `stalled`, or null. `live_job_id` also names a sync job that drains a pass, not only a legacy cursor. `convergence` adds `converged_target`, the commit the stored converged obligation records (null when no stamp backs one); `convergence.target` stays the newest pass\'s pinned commit.' },
+ { since: 'TBD', text: 'A `last_error` in `gbrain sync status` now also reads `superseded` once a later attempt got past the phase it failed in (a later pass started, read the source, admitted a page or committed one), with `by` naming which and `age_seconds`, and it then sets neither `needs_human`, `state` nor `next`; before, only a later committed page superseded it. The notifier block of `sync status` and doctor adds `recorded_resident`: when its row names a resident whose notifier lease lapsed, the fix names that resident instead of saying no resident watches the source. A managed pass prints `[sync] pass round N: read ...` after each level read and `... importing N file(s) ...` before its import walk, and a resident notifier\'s background run also writes its lines to the serve log (`[serve-sync] job=<id> ...`).' },
+ { since: 'TBD', text: 'The `gbrain sync` hard deadline now extends only while the run commits work (a page written, deleted or renamed, or a sync cursor advanced). Screening unchanged files, held files and legacy-sweep slices no longer count, so a run that reaches its default or env deadline having committed nothing stops as a stall: it prints `code=sync_deadline_stalled` with a why and a read-only `gbrain sync status` fix (one JSON object under `--json`) instead of extending as "still progressing". A run delegated to a PGLite owner does the same, adds `deadline_stall` to its JSON and exits 1.' },
+ { since: 'TBD', text: 'A managed sync drain stopped by its governor drops the abandoned pass\'s late progress events (no late `[sync] N processed` line, no count added after the stop), and a stop whose head owner reports restart_required now says so: `drain.stall.cause` is `owner_restart_required` with the owner\'s heartbeat row, and `next` tells the host admin to restart that process, then rerun (it used to read `publication_overdue` or `no_progress`).' },
+ { since: 'TBD', text: 'The commit notifier counts a resumable sync that committed pages as progress even while `last_commit` has not moved yet (a long managed catch-up no longer reads `notifier_stalled`), and a source whose drain-lease holder has committed nothing for 5 minutes is no longer deferred silently: it counts as a failed attempt (`drain_holder_stalled`), so the retry tiers run and sync status and doctor show the sync-now fix.' },
+ { since: 'TBD', text: 'A sync pass\'s checkpoint that its pass can no longer publish (the pass ended, or another pass started) is now refused `sync_pass_superseded` instead of `revision_conflict`: it records no managed-sync failure, reads `superseded` in `gbrain sources writer failures` and does not count as an unresolved terminal failure, and a pass that stops with its checkpoint still pending reports `managedWrite.disposition: superseded` instead of "Re-run the same sync options to resume this request".' },
+ { since: 'TBD', text: '`gbrain sync status` also reports `last_sync_at` (when the source last converged: every path of its target imported, deleted or held) and `last_committed_at` (when a managed sync write of the source last committed), and the human line says when the source is still importing since it last converged, so a long catch-up no longer reads as a day stale. Its `freshness` block adds `waiting_commits`, the commits on HEAD not synced yet; `unresolved_commits` still counts only synced commits that git cannot date on this host.' },
+ { since: 'TBD', text: 'A serve sync pass that stops short now names why on its `[serve-sync] done` line: `stop=<reason>`, the write that stopped it (`write_error`, `write_reason`, `request`), the failed files by code, or `cause=unrecorded` when the pass recorded none, followed by a `next` line with the command to run. Before, a blocked pass printed only `status=blocked_by_failures`.' },
+ { since: 'TBD', text: 'A managed write that meets a pooler\'s client cap (Supavisor `EMAXCONNSESSION` in session mode, "too many clients already") is now released as contention and retried, like SQLSTATE 53300, instead of failing terminally as `storage_error` and stopping the sync drain `blocked_by_failures`. The persistence log adds `cause=pool_exhausted` beside the code the pooler sent, with the pool-sizing fix in place of the generic writer-status pointer.' },
];
/** The newest disclosed change's release: the notice id moves only when a release adds rows. */