Skip to content

v22.0.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 10:43
· 25 commits to main since this release
Immutable release. Only release title and notes can be modified.
327d716

A major release focused on unattended autonomy, triage and leaner workflows. The persisted brain format and bf.yaml stay version: 8 (bf.yaml removes Sensor.truncate_text and combined every+at on assistant schedules, and adds when, at, propose, retries, input_args and schedule_args that 21.x rejects on downgrade); the status-reply, read-reply and assistant-reply schemas have breaking changes while search-reply stays compatible; .bf/ rebuilds automatically on first read or bf build; and $XDG_STATE_HOME/bf/runtime/*/queue.sqlite3 stays version: 2 while moving wake checkpoints to wake:<assistant>:<slot> (and routine when.sources cursors to routines.json, ignored by 21.x). Drain bf queue before upgrading (or downgrading, as queued jobs or wakes using v22 fields/keys are not read by 21.x), back up the brain and queue.sqlite3, apply the breaking-change adjustments below, refresh installed skills with bf skills ~/.agents/skills (or bf skills skills --link inside a personal brain), merge the updated AGENTS.md starter (refresh brain instructions), and re-copy any example sensors, routines, hooks or channels alongside their sibling _sensor.py or _bf.py helper.

Breaking changes

  • Assistant schedules require either every or at, never both. Remove every from wall-clock at: "HH:MM" entries under assistants.<name>.schedules (schedule requires either every or at, not both); unknown keys under schedules are rejected, at overdue grace defaults to 86,400 seconds, and bf status reports either every or at on each schedule.
  • Action-folder paths are rejected as identities. bf validate and collection reject bf://NAME/actions/SLUG in entity, aliases and URI resource fields (a BF path to an action folder in actions/ names its ACTION.md and no other subject; link to the action instead). Linking to an action folder and reading bf read actions/SLUG --rel ... continue to resolve to its ACTION.md.
  • Sensor.truncate_text and attributes.truncated are removed. Replace truncate_text: true in bf.yaml with explicit max_text_bytes: 4194304 (or a smaller byte ceiling); cut text sets only attributes.partial: true, and oversized text without max_text_bytes fails with set max_text_bytes on this sensor to cut longer text.
  • Boolean CLI flags are positive-only. Negative --no-* spellings (such as --no-dry-run or --no-check) are removed across all commands; omit the flag for the default false behavior.
  • examples/sensors/github-history.py emits singular kind values, and bf-action/scripts/new-action.py is replaced by bf action new. Updated github-history.py copies emit attributes.kind in {"commit", "issue", "pull-request"} and singular title prefixes (Issue: #N, Pull request: #N), keeping CLI subcommands (commits|issues|pulls) and record IDs unchanged. Replace direct calls to new-action.py with bf action new SLUG [--title ...] [--summary ...] [--unique].
  • Uniform attention items across bf status, Home and bf read review, and actions required in assistant-reply.schema.json. Polymorphic sensor, routine, assistant and channel keys in attention entries are replaced by {"kind": "sensor"|"routine"|"assistant"|"channel", "name": "...", "freshness": "..."} (with optional "failed": true, "silent": true and "degraded"). bf schema --kind assistant-reply requires ["say", "wake", "actions"] (actions: [] or null when proposing nothing) so strict structured-output decoders emit every field reliably.
  • Home actions lists open status: draft actions only. bf read (Home) surfaces only status: draft actions under actions, so marking a finished action status: stable clears it from the active inbox while keeping it in bf read actions and search.

Added

  • Declarative when: gates on assistant schedules and routines. Optional when: {sources?, review?, actions?, attention?} evaluates SQLite and program health offline with zero subprocesses, skips unmatched checks as gated, interleaves matched signal groups fairly into {{context}} events (up to 64 events / 64 KiB) on assistant schedules, advances sources cursors only after the scheduled run completes, and runs before custom gate: scripts when both are set (gates).
  • Trigger-scoped assistant arguments and wall-clock routines. Assistants gain input_args, schedule_args and per-schedule args (expanding {{schema}} and program placeholders), retiring examples/prompts/routines/harness.py. Routines gain wall-clock at: "HH:MM", days and timezone mutually exclusive with nonzero refresh (routine settings).
  • Self-healing schedules, tempfail retries, per-slot wakes and input failure notices. Assistants and schedules accept retries: 0..20 (default 3 when idempotent, else 0), and harness exit code 75 (EX_TEMPFAIL) retries with backoff up to max(retries, 3) (unless retries: 0) without entering uncertain. Terminal failed (never uncertain) scheduled assistant jobs are superseded at the next due window so periodic schedules recover after transient outages. Standalone bf channel send deliveries on send.idempotent: true channels retry automatically in bf watch and bf update. Wakes key per slot (wake:<assistant>:<slot>, up to 16 per assistant) and expose reason in bf queue. Channel-originated input jobs ending failed or uncertain enqueue [bf] <assistant> did not finish (<state>); run bf queue to inspect. on their reply thread.
  • Read-only action proposals (propose: true). Assistants with reply and propose: true accept up to 3 {slug, markdown} proposals in actions, validated through BF's OKF, ontology and broken-link checks and written as status: draft actions/YYYY-MM-DD_<slug>/ACTION.md notes without granting file-write tools to the harness (structured replies).
  • bf read review, richer bf export --kind items, JSONL collect, bf action and bf skills --link. bf read review returns paginated notes needing review (due, newer_evidence, future_modified, unknown_modified), up to 20 open draft actions (actions_total counts all open drafts; blocked_by lists up to 10 unresolved draft depends-on targets), and uniform attention. bf export --kind items adds multi-value values, stored record attributes and --observed-since TIME. bf collect accepts JSON Lines alongside JSON arrays on sensor stdout and --input. bf action new SLUG [--title ...] [--summary ...] [--unique] and bf action status SLUG draft|stable|deprecated manage action lifecycle atomically from the CLI. bf skills DIR --link inside a brain manages relative .agents/skills/bf-* and .claude/skills/bf-* symlinks.
  • Standard-library program kits (_sensor.py and _bf.py). examples/sensors/_sensor.py adds load_state/save_state, git_remote_identity, UTF-8 byte-safe text truncation and cli, and examples/{routines,hooks,channels/channels}/_bf.py provides shared window, state, bf_json/bf_pages/bf_export, text sanitization, gate/action emission and channel envelope helpers across all example programs.

Changed

  • Faster CLI startup, scheduled ticks and skill installs. bf --version fast-paths without importing Typer or Rich, bf.cli lazy-loads command runtimes, due_schedules batches SQLite queue reads into one transaction per tick, and bf skills syncs target directories once per skill instead of per file.
  • Leaner, more autonomous skills, starter instructions and documentation. AGENTS.md and bf-use orient sessions with bf read review, update owning projects/*.md notes after settled decisions and consolidate flagged notes into concepts/ (bf-use/references/ merged from 8 files into retrieval.md, learn.md, links.md and evidence.md); bf-action closes the loop with bf action new|status; and the packaged skills and user guides are ~35–45% shorter with zero duplicated harness boilerplate.

Fixed

  • Action folder section links, status edits and Typer 0.29+ compatibility. Links and reads targeting actions/YYYY-MM-DD_slug#section resolve section anchors, backlinks and bf validate checks cleanly; bf action status preserves existing frontmatter without duplicating YAML blocks; live collections stamp attributes.observed monotonically at commit time; and CLI option error hints work cleanly on typer>=0.27.2 (including 0.29+).