← Back to Pull requests

feat(substrate): move adapter to Substrate v1 (go.ate.dev/substrate api/ateapi/v1) #231

Closed
unknown closed this pull request without merging on Nov 08, 2026 20:19 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 07:44 UTC
Author

Moves integrations/substrate and both substrate examples to Substrate v1, pinned to the v1.0.0 release. CI and the examples now install Substrate from its published images instead of building it.

  • The adapter uses go.ate.dev/substrate/api/ateapi/v1; the sessions API, journal and wire formats are unchanged.

  • agentsessionsd reaches harnesses over mTLS on atenet-router.ate-system.svc:443; the plaintext path is gone.

  • The router mTLS client is the public package integrations/substrate/routertls, so a host that embeds runtime/substrate from another module can dial the router.

  • agentsessionsd's startup router probe retries with backoff for about five minutes while the router is unreachable, so it can start before the router.

  • Templates carry resource limits and pick their sandbox through the WorkerPool (ate.dev/v1); per-template snapshot locations are refused.

  • Each atespace needs an AccessPolicy granting agentsessionsd editor.

  • Resume of a session whose checkpointed actor is gone returns FAILED_PRECONDITION.

  • On kind, ate-setup stages micro-VM guest assets only for its own architecture, so the examples check it against the Docker host's before any cluster call: substrate-kind falls back to gVisor when the class is chosen automatically and refuses an explicit microvm; agentsuite-substrate refuses microvm.

  • ate-setup --image-repo/--image-tag installs the release; worker images are pinned by digest. A scheduled job tests a newer release when one exists.
  • Upgrade: reinstall Substrate with fresh state and upgrade agentsessionsd with it.

    Tested on kind (x86_64, KVM) against v1.0.0-rc.3, every Substrate component from the release images, with the workflow's install flags run by hand. v1.0.0 adds only copyright-header and contributor-doc changes on top of rc.3; api/ateapi/v1 is unchanged.

  • micro-VM stateless tier (router refusal and wake included): 14 passed.

  • micro-VM stateful + fork tier: 6 passed.

  • The e2e workflow passed against v1.0.0 on 3715c159, before the routertls move and probe retry: the conformance suite and the substrate-kind example lifecycle.

  • The substrate-kind example lifecycle on this head (up, reuse, smoke, down) with the gVisor class, run from an arm64 machine against an amd64 Docker host; an explicit microvm there is refused before any cluster call.

  • The routertls move and probe retry: unit tests (retry until the router answers, stop on shutdown, stop on any answer, give up after the last attempt) and golangci-lint.
  • Diff: 315 lines (+236 / -79) across 3 files Reviewer: aramase Review duration: 16595m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 315 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: 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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #231"
    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: 40.4% (MEDIUM) · Higher = larger blast radius
    40.4%
    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: 15.9% · Safe to merge
    15.9%