Record Action Receipt
record_action_receiptLink a tracked action to its result (diff, exit code, test outcome) to encode cause and effect in lessons. Appends the receipt to the log.
Instructions
Pair a tracked tool call with its outcome (diff, exit code, test result) so a promoted lesson encodes "this action -> this outcome", not just a thumbs signal. Appends to the action-receipts log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionId | Yes | Identifier of the tracked action this receipt pairs with | |
| toolName | No | Name of the tool that was invoked | |
| toolInput | No | Structured input the tool was called with | |
| diff | No | Optional unified diff or change summary produced by the action | |
| exitCode | No | Optional command exit code outcome | |
| testOutcome | No | Optional test outcome (e.g. passed, failed, 12/12) | |
| stateHash | No | Optional post-action state hash (from detect_noop) |