---
layout: ../../layouts/BlogPost.astro
title: "Give your agent one deployment language to learn"
description: "Make shared deployment mechanics predictable for an agent while keeping project-specific differences explicit."
slug: blog/give-your-agent-one-deployment-language-to-learn
published: "2026-12-03"
image: /images/shared-deployments-cover.jpg
imageAlt: K.O.R.A. oversees an automated deployment line carrying packages between servers.
---

*This article is part of [Can an Agent Really Own an Ecosystem?](/blog/can-an-agent-really-own-an-ecosystem), a series about building an agent that can take responsibility across an ecosystem.*

My deployments used to be a collection of individual expressions of creativity. Unfortunately, K.O.R.A. was the one who had to interpret them.

Projects with similar stacks had different commands, different assumptions and different ways of reporting what happened. Some differences were necessary. Others were simply the result of having built things at different times and apparently believing I would remember why.

K.O.R.A. had permission to deploy, but permission doesn't tell her which slightly different set of steps a project expects. I needed to make the deployments themselves less of a guessing game.

## Share the mechanics, not the assumptions

A website and an API may both need their dependencies installed, their output packaged and their release delivered. They don't necessarily produce the same artifacts or run the same build.

Keep the project-specific facts close to the project: how to build it, what the output contains, which environment is intended and what the deployment needs to run. Put genuinely shared mechanics—validation, packaging, delivery and status handling—in a common implementation.

For example, a project might supply something like this:

```yaml
# Illustrative inputs, not a K.O.R.A. configuration file
kind: service
build: npm run build
output: dist
entrypoints:
  - dist/server.js
```

The shared deployment code can validate those inputs and handle the delivery. A frontend project can select a different variant with its own output. Neither project needs to pretend it is the other.

The differences should be visible in the inputs. Otherwise you end up with a shared script full of project-name exceptions, which is just the old mess wearing a name tag.

## Treat the shared machinery as a dependency

Centralizing a deployment step means one correction can benefit multiple projects. It also means one mistake can reach multiple projects.

Version the shared implementation and choose how each project adopts it. A pinned project won't silently receive a change, though somebody has to update it to get a fix. A project following a moving branch gets updates sooner, including the ones it might have preferred to skip.

I have both patterns in the deployment workflows I inspected. They are different tradeoffs, not evidence that every project is using the same version or receiving the same behavior.

The shared deployment code I built has distinct paths for service and frontend packages. The service path, for example, validates its function descriptors and packages a service without requiring a static frontend. That distinction belongs in the design; it shouldn't be a surprise discovered halfway through a release.

![K.O.R.A. and two colleagues examine a deployment package and a connected server.](/images/shared-deployments-verification.jpg)

## Make the result attributable

An upload is not a completed deployment. Neither is a server acknowledging that it received a request.

Give each delivery attempt an identity and carry enough context to distinguish it from another attempt for the same project. The delivery client I inspected sends a deployment ID along with the repository and version, then looks for status matching that attempt. An accepted request is an intermediate state; rejection, failure and timeout aren't successful delivery.

That still leaves a question: what is actually serving? A delivery service can report success without the client checking every running instance. I'd also want to know which build is answering requests and whether someone can use it. The delivery receipt can't answer those questions for me.

## Leave room for recovery

A consistent failure signal gives an agent somewhere to start. Access to the relevant build logs and artifacts gives it something to investigate. The next action depends on the evidence: a transient interruption may justify a retry; a broken build needs a repair.

Before retrying, understand what the operation can change and whether repeating it is safe. A deployment that is mostly repeatable can still contain a step that sends a message twice, changes shared state or needs approval. A consistent interface doesn't make those consequences disappear.

## Try the boundary

Take two small projects with different outputs and run them through the shared path in a safe environment.

- Confirm each supplies its own build and artifact details, and the service isn't required to manufacture a frontend.
- Give the shared path invalid inputs and check that it stops before delivery.
- Check which revision of the shared code each project actually uses.
- Start two distinguishable delivery attempts and confirm that a status for one cannot be mistaken for the other.
- Check the running revision and a relevant user action separately from the delivery status.

The projects can keep their differences. K.O.R.A. shouldn't have to rediscover them every time I want to ship something.
