Repository navigation
v0.3.0 — AI Agent Interoperability Extension
What's New
AI Agent Interoperability Extension (#4)
This release adds comprehensive AI agent semantic audit capabilities to cli-contracts via agent-contracts-runtime.
New Features
x-agentformalization — typed Zod schema (XAgentSchema) with validation rules for risk level, side effects, idempotency, confirmation, and dangerous options- Agent response reference schemas —
AgentFinding,AgentAuditResult,AgentRecommendedAction,AgentEvidencedefined incli-contract.yamland exported viacli-contracts/agentsubpath - 5 LLM-backed commands with a shared option interface (
--adapter,--model,--dry-run,--fail-on,--output,--report-format):propose-agent-policy— detect missing or inconsistentx-agentpoliciesaudit— semantic audit of contract design qualitypropose-tests— generate test case proposals from contract definitionsexplain-diff— human-readable contract diff explanations with migration notessuggest— draft a contract from existing CLI sources (README, --help output, source code)
- Agent-contracts DSL integration —
dsl/directory with agent/task definitions processed byagent-contracts-runtime - New
x-agentfields —requiresConfirmationWhen,idempotentNote,sideEffectNote,dangerousOptions,expectedDurationMs,retryableExitCodes,preferAlternative - Input constraints —
mutuallyExclusiveandrequiredOneOfconstraint declarations in contract - Conditional format expressions — dynamic
stdout.formatbased on option values (e.g.'{options.report-format}')
Breaking Changes
validateexit code for "errors found" changed from3to9. Exit code3is now reserved for contract validation/parse failure as a precondition across other commands.
Dependencies
agent-contracts-runtimeadded as an optional peer dependency for LLM-backed commands- Use
--dry-runon any LLM command to inspect the prompt context without the runtime installed
Full diff: v0.2.2...v0.3.0