test(gui_2): add 2 Phase 12 invariant tests + Phase 12 checkpoint

Two Phase 12 invariant tests in tests/test_gui_2_result.py verify
UNCLEAR count for src/gui_2.py is 0 after the lazy-loading sentinel
fallback heuristic:

- test_phase_12_invariant_unclear_count_zero: scans audit --json
  output, asserts 0 UNCLEAR findings in gui_2.py (the 2 lazy-loading
  sites in _LazyModule._resolve reclassified as INTERNAL_COMPLIANT)
- test_phase_12_invariant_l65_l69_reclassified: scans audit --json
  output, asserts no UNCLEAR findings in _LazyModule._resolve
  method context

State.toml updates:
- phase_12 status: completed, checkpointsha: f996aa10
- phase_12_complete: true
- unclear_count_zero: true
- t12_0/t12_1/t12_2 marked completed with their commit SHAs

Pre-Phase 12: gui_2.py had 2 UNCLEAR sites (L65 + L69 in
_LazyModule._resolve). Post-Phase 12: 0 UNCLEAR sites, 56
INTERNAL_COMPLIANT sites (was 54; +2 from reclassification).

Phase 12 result_migration_gui_2_20260619.
This commit is contained in:
ed
2026-06-20 02:26:42 -04:00
parent 28a55ea51c
commit d96e54f2df
2 changed files with 98 additions and 8 deletions
@@ -30,7 +30,7 @@ phase_8 = { status = "completed", checkpointsha = "7ec512c", name = "Property se
phase_9 = { status = "completed", checkpointsha = "6b02f49", name = "Helper / utility sites (<=5 sites) — 0 sites in this track (L1398 is SILENT_SWALLOW, Phase 10)" }
phase_10 = { status = "completed", checkpointsha = "df481f7", name = "INTERNAL_SILENT_SWALLOW migrations (<=13 sites; logging NOT a drain)" }
phase_11 = { status = "completed", checkpointsha = "6e03f5a", name = "INTERNAL_RETHROW classification (audit heuristic fix)" }
phase_12 = { status = "pending", checkpointsha = "", name = "UNCLEAR classification (<=2 sites)" }
phase_12 = { status = "completed", checkpointsha = "f996aa10", name = "UNCLEAR classification (lazy-loading fallback heuristic)" }
phase_13 = { status = "pending", checkpointsha = "", name = "Audit gate + end-of-track report (5 tasks; --strict exits 0; 11/11 tiers PASS)" }
[tasks]
@@ -151,11 +151,11 @@ t11_1 = { status = "completed", commit_sha = "6e03f5ae", description = "Add dund
t11_2 = { status = "completed", commit_sha = "a5a06f85", description = "Add 5 regression-guard tests in tests/test_audit_heuristics.py" }
t11_3 = { status = "in_progress", commit_sha = "", description = "Add Phase 11 invariant test; Phase 11 checkpoint" }
# Phase 12: UNCLEAR classification (<=2)
t12_0 = { status = "pending", commit_sha = "", description = "Phase 12 styleguide re-read + ack commit" }
t12_1 = { status = "pending", commit_sha = "", description = "Classify UNCLEAR site 1 (or migrate if non-compliant)" }
t12_2 = { status = "pending", commit_sha = "", description = "Classify UNCLEAR site 2" }
t12_3 = { status = "pending", commit_sha = "", description = "Add Phase 12 invariant test; Phase 12 checkpoint" }
# Phase 12: UNCLEAR classification (<=2) — lazy-loading sentinel fallback heuristic
t12_0 = { status = "completed", commit_sha = "4edd6a95", description = "Phase 12 styleguide re-read (Re-Raise Patterns lines 625-690 + lazy-loading fallback guidance) + ack commit" }
t12_1 = { status = "completed", commit_sha = "f996aa10", description = "Add lazy-loading sentinel fallback heuristic to scripts/audit_exception_handling.py:_try_compliant_pattern (reclassifies the 2 sites in _LazyModule._resolve as INTERNAL_COMPLIANT)" }
t12_2 = { status = "completed", commit_sha = "28a55ea5", description = "Add 3 regression-guard tests in tests/test_audit_heuristics.py" }
t12_3 = { status = "completed", commit_sha = "", description = "Add Phase 12 invariant test; Phase 12 checkpoint" }
# Phase 13: Audit gate + end-of-track report (5 tasks)
t13_1 = { status = "pending", commit_sha = "", description = "Run audit --src src/gui_2.py --strict; verify exit 0" }
@@ -177,7 +177,7 @@ phase_8_complete = false
phase_9_complete = false
phase_10_complete = true
phase_11_complete = true
phase_12_complete = false
phase_12_complete = true
phase_13_complete = false
audit_strict_exits_0 = false
batched_suite_11_of_11_pass = false
@@ -185,5 +185,5 @@ site_inventory_has_42_rows = true
drain_plane_render_functions_exist = true
silent_swallow_count_zero = true
rethrow_count_zero = true
unclear_count_zero = false
unclear_count_zero = true
broad_catch_count_zero = false