Skip to content

v23.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:06
· 22 commits to main since this release
Immutable release. Only release title and notes can be modified.
6c270b9

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: 9 and registry format updated (UserConfig.default + brains map). Update bf.yaml and evals/*.yaml to version: 9 manually (no automated migration runs). bf.yaml removes brains: multi-brain references, removes Sensor.fields extraction mappings, and makes top-level fields: purely optional metadata and constraints (description, broader, targets) for relations (type, cardinality, relation, and examples are removed; bf init writes zero fields: boilerplate).
  • Single-brain selection with explicit bf register / bf unregister. Commands operate on one brain at a time (--brain NAME|PATH -> BF_BRAIN -> enclosing bf.yaml -> default in ~/.config/bf/config.yaml; execution commands never fall back to default). bf register PATH [--name ALIAS] [--default] and bf unregister NAME|PATH manage ~/.config/bf/config.yaml; bf status returns a flat single-brain object with "brain" and "registered". Multi-brain discovery.roots / brains: resolution is removed.
  • Typed @type, relations, and attributes replace fields: on records and notes. Both Record (sensors / memories/) and OKF Knowledge frontmatter use relations: (explicit scheme:value or bf:// identities, camelCase or kebab-case matching [a-z][a-zA-Z0-9]*(?:-[a-z0-9]+)*) and attributes: (bounded scalar/JSON metadata never scanned as graph edges), with optional schema.org @type on records ([A-Za-z][A-Za-z0-9_-]*). Sensors emit @type, relations, and attributes directly without bf.yaml extraction rules and must never output fields. Any valid unreserved relation name works with zero bf.yaml declaration; fields: constraints apply only when declared.
  • Per-brain .bf/ state consolidation (mode 0700). .bf/cache.sqlite3, .bf/runtime.sqlite3, .bf/usage.sqlite3, .bf/state/, and .bf/locks/ now live inside <brain>/.bf/ via Store (O_NOFOLLOW), replacing external $XDG_STATE_HOME per-brain paths. Offline bf search/bf read never open or lock .bf/runtime.sqlite3. Example sensors (_sensor.py), routines (weekly-review.py, records-gate.py), and examples/ configs and fixtures are updated to match; delete stale .bf/index.sqlite caches and re-copy adapted scripts.