Skip to main content
Version: MVP

Policy test reference

2 min readReferenceUpdated 2026-05-19

What you'll find here

craik policy test — the machine-readable policy regression gate for v0.1.0. The output shape, each result field, the shipped checks, and the failure behavior.

Exit 1 on any failure.

If any check fails, status becomes failed, the failed result includes the violated condition, and the CLI exits with status code 1.

Output shape

{
"schema": "craik.policy_test_report",
"version": "0.1.0",
"status": "passed",
"summary": {
"passed": 6,
"failed": 0,
"total": 6
},
"results": []
}

Per-result fields

Field
Values
Notes
name
stable
Stable check name.
status
passed / failed
Per-check result.
message
prose
Human-readable result or failure.
details
object
Check-specific evidence.

Shipped checks

CheckPurpose
immutable_path_requires_override_and_grantImmutable paths cannot be written with ordinary docs grants.
memory_writes_become_proposalsMemory updates follow the proposal path; direct local writes are denied.
trusted_local_fail_open_receiptsTrusted-local fail-open is explicit and receipt-backed.
automation_fails_closedAutomation does not widen authority or prompt for approvals.
provider_runner_enforces_shell_grantsThe provider-backed runner blocks fixture side effects without a shell grant and completes with the scoped grant.
redaction_receipts_logs_handoffs_case_filesPolicy-relevant payload shapes redact secret-like material.

What's next