Repository navigation
fix(delivery-publisher): accept terminal-done queue row on resume (#10143) - #10169
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…0143) Rebased onto current main (treefmt formatting). Same change as the publisher executing the #9106 relaunch: queue_readback_resume treats an exact-match terminal done row as the human disposition the resume branch requires; fresh readback stays LIVE-only. Oracle: test_resume_readback_accepts_terminal_done_only.
756123f to
5db2044
Compare
Summary
Fixes #10143. The ID/Atlas delivery publisher (
doc/2026-11-13T03-40-00Z_design_id-atlas-summit/delivery-publish/publish.py) could never resume after a covered slice's queue task completed: the resume branch re-ran the LIVE-onlyqueue_readbackfor items that already had aqueue_id, so a terminaldonerow refused forever and blocked all remaining delivery items.Live evidence on #9106 / task 15354: slice 9110-01 was filed as #9418 and enqueued as task 15882 on 2026-11-13; the run stopped on the #9420 readback defect, task 15882 then completed legitimately (#9418 implemented, PR #9426), and every publisher resume since refused at item 1.
Change
queue_readback_resume, used only in the resume branch: an exact-match row (id, queue, dedupe key) in terminaldonestatus is a completed disposition — the journal recordsqueue_status: doneplus aqueue_dispositionnote (timestamp + this issue) and the run continues.cancelled) still refuses for human reconciliation. No blind re-enqueue path is added.Evidence
test_resume_readback_accepts_terminal_done_only— fresh readback refuses thedonerow, resume readback returns it,cancelledstill refuses.Merge danger
Door: two-way. Blast radius: planning tooling only — the publisher is offline-by-default and gated by
--execute --go 9106plus digest/design-SHA bindings. Note: merging changespublish.pybytes on main, so a future delivery run needs its approvalpublisher_sha256rebound (same situation as the 2026-11-14 treefmt commit).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.