← Back to Pull requests

docs: propose OpenShell as the agent sandbox backend #334

Open
unknown opened this pull request with 186 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 20, 2026 20:49 UTC
Author

Summary

Adds docs/dev/PROPOSAL_AGENT_OPENSHELL.md, which proposes OpenShell as the backend for the reserved executionMode: sandbox, and records the results of a hands-on spike.

This changes the direction of https://github.com/nirmata/ottoflow/pull/271:

  • Keep that proposal's agent-executor gateway, standalone executor, and exec contract.

  • Have the gateway drive OpenShell sandboxes through the Go SDK instead of calling Agent Substrate directly.

  • Hold LLM and MCP credentials in OpenShell providers from the first release, so the sandbox sees only placeholders.

  • Get Substrate later as an OpenShell compute driver (https://github.com/NVIDIA/OpenShell/issues/3362). The direct Substrate design in https://github.com/nirmata/ottoflow/pull/271 stays as the fallback.
  • Spike results (OpenShell v0.1.8, Kubernetes driver, kind)

  • A Go service created, ran, reached over HTTP through ForwardTcp, and deleted sandboxes.

  • Bearer credentials were injected over HTTP and HTTPS; the sandbox held only placeholders, and the proxy failed closed for unbound and unallowed hosts.

  • Create to ready took about 5 seconds; delete took about 3 seconds.

  • The Kubernetes driver doesn't support suspend, and the typed SDK can't set profile access presets.
  • The proposal lists what the spike didn't test, as a Phase 0 follow-up.

    Tracking: https://github.com/nirmata/ottoflow/issues/272

    🤖 Generated with Claude Code

    Diff: 186 lines (+139 / -47) across 2 files Reviewer: JimBugwadia Review duration: 2831m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.41) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 186 lines diff across 2 files
    0.41
    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.313
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #334"
    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: 40.8% (MEDIUM) · Higher = larger blast radius
    40.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: 21.7% · Safe to merge
    21.7%