aeb
Your build is a graph whether you acknowledge it or not.
A build system for polyglot monorepos. Small declarative files replace
Makefiles, pom.xml, package.json scripts, deps.edn, Cargo.toml,
.csproj, and pyproject.toml — and replace them consistently across
languages. Convention does the work; you declare the intent.
aeb aims to replace other build tools outright: a terse grammar for every
major language, driving the compilers (javac, kotlinc, tsc, dmd, cc,
erlc, ...) directly. Handing a whole step to Maven, Cargo, Gradle or MSBuild
is a fallback the user chooses, not the default. The
SDK ladder shows, language by language, where that stands
today.
(aeb was originally short for "Aether Build" — the runner is written
in Aether and was the project's first non-trivial Aether application.)
Interface at a glance
The ways to invoke aeb — one row each:
| Invocation |
What it is |
aeb <target> |
Build one node (path/.build.ae, or a path:name synonym). |
aeb --scan '<glob>' |
Build every node matching a glob (fan-out under -jN). |
aeb --since <ref> / aeb --print-affected <ref> |
Build (or list) only targets affected by a git change. |
aeb --graph [dot|mermaid] |
Render the build DAG (pipe to graphviz, or paste a Mermaid fence). |
aeb --report [text|mermaid|dot] |
Render the last build's timing / critical path / cache, read-only over artifacts. |
aeb --report=<tier> |
Dial the inline [telemetry] verbosity (counts|targets|per-rule|full). |
aeb --query '<expr>' / --owners <src> / --path a b |
Ask the DAG questions (deps, reverse-deps, ownership, why-depends). |
aeb --list |
List the nodes here and their canonical labels. |
aeb --watch [target] |
Rebuild on source change (inotify / fswatch). |
aeb gcheckout <target> |
Sparse-checkout only the modules a target needs. |
aeb --sandbox / aeb --vet |
Run contained (deny-by-default) / static supply-chain veto of the build tree. |
aeb --prereqs <target> / --preflight <target> |
List a target's toolchain prerequisites / probe them against the host. |
Scope coverage — honest status
✓ Done · ◐ Partial · ✗ TODO. The ✗ rows are shown, not hidden. (The
AGENTS.md copy of this table carries the implementation detail; keep
the two in step.)
| Dimension |
aeb status |
| Build-graph topology |
✓ File-based DAG via dep("path"), scanned without compilation. |
| Multi-language polyglot |
✓ One SDK per language under lib/; the full list, and which steps each one does itself versus hands to the language's own build tool, is in the SDK ladder. |
| Cross-language FFI artifacts |
✓ JNI / cdylib / shared-lib handoff wired (Java→Rust, Java→Go, C#→Rust, Python→Rust, …). |
| Local incremental cache |
✓ Content-addressed (sha256), whole-module. Wired into aether, java, kotlin, scala, groovy, clojure (only compile with main_ns), maven, go, rust (only the single cdylib), dotnet (not test projects) and ts (ts.tsc and ts.tsc_files, not mocha). The other SDKs (c, cpp, zig, swift, nim, d, crystal, javascript, pnpm, jest, webpack, angular, ...) do not use it; see the ladder. |
| Affected-target detection |
✓ aeb --since <ref> builds only impacted targets; --print-affected lists them. |
| Dependency resolution (transitive) |
◐ aeb's own resolver covers Maven only (lib/maven and aeb mvn add, on aeb-resolve.jar); the JVM SDKs use it. npm/pnpm, NuGet, Cargo and Python are delegated to pnpm/npm, dotnet build restore, cargo and pip install; rust.crate_registry only records an artifact. See the ladder. |
| Build graph visualisation |
✓ aeb --graph (DOT / Mermaid). |
| Build report / bottleneck |
✓ aeb --report (timing, critical path, cache) + --report=<tier> verbosity. |
| Watch mode |
✓ aeb --watch (inotify / fswatch → narrowed rebuild). |
| Sandboxing / isolation |
✓ aeb --sandbox (deny-by-default, no tcp; Linux, aether ≥ 0.230). |
| Supply-chain build veto |
✓ aeb --vet (AST deny-rules + allowlist, bring-your-own SAST, agent-side rules). |
| Sparse checkout for monorepos |
✓ aeb gcheckout (DAG walk → git sparse-checkout, or a .lore/ view filter). |
| Configuration DSL ceiling |
✓ Closure-with-setters, Aether-native, no eval'd config. |
| Migration story |
✓ Per-module .build.ae, coexists with existing tooling; proven against real repos. |
| Structured node-failure capture |
✓ target/_aeb/_failures.jsonl — one JSON record per failed node. |
| Test orchestration |
◐ Test SDKs + per-target pass/fail counts feed [telemetry]; structured XML reports TODO. |
| Build telemetry |
◐ Per-module timing + cache in [telemetry]; standalone view + tiers done; file/web renderers TODO. |
| Hermetic toolchains |
✗ Selects what's on PATH, never provisions (a deliberate divergence). |
| Remote build cache |
✗ TODO — local cache units are the natural seed. |
| Lockfiles for reproducibility |
✗ TODO — resolver computes the closure but writes no lockfile. |
| Artifact publishing |
✗ TODO — builds fat jars; no publish step yet. |
| IDE / LSP integration |
✗ TODO — no aeb-lsp yet. |
| Cross-compilation |
✗ TODO — roadmap. |
| CI system integration |
✗ Deliberately CI-agnostic today. |
The same truth by language, showing which build stages aeb does itself and which it hands to the language's own build tool: docs/sdk-ladder.md.
Configuration precedence
A setting expressible in more than one place has one documented winner.
aeb does not read an external config file — a .ae build file is the source of
truth — so this is only about how the CLI / environment / .ae / built-in layers
rank. Strongest wins:
- Explicit CLI flag —
--jobs N, --coverage, --sandbox, --vet,
--report=<tier>. Always wins; passing the flag overwrites any inherited env.
- Environment variable —
AEB_JOBS, AEB_COVERAGE, AEB_REPORT,
AEB_CONTAINER_ENGINE, … Wins over the built-in default.
.ae-declared intent — setters in the dot-file (the build's own
declaration of what it needs).
- Built-in default —
nproc for jobs, non-coverage, no sandbox, full
telemetry.
Examples: aeb --jobs 4 beats an inherited AEB_JOBS=8, and AEB_JOBS beats
the nproc default. aeb --coverage sets AEB_COVERAGE=1, so flag and env are
consistent by construction (the flag is the env's on-switch). --report=<tier>
overrides AEB_REPORT.
What it looks like
A Java component with one dependency:
import bldr
import java
aeb(cap) {
bldr.build() {
dep("java/components/vowelbase/.build.ae")
java.javac()
}
}
A Rust shared library that depends on a vendored jni crate:
import bldr
import rust
import rust (crate_name, edition, crate_type, lib_path, lib_name)
aeb(cap) {
bldr.build() {
dep("libs/rust/registry/vendor/jni/.jni.crate.ae")
rust.cargo_project() {
crate_name("vowelbase")
edition("2021")
crate_type("cdylib")
lib_path("lib.rs")
lib_name("libvowelbase.so")
}
}
}
A JUnit test module with vendored junit.jar:
import bldr
import java
aeb(cap) {
bldr.build() {
dep("java/components/vowelbase/.build.ae")
dep("libs/java/junit/.junit.jar.ae")
dep("libs/java/hamcrest/.hamcrest.jar.ae")
java.javac_test()
java.junit()
}
}
A Spring Boot test module with Maven dependencies via a BOM:
import bldr
import java
import maven (load_bom_file)
import java (release, source_layout, enable_preview, parameters)
aeb(cap) {
bldr.build() {
dep("jpa/example/.build.ae")
load_bom_file("../../spring-boot.bom.ae")
dep("org.springframework.boot:spring-boot-starter-test")
dep("org.springframework.boot:spring-boot-data-jpa-test")
java.javac_test() {
release("25")
source_layout("maven idiomatic")
enable_preview()
parameters()
}
java.junit5() {
enable_preview()
}
}
}
How it works
A module's build intent lives in one or more dot-prefixed .ae files:
| File |
Role |
.build.ae |
compile the module |
.build-<tag>.ae |
additional binary in the same module dir |
.tests.ae |
compile + run tests |
.tests-<tag>.ae |
additional test binary in the same dir |
.dist.ae |
package (fat jar, Docker image, wheel…) |
.dist-<tag>.ae |
additional packaging variant |
.{name}.jar.ae |
vendored JVM jar |
.{name}.crate.ae |
vendored / registry Rust crate |
.{name}.npm.ae |
vendored / registry npm package |
.{name}.nupkg.ae |
vendored / registry NuGet package |
.{name}.whl.ae |
vendored / registry Python wheel |
Multiple build files per directory
A module dir can hold more than one of each role using a <tag>
suffix. Useful when the same source tree produces multiple binaries
(e.g. a server and a paired seeder), or runs multiple test phases
against shared sources:
ae/myserver/
├── .build.ae # → label "ae/myserver"
├── .build-seed.ae # → label "ae/myserver:seed"
├── .tests.ae # → label "test:ae/myserver"
└── .tests-it.ae # → label "test:ae/myserver:it"
Each tagged file is its own graph node — aeb --graph shows them
separately, aeb --since walks them independently, and a downstream
dep("ae/myserver/.build-seed.ae") references just the seed
target. The labels appear in [telemetry] so you can see per-target
timing for each binary.
The runner (aeb) does four things:
- Scan — walk the tree and collect every
.*.ae file
- Graph — grep each
dep("…/.serde_json.crate.ae") line to derive a file-based DAG
- Sort — topologically order the files
- Generate + link — produce a single orchestrator
.ae file with one
function per module, compile them all to C, link into a single native
binary, run it
The generated binary is one process with one in-memory visited-module map.
Each module function calls its deps directly — no subprocesses, no
file-based coordination. Per-module artifacts (classpaths, library paths,
crate paths, NuGet refs, source paths) are written to target/<module>/
so downstream modules can read and compose them transitively.
File paths encode to C-safe function names:
java/components/vowelbase/.build.ae
→ java_components_vowelbase__D_build_D_ae
(/ → _, . → _D_, - → _H_, _ → __.)
Installing
aeb is written in Aether, so it needs the Aether toolchain
(ae) first.
Release builds and bootstrap downloads use Aether 0.941.0 (AETHER_FETCH).
The minimum supported version is 0.898.0 (AETHER_PIN); a newer
installed toolchain is accepted, and an explicit AETHER=/path/to/ae selects
the toolchain to use.
One toolchain per build. Everything one aeb run compiles and links (the
orchestrator built from your .ae build files, and the programs they build)
uses one Aether install: its ae, aetherc, libaether.a, headers and
stdlib. aeb picks it once, in this order:
| Setting |
Toolchain |
AETHER=/path/to/ae |
that one, whatever its version |