mattrguerra/better-memory-pipelinemainPrivate on GitHub, published here in full

notion-schema.md

Language Markdown1.8 KB38 lines

distiller/notion-schema.md

  1. # The `better-memory` Notion database
  2. One database, written only by the nightly distiller, read by any Claude that has the
  3. Notion connector. Each page is one entity; the typed Relations in page bodies make the
  4. database a small knowledge graph.
  5. ## Properties
  6. | Property | Type | Notes |
  7. |---|---|---|
  8. | `Title` | title | The entity's name, in Title Case. **The match key for idempotent upserts:** one page per title, updated in place. |
  9. | `Type` | select | `person`, `anchor`, `thread`, `context` or `note` (below). |
  10. | `Distilled` | date | The run date that last wrote the page. |
  11. | `Derived from` | text | Short tags naming what the page was built from. |
  12. | `Tags` | multi-select | Lowercase topic tags. Seed the vocabulary before the first run, or writes that use a new tag can fail. |
  13. ### Type
  14. | Type | Meaning |
  15. |---|---|
  16. | `person` | A real human in the owner's life. |
  17. | `anchor` | A foundational, identity-shaping entity others refer back to. |
  18. | `thread` | An active, time-bound initiative with a goal. |
  19. | `context` | A setting or environment that frames other work. |
  20. | `note` | The catch-all: a creative work, a tool, a concept. |
  21. ## Page body
  22. 1. **A recall paragraph**, two to four sentences, answering "what would you need to
  23. know to discuss this usefully." Self-contained; it often answers the question alone.
  24. 2. **`## Observations`**, one fact per bullet as `- [category] fact`. Categories:
  25. `context`, `goal`, `constraint`, `decision`, `pattern`, `preference`, `question`,
  26. `blocker`, `status`, `lesson`.
  27. 3. **`## Relations`**, one edge per bullet as `- relation_type -> Entity Title`, where
  28. the target is another page's exact Title. Types: `part_of`, `works_on`, `maintains`,
  29. `collaborates_with`, `depends_on`, `relates_to`.
  30. See [`examples/distilled-entity.md`](../examples/distilled-entity.md).