Repository navigation
fix: enforce exact review mutation leases - #462
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8c74c0e036
ℹ️ 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".
| } | ||
| lease = posted.lease; | ||
| } | ||
| activeApplyMutationLease = { itemNumber: number, lease }; |
There was a problem hiding this comment.
Release apply leases when later mutations throw
When an apply run acquires or reuses a mutation lease here and a later GitHub mutation throws (for example the durable comment PATCH or the close API after the lease is active), applyDecisionsCommand only calls releaseActiveApplyMutationLease() on normal loop/yield paths. Non-budget exceptions bypass that cleanup, leaving the owned lease comment fresh until its timeout and blocking retries for the same head/revision even though no worker is still applying.
Useful? React with 👍 / 👎.
* fix: suppress duplicate label-sweep reviews * fix: block stale verdict replay during review * fix: scope review lease checks to pull requests * fix: enforce atomic review apply boundaries * fix: harden review apply freshness
Summary
Safety
905636bdb8313a4e0be54dc4b4d22b4c38670362Verification
pnpm run build:allpnpm run test:unit: 754/754pnpm run test:repair: 664/664pnpm run lintpnpm run format:checkpnpm run check:active-surfacepnpm run check:limits