swairm
Gate

Keep the base green without slowing anyone down.

Per-ticket checks stay narrow and fast. The gate runs your full test suite on the base in the background, when you choose, and files a fix ticket the moment it turns red.

  • Four modes: schedule, idle, every N landings, manual
  • Runs only when tickets have landed since its last run
  • A red base files a priority-1 fix ticket, naming the suspects
  • Reruns only the failed tests, with gate_rerun

Features

Everything in The gate

01

schedule (default)

Once a day at gate_at, 03:00 by default.

02

idle

When the machine's load is under gate_load percent of its cores, at most once an hour, and at the latest a day after the last run.

03

every

After gate_every landings, five by default.

04

manual

Only when you ask: swairm gate, or Run gate now on the board.

05

Its own worktree

The gate runs in a detached worktree on the base, so nobody's checkout changes under them.

06

A fix ticket

A red gate files a priority-1 fix ticket naming the landings since the last green run, and every agent hears it. The fix starts before other work.

07

Keep landing

Tickets keep landing while the base is red; the fix goes first.

08

Rerun the failures

gate_rerun says how to find failed tests in the log and rerun only those, one rule per test runner.

09

Pick it on the board

The gate control in the header picks a mode for one project, or for every project under All projects.

Commands

swairm gaterun the full suite on the base now
swairm doctor [--fix]check the setup; return stale claims, clean worktrees
swairm statuswhether the base is green

Settings

gatethe full test command, run on the base
gate_modewhen the gate runs by itself: schedule (default), idle, every or manual
gate_atschedule: the time of the daily gate (default 03:00)
gate_loadidle: the load must be under this percent of the cores (default 50)
gate_everyevery: landings between runs (default 5)
gate_rerunhow a fix ticket reruns only the failed tests, per test runner

Set one with swairm config key=value, in swairm.json, or in the board's Settings. All about settings.

Why it works this way

The decisions behind it

Each one is a short record on GitHub: the context, the decision, and the options that were turned down.

Write the tickets. Let the swarm build them.

Install once. Every repository on your machine gets a swarm and a board.

curl -LO https://github.com/CodingNinja/swairm/releases/latest/download/swairm-macos.pkg && sudo installer -pkg swairm-macos.pkg -target /