← Back to Pull requests

soak-gate fixes: re-observe before click, BrowserOS-first browser, NL workspace args #52

Closed
unknown closed this pull request without merging on Oct 02, 2026 06:33 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 06:32 UTC
Author

Summary


Roadmap U2 — the deterministic half of the Robinhood/GDX soak gate.

  • Re-observation is now enforced, not hoped for. The act loop tracks a screen_dirty flag: any successful mutating step (click/move/type/key/launch/focus/close/workspace/shell) invalidates the last observation, and a vision provider auto-screenshots before the next click/move. No trigger image → even the first click observes. Deterministic — doesn't rely on the model remembering to look.

  • browser means BrowserOS when it's live. launch("browser") prefers the signed-in agent browser when the :9200 MCP server is reachable; chromium is the fallback. Opt out: [agent] browseros_first = "false".

  • Natural-language workspace args. workspace() extracts the digit from "workspace 4" / "ws4" / "go to 4".

  • System prompt states the never-click-twice-off-one-shot rule.
  • Test plan


  • click after a mutating step auto-screenshots first (launch → screenshot → click order asserted)

  • click on a fresh trigger image goes straight (no wasted shot)

  • click with no image at all observes first (no blind clicks)

  • BrowserOS preferred when live / falls back to chromium / opt-out respected

  • "workspace 4", "ws4", "go to 4" all parse to workspace 4

  • 303 passed, 1 deselected (pre-existing macOS env flake)
  • Diff: 166 lines (+124 / -42) across 2 files Reviewer: github-actions[bot] Review duration: 0m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.35) × (1 − Review Confidence (0.32)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 166 lines diff across 2 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 22% · Reviewer familiarity: 35%
    32%
    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.306
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #52"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 32.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: 35.1% (MEDIUM) · Higher = larger blast radius
    35.1%
    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: 32.5% · Lower = rushed or shallow review
    32.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: 23.7% · Safe to merge
    23.7%