Running agent work through gates
For one person directing coding agents: at the end every task takes the same route and every change is checked before it is merged.
- Topics
- Skill areas
- Based on
- Updated
- ·
Before you start
-
A task queue in which a task is either ready or blocked.
-
One local gate, tiered by what a change can break and run on a separate gate machine. It writes a receipt for the exact commit it tested.
-
A branch for every task and a merge only through the gate.
-
Lanes: areas of work that can move in parallel.
Steps
Write the task before the code
Describe the goal, the limits and what finishes the task. A task that cannot be checked is not ready.
Let the scheduler hand out the ready tasks
Each lane takes its next ready task and starts an agent for it on whichever model and account has quota left. If no task is ready, the lane waits; it does not invent work.
Run the gate on every change
Every change runs the tier its risk calls for: docs lightly, content on the changed pages, code in full. The merge helper refuses a commit without a passing receipt, so a new push needs a new run. A red result sends the task back to the agent.
Check the main branch after every merge
The main branch and every release cut run the complete gate, so a check left out of a pull request’s lighter tier still runs before production.
Keep the decisions that need a person
Product and production decisions come to the lead as decision tasks; within the agreed limits, the agents decide the rest. The merge helper waits until a blocking decision is closed, and release, production data and secrets are checked by the script that touches them.
Release from a green main branch
A release ships from a main branch whose complete gate is green. A hold pauses the lanes during a release, and when a usage limit or a red result needs a person first.
When not to use this
-
Work no program can check, such as choosing a direction: direct it in a conversation and record the decision.
-
A single change with no queue behind it: the route costs more than it saves.
-
A codebase without a check that runs locally: build the gate first.
Where it comes from
The route is the one Hintapiste.fi is built with: every change passes the gate its risk calls for before it merges. The working-method page replays two days of it from the event log.