diff --git a/conductor/tracks/send_result_to_send_20260616/state.toml b/conductor/tracks/send_result_to_send_20260616/state.toml index df7066b1..caef8ca6 100644 --- a/conductor/tracks/send_result_to_send_20260616/state.toml +++ b/conductor/tracks/send_result_to_send_20260616/state.toml @@ -21,7 +21,7 @@ phase_2 = { status = "completed", checkpointsha = "d87d909f", name = "Rename Oth phase_3 = { status = "completed", checkpointsha = "2f45bc4d", name = "Rename in Top 5 Test Files (one commit per file)" } phase_4 = { status = "completed", checkpointsha = "ada96173", name = "Rename in Remaining 22 Test Files (batch; spec said 24, actual 22)" } phase_5 = { status = "completed", checkpointsha = "9b501123", name = "Rename in 3 Current Docs + Final Verification" } -phase_6 = { status = "in_progress", checkpointsha = "", name = "Update state.toml + metadata.json + register in tracks.md" } +phase_6 = { status = "completed", checkpointsha = "9a5d3b9c", name = "Update state.toml + metadata.json + register in tracks.md" } [tasks] # Phase 1: Rename the Implementation (the TDD red moment) @@ -48,9 +48,9 @@ t5_2 = { status = "completed", commit_sha = "d86131d9", description = "Final ver t5_3 = { status = "completed", commit_sha = "d86131d9", description = "Plan update marking Phase 5 verification complete (auto-confirmed)" } # Phase 6: Update state.toml + metadata.json + register in tracks.md -t6_1 = { status = "in_progress", commit_sha = "", description = "Update state.toml - mark all tasks complete" } -t6_2 = { status = "pending", commit_sha = "", description = "Update metadata.json - set status=shipped" } -t6_3 = { status = "pending", commit_sha = "", description = "Register in conductor/tracks.md" } +t6_1 = { status = "completed", commit_sha = "aad6deff", description = "Update state.toml - mark all tasks complete" } +t6_2 = { status = "completed", commit_sha = "5a58e1ce", description = "Update metadata.json - set status=shipped" } +t6_3 = { status = "completed", commit_sha = "9a5d3b9c", description = "Register in conductor/tracks.md" } [verification] # Filled as the track progresses diff --git a/scripts/tier2/update_state_toml_phase6.py b/scripts/tier2/update_state_toml_phase6.py new file mode 100644 index 00000000..45b34909 --- /dev/null +++ b/scripts/tier2/update_state_toml_phase6.py @@ -0,0 +1,40 @@ +"""Mark Phase 6 tasks as complete in state.toml.""" +from __future__ import annotations + +from pathlib import Path + +STATE = Path("conductor/tracks/send_result_to_send_20260616/state.toml") + +EDITS: list[tuple[str, str]] = [ + ('phase_6 = { status = "in_progress", checkpointsha = "", name = "Update state.toml + metadata.json + register in tracks.md" }', + 'phase_6 = { status = "completed", checkpointsha = "9a5d3b9c", name = "Update state.toml + metadata.json + register in tracks.md" }'), + ('t6_1 = { status = "in_progress", commit_sha = "", description = "Update state.toml - mark all tasks complete" }', + 't6_1 = { status = "completed", commit_sha = "aad6deff", description = "Update state.toml - mark all tasks complete" }'), + ('t6_2 = { status = "pending", commit_sha = "", description = "Update metadata.json - set status=shipped" }', + 't6_2 = { status = "completed", commit_sha = "5a58e1ce", description = "Update metadata.json - set status=shipped" }'), + ('t6_3 = { status = "pending", commit_sha = "", description = "Register in conductor/tracks.md" }', + 't6_3 = { status = "completed", commit_sha = "9a5d3b9c", description = "Register in conductor/tracks.md" }'), +] + + +def main() -> int: + with STATE.open("r", encoding="utf-8", newline="") as f: + content = f.read() + applied = 0 + for old, new in EDITS: + if old in content: + content = content.replace(old, new, 1) + applied += 1 + else: + print(f"NOT FOUND: {old[:80]!r}") + if applied != len(EDITS): + print(f"Only applied {applied}/{len(EDITS)} edits.") + return 1 + with STATE.open("w", encoding="utf-8", newline="") as f: + f.write(content) + print(f"Applied {applied}/{len(EDITS)} edits.") + return 0 + + +if __name__ == "__main__": + raise SystemExit(main())