Make implementation boring
What I'm carrying from the pre-AI era into working with AI, and what hasn't changed.
In this post
Sorry for the long read. Here's the TL;DR:
- Define the boundaries, success metrics, and cost. Let AI change the implementation, and verify the result.
- Build on a few strong concepts. New capabilities should fit into a coherent family. Keep the behavior belonging to each domain together.
- Prototype fast, then consolidate what works. Cheap copies still become expensive to maintain.
- Keep meaning and responsibility shared. People and agents need a consistent domain model. People remain accountable for what ships.
- Make implementation boring and repetitive. This is how I see the path toward autonomous agents: reusable patterns, clear boundaries, and measurable results.
The principles and agent skills I use are on GitHub.
Recently I saw a post from someone who described himself as a developer. He had tried AI, disliked the result, and decided he wasn't going to use it. His example was code for reading HTTP headers: 20 lines of his own code versus 40 generated by AI. He said his was simpler.
He may have been right. What I disagree with is giving up on the tool because of that result. I replied offering to talk about his experience and give him free mentoring on using AI, if that would help.
That conversation made me want to write down how I'm translating my experience into the way I work now. We decide what the software promises, what success means, and what we're willing to spend. AI can do more of the work of getting there. I've been calling this outcome-driven development. Turns out others already use the term with agents too 😂. I'm honestly not sure we're using it in exactly the same context. This is my take on it.
If you're starting in software after AI, or haven't adopted it after an experience like his, this post is for you. If you're already using it, I'd like your perspective too. We're all learning.

My pre-AI era
Before my professional career, I helped build ePol for Brazil's Federal Police while studying at UFCG.
At VTEX, I also helped build the João Pessoa office, mainly by hiring people and helping spread VTEX's engineering culture. I believe it was the company's second engineering office worldwide. The talent coming out of UFCG was a big part of that story. I was still at the company when it went public in 2021.
I helped build many systems at VTEX, but CM (Configuration Manager) stands out because I still get feedback from people using it. It helps that its customers are VTEX developers I'm still in touch with, haha. I co-designed it with Bernardo Heynemann, starting from his initial design, which took some inspiration from Facebook's Configerator. I adapted parts of it during implementation.
His RFC was the first really well-written one I'd ever read. I could see how the system would work without being shown its implementation. That changed how I thought about designing software.
Bernardo left before the first version went live. Years after I left, people told me it was still being adopted and they hadn't experienced downtime with it. I don't know its state today. If you work there, I'd love to hear, even if it has become a pain.
I have plenty of stories about payments too, but that's a broader topic for another post, and some details may have changed since then. I'm still passionate about ledgers. Building those systems made me learn accounting, and I still use those lessons today. Apparently, by the third time you build the same thing, you finally start getting it right.
While working at Microsoft, Dapr became my first real Go project and my first truly open-source project professionally, after more than five years of closed-source work following graduation. I'm proud of keeping the same state-store interface for built-in and pluggable components. That wasn't an obvious fit: running out of process introduces real differences. A separate interface might have looked safer than touching the built-in abstraction. I chose the small adaptations needed to keep them aligned, while preserving the built-in behavior.
The payoff is that the two paths can evolve together. The test app wraps Dapr's existing Redis implementation, and the shared state-store suite runs against both paths. New cases in that suite test both. For new state-store capabilities, the pluggable-specific work is extending the gRPC protocol and its adapters, rather than designing a separate component model. That initial adaptation bought us reuse of both the implementation and the tests as the system changes.
At deco, much of my 2023 work is still present in the core resolver. The code has evolved, including with AI. The underlying ideas have held up.
I'm not listing this to be the “back in my day we wrote assembly; you have it too easy” guy. Take that far enough and we're arguing about punch cards, electricity, or hunting our own dinner. I do reserve the right to be annoying about it occasionally.
I'm happy that AI lets me focus more of my work on what matters. I'm saying that as someone who wrote meaningful software before coding agents, including code people still use today. If you think that's just an excuse for not knowing how to code, the open-source contributions above are public. You can judge for yourself.
What I carry from that era
Looking back, what stayed useful was how we understood the problem, chose the boundaries, and gave other people something they could build on. Those are the decisions I want to carry into working with AI.
Change is the one thing we can count on. A good decision leaves room for needs we haven't seen yet. Some may be latent demand: existing needs that the available software doesn't satisfy. We don't have to predict every use case to make room for people to build something new.
That's what I enjoy about engineering. A topological sort is interesting because of the system it makes possible.
I also remember Geraldo Thomaz, VTEX's co-founder, coming back to simplicity again and again. The way I remember his point is:
The key to good software is simplicity. We always need to make things simpler.
Simple and simplistic are different. Removing error handling makes a function shorter; it may make the system harder to operate. Design for Simplicity explains that distinction well.
Side note: while I was working on VTEX Ledger, Geraldo appeared at my desk out of the blue: “Candeia, the accounts must have metadata.” Then he walked away. When he saw my confused face, he pointed at his head. That was it.
I spent days thinking about it. Later, in a technical discussion, he asked if I knew how to solve a problem. It clicked: match identity-provider claims against account metadata to identify the account holder. That same model kept working as identity flows expanded to email, SMS, virtual card numbers, tickets, and more. The list grew; the solution stayed the same. It took me a while to understand, but that was the brilliance: a simple solution to a complex problem.

An illustration of the moment as I remember it.
What a boundary is made of
A boundary defines what belongs together, what it owns, and how the rest of the system can interact with it. For me, defining one means making four things explicit:
- Purpose and vocabulary. Which capability does it represent, and what do its terms mean?
- Ownership. Which data, rules, and decisions belong here? What does it depend on elsewhere?
- Interfaces. Which operations, messages, or events can cross the boundary?
- Guarantees. What can others rely on: valid state changes, authorization, failure behavior, and any agreed performance or cost limits?
The interface and its guarantees form the outward-facing contract. The boundary also tells us which responsibilities belong inside. A bounded context in DDD is a specific boundary around a consistent domain model and language; here I'm also talking about boundaries around modules, APIs, and building blocks.
For an invoice module, that might mean owning invoice state, exposing issue and cancel operations, and enforcing who may use them. An agent can change how invoices are stored or processed while preserving those promises. Defining that freedom is engineering work.
How many building blocks do we need?
For me, simplicity starts with the concepts we ask people to work with. The clarity of our boundaries matters, and so does how many different building blocks we ask people to understand. Ten well-documented ways to do the same thing still leave ten things to learn, debug, and keep consistent.
Perl's TMTOWTDI, pronounced "Tim Toady", comes to mind: "There's more than one way to do it." For me, that becomes hell when a codebase keeps several competing ways to express the same concept. Humans have to rediscover which one applies; agents can copy whichever they encounter and multiply the inconsistency. I want freedom inside an implementation, within clear boundaries.
I want a few strong, orthogonal concepts. Each has useful guarantees, and they compose without taking over each other's responsibilities. A powerful building block can support many use cases. Improving it can benefit all of them.
Think of Unix's familiar “Everything is a file”: many tools work through a shared set of operations. DeepSeek Harness describes itself as “Everything is a Plugin”. I see the same ambition in the resolver we built at deco. These systems have many parts, but adding a part doesn't require inventing an entirely new way for it to belong.
Before adding a new thing, ask which collection it belongs to. Another component, another operation, another provider? By collection I mean a family with shared rules, not necessarily a list in memory. A new member should get the behavior that already exists for the family. It shouldn't need its own lifecycle, configuration, and debugging approach unless its needs justify them.
Build new building blocks on top of existing ones. A login plugin follows the shared plugin interface, then offers a login API that applications can build on. The plugin abstraction handles how it joins the system; the login abstraction handles authentication. Each level adds meaning while reusing the foundation below it. The goal is a few strong concepts at each level, not one building block for the entire system. That's also what makes a small internal developer platform useful: product teams build on shared capabilities and focus on their business.
I think the path toward autonomous agents is to make implementation boring and repetitive. Each new capability should have a familiar place to go, building blocks to reuse, and a result the agent can check. The engineering work is defining those boundaries so the next implementation becomes routine.
Know when to consolidate
Consolidation is how we keep those concepts few and strong as the software grows. Part of consolidating is deciding which collection a capability belongs to, or whether it justifies creating a new one. A provider may fit an existing family, expose a reason to evolve its interface, or need a different boundary. Two proposed abstractions may turn out to describe the same thing.
Difficulty understanding a design doesn't automatically make it complex. Deciding whether to build on an existing abstraction starts with understanding what it can already express. When the system makes that hard to see, creating a new abstraction can look easier than consolidating, even when the existing model could accommodate the change.
I blame the system here. Its concepts, boundaries, and extension points need to be understandable. If people keep taking separate paths because they can't see how to reuse what's there, that's feedback about the system. Making consolidation easier to understand is part of the design work.
I recently wrote on LinkedIn about agents copying an implementation when changing one property or name would have let the existing design handle the new case. Recognizing the shared abstraction would have let future improvements reach both uses.
Consolidation can also be faster. I've seen cases throughout my career where the initial constraints already called for a shared solution. Building within that model took less time than creating a separate path and making it satisfy those same constraints. I can share concrete examples in another post.
I learned a lot about challenging false dichotomies from Guilherme Rodrigues, deco's CEO. Look for a third way that puts the tradeoffs in the right place. I try to challenge myself to find it before accepting the first two options.
At deco, the objections sounded like this: “Let's not use no-code; it'll make the site slow and inflexible.” And from the other side: “Let's not use full-code; it'll delay our changes and be expensive to evolve.”
Our third way put developers where performance and flexibility needed code, and marketing and business users where they needed to make changes themselves. They configured and combined the same building blocks developers created. The design decision was where each kind of work belonged. This was our pre-AI work; deco may approach it differently today, but it was powerful for our use case then.
Prototype quickly, then decide where the proven capability belongs. Accretion leaves another path to maintain. Consolidation gives it a coherent place in the product. Cheap generation makes copying tempting; reviews, incidents, and fixes across several versions are where we pay for leaving it there.
A product is a film of decisions. An agent often starts with a picture of the current tree. History and rationale explain why the collections exist; those decisions also need to be visible in the codebase.
Locality makes the boundary visible
I'm talking about organizing context and responsibilities, not prescribing microservices. This can live in one application. Microservices can force some separation, but you buy distributed-system complexity along with it, and separate deployments don't guarantee good boundaries.
Keep business behavior together, and put shared plumbing in one place. That's the locality I want. Inside invoice/, I want names from the business, with dependencies declared and received as parameters. The shared platform supplies API handling, identity, database access, and scheduling. Each domain uses those abstractions:
platform/
http
identity
database/postgres
scheduler
invoice/
issue
calculate-total
mark-overdue
tests
Ports and adapters helps explain the distinction: ports describe the interactions the business needs; adapters connect them to technology. With dependency inversion, the interfaces follow the business needs. A module receives the capabilities it requires instead of recreating the infrastructure. Where possible, load the inputs at the boundary, pass the data to business functions, then persist the result through the shared abstraction.
I want roughly 90% of product code to express business logic. If plumbing and accidental complexity take more than 30%, I start questioning the design. Those are my rules of thumb, not universal thresholds. The point is to make infrastructure something the application uses, so an improvement to the shared abstraction can benefit every module using it.
This makes adding another member to a collection easier. A new invoice rule can often stay inside invoice/, using the same dependencies. If that change spreads across several domain folders, it stands out in review: are we crossing a real business boundary, or missing an abstraction that needs consolidation? Some changes legitimately cross boundaries. Locality makes that decision visible to both people and agents.
A deployment aside: Google's Service Weaver explored writing one modular application and choosing whether its components run together or separately. I also like Cloudflare service bindings, which let Workers call each other through explicit interfaces without public URLs. These are implementation choices; the point here is how we organize the context.
Shared language
That coherence also depends on meaning. Domain-driven design gives us bounded contexts, where a model applies, and ubiquitous language, the vocabulary developers and domain experts build together.
Here is my challenge: ask several people on your team to describe the same change to an agent. Does "customer" mean the same thing in every prompt? Does "cancel" mean stopping future billing, refunding a payment, or deleting an account? Different wording is fine. Hidden differences in meaning are the problem.
Bruno Dias showed me Don't be a Meat Proxy, which illustrates this well: someone relaying questions and AI answers without adding judgment. Understanding the domain model and its vocabulary gives you something to contribute: you can question the request, notice a missing rule, and judge whether the result makes sense.
I also think a coherent model can make even a “meat proxy” perform better, almost invisibly. Useful meanings and defaults are already there, helping both the person and the agent before they have to rediscover the rules.
Lauren Tan, poteto, said in her AIE Code talk: "anything that requires nuance to use well often leads to slop."

Lauren Tan (poteto), AIE Code.
A building block works until one case forces the caller outside its abstraction. An agent copies that workaround, another treats it as a convention, and the exception spreads like a virus. Lauren's example involved restricting useEffect to framework APIs and checking product code automatically.
I want good defaults that leave room to extend the system. Give legitimate cases a supported path and enforce the guarantees. People and agents should be free to explore implementations without having to rediscover unwritten exceptions.
Agent readiness needs coherence
Our recent work on making the codebase better for agents led me to the open-source Kodus agent-readiness project. It describes 39 checks across seven pillars, including tooling, documentation, naming, and test quality. Those foundations help.
The distinction I care about is essential versus accidental complexity. Making a test runner work removes friction from our chosen tools. Understanding which invoices someone may export requires understanding the business.
I'd make coherence an explicit part of agent readiness. Within a context, the conversation, types, tests, and behavior should express the same model. Agents read the repository as well as the prompt. Conflicting meanings make both less useful.
I'd evaluate this by repeating representative tasks with different prompts and models, checking task completion and preserved guarantees. Similar-looking code tells us much less. Put enforceable rules in types, APIs, and checks; keep the history and rationale that explain why those rules exist.
What about spec-driven development?
You might be thinking: what about spec-driven development? My take is that a spec used only to tell an agent what to do is still a prompt, even if we commit it to the repository. A workflow can add planning, review, and verification around it. But I don't think the amount of documentation AI can generate is the amount we need. If the code already expresses the model clearly, pages repeating it add another thing to keep in sync.
Does that mean we don't need specs or RFCs? No. We still write them at Sable. Bernardo's RFC is exactly the kind of value I mean: I could understand how the system would work without seeing its implementation. I want that design effort when we're defining a new boundary or changing what others can rely on. Keep the reasoning that the code cannot explain by itself.
I want those to be the exceptions. Most tasks should change something that already exists or add another item to a familiar collection. The existing abstractions, examples, types, and checks should carry most of the context. A focused request should be enough to say what's different this time.
Keep the promise, replace the implementation
The part I want to make as deterministic as possible is the behavior at the boundary. Different implementations should keep the same promises. Those include our commitments to consumers and the commitments we rely on from systems underneath us.
Even a UI is a kind of public API. Publish a page and someone can bookmark it or share its address. That URL is a commitment to your audience. When content moves, keep the address working or redirect it to a relevant replacement instead of leaving people with a 404. The implementation can change; the commitment still matters.
Rich Hickey, creator of Clojure and architect behind Datomic, gives a rule I often use in Spec-ulation: "requiring more" or "providing less" can break consumers. A newly mandatory input asks more of them. Removing a promised result gives them less.
The promises at a boundary include authorization, side effects, and acceptable latency. Within it, an implementation change can often be a two-way door: compare the result and roll back. Persistent data and external effects can make even an internal change hard to undo. Verification and reversibility are what earn that freedom.
When unrelated features keep forcing edits to the same shared logic, I question the boundary. Perhaps responsibilities that should evolve independently are mixed together. It's a signal to investigate; deliberately evolving one boundary can also require frequent changes.

Autonomy within the boundary depends on verification and real reversibility.
Promises we can test from the outside
Explicit guarantees make property-based testing easier to apply. Define a rule, then generate cases that try to break it. FsCheck supports .NET, including F#; fast-check supports JavaScript and TypeScript. This form of generative testing doesn't need AI to invent the expected result.
For an API promising idempotency, retrying the same valid payment request with the same key must not create a second charge. We can vary amounts, keys, and retry sequences, and check the same property across implementations.
- 01 · Generate
Vary valid amounts, keys, and retry sequences.
- 02 · Run
Send each sequence through the payment API.
- 03 · Check
One charge per key, even when the request repeats.
↳ If a case fails, shrink it to a simpler sequence that still breaks the promise.
The implementation can change. The property stays.
We still need meaningful properties and inputs. Passing generated tests is evidence, not a proof covering every possible execution.
Outcome-driven development
That gives me a practical way to delegate. Define the outcome, the boundaries and guarantees it must respect, and the cost we're willing to accept. Let the agent try implementations and measure them against those terms.
For an invoice export, correctness includes every authorized invoice in the agreed format. Success might mean reducing cost per completed export while meeting a duration target. An export that drops half the invoices doesn't become an improvement because it's cheaper.
The metric gives the agent a bar and a stopping point. Observability helps it investigate: a trace can show which part of a slow export deserves attention.
Where this request spent its time
Database work accounts for 81% of the duration. Start the investigation there.
Inspect the query plan and the number of database round trips. Test whether batching the reads reduces time, then rerun the same workload.
Accept the change only if the export still contains every authorized invoice in the agreed format, meets the duration target, and stays within the cost limit.
The agent also needs a budget for its experiments, and it shouldn't be able to weaken the checks to make its work pass. Redefining a boundary or changing what counts as success remains a decision about other people's expectations.
Define the target and the limits. Let the implementation change as the evidence improves.
There's much more to discuss about observability, rollouts, and improvements to running systems. I'll leave that for another day.
What we can delegate
Where is the cut? Consider these prompts, setting aside the personal question of what "successful" means.
- "I want to be successful."
There is no clear result the agent can deliver and verify.
- "I want to be successful in the software market."
It might suggest useful ideas. We still need to choose a problem and define success.
- "I want to build a banking system and sell it."
It can help explore the product or build a prototype. The domain rules and business decisions are still too open for a reliable handoff.
- A practical cut: collection + behavior + metric"Add a CSV invoice exporter to our existing exporters. Include every authorized invoice in the agreed format and finish within 2 seconds on our reference workload."
Reuse the shared authorization, storage, and telemetry. Pass the existing exporter checks and stay within the agreed cost limit.
A new member of a known collection, with a measurable target. The agent has a place to put the capability, shared rules to follow, and a way to check the result. If it needs to change those rules or create a new collection, we have another design decision to make. Agents can help us think at every level; how much we can delegate will change as models improve.
Uncle Bob's story about moving from assembly to C comes to mind. He wrote tools to correct assembly generated by an early compiler. I recognize the discomfort of delegating something you know how to do yourself. A coding agent interprets ambiguous requests in a way a compiler doesn't, but the question remains: which details must I control, and which results must I verify?
Owning outcomes and costs
I expect people working with agents to own larger implementations independently. I can already ask Claude to change a colleague's code without the conversation that once helped me understand it. That makes a shared understanding of the boundaries more important. Otherwise we risk productive individuals building incompatible ideas of the same product.
Each owner should define:
- The success measure. The result that should improve and the guarantees that must hold.
- The cost of the solution. Building, running, and maintaining it, including agent usage and human effort.
Instrumentation can automate the calculations. Understanding impact still needs a baseline, sometimes an experiment, and time to see maintenance costs. A cheaper request doesn't settle the question if we now maintain five implementations of it.
A shared platform helps those owners use existing capabilities instead of reinventing deployment, identity, or configuration. The team owns the shared promises. An individual can own an implementation, but someone else must be able to take it over.
There's a human reason for this too. I keep reaching for "blameability," but I mean accountability. As human beings, we can feel consequences, listen to people affected, learn, and choose differently. This isn't a culture of blame. It's how someone answers for a decision and earns trust through what they do next.
Agents can use feedback and retain context. Delegating work still doesn't transfer our responsibility. Trust between the people building a system and those depending on it needs a human owner.
Two technical bets
Event sourcing
My first bet is that explicit history becomes more valuable. In event sourcing, recorded events are the durable business data, and current state is derived from them. Think of ledger movements and a calculated balance. A statement shows the history; the balance tells us where it leaves the account.
Systems may store calculated balances for fast reads. Modern Treasury, for example, defines posted balances from posted entries. Banks don't all have the same architecture. The useful idea is that the recorded movements explain the state. They're business records, rather than diagnostic logs around a value we overwrite.
01 · Recorded movements
| Movement | Amount |
|---|---|
| Deposit | +$1,000 |
| Payment | −$150 |
| Fee | −$50 |
02 · Derived views
Current balance$800After the payment: $850Deposit +$1,000 → payment −$150 → fee −$50
The same records answer “how much?” and “what happened?”
One account, starting at $0. All movements settled. Counter-entries and pending amounts omitted.
That gives people and agents evidence to reconstruct what happened. Replay still needs care: rebuilding state mustn't charge a card again. Schema evolution and duplicate delivery also remain part of the work. For simple CRUD, that effort may be unnecessary.
Datomic, used and developed at Nubank, interests me for its immutable facts and queryable history. It records assertions and retractions, which doesn't automatically give an application domain events. Still, inspecting what was true earlier seems useful for an agent investigating a bug. That's a bet about its value, not a proven agent-performance result.
F# and explicit domain models
My second bet is on languages that make the domain easy to express. F# interests me because the types name the cases and the pipe operator makes composed steps read in order.
type OrderState =
| AwaitingPayment
| Paid
| Shipped
type ShippingError =
| PaymentRequired
| AlreadyShipped
let ship = function
| AwaitingPayment -> Error PaymentRequired
| Paid -> Ok Shipped
| Shipped -> Error AlreadyShipped
let shippingMessage orderState =
orderState
|> ship
|> Result.map (fun _ -> "Your order has shipped.")
|> Result.defaultWith (function
| PaymentRequired -> "Payment is required before shipping."
| AlreadyShipped -> "This order has already shipped.")
let ``an unpaid order cannot be shipped`` () =
let result = AwaitingPayment |> ship
assert (result = Error PaymentRequired)
let ``a paid order can be shipped`` () =
let result = Paid |> ship
assert (result = Ok Shipped)
``an unpaid order cannot be shipped`` ()
``a paid order can be shipped`` ()
Read shippingMessage from top to bottom: take the state, apply ship, map success to a message, then handle errors. |> passes each result into the next function. Discriminated unions make the possible states and errors explicit. Here ship models a transition; it doesn't dispatch a parcel.
Alongside F#, I really like TypeScript. Its type system has gained useful capabilities over the years: additions like satisfies help check interfaces while preserving type inference. That fits exactly what I care about here.
Rust also has expressive enums and pattern matching, along with its ownership and performance benefits. F# is my preference for this kind of business modeling, not a universal winner. Choose for the problem and the people maintaining it.
The instinct reminds me of Go's advice to accept interfaces and return concrete types. Be deliberate about what a consumer needs to know and can depend on.
Where I want to spend my time
I'm still passionate about the problems. AI has changed how much implementation I can delegate. It has also made it easier to accumulate software that nobody has stopped to consolidate.
I want to spend my attention on defining useful boundaries, giving new capabilities a coherent home, and checking that the result is worth its cost. Those are the decisions that let software survive change. Better models may change how I do that, and I'm happy to change my mind.
The Software Design Principles website encouraged me to publish the principles and agent skills I use. Itamar Rocha (Ita), a friend and fellow engineer at Sable who invited me to join, had recommended the skills I was already using. He's very good at finding these tools. Feel free to use the repo or send a PR.
I also have a Brazilian Portuguese podcast, A Forrageira de Turing, about people's careers in technology. We're on a break; the last episode was about three years ago. AI has changed the landscape enough that I'm considering coming back.
This blog was built with AI, and AI helped organize these thoughts. Linear explanations don't come easily to me. Everything here is personally curated, and I'm happy to discuss it in depth. These are my views, not necessarily my employer's.
If you've reached different conclusions, I'd like to hear them.