guides/Agentic-Audit.md

Agentic Audit

tools/agent-audit.php exports deterministic framework diagnostics for agent workflows and CI checks.

Usage

php tools/agent-audit.php --format=json --pretty
php tools/agent-audit.php --format=md

Options

CI Gate Example

php tools/agent-audit.php --format=json --fail-on-missing=capabilities.core.zero_runtime_dependencies

This exits with code 1 when the requested contract path is missing or false.

Pair it with snapshots:

php tools/agent-snapshot.php --type=contracts --format=json --pretty
php tools/agent-snapshot.php --type=contracts --fail-on-diff=tests/fixtures/snapshots/contracts.json

CI Status Gates

CI enforces proof integrity through explicit gates in .github/workflows/tests.yml:

Expected behavior:

Output Contract

Top-level fields:

The capabilities payload includes both: