Skip to content

v21.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:28
· 29 commits to main since this release
Immutable release. Only release title and notes can be modified.
8d38c2a

A minor release. The brain format (version: 8), bf.yaml and the queue format are unchanged; the search and read reply schemas gain two optional fields, generated and degraded, bf status replies gain a published schema, sensors may report what they missed, and the search cache rebuilds itself once because its format changed. Run bf skills DIR to update installed skills, and copy the example programs you use again from the release tag to get their changes. An existing brain can merge the new AGENTS.md template once to gain its ## Your rules heading and its instruction to load bf-use first (refresh brain instructions); nothing else needs an upgrade step. After a sensor reports incomplete, its run history no longer loads in 21.3.0 or earlier, so a downgrade loses that sensor's local run history.

Fixed

  • A new assistant schedule no longer fails bf status --check before it is due. A schedule that has not run yet still shows freshness: never, but joins attention only once it is due, when watch would start it: a mon–fri schedule at: "07:30" declared on Sunday evening stays out until Monday at 07:30. The watch dashboard counts it the same way. Sensors and routines with no success are due at once, as before.
  • word* prefixes find words that English stemming shortens or respells. pay* now finds payment, key* finds keyboard, organi* finds organization and evaluat* finds évaluation; before, they matched nothing and showed in unmatched. A prefix of three or more letters adds the stems of up to 64 words it begins. The cache now counts each word that stemming changes beside its stem, and a refresh forgets a word once no note or record holds it, so the matches equal a full build's; hence the rebuild. The retrieval reference explains prefixes, folded accents, split elisions and irregular forms such as cheval and chevaux.
  • Documentation and skills. The assistant guide's gate examples use the shipped records gate instead of scripts you had to write, say a gate reads records through bf export --kind items --scope memories/SOURCE filtered on observed, and say bf run never runs a gate. Retry advice no longer relies on prompt text: idempotent: [schedule, wake] is safe only when the harness's arguments stop those runs from acting, because a retry reruns every tool the failed attempt used. The export reference's sample shows updated and observed and says the export lists only single-value fields. The status, retrieval and skill references say a program that never succeeded needs attention once it is due.

Added

  • Search results and exact reads mark assistant records with "generated":true. The optional field, in both reply schemas, marks the model output of an assistant the brain's bf.yaml declares; to keep a retired assistant's records marked, leave it declared with enabled: false. Later text pages of a large record repeat it; listings leave it out. The MCP instructions, the retrieval reference and the bf-use evidence guide say never to cite such a record as the source of a fact: read what it cites.
  • New brains type parent items and labels. bf init declares two more standard fields: part-of, from /attributes/parent_refs, and label, from /attributes/label_refs. The Drive folders, Gmail headers and GitHub issues example sensors print them: Drive parents as drive:ID, the Gmail thread as gmail-thread:THREAD, Gmail labels as gmail-label:ID and GitHub labels as lowercase label:github.com/OWNER/REPO/NAME. Their existing links and labels attributes stay. An older brain declares the two fields under fields: to use them, as each sensor's header shows.
  • bf init links new files to their editor schemas. A new bf.yaml and evals/retrieval.yaml carry a # yaml-language-server: $schema= line naming the schema published with the installed release, so editors flag a misspelled key, such as refesh, as you type. Only the editor downloads the schema; BF stays offline. An older brain can add the line by hand, with the version bf --version names (editor schemas).
  • New brains keep your agent rules apart from BF's guidance. bf init ends AGENTS.md with a ## Your rules heading. A refresh replaces only the text above it, so a diff against a scratch bf init copy shows your rules as additions.
  • The sensor kit reads credentials with secret(path). It returns the content of a regular file you own and only you can read, such as with mode 600, outside the brain and at most 64 KiB, without its trailing newline. It refuses links, shared permissions and files inside BF_BRAIN, and its errors never quote the content. Credentials ranks the options: a provider CLI login, a private file passed by path, then the OS keyring for interactive sessions only. A recipe sets per-program variables, such as a provider account, with env, and the service guide warns that systemd and launchd units set only PATH, so shell profile variables are absent there.
  • A copy-in records gate for event-driven assistants. examples/routines/records-gate.py reports, once, each record a source gained or changed since the schedule's last check, named by its bf:// address, so your harness runs only when evidence changed. It streams bf export --kind items --scope memories/SOURCE (bf 21.3.0 or later), filters single-value fields with --where FIELD=VALUE and fails closed without quoting records; its guide measures the cost of a check and lists its limits. The four-tool walkthrough adds a gated watcher: its stand-in harness answers once for the first collection, a recheck that finds nothing starts no harness, and the harness answers again after the Jira change. From a checkout, it now puts the checkout's .venv/bin first on PATH instead of using uv run --project.
  • The assistant guide starts small and separates proposing from acting. Start with one assistant sets up a weekday morning brief with a read-only harness, posted through the new send-only desktop adapter, examples/channels/channels/desktop.py, which shows each message with notify-send or osascript and passes the text only as arguments, never as script code; process listings show those arguments while the notifier runs. Propose, then act splits an assistant into a read-only scout that posts numbered proposals and an actor with wider permissions that answers your reply, such as do 2; the messaging example runs both offline. With one assistant, examples/prompts/routines/harness.py adds the arguments you name only when BF_TRIGGER is input, so other runs keep the narrower command. Review what a run changed matches bf queue job times to the brain's Git history.
  • Trust boundaries and team reviews. Privacy and security separates what BF enforces from what your channel adapters, agent harness and reviews must enforce, for the owner, admitted senders, teammates, provider content, the harness and MCP hosts; SECURITY.md links it. Team setup replaces git pull with fetch, review, then git merge --ff-only of exactly the reviewed commit, listing every incoming change except notes and records and every agent instruction file. It also explains how to give a cloud agent only a team brain. Connect an agent with MCP adds goose and explains why BF serves only local stdio with search and read.
  • Brain-local workflow skills. Add your own workflow skills covers the skills/NAME/SKILL.md layout, lookups through the installed bf, per-machine links into a host folder kept out of Git and the skills-ref validator. examples/brain/skills/weekly-review/ shows one.
  • Reference pages for newcomers. Versioning and stability says what each kind of release may change and when the brain format version moves. Core concepts maps terms from other assistants, such as connector, memory and trigger, to BF, and the glossary gains Gate, Harness, Mode, Ontology, Post, Queue, Routine, Schedule, Wake and Watch. The schema page calls the field vocabulary the ontology, keeps its old anchor and maps ontology terms to BF, stating that BF runs no reasoner. Linking knowledge adds recipes for people, organizations and a concepts/me.md hub, and getting started points Windows users to WSL2.
  • Governance. GOVERNANCE.md names the maintainer and says how to propose a change. It lists each scope decision with its reason and the evidence that would reopen it, and the breaks held for the next major release. Contributing adds a pull request policy, maps each area to its files and focused tests, and states that bf.* Python modules are internal and may change in any release. The feature request form asks which scope decision a request crosses.
  • Sensors can report what they missed instead of failing. A sensor may print {"records": [...], "incomplete": {"missed": 1, "of": 3}}: BF saves the records, removes none that run (snapshots and expire_after wait for a complete run; forgotten records still leave) and repeats incomplete in the reply. bf status, search coverage and memories pages show "degraded": {"runs", "missed", "of"}; after three incomplete runs in a row a scheduled source joins attention, which fails bf status --check and shows in bf watch. The kit's emit(records, missed=, of=) prints it (report partial coverage).
  • bf status replies have a published schema. bf schema --kind status-reply prints it, and docs/status-reply.schema.json joins the major-21 contract, so scripts that parse bf status can validate it.

Changed

  • bf.yaml mistakes read plainly. An unknown key reads unknown key and names the closest keys allowed at its place, such as sensors.brief.refesh: unknown key; did you mean refresh?, instead of Extra inputs are not permitted; evaluation suites and the registry do the same. A malformed at, path or command says what it expects, such as expected HH:MM such as 08:00, instead of a raw pattern. Values are never quoted, and provider output keeps its redacted messages. The bf.yaml schema now describes every key, so editors also show help for channels, assistant inputs and schedules.
  • The Git history sensor and the session hook recognize repositories on any host. examples/sensors/git-history.py and examples/hooks/session-context.py link https://HOST/OWNER/NAME, ssh://git@HOST/OWNER/NAME and git@HOST:OWNER/NAME remotes as lowercase repo:HOST/OWNER/NAME, instead of github.com only. A remote with a token or another user, a port, a nested group or an ssh alias without a dot gets no identity, so no credential reaches a record or the session context. GitHub identities are unchanged; copy the hook again to use this.
  • Skills and brain instructions. bf-use names "what needs my attention" and "brief me" and starts those answers from bf read. bf-maintain points to the credentials order, the records gate, choosing inputs, propose-then-act, reviewing what a run changed and the ## Your rules refresh. The generated AGENTS.md asks agents to load bf-use before answering, keeping its steps for hosts without skills, says the same in fewer words and describes bf read as showing what needs attention; in the skill evaluation (sonnet, 5 trials per case), the five cases 21.3.0 also has pass 23 of 25 trials instead of 15 of 25, both new cases pass 5 of 5, and every read question now loads bf-use. The example brain's AGENTS.md is now the generated starter plus one local rule, so skill evaluations load what a new brain loads.
  • The sample assistant prompt and the full configuration act more carefully. On schedules and wakes, the prompt speaks only when a decision, deadline or conflict needs you within two days; it runs only bf read and bf search, drafts anything else and asks for a wake only for a dated follow-up. The offline example's prompt gains the same rules. The full configuration no longer answers an inbox: mail arrives through a sensor and a records gate, and answers go to your own chat. Choose inputs says to declare a channel as an input only when every sender its adapter admits may read what the harness can read.
  • Positioning and package metadata. The README, the documentation home and the PyPI summary open with one sentence: a local-first brain for you and your AI agents, in plain files you own, connected through an ontology you declare, searched offline and able to wake your harness when a gate you review finds an event. The README adds three differentiators and a "Let your agent come to you" section. PyPI gains keywords such as knowledge-graph and ontology, an audience, two topics and a link to the security policy.
  • Repository checks. The scale benchmark times a prefix search and reports cache_bytes, the size of a fresh full build. The skill evaluation gains two cases, an instruction planted in a note and an attention brief, and a write setup step confined to the trial brain; the release checklist asks for before-and-after evaluation summaries when a packaged skill changes.