Skip to content

v26.0.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 05:49
· 16 commits to main since this release
Immutable release. Only release title and notes can be modified.
116e2f8

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: 12 with declarative defaults, jobs, channels, servers, and watch (bf.yaml), humanized durations, .env, and zero global config. bf.yaml removes fields: ontology definitions, harness:, defaults.post, and ~/.config/bf/config.yaml (bf register/bf unregister); brain selection resolves --brain PATH -> BF_BRAIN -> enclosing bf.yaml -> DEFAULT_BRAIN_PATH. bf.yaml organizes defaults (timezone and env: {KEY: value} with {{brain}}/{{home}}/{{state}} expansion, plus optional gitignored .env), one-shot jobs: (run + optional input: stdin/{{input}} + ingest: {source, mode, allow_removal} + outbound channel:, triggered by every, at + days + timezone, events with jq -e filters, or hook), bidirectional channels: (listen + send), constant daemon servers: (run, e.g. [bf, mcp, --transport, http, --port, "8765"]), and watch: (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, and memories/*.jsonl. bf build compiles OKF Markdown notes into memories/{concepts,projects,actions}/<slug>.json (preserving frontmatter + headings + keyed attrs + elements + links + tasks), bf ingest <source> writes individual memories/<source>/<sha256(id)>.json files honoring .forgotten and {"records": [...], "incomplete": {"missed": N}} envelopes, and runtime state/events live in logs/<name>.json and logs/events.json validated by schemas/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 require bf:// or external URLs in frontmatter (links, sources, relations), dropping legacy source:id and 2-slash bf://concepts/... note links (bf read still resolves source:id on the CLI). bf query delegates lexical search to rg, JSON filtering to jq, and analytical SQL to sandboxed duckdb (CREATE TEMP TABLE records before enable_external_access = false and lock_configuration = true). Documentation flattens docs/docs/*.md into docs/*.md with redirect_maps preserving legacy URLs, and examples/sensors/ curates 5 stdlib examples (including circular agent-telemetry.py replacing usage.sqlite3).

Added

  • User-owned JSON Schemas (schemas/), humanized stale_after, and deterministic bf eval. bf init seeds Draft 2020-12 schemas/{record,concepts,logs,evals}.json plus starter docs/index.md and evals/smoke.yaml; user edits to schemas/concepts.json and optional schemas/<source>.json enforce custom metadata contracts without hardcoded frontmatter checks, and stale_after accepts humanized durations (14d, 90d) alongside integer days and ISO dates.
  • Read-only bf mcp, bf action, and watchfiles + Rich bf watch. bf mcp exposes bf_review, bf_read, bf_query, and bf_validate over stdio or localhost Streamable HTTP (--transport http, or supervised via servers.<name>.run: [bf, mcp, --transport, http, --port, "8765"] in bf watch) with local path redaction; bf action creates or reuses actions/YYYY-MM-DD_<slug>/ACTION.md; and bf watch supervises file rebuilds, scheduled/event jobs, channels, and servers with a Rich TUI dashboard.