Skip to content

AXE 0.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 20:27
· 25 commits to main since this release

The first public release. It is compatible with agent-sandbox commit 36756fe and Agent Substrate env commit 28041b5, the versions its end-to-end suites test against.

Added

  • axe, the engine library. It supervises processes with an optional PTY, keeps one output log per process addressed by byte offset, confines file access to a root directory, watches directories, applies resource limits, and detects suspend and restore. It has no network code and builds for Linux only.
  • One reaper thread that collects every child, as PID 1 or as a child subreaper.
  • Output replay from any retained byte offset, with lossless readers that apply backpressure and lossy readers that receive gap events. Retention is per process (--retain, --max-retain) and bounded globally (--output-budget, --capture-budget).
  • Detached processes that outlive their clients, optional names, and idempotent starts with a request id.
  • Suspend detection from the monotonic, boot and wall clocks, and timeouts that count only running time. System.Configure (axectl resumed) reports a restore where the clocks do not show it, and System.Freeze (axectl freeze) freezes every process tree through its cgroup.
  • Path resolution one component at a time through held directory descriptors, so a symlink swapped in during a request cannot redirect it. Uploads appear only when they commit.
  • Per-process cgroup v2 leaves when axed owns a delegated subtree: whole-tree kill, memory, CPU and task limits, OOM detection and freezing. Without cgroups, process groups and rlimits, with CPU limits and freezing refused.
  • axed, the daemon. It serves the native axe.v1 API (Processes, Files, System) and gRPC reflection on any number of --listen endpoints over TCP, Unix sockets, vsock and inherited descriptors, with bearer-token auth per listener.
  • The Kubernetes Agent Sandbox adapter, on by default: sandboxd's process.v1 and watcher.v1 gRPC services and its REST API, with sandboxd's command line accepted unchanged. The official Go, Python and TypeScript SDKs run against it unmodified. sandboxd compatibility lists every intended difference.
  • The Agent Substrate adapter (--agent-substrate), serving ateenv.v1alpha, and --on-sigterm=stay for its eviction contract.
  • Exit reasons (exited, signaled, timed out, OOM-killed, killed, owner gone, shutdown) in the engine's Exit and in axe.v1, and resource usage for running processes, read on request from the cgroup or, without one, from /proc for the leader.
  • Protection for axed as PID 1: children raise their own oom_score_adj (--child-oom-score-adj), axed lowers its own when it may and reserves memory.min in its cgroup, and --default-user runs processes unprivileged when a request names no user.
  • Daemon-wide default limits and ceilings, all off by default: --default-timeout, --default-memory, --default-max-tasks, --max-timeout, --max-memory.
  • --auth-token-file reloads on change and on SIGHUP, accepting the previous token for 60 seconds.
  • grpc.health.v1 on every listener, GET /readyz on the REST port, and System.Info features, adapters and policies.
  • axe.v1: idempotent Exec with a request_id, request id reuse with a different request refused, google.rpc.ErrorInfo reasons on the errors clients branch on, GetRequest and WaitRequest, ProcessRef.instance_id, starts refused while frozen, and thaw in Configure.
  • axectl, the command-line client: run, exec, attach, logs, ps, kill, wait, rm, watch, freeze, resumed and info.
  • A Dockerfile with two targets: a default image laid out like sandboxd's runtime image, and a static image holding the statically linked musl binaries.
  • End-to-end suites (tests/run.sh) for the Agent Sandbox Go and Python SDKs, upstream's templates on kind, Agent Substrate's guest tests, gVisor with checkpoint and restore, and Firecracker with snapshot and restore.
  • Documentation at axe-engine.mintlify.site, with benchmark results against sandboxd.