Private
Public Access
conductor(plan): Mark Task 5.1 complete (Phase 5 docs done)
This commit is contained in:
@@ -494,14 +494,14 @@ Next: rename in 3 current docs (Phase 5)." <hash>
|
|||||||
- Modify: `docs/guide_app_controller.md` (refs)
|
- Modify: `docs/guide_app_controller.md` (refs)
|
||||||
- Modify: `conductor/code_styleguides/error_handling.md` (6 refs)
|
- Modify: `conductor/code_styleguides/error_handling.md` (6 refs)
|
||||||
|
|
||||||
### Task 5.1: Rename in the 3 current docs (single commit)
|
### Task 5.1: Rename in the 3 current docs (single commit) [9b50112]
|
||||||
|
|
||||||
- [ ] **Step 1: Identify all references in the 3 docs**
|
- [x] **Step 1: Identify all references in the 3 docs**
|
||||||
|
|
||||||
Run: `git grep -n "send_result" -- docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md`
|
Run: `git grep -n "send_result" -- docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md`
|
||||||
Expected: ~10-15 lines total.
|
Expected: ~10-15 lines total.
|
||||||
|
|
||||||
- [ ] **Step 2: Rename each reference**
|
- [x] **Step 2: Rename each reference**
|
||||||
|
|
||||||
For each reference:
|
For each reference:
|
||||||
- `ai_client.send_result` → `ai_client.send`
|
- `ai_client.send_result` → `ai_client.send`
|
||||||
@@ -514,7 +514,7 @@ Use the MCP edit tool. These are doc files; readability matters.
|
|||||||
Verify: `git grep "send_result" -- docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md`
|
Verify: `git grep "send_result" -- docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md`
|
||||||
Expected: 0 matches.
|
Expected: 0 matches.
|
||||||
|
|
||||||
- [ ] **Step 3: Commit**
|
- [x] **Step 3: Commit**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md
|
git add docs/guide_ai_client.md docs/guide_app_controller.md conductor/code_styleguides/error_handling.md
|
||||||
@@ -528,7 +528,7 @@ docs/reports/*) are NOT modified — they document the 2026-06-15
|
|||||||
public_api_migration decision and stay as historical record."
|
public_api_migration decision and stay as historical record."
|
||||||
```
|
```
|
||||||
|
|
||||||
- [ ] **Step 4: Attach the git note**
|
- [x] **Step 4: Attach the git note**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git notes add -m "Task 5.1: rename in 3 current docs
|
git notes add -m "Task 5.1: rename in 3 current docs
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
"""Update plan.md for Task 5.1."""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
PLAN = Path("conductor/tracks/send_result_to_send_20260616/plan.md")
|
||||||
|
SHA = "9b50112"
|
||||||
|
|
||||||
|
EDITS: list[tuple[str, str]] = [
|
||||||
|
(
|
||||||
|
"### Task 5.1: Rename in the 3 current docs (single commit)\n\n- [ ] **Step 1: Identify all references in the 3 docs**",
|
||||||
|
f"### Task 5.1: Rename in the 3 current docs (single commit) [{SHA}]\n\n- [x] **Step 1: Identify all references in the 3 docs**",
|
||||||
|
),
|
||||||
|
("- [ ] **Step 2: Rename each reference**", "- [x] **Step 2: Rename each reference**"),
|
||||||
|
("- [ ] **Step 3: Commit**", "- [x] **Step 3: Commit**"),
|
||||||
|
("- [ ] **Step 4: Attach the git note**", "- [x] **Step 4: 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())
|
||||||
Reference in New Issue
Block a user