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.
Show data
| infinary.io | Orca-strator | infinary_agent | infinary_controls | |
|---|---|---|---|---|
| Mon 24 | 14 | 4 | 4 | 0 |
| Tue 25 | 20 | 0 | 13 | 0 |
| Wed 26 | 9 | 1 | 5 | 0 |
| Thu 27 | 7 | 6 | 0 | 0 |
| Fri 28 | 3 | 3 | 0 | 0 |
| Sat 29 | 10 | 4 | 0 | 2 |
| Sun 30 | 13 | 8 | 0 | 11 |
| Mon 31 | 1 | 0 | 0 | 0 |
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:
- The compiler demanded the fallback vendor’s key though the run was routed to Gemini.
- The lanes then called the fallback model anyway, and a run whose every lane failed exited 0.
- The failure reason lost a race with log collection at shutdown. Failures are now logged before exit.
- A stale bundled model map made the requested reasoning effort raise an error, killing every lane.
- Both pinned Gemini model names were phantoms: one retired, one that never existed. The roster now follows Google’s
-latestaliases. - The runner’s network is IPv4-only, and Google API connections tried IPv6 first and died.
- Terraform kept deleting a secret reference attached by hand, so every lane failed for lack of a key.
- 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.
- 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.