Repository navigation
v0.60.786.0
Pre-release- A one-off
gbrain sync --strategyno longer soft-deletes pages your stored strategy keeps, and three maintenance stalls are fixed (#10664) - Gmail stops re-importing old unchanged mail on every sweep, a Gmail backfill no longer freezes on a second that holds more threads than one sweep reaches, and doctor stops warning about an empty conversation-archive source (#10643)
- In an OpenClaw group chat, a verified owner sender's own turns can now get owner-only skill suggestions, and every skill-resolver turn line says whether the sender was a verified owner sender (#10665)
- A write-comparison test that failed at random no longer races its own next write, and the standing-rules guide says who should switch on the session-start rules section (#10638)
- Skill suggestions no longer time out on hosts with more than 500 skills, and
gbrain doctorshows how long skill lookups take (#10658) - Atom extraction can run through Anthropic's batch API at half the per-token price, with atoms arriving on a later run; it is off until you turn it on (#10660)
- Large Postgres brains run managed sync, atom upkeep and Chinese, Japanese and Korean search faster, and paging through those searches no longer repeats a page (#10641)
gbrain people candidateslists the people your chats keep mentioning who have no page yet, andgbrain people promotemakes a private page for one you approve and moves their facts onto it (#9906, #10661)- A managed sync now finishes while another writer keeps committing: it checkpoints the newest commit it fully settled, and the next sync imports the rest (#10082)
gbrain backup createandbackup restorenow work on a Rust brain (#10141)- With the Rust shadow engine's write follow on, a write inside a transaction is no longer read first, so a failed read can no longer roll it back or let changed values be saved (#10659)
- A shadow follower seal carried to the next
gbrain servesession now rests on the database's own write counters, not on the writer records (#10635) - Shadow mode now reaches and keeps a valid coverage watermark when the brain is only used through short serve sessions, such as MCP stdio sessions that last 10 to 20 seconds (#10635)
- A skill marked deprecated drops out of the trigger index however its front matter spells it, as it already did in the resolver (#10645)
- The swap report names each uncompared raw or unlisted shadow write by the table it writes (#10631)
A one-off gbrain sync --strategy no longer soft-deletes pages your stored strategy keeps, and three maintenance stalls are fixed.
Fixed
- A sync run with a narrower one-off
--strategythan the source's stored one no longer soft-deletes pages the stored strategy still selects when their files change. A file deleted from Git is still retired. - The nightly dream cycle no longer stops when a day's summary counts more than 10,000 pages. The summary records input links for the pages it lists, and its trust tier still comes from every page it counts.
- A duplicate page whose slug is the file's raw stem (
notes/example-fornotes/example-.md) no longer leaves a hold that no repair can clear. Sync now heals it into the page the path names when both pages are verified duplicates with no access restriction, and holds the file for a person otherwise. - A small managed sync no longer opens one database transaction per owned source to sweep old body segments. It sweeps up to 100 sources per write.
Gmail stops re-importing old unchanged mail on every sweep, a Gmail backfill no longer freezes on a second that holds more threads than one sweep reaches, and doctor stops warning about an empty conversation-archive source.
Fixed
- Gmail pages imported before the
trust_tiermarker was written into connector pages (#9676) were admitted again on every sweep that re-fetched the unchanged thread, one receipt each time. Re-fetching an unchanged thread is a no-op, but the check compared the file on disk with a version carrying the new marker line, and a no-op never rewrites the file. A no-op now compares against the stored page's marker, or its absence, so these threads are skipped. A thread whose content changed is still imported and its file gains the marker. (#10629, reported by @PropFunderBrett) - A managed Gmail backfill whose floor reached a second holding more threads than one sweep can fetch before its deadline (for example a mail client's bulk reminder stamping one message on each thread at the same instant) re-fetched the same first threads on every sweep and never moved its floor. The threads a backfill lands below its floor are now saved with the cursor, at most 5,000, and counted as settled on the next sweep while their listed version is unchanged (a thread with a later reply counts by the older message the backfill listed), so the floor passes that second over a few sweeps. A changed or held thread is still fetched, a saved cursor never covers a page write that has not committed, and the list is dropped as the floor passes it and once the backfill finishes. (#10630, reported by @PropFunderBrett)
gbrain apply-migrationsasked a source with no content root and no pages (the conversation archive's source, registered again before its first archived day) for a v0.53.0 database-only export, which had nothing to write, sogbrain doctorwarnedminions_migrationafter every re-registration. Such a source now owes no host work until it holds a page or gains a root, when doctor warns again until that work is done (the database-only export, or a migration rerun once it has a root); a stored report that asked for that export no longer warns, andgbrain doctor --only minions_migrationreads the brain like the full run instead of reporting the check as not applicable. (#10640, reported by @cupit01)
Contributed by @Masashi-Ono0611 (#10629 diagnosis in #10634, #10630 diagnosis in #10633; rebuilt on master).
In an OpenClaw group chat, a verified owner sender's own turns can now get owner-only skill suggestions, and every skill-resolver turn line says whether the sender was a verified owner sender.
Changed
- With
--owner-senderset, a turn in a group session whose sender passes every owner-sender check (a user turn OpenClaw does not mark as relayed or internal, a sender id in--owner-senderthat the channel context does not contradict, and nosenderIsOwner: falsefrom OpenClaw) may get owner-only skill suggestions, such as mail or calendar skills. The group never gets the owner's operator rule, pins or session-start brief, and a missing, unmatched or contradicted sender fails closed. Channels, other people's DMs and sessions gbrain cannot place are unchanged. - Every other turn in that group gets no owner-only skill and, while live, the
<owner_context_withdrawn>block, whether it resolves, matches nothing, is skipped or times out, because the owner's earlier suggestions stay in the shared transcript. - The owner's group turns rank against their own session dedupe and token budget, so they never suppress or spend anything for the group's other turns, and a retried attempt never hands one sender's remembered suggestions to another.
Added
- Each turn line in
skill-index/logs/openclaw-<date>.jsonlcarriesowner_sender: true|false, never the sender's id.gbrain doctor --only skill_resolvercounts turns by it (lines from older plugin code count asunrecorded), the group turns from a verified owner sender, andowner_skills_outside_owner, the owner-only suggestions on any other non-owner turn, which should stay 0; anything else warnsskill_resolver_owner_skill_outside_owner(an agent anyone can reach through its main session still reportsskill_resolver_owner_unverifiedfirst). - The plugin code is version 10: rerun the
gbrain setup openclawcommand you installed with and restart the gateway (skill_resolver_plugin_outdateduntil then).
A write-comparison test that failed at random no longer races its own next write, and the standing-rules guide says who should switch on the session-start rules section.
Fixed
- The write-comparison test for
remove_linkthrough the operation layer failed at random (oneadd_linksample read as moved). Each sampled write reads its result back after the call returns, and any later page or link write from the same process before that read-back rightly marks the sample moved, because the write counter cannot tell another edge from the write's own. The test sent its nextadd_linkwithout waiting, so on a slow runner that next write landed first. Each call now waits for its own sample before the next one, and the assertions are unchanged; a forced delay on the first read-back fails the old test on PGLite and Postgres and passes the new one.
Docs
docs/guides/standing-rules.mdexplains why the session-start standing-rules section stays off by default (in Claude Code and Codex it helped only with ways-of-working rules; rules about roles and values were already followed without it) and says to switch it on withgbrain config set rules.session_start onwhen most of your rules are ways of working.- company-brainify's history purge (
HISTORY-PURGE.md) puts the commit-push retry note beside thegbrain git commit-pushcommand it is about.
Skill suggestions no longer time out on hosts with more than 500 skills, and gbrain doctor shows how long skill lookups take.
Fixed
- On a host whose skill catalog holds more than 500 skills, a warm skill lookup can take longer than 50 ms, so the 50 ms deadline dropped many suggestions. The OpenClaw plugin, the Pi extension and the prompt hook now allow 100 ms for a warm lookup when the built catalog's receipt counts more than 500 skills, and keep 50 ms otherwise; cold-start deadlines are unchanged. The count is read from the catalog receipt in the background and refreshed after each rebuild, so a catalog that grows past 500 gets the longer deadline on its next turn. Until the count is known, and when the receipt can't be read, the 50 ms deadline stays. Rerun the
gbrain setup openclaworgbrain setup pi --skill-loading resolvecommand you installed with to pick it up, then restart the OpenClaw gateway once;gbrain doctorreports an older OpenClaw plugin as outdated.
Changed
gbrain doctor's OpenClaw skill-resolver check now reports p50, p95 and p99 lookup times over the last day, and its missed-deadline warning names the deadline each miss was logged against (50 ms or 100 ms). Every timeout log line now recordsdeadline_ms. The miss rate also counts timeouts the resolver worker reports itself (skill_resolve_timeout), not only the hook's own timer, so a host close to the 5% warning line may start seeing the warning after upgrading.
Atom extraction can run through Anthropic's batch API at half the per-token price, with atoms arriving on a later run; it is off until you turn it on.
Added
gbrain config set cycle.extract_atoms.route batchsends theextract_atomsdream phase's model calls through Anthropic Message Batches (half the normal per-token price; answers usually within an hour, at most a day). A run stores each page's exact request, leaves the page unmarked and sends one batch; a later run collects the results first and applies each answer through the same code as the normal route, so the atoms match. Needs a native Anthropic model,ANTHROPIC_API_KEYand no custom base URL; otherwise the run printsmodel_batch_route_unavailableand uses the normal route. (#9820)- Each request's worst case is held at the batch price against
cycle.extract_atoms.budget_usdbefore anything is sent, and what Anthropic bills is recorded when the results arrive. - Only pages everyone in the brain can read are batched by default. Private and owner-only pages and chat transcripts need
gbrain batch allow <source> --yes, which first prints Anthropic's 29-day batch retention terms; the grant covers the source as it exists now, andgbrain batch revokeundoes it. Owner-only sources count as private, and every page is checked again just before it is sent (deleted, private,extract_atoms: false, owner-only or opted out). Every batch is deleted at Anthropic once its answers are stored, even when its source was deleted meanwhile, and purging a page clears its stored answer. gbrain batch status | pickup [--wait <s>] | cancel | release | allow | revokemanage batches, andgbrain doctorreports unconfirmed, quarantined, expired or unapplied batches asmodel_batches_stuck. A send Anthropic never received is released after its 24-hour window, a request Anthropic refuses twice goes back to the normal route, andgbrain batch release <id> --yesfrees an unconfirmed or quarantined batch by hand. A batch Anthropic no longer has is released, and turning the route off still applies paid answers and keeps pages in a batch waiting. Batch spend lands in the usage log at the batch price, using the brain'sgbrain pricing setprices, and a job-queue retry of the phase runs on the normal route; and an agent's daily spending cap counts what was actually billed.gbrain batch pickupapplies transcript answers too and spends nothing on embeddings. A drain whose remaining pages wait on a batch stopsbatch_pending. Works the same on brains with no git repository. Guide: docs/guides/batch-route.md.
Large Postgres brains run managed sync, atom upkeep and Chinese, Japanese and Korean search faster, and paging through those searches no longer repeats a page.
Fixed
- A managed sync's last step and the atom upkeep's batch reads look rows up by an index instead of scanning every write receipt, so they stay fast on brains with hundreds of thousands of receipts (#10605).
- Counting the atom backlog on a managed brain finds each page's last completion with an index probe instead of scanning every completion for every page. At 6,000 pages that went from about 8 seconds to about 2 seconds on Postgres and to about 0.1 seconds on PGLite (GST-4137).
- A withdrawal that applies to a whole source no longer sends every page back to the model. A page that holds none of the withdrawn claims keeps its earlier result (GST-4135).
- Paging through a keyless Chinese, Japanese or Korean search no longer returns a page twice because a recency boost moved it across a page boundary, and pages holding every word still come before pages holding only some (GST-4141).
- The migration that builds the request-window indexes stops with a clear message, instead of marking itself done, while another session is still building one of them (GST-4141).
- On a large Postgres brain, the page count of a Chinese, Japanese or Korean keyword search no longer runs at the same time as the search's own scan, which made the search miss its time limit, and on Postgres its statement stops when the reply stops waiting for it, never later than the configured keyword statement timeout, instead of scanning on after the command exits. On such brains the count can now be missing from the reply more often (#10613; thanks @HirotakeMachiyama for the measurements).
Added
- Migration v345 builds three indexes online:
op_checkpoints_managed_atoms_page,persistence_requests_passandpersistence_requests_atom_run.gbrain repair request-indexesandgbrain doctorknow the two request indexes.
gbrain people candidates lists the people your chats keep mentioning who have no page yet, and gbrain people promote makes a private page for one you approve and moves their facts onto it (#9906).
Added
gbrain people candidateslists names, first names and relationships ("my sister") that your chat facts mention in at least 3 conversations, 5 facts and 7 days, with the evidence, any page that already has the name, and a digest. It is free and only reads.gbrain people promote <candidate> --dry-runpreviews the page and the facts it would move;--expect <digest>then does exactly that. A page built from private chat facts is private and stays in the database, never in git.--intoadds the facts to a page you already have;--aliasadds names only when you pass them. Facts marked world and lines the assistant said never move onto a private page.gbrain people undo <receipt>moves the facts back, removes the aliases it added and deletes a page it created if nothing changed it since.gbrain people rejecthides a name that is not a person;gbrain people holdmarks a name two people share, which then moves only with--facts.- Only the brain's owner can run these, at a shell on the brain host; MCP callers, remote CLIs and member launchers are refused. A purge or withdrawal of a moved fact clears the receipt and its label.
- An optional nightly step,
synthesize_people, labels each candidate with a small model (person, public figure, service contact, assistant, not a person). It is off untilgbrain config set cycle.synthesize_people.enabled true, which shows which provider and model would receive the facts and records consent to exactly that; it spends at most $0.25 a day by default. gbrain doctorreportspeople_promotions_pendingwhen a promote stopped before it finished.- Migration v347 adds the
people_promotion_receiptsandpeople_candidate_labelstables, readable only by the brain's own database role.
Guide: docs/guides/people-from-chats.md.
A managed sync now finishes while another writer keeps committing: it checkpoints the newest commit it fully settled, and the next sync imports the rest.
Fixed
- A managed sync pass whose source got a new commit before every round no longer ends
not_convergedevery time. When HEAD has moved past the newest round that finished its imports, the last round reads that round's commit again; if every path there is settled and no write of the source is open, it checkpoints that commit.gbrain sync statusreadspass_unfinishedwithconvergence.stamped_behind(the commit and the HEAD the pass saw) until the next plain sync imports the newer commits, and until then the source is never idle, even paused undersync.admission=classify_onlyor with HEAD reset to that commit. (GST-3534)
gbrain backup create and backup restore now work on a Rust brain.
A Rust brain can be backed up while it is in use and restored into a new, empty folder. backup create asks the process that owns the brain for one copy at one exact moment, checks the copy against its own fingerprints, and waits for unfinished writes to settle (it stops with writers_active if they never do). backup restore checks the restored copy before it changes anything, then gives the restored brain a fresh brain id (naming the old and the new one), detaches sources from the old machine's folders, switches automation off, and cancels unfinished jobs. It refuses, by named reason and without publishing anything, a backup that holds unfinished write requests, a purge made after the backup's copy, a live OAuth client or local writer (archived_authority; restore revokes nothing yet, so re-issue access on the live brain and restore from a backup taken without them, or wait for the revocation follow-up), shared-skill state that is switched on, or records it cannot make safe (access tokens among them). A restored Rust brain is not sent to setup-in-agent.sh, which cannot set one up. The restore output says to run gbrain with GBRAIN_HOME set to the new root and to reattach the agent harness by hand. If the restore publishes the brain but cannot finish its receipt, the result says receipt_finalized: false and tells you to check the new folder before you use it. A purge log that cannot be read or is malformed stops the restore with purge_mirror_unreadable, and a source row with no incarnation stops backup create with source_incarnation_missing.
Added
gbrain backup verify-store <dir>: a read-only check of a copied Rust brain directory (identity, format, generation, digests, keyword-index state). It is the mandatory step of the large-brain runbook for Rust brains, which is indocs/guides/in-agent-setup.md.
Changed
- A Rust brain over the 8 GiB archive cap, or in a flat or symlinked layout, is refused with
backup_too_largeorunmanaged_database_pathand pointed at the physical-copy runbook, which now covers the Rust folder layout (copyFORMATandrecords.redb, never the owner socket).
PGLite backups are unchanged. Postgres brains still use pg_dump and pg_restore.
With the Rust shadow engine's write follow on, a write inside a transaction is no longer read first, so a failed read can no longer roll it back or let changed values be saved.
Fixed
- Before this fix, with shadow on, a writer-admin, worktree-claim or publication-journal write inside a transaction could be rolled back after the caller saw it succeed, or written with values the caller changed while a shadow pre-read held it (releases up to v0.60.785.0, shadow on only). Shadow follow read the rows a write would touch inside a savepoint first; a failed read rolled back the savepoint, and with it any statement another handle had sent beside it, and the transaction's other calls waited behind the read. Inside a transaction, shadow follow now marks a written table for a table-level recheck instead of reading the exact rows first; this is coarser, not a change to any saved data. Outside a transaction nothing changes.
- With shadow on, a tag added inside a transaction to a page that the same transaction created could be missing from the shadow store until the hourly full recheck repaired it. When any part of a transaction is followed table by table, shadow follow now follows the whole transaction table by table, so the scheduled recheck covers the tag.
- The engine swap check no longer passes its fingerprint criterion on zero checked rows when the epoch's fact writes were rechecked only table by table; it now reads no evidence until a fact row is fingerprinted. The follower lag it reads now also counts a write followed table by table, from its commit to the recheck that settles it, including across a handover between short sessions and when another process takes over the shadow store.
A shadow follower seal carried to the next gbrain serve session now rests on the database's own write counters, not on the writer records.
Fixed
- The check that lets a short serve session carry the shadow coverage watermark over to the next one compared writer-session rows. A writer whose row was refreshed but was not the newest, a role with no way to record its writes, or a write made while both evidence tables were locked left those rows unchanged, so the next session trusted a seal it should not have. The seal now holds a versioned token of the server's statistics epoch and, for each relation the seed copied, its identity and insert, update and delete counts; the next session confirms it only when all of that is unchanged. It also refuses while another connection has a write open, a prepared transaction exists, a recorded writer is still connected, another connection of a role that can write a copied table (itself, or through a role it can switch to with SET ROLE) is not idle, went idle less than 61 seconds ago or cannot be seen by the reading role, or a login role can write without a way to record it. A read-only connection, such as a monitoring agent, is not waited on for being active, but its open write or a writer record still refuses. Until the driver change lands (due Fri Dec 4), a brain with both a pooled and a direct URL refuses the seal while any of its direct connections is active or was used in the last 61 seconds, so a session that used its direct pool late reaches valid only after a full reconcile pass. It refuses on
track_countsoff and on PostgreSQL older than 15, and withdraws a confirmation if a write opens right after it. Each refusal is named inengine shadow status. A connection the writer hooks recorded stays refused while it is connected, even after it commits (other_writer_live), until it disconnects, so a session that closes while another writing client is connected may need a full pass.
Shadow mode now reaches and keeps a valid coverage watermark when the brain is only used through short serve sessions, such as MCP stdio sessions that last 10 to 20 seconds.
Fixed
- Every session that owned the shadow store started with an invalid watermark, and the full reconcile pass that proves it again ran only a minute after start, so a session shorter than that never ended valid and the swap check's clean-reconcile count never grew. A session that closed during a pass also recorded a failed pass, which reset that count.
- The first reconcile check now runs 5 seconds after a serving process starts. A full pass saves its progress after every interval; a session that closes during a pass records no pass, and the next session with the same continuity, seed and evidence epoch finishes it. A stopped pass that already repaired rows is recorded at once as a stopped full pass, so the repair stays on record when the next pass starts fresh, and it makes the next full pass due (status shows it as due at once). If that record cannot be written, the saved progress keeps the repair: status and writer coverage count it, and the next pass records it before discarding the progress, or fails with
pending_repair_unrecorded. Otherwise only a finished full pass is recorded, and only a clean one counts. - A serving process that closes with everything handed over and applied seals the follower, but only at its verified point: the counters read just before a full pass started, once that pass restored the watermark (a pass stopped at close seals with its own starting counters, and that seal carries the invalid watermark and the pass for the next session to continue), or the token of a carried seal it committed. It does not seal when any counter moved since that point, its own writes included (
writes_since_verified), or when it has none: no full pass restored the watermark, no carried seal was committed, and no pass still running at close had read its starting counters (no_verified_mark). So a brain served only by short writing sessions reaches valid only after a session completes a full pass. The next session carries the watermark on only when the follower files are unchanged and, on Postgres, the database's own write counters show nothing written since (see the seal change token entry). Any doubt, read failure or timeout leaves the watermark invalid until a full pass, as before. PGLite never carries a seal over (pglite_no_db_continuity): nothing there proves that no other process wrote between two sessions. - The seal cannot outlive what it covers: any event after it removes it from disk first; taking it over removes it in the same write that shows the watermark invalid; a write made by a later shutdown callback, after the shadow child stopped, is still recorded as lost; a lost-write record that cannot be written is retried and keeps the close from sealing (
lost_write_unrecorded); a start that refuses a seal never empties the invalidation file while that seal may still be on disk. A confirmation that was sent but not acknowledged is withdrawn (seal_confirm_unacknowledged), every withdrawal leaves a line the child reads on its own and is sent once at once and again after waits of 1, 2, 5, 10 and 30 seconds, and a confirmation still in doubt (no withdrawal acknowledged) keeps the close from sealing and makes the first check withdraw it again and run a fresh full pass, never a resumed one. A close does not seal while the confirmation is still running (seal_confirm_pending). Each seal decision and its reason is shown byengine shadow status(seal: <outcome> (<reason>)). - Eight named persistence-journal members (
declarePersistenceand the journal's counter, completion, effect and lock members) no longer invalidate the whole watermark: they publish the tables their statements write.onCheckout, a pool listener that sends no statement, is ignored. Every other member the write map does not cover still invalidates it.
Changed
- Swap readiness criterion 1 now also needs the newest clean full reconcile pass to have finished under 24 hours ago. Three clean passes followed by days without one no longer read as ready. A carried seal or a half-done pass is never such a pass. The rule is applied by the readiness check itself: the readiness policy, its hash and the shadow evidence epoch are unchanged.
engine shadow status --jsonshows the time asreconcile.last_clean_full_pass_at; a status from an older build without it reads as missing evidence.
A skill marked deprecated drops out of the trigger index however its front matter spells it, as it already did in the resolver.
Fixed
deprecated: True,deprecated: "true"anddeprecated: true # retiredhid a skill from the resolver's suggestions but left its trigger rows in place, because the trigger index (and check-resolvable, routing-eval and skillpack safe-update, which share its parser) only understood a lowercasetrue. Both now read the flag the same way. Adeprecated: trueline also still counts when another line in the front matter is invalid YAML, in both places.
The swap report names each uncompared raw or unlisted shadow write by the table it writes.
Fixed
- The shadow no longer reads a
LOCK TABLE ... IN SHARE UPDATE EXCLUSIVE MODEstatement as a write to a table namedexclusive, and its table-lock check answers at once on a statement with a long run of spaces instead of stalling the serving process.
Changed
- The shadow counts each raw SQL statement and each typed member outside the write map under the first table it writes, instead of the single keys
raw_sqlandunmapped:timeline_entries,takes,fact_withdrawals(forget) andsourcesland on their own lines, and criterion 5 ofgbrain engine swap --planaddsside tables,process bookkeepingandno row writtenlines. A typed member that only sets transaction settings or takes locks isno_row:<member>; a raw statement that writes no row, such as a table lock orSET LOCAL, is not sampled. A schema-qualified table counts under its own name, and a quoted table spelled like a report key counts underother. A statement the parser cannot read staysraw_sql, and a member with no known statements isunmapped:<member>. - These writes are named, not verified. They stay
capability_missing, are never compared and never count toward the comparable count or the write bar. A new report line says so, and a second named loss lists the tables.pages:sealImportedPagejoins the page-writes named loss.