@the-vibe-company/armada 0.2.20 → 0.2.22

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.
Files changed (3) hide show
  1. package/README.md +30 -3
  2. package/dist/armada.js +716 -64
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ Armada runs a fleet of coding agents on one project and keeps every piece of wor
4
4
 
5
5
  It imposes one method: grill the decisions, write a spec, cut it into tickets, let one worker agent ship each ticket as a green pull request, and let a coordinator agent merge. The tracker is the source of truth for progress; Armada adds live telemetry, contention rules and a fleet dashboard on top.
6
6
 
7
- **Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report`, `armada release`, `armada ask`, `armada inbox`, `armada answer` and `armada merge` work; the other commands are being built.
7
+ **Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report`, `armada release`, `armada ask`, `armada inbox`, `armada answer`, `armada merge`, `armada validate`, `armada ask-owner` and `armada done` work; the other commands are being built.
8
8
 
9
9
  ## Install
10
10
 
@@ -114,7 +114,7 @@ armada release --reason "wrong ticket"
114
114
  `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 can inspect them in the agent's **Attachments** tab, enlarge images, and follow links. 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.
115
115
 
116
116
  - `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.
117
- - `report <phase>` accepts: planning → awaiting-approval or implementing; awaiting-approval → planning or implementing; implementing → shipping; shipping → implementing or ready-to-merge; ready-to-merge → shipping; blocked from anywhere and back to any phase; the current phase again as a status update. Anything else exits 1 with the reason. The output lists what waits in the worker's inbox.
117
+ - `report <phase>` accepts: planning → awaiting-approval or implementing; awaiting-approval → planning or implementing; implementing → shipping; shipping → implementing or ready-to-merge; ready-to-merge → shipping; planning, implementing or shipping → awaiting-validation (what `armada validate` reports) and back; blocked from anywhere and back to any phase; the current phase again as a status update. Anything else exits 1 with the reason. The output lists what waits in the worker's inbox.
118
118
  - `report`, `ask` and `answer` accept `--message-file -` to read standard input to EOF, including a pipe or a shell heredoc. For example: `printf 'line one\nline two' | bun run armada report implementing --ticket ABC-12 --message-file -`. An explicitly empty or whitespace-only message file or stdin exits 2 before any tracker or database write, with a retry naming `--message` or a non-empty pipe. A `ready-to-merge` report may still omit the message option.
119
119
  - `--plan <text>` or `--plan-file <path|->` posts the plan as its own `## Plan` block under the status line. `--message` becomes optional: its first line is the status, else the plan's first line (cut at 100 characters). `armada status` then shows that one line and `plan: <comment url>`, and the dashboard's status line gets a "plan ↗" link. Only one of `--message-file -` and `--plan-file -` can read standard input.
120
120
  - `claim` and `report` read the ticket back and print where it stands, for example `Now: In Progress · phase implementing · runtime Conductor · profile none`, so a worker can check it without opening Linear. `--json` carries the same as `state`.
@@ -147,6 +147,28 @@ armada answer --note ABC-12 "main moved: bring it in before you ship" # an unso
147
147
  - `answer` never calls a runtime: deliver the answer first with the runtime guide's message section. 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.
148
148
  - The dashboard adds two kinds of request, signed by the person who made them. In "Waiting for you", **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.
149
149
 
150
+ ## What the owner validates
151
+
152
+ 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 (with a count in the sidebar), opened from one link, `https://<dashboard>/approve/<id>`, readable on a phone. "Yours to decide" on the overview holds those items only (and a coordinator that stopped answering); the workers' questions, plans and hand-backs stay with the coordinator, in one line: "With the coordinator: n, oldest 4 min".
153
+
154
+ ```sh
155
+ armada merge 34 --reason "CLI only" # coordinator: the rule lets it merge on its own
156
+ armada merge 34 --ask-owner --reason "touches components/timeline" # coordinator: the owner approves it first
157
+ armada validate "Two directions for the card" --attach a.png b.png # worker: show the owner, then stop
158
+ armada validate ABC-12 "Check the empty state" --attach https://preview.example.test # coordinator, any ticket
159
+ armada ask-owner ABC-12 "Ship behind a flag first?" --choices "Behind a flag | On for everyone"
160
+ armada done ABC-12 # coordinator: a design the owner approved
161
+ armada brief ABC-12 --validation none # judge [[policy.validation]] at launch
162
+ armada brief ABC-12 --validation 1 --validation-reason "a mockup of the card"
163
+ ```
164
+
165
+ - `[policy] merge_approval = "<plain words>"` says which merges the owner approves first. Absent, the coordinator merges everything on its own. Present, `armada merge` prints the rule and refuses until the coordinator judges the pull request: `--reason` merges on its own; `--ask-owner --reason` merges nothing, records the pull request (title, files with +/−, CI, the preview deployment of its head: a GitHub deployment, else a green Vercel status) with the ticket's screenshots, posts the approval link on the ticket and prints it. Armada never classifies a pull request: the coordinator judges, Armada records and enforces.
166
+ - A pull request the owner was asked about merges only once they approved that exact head; that head with only the base merged in still counts. A new head needs `--ask-owner` again. The merged comment and the dashboard say how it was decided: `merged on its own (rule: …): <reason>`, `merged on its own (no merge rule)` or `approved by <owner> at <time>`.
167
+ - `[[policy.validation]]` entries name kinds of tickets (`when`) and what their worker shows and waits for (`then`). With entries, every `armada brief` needs the coordinator's judgement: `--validation none` (no reason needed), or the rule numbers with `--validation-reason`; the refusal prints the command to copy. A rule that applies puts one block in the prompt ("This ticket needs the owner's validation: …") and its judgement in the claim.
168
+ - `armada validate` uploads the attachments (as `armada attach` does) and puts the validation on the owner's page. From a worker, for its own ticket: its phase becomes `awaiting-validation` (the label is created on first use) with the link in its status, and it stops. A newer submission replaces the open one. The owner's buttons are Approve and Request changes (with a short text), or the `--choices` given.
169
+ - The owner's decision lands in the coordinator's inbox as a `decision` item, which wakes `armada watch`: the coordinator merges, relays the changes or the choice to the worker, then `armada answer <item> "<what it did>"`. `armada done <ticket>` closes a ticket whose newest validation the owner approved, with no pull request: the design (what was checked, the owner's note, the attachment links) is posted on it, it moves to Done, and its session ends. Building it is a separate ticket.
170
+ - The dashboard's "Request the merge" button is gone: a hand-back is the coordinator's to merge.
171
+
150
172
  ## Merge a finished pull request (coordinator)
151
173
 
152
174
  ```sh
@@ -185,7 +207,7 @@ Try it locally with synthetic data and no key:
185
207
 
186
208
  ```sh
187
209
  cd packages/dashboard
188
- bun run demo:seed # a local PGlite database (Postgres in the process) with the mockup's Acme world (three projects, ten sessions)
210
+ bun run demo:seed # a local PGlite database (Postgres in the process) with the mockup's Acme world (three projects, eleven sessions, and validations for the owner)
189
211
  # bun run demo:seed busy # the same with twenty more sessions reporting every 2 minutes all day (then ARMADA_DASHBOARD_DEMO=busy)
190
212
  ARMADA_DASHBOARD_PASSWORD=off ARMADA_DASHBOARD_DEMO=fleet ARMADA_DATABASE_URL=pglite:.demo/armada bun run dev # http://localhost:4822
191
213
  ```
@@ -407,6 +429,11 @@ not_started_minutes = 10 # a launched worker that has not claimed after
407
429
  plans = "approve" # or "pre-approved": workers post their plan and go on (default "approve")
408
430
  pre_approved_label = "plan-approved" # a ticket with this label is pre-approved (default)
409
431
  approval_label = "needs-plan-approval" # a ticket with this label waits for approval; wins over the other (default)
432
+ merge_approval = "merge on your own, except front-end changes: send me a link to check them first" # default: none, every merge on its own
433
+
434
+ [[policy.validation]] # any number: kinds of tickets whose work the owner validates first
435
+ when = "a design ticket: a mockup, a visual direction or the look of a new screen"
436
+ then = "produce the design, attach it, ask the owner to validate it on Armada, and stop until they decide; never merge or build it on your own"
410
437
 
411
438
  [brief]
412
439
  extra = "docs/worker-conventions.md" # every brief ends with this file under "Project conventions" (default: none)