Private
Public Access
Tier 2 wrote 23 working scripts to scripts/tier2/ during the send_result_to_send_20260616 track. These were scaffolding for the rename work, not part of the codebase. Move them to scripts/tier2/artifacts/ so the base scripts/tier2/ directory stays clean (it should only contain the production code: failcount.py, run_track.py, write_report.py, setup_tier2_clone.ps1, run_tier2_sandboxed.ps1, fetch_tier2_branch.ps1). Per user feedback 2026-06-17: throw-away scripts are kept (for archival) but live in a dedicated subdir, not in the production namespace.
33 lines
826 B
Python
33 lines
826 B
Python
"""Apply Phase 5 mechanical rename to the 3 current docs."""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
FILES = [
|
|
"docs/guide_ai_client.md",
|
|
"docs/guide_app_controller.md",
|
|
"conductor/code_styleguides/error_handling.md",
|
|
]
|
|
|
|
|
|
def main() -> int:
|
|
total = 0
|
|
for rel in FILES:
|
|
p = Path(rel)
|
|
with p.open("r", encoding="utf-8", newline="") as f:
|
|
content = f.read()
|
|
before = content.count("send_result")
|
|
new_content = content.replace("send_result", "send")
|
|
with p.open("w", encoding="utf-8", newline="") as f:
|
|
f.write(new_content)
|
|
remaining = new_content.count("send_result")
|
|
print(f"{rel}: {before} -> {before - remaining} (remaining={remaining})")
|
|
total += before - remaining
|
|
print(f"Total: {total} renamed")
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|