From 7fb13fbf4b3a692d6b041487782af05200671dd8 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 6 Jun 2026 16:13:35 -0400 Subject: [PATCH] conductor(plan): Record Phase 3 checkpoint SHA + mark T3.6 complete --- conductor/tracks/startup_speedup_20260606/plan.md | 4 ++-- conductor/tracks/startup_speedup_20260606/state.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conductor/tracks/startup_speedup_20260606/plan.md b/conductor/tracks/startup_speedup_20260606/plan.md index 9f8e554d..9a10f43e 100644 --- a/conductor/tracks/startup_speedup_20260606/plan.md +++ b/conductor/tracks/startup_speedup_20260606/plan.md @@ -53,11 +53,11 @@ swaps to `_require_warmed(name)`. - [x] **T3.3** Run existing `tests/test_ai_client.py` + `tests/test_tier4_*.py`; fix breakage. 2 tests in `test_tier4_patch_generation.py` adapted: `patch('src.ai_client.types')` -> `patch('src.ai_client._require_warmed', return_value=mock_types)` (the new public mechanism). All 25 tests pass. `[T3.3: 51c054ec]` - [x] **T3.4** Re-run T3.1 tests, confirm PASS (9/9 green). `[T3.4: 51c054ec]` - [x] **T3.5** Commit: `refactor(ai_client): remove top-level SDK imports; use _require_warmed` + git note. `[T3.5: 51c054ec]` -- [x] **T3.6** Update `conductor/tracks.md` T3 row with SHA. `[T3.6: ]` +- [x] **T3.6** Update `conductor/tracks.md` T3 row with SHA. `[T3.6: 8905c26b]` **Phase 3 status:** All tasks complete. `import src.ai_client` no longer triggers any heavy SDK import. When run inside an `AppController` whose warmup has completed, `_send_*` functions find the SDKs in `sys.modules` and execute instantly. Cold-start baseline (T9.1) will measure the time saved. -**Phase 3 checkpoint (target):** `import src.ai_client` < 50ms cold. +**Phase 3 checkpoint (target):** `import src.ai_client` < 50ms cold. [checkpoint: 056358f2] --- diff --git a/conductor/tracks/startup_speedup_20260606/state.toml b/conductor/tracks/startup_speedup_20260606/state.toml index ea7acf7d..5718a4de 100644 --- a/conductor/tracks/startup_speedup_20260606/state.toml +++ b/conductor/tracks/startup_speedup_20260606/state.toml @@ -39,7 +39,7 @@ t3_2 = { status = "completed", commit_sha = "51c054ec", description = "Green: re t3_3 = { status = "completed", commit_sha = "51c054ec", description = "Fixed existing test_tier4_patch_generation.py breakage (2 tests adapted to mock _require_warmed instead of types)" } t3_4 = { status = "completed", commit_sha = "51c054ec", description = "Confirmed T3.1 tests turn PASS (9/9 green)" } t3_5 = { status = "completed", commit_sha = "51c054ec", description = "Committed T3 refactor: refactor(ai_client): remove top-level SDK imports; use _require_warmed" } -t3_6 = { status = "in_progress", commit_sha = "", description = "Update tracks.md T3 row (in this commit)" } +t3_6 = { status = "completed", commit_sha = "8905c26b", description = "Updated tracks.md T3 row with [phase-3-done: 51c054ec] tag" } # Phase 4: Remove top-level FastAPI imports t4_1 = { status = "pending", commit_sha = "", description = "Red: tests/test_hook_server_no_top_level_fastapi.py" } t4_2 = { status = "pending", commit_sha = "", description = "Green: remove fastapi imports from src/api_hooks.py; use _require_warmed" }