Skip to content

v0.22.0: credential broker, the three hand-offs, helper commands - #118

Merged
tech4242 merged 10 commits into
mainfrom
feat/v0.22.0
Nov 28, 2026
Merged

tech4242 merged 10 commits into
mainfrom
feat/v0.22.0

Conversation

@tech4242

@tech4242 tech4242 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

What this release is

aquaman is described as a credential broker: one daemon that reads the vault you already have and hands a key off in one of three ways, depending on what the agent host allows. This release is that description, a page on helper commands, a pass over every document, and fixes. Nothing changes for an existing install.

How it fits together

  • A new page, "How aquaman fits together", with one diagram: your vault, the daemon, and the three hand-offs. Forward and inject keeps the key in aquaman and is the only one where method and path rules apply. Resolve gives the key to one process. Hand to the host gives it to a sandbox host that injects it itself.
  • The same diagram is in the README, the proxy package's README and the packages doc.
  • The README, the site and the package descriptions say "credential broker". aquaman runs no vault service and needs no account.
  • The home page's host picker is grouped: coding assistants, personal agents, sandboxes, your own app.

Helper commands

  • A new page gives the form of aquaman get that works behind Claude Code's apiKeyHelper, a Codex provider's auth command, Hermes's key_cmd and an OpenClaw exec secrets provider, and how each host behaves when the command fails.
  • The Codex example in the docs and in aquaman get --help named Codex's built-in provider, which Codex refuses. It works on a provider you define.
  • The README named the wrong Hermes setting.

Documentation pass

Every document was read against the code and against the others. Corrected, among others:

  • a policy example for a service that is not builtin, and a claim that setup writes presets for it
  • the Telegram token described as stored in openclaw.json
  • chat commands and an aquaman-coder get that do not exist
  • a package boundary doc describing a code move that never happened
  • the old diagram in the proxy README, and two broken anchors
  • "tamper-evident" where the maintainer notes rule it out, and "every use is logged" without the switch that turns the log off

Fixes

  • aquaman-coder setup claude-code writes the proxy socket into the sandbox allow-list by its real path. Claude Code 2.1.332 opens the socket only for the real path, so with a symlinked config directory sandboxed commands could not reach the daemon.
  • aquaman-coder doctor finds Codex hook trust under the real path of hooks.json.
  • A config directory too deep for a Unix socket path (104 bytes on macOS, 108 on Linux) ends the daemon with the reason and the fix.
  • aquaman init named a command that does not exist.
  • audit.maxArchives in config.yaml sets how many 10 MB audit log files are kept (10 by default, 0 keeps all).
  • The message for a sandbox that blocks the proxy socket names both hosts.
  • The OpenShell check follows the project to its new repository.

What was run

  • Hook contract on Claude Code 2.1.332 and Codex 0.172.0, with a stand-in API returning the tool call: the rewrite, permission rules still applying to the original command, redaction of the result, hook trust in Codex.
  • Helper commands on Claude Code 2.1.332, Codex 0.172.0, Hermes 0.23.4 and OpenClaw 2026.11.10, each against a stand-in API. No host was run against its real provider.
  • Socket path limits measured with Node 24 on macOS and on Linux.

…ust is looked up under the real path

Claude Code 2.1.332 opens a Unix socket for sandboxed commands only when the
allowUnixSockets entry is the socket's real path. With the config directory
reached through a symlink, setup wrote the path as given and sandboxed commands
could not reach the daemon. Setup writes the real path, an entry spelled
through a symlink no longer counts as covering the socket, and uninstall
removes both forms.

Codex records hook trust under the real path of hooks.json, so with CODEX_HOME
reached through a symlink doctor kept saying the hooks were not trusted.

The sandbox hint names both hosts, and two doctor lines say which Codex
versions they were run on.
…ts new repository

A config directory deep enough that proxy.sock is over the Unix socket path
limit (104 bytes on macOS, 108 on Linux, both measured with Node 24) ended the
daemon with a listen EINVAL stack trace. It now ends with the reason and the
fix.

The OpenShell check and the vendored proto note point at
ai-openshell/openshell.
Agent Substrate's egress gateway replaces a placeholder header with a
credential it fetches from a provider plugin, one FetchSecret call per
request. `aquaman daemon` serves that call when substrate.provider.enabled, so
the key comes from the vault, only for the actors it was granted to, with an
audit entry per fetch.

The listener is the daemon's only one meant to be reached from another
machine. TLS 1.3 with a required client certificate, and when a call's headers
arrive the certificate must be within its dates and carry exactly the
gateway's SPIFFE identity. Connections are bounded in calls, memory, idle time
and age, and closed when the authority bundle is replaced. Certificate files
are read again when they change; a set that does not load is not adopted.

Nobody is there to approve, so substrate.provider.grants maps an atespace or
one actor to the references it may be given. Everything that can refuse does
so before the vault is read. Fetches are rate-limited per actor and per
atespace. Refusals are written once per caller and kind per minute, bounded
overall, and the rest are counted in a summary. The provider does not start
with the audit log switched off.

deploy/substrate holds the image recipe, a lockfile for what it installs and
a manifest. The release builds and attests the image for amd64 and arm64;
scripts/check-image-lock.mjs stops it if the lockfile would move to a package
that is not in a reviewed lockfile, and CI runs the same check before a tag
exists. Dependabot tracks the base image digest and the image's lockfile.

scripts/e2e-substrate.sh runs the provider against a real gateway on a kind
cluster; substrate-compat.yml runs it when the provider changes and weekly.

Also: audit.maxArchives in config.yaml, `aquaman audit tail` shows the actor a
key was fetched for, and `aquaman substrate doctor`.
…n 0.22.0

aquaman is described as a credential broker: one daemon that reads the vault
you already have and hands a key off in one of three ways (forward and inject,
resolve, hand to the host). A diagram of that is in the README, the packages
doc, the site's home page and a new page, "How aquaman fits together". The
tables say where method and path rules apply and who holds the key, and which
OpenClaw and Hermes traffic is forwarded.

docs/helper-commands.md gives the form of `aquaman get` that worked behind
Claude Code's apiKeyHelper, a Codex provider's auth command, Hermes's key_cmd
and an OpenClaw exec secrets provider, each run against a stand-in API. The
Codex example in the docs and in `aquaman get --help` named the built-in
provider, which Codex refuses.

AGENTS.md carries the hook contracts as run on Claude Code 2.1.332 and Codex
0.172.0, and the rules of the Agent Substrate provider.
… page; labels say model keys

The home page already tells the same in its own sections (the vault list, the
host picker, the routed-app diagram, the dialog), so the diagram there repeated
four of them. It stays on "How aquaman fits together" and in the README, and
the host picker links to that page.

In the diagram and its tables, OpenClaw and Hermes are labelled by what is
forwarded for them (model keys, and Telegram for OpenClaw), with the providers
named in the table.
The picker on the home page shows its hosts in four groups with a caption over
each: coding assistants, personal agents, sandboxes, your own app. The
Markdown version of the page lists them the same way and describes which hosts
go through the proxy and which inject keys themselves.

`aquaman init` named a command that does not exist (`aquaman start`); it says
`aquaman daemon`. The "cannot be routed" refusal says that AWS can be.
Found by reading each document against the code and against the others.

Not updated for this release: lists of hosts that ended before Agent
Substrate, compliance pages that said the daemon has no network exposure, the
README's security model and transports table, "no house vault" and
"tamper-evident" where the notes rule them out.

Stale before it: a policy example for a service that is not builtin and a
claim that setup writes presets for it; the Telegram token described as stored
in openclaw.json; chat commands and an `aquaman-coder get` that do not exist;
a package boundary doc describing a code move that never happened; the old
diagram in the proxy README; two broken anchors.

Added: the settings of the Agent Substrate provider with their defaults, and
the size of the audit log with `audit.maxArchives`.
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 27, 2026 7:43pm UTC

…request; preview image says broker

A new CI job builds the image from the checkout with its lockfile and checks
that it runs this checkout's daemon as an unprivileged user with the
provider's packages in it. The provider against a real gateway stays in
substrate-compat.yml.

The picture shown when the site's link is shared said "Credential proxy for AI
agents"; it says "broker", and its dialog text matches the real dialog.
`aquaman substrate doctor` no longer suggests a backend the guide does not
cover for a cluster.
@codecov-commenter

codecov-commenter commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.30%. Comparing base (2716a46) to head (36a101d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #118      +/-   ##
==========================================
+ Coverage   99.10%   99.30%   +0.20%     
==========================================
  Files          61       61              
  Lines        9015     9035      +20     
==========================================
+ Hits         8934     8972      +38     
+ Misses         81       63      -18     
Files with missing lines Coverage Δ
packages/coder/src/adapters/claude-code/setup.ts 100.00% <100.00%> (ø)
packages/coder/src/adapters/codex/setup.ts 100.00% <100.00%> (ø)
packages/coder/src/broker-client.ts 100.00% <ø> (ø)
packages/coder/src/cli/index.ts 97.94% <ø> (ø)
packages/proxy/src/cli/index.ts 98.62% <100.00%> (+<0.01%) ⬆️
packages/proxy/src/daemon.ts 100.00% <100.00%> (+2.05%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…not ask for a JUnit file

On a GitHub runner the cluster, the Substrate install and the provider came up
and `aquaman substrate doctor` passed; the driver then stopped before its first
check because Substrate's test runner requires a JUnit file when CI=true. The
script counts the driver's checks itself.
In a cluster the usual way to get vault keys to a workload already exists:
an operator fills Kubernetes Secrets from the vault, and Substrate's own
provider reads those. What aquaman would add there (no copy in the cluster,
grants per actor, an audit entry per fetch) has no user asking for it, and the
provider is the daemon's only listener another machine can reach, with an
image and release jobs to keep. It is not part of 0.22.0.

Removed: the provider and its proto, tests, image recipe, manifest, lockfile
check, cluster script and workflows, the guide, and every mention in the
docs, the diagram, the site and the notes. The release workflow, CI,
Dependabot config and version script are as they were before it.

Kept: `audit.maxArchives`, the three hand-offs and their diagram, the grouped
host picker, the helper commands page, the documentation pass and the fixes.
@tech4242 tech4242 changed the title v0.22.0: credential broker, Agent Substrate provider, helper commands v0.22.0: credential broker, the three hand-offs, helper commands Nov 27, 2026
@tech4242
tech4242 merged commit 1f64f3b into main Nov 28, 2026
19 checks passed
@tech4242
tech4242 deleted the feat/v0.22.0 branch November 28, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants