Summary
Implement ahc validate <manifest> — the first v0.3 toolchain command. Validates a World Manifest v2 file for schema correctness and budget coherence without compiling or running anything.
Depends on: #120 (v0.2 Phase 4 compiler integration)
Scope
- Schema-level validation: required fields, type checks, cross-reference integrity, unknown action detection
- Budget sanity check: declared budgets must cover at least one known model in the pricing registry
- Clear, actionable error messages with field paths
- Exit code 0 on success, non-zero on validation failure
Key Files
src/agent_hypervisor/compiler/cli.py — add validate command
src/agent_hypervisor/compiler/schema_v2.py — validation logic
tests/compiler/test_validate.py — new test file
Acceptance Criteria
Milestone
v0.3
Summary
Implement
ahc validate <manifest>— the first v0.3 toolchain command. Validates a World Manifest v2 file for schema correctness and budget coherence without compiling or running anything.Depends on: #120 (v0.2 Phase 4 compiler integration)
Scope
Key Files
src/agent_hypervisor/compiler/cli.py— addvalidatecommandsrc/agent_hypervisor/compiler/schema_v2.py— validation logictests/compiler/test_validate.py— new test fileAcceptance Criteria
ahc validate manifests/workspace_v2.yamlexits 0ahc validateon a malformed manifest prints actionable errors and exits non-zeropytest tests/compiler/test_validate.py -vpassesMilestone
v0.3