Repository navigation
v26.0.0
A major architectural simplification aligning Brain Framework around three formats (YAML for config, pure JSON for records, Markdown for humans), flat brain folders, user-owned JSON Schemas (schemas/{record,concepts,logs,evals}.json + schemas/<source>.json), Python-Markdown (attr_list, extra, toc, admonition, sane_lists), two clean link conventions (relative paths in Markdown prose and RFC 3986 bf:// URLs in note frontmatter), humanized durations (durationpy), standard CLI retrieval (rg, jq, sandboxed duckdb), declarative bf.yaml orchestration (defaults, jobs, channels, servers, watch + optional .env), read-only bf mcp, and DEFAULT_BRAIN_PATH (zero global config). Update bf.yaml and evals/*.yaml to version: 12, seed schemas/{record,concepts,logs,evals}.json and docs/index.md from a fresh bf init, run bf build && bf validate && bf eval, and refresh installed /bf skills (skills/bf/SKILL.md); see the breaking changes below.
Breaking changes
- Brain format bumped to
version: 12with declarativedefaults,jobs,channels,servers, andwatch(bf.yaml), humanized durations,.env, and zero global config.bf.yamlremovesfields:ontology definitions,harness:,defaults.post, and~/.config/bf/config.yaml(bf register/bf unregister); brain selection resolves--brain PATH->BF_BRAIN-> enclosingbf.yaml->DEFAULT_BRAIN_PATH.bf.yamlorganizesdefaults(timezoneandenv: {KEY: value}with{{brain}}/{{home}}/{{state}}expansion, plus optional gitignored.env), one-shotjobs:(run+ optionalinput:stdin/{{input}}+ingest:{source, mode, allow_removal}+ outboundchannel:, triggered byevery,at+days+timezone,eventswithjq -efilters, orhook), bidirectionalchannels:(listen+send), constant daemonservers:(run, e.g.[bf, mcp, --transport, http, --port, "8765"]), andwatch:(interval,debounce), accepting humanized durations (300ms,15m,1h30m,1d,1w) everywhere. - Pure JSON record & log storage (
memories/**/*.json+logs/*.json) replaces SQLite databases and JSONL catalogs. Removed.bf/cache.sqlite3,.bf/runtime.sqlite3,.bf/usage.sqlite3, andmemories/*.jsonl.bf buildcompiles OKF Markdown notes intomemories/{concepts,projects,actions}/<slug>.json(preserving frontmatter +headings+ keyedattrs+elements+links+tasks),bf ingest <source>writes individualmemories/<source>/<sha256(id)>.jsonfiles honoring.forgottenand{"records": [...], "incomplete": {"missed": N}}envelopes, and runtime state/events live inlogs/<name>.jsonandlogs/events.jsonvalidated byschemas/logs.json. - Two link conventions (relative Markdown paths +
bf://URLs), external query tools (rg,jq,duckdb), and flattened documentation. Authored Markdown notes use relative paths in prose (../concepts/foo.md#sec,../memories/<source>/<sha256>.json) and requirebf://or external URLs in frontmatter (links,sources,relations), dropping legacysource:idand 2-slashbf://concepts/...note links (bf readstill resolvessource:idon the CLI).bf querydelegates lexical search torg, JSON filtering tojq, and analytical SQL to sandboxedduckdb(CREATE TEMP TABLE recordsbeforeenable_external_access = falseandlock_configuration = true). Documentation flattensdocs/docs/*.mdintodocs/*.mdwithredirect_mapspreserving legacy URLs, andexamples/sensors/curates 5 stdlib examples (including circularagent-telemetry.pyreplacingusage.sqlite3).
Added
- User-owned JSON Schemas (
schemas/), humanizedstale_after, and deterministicbf eval.bf initseeds Draft 2020-12schemas/{record,concepts,logs,evals}.jsonplus starterdocs/index.mdandevals/smoke.yaml; user edits toschemas/concepts.jsonand optionalschemas/<source>.jsonenforce custom metadata contracts without hardcoded frontmatter checks, andstale_afteraccepts humanized durations (14d,90d) alongside integer days and ISO dates. - Read-only
bf mcp,bf action, andwatchfiles+ Richbf watch.bf mcpexposesbf_review,bf_read,bf_query, andbf_validateoverstdioor localhost Streamable HTTP (--transport http, or supervised viaservers.<name>.run: [bf, mcp, --transport, http, --port, "8765"]inbf watch) with local path redaction;bf actioncreates or reusesactions/YYYY-MM-DD_<slug>/ACTION.md; andbf watchsupervises file rebuilds, scheduled/event jobs, channels, and servers with a Rich TUI dashboard.