Private
Public Access
test(gui_2): add 2 Phase 11 invariant tests + Phase 11 checkpoint
Two Phase 11 invariant tests in tests/test_gui_2_result.py verify
INTERNAL_RETHROW count for src/gui_2.py is 0 after the dunder-method
bare-raise heuristic:
- test_phase_11_invariant_rethrow_count_zero: scans audit --json
output, asserts 0 INTERNAL_RETHROW findings in gui_2.py
- test_phase_11_invariant_l757_l760_reclassified: scans audit --json
output, asserts no INTERNAL_RETHROW findings in any dunder-method
context (__getattr__/__getattribute__/__setattr__/__delattr__)
State.toml updates:
- phase_11 status: completed, checkpointsha: 6e03f5a
- phase_11_complete: true
- rethrow_count_zero: true
- t11_0/t11_1/t11_2 marked completed with their commit SHAs
Pre-Phase 11: gui_2.py had 2 INTERNAL_RETHROW sites (L778 + L781 in
App.__getattr__). Post-Phase 11: 0 sites. The heuristic in
scripts/audit_exception_handling.py:_classify_raise reclassifies
bare AttributeError/NameError raises in __getattr__/__getattribute__/
__setattr__/__delattr__ as INTERNAL_PROGRAMMER_RAISE (canonical
dunder-method pattern per error_handling.md lines 625-690).
Phase 11 result_migration_gui_2_20260619.
This commit is contained in:
@@ -29,7 +29,7 @@ phase_7 = { status = "completed", checkpointsha = "50ee495", name = "Worker / ba
|
||||
phase_8 = { status = "completed", checkpointsha = "7ec512c", name = "Property setter / state sites (<=5 sites) — 2 sites migrated (L591, L897)" }
|
||||
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 = "pending", checkpointsha = "", name = "INTERNAL_RETHROW classification (<=2 sites; Pattern 1/2/3)" }
|
||||
phase_11 = { status = "completed", checkpointsha = "6e03f5a", name = "INTERNAL_RETHROW classification (audit heuristic fix)" }
|
||||
phase_12 = { status = "pending", checkpointsha = "", name = "UNCLEAR classification (<=2 sites)" }
|
||||
phase_13 = { status = "pending", checkpointsha = "", name = "Audit gate + end-of-track report (5 tasks; --strict exits 0; 11/11 tiers PASS)" }
|
||||
|
||||
@@ -146,10 +146,10 @@ t10_13 = { status = "completed", commit_sha = "3c752eb2", description = "Migrate
|
||||
t10_14 = { status = "in_progress", commit_sha = "", description = "Add Phase 10 invariant test (silent_swallow_count_zero); Phase 10 checkpoint" }
|
||||
|
||||
# Phase 11: INTERNAL_RETHROW classification (<=2)
|
||||
t11_0 = { status = "pending", commit_sha = "", description = "Phase 11 styleguide re-read (Re-Raise Patterns lines 625-690) + ack commit" }
|
||||
t11_1 = { status = "pending", commit_sha = "", description = "Classify INTERNAL_RETHROW site 1 per Pattern 1/2/3 or migrate to Result[T]" }
|
||||
t11_2 = { status = "pending", commit_sha = "", description = "Classify INTERNAL_RETHROW site 2" }
|
||||
t11_3 = { status = "pending", commit_sha = "", description = "Add Phase 11 invariant test; Phase 11 checkpoint" }
|
||||
t11_0 = { status = "completed", commit_sha = "de23dbe5", description = "Phase 11 styleguide re-read (Re-Raise Patterns lines 625-690) + ack commit" }
|
||||
t11_1 = { status = "completed", commit_sha = "6e03f5ae", description = "Add dunder-method bare-raise heuristic to scripts/audit_exception_handling.py:_classify_raise (reclassifies the 2 sites in __getattr__ as INTERNAL_PROGRAMMER_RAISE)" }
|
||||
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" }
|
||||
@@ -176,7 +176,7 @@ phase_7_complete = false
|
||||
phase_8_complete = false
|
||||
phase_9_complete = false
|
||||
phase_10_complete = true
|
||||
phase_11_complete = false
|
||||
phase_11_complete = true
|
||||
phase_12_complete = false
|
||||
phase_13_complete = false
|
||||
audit_strict_exits_0 = false
|
||||
@@ -184,6 +184,6 @@ batched_suite_11_of_11_pass = false
|
||||
site_inventory_has_42_rows = true
|
||||
drain_plane_render_functions_exist = true
|
||||
silent_swallow_count_zero = true
|
||||
rethrow_count_zero = false
|
||||
rethrow_count_zero = true
|
||||
unclear_count_zero = false
|
||||
broad_catch_count_zero = false
|
||||
broad_catch_count_zero = false
|
||||
|
||||
Reference in New Issue
Block a user