Garry's Opinionated OpenClaw/Hermes Agent Brain
Upgrade to v0.60.28.0: fix wave 5
Fix wave 5 removes the session-start line that could show another session's
text, lets repos over ~10,000 files onboard, unblocks jobs queued before
v0.50, adds two preview-bound cleanups (gbrain repair stale-atoms and
gbrain repair extractor-facts) and a projection drain, and fixes more
than a dozen smaller bugs. There is no schema migration. Never apply a repair,
authorize or cancel jobs, or change a key on the user's behalf without asking.
What the user will notice
- Session start no longer shows a
Last session activityline. It was taken from whichever session on the machine wrote last (#5558). Nothing restores it, by design. - Ambient recall (
volunteer_contextfor remote callers, the per-turn hook block) andgbrain compile-contextno longer show private pages. - Code pages re-chunk once (
CHUNKER_VERSION7 → 8) on the next sync orgbrain embed --stale. gbrain doctormay reportlegacy_job_authority,text_projection_readiness,atom_provenance_drift,extractor_facts_expiredorembedding_key_source.gbrain repair --allandgbrain doctor --remediateliststale-atomsandextractor-factswith a preview command (explicit_kind_required) instead of running them.- A non-default brain's autopilot job gets its own name and logs to
<brain>/.gbrain/autopilot.log. - A command may print one warning that an exported provider key (for example
OPENAI_API_KEY) differs from the config key. The environment key is still the one in effect.
Step 1: restart everything that runs gbrain
Most fixes apply only in a process running the new binary. Tell the user, then, with their agreement and in this order:
- Stop autopilot and workers.
- Stop each resident
gbrain serve: HTTP services through their service manager, stdio servers by quitting the harness that started them. - Run
gbrain upgradeon each host. - Run
gbrain --versionthrough each launcher's own binary path (service definition, harness MCP command, hook commands); each must print0.60.28.0. - Restart services, harnesses, workers and autopilot.
- Make one write from each host and check that host's
last_seeningbrain sources writer status --json(writer_versions[]). That list is history from retained requests, not proof that every process upgraded.
If the user set GBRAIN_HOOKS=0 to work around #5558, ask them to remove it
from the environment the harness starts from (shell profile or service) and
restart the harness. It also turned off session capture, session persistence
and crash recovery. Verify: a new session shows no Last session activity
line, and after a few turns gbrain doctor reports bootstrap_hooks_heartbeat.
Step 2: run doctor and recover in order
Run gbrain doctor, show the user what it names, and handle each finding in
this order. Preview first and apply only after the user agrees.
- Legacy jobs (
legacy_job_authority). Stopgbrain serve, autopilot and workers. Cancel each active job doctor lists (gbrain jobs cancel <id>). Preview withgbrain jobs authorize-legacy --select "status=waiting|delayed|waiting-children|paused", show the user the counts and any paid job names, then apply with the printed--expect <hash> --yes. To drop the work instead, usegbrain jobs cancel --select "<filter>"and its printed apply command. Restart, then checklegacy_job_authorityis ok. - Projections (
text_projection_readiness). Rungbrain projections drainon Postgres, or on PGLite when no resident holds the brain. If it refuses withprojection_owner_resident, either let the upgraded resident drain it (watch the pending count in doctor) or, with the user's agreement, run the stop, drain and restart commands it prints. - Stale atoms (
atom_provenance_drift).gbrain repair stale-atoms --source <id>previews; after the user reviews it,gbrain repair stale-atoms --source <id> --apply --expect <hash>. Retired atoms are soft-deleted and recoverable withrestore_pagefor 72 hours. - Extractor facts (
extractor_facts_expired).gbrain repair extractor-factspreviews; after review,gbrain repair extractor-facts --apply --expect <hash>. Ambiguous facts restore only if the user asks: add--include-ambiguousto both the preview and the apply. - Run
gbrain doctoragain, thengbrain doctor --remediation-planfor the automatic repair kinds.
Step 3: other one-time actions
- Several brains on one host: run
GBRAIN_HOME=<brain parent> gbrain autopilot --installfor each non-default brain, then for the default brain.gbrain autopilot --status --jsonshould showjob.needs_reinstall: null. - Key warning: to use the config key, remove the variable from the
environment of the process that printed the warning and restart it; if the
environment key is intended,
gbrain config unset <config key>. - Inline harness token (#5775): if a harness config file holding an
inline token was exposed, follow the receipt's
if_exposedcommand on the brain host, then reconnect with--fresh-token.
The full symptom table, with preview, apply and verify commands for each
issue, is in docs/guides/repair.md#fix-wave-5.