Skip to content

fix: verify scoreboard ownership before mutation - #121

Open
sankalpsthakur wants to merge 4 commits into
TauCetiProject:mainfrom
sankalpsthakur:fix/98-scoreboard-cross-identity-clean
Open

fix: verify scoreboard ownership before mutation#121
sankalpsthakur wants to merge 4 commits into
TauCetiProject:mainfrom
sankalpsthakur:fix/98-scoreboard-cross-identity-clean

Conversation

@sankalpsthakur

@sankalpsthakur sankalpsthakur commented Aug 17, 2026

Copy link
Copy Markdown

This PR makes scoreboard publication verify comment ownership before any PATCH or DELETE, preventing a shared ledger or changed gh identity from cross-editing another worker's scoreboard or stranding publication on a 404.

Scoreboard discovery now returns every marked comment, including outside contributors, and fails closed if the GitHub response is unavailable or incomplete. A stored scoreboard is edited only when its login matches the current actor; otherwise the poster reuses that actor's newest scoreboard, or posts one when none exists. Duplicate cleanup happens only after the replacement scoreboard is confirmed. This completes the scoreboard side of the cross-identity repair begun in #110.

The regression coverage exercises stored and planned foreign IDs, missing comments, outside authors, discovery failure, reuse of an existing scoreboard, failed edits, duplicate cleanup, and the transactional execute_post path. python3 -m py_compile runner/*.py and every script in the tests workflow pass. A read-only live lookup against TauCeti#3934 also confirmed that the discovery parser returns its contributor-authored scoreboard.

Closes #98

🤖 Prepared with OpenAI Codex

A stored scoreboard id whose user.login is not the current gh actor
404s on edit; post a fresh kind:scoreboard instead, matching the
review-thread guard from TauCetiProject#110.
@kim-em kim-em changed the title fix: don't PATCH a scoreboard owned by another identity fix: verify scoreboard ownership before mutation Aug 31, 2026
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.

Re-review can't update a finding authored by a different worker identity (gh PATCH → 404), stranding the scoreboard

2 participants