← Back to Pull requests

The WebMCP origin-miss check waits for each ask's miss before it flips the flag #2682

Closed
unknown closed this pull request without merging on Nov 10, 2026 16:50 UTC
View on GitHub
unknown unknown commented on Nov 10, 2026 16:45 UTC
Author

Brief (B.I.T.E.)

  • For: the team's flake job mvo3j5ek (kind flake) — the browser check "WebMCP: a miss from an agent call is tagged origin agent; the same miss typed by a person is not" failed on a loaded runner and healed on a quieter one, so the suite could not be trusted on it.

  • Problem: a miss is posted to /api/miss after the answer comes back (showAnswer resolves, then reportMiss runs). The check flipped navigator.webdriver after a fixed wait, which on a loaded runner outran the answer — so the flag was read for the wrong ask and origin came back wrong.

  • First version: wait for each ask's own miss to land before changing navigator.webdriver, so the flag is read while it still says what that ask is.

  • Will not build: nothing about the miss-tagging code or the page. The tagging is right; the read was early. No skip, no quarantine, no retry.
  • Implement

    fix: the WebMCP origin-miss browser check (tools/test_void.mjs) waits for each ask's miss before it flips navigator.webdriver.

  • Added missed(word), which polls the captured /api/miss posts until the ask under test has reported, and awaited it after each of the three asks (the agent call, the robot's typed miss, the person's typed miss).

  • navigator.webdriver now changes only once the previous ask's miss is in hand, so the agent miss is tagged agent, the automation-driven typed miss robot, and the person's miss carries no origin.
  • Test

  • in a real browser before the push: node tools/test_void.mjs --only "core" passes — 319/319, including pass WebMCP: a miss from an agent call is tagged origin agent; the same miss typed by a person is not.

  • VOID_SKIP_BENCH=1 node tools/checks.mjs --changed — the check the branch covers passes; the remaining reds are pre-existing on main and untouched by this branch.

  • Used as a person would: the shared page was driven the way the suite drives it, and the origin tag on each of the three misses was read from the posted body.
  • Evolve

  • If a future flake shows a miss still racing the read, move the origin read next to reportMiss in the page so the test reads state instead of a post.
  • Job: mvo3j5ek

    Diff: 273 lines (+204 / -69) across 3 files Reviewer: github-actions[bot] Review duration: 5m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.40) × (1 − Review Confidence (0.55)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 273 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: 79% · Reviewer familiarity: 35%
    55%
    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.336
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2682"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 55.4% 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.5% (MEDIUM) · Higher = larger blast radius
    39.5%
    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: 55.4% · Lower = rushed or shallow review
    55.4%
    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.6% · Safe to merge
    17.6%