Skip to content

v33.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:05
· 5 commits to main since this release
Immutable release. Only release title and notes can be modified.
e71ed29

A minor release adding live daemon reloads on .env and daemon script edits in bf watch, completing the 3x3 showcase in examples/brain/, switching Store.append_log() to O_APPEND with amortized multi-process compaction (preserving inodes between compactions for tail -f / tail -F), making unbuilt_notes content-accurate, and hardening private_dir(), interpreter-prefixed loop script confinement, and status/watch output sanitization. The brain format (version: 18), bf.yaml, and the published JSON Schemas (docs/{bf,record}.schema.json) are unchanged; no brain upgrade step is needed from v33.0.0.

Added

  • Live daemon reloads on .env and daemon script edits, plus full 3x3 showcase in examples/brain/. bf watch now watches .env and sensors//routines//agents/ scripts and reconciles running daemon loops automatically when .env values or a daemon's script contents change (emitting watch.error without stopping healthy daemons if .env is invalid). examples/brain/ now includes agents/assistant.py (convention discovery + 15m default timeout), sensors/usage-demo.py, and schemas/usages.json to demonstrate all 9 cells of the 3x3 layout offline.

Fixed

  • Switched Store.append_log() to O_APPEND with amortized compaction and made unbuilt_notes detect edited/added/deleted notes. logs/<loop>.jsonl now appends in place via shared O_APPEND | O_NOFOLLOW I/O (matching logs/events.jsonl), eliminating per-line file rewrites and preserving inodes between compactions so tail -f streams live (use tail -F across rotations). bf status and bf query unbuilt_notes now compare authored Markdown digests and row uniqueness against memories/<dir>.jsonl instead of only checking whether the JSONL file is missing.

Security

  • Hardened private_dir() TOCTOU checks, interpreter-prefixed loop script confinement, .env signature hashing, and TTY status/watch sanitization. private_dir() now returns a Store that re-verifies O_NOFOLLOW and 0700 geteuid() ownership from the brain root on every open (with Store.append_log() acquiring logs.lock before opening logs/); proc.prepare_unit() rejects symlinked or non-regular brain-relative sensors//routines//agents/ script arguments; bf watch hashes .env and base_env instead of retaining plaintext secrets in daemon state; and format_status_text() / format_watch_line() sanitize loop state and summary fields via printable().