← Back to Pull requests

Fix startup recovery acknowledgement for terminal queued owners #944

Closed
unknown closed this pull request without merging on Oct 18, 2026 15:19 UTC
View on GitHub
unknown unknown commented on Oct 18, 2026 14:53 UTC
Author

Summary


Fix startup abort when an already-terminal conversation retains queued steering. The startup scanner selects the row, but its actor returned normally before sending its recovery receipt; the manager interpreted the dropped sender as failure and aborted application startup.

Changed


  • Acknowledge successful startup settlement on the existing terminal return path—three production lines. The receipt means startup settled, not provider completion or queue consumption.

  • Preserve terminal state, retained queue, error/interruption behavior and provider non-dispatch. No blanket success-on-drop, state reset, queue deletion or scanner filtering.

  • Add executor terminal/queue and expired-overload receipt regressions plus a canonical-database manager regression proving exact state/timestamp/queue preservation and later recovery continuing.

  • Clarify the bounded startup contract and record incident/source evidence. The defect exists before #941; no evidence attributes it to the literal-chat dispatch boxing.
  • Qualification / forward-only recovery


    Exact-head hosted CI passed all applicable gates at d57d82b94b64943b6e61da71ffbd7b47db1373a0, including Rust startup regressions, Clippy, E2E, UI/specs and assistant-finalization checks. Formatting/task/spec anchors and independent static review pass; no local heavy Rust build. First CI failed a test-only field typo; hosted review also found a missing lifecycle consumer in the manager fixture. Both corrected; prior thread resolved and exact-head hosted re-review completed with no findings. Red-before failure is source-derived, not an executed qualification claim.

    Migration registry is byte-identical to 23badb8…: SHA256 a4eb047e59b21997ea068f1bd5e97c9c943f74a4c5670cdd8ff8ac10ffd5eee6, ordered target128. No schema/version/installer changes. Committed schema128 recovery stays candidate-only forward: retained installer owner controls original transaction/claim replacement protocol; host owns artifact dispatch and production execution. No predecessor restart, DB/queue edits, deployment or rollback here.

    Diff: 269 lines (+201 / -68) across 3 files Reviewer: scottopell Review duration: 26m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 269 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #944"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.6% · Safe to merge
    15.6%