Where do AI agents in CI belong?

AI agents in CI need a job narrow enough that the pipeline can tell whether they completed it. A useful starting design is an agent that executes an approved procedure, observes the resulting output and returns a bounded report. Define its permitted actions, required evidence and stop condition before connecting it to a deployment workflow.

That design comes from a proposal in a Krathos conversation, not a demonstrated production rollout. Adam considered whether a more tightly scoped agent could act as a deployment manager around preset scripts. He also said he would need to experiment. The distinction matters: the recording supports a design to evaluate, not a claim that autonomous deployment has been proven reliable.

For an ecommerce platform lead, the first decision is whether the task benefits from model interpretation at all. A known command and an unambiguous result may need no agent. The candidate role here is interpreting operational feedback within a procedure whose authority remains explicit.

What is the agent responsible for?

Adam's interest began with the possibility of using a more constrained worker inside continuous integration:

"this makes AI a little bit more attractive to use in something like CI." — Adam, on the Krathos podcast

He then described a deployment worker whose skills connect to preset scripts. Its job would be to execute and monitor the deployment, with feedback from the logs. That separates the known procedure from the interpretation of what happened while it ran.

Write that separation into the task definition. Specify which procedure is approved, which inputs it accepts and which evidence the worker must return. If the task is observation, say whether the worker may execute anything or only inspect a completed run. A deployment observer and a deployment executor need different authority even if they produce similar reports.

For a proposed checkout deployment workflow, the report might identify the script invoked, the observed result and any unresolved question requiring human review. This is an illustrative reporting contract. It is not evidence that the recording's authors deployed an ecommerce system this way.

Do not define success as producing a reassuring explanation. Define it using the evidence your pipeline already treats as meaningful. The agent's account should make that evidence easier to inspect. It should not become a substitute for the underlying result or silently redefine what a successful deployment means.

Which actions must remain outside the task?

A fixed procedure stops being fixed if the worker can rewrite it whenever execution becomes awkward. The same problem arises if it can change the acceptance criteria, widen its access or start an unrelated investigation without returning control.

Adam made the desired stopping behavior explicit:

"follow my instructions exactly, and then stop." — Adam, on the Krathos podcast

Turn that preference into a concrete boundary. List what the worker may invoke and what it must leave alone. Define the response to a failed command, missing input or ambiguous result. For an initial evaluation, a useful default is to return the evidence and the unresolved issue instead of authorizing an open ended repair attempt.

Keep those limits in the execution environment as well as in instructions. A prompt describing restricted behavior is not itself a permission system. The system launching the worker should provide only the tools and access appropriate to the approved task, and the result should be checked before the surrounding workflow acts on it.

The recording does not provide an implementation of those controls. They are proposed engineering requirements for evaluating the idea. Their purpose is to make a worker's deviation observable and containable instead of relying on its ability to remember a request to be careful.

This also clarifies ownership. The engineer responsible for the deployment procedure remains responsible for changing it. The agent can report an unexpected condition, but that report does not automatically confer authority to edit the procedure or decide that the condition is acceptable.

What context should the worker receive?

The proposed deployment worker did not need the entire history of a feature discussion. It needed the procedure it was executing and enough relevant context to interpret the resulting feedback. Start there, then add information only when a representative task shows that it is necessary.

Adam linked his interest to work being more predefined:

"using an agent for something that is more predefined like that allows you to really sandbox it." — Adam, on the Krathos podcast

That statement expresses his design preference. It does not establish that context scoping creates a technical sandbox. Keep the distinction visible when translating the idea into a pipeline: task context describes what the worker should do; execution controls determine what it can do.

A task package should explain the approved procedure, the expected report and the treatment of uncertainty. Point it to the relevant runbook if the procedure requires background knowledge. Exclude unrelated product objectives that might encourage the worker to expand the assignment in order to make a release succeed.

The companion guide to AI agent context isolation describes how to select that material. For CI work, the key test is whether the context helps the worker interpret evidence without inviting it to invent a new deployment plan.

How can you evaluate the idea before trusting it?

Begin with a setting where a mistaken interpretation cannot authorize an unintended release. Give the worker representative completed runs or a controlled test procedure. Have an engineer define the expected result before comparing it with the agent's report.

Include a normal completion, a known failure and a case with insufficient evidence. These proposed cases test different responsibilities: recognizing completion, reporting a failure faithfully and refusing to turn uncertainty into success. If the worker produces a confident summary for all of them, the summary alone is not a useful control.

Inspect actions as well as prose. Confirm that the worker invoked only the permitted procedure and stopped when its assignment ended. Record any extra investigation, attempted modification or unsupported conclusion. A good report does not cancel an unauthorized action taken on the way to producing it.

Evaluate the smallest role that has practical value. An observer may help engineers understand logs without receiving deployment authority. If observation is the useful part, there is no need to grant execution rights merely because the design discussion used the term deployment manager.

Keep a clear decision at the end of the trial: what did the worker add, what did it get wrong and what authority would the next trial require? The recording gives you a focused hypothesis worth examining. Your own evidence must determine whether the resulting worker belongs in the pipeline and where it must hand control back.

Frequently asked questions

What is a narrow starting role for an AI agent in CI?

A candidate role is observing a known procedure and reporting its output against a defined contract. Test whether that interpretation adds value before granting execution authority.

Should a deployment agent repair a failed run automatically?

Repair should require its own explicit authorization and boundaries. In an initial evaluation, have the worker return the failure evidence and unresolved question rather than expand the assignment.

Was this deployment design proven in production?

The recording presents it as an idea Adam wanted to experiment with. It supports an evaluation hypothesis, not a claim of demonstrated production reliability.