← Back to Pull requests

feat(a2asrv): resume subscriptions from lastSeenGeneration #663

Open
polchernikova-w opened this pull request with 137 lines diff across 9 files
View on GitHub
polchernikova-w polchernikova-w commented on Dec 02, 2026 14:12 UTC
Author

Part of the A2A v1.1 work. Targets release/v1.1.

v1.1 spec changes implemented

  • SubscribeToTaskRequest.last_seen_generation (§3.1.6): the server MUST either continue the stream from that generation or open with a Task snapshot. The SDK has no event log, so it continues only when the client has nothing to miss. In every other case it opens with a snapshot.
  • Changes

  • SubscribeToTask skips the opening Task snapshot when lastSeenGeneration equals the stored task's generation, and streams onward (local and cluster mode). Events already in the snapshot are still dropped by version, so nothing is lost or sent twice.

  • The snapshot is still sent when the task is terminal, when the stored generation is 0 (the store doesn't track generations), and in local mode when the task has no active execution.
  • Requests without lastSeenGeneration behave as before.

    Diff: 137 lines (+116 / -21) across 9 files Reviewer: yarolegovich Review duration: 3530m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.44) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 137 lines diff across 9 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    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
    Shallow Review Depth shallow_review_depth
    0.350
    Diff Size diff_size
    0.295
    Real PR Conversation Timeline
    2 items
    yarolegovich yarolegovich approved these changes on Dec 02, 2026 16:10 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    polchernikova-w polchernikova-w
    Labels
    risk: low confidence: 48.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: 44.2% (MEDIUM) · Higher = larger blast radius
    44.2%
    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: 48.5% · Lower = rushed or shallow review
    48.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: 22.8% · Safe to merge
    22.8%