Repository navigation
Releases
v1.0.0
🐛 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_rawcaught the exception, logged atdebug, and the tool handlers still reportedSaved '{title}' to {database}to the agent. Now_write_entry_rawraises, sonotion_brain_remember,notion_brain_task,notion_brain_content, andnotion_brain_researchall 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:STATUSESis 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_resultcrashes on non-dict property values. Fixed in notion_brain/store.py: theselect,multi_select,status, anddateproperty extractors now checkisinstance(..., 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_loweron 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 ofnotion_brain/*from the pre-packagified layout. Anyone importing from a source checkout via these top-level names will need to switch tofrom notion_brain import ...or install viapip 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
Statusoptions (Not started/In progress/Done) alongside whatever explicit options were created. Notion'sPATCH /databasescannot remove existing options, so theresetsubcommand archives the broken DB and creates a fresh one with the canonical set. Runpython -m notion_brain health— it auto-detects mismatches and repairs them.
🆕 Features
-
Schema-versioned auto-repair.
bootstrap.ensure_brain()compares the cachedschema_versionagainstSCHEMA_VERSIONand validates every cached DB on stale cache. Mismatched/unreachable DBs are archived and recreated automatically. See notion_brain/bootstrap.py. -
HERMES_NOTION_PARENT_PAGEenv 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 realbootstrap.ensure_brain()entry point. See README.md.
🔧 Config
- Cache file format gains a
schema_versioninteger. Existing caches without it are treated asv0and trigger full validation. See notion_brain/bootstrap.py.
🧪 Tests
- New
tests/test_bootstrap_schema.pycovers: status-typed options matchSTATUSES;_database_schema_matchesaccepts a Notion-shaped DB; zombieNot startedoptions cause_database_schema_matchesto returnFalse. 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_brainimport 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.