Repository navigation
v21.3.0
·
44 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
A minor release. The brain format (version: 8), the reply schemas (apart from one description), the queue format and the search cache are unchanged, though period pages return fewer fields per changed record; bf.yaml accepts one more form, so no upgrade step is needed. Run bf skills DIR to update installed skills.
Fixed
- Text truncation no longer stops
bf update. A sensor withtruncate_textormax_text_bytesthat printed an oversized record withoutattributesraised a traceback that aborted the whole cycle; the record is now cut and stored. Cut text also setsattributes.partial: truebesidetruncated: true, so search, read and the evidence helper report it as incomplete, and text holding a lone surrogate gets the record's field diagnostic instead of "collector files are inaccessible". - Parallel searches after an edit return fresh results. When several searches ran at once, as an agent's parallel tool calls do, most came back
staleand missed the edit with no writer active. A search or read now waits up to 2 seconds for the others' refresh and answersstaleonly when a writer holds the brain longer; behind a writer it therefore answers after about 2 seconds instead of at once, and an exact record read still answers within 3. - A
logroutine no longer waits for the brain's readers.bf run --hook pre-commitfailed after 120 seconds while a longbf validateor a collection held the brain; run history now has its own lock, only writing an action waits, and a routine's failure is saved even when the brain is busy. - Stopping a parallel update no longer marks its sensors failed. Ctrl-C, SIGTERM or a watch stop with two or more running sensors saved an error, a failure count and a backoff for each, unlike a single sensor.
- An assistant answer that cannot become a record fails its attempt, not its job. Output with an escaped lone surrogate, or more than 2 MiB outside the message, was saved and then failed on every retry; now nothing is saved and the job becomes
uncertain, or retries by itself whenidempotent. - A send receipt naming another conversation stays
uncertainon every channel. Idempotent channels retried it about 20 times and then released the conversation, which could post to the wrong place again. bf statusreports a missedatschedule asoverdue. A wall-clock assistant schedule always showedfresh; it now turnsoverdue, and failsbf status --check, once a slot after its last success passes plus itseverygrace.bf validatechecks assistant schedule gates: a gate must name an existing script and{{lines:FILE}}file, like any other program.- Commented-out assistant schedules load. A
schedules:key whose entries are all commented out madebf.yamlinvalid; it now reads as no schedules, as other optional maps do. bf export --kind itemskeeps text and metadata together. A file that changed or became unreadable after the cache refreshed paired the cached title and fields with its newer text; its line now leaves outtext, as documented, and stderr says so.- Exact reads and recovery steps. A note whose entity or alias is
bf://NAME/actions/SLUGis read by that address when no action folder answers, and the error for a reference found in several brains points to abf searchresult'suriinstead of a brain-qualified address that fails for an alias such asrepo:x. - Command-line input.
bf run NAME --stdinchecks the name before reading input;bf channel send --stdinreports input over 1 MiB or a pipe still open after 10 seconds with that reason (exit 1) instead of invalid JSON (exit 2);bf collect --inputno longer expands the sensor's command, so a fixture check works without its line files or HOME; andbf collect --helpsays--inputaccepts a disabled sensor. - Smaller fixes. An untraversable assistant
reply.pathgives the documented reply error;bf statusshowsforgottenandexpiredonly when the last run had them;forbid_patternsproblems number lines as an editor does;bf forgetreportslistedas it was before the call; abf.yamldiagnostic no longer echoes an unknown channelmode; and an empty--sinceonbf channel readno longer claims it would collect the default window. - Example programs. The sensor kit's
fetchstops at its timeout while a server trickles the body, andrecord()replaces lone surrogates in titles, text and attributes instead of failing the whole collection;github-issues.pylowercasesOWNER/REPOlikegithub-history.py: a brain that collected a mixed-case repository keeps those records under their old ids, so forget them withbf forgetand backfill withbf collect github-issues --since DATE;google-calendar.pymasks credential shapes in descriptions and locations. - Documentation and skills. The channels guide names
replyinstead of the removedtext, the exit-1 table listseval,export,channel sendandqueue ID --retry, the validate warnings list thestale_afterwarning, the schedule shape and{{lines:FILE}}are documented where they apply, and the prompts page recommends attaching{{prompt}}to its option. bf-maintain says which work retries by itself, and bf-use says the guarded-write helper takes an absolute path outside the brain.
Added
bf export --scope SCOPEexports only what a search with that scope would search. It takes the same scopes asbf search --scope, such asmemories/gmail,memories/gmail/7d,projectsor7d repo:github.com/owner/name, and fails the same way.bf export --kind items --scope memories/SOURCEgives a script or routine every record of one source in one stream, with no page to follow, instead of readingmemories/files; with--kind edgesor--kind identities, a scope keeps what its items assert or answer to.bf export --kind itemsmarks incomplete records with"partial":true, as search and read already do.
Changed
- BF gives a program 5 seconds to clean up before killing it. When a run ends, times out, overflows
max_bytesor is cancelled, and when watch stops a stream adapter, BF sends SIGTERM to the program's process group, waits up to 5 seconds, then sends SIGKILL to what remains, so a sensor can remove a private temporary copy in a SIGTERM handler. A run lasts at most itstimeoutplus this grace, programs stopped together share one grace, and a run BF stops still fails with its cause, such asprogram timed out after 300s. The sensor kit shows the handler and bf-maintain points to it; the local documents example uses it for its private PDF copy. - Period pages leave more room for their items.
bf read 7d,bf read 2026-10and other period pages list eachchangedrecord with onlyref,kind,title,timeandupdated, as the home page does; read a ref for its excerpt, URL and fields. With twenty long changed records, a page now holds its 50 items instead of 15. - The assistant queue no longer writes lifecycle events that nothing reads, saving one durable transaction per job start.
- Dependencies and repository checks. pymdown-extensions 13.0 and sse-starlette 3.7.0; the workflows pin mise 2026.11.4, which
mise.tomlnow requires; the weekly Security workflow ignores the exact fingerprints of synthetic credential URLs in pre-v20 history and runs each audit even when an earlier one fails;scripts/eval_skills.pygrades a session killed at--timeout; one timing-dependent test is now deterministic.