Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them.
Page: /drakestapleton/aien-edge
# aien-edge
aien-dev/aien-edge
Brought by drakestapleton
Unfinished: not checked yet
There is no published receipt of a rebuild from its source yet. What a receipt is
Get this repository
Git over HTTPS
`git clone --no-checkout https://interplane.io/projects/aien-edge/repo.git aien-edge && git -C aien-edge checkout --detach 8ad4253d88551bb9948178082c40117a2d3f512e`
Source archive of `8ad4253d88551bb9948178082c40117a2d3f512e`
Download ZIP · tar.gz
Sign in to star 0 stars 0 watching
About Files History Releases Proposed changes Issues For developers
README.md
# aien-edge
## Human-Directed Agentic Engineering
Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions. This describes development, not the server's runtime behavior or deployment status.
For the documented method and a systems-software case study, see Gregory M. Kurtzer, [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.`23682548` ).
A small native Rust web server for the AIEN static sites (`www.aienos.com`, `www.drakestapleton.com`). It was built to run on a Raspberry Pi at the network edge so the NVIDIA DGX Spark never faces the internet.
Supports Sovereign Intelligence (SI) . SI's Every repository index lists this server under Apps, tools and the front door. This is hosting infrastructure, not the integration, release and install center.
Status (2026-10-18): not in use. Both sites are served by GitHub Pages today (their DNS records point at `aien-dev.github.io`), so this server is not serving either of them. The code was written on 2026-09-23. Changes since then are a relicense (2026-10-04), a README correction (2026-10-13) and a security update of the TLS library (2026-10-17). The publish script still builds sites with `npm`, which no longer matches how either site is built (both use Rust generators now), so it would need updating before any redeploy.
## What it does
- Everything in memory. Each site is read once at startup (and again on reload). Text-like files of 1 KiB or more are precompressed with brotli (quality 11) and gzip, and every file is hashed for ETags. Requests never touch the disk.
- Automatic HTTPS. Let's Encrypt certificates through `rustls-acme` (TLS-ALPN-01 on port 443; port 80 only redirects), HTTP/2 and HTTP/1.1. TLS is `rustls`; nothing is hand-rolled. Without a `[tls]` table in the config the server runs plain HTTP only and serves content on the HTTP port (local testing).
- Virtual hosts. Canonical host per site, apex to `www` 301 redirects, HTTP to HTTPS redirects, 421 for unknown hosts.
- Small attack surface. GET and HEAD only, traversal-safe path normalization against an in-memory map (no filesystem lookups per request), hidden files and source maps never loaded, header-read and TLS-handshake timeouts, a connection cap, and security headers (HSTS, nosniff, frame denial, referrer policy).
- Zero-downtime deploys. `SIGHUP` (`systemctl reload aien-edge`) reloads every site's files; if the new copy fails to load, the old one keeps serving. The config file is read only at startup, so config changes need a restart.
## Measured
On the Spark (aarch64), serving both built sites from one process, HTTP/1.1 keep-alive, brotli, against a page that returns 200 (`/research`, 6036 bytes brotli). Three runs on commit `59df18c`, recorded in the message of commit `843cc77`. The built sites are not in this repo, so the run cannot be repeated from here alone:
```
$ ab -k -n 50000 -c 64 -H "Host: www.drakestapleton.com" -H "Accept-Encoding: br" http://127.0.0.1:18777/research
Document Length: 6036 bytes
Complete requests: 50000
Failed requests: 0
Requests per second: 208785.70 / 192780.75 / 196101.50 [#/sec] (mean)
Time per request: 0.307 / 0.332 / 0.326 [ms] (mean)
VmRSS: 18316 kB (VmHWM 35924 kB)
```
`ab` counts only dropped connections as failed. Check that the output has no `Non-2xx responses` line, or the run measured an error page.
Not measured on a Pi.
## Build and test
Needs Rust 1.88 or newer (`rust-version` in `Cargo.toml`). `rust-toolchain.toml` pins 1.88.0, so rustup uses that release in this directory. The `msrv` workflow builds, tests and lints on it with `--locked` for every pull request.
```
cargo test
cargo clippy --release -- -D warnings
cargo build --release # target/release/aien-edge, aarch64 builds run on a 64-bit Pi OS
```
## Deploy on the Pi
```
sudo install -m 0755 target/release/aien-edge /usr/local/bin/aien-edge
sudo install -D -m 0644 deploy/config.example.toml /etc/aien-edge/config.toml
sudo install -m 0644 deploy/aien-edge.service /etc/systemd/system/aien-edge.service
sudo mkdir -p /srv/sites/releases
sudo systemctl daemon-reload && sudo systemctl enable --now aien-edge
```
The server exits at startup if a site root is missing or has no `index.html`, and `Restart=always` retries every 2 seconds, so publish the sites soon after the first start. Publish each site from the Spark with `deploy/publish-site.sh `: it runs `npm ci` and `npm run build` in the checkout (see the status note above: the sites no longer build with npm), uploads `dist/` to `/srv/sites/releases/` on the Pi (set `EDGE_HOST` to the Pi's ssh address), repoints `/srv/sites/` and reloads, keeping the last three releases. Keep `production = false` (Let's Encrypt staging) until the certificates issue, then switch to `true` and restart (a reload does not re-read the config).
Network: forward TCP 80 and 443 on the router to the Pi only, and point the DNS A records for both apex and `www` hosts at the public IP. The Spark reaches the Pi (over ssh and rsync, on the direct link) only to deploy; aien-edge itself never connects to the Spark.
## License
Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE . Values live in the nonbinding COVENANT.md .
## Copyright
Copyright (c) 2026 Drake Stapleton aien@aienos.com and AIEN Contributors. Authored by Drake Stapleton in collaboration with AIEN.
## For developers: proof and records
The full record of this project. Words that are used only here are explained once:
ID
The project's permanent id on Interplane: the SHA-256 of its first signed record. This one is `git:e46500d82e3341a374c211eb520d1905da861c636d6753062898b80caab53050`. Its old id, kept only so that old links still work: `z2Ajufz3KS3GompMJ2SJmAz8mRnk6`.
Owner
The key that signs every record of the project. This forge lists the project under drakestapleton; its key is `SHA256:qg3vxoE9ul3Cgk5heosQvPmO9pqIJNsdcsGJ2cHghTs`.
Refs and HEAD
Refs are the names that point at versions: branches and tags. HEAD is the version a fresh copy starts from, the newest commit of the default branch.
Patch
A proposed change, reviewed before it is merged. This forge does not show proposed changes from its own store yet. The list is under Proposed changes .
Receipt
A public record that someone checked a claim, with the fingerprint of its evidence file. The state at the top of this page is read from the list at interplane.io/receipts . This project has no receipt in that list yet.
Clones and fetches over HTTPS: 0 by visitors (git smart-HTTP `info/refs` requests answered 200 in the front-door download log; our own addresses and bots left out; since 2026-11-08) · not measured `git-upload-pack` requests from all clients (the source of this count is retired)
Downloads: 1 by visitors (1 source archives, 0 release assets; forged access log; our own addresses left out; since 2026-11-07)
commit `8ad4253d88551bb9948178082c40117a2d3f512e` Branches Tags History
`8ad4253` chore(deps): bump brotli from 8.0.4 to 9.1.1 (#19) dependabot[bot] committed 2026-11-06
```
.github/
deploy/
src/
.gitignore 28
AGENTS.md 5390
AUDIT_SCOPE.md 4758
COVENANT.md 954
Cargo.lock 47457
Cargo.toml 1122
LICENSE 34523
README.md 5899
SECURITY.md 2313
rust-toolchain.toml 333
```
Every record: History (commits) · Branches · Tags · Releases, with the SHA-256 of each download · Patches · Issues · This project as JSON