The CI that supervises my agent

An agent opens pull requests against my texas-septic-toolkit repo. Calculators, docs, service-area pages, the lot. People assume the interesting engineering is in the prompt. It isn’t. The prompt is a paragraph. The thing that keeps an unattended contributor honest is the repository itself, and most of it is CI that would look boring in any other context.

The issue form is the real system prompt

Work arrives as issues, and the issue template demands things a model would otherwise skip: the primary source for any regulatory claim, what’s uncertain, a validation plan, and a disclosure of automated assistance. A model given a blank text box will write something plausible. A model given a form with a “Sources and uncertainty” section has to either fill it honestly or leave a visible hole. Visible holes are the point. I can review a hole in ten seconds.

Tests that don’t trust the implementation

The contributing rules have one line that does more work than the rest combined: derive expected test values independently, never copy them from the implementation. An agent that writes both the code and the tests will happily write tests that enshrine its own bug. So expected values come from the source document or a hand calculation, and the test exists to disagree with the code if the code is wrong. CI runs the suite on two Python versions, plus a validator that checks the blank workbook templates are actually structured like workbooks, because “the deliverable exists” should be a check, not a claim in a PR description.

The CI has nothing worth stealing

This is the part I’d insist on even if everything else went. The agent’s PR code runs in CI, which means CI is executing code written by a language model that read the whole internet. So the workflow gets contents: read and nothing else, checkout runs with credential persistence off, and every action is pinned to a commit SHA instead of a floating tag. There is no secret in that environment to leak, no write permission to abuse, and no mutable dependency to poison. I didn’t harden the agent. I emptied the room it works in.

Squash merges, readable history

Every PR lands as one commit with a sentence that says what changed. When something looks off two weeks later, the history reads like a changelog instead of a chat log. The boring stack post made this argument for runtime logs; the same argument holds for git history. The record is what makes unattended work reviewable after the fact, and after the fact is the only time I’m looking.

The shape of it

The model is the junior contributor: fast, tireless, occasionally inventive in ways you didn’t ask for. The repo is the senior engineer: unimpressed, consistent, and immune to a confident tone. Everything above is visible in the toolkit repo if you want to lift the structure. Take the CONTRIBUTING file first. It’s the part doing the supervising.


← back to all posts