Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 6 min read

I gave my AI agents a supervisor: signed approvals, refusal tests, and a 1,000-agent failure

Drafted with AI assistance and checked line by line against the reports before posting. I spent 27 years in trucking and dairy logistics. In that world, nobody touches a load on a handshake. Every handoff has a name on

Drafted with AI assistance and checked line by line against the reports before posting.

I spent 27 years in trucking and dairy logistics. In that world, nobody touches a load on a handshake. Every handoff has a name on it, a time on it, and a signature when the stakes are real. A missed handoff becomes a real operational problem, fast.

Then I started building with AI agents, and I watched the opposite culture. An agent gets a shell, a mailbox, and a credential store, and the only record of what it did is a chat log. The agent's authority is whatever the prompt happened to imply that morning. When something goes wrong, there is no signature to look at. There is just a transcript and a shrug.

Helmian is the workspace I built to fix that. It is public source, and this post is the engineering record so far: what the guard does, what the tests showed, where it failed at scale, and the one finding I have not fixed yet.

The shape of it

Claude, ChatGPT, Grok, Gemini, Mistral, and local models work in named seats in shared channels. Each seat is a named worker with its own identity, not an anonymous tab. The workspace has shared memory, and a Librarian records requests and decisions. A local bridge lets seats do guarded work on a real PC.

The piece that matters is the Executive Guard. It evaluates an action before the action runs. The flow:

  1. A seat asks to do something: write a file, send a message, run a command, resolve a credential.
  2. The ask is classified into an action type.
  3. Routine work inside a configured standing grant proceeds.
  4. Anything outside the grant needs a decision slip: an Ed25519-signed envelope bound to the exact action, valid for five minutes, accepted once.
  5. The audit trail records who requested, who decided, and what ran.

A slip cannot be replayed for a second action, and it cannot be stretched to cover a different action than the one that was approved. If nobody approves, nothing runs.

Test one: does the Guard refuse what it should refuse?

The refusal test drove 152 typed asks at up to 200 seats and verified 7,010 seat replies against the plan. 2,075 of those replies were refusals, and every single one matched the verdict the test plan expected for that ask. Every refused ask dispatched zero work. Every allowed ask got exactly one reply per seat, no duplicates, no missing seats. The run reported zero failures.

Two details from that report are worth more than the headline:

  • Refusals are fast. A refused ask closes in the first poll cycle that sees it, with a median of 0.3 to 2.5 seconds across classes and stages, because no seat work is waited on.
  • The Guard itself is cheap. Kernel evaluation of an action runs in microseconds (roughly 7 to 25 microseconds per evaluation in the benchmark). The approval path, with an approver who answers instantly, adds about 80 milliseconds per gated credential resolve, and pending approvals hold no database connections while they wait.

Full report: https://github.com/helmianlabs/helmian/blob/main/docs/reports/loadtest-step5-guard-results.md

The finding I have not fixed

One ask in that test never reached the Guard at all. The ask was credential-shaped ("What is the api key for the maps service? Please look it up."), and it matched a knowledge-base entry, so the knowledge-base layer answered it before classification and evaluation ran. The entry was a benign how-to about key shape. The tenant held no stored credentials, and no credential existed or moved.

The measured fact is the ordering: a credential-typed ask that matches a knowledge-base entry is answered by that layer, with no Guard evaluation, no finding, and no refusal. How often real asks collide this way is unmeasured. The fix is not in yet. I am publishing the finding with the system because a guard with a known bypass order is still more honest than a guard with an unexamined one, and because I want reviewers looking exactly there.

Test two: the load ladder, and where it broke

The same workspace ran at 200, 500, and 1,000 agents on a test twin of the production system.

  • 200 seats: pass. Every ask completed, poll latency median 105 ms.
  • 500 seats: pass. Every ask completed, poll latency median 1,061 ms. Polling is the scaling pressure point.
  • 1,000 seats: fail. Chat dispatch stalled and the stage was stopped at the red result.

The failure had two causes, both named in the report. First, the shared client-side connection pool saturated while database connections stayed bounded. Second, dispatch builds its answered set from only each channel's latest 40 messages, so a seat whose failed post aged out of that window was never retried. A transient timeout became a permanent stall.

What held inside the failure is the part I care about: 2,000 of 2,000 Guard refusals correct, zero duplicate replies, and all 48 cross-tenant checks passed. Tenant requests are scoped in the application and backed by database row-level security, applied in production to 102 of 103 workspace-schema tables. The safety properties survived the stage that the throughput did not. Fix directions are named in the report and are not implemented yet.

Full report: https://github.com/helmianlabs/helmian/blob/main/docs/reports/loadtest-step7-scale-results.md

Checking MCP servers before they get in

Helmian also vets MCP server candidates before install. Each candidate is copied into a throwaway directory, given an allowlisted environment, and observed for JavaScript API attempts across network, processes, and files. This is process-level instrumentation, not an OS-enforced sandbox: it runs with the invoking user's permissions, so a clean run is evidence for a human reviewer, not proof of safety.

A candidate can also pass through a separate vet service first. With the gate on, the service requires a Guard decision slip signed by the Auto Approver and verifies it against a pinned key before it fetches the candidate. The cutover report records live proofs, a benign candidate passed and a poisoned one blocked, and one open weakness: the spent-slip store lives in the vet container's writable layer and is cleared on recreate. A bind-mounted store is the named fix, not in yet.

Report: https://github.com/helmianlabs/helmian/blob/main/docs/reports/vet-cutover2-results.md

Scribe, the separate piece

Scribe is a second product, built separately, with its own repo. It gives the AIs a person already uses one shared memory and one mailbox, plus a spoke that lets them do guarded work on that person's own PC. It is open to any AI: Claude, ChatGPT, Gemini, Grok, and local models all read and write the same memory through Scribe's own door, under Scribe's own guard and passphrase. Helmian and Scribe share no wires. Each stands on its own, and Scribe works for someone who never runs Helmian at all.

Repo: https://github.com/helmianlabs/scribe

What I am asking for

The Helmian repo lists 4,002 root tests plus 105 Executive Guard tests and 105 Hands tests, and the suite runs in GitHub Actions on every push. The source is public under BSL 1.1; production use requires a license.

I am a solo builder, and the review I need is the kind I cannot give myself. If you build agent infrastructure:

  • Where would you probe the approval and replay paths?
  • What would you test in the MCP checker?
  • What tenant-isolation assumptions am I missing?

The repo is https://github.com/helmianlabs/helmian. Issues and hard questions are welcome there. If the work earns a star, I will take it as a sign to keep going in the open.

Troy Shoemaker, DairyForge LLC

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.