attach_evidence
Save verification outputs like test results or command output as evidence files and ledger events, returning an ID to reference in task updates or finalizations.
Instructions
Store verification output (test results, command output, review findings, notes, or links) as a file under .agentpack/evidence/ plus a ledger event, returning an evidence id to reference from task_update_verification, task_finalize, or record_decision. Call for meaningful verification worth preserving; for small tasks prefer one aggregated evidence item over many per-command items. Provide the body inline via content or from a file via path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Free-form label such as test, command, note, link, or json. Defaults to note; kind json stores the file with a .json extension. | |
| path | No | Repo-relative path to an existing file whose contents become the evidence body (alternative to content). | |
| command | No | Command that produced the output, stored as metadata. | |
| content | No | Inline evidence body. Ignored when path is set. | |
| exitCode | No | Exit code of that command, stored as metadata. |