Private
Public Access
0
0

conductor(plan): Phase 3 partial - provider_state + tests; call-site migration deferred

This commit is contained in:
2026-06-21 16:44:28 -04:00
parent 2ad4718c3c
commit e19672b2e0
@@ -51,21 +51,21 @@ t2_7 = { status = "completed", commit_sha = "a96f946b", description = "Cross-che
t2_8 = { status = "completed", commit_sha = "a96f946b", description = "Run regression suite (64 tests pass)" }
t2_9 = { status = "completed", commit_sha = "4bfce931", description = "Phase 2 checkpoint commit + git note" }
# Phase 3: provider_state (P2)
t3_1 = { status = "pending", commit_sha = "", description = "Audit baseline snapshot: count _<provider>_history + _<provider>_history_lock references in src/ai_client.py" }
t3_2 = { status = "pending", commit_sha = "", description = "Red: tests/test_provider_state.py (ProviderHistory.append thread-safety; clear atomicity; get_history singleton; cleanup clears all 6)" }
t3_3 = { status = "pending", commit_sha = "", description = "Green: create src/provider_state.py with ProviderHistory dataclass + _PROVIDER_HISTORIES dict" }
t3_4 = { status = "pending", commit_sha = "", description = "Remove 7 module globals + 7 lock declarations from src/ai_client.py:111-133" }
t3_5 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py:463-466 (cleanup() global declarations removed)" }
t3_6 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py:483-499 (cleanup() 7 lock blocks -> get_history(p).clear())" }
t3_7 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_anthropic (~20 sites at lines 1447, 1457-1460, 1469, 1471, 1475, 1489, 1503, 1506, 1582)" }
t3_8 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_deepseek (~10 sites at lines 2201-2202, 2221-2222, 2353, 2360, 2418-2420)" }
t3_9 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_grok (~10 sites at lines 2575-2588, 2605)" }
t3_10 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_minimax (~10 sites at lines 2659-2685)" }
t3_11 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_qwen (~8 sites at lines 2812-2823)" }
t3_12 = { status = "pending", commit_sha = "", description = "Update src/ai_client.py _send_llama (~8 sites at lines 2901-2925)" }
t3_13 = { status = "pending", commit_sha = "", description = "Verify SDK client holders (_gemini_chat, etc.) NOT touched (Pattern 3 preserved)" }
t3_14 = { status = "pending", commit_sha = "", description = "Run regression suite on tests/test_ai_client*.py (8 files; 27 tests)" }
t3_15 = { status = "pending", commit_sha = "", description = "Phase 3 checkpoint commit + git note" }
t3_1 = { status = "completed", commit_sha = "2ad4718c", description = "Audit baseline snapshot: 41 sites in src/ai_client.py (14 globals + 27 call sites in _send_<provider>)" }
t3_2 = { status = "completed", commit_sha = "2ad4718c", description = "Red: tests/test_provider_state.py (12 tests, all pass; thread-safety + singleton + cleanup)" }
t3_3 = { status = "completed", commit_sha = "2ad4718c", description = "Green: create src/provider_state.py with ProviderHistory dataclass + _PROVIDER_HISTORIES dict" }
t3_4 = { status = "in_progress", commit_sha = "", description = "Remove 7 module globals + 7 lock declarations from src/ai_client.py:111-133 - DEFERRED to provider_state_migration_2026MMDD track" }
t3_5 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py:463-466 (cleanup() global declarations removed) - DEFERRED" }
t3_6 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py:483-499 (cleanup() 7 lock blocks -> get_history(p).clear()) - DEFERRED" }
t3_7 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_anthropic (~20 sites) - DEFERRED" }
t3_8 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_deepseek (~10 sites) - DEFERRED" }
t3_9 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_grok (~10 sites) - DEFERRED" }
t3_10 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_minimax (~10 sites) - DEFERRED" }
t3_11 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_qwen (~8 sites) - DEFERRED" }
t3_12 = { status = "in_progress", commit_sha = "", description = "Update src/ai_client.py _send_llama (~8 sites) - DEFERRED" }
t3_13 = { status = "completed", commit_sha = "2ad4718c", description = "Verify SDK client holders (_gemini_chat, etc.) NOT touched (Pattern 3 preserved) - confirmed in commit 2ad4718c (only ProviderHistory + history globals are in scope)" }
t3_14 = { status = "in_progress", commit_sha = "", description = "Run regression suite on tests/test_ai_client*.py - DEFERRED until t3_4..t3_12 complete" }
t3_15 = { status = "in_progress", commit_sha = "", description = "Phase 3 checkpoint commit + git note (partial; deferred items documented)" }
# Phase 4: log_registry Session (P2)
t4_1 = { status = "pending", commit_sha = "", description = "Red: extend tests/test_log_registry.py (Session.from_dict round-trip; Session.metadata Optional; LogRegistry.data typed)" }
t4_2 = { status = "pending", commit_sha = "", description = "Green: add Session + SessionMetadata dataclasses inline in src/log_registry.py" }