Skip to content

fix/mark pushed refreshes index - #98

Merged
vijay-tylertech merged 2 commits into
mainfrom
fix/mark-pushed-refreshes-index
Sep 4, 2026
Merged

vijay-tylertech merged 2 commits into
mainfrom
fix/mark-pushed-refreshes-index

Conversation

@vijay-tylertech

Copy link
Copy Markdown
Contributor
  • Reviews by Vijay Venkataraman — 09032026-071659
  • 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_01VVNYqGza2dFdeWFX7qXnwb
@vijay-tylertech
vijay-tylertech requested review from a team as code owners September 4, 2026 17:08
@vijay-tylertech
vijay-tylertech merged commit 5631050 into main Sep 4, 2026
1 check passed
@vijay-tylertech
vijay-tylertech deleted the fix/mark-pushed-refreshes-index branch September 4, 2026 17:09
vijay-tylertech added a commit that referenced this pull request Sep 4, 2026
The 11 table rows were resolved correctly; only the generated summary line kept the
pre-close-out side of the conflict, so it read "11 reviewed, 16 pushed" while the
frontmatter said "0 reviewed, 27 pushed". `validate` regenerates the index and
compares, so the single stale line failed the whole run (33888825829).

Regenerated with `python3 scripts/review_status.py` rather than hand-edited — it is a
generated file and the generator is the only thing that should write it. No other file
in the tree moved, and no verdict was touched.

The step that made this possible is gone as of #98: mark_pushed.py now regenerates the
index itself instead of printing "Next: python3 scripts/review_status.py". This was
the last request that could hit it.

Claude-Session: https://claude.ai/code/session_01VVNYqGza2dFdeWFX7qXnwb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant