Repository navigation
v33.1.0
·
5 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
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
.envand daemon script edits, plus full 3x3 showcase inexamples/brain/.bf watchnow watches.envandsensors//routines//agents/scripts and reconciles running daemon loops automatically when.envvalues or a daemon's script contents change (emittingwatch.errorwithout stopping healthy daemons if.envis invalid).examples/brain/now includesagents/assistant.py(convention discovery + 15m default timeout),sensors/usage-demo.py, andschemas/usages.jsonto demonstrate all 9 cells of the 3x3 layout offline.
Fixed
- Switched
Store.append_log()toO_APPENDwith amortized compaction and madeunbuilt_notesdetect edited/added/deleted notes.logs/<loop>.jsonlnow appends in place via sharedO_APPEND | O_NOFOLLOWI/O (matchinglogs/events.jsonl), eliminating per-line file rewrites and preserving inodes between compactions sotail -fstreams live (usetail -Facross rotations).bf statusandbf queryunbuilt_notesnow compare authored Markdown digests and row uniqueness againstmemories/<dir>.jsonlinstead of only checking whether the JSONL file is missing.
Security
- Hardened
private_dir()TOCTOU checks, interpreter-prefixed loop script confinement,.envsignature hashing, and TTY status/watch sanitization.private_dir()now returns aStorethat re-verifiesO_NOFOLLOWand0700geteuid()ownership from the brain root on every open (withStore.append_log()acquiringlogs.lockbefore openinglogs/);proc.prepare_unit()rejects symlinked or non-regular brain-relativesensors//routines//agents/script arguments;bf watchhashes.envandbase_envinstead of retaining plaintext secrets in daemon state; andformat_status_text()/format_watch_line()sanitize loop state and summary fields viaprintable().