gov_attach
Attach gate evidence, human review, or declarations to an artifact manifest. Log name=value attachments and gate status, then run gov_check to validate the pending verdict.
Instructions
Attach gate evidence, attachments, declarations or a human review to an artifact (decision resets to pending — run gov_check afterwards). Record gate + status + tool + report_ref after a gate tool produced evidence, or review + reviewer after a human reviewed. Attachments/declarations are name=value strings; repeated calls merge, never drop existing entries. Do NOT claim a gate passed when no tool ran — gov_check trusts the journaled status. Returns the updated gates, attachments, declarations and review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gate | No | gate_id to record together with status, e.g. data_integrity or temporal_integrity. | |
| tool | No | Name of the tool that produced the evidence, e.g. imm, padj, lf, fl, qc. | |
| review | No | Human review outcome: approved or not_recorded. | |
| status | No | Gate outcome: pass, fail, warn or not_run. | |
| manifest | Yes | Path to artifact.json (v0.2) that will receive the evidence. | |
| reviewer | No | Name of the human reviewer (auditable declaration, not authentication). | |
| attachment | No | Attachment as name=value, e.g. sources=docs/sources.md. Repeat by calling again. | |
| report_ref | No | Evidence reference for the report file, e.g. sha256:<hex> or a relative path. | |
| declaration | No | Declaration as name=true|false, e.g. contains_returns=true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |