Skip to content

v0.3.0 — AI Agent Interoperability Extension

Choose a tag to compare

@foo-ogawa foo-ogawa released this 10 May 08:44
· 251 commits to main since this release
5502f1d

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-agent formalization — typed Zod schema (XAgentSchema) with validation rules for risk level, side effects, idempotency, confirmation, and dangerous options
  • Agent response reference schemas — AgentFinding, AgentAuditResult, AgentRecommendedAction, AgentEvidence defined in cli-contract.yaml and exported via cli-contracts/agent subpath
  • 5 LLM-backed commands with a shared option interface (--adapter, --model, --dry-run, --fail-on, --output, --report-format):
    • propose-agent-policy — detect missing or inconsistent x-agent policies
    • audit — semantic audit of contract design quality
    • propose-tests — generate test case proposals from contract definitions
    • explain-diff — human-readable contract diff explanations with migration notes
    • suggest — draft a contract from existing CLI sources (README, --help output, source code)
  • Agent-contracts DSL integration — dsl/ directory with agent/task definitions processed by agent-contracts-runtime
  • New x-agent fields — requiresConfirmationWhen, idempotentNote, sideEffectNote, dangerousOptions, expectedDurationMs, retryableExitCodes, preferAlternative
  • Input constraints — mutuallyExclusive and requiredOneOf constraint declarations in contract
  • Conditional format expressions — dynamic stdout.format based on option values (e.g. '{options.report-format}')

Breaking Changes

  • validate exit code for "errors found" changed from 3 to 9. Exit code 3 is now reserved for contract validation/parse failure as a precondition across other commands.

Dependencies

  • agent-contracts-runtime added as an optional peer dependency for LLM-backed commands
  • Use --dry-run on any LLM command to inspect the prompt context without the runtime installed

Full diff: v0.2.2...v0.3.0