Lecteur de documentation

agent memory governance

Fichier source: operations/agent-memory-governance.md

Markdown rendu Markdown

Agent Memory Governance

Architecture mémoire session

          
mermaid
flowchart LR A[AGENTS.md] --> C[Session bootstrap] B[project_context.md] --> C D[latest-session.md] --> C C --> E[Execution session] E --> F[Session close update] F --> D

Fallback statique:

          
md
![Agent memory governance fallback](../../archive/fallback-agent-memory-governance.png)

Purpose

Keep agent context stable across sessions while minimizing token waste.

Source-of-truth layers

  1. AGENTS.md (stable rules)
  1. project_context.md (semi-stable project context)
  1. documentation/sessions/history/latest-session.md (volatile session memory)

Update cadence

Session protocol

Start:

  1. Run npm run session:bootstrap.
  2. Run npm run session:budget.
  3. Confirm scope and risks.

Close:

  1. Run npm run session:close -- --done "..." --next "..." --risk "...".
  2. Keep entries short and factual.

Anti-drift rules