Cryptographically signed policy enforcement for AI agents. MCP server that enforces policies via attestations, JWT authorization, and sublayout delegation.
Aflock provides 13 tools with mostly complete schemas and descriptions. Naming is verb-forward and clear (get_*, check_*, read_*, write_*, sign_*). Descriptions are present and contextual (avg ~120 chars), exceeding the 10-char minimum. However, several tools lack parameter descriptions (e.g., bash's 'step' and 'reason' params are described but 'timeout' and 'workdir' lack detail), and output schemas are not documented. Error handling is minimal, no recovery guidance or actionable error messages visible. The bash tool is high-risk (IRREVERSIBLE) but lacks dry-run or confirmation patterns. Attestation tools (sign_attestation, aflock_attest) have complex predicates but no examples or validation constraints. Overall: solid foundation, but gaps in parameter completeness, output documentation, and error recovery prevent a higher score.
Record an action — server signs attestation (paper §3.3). Alias of sign_attestation.
Request authorization for an action (paper §3.3). Alias of check_tool.
Query remaining budget against each declared policy limit (paper §3.3).
Create a sublayout binding for a sub-agent (paper §3.3). Validates the named sublayout against parent attenuation, writes a propagation record, and returns an attenuated child JWT.
Execute a bash command with policy enforcement. Set attest=true for validation commands to create attestations.
Check if a tool call would be allowed by the policy
bash tool lacks dry-run/confirmation pattern for irreversible operations. Agents can execute destructive commands without validation.
Output schemas not documented for any tool. LLMs cannot plan downstream calls or extract required fields (e.g., what does get_identity return?).
bash tool parameters 'timeout', 'workdir' lack descriptions. Parameter 'step' is required only if attest=true but this dependency is not documented.
Attestation tools (sign_attestation, aflock_attest) accept complex 'predicate' objects with no schema constraints, examples, or validation guidance. LLMs will hallucinate invalid structures.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 68 | 2026-07-28+ | v2 |
Get the derived agent identity including model, environment, and policy
Get the currently loaded .aflock policy
Get current session information including metrics
Get a JWT authorization token for this session. The token encodes agent identity, policy scope, and allowed tools.
Read a file with policy enforcement
Sign an attestation for arbitrary data using SPIRE identity
Write content to a file with policy enforcement
No error handling guidance visible. Tools do not document what errors are retryable, user-fixable, or fatal. No recovery suggestions.