Concepts

July 20, 2026 · View on GitHub

DisciplineQuestion
Context engineeringWhat fits in this prompt?
Harness engineeringHow does one run execute safely?
Memory engineeringWhat is true across runs, and who may write it?
Loop engineeringWhat system keeps re-prompting and verifying?
Fleet engineeringHow do many agents share governance?

Memory is not “more context.” Memory is state with policy: tiers, gates, budgets, hygiene.

The four tiers

  1. Scratch — session working memory; high churn, low trust
  2. Episodic — narrative of what happened; medium trust
  3. Durable facts — small high-trust invariants; gated writes
  4. Retrieved — computed pack for one inference under budget

Confidence tags

TagMeaningCan be durable?
observedAgent saw evidenceAfter verify
decidedHuman/process decisionYes
hypothesisGuessNever

Promotion

scratch  --(session end)-->  episodic  --(verifier/human)-->  durable

Skipping gates is an anti-pattern (see anti-patterns.md).

Stores

Default: markdown files in git (MEMORY.md, MEMORY-STATE.md).

Optional later: vector DB, Mem0, team wiki — behind the same tier policy. Patterns stay store-agnostic.

Relationship to STATE.md (loops)

FileJob
STATE.mdWhat the loop is working on now
MEMORY-STATE.mdWhat the project/agent should remember across time

Do not merge them into one infinite document.