Problem
Three sizeable core modules have no direct test coverage, two of them on the Ship path and one security-adjacent:
| Module |
LOC |
Used by |
Risk |
core/api_key_service.py |
211 |
cli/auth_commands.py, auth/api_key_router.py |
High — security-adjacent (note: the platform_store API-key path is well covered; this core service is the untested duplicate) |
core/artifacts.py |
428 |
cli/app.py (cf patch export) |
Medium — largest untested module, on the Ship path |
core/review.py |
285 |
ui/routers/review_v2.py |
Medium — cf review surface |
core/prd_stress_test.py (499 LOC) is also under-covered relative to size (single thin referencing test).
Fix
- Add direct unit tests for
api_key_service.py, artifacts.py, review.py (MockProvider, no live API calls); expand prd_stress_test.py coverage.
Acceptance criteria
Source: release-readiness audit 2026-06-13 (test/CI agent).
Problem
Three sizeable core modules have no direct test coverage, two of them on the Ship path and one security-adjacent:
core/api_key_service.pycli/auth_commands.py,auth/api_key_router.pycore/artifacts.pycli/app.py(cf patch export)core/review.pyui/routers/review_v2.pycf reviewsurfacecore/prd_stress_test.py(499 LOC) is also under-covered relative to size (single thin referencing test).Fix
api_key_service.py,artifacts.py,review.py(MockProvider, no live API calls); expandprd_stress_test.pycoverage.Acceptance criteria
api_key_service.py,artifacts.py,review.pyhave direct tests covering main paths + error cases.@pytest.mark.v2marker.Source: release-readiness audit 2026-06-13 (test/CI agent).