Skip to main content

Published November 13, 2026

Accountability for Agentic Workflows, and the Kujo tooling that makes it possible

A checklist, a shield, and software tools.

There's a problem with autonomous AI agents that gets worse the longer you let them work.

An agent can spend forty minutes modifying a repository, running commands, creating files, and explaining what it accomplished.

At the end, you get a summary. The agent tells you what changed and which tests passed. It might even tell you that everything is ready to ship.

But how much of that can you independently verify?

Did it actually run the tests?

Did it modify files outside the scope of the task?

Was the implementation checked against the original requirements, or did the agent quietly change its interpretation halfway through?

What happened during the failed attempts?

And if another agent needs to continue that work tomorrow, how does it know which parts of previous agent's explanation are supported by evidence?

These questions become so much more important when you move beyond individual coding sessions and into autonomous workflows involving multiple agents.

I've been spending a lot of time thinking about this problem while building Kujo.

The more autonomy we give agents, the more imperative it becomes to understand what happened while they worked.

That's the problem I'm working to solve with accountability for agentic workflows.

Accountability workflow overview. Plan, Run, Verify, and Record form a cycle around the Kujo ecosystem.

The problem with trusting the final answer

Think about how we already handle human-created software.

A developer finishes a feature and they open a pull request.

We inspect the diff, review the tests, check the build, examine the commit history, and decide whether the work meets our standards.

We don't have to accept the dev's explanation as sufficient evidence.

Now imagine replacing that developer with an autonomous agent.

The agent can perform many of the same activities. It can read the repo, write code, run tests, and prep changes.

But agents introduce a new type of complication.

The same system performing the work is often the system telling us whether the work was successful.

It decides what to do and how to do it.

And unless we've built additional controls around it, it can effectively decide that the result is good enough.

That creates a fairly obvious accountability problem.

Imagine a construction company allowing a contractor to inspect and approve their own work, without requiring measurements, inspection reports, or records of what was installed.

The contractor might be excellent and the building might be perfectly safe, but the owner has very little independent evidence to establish either of those things.

Software agents have a similar problem.

We need ways to define what success looks like before the work begins, control the environment where the work happens, independently examine the results, and preserve a record of what actually happened.

That's the mental model I'm building around Kujo.

Four stages: Plan. Run. Verify. Record.

Each stage has its own responsibilities, and each one uses different tools within the Kujo ecosystem.

Plan. Spec defines the contract, Eval defines the checks, and Workcell defines the execution environment.

Plan: Define success before the work begins

One of the easiest mistakes to make with AI agents is giving them a task without clearly defining what a successful result should look like.

Take a simple request:

"Update the authentication system to support a new login provider."

A capable agent can probably figure out how to begin. It can examine the existing auth code, find the relevant deps, and start implementing the integration.

But there are questions that request doesn't answer.

  • Which authentication flows must continue working?
  • What happens to existing sessions?
  • Which files is the agent allowed to modify?
  • What security checks need to pass?
  • Is it allowed to install new dependencies or access external services?
  • What evidence would convince us that the change is complete?

An agent can make reasonable guesses about all of these, and that's also how problems start.

A guess becomes an implementation decision, then the decision becomes code, and eventually the code becomes something another agent or dev assumes was intentional.

The first part of accountability is making these expectations explicit.

In Kujo, three tools help establish that foundation.

Spec defines the task

It gives us a structured way to describe the goal, scope, acceptance criteria, and expected outputs.

Instead of relying entirely on an open-ended instruction, we can establish what the agent is supposed to accomplish.

Eval defines the evidence

It helps establish how the result will be evaluated, using expected outcomes, repeatable test cases, and checks that can be performed independently of the agent's explanation.

Workcell defines the execution boundary

It establishes where the work can happen, what resources are available, and which filesystem, network, and runtime constraints apply.

The agent shouldn't get unrestricted access to a machine just because it needs to modify a few files.

Together, these tools give us power before the first command is executed.

A reviewable agreement about what needs to happen, how we'll check it, and where the work is allowed to take place.

If the result doesn't meet the original requirements, we have something concrete to compare it against.

If the agent attempts to exceed its authorized environment, there are boundaries designed to constrain it.

And when it's time to review the work, we aren't trying to reconstruct the meaning of a vague instruction from 40min earlier.

We already have the expectations.

Run: Let the agents work within defined boundaries

Run. Dispatch coordinates the steps, an agent works within declared controls, and Watchdog monitors execution.

Once the work has been defined, the next question is how should we execute it.

And this gets tricky when there's subagents ... or if a swarm is involved.

Imagine an agent responsible for implementing a feature, another agent needs to review it, and a third might run a separate security eval.

The work might involve multiple repos, different models, external tools, and several attempts before everything passes.

Some steps can happen in parallel, while others depend on earlier results. Just like some failures can be retried, while others should stop the workflow and require a decision.

You need a way to coordinate all of that without losing control of what's happening.

That's where Dispatch and Workcell come into the picture.

Dispatch coordinates the workflow.

It routes steps, manages dependencies, tracks execution state, and supports structured handoffs between stages of work.

It gives us a way to describe and execute workflows that are more involved than a single agent receiving a prompt and returning an answer.

Workcell provides the execution environment.

Agents operate inside configured boundaries rather than getting unrestricted access to the surrounding system.

Resource limits, timeouts, workspace access, network policy, and artifact handling become part of the execution model.

The agent itself can still use models and tools to accomplish the task, but it can only operate within controls defined outside its own reasoning.

There are also decisions that shouldn't be made automatically.

Maybe an agent needs access to a protected resource, or it wants to change something outside the approved scope. Or maybe a step exceeds its budget or encounters a failure that requires human judgment.

An accountable workflow needs to handle those situations explicitly.

  • Pause when approval is required
  • Preserve the state of the work
  • Make the decision visible
  • Resume when the required auth or corrective action is available

This is something I've been thinking about a lot while working on autonomous software factories.

I don't want to approve every tool call an agent makes.

That would defeat much of the purpose of automation.

I want the agent to perform the work it's authorized to perform, while the surrounding system enforces the limits we've established.

The agent can be autonomous without having unlimited authority.

And when work moves between agents, the next participant should inherit structured context and recorded results rather than relying entirely on a conversational summary.

That becomes increasingly valuable as workflows grow.

Verify: Examine the work independently

Verify. Eval checks requirements, ShipCheck checks release readiness, and Watchdog supplies runtime evidence.

This is where I think a lot of current agent workflows are the weakest.

An agent completing a task and reporting success may be enough for a quick experiment.

But if we're going to depend on autonomous systems to build and maintain software people and companies rely on, we need much stronger evidence.

Consider an agent implementing a new API endpoint.

  • It writes the code
  • It runs a test
  • The test passes
  • Then it reports that the feature is complete

But what does that actually establish?

The test might only cover the happy path while the endpoint can violate an architectural requirement.

The agent might have introduced an unexpected dependency or modified unrelated files.

Or maybe the code could be functionally correct while the execution process exceeded its approved boundaries.

A passing test tells us something, but it doesn't tell us everything.

That's why Kujo approaches verification through several complementary tools.

Eval examines whether the result meets the expected criteria

It provides a way to execute checks, compare outcomes, and collect evidence against the standards established earlier.

And the eval can be defined and inspected separately from the agent's own assessment.

ShipCheck examines whether the repository is ready to ship

It looks at release readiness, checks, blockers, and the conditions required to proceed.

An implementation can look correct while the repo still has reasons it shouldn't be released.

Watchdog examines what happened during execution

It provides runtime observability, including traces, latency, token usage, and failures. This helps answer a different set of questions.

  • How did the workflow behave?
  • Where did it encounter problems?
  • How much did it consume?
  • Which steps failed?

These are three different views of the same work.

Eval examines the outcome. ShipCheck examines release readiness. Watchdog examines execution behavior.

Imagine a feature that passes its functional checks but introduces a release blocker. Or a workflow that produces the expected output after repeatedly exhausting its budget and retrying failed operations.

Those situations deserve different responses.

Verification gives us the info necessary to make that distinction, and it also gives us a better foundation for deciding what happens next.

  • Should the work proceed?
  • Should the agent revise its implementation?
  • Should the workflow be retried?
  • Should a human examine something specific?

The decision can be based on recorded evidence rather than the agent simply saying it's done.

Automated verification is only as useful as the checks and expectations we define.

A passing eval doesn't prove that every possible defect has been eliminated, but it does establish something we can inspect, repeat, and compare.

That's a better starting point than an unsupported statement of success.

Record: Preserve what actually happened

Record. RunLedger ties changes, tests, tools, and results to the run for later review.

There's another problem that shows up when agents begin working for longer periods of time ... they forget (a lot).

The context available to the next execution doesn't necessarily contain everything that happened during the previous one.

A session ends, a model changes, an agent hands its work to another agent, and then a dev returns to the repo 3 days later.

The final code might still be there, but the reasoning, failed attempts, test results, and execution history can be near impossible to reconstruct.

Traditional software development has several ways to preserve history.

  • Git records code changes
  • CI systems preserve build results
  • Issue trackers record decisions
  • Observability systems collect operational information.

Agentic workflows need similar records, including information specific to the work performed by agents.

That's where RunLedger comes in.

RunLedger records structured receipts for execution attempts

A receipt connects the work to its repo and commit, identifies the agent and model involved, preserves recorded changes and results, and includes the verdict and follow-up information.

Instead of treating the agent's final message as the authoritative history of a task, we can examine the recorded facts.

That makes several things possible.

  • We can compare attempts to understand what changed between them
  • We can inspect which tests were recorded and what results they produced
  • We can examine the relationship between a particular run and the repository state it operated against
  • We can provide a more concrete handoff for times another agent needs to start worknig

The record becomes especially important when something fails.

Imagine an agent attempts a migration three times. The first attempt fails because of a dependency conflict. The second changes the dependency but fails an integration test. And then the third succeeds.

Without a useful execution history, someone reviewing the result might only see the final implementation and success message.

With recorded receipts, we can examine the attempts and understand how the work developed.

That information can help with debugging, auditing, evals, and improving future workflows.

A structured local JSON receipt makes the execution history inspectable, but the file format alone doesn't provide tamper resistance.

Stronger guarantees require additional mechanisms for integrity, provenance, and storage.

The goal is to hold agents accountable, with guarantees that are clear about what they actually establish.

Accountability becomes more important as agents multiply

Everything we've discussed becomes more complicated when you move from 1 agent to 10 ... or 1000+ agent swarms

A single agent working on a well-defined task is pretty easy to supervise. You can review its changes, read the conversation, and run the tests yourself.

Now imagine an autonomous software factory coordinating twenty agents.

Some are implementing features, while others are reviewing code. There's also agents that are updating documentation, preparing releases, or examining security issues.

  • Tasks depend on other tasks
  • Results move between agents
  • Failed attempts create new work

And the system is expected to continue operating without someone watching every individual decision.

At that point, accountability can't depend on someone remembering to ask the right questions at the right time.

It needs to be part of how the system operates.

The expectations should exist before the work begins. The execution boundaries should remain in place while the work happens. The results should be evaluated against defined criteria.

And the evidence should survive beyond the agent session that produced it.

That's also why I've been building these capabilities as separate tools.

Spec, Dispatch, Workcell, Eval, ShipCheck, Watchdog, and RunLedger each address different parts of the problem.

Individually, they are great. But the real power comes from when they operate together.

A workflow can be planned with explicit acceptance criteria, executed within controlled environments, evaluated using independent checks, and recorded in a format that supports later inspection.

The surrounding ecosystem also includes tools such as CaseFile and Lens for working with evidence and making the resulting information easier to examine.

The tools don't eliminate mistakes, but they give us better ways to discover, contain, understand, and learn from them.

And that changes the kind of autonomy we can reasonably support.

What I'm trying to build with Kujo

I think we're going to see a substantial increase in the amount of software produced by autonomous agents. Even more than what we're seeing now (which is a lot).

Some of it will come from individual devs running agents in their editors.

Some will come from teams coordinating multiple specialized agents.

And some will come from software factories capable of handling entire development workflows with limited human intervention.

The models will continue improving and the agents will become more capable. The amount of work they can perform without supervision will definitely increase.

But all of that creates another requirement.

We need to be able to establish what those systems actually did.

If an agent says it completed a task, I want to examine the evidence.

If it says the tests passed, I want the recorded results.

If it claims the implementation is ready to ship, I want to see which checks support that conclusion.

If it exceeded an execution boundary, I want that visible too.

And if another agent picks up the work later, I want it to have access to the recorded state and results instead of reconstructing the past from a summary.

That's the direction I'm taking Kujo. Building tools that make agentic work easier to define, control, evaluate, and inspect.

I don't expect every dev to use every tool on every task, because a small experiment doesn't need the same controls as a production deployment.

But as the consequences of an agent's work increase, the surrounding accountability mechanisms should be able to increase with them.

The success rate of our autonomous software development is going to depend on how much work we can reliably let agents perform without having to personally inspect every decision.

And I think that requires something more reliable than trusting an agent's final answer.

Trust at the Speed of AI - Learn more at kujolang.ai

Originally published on X

Related Reading