Back to Insights

    I Built an Agentic QA KIT. Code Wasn’t the Hard Part

    Peter Berger ·

    The first time an AI coding agent solves a difficult bug, it feels like the future of software development has arrived. It reads unfamiliar code, proposes a change, writes tests and produces a tidy explanation. Sometimes it does all of that remarkably quickly.

    Then someone asks the questions that actually decide whether the work can be shipped.

    Did it understand the requirement? Did it change the right behaviour? Was the test meaningful, or did it only confirm the agent’s own assumption? Was the result checked in the correct environment? What happened when the reviewer disagreed? Can another engineer pick up the work without reconstructing an entire chat transcript?

    Those questions are why I started building an Agentic Development & QA KIT. I did not want a bigger prompt that tells an AI to act like a senior engineer. I wanted a repeatable workflow that connects a real ticket to a reviewable engineering result, with visible evidence and explicit decisions along the way.

    The distinction matters: an agent producing code is not the same as a team delivering software.

    The missing part of the AI coding story

    Most AI coding demonstrations begin with a well-formed task and end with working code. Real teams begin somewhere messier: a bug report, an acceptance criterion that leaves things unsaid, an existing repository, an environment that may be unreliable, and a release that cannot wait indefinitely.

    The coding step is often no longer the biggest problem. The bigger problem is what surrounds it: understanding the work, containing the change, checking it, recovering from failure and deciding whether the evidence is good enough.

    I approached the problem from both sides of engineering. Development agents need enough freedom to investigate and implement. QA needs enough independence to challenge the result. Neither should be allowed to declare its own work production-ready simply because a build is green.

    That became the operating principle of the KIT: increase execution capacity, but keep acceptance grounded in independent evidence.

    One ticket, an actual workflow

    A useful agentic workflow should have an identifiable start and finish. The starting point is a work item, not a loose chat instruction. The finish is a traceable result or an honest explanation of why it could not be completed.

    The intended path looks like this:

    1. Ticket or engineering task.
    2. Understand context and scope.
    3. Plan and identify risks and decision points.
    4. Implement in a controlled workspace.
    5. Run relevant tests and collect evidence.
    6. Independent review and security checks.
    7. Rework if evidence is insufficient.
    8. Reviewable PR, evidence and a human decision.

    This is not a promise that every ticket travels through every step without human involvement. Some runs are blocked by missing access, ambiguous requirements, an unstable test environment or a legitimate review finding. Reporting that accurately is part of the workflow, not a failure of the concept.

    The KIT is organised around reusable commands for different classes of work:

    • /task: take a defined engineering task through planning, implementation and verification.
    • /bugfix: investigate a reported defect, isolate its cause and prepare a tested, reviewable fix.
    • /bugbatch: coordinate bug work across a group of tickets while keeping each result traceable.
    • /bugretest: re-evaluate a claimed fix against the original failure and relevant regression risk.
    • /featuretest: structure feature-level QA from requirements, product context and available execution evidence.
    • /qabatch: organise multiple QA checks or retests without losing the status of individual tickets.

    These are not six unrelated prompts. They are ways into a shared orchestration and verification model. They are also at different levels of maturity. Bug-fix work has been exercised repeatedly on real engineering tickets; some QA paths have had less live usage and continue to be validated. I would rather make that distinction than imply that every capability is equally proven.

    The orchestrator matters more than the number of agents

    Adding agents is easy. Making them agree about the state of the work is not.

    An implementation agent may believe a fix is complete. A test run may be green, but from an earlier commit. A reviewer may reject a change after the developer has already moved on. A background process may restart and lose the context of which ticket it was handling.

    The KIT therefore has an orchestration layer rather than relying solely on a conversation history. It tracks stages of work, captures decisions, attributes evidence to the relevant run and change, and uses workflow gates to prevent a premature declaration of completion.

    This also changes what an agent is asked to do. Instead of “fix this and tell me when you’re done”, the instruction becomes “produce the evidence needed to advance this work to the next stage”.

    A successful terminal message is not evidence. A test result tied to the right change is evidence. A reviewer approval that applies to the current code, rather than an earlier revision, is evidence. A clear blocker is also useful evidence, because it stops the team treating an untested assumption as a pass.

    Independent review has to be independent in practice

    There is a subtle problem when the same model writes the implementation, writes the tests and explains why both are correct. The code and tests can share the same misunderstanding. Ten passing tests do not help if all ten test the wrong interpretation of the requirement.

    The KIT separates implementation work from independent verification. A reviewer should challenge the change against the task, the actual diff and the available evidence, not simply accept the developer agent’s confident summary.

    In practice that means checking several distinct things:

    • Requirement fit. Does the change address the behaviour the work item describes, including important edge cases?
    • Implementation risk. Are there regressions, incomplete paths, unsafe assumptions or unnecessary changes?
    • Test validity. Do the tests exercise the disputed behaviour, or merely the happy path?
    • Security and permissions. Has the change introduced an unsafe data or access boundary?
    • Evidence integrity. Do the reported results actually belong to the code under review?

    A finding can send the work back for another pass. The important thing is that “reviewed” is not a decorative label added to the end of an agent’s output. It is a separate decision, with its own supporting evidence.

    Why the QA half cannot be an afterthought

    When development gets faster, QA does not become less important. It becomes the point at which the system finds out whether speed produced value or simply more change.

    A bug fix needs more than proof that the relevant line of code changed. It needs an attempt to reproduce the original failure, an execution path that verifies the correction, and enough regression checking to identify plausible side effects. Where runtime verification is unavailable, that limitation should remain visible.

    For feature testing, the starting point is the expected behaviour, but the strategy should not stop at the acceptance criteria. The important questions include what happens when data is missing, an API fails, a user has different permissions or a process is interrupted halfway through.

    I do not want a QA agent to generate the largest possible test report. I want it to answer four questions clearly: what was checked, what passed, what failed, and what remains unknown? The detailed logs and artefacts can sit behind that summary for anyone who needs to investigate.

    Batch workflows introduce another challenge. Parallel execution is useful only if test accounts, data, environments and results remain isolated enough to trust. Increasing concurrency without solving those boundaries just produces more ambiguous failures. That is an active area of refinement rather than a finished claim of unlimited parallel QA.

    Security is a workflow design problem

    Telling an agent “do not do anything dangerous” is not a security architecture.

    The KIT has been designed around role-focused permissions, controlled integrations and human approval boundaries. For example, reading work-item context is a different privilege from changing a ticket, and proposing a code change is a different privilege from merging or releasing it. Sensitive operations belong behind separately controlled paths, not in the default toolset of every agent.

    Some controls are implemented through the runtime and installed hooks rather than left only to prompt instructions. The integration and permission model continues to be hardened as the KIT is made more portable. I would not describe an agent operating in a governed workflow as being entitled to unrestricted autonomy.

    The useful distinction is between autonomy to investigate and prepare work and authority to approve its consequences. The first is where agents create enormous value. The second still needs deliberate ownership.

    An example without the project-specific details

    Consider a generic application bug: a list screen displays inconsistent results after the underlying records change.

    A shallow AI interaction might search for the list query, modify it, run the unit tests and say the bug is fixed.

    A more useful KIT-style run would ask what the user observed, how the application is meant to behave, which data path is authoritative and whether the problem can be reproduced. It would identify the relevant implementation, make a bounded change, and look for a test that distinguishes the broken behaviour from the corrected one.

    Next comes the important part. An independent reviewer checks whether the change actually covers the failure mode, whether the test is meaningful, and whether the fix might break a related path. If the test environment is unavailable, the output should say so rather than quietly promoting a code-level check into a verified end-to-end pass.

    The illustration is deliberately generic. The engineering method is the point, and it should be explainable without exposing anyone’s application, credentials, tickets or source code.

    The hard lessons came from running it

    The most useful discoveries did not come from polished demos. They came from real executions that were slower, less predictable or less trustworthy than I wanted.

    • Permission friction can consume the time that AI saves. An agent that pauses repeatedly for routine tool approvals is not a productive autonomous worker. Permissions must be scoped carefully enough to remove avoidable interruptions without handing the agent excessive authority.
    • Green checks can be misleading. It is easy to spend time repeatedly running an unchanged suite or treating a static code review as proof of runtime behaviour. Verification should be appropriate to the change, and the report must distinguish what was executed from what was inferred.
    • State and installation drift are real engineering defects. A workflow can behave differently depending on which configuration, worktree or installed hook it resolves. A single authoritative source, reproducible installation and observable runtime state matter more than another clever instruction file.
    • Review loops need limits and reasons. A reviewer that rejects a change without a useful, actionable finding is not improving quality. An agent that repeats the same work without new evidence is not making progress. Both cases need to be visible and bounded.
    • A live activity feed is useful, but it is not a substitute for audit evidence. Seeing what the agents are investigating helps a human collaborate and intervene. The final decision must still rely on the correct artifacts and checks.

    These lessons have shaped the KIT more than any single coding model. They also explain why building a reliable engineering system around agents takes longer than building an impressive demonstration.

    What has been demonstrated, and what is still in progress

    This is not a concept slide. The KIT has supported real ticket-based engineering activity, particularly bug investigation, implementation, test execution, review and preparation of pull requests. Its workflow commands, orchestration components, security checks and execution feed have also been exercised through automated tests and selected live runs.

    At the same time, there is work left to do. Validation depth differs by workflow. Portability across unrelated repositories and toolchains needs broader end-to-end evidence. Permissions, unnecessary repeated work, concurrent QA execution and isolated test data remain practical optimisation problems.

    I deliberately do not publish a percentage productivity gain here. A count of agent runs or passing tests is not a fair measure of engineering impact. The measurements I care about are accepted changes, time spent waiting for a human, avoidable rework, meaningful runtime verification and defects that escape review. Those need consistent baselines before they become marketing claims.

    The KIT is a working, evolving engineering approach, not a magic button that turns any backlog into production releases.

    Where I want to take it

    The next step is not to create more roles for agents to play. It is to make the existing workflow more efficient and easier to adopt: a dependable installation model, better selection of tests based on change risk, stronger isolation between concurrent runs, clearer evidence and less unnecessary token and tool usage.

    I also want the core to remain project-agnostic. A good orchestration model should not be permanently tied to one issue tracker, one repository, one application stack or one customer’s workflow. The long-term goal is to reuse the same engineering controls across different delivery modes without weakening the ticket-driven process that already works.

    That portability is a direction of development, not a claim that every integration is finished today.

    The point is not to remove the engineer

    I am often asked whether agents will replace developers or testers. Building this system has made me more interested in a different question: what should engineers stop spending time on, and what decisions must they continue to own?

    Agents are very good at sustained investigation, repetitive verification, drafting changes and preparing evidence. Humans are still responsible for product judgment, ambiguous requirements, risk acceptance and release decisions. Good orchestration makes that division explicit.

    If your organisation is experimenting with AI coding agents, autonomous QA or governed delivery, I would be interested in comparing real failure modes, reviewing workflows or running a focused pilot. I am especially interested in collaboration with teams that care about engineering quality as much as delivery speed.

    Building code faster is useful. Building a system that can demonstrate why the code is ready is the more interesting problem.

    Want help putting this into practice?

    Talk to us about where your engineering organisation stands today, and what it would take to adopt agentic delivery safely.

    Get in touch