Record Action Receipt
record_action_receiptLink a tracked action to its outcome (diff, exit code, test result) to create action-result lessons. Appends to the action-receipts 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 |
|---|---|---|---|
| diff | No | Optional unified diff or change summary produced by the action | |
| actionId | Yes | Identifier of the tracked action this receipt pairs with | |
| exitCode | No | Optional command exit code outcome | |
| toolName | No | Name of the tool that was invoked | |
| stateHash | No | Optional post-action state hash (from detect_noop) | |
| toolInput | No | Structured input the tool was called with | |
| testOutcome | No | Optional test outcome (e.g. passed, failed, 12/12) |