GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TAIPANBOX/stack-single: The agent stack on one machine: the same wiring stack-k8s proved on a cluster, for a single box that governs agents running elsewhere.

BranchesTags
Open more actions menu

Latest commit

 

History

243 Commits
243 Commits

Folders and files

NameName
Last commit message
Last commit date
.githooks
.githooks
 
 
.github
.github
 
 
apparmor
apparmor
 
 
assets
assets
 
 
docs
docs
 
 
drill-scenarios
drill-scenarios
 
 
evidence
evidence
 
 
examples
examples
 
 
features
features
 
 
guest-door
guest-door
 
 
scripts
scripts
 
 
seccomp
seccomp
 
 
.gitignore
.gitignore
 
 
.secretscan-allow
.secretscan-allow
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
components.json
components.json
 
 
compose.yaml
compose.yaml
 
 
hardening-exceptions.json
hardening-exceptions.json
 
 
install.sh
install.sh
 
 

Repository files navigation

The agent stack on one machine

One command puts the whole governed stack on a box you own, ready for agents that live somewhere else entirely.

curl -fsSL https://github.com/TAIPANBOX/stack-single/releases/latest/download/install.sh | bash

That installs the latest release, and only a tree that is provably that release: the script fetches the release's tarball and its cosign bundle, and unpacks and runs it only when the bundle checks against this repository's own release workflow on that tag (see "What a piped install runs" below). Nothing comes from main unless you ask for it by name.

The whole stack as compose services on one box, with the gateway published to loopback so opening it is a deliberate act. Two directions cross the boundary and they are not the same: an operator comes in through a tunnel the box issues their device, and the notifier dials out to a mail server on its own, needing none of the tunnel

It comes up closed. The gateway is published to the host's loopback, so a box that just ran an install script does not acquire an internet-facing enforcement plane because nobody typed anything. Opening it to the agents you actually have is one word:

GATEWAY_BIND=0.0.0.0 ./install.sh

Then point an agent at the gateway. Wherever that agent runs, in EKS, in a CI job, on a laptop, its calls are metered, budgeted and policy-checked:

ANTHROPIC_BASE_URL=http://<your box>:4100

Every call carries a client key. The gateway does not answer a caller without one, and the installer mints a key for your agents when you bring none: it is in /opt/agent-stack/agent-key, and each call sends it as x-fuse-key, with an agent id under agent://local/agents/ as x-fuse-agent-id (see "Client keys and the identity map" below).

On a box that is already installed, edit GATEWAY_BIND in /opt/agent-stack/.env and docker compose up -d. Re-running the installer will NOT widen it: .env is left alone once it exists, which is the same property that stops a re-run rotating your credentials.

What a piped install runs

A piped install (curl ... | bash, so there is no tree beside the script) runs one tree, the latest release's, and checks it before it unpacks a byte of it. It asks github.com/TAIPANBOX/stack-single/releases/latest which tag that is, fetches that release's stack-single.tar.gz and stack-single.tar.gz.sigstore.json, and runs cosign verify-blob (the pinned cosign the image checks use) with the exact identity https://github.com/TAIPANBOX/stack-single/.github/workflows/release.yml@refs/tags/<that tag> and GitHub's OIDC issuer. Only then does it unpack the tarball, check that its install.sh is that version, and hand over to it. Any failure on the way (no bundle, a signature that does not check, a tree of another version, a path that climbs out of the tarball) stops the run with the box as it was. The release workflow (.github/workflows/release.yml) is what signs the tarball, on the tag, when the tag is pushed, into a draft release; a person publishes each release, so nothing becomes the latest without that step.

  • STACK_TAG=vX.Y.Z installs that release instead, checked the same way, and the rollback index still refuses one below the box's ("Going backwards by mistake").

  • INSTALL_FROM_MAIN=1 installs the main branch's tree. It is unsigned and nothing checks it; the run says so, and the install journal records the tree as main-unsigned. It is never a fallback: a release that fails its check stops the run and does not reach for main.

  • STACK_RELEASE_BASE points the fetch at a mirror of the releases. It changes where the bytes come from, never whose signature they need.

  • If the download itself fails, curl -f prints its error and bash is handed an empty script, which installs nothing and ends 0. To stop at a failed download instead, fetch it to a file first: curl -fsSL https://github.com/TAIPANBOX/stack-single/releases/latest/download/install.sh -o install.sh && sudo bash install.sh (a lone install.sh with no compose.yaml beside it is a piped install, and takes the signed release the same way).

  • The bootstrap script itself is fetched over TLS and trusted on that alone, as any curl | bash is. To check it before it runs, take it from the release with the tree and its bundle, and check the tree's signature yourself first (the bootstrap is the tree's own install.sh, so comparing the two shows it is the signed one):

    tag=$(curl -fsSI -o /dev/null -w '%{redirect_url}' https://github.com/TAIPANBOX/stack-single/releases/latest); tag=${tag##*/}
    for f in install.sh stack-single.tar.gz stack-single.tar.gz.sigstore.json; do curl -fsSLO "https://github.com/TAIPANBOX/stack-single/releases/download/$tag/$f"; done
    cosign verify-blob --bundle stack-single.tar.gz.sigstore.json \
      --certificate-identity "https://github.com/TAIPANBOX/stack-single/.github/workflows/release.yml@refs/tags/$tag" \
      --certificate-oidc-issuer https://token.actions.githubusercontent.com stack-single.tar.gz
    tar -xzOf stack-single.tar.gz stack-single/install.sh | cmp - install.sh && sudo bash install.sh
    ``` From a clone (`./install.sh`) none of this runs: the tree
    you cloned is the one you chose.
    

Checking an installed box again: ./install.sh status

Running the installer changes a box. To check the box without changing it, run status. It runs the same checks the install runs at its end, against the stack that is already up, and prints one line per check:

cd /opt/agent-stack     # any copy of install.sh works; STACK_DIR names the stack
STACK_DIR=/opt/agent-stack ./install.sh status

It installs nothing, pulls no image, starts, stops or restarts no container, issues no device and sends no mail. The checks that would write to the event bus, or send a call the stack records (a refused metered call, a typed question), are printed as skip and run only by the install. Run it as root: .env holds the box's keys, mode 0600, and status reads it.

Exit Means
0 every check passed, and what runs is what the pins name
1 a check failed, or the drift check found a difference
2 it could not measure: no .env, no Docker answering, no pins, no stack, nothing to compare

A 2 is never a pass and never a finding: nothing was read, so nothing was said about the box. If a check failed as well, the run ends 1.

The drift check

The last thing status runs, and the last thing an install runs, is a drift check. For every container of the stack it compares what Docker runs with the pin in compose.yaml, one line each:

   drift check: what runs, as the Docker on this box reports it, against the pins in /opt/agent-stack/compose.yaml
   note  compose.override.yaml                  on this box, and what it sets counts as the pin here
   ok    wardryx                   running      sha256:2d3c0c9c0798  pin sha256:2d3c0c9c0798  compose
   FAIL  console                   running      sha256:5d8392de11aa  pin sha256:f018407dba47  compose  (not the image the pin names)
   ok    init-volumes              exited 0     sha256:73aaf090f3d8  pin sha256:73aaf090f3d8  compose
   skip  scopyx                                 not started, profile egress is off
   note  tokenfuse-gateway         running      stack/tokenfuse:dev  built on this box, nothing to compare  .env override
   FAIL  wardryx-old               running      unknown container on agent-stack_core
   drift check: 21 on their pin, 2 failed, 7 skipped, 2 noted
   this is a drift check: it compares what Docker on this box says with what compose.yaml on this box says, and a person with root on this box can change either side.

It reads the image Docker holds for the container, not the name the container was given, so a container left behind by an upgrade shows up whatever its name says. Both of Docker's image stores give the same verdict for the same bytes.

  • An image set in .env. A *_IMAGE line replaces the pin for that service, and nothing else in this repository reads it. The line says note, .env override, and what compose.yaml pins. With no digest in it, and an image from a registry, it says FAIL no digest pinned: a tag can move. compose.override.yaml counts the same way.
  • An image built on the box (BUILD_FROM_SOURCE=1) has no registry digest to compare with, and the line says so. A service pinned by digest whose image has no registry digest is not that case: it fails, because it cannot be the pin.
  • A one-shot (init-volumes, costcrew-init) is expected to have ended 0. Ending otherwise fails.
  • A service whose profile is off is skipped and named. A stopped service of a profile you start yourself (egress, egress-browser, finops, routines, manual, crew) is skipped too. A service the stack keeps running that has stopped or keeps restarting fails, and the line gives its state.
  • A container compose does not know fails: one with this project's label and no service in the file, or one with no label at all that is attached to one of the stack's networks. A throwaway that has left a moment later is not counted.
  • A guest of another project (see the next section) is a note when guests.txt names it and it sits on agent-stack_guests, or when guest-callbacks.txt names it and it sits on agent-stack_callbacks. The same container on any other network of the stack fails, whatever the files say. A name with no container is a note. A file that cannot be read, or a line that is not what it should be, lets nobody in: the run says it could not measure, and every guest it would have let in fails. A guest that answers on its network to the name of a service of the stack (a container named wardryx, an alias policy-db), or to a provider's host the stack calls, fails too, and so does one that answers on agent-stack_callbacks to another guest's call-back name. guest-callback's routes are compared with what guest-callbacks.txt and core's subnets make them: an edit nobody installed fails until ./install.sh runs.

Letting a container of another project in: the guests network

Something else on the box may need the stack: a lab's gateway that hands its agents tokens and model calls, a bridge that bans a person their identity provider has disabled. Such a container does not join agent-stack_core, where the planes, the policy database and custody sit. It joins agent-stack_guests, which holds one thing of the stack: guest-door, a proxy with no key that answers there to the names vouchryx, tokenfuse-gateway and tokenfuse-mcp-broker and forwards a guest's routes to each (from vouchryx a token, a key set, the revocation list, a revocation or its lift under a scoped key; model calls; tool calls). Any other route, an administrative one of the gateway among them, gets guest-door's own 404. No door shares the network with a guest, so a guest that takes a name is never asked for anything by a door. The network has no route out.

In the guest's own compose file:

services:
  gate:
    networks: [guests]
networks:
  guests:
    external: true
    name: agent-stack_guests

Then name the container in guests.txt beside compose.yaml, one name per line, so status can tell it from a stranger:

# /opt/agent-stack/guests.txt
lab-gate-labgate-1
lab-idp-bridge

The installer never writes, copies over or removes guests.txt. A name in it lets that container onto the guests network and nowhere else: the rule is in status, not in the file. Give a guest service a name of its own: one that is also the name of a stack service fails status.

When the stack has to call a guest back (the MCP broker calling a lab's relay as a tool upstream), the guest also joins agent-stack_callbacks, and a line in guest-callbacks.txt beside compose.yaml names it, the name it answers to there and the port:

# /opt/agent-stack/guest-callbacks.txt
lab-gate-labgate-1 labgate:8791

./install.sh then writes guest-callback's routes: it listens on that port on core and forwards to labgate:8791, for a caller on core and no other, so the broker's upstream is http://guest-callback:8791/... and a guest cannot reach another guest through it. The container has to be in guests.txt too, the port is 1024 or above, and a line that is not one call back stops the install before anything starts. Run ./install.sh again after changing the file; until then status fails guest-callback.

It only reads: docker ps, inspect, image inspect, network ls, network inspect and docker compose config. It reaches no registry and runs no cosign.

This is a drift check and it says what it is. It finds a box that has moved away from its pins by accident. Its word is Docker's on this box and the pins are a file on this box, so a person with root can change either side. The bytes on disk are not re-hashed, and what it reports is true of the moment it ran.

status also prints one line from the install journal: the last good install, its index, and the last override (see the next section).

It prints one line about the tool hold too: whether the floor is on and how many grants there are, from policy.yaml, the store and what wardryx loaded at its last start (see "An agent's tool call waits for a person until something grants the tool").

Going backwards by mistake: the install journal and the rollback index

Each run of ./install.sh writes to a journal on the box, $STACK_DIR/.install-history (root's, mode 0640, only ever appended to): when it ran, the tree's version and its tag or commit, the tree's rollback index, and how the run ended.

2026-11-09T06:10:03Z attempt version=1.7.0 index=1 commit=v1.7.0 compose=2.26.1-4 docker=26.1.5
2026-11-09T06:18:44Z good version=1.7.0 index=1 commit=v1.7.0
2026-11-12T01:02:11Z rollback version=1.6.9 index=0 commit=v1.6.9 reason="gateway refused keys after 1.7.0"

The rollback index is a plain whole number in install.sh, STACK_ROLLBACK_INDEX. It is not the version. It goes up only when an older tree has become unsafe to run on a box that ran a newer one, and that release's notes then carry a security: or irreversible: line that names it. So most releases share an index, and an ordinary rollback to the release before, from a tree you kept on the box, goes through without a word.

The floor of a box is the highest index of a run that ended with every check passed. A run with a failed check leaves the floor where it was, so a failed upgrade never makes going back harder. A box with no journal yet is treated as new: nothing is refused, and if it already has a .env the first line says the journal started there.

A tree whose index is below the floor is refused in the preflight, before a package, a file or a container changes, and the refusal says what to do:

!! this tree is stack 1.6.9 (rollback index 0). This box has run index 1 since 1.7.0.
   Going below it can run images with known defects, or data a newer release changed.
   If you mean it:
     ALLOW_ROLLBACK=1 ROLLBACK_REASON='why' ./install.sh
   In a piped install the two go before bash, not before curl.
   Nothing was changed.

The reason is required, goes in the journal, and is shown by status. The override moves no floor, so the next run of that tree needs a reason of its own. A journal with a line that cannot be read stops a run the same way, naming the line, because the line it cannot read may be the one that holds the floor.

A piped install runs one tree, the release's, unpacked only behind its signature ("What a piped install runs"), and its compose.yaml must carry the version its install.sh carries, or the run is refused before the box's own file is replaced. A signed release is still only as new as its tag: the floor is what refuses an older one.

This is a guard against mistakes, not protection against an attacker. It stops a stale clone, the wrong tag, an old path in a script. It stops nobody who means it, because the check lives inside the tree it checks and the tree is not signed: whoever hands a box an old tree hands it the old check too, and root on the box can edit the journal.

A tree older than this change has no check at all. It runs on any box, whatever the floor says, and leaves no line in the journal.

It also does not cover:

  • A *_IMAGE line in .env. It moves one service to any image, an older one included, and the installer reads it as the operator's choice. status shows it as an override, and cosign verify passes an old image too: an old signature stays good.
  • docker compose up run by hand, with any compose file. The installer takes no part, so neither the floor nor the journal does. The drift check in status is what sees the result.
  • Restoring $STACK_DIR from a backup. The journal comes back as it was that day, and the floor with it. Removing the file makes the box new again.

Back up .env

/opt/agent-stack/.env (mode 0600) holds every secret this box has: the policy database's password, the planes' keys, the gateway's client keys and the console's. It is the one file to back up, and to keep off the box, because the volumes cannot be used without it: the policy database (agent-stack_pgdata) knows only the password it was created with. Copy it somewhere only you can read after the first install and after any run that changes it:

sudo install -m 0600 /opt/agent-stack/.env ~/agent-stack.env.backup   # then move it off the box

What a re-run does without it: the installer finds no .env, asks Docker whether this stack's volumes are already on the box, and if they are it stops before it changes anything, names the volumes and asks for the file back. Restore it to /opt/agent-stack/.env with mode 0600 and run again. FRESH_ENV=1 ./install.sh is the way to say a new .env over those volumes is what you mean; the policy database then keeps its old password, so reset it or remove agent-stack_pgdata (and with it every policy and approval it held), or wardryx will not start. A box whose Docker does not answer cannot be asked, and is refused the same way.

This is not the sandbox

stack-up is the local try: it binds 127.0.0.1 on purpose, needs Rust, Go and Node on your machine, and stops when you press Ctrl-C. It says as much about itself, and it is right to.

This is the other thing. The differences are the whole point:

stack-up here
Reachable by an agent elsewhere no, and it cannot be yes, one variable away
Toolchains on your host Rust, Go, Node, Python docker and git
Where the planes come from compiled on your machine pulled from ghcr.io, pinned
Survives a reboot no yes
Console sign-in no console at all generated into a 0600 file under STACK_DIR, never printed
Credentials a dev key unique per box, 0600, never printed twice
Governance routines on a schedule six by default, plus an opt-in drill, as OS timers none, see below

That "yes" is measured once, 2026-09-17: on a gateway bound to the box's tailnet address, the first reboot came back failed and the fix described below made the second succeed in 40 s; the default loopback bind has not yet been rebooted under measurement.

What this box does not run

Two things a look at compose.yaml alone will not tell you, both about absence rather than presence. An operator choosing between the three deployment shapes (stack-up, this one, stack-k8s) should be able to see both before installing, not after.

Some governance routines run on a schedule, and some do not. stack-up's routines.sh installs six OS-native timers for the stack's own recurring governance work by default: a FinOps export, a crypto-inventory trend, a quality-drift check, an identity-anomaly sweep, an on-box chain verification and the record seal. It also has an opt-in fire drill. stack-k8s runs the crypto trend, the quality drift and the identity sweep as CronJobs and the FinOps export as a sidecar of its gateway. Every install here starts four of them as looping services: the FinOps export (focus-export, over both gateway doors, every 15 minutes, read by the FinOps console), the chain verifier, the record seal and the error budget (below). The quality-drift check is defined as a looping service too (verdryx-drift), behind a routines profile that no install enables: it needs a baseline you choose (ROUTINE_VERDRYX_BASELINE in .env), and with none it only says it skipped. Start it with docker compose --profile routines up -d verdryx-drift, or run one by hand inside the console container when you want it:

docker compose exec console verdryx drift --baseline <id>   # or qryx, ...

The identity sweep is defined here as a service you START rather than one that loops, because a loop is impossible for it and not merely unwanted. It runs on the idryx image, which is distroless: there is no shell for a sleep loop, the binary is /usr/local/bin/service rather than idryx, and detect has no --interval. So it takes the shape stack-k8s already uses for the one job that must never start because a manifest was applied, and a person runs it:

docker compose run --rm idryx-detect

It sits behind a manual profile that no install enables, which scripts/manifest-is-true.sh checks in both halves: the profile has to be there, and install.sh must never pass it. Put that line in your own cron if you want it hourly, or add your own cron entry on the host calling docker compose exec. This was not a documented choice before now; it is simply what the installer and the compose file do, and it is worth knowing before you pick this shape over the other two.

The fire drills for the MCP broker take the same shape. mockryx's broker drills send this box's own broker three hostile tool calls: a raw secret in the arguments, personal data in the arguments, and a call to a tool nothing grants, which the tool hold must keep for a person. A person runs them:

docker compose run --rm mockryx-drill

The drill presents a key of the broker's own, never the gateway's: drills-broker in the broker's key list and on its static list, the same secret in drills/broker.key (uid 65532, mode 0400). install.sh mints it on every box, keeps it on a re-run and never prints it, and checks the drill's image signature before it pulls it. The broker runs only with WITH_TYPED, WITH_EGRESS or WITH_BROWSER, so on a box without it the drill stops with exit 2. Read the result by its table: passed means the guardrail held, skipped_not_configured means it is off on this box (personal data is recorded in shadow by default), and a Finding names what got through. mockryx's own tool-hold drill asks its second call for an answer from an MCP server, and this box has none that answers it, so the box runs its own copy, drill-scenarios/mcp-ungranted-tool-held.yaml, mounted over the image's: its second call, from a drill identity, gets past the hold and is refused by the broker's vault (-32008), because the secret handle it carries is scoped to other tools, so nothing reaches a server and a held drill identity still shows as a Finding. CI runs both, the box's copy as shipped and mockryx's original with a stand-in server, and requires every drill to hold. The first call leaves one pending approval on wardryx, for an agent id under ungranted.invalid that no grant can name; nobody needs to answer it, and later runs reuse it.

The memory plane, engram, is not a separate service here, the same way verdryx and qryx are not, and mockryx is not for the console: compose.yaml names no engram, verdryx or qryx container, and the console runs its own copy of mockryx, because none of them is meant to be a service the console calls (the mockryx-drill above is a separate job a person runs). stack-k8s's own README explains why (its "Fact 2"): the console reaches each of them by EXECUTING it, or, for engram-mcp specifically, by speaking MCP over stdio to a child process, and "a sidecar container cannot be another container's stdin." So all four have to live inside the console's own image or not run at all.

They do live there. install.sh clones verdryx and engram as sources (the same for r in ... verdryx engram loop that clones every other plane, above) and builds the console from the identical stack-k8s/images/console.Dockerfile that bakes both into stack-k8s's console image, the same pip install step and all. Based on reading that build, not on having run it: the underlying binaries appear to be present here exactly the way they are in stack-k8s's console, which is a different claim from "the memory plane works here", and both stacks share the same further gate regardless of deployment shape: genaryx's own discovery code (memory/env.rs) refuses to show a Memory panel until its store already has a file with real data in it, so a console that has never actually run an Engram session reports "no memory plane" on stack-up, here, and on stack-k8s alike, until an operator does something once. If there is a concrete reason this box's memory plane cannot work that a closer look would find, it is not in install.sh, compose.yaml, or the Dockerfile it builds from.

Reaching the console: this box issues your device its own tunnel

The console is on loopback, so it is reached over a tunnel rather than exposed. This box runs the WireGuard side itself: sign in, open Remote, and it mints your laptop or phone a peer config as a QR. Scan, connect, and the console answers over HTTPS on the name it was configured with, inside that tunnel and nowhere else - see the next section, because that name is not optional if you want passkeys to work at all.

Issuing a device and revoking one both require a passkey, the same ceremony a kill, a budget change or an approval decision does: a peer config is a road into the control plane, so a stolen console session must not be able to mint one quietly. Your first device is issued by install.sh itself, not the browser: a passkey cannot be enrolled before a tunnel exists, so the browser has nothing to issue the first device from. Every device after that goes through the console once you have one.

The sequence for your first session:

  1. import the .conf file install.sh printed the path to (or scan the QR it printed on that run) into your WireGuard client, and connect
  2. open https://<your CONSOLE_DOMAIN>, trusting this box's own CA first if you did not set CLOUDFLARE_API_TOKEN (see the next section)
  3. sign in with the password in the file the closing report names (sudo cat it, then delete the file once you have saved the password)
  4. enrol a passkey under Session > Passkeys

Only after step 4 do kill, budget, approval and device commands work.

SSH is still how you read the console before the tunnel exists, not how you act on it: a passkey cannot be enrolled over an SSH forward, because WebAuthn checks the origin, and that forward is http://localhost, never your console domain.

ssh -L 17420:127.0.0.1:7420 root@<your box>

Alerts do not need any of this. The notifier dials outward to your mail server; the tunnel exists to let you IN. A box with no tunnel and no device still writes to you when one of your agents crosses a line. What the tunnel decides is only whether the one link in that mail can be opened.

So the link is settable, in .env:

ALERT_CONSOLE_URL=''                        # use CONSOLE_DOMAIN, i.e. the tunnel
ALERT_CONSOLE_URL='http://localhost:17420'  # you reach the console over ssh -L

Leave it empty with no tunnel either, and the mail says it carries no link rather than carrying a dead name.

Two details worth knowing rather than discovering:

  • 51820/udp is published, and it is the one port here that has to be. Unlike an HTTP plane, WireGuard answers nothing at all without a valid key: no banner, no handshake, nothing for a scanner to find.
  • The tunnel runs in its own wg container because it needs NET_ADMIN and a tun device. The console holds neither: it manages peers through a group-readable UAPI socket on a shared volume. That split is checked by the installer from the console's side, because a tunnel that is up while the console cannot reach its socket looks perfectly healthy from outside.

The notifier's daily pulse and quiet hours (set in .env)

Mail to your server is sent over TLS. SMTP_TLS in .env chooses how (heraldyx 0.8.0): unset is STARTTLS, which is what a server on port 587 or 25 offers, and implicit TLS on port 465 selects itself. starttls and implicit name the two modes explicitly. plain is refused for any host that is not loopback (127.0.0.0/8, ::1 or localhost), so a relay on the box itself is the only place it can go. A server that offers no STARTTLS is refused rather than sent to in the clear. The installer asks for the mode after the server address, and a value it does not read is refused before anything is installed.

Once a recipient is set (ALERT_TO), the notifier sends one mail a day saying it is alive, with the numbers it saw. If that mail stops arriving, the notifier or its mail path is down. Three settings in .env change how it behaves. Without them you get the defaults shown:

HERALDYX_PULSE_HOURS=24       # how often the pulse goes out; 0 turns it off
HERALDYX_QUIET=22:00-07:00    # quiet hours as HH:MM-HH:MM; empty is off
HERALDYX_TZ=Europe/London     # the IANA zone the quiet hours are read in

During quiet hours, alerts below critical are held and reported in one mail when the hours end. A critical is always sent at once. If HERALDYX_TZ is empty, the hours are read in the notifier's own zone, so set it to be sure. A value the notifier cannot read turns quiet hours off and says why in its log.

Giving the console a real name, so passkeys work

The tunnel is enough to reach the console, and not enough to secure it. A passkey ceremony cannot run at https://10.9.0.1 no matter how it is configured: WebAuthn requires a secure context AND refuses a bare IP as the party it binds credentials to. So the console needs a name and a certificate, even though nothing outside your tunnel can reach it.

Out of the box you get a working TLS console on a private name with Caddy's own CA. That is fine for one operator who does not mind trusting that CA on each device, and wrong for anything else, because such a CA can issue a certificate for ANY name to a device that trusts it.

A real name costs two values in .env and nothing else:

CONSOLE_DOMAIN=something-unguessable.box.example.com
CLOUDFLARE_API_TOKEN=<a token scoped to Zone:DNS:Edit on that one zone>

Then docker compose up -d caddy console. Caddy switches from its internal CA to Let's Encrypt on its own, and the console's WebAuthn identity follows the same name, so the relying party, the origin and the address you type are one value instead of three kept in agreement by hand.

Four things worth knowing before you do it:

  • The A record points at 10.9.0.1, the tunnel address, and must be DNS only (grey cloud). A proxied record cannot reach a private address. Public DNS pointing at a private IP is normal and is how every "reach my private thing by name" product works.
  • DNS-01, not HTTP-01. The box publishes nothing on 80/443 and should not, so there is nothing for an HTTP challenge to answer. DNS-01 proves ownership with a TXT record, which works for a machine the internet cannot reach.
  • Pick an unguessable name. The record is public, so anyone can learn that the name exists. console.example.com is an invitation to scan; e02-k7m2.box.example.com is a string with no value to anyone.
  • A passkey is bound to the name. Changing the domain later invalidates every passkey enrolled at the old one; they must be enrolled again. Nothing is lost, but do not discover it during an incident.

Remove the token later and Caddy quietly falls back to its internal CA, which breaks passkeys again. If you set it, leave it.

What comes up

Ten containers and a one-shot init-volumes that exits, wired exactly as the Kubernetes deployment wires them, because service names resolve the same way in both. They sit on five Docker networks, not one; see "Networks" below for who is on which, and why an agent's container has no route to the internet:

Service Port Published to a host port
tokenfuse-gateway 4100 yes, GATEWAY_BIND decides where: loopback by default. Every call needs a client key (see "Client keys and the identity map")
tokenfuse-cloud 8080 no
wardryx 8090 no
idryx 8081 no
policy-db (postgres) 5432 no
console 7420 loopback only
caddy 443 no, it is reached over the tunnel, on the name in CONSOLE_DOMAIN
wg 51820/udp yes, and it is the one port here that has to be
heraldyx none it has none. It reads the event volume read-only and dials your mail server, so nothing ever calls it
agent-conform none it has none. It re-checks the hash chain of every event stream every five minutes and writes one file of its own on the bus. See "The chain verifier" below
scopyx none opt-in, off unless you ask for it. Inside the compose network only, and an agent reaches it through the MCP broker. See below
typryx none opt-in, off unless you ask for it. Inside the compose network only. See below
tokenfuse-mcp-broker 4200 opt-in, off unless you ask for it (typed answers, or an egress profile). GATEWAY_BIND decides where, same as the gateway. See below
tokenfuse-gateway-openai 4110 opt-in, off unless you ask for it (OPENAI_DOOR=1). A second gateway for agents that speak the OpenAI wire; GATEWAY_BIND decides where, same as the gateway. See "A second door on the OpenAI wire" below
typryx-wardryx-proxy none opt-in twice, off unless you ask for it (typed answers on, and TYPED_RISK_SIGNAL=1). Reachable only from the broker and wardryx. See "A risk signal on tool calls" below
vouchryx none opt-in, off unless you ask for it. Inside the compose network only. See "Delegation" below
keyryx 4340 (compose network only) none. Key custody: it holds the keys that sign approvals and seal roots. See "Key custody and the witness" below
keyryx-witness none none. It has no network at all. It reads the event record and checks it. See "Key custody and the witness" below
costcrew 8321 opt-in, off unless you ask for it (profile finops; install.sh never starts it). Loopback only. See "The FinOps console" below
costcrew-run none opt-in, started by hand (profile crew, run once per run). Its model calls go through the gateway. See "The crew's runner" below

Networks

Before this release every container shared one Docker network and every one of them had a route to the internet, so an agent that could reach a model provider directly never needed the gateway. Now there are these networks:

Network Internal Who is on it
edge no the one route out: heraldyx (mail), the gateways (provider calls), scopyx and the browser (the web), wg and caddy. typryx and its risk-signal proxy join it only when TYPED_MODE is jev or own-model, because only then do they call a provider
agents yes where an agent's container joins (agent-stack_agents). Its only peers are the two gateways, the MCP broker, the console, costcrew and its runner costcrew-run. Neither scopyx nor the browser is here: the web is read through the broker
core yes the planes, which reach each other and the doors. No agent container is on it
risk-signal yes the typed risk signal's proxy, the MCP broker and wardryx, and nothing else
browser-policy yes the browser's one path to a decision: scopyx-browser and wardryx, which decides every fetch the browser makes, and nothing else
browser-broker yes the MCP broker's one path to the browser: scopyx-browser and the broker, and nothing else (scopyx without a browser is reached over core)
front no, with NAT off the published ports: caddy, console, costcrew and the MCP broker. Nothing outbound is translated, so a container here cannot use the host as a route out

An agent's container on agents reaches the gateways and the broker. It cannot resolve a name on the internet, cannot connect to an address on it, and cannot reach a plane by name. install.yml checks those three things on a fresh runner, on every install leg, after a positive control on edge so a runner with no internet cannot pass them by accident.

What this means for you:

  • An agent container you run yourself joins agent-stack_agents: docker run --network agent-stack_agents .... Its model calls go through the gateway, with its client key, like any other metered call. A container left on the old default network has lost its route to the internet, which is the point.
  • The browser container (scopyx-browser) is on edge, because it fetches the web. Its containment is the proxy scopyx owns, not the network: a compromised browser can open a connection over edge itself. Closing that needs the browser to reach the web only through scopyx on an internal network, which is a design change and is not done here.
  • The browser asks wardryx before every fetch. It reaches wardryx through browser-policy, a network of its own whose only other member is wardryx, so the browser is not on core. The path is measured at the network level (a container on it reaches wardryx and not the gateway or the internet), and CI's browser job makes a real fetch through the egress-browser profile, decided by the wardryx the installer started.
  • The host firewall is untouched. An agent that runs as a process on the host, rather than in a container, is outside all of this.

Docker watches the services the installer checks on their health paths: tokenfuse-gateway, tokenfuse-gateway-openai (when the door is on), tokenfuse-cloud and console. docker compose ps shows each as healthy or unhealthy, and the installer's checks are no longer the only look at them. A healthcheck only reports: compose still restarts a service by its own rule, and nothing here restarts one because of a failed check. wardryx, idryx, typryx and vouchryx have no healthcheck, because their images are distroless: they have no shell and no curl or wget to ask with, and this installer does not add a tool to an image it does not build. ./install.sh status is the check that covers them.

The gateway's own observability and kill routes (/v1/runs, /v1/keys and three more) take a per-install admin key: GATEWAY_ADMIN in .env, minted by install.sh and presented by the console as TOKENFUSE_GATEWAY_ADMIN_KEY. A request with no key, or the wrong one, is refused. Widening GATEWAY_BIND no longer widens those routes to anyone without the key: it decides who can reach the port, the key decides who those five routes answer once reached.

Clearing a run's taint label is a sixth door with a key of its own. The gateway's POST /v1/fuse/declassify (the release valve for its agent firewall: a person reviews a run and the label comes off it) is not behind the admin key. It takes x-fuse-declassify-key, and install.sh mints that key into .env as GATEWAY_DECLASSIFY_KEY, handed to the gateway as TOKENFUSE_DECLASSIFY_KEY. Without a key configured, the gateway lets anything that reaches the port clear a run, so this is set by default and only whoever can read .env holds it. Nothing in this stack calls the endpoint. To clear a run, read the key from .env and send it in that header; a call with no key or the wrong one is refused. An install from before this release gets the key on its next run of the installer, which adds it without touching any credential already there.

The most one run can be allowed to spend

A run's budget used to be whatever the agent said: it sends x-fuse-budget-usd, and its next call could widen it again. The gateway (tokenfuse 1.5.0) now clamps a budget that came from that header, from a policy default or from its own built-in default to one figure, on every call, and tells the caller when it did by adding x-fuse-budget-clamped: <figure> to the answer. The figure is 5.00 USD unless you say otherwise, which is tokenfuse's own default run budget, so an ordinary run is untouched and only an agent that declares more is lowered. A budget you set in the Cloud is your own word and is never clamped, and a caller may always ask for less.

RUN_BUDGET_CEILING_USD=25 ./install.sh      # a positive number of dollars, at most six decimals

On an installed box, set RUN_BUDGET_CEILING_USD in /opt/agent-stack/.env and docker compose up -d. The installer refuses a value the gateway would refuse to start on (zero, a sign, an exponent, a seventh decimal), before it touches the box, and also one already left in .env. It bounds one run, not an agent: an agent that opens a new run id gets a new run's worth, which only unit caps or a budget tied to an identity close. install.sh checks the gateway's own start-up line to see the clamp is armed, so a gateway older than 1.5.0 turns that check red instead of reading as bounded.

The agent firewall runs in enforce

The gateway's agent firewall judges what a run may do after it has read untrusted input: it has read a web page, an email or a file, and the model then asks for a command, a write or a send to the network. On this box it runs in enforce, the default on every install. When a run has read untrusted input and the model asks for one of those actions, the gateway withholds the answer: the caller gets HTTP 403 with taint_blocked. The model call itself has already happened, so it is still recorded and billed. A run that holds a secret and asks to send data out is refused the same way.

Enforce judges the buffered answer. A streamed answer is not judged by this firewall in this release, so a tool use inside a stream is not withheld.

To run it in shadow (it records what it would refuse and refuses nothing) or off instead, set the switch and run the installer, which checks the value before it touches the box:

TOKENFUSE_FIREWALL=shadow ./install.sh      # or off; enforce is the default

On an installed box, set TOKENFUSE_FIREWALL in /opt/agent-stack/.env and run docker compose up -d tokenfuse-gateway. The installer refuses any other value and one already left in .env. tokenfuse also exits at start on a misspelling (exit 2), so a typo cannot quietly run shadow.

Personal data in prompts (shadow by default)

On every box the gateway looks for personal data in prompts and tool arguments, and the MCP broker does the same when typed answers are on: email addresses, payment card numbers that pass a Luhn check, and international phone numbers. The default is shadow, which records what it finds and lets the call through unchanged. The gateway adds an x-fuse-dlp header to its answer with the kinds found and a count, never the values. The broker logs a warning and, on a tool response, marks _tokenfuse.dlp_pii. Neither writes an event to the shared bus.

One switch moves both scanners:

TOKENFUSE_DLP_PII=mask ./install.sh      # or off, block; shadow is the default

mask replaces each finding with a [REDACTED:kind] marker before the call is forwarded. block refuses a call that carries a finding, including a false positive. Read what either does to your agents' traffic before you turn it on.

On an installed box, set TOKENFUSE_DLP_PII in /opt/agent-stack/.env and run docker compose up -d tokenfuse-gateway. The installer refuses any value outside off, shadow, mask and block, and so does tokenfuse, which exits at start on a value it cannot read rather than switching detection off.

Which models an agent may use (you write it, nothing is seeded)

A policy can name the models its agents may use. wardryx 1.5.0 reads allow_models: a model call whose model matches none of the entries is denied, and a model call whose model is empty is refused. An entry is a model id or a glob (* any run of characters, ? one character), matched exactly, so Claude-Sonnet-5 is not claude-sonnet-5. When several matched policies set a list, each of them has to name the model. Tool calls are not judged by it. This launcher seeds no such list, so until you write one every model passes, as it did before. tokenfuse sends the model with each decide request, so the list reaches the model calls the gateway makes. Not measured here against a live provider.

- name: support-fleet
  target: "agent://<your trust domain>/support/*"
  allow_models:
    - "claude-sonnet-*"
    - claude-haiku-5

Add it to /opt/agent-stack/policy.yaml beside the rule above and run docker compose restart wardryx. A decision under a list is never cached, so each model call reaches wardryx.

Client keys and the identity map (on by default)

The gateway answers no caller without a client key, and a key may speak only as the agent ids the identity map binds it to. Without them the gateway admitted anyone who could reach it and took the agent id a caller wrote, so one agent could speak as another and take its policy and its budget. Compose refuses to start the gateway without keys, and the map runs strict (TOKENFUSE_IDENTITY_STRICT: enforce).

Given no files, the installer mints two keys and a map binding each:

Key id Unit May speak as Its secret
felyx console agent://<trust domain>/genaryx/felyx, exactly GENARYX_COPILOT_FUSE_KEY in .env; the console sends it for Felyx
agents agents agent://<trust domain>/agents/* GATEWAY_AGENT_KEY in .env, and the file /opt/agent-stack/agent-key (0600)

The trust domain is RECORD_TRUST_DOMAIN from .env, local when it is unset. The end of the run names the file and the ids and never prints a key. Your agents then send, on every call:

Header Value
x-fuse-key the secret in /opt/agent-stack/agent-key
x-fuse-agent-id an id under agent://local/agents/, such as agent://local/agents/support-bot
x-fuse-run-id its run, as before

A call with no key, or one the gateway does not hold, is refused 401; the key speaking as an id outside agents/ (Felyx's included) is refused 403 identity_mismatch. The units carry no budget: the map binds and attributes, and a monthly cap is yours to set in a map of your own. A re-run keeps every minted key byte for byte and rebuilds the same map; to rotate one, empty its line in .env and run the installer again, which mints a new one. An installed box from before this release gets its keys on its next run of the installer, and its agents are refused 401 until they send one; docker compose up on its old .env stops at the missing GATEWAY_CLIENT_KEYS rather than starting a gateway that answers anyone.

One key for all your agents is the floor. To give each agent its own key and unit, bring two files, prepared by you or by an onboarding agent (the console's Onboard tab prints both pieces). On a box whose keys were minted, give both files together: the minted map binds the minted keys only.

  • a keys file: one secret:key_id per line. The secret is what one agent presents; the key id is the name the gateway records its spend under. Blank lines and # comments are ignored.
  • an identity map: tokenfuse's JSON map (docs/20) of units (a team or business unit, with an optional monthly budget), which key belongs to which unit, and which agent ids each key may speak as.
# keys.txt
gx_3f0c9a...:treasury-bots
gx_9b21d4...:research-bots
{
  "units": [
    {"id": "treasury", "owner": "user://bank.example/olena", "budget_usd_month": 2000},
    {"id": "research", "budget_usd_month": 300}
  ],
  "keys": [
    {"key_id": "treasury-bots", "unit": "treasury", "agents": ["agent://bank.example/treasury/*"]},
    {"key_id": "research-bots", "unit": "research", "agents": ["agent://bank.example/research/*"]}
  ]
}
CLIENT_KEYS_FILE=/path/keys.txt IDENTITY_MAP_FILE=/path/identity.json ./install.sh

With agent tokens on, the default, the two files need two more entries each: the MCP broker needs a key of its own, and the agent the installer enrols at vouchryx is attributed to unit agents. In this example bank.example is the box's RECORD_TRUST_DOMAIN:

# keys.txt, two more lines
gx_51e7aa...:broker
gx_8c03f2...:agents
{"id": "agents"}, {"id": "broker"}

{"key_id": "agents", "unit": "agents", "agents": ["agent://bank.example/agents/*"]},
{"key_id": "broker", "unit": "broker", "agents": ["agent://bank.example/agents/*"]}

The first line goes into units, the other two into keys. ADD_BROKER_KEY=1 mints and appends the broker's line for you. The installer keeps both keys off the static allow-list, so neither admits a call on its own. Without these entries the installer refuses before it writes anything and says which one is missing. WITH_AGENT_TOKENS=0 keeps static keys only, which is the weaker way out.

The MCP broker also admits two static keys of its own, and its tool-call check is closed (see "Reaching it through tokenfuse's MCP broker"), so the gateway must hold both too, with the broker's secret: stack-single (the installer's own check, which speaks as agent://local.invalid/install-check) and drills-broker (the fire drills, agent://mockryx.local/*). A box given its own files adds two more lines and two more map entries; the secrets are the ones the broker holds, in TOKENFUSE_MCP_KEYS in .env:

# keys.txt, two more lines, with the secrets from TOKENFUSE_MCP_KEYS in .env
<the broker's secret for stack-single>:stack-single
<the broker's secret for drills-broker>:drills-broker
{"id": "install-check"}, {"id": "drills"}

{"key_id": "stack-single", "unit": "install-check", "agents": ["agent://local.invalid/install-check"]},
{"key_id": "drills-broker", "unit": "drills", "agents": ["agent://mockryx.local/*"]}

ADD_BROKER_KEY=1 appends both lines with the broker's secrets, keeping the file's mode, and the installer checks the map first, so it never appends to a file it would then refuse. The installer never edits your map or rewrites a line of yours: a line with another secret than the broker's stops the run, and so does a map that does not bind the id. Any other static key you added to the broker by hand needs the same two entries, or take it out of TOKENFUSE_MCP_KEYS.

What an agent then sends, besides its provider key, on every call:

Header Value
x-fuse-key its own secret from the keys file
x-fuse-agent-id an id the map binds to that key, such as agent://bank.example/treasury/recon-batch
x-fuse-run-id its run, as before

A call with no key, or a key the gateway does not hold, is refused 401. A key speaking as an agent its binding does not name, or naming none, is refused 403 identity_mismatch before anything reaches a provider. Its spend lands in the key's unit, and with TOKENFUSE_MODE enforce (this box's setting) a unit over its monthly budget is refused 402.

The installer checks both files before anything restarts, in two steps. Before it installs a package, the shell grammar: each file is readable and not empty, each key line is secret:key_id with a secret of 24 to 256 characters from A-Z a-z 0-9 . _ ~ + / = @ : - and a key id from A-Z a-z 0-9 . _ -, no secret appears twice, and the map is a JSON object. Then, once the images are on the box, the gateway image itself reads the pair in a throwaway container with no network, so its own parser decides: a unit the map does not declare, a bad pattern, a map that configures nothing (an empty file or {}), a map key id no secret carries, and a key the map does not bind (every call with it would be refused 403) are each refused, and nothing is written. A refusal names the line, never the secret.

The keys are kept in .env (0600) as GATEWAY_CLIENT_KEYS and are never printed. The map is kept at /opt/agent-stack/identity/identity.json and mounted read only into the gateway. A re-run that names neither file keeps both and checks them again; naming one replaces it, and a new map restarts the gateway, which reads the map only at start. The map can be turned off by removing GATEWAY_IDENTITY_MAP from .env and running docker compose up -d tokenfuse-gateway; the keys cannot, the gateway requires them.

The keys file can hold only the keys, with no map: callers are then authenticated and their spend attributed by key id, with no agent binding. A map with no keys file is refused: the gateway requires keys, and a map's bindings would name keys the box does not have.

Felyx, the console's copilot, calls this gateway like any agent, so it needs a key of its own. On a box given no files it has the minted felyx key. With your own files, give it a line in the keys file and a binding, as below; with GENARYX_COPILOT_FUSE_KEY empty, Felyx sends no x-fuse-key and its calls are refused 401. The installer says which of these your box has at the end of the run. Felyx authenticates with this key and never with your provider key.

A console that carries genaryx invariant 24 can present a key of its own: compose.yaml already hands it GENARYX_COPILOT_FUSE_KEY_REF, which points at GENARYX_COPILOT_FUSE_KEY in .env, and such a console sends that key as x-fuse-key. The console pinned here (genaryx v0.1.0) carries it; an older one ignores the setting. Measured 2026-10-13 with two throwaway v1.1.44 consoles against a gateway holding client keys: with the key set, a question to Felyx was answered; with it empty, the gateway answered 401. To give Felyx a key:

  1. Give Felyx its own line in the keys file, such as gx_7d42e1...:felyx.
  2. If you use an identity map, bind that key id in keys[] with agents naming Felyx's agent id, agent://<RECORD_TRUST_DOMAIN>/genaryx/felyx (agent://local/genaryx/felyx when RECORD_TRUST_DOMAIN is unset), and the unit its spend should land in. The installer refuses a key the map does not bind.
  3. Run the installer with both files again, as above.
  4. Put the same secret in .env, single-quoted, as GENARYX_COPILOT_FUSE_KEY='gx_7d42e1...', and run docker compose up -d console.

Left empty, the default, Felyx sends no key, as before, and with client keys on its calls are refused 401.

The provider key: the gateway holds it, never an agent

The gateway holds your model provider's key, so an agent never needs it. Give the key to the installer as a file, not as a value:

ANTHROPIC_KEY_FILE=/path/to/anthropic.key ./install.sh

The installer copies it to ./upstream/anthropic/key (mode 0400, owned by the gateway's user) and mounts that directory read only into the gateway alone. A re-run keeps the file. OPENAI_KEY_FILE does the same for the OpenAI door, into ./upstream/openai/key. Agents present their gateway key. A call that carries a provider key of its own is refused 401 provider_credential_refused.

With no key file the gateway forwards a caller's own key, as it did before, and the closing report says so. A key the gateway holds pays for every agent's calls, so it is never taken from elsewhere without your word: a box that has only GENARYX_COPILOT_KEY in .env (the key Felyx held before 1.2.0) stops before anything is changed and names the two ways on, ANTHROPIC_KEY_FILE=<file> or GATEWAY_HOLDS_COPILOT_KEY=1, which moves that .env value into the gateway's key file. The .env line stays, unused, so remove it once you are sure.

Upgrading: Felyx now authenticates with its own gateway key, not the provider key. A box given its own keys file needs GENARYX_COPILOT_FUSE_KEY in .env, with the same secret on a line of the keys file, or Felyx is refused 401.

Agent tokens: an agent's own credential (the default, with a named list of static keys)

By default the gateway and the MCP broker require an agent token. A static client key is admitted only when its key id is named on an allow-list the installer writes, and wardryx checks an agent's token itself rather than taking the gateway's word for who the agent is. This is what the installer does with no setting at all:

./install.sh            # agent tokens on, the default
WITH_AGENT_TOKENS=0 ./install.sh   # the weaker way out: static keys only, as before

The installer prints the allow-list in its closing report, under "static keys still admitted; move these agents to tokens". On a fresh box that list is the console's own key (felyx) and the broker's taint-relay key (broker), because neither can sign a proof. On a re-run it keeps exactly the list the last run wrote, and it names felyx and the broker again whenever the box holds them, so nothing that worked yesterday stops, and it never adds a key the installer minted for the agents or the fire drills. An upgrade does take them off a list a 1.3.1 re-run had widened, on both doors, unless STATIC_KEY_IDS names them: STATIC_KEY_IDS=agents ./install.sh keeps agents. The closing report says which ids the run removed. The choice is not sticky: a run without STATIC_KEY_IDS=agents removes the agents' key again. Name it on every run while the agents move to tokens, or the agents are refused until they do. To keep another client, name its key id in STATIC_KEY_IDS (comma-separated, for a client that cannot sign a proof), and the installer refuses a name that is not one of the box's keys. Moving an agent to a token is the way to take it off the list.

Upgrading a box with static-key agents (1.3.0)

  • A box that ran 1.3.1 more than once had the agents' and the fire drills' keys on its static lists. This run removes them from both lists, unless STATIC_KEY_IDS names them. The choice is not sticky: name it on every run (STATIC_KEY_IDS=agents ./install.sh) while the agents move to tokens, or a run without it removes the agents' key again. A call with a removed static key is refused 401 agent_token_required until the agent uses a token.
  • An agent that calls with a static key it does not hold on the list is refused 401 agent_token_required after the first run of this release. The same key on a re-run keeps working, because the re-run keeps every key id the box already had.
  • A box given its own CLIENT_KEYS_FILE must add a <secret>:broker line (the secret, a colon, then the word broker), bound in its identity map. Or set ADD_BROKER_KEY=1, and the installer mints the secret and appends that line, keeping the file's mode. Or run with WITH_AGENT_TOKENS=0. Without one of those, the installer refuses before it installs anything.
  • A box given its own CLIENT_KEYS_FILE also needs stack-single and drills-broker lines, and map entries for them, because the broker's tool-call check is closed and asks the gateway with the caller's own key (the lines and the entries are in "Client keys and the identity map", above). ADD_BROKER_KEY=1 appends the lines. The installer stops before it installs anything, naming the id, when one is missing. A caller that sends no x-fuse-run-id to the broker is refused: the broker's check needs the run.
  • A re-run need not name the keys file again, because the keys an earlier run took from it are kept in .env. With agent tokens on, though, the broker's line has to come from that file, so a box that once gave CLIENT_KEYS_FILE and re-runs without it is refused: name the file and the map again (CLIENT_KEYS_FILE=... IDENTITY_MAP_FILE=... ./install.sh, with ADD_BROKER_KEY=1 if the file has no broker line yet), or run with WITH_AGENT_TOKENS=0.
  • A box given its own identity map must also bind the enrolled agent in unit agents, the unit vouchryx enrols it in: a unit with id agents, a keys[] entry with key id agents, unit agents and agents agent://<RECORD_TRUST_DOMAIN>/agents/*, and a matching <secret>:agents line in the keys file. The installer keeps that key off the static allow-list, so it admits nothing on its own; it is there so the map attributes the agent's token to the unit the token names. Without it the gateway refuses the agent's own token (403 unit_contradicts_map), so the installer refuses the map before it writes anything.
  • To move an agent to a token, it must be the one agent this box enrols at present (agent://<RECORD_TRUST_DOMAIN>/agents/operator, its secret in $STACK_DIR/agent-token.key). vouchryx reads its registry from one variable, so more agents need a change to vouchryx. Until then, name a key that must stay in STATIC_KEY_IDS, and the rest of the agents keep their key on the list.
  • Rolling back to the previous release: set WITH_AGENT_TOKENS=0 and run the installer again. That writes off, clears the lists, and leaves every file in place.
  • The record plane (on by default; WITH_RECORD=0 turns it off) reads agent-event v1.0 from trailryx 1.4.0. Under 1.0 it refused typryx's four event types, and whether 1.4.0 seals them is not measured for this release.

The installer starts vouchryx (the delegation plane), enrols the agent agent://<RECORD_TRUST_DOMAIN>/agents/operator, and writes its enrolment secret to $STACK_DIR/agent-token.key (mode 0600). The secret is never printed and never written to .env; only its SHA-256 digest is. The agent exchanges the secret at vouchryx for a five-minute token bound to a DPoP key of its own, and sends Authorization: DPoP <token> with a proof. The gateway and the MCP broker verify the token offline, for their own audience, against a revocation list that fails closed. The gateway and the MCP broker share one audience, https://stack-single.<RECORD_TRUST_DOMAIN>. It is an identifier, not an address: nothing serves it, and it need not, because it is the value the token is minted for. A consequence to know: the broker's protected-resource document names an https URL that no server answers, so an MCP client that discovers the broker from that document cannot reach it. The agent in this stack gets its token from vouchryx directly, so nothing here depends on that discovery.

To get its token, the agent asks for that audience in its token request, with resource=https://stack-single.<RECORD_TRUST_DOMAIN> (RFC 8707; audience= works too). A request that names none is refused audience_not_allowed: vouchryx would otherwise fall back to its own issuer, which this box's allow-list does not name. The DPoP proof the agent sends to the gateway or the broker carries ath, the hash of the token (RFC 9449). The measured run is in docs/evidence/agent-token-audience/RUN.md.

Stopping the agent is one call to vouchryx with ban, using VOUCHRYX_REVOKE_KEYS from .env. Every door polls the list, so the stop reaches each of them within one poll.

Limits, as shipped: one enrolled agent per box, the OpenAI door keeps static keys only, and a box that gave its own keys file must add a <secret>:broker line itself (or set ADD_BROKER_KEY=1), or run with WITH_AGENT_TOKENS=0. WITH_AGENT_TOKENS=0 turns the doors off again and keeps the files.

A second door on the OpenAI wire (opt-in, off by default)

The gateway on 4100 speaks Anthropic's wire, POST /v1/messages. An agent whose SDK speaks OpenAI's, POST /v1/chat/completions (an OpenAI SDK, an Ollama or vLLM client, a small agent on a router), needs a gateway in front of an upstream that speaks that wire: tokenfuse serves one wire per process and translates nothing between the two. OPENAI_DOOR=1 runs that second gateway, tokenfuse-gateway-openai, on port 4110:

OPENAI_DOOR=1 \
OPENAI_DOOR_UPSTREAM=https://api.openai.com/v1/chat/completions \
OPENAI_DOOR_CLIENT_KEYS_FILE=/path/door-keys.txt \
OPENAI_DOOR_IDENTITY_MAP_FILE=/path/door-identity.json \
./install.sh
  • OPENAI_DOOR_UPSTREAM is the full endpoint the door forwards to, ending in /chat/completions (https://openrouter.ai/api/v1/chat/completions, http://<host>:11434/v1/chat/completions for an Ollama), not a base URL: http or https, a host and an optional port, no credentials, no query, no fragment.
  • The keys file and the identity map have the formats of "Client keys and the identity map" above, and they are the door's own, not the gateway's. The installer refuses OPENAI_DOOR=1 without an upstream, a keys file or a map, before it installs anything: the door hands each caller's provider key to the upstream, so it never opens to callers it cannot name.
  • Give the door units of its own. A unit's monthly counter lives in one gateway process, so a unit in both maps would get its cap once on each door. The installer compares the two maps (python3 in a throwaway container of the console's image, with no network) and refuses two that declare the same unit id.

The door is the gateway's own image a second time, with every hardened setting the gateway has: the cache off, its declassify key, the run-budget ceiling, the agent firewall in enforce, PII in shadow, the policy plane in enforce and failing closed, the same admin key. It is published on ${GATEWAY_BIND}:4110, so loopback until you widen the bind, and never wider than the gateway. It writes its own stream, tokenfuse-openai.ndjson (heraldyx v0.5.0 and idryx v1.2.0 read it as tokenfuse, so its agents reach the notifier and the identity graph), keeps its own data directory, and reads its map from ./identity-openai.

What an agent sends to the door, with its base URL set to http://<this box>:4110/v1:

Header Value
Authorization its own provider key, Bearer ...; the door passes it to the upstream
x-fuse-key its secret from the door's keys file
x-fuse-agent-id an id the door's map binds to that key
x-fuse-run-id its run

Who pays. The door keeps no provider key. Each call reaches the upstream with the caller's own Authorization, so a metered upstream bills whoever's key the caller sends. The run-budget ceiling and the unit caps limit what a key spends through the door; they do not change whose account pays.

A re-run that names nothing keeps the door on, with its upstream, keys and map. A new map restarts the door. OPENAI_DOOR=0 ./install.sh removes its container and keeps its lines in .env for a later OPENAI_DOOR=1; to forget them, delete the OPENAI_DOOR_ lines. At the end of every run, a box with the door on is asked what the gateway is asked: it answers on 4110 on your bind and nowhere wider, serves the OpenAI wire, exports its events, clamps a run budget, holds its keys and map, and refuses a call with no key and with an unknown key (401).

What the door does not do, so you can decide before you turn it on:

  • Its spend is exported on its own. focus-export reads each door's traces into a folder of that door's, focus/gateway-openai beside focus/gateway, and the FinOps console reads both, so a door call is never counted twice.
  • The console shows the gateway's runs, not the door's. It reaches one gateway's admin routes, the 4100 one. A run through 4110 is visible in the Cloud and on the bus, not in the console's runs view.
  • Counters are per gateway process. A unit is counted by the door whose map declares it, which is why the two maps may not share one. A run id used on both doors gets a run budget on each: two budgets, not one.
  • No delegation and no closure on the door. A hand-off proof's DPoP htu is checked against the gateway's 4100 origin, and the console closes retained reservations through the gateway only.
  • One box only. stack-k8s and stack-up have no such door yet.

The chain verifier

Every writer on the shared events bus chains its lines (prev_hash) so a rewritten line shows. Until agent-conform watch-dir nothing on a box ever looked: on the 2026-09-17 appliance run one byte flipped on a sealed line of the bus was seen by nothing. The agent-conform service now re-verifies every stream every five minutes, and for a break it has not announced it appends one chain_broken event (high) to its own stream, agent-conform.ndjson, which the notifier already reads. A stream with no chain at all is reported once as low (chain_unchained), never as a break.

It runs as its own account, outside the group every plane writes the bus in, so it can read every stream and write exactly one file, the one the installer made for it; it cannot append to another plane's stream or create a file there. Its memory of what it already announced is on a volume of its own, so clearing the bus does not re-send old alerts. If it cannot do its job (an unreadable bus) it exits and compose restarts it, which is how a verifier that is not verifying shows.

What it does not do: it cannot tell a forged but well-chained line from a real one, it does not see truncation from the end of a file, and what the notifier mails for a chain_broken today is neutral (the agent, "an event this build has no description for", the kind prev_hash_mismatch): it does not name the stream or the line, which are in agent-conform.ndjson and in the verifier's own log (docker compose logs agent-conform).

"Not published" is not a firewall rule that might be misread: those services have no host port at all, so nothing outside this machine can address them.

The one service that does not start

scopyx, the web-egress enforcement point, is behind a compose profile:

docker compose --profile egress up -d scopyx

WITH_EGRESS=1 ./install.sh pulls the scopyx image during the install and grants the operator agent its web tools (see "An agent's tool call waits for a person"); starting it is still the command above. The same command starts the MCP broker, which is in both egress profiles as well as the typed one.

How an agent reads the web: through the broker

An agent does not call scopyx. It calls tokenfuse's MCP broker, which holds scopyx's key, and that is what lets the broker label the run from the fetch it saw (tokenfuse 1.21.0, invariant 143) instead of from a tool name the agent reported. A run that has read the web carries the web label, and the firewall judges what it does next with it.

install.sh writes one scopyx key per agent: this box enrols one, agent://<trust domain>/agents/operator, so its key is scopyx_key_operator in the broker's vault (TOKENFUSE_MCP_SECRETS in .env), usable only by that agent and only for browse and fetch_url (TOKENFUSE_MCP_SECRET_SCOPES), and the same key is in scopyx's list as <key>=<agent> (SCOPYX_KEYS). The agent never holds the key, only the handle. A re-run keeps the key.

A call, from a container on agent-stack_agents (the broker is http://tokenfuse-mcp-broker:4200/mcp there, and on GATEWAY_BIND port 4200 from the host):

POST /mcp
Authorization: DPoP <the agent's token>        (and the DPoP proof, as for any call to the broker)
X-Fuse-Mcp-Upstream: scopyx
X-Fuse-Agent-Id: agent://<trust domain>/agents/operator
x-fuse-run-id: <the run this fetch belongs to>

{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {
  "name": "fetch_url",
  "arguments": {"url": "https://example.com"},
  "_meta": {"scopyx/key": "{{secret:scopyx_key_operator}}"}
}}
  • X-Fuse-Mcp-Upstream: scopyx picks the upstream; without it the broker would use its default.
  • x-fuse-run-id is required for scopyx: taint belongs to a run, and the broker refuses a call to a classified upstream that names none, before anything is forwarded. Use the id of the run whose model calls go through the gateway, so the label lands on the run that is judged.
  • params._meta["scopyx/key"] holds the handle; the broker replaces it with the key on the last hop and scopyx removes it at its door.
  • An answer whose label the gateway did not take is withheld.

Needs agent tokens. The broker reports the fetch to the gateway with its own client key, which exists only while agent tokens are on, the default. WITH_EGRESS or WITH_BROWSER with WITH_AGENT_TOKENS=0 is refused before anything is installed.

Upgrading a box that ran scopyx before. scopyx and the browser are no longer on agents, so an agent that called http://scopyx:4300 directly can no longer reach it, on purpose. The next ./install.sh run adds the key and starts the broker beside the running scopyx; an agent changes its address to the broker's and sends the call above.

Everything else here governs what your agents do to your own planes. This one governs what they do to the outside, which means that once it runs, agents on this box can reach the public web on 80 and 443 through it. That is the widest grant this stack has, and an installer that switched it on without asking would have made the one decision an operator most needs to have made themselves.

install.sh has already put a credential and a per-hour cap in .env, so turning it on is the flag above and nothing else. Every fetch through it is decided by wardryx before anything leaves, every redirect hop is decided again, and both the fetch and any refusal are written to a chained journal on its own volume, never the shared event log.

Without the credential it refuses to start rather than running open, and that is deliberate: a wide bind with no credential is an unauthenticated fetch proxy, and anything that reached it could fetch under your egress allowance and with your name on the record.

If your agents need pages that assemble themselves

The default fetcher runs no JavaScript, so a page built in the browser arrives as the shell that builds it. There is a second profile with a real browser:

WITH_BROWSER=1 ./install.sh        # pulls the chromium image, once
docker compose --profile egress-browser up -d scopyx-browser

Use one profile or the other, never both. They answer to the same name on the compose network, and running both would give the gateway two services called scopyx and no way to say which one it reached.

It costs about 1 GB of disk against 15 MB, which is why it is a separate profile rather than a variable. The transfer is 267 MB against 3.5 MB, because this box pulls both. Everything else is identical: the same policy plane, the same journal on the same volume, the same cap.

It is also the only backend that decides the other requests a page makes, and there are more of them than the phrase suggests: measured on a real node on 2026-08-10, a Wikipedia article made 40, bbc.com/news 113, a GitHub repository page 144 and nytimes.com 343, every one of them decided. The browser is launched with no route to the network except a proxy scopyx owns, and that proxy refuses any destination your policy did not allow.

About the sandbox, because it will come up. Chromium's renderer sandbox needs kernel features a container does not give it by default, and it refuses to start rather than quietly running without one. This profile keeps Chrome's sandbox and the container's syscall filter, both: seccomp/chromium-v1.json is Docker's default profile plus the three calls the sandbox makes, and each was measured by taking it out.

Added to Docker's default Chrome uses it to Taken out, the browser says
chroot move into an empty directory Check failed: sys_chroot
clone, with a user, pid and net namespace and no other start its zygote No usable sandbox (no clone rule, or the pid or net flag out: the browser closes)
unshare, of a user namespace and nothing else move a process to a new user namespace No usable sandbox

A mount, cgroup, uts or ipc namespace stays refused, and so do mount, setns and everything else the default refuses a container with no capabilities. With Chrome's sandbox off, an exploit in a hostile page runs as the container's user and can open sockets directly, and that is egress that never passes the proxy and never reaches the record, which is why this file keeps it. If your policy is the other way round, add SCOPYX_CHROMIUM_NO_SANDBOX: "1" to this service in your compose.override.yaml.

A box with something other than the supported hosts, where the installer reports that no AppArmor line gives the sandbox a user namespace, has that same choice, or the sysctl that withholds the namespace.

The profile's name carries a version because Compose hashes the line that names the file and never the file: chromium-v2.json is how a change reaches a running browser, and scripts/containers-carry-the-baseline.sh fails on a change under the old name. The console is on loopback because it arrives over your own tunnel:

ssh -L 17420:127.0.0.1:7420 root@<your box>
open http://localhost:17420

Key custody and the witness (Keyryx)

Two containers run one binary, keyryx, as two processes that do not share a uid, a volume or a root key:

  • keyryx (custody) holds the private keys that sign things the box must be able to prove later. Today that is the key that signs wardryx's approval tokens, which is what a human approval is checked against. It is never on a request path: it is called when an approval is granted, not for every call an agent makes.
  • keyryx-witness reads the event record and countersigns what it saw. It mounts the bus read only and never writes it. Its findings go to keyryx.ndjson on a volume of their own, keyryxalerts, which heraldyx and the console mount read only. The directory is root's and only the file is the witness's, so the witness can append to its findings but cannot put another file beside them. Its log and keys stay on keyryxwitness, which nothing else mounts. It has no network, so nothing can call it and it can call nothing.

The two root keys are files that install.sh writes once, 32 random bytes each, mode 0400, owned by the one process that reads them: keyryx/root.key for custody and keyryx/witness-root.key for the witness. The installer never rewrites one and never deletes one, because a replaced root key orphans every private key wrapped under it. Neither key is in .env. Back up the keyryx directory with the rest of the box.

Each producer of the record now runs under its own uid, so one plane cannot rewrite another plane's stream. Every stream in the shared event volume is owned by the one plane that writes it and is mode 0640: the gateway, the control plane, the MCP broker, the OpenAI door, wardryx, typryx, vouchryx, the console (which journals every command it runs, a person's grant of a held call among them, and refuses one it cannot journal), and the chain verifier (which reads the streams through the bus group and writes only its own). The bus directory belongs to root and nothing but the setup script creates a file in it. A checkpoint file per producer is created alongside, empty until a producer signs one.

What is wired now, and what is not:

  • wardryx (image pin v2.8.0) signs approval tokens through keyryx, over its own socket. A v2 token, signed with the shared secret, is accepted only until WARDRYX_APPROVAL_V2_UNTIL. That variable is unset here, so a v2 token is refused from the switch. On a box with no token in flight that is correct.
  • vouchryx signs its delegation tokens with a working key that keyryx certifies. The switch is VOUCHRYX_SIGNER, keyryx by default (CLAUDE.md invariant 58). Writing VOUCHRYX_SIGNER=file in .env keeps the file key, and the next run removes the keyryx lines. The installer writes the three keyryx lines and takes the root pin, the kids of keyryx's delegation root, from keyryx on this box before vouchryx first starts. It keeps the pin in .env as VOUCHRYX_KEYRYX_ROOT_PIN and never refreshes it: a rotated root stops vouchryx at its start, and the variable's name is in the log. Trusting this box's keyryx at that first start is the first-use trust keyryx's witness also takes. Pinning the root from a copy the operator fetched is the stricter way, and it is not built here. The pin is read from keyryx's key set for its delegation root, /v1/jwks/keyryx.delegation-root, over the compose network's core network. No host port publishes keyryx. The consumer socket is vouchryx's own way in for signing, and the pin read does not use it.
  • Re-pinning keyryx's delegation root, on purpose. The pin is kept, never refreshed. A changed root stops vouchryx at its next start, and the start message names VOUCHRYX_KEYRYX_ROOT_PIN. A root is rotated on the box with keyryx's own command line (see "Rotating and revoking a Keyryx key" below), and nothing re-pins it for you. To move the pin to a root that keyryx now serves, after you have confirmed that root out of band (the pin is the trust root, and the run trusts the keyryx that answers it):
    1. cd /opt/agent-stack, then delete the pin line: sudo sed -i '/^VOUCHRYX_KEYRYX_ROOT_PIN=/d' .env
    2. sudo ./install.sh as before. The run takes the pin from the keyryx that is serving now, checks its shape, writes it back, and recreates vouchryx with it. A run that finds a pin already there leaves it alone.
  • the tokenfuse gateway and the MCP broker poll vouchryx's key set (TOKENFUSE_DELEGATION_JWKS_URL). vouchryx's working key under keyryx is renewed at half its 72 hours, and a door that read a file once would refuse every token signed after the first renewal. VOUCHRYX_SIGNER=file goes back to the file, and tokenfuse takes one or the other, never both.
  • Restarting vouchryx costs two minutes of new tokens. Its working key lives in memory, so a restart asks keyryx for a new one while the old one is still valid, and keyryx starts the new key KEYRYX_PUBLISH_AHEAD later, so every verifier holds it first. Compose sets 2 minutes: the default of 15 is for verifiers far away. Tokens already issued keep working; a new one is refused with 503 no_certified_signing_key until then, and the installer's checks wait for it.
  • trailryx's seal signs each sealed root through keyryx, with a credential keyryx holds only as a digest. See "The record plane" below.
  • checkpoints are not written yet: no producer signs one. The witness checks each stream against the bytes it saw before, and it reads the checkpoints once a producer has written some. heraldyx 0.10.0 can check checkpoints against the key statements custody publishes, and that gate stays off here for the same reason: there is nothing for it to check yet.
  • the witness's findings are mailed by heraldyx (pin v0.10.0; v0.8.0 is the first release that renders the keyryx source), at ALERT_MIN_SEVERITY, high by default; the medium ones go in the digest. heraldyx reads them through a read-only mount.
  • the console shows them as incidents: the console reads GENARYX_EVENTS_EXTRA, which compose.yaml sets. Its Keys tab shows what custody holds, read only.

Rotating and revoking a Keyryx key

keyryx (pin v0.2.0) rotates and revokes only on its admin socket, inside custody's data directory, for root and custody's own uid. There is no network admin key: keyryx refuses to start if KEYRYX_ADMIN_KEYS holds anything, and this launcher never sets it (CLAUDE.md invariant 86). On the box:

cd /opt/agent-stack
sudo docker compose exec keyryx keyryx admin rotate wardryx-approval
sudo docker compose exec keyryx keyryx admin revoke <kid>

docker compose exec runs as custody's own uid, which the socket serves. A refusal prints only its status; the reason is in docker compose logs keyryx. Key names and kids are in the console's Keys tab, or in GET /v1/keys from a container on the core network.

Each change is announced on the bus, in custody's own stream keyryx-custody.ndjson: key_rotated (info) and key_revoked (high). heraldyx reads it, so a revocation is mailed at the default ALERT_MIN_SEVERITY of high and a rotation goes in the digest. Two names are pinned by this box and need a re-pin after a rotation: keyryx.delegation-root (vouchryx's VOUCHRYX_KEYRYX_ROOT_PIN, the steps above) and trailryx-root (the record seal's TRAILRYX_KEYRYX_KID, see "The record plane"). Rotate either only when you mean to re-pin it. The record plane (trailryx 1.7.0) does not seal custody's two event types, so they are mailed and not in the record; the console shows custody's state in its Keys tab, not the events themselves.

  • a box installed before this release keeps its old alerts.ndjson on the witness's state volume. Nothing reads it, and nothing deletes it.

Migration, for a box that already runs: the streams change owner and mode the first time install.sh runs, and the planes change uid when their containers are recreated. Run ./install.sh (not only docker compose up), or docker compose up stops at the missing root key file and names it. The WARDRYX_APPROVAL_SECRET and the old signing.pem are left in place and unused. Nothing is deleted.

An agent whose error budget is spent waits for a person

On by default. Every six hours a routine (verdryx-slo) measures each agent's error budget over the last 28 days of traffic on both doors. When a budget is spent, wardryx puts that agent's calls to a person, and the console shows them like any other hold. A granted approval lets that one call through.

Variable Default What it does
SLO_SIGNAL 1 0 removes the routine, wardryx's reading of the file and the rule, together
SLO_HOLD_TARGET agent://* The agents the rule holds, as one glob. none measures and records the budget on every decision and holds nobody
ROUTINE_SLO_INTERVAL 21600 Seconds between two measurements
ROUTINE_SLO_WINDOW 28d The window a budget is measured over: hours, days or weeks
WARDRYX_SIGNAL_EVENTS_MAX_AGE 48h How long an event keeps holding after its time. Keep it at least twice the interval

SLO_SIGNAL and SLO_HOLD_TARGET are saved in .env and survive a re-run. The rule is one block in policy.yaml between two marker lines that the installer alone writes, and every other line stays yours. Any hold of your own on the slo_burn signal goes outside the markers.

What spends a budget. A run that something had to stop, and a run that cost more than three times the fleet's median. So an agent you attack on purpose spends its budget, and so does one that does far heavier work than the rest of the fleet. A rehearsal identity is an agent too. Narrow the rule with SLO_HOLD_TARGET, or use none while you learn what your fleet looks like. A hold itself spends nothing: an agent on hold can earn its budget back while it keeps working.

How it ends. The routine writes a line while a budget is spent. wardryx lets the agent go once the newest line is older than WARDRYX_SIGNAL_EVENTS_MAX_AGE, so a recovered agent stays on hold for up to that long. A bad spell stops counting once the window has passed it.

What you can see. curl wardryx's /readyz for "signal_events": "ok", "unreadable" or "broken". Every decision records the signal, whether or not it held anything, and heraldyx alerts on each slo_burn line. The routine shows as restarting in docker compose ps when it cannot measure, because a routine that cannot measure must not look like a fleet with nothing to report.

What guards the file. It is verdryx.ndjson on the bus, owned by a uid nothing else runs as, in a directory no plane can write. Its hash chain says a line was not edited, and does not say who wrote it, so that ownership is the guard. A file that cannot be believed holds nobody, on purpose: this signal can only add a hold, and every other control stands without it. The file grows by a line per spent indicator per run, and wardryx stops believing it at 32 MiB; move it aside before then, and the next run starts a new chain.

An agent's tool call waits for a person until something grants the tool

On by default on a new box. When an agent calls a tool through the MCP broker and nothing grants it that tool, wardryx holds the call for a person: the agent gets a refusal (-32004, requires approval, with the policy's reason) and the console shows the hold. Model calls pass as they did, and so do scopyx's questions about where a fetch may go. A rule that only restricts an agent, a deny_tool or a max_steps, does not end the hold: a restriction is not a permission.

Give an agent a tool, in one command, on the box:

./install.sh agent-allow agent://acme.example/agents/billing lookup_invoice,send_reminder --why 'the monthly reminders'
./install.sh agent-allow agent://acme.example/agents/billing all --why 'a rehearsal'     # every tool, with a warning
./install.sh agent-deny  agent://acme.example/agents/billing send_reminder --why 'reminders stopped'
./install.sh agent-list

Run it as root, like status: it reads the admin key from .env and sends it on standard input, never on a command line. agent-allow writes through PUT /v1/policies, so it is in force at once with no restart, it is on the record as policy_updated, and it survives a restart. The agent must name a trust domain, agent://<domain>/..., and a * may follow the domain. --why is required and goes in the policy's name beside the date. agent-deny takes the tool back, and the next call waits for a person again. agent-list shows whether the hold is on, every grant and where it lives, and, with the hold off, what the hold would stop.

A grant asks for an agent token, so a holder of a static key cannot borrow a granted name: the broker reports the static key, and the call is refused. An agent that really calls with a static key takes --static-key, and then its id is the caller's word. On a box with WITH_AGENT_TOKENS=0 a grant asks for nothing, and the command says so. A grant also lists none, the source scopyx sends when it asks about the same agent's fetch.

What a new box comes with. One block in policy.yaml between two marker lines the installer alone writes. Every other line of the file stays yours.

Rule What it is for
tool-hold The floor: target: "*", when_no_grant: hold. It lives in the file, and PUT refuses it, so a key cannot take it away
grant-drills Every tool for agent://mockryx.local/*, the fire drills. Their own deny rules still apply
grant-install-check ask for agent://local.invalid/install-check, the installer's own check, under the broker's static key
grant-operator-web fetch_url and browse for agent://<trust domain>/agents/operator. Written when the run names WITH_EGRESS or WITH_BROWSER, or a scopyx of this box runs; a box that starts egress by hand after the install gets it on its next run, or with agent-allow

Felyx and CostCrew get nothing: both make model calls only.

An existing box stops the upgrade and changes nothing. Before anything on the box changes, the installer asks wardryx replay -policy <what this run would write> -format json about the box's own recorded decisions, grants written through agent-allow included. If a call of an agent outside the seeds would be held, the run stops: it prints the agent, the tool, how many calls and when last, and the commands to run. No file changes, the journal gets no line, so the rollback floor cannot move, and the image it pulled to ask is removed again. The same goes for a history that could not be asked. A box that already carries the block is not asked again.

A wardryx older than 2.6.0 cannot store a grant, so the box moves first, with the hold off:

TOOL_HOLD=0 ./install.sh                # this release, no hold
./install.sh agent-allow <agent> <tools> --why 'what it is for'
./install.sh agent-list                 # asks again: what would still wait
TOOL_HOLD=1 ./install.sh                # turns it on, and shows anything still on the list
Variable Default What it does
TOOL_HOLD 1 0 removes the block and its grants, and is kept in .env. 1 in the environment turns the hold on over whatever the question found: a line in .env never does that

Going back. TOOL_HOLD=0 ./install.sh first, and only then an older tree or image. A wardryx older than 2.6.0 refuses when_no_grant and grant_tool at load, and with the doors failing closed that refuses every call. The block goes with TOOL_HOLD=0; a grant_tool you wrote yourself outside the markers has to go by hand. Grants written through agent-allow can stay in the store: 2.5.1 reads past the key. The rollback index does not move for this: the wrong order stops loudly and refuses, and an older tree is safe once the block is out.

What a person can do about one call. The console lists each hold with the tool and its target, not the arguments. An approval there shows a token for that one call, once, and whoever runs the agent sends it with the retry as x-fuse-approval-token. For anything that will come again, the answer is a grant. wardryx keeps one row per agent, run and call, and at most 20 waiting per agent (WARDRYX_PENDING_PER_AGENT), so an agent repeating a call does not flood the queue.

What it does not see. A tool an agent reaches around the broker. On a box with no typed plane and no egress there is no broker, so no tool call reaches wardryx at all. An id with no agent:// scheme is held and cannot be granted, so a person answers its calls one at a time.

The record: what this box did, sealed

On by default, from the pinned trailryx-node image, with no build (CLAUDE.md invariant 51). The installer starts it with the rest of the stack. WITH_RECORD=0 turns it off, and an install that had it running stops and removes it. Signed through keyryx (CLAUDE.md invariants 62 and 63). The seal signs each sealed root through this box's keyryx. Its credential, keyryx/record-seal.key, is minted once, read only by the seal, and kept across re-runs; keyryx holds only its digest. The keyryx witness reads the records and attests to each root, on a volume of their own, keyryxattest. The seal mounts that volume read only and nothing else of the witness's, so the witness's data and its key stay out of its reach. At install the seal pins the kid of keyryx's trailryx-root key set, which must hold exactly one ES384 key, and keeps the pin on every later run.

Rotating the record root. The pin is not refreshed on a re-run. When keyryx's trailryx-root set holds exactly one ES384 key again, remove the TRAILRYX_KEYRYX_KID line from .env and re-run the installer. A set with two ES384 keys, a rotation under way, stops the install with its reason, on purpose.

./install.sh                    # the record plane is on
WITH_RECORD=0 ./install.sh      # off: record-seal is stopped and removed

It reads every *.ndjson on the shared event bus, appends what is new to a hash-chained store of sealed segments, packs the whole ledger and verifies the pack before it sleeps. Daily by default, RECORD_SEAL_INTERVAL in seconds to change that.

One value you have to set, and nothing here can guess it. Unlike the local sandbox, this deployment governs whatever fleet you point at it, so it does not know the domain your agents mint their ids under:

RECORD_TRUST_DOMAIN=your-domain.example    # in .env

Leave it and the seal refuses rather than pretending. --trust-domain takes one value and every id outside it is refused, so a wrong domain would seal nothing and report a clean run. It tells you instead, naming how many ids it saw and which prefix it was looking for. A partial match is fine and does not refuse: a box governing more than one domain is a normal thing to be.

The store lives on its own volume, not on the bus. That is deliberate and it is gated: a record kept where its own inputs live is evidence you can delete while clearing space on the thing it is evidence about.

Typed answers: was the task actually met

Off unless you ask for it, like the egress plane above.

WITH_TYPED=1 ./install.sh

pulls the typed-answer plane and tokenfuse's MCP broker in front of it, and brings both up: this is the one opt-in profile this launcher starts on its own rather than leaving for a second manual command. Without the flag, bring either or both up by hand:

docker compose --profile typed up -d typryx
docker compose --profile typed up -d typryx tokenfuse-mcp-broker

typryx answers a typed question (a choice, a score, a yes or no) from one of three templates baked into its image, with a probability for every option, and scores those probabilities against truths recorded later. install.sh has already put a credential in .env, so turning it on is the flag above and nothing else; without the credential it refuses to start, the same stance scopyx takes.

WITH_TYPED=1 on its own gives the stub backend: free, deterministic, no outbound call, exactly as before TYPED_MODE existed. The image also carries openai-logprobs, which asks any OpenAI-compatible model server for its token probabilities, and jev, a hosted service. Choosing one of those is a decision about where your data goes, so it has its own section below: Typed answers: choose where your data goes.

@decided 2026-09-26: the journal joins the shared events volume now that typryx's four event types (typed_answer, typed_unanswered, typed_refused, calibration_drift) are registered in agent-passport's SPEC 6.2. heraldyx reads the whole event directory, so it can alert on them; Under trailryx 1.0 record-seal refused these four as unknown_schema. Since trailryx 1.4.0 reads the agent-event v1.0 schema, whether the record plane (WITH_RECORD=1) seals them is not measured for this release. The ledger (typryx's own answer/outcome store, not an agent-event stream) stays on its own volume.

Reaching it through tokenfuse's MCP broker

tokenfuse-mcp-broker runs the same pinned tokenfuse image as the gateway, one subcommand, mcp-broker, unchanged: typryx joins it entirely by configuration, never by a code change in either repository. It publishes on ${GATEWAY_BIND:-127.0.0.1}:4200, the identical expression the gateway's own port uses, so it is closed by default the same way and widens with the same one variable.

An agent reaches typryx at http://<this box>:4200/mcp, with the header X-Fuse-Mcp-Upstream: typryx naming which plane the broker forwards to, its own client key (TOKENFUSE_MCP_KEYS in .env) as x-fuse-key, and its agent id as x-fuse-agent-id. A tools/call carries the typed-plane credential the broker injects, not a key the caller ever sees:

{"_meta": {"typryx/key": "{{secret:typryx_key}}"}}

The broker does not run tokenfuse's defaults here. A raw secret in tool arguments is refused (-32002) rather than forwarded, and a tool listing the broker's scanner flags is refused rather than passed with a log line. It asks wardryx about every tools/call, so policy.yaml judges tool calls as it judges model calls: a call with no x-fuse-agent-id is refused (it cannot be judged), a tool your policy denies is refused (-32004), and with wardryx unreachable the call is refused (fail closed, like the gateway). A {{secret:NAME}} handle is not a raw secret and resolves as before. Pinning tool definitions (TOKENFUSE_MCP_LOCK) needs a lock file you approved and is not set. Measured 2026-10-17 on a scratch project from this compose file (tokenfuse v1.14.0, typryx v0.4.1, wardryx v1.5.0): typryx's tools listed under the blocking scan, an ask with an agent id answered, without one refused 400, a raw AWS example key id refused, a denied tool refused, and every call refused while wardryx was stopped.

The broker's tool-call check is closed, too. Before every tools/call the broker asks the gateway's /v1/fuse/check-tool-call whether the run may use the tool. A call the gateway cannot answer is refused, blocked: the taint gate ..., instead of being forwarded with nothing judging it, and so is a call that names no run: send x-fuse-run-id on every tools/call, as you do at the gateway. A caller with a static key is asked with its own key, and the gateway answers only a key it holds, so every static key the broker admits (stack-single, the installer's own check key; drills-broker, the fire drills'; any id you name in STATIC_KEY_IDS) is also a gateway key of the same id and secret, bound to the one agent it speaks as, and named on the gateway's static list. The installer writes all of that for the keys it mints, on every run, and a re-run changes nothing. ./install.sh status shows the mode and goes red, naming the id, when a key the broker admits is not a key the gateway holds. The setting is a literal in compose.yaml (TOKENFUSE_MCP_TAINT_FAILMODE: closed); there is no switch for it.

install.sh prints the URL and the header names at the end of a run with WITH_TYPED=1; it never prints a key's value.

Measured end to end (typryx v0.2.0, tokenfuse v1.1.1; this launcher pins typryx v0.6.1 now), live on Docker Desktop on 2026-09-26: an ask whose typryx key travelled only as {{secret:typryx_key}} through the broker was answered, typryx wrote its typed_answer to the shared bus under the key's agent with the caller's run_id, the broker wrote its own tool_call, a wrong key was refused 401, and neither key appeared in either container's log. The same call against typryx v0.1.0 is refused 401: reading the key from _meta is typryx#6, first released in v0.2.0. install.sh's own check an ask through the broker is answered repeats this on every install.

A risk signal on tool calls (opt-in, off by default)

@claude 2026-10-04, from the estate audit's launcher spec: wardryx 1.2.0 can hold a tool call for a person when a typed fact about it says so (a signal may hold a call and never deny it), and typryx 0.4.0 can supply the fact. With typed answers on, one more word turns it on:

WITH_TYPED=1 TYPED_RISK_SIGNAL=1 ./install.sh            # the stub backend: shows the wiring, classifies nothing
TYPED_MODE=own-model TYPED_MODEL_URL=http://host.docker.internal:11434/v1 \
  TYPED_MODEL_NAME=qwen2.5:7b TYPED_RISK_SIGNAL=1 ./install.sh

TYPED_RISK_SIGNAL=0 turns it off again; with typed answers off the flag is refused, naming what to set, before anything is installed. What it starts: typryx wardryx-proxy, in front of wardryx, for the MCP broker alone. The broker asks wardryx about every tools/call before it injects a secret; the proxy asks typryx action.risk_class about that call (from the tool, its arguments and its target, nothing else) and adds the answer to the request as a signal. The LLM gateway keeps asking wardryx directly: a model call has no pending tool call to classify, and typryx's latency does not belong in front of a path with a 250 ms deadline.

One rule is seeded, with the flag on. The installer writes typed-risk-hold-when-absent into /opt/agent-stack/policy.yaml, between two marker lines (CLAUDE.md invariant 57). It holds a tool call that arrives with no action.risk_class signal, and one the classifier marks destructive, external_send or financial at 0.8 or more. That is the rule stack-up seeds. A read_only or reversible_change answer holds nothing. With the flag off the installer removes that rule and nothing else. To hold other classes, or these classes at another threshold, add a rule of your own to /opt/agent-stack/policy.yaml (your own trust domain in target) and run docker compose restart wardryx:

- name: hold-reversible-changes
  target: "agent://<your trust domain>/*"
  hold_if_signal:
    name: action.risk_class
    values: [reversible_change]
    min_probability: 0.9
    when_absent: hold

A signal can add a hold and nothing else: wardryx refuses a rule that would deny on one, and no answer in time, an unanswered or a refusal sends the call on untouched. A held call returns an approval id and is released by the person who approves it in the console.

when_absent: hold (wardryx 1.4.0 or later) closes the gap a missing answer leaves. Without it, a tool call that arrives with no action.risk_class signal passes, and the broker sends a call over 12 KiB without its arguments, so padding a call past that cap was enough to get it through unread. With it, such a call is held for a person, and the reason says the signal was missing. The installer writes this rule itself when the flag is on, so the example above is for holding by value. The price is that every tool call the proxy does not answer (down, slow, or its budget spent) waits for a person. Leave WARDRYX_APPROVAL_SINGLE_USE unset: a padded call carries no arguments, so every padded call to one tool and target has the same digest, and under single-use one approval lets exactly one through.

What turning it on changes, so nobody is surprised:

  • The broker asks through the proxy. It is a policy enforcement point on every box (above), asking wardryx directly; with the signal on it asks through the proxy instead, so with the proxy unreachable the call is refused (fail closed, like the gateway).
  • A paid backend is asked once per tool call, whatever your policy reads. typryx caps its own calls per hour (1000 by default); a spent cap just stops signals being added. With jev that is metered at TypeSafe.
  • Each ask waits at most 3 seconds (TYPED_RISK_ASK_TIMEOUT_MS in .env, 1 to 5000). typryx's own default of 150 ms is shorter than a hosted model answers (about 230 ms measured for Jev) and far shorter than a model on a CPU (about 2100 ms), so at that default a real backend would almost never be heard. A late answer is dropped, so a slow model means no signal, not a slow call.
  • The proxy is open on purpose, and a network is what closes it. The broker cannot send it a credential, so it runs without one, on a Docker network (risk-signal) that holds only the proxy, the broker and wardryx, with no published port. It must never be put on any other network except edge for a provider (jev or own-model): every container on a shared network could then spend your ask budget. scripts/typed-risk-signal.sh holds that, and install.sh checks it from both sides (reachable from its own network, not from the planes' network, not on the host).
  • The stub backend's answer is a fixed pick, not a classification. It proves the wiring end to end, and holds a call only if you write a rule for the value it picks.

Measured, live, on Docker Desktop 2026-10-04 through this repository's own compose.yaml and the .env this installer writes, stub backend: a tool call through the broker carried an action.risk_class signal from typryx into wardryx and into the decision event on the bus; with a hold_if_signal rule for the value the stub picks, the same call was held with an approval id. Not measured: a real backend, the signal under load, or install.sh itself on Debian (CI runs it, with the stub, on every change).

Typed answers: choose where your data goes

@decided 2026-09-30: typed answers come from exactly one of three places, and you pick which. The installer never picks for you, and a question's data only ever goes where the mode you chose says.

TYPED_MODE Where the answer comes from What leaves this box What you must give it
jev TypeSafe's hosted Jev API The fields each question's template names, and the question's instructions, go to api.typesafe.ai. Nothing else in the state does. Metered by TypeSafe. TYPED_JEV_KEY_FILE: the path of a file holding your Jev key
own-model A model server you run, Ollama or vLLM Nothing leaves your own hardware. Questions go to the server you name and to no other address. TYPED_MODEL_URL (an OpenAI-compatible base URL ending in /v1) and TYPED_MODEL_NAME; optionally TYPED_MODEL_KEY_FILE
off Nobody Nothing. typryx is not installed and the stack is what it was without it. This is the default. Nothing

WITH_TYPED=1 with no TYPED_MODE keeps what it has always done: typryx on its stub backend, which makes no outbound call. That is the one path that does not ask you to choose, and it exists so nobody's existing install changes. The installer writes TYPED_MODE='stub' into .env when it runs this way, so a later run keeps the stub without WITH_TYPED=1 again.

# your own model, here an Ollama on this box (nothing leaves the machine)
TYPED_MODE=own-model TYPED_MODEL_URL=http://host.docker.internal:11434/v1 \
  TYPED_MODEL_NAME=qwen2.5:7b ./install.sh

# Jev, with the key in a file you keep yourself
TYPED_MODE=jev TYPED_JEV_KEY_FILE=/root/jev.key ./install.sh

# explicitly none
TYPED_MODE=off ./install.sh

Run on a terminal with none of these set, the installer asks the same question (jev / own-model / off, one line on what leaves the box for each) and records the answer, so the next run does not ask again. With no terminal it asks nothing: the environment is the only way to choose. An existing box keeps its mode on a re-run, the stub included: a plain ./install.sh with nothing set changes nothing. To change the mode, run the installer again with the new TYPED_MODE (and its variables), which replaces the old mode's settings rather than adding to them.

To turn the stub off, run TYPED_MODE=off ./install.sh. That is the only way: a later run without a mode keeps off as well.

A box installed before this change may show TYPED_MODE='off' in .env while its stub runs, because the earlier installer did not record the stub. Run WITH_TYPED=1 ./install.sh once on this release to record it. Until then, a plain re-run takes the typed plane away, as it did before.

It refuses before it touches anything. jev with no key file, a missing or empty one, or a key pasted where the path goes; own-model with no URL, a URL that does not end in /v1, or no model name: each stops the installer with a message naming what is missing, before a package is installed or a file is written. A refusal never echoes what you typed, so a key given in the wrong place is not printed.

A key is only ever a file. The installer copies your key file into ./typed (mode 0400, owned by the user typryx runs as), and compose mounts that directory read only at /run/typed. .env and docker compose config name the path inside the container and never carry the key: it is not an environment value, it is not printed, and it is not logged. To rotate a key, run the installer again with the new file.

own-model also sets typryx's per-question time limit to 30 seconds (TYPED_MODEL_TIMEOUT_MS to change it). typryx's own default is 2 seconds, and a 7B model on a CPU answers in about that long, so left at the default most answers would time out. On Linux the installer also makes host.docker.internal resolve inside the typryx container, so the URL above reaches a server on this same box.

A current OpenAI model behind TYPED_MODEL_URL takes three more lines in .env, because it refuses the request a local server takes:

TYPRYX_OPENAI_TOP_LOGPROBS=5
TYPRYX_OPENAI_MAX_COMPLETION_TOKENS=16
TYPRYX_OPENAI_REASONING_EFFORT=none

They are yours and survive a change of mode, so take them out when the URL moves back to a local server. Left empty, the request stays what it always was.

jev is left unpriced here: this launcher wires no prices anywhere else, so typryx's cost reporting for Jev stays at zero until you set TYPRYX_JEV_PRICE_PER_MTOK_INPUT in .env yourself (and add it to the typryx service's environment in compose.yaml; it is not passed through today). The installer's own end-of-run check skips the ask through the broker in jev mode, because that ask would go to TypeSafe, and spend, on every run.

What the choice costs in accuracy

@measured 2026-09-30, one frozen 434-question test (typryx-evalset), each mode asked the same questions:

Accuracy Calibration error (ECE) Median answer time
jev 87.1% 0.042 229 ms
own-model, qwen2.5:7b through openai-logprobs, on an 8-vCPU CPU machine 70.0% 0.273 2130 ms

For scale, a constant default answer with no typryx at all scored 25.1% on the same test. off is today's behaviour: no typryx, nothing asked, nothing measured. The own-model row is one small model on a CPU, an example and not a ceiling: a larger model, a GPU, or a model fitted to your own questions moves it, and nothing here measured those.

Your own model, on your own data

@decided 2026-09-30: this stack does not fine-tune or ship models for you. A customer can fine-tune and calibrate a model of their own on their own data, and typryx gives them what they need for it: every answer, and the truth recorded for it later, goes into typryx's ledger, and typryx calibration reports, per template and per model, how far its stated confidence is from how often it was right. See typryx's README. Jev's answers are not training data: TypeSafe's terms forbid using Jev output to train another model, so what you fine-tune on is the truths your own people post, never what Jev said.

The opt-in training log. @decided 2026-09-30: typryx can keep a local training log, off by default. typryx v0.3.0 is the first release that has it and this launcher pins typryx v0.6.1, so it is there. Switch it on with TYPED_TRAINING=1 next to any typed mode (WITH_TYPED=1, TYPED_MODE=jev or TYPED_MODE=own-model):

TYPED_MODE=own-model TYPED_MODEL_URL=http://host.docker.internal:11434/v1 \
  TYPED_MODEL_NAME=qwen2.5:7b TYPED_TRAINING=1 ./install.sh

The installer writes TYPRYX_TRAINING_DIR=/var/lib/typryx/training into .env: a private directory (mode 0700, its file 0600) inside the typryxdata volume, the same volume as typryx's ledger. The ledger is on in this launcher already, and it is where the human truths live, which the export needs. Without TYPED_TRAINING=1 nothing names that variable, nothing is written, and .env is exactly what it was. A re-run with nothing set keeps the log on, a change of mode keeps it, and TYPED_TRAINING=0 turns it off (the log already on disk stays until you delete it). It needs typryx installed: TYPED_TRAINING=1 with typed answers off is refused before anything is touched.

Each answered, templated question appends one line holding the state that actually went to the model (the fields the template names, never the rest) and the answer's identity. It holds neither the model's answer nor its probabilities. Post the truth a person decided for an answer to /v1/outcome, then export the pairs:

(umask 077; docker compose --profile typed exec -T typryx typryx export --training > train.jsonl)

Every row is {"template","template_version","type","state","label"}, and label is the human truth as posted. The counts of what was skipped (no truth yet, a changed template, a duplicate) go to stderr. The data stays on this box: the log lives in a Docker volume and the export is a file you write on the host. The export carries human truths only, never a model's answer, because TypeSafe's terms forbid using Jev output to train another model; what you fine-tune on is what your own people judged. Fine-tuning, serving the tuned model behind TYPED_MODEL_URL, and comparing it with typryx calibration are yours and happen outside this stack. The log has no rotation or retention: it grows until you remove it, and it holds your questions, so treat the volume as data you own.

The appliance shape: a box at your premises, the agents in two clouds

A box at the customer's premises, closed by carrier-grade NAT and reachable only over its own tailnet, runs the policy, identity, notifier, console and record planes plus a second gateway door for the FinOps crew; two clouds each dial its gateway from a small cluster, the box reaches the model provider on its own, and the operator reaches the console over ssh or the WireGuard door

On 2026-09-17 this launcher was proven in the shape an operator actually wants: a box at a premises, closed to the internet, with agents dialling in from elsewhere. The evidence is public in estate-gates/PROVEN.md, the nine rows dated that day.

What was installed. v1.1.3 from this repository, on a Debian 13 (trixie) mini PC that already had Docker CE 29.8.1 and Compose v5.5.1, with GATEWAY_BIND set to the box's tailnet address and WITH_RECORD=1. Phase A ran in 61 s: 22 checks ok and check 1 FAIL by construction, because it probed loopback whatever GATEWAY_BIND said (fixed by #59). A second run added a compose override for the appliance shape itself (the crew's own door, client keys and an identity map on the customer door, the notifier to a file, a record seal every 120 s): 36 s, the same 22 ok.

Before phase A, apt-get install -s docker-buildx on that box answered Remv docker-ce: the distro's own package would have removed Docker CE. The run held the Docker packages and pinned Debian's docker-buildx out instead. Fixed by #59: every apt-get install here now carries --no-remove, and buildx is asked for only when missing, as docker-buildx-plugin beside docker-ce.

Two customer clusters, a single-node k3s on a GCP e2-medium and one on an AWS t3.medium, joined the tailnet with an ephemeral key each and reached the gateway from a pod: direct WireGuard paths of 23 ms (AWS) and 29 ms (GCP). Both agents ran 17 calls at 200 and were then refused with 402 budget_exceeded from call 18 onward, interleaved on one bus; the box told the two clouds apart by key and by id.

The reboot. With the gateway bound to a tailnet address, the first reboot brought it back as Exited (128): Docker programmed the bind before tailscaled held the address, the failed start was never retried, and a later up -d started the container with no port mapping. Fixed on the box with net.ipv4.ip_nonlocal_bind = 1 and a docker.service drop-in ordered after tailscaled, and proven by a second reboot, the gateway back on its own in 40 s. Both are what install.sh section 4b now writes (#59).

The control plane's own events file. On v1.1.3 the control plane could not create tokenfuse-cloud.ndjson (it runs as uid 10001, gid 999, against a root:10001 2775 directory) and said nothing about it, so no control-plane incident, budget_exhausted among them, reached the notifier or the record. Now pre-created by init-volumes and named by TOKENFUSE_EVENTS_PATH (#59 here; the image side is tokenfuse#303).

Teardown. Both cloud accounts were verified empty by direct query afterwards: about 63 VM-minutes per cloud, and about USD 0.18 for the whole day. The box's own stack is still what this README installs.

What this run did not prove. A reboot on the default loopback bind (never measured); managed clusters; arm64 for this shape; mail delivery beyond the file transport; the passkey ceremony; the WireGuard door reached from outside the LAN; down -v; a full disk; a lost .env.

What the install needs from the network

The installer runs as root on a Debian or Ubuntu box you own (v1.15.0 was installed on a fresh Ubuntu 26.04.1 VM on 2026-11-27: 5 min 12 s with the cosign check, 70 checks ok, 0 failed; the output is in TAIPANBOX/stack-k8s under cloud/aws/evidence/aws-run-2026-11-27/). Outbound HTTPS is needed to these hosts. A step that cannot reach one stops there, and the message names the host and what cosign or curl reported.

Host What it is for When
github.com, release-assets.githubusercontent.com the pinned cosign v3.1.3 binary. github.com redirects the file to the release-assets host, so both are needed each install and re-run, until the binary in /opt/agent-stack/bin/cosign matches its pinned SHA-256
tuf-repo-cdn.sigstore.dev the Sigstore trust root that cosign checks each signature against before each signature check
ghcr.io (and the blob host it redirects to) the image manifests, the signatures, and the pulls as before this release
github.com, release-assets.githubusercontent.com (a piped install) the latest release's tarball and its signature bundle; with INSTALL_FROM_MAIN=1, main's tarball from codeload.github.com once per piped install. A clone fetches none of it
api.ipify.org the box's public address no longer raw.githubusercontent.com: a piped install reads nothing from main

Checked on 2026-10-19 with cosign v3.1.3: a signature check does not contact the Rekor transparency log or Fulcio, because the inclusion proof travels with the signature. Blocking either host did not stop the check. Blocking the trust root host or the registry did.

BUILD_FROM_SOURCE=1 builds the planes locally. It pulls no published image and checks no signature, so it does not fetch cosign either.

Compose profiles: what a re-run does to each one

Every profile in compose.yaml is one of two kinds, and the installer treats each by its own rule. The two lists are one table in install.sh (PROFILES_INSTALLED and PROFILES_OPERATOR).

  • Installer-managed (record, typed, typed-risk-signal, delegation, openai-door, slo-signal): this installer starts them from its own flags. A run that turns one off stops and removes its containers, by name.
  • Operator-started (egress, egress-browser, finops, routines, manual): you start them with docker compose --profile P up -d, and the installer never removes them. A running container of one is started again at this run's pinned image, so an upgrade leaves no old image behind. A stopped one stays stopped. The closing report lists each one it kept, with its image.

A profile in compose.yaml that is in neither list, or in both, is refused by the gate scripts/profiles-off-are-removed.sh, so a new profile cannot fall through either rule.

Images: pinned by digest, and ours checked before they start

Every image the stack runs is pinned to the digest of the bytes it names. The tag stays beside it for reading. A tag can be moved by whoever controls the registry; a digest cannot, so a box running wardryx:v2.7.0@sha256:91dc... runs that build and nothing else.

The images this project publishes (ghcr.io/taipanbox/...) are also signed, keyless, by the release workflow that built them, and carry a provenance attestation. Before the installer pulls one of them it checks that signature against the release workflows of the TAIPANBOX repositories, and the two stack-k8s image workflows, on a version tag. The installer fetches a pinned cosign release, checks its SHA-256 before anything can run it, and refuses to start the stack if one of our images does not verify. The refusal names the image and stops before anything is pulled further or started.

What this does not do:

  • Third-party images (busybox, postgres) are pinned by digest but are not signature-checked. Nothing here verifies who published them.
  • BUILD_FROM_SOURCE=1 builds the planes on your own box. Nothing built that way is signed or checked. It is your choice to make, and the installer says so.
  • A digest says which bytes a box runs. It does not say those bytes are safe. The signature says which release workflow built them.
  • A *_IMAGE line in .env replaces a pin for that service, and a pin in compose.yaml is then not what the box runs. ./install.sh status shows every such line as an override, beside what compose.yaml pins (see "The drift check").

To move a pin, change the tag and its digest together in compose.yaml and in components.json, and in the one place install.sh names the same image. scripts/images-are-digest-pinned.sh refuses a pair that disagrees.

Every container starts with the least it needs

Every service in compose.yaml runs with the same baseline, unless a named line says why not:

  • read_only: true: nothing writes to the image. A service writes to its volumes, and to a sized tmpfs where it needs a temp directory.
  • cap_drop: [ALL]: no Linux capability, and any that is added back is named.
  • no-new-privileges:true: nothing it runs can gain one through setuid or a file capability.
  • pids_limit: a number per service, well above what it was measured to use, there to stop a fork bomb and not to hold a service under a ceiling.
  • mem_limit: a memory ceiling per service, written in its own block. The planes idle at a few MiB; the console, the FOCUS export and the gateways, which run a query engine over a whole trace or hold every request in flight, get 1 to 2 GiB. A ceiling stops the one container that runs away and compose starts it again, instead of the kernel stopping whatever it picks on a box out of memory. Raise a number in compose.yaml if a box needs more.
  • ulimits: core: 0: no core dump with a key in it.
  • a user that is not root.

There is no default memory limit. One number for every service is an out-of-memory kill waiting on a request path, so only the browser, whose size comes from the pages it is handed, has one (2 GiB, with 512 MiB of /dev/shm and init: true, the values stack-k8s measured). Its init: true is not optional: a zombie counts against pids_limit, and its PID 1 reaps nothing.

read_only covers the image and not what an image declares as a VOLUME: Docker gives each of those an anonymous volume, which stays writable and survives a recreate. The tokenfuse images have one at /data, and wardryx, idryx, heraldyx and the error-budget routine one at /var/lib/stack.

Reading a named exception

What a service does not take is a line in hardening-exceptions.json, and scripts/containers-carry-the-baseline.sh fails on any service that has neither the baseline nor that line:

{"service": "wg", "key": "cap_add", "value": ["NET_ADMIN", "CHOWN", "FSETID"],
 "why": "the interface; chgrp and socat's group=; chmod 2770 keeps setgid only with FSETID, and loses it with no error",
 "until": "permanent"}
  • key is what it does not take: read_only, cap_drop, no_new_privileges, pids, core, user, cap_add, seccomp, or baseline for all of the first five.
  • value is exactly what it has instead. A cap_add in compose.yaml wider than the line, or narrower, fails the gate.
  • until is permanent, or the name of what closes it.
  • An exception that excuses nothing fails too, so whoever fixes a service takes its line out.

init-volumes, keyryx and vouchryx took the baseline last, in 1.7.1. Changing one of them on a Compose below 2.35 starts vouchryx again, and before keyryx v0.1.4 a start at custody's bound of four live keys got no key (see "A restart spends a key, and the bound holds"). 1.7.1 pins v0.1.4, which retires vouchryx's oldest key at the bound instead, and the gate fails if keyryx is ever pinned below it. init-volumes stays root, because re-owning every volume is its whole job, and takes back three capabilities, each measured by taking it out: CHOWN, DAC_OVERRIDE to enter keyryx's 0700 directory, and FOWNER to chmod what other uids own. Each of its chowns is a command of its own, so a refused one stops it instead of ending volumes ready: sh -e does not stop on a command before &&.

The file is not the whole story, so the drift check in status holds each running container to what compose.yaml gives it, leaving compose.override.yaml out of that reading: an override that turns read_only off shows as a FAIL line.

An upgrade to the release that brings this recreates each service that took the baseline, once, and a second run recreates nothing. On a Compose below 2.35 that takes what sits below each of them too. Going to 1.7.0 none of that reached keyryx or vouchryx; going to 1.7.1 init-volumes, keyryx, keyryx-witness and vouchryx are recreated once, and vouchryx asks custody for a new key. Your own compose.override.yaml can hold a mount or a port this baseline does not know about: a service that writes outside its volumes now gets Read-only file system.

AppArmor decides whether scopyx-browser can start Chrome's sandbox, and Docker's own profile, docker-default, has no userns rule: on Debian 13 the kernel refuses the user namespace Chrome starts in (credentials.cc, Permission denied, userns_create denied in the kernel log), and until 1.7.1 the installer fell back to apparmor=unconfined there, which drops every denial the profile has. So the stack ships a profile of its own, apparmor/scopyx-browser: docker-default, rule by rule, plus userns, and nothing else. It still denies writes under /proc/sys, /proc/sysrq-trigger, mount, and the parts of /sys the kernel keeps for itself, and a gate holds the file to exactly that.

install.sh measures the line on every run. Where AppArmor is on and apparmor_parser is there, it loads the profile (apparmor_parser -r) and keeps the file in /etc/apparmor.d, so the host loads it again at boot, before Docker restarts the container. Then a throwaway with the browser's own user, filter and capabilities takes the steps Chrome takes (a new user namespace, a map, a chroot) under scopyx-browser, then docker-default, then unconfined, and the first that works becomes SCOPYX_BROWSER_APPARMOR. The run says which. A host with no AppArmor, no parser, or a parser that does not know the userns rule loads nothing and asks the last two, as before. A second run loads nothing again, and ./install.sh status says which profile the running browser is under and goes red when it is unconfined on a host that could have given it ours. There is nothing for you to do. A profile of your own goes in compose.override.yaml, and the installer leaves that file alone.

What the installer will not do quietly

It verifies itself and tells you what it found. Three of its checks have to FAIL to pass: the money plane, the policy plane and the store must not be reachable from the host. Two more ask the gateway itself to refuse a call with no client key and one with a key it does not hold. Three more test the CREDENTIAL rather than the port, because a plane with a malformed key spec starts cleanly, stays reachable and authenticates nobody: the admin key must get 200, an unknown key 401, and the gateway's own key 403 when it tries to read policy. And one reads back the rule Docker actually wrote for port 4100, rather than trusting the variable that was supposed to produce it. A green install with an open plane is the outcome worth designing against.

A gateway published on one address that is not loopback (a tailnet address, say) needs two things from the host that the installer writes rather than leaves for the first reboot to reveal: net.ipv4.ip_nonlocal_bind = 1 in /etc/sysctl.d/90-agent-stack-bind.conf, so Docker can bind the address before the host holds it, and, where tailscaled.service exists, a docker.service drop-in that starts Docker after tailscaled. Without them the gateway came back from a reboot as Exited (128) and was never retried, and a later up said Started of a container with no port mapping, which is why one check now reads the mapping from docker port rather than believing Started. If either file cannot be written the installer refuses and says so; a bind changed by hand in .env afterwards gets them on the next run.

If the console source is not present it says so and installs the governed stack without it, which is a real deployment: the planes enforce with or without a UI in front of them.

Who can write what on the bus. The events volume is shared by every plane that writes it, and each plane writes one file of its own: every stream is owned by its one writer's uid, mode 0640, and the bus directory is root's (0751), so no plane can append to, rename, link or replace another plane's file or create a new one (CLAUDE.md invariant 41, held in compose.yaml by scripts/no-plane-writes-another-planes-stream.sh). Every install also asks the running box: a throwaway container per producer, as that producer's uid and groups, must append to its own stream and be refused on everyone else's, and on creating a file (invariant 83). Since heraldyx 0.3.0 and idryx 1.1.0 a line is also read as the source its FILE may carry (wardryx.ndjson carries wardryx, tokenfuse-cloud.ndjson and tokenfuse-mcp.ndjson carry tokenfuse), so a line claiming another plane inside the wrong file is refused and said once (scripts/bus-names-match-their-source.sh). What the layout cannot stop is a plane writing false lines into its own file, under its own name: the record takes a line as that plane's word.

The other thing this used to say here, delegation being verified nowhere on this box, is the gap the next section closes.

Delegation: a proved chain instead of a claimed one

Off unless you ask for it, like the egress plane above.

WITH_DELEGATION=1 ./install.sh

Without this, an agent's on_behalf_of is a claim the caller wrote: nothing on this box checks it, and a policy that asks for a proven chain (deny_if_chain_unproven) refuses only callers honest enough to say they did not prove it. vouchryx, the delegation plane, exchanges a subject token, an actor token and a DPoP proof for a short-lived JWT the gateway can verify, and answers GET /v1/revocations so a delegation can be ended before it expires, not only recorded.

What turning this on buys, and what it does not. The gateway starts verifying the cnf.jkt-bound chain a token actually proves, instead of trusting whatever x-fuse-on-behalf-of a caller sent. It does not mint tokens for you, and it does not pick your identity provider: vouchryx exchanges a subject and actor token it was handed, it does not issue the first one.

Enabling it needs a real trusted issuer. install.sh refuses before anything starts, naming what is missing, unless one of these is true:

  • VOUCHRYX_TRUSTED_ISSUERS names the upstream identity provider your agents actually get their subject and actor tokens from, one iss|aud|jwks-path per line, the jwks-path a file readable inside ./delegation once the run finishes. There is no safe value to invent here, so nothing does.

    An issuer line may end in |unbound. vouchryx refuses a subject token that carries no cnf.jkt (no key binding) unless its issuer's line says so. Add the suffix only for an identity provider whose tokens are unbound on purpose. The demo issuer's line ends in it, because the demo IdP's tokens are not bound to a key. A .env that an earlier release wrote with the demo line is migrated to the suffixed form on rerun, and no other line is touched.

  • or WITH_DELEGATION_DEMO_ISSUER=1, a clearly-labelled, self-signed issuer this installer mints for you to try the wiring with. This is never a production posture: nothing verifies that a self-signed demo issuer is who it says it is, because nothing can, by construction.

The signing key and the revocation key are generated once, into ./delegation (the directory 0700 and the keys 0600, owned by the uid vouchryx runs as, so no other container can enter it; the gateway reads only the public JWKS, from ./delegation-public), and reused on every later run, exactly like every other credential .env holds. Neither is ever printed. Revocations persist on their own volume, not the shared events bus, so clearing the bus never quietly un-revokes a delegation, and a plain docker compose down never loses one either.

vouchryx is never published to the host, the same posture as the money and policy planes: the gateway reaches it, and polls GET /v1/revocations, over the compose network only. POST /v1/revoke needs VOUCHRYX_REVOKE_KEYS from .env as a bearer key and is reached the same way, from a container on this compose network, not the host. The console's own revoke button uses a key of its own: install.sh mints CONSOLE_REVOKE_KEY into .env, compose adds it to vouchryx's VOUCHRYX_REVOKE_KEYS beside the operator's key, and the console reads it from /opt/agent-stack/console-revoke/revoke.key (its own uid, 0400, mounted read only into the console alone) with GENARYX_VOUCHRYX_URL=http://vouchryx:4310. Revoking from the console is an admin action behind a passkey. To replace the console's key without touching yours, delete the CONSOLE_REVOKE_KEY line from .env and run the installer again: it mints a new one, vouchryx is recreated with it and the console restarted, and the old key stops working. Each install checks that vouchryx takes the console's key (an empty request is refused for naming nobody, so nothing is revoked) and refuses a key it does not hold.

What this does not cover. It verifies a chain a caller presents; it does not decide what a proven chain is allowed to do; that is wardryx's policy, unchanged by this. It does not run the hand-off (delegate-of-a-delegate) path or Cross App Access; both exist in vouchryx and neither is wired here.

A restart spends a key, and the bound holds. vouchryx keeps its working key in memory, so each start asks custody to certify a new one. Custody keeps at most four certified keys of that name live, each for up to 72 hours and ten minutes. From keyryx v0.1.4, pinned since 1.7.1, a new key at that bound retires vouchryx's oldest once the next key has been signing for the name's overlap, ten minutes here, so no token the old key signed is still alive. A retired key leaves the key set at once, reads retired in custody's GET /v1/keys, and is not revoked. Starts closer together than that are refused at first, as before: vouchryx has no key until the pause has passed and its next request, every five minutes, so the installer's vouchryx holds a certified key can fail on a burst of restarts, and a token request gets no_certified_signing_key meanwhile. Callers on a static key are not touched. On 1.7.0 and earlier the fifth start inside 72 hours and ten minutes got no key until the oldest aged out. What restarts it besides its own recreate depends on your Compose: only init-volumes and keyryx sit above vouchryx, and on a Compose below 2.35 a change to either one restarts vouchryx too, because Compose takes everything below a recreated service with it in that up. On 2.35 and later it does not, because nothing in compose.yaml asks for restart: true. docker compose version tells you which box you have.

The FinOps console (CostCrew), optional

Off, and nothing here turns it on for you. install.sh does not know it exists: no flag, no profile, no line. A box that never enables it runs exactly what it ran without it, and scripts/finops-is-opt-in.sh holds that. To turn it on, once, on a box that is already installed:

cd /opt/agent-stack
docker compose --profile finops up -d costcrew

That pulls one image, ghcr.io/taipanbox/costcrew:v0.11.0, and starts it beside a small one-shot that prepares its volume. It is the FinOps console: cloud and AI spend, a crew of agents that triages it, and a person who reviews what the crew wrote.

Before it starts, it wants a name. The console writes an Agent Passport for each of its agents, and a passport needs an owner, so it refuses to start without one and says so in its log. The owner is COSTCREW_OWNER in .env, and if that is not set, the address your alerts go to (ALERT_TO). Set one before the command above, or the container will restart and complain. Its agents also mint their ids under RECORD_TRUST_DOMAIN, the same value the record plane takes (see "The record" above), so that the seal accepts what the console reports instead of counting it foreign.

Reaching it. The console is on 127.0.0.1:8321 of the box and nowhere else. It is not behind the tunnel and not behind Caddy, which serves one site, the main console. Reach it the way you reach that one before a tunnel exists:

ssh -L 8321:127.0.0.1:8321 root@<your box>
open http://localhost:8321

Give yourself a password first, from the box, before you open it:

docker compose --profile finops exec costcrew /usr/local/bin/costcrew \
  -data /var/lib/costcrew -set-password ops:<a real password>

The password is visible in your shell history and in the process list for as long as that command runs. The first start also fills the console with a generated estate so there is something to look at; it is not a bill of yours, and the first export that holds a real call replaces it (below). It answers /healthz with 200 and no redirect; from the compose network that is docker run --rm --network agent-stack_core busybox:1.36 wget -q -O - http://costcrew:8321/healthz.

What it does here. Its events go to the shared bus as costcrew.ndjson, so the notifier can mail about them and the chain verifier checks them. It runs as a user of its own that can write that one file on the bus and nothing else there, with a read-only root filesystem, a 128 MB temporary directory in memory at /tmp (SQLite needs one to compact its database), and no capabilities.

The money it reads. The console is given the gateway's spend, not only the generated estate: focus-export writes each door's calls as a FOCUS CSV, one folder per door in the focus volume (focus/gateway, focus/gateway-openai), every 15 minutes (FOCUS_EXPORT_INTERVAL in .env, in seconds), and the console mounts that volume read only and reads both folders at start and every 15 minutes after (-focus-dir, -focus-dir-openai). A door that has served nothing yet stays empty, which the console reads as nothing to import. The first read that brings real spend replaces the generated estate (-focus-replace-generated): the demo board, its tasks, sprints, anomalies and forecasts go with it, so a box that has served agents shows their spend by agent on the AI pages, and one that has not still shows the demo data. The console runs as a user outside the bus group, so it reads the folders through their "other" bits (0755, files 0644); it can change nothing in them.

What it does not do. The console cannot spend: no gateway is wired to it, and it makes no model call of its own. The crew's model calls belong to the runner, described next. The notifier does not read its passports, so an alert about one of its agents names the agent and not the person who answers for it.

The crew's runner, and its ceiling (CLAUDE.md invariant 60). The runner is costcrew-run, a one-shot in profile crew. Nothing starts it: not the install, not up, and not the console. A person starts it, once per run:

cd /opt/agent-stack
docker compose --profile finops --profile crew run --rm costcrew-run

Its runs are recorded in the costcrew store the console reads, not on the bus: the bus stream costcrew.ndjson has one writer, the console, and a second would fork its chain. It runs only the work the console's cadence has marked due. With the cadence switch off (the console's /cadence page) it exits 2 and touches nothing, so turn cadence on there first. To run the crew on a timer, put that command in this box's own cron, after you have turned cadence on. Its model calls go through tokenfuse-gateway with the crew's own client key, GATEWAY_COSTCREW_KEY in .env, which install.sh mints and binds to agent://<your trust domain>/costcrew/*. The runner holds no provider key and has no route out except through the gateway.

The ceiling. COSTCREW_CEILING in .env is the most one run may spend, in US dollars: a decimal with at most two places, such as 25.00. It is validated before anything is installed, and an unset value is 0, which spends nothing. The runner also refuses above the console's own cadence ceiling, and the smaller of the two applies. To allow spending: set COSTCREW_CEILING, run ./install.sh again so the client key is minted and the gateway reads it, set the cadence ceiling at /cadence, then turn cadence on there. Each step is yours. A box given its own client keys file carries the crew's key there as a <secret>:costcrew line, and the installer puts that id on the gateway's static list.

Moving to a newer console. The pin is ghcr.io/taipanbox/costcrew:v0.11.0. On a box that already ran an earlier pin, the same up -d costcrew picks it up. From v0.8.0 every analyst's id is agent://<host>/costcrew/<name>. This launcher binds no analyst id to a gateway key, an identity map or a policy, so nothing here needs rebinding. From v0.9.0 the stack events file is mode 0640, readable by its group, which the launcher's own layout already gives it. From v0.5.0, the release adds two nullable columns to drivers at start (rows written before it read NULL, and no data is rewritten) and a new decision class, driver.announced, which only the owner's answer applies. From v0.4.0, little changes for this launcher: the console adds a few columns to its database at start and rewrites no data, no console flag was added or removed, and the crew runner (not started here) gained -local-parallel. If you import TokenFuse exports into it, import the gateway folder once after the upgrade: a store that already holds two exports of the same trace counts those calls twice until its next import, which keeps each call once. Several pages now say what is so (what a model is sent, whether a refused plan request was paid for, which business unit a customer unit is charged under); the console's release notes list them.

Coming from v0.3.0, four more things change, from v0.4.0. Everybody signs in again once, because sessions are now stored hashed and the old ones are ended at the first start. The console's database (with its -wal and -shm) and its journal become 0600; the volume's directory keeps the 0750 the one-shot gave it, and costcrew.ndjson on the bus stays 0644 so the chain verifier can still read it. A request body over 1 MiB is refused with 413. The image now carries five binaries (costcrew-usage is new); none of the new flags is required and none is passed here. If you later wire it to a gateway, give every analyst an owner first: behind a gateway, an analyst with no owner is refused before the call. The first start after the upgrade also compacts the database so the old session tokens leave the file, which needs that temporary directory. With a compose.yaml older than the one that added it, the console instead logs one warning that the database could not be vacuumed: the old session rows are gone from the table, but their bytes may remain in the file's free space.

Turn it off with docker compose --profile finops stop costcrew. Its data stays in the costcrewdata volume until you remove that volume yourself.

Closing a retained reservation (opt-in, off by default)

When a call reaches the model provider and the answer never comes back, the gateway cannot know whether the provider billed it. It keeps that money reserved, on purpose, until a person closes it with evidence: the usage the provider reported, or its confirmation that nothing was billed. The console asks for a passkey, then mints a short-lived token the gateway checks. Both sides use one secret.

WITH_CLOSURE=1 ./install.sh

This writes the secret once into .env as CLOSURE_SECRET, and the same bytes into ./closure/secret, readable only by the console. Nothing prints it, and a re-run keeps it. To turn closing off again, remove CLOSURE_SECRET and CLOSURE_SECRET_FILE from .env and run docker compose up -d.

It needs tokenfuse v1.9.0 or later and console v1.1.34 or later. The images pinned here are tokenfuse v1.27.1 and the console from genaryx v0.1.0; an older image ignores the setting.

Approvals and the console's approver key

An approval is decided by a person in the console, after a passkey assertion. From wardryx 2.4.0 the decision can also carry a statement, signed by the console with its approver key, and wardryx checks it against the console's public key set. The installer mints that key once: approver/approver.pem, PKCS#8 P-256, mode 0600, owned by the console's uid, mounted into the console alone. Its directory is root's with the console's group, mode 0710, whatever the umask of the shell that ran the installer: the console passes through it to the key, and no other account can enter or list it. The key is kept across re-runs and never printed. Losing it means minting a new one and publishing a new key set.

The installer writes the key set from the pinned console image (genaryx-web approver-jwks) and turns the check on. An approval then needs a statement, so a console without an enrolled passkey cannot sign one, and its approvals are refused with approver_statement_required. A pinned image that cannot print the key set stops the install: off would decide every hold on a bearer key, with no person named. Only a CONSOLE_IMAGE you named yourself can turn the check off, and the run says so. WARDRYX_ALLOW_KEY_APPROVALS is never set by this installer. Set by hand, it would let a bare key approve.

What the person deciding is shown

From wardryx 2.7.0 the person deciding a held tool call sees its arguments, built by wardryx from the bytes the approval is bound to, with secrets and personal data hidden by fixed rules. wardryx seals that preview to the console's preview key, keeps only the ciphertext until the hold is decided or 24 hours pass, and records whether the person opened it. A person may deny without opening it; a grant without it is recorded as unseen.

The installer makes the preview key once with the pinned console image (genaryx-web preview-key, ML-KEM-768 with X25519), before the stack starts: preview/preview.key, mode 0400, owned by the console's uid, in a directory root's with the console's group, mode 0710, mounted into the console alone and never printed. Its public half is kept at preview-public/recipient and set as WARDRYX_PREVIEW_RECIPIENT. A re-run keeps both. If only one of the two is there, the installer stops rather than make a pair that cannot open what was sealed. A pinned image that cannot make the key stops the install; a CONSOLE_IMAGE you named that cannot turns the preview off, and the run says so. The key is not rotated by the installer: a preview sealed to an old key can no longer be opened, so rotating means removing both files while no hold is waiting.

The console

All of it is Apache-2.0 and public, the console included: Genaryx went open on 2026-07-27 and there is no longer a closed piece here. The installer clones genaryx like anything else, and needs no token.

The console runs genaryx's own release image, ghcr.io/taipanbox/genaryx:v0.1.0 (pinned by digest), signed by genaryx's release workflow and checked before it is pulled, like every image here. BUILD_FROM_SOURCE=1 builds it from genaryx's own Dockerfile instead, which pulls the engine images it copies (wardryx, tokenfuse, trailryx-node) by digest and checks no signature: that is the operator's choice of a local build. A CONSOLE_IMAGE in .env that names the older genaryx-console image is refused at the signature check from this release on, because that image was signed by a workflow this launcher no longer accepts.

CONSOLE_TOKEN and the src/genaryx-a360 drop-in still work and are still useful, but for a different reason now: they let you install a build of your own rather than reach GitHub at all.

Three tabs under Assure show what the planes on this box keep, read only, with no control (CLAUDE.md invariant 87):

  • Notifications: what heraldyx sent, to whom and whether a mail server took it, read from heraldyx's own journal (sent.ndjson), mounted read only.
  • Keys: what Keyryx custody holds, each key name with its active and next key, and its alarms, read from custody over the internal core network. Rotating or revoking is custody's own command line on the box (see "Rotating and revoking a Keyryx key"). The witness's head is not shown: the witness has no network here.
  • Record: what the record seal has sealed and whether the current root is signed, read from the seal's data directory, mounted read only. Verify packs the record and runs trailryx-verify on it. A box run with WITH_RECORD=0 has nothing here.

Felyx, the console's copilot, asks its model through this box's own gateway, under agent://<RECORD_TRUST_DOMAIN>/genaryx/felyx, so its questions are metered and policy-checked like any agent's calls. It authenticates with its own gateway key, GENARYX_COPILOT_FUSE_KEY, which the installer mints when you give no keys file (see "Client keys and the identity map"). Your provider key goes to the gateway, as a file, and never to the console (see "The provider key: the gateway holds it, never an agent"). With no keys file given and no gateway key for Felyx, Felyx says it is not configured and the rest of the console works as before.

The console proves a change before anything applies it. A candidate policy is replayed with wardryx replay over the decisions this box already took, against wardryx's policy archive, and a candidate budget is backtested with tokenfuse backtest over the calls the gateway recorded. The console is told where both are (WARDRYX_POLICY_ARCHIVE, TOKENFUSE_DATA_DIR): the archive is a directory of the event volume the console already mounts, and the gateway's traces are mounted read only. The console runs in the group wardryx writes its archive in, the archive directory is 0750 and every version in it 0640, and each start makes the versions an earlier wardryx wrote readable the same way, so the console can read the archive and cannot change it. A console image older than these proofs ignores both settings. The proofs run on the Anthropic gateway's traces; the OpenAI door's are not read.

Traps, already fixed here

The Kubernetes sibling of this repo, stack-k8s, keeps a GOTCHAS.md with every trap both deployments hit. These are the ones a first install would have walked straight into, closed here rather than left for you:

  • install.sh writes .env and then sources it, so every value in it is shell. From v1.1.9 to v1.1.12 one default carried an unquoted |, the shell ran the words after it as commands, and every install stopped at that line. The value is quoted now, and a .env one of those releases wrote is repaired before it is sourced, so a box that installed one can simply re-run.
  • Both planes take a bearer-key spec of the form key:org[:role], and an entry without the :org half parses to zero valid keys. The plane then starts cleanly, stays reachable, and authenticates nobody. Every health check passes while the money plane is deaf.
  • The client side of each plane takes the bare key, not the spec, and the gateway's key on the policy plane is a pep on purpose: /v1/decide and /v1/filter-tools need no more, and an enforcement point that can rewrite the policy it enforces is not one. wardryx 2.0.0 refuses a viewer on those routes. A box installed before this release has the gateway's entry rewritten from viewer to pep by the next run of install.sh, and nothing else in .env.
  • Kubernetes has fsGroup for volume ownership and Compose has nothing. A fresh named volume is root:root, so the policy plane cannot write its own event file and the gateway drops every trace behind a single WARN. A one-shot init service does what fsGroup would.
  • The identity plane loads the gateway's event log at startup and treats an absent file as fatal, which on a box that has served no traffic it always is.
  • The money plane binds loopback by default, which inside a container means unreachable; the distro's docker.io package ships without buildx; and the Go builder image is older than some of the repos it compiles.

Licence

Apache 2.0. See LICENSE.

About

The agent stack on one machine: the same wiring stack-k8s proved on a cluster, for a single box that governs agents running elsewhere.

it-rat.com/services/platform.html

Topics

agent-governanceai-agentsdeploymentdockerdocker-composellmself-hosted

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.