Repository navigation
v0.60.790.0
Pre-release- The "Needs you this week" block marks adults-only and team lines [DM only] for group chats, never shows guest or external records, and stops reading incomplete because of deleted or other teams' records (#10742)
- Your agent policy can now be enforced: turn it on and gbrain refuses its own outside actions the policy denies, asks about or has no budget left for, until you approve that one action (#10746)
- A new
gbrain initnow finishes its own setup and proves memory works: no "5 setup migration(s) pending" line, and a save-and-recall check on a throwaway brain instead of a test fact in yours (#10724) - Keyless brains index and pin code checkouts, and gbrain setup adopts a plain gbrain serve entry (#10744)
gbrain onboard --proposeretries a partial history import with the window and folder you agreed to, and counts a conversation as imported only when all its days are in (#10723)gbrain onboard --proposetakes a new brain from empty to a ranked list of jobs: it syncs your Google sources, offers to import this machine's recent coding-agent sessions, then ranks what it found (#10716)- The stress check on changed test files no longer fails a database test file whose every test skips for a prerequisite its own CI job supplies (#10760)
- Rust engine shadow evidence no longer counts a private read as privacy-checked when the privacy check could not finish, so the readiness privacy criterion can no longer pass on a read it never checked (#10739)
- Shadow mode's repair passes no longer pile up and fail when the follow helper process is gone or busy (#10740)
- A page deleted while the shadow copy is being checked no longer fails the whole check, and a failed full check is tried again within minutes (#10730)
- A write sent beside a nested transaction that rolls back is no longer undone (#10697)
The "Needs you this week" block marks adults-only and team lines [DM only] for group chats, never shows guest or external records, and stops reading incomplete because of deleted or other teams' records.
Fixed
- Each line of the at_risk session block (and of OpenClaw's copy and
context_packat_risktext) that a family chat cannot read ends in[DM only]: bills, renewals, returns, credits, records about a child, team records, and records whose readers leave out the family chats group. The first line tells the agent to use those lines for the work, never volunteer them in a group chat, and offer them in a private chat. The owner still gets every line, and a shared record whose subject became a child after it was written now shows to the owner marked[DM only]instead of unmarked. - The block's trust check uses each page's effective tier (the canonical page verdict proactive surfaces use, which caps a guest source's pages), not the stored tier, and leaves out any record whose tier would need a data envelope, since the block renders no trust label.
at_riskitself still returns such records, labelled. - Deleted records are no longer kept in the candidate list, and other teams', private and quarantined records are filtered out before the 2,000-record limit; private, quarantined and below-floor records are filtered out before the 50-item check. Before, more than 2,000 tombstones or another team's records could make every reader's block read
household_scale, and a caller could learn a count it cannot read.
Your agent policy can now be enforced: turn it on and gbrain refuses its own outside actions the policy denies, asks about or has no budget left for, until you approve that one action.
Added
gbrain policy enforce advisory|enforced|hostsets how the policy applies.advisory(the default) changes nothing.enforcedmakes a page purge run from an agent session (gbrain delete --purge, orgbrain pages purge-deletedinside the 72-hour restore window) answerpolicy_approval_required, andpolicy_reserveanswerpolicy_budget_exhaustedand hold nothing when a day, week or month budget has no room, even when another rule would allow the spend.hostleaves every decision to your host.gbrain policy approve <approval_id>(or the owner session'sPOST /admin/api/policy/approve) approves one held action. The approval covers that exact call once, within 10 minutes, and only you can give it. A purge approval lists and covers the pages that were soft-deleted when the agent asked; pages deleted later wait for a new one. An agent's call that a runninggbrain servecarries out is checked as the agent's; a serve started by an older gbrain refuses an agent's purge withowner_unavailableuntil it is restarted, and still runs a plain soft delete.gbrain policy allow ... --no-approvallets an allowed spend, cancel, sign-up or dispute go ahead without asking you first.policy_checkandlog_actionare on the starter tool list, so every harness reaches them without asking for more tools.policy_checkanswers with the mode in effect and, when a budget has no room left, which budget and when it resets.log_actionandpolicy_reservetakeowner_only: true, andgbrain config set ledger.owner_only truedoes it for every owner entry, to keep an action to the owner's member.whoamisays whether the brain is shared with another member.
Changed
- With no policy set,
policy_checknow asks you first before an outside send, publish or delete too, not only before money and account actions (not in host mode). gbrain policy init --presetadds the preset under your own rules instead of replacing them, and a preset that only tightens your policy applies without a code.- A member with a private-page grant on the
defaultsource reads the owner's unlabelled actions in ledger totals and entries, as far as folder rules allow.
Fixed
- An agent policy approval that no longer verifies after an upgrade or rollback now says so (
policy_upgrade_reapproval) and names thegbrain policy acceptline to run.
A new gbrain init now finishes its own setup and proves memory works: no "5 setup migration(s) pending" line, and a save-and-recall check on a throwaway brain instead of a test fact in yours.
Changed
- A fresh
gbrain init(PGLite or Postgres, with or without a git repository) runs the setup migrations a new brain starts with, using the same policygbrain setupalready used, and prints one[init] Migrations: … applied by init without installing services …; none pending.line. v0.11.0 still waits when it would edit an existing~/.claude/AGENTS.md,~/.openclaw/AGENTS.mdor OpenClaw cron manifest, and the line names the file and the finishing command. - Init then checks memory on a throwaway check brain in a temporary home (keyless, no database URL, no provider key): it saves a unique note with
remember, requiresrecallto return it, and deletes the check brain. Your brain gets no test fact, and the quickstart no longer asks you to save one. - The human readout lists the engine, brain path, keys, setup migrations, the memory check and the hosted option once, then the quickstart.
init --jsonaddsfirst_value(setup_migrationsandmemory_check), andgbrain setupprints the memory check for the brain it creates. gbrain setup's history readout claims recall only after one imported session comes back: it runsgbrain queryfor the first suggested question's topic and printsRecall check: passedbefore the questions, or withholds the questions and says nothing came back. An accepted import still publishing says it is pending and not yet recallable.GBRAIN_INIT_SKIP_FIRST_RUN=1skips the migrations and the check (the old pending line comes back); the test preloads set it.
Keyless brains index and pin code checkouts, and gbrain setup adopts a plain gbrain serve entry.
Fixed
gbrain reindex-codeon a keyless brain rebuilds code chunks and symbols for free instead of stopping on "This brain has no explicit embedding model", so a sync tool that reindexes and then pins the checkout finishes.gbrain setup claude-codeandgbrain setup codexadopt a plain<gbrain> serveMCP entry another tool registered for this install instead of refusing it withsetup_owner_conflict, keeping the tool surface it already served.
gbrain onboard --propose retries a partial history import with the window and folder you agreed to, and counts a conversation as imported only when all its days are in.
Fixed
- When a history import you agreed to with
--history-decisionstops partway, the retry command it prints now uses that decision's own--daysand--history-dir, not the defaults of the run that carried it out. - A conversation that spans several days counts as imported only once every one of its days in the window is archived. Before, one written day was enough, so a run that left an older day for later reported
doneinstead ofpartial. The same check applies togbrain setup's history import. - A managed Google sync that finds the source's lock held reports
sync_runningand is skipped, instead of failing the Google stage. gbrain propose accept <signal> --expect <signal>@<list>is refused withpropose_list_changedwhen the named list does not include that signal. Before, it recorded the job as found now.
gbrain onboard --propose takes a new brain from empty to a ranked list of jobs: it syncs your Google sources, offers to import this machine's recent coding-agent sessions, then ranks what it found.
Added
gbrain onboard --proposeruns three stages and reports each one: a Google sync (no embedding, inside--budget-ms), the import of Claude Code, Codex and OpenClaw sessions from the last--days(1 to 30), and the ranked jobs fromgbrain propose. Coverage says how far back mail goes, whether the calendar is readable, and how many threads were active.- Sessions are imported only on a yes: the prompt at a terminal,
--import-history, or the 24-hour decision id the run prints (--history-decision <id>). An expired decision offers a new preview. Shared, team and member-bound brains never import sessions. --jsonprintsschema: gbrain.onboard_proposewith stages, coverage and the proposals; exit 10 means an imported day is still being written, exit 1 (onboard_propose_ingest_failed) means every stage failed and there is no job yet.- After
gbrain setupimports your sessions, it prints the top job the brain could take over.
Changed
- Proposal estimates, accepted items and status now rest on the same pages: the list receipt carries a hash of the pages accepting would store, and accept refuses with
propose_list_changedwhen they changed even if the count did not.propose_decidetakes theofferidpropose_jobsreturned. - Status counts an owed thread as done only when one of the exact loops stored at accept closed; meeting prep stores the upcoming occurrences its estimate counted and offers no series with nothing in the next 7 days; bulk senders count each thread once.
gbrain propose --jsonstores its list and printslist_id, soaccept <rank>binds to it. A job turned off after listing is refused as turned off.
The stress check on changed test files no longer fails a database test file whose every test skips for a prerequisite its own CI job supplies.
Fixed
bun run test:stress(and thestress-changed-testsCI job) now lists a database test file as not stressed when every test skips for a prerequisite its owning CI job supplies, such as the Rust addon that job builds. Before, the run failed the file because its PostgreSQL run never reached the database. Any other all-skipped database run still fails, including a skip for the platform or a missing secret.
Rust engine shadow evidence no longer counts a private read as privacy-checked when the privacy check could not finish, so the readiness privacy criterion can no longer pass on a read it never checked.
Fixed
- A private read whose Rust answer arrived behind the primary, or still differed on its rerun, was booked
staleordifferedeven when the privacy check could not judge every row. Either outcome settled the read's privacy question, soprivacy_divergedstayed 0 and readiness reported the privacy criterion as met. Such a read is nowinconclusivewith reasonprivacy_check_incomplete, gets a rerun, and a rerun that still differs closes asskipped:privacy_check_incomplete. It counts inprivacy_checks_unsettled_7d, so the privacy criterion stays open while that read is inside the 7-day window. - A row without a page identity (for example a link row) that the primary served byte for byte now counts as checked, instead of leaving the read's privacy check incomplete.
- The shadow comparator version moves to 6, so shadow evidence starts a new epoch: private reads an older comparator booked
stalestop counting, and the minimum shadow days start again. - A ranked private read whose rows only changed order (
order_diff) is also held open when the privacy check could not finish. A text value under a score-like field name, such asrankorscore, now counts as a real field when rows are compared, and a link row that Rust served twice counts as checked only once for each copy the primary served.
Shadow mode's repair passes no longer pile up and fail when the follow helper process is gone or busy.
Fixed
- When the process that applies writes to the shadow copy was stopped (for example by the system running out of memory) or restarted, every repair pass queued behind it failed at once. On a very large brain that was hundreds of failed passes in half a second, and none of the repairs finished. A repair pass that finds no helper now waits 1 second before the next one, then 2, doubling up to 60 seconds, and starts over at 1 second after a pass ends without a wait, so a helper that answers but keeps timing out on the next step is not retried every second. The relations that still need repair stay on the list, so nothing is skipped, including when the helper is lost just as the pass tries to restore coverage.
- At most one extra repair pass waits behind the one that is running. It picks up every relation marked as needing repair at the moment it starts, instead of a list fixed when it was queued.
- The checks a pass makes before and after it repairs (the helper's state, its repair plan and the coverage restore) used to give up after a flat 30 seconds, even when the helper was busy with a long queue of writes ahead of them. They now wait 30 seconds plus a quarter of a second for each queued write, up to 5 minutes. A check that still times out counts as a busy helper, so the next pass waits as above.
- Nothing about what the shadow copy stores changes, and the swap checks read the same values as before.
A page deleted while the shadow copy is being checked no longer fails the whole check, and a failed full check is tried again within minutes.
Fixed
- A shadow reconcile pass that read a slice of a table hanging off pages, while one of those pages was deleted and followed into the Rust copy, failed the whole pass with
page_not_found. It now reads the slice again with a newer generation, up to three more times, and fails the pass withpage_not_foundonly if the store still refuses after that. - A full reconcile pass that failed (including a failed allocator check or probe, a watermark restore that failed or was refused, and a pass that skipped its restore because a write invalidated the watermark while it ran) waited for the hourly check before another try, and the copy stayed invalid meanwhile. It is now tried again after a minute, then two, four and eight, and never less often than every 15 minutes. The retry walks the whole brain again, and a full pass queued behind another no longer leaves the earlier pass's retry behind.
- A shadow process that closes while its full pass is asking for the final coverage restore no longer records a failed restore or ends the clean streak, and the next process repeats only that restore instead of walking the whole brain again. A pass that had already repaired a row still goes on record as stopped.
- After a refused coverage restore,
gbrain engine shadow statusshows reconcile state error, and the pass does not count as clean. - A one-shot
gbrain engine shadow reconcilethat races a write, or that has to move rows aside, now exits 1, not 0. - A full catch-up pass that had to move rows aside no longer counts as a clean pass;
gbrain engine shadow statusshows reconcile state error for it. - A resumed full pass that had moved rows aside before the restart still shows reconcile state error and does not count as clean. A resume point left by an older build is not continued, so that pass starts again from the beginning.
- A full pass still skips rows whose sort key it cannot verify; they do not count against a clean pass. Owner: this lane; ruling or fix by 6 PM PST Fri Dec 4.
A write sent beside a nested transaction that rolls back is no longer undone.
Fixed
- On the PGLite and Postgres engines, a statement sent on a transaction while one of its nested transactions was open ran inside that nested transaction. When the nested transaction rolled back, the statement's acknowledged write (a page delete or a config delete, for example) was silently undone. This has been true since v0.51.0.0. The transaction now holds such a statement until the open nested transaction has released or rolled back. Statements made inside the nested transaction's own callback still go at once, and with no nested transaction open nothing waits.
- A nested transaction that waits for a later call on its enclosing transaction now hangs instead of losing a write. That pattern is unsupported. A statement held for more than 30 seconds logs one warning line that names the pattern.
- A held statement belongs to the nested transaction that sent it, even when it was sent through an enclosing handle. When that nested transaction rolls back, or the whole transaction ends, the held statement is refused with an error instead of being sent later outside it. A nested transaction queued inside one that rolled back never starts.
- Separate connections no longer share this hold, also while a nested transaction is being opened, and a nested transaction opened or a statement sent through an enclosing handle from inside a nested callback no longer waits for itself.
- The transaction handle's
sql.file()keeps the driver's query object (.execute(),.values(),.cancel()), and a named or tagged-template savepoint, or one whose callback returns an array of queries, works as the driver documents. - A transaction now ends only after its own nested transactions have ended, so a nested transaction left open by a returning callback no longer loses or undoes a later write.
- Code that uses a transaction handle unsafely around a nested transaction now fails with
NestedTransactionUnsafeErrorinstead of losing or misplacing a write. This covers a nested transaction's handle used after it ended,rollback()on a nested transaction's handle, a nested transaction or page lock opened through a captured outer handle from inside a nested callback, androllback()on the top-level handle while a nested transaction or held statement is pending.