|
| 1 | +# Agent Feedback, Memory, and Idea Hygiene |
| 2 | + |
| 3 | +## Why This Exists |
| 4 | + |
| 5 | +SAM agents have repeatedly lost useful human feedback by leaving it only in transient conversations, or by letting stale ideas stay indistinguishable from current plans. Knowledge, ideas, and policies are product surfaces for agents. Treat them as maintained state. |
| 6 | + |
| 7 | +## Before Key Decisions |
| 8 | + |
| 9 | +Search project knowledge before making decisions that depend on remembered context: |
| 10 | + |
| 11 | +| Decision | Search | |
| 12 | +| -------- | ------ | |
| 13 | +| Content, blog, launch copy | `ContentStyle` | |
| 14 | +| Libraries, tooling, code-quality tradeoffs | `CodeQuality` | |
| 15 | +| UI layout or interaction direction | `User`, `mobile`, and relevant surface names | |
| 16 | +| Architecture or runtime design | `Architecture` | |
| 17 | +| Pricing, billing, go-to-market | `BusinessStrategy` | |
| 18 | + |
| 19 | +If a project policy applies, treat it as a hard gate unless it is explicitly categorized as a preference. |
| 20 | + |
| 21 | +## When to Update Memory |
| 22 | + |
| 23 | +Update durable memory when any of these happen: |
| 24 | + |
| 25 | +- Raphaël explicitly states a preference, correction, or "do not do X" rule. |
| 26 | +- Work verifies that a stored observation is still accurate. |
| 27 | +- Work proves that a stored observation is stale, superseded, or too broad. |
| 28 | +- A repeated agent failure reveals a durable workflow rule that would prevent future frustration. |
| 29 | + |
| 30 | +Do not save facts that are already obvious from the codebase, ephemeral task details, or speculation that has not been verified. |
| 31 | + |
| 32 | +## Idea Maintenance |
| 33 | + |
| 34 | +When reviewing or touching ideas: |
| 35 | + |
| 36 | +1. Mark an idea completed only when the implementation is merged or otherwise verifiably shipped on the intended branch. |
| 37 | +2. If work exists only on an unmerged branch or draft PR, append a note with the branch/PR and leave the idea open. |
| 38 | +3. If an idea has become a narrower follow-up, update the title/content so future agents do not execute the stale original plan. |
| 39 | +4. If a prototype informed a real product change, record which production surface still needs validation; prototype routes are not the deliverable by default. |
| 40 | +5. Include concrete evidence in idea updates: merged commit, PR number, task ID, branch, or file path. |
| 41 | + |
| 42 | +## Knowledge vs Ideas vs Policies |
| 43 | + |
| 44 | +- **Knowledge** captures remembered facts and preferences agents should apply during work. |
| 45 | +- **Ideas** capture possible or planned product/engineering work. |
| 46 | +- **Policies** capture project-wide rules, constraints, delegation settings, and strong preferences. |
| 47 | + |
| 48 | +Do not turn speculative ideas into policies. Do not use knowledge to replace a task or implementation checklist. |
| 49 | + |
| 50 | +## Validation Checklist |
| 51 | + |
| 52 | +Before finishing a memory/config maintenance task: |
| 53 | + |
| 54 | +- [ ] New guidance points to existing detailed rules instead of duplicating large sections. |
| 55 | +- [ ] All added rule links and referenced files exist. |
| 56 | +- [ ] Ideas marked completed have merged/shipped evidence. |
| 57 | +- [ ] Unmerged, draft, or human-review work remains visibly open. |
| 58 | +- [ ] No duplicate knowledge observation was added when an existing active observation already covers it. |
0 commit comments