← Back to Pull requests

test(e2e): add mounted-runner Substrate E2E suite for Antigravity #10

Open
unknown opened this pull request with 145 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 13, 2026 22:15 UTC
Author

Adds e2e/antigravity/, a portable KinD + Agent Substrate (gVisor) end-to-end test suite exercising agents/antigravity (#8, #9) with a static ax-task-runner mounted read-only at /opt/ax (ImageVolumeSource) against an out-of-sandbox fakes/mock-gemini Deployment (#6, #7):

  • Cases covered (7/7 verified locally on ax-e2e):

  • 1. Happy path (GEMINI_API_KEY direct :streamGenerateContent?alt=sse stream → MOCK_OK)
    2. Wrong key (400 rejected, non-zero exit)
    3. Missing key (0 authorized calls, non-zero exit)
    4. Egress denied (no EgressPolicy → 0 calls reach mock-gemini)
    5. Gateway credential injection (k8s.io provider injects ax-test/mock-gemini[key] on x-goog-api-key; verifies /proc/1/environ inside the sandbox never holds the key)
    6. Scripted multi-turn write_file functionCall writing /workspace/tool_ok.txt + outputFile writing /workspace/answer.md
    7. FAULT=503 transient retry and recovery via POST /_mock/config
  • Includes Kubernetes manifests (e2e/antigravity/k8s/mock-gemini.yaml, egress-policy-http.yaml, egress-policy-inject.yaml) and setup/usage docs (e2e/antigravity/README.md).
  • Diff: 145 lines (+108 / -37) across 1 files Reviewer: MushuEE Review duration: 7353m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.38) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.38 · 145 lines diff across 1 files
    0.38
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.344
    Diff Size diff_size
    0.298
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #10"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 37.8% (MEDIUM) · Higher = larger blast radius
    37.8%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 20.2% · Safe to merge
    20.2%