Skip to content

v29.0.1

Choose a tag to compare

@github-actions github-actions released this 19 Nov 07:50
· 11 commits to main since this release
Immutable release. Only release title and notes can be modified.
d54622a

A patch release fixing mise-shim execution for rg and jq, hardening jq, bf mcp, .bf//logs/, and example sensor/service confinement, improving bf watch and scheduler reliability, and adding shim smoke checks to package verification. The brain format (version: 14), bf.yaml, memories/**/*.json, and the published JSON Schemas (schemas/{bf.schema.json,record.json,concepts.json,evals.json}) are unchanged; no brain upgrade step is needed from v29.0.0.

Fixed

  • Unwrapped mise shims for rg/jq and failed closed on rg exit 1 with stderr. query.resolve_tool() now resolves mise shims from cwd="/" with a confined environment (falling back to minimal non-secret shim env vars only for wrapper scripts), bf query and bf_query report rg runtime failures instead of silently returning 0 hits, bf query --jq classifies corrupt JSON and wrapper/tool failures as exit 1 (Error), and jobs.pending_events() catches jq timeouts, preserves trailing # comments in filters, tolerates heterogeneous null event batches, and isolates filter errors per job during --due ticks.
  • Read-only bf status / bf_status, concurrent cursor safety, and bf watch / validation reliability. status_summary and latest_event_seq no longer create .bf/ when absent, run_jobs checks .bf/events.jsonl lazily on idle ticks and prevents concurrent or post-reset cursor corruption, watch.serve fixes wake_event lost-wakeup and shutdown races and drains stderr via select.poll()/os.read instead of unlinked temporary files, bf init rejects symlink destinations, bf build and bf read keep note caching safe for bf:/// and uppercase BF:// links, bf validate enforces kind == "memory" on sensor records and caches cross-brain anchors and local existence checks, bf review skips authored directories during sensor scans, extract_section() handles spaceless ATX headings and reference-link definitions, and YAML 1.2 boolean parsing rejects mixed-case literals (TrUe).
  • Docs, package smoke tests, typing, and dev-tool sync. Added wrapper-script and mise-shim smoke checks to scripts/test_package.py, replaced untyped **opts: Any kwargs in src/bf/jobs.py with typed TypedDict/Unpack options, fixed examples/brain/services/local.py empty-truncation offset reset, updated examples/README.md, src/bf/guides/{authoring,operations}.md, skills/bf/SKILL.md, and cli.py --allow-removal help to match version: 14, queued v30.0.0 schema-narrowing cleanups in GOVERNANCE.md, and upgraded pinned mise tools (betterleaks, dprint, jactionlint, uv) and dprint plugins.

Security

  • Hardened jq $ENV shadowing, private logs/ / .bf/events.jsonl I/O, secret redaction, link/envelope validation, and example sensors/services. JQ_PRELUDE now shadows both env and $ENV ({}), Store.append_log() eliminates a 0755 logs/ recreation TOCTOU, .bf/events.jsonl uses O_NONBLOCK | O_NOFOLLOW and unbuffered full appends, records.parse_batch_envelope() rejects unknown keys in incomplete dicts, _normalize_record_links() and markdown.record_link_problem() reject unknown link keys, mismatched kinds, traversal/control characters, and unsafe URL schemes, models.redact_secrets() masks prefixed secret env names (DB_PASSWORD, AWS_SECRET_ACCESS_KEY, GOOGLE_CLIENT_SECRET, SECRET_KEY, AWS_SESSION_TOKEN) and Authorization: Basic headers, bf mcp redacts unresolvable relative brains: roots and URI authority variants in linear O(N) time, and examples/{sensors,brain/services} harden git-history.py object/alternate auditing (preserving worktrees and rejecting whitespace parser differentials), local-documents.py ZIP decompression caps, github-issues.py title and github-issues.py/agent-telemetry.py secret redaction, and local.py O_NOFOLLOW state directory checks.