Repository navigation
fix(publish): defer active review lease collisions - #715
Merged
Merged
Conversation
Contributor
Author
|
@clawsweeper review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Defer a publisher that collides with a verified same-revision ClawSweeper review lease, then requeue it at that lease's expiry. This prevents a known temporary coordination state from being reported as a generic publication failure and consuming publisher capacity repeatedly.
Problem and causal proof
At the incident peak, review generation continued while result publication was saturated: all 32 publisher slots were leased and pending work grew. The representative lifecycle was:
The lease guard itself was introduced by #462 (
d43deab4b78d0e58ecc7525cef175106b2fc559d), but it is a correct safety invariant. Its publisher classification was latent until same-revision review overlap occurred; it is not evidence that the July 10 merge immediately caused the later backlog.The same signature, including workflow URLs, was recorded in #635 on July 16, before #707 and #712. That excludes timing-only attribution to #712: #712 repairs unavailable state objects in ledger publication, and #714 repairs remote-known ledger trees. Neither changes the active-review
kept_openlifecycle.Thanks to Peter Steinberger for the lease invariant in #462 and the independent ledger recovery work in #712/#714, and to @brokemac79 for the incident evidence in #635.
Scope and implementation
apply-decisionsinto the exact-event apply proof. Only a solekept_openresult from the live lease guard qualifies.retryable_failure/review_lease_activefrom the publisher, while completing the workflow successfully so it is not classified as GitHub pressure or an unknown publisher failure.superseded/live_terminaland removed instead of deferred.Waitingonly after durable completion succeeds.This deliberately does not change queue capacity, retry budgets, the dashboard, dispatch/gates, or unrelated
kept_openreasons.Validation
All executable proof ran through Docker-backed local Crabbox (
mcr.microsoft.com/playwright:v1.60.0-noble). The final functional proof used leasecbx_d9709b7b46bb:Result: all builds and four lint surfaces clean; 171 focused tests passed. The explicit workflow contract proves the repair lifecycle: verified active lease -> typed retry with timestamp -> preserved past generic normalization -> queue retry timestamp -> successful completion reaches
Waiting.Scoped Actionlint on the changed workflow passed in Crabbox lease
cbx_749bcda5a05b:git diff --checkpassed. Baseline noise: repository-wide Actionlint also reports custom Blacksmith/Crabbox runner labels in unrelated workflows; the raw Windowstest/sweep-workflow.test.tssuite lacksjqfor an unrelated Bash fixture. The exact changed workflow assertion passed during Codex review. The synced Windows checkout also has pre-existing mixed/CRLF formatting differences, so no broad formatter rewrite is included.Codex review closeout:
codex review --uncommittedfound the completion-normalizer overwrite; it was fixed, Docker proof was rerun, and the final dirty review was clean with no actionable findings.codex review --base origin/mainwas clean with no actionable findings for headdd68cdb4762b1e8812c5766129e7580384c5f08f.Risks and rollout
The live review lease remains authoritative: this delays publication rather than overriding, dropping, or duplicating a review. A malformed or unverified lease result still follows the existing failure path. The only new typed queue completion is
review_lease_active; it neither reports a GitHub failure kind nor increases capacity.Normal CI for this head is pending. After deployment, monitor publisher pending depth, lease utilization, net drain, and
review_lease_activecompletions. Do not merge automatically; this requires Martin's explicit merge decision.