Skip to content

E2B API compatibility matrix for AKernel with Agent DX #146

Open

Description

@WenYuLuo

Related Agent DX compatibility matrix: openJiuwen/agent-dx #78. Related feature: openJiuwen/agent-dx #55.

This issue tracks E2B compatibility for AKernel deployments using Agent DX. The matrix below describes the inspected Agent DX API surface; it does not assert that the same routes are implemented independently by AKernel or that an AKernel deployment has passed E2B end-to-end qualification. Track integration packaging, configuration, compatibility and validation alongside the Agent DX work.

Baseline

  • Agent DX: master d1c8df02, based on the E2B compatibility documentation and adapter routes.
  • E2B API reference: infra 9ddcf8a. The endpoint inventory follows this revision’s OpenAPI definition; field-by-field and runtime behavior still need verification. ADX documents Python SDK e2b==2.52.0 and envd 0.9.0; Harbor uses SDK 2.25.0 separately.

Legend: 🟡 An endpoint exists but has known limitations or semantics still to verify. ❌ The endpoint is not implemented or explicitly unsupported. Route classifications are based on static inspection; they do not claim that end-to-end tests have passed. Native ADX functionality alone does not establish E2B API compatibility. For unsupported paths, responses may depend on ingress routing and authentication; the classification means no matching E2B operation is implemented.

The routing inventory was checked against Ingress management path selection, the E2B HTTP dispatcher, key handlers, and the native API dispatcher.

Compatibility matrix

Area E2B API Agent DX status Notes and semantic gaps
Health GET /health ❌ No E2B management health route; the gateway exposes a separate /healthz health endpoint.
Teams GET /teams, GET /teams/{teamID}/metrics, GET /teams/{teamID}/metrics/max ❌ No E2B team management handlers.
Sandbox creation POST /v2/sandboxes 🟡 Resolves a Ready platform template or tenant-owned snapshot. autoPause:true uses memory pause; autoPauseMemory:false is rejected. Compare remaining fields, defaults, and errors.
Sandbox listing GET /v2/sandboxes 🟡 Supports state, metadata, limit, and nextToken; returns an array and X-Next-Token. Verify pagination semantics.
Sandbox detail GET /sandboxes/{sandboxID} 🟡 Returns status, times, and credentials. Compare fields and errors with the chosen E2B baseline.
Sandbox deletion DELETE /sandboxes/{sandboxID} 🟡 Uses native lifecycle handling; compare repeated deletion and errors.
Sandbox pause POST /sandboxes/{sandboxID}/pause 🟡 Memory mode only; memory:false is rejected. Actual support depends on the backend and checkpoint storage.
Sandbox fork POST /sandboxes/{sandboxID}/fork ❌ No matching handler. Creation from a snapshot is available through the create API; its semantics must be compared separately.
Sandbox connect and TTL POST /v2/sandboxes/{sandboxID}/connect, POST /sandboxes/{sandboxID}/timeout, POST /sandboxes/{sandboxID}/refreshes 🟡 / 🟡 / ❌ Connect extends a running sandbox or restores a paused one. Timeout is measured from now; zero expires immediately. Dynamic extensions do not survive a node-process restart. The refreshes route is not implemented.
Sandbox snapshots POST /sandboxes/{sandboxID}/snapshots, GET /snapshots 🟡 Snapshot creation supports memory mode only. Listing returns Ready Regular snapshots and supports limit, nextToken, name, and sandboxID; the sandboxID filter is applied after the backing page is fetched.
Sandbox logs GET /v2/sandboxes/{sandboxID}/logs ❌ No matching E2B log handler.
Sandbox metrics GET /sandboxes/{sandboxID}/metrics, GET /sandboxes/metrics ❌ No E2B metrics handlers. The aggregate path also matches the sandbox-detail route with ID metrics.
Sandbox network PUT /sandboxes/{sandboxID}/network 🟡 IPv4/CIDR egress policies require an ACL-capable backend. Domains, IPv6, proxies, and advanced rules are unsupported.
Template registration POST /v3/templates 🟡 Registers a name and preparation; only current and latest-success are retained. Custom tags are unsupported.
Template listing and detail GET /v2/templates, GET /templates/{templateID} ❌ v2 listing is explicitly unsupported; detail has no matching handler. A native Golden Snapshot list is available.
Template update PATCH /v2/templates/{templateID} ❌ No matching update handler.
Template deletion DELETE /templates/{templateID} 🟡 Logically deletes a template binding, rejects referenced templates, and does not automatically delete independent Golden Snapshots.
Template build POST /v2/templates/{templateID}/builds/{buildID} 🟡 Only fromImage is supported; RUN/COPY, private registry credentials, and other build steps are not supported.
Template build status and logs GET /templates/{templateID}/builds/{buildID}/status, GET /templates/{templateID}/builds/{buildID}/logs 🟡 / ❌ Status is available for current/latest-success only; older build IDs cannot be queried. The build logs route is not implemented.
Template file cache GET /templates/{templateID}/files/{hash} ❌ No matching file cache handler.
Template tags POST /templates/tags, DELETE /templates/tags, GET /templates/{templateID}/tags ❌ No tag-management handlers; preparation supports only the default selector.
Template aliases GET /templates/aliases/{alias} 🟡 Looks up a tenant-owned bare alias; only the default selector is supported.
Nodes GET /nodes, GET /nodes/{nodeID}, POST /nodes/{nodeID} ❌ No E2B node view or administration handlers.
Team administration POST /admin/teams/{teamID}/sandboxes/kill, POST /admin/teams/{teamID}/builds/cancel, GET /admin/sandboxes/running-counts ❌ No matching E2B administration handlers.
API keys GET /api-keys, POST /api-keys, PATCH /api-keys/{apiKeyID}, DELETE /api-keys/{apiKeyID} 🟡 / 🟡 / ❌ / 🟡 Create, list, and revoke use ADX administrator credentials and tenant scope, which differs from E2B authentication. Rename is explicitly unsupported.
Administrative API keys POST /admin/teams/{teamID}/api-keys, DELETE /admin/teams/{teamID}/api-keys/{apiKeyID} ❌ No E2B admin team key handlers; cross-team administration is unsupported.
Volumes GET /volumes, POST /volumes, GET /volumes/{volumeID}, POST /volumes/{volumeID}, DELETE /volumes/{volumeID} ❌ E2B volume APIs are not implemented; native ADX volume APIs use a different contract.
Secrets GET /secrets, POST /secrets, GET /secrets/{secretID}, POST /secrets/{secretID}, DELETE /secrets/{secretID} ❌ No E2B secret management handlers.
Sandbox events GET /events/sandboxes, GET /events/sandboxes/{sandboxID} ❌ No E2B sandbox event handlers.
Event webhooks GET /events/webhooks, POST /events/webhooks, GET /events/webhooks/{webhookID}, PATCH /events/webhooks/{webhookID}, DELETE /events/webhooks/{webhookID}, GET /events/webhooks/{webhookID}/deliveries, GET /events/webhooks/{webhookID}/stats ❌ No E2B webhook handlers.
Rig administration GET /clusters/{clusterID}/rigs, PUT /clusters/{clusterID}/rigs/{rigID}/capacity, DELETE /clusters/{clusterID}/rigs/instances/{instanceID}, GET /clusters/{clusterID}/rigs/{rigID}/instances, GET /clusters/{clusterID}/rigs/{rigID}/errors ❌ No E2B rig administration handlers.

When a row contains multiple status symbols, they correspond to the APIs in the order shown. A single symbol applies to all APIs in the row.

Commands, files, PTY, and application ports are forwarded through Ingress/Relay to envd. Standalone signed file URLs have different requirements for fixed endpoints and per-sandbox Host/DNS routing; validate both with the official SDK.

Follow-up

  • Pin E2B OpenAPI, server, SDK, envd, and ADX versions. Compare request and response fields, defaults, authentication, errors, and runtime behavior for each URL.
  • Add contract and runtime test evidence for each implemented endpoint and document discrepancies with the chosen E2B baseline.
  • Exercise control and data plane flows with official SDKs. Record backend, deployment conditions, and results for pause/connect/snapshot/clone, ACL, multi-node, and restart recovery.
  • Maintain the matrix in repository documentation and track follow-up gaps in issues linked to fix(deploy): configure aggregate PID budgets for ACK runtime pools #55.

AKernel integration acceptance

  • Identify and pin the AKernel release, bundled Agent DX revision, sandboxd, envd and runtime artifacts used for each result.
  • Verify deployment configuration exposes the E2B management and data-plane routes with the required gateway, runtime profile and backend capabilities.
  • Run the supported official E2B SDK scenarios on a representative AKernel deployment; record versions, backend, results and untested cases, including pause/connect and snapshots where supported.
  • Track Agent DX changes and update this matrix when AKernel adopts a new revision; link follow-up integration issues to the corresponding Agent DX work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions