From 11d331238d3d06e797d5a80f5c8f5d9d6492bdca Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 20 Jun 2026 00:31:32 -0400 Subject: [PATCH] chore: TIER-2 READ conductor/code_styleguides/error_handling.md lines 462-540 (logging NOT a drain) before Phase 10 CRITICAL ANTI-SLIMING PHASE. Per the user's principle (2026-06-17) and error_handling.md:530: 'IF ANY PLACE HAS A ERROR LOG IT ALSO NEEDS A RESULT[T]. RESULT[T] PROPOGATES UNTIL IT REACHED A DRAIN POINT WHERE THE ERROR CAN BE HANDLED APPROPRIATELY WITHOUT CRASHING THE APP.' The 13 INTERNAL_SILENT_SWALLOW sites have logging-only except bodies (sys.stderr.write, print, traceback.print_exc). Per the styleguide, logging is NOT a drain. These sites MUST be migrated to full Result[T] propagation. No narrowing + logging; no pass after logging; no intentional silent recovery. Migration pattern for Phase 10: 1. Extract a __result helper that returns Result[bool] 2. The helper's except body converts the exception to ErrorInfo 3. The legacy wrapper drains to the appropriate data plane attr: - _startup_timeline_errors for startup-time (L216, L241, L567, L684, L971) - _last_request_errors for render-loop/event handler (L1071, L1501, L1527, L6691, L7026, L7042) - _worker_errors for background thread callbacks (L4739, L1345) The 13 sites (per PHASE1_SITE_INVENTORY.md): - L216 _detect_refresh_rate_win32 - L241 _resolve_font_path - L567 _post_init - L684 run - L971 shutdown - L1071 _gui_func - L1345 _close_vscode_diff - L1501 render_main_interface (auto-save) - L1527 render_main_interface (auto-save) - L4739 _on_warmup_complete_callback - L6691 render_tier_stream_panel - L7026 render_task_dag_panel - L7042 render_task_dag_panel One atomic commit per site. NO sliming heuristics. NO pass-after-logging. NO 'intentional silent recovery'. Each site becomes a Result[T].