From f0663fda6ac643e5f725950677c1e057eee9ea24 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 17 Jun 2026 00:29:54 -0400 Subject: [PATCH] conductor(plan): Mark Task 3.1 complete --- .../send_result_to_send_20260616/plan.md | 12 ++--- scripts/tier2/update_plan_t3_1.py | 46 +++++++++++++++++++ 2 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 scripts/tier2/update_plan_t3_1.py diff --git a/conductor/tracks/send_result_to_send_20260616/plan.md b/conductor/tracks/send_result_to_send_20260616/plan.md index 57d654f9..f086b5cf 100644 --- a/conductor/tracks/send_result_to_send_20260616/plan.md +++ b/conductor/tracks/send_result_to_send_20260616/plan.md @@ -190,14 +190,14 @@ Next: rename in the top 5 test files individually (Phase 3)." - Modify: `tests/test_conductor_tech_lead.py` (8 refs) - Modify: `tests/test_orchestrator_pm_history.py` (4 refs) -### Task 3.1: Rename in `tests/test_conductor_engine_v2.py` (22 refs) +### Task 3.1: Rename in `tests/test_conductor_engine_v2.py` (22 refs) [3e2b4f7] -- [ ] **Step 1: Verify the test file currently fails (red for this file)** +- [x] **Step 1: Verify the test file currently fails (red for this file)** Run: `uv run pytest tests/test_conductor_engine_v2.py 2>&1 | tail -3` Expected: all tests in this file fail with `send_result` AttributeError. -- [ ] **Step 2: Rename the 22 references** +- [x] **Step 2: Rename the 22 references** Run: `git grep -n "send_result" -- tests/test_conductor_engine_v2.py` Expected: 22 lines. For each: @@ -212,12 +212,12 @@ Use the MCP edit tool. The 22 refs in this file are mostly `monkeypatch.setattr( Verify: `git grep "send_result" -- tests/test_conductor_engine_v2.py` Expected: 0 matches. -- [ ] **Step 3: Run the test file — confirm green** +- [x] **Step 3: Run the test file — confirm green** Run: `uv run pytest tests/test_conductor_engine_v2.py 2>&1 | tail -3` Expected: all tests in this file pass. -- [ ] **Step 4: Commit** +- [x] **Step 4: Commit** ```bash git add tests/test_conductor_engine_v2.py @@ -227,7 +227,7 @@ git commit -m "test(ai_client): rename send_result to send in test_conductor_eng Test file state: GREEN. All 22+ tests in this file now pass." ``` -- [ ] **Step 5: Attach the git note** +- [x] **Step 5: Attach the git note** ```bash git notes add -m "Task 3.1: rename in test_conductor_engine_v2.py diff --git a/scripts/tier2/update_plan_t3_1.py b/scripts/tier2/update_plan_t3_1.py new file mode 100644 index 00000000..f0f3763e --- /dev/null +++ b/scripts/tier2/update_plan_t3_1.py @@ -0,0 +1,46 @@ +"""Update plan.md for Task 3.1.""" +from __future__ import annotations + +import sys +from pathlib import Path + +PLAN = Path("conductor/tracks/send_result_to_send_20260616/plan.md") +SHA = "3e2b4f7" + +EDITS: list[tuple[str, str]] = [ + ( + "### Task 3.1: Rename in `tests/test_conductor_engine_v2.py` (22 refs)\n\n- [ ] **Step 1: Verify the test file currently fails (red for this file)**", + f"### Task 3.1: Rename in `tests/test_conductor_engine_v2.py` (22 refs) [{SHA}]\n\n- [x] **Step 1: Verify the test file currently fails (red for this file)**", + ), + ("- [ ] **Step 2: Rename the 22 references**", "- [x] **Step 2: Rename the 22 references**"), + ("- [ ] **Step 3: Run the test file — confirm green**", "- [x] **Step 3: Run the test file — confirm green**"), + ("- [ ] **Step 4: Commit**", "- [x] **Step 4: Commit**"), + ("- [ ] **Step 5: Attach the git note**", "- [x] **Step 5: Attach the git note**"), +] + + +def main() -> int: + with PLAN.open("r", encoding="utf-8", newline="") as f: + content = f.read() + has_crlf = "\r\n" in content + nl = "\r\n" if has_crlf else "\n" + normalized = [(o.replace("\n", nl), n.replace("\n", nl)) for o, n in EDITS] + new_content = content + applied = 0 + for old, new in normalized: + if old in new_content: + new_content = new_content.replace(old, new, 1) + applied += 1 + else: + print(f"NOT FOUND: {old[:80]!r}", file=sys.stderr) + if applied != len(EDITS): + print(f"Only applied {applied}/{len(EDITS)} edits.", file=sys.stderr) + return 1 + with PLAN.open("w", encoding="utf-8", newline="") as f: + f.write(new_content) + print(f"Applied {applied}/{len(EDITS)} edits. Line endings: {'CRLF' if has_crlf else 'LF'}") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main())