Commit Graph

1 Commits

Author SHA1 Message Date
Profa 052557b099 feat: Phase 0+1 CI-native CLI — 17 bug fixes + exit code 2 for warnings
Phase 0 verification (87 test cases, 17 fixes):
- CRIT-1: CLI process hang — switched to parseAsync() + cleanupAndExit()
- CRIT-2: Auto-init pollutes stdout in --format json — routed to stderr
- CRIT-3: quality command calls wrong domain API method
- CRIT-4: security --compliance calls wrong method signature
- CRIT-5: OpenRouter/Ollama crash on undefined defaultModel
- HIGH-1–6: CLI hangs, strict init, hardcoded version, team_scale clamping,
  test executor error handling, infra healing default playbook
- MED-1–6: Doc fixes, decimal formatting, inline quality eval, ghost coverage
  false positives, model router minimum complexity, MCP coverage fallback

Phase 1 CI-native exit codes:
- security: exit 1 (critical/high), exit 2 (medium-only), exit 0 (low/none)
- quality: exit 1 (gate fail), exit 2 (within 5% of perfect), exit 0 (pass)
- coverage: exit 1 (below threshold — was always 0, bug), exit 2 (near threshold)
- test: exit 1 (failures), exit 2 (>20% skipped), exit 0 (all pass)

Docs updated: Phase 1 items 1.1, 1.2, 1.5 marked DONE in plan and test plan.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 12:45:03 +00:00