agy_discussion_memory
Replaces client-maintained working memory with a versioned, source-backed snapshot for a discussion, then checkpoints it into linked project history without a model call.
Instructions
Replace the client-maintained working memory with a versioned snapshot, not inferred consensus. No model call. Read first; expected version is 0 initially. Linked project discussions also checkpoint this memory into their persistent project. memory has facts/disagreements/next_steps lists of {text,sources:[message ids]}, and positions list of {participant,view,reason,sources}. Each source must be a successful message; each position needs that participant's own source. At most 8 rows/section and 4500 UTF-16 units total. Keep disagreements and reasons, never invent verification. Full snapshot and current plan enter later discussion prompts; initial judgments stay isolated. Pending/closed tasks reject edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory | Yes | ||
| reason | Yes | ||
| discussion_id | Yes | ||
| expected_memory_version | Yes |