Skip to content

Releases

v1.0.0

Choose a tag to compare

@MNDL-27 MNDL-27 released this 20 Jul 18:48

🐛 Fixes

  • Status property writes no longer fail silently. The Notion databases were created with {"status": {}}, which produced the wrong default options (Not started / In progress / Done). Status writes to those DBs returned 400 from Notion, but the old _write_entry_raw caught the exception, logged at debug, and the tool handlers still reported Saved '{title}' to {database} to the agent. Now _write_entry_raw raises, so notion_brain_remember, notion_brain_task, notion_brain_content, and notion_brain_research all surface real errors instead of lying about success. See notion_brain/bootstrap.py, notion_brain/init.py.

  • Single canonical status vocabulary. notion_brain/schema.py:STATUSES is now {"active", "done", "needs_review"}. The old set (draft, published, archived, conflict) was never created in the Notion DBs and is gone from the documented vocabulary. README updated to match. See notion_brain/schema.py.

  • _flatten_result crashes on non-dict property values. Fixed in notion_brain/store.py: the select, multi_select, status, and date property extractors now check isinstance(..., dict) before calling .get. Triggered when Notion returns a property as a string instead of the expected dict shape.

  • User-preference confidence heuristic is now sentence-scoped (snip_lower on the extracted snippet) instead of scanning the full combined turn, so unrelated "prefer"-class words in long messages can no longer over-pump confidence. See notion_brain/extract.py.

⚠️ Breaking

  • Stale root-level modules removed: bootstrap.py, schema.py, store.py, extract.py. They were old duplicates of notion_brain/* from the pre-packagified layout. Anyone importing from a source checkout via these top-level names will need to switch to from notion_brain import ... or install via pip install -e .. Migration is one-line.

  • Notion DBs created by older versions need a one-time repair. If you ran the plugin before this release, your Notion databases have the Notion-default Status options (Not started / In progress / Done) alongside whatever explicit options were created. Notion's PATCH /databases cannot remove existing options, so the reset subcommand archives the broken DB and creates a fresh one with the canonical set. Run python -m notion_brain health — it auto-detects mismatches and repairs them.

🆕 Features

  • Schema-versioned auto-repair. bootstrap.ensure_brain() compares the cached schema_version against SCHEMA_VERSION and validates every cached DB on stale cache. Mismatched/unreachable DBs are archived and recreated automatically. See notion_brain/bootstrap.py.

  • HERMES_NOTION_PARENT_PAGE env var actually honored. Previously only mentioned in an error message; now checked before falling back to a workspace search. Bootstrap also gives a more useful error when no parent page can be discovered.

  • CLI: python -m notion_brain.

    • health — one-line-per-DB report (schema match, entry count, last entry, URL). Auto-repairs schema mismatches found during the run.
    • reset [--only X,Y] [--dry-run] [--force] — archive and recreate mismatched DBs.
    • url [--all] — print the Notion URL of the Hermes Brain page (and all DBs with --all).
      See notion_brain/main.py.
  • Reusable archive_database() in the Notion store. PATCH /databases/{id} with {"archived": true}. See notion_brain/store.py.

📝 Docs

  • README overhaul. Status vocabulary corrected; project structure now reflects the actual notion_brain/ package layout; CLI commands documented; install snippet switched to the real bootstrap.ensure_brain() entry point. See README.md.

🔧 Config

  • Cache file format gains a schema_version integer. Existing caches without it are treated as v0 and trigger full validation. See notion_brain/bootstrap.py.

🧪 Tests

  • New tests/test_bootstrap_schema.py covers: status-typed options match STATUSES; _database_schema_matches accepts a Notion-shaped DB; zombie Not started options cause _database_schema_matches to return False. 73 tests pass.

v1.0.0 — 2026-07-18

🆕 Features

  • Initial public release: 7 Notion databases, heuristic auto-capture, 5 tool interfaces, secret redaction, background sync.
  • See 8f8e889: restructure package for proper installation and fix research regex.
  • See efdf530: correct hermes_brain → notion_brain import in README bootstrap example.

🐛 Fixes

  • See ea6b3a0: silent write failures and broken Status schema (the fix that surfaced the silent-failure bug class the Unreleased section above extends).

📝 Docs

  • See f486982: full README rewrite — setup guide, tool reference, database descriptions, automatic-capture patterns, project structure.

🔧 Config

  • See 7e61767: license changed from MIT to All Rights Reserved.
  • See 2585f6c, a6169d0: dropped PyPI and coverage badges that 404; kept only live badges.

📦 Dependencies

  • Runtime: requests>=2.28 (already a Hermes dep).
  • Dev: pytest>=7.0.