Record a Decision
record_decisionTwo uses, one table of record.
(1) RELAY A VERDICT the user just gave in conversation about work waiting on them — 'approved', 'redo it with X', 'drop that one'. Pass id + decision (+ note in their words). It clears the task from the review queue. Never call this to accept your own work: you are the messenger, not the decider, and 'the user did not object' is not a decision.
(2) RECORD A DECISION WORTH REMEMBERING — 'chose Neon over Supabase', 'dropped the referral program', a lesson learned. Pass title + outcome, plus whatever MADR context you have (context, options weighed, consequences, confirmation = the condition to revisit under). Records are immutable; to change one, record a new decision with supersedesId pointing at it. Use it whenever the user makes a real choice in conversation — the reasoning otherwise dies in scrollback, and decisions are what agents read next week via get_context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Task ID — verdict relay only | |
| kind | No | 'madr' (default) for a decision; 'lesson' for a lesson learned. | |
| note | No | What the user said, in their words. Required in substance for rework — the executor has to act on it. | |
| title | No | Standalone record: the decision, named. E.g. "Postgres provider: Neon". | |
| status | No | Defaults to 'accepted'. 'proposed' = written down before the user has committed. | |
| taskId | No | A task this standalone decision is about, if any. | |
| context | No | What was true that forced a choice. | |
| options | Yes | The options actually weighed — not a retrofit. | |
| outcome | No | Standalone record: the choice, stated as a sentence. Required with title. | |
| project | No | Project name (case-insensitive) or project ID | |
| decision | No | Verdict relay only — what the user said: 'accepted' the work stands; 'rework' send it back (say why); 'dropped' not worth doing; 'deferred' fine but not now. | |
| confirmation | No | The condition under which to revisit this decision. | |
| consequences | No | What follows from the choice, good and bad. | |
| supersedesId | No | A prior decision this one replaces. The old record stays, marked superseded. |