Maintains workflow-scoped task memory for Compozy runs using .compozy/tasks/<name>/memory/ files. Use when a task prompt provides workflow memory paths and requires the agent to read, update, compact, and promote durable context across PRD task executions. Do not use for PR review remediation, global user preferences, or programmatic event-log summarization.
Maintain the workflow memory files provided by the caller.
Load the memory state before editing code.
references/memory-guidelines.md and compact that file before proceeding with implementation.Keep memory current while the task runs.
Close out the run cleanly.
references/memory-guidelines.md before compacting if the file has grown noisy or repetitive.Before promoting an item from task memory to shared workflow memory, ask:
All three must be "yes" to promote. If any is "no," the item stays in task memory.
Examples that belong in shared workflow memory:
Examples that stay in task memory:
When the caller flags a memory file for compaction, apply these rules inline. Read references/memory-guidelines.md for full detail, but these rules are sufficient for most compaction passes:
Read references/memory-guidelines.md when any of these apply: