Commit 5631050
committed
mark_pushed.py: refresh INDEX.md itself instead of asking the human to
This script rewrites `review_status` in every transcript it closes out, which is
exactly what INDEX.md summarises -- so leaving the index stale is not untidiness, it
is a CI failure on the next pull request. `validate` regenerates the index and fails
if it differs.
Observed twice, and both times read as somebody's mistake rather than a missing step:
* run 33260021601 (verdict revert) -- one row out
* run 33888825829 (Jon closing out 11 transcripts) -- header still claimed
"11 reviewed, 16 pushed" where the frontmatter now said "0 reviewed, 27 pushed"
It ended with `print("Next: python3 scripts/review_status.py")`. A printed reminder is
not a mechanism: the whole point of closing out a batch is that it is the last thing
you do, so there is nothing afterwards to prompt you. The review server has always
called review_status.py itself after a write (refresh_index()); this is the CLI
equivalent, and mark_pushed is the only CLI path that changes review_status.
A refresh that fails is reported, not fatal -- the close-out itself already succeeded
and is on disk, and saying so beats the silent stale index this replaces.
Verified in an isolated worktree on Jon's branch f94c233, reproducing his close-out of
11 transcripts and then running validate's exact check (regenerate, then
`git diff --quiet -- transcripts/INDEX.md`): old script FAIL, new script PASS.
Note fetch_transcripts.py and publish_to_foundry.py also only mention the command.
Neither writes `review_status`, so neither can stale the index this way; left alone.
Claude-Session: https://claude.ai/code/session_01VVNYqGza2dFdeWFX7qXnwb1 parent c72b398 commit 5631050
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
114 | 126 | | |
115 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
116 | 137 | | |
117 | 138 | | |
118 | 139 | | |
| |||
0 commit comments