Skip to content

Proof commands need end-to-end integration tests #455

Description

@frankbria

Summary

The PROOF9 quality system (`cf proof run`, `cf proof capture`, `cf proof waive`, etc.) is a flagship differentiator highlighted in the README and VISION. However, the proof commands shipped in #422 without integration-level CLI tests validating the full capture → enforce → waive → status loop.

Unit tests for the core module exist, but there are no tests in `tests/cli/` that exercise `proof_commands.py` through the Typer CLI runner, and no test that verifies the closed loop (capture a glitch → run proof → see it enforced).

Acceptance Criteria

  • CLI integration test: `cf proof capture` creates a REQ and persists it
  • CLI integration test: `cf proof run` evaluates the workspace against open REQs
  • CLI integration test: `cf proof waive` marks a REQ waived with expiry
  • CLI integration test: `cf proof status` shows correct summary
  • At least one test covering the closed loop: capture → run → see obligation enforced

References

  • `codeframe/cli/proof_commands.py` — 6 commands
  • `tests/cli/` — existing CLI test pattern to follow
  • `tests/core/test_proof*.py` — unit tests that already exist (add integration layer on top)

Why Pre-Launch

PROOF9 is marketed as the core differentiator. If it silently fails in the CLI for a new user, it undermines the product's main claim.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-6Pre-launch hardening: critical items before public release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions