Attach evidence to a Ledger entry
ledger_entries_add_evidenceRecords what happened against an open decision — a manual observation the user reports ('the pilot team says triage feels faster'), an implementation note, or a reference to a Caliper run. Evidence is what settlement later reads, so attach it as it arrives and cite it in the lesson. Metric readings attach themselves via ledger_metrics_record_reading — don't duplicate them here. Fails with conflict on superseded entries. Ids come from ledger_entries_list. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Structured detail worth keeping with the summary. | |
| kind | No | Usually `manual`; `caliper_eval_run` with refId for a run; `implementation` when the change shipped. | manual |
| refId | No | Source record id (a Caliper run id, …) when there is one. | |
| entryId | Yes | The entry the evidence is about. | |
| summary | Yes | What happened, in one or two sentences. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | Approval id from a prior needs_confirmation envelope. |