Co-founder & CTO at Roma. Building finance-grade AI for deductions, reconciliation & O2C. Writing about distributed systems, AI engineering & startups.
@nora_js Hits hard in finance agents. At Roma and NAKAD, an approval captured at kickoff can be stale by the time the agent writes: the invoice got paid, the deduction got disputed. So we re-read the source of truth right before the write, and anything irreversible goes back to a human.
@swyx@temporalio Idempotency and compensation are the two I lean on most with agents. Building finance agents at Roma and NAKAD, any tool call that touches ledger state needs an idempotency key and a defined undo step. Retries stop being scary once both exist, and agents retry a lot.
@HamelHusain@xeophon Point 1 matters just as much in production. In the finance agents we build at Roma and NAKAD, the check that decides a step passed sits outside the agent's reach. Once an agent can touch its own verdict, the eval measures how well it games the grader, not the task.
@dexhorthy Building at Roma and NAKAD, the constraint moved from writing code to verifying it. Parallel agents fill the review queue faster than judgment keeps up, so fewer bets is also how unreviewed output stays bounded. In finance, that backlog is the real risk.
@nora_js Same pattern building finance agents at Roma and NAKAD: routing is rarely the hard part, the capability map is. What the harness believes an agent or tool can do goes stale quietly. Treating it like replicated metadata, versioned with expiry, beats smarter routing.
@copyconstruct The real shift is cost. Specs used to be worth writing only for the core protocol, which is how it felt on P2P messaging at Oracle. If an LLM drafts the model and a checker grinds it, everyday services qualify too. Then triaging 70 potential bugs becomes the bottleneck.
The agent that decides a deduction should not be the agent that writes it.
On a short-pay we run, one step picks the action. A later step posts it only after the backup has been opened.
Being sure is not the same as being allowed to write.
A better model makes a finance agent more capable. It doesn't make it safe to move money.
The harness does: which tools it can call, what evidence each action needs, when it stops, when a human decides.
The model gives capability. The harness decides behavior.
Two agents allowed to act on the same deduction will eventually both act on it.
One disputes it. The other writes it off. Both logs look correct.
Give every action one owner. Others can read, propose, or escalate.
Ownership belongs in the harness, not the prompt.
Most agent self-improvement work assumes a grader. Real work rarely has one.
Google's Harness² paper takes that on. It improves an agent's harness (system prompt, guardrails, memory, skills, tools, scripts, subagents) on tasks with no ground-truth checker.
The loop:
1. Propose edits, some general, some specific to the domain
2. Probe each one by actually running it
3. Compose a new harness from what helped
Then it keeps the lessons, so the next task starts from a better harness.
One step lifted GLM-5 and Gemini 3.5 Flash by up to 11.5 points on WorkBuddy-Bench and 11.8 on LAB.
This is the everyday reality of finance agents. A deduction rarely arrives with an answer key. You improve the workflow from evidence, not from a label.
Paper: https://t.co/FnWkxMkrsB
A deduction agent can explain its call cleanly and still cite the wrong invoice, the wrong backup, or the wrong reason code.
Fluency is not evidence.
In the finance workflows we build at Roma, an answer that can't show the evidence it used isn't ready to act on.
A deduction agent can explain its call cleanly and still cite the wrong invoice, the wrong backup, or the wrong reason code.
Fluency is not evidence.
In the finance workflows we build at Roma, an answer that can't show the evidence it used isn't ready to act on.
A harness that edits itself needs a change log with reasons, not just diffs.
Google's new Self-Improvement Memory paper tests this. For every harness edit, the optimizer stores three things:
1. Why the change was made
2. What it expected to happen
3. What actually happened
With that memory, 9 of 10 continued runs improved, by +2.36 points on average (p=0.003).
One more finding stood out. A harness evolved with Opus scored 68.41 on Gemini, below the 73.89 of the original seed harness. A tuned harness doesn't carry over to a new model for free.
We ran into the same lesson building our deduction agents at Roma. A decision on its own teaches the next run nothing. The reasoning behind it, the evidence it used and what happened afterwards are what make the system better over time.
Diffs tell you what changed. Reasons tell the next run what to try.
Paper: https://t.co/36jfKugUue
A multi-agent system is a distributed system with non-deterministic nodes.
Same old problems: retries, partial failure, ordering, duplicate actions, state that drifts.
The new part is that one node can be confidently wrong. Design for that first.
Idempotency is a business guarantee disguised as an engineering detail.
In production, a timeout retry can submit the same dispute twice. The second request has to find the first action and stop.
If a retry can move money again, the workflow is not safe to automate.
High standards don't scale when every important decision still waits for the engineering leader.
The leader becomes the quality system, and then the bottleneck.
The real work is encoding judgment into ownership boundaries, review criteria, tests, and escalation rules.
We moved our company's entire AWS footprint into Terraform.
The setup already worked. The real problem was that only a few people knew why.
A green pipeline can lie. We once had a clean plan, an apply that exited 0, and health checks returning 200, while real traffic failed on a listener rule conflict. Automation tells you what you asked it to check, not whether customers are fine.
Boundaries created speed: a shared foundation stack for the network, databases, and DNS, with a small Terraform root per service on top. Safety was designed in with pinned versions, serialized applies, and blocked unexpected deletes.
The best migrations are boring. Production data was imported, never copied. We finished with zero drift between code, state, and live AWS, and nobody noticed the cutover.
Terraform was the tool. The real shift was turning tribal knowledge into something the whole team can read, question, and trust.
In distributed systems, partial failure is not an edge case. It is the normal operating condition.
When an AI agent uses external tools, network calls drop, APIs time out, and side effects fail non-atomically.
If the agent can’t recover, then it isn’t an agent.
The fix is upstream:
• Smaller, bounded changes
• Clear interfaces and acceptance criteria
• Tests and evidence attached to the diff
• Human judgment reserved for consequential decisions
Review should confirm a contract, not rediscover it.
Source: https://t.co/bRFbdCc6DW
We’re seeing this firsthand: agents can produce work faster than we can review it. The bottleneck has moved from writing code to the review gate.
PRs arrive quickly, but reviewers still have to reconstruct intent, inspect architecture, and decide whether the evidence is enough.
One answer is a “lights-off” software factory. Dex Horthy (HumanLayer) tried it: velocity rose, but without human judgment the codebase drifted into architectural slop.
The other extreme fails too. Put every change behind approval, and the queue outgrows human attention.