Files
manual_slop/scripts/tier2/artifacts/fix_line_204.py
T
ed 93ccf1b182 chore(tier2): move throw-away scripts to artifacts/ subdir
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.
2026-06-17 02:05:10 -04:00

29 lines
738 B
Python

"""Fix the contradictory line 204 in error_handling.md."""
from __future__ import annotations
import sys
from pathlib import Path
DOC = Path("conductor/code_styleguides/error_handling.md")
OLD = " grok); `send()` is the new public API; `send()` is `@deprecated`."
NEW = " grok); `send(...) -> Result[str, ErrorInfo]` is the public API."
def main() -> int:
with DOC.open("r", encoding="utf-8", newline="") as f:
content = f.read()
if OLD not in content:
print(f"NOT FOUND: {OLD!r}", file=sys.stderr)
return 1
new_content = content.replace(OLD, NEW, 1)
with DOC.open("w", encoding="utf-8", newline="") as f:
f.write(new_content)
print("Line 204 fixed.")
return 0
if __name__ == "__main__":
raise SystemExit(main())