Repository navigation
v32.0.0
·
8 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
A major release aligning Brain Framework around the UNIX-native 3x3 convention (Notes: concepts//projects//actions/; Loops: sensors//routines//agents/; Records: memories//usages//logs/), flat schema-validated JSONL storage (zero SQLite, zero validation cache), a single event stream in logs/events.jsonl, two-stream stdout/stderr JSONL loop execution, $BRAIN_LOCATION / ~/brain brain discovery, bird's-eye bf status --format text + lightweight bf watch streaming, and retiring bf mcp and rich. Existing Markdown notes remain compatible once rebuilt; back up your brain before migrating and follow the manual upgrade steps below.
Breaking changes
- Brain format bumped to
version: 17: 3x3 UNIX layout, flat JSONL (memories/+usages/), singlelogs/events.jsonlevent bus, universalreflinks, and unconditional corerecordschema. Replaced per-recordmemories/<source>/<sha256>.jsonfiles,.bf/cache.db,.bf/index.jsonl, and.bf/events.jsonlwith flat JSON Lines inmemories/<source>.jsonl, first-class FinOps/telemetryusages/<source>.jsonl(bf ingest --to usages,kind: "usage", validated against bundledrecord+ requiredschemas/usages.json), and a singleO_APPENDevent stream inlogs/events.jsonl(0700/0600private;.bf/now holds only disposable locks and per-loop state).links[].tostores human-readable universal refs (concepts/foo.md,<source>:<id>, declaredbf://<brain>/<ref>,https://...), bundledRECORD_SCHEMAis enforced unconditionally, record IDs forbid#, unknownscheme://URLs are rejected instead of misclassified as record refs, and cross-brainbf://<host>/...targets must be declared underbrains:inbf.yaml. - Convention-first
loops:(sensors/,routines/,agents/,.sh/.py/executable), two-stream JSONL (stdout/stderr), and$BRAIN_LOCATION+~/braindiscovery. Renamedon:->when:(unifyingwhen: daemonand triggers with per-triggerbackfill/overlapwindows), movedwatch.concurrencyto top-levelconcurrency, renamedBF_STATE_DIR->BF_STATE, droppeddefaults.env:,templates:,use:,args:,requires:,watch:,on.hooks,{{...}}interpolation, and.bf/<loop>.context.json. Discovery searchessensors/,routines/, andagents/for<name>,<name>.sh, or<name>.py(sensors/auto-impliesingest: upsert, including interpreter-prefixedrun:;agents/defaults to15mtimeout). Loopstderrlines (structured JSONL/structlogor plain text) stream live with secret redaction intologs/<loop>.jsonlfor both cycle loops and daemons. Brain discovery resolves--brain PATH-> enclosingbf.yaml->BF_BRAIN->$BRAIN_LOCATION->~/brain(droppingDEFAULT_BRAIN_PATH). Reservedsensors,routines,agents,clients,prompts, andusagesinRESERVED_SOURCES. - Retired
bf mcp,richTUI,bf new, YAMLevals/,ACTION.md,skills/bf/SKILL.mdscaffolding, and legacy CLI flags/envelopes. Removedbf mcp(brain-framework[mcp]),rich(cutting 23 packages fromuv.lock),bf new,bf build --force,bf check --force,bf check [TARGET]/--validate/--eval(bf checkis now strictly read-only and never runsbf build),bf status --prune(moved tobf run --prune),bf read--outline/--lines/--fields/--full(notes now return their compiled record under"record", with--rawreturning"text"),bf query/bf review--fieldsand--format tsv,skills/bf/SKILL.mdscaffolding andskill_outdatedwarnings, and YAMLevals/(replaced by user Python/pytest scripts inevals/). Any<slug>/index.mdsubdirectory inside configurednotes:folders is a bundle note (retiringACTION.mdand hardcodedactions_open). Added bird's-eyebf status --format text, replacedbf watchRich TUI /--jsonwith startup status + live text or--format jsonlstreaming, addedbf emit --data -stdin piping, added--dry-runonbf run --pruneandbf run --reset, addedbf runfnmatch globs and--all, and warned onstderrwhen--format jsonltruncates output. Upgradeversion: 16brains by bumpingbf.yamltoversion: 17, migratingon:->when:andwatch.concurrency->concurrency, droppingdefaults.env:/watch:/templates:/use:/args:/requires:, moving loop scripts tosensors//routines//agents/readingBF_*env (BF_STATE, notBF_STATE_DIR) +stdin, creatingschemas/<source>.jsonandschemas/usages.json, convertingACTION.md->index.md, convertingevals/*.yamlto Python scripts, removing obsoleteskills/bf/SKILL.mdcopies, updating any callers ofbf check/bf status --prune/bf read/bf query/bf review, settingBRAIN_LOCATION(replacingDEFAULT_BRAIN_PATH), re-ingesting records intomemories/*.jsonl/usages/*.jsonl, and runningbf run --prune && bf build && bf check.
Fixed
- Hardened
bf build,bf check,bf watch,bf status,bf read, and example sensors. Preventedbf buildfrom wipingmemories/<dir>.jsonlon partial scan/compile failure, prevented self-triggeringloop.succeededstorms and runaway mutual event cycles inbf watch, isolated corrupted.bf/<loop>.jsonfiles per loop, fixedbf checkcrashing on invalidschemas/record.jsonand missing misplaced cross-folder notes, fixedbf readmisclassifying bundle sibling.mdattachments and missing spaced/escaped JSONL records, fixedbf status"inside_brain"checking the selected brain root, clampedBF_START < BF_ENDon same-second runs, fixed loopstderrtail slicing ([-8192:]), fixed blockquote heading shifts inextract_section(), triggered note rebuilds onbf.yamlname/notesedits inbf watch, and updated all 4 windowedexamples/sensors/*.pyadapters to default toBF_START/BF_END.