Record to the ledger
recordCapture project facts as they occur—constraints, corrections, decisions, measurements, and threads—to preserve context for future tasks and retrieve only relevant entries later.
Instructions
Append one fact to this project's ledger, at the moment it is produced. Call it right after: the user states a rule or a boundary (constraint); the user corrects something you did (correction); you choose between alternatives (decision — say why in text, and ref where it is recorded); a tool result yields a figure you will rely on (measurement — ref the command, refresh says whether it reproduces); work is parked, blocked, or handed to someone (thread — ref the branch, PR, or issue). Decisions, measurements and threads must carry a ref. Write text so it says WHAT the thing is before WHY: recall scores entries against a future task by their text, and an entry that only explains a reason will not be found by the task it belongs to. To retire an earlier entry pass its id in supersedes; the old entry stays on disk, marked replaced. Nothing here is ever deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | what it points at: a command, PR, issue, commit, file path or URL. Required for decision, measurement, thread | |
| kind | Yes | constraint | correction | decision | measurement | thread | |
| text | Yes | the claim, one or two sentences; say what it is, then why | |
| refresh | No | how to re-derive it, or the words 'not reproducible' | |
| obtained | Yes | how the claim was obtained: measured | decided | told | inferred | |
| supersedes | No | id of an earlier entry this one replaces |