Repository navigation
v23.0.0
·
22 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
A major release introducing brain format version: 9, explicit single-brain selection with per-brain .bf/ state, typed @type, relations, and attributes replacing fields:, interactive bf guide, and a consolidated /bf skill. Plain-file notes and SHA-256 JSON records remain authoritative, though manually updating notes and stored records from fields: to relations:/attributes:, updating bf.yaml and evals/*.yaml to version: 9, deleting legacy .bf/index.sqlite caches, registering brains via bf register, and reinstalling the /bf skill via bf skill install are required; see the breaking changes below.
Breaking changes
- Brain format bumped to
version: 9and registry format updated (UserConfig.default+brainsmap). Updatebf.yamlandevals/*.yamltoversion: 9manually (no automated migration runs).bf.yamlremovesbrains:multi-brain references, removesSensor.fieldsextraction mappings, and makes top-levelfields:purely optional metadata and constraints (description,broader,targets) for relations (type,cardinality,relation, andexamplesare removed;bf initwrites zerofields:boilerplate). - Single-brain selection with explicit
bf register/bf unregister. Commands operate on one brain at a time (--brain NAME|PATH->BF_BRAIN-> enclosingbf.yaml->defaultin~/.config/bf/config.yaml; execution commands never fall back todefault).bf register PATH [--name ALIAS] [--default]andbf unregister NAME|PATHmanage~/.config/bf/config.yaml;bf statusreturns a flat single-brain object with"brain"and"registered". Multi-braindiscovery.roots/brains:resolution is removed. - Typed
@type,relations, andattributesreplacefields:on records and notes. BothRecord(sensors /memories/) and OKFKnowledgefrontmatter userelations:(explicitscheme:valueorbf://identities, camelCase or kebab-case matching[a-z][a-zA-Z0-9]*(?:-[a-z0-9]+)*) andattributes:(bounded scalar/JSON metadata never scanned as graph edges), with optional schema.org@typeon records ([A-Za-z][A-Za-z0-9_-]*). Sensors emit@type,relations, andattributesdirectly withoutbf.yamlextraction rules and must never outputfields. Any valid unreserved relation name works with zerobf.yamldeclaration;fields:constraints apply only when declared. - Per-brain
.bf/state consolidation (mode0700)..bf/cache.sqlite3,.bf/runtime.sqlite3,.bf/usage.sqlite3,.bf/state/, and.bf/locks/now live inside<brain>/.bf/viaStore(O_NOFOLLOW), replacing external$XDG_STATE_HOMEper-brain paths. Offlinebf search/bf readnever open or lock.bf/runtime.sqlite3. Example sensors (_sensor.py), routines (weekly-review.py,records-gate.py), andexamples/configs and fixtures are updated to match; delete stale.bf/index.sqlitecaches and re-copy adapted scripts.