Repository navigation
v30.0.0
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: unifiedloops:orchestration (jobs:+services:->loops:). Replacedjobs:andservices:with a singleloops:mapping supporting anyrun: [argv...](sensors, routines, git hooks, continuousdaemon: truelisteners, and thinking/LLM agent loops), single or listschedule:entries,.bf/events.jsonltriggers, and simplifiedemit: false | true | <kind>on both daemon and cycle loops (loop.succeeded,loop.failed,loop.event, or custom event kind).loopsis now a reserved source name (RESERVED_SOURCES), and loop nameseventsandcacheare reserved. Migrateversion: 14brains by updatingversion: 15inbf.yamlandevals/*.{yaml,yml,json}, mergingjobs:andservices:underloops:(addingdaemon: trueto services, convertingemit: events->emit: true,emit: messages->emit: loop.message, and removingemit: noneor settingemit: false— leavingemit: noneemits literal"none"events), and updatingjob.*/service.*triggers toloop.*. - Package-owned core schemas, stricter record/date schemas, & removed starter
docs/index.md.bf initnow scaffolds onlyschemas/concepts.jsonand dropsdocs/index.md(core schemasbf,record,concepts,evalsship insidebfviabf schema);RECORD_SCHEMAforbids legacyrelations("relations": false), requires"id"only forkind == "memory", and tightens calendar-date patterns inRECORD_SCHEMA/CONCEPTS_SCHEMA. Remove unmodified localschemas/{bf.schema.json,record.json,evals.json}copies or rebase custom overrides againstbf 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 --forcerefreshes them on upgrade).bf read <note>returns compact{title, status, updated, meta, headings, tasks, links, text}by default (pass--fullfor the full compiled record) andbf read <note>#<anchor>returns"markdown"instead of"text";bf reviewrenames"actions"->"actions_open"and"tasks_open"->"total_tasks_open", caps"newer"at 5, and bounds output (--limit 20/--all);bf statusreturns compactcounts(notes,records,sources,loops), setsattention[].kindto"loop", and hides full per-loop maps behind--all;bf validatedefaults to--limit 50(--allfor full list);bf runrenames"job"->"loop",bf watchtick JSON renames"jobs_ran"->"loops_ran",.bf/<loop>.context.jsonrenames"job"->"loop", daemonBF_TRIGGERchanges"service"->"daemon", andbf eval TARGETunknown-target exits1. - Environment precedence & private
0600.envenforcement. Environment precedence is nowos.environ(allowlist) <bf.yaml env:<.env<loops.<name>.env:< protectedBF_*(per-loopenv:overrides.env), and.envmust be owned bygeteuid()with mode0600.
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], andbf emit KIND [--source NAME] [--data JSON] [--dedupe], plus--outline,--lines,--fields,--max-bytes,--raw,--fullonbf read, combinedrg+--jq,--kind,--source,--fields,--format json|jsonl|tsvonbf query/bf review(reviewjsonl/tsvrows include"section": "stale"|"action_open"), and bounded concurrent execution (watch.concurrency, default4, with per-loop single-flight inbf watch). - Human-readable
source:idinput links normalized canonically. Markdown prose, note frontmatter, and sensor JSONlinksaccept<source>:<id>(andbf:///<source>:<id>) alongsidememories/<source>/<sha256>.json, normalizing every storedkind: "record"link to canonicalmemories/<source>/<sha256>.json.
Changed
- Performance, read-only rigor, & lean runtime. Dropped
structlogin 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.jsondigest caching, batched directoryfsyncon builds and ingests, and keptbf validatefree of note compilation /memories/mutation andbf mcpstrictly read-only.