@the-vibe-company/armada 0.2.61 → 0.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -17
- package/dist/armada.js +12313 -7966
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ npm install -g @the-vibe-company/armada # then: armada status
|
|
|
32
32
|
2. **Enter the keys** once, on Organization > Keys: the Linear API key. It stays sealed in Armada: no laptop or runtime needs it, and no machine needs a database key either, since the CLI reaches the fleet's live data through Armada ([Keys](#keys)).
|
|
33
33
|
3. **Sign in from the terminal**: `armada login`, then approve the code in the browser. A headless coordinator sets `ARMADA_API_KEY` to an organization API key instead ([Sign in from a terminal](#sign-in-from-a-terminal)).
|
|
34
34
|
4. **Set up the repository**: `armada doctor` lists what it lacks, `armada init --program-root ABC-1` opens one pull request that adds it all ([Set up a repository](#set-up-a-repository)); merge it.
|
|
35
|
-
5. **Choose optional features.** Use the commented template and doctor’s `info` lines to configure deployment targets/smoke checks, known flakes, acceptance checks, jobs and owner approval rules. Enable owner alerts/digests on Organization > Notifications, then select each coordinator’s name with `armada coordinator use <name>`. Launch cloud workers with `armada launch ABC-12 --runtime conductor`. For an existing checkout, follow [Upgrade an existing project](docs/runbook.md#upgrade-an-existing-project).
|
|
35
|
+
5. **Choose optional features.** Use the commented template and doctor’s `info` lines to configure deployment targets/smoke checks, known flakes and `[ci] setup_steps` for tool/dependency download outages before tests (exact names or `*` globs; 4xx stays a failure), acceptance checks, jobs and owner approval rules. Enable owner alerts/digests on Organization > Notifications, then select each coordinator’s name with `armada coordinator use <name>`. Launch cloud workers with `armada launch ABC-12 --runtime conductor`. For an existing checkout, follow [Upgrade an existing project](docs/runbook.md#upgrade-an-existing-project).
|
|
36
36
|
|
|
37
37
|
```sh
|
|
38
38
|
armada login
|
|
@@ -45,6 +45,7 @@ Workers then need no key either: each one's launch message carries a one-time to
|
|
|
45
45
|
`armada status` reads the `armada.toml` of the current repository (or the nearest parent directory) and prints:
|
|
46
46
|
|
|
47
47
|
- **In flight**: tickets an agent holds, with their phase, runtime, last report and pull request. A worker with no heartbeat for longer than `policy.silence_minutes` is flagged `silent`, unless it is waiting on a human (`awaiting-approval`, `blocked`, `ready-to-merge`). Older workers without heartbeats fall back to reports (an `armada report` event recorded through Armada, an `Agent status:` comment or its claim), then the ticket's last sign of life (ticket edit, comment or pull request update). A live worker without a report for `policy.quiet_minutes` gets a coordinator-only inbox note, not a red dashboard state.
|
|
48
|
+
- **Failed or uncertain launches**: `launch-failed`/`launch-uncertain` reach the coordinator’s inbox immediately and wake the watch, including launches during merge/drain. Follow the item’s `Next:` command; inspect an uncertain launch before retrying. These launches exit 1 (preflight refusals exit 2). Launch output and dry-run plans show the ticket title; JSON includes `title`. Claim, successful binding, revoke or `armada answer <id> "<why>"` closes the item; while open it suppresses `not-started`.
|
|
48
49
|
- **Launched, not started**: signed in to Armada, the workers launched with a launch token that have not claimed their ticket after `policy.not_started_minutes`, each saying whether the token was never used (the worker never reached its `armada login` line) or used without a claim.
|
|
49
50
|
- **Ready to start**: tickets without sub-issues that are not started, not held by an agent, have no open pull request, and whose blocked-by tickets are all closed, ranked by what they unlock. Tickets without the ready label, or still in triage, are listed separately.
|
|
50
51
|
- **Pull requests waiting**: open pull requests with their CI state and mergeability.
|
|
@@ -78,7 +79,7 @@ Each problem is an error or a warning, with its fix. A missing skill, or a CLI o
|
|
|
78
79
|
|
|
79
80
|
After the one-time pointer conversion, instruction-only Armada releases need no setup PR or project CI run. Doctor and status compare pointers, so only a discovery description change (or a missing or edited pointer) needs a setup update. The source link keeps its recorded tag until the pointer changes. Workers install the brief's pinned version before reading their skill; if `armada skill` is missing, install that version first. The command works offline, without sign-in or a checkout.
|
|
80
81
|
|
|
81
|
-
New releases leave the coordinator's watch running. `armada status` and `armada inbox` announce them at most once per 24 hours per machine, across release versions; the dashboard's coordinator card shows update availability.
|
|
82
|
+
New releases leave the coordinator's watch running. `armada status` and `armada inbox` announce them at most once per 24 hours per machine, across release versions; the dashboard's coordinator card shows update availability. Setup behind gets a separate daily notice in status, inbox and plain watch's final output: run `armada upgrade`, then merge the setup pull request it opens. Only a CLI below the server minimum produces a `version` item and stops either watch mode. Plain watch lists other coordinators' items with their owner, but wakes only for new own and unowned items, even with `--all`. Reading inbox preserves the watch's shown history; a narrower `--mine` read cannot prune a broader `--all` read. Run `armada upgrade`: it waits up to five checks over about two minutes for npm to serve the exact target, installs it, verifies `armada --version`, then uses the installed doctor to check setup. It runs `armada init --merge` only for outdated setup, through the normal setup-only merge checks. Upgrade requires the selected checkout's `armada.toml` at its Git root. Workers keep their brief's pinned version.
|
|
82
83
|
|
|
83
84
|
|
|
84
85
|
The shipping skills include every helper, reference, eval, companion manifest and license.
|
|
@@ -187,6 +188,11 @@ armada report ready-to-merge --pr 34 --sha <full 40-character head SHA>
|
|
|
187
188
|
armada release --reason "wrong ticket"
|
|
188
189
|
```
|
|
189
190
|
|
|
191
|
+
Set `[policy] max_workers = 10` to cap project-wide worker sessions, including workers waiting for merge and launches that have not claimed yet. Coordinator sessions and waiting launch requests use no slots. At the cap, `armada launch` creates nothing: use `armada launch ABC-12 --when-unblocked` to wait for a slot or `--over-cap "<why>"` to launch anyway. Linear Urgent priority passes automatically. Bypasses carry their count and reason in pending-launch status and the activity feed; `brief --prompt` enforces the same cap, and relaunch replacements are exempt. Status shows `Workers 8 of 10`; watch lists waiting launches separately and keeps listening for their slot. Lowering the cap stops no running worker. Deploy the API migration before using the new CLI; older CLIs ignore this opt-in policy.
|
|
192
|
+
|
|
193
|
+
Queue a launch with `armada launch ABC-12 --when-unblocked [--runtime conductor|herdr] [--notes <file|->]`. It selects its profile from current labels when it starts, unless `--profile` pins one explicitly. Runtime, notes text and the profile's reason are saved; explicit launch-time options win. Requests expire after seven days with one inbox notice. Repeat the queue command to renew the same request, preserving omitted options and resetting attempts; decline with `armada answer <id> "<why>"`. Closed tickets resolve automatically, and a launched worker waiting to claim stays quiet. The running watch starts eligible requests oldest first, at most one per poll, when a blocker closes or a slot frees. Successful starts stay quiet in plain watch and show in status; failures reach the inbox. Re-arm watch for retries after five then fifteen minutes, at most three attempts total; unknown creations are never retried blindly and guided Claude Code profiles remain manual. Automatic admission checks coordinator ownership, cancellation and expiry; `coordinator take` carries the request. Deploy the dashboard first.
|
|
194
|
+
|
|
195
|
+
|
|
190
196
|
`armada attach <ticket> <file|url>... [--caption "<text>"] [--for <item>]` keeps visual evidence out of git. It uploads byte-checked PNG, JPEG, WebP or GIF images (at most 2 MB each) and records HTTPS links, then prints private dashboard URLs. An organization member opens them from those URLs or ⌘K (search a caption); a validation's images show on its Validations page, enlarged on a click. The bytes stay in the app's Postgres and are served only after organization/project access checks; signed-out callers and other organizations receive 403. Worker sessions attach only to their own ticket; coordinators attach to any ticket in their project's cached reading. Refresh the dashboard first if a new ticket is missing there. `--for` stores a free validation reference. Identical content on a ticket is stored once (a later `--for` can bind it to a validation). Each ticket defaults to 20 images/links, the project to 200 MB of image bytes, and evidence is deleted by the next successful project refresh at least 30 days after completion or cancellation; reopening resets that window. Configure these limits in `[policy]` below. Never include credentials or secrets in linked URLs or screenshots.
|
|
191
197
|
|
|
192
198
|
- `claim` re-reads the ticket and refuses it when another worker holds it; if two claims race, the older comment wins and the other withdraws. It assigns the ticket to the Linear key's user, moves it to the team's first started state, sets the `planning` phase label and the runtime label (matched by name, so `conductor` finds `Conductor`), and posts an `Agent claim — runtime · session · branch · started` line. The handle is kept in that comment and on Armada, so a coordinator finds the session either way. Claiming again with the same handle repairs labels and state. It reads every comment and label of the ticket, however many.
|
|
@@ -206,22 +212,34 @@ armada ask "Which store keeps the sessions? I recommend SQLite." --options "SQLi
|
|
|
206
212
|
armada inbox # coordinator: what waits, oldest first
|
|
207
213
|
armada watch # coordinator, in the background: returns when something needs you
|
|
208
214
|
armada inbox --wait # returns when a new item arrives, or after --timeout (default 300 s)
|
|
209
|
-
armada
|
|
210
|
-
armada answer
|
|
215
|
+
armada ack '#12' --reason "No further action needed" # deliberately skip a notice, with the reason on its ticket
|
|
216
|
+
armada answer 12 "SQLite, for the first slice." # delivers and records the answer
|
|
217
|
+
armada answer 13 "approved" # delivers and records plan approval
|
|
211
218
|
armada answer --note ABC-12 "main moved: bring it in before you ship" # an unsolicited message, same path
|
|
212
219
|
```
|
|
213
220
|
|
|
221
|
+
If Conductor does not confirm an answer or note, Armada keeps its original message id and masked text. The command exits 1; nothing is posted on Linear and the question stays open. Keep `armada watch` running: it retries with delays of 1, 2, 5, 10 and 20 minutes (six tries total). Rerunning the same command reuses the kept delivery. A successful newer answer retires the older one; a replaced or released worker is never sent the old answer. Unconfirmed merge notices use the same path and skip workers that handed back. A permanent refusal or exhausted tries creates one `delivery-failed` inbox item; inspect the session and record your decision with `armada answer <item> "<why>"`. Status, inbox and the stop hook keep pending deliveries visible. A confirmed send is never repeated if recording fails. Herdr deliveries have no message id: inspect before retrying. Never send a kept message by hand too. Deploy the API and migration before the CLI.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
- Hand-backs already in the merge queue show their position or drain step as in progress in the inbox, watch and dashboard. They need no new coordinator action. A worker reporting another phase clears its previous hand-back; its next `ready-to-merge` report wakes the watch again. Confirmed merges clear that PR's queue refusals and owner merge requests, with cleared ids in the result line. The next inbox read also clears notices for PRs merged elsewhere, using the stored GitHub reading.
|
|
214
225
|
- `ask` reports the `blocked` phase with `Agent status: blocked — question: <first line>` (the rest and the numbered options below it) and adds a `question` item to the coordinator's inbox on Armada. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
|
|
215
226
|
- `report awaiting-approval` adds a `plan` item with the full message (and the `--plan` block) and worker handle to the coordinator's inbox. Same-phase heartbeats neither duplicate nor reopen it. Answering it, recording a note, leaving the phase or releasing the ticket closes the plan and any pending approval request. For a pre-approved plan (the brief's "Plan" line says which), post the plan with `report implementing --plan-file -` instead: no approval item is needed.
|
|
227
|
+
- Long runs go through `armada job`, on the project’s runner. A running job whose progress stays unchanged past `[jobs.<name>] stall_minutes` (default 60) shows `stalled N min` in job list/status and a stalled tag in the job strip, and creates one `job-stalled` inbox wake per stall. Check with `armada job status <id>` and stop deliberately with `armada job stop <id>`. Fraction progress (`n/m`) ignores changing ETA/clock text; movement clears the alert. Silence takes precedence; absent progress is never stalled. The alert never stops a job and only covers runs tracked through Armada jobs.
|
|
216
228
|
- `heartbeat --every 5m --parent <agent-pid>` pings Armada without reading keys from the vault or writing Linear. The brief starts it immediately after claim: Conductor uses `--background` (detached process group and PID file), Claude Code uses the subagent's background Bash. It survives between turns on Cloud and stops when its persistent parent exits or the current worker session ends (release, merge, revoke). If background startup is unsupported or fails, keep manual reports at least every 15 minutes. `[policy] silence_minutes` defaults to 15: no heartbeat means probably stopped; old clients use reports. `quiet_minutes` defaults to 45: alive without a progress report creates a coordinator-only `quiet` inbox note, never an owner item or red dashboard state. Heartbeats draw the timeline's session line; actual reports remain dots.
|
|
217
229
|
- `inbox` lists the coordinator's open items (questions, plans, requests, hand-backs), silent workers and workers that never started, oldest first. A worker never started (`not-started`) was launched with a launch token and has not claimed its ticket after `policy.not_started_minutes`; the entry says whether the token was never used or used without a claim, names the worker's session when its sign-in gave one, and clears on the claim, when the launch ends (release, merge, revoke) or when a newer launch of the ticket replaces it. A launch on a ticket a session still holds is not followed (a brief made to read a running worker's prompt again launches nobody; a relaunch releases the old claim first). A launched worker counts as in flight from its launch until it shows as not started, so `armada watch` waits for its claim; past that, its entry carries it. A worker is silent when it holds a ticket, its last heartbeat (or newest report for an older client) is older than `policy.silence_minutes`, and its phase does not wait on someone else. A live worker with no report for `policy.quiet_minutes` gets a softer `quiet` entry here only. It reads Armada only (a sign-in, no Linear key) and records that the coordinator is at work, for the dashboard. `--wait` asks Armada every 15 s until `--timeout`; Armada answers "not modified" (HTTP 304, no body) while the inbox holds the same entries, so a waiting coordinator costs one short request per ask and holds nothing open. It marks the items that were not there before with `*`; loop on it. A hand-back handed back again on a new head (or a plan rewritten in place) counts as new.
|
|
218
|
-
- `watch` is how a coordinator keeps listening, run in the background while a worker is in flight. It asks Armada like `inbox --wait` (every 15 s, every 60 s when no worker is in flight, 304 while nothing changed)
|
|
230
|
+
- `watch` is how a coordinator keeps listening, run in the background while a worker is in flight. It asks Armada like `inbox --wait` (every 15 s, every 60 s when no worker is in flight, 304 while nothing changed) and exits as soon as something needs the coordinator that it has not been shown yet by `inbox` or `watch` on this machine: it prints the inbox, new items marked `*`. It exits with "nothing to watch" when no worker is in flight and nothing is open. Armada unreachable or answering 5xx only prints a warning and it keeps going, waiting longer each time; a refusal (signed out) ends it. One holder per project/coordinator and machine: a second plain watch waits locally and replays its result and exit code (JSON waiters wrap plain results in JSON); if the holder dies without a result, a waiter takes over. `watch --stop` ends the holder and waiters. Under `CLAUDECODE`, the default bound is 100 minutes; a shorter external lifetime teaches a 90% bound (rounded down, minimum five minutes). `--for <minutes>` overrides it. Plain timeouts print the restart command and re-arm line on stdout. Keep the watch in a tracked background command, never `&` inside a foreground command or hidden output. Its state (a private completion receipt, a lock, the entries shown, the tickets in flight at the last read, the checkout it ran in) lives in `~/.config/armada/watch/`, no secret.
|
|
219
231
|
- The last line of `inbox`, `watch`, `merge` and `brief` (not `brief --prompt`) says whether to start watching again, for example `2 workers in flight (ABC-1, ABC-2) — keep watching: armada watch`; with `--json`, the same is the `watch` field.
|
|
220
|
-
- `armada hook
|
|
232
|
+
- `armada hook session-start` restores a Claude coordinator's context after compact or resume: project, checkout, tickets with phase/age, PRs, holds, up to 20 actionable inbox lines, watch and Stop-hook banners, and the next command. The brief is capped at 60 lines. Live reads share a 15-second deadline; timeout/refusal falls back to local tickets, read time and jobs with `armada status --mine` and `armada inbox --mine`. It records presence and shown keys, never starts a watch, always exits 0, and is silent for workers, unrelated folders and fresh startup. `armada init`/`--merge` add Stop and SessionStart once in repository settings; one question accepts both and `--no-stop-hook` skips both. Doctor reports a missing SessionStart hook. For sessions starting elsewhere, add SessionStart at user level with matcher `compact|resume`, command `armada hook session-start 2>/dev/null || true`, timeout 30, alongside Stop. A new resumed id outside the coordinating checkout gets no brief.
|
|
233
|
+
- `armada hook stop` is the Claude Code Stop hook `armada init` adds to `.claude/settings.json` (it asks for both hooks; `--no-stop-hook` leaves both out). It identifies coordinator sessions registered by `inbox`, `watch`, `brief`, `launch` and `merge`, across checkouts; unknown sessions fall back to the coordinator checkout. Workers (`ARMADA_TICKET`) never register or get held. If any registered project has workers or jobs in flight and no watch, the reason names its checkout and asks for a background watch there. It reads local files only; read errors or a watch refusal let the turn end. Claude-only banners on watch, inbox, status, merge, launch and doctor say whether it last ran, is installed awaiting confirmation, or is off with a fix. When a session starts outside the checkout, add the Stop command `armada hook stop 2>/dev/null || true` to `~/.claude/settings.json`; init never changes user settings. Project `.claude/settings.local.json` is detected too. `ARMADA_STOP_HOOK=off` opts out.
|
|
234
|
+
- The Claude Code Stop hook also reminds a coordinator once per rule per session about foreground Bash commands over 60 seconds, raw `gh pr merge`, hidden Armada output (`grep`/`tail`/`head`, `/dev/null`, `2>&1 | …`, `|| true`), and its own `git commit`/`gh pr create`. It reads a bounded local transcript tail, joins the reminder with any missing-watch reason, and names the job/background, merge-finish/deploy or worker commands to use. Workers and unknown sessions in other checkouts are excluded. `ARMADA_STOP_HOOK=off` disables both guards. See [coordinator guardrails](skills/armada-coordinator/REFERENCE.md#coordinator-guardrails); manual merges end with `armada merge --finish <n>` and `armada deploy watch --sha <sha> --target <name>` in the background for each declared target.
|
|
221
235
|
- A coordinator's own claim is never listed as silent in its inbox: only an exact, nonempty handle match is excluded, not its questions, requests or hand-backs. `inbox` takes the reading coordinator's handle from `ARMADA_COORDINATOR_HANDLE` first, otherwise from both `CONDUCTOR_WORKSPACE_ID` and `CONDUCTOR_SESSION_ID` joined as `workspace/session`. Blank values are ignored; with no complete identity, silence detection is unchanged. Local coordinators should set `ARMADA_COORDINATOR_HANDLE` to the handle used for their claim. The same identity is used for every `--wait` poll and the dashboard presence record; the fleet-wide `status` and dashboard silence rules are unchanged.
|
|
222
236
|
- `answer` delivers herdr answers into the verified pane before recording them; for other runtimes, deliver first with the runtime guide's message section. A live herdr approval or question can be answered by ticket even before a worker reports. It posts `Agent status: <current phase> — answer: …` on the ticket and resolves the item. An item id needs Armada; a ticket id answers that ticket's open questions and plans and also works without it. `--note` records a delivered note as `Agent status: <phase> — note: …`; it accepts a ticket or plan item id and resolves open plans, not questions. These two are the coordinator's records: Armada never reads them as the worker's phase, hand-back or sign of life. Questions, plans and requests can be answered; `merge` resolves hand-backs, and `release` and `merge` resolve the ticket's open questions. For older clients without heartbeats, no report within `policy.silence_minutes` of an answer shows as silent. With heartbeats, the report reminder uses `policy.quiet_minutes` instead.
|
|
223
237
|
- The dashboard adds two kinds of request, signed by the person who made them. On a session's page or the overview's preview pane, **Approve** opens an editable approval (`approved` by default); sending it creates an `answer-request`, just like answering a question. Deliver its text, then `armada answer <request id> "<answer>"`, which resolves the request and its question or plan and names the requester on the ticket (answering the item itself also closes a waiting request). A `launch-request` asks to launch a ready ticket on a profile: launch it as usual; the worker's `armada claim` resolves it and posts who asked. To decline one, `armada answer <request id> "<why>"`: it is closed with the reason and nothing is posted on the ticket.
|
|
224
238
|
|
|
239
|
+
Plain watch reminds about unanswered action items after `[policy] coordinator_minutes` (10 by default), then doubled intervals: 10, 30 and 70 minutes from the first show. Later inbox listings do not postpone `still waiting since HH:MM`. Setting `coordinator_minutes = 0` disables reminders. Other coordinators’ items and hand-backs already in the merge queue never remind.
|
|
240
|
+
|
|
241
|
+
For a notice you deliberately leave alone, `armada ack <#id or key> --reason "<why>"` records why in Armada and posts it on the ticket as a phase-preserving note. It accepts queue refusals, deploy/job notices, `unblocked`, `silent`, `quiet`, `stopped`, `not-started`, `job-silent` and `queue-stalled`. Derived entries print their keys. The entry disappears until its key changes, such as a higher silence level or another blocker. Questions, plans, hand-backs, owner requests, approval prompts and merge holds require their resolving command. Ticketless notices are recorded in Armada only. If Linear fails, the command prints the note to post yourself; creation is not retried. Deploy the API and migration before this CLI.
|
|
242
|
+
|
|
225
243
|
## What the owner validates
|
|
226
244
|
|
|
227
245
|
The owner decides only what they asked to: a merge their rule keeps for them, the work of a kind of ticket they want to see first (a design), and a question the coordinator escalates. Each is one item on the dashboard's **Validations** page, opened from one link, `https://<dashboard>/approve/<id>`, readable on a phone, and the first thing on the page of the session it concerns. The overview lists those sessions under "Waiting for your decision" and the menu counts them; the workers' questions, plans and hand-backs stay with the coordinator.
|
|
@@ -249,7 +267,7 @@ armada brief ABC-12 --validation 1 --validation-reason "a mockup of the card"
|
|
|
249
267
|
```sh
|
|
250
268
|
armada merge 34 --dry-run # the checklist only
|
|
251
269
|
armada merge 34 # or the pull request URL; --ticket ABC-12 when the branch names no ticket
|
|
252
|
-
armada merge 34 --wait # main moved: update the branch on GitHub, wait for its checks, then merge
|
|
270
|
+
armada merge 34 --wait # run in the background; main moved: update the branch on GitHub, wait for its checks, then merge
|
|
253
271
|
armada merge 35 --no-ticket # a pull request no ticket owns: armada init's, a release
|
|
254
272
|
```
|
|
255
273
|
|
|
@@ -257,6 +275,7 @@ armada merge 35 --no-ticket # a pull request no ticket owns: armada init's, a re
|
|
|
257
275
|
- A head that lacks commits of its base branch is refused, unless `[gates] local_commands` is set: then the head is merged into the base in a throwaway `git worktree`, the commands run there, and the worktree is removed.
|
|
258
276
|
- `--wait [--timeout <min>]` (30 minutes by default) keeps going until the pull request merges or a real refusal. A head behind its base that GitHub says merges cleanly is updated with GitHub's "update branch" (a merge commit, no force-push), and every required check is waited for on the new head; when the base does not require heads up to date and `[gates] local_commands` is set, it is test-merged instead. A red check, a conflict, any other refused rule, or GitHub refusing the update (a protected branch) or not applying it within 3 minutes stops it and says which. The merge lock is held only while merging, never while waiting; signed in with Armada down, it refuses before touching the branch.
|
|
259
277
|
- A head that is the handed-back SHA followed only by merge commits of the base still counts as the hand-back: each merge commit's first parent is the commit before it, its second parent is on the base branch, and its tree is the clean merge of the two (`git merge-tree`). The merged comment then names both heads (`head <new>, the handed-back <old> updated with main`).
|
|
278
|
+
- `armada ci why <pr>` (or `--sha <sha>` / `--branch <branch>`) shows the failed step, failing tests and error excerpt. Unknown tests include up to three pasteable `[[ci.known_failure]]` blocks with patterns anchored to the exact name. A test must pass on a rerun of the same head before you declare it flaky; open a root-cause ticket and replace the invalid `<root-cause ticket>` placeholder. With no test name, use the error lines to write a specific pattern. `--json` includes the drafts. `--rerun` retains the one-rerun limit and refuses unknown failures.
|
|
260
279
|
- `--no-ticket` merges a pull request no ticket owns (`armada init` prints the command for its own): no hand-back, nothing written to Linear, every other check unchanged, pinned to the head it checked. A branch that names a ticket of the program is refused unless you add `--reason "<why the ticket stays open>"`: the reason is posted on the PR before merging, and its ticket and worker stay unchanged. These overrides require the configured CI checks; they do not use the release exception below. When none of the required checks ran on the head (a release pull request opened with the workflow's token), it passes with a note once the head is a minute old (never a head this run updated), `UNSTABLE` included when nothing failed.
|
|
261
280
|
- GitHub's `HAS_HOOKS` (mergeable, with pre-receive hooks) counts as `CLEAN`.
|
|
262
281
|
- Hints, never blocking: top-level functions, classes, types and constants the pull request removes or renames that the base branch still uses in files the pull request does not touch.
|
|
@@ -281,13 +300,17 @@ armada merge 35 --no-ticket # a pull request no ticket owns: armada init's, a re
|
|
|
281
300
|
|
|
282
301
|
**Owner notifications.** With accounts and `ARMADA_SECRETS_KEY`, an owner or admin opens Organization > Notifications, saves a public HTTPS webhook and clicks **Send a test**. V1 has one channel per organization, optionally filtered to a project. Slack format posts `{"text":"…"}` to Slack-compatible receivers (including Discord's `/slack` URL); JSON posts `{schema:1,kind:"alert",organization,items:[{key,kind,project,ticket,title,url}],text}` and signs the exact body with `x-armada-signature: sha256=<HMAC-SHA256>`. For JSON, enter a signing secret of at least 16 characters that your receiver also knows. The address and signing secret are sealed in the vault, write-only and never released to terminals. Only titles and links are sent.
|
|
283
302
|
|
|
284
|
-
Alerts use the same owner items as browser notifications: work or merges to validate, escalated questions, and stopped coordinators with items waiting. Ticks run after fleet traffic and
|
|
303
|
+
Alerts use the same owner items as browser notifications: work or merges to validate, escalated questions, and stopped coordinators with items waiting, checked separately by name. Active coordinators also trigger one alert per plan, question, hand-back, decision or owner request left unanswered for 3 × `[policy] coordinator_minutes` (30 minutes by default). Queued or paused merges are excluded. Ticks run after fleet traffic, dashboard polls and GitHub/Linear webhook refreshes, throttled to once per minute per project, and read stored snapshots only. The outbox deduplicates across instances and claims retries too; a failed item gets at most five attempts. Ten consecutive failures pause the channel, as do HTTP 404/410 immediately; saving resumes it. Quiet-hour arrivals are retained for the next summary rather than posted as delayed alerts.
|
|
304
|
+
|
|
305
|
+
Chat alerts also announce a finished spec with its Linear link, a merge pause still open after five minutes with its reason and project link, and the clearing of a recorded pause. Existing closures and pauses are excluded when a channel is first saved. These milestones follow the channel’s alerts toggle and quiet hours; browser notifications keep their existing scope.
|
|
306
|
+
|
|
307
|
+
Digests default to 09:00, 13:00 and 18:00 on weekdays in the channel’s IANA time zone. Edit times/days or leave times empty to disable them; **Skip quiet digests** suppresses empty summaries. Each channel gets one durable local slot, even with several coordinators or app instances. A slot more than 30 minutes late is skipped and mentioned in the next digest. Digests cover merges with titles, blocked/silent durations, owner decisions with links and running phases. Remaining time is qualified as “usually”, from phase medians with at least three merged samples. Summaries also list recent deploy target states and persistent deploy failures, plus running and recently ended long jobs with their reported progress, estimated ends and app links. Merged, waiting and in-progress tickets are grouped by spec with leaf-ticket done/total counts when several groups appear; ungrouped tickets appear under Other. A single group keeps the flat layout. Available main health adds a section.
|
|
285
308
|
|
|
286
|
-
|
|
309
|
+
`armada status` reminds the coordinator once per 24 hours per project on each machine to use `armada digest` or `armada digest --send`. After a successful merge without deploy targets, `armada merge` similarly names `[[deploy.target]]` with a smoke command and `armada doctor`. Hints are reserved before printing in the machine's `notices.json` (legacy release receipts are preserved); unreadable memory suppresses hints. JSON and worker sessions show none. Status also names tickets held by another coordinator silent beyond twice `[policy] silence_minutes`, with the exact takeover command; transferring them removes the line.
|
|
287
310
|
|
|
288
311
|
`armada digest` prints the current project since the previous digest (channel creation for the first, or four hours without a channel). `--since 4h` or an ISO timestamp overrides the window; `--lang en|fr` overrides `[tracker] language`; `--json` includes structured data; `--send` posts through the server-side channel without exposing its address. Worker sessions cannot read or send digests. Printed and sent summaries share their builder and renderer. Quiet periods send one line by default.
|
|
289
312
|
|
|
290
|
-
**Optional scheduler, off by default.** `GET /api/cron/owner` requires `Authorization: Bearer <CRON_SECRET>`. Production ships with no enabled `crons` entry. Without a scheduler, a coordinator that stops with no worker in flight is noticed on the next fleet call or
|
|
313
|
+
**Optional scheduler, off by default.** `GET /api/cron/owner` requires `Authorization: Bearer <CRON_SECRET>`. Production ships with no enabled `crons` entry. Without a scheduler, a coordinator that stops with no worker in flight is noticed on the next fleet call, dashboard poll or GitHub/Linear webhook refresh. To enable Vercel Cron deliberately, set `CRON_SECRET` in the deployment and add `"crons": [{"path":"/api/cron/owner","schedule":"*/15 * * * *"}]` to `packages/dashboard/vercel.json`, then redeploy. Every 15 minutes requires a paid plan; the free plan allows a daily schedule such as `"0 9 * * *"`. The endpoint never refreshes Linear or GitHub and does nothing under the shared-password gate.
|
|
291
314
|
|
|
292
315
|
Try it locally with synthetic data and no key:
|
|
293
316
|
|
|
@@ -508,12 +531,13 @@ required_checks = ["test"] # CI checks that must be green before a hand-ba
|
|
|
508
531
|
local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge of a head behind its base (default: none: the worker brings the base branch in instead)
|
|
509
532
|
|
|
510
533
|
[policy]
|
|
534
|
+
# max_workers = 10 # project-wide worker sessions; absent means uncapped
|
|
511
535
|
attachments_per_ticket = 20 # images and links together (default 20)
|
|
512
536
|
attachments_project_mb = 200 # private image bytes per project, MB = 1024² bytes (default 200)
|
|
513
537
|
attachments_retention_days = 30 # deleted after completion/cancellation by the next project refresh (default 30)
|
|
514
538
|
silence_minutes = 15 # no heartbeat for longer flags a worker silent (default 15; reports for older clients)
|
|
515
539
|
quiet_minutes = 45 # live without a report for longer adds a coordinator-only note (default 45)
|
|
516
|
-
coordinator_minutes = 10 #
|
|
540
|
+
coordinator_minutes = 10 # first waiting-item reminder; intervals double, 0 disables (default 10)
|
|
517
541
|
not_started_minutes = 10 # a launched worker that has not claimed after this long shows as not started (default 10; a CLI older than this setting refuses it)
|
|
518
542
|
plans = "approve" # or "pre-approved": workers post their plan and go on (default "approve")
|
|
519
543
|
pre_approved_label = "plan-approved" # a ticket with this label is pre-approved (default)
|
|
@@ -567,7 +591,7 @@ A missing or invalid key stops the command with a message naming it, for example
|
|
|
567
591
|
|
|
568
592
|
The program follows one convention: specs are direct children of the root titled `Spec N — Name` or `Spec N/M — Name`, tickets are their sub-issues, and dependencies are Linear blocked-by relations. Both title forms are always read, including in mixed programs. Agents declare their phase with a label from the phase group (`planning`, `awaiting-approval`, `implementing`, `shipping`, `blocked`, `ready-to-merge`) and start every comment with `Agent status: <phase> — <summary>`.
|
|
569
593
|
|
|
570
|
-
The coordinator creates a spec with `armada spec add "Search images"`. It appends after the largest spec number, uses the program root as parent, includes the **In short** template and prints the
|
|
594
|
+
The coordinator creates a spec with `armada spec add "Search images"`. It appends after the largest spec number, uses the program root as parent, includes the **In short** template, inherits the root's Linear project and starts in the team's first backlog state (first to-do state if there is no backlog). It prints the project (or `no project`), state and URL; with neither state available, it keeps Linear's default. Check Linear before running the command again after a creation failure. The default `[tracker] spec_titles = "N"` keeps existing titles unchanged when appending. New project configurations write that setting; configurations without it also default to `"N"`.
|
|
571
595
|
|
|
572
596
|
To insert in the middle, run `armada spec add "Search images" --at 5`: it displays the suffix renames and creates nothing. Repeat with `--apply` to rename 5→6 and so on, then create the new Spec 5. `armada spec renumber` previews a repair of gaps and duplicates in ordinal order (creation time, then issue identifier break ties); `--apply` applies it and normalizes all titles to the configured style.
|
|
573
597
|
|
|
@@ -582,12 +606,15 @@ Use the [Bun](https://bun.sh) version pinned in `package.json`'s `packageManager
|
|
|
582
606
|
bun install
|
|
583
607
|
bun run armada status # run the CLI from source
|
|
584
608
|
bun run verify # lint, typecheck, tests
|
|
609
|
+
bun run build # CLI and dashboard production builds
|
|
585
610
|
```
|
|
586
611
|
|
|
587
|
-
When changing a package under `skills/`,
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
612
|
+
When changing a package under `skills/`, commit only its source files. The gitignored
|
|
613
|
+
`packages/core/src/skills.generated.json` is generated automatically during install,
|
|
614
|
+
tests (including direct `bun test`), typechecks, source CLI runs and builds. Packing
|
|
615
|
+
and release build the CLI with the current skill text inlined for Node. Run
|
|
616
|
+
`bun run armada skills update` to refresh this repository's pointers and vendored
|
|
617
|
+
packages; `bun run skills:bundle` remains available for manual regeneration.
|
|
591
618
|
|
|
592
619
|
See [AGENTS.md](https://github.com/The-Vibe-Company/armada/blob/main/AGENTS.md) for the layout and the rules.
|
|
593
620
|
|
|
@@ -614,6 +641,8 @@ includes its license and attribution notices.
|
|
|
614
641
|
|
|
615
642
|
Persistent local workers: `armada status`, `inbox` and `watch` publish herdr state for the dashboard. `armada stop <ticket>` archives only a clean worktree whose commits are on its verified remote upstream, retaining its branch. See [`armada-runtime-herdr`](skills/armada-runtime-herdr/SKILL.md) for all four runtime operations.
|
|
616
643
|
|
|
644
|
+
Conductor worker reads retry brief timeouts, server errors, temporary execution failures and truncated JSON up to twice, with roughly 1 s and 3 s waits and a notice on stderr. Retries add at most 14 s per read, including execution time. Sign-in, invalid-request and not-found errors fail immediately; create, message, cancel and archive writes are attempted once. See [`armada-runtime-conductor`](skills/armada-runtime-conductor/SKILL.md).
|
|
645
|
+
|
|
617
646
|
### Pause and resume merges
|
|
618
647
|
|
|
619
648
|
A coordinator can pause a project's merges with a reason. The pause is stored in Armada, shared with every coordinator, and stays until explicitly cleared. Status, watch and the inbox show it.
|
|
@@ -696,13 +725,16 @@ branch = "main" # omit for the merged PR's base branch
|
|
|
696
725
|
paths = ["cmd/**", "internal/**"] # optional repository-relative globs
|
|
697
726
|
# Exactly one source of the live commit:
|
|
698
727
|
github_environment = "production"
|
|
728
|
+
# check = "./scripts/check-deploy.sh" # exit 0 live, 1 host failure, 2 pending or skipped
|
|
699
729
|
# live_sha_command = "curl -fsS https://example.test/version"
|
|
700
730
|
smoke = "curl -fsS https://example.test/health" # optional
|
|
701
731
|
timeout_minutes = 20 # 1–120
|
|
702
732
|
pause_on_failure = true
|
|
703
733
|
```
|
|
704
734
|
|
|
705
|
-
`armada merge` starts a background deploy watcher and prints `Watching the deploy of <sha> to <target>`. Deployment failures, smoke failures and timeouts create one inbox item and a shared deploy hold for that target. A later healthy deploy clears the failures it covers. Use `--through-hold "<why>"` to merge the repair. `pause_on_failure = false` keeps the inbox warning without pausing merges.
|
|
735
|
+
`armada merge` starts a background deploy watcher and prints `Watching the deploy of <sha> to <target>`. Deployment failures, smoke failures and timeouts create one inbox item and a shared deploy hold for that target. Run `armada deploy retry <target>` to run an optional `redeploy` command once and watch a new attempt; `--no-redeploy` only rechecks after a host redeploy. A healthy observation clears the pause and resolves its inbox item with recorded evidence. Never clear a deploy hold before a healthy recheck. Deploy dashboard/API migration 46 before the new CLI. A later healthy deploy clears the failures it covers. Use `--through-hold "<why>"` to merge the repair. `pause_on_failure = false` keeps the inbox warning without pausing merges.
|
|
736
|
+
|
|
737
|
+
Choose exactly one of `github_environment`, `live_sha_command` or `check`. A `check` exits 1 only for a confirmed host deploy failure, which pauses merges on the next poll; exit 2 for pending or network errors. Exit 2 with a last stdout line `skipped: <reason>` ends as `not deployed (host skipped: …)` without smoke, a hold or an inbox item, and exits 0. Exit 0 runs smoke as usual. Legacy `live_sha_command` keeps waiting until timeout on failure. `armada doctor` warns for each target without smoke and explains the legacy source's limitations; the merge's watching line warns that a live but broken service reads healthy without smoke. Deploy dashboard/API migration 45 before updating the CLI. See the runbook below for the contract and an example adapter.
|
|
706
738
|
|
|
707
739
|
With `paths`, a merge that touches none of the globs prints one skip line and starts no watcher or deploy hold. Globs match repository-relative paths, including dot files. Missing or incomplete changed-file coverage (including renames whose original path is unknown) keeps the watcher. Omit `paths` to watch every merge on the target's branch. For an affected target, the live commit must equal the merged commit or be a verified descendant; smoke then runs as usual.
|
|
708
740
|
|