Skip to main content

Module project

Module project 

Source
Expand description

Project memory: what the agent learns about one project, kept as plain Markdown files in a directory of that project’s own, apart from the owner’s personal memory.

<root>/<project-id>/memory/
    MEMORY.md                 index, rebuilt after every write
    fact-<key>.md
    procedure-<key>.md
    pitfall-<key>.md
    reference-<key>.md

Each note is one file with a small front matter (name, description, type, category, source, updated) and a body. Notes are keyed by the project’s id, so renaming the project or moving its folder keeps them. A note the owner adds or edits by hand is read like any other; a file without valid front matter is listed by its file name and never deleted. The same key in the same project replaces that note and nothing else: there is no fuzzy matching and nothing crosses projects.

The files are plain text on disk: callers must never route personal or identity memory here. Values of registered secrets are redacted before a note is written.

Structs§

NoteEntry
A note as the index lists it.
NoteWrite
One note to write.
ProjectNotes
Every project’s memory, under one root directory.
ProjectNotesRecall
One project’s notes as a Recall backend: its ProjectNotes::section as the note, for a memory system that renders no block of its own to put the section in (wrap it in MemoryInjection).

Enums§

MemoryScope
Where one memory goes on a turn that works in a project.
NoteError
Why a note was not written.
NoteKind
What a note holds.
NoteSource
Who wrote a note.
WriteOutcome
What a write did.

Constants§

INDEX_FILE
The index file in each project’s memory directory.
MAX_INDEX_CHARS
The index shown to the model is at most this many characters.
MAX_NOTE_BYTES
A note’s body is at most this many bytes.
NOTE_FACT_SOURCE
The source of a crate::records::Fact that stands for a project note in an extractor’s ALREADY STORED list (notes_as_shown_facts).

Traits§

SessionProjects
Which project a conversation is placed in. Recall uses it to keep one project’s conversation history (its episodes) to that project’s turns, and out of other projects’ and personal recall.

Functions§

category_is_personal_only
Categories about the owner and the people around them. They are never project notes, whatever scope is asked for: notes are plain text on disk, and who someone is does not belong to a project.
is_note_fact
Whether fact stands for a project note (notes_as_shown_facts).
kind_for_category
The note kind a memory category names (procedure, pitfall, reference), else a fact.
note_key
A key as it appears in a file name: lowercase ASCII letters and digits, other runs as one _; None without a letter or digit.
notes_as_shown_facts
The project’s notes as stored facts an extractor is shown, so a restatement of a note is marked instead of stored again and a correction names the note it corrects. Each has a negative id, never a store row’s.
route
Where a memory of category goes. Without a project, always personal. In a project, personal-only categories stay personal; otherwise the requested scope wins, and without one a preference is personal and anything else belongs to the project.