Repository navigation
fix: complete deterministic guarded-open reviews - #477
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 10, 2026, 11:00 AM ET / 15:00 UTC. Summary Reproducibility: yes. at source level: current main lacks a successful exact-event disposition for stable deterministic remain-open apply outcomes, causing those jobs to retry. No live current-main event was executed during this read-only review. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the tuple-authoritative implementation and merge after redacted final-head runtime logs demonstrate guarded completion, terminal missing and closed behavior, stale-race requeueing, and successful deferred-router handoff. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main lacks a successful exact-event disposition for stable deterministic remain-open apply outcomes, causing those jobs to retry. No live current-main event was executed during this read-only review. Is this the best way to solve the issue? Yes: strict action whitelisting, captured-record agreement, final full-tuple equality, and fail-closed retries are the narrowest maintainable solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a55bf55b55ae. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
06d83a6 to
88f523d
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88f523d2f8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| echo "remote_tuple_verified=false" >> "$GITHUB_OUTPUT" | ||
| echo "routing_deferred=false" >> "$GITHUB_OUTPUT" | ||
| echo "::notice::Treating $TARGET_REPO#$ITEM_NUMBER as terminal because the repository is accessible but the item is missing." | ||
| exit 0 |
There was a problem hiding this comment.
Publish missing-item artifacts before completing
When the item is deleted after Review exact event item succeeds but before this publish step runs, this 404 branch exits before checking artifacts/event/$ITEM_NUMBER.md and before invoking pnpm run repair:publish-event-result. That bypasses the new terminalMissingVerified archive path in apply-decisions, so the workflow reports a successful terminal-missing review with remote_tuple_verified=false while leaving the stale open tuple in durable state; let the publisher handle the 404 whenever a review artifact exists.
Useful? React with 👍 / 👎.
* fix: complete deterministic guarded-open reviews * fix: verify exact event dispositions * fix: require terminal close confirmation * fix: complete locked exact review lifecycle * fix: complete missing exact review items * fix: requeue removed close guards * fix: resume reviews after guard removal * refactor: centralize close guard labels * fix: complete close-exempt reviews * fix: bind synced event routing to exact tuples * test: cover kept-open event tuple drift * fix: hand off exact verdicts after authoritative publish * fix: complete missing exact review status
Summary
Why
Stable apply guards were already writing the correct open state, but the publisher required comment-sync or terminal proof. Those jobs therefore retried indefinitely instead of completing. This keeps the completion path narrow and deterministic while preserving retries for transient or stale reviews.
Verification
pnpm run build:allnode --test test/repair/event-apply-proof.test.ts test/repair/event-record-store.test.ts test/repair/git-publish.test.ts test/sweep-workflow.test.ts(100 passed)pnpm run lint:repairpnpm run lint:scriptsoxfmt --check