OpenProgram Docs

Memory design

LayerContentsState
SourceAppend-only evidence, with Runtime-owned authority provenanceImplemented
TopicModel-written blocks linking to Source framesImplemented
Derived viewsCore, Timeline, Recent, Relations, built by RuntimeImplemented
Entity memory (proposed)Session-Git, one repository per session and one commit per turn; Project-Git, auto-commit on agent edits. Raw, immutable, completeDeferred
Abstract memory (proposed)Timeline, Graph, Core.md up to 2 KB, distilled from entities in five stages with provenance. Recall injects only this layer; the model navigates back by toolGraph view and entity recall deferred

Memory is a Markdown workspace. The proposed layers are not the source of truth and the writer does not need them.

Principles

PrincipleMeaning
Provenance-linkedTopics link to Source frames. An entity layer would add (project, session, commit, timestamp)
Bi-temporalEach memory records event_time and ingestion_time, for time-travel queries and contradiction detection
Scoped recallRuntime injects the active Core and offers memory tools over Source and Topic. Git navigation is proposed
Git-nativeProposed entity layer only

Documents

DocumentContent
OverviewCurrent architecture, writer, authority boundary, transactions, failure behavior
Written markerHow memory knows which turns are written: replaced cursor, eight frameworks, mark on the node, deferred event-driven design
ArchitectureWrite entry points and steps, staged transaction, write cursor, always-on block, provider hooks, failure contract
ComparisonEight reference frameworks across eight dimensions
AdoptionFour moves borrowed or not: three adopted, one rejected on per-turn latency
Speaker identitySeveral people in one session, and the field that closes the two remaining gaps
Authority landscapeOwner and paired authority, framework evidence, decisions, execution order
Authority handoffSettled authority and writer rules, deferred boundaries
Entity memory on GitProposed lifecycle, replay, consistency, project integration
Virtual memoryTimeline, Graph, Core, by type and lifecycle
Reading, editing and historyThe memory editor
Settings UI proposalMemory settings

Implementation status

AreaState
Authority provenanceSessionDB writer and memory_update build it from persisted turn authority, never from a payload. A Source without it fails closed
Automatic writerReads SessionDB branches, records handling on source nodes, uses the default chat provider and model unless memory.writer.model is set, installs through a staged transaction
SurfacesMemory tools, CLI, Web UI, writer status, one-shot trusted-Source backfill, memory.backend=none guards, a composed test from SessionDB to watcher state
CitationsA new Topic reference must resolve to a trusted Source frame in the transaction's own evidence, so no tool path cites a pending Source
FailuresOne closed MemoryWriteFailureCode taxonomy across status file, CLI, tool, API, Web UI. The idle watcher persists each outcome under a cross-process lock. Unpaired group archival has rate and storage ceilings
Read filteringmemory.read is its own capability, the read path takes the caller's tier, and blocks resting on pending evidence reach neither recall nor Core
Designed onlyPer-tier redaction of block content, hold-and-approve requests, branch-semantic provenance, cross-session spawn relations, entity Git layer, Graph view, event-driven writer notification
Last updated · 2026-11-25