Repository navigation
fix: stop repeated notices after requester recovery fails - #179675
Conversation
Retain permanent missing-reply recovery failures and child results without queuing another model turn solely to report the failure. Co-authored-by: VACInc <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesSuppress redundant requester notices and implicit replay after recovery permanently finishes without a visible reply. Example: Recovered requester run recovered-requester finishes without durable final delivery evidence.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this PR addresses a current recovery defect, and the follow-up resolves the earlier ordinary-announcement finding without introducing a concrete code defect. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSubagent completion owners consume child results and requester delivery receipts, persist delivery state in SQLite, and schedule requester continuations or blocked-delivery notices. flowchart TD
A[Child completion] --> B[Announcement or batch settlement]
B --> C[Recovery delivery receipt]
C --> D[Shared completion mutation]
D --> E[SQLite delivery state]
E --> F[Requester wake guard]
D --> G[Blocked notice queue]
Technical reviewBest possible solution: Retain terminal recovery failure in existing delivery state and suppress its redundant notice and ordinary wake through the existing completion owners. Do we have a high-confidence way to reproduce the issue? Current-main source connects a permanent recovered-requester failure to unconditional blocked-notice insertion and ordinary wake handling; no target code was executed during this review. Is this the best way to solve the issue? The patch is a focused repair using the existing mutation, suspension, and wake owners, and its added regressions protect distinct failure paths without unnecessary machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4102af4aad69. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +11, Tests +108, Docs +5. Total +124 across 7 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 21, 2026, 4:55 PM ET / 20:55 UTC (Revision 2). |
Retain permanent missing-reply recovery facts through completion suspension so the shared completion and wake owners suppress both notices and implicit replay. Preserve saved child results and separately admitted yield batches. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review Addressed the ordinary-announcement path in 20d7096. Permanent missing-reply recovery is now retained through suspension and recognized by both the completion-notice and requester-wake owners. The new regression failed on the prior head with an unwanted wake and now passes, including database reopen and preservation of explicitly admitted yield batches. All 315 focused tests, targeted typechecks, lint, and formatting pass; the PR body is current. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…79675) * fix: stop repeated notices after requester recovery fails Retain permanent missing-reply recovery failures and child results without queuing another model turn solely to report the failure. Co-authored-by: VACInc <[email protected]> * fix: prevent recovery wake loops in ordinary announcements Retain permanent missing-reply recovery facts through completion suspension so the shared completion and wake owners suppress both notices and implicit replay. Preserve saved child results and separately admitted yield batches. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]>
What Problem This Solves
Fixes: a failed requester recovery can trigger another model turn solely to report that its subagent completion delivery failed, adding more attempts and error messages during a provider outage or rate limit.
User Impact
User impact: both batch settlement and ordinary completion announcements stop generating an extra model turn after recovery has permanently failed to produce a visible reply. Completed child work and the delivery failure remain available for inspection and explicit continuation.
This does not remove provider rate limits, change ordinary retry budgets, or automatically resume stopped sessions. No configuration change or migration is required.
Why This Change Was Made
The existing completion owner records the failure and retains the result. It now suppresses the additional blocked-delivery system event for permanent
visible_reply_missingrecovery failures. Ordinary announcements retain that structured failure through suspension, so the shared wake owner also refuses implicit replay after reopening the database. Separately admitted yield batches still proceed; other blocked-delivery notifications retain their existing behavior.This removes a redundant recovery notification without adding a new state owner or retry mechanism. Against the base, the change adds 14 and removes 3 production lines, adds 121 and removes 13 test lines, and adds 5 documentation lines. The added tests protect the two distinct completion routes and durable recovery behavior.
Evidence
20d70965b5cbf60bcbc0b745e9287fb942dd9df9; the repository watcher reports GREEN with no pending checks.Reported by and prepared with @VACInc.
Work sessions