Core Architecture & Invariant CI / validate (pull_request) Failing after 1m14s
Harden unit test assertions and coverage across core control plane modules based on mutation testing findings. - tests/unit/test_appctl_cli.py: preserve PYTHONPATH in subprocess environment; add coverage for empty workload lists, core service display, rich metadata, SSL status formatting (_format_ssl_info), and resolve JSON output. - tests/unit/test_appctl_auth.py: assert specific ErrorCode on permission denials; verify operator denial without explicit target on mutating operations. - tests/unit/test_appctl_audit.py: verify journal serialization and entry ordering. - tests/unit/test_appctl_contracts.py: verify sanitize_validation_error strips secret token values and exact error details. - tests/unit/test_appctl_router.py: assert RouterValidationError on whitespace domains and verify domain canonicalization. - tests/unit/test_core_manifest.py: anchor empty URL regex validation; verify rejection of root repository URLs (https://git.example.com/). - tests/unit/test_provenance.py: verify Class B workload image-only status and default timeout enforcement in resolve_upstream_provenance(). Rationale: Mutation analysis identified weak substring assertions and missing branch coverage across CLI output formatting and security boundaries. Hardening these assertions kills surviving mutants and prevents behavioral regressions.