Memory, knowledge and provenance
Status: normative · Owns: persistent usefulness without confusing saved text for truth.
Three logical stores
- Working state: scoped chat context, ephemeral task caches and session settings with expirations. These are not authority grants.
- Evidence ledger: immutable or append-only records linking original bytes, digests, model/tool versions, approvals, receipts, experiments, test outcomes, cost and data rights.
- Promoted knowledge: released deterministic rules, validated reference tables, indexed reusable procedures and portable operator-owned exports.
SQLite with WAL, FTS5 and optionally sqlite-vec can support the small single-host system. Vector embeddings are derived indexes and must not become canonical facts, rights grants or authorization checks. Use transactional outbox for effects; if concurrency exceeds one-writer semantics move to a proven transactional database rather than assuming SQLite is a multi-region cluster.
Retrieval rules
Every result carries source ID, version/digest, owner, confidence/evidence tier, access class, created/observed time, expiry and retrieval method. Queries filter ACL and data retention before similarity search or cache reuse. Answer synthesis distinguishes original source content from paraphrase and generated suggestion. Fresh fact-dependent tasks require a new permitted source verification rather than trusting ancient snapshots.
Duplicate work recognition
An opportunity scanner SHOULD index approved task signatures and recurring interaction mechanics (input schema, operation, output pattern, tool steps), not merely words in the conversation. A repeated pattern triggers a proposed capture; it never expands storage rights or unilaterally changes routing. Respect opt-outs for sensitive sessions.
Export and portability
Operators can export manifest, schema, deterministic rule package, fixture subset where licensed, provenance graph, version and replay instructions. An import MUST verify hashes, signatures, license, scope and dependencies before enabling. Raw private records must be redacted or encrypted with owner key and explicit approval for the destination.