AH-9 Nightly runs
Status: draft · Since: v0.1
Why. A herd can work while the herder sleeps, and the morning should start with decisions, not with finding out what happened.
What a nightly run is
A session started at a set time with a written instruction and a scope, without the herder present.
Rules
- Each scheduled run MUST have a written instruction (what to do and why) and a scope (which repos, streams or sources it may touch).
- A run MUST NOT go beyond the standing approvals in force (AH-7). Anything that needs a yes becomes a card (AH-3) and waits for the morning.
- A run that fails or is stopped MUST say so on the morning report, with why. A missing report is itself reported.
- Each night's runs MUST end in one morning report: what was done and checked, the cards waiting, and anything that failed. It SHOULD be readable in a minute.
- A nightly run MUST NOT notify the herder overnight, except for something the herder has said should wake them.
- The herder MUST be able to see every scheduled run, change its instruction or time, and turn it off.
- Besides the nightly runs, a session MAY set a run for itself at a set time: a check the day after a deploy, a follow-up on a date it promised. Such a run keeps rules 1 to 5 and MUST appear among the herder's scheduled runs (rule 6).
Adopting AH-9
means your app's unattended runs stay within their instruction and the standing approvals, turn decisions into cards, and report once in the morning.
Open questions
Not decided yet. Proposals welcome, as an issue or a pull request.
- Should this spec become Scheduled runs, now that runs are not only nightly?
- What counts as urgent enough to wake the herder (rule 5), and who sets it?
Changes
- v0.2: runs a session sets for itself at a set time (rule 7); open questions.
- v0.1: first draft.
← AH-8 Away from the desk
Agent Herder open spec v0.4 · CC BY 4.0 · This spec on GitHub · Propose a change