Skip to content

CI/CD for agentic development: from change to controlled release

A software artifact passes through an approval gate between testing and production, with a separate rollback path.

Series II: From infrastructure to agentic projects in production. Episode 13 of 20.

A programming agent has prepared a CSV export—a tabular file with values separated by delimiters—for the series' fictional B2B portal. The code passes the tests, and the dependencies have been checked. One question remains: how does this change get to production, with the same evidence in place and with a person approving the launch? For an SME, this episode proposes an automated verification and version preparation flow, followed by explicit approval for production deployment.

What we automate with CI/CD

CI, continuous integration, means frequently merging changes into the shared codebase, along with automatic builds and tests. A pipeline is the series of steps and conditions that run these operations. Automated checks on a branch help, but practice also means actually integrating, not just keeping lots of separately tested branches.

Continuous delivery, aims for the software to be ready for release, with a repeatable process. The release decision can remain a human one. Continuous deployment, fully automated deployment, puts changes that pass pipeline checks straight into production, without separate human approval for every launch. Since the abbreviation CD can mean both, we specify which one we mean.

Martin Fowler explains the distinction, which is also addressed in research on continuous practices. Shahin and co-authors’ academic review, published in 2017, identifies testing, team transparency, and suitable infrastructure among the key factors. It’s a conceptual reference predating current agents, not proof that automation will benefit our portal in a certain way.

A concrete flow for CSV export

We use a hypothetical scenario, with no results assigned to an actual client. The agent developing the portal proposes the change in a pull request, a request to integrate code. The requirements specify which columns are exported, preservation of diacritics, and access only for requests from the user’s organization. The team sets up checks before integration.

Proposed stage

What we check

What allows continuation

Merge request

Code difference, tests, dependencies, and pipeline configuration

Required reviews and checks must pass

Building the integrated version

Final commit, application image, component inventory, and provenance

Identified and verified artifact

Preproduction environment

Export, authorization, and configuration compatibility

Integration and acceptance tests passed

Production approval

Evidence, risks, and rollback plan

Appointed person's decision

Install and post-release control

Installed version and essential functions

Confirmation of operation or halting the release

Preproduction, also called staging, is a verification environment close to production, but without using unnecessary real data. Tests on the merge request don’t replace checking the final version: merging other changes can affect the result. We build and test the release candidate from the integrated commit, meaning the exact version saved in the code repository.

Same artifact, environment-appropriate configuration

An artifact is the resulting package from building—such as the application container image. We recommend promoting the same verified artifact from pre-production to production. We identify it by a digest, a cryptographic fingerprint of the content, and maintain links to the sources, tests, and the SBOM inventory, the structured list of software components discussed in the previous episode.

We do not rebuild on the production server using dependencies that might change in the meantime. Secrets and environment configuration are provided separately. This approach requires the application to allow runtime configuration. If certain values must be fixed at build time, we document the difference and test the artifact intended for production; we do not claim that two different packages are the same candidate.

The release sheet records the execution identifier, commit, digest, environment, tests, and approver. After installation, we read the version actually running. The “latest version” label is insufficient to demonstrate which package was delivered to users.

Approval must be enforced by the platform.

The agent can modify the application and suggest pipeline adjustments, but its rights must not allow it to bypass mandatory checks or change approvers. The delivery configuration is also code and requires review. The team’s policy defines who manages protections and who can authorize an exception.

GitLab offers approvals for protected environments in Premium and Ultimate editions, as documented. Approval does not automatically start the related job, i.e., the install task; this must be started manually. In GitHub, required approvers for environments have availability conditions: for Free, Pro, and Team plans, they are only available in public repositories. We check the plan and platform version before designing a workflow around a certain feature.

A simple “run manually” button is not equivalent to an independent approval. We test who can trigger, approve, and bypass each control. If the chosen platform doesn’t provide the necessary protection, we set up an alternative mechanism with limited rights and evidence of approval, then verify its behavior.

Separate identities and controlled executions

The code testing stage does not receive production credentials. The authorized installation stage receives only the access needed for that specific environment. A runner, the process or machine that executes pipeline stages, must be managed as part of the project’s infrastructure. The name of a protected environment does not guarantee isolation for the machine executing code.

For the portal, we propose clean execution spaces and separation between jobs running unverified code and those deploying approved versions. We avoid simultaneous releases in the same environment and ensure an older execution cannot overwrite a newer version. The rules are necessary whether the agent works in an IDE, terminal, or the cloud.

Release doesn’t end at a green job

After installation, we check that the application starts, services respond, and essential behaviors work. For CSV export, we verify a request with diacritics, an authorized user, and access denial from another organization—using appropriate test accounts and data. We keep the results and assign someone to monitor errors during the verification window.

An Rollback means reverting to a previous version. We keep the prior artifact and installation procedure, but reverting the application does not automatically undo changes to data. A migration is a modification to the database’s structure or content; deleting a field can render the old version unusable.

For schema changes, we recommend compatible steps: add the new structure, adapt the application, and only then remove the old one. We test compatibility and the recovery plan before release. Restoring a backup might lose later changes, so it’s not an automatic substitute for code rollback. If verification fails, the responsible party halts further steps and chooses remediation appropriate to the actual state.

The result is a CI/CD sheet with stages, evidence, and approvals. Agents building the portal use this workflow; agents later integrated into the application are product components, each with a distinct identity. The next episode will explain observability—how we learn what happens after release, and when to intervene.

Sources

Sources verified as of October 14, 2026:

Prepare a verifiable CI/CD workflow

Want a verifiable release workflow for code written by both humans and agents? Talk to i8 about CI/CD, protected environments, and acceptance criteria.