← Back to Pull requests

fix: report send, edge and workflow outcomes accurately #4202

Closed
unknown closed this pull request without merging on Nov 30, 2026 08:29 UTC
View on GitHub
unknown unknown commented on Nov 30, 2026 04:05 UTC
Author

What a user gets

Single-seat, HTTP --host and fan-out sends distinguish an unconfirmed submission from a reported one. Fan-out text also excludes an unconfirmed typed submission from its delivered count, including when --verify cannot capture the pane; API fields and exit codes stay unchanged. Edge receipts use the shared recovery-owner resolver and explain its fallback, including a sole parent without a recorded session.

An ambiguous workflow --next-owner returns HTTP 400 / CLI exit 1 instead of HTTP 500 / exit 2, with the packet and workflow unchanged. Credit to the review of #4201's documentation work for the findings, and to CodeRabbit for the single-send, fan-out and missing-session observations there.

How you verified it

On Linux, Node 22.23.4: 374 affected tests passed (112 daemon, 262 CLI), with no skips or todos. Both new fan-out cases failed on the merged baseline and passed after the fix. Full build, lint/typecheck and all 58 context packs passed. Native rig send --help before/after differs only by removing “on this host”. Full repository tests and macOS were not run locally.

Anything you were unsure about

Merged main dbf9a3ad normally, retaining the claimed-work escalation clause alongside the recovery-owner rule. Single and fan-out sends share the existing receipt ternary. The changes add local formatting/counting and shared-resolver reads at edge mutation; no extra transport calls, dependencies, schema changes or route-selection changes.

  • One concern per PR; no version bump; no CHANGELOG.md edit

  • Tests added or updated where the change is testable

  • Checks and their limits listed
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Bug Fixes
    Workflow requests with an ambiguous next owner now return a client error without changing workflow state.
    Routing messages identify when the existing fallback is used because no recovery owner was resolved.
    Improvements
    Send results distinguish confirmed deliveries from submissions whose receipt could not be confirmed. Fan-out summaries report unconfirmed submissions separately.
    Recovery routing reflects eligible escalation destinations and recorded sessions where available.
    Documentation
    Updated routing and send guidance to explain fallback behavior and unconfirmed results.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 313 lines (+234 / -79) across 3 files Reviewer: openrig-review Review duration: 263m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 313 lines diff across 3 files
    0.40
    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%
    56%
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4202"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 17.4% · Safe to merge
    17.4%