Skip to content

v0.60.787.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 20:42
3174db8

Stable release v0.60.787.0: every change since the previous stable release, v0.60.785.0, newest first.

What changed since v0.60.785.0: 8 changes.

Needs you (1):

  • OpenClaw: with --owner-sender set, the skill-resolver plugin now lets a verified owner sender's own turns in a group chat get owner-only skill suggestions (for example mail or calendar skills).

Plus 6 fixes and 1 addition. gbrain doctor --only behavior_changes lists every change in full.

[0.60.787.0] - 2026-11-29

Outside contributors can now see which areas take a small pull request quickly and which need an issue first, and small fixes we take aim to land within 48 hours.

Changed

  • CONTRIBUTING.md lists the open areas (documentation, CLI output and error messages, bug fixes with a failing test, importers and adapters, deployment recipes, localization) and the issue-first areas (Rust engine, auth and access, schema migrations, CI and release, large changes), with a small-fix checklist and the community-open, small-fix and internal-core labels.
  • Small fixes we take get the small-fix label and a target of landing within 48 hours, replacing the old limit of one a day. The automatic comment on outside pull requests says the same and links the open areas.
  • The pull request template opens with a checklist for outside contributors and no longer asks for a version in the title.
  • The release guide no longer tells maintainers to trial-merge open outside pull requests when auditing a batch, since that runs their code.

Refresh CI test shard timing maps across unit, serial, and end-to-end suites so test runs stay balanced and weighted.

Changed

  • Updated scripts/test-weights.json, scripts/serial-weights.json, and scripts/e2e-weights.json (plus their .metadata.json provenance files) from green master CI runs on 2026-11-29, lowering unweighted test file shares to 0.17% (unit), 0.20% (serial), and 0.60% (E2E) with zero dead entries.

Two small fixes from outside contributors: thin-page enrichment keeps stubs with a long history, and doctor keeps a finished trust scan.

Fixed

  • Thin-page enrichment measures a stub by its body alone, so a stub whose attribution timeline keeps growing stays eligible in every order each engine supports (#9895, thanks @javieraldape).
  • gbrain doctor no longer forgets a completed gbrain trust scan after seven days. Routine checkpoint cleanup now keeps the scan's cursor on every engine, so doctor stops reporting old rows as unreviewed (#10650, thanks @dheerajc8073).

Five Rust engine research maps now describe the November 29 code, and every other map says which older code it describes.

Documentation

  • The engine map under docs/research/rust-engine/ lists every current BrainEngine member, 581 in all, and says which members the Rust engine serves and how the addon is installed and released.
  • The CLI map and agent-contract overview list the current 252 public commands, 661 flags, 205 MCP tools and 873 error codes. They include the new rules, correct, profile, household, people, batch, policy and ledger commands.
  • The background-jobs map has the 34 cycle phases, the batch route for atom extraction and Rust engine shadow mode. The markdown-format map has standing-rule and household pages and the backup format of a Rust brain.
  • The machine-readable snapshots in docs/research/rust-engine/data/ were regenerated with the script next to them.
  • The maps that were not refreshed now open with a note that names the commit they describe.

The nightly plugin and Hermes install checks pass again, and two CI jobs no longer fail when the Ubuntu package mirror is slow.

Fixed

  • The Claude Code plugin check now validates the same slim plugin tree a release publishes, built by the new scripts/assemble-plugin-dist.sh. Claude Code 2.1.332 warns about a CLAUDE.md file at a plugin root, and the old check validated the whole repository, so strict validation failed every night since the pin moved. The release workflow builds its published plugin tree with the same script.
  • The Hermes install check no longer hangs on optional system packages. The installer runs with sudo and cargo refused, so it skips ripgrep and ffmpeg, and each attempt is bounded at three minutes with a clean retry. The pinned Hermes commit and its digest check are unchanged.
  • The admin browser test job installs the Chromium shell without its optional font packages, which removes the apt step that failed during a mirror outage.

Changed

  • The moving-HEAD sync pass tests are split into two files with a shared fixture, so neither file runs near the per-file time cap. Every test and assertion is unchanged.
  • Two contributor docs lines that had gone stale are corrected.

The Rust engine shadow now compares private page, link, timeline and keyword-count reads instead of recording them all as missing capability.

Fixed

  • In shadow mode, a page, page-list, link, backlink, timeline or keyword-count read that hides private pages was always recorded as capability_missing, so those six reads never counted toward the swap criteria. The shadow now runs them on the Rust store under the same privacy policy the primary used and compares the answers.
  • A read the store cannot judge the same way as the primary still refuses by name and never returns a wrong answer. These reads refuse: a caller record on a brain with members or reader-limited pages (folder_rules_unseeded), a caller with a private-readable grant reading pages (private_grant), a brain with a global owner-only mark (owner_only_closed), a timeline on a brain with an owner-only source (owner_only_lineage) and a page whose text has a withdrawal overlay (withdrawal_overlay). Each refusal is counted by its reason in engine shadow status.
  • The shadow seed now keeps a record of the owner-only marks it cannot copy, so the store stays guarded after the seed. A store seeded before this build holds no such record: reseed it.
  • Link and backlink reads from the MCP tools stay uncompared, because their page and date filters are not ported yet.

Upgrade note

  • This change starts a new shadow evidence epoch. Restart every gbrain process after upgrading, or shadow counts restart. The day count, the read count and the per-operation count of the swap criteria start again from zero.

A Rust brain can now run the write transactions an import opens.

gbrain import <dir> --no-embed on a Rust brain used to stop at the first write transaction it opened. The Rust engine now runs transaction, transactionDirect and lockPageKeys, with a writer gate that makes other writes wait while a transaction is open, nested transactions as savepoints, and the trust and attribution settings kept per transaction. It also reads and registers the local writer row that every CLI write checks. The import now gets as far as the belief-ledger source read, which a later part serves.

Fixed

  • A nested transaction that fails, or ends with its own nested work still running, rolls back the whole transaction instead of committing part of it.
  • A write still in flight when its nested transaction fails is rolled back with it, and a write made on the parent while a nested transaction is open survives that nested transaction's rollback.
  • A nested transaction's rollback leaves unset trust settings unset instead of turning them into empty strings.
  • disconnect no longer hangs when a shutdown hook waits for a transaction that was called before shutdown began.
  • A write inside a read-only transaction is refused with the read-only error (25006) and writes nothing.
  • Backups and other snapshot reads are not held behind the writer gate.

PGLite and Postgres brains are unchanged. Nothing to do on upgrade.

The engine swap check no longer passes its fact-fingerprint test when no fact rows were checked.

Fixed

  • gbrain engine swap and the swap plan read the shadow follower's fact fingerprint counts before they call a brain ready. Before this fix, zero mismatches over zero checked rows counted as a pass, for example when the follower stopped before it wrote its counts. Now the fingerprint test (criterion 7) reads as missing evidence unless at least one fact row was fingerprinted this epoch, so the check says NOT READY instead of READY. A missing, non-numeric or negative count is also missing evidence. A mismatch, a failed probe or a failed allocator check still fails first, as before.

With the Rust shadow engine's write follow on, the recheck that repairs a fact row in the shadow store now also checks that row's fingerprint, so the engine swap check can read evidence for fact writes made inside a transaction.

Fixed

  • A fact written inside a transaction is followed table by table, and the table recheck that copied it into the shadow store did not compare its fingerprint with the primary's. When an epoch's fact writes were all of that kind, the engine swap check read no fingerprint evidence. The recheck now fingerprints each fact row it repairs and adds it to the same checked and mismatched counts the follower keeps; a different fingerprint counts as a mismatch. The check runs before the rows are rewritten. If it fails, the pass reports fact_fingerprint:<code>, leaves those rows for the next recheck to repair and check again (also when the process closes mid-pass and the next process resumes it), and does not mark the shadow store as covered. A recheck for recent writes whose fact check failed now runs again by itself, after 2 seconds and then a doubling delay of at most 15 minutes, so a passing retry marks the shadow store as covered again without waiting for the next write or the nightly recheck. Shadow on only; no saved data changes.
  • A fingerprint mismatch the shadow follower found was kept in memory for up to a second before it reached follower.json, so a follower killed in that second lost it. When another serving process took over the shadow store, it wrote back the fingerprint results it had read at its own start, erasing mismatches and a failed probe found since. Either loss could let the engine swap check pass its fingerprint criterion. A mismatch is now on disk, flushed, before the follower acknowledges it, and a write that fails refuses the check so it runs again. A process that takes over keeps the last owner's results, and when that file is missing, unreadable, of another seed, or of an evidence epoch that is neither its own nor the current one, it trusts none: the fingerprint probe and the allocator check start over and the shadow store is not marked as covered until the next full recheck. Shadow on only; no saved data changes.
  • Some fingerprint results could still be lost in a crash, or replaced by older ones. A followed fact row was committed to the shadow store before its mismatch was flushed, so a failed flush left the row looking repaired; the mismatch is now flushed first, and when that fails the row is not committed and is queued for a recheck that checks it again. A failed probe, a reset probe and a fact check that matched are now flushed before they are acknowledged too, and while follower.json holds a mismatch or a failed probe every later write of it is flushed, so a heartbeat cannot replace it with a file a power loss could empty. Fingerprint counts read from disk that are not whole numbers are treated as unreadable instead of being written back as null. A recheck for recent fact writes that fails for any reason, not only at its fact check, now runs again by itself on the same delay. Shadow on only; no saved data changes.
  • A failed allocator check was kept in memory for up to a second before it reached follower.json, so a process that took over in that second could copy the earlier passing check; it is now flushed before it is acknowledged, like a failed probe. The write that takes over a sealed follower.json is now flushed too while the file holds a mismatch, a failed probe or a failed allocator check. A serving process that takes over the shadow store from another one no longer keeps the coverage it saw at its own start: like a newly started owner it marks the shadow store as not covered until the next full recheck, so a write the last owner left unrepaired is never shown as covered. Shadow on only; no saved data changes.

The engine swap plan now applies the 5-day shadow minimum to brains without managed storage until the end of Dec 8, 2026 PST, as the dated override intended.

Fixed

  • gbrain engine swap --to rust --plan always required 14 days of shadowing for criterion 1: the plan never passed the readiness policy, and the dated override named no brain, so it applied to none. The plan now reads the brain's storage mode and uses the minimum in force: 5 days for a brain without managed storage until 2026-12-09T08:00:00Z (the end of Dec 8 PST), then 14 days again. Criterion 1 prints the minimum in force and where it comes from.
  • The plan checks the storage mode again after it waits for a settled shadow status, so managed storage turned on during the wait still refuses with managed_storage. After that check the plan reads the shadow's epoch file without waiting and judges the newest status it read.
  • gbrain engine shadow status and the saved gbrain engine shadow report give the same earliest READY date as the plan, in UTC, rounded up to the next minute. When rounding up would reach the override's end, they print the exact time to the millisecond and name the time the override ends. When five days from the epoch start end after the override ends, the date uses 14 days. When start recorded managed storage, a shortened date is labeled "applies only to brains without managed mode".

Added

  • The swap plan refuses with the new reason evidence_epoch_changed (retryable, exit 1, nothing written) when a new shadow evidence epoch opens while the plan reads it, so it never judges an old epoch. Read the plan again.
  • gbrain engine shadow status --json and the report carry a new field, readiness_until: the time the shortened minimum stops applying. The field appears only while a shortened minimum applies.

Changed

  • The swap plan hash now also binds the readiness policy in force, so the hash changes when the override starts or stops applying. The frozen readiness policy hash does not change, so no shadow evidence epoch restarts.

[0.60.786.0] - 2026-11-29

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 --strategy than 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- for notes/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_tier marker 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-migrations asked 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, so gbrain doctor warned minions_migration after 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, and gbrain doctor --only minions_migration reads 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-sender set, 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-sender that the channel context does not contradict, and no senderIsOwner: false from 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>.jsonl carries owner_sender: true|false, never the sender's id. gbrain doctor --only skill_resolver counts turns by it (lines from older plugin code count as unrecorded), the group turns from a verified owner sender, and owner_skills_outside_owner, the owner-only suggestions on any other non-owner turn, which should stay 0; anything else warns skill_resolver_owner_skill_outside_owner (an agent anyone can reach through its main session still reports skill_resolver_owner_unverified first).
  • The plugin code is version 10: rerun the gbrain setup openclaw command you installed with and restart the gateway (skill_resolver_plugin_outdated until 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_link through the operation layer failed at random (one add_link sample 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 next add_link without 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.md explains 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 with gbrain config set rules.session_start on when most of your rules are ways of working.
  • company-brainify's history purge (HISTORY-PURGE.md) puts the commit-push retry note beside the gbrain git commit-push command 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 openclaw or gbrain setup pi --skill-loading resolve command you installed with to pick it up, then restart the OpenClaw gateway once; gbrain doctor reports 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 records deadline_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 batch sends the extract_atoms dream 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_KEY and no custom base URL; otherwise the run prints model_batch_route_unavailable and uses the normal route. (#9820)
  • Each request's worst case is held at the batch price against cycle.extract_atoms.budget_usd before 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, and gbrain batch revoke undoes 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 | revoke manage batches, and gbrain doctor reports unconfirmed, quarantined, expired or unapplied batches as model_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, and gbrain batch release <id> --yes frees 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's gbrain pricing set prices, 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 pickup applies transcript answers too and spends nothing on embeddings. A drain whose remaining pages wait on a batch stops batch_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_pass and persistence_requests_atom_run. gbrain repair request-indexes and gbrain doctor know 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 candidates lists 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-run previews 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. --into adds the facts to a page you already have; --alias adds 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 reject hides a name that is not a person; gbrain people hold marks 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 until gbrain 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 doctor reports people_promotions_pending when a promote stopped before it finished.
  • Migration v347 adds the people_promotion_receipts and people_candidate_labels tables, 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_converged every 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 status reads pass_unfinished with convergence.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 under sync.admission=classify_only or 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 in docs/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_large or unmanaged_database_path and pointed at the physical-copy runbook, which now covers the Rust folder layout (copy FORMAT and records.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_counts off and on PostgreSQL older than 15, and withdraws a confirmation if a write opens right after it. Each refusal is named in engine 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 by engine shadow status (seal: <outcome> (<reason>)).
  • Eight named persistence-journal members (declarePersistence and 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 --json shows the time as reconcile.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" and deprecated: true # retired hid 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 lowercase true. Both now read the flag the same way. A deprecated: true line 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 MODE statement as a write to a table named exclusive, 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_sql and unmapped: timeline_entries, takes, fact_withdrawals (forget) and sources land on their own lines, and criterion 5 of gbrain engine swap --plan adds side tables, process bookkeeping and no row written lines. A typed member that only sets transaction settings or takes locks is no_row:<member>; a raw statement that writes no row, such as a table lock or SET LOCAL, is not sampled. A schema-qualified table counts under its own name, and a quoted table spelled like a report key counts under other. A statement the parser cannot read stays raw_sql, and a member with no known statements is unmapped:<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:sealImportedPage joins the page-writes named loss.