Back to Field Notes
Log

The agent hub week: 138 pull requests and a first live run

In one week the control plane became a hub that publishes AI agents and runs them centrally against a customer's ERP. The first live run on August 27 took ten pull requests to get working. The update agent learned to undo an update, and not to re-apply one it had undone.

Covers
Written
Repositories
infinary.io, Orca-strator, infinary_agent, infinary_controls
Pull requests
138
Reading time
4 min
#hosted-agents#control-plane#orca#golden-image#google-cloud
Contents

The week in numbers

Work started just after midnight on Monday, August 24, and by Sunday night we had merged 137 pull requests: 76 in infinary.io, 26 in Orca-strator, 22 in infinary_agent and 13 in a new repository, infinary_controls. One more, on Monday the 31st, fixed realtime for Aria. Every agent run that week went to one ERP, our own.

05101520pull requestsMon 24Tue 25Wed 26Thu 27Fri 28Sat 29Sun 30Mon 31infinary.io, Mon 24: 14infinary.io, Tue 25: 20infinary.io, Wed 26: 9infinary.io, Thu 27: 7infinary.io, Fri 28: 3infinary.io, Sat 29: 10infinary.io, Sun 30: 13infinary.io, Mon 31: 1Orca-strator, Mon 24: 4Orca-strator, Tue 25: 0Orca-strator, Wed 26: 1Orca-strator, Thu 27: 6Orca-strator, Fri 28: 3Orca-strator, Sat 29: 4Orca-strator, Sun 30: 8Orca-strator, Mon 31: 0infinary_agent, Mon 24: 4infinary_agent, Tue 25: 13infinary_agent, Wed 26: 5infinary_agent, Thu 27: 0infinary_agent, Fri 28: 0infinary_agent, Sat 29: 0infinary_agent, Sun 30: 0infinary_agent, Mon 31: 0infinary_controls, Mon 24: 0infinary_controls, Tue 25: 0infinary_controls, Wed 26: 0infinary_controls, Thu 27: 0infinary_controls, Fri 28: 0infinary_controls, Sat 29: 2infinary_controls, Sun 30: 11infinary_controls, Mon 31: 0infinary.ioOrca-stratorinfinary_agentinfinary_controls
05101520pull requestsMon 24Wed 26Fri 28Sun 30Mon 31infinary.io, Mon 24: 14infinary.io, Tue 25: 20infinary.io, Wed 26: 9infinary.io, Thu 27: 7infinary.io, Fri 28: 3infinary.io, Sat 29: 10infinary.io, Sun 30: 13infinary.io, Mon 31: 1Orca-strator, Mon 24: 4Orca-strator, Tue 25: 0Orca-strator, Wed 26: 1Orca-strator, Thu 27: 6Orca-strator, Fri 28: 3Orca-strator, Sat 29: 4Orca-strator, Sun 30: 8Orca-strator, Mon 31: 0infinary_agent, Mon 24: 4infinary_agent, Tue 25: 13infinary_agent, Wed 26: 5infinary_agent, Thu 27: 0infinary_agent, Fri 28: 0infinary_agent, Sat 29: 0infinary_agent, Sun 30: 0infinary_agent, Mon 31: 0infinary_controls, Mon 24: 0infinary_controls, Tue 25: 0infinary_controls, Wed 26: 0infinary_controls, Thu 27: 0infinary_controls, Fri 28: 0infinary_controls, Sat 29: 2infinary_controls, Sun 30: 11infinary_controls, Mon 31: 0infinary.ioOrca-stratorinfinary_agentinfinary_controls
Pull requests merged each day, August 24–31 Pull requests merged per day, Denver time. infinary.io: 14, 20, 9, 7, 3, 10, 13 and 1 from Monday the 24th to Monday the 31st. Orca-strator: 4, 0, 1, 6, 3, 4, 8 and 0. infinary_agent: 4, 13 and 5 on the first three days, then none. infinary_controls: none until 2 on Saturday and 11 on Sunday.
Show data
infinary.ioOrca-stratorinfinary_agentinfinary_controls
Mon 2414440
Tue 25200130
Wed 269150
Thu 277600
Fri 283300
Sat 2910402
Sun 30138011
Mon 311000

Four parts have their own notes: the customer-side app and its kill switch, an image re-spelling that nearly ran a migration, agents that reported success after reading nothing, and Aria.

The shape of the hub

The control plane, which had only managed upgrades, learned to publish agents written as Orca-strator flows, and to run them.

  • Versions are frozen. A run fixes the agent version at dispatch, so publishing mid-run can’t swap the flow underneath a customer.
  • An empty tool list isn’t “no opinion”. The engine read it as every tool, including running code and SQL inside the ERP. The contract now requires at least one.
  • Paying isn’t consent. Subscribing to an agent and enabling it on a particular ERP are separate acts.
  • One run, one process. Each run is one Cloud Run job execution that serves one customer and exits: “the process boundary is the tenant boundary”. Retries are off, because a retry would redo what the agent already did in the ERP.
  • One tick for the fleet. Instead of a scheduler job per agent per customer, one tick asks what’s due, matching each schedule against the window since the agent last ran. Projecting forward instead had once cost Orca’s own scheduler 2.6 million iterations looking for February 30th.

The first live run

On Thursday, August 27, the first hosted run against our own site failed, and it took ten pull requests that day to get it working:

  1. The compiler demanded the fallback vendor’s key though the run was routed to Gemini.
  2. The lanes then called the fallback model anyway, and a run whose every lane failed exited 0.
  3. The failure reason lost a race with log collection at shutdown. Failures are now logged before exit.
  4. A stale bundled model map made the requested reasoning effort raise an error, killing every lane.
  5. Both pinned Gemini model names were phantoms: one retired, one that never existed. The roster now follows Google’s -latest aliases.
  6. The runner’s network is IPv4-only, and Google API connections tried IPv6 first and died.
  7. Terraform kept deleting a secret reference attached by hand, so every lane failed for lack of a key.
  8. That morning we had started parsing Firestore documents instead of casting them, and the strict parse failed the first dispatch on an old organization with no display name.
  9. Dispatch passed an empty token, so runs executed but never reported back.

By Friday a successful run linked to the draft document it had created in the ERP.

The update agent

infinary_agent shipped nine releases between Monday and Wednesday. Our own apps stopped counting as customer drift (“a gate that always fires is a gate nobody reads”). Owners can now undo an update that succeeded, after acknowledging what it discards; the agent restores the database before the code, and refuses rather than half-doing it. Our site’s first unattended update showed that the agent updated everything except itself: the (The small Infinary agent that runs next to ERPNext on each server. It runs updates, app installs and rollbacks, and only ever connects outward.) kept running its old copy. Update outcomes came from a source that couldn’t see them, so every real update reported “none”: the metric “worked in dev and never in production”. And a rollback would have been re-applied at the next window, so the agent now remembers the image the owner refused. It also learned to rotate its own credential, and to get one by proving which machine it’s on.

Found by running it

  • The scheduler tick returned 400 every five minutes. The idempotency middleware demanded a header Cloud Scheduler can’t send. We found it by calling the deployed endpoint.
  • The images weren’t on the data disk. Our site’s 30 GB boot disk hit 98% while the data disk sat at 1%: the images live in containerd’s store, which Docker’s data-root setting doesn’t move.
  • A query nothing had declared. A portal page returned 500 because a Firestore query needed an index nobody had created. CI now checks that every index the code needs is declared.

On Friday, August 28, GitHub Actions stopped starting jobs on the Orca-strator repository, so its last 15 pull requests that month merged without CI or a release.

What we’d tell someone else

Most of the bugs in this list passed their tests and were found by calling the real thing: the deployed endpoint, the live model, the real disk. Budget for that day after the merge.