aeo
Infrastructure orchestrator — stand up and tear down a deliberate tree of
VMs and containers (FreeBSD jails + bhyve, Linux containers/LXC + KVM) from a
single Aether composition, with dependency-ordered bring-up gated on health,
reverse-order teardown that verifies disappearance, per-node confinement
(cgroups / cap-drop / network policy on Linux; rctl / jail boundary on FreeBSD),
image attestation (verify-before-boot, fail-closed), and a tamper-evident
audit trail.
Why aeo?
The problem: Modern infrastructure needs to be both declared (reproducible,
version-controlled, diff'able) and live (responsive to health, capable of
rolling updates, safe to tear down). Terraform declares; Kubernetes runs live.
aeo does both from the same file.
The promise: A single .ae composition declares a tree of nodes, their
dependencies, health checks, containment policy, and attestation requirements.
aeo up brings it all up in parallel (respecting dependencies), health-gated.
aeo watch keeps it coherent. aeo down tears it down in reverse, verifying
each node is gone. No drift, no config creep, auditable at every step.
The security story: Every node runs confined (cap-drop, network-deny-default,
resource caps). Images are attested (SHA-256 verified before boot, wrong digests
refused). The audit log is tamper-evident (hash-chained). Secrets stay ciphertext
in state/logs and decrypt only at use (fail-closed on tampering or wrong key).
Portable: Works on Linux (podman/docker, LXC, KVM), macOS (Docker Desktop),
and FreeBSD (jails, bhyve). Same composition, different drivers — no rewrites.
aeo up compose.ae # bring the tree up, dependency-ordered, gated on health
aeo status compose.ae # per-node state + confinement/attestation posture (--json too)
aeo down compose.ae # tear down in reverse order, verifying each node is gone
aeo dry-run compose.ae # validate + print the plan, touch nothing
aeo check compose.ae # run the composition's declared check() specs, NO deploy (CI/anywhere)
aeo smoke compose.ae # deploy + run smoke() specs, leave the tree STANDING
aeo suite compose.ae # deploy + run suite() specs, then TEAR DOWN (the CI shape)
aeo audit compose.ae # verify the hash-chained audit trail
aeo cutover compose.ae node # zero-downtime blue-green: green up + confined + health-gated, alias-swap, retire blue
aeo reconcile compose.ae # one-shot drift check: live probes vs the composition (exit 1 on drift); --converge to fix
aeo watch compose.ae # reconcile on a loop (default 30s) — aeo's life between up and down; --converge to act
aeo apply-node compose.ae node # small blast radius: re-render ONE node, apply only its delta, touch nothing else
aeo extract # reality->code: walk live containers, print a composition (attest() pre-filled); > file.ae
aeo inventory [compose.ae] # the live walk as a table; with a composition, a "declared? yes/no" column
aeo pasta compose.ae on # rootless source-IP fidelity: switch the port forwarder to pasta (see docs/linux-host-setup.md)
# aeo up hands the tree to a resident aeo-supervisord BY DEFAULT (down/status ask it); --no-supervisor = today's fire-and-exit
# also: snapshot | rollback | backup | prune | exec | restart (per-node lifecycle ops)
The composition file is a pure declaration (no main, no self-test scaffold) —
aeo is the executor, exactly as aeb <target>.build.ae runs a build declaration.
A composition declares its OWN verification with first-class check()/smoke()/
suite() verbs that name external std.spec specs; aeo <phase> compose.ae runs them.
aeo is not a build system and not an aeb SDK. It is a third sibling to
aether (the language) and
aeb (the build runner). aeo is
built by aeb and can shell to aeb at runtime, across a plain artifact + CLI
seam. Its DSL philosophy is inherited from the ecosystem — config IS code,
closure-with-setters, no YAML — applied to live infrastructure. Its containment
thinking traces back to The Principles of
Containment (see
below).
Status: working v0, with a live-proven containment story. Host probe,
drivers for Linux (podman/docker, LXC, KVM) and FreeBSD (jail, bhyve), an
actor-based runtime, the compose DSL, host-gating fast-fail, and the aeo
front-door are implemented and verified end-to-end on real infrastructure. All
six containment axes are now live-proven — Linux container confinement (a
fork-bomb refused by --pids-limit, a deny_egress node with no network),
image attestation (a mismatched digest refused at boot), a tamper-evident audit
trail (an edited log caught), the FreeBSD jail boundary, rctl resource caps, and
FreeBSD pf inter-VM delivery — the last was long the one red axis (blamed on
an if_bridge bug) but was root-caused to GhostBSD's default-enabled ipfw
eating bridged packets, not pf; with ipfw off the guest bridge path, pf's
deny-default + whitelist bites (whitelisted flow completes, non-whitelisted
blocked), and aeo now detects + handles the ipfw conflict on up
(docs/if_bridge-pf-delivery-bug.md). Beyond containment, aeo has grown a life
between up and down — reconcile/watch, apply-node, extract/inventory, a
policy{} block, and a resident aeo-supervisor that holds this-boot's trees
(docs/aeo-supervisor.md). See aeo-design.md for the full
design, TODO.md for the honest what's-proven-vs-modeled scorecard,
and LLM.md for the Aether constraints navigated.
Quickly trying it
You need any container engine — podman or Docker, on Linux or macOS
(container kinds are engine-gated, not OS-gated) — and the aeo CLI.
Install aeo — one line, into ~/.local (no sudo; PREFIX= to override).
Like the rest of the ecosystem this is binary-first: it downloads the
prebuilt, sha256-verified bundle for your platform, and it also ensures the
ae toolchain and the
aeb build runner that aeo relies on
at runtime (aeo compiles each composition by shelling ae, and can shell aeb
to build an image):
curl -fsSL https://raw.githubusercontent.com/aether-lang-dev/aeo/main/get.sh | sh
Make sure ~/.local/bin is on your PATH (the installer prints a note if it
isn't):
command -v aeo || export PATH="$HOME/.local/bin:$PATH" # add to your shell rc to persist
The installed aeo is a small wrapper that pins AEO_HOME at its own runtime
tree — so aeo just works, no env var to set.
From a clone instead (development, or a platform with no prebuilt bundle):
git clone https://github.com/aether-lang-dev/aeo && cd aeo && make install
make install builds bin/aeo (via ae build, so ae must be on PATH) and
installs the same wrapper. For a pure dev loop, make build then
export AEO_HOME="$PWD" and run bin/aeo in place.
Then drive the 60-second demo. The example compositions ship in the install
tree (~/.local/share/aeo/examples/ after get.sh, or examples/ in a clone);
cd there so the paths below resolve:
cd ~/.local/share/aeo # or: cd path/to/your/aeo/clone
aeo doctor # what can THIS host run?
docker build -t localhost/aeo-examples/silly-add:latest \
examples/silly_addition_app/ # the demo app image (podman works too)
aeo up examples/silly_addition_containers.ae # redis ◄ app, dependency-ordered,
# health-gated, level-parallel
curl http://localhost:8080/add/40/2 # -> 42 (the app, live)
aeo status examples/silly_addition_containers.ae # states + attestation posture
aeo exec examples/silly_addition_containers.ae db "redis-cli ping"
aeo down examples/silly_addition_containers.ae # reverse levels, disappearance VERIFIED
Bootstrapping a repo or CI step that needs the toolchain? The same
get.sh is also a sourceable library — set AEOGET_SOURCE_ONLY=1
and it defines aeo_bootstrap / ae_ensure / aeb_ensure / aeo_ensure
without installing, so a CI step can pin and call them:
AEOGET_SOURCE_ONLY=1 . <(curl -fsSL https://raw.githubusercontent.com/aether-lang-dev/aeo/main/get.sh)
AE_PIN=0.941.0 aeo_bootstrap # ensures ae + aeb, then the aeo CLI
Everything is binary-first (prebuilt gh-release tarballs, sha256-verified),
falling back to a source build for ae/aeb where no asset exists.
Repeat invocations are fast — the front door content-hashes its inputs (compose
- lib/ + toolchain) and skips the rebuild when nothing changed (
AEO_REBUILD=1
forces). aeo doctor reports which kinds this host can execute and what's
missing for the rest; aeo secrets seals values (tokens, creds) so they stay
ciphertext everywhere aeo holds state and decrypt only at use, fail-closed.
Features at a glance
| Feature |
aeo |
Kubernetes |
Docker Compose |
Terraform |
| Declare infrastructure |
✅ |
✅ |
✅ |
✅ |
| Health-gated bring-up |
✅ |
✅ |
⚠️ basic |
❌ |
| Verify teardown (nodes actually gone) |
✅ |
✅ |
❌ |
❌ |
| Per-node confinement (cap-drop, rctl, netpolicy) |
✅ |
✅ |
⚠️ limited |
❌ |
| Image attestation (verify before boot, fail-closed) |
✅ |
⚠️ admission control |
❌ |
❌ |
| Tamper-evident audit trail |
✅ |
⚠️ event log |
❌ |
❌ |
| Runtime reconcile/watch |
✅ |
✅ |
❌ |
❌ |
| Zero-downtime cutover (blue-green) |
✅ (aeo cutover) |
✅ |
❌ |
❌ |
| No YAML (config IS code) |
✅ |
❌ |
❌ |
✅ |
| VM + container substrate (same file) |
✅ |
❌ |
❌ |
✅ |
| Multi-OS (Linux, macOS, FreeBSD) |
✅ |
⚠️ Linux-first |
✅ |
✅ |
| Portable driver model (docker/podman/lxc/bhyve/jail) |
✅ |
❌ |
⚠️ engine only |
✅ |
Full landscape comparison — how aeo relates to cloud provisioners, config
management, cluster orchestrators, and where it draws its boundaries on purpose:
docs/core/aeo-vs-iac-landscape.md.
Also see pulumi-dart — a Pulumi
SDK and language host for Dart, for similarly declarative infrastructure. It shares
aeo's config-is-code stance: infrastructure declared in a real general-purpose
language you run, not a YAML/HCL document a tool parses. The targets differ —
Pulumi provisions cloud resources through provider APIs, while aeo stands up a live
containment tree on hosts you already have — which makes them complementary rather
than competing: provision the box with one, run the tree on it with the other.
Also see TerraDart (repo)
— type-safe IaC for Dart, another take on declarative infrastructure. You author
typed cloud resources in Dart and it emits standard *.tf.json for the
terraform apply pipeline you already run. That is a deliberately different bet
from aeo's: TerraDart puts a real language at the authoring layer and still hands
a serialized document to Terraform, which keeps the whole existing toolchain (state,
plan, providers); aeo keeps the language all the way to execution — the .ae IS
the program that stands the tree up, so there is no generated artifact and no
parse step. Same complaint about hand-written HCL/YAML, two answers to it.
The one-line distinction
|
does |
invocation |
| aeb |
build the tree (static DAG of artifacts) |
aeb target:name |
| aeo |
stand the tree up and keep it coherent (live lifecycle) |
aeo up compose.ae |
aeb is declare-then-schedule — its DAG is static text, build.dep() is a
runtime no-op. aeo is imperative-runtime — vm(a).wait_for_it_to_be_up() is
a live handle that blocks on liveness; ordering is by health, not by
artifact existence. aeo is the runtime-lifecycle layer aeb deliberately refuses
to have. If aeo ever needs build-graph work, it shells out to aeb.
Design principles