Problem
The critical user journey `init → validate → health → audit → generate` has unit tests per command but no integration test that runs the full sequence. A breaking change in the manifest schema could break the entire flow without CI catching it.
Proposed fix
Add an E2E test (can be a shell script or vitest integration test) that:
- Runs `agentspec init --yes` in a temp directory
- Runs `agentspec validate agent.yaml` — asserts exit 0
- Runs `agentspec health agent.yaml --no-model --no-mcp --no-memory` — asserts exit 0
- Runs `agentspec audit agent.yaml` — asserts exit 0 and score > 0
- Runs `agentspec generate agent.yaml --framework langgraph --output ./out/ --dry-run` — asserts exit 0 (dry-run avoids needing ANTHROPIC_API_KEY in CI)
This test should run in CI on every PR.
Acceptance criteria
Problem
The critical user journey `init → validate → health → audit → generate` has unit tests per command but no integration test that runs the full sequence. A breaking change in the manifest schema could break the entire flow without CI catching it.
Proposed fix
Add an E2E test (can be a shell script or vitest integration test) that:
This test should run in CI on every PR.
Acceptance criteria