← Back to Pull requests

Initial commit of the EnvironmentService #18

Closed
unknown closed this pull request without merging on Aug 21, 2026 21:08 UTC
View on GitHub
unknown unknown commented on Aug 21, 2026 19:01 UTC
Author

Introduces the gRPC EnvironmentService control plane, migrates the Go client and CLI to use it, and removes legacy HTTP lifecycle and unused filesystem endpoints.

EnvironmentService:

  • Introduced proto/ateenv/v1/env.proto.

  • Added internal/apiservice server implementation and multiplexed gRPC + HTTP on port 7777.

  • env.Client now uses the EnvironmentService, we may soon remove this package.

  • Removed HTTP lifecycle endpoints (POST /v1/envs, POST /v1/envs/{id}/suspend, DELETE /v1/envs/{id}, /fork).

  • Introduced atespace in request types to allow users to operate on a non-default atespace.
  • CLI:
    - Migrated create, suspend, and delete to gRPC; added persistent --atespace flag.
    - Flattened file operations to top-level ate-env read <id> <path> and ate-env write <id> <path>.
    - Removed all non-essential file system operations, users should rely on running processes.

    MCP server:
    - Some low-value tools like browse, mkdir, and stat are removed.

    Verification

  • go test -v ./... and go vet ./... pass.

  • Verified lifecycle (create, write, read, suspend, delete) against live Substrate cluster.
  • Diff: 146 lines (+109 / -37) across 1 files Reviewer: SHRUTI6991 Review duration: 127m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 146 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.299
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #18"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 32.8% (LOW) · Higher = larger blast radius
    32.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: 60.5% · Lower = rushed or shallow review
    60.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: 13.0% · Safe to merge
    13.0%