Repository navigation
v27.0.0
·
14 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
A major release bumping the brain format to version: 13, simplifying bf.yaml (timezone, env, services, schedule, action), moving unit state into private .bf/state/ and structlog JSON lines into logs/*.log, removing DuckDB/--sql, bf action, and bf post, and standardizing CLI JSON envelopes ("ok": bool) and exit codes. Update bf.yaml and evals/*.yaml to version: 13, refresh schemas/{bf.schema.json,record.json,evals.json} from a temporary bf init directory (preserving customizations in schemas/concepts.json and schemas/<source>.json), remove schemas/logs.json, normalize any legacy memories/<source>/*.json records, and refresh installed /bf skills (skills/bf/SKILL.md); see the breaking changes below.
Breaking changes
- Brain format bumped to
version: 13: simplifiedbf.yaml(timezone,env,services,schedule,action). Flatteneddefaults: {timezone, env}into top-leveltimezoneandenv(dropping per-jobtimezone), renamedservers:toservices:, replacedJob.builtinwith literalrun: [bf, ...]commands (for example[bf, validate]), collapsedJob.every/at/daysinto a singleschedulestring or seconds backed by inline duration parsing +croniter, and replacedJob.emit+keepwith strictaction: {keep: N}(mutually exclusive withingest, which is also mutually exclusive withchannel). Updatebf.yamlandevals/*.yamltoversion: 13, refreshschemas/{bf.schema.json,record.json,evals.json}from a temporarybf initdirectory (preserving customizations inschemas/concepts.jsonandschemas/<source>.json), and removeschemas/logs.json. - Runtime state in
.bf/state/andstructlogJSON logs inlogs/*.log. Unit states (<name>.json, holdinglast_scheduledandevent_seq, plus<name>.context.jsonand<name>.stderr) and the event ring buffer (events.json) now live privately inside.bf/state/(0600), removingschemas/logs.json(LOGS_SCHEMA),logs/*.jsonschema validation inbf validate, and the{{cursor}}placeholder.bf run,bf watch, andbf ingestappend boundedstructlogJSON lines (time,severity,message) tologs/<name>.logandlogs/events.log. - Canonical
schemas/record.jsonwithout read-time enrichment. Storedmemories/**/*.jsonrecords now requireid,ref,source,kind, andtitle, plus normalizedLinkobjects inlinks(no raw string links or legacy_enrich_stored()fallback inbf query/bf read). Normalize any legacymemories/<source>/*.jsonrecords when migrating fromversion: 12. - Removed redundant commands (
bf action,bf post). Author plain Markdown underactions/directly; route replies and notifications throughjobs.<name>.channelor custom channel scripts instead ofbf postandjobs.post_message(replaced byjobs.send_channel_message). - Removed DuckDB /
--sqland#<jq>URL fragments.bf query,bf eval,bf mcp, andEVALS_SCHEMAnow supportrgandjqonly (bf evalsupportsrg,jq, andread). Droppedduckdbfrommise.toml.bf readandbf validatereject#anchorfragments on JSON records (InputError/ validation problem). - Required explicit targets and selectors.
bf read TARGETnow requires a target; foldercountsand failed-unitattentionmoved tobf status(and the newbf_statusMCP tool).bf runrequires exactly one selector (JOB ...,--due, or--hook);-- EXTRA_ARGS...applies only to--hookor a singleJOB. Removedbf watch --once. - Standardized output envelopes and exit codes.
bf build,bf validate,bf review,bf eval,bf run,bf status, andbf watchall emit"ok": bool(validatereplaces"valid"with"ok"), andbf reviewexits1whenproblemsis non-empty.bf ingestrejects interactive TTY stdin (exit2), andbf mcp --portrequires--transport http(exit2). - Stricter
bf validatecompiled-note verification. Fails on missing, corrupt/non-object,sha256-mismatched, or orphaned compiled JSON notes inmemories/{projects,concepts,actions}/.
Added
- Symmetric pre/post
--brainflag,-s/--scope,-n/--limit,--, andStore.read_files.bf --brain PATH CMDandbf CMD --brain PATHboth work (rejectinginit, conflicting--brain, or empty--brain ""with exit2).bf queryaccepts-s/--scopeand-n/--limitand returns"truncated": bool. Non-runcommands support--before leading-dash positionals, andStore.read_files()readsmemories/in a singleO_NOFOLLOWpass. - Auto-threaded channel replies and operational fast
bf watch.jobs.<name>.channelautomatically setsthreadandreply_tofrom a single same-channelchannel.messageevent;bf run --duerebuilds dirty notes first.bf watchrenders the TUI immediately from.bf/state/*.jsonwithout runningengine.review()in the UI loop, filterswatchfilesto config/authored/state paths, runs ticks in a backgroundbf-tickthread, and streamsstructlogJSONwatch.ticklines automatically when non-TTY or--json. bf_statusMCP tool. Exposes live readiness,events_seq, folder counts, failed-unit attention, jobs, channels, and services via MCP.
Changed
- Cleaner
bf watchRich TUI dashboard & lighter dependencies. Replaced the heavy-bordered four-column status table inbf watchwith a single rounded panel separatingServices & channelsfromJobs, showing health, trigger schedules, relative ages/uptimes, ingest diffs, and sanitized failure diagnostics sorted with failures first. Replaceddurationpywith an inline duration parser, addingcroniterandstructlog. - Direct file streaming into
jq -c.bf query --jqstreams confined JSON files directly intojq -cwithout Python JSON decode/re-encode overhead, andbf init/examplebuildjobs now userun: [bf, build]withhook: pre-commit(seedingschemas/bf.schema.json).
Fixed
- Removed unused helpers (
storage.xdg,markdown.is_jq_fragment,query.check_jq_syntax).