attest_path
Verify file integrity after writes by reading on-disk content, running syntax and security checks, and logging the verdict for audit.
Instructions
Post-write attestation. Reads on-disk content of path and runs absolute checks (Ring 0 syntax + Ring 0.7 security + optional Ring R2 cycle). Use from PostToolUse hooks / CI / after any write that bypasses the pre-write gate. Writes the verdict to <workspace_root>/.aegis/attestations.jsonl for audit when workspace_root is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the file to attest. | |
| workspace_root | No | Optional. Enables Ring R2 cycle detection and JSONL audit log. |