Repository navigation
v0.60.781.0
Stable release v0.60.781.0: every change since the previous stable release, v0.60.778.0, newest first.
What changed since v0.60.778.0: 10 changes.
Needs you (4):
- Shared skills: a file under skills/conventions/ has one copy for every skill that holds it.
- Google contact pages now carry only the addresses and phones on the contact card itself.
- Shared skills: a file under skills/conventions/ that only skills hidden from readers hold, because their SKILL.md audience is narrower or they are private, can no longer be published to more callers through another skill, including through…
- Shared skills: a publication can no longer add a path that differs only by letter case from a path another skill already publishes, such as skills/conventions/guide.md next to skills/conventions/Guide.md, or a file inside a directory whose…
Plus 6 fixes and 0 additions. gbrain doctor --only behavior_changes lists every change in full.
[0.60.781.0] - 2026-11-27
A remote agent can no longer make its own text read as an imported transcript, whatever maintenance runs afterwards.
Fixed
- Speaker markers and transcript fence acceptance trusted a page when its first-ingest stamp named the transcript importer and the newest revision carried no remote attribution. A tag change, compaction or other maintenance cleared that attribution, so a page a remote agent had rewritten read as the importer's again. Each page now records who wrote its current text and the content hash they wrote (migration v342); only the importer's own unchanged text is trusted, a remote write names its operation, and a tag change keeps the author while a body change does not. Existing importer and connector pages with no remote writer on record are stamped by a separate backfill (migration v343); pages the old rule trusted only through their first-ingest stamp keep speaker markers and any fence acceptance the owner already recorded for their exact content, and are offered for new acceptance only once the importer next writes changed text for them. A re-import that changes only tags never makes untrusted text trusted, and
gbrain migrate-enginecopies each page's author exactly. - Remote
put_page,append_page,capture, streamed uploads and segmented edits now keep a page's first-ingest record (source kind, URI, channel and time), asedit_pagealready did.
On an OpenClaw host with no native memory provider, a turn gets the owner's rule, pins, brief and owner-only skills only after the plugin verifies the owner sender, and the turn log says so.
Fixed
- With
--owner-senderor--require-owner-senderset and no memory audience from OpenClaw (an unset or legacyplugins.slots.memory, such as the bundledmemory-core), a turn on the main session or a direct session is the owner's only when OpenClaw's trigger isuser, the sender id is an--owner-senderid, the channel context names no other sender, OpenClaw did not saysenderIsOwner: false, and the chat type is absent or one-to-one (private,directordm). Before, a matching sender id was enough, so a turn whose channel context named someone else, or that came from a group chat, got the owner's context. Every other turn there stays another person's DM, and on a direct session it now also gets the block that withdraws owner context an earlier turn left in the session, as the main session already did. - Those verified owner turns log
session_class: ownerandaudience: senderinstead ofmainandunknown, andgbrain doctor --only skill_resolvercounts them ("N owner turns verified by sender id"), so a host without a memory audience shows its owner turns instead of logging every turn as unknown. - A memory audience OpenClaw does send still decides on its own, and a
conversationaudience is never turned into the owner's. - The plugin code is version 8: rerun the
gbrain setup openclawcommand you installed with and restart the gateway (skill_resolver_plugin_outdateduntil then).
CI packs its test shards with run times for 138 unit test files it had been guessing at, and with fresh timings for every serial and end-to-end test file.
Changed
- 138 unit test files that had no recorded run time now have one, taken as each file's median over five master test runs. Unit run times already on record are unchanged.
- Every serial and end-to-end test file's run time is refreshed from the 2026-11-27 nightly runs.
- Nothing changes for people using gbrain. This only affects how CI splits tests across machines.
Gmail stops writing a new import receipt for unchanged mail on every sweep, Google contacts keep only the addresses on their own card, and contacts with Chinese or other non-Latin names are imported.
Fixed
- A Gmail sweep that fetched a thread it had already imported (a label change, a backfill or gap walk over old mail) wrote a new
connector_v2_importreceipt whenever the page was embedded but had no contextual retrieval mode, though nothing on the page changed. Those pages were admitted on every sweep, sopersistence_requestsgrew by thousands of receipts a day. The connector's unchanged-page check now skips that case, as working-tree sync already did (#5751); changed content, a moved revision, a different source path, an unsealed projection or a differing canonical file are still imported. Receipts already written are compacted afterpersistence.receipt_retention_days(default 30);gbrain repair receipt-compaction --jsonpreviews an earlier pass. (#10559, reported by @PropFunderBrett, first fix by @Masashi-Ono0611) - In a Google Workspace domain, a contact page carried every address on the account its card is linked to, aliases included, so when Bob's old address became an alias on Alice's account, both pages listed
alice@example.comand every meeting she attended was blocked from attendance links. A contact now keeps the addresses and phones on its own card, each once; a card with no address of its own keeps the linked account's primary address so it can still be matched. (#10556, reported by @bentulloch, first fix by @Masashi-Ono0611) - A Google or Apple contact whose name has no Latin letters or digits (
张三) was silently skipped even with an email or phone, and the sync still reported success. It now gets a page at its stable contact-id path, titled with its own name. When the path a contact renders to belongs to another contact, the contact is refused withcontact_page_ownedbefore anything is written or its old page removed, and held after repeated refusals so the rest of the address book keeps syncing; a hand-authored page there is still left alone. Two contacts with the same name in one managed sweep no longer overwrite each other when the first one's write is still being published. The second one waits for it and takes the disambiguated path. (#10450, reported and first fixed by @frxiaobei)
A shared skill convention file held only by a hidden skill stays hidden when another skill publishes it.
Fixed
- A file under
skills/conventions/can be held by a skill whose SKILL.md audience is narrower than the file's own, or by a private skill. Publishing a public skill that newly included that file, or rewriting a shared file so a public skill gained it, used to show it to every reader. Submission and prepare now refuse it withlocal_conflictand write nothing, and a request accepted by an older release is checked again at prepare. A file that another skill already shows to readers, or a copy no wider than the hidden skill gives it, still publishes.
Two skills can no longer publish shared files whose paths differ only by letter case.
Fixed
- Every skill can publish files under
skills/conventions/. When one skill heldskills/conventions/Guide.md, another skill could publishskills/conventions/guide.md, or a file insideskills/conventions/GUIDE.md/, on a case-sensitive brain host. A clone on macOS or Windows then kept only one of the two files. Submission and prepare now refuse a publication that adds such a pair withlocal_conflictand write nothing, and a request accepted by an older release is checked again at prepare. A remote caller's refusal names only the path it proposed. Sharing the exact same path still publishes, and a pack that already holds such a pair keeps publishing its other changes.
[0.60.780.0] - 2026-11-27
gbrain upgrade no longer reports a healthy upgrade as broken when Bun's bin directory is not on PATH, and gbrain sync no longer fails with a cryptic missing-export error when a gbrain serve started before the upgrade is still running.
Fixed
gbrain upgradenow checks the release it just installed by running the updated package's own entry with the Bun that ran the upgrade (or the release binary itself) instead of lookinggbrainup on PATH. From a shell without~/.bun/binon PATH (a non-interactive bash, CI, Bun added only in.zshrc), a healthy upgrade used to fail its start check withExecutable not found in $PATH, suggest a downgrade and leave a standingupgrade_errorswarning ingbrain doctor. No launcher is involved, so a Windows shim, a customBUN_INSTALL_BINor another gbrain on PATH cannot stand in for the updated install. The version check, post-upgrade, the feature scan and the restart (supervisor steps included) use the same install. A release that really does not start still fails and names the way back, and a gbrain that cannot be found at all is reported as not found, without the downgrade advice (#10536, reported by @yitzhakbg).gbrain syncon a Postgres brain no longer hands its run to a livegbrain servewhose recorded build is older than the CLI. Such a serve keeps the code it started with, and after an upgrade its next lazy import fails on a missing export. The sync now runs beside the serve and prints one line naming both versions and the restart (gbrain upgrade --restart-only). A delegated run that still fails this way inside the serve stops withserve_build_skew, which names the serve's pid and build, this CLI's version, the restart, andGBRAIN_SYNC_NO_DELEGATE=1to sync beside the serve meanwhile (#10537, reported by @yitzhakbg).
gbrain setup --serves several now labels the people on the brain and source the harness actually reads, and the OpenClaw owner-sender guard no longer reports itself in force before the gateway runs it.
Fixed
gbrain --brain <id> setup claude-codeandcodexwith--serves severallabel the people on that brain; the labelling and layout steps used to ignore--brainand follow the working directory.--members=<ids>and--members-file=<path>work like the two-argument form ingbrain setup.- A harness pinned to one source (
--source,GBRAIN_SOURCEor a Codex setup receipt) gets its people labelled and its member keys writing in that source, not indefault.gbrain access serves severalwithout--sourcelabelsGBRAIN_SOURCE, thensources.default; the directory it runs from never decides where member keys write. A re-run on another source moves the keys an earlier setup minted to write there and keeps their secrets; a key setup did not mint that way, or whose write source someone changed by hand, is reported as skipped with thegbrain auth rescopecommand that moves it. A key whose write source has been archived is reported as blocked and never moved. --shape companywith the harness pinned to thecompanysource adds that source before labelling the people in it, instead of failing because it does not exist yet. It is added out of default search (--no-federated), as a source added after the switch to several people would be.- For a bot harness (OpenClaw, Hermes, Grok Bot, Muse), the
unscoped_multi_user_tokenfix is nowgbrain config set mcp.stdio_may_act_for <members>(noneor a malformed list does not count), which setup can't do for that harness and which clears that harness's warning once set (a Claude Code channel plugin keeps its own). It used to namegbrain setup <harness> --serves several --members, which setup refuses there. gbrain setup openclawkeeps settings another setup saved while it worked, because the gateway's own index refresh no longer writes back the state it read before an--owner-senderor--require-owner-senderrun finished. Ingbrain setup openclaw, the final read and write of the state file take a lock (openclaw-skill-resolver.json.lock); a run that finds it held for more than 10 seconds endsskill_resolver_setup_incompletewithout writing, and a lock older than 30 seconds is cleared.gbrain skills pin addandremoveand turning one OpenClaw agent off (--skill-loading off --agent <id>) take the same lock: a pin change that finds it held saves the pin, leaves the OpenClaw state alone and says to rungbrain setup openclaw --skills-index-only(openclaw_refresh_pendingin--json), and turning an agent off endsskill_resolver_setup_incompletewithout writing.- Setup and doctor read only the last 4 MiB of an OpenClaw daily turn log instead of loading the whole file.
gbrain setup openclaw --require-owner-senderstill printsskill_resolver_owner_unverified, saying the guard is saved but not in force, until a logged turn shows the gateway running the plugin code that enforces it.- A multi-agent
gbrain setup openclawrun that gives settings but skips an agent that is on (no skill directory, a failed catalog build) endsskill_resolver_setup_incompleteand names the agent, instead of exiting 0 while that agent keeps its earlier settings. gbrain doctorno longer lets an OpenClaw memory audience logged beforeopenclaw.jsonlast changed clearskill_resolver_owner_unverified.
Atom extraction no longer writes into source folders this machine does not commit, never shows the model a withdrawn or held claim, and stops re-reading pages whose text did not change.
Fixed
- Derived writes (atoms, sync's frontmatter overlay) into a non-default source whose folder is a Git checkout this machine does not commit (not canonical Git, no durability) now stay in the database. Before, they left untracked files in someone else's checkout that nothing would ever commit. (GST-3743)
- The model reads a page the way a remote reader sees it, so withdrawn claims and facts rows held from world readers are left out. Before, a withdrawn or held row reached the prompt and could come back as a world atom. On a source without managed atom maintenance, a withdrawal recorded after a page was extracted now offers that page again. (GST-4020, #10332, thanks @Kkkkkuro)
- On a source without managed atom maintenance, a page renamed and made private no longer leaves world atoms behind under its old name, because its next extraction retires them. (GST-4020)
- An edit that leaves the extraction input unchanged (a takes row, a private facts row) no longer calls the model: the earlier atoms move to the page's new content hash, so doctor's provenance drift check stays quiet. A revert to older text after a newer extraction still extracts again. (GST-4020, #10435, reported by @ikatsura, first fix by @Masashi-Ono0611)
On Windows, a failed gbrain self-upgrade no longer leaves gbrain unable to start: the old gbrain.exe launcher is moved out of the way before the new version is installed, and before the previous one is restored.
Fixed
gbrain upgradeandgbrain self-upgradeon Windows run through Bun'sgbrain.exelauncher, which Windows keeps open, sobun remove -g gbrainleft it behind and the install that followed failed withfailed to link gbrain: EEXIST. The restore failed the same way, and every latergbraincall printedcould not find bin metadata fileuntil the file was moved by hand. The upgrade now renames a leftover launcher in Bun's bin directory togbrain.exe.stale.<pid>before each install and before the restore (Windows allows renaming a running program), and the next upgrade deletes those files once nothing holds them. Only that one file in Bun's bin directory (the onebun pm bin -greports, elseBUN_INSTALL_BIN,BUN_INSTALLor~/.bun/bin) is ever moved, and only when it is small enough to be Bun's launcher. A new version whose files arrived but whose launcher never linked is no longer reported as installed; the previous version is restored instead. Fixes #10538, reported by @exGeni.- When the restore fails too, the printed recovery now comes from the same step list as every other reinstall hint. On Windows that is one step per line (Windows PowerShell 5.1 has no
&&), with the step that moves a leftover launcher aside, ending with the line that restores the previous version. On Windows, the recoverygbrain doctorshows lists the same steps, numbered.
Gmail backfill no longer misses mail at a second boundary, CJK keyword search keeps quoted phrases, and a managed put_page keeps a page's first-ingest record.
Fixed
- The Gmail backfill lists one second below every
after:bound. Gmail does not document whetherafter:includes its own second, so a thread sharing a second with the one a saved floor started at could be left unlisted on both sides and never fetched. A checkpoint that the extra second blocks proves the next second instead, so a sweep cut off on dense mail still saves its progress. - A usage limit hit by the backfill's checkpoint search now stops the sweep at once, like one hit by a thread read, instead of being treated as a failed check while the sweep kept sending requests.
gbrain pages prune-history --keep Nkeeps each page's newest N versions counting segmented versions, which are never pruned. Before, it ranked only the other versions, so it kept more than N and the preview's kept count left the segmented ones out. The apply checks the ranks again under the page lock, so a version that segmented retention moved into the newest N since the preview is kept.- An acceptance from
gbrain transcripts accept-fenceson a transcript the importer wrote directly (no write request) now also holds on the page's content hash, so maintenance that moves the page's timestamps without changing it no longer puts it back on doctor's review list, and a later write that changes it still does. Acceptances recorded before this keep the timestamp rule. - CJK keyword search: the hybrid any-term retry keeps a quoted phrase required, so it no longer returns chunks that hold only the other words;
ORalternatives that differ only in quotes each keep their own match; a term named by manyORalternatives is bound once. - A
put_pageon a repository brain, local or remote, keeps the page's first-ingest columns (source_kind,source_uri,ingested_via,ingested_at) as stored,ingested_atto the microsecond. Before, a local one that named new provenance stamped the rewrite's time andsource_uribeside the first write's channel.
Backlinks answer the same for a page you cannot read and a page that does not exist.
Fixed
get_backlinksnow looks for the target page only among the pages the caller may read. For a remote caller, a page it cannot read gets the same answer as a page that does not exist, with or without atypefilter. A page the caller cannot read also no longer hides a readable page with the same name in another source the caller may read. Trusted local callers get the same answers as before.
A shared skill convention file can no longer reach a wider audience through another skill's publication.
Fixed
- A file under
skills/conventions/is shared by every skill that holds it. Importing a skill proposal, or a remoteput_skill, that newly referenced such a file with a wider audience used to republish the other skills' copy to that audience. Submission and prepare now refuse it withlocal_conflictand write nothing. A request accepted by an older release is checked again at prepare. Content changes and narrower audiences still apply.
Shadow status can no longer read "measured" after a disk refuses an owed record and the shadow worker exits.
Fixed
- When the disk refused the owed record of a shadow session (a full disk, an I/O error) and the worker then exited, the serving command threw away the count it had not been able to write when it started the next worker, so
gbrain engine shadow statuscould read "measured" with samples in no file, even after the disk recovered. The command now keeps the exact record per session, retries it (every 0.1 s at first, slowing to every 5 s) until the disk takes it, publishes it at once when the process exits, and removes nothing while it is unwritten. The next shadow worker books what was never settled once, asuncomparable(receipt_orphaned). - The moment a record write fails, the command leaves a marker file,
write-pending.<session>.json, in the shadow state directory (a hard link to a file that is already there, its directory entry flushed). While a marker exists, status reads no evidence and names the file and the step to take. A marker stops the orphan booking, the settled-credit pruning and the removal of that session's owed file; samples that were already delivered are still settled as usual, and status stays blocked until the marker is gone. Every removal of an owed file (the worker's own finish, the orphan pass, the settlement pruning) now re-reads the record and the marker under the shadow tally lock before it deletes, and the command takes the same lock to publish a record and again to clear its marker, clearing it only once the record is durable, so a removal that was already under way cannot delete a newer record. The same lock covers a record written with no live worker, after the worker exited, or for a kept session; steady-state writes while a worker runs stay unlocked. - A sample refused while no worker runs (the restart backoff, a failed spawn), whose refusal could not be written down either, is now made owed in a record of its own (kept, marked and retried like any other) instead of waiting only in the sampler's memory. This applies once an evidence epoch exists; before that, the count of the failed refusal still rides on the next accepted line, as before.
Changed
gbrain engine shadow statusand the swap report printpending_markers(the paths) and the operator step when a marker exists: confirm the disk is healthy, delete the marker file, then restart shadow. On a managed or owner-operated brain, this step goes through Capy Workflow Improver, never to the brain's owner by hand. A running command removes its own marker once the record is durable, so the step is only needed for a marker left behind by a command that died while it held one; nothing else clears a marker.- Nothing about what counts as
comparablechanges, mirroring does not pause and no default changes.
Known limits
- The hard-link call itself can fail (a full disk can refuse a directory entry); the record is still kept and retried, but status cannot see it until the disk takes it.
- A serving process killed before its first failed write loses the samples it had accepted but not yet written down (the count is too low, and no mismatch is hidden). If it dies while a marker exists, the marker stays and status reads no evidence until an operator deletes it.
Shadow mode now compares page edits and the links added after a page save, the two most common writes it used to skip.
Fixed
- Editing an existing page through put_page or sync, and the mention links a put_page adds afterwards, were counted as not comparable, so they never counted toward the Rust swap check. They are now compared. Nothing to do on upgrade.
- A sampled write inside a transaction waits, for at most 2 seconds, for the calls that started before it, and the transaction's commit or rollback waits for every started write, so a sampled write is never sent after its transaction ends. If the wait is ever cut short, the sample is counted uncomparable with a named reason and the write goes through unchanged.
A new test fails when code sends statements straight to the database handle inside a transaction that shadow mode follows.
Changed
- Shadow mode only sees statements that go through the engine, so a statement sent directly to a transaction's database handle (
tx.sql,tx.db, or a cast form such as(tx as PostgresEngine).sql) can escape its pre-read protection. A new structural test scans every code path insrc/that starts at an engine transaction callback and fails on any such access, with the call chain that reached it. Three reviewed sites are listed with their reasons, and a second test fails if production code ever calls the index rebuild helper that one of them depends on. This is a test-only change; nothing runs differently for users.
Shadow mode now compares the page writes of a large Postgres sync or import, not only the ones the main connection makes.
Fixed
- A Postgres
gbrain syncthat imports on worker connections (a full sync at the default concurrency, an incremental sync of more than 100 files, or--concurrencyabove 1) orgbrain import --workers Nwith N above 1 wrote through extra connections that shadow mode never saw, so none of those saves were sampled, followed into the Rust store or counted toward the swap check. Each worker that opened the same database as the main connection now shares its mirror, follower and writer observer and has its own write sampler, which finishes its read-backs before the worker disconnects. Nothing to do on upgrade. - A parallel sync whose worker fails now stops the other workers taking new files and lets each finish its current file before any connection closes, as
gbrain importalready did.
[0.60.779.0] - 2026-11-27
Three intermittent test failures are fixed at their cause, and the crash robot now records what the page and its facts rows looked like when it reports a facts-fence drift.
Fixed
- The zombie-process test in the upgrade-restart supervisor suite no longer fails with ENOENT on
/proc/<pid>/stat: its background child now stays alive until the holder shell has exec'dsleep, so the shell can never reap it first. - The supervisor configuration test for a worker resumed by the startup timeout signal no longer loses the signal on a slow machine. The worker now registers its SIGTERM handler before it loads the readiness module, and the test uses the production kill grace.
- The sync drain claims test for the live stall line no longer loses its parked step to the owner's lease renewal. The parked preparer now enters the step on its claim-phase clock, as a real preparer does. The
consumer:preparingfault point now carries that clock.
Changed
- When the crash robot reports a facts fence that disagrees with its facts rows, the report now says whether the stored page body holds each claim, the revision the read and the stored page carry, the facts rows' ids and row numbers, which page versions held the claim, and the last write requests on the page (#7651).
Claude Code agents now see the correct tool, so a standing rule the user states is saved as a rule instead of as an ordinary fact.
Fixed
- Claude Code's default registration (
gbrain serve --surface starter --advertise verbs) listed only the seven memory verbs andrequest_tools.correctwas callable but never listed, so agents told "keep this as a standing rule" saved it withrememberandforgetinstead. A verbs listing on a wider surface (starter or full) now also listscorrectwhen the connection can call it.gbrain serve --surface verbsis unchanged: it lists and accepts exactly the seven memory verbs. correct's tool description now says to call it only when the user corrects a wrong fact or asks for a standing rule, that over MCP the rule often waits for the owner's approval before anything changes, and to callrememberfor anything else the user wants saved. Agents had been callingcorrectfor a plain "remember this", which left the fact unsaved until the owner approved a rule.
Shadow status can no longer read "measured" while a sampled write is unaccounted for, whatever kills a worker.
Fixed
- After a host crash, a killed shadow worker, a worker whose results could not be saved, or a disk that stopped taking writes,
gbrain engine shadow statuscould read "measured" while some sampled writes were in no count. The proof that nothing was missing (a sent count, a warning line) was not tied to the results it vouched for. Each session now has a durable record of how many samples were handed to its worker, written before any of them is sent, and the worker settles each sample in the same atomic write as the count it adds. Status reads "measured" only when, for every session, nothing owed is unsettled; a session with nothing in flight blocks nothing, so a long-running brain still reads "measured" between samples. - A worker whose evidence epoch was replaced by a newer worker's no longer leaves its session blocked for as long as it runs, because its results are handed to the new owner as lost lines that name the session.
- A shadow save that had landed in the file but not on disk (its directory flush failed) could be reported as saved at the next try without ever being flushed. It is now flushed first.
- A client or replaced worker's lost lines are numbered, so a write that fails part-way and is retried whole credits each line once. A shadow save that could not read the evidence epoch manifest for a moment no longer ends the worker's saves for good; only a manifest naming a different epoch does.
- A refused-sample count too large for one line (over 10,000) no longer settles more samples than the line was owed. The sampler puts at most 10,000 on a line and sends the rest at once as loss-only lines in the same flush (each such line counts as one more uncomparable sample), and the supervisor and the worker count a line's weight by one rule (
droppedWeight). If the pipe refuses one of those lines, what is left is made owed in the durable record at once (supervisor.owe), so status reads the session as unsettled until the worker books it as lost. When there is no running worker to owe it to, the remainder rides the next accepted line instead. A swap eligibility read that cannot read the evidence epoch manifest (a torn or unreadable file, as opposed to no epoch yet) now counts as an unknown write path and refuses, instead of falling back to the 7-day window. The status document hands the one manifest read it makes for the eligibility check to that check. - A write line the worker could not read is counted once as
uncomparable(line_unreadable), so it cannot hold its session open.
Changed
- A sent count (
write-sent.*) is replaced by an owed record (write-owed.<session>.json).gbrain engine shadow status --jsonlists unsettled sessions asoutstanding_sessions(at most 8) and counts each once inunresolved_replays. Receipts, warning lines and lost lines with no session from an older version are still read, and read as no evidence for the epoch. - A session whose worker is gone (it was seen to exit, its process is not running, or its record is closed or abandoned for more than 10 minutes) is settled by the next shadow worker that owns the store: what it never settled is added once as
uncomparablewith reasonreceipt_orphaned. A worker whose saves keep failing for 60 seconds while it holds results it could not save exits, and its replacement books them. A client or replaced worker writes its lost lines at most every 2 seconds, not once per 256 results. gbrain engine swap --to rust --planwaits up to 60 seconds for a moment when every sample is settled and takes the first such read; if there is none, criterion 5 reads "brain busy: no 60 s lull with all samples settled; retry when idle". The worker keeps up only below about 19 samples a second on the machine this was measured on, so a brain that writes faster than that never has such a moment, and a long sync-import holds the check closed until it finishes.- A new nullable column
write_protocolonengine_writer_observationsrecords which build wrote each writer row (this build writes 2). The swap's writer check (criterion 11) counts a row seen since the current evidence epoch began (not only the last 7 days) with no value, or a lower one, as an unknown write path and refuses. No row is rewritten and nothing is backfilled. On a brain where the migration has not run, the check cannot read the evidence and the swap refuses. - The shadow comparator version is bumped, so the next shadow worker opens a new evidence epoch; shadow days restart for brains running this build.
- Nothing about what counts as
comparablechanges, and a lost or uncompared sample is never counted as compared. The comparison bar and the sampling defaults are unchanged.
Known limits
- A serving process that is killed outright loses the samples it had accepted but not yet handed to the pipe. The count is too low, and no mismatch is hidden.
- A command that exits while the disk still refuses its owed record loses the samples it had staged, with no count. The count is too low, and no mismatch is hidden.
- A reused process number can hold a session open for up to 10 minutes.
- A worker that dies in the middle of a replay counts that one sample twice, never fewer.
Shadow mode no longer undoes a save's own writes when one of its background reads fails.
Fixed
- While shadow mode follows a Postgres brain, the follower reads the rows a write is about to delete or re-key before the write runs. Inside a transaction it did that read in a savepoint, and rolling that savepoint back after a failed read (a statement timeout, a cancelled query) also undid statements the same save had sent meanwhile, such as the pipelined calls of
put_pageand sync. The save then committed without them, although each call had reported success. Now each transaction has a call lane. The read first waits for a nested transaction that is still running (without holding the others), then for the calls already running, each wait at most 2 seconds, holds later calls until its own write is sent, and only then opens its savepoint. A call ahead that is running a callback, or a call that does not finish in time, makes the read skip, so that write is described with a wider re-read and the save is untouched. The commit or rollback also waits until no read holds the lane, and at most 2 seconds for the calls the transaction started and did not await. - Calls inside a nested transaction and writes queued by write sampling go through the lane without waiting for themselves or for their own enclosing transaction, and a held call keeps the page scope it was called in.
Known limits
- Statements a caller sends straight to the transaction's database handle (
tx.sql,tx.db) are not seen by the lane, so a failed follower read can still undo them. A follow-up owns this. - A write started after an independent nested transaction that is still running can be sent ahead of a delayed write of an earlier call. This is the same on master, so it is not a change; the same follow-up owns it.
- With shadow mode off nothing changes. With it on, a save pays at most one round trip more when a read has to wait for a call ahead of it; the measured cost is in the pull request.