postmortem
Capture testing findings, track fixes, and hold agent retrospective meetings that yield actionable, per-project artifacts read before the next plan.
Instructions
Postmortem mode: while testing sends fixers back, you keep a running draft of every finding; when all fixers are done the agents that did the work meet with you (hold_postmortem) and leave actionable artifacts, kept per project and read back before the next plan. Off by default: action enable turns it on for a project ONLY when the human asked for postmortem meetings, retrospectives, or agents improving themselves or each other; reason quotes their words verbatim (recorded in the project's log and the audit log). Nothing infers it. A heads-down run inherits it from its contract (propose_contract sets it); the runner then records a finding by itself when a submission is sent back after testing. disable turns it off and keeps stored postmortems. record adds a finding to the draft of a scope (execution_id for a run, or work for at-the-table work): {summary, detected_by, responsible[] (persona names, or "orchestrator"), category, task?, evidence[] (refs only: sha256: blob refs, event ids, commit shas, paths)}. fix sets a finding's fix {status: pending|fixed|abandoned, by?, ref?}; in a run, retries, merges and failures update fixes by themselves. draft returns the findings, what is still pending and whether the meeting can be held. lessons returns the active lessons of a project (always, whether or not the mode is on); list shows its drafts and postmortems; read returns a postmortem's full record (every turn) for you to show the human verbatim.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "postmortem"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pm | No | read: the postmortem (pm-…) hold_postmortem returned. | |
| fix | No | fix: the finding's fix. | |
| work | No | A short label for at-the-table work (for example "checkout redesign") when there is no run. Give this or execution_id. | |
| action | Yes | enable, disable, record, fix, draft, lessons, list or read. | |
| reason | No | enable / disable: the human's own words asking for it (or for turning it off), quoted verbatim. Never invent it. | |
| finding | No | record: the finding. | |
| project | No | The project: a directory inside its git repository (resolved with git rev-parse --show-toplevel; refused outside a git work tree or with submodules), or a project key returned earlier. | |
| finding_id | No | fix: the finding (pmf-…). | |
| execution_id | No | The heads-down run (exe-…) the draft belongs to. Give this or work. |