Skip to content
BoringStack
Star

Agent lanes

2 min read

A lane is an agent working on a change after a person has asked for it. Each lane opens pull requests on its own branch, agent/<lane>/<slug>, and a person decides every one. Agents never merge.

The lanes are off until the repository variable AGENTS_ENABLED is 1. Every agent workflow checks it first. Setting it to anything else turns them off again.

PieceWorkflowWhat it does
Triageagent-triage.ymlTakes the next findings from the findings ledger (factory findings). A person sends them with bun tools/factory/cli.ts lanes triage --dispatch. A code fix becomes a pull request; an operations cause becomes an issue for a person.
Prooflanes proveRuns the fix’s tests on the head with the fix set aside, then with it. The fix is proven only when the tests fail without it and pass with it, and no test is skipped. An unproven fix is a result, not an error.
Reviewagent-review.ymlAn independent reviewer reads the diff and the issue, not the author’s reasoning. It writes Verdict: approve or Verdict: reject into the record’s Review section. A rejection fails the job.
Reviseagent-revise.ymlAfter a rejection, one revision on the same branch, proved again, then reviewed again. After a second rejection the pull request is closed.
Digestagent-digest.ymlWeekly: agent pull requests merged, closed and open, and failed agent runs, as one issue labelled agent-digest.
Setup.github/actions/agent-setupThe kill switch, Bun 1.4.5 and the git identity. It holds no secrets.
  1. Create a subscription token on your laptop with claude setup-token, and store it as the repository secret CLAUDE_CODE_OAUTH_TOKEN. An API key works too, with a different input in the workflow.
  2. Set AGENTS_ENABLED to 1.
  3. Run bun run factory remote to see what is still missing.

The workflows have not run against GitHub in this template. The Claude Code Action has not been called against a real pull request. Try them on a fork or a test repository before relying on them. See Remote agents for the other routes that start an agent.