Private
Public Access
0
0

conductor(plan): Mark Task 2.1 complete

This commit is contained in:
2026-06-17 00:28:17 -04:00
parent d87d909f7b
commit d714d10fd4
2 changed files with 52 additions and 6 deletions
@@ -123,14 +123,14 @@ Verify: 10 references in `src/ai_client.py` are renamed; test suite is in the ex
- Modify: `src/multi_agent_conductor.py` (2 refs: 1 call + 1 print)
- Modify: `src/orchestrator_pm.py` (2 refs: 1 call + 1 print)
### Task 2.1: Rename in the 5 other src/ files (single batch commit)
### Task 2.1: Rename in the 5 other src/ files (single batch commit) [d87d909]
- [ ] **Step 1: Identify all references in the 5 files**
- [x] **Step 1: Identify all references in the 5 files**
Run: `git grep -n "send_result" -- src/app_controller.py src/conductor_tech_lead.py src/mcp_client.py src/multi_agent_conductor.py src/orchestrator_pm.py`
Expected: 10 lines total (2 + 3 + 1 + 2 + 2 = 10).
- [ ] **Step 2: Rename each reference**
- [x] **Step 2: Rename each reference**
For each of the 10 references:
- `ai_client.send_result(...)``ai_client.send(...)` (call sites)
@@ -144,12 +144,12 @@ Use the MCP edit tool. Special attention:
Verify: `git grep "send_result" -- src/app_controller.py src/conductor_tech_lead.py src/mcp_client.py src/multi_agent_conductor.py src/orchestrator_pm.py`
Expected: 0 matches.
- [ ] **Step 3: Run the test suite — confirm partial green**
- [x] **Step 3: Run the test suite — confirm partial green**
Run: `uv run pytest 2>&1 | tail -3`
Expected: still many failures, but fewer than Phase 1. The remaining failures are in test files (which still mock `send_result`).
- [ ] **Step 4: Commit**
- [x] **Step 4: Commit**
```bash
git add src/app_controller.py src/conductor_tech_lead.py src/mcp_client.py src/multi_agent_conductor.py src/orchestrator_pm.py
@@ -165,7 +165,7 @@ that still reference send_result).
Refs: conductor/tracks/send_result_to_send_20260616/"
```
- [ ] **Step 5: Attach the git note**
- [x] **Step 5: Attach the git note**
```bash
git notes add -m "Task 2.1: rename in 5 other src/ files (batch)
+46
View File
@@ -0,0 +1,46 @@
"""Update plan.md to mark Task 2.1 as complete with commit SHA."""
from __future__ import annotations
import sys
from pathlib import Path
PLAN = Path("conductor/tracks/send_result_to_send_20260616/plan.md")
SHA = "d87d909"
EDITS: list[tuple[str, str]] = [
(
"### Task 2.1: Rename in the 5 other src/ files (single batch commit)\n\n- [ ] **Step 1: Identify all references in the 5 files**",
f"### Task 2.1: Rename in the 5 other src/ files (single batch commit) [{SHA}]\n\n- [x] **Step 1: Identify all references in the 5 files**",
),
("- [ ] **Step 2: Rename each reference**", "- [x] **Step 2: Rename each reference**"),
("- [ ] **Step 3: Run the test suite — confirm partial green**", "- [x] **Step 3: Run the test suite — confirm partial 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())