Skip to content

v30.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 12:38
· 10 commits to main since this release
Immutable release. Only release title and notes can be modified.
f7eea58

A major release bumping the brain format to version: 15, unifying jobs: and services: into loops: with bounded concurrent bf watch / bf run --due execution and single-flight protection, shipping core JSON Schemas inside bf (bf schema), adding agent-autonomy CLI commands (bf check, bf new, bf schema, bf emit) and token-efficient compact/slicing defaults (bf read, bf query, bf review, bf status, bf validate), normalizing source:id record links canonically, and replacing structlog with lean stdlib JSON lines plus incremental .bf/index.jsonl and .bf/cache/state.json caching. Existing Markdown notes and sensor memories/<source>/*.json files (without removed relations or invalid calendar dates) stay compatible once recompiled. Upgrade version: 14 brains by updating version: 15 in bf.yaml and evals/*.{yaml,yml,json}, merging jobs: and services: into loops: (adding daemon: true to services, converting emit: events -> emit: true, emit: messages -> emit: loop.message, and removing or setting emit: false for emit: none), updating job.*/service.* triggers and custom scripts reading .bf/<loop>.context.json ("job" -> "loop") or CLI JSON keys, removing unmodified local schemas/{bf.schema.json,record.json,evals.json} (or rebasing custom overrides against bf schema), ensuring any .env file is mode 0600, refreshing installed /bf skills (skills/bf/SKILL.md), and running bf check --force (bf build --force && bf validate && bf eval).

Breaking changes

  • Brain format bumped to version: 15: unified loops: orchestration (jobs: + services: -> loops:). Replaced jobs: and services: with a single loops: mapping supporting any run: [argv...] (sensors, routines, git hooks, continuous daemon: true listeners, and thinking/LLM agent loops), single or list schedule: entries, .bf/events.jsonl triggers, and simplified emit: false | true | <kind> on both daemon and cycle loops (loop.succeeded, loop.failed, loop.event, or custom event kind). loops is now a reserved source name (RESERVED_SOURCES), and loop names events and cache are reserved. Migrate version: 14 brains by updating version: 15 in bf.yaml and evals/*.{yaml,yml,json}, merging jobs: and services: under loops: (adding daemon: true to services, converting emit: events -> emit: true, emit: messages -> emit: loop.message, and removing emit: none or setting emit: false — leaving emit: none emits literal "none" events), and updating job.*/service.* triggers to loop.*.
  • Package-owned core schemas, stricter record/date schemas, & removed starter docs/index.md. bf init now scaffolds only schemas/concepts.json and drops docs/index.md (core schemas bf, record, concepts, evals ship inside bf via bf schema); RECORD_SCHEMA forbids legacy relations ("relations": false), requires "id" only for kind == "memory", and tightens calendar-date patterns in RECORD_SCHEMA/CONCEPTS_SCHEMA. Remove unmodified local schemas/{bf.schema.json,record.json,evals.json} copies or rebase custom overrides against bf schema.
  • Compact compiled notes and CLI/MCP/runtime JSON reply updates. Compiled notes (memories/{projects,concepts,actions}/*.json) now drop redundant "id" and omit empty optional fields (bf build --force / bf check --force refreshes them on upgrade). bf read <note> returns compact {title, status, updated, meta, headings, tasks, links, text} by default (pass --full for the full compiled record) and bf read <note>#<anchor> returns "markdown" instead of "text"; bf review renames "actions" -> "actions_open" and "tasks_open" -> "total_tasks_open", caps "newer" at 5, and bounds output (--limit 20 / --all); bf status returns compact counts (notes, records, sources, loops), sets attention[].kind to "loop", and hides full per-loop maps behind --all; bf validate defaults to --limit 50 (--all for full list); bf run renames "job" -> "loop", bf watch tick JSON renames "jobs_ran" -> "loops_ran", .bf/<loop>.context.json renames "job" -> "loop", daemon BF_TRIGGER changes "service" -> "daemon", and bf eval TARGET unknown-target exits 1.
  • Environment precedence & private 0600 .env enforcement. Environment precedence is now os.environ (allowlist) < bf.yaml env: < .env < loops.<name>.env: < protected BF_* (per-loop env: overrides .env), and .env must be owned by geteuid() with mode 0600.

Added

  • Agent-autonomy & token-efficiency CLI commands and flags. Added bf check [--strict] [--force] (build + validate + eval), bf new concept|project|action <slug> [--title] [--type] [--status], bf schema [NAME], and bf emit KIND [--source NAME] [--data JSON] [--dedupe], plus --outline, --lines, --fields, --max-bytes, --raw, --full on bf read, combined rg + --jq, --kind, --source, --fields, --format json|jsonl|tsv on bf query/bf review (review jsonl/tsv rows include "section": "stale"|"action_open"), and bounded concurrent execution (watch.concurrency, default 4, with per-loop single-flight in bf watch).
  • Human-readable source:id input links normalized canonically. Markdown prose, note frontmatter, and sensor JSON links accept <source>:<id> (and bf:///<source>:<id>) alongside memories/<source>/<sha256>.json, normalizing every stored kind: "record" link to canonical memories/<source>/<sha256>.json.

Changed

  • Performance, read-only rigor, & lean runtime. Dropped structlog in favor of stdlib JSON lines, deferred heavy imports (yaml, jsonschema, croniter, markdown, rich, watchfiles, mcp) for fast cold start, added incremental .bf/index.jsonl + .bf/cache/state.json digest caching, batched directory fsync on builds and ingests, and kept bf validate free of note compilation / memories/ mutation and bf mcp strictly read-only.