Skip to main content

Module remember

Module remember 

Source
Expand description

remember — write a Note the graph can later recall.

The other half of recall: where that module reads, this one writes the one label an assistant is expected to create itself. A note’s about list is exactly the field the about_<label> rules (see super::rules, shared with structure::ensure_rules_and_fulltext in the CLI crate) match on, so writing it derives the ABOUT edges in the same commit — nothing here inserts an edge directly.

structure::ensure_rules_and_fulltext only ever runs from ingest-git and sync, and even then only declares an about_<label> rule once a node of that label already exists. A store’s very first remember call — or one whose about names a Note or Concept created since the last sync — would otherwise pass validation and silently write no ABOUT edge at all until the next sync backfills it. remember closes that gap itself: before writing, it ensures the specific about_<label> rule(s) its own about keys need already exist, creating whichever are missing from the same shared definitions structure uses.

Structs§

RememberInput
What to remember.

Constants§

NOTE_KINDS
The kind values a Note may carry.

Functions§

remember
Write input as a Note, returning its key.