CodeProof AI
codeproofComplete User Guide
Scenarios

Scenario library: twelve CodeProof AI problems solved

From hallucinated pull request to audit-ready evidence.

Scenario 1: PR with zero tests

codeproof scan fails; inventory flags test-gap; reviewer requires coverage fix.

Scenario 2: Large migration adding 200 files

Policy exclusion covers vendor dirs; gate passes; tests added for critical paths.

Scenario 3: Moving CI without losing policy

Copy .codeproof.yml; drop it into every repo; scan cleanly before enforcing.

Scenario 4: Untrusted contractor repo

Clone into isolated VM; pytest; import smoke; never run locally.

Scenario 5: Suspicious dependency CVE

[audit] adds pip-audit; findings block release; owner swaps package.

Scenario 6: Gate failure unexpected

Policy drift; .codeproof.yml changed; revert or retune intentionally.

Scenario 7: Semgrep false positive storm

Add focused local ruleset; ignore by exact id; retest.

Scenario 8: New team member onboarding

Install; run smoke; read report; learn policy; commit one small fix.

Scenario 9: Evidence for customer audit

Export SARIF; attach to questionnaire; show history.

Scenario 10: Hotfix during outage

Forget local rules; run scan with exported SARIF for triage; assign retro.

Scenario 11: Legacy repo with 60 gates

Gradual adoption: allow non-blocking signal; climb fail-under threshold slowly.

Scenario 12: Merging auto-generated code

Commit generator output; require gate; inventory shows gaps; author adds three tests max.