Harnessing and Hardening: How We Keep Fast Agents on the Track

Coding agents are fast and directionless. We pair harnessing with hardening: specs, gates, rails and a human at the last gate, so speed stays on the track.

A modern coding agent is a thoroughbred: enormous energy, real speed, and no sense of where the track is. We build real-time inference systems for traders, where "mostly working" is the same as broken, so we stopped asking whether AI can write the code and started asking how to make it write the right code, every time. Our answer is two disciplines applied as one system.

A modern coding agent is a thoroughbred: enormous energy, real speed, and no sense of where the track is. We build real-time inference systems for traders, where "mostly working" is the same as broken, so we stopped asking whether AI can write the code and started asking how to make it write the right code, every time. Our answer is two disciplines applied as one system.

By Aquiles Mata

A thoroughbred with no track

A modern coding agent is a thoroughbred: enormous energy, real speed, and no sense of where the track is. Point it at a task and it runs. Without direction it runs somewhere. Without boundaries it runs off the course.

We learned this building our products: real-time inference systems for traders and financial institutions. Their output informs decisions with real money behind them, their data paths run at microsecond latency, and they run 24/7 with nobody watching. For us, "mostly working" is the same as broken.

So we stopped asking whether AI can write the code. We ask how to make it write the right code, the same way, every time, across every component. Our answer is two disciplines applied as one system: harnessing and hardening.

Harnessing: the jockey and the reins

Harnessing directs the agent toward the right behavior. It turns raw capability into aimed capability. We harness in three ways.

  • Instructions are executable prompts, not documentation. Our root AGENTS.md is the first thing every agent reads. It orders the agent to read named files before any work, decide which tier of work it's in, and open its first reply with proof that it read them.

  • Every change starts from a spec. The spec template has fixed sections: problem, solution, scope, story breakdown, files to touch, operating environment, acceptance criteria, dependencies and test strategy. The agent doesn't guess what to build. It reads it.

  • The workflow is the same for every component. Work breaks down into Epic, Story, Task and Sub-task. One branch per Task, one commit per Sub-task, a plan approved before any code. A Rust agent in the market data engine and a Python agent in an analytics service follow the same loop.

The jockey doesn't make the horse faster. The jockey makes sure the speed goes around the track and not into the crowd.

Some of the newest AI approaches skip the spec entirely: describe what you want, and the agent builds it. For a lot of software, that works. For ours, it would be reckless. "Build a market data engine" leaves out the latency budget, the failover behavior, the price precision and what "correct" means when the venue's data is ambiguous. The agent fills every gap with a plausible guess. A spec isn't ceremony. It's where the fence gets written down.

Hardening: the fence around the track

Hardening constrains the agent so it can't do the wrong thing. It turns aimed capability into safe capability. Our fence has a few rails that never move.

  • A constitution that outranks everything. Fifteen rules apply across every component and every tool. Component rules can add to them but never contradict them. When two rules do conflict, the agent stops and asks. It never picks one.

  • Gates that refuse, not warn. All tests pass before every commit. Nothing ships half-done: no TODOs, no "fix later." Each Task is checked against its spec, then a separate review re-reads the whole spec.

  • Hard boundaries for unattended runs. Our autopilot can take a multi-Epic project all the way to the end, but on rails. Every Epic is reviewed against its spec, and any gaps are fixed and re-reviewed, before the next Epic starts. After the last Epic, a final review covers the whole run. Then the run stops at a manual review gate before anything reaches the main branch. A test failure it can't fix halts the entire run, scope changes are never an autonomous decision, and every decision it does make on its own is logged to Jira.

  • A human holds the last gate. Agents never push to main or develop. Merging into a base branch needs explicit approval from the operator.

  • Handovers, not summaries. When an agent's context fills up, it doesn't trust a lossy auto-summary. It writes a structured handover with git state, Jira state and the next step, so a fresh session (possibly a different model, or a different tool) picks up exactly where it stopped.

Neither discipline works alone. A harnessed agent with no fence goes off a cliff the first time it meets ambiguity. A fenced agent with no reins thrashes in its pen. You need both, built as one system, in version-controlled files that Claude Code, Cursor, Copilot and Droid all read the same way.

Every runaway becomes a new rail

Our fence wasn't designed in one go. Each time an agent found a new way off the track, we caught it and added a rail so no agent could take that route again. That loop is the core of hardening.

  • What the agent did: read the top of its instructions and stopped, then worked from half the rules. The rail we added: proof of reading. The first reply must quote the verbatim last line of AGENTS.md, with the line count of every file it read.

  • What the agent did: made up a Jira key that looked right instead of using the real one. The rail we added: never predict a key; only use the key the tool returned.

  • What the agent did: lost context mid-task and carried on from a degraded summary. The rail we added: at any sign of context compaction, stop, write an emergency handover, end the session.

  • What the agent did: hit two rules that disagreed and quietly chose one. The rail we added: contradiction stop. On a conflict between rules, stop and ask.

  • What the agent did: trusted a code comment or a doc as evidence of what the code does. The rail we added: verify from executable code, never from comments.

  • What the agent did: reported an Epic done while its final review still had real bugs to find. The rail we added: a separate final review that re-reads the whole spec before anything lands.

None of these was a model being malicious. Each was a fast, capable agent filling a gap we hadn't fenced. Close the gap once in a version-controlled file, and every agent in every tool respects it from then on.

Enterprise-grade, end to end

The fence doesn't stop at the code. Agents work inside the same machinery a large enterprise engineering organization runs on: git, Jira, plans, reviews and approvals. They're orchestrated so that every step leaves a record and hands off cleanly to the next. This is what a single change goes through:

  1. Jira first. Every piece of work sits in a hierarchy of Epic, Story, Task and Sub-task. The agent creates each Sub-task just before implementing it, assigns it to itself and puts it in the active sprint.

  2. A plan before code. A plan file names the Tasks, the branches and the acceptance criteria. Work starts only once it's approved.

  3. A branch per Task, a commit per Sub-task. Branch names carry the ticket key. Each commit is a Conventional Commit with its Sub-task's key, so every line of code traces back to a ticket.

  4. Tests before every commit, the full suite before every merge. A red test stops the work.

  5. Review against the spec. Each Task is checked against its spec. Story and Epic reviews re-read the whole spec. On our most critical components, a second model from another vendor reviews the work independently.

  6. PRs merged with merge commits. Never squashed, never rebased, so history stays complete. The platform pins exactly which version of every component ships together.

  7. A human approves the merge. Agents propose. People decide what lands.

  8. A handover at every boundary. Git state, Jira state and the next step go into a file, so the next session (on any model, in any tool) resumes exactly where this one stopped.

On their own, none of these steps is new. What's new is that agents run every one of them, every time, and the whole thing works as one orchestrated system. It's the discipline of a large enterprise engineering organization, run at the speed of agents.

What it changed for us

Governed agents let us run a platform of this size without the agents running us. In the last 12 months alone, that meant 50,806 commits, 46,418 Jira tickets tied to them, and thousands of structured handovers between agent sessions.

All of it runs through Jira tickets, tests before every commit, and reviews against the spec. Nobody works at that pace by hand, and nobody should trust work at that pace without a fence.

  • Speed without drift. Thousands of agent sessions hand work to each other and still produce the same commit style, the same logging, the same Jira trail, whichever model or tool did the work.

  • Unattended work we can trust. The autopilot runs whole multi-Epic projects end to end because it knows where to stop: at a failed review, at a test failure it can't fix, when it needs a human decision, and at the final manual review before anything reaches the main branch.

  • New components come pre-fenced. A new component inherits four of the five governance layers on day one. We write its AGENTS.md and its spec. The reins and the fence are already there.

  • An audit trail. Every decision is in Jira, every change is in git, every handover is a file someone can review. When something goes wrong, we can say which change did it and why.

So, about last week

In six days, Microsoft 365 went dark for nearly a day, the FAA stopped every departure in the country, AWS lost sign-in in us-east-1, Chase stalled payments across several banks, United grounded flights, and Apple signed millions of people out of iCloud.

Nobody has shown that an AI agent caused any of it. The companies deny it, and the loudest AI theories rest on anonymous sources. But read the causes they did disclose:

  • Microsoft: a latent defect in a July fix, waiting for a routine failover onto reduced capacity.

  • Chase: a software bug, which the FBI tied to that day's release.

  • Apple: an "internal update."

  • FAA: a router during a network upgrade.

Every one is a change that reached production without a fence strong enough to stop it. And coding agents are multiplying how many changes every team ships.

So here's the provocation. Maybe the problem last week wasn't too much AI. Maybe it was too little hardening. Somebody's thoroughbred got out of the gate, and nobody had built the fence.

The horse is fast either way. The question for every engineering team now is whether you've built the track.

Sources

Want to know more?

Please contact our team and we’ll get back to you quickly.

From insight to

impact.

impact.

Sign up to be the first to know when we launch and get exclusive early access to our groundbreaking platform.

From insight to

impact.

impact.

Sign up to be the first to know when we launch and get exclusive early access to our groundbreaking platform.

From insight to

impact.

impact.

Sign up to be the first to know when we launch and get exclusive early access to our groundbreaking platform.