Skip to content

v31.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:32
· 9 commits to main since this release
Immutable release. Only release title and notes can be modified.
45c3e54

A major release bumping the brain format to version: 16 (decoupling evals/*.yaml to version: 1), refining bf.yaml (on:, window:, ingest:, string-only emit:, description, {{state}}, .env override precedence), folding bf validate and bf eval into bf check, replacing monolithic .bf/index.jsonl and .bf/cache/state.json with per-source .bf/cache/{index,validate}/<source>.json shards that decouple note builds from sensor corpora, unifying bf read ("text"), compiled note anchors, and bf mcp signatures (bf_query, bf_read, bf_check), and adding operational hygiene (bf status --prune, bf run --reset, skill_outdated checks, and on: daemon health resets). Existing Markdown notes and sensor memories/<source>/*.json files stay compatible once recompiled. Upgrade version: 15 brains by updating bf.yaml to version: 16 (and evals/*.{yaml,yml,json} to version: 1), moving schedule/events/hook under on: and daemon: true to on: daemon, moving lookback/overlap under window: {backfill, overlap}, changing ingest: <source> to ingest: upsert (or ingest: snapshot / {source, mode}), replacing emit: true with emit: loop.event and removing emit: false, replacing action: loops with ingest: snapshot into memories/<loop>/, passing prompt files directly in run: instead of input:/{{input}}, removing watch.debounce, ingest.allow_removal, and unmodified starter schemas/concepts.json, updating any scripts or prompts calling bf validate, bf eval, bf_validate, bf_query(mode=...), .attrs, or bf read "markdown"/"content", refreshing skills/bf/SKILL.md, and running bf status --prune && bf check --force.

Breaking changes

  • Brain format bumped to version: 16: cleaner bf.yaml (on:, window:, ingest:, string-only emit:, description, {{state}}) and local .env override precedence. Replaced flat loop trigger/window keys with on: daemon or on: {schedules?, events?, hooks?} (all three accept a single value or list; string shorthand supported for events; minProperties: 1 on Trigger/EventMatch/Window) and window: {backfill, overlap} (renaming lookback -> window.backfill). Defaulted ingest source to the loop name (ingest: upsert | snapshot or {source, mode}, rejecting reserved loop names on shorthand ingest), narrowed emit: to a string event kind (removing emit: true / emit: false), changed environment precedence so local gitignored .env overrides tracked loops.<name>.env: (host allowlist < bf.yaml env < loops.<name>.env < .env < BF_*), removed action:, input: ({{input}}, context.input), ingest.allow_removal (CLI bf ingest --allow-removal only), and watch.debounce (hardcoded 300ms), added optional description on the brain and each loop (surfaced in bf status), aligned {{state}} with BF_STATE_DIR (<brain>/.bf/<loop>), and encoded reserved loop/source names plus field descriptions/defaults across all published schemas.
  • Decoupled evals/*.{yaml,yml,json} schema to version: 1 and stopped scaffolding unmodified schemas/concepts.json. Evaluation suites now declare version: 1 independently of bf.yaml's format version (bf schema evals), and bf init no longer copies a redundant schemas/concepts.json (the bundled concepts schema applies automatically unless you create schemas/concepts.json to override it).
  • Folded bf validate and bf eval into bf check, dropped --source on bf query, and aligned MCP bf_query, bf_read, and bf_check with the CLI. bf check [TARGET] [--validate | --eval] [-n/--limit N] [--all] [--strict] [--force] replaces separate bf validate and bf eval subcommands (bf check --validate for read-only validation, bf check --eval [TARGET] for evals only). bf query drops redundant --source in favor of -s/--scope. bf mcp renames bf_validate -> bf_check(limit, strict, include_eval), replaces bf_query(q, mode, ...) with bf_query(pattern, jq, kind, scope, fields, limit) (supporting combined rg + jq filtering), and adds raw and full parameters to bf_read.
  • Renamed compiled note attrs -> anchors, unified bf read body keys to "text", and dropped legacy relations tombstone. Compiled note JSON files now store keyed attr_list metadata under anchors (omitting empty {} entries for plain headings without metadata while preserving optional links[].id); bf read returns body text under "text" across default note reads, #anchor sections, --raw, --lines, and plain files ("record" stays for --full and sensor records); and record.schema.json drops the legacy "relations": false tombstone.
  • Replaced .bf/index.jsonl and .bf/cache/state.json with per-source .bf/cache/{index,validate}/<source>.json shards. Run bf status --prune to remove retired .bf/index.jsonl and .bf/cache/state.json files after upgrading.

Added

  • Operational hygiene: bf status --prune, bf run --reset, and skills/bf/SKILL.md drift detection. bf status --prune deletes orphaned .bf/<loop>.json / .context.json files, stale per-source cache shards, and retired monolithic cache files; bf run --reset LOOP... clears saved state and context for named loops; and bf status / bf check --validate surface skill_outdated: true (warning in bf check, failing under --strict and bf status --check) when skills/bf/SKILL.md diverges from the installed bf package.
  • Brain & loop description, bf watch singleton lock, CLI polish, schema docs, and tracked ACTION.md. bf init accepts --description and emits # yaml-language-server: $schema=... on line 1; bf watch holds an exclusive .bf/watch.lock so two supervisors cannot race on the same brain; -n/--limit works consistently across query, review, and check; all 4 published schemas include field descriptions/defaults; bf.schema.json unwraps object-branch anyOf errors; and starter .gitignore tracks actions/*/ACTION.md while ignoring /actions/*/inputs/ and /actions/*/outputs/.

Fixed

  • Reset on: daemon failure counters after sustained healthy uptime. DaemonStream now clears consecutive_failures, clears error, resets restart backoff, and records last_success once a daemon stays up for >= 30s, instead of retaining stale failure counts until the process exits.

Changed

  • Per-source sharded caching, decoupled note builds, and bounded multi-source scans. bf build and sync_notes() now update only the three authored index shards (projects, concepts, actions) without scanning sensor corpora, authored_notes() no longer recurses into actions/*/inputs/ or outputs/, shard freshness uses DirEntry.stat(follow_symlinks=False) without opening unchanged files, and the 100,000-entry scan cap applies per source with a 1,000,000-entry total corpus bound.