@the-vibe-company/armada 0.1.2 → 0.1.4

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 +46 -2
  2. package/dist/armada.js +2253 -1032
  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 claim`, `armada report` and `armada release` work; the other commands are being built.
7
+ **Status:** early. `armada status`, `armada auth`, `armada doctor`, `armada init`, `armada brief`, `armada claim`, `armada report` and `armada release` work; the other commands are being built.
8
8
 
9
9
  ## Install
10
10
 
@@ -59,6 +59,20 @@ On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the nam
59
59
 
60
60
  `armada status --all` prints the status of every registered project, each read with the `armada.toml` on its repository's default branch. A project that cannot be read shows its error without hiding the others.
61
61
 
62
+ ## Launch a worker (coordinators)
63
+
64
+ Armada prepares a launch; it never starts a runtime itself. The `armada-runtime-conductor` skill gives the exact Conductor Cloud commands.
65
+
66
+ ```sh
67
+ armada brief ABC-12 # launch settings, then the worker's prompt
68
+ armada brief ABC-12 --prompt # only the prompt, to pipe into the runtime (--message-file -)
69
+ armada brief ABC-12 --profile codex --json
70
+ ```
71
+
72
+ - The prompt names the ticket and its Linear branch, starts by installing the coordinator's Armada version (`npm install -g`, with an `npm exec` fallback) and running `armada claim` with the handle `$CONDUCTOR_WORKSPACE_ID/$CONDUCTOR_SESSION_ID`, and carries the blockers with their hand-back notes, the comments already on the ticket and the workers in flight.
73
+ - The settings give the profile's agent, model and effort from `[conductor]` in `armada.toml`, and the environment variables to pass: `LINEAR_API_KEY` (required), `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN` (optional), `ARMADA_TICKET=<ticket>`. Each shows whether this shell has it. No value is ever printed.
74
+ - `--profile` defaults to `conductor.default_profile`, then to the only profile. An unknown profile exits 2.
75
+
62
76
  ## Work on a ticket (workers)
63
77
 
64
78
  A worker writes to the tracker only through three commands. They set the labels and write the comments in the protocol format, and record each event in Turso.
@@ -80,6 +94,21 @@ armada release --reason "wrong ticket"
80
94
  - `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
81
95
  - Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
82
96
 
97
+ ## Merge a finished pull request (coordinator)
98
+
99
+ ```sh
100
+ armada merge 34 --dry-run # the checklist only
101
+ armada merge 34 # or the pull request URL; --ticket ABC-12 when the branch names no ticket
102
+ ```
103
+
104
+ - The checklist names every failure and exits 1: the ticket carries `ready-to-merge` and its newest `Agent status: ready-to-merge — PR #34, head <sha>` comment names this pull request with the full 40-character SHA of its current head; the pull request is open, not a draft, titled in Commitizen format and `CLEAN` for GitHub; every `[gates] required_checks` check is green on the head; no review thread is unresolved.
105
+ - 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.
106
+ - 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.
107
+ - One merge at a time per project: a `merge` lease in Turso (20 minutes, renewed before the merge) makes a second coordinator wait. When Turso is configured but unreachable the merge is refused; `--no-lock` forces it, with a warning and "merged without lock" in the ticket's merged comment. Without Turso configured at all (one coordinator) the merge runs unlocked with a warning.
108
+ - The merge is `gh pr merge <n> --squash --match-head-commit <sha>`, never `--delete-branch` (it removes local worktrees that have the branch checked out). A GitHub 5xx is retried with backoff, each time after checking that the pull request is still open at the same head. Success is reported only once GitHub shows the pull request as merged at that head.
109
+ - Then the ticket moves to Done with its agent labels removed, the pull request is linked, `Agent status: merged — …` is posted, the Turso hand-back is resolved and the runtime handle released. The output lists the workers in flight to tell and the worker session to archive with its runtime guide.
110
+ - It runs `gh` and `git` in the repository checkout and needs `LINEAR_API_KEY` and a GitHub token.
111
+
83
112
  ## Keys
84
113
 
85
114
  Armada needs a few keys. Set them up once per machine with `armada auth login`, or pass them as environment variables, which always win over the stored ones (the way to go in CI and cloud sandboxes).
@@ -132,10 +161,25 @@ runtimes = ["Claude Code", "Codex", "Conductor"] # values of the runtime group
132
161
  repository = "acme/widgets" # owner/name (required)
133
162
 
134
163
  [gates]
135
- required_checks = ["test"] # CI checks that must be green before a hand-back (default: every check)
164
+ required_checks = ["test"] # CI checks that must be green before a hand-back or a merge (default: every check)
165
+ local_commands = ["npm ci", "npm test"] # run by `armada merge` on a test merge of a head behind its base (default: none, rebase instead)
136
166
 
137
167
  [policy]
138
168
  silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
169
+
170
+ [conductor]
171
+ default_profile = "opus" # profile `armada brief` uses without --profile
172
+
173
+ [conductor.profiles.opus] # one table per profile; `conductor model` lists the ids
174
+ agent = "claude"
175
+ model = "opus-5-5-1m"
176
+ effort = "high"
177
+ # fast_mode = true # optional, default false
178
+
179
+ [conductor.profiles.codex]
180
+ agent = "codex"
181
+ model = "gpt-6.1-sol"
182
+ effort = "high"
139
183
  ```
140
184
 
141
185
  A missing or invalid key stops the command with a message naming it, for example `missing required key "tracker.program_root"`. This repository's own configuration is in [`armada.toml`](https://github.com/The-Vibe-Company/armada/blob/main/armada.toml).