fix(queue): wire lock-heartbeat onLost at both actuation and AI-review call sites - #10240
fix(queue): wire lock-heartbeat onLost at both actuation and AI-review call sites#10240bitfathers94 wants to merge 1 commit into
Conversation
…w call sites A holder whose transient lock renewal reports it no longer owns the key (TTL lapse + re-claim, or a maintainer's forced-re-run steal) never learned about it -- onLost was documented but no caller supplied it, so a losing pass kept running to completion: the actuation pass could still merge/close/comment after another pass took over, and the AI-review pass could still overwrite the winner's cached verdict. Both heartbeats now pass onLost, which aborts the publish-and-maintain unit before any further GitHub mutation and discards the AI-review result in favor of the lock-contended placeholder instead of persisting it.
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-31 14:04:19 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (86.20%) is below the target coverage (99.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #10240 +/- ##
==========================================
+ Coverage 80.57% 81.34% +0.77%
==========================================
Files 283 284 +1
Lines 59095 62585 +3490
Branches 6996 8281 +1285
==========================================
+ Hits 47614 50909 +3295
- Misses 11188 11257 +69
- Partials 293 419 +126
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
fix(queue): wire lock-heartbeat onLost at both actuation and AI-review call sites
A holder whose transient lock renewal reports it no longer owns the key (TTL
lapse + re-claim, or a maintainer's forced-re-run steal) never learned about
it -- onLost was documented but no caller supplied it, so a losing pass kept
running to completion: the actuation pass could still merge/close/comment
after another pass took over, and the AI-review pass could still overwrite
the winner's cached verdict. Both heartbeats now pass onLost, which aborts
the publish-and-maintain unit before any further GitHub mutation and
discards the AI-review result in favor of the lock-contended placeholder
instead of persisting it.
Closes #10019