Skip to content
Developer Blog

The Config Was Fiction

Bogi Bordas

Software Engineer

Part three of three. The rules I wrote down that were never rules at all.

Part one described the pipeline. Part two described what got deleted from it, and why those deletions were the best decisions in three months of work. This part covers the last month of it: two agents writing code and tests in parallel without ever seeing each other's work, then two problems that using the pipeline revealed, one structural and one that had been quietly untrue for months. And underneath all of it, what writing an agent's context actually involves once you accept that nothing is going to ask you for clarification.

As before, a person approves the plan and a person reads the review.

Two agents, one contract

July 2026: parallel e2e. A new agent drafts the e2e test specs while the implementer writes the code. The only thing keeping the two in sync is a short contract in the architect's plan: a list of CSS class names the finished feature promises to expose:


### E2e Hooks
 - `.E2E-context-menu` — root element of context-menu.component.html (new) 
- `.E2E-context-menu-item` — one per menu entry (new)
- `.E2E-page` — existing, reused  }'

 
 

The e2e agent writes against markers that don't exist yet and never sees the implementation. When the specs fail after review, contract drift is the first suspect. Unit tests didn't get the same treatment, and not because tests-before-code is impossible, since TDD proves it works. But TDD is one mind iterating test and code together. Two agents working blind need the contract to carry everything, and for unit tests that contract is the implementation's skeleton: module paths, signatures, collaborators to mock. Three lines of markers can be a contract, but a skeleton is basically the code written twice. The rule is simple: only parallelise what can be specified in a few lines before it exists.

Two problems, both found by using it

July 2026: the order was wrong, and the config was fiction. Two problems came up, both found by using the pipeline rather than by auditing it.

The first was structural. Until July the QA agent was optional, and it ran after the reviewer, whose checklist treats missing test coverage as a blocker. Every new feature hit the same wall. No tests existed yet, so the reviewer blocked. The blocker went to the implementer, whose instructions say writing tests is not its job. One retry later it was still blocked, and the run landed back with me. The pipeline was enforcing a rule it had no way to satisfy.

Now QA is mandatory and runs before the reviewer, so tests are part of the diff being reviewed instead of the thing found missing from it. And that is where the routing rule from part one comes from: coverage to QA, everything else to the implementer.

The second was quieter. Every agent's definition carries its own configuration, frontmatter at the top of its file:

 

---
name: reviewer
model: claude-sonnet-5
maxTurns: 2o
tools: Read, Glob, Grep, Bash
disallowedTools: Edit, Write, WebFetch, WebSearch
---

 

None of it was doing anything. The skills spawned generic agents and told them to read their own definition file, so the model pin was just a suggestion, the tool restrictions were a request, and the stop hook blocking the QA agent from finishing on a stray  .only.

 (the one-word debugging leftover that makes the test runner silently skip every other spec) never once ran. It worked anyway, because the agents mostly did what they were told. Mostly. Registering the definitions properly handed enforcement to the harness instead of relying on good behaviour. Now the reviewer can't touch a file, instead of being asked politely not to.

A rule an agent reads is a suggestion. A rule the harness enforces is a constraint. Nobody here could tell the two apart by watching the system run, which is when the difference matters most.

Writing agent context

None of this works because of the orchestration. It works because of the context files. Every agent reads a shared document laying out the team's patterns, the constraints that can't be broken, and what correct output looks like. Writing that document is the actual labour, and it feels like writing a good spec: you're forced to say out loud everything you'd been assuming. The difference shows up fast:

✗ Follow the existing patterns.
✓ Never use Kendo UI components in widget rendering —
  the backend owns the visual appearance

 
The first is what you'd tell a new hire, trusting them to ask when it gets unclear. The second is what you write when nothing is going to ask.

Centralising that document mattered less for the structure than for what the structure forced: one place where that thinking had to be written down and kept current. While it lived in four separate files, it could go stale for weeks before anyone noticed. In one shared file, you catch it the day it goes stale.

Where this could go

The workflows-versus-agents piece from part one calls this hybrid the right shape, and three months of running it agrees. It names two things the pipeline doesn't do yet.

Observability. No visibility into what a run costs, which agent is slowest, or which tickets trip up the architect. The intuition exists (you notice when something goes wrong) but nothing's tracked. Token counts per agent, failure rates by ticket type, cost per feature: turning that into numbers would also make the case to anyone who hasn't watched the pipeline run.

Model and pipeline routing. The cost fix landed on "Sonnet for everything": solved, but flat. The hybrid model's whole claim is that workflows should handle the predictable eighty percent and agents the twenty that need real reasoning, and this pipeline doesn't act on it yet. A routine annotation type doesn't need the reasoning depth a cross-cutting refactor does, and a one-line validation fix shouldn't run the same full chain as a ninety-three-file widget refactor. Triage first, then route on both axes: a lighter model for the straightforward case, the full model and the full pipeline for the ambiguous one.

And one thing the article doesn't name, because it's ours: fixture debt. The e2e suite runs against real documents, collected by hand into the fixtures directory over time, each reused by many tests. When a feature needs something none of them contains, the e2e agent hits a blocker it can't resolve. The fix is an escalation: check the fixtures directory first, then search the team's maintained library of real PDF forms, which almost certainly holds the real thing. Craft only when neither does.

What changed

Since April, roughly forty of my merged PRs have gone through this pipeline (almost everything I shipped except version bumps and small fixes). What got faster is the part that was always going to get faster: writing the code. What stayed as human as before is the part that was never really about writing code: deciding what's worth building, approving the plan, and calling a feature finished.

What that trade buys is altitude. The if-elses, the array plumbing, the fourth nearly-identical component: the pipeline writes those now, and I don't miss typing them. The attention that used to go there goes to the shape of the feature instead. Diving into the small parts becomes a choice, made when a piece is complex or interesting enough to deserve it, not an obligation every ticket collects in full. And the choice only stays available to someone who kept the whole in their head, which is the same discipline the architect's questions already demand.

The real surprise wasn't the automation. It was what building it demanded: a level of clarity about the team's own conventions, its own definition of "done," that nothing had ever forced before. Most of what got fixed this year (the missing test gate, the ignored frontmatter, the Jira steps that shouldn't have existed) wasn't a pipeline bug. It was something the team had been vague about, made visible by a system that takes instructions literally and can't fill a gap with instinct.

And I should admit the part nobody asked about: this has been fun. Not new-toy fun; the quieter kind, the kind gardeners probably mean. You adjust a prompt after an agent wanders off track, promote one more rule from suggestion to constraint, and the whole thing comes back a little sharper than you left it. Most tools you configure once and then resent. This one grows.

Unexpectedly, it is also relaxing. Human collaboration runs on assumption: most of us don't say what we actually think; we hint, and trust the other person to reconstruct the rest. Most of what goes wrong between people starts there. An agent extends no such courtesy and expects none: if the prompt is straight and true, nothing is misunderstood, and when something is, it's because I wasn't clear. There is something calming about working with the one colleague whose every misunderstanding is reliably my own fault.

If there's a version of this worth trying yourself: one agent, one narrow job, one real task. Read what it gets wrong. Rewrite the prompt, not the output. The complexity is allowed to come later, after something has gone wrong without it.

And if only one thing survives contact with your own setup, let it be the distinction this pipeline took three months to teach: a rule an agent reads is a suggestion; a rule the harness enforces is a constraint. A system that merely complies looks identical to one that is actually bounded, right up until the day it isn't.

References

  1. A Developer's Guide to Building Scalable AI: Workflows vs Agents — Towards Data Science

The pipeline itself was built and iterated on with Claude Code over several months. The numbers and commit history behind this post were checked with its help.