@the-vibe-company/armada 0.1.0 → 0.1.2
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 +58 -6
- package/dist/armada.js +2019 -50
- package/package.json +5 -2
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` and `armada
|
|
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.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -26,12 +26,60 @@ armada status # or: armada status --json
|
|
|
26
26
|
|
|
27
27
|
`armada status` reads the `armada.toml` of the current repository (or the nearest parent directory) and prints:
|
|
28
28
|
|
|
29
|
-
- **In flight**: tickets an agent holds, with their phase, runtime, last
|
|
29
|
+
- **In flight**: tickets an agent holds, with their phase, runtime, last report and pull request. A worker with no report (an `armada report` event in Turso, an `Agent status:` comment or its claim) for longer than `policy.silence_minutes` is flagged `silent`, unless it is waiting on a human (`awaiting-approval`, `blocked`, `ready-to-merge`). A ticket that never had a report falls back to its last sign of life (ticket edit, comment or pull request update).
|
|
30
30
|
- **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.
|
|
31
31
|
- **Pull requests waiting**: open pull requests with their CI state and mergeability.
|
|
32
32
|
|
|
33
33
|
GitHub is read with `GITHUB_TOKEN`, `GH_TOKEN` or the GitHub CLI login (`gh auth token`). Without any of them the tickets are still shown.
|
|
34
34
|
|
|
35
|
+
## Set up a repository
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
armada doctor # what this repository lacks, with the fix for each
|
|
39
|
+
armada init --program-root ABC-1 # one pull request that adds it all
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
`armada doctor` checks, in the repository you are in:
|
|
43
|
+
|
|
44
|
+
- `armada.toml` exists and is valid;
|
|
45
|
+
- the Armada skills (`armada-coordinator`, `armada-worker`, `armada-runtime-conductor`) are in `.agents/skills`, linked from `.claude/skills`, recorded in `skills-lock.json` (the [`npx skills`](https://github.com/vercel-labs/skills) format), and match this version of Armada;
|
|
46
|
+
- `.conductor/settings.toml` has a `[scripts] setup` command;
|
|
47
|
+
- `.gitignore` ignores `plans/ship-pr-dev/`;
|
|
48
|
+
- the Linear label groups `Agent phase` and `Agent runtime` exist with every value (needs `LINEAR_API_KEY`).
|
|
49
|
+
|
|
50
|
+
Each problem is an error or a warning, with its fix. A missing skill is an error: workers cannot run without it. A skill that differs from this Armada version, or a missing ignore line, is a warning. Doctor exits 1 when there is an error. `--json` prints the same report as JSON.
|
|
51
|
+
|
|
52
|
+
`armada init` fixes everything doctor reports in one go:
|
|
53
|
+
|
|
54
|
+
1. It creates the missing Linear labels (a missing group goes in the team of the program root).
|
|
55
|
+
2. It builds the missing or outdated files on a fresh checkout of the default branch, commits them on the branch `armada/init-<version>` and opens a pull request with `gh`. Your own checkout is not touched. Running it again rebuilds that branch and updates the same pull request. When the default branch already has everything, no pull request is opened.
|
|
56
|
+
3. It registers the project (slug, name, repository, program root) in the Turso database, so `armada status --all` and the dashboard list it.
|
|
57
|
+
|
|
58
|
+
On a repository without `armada.toml`, pass `--program-root <ISSUE-ID>`; the name comes from the GitHub repository unless you pass `--name`, and the slug from the name unless you pass `--slug`. An existing `armada.toml` is never replaced. `init` needs `git`, the GitHub CLI logged in (`gh auth login`), `LINEAR_API_KEY` and `ARMADA_TURSO_URL`; on a terminal it asks for missing keys first.
|
|
59
|
+
|
|
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
|
+
|
|
62
|
+
## Work on a ticket (workers)
|
|
63
|
+
|
|
64
|
+
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.
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
armada claim ABC-12 --runtime conductor --handle <workspace>/<session>
|
|
68
|
+
armada report awaiting-approval --message-file plan.md # first line = summary
|
|
69
|
+
armada report implementing --message "plan approved, writing the parser"
|
|
70
|
+
armada report implementing --message "parser done, wiring the CLI" # same phase = status update
|
|
71
|
+
armada report shipping --message "PR open" --pr 34
|
|
72
|
+
armada report ready-to-merge --pr 34 --sha <full 40-character head SHA>
|
|
73
|
+
armada release --reason "wrong ticket"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- `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 in Turso, so a coordinator finds the session either way. Claiming again with the same handle repairs labels and state.
|
|
77
|
+
- `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.
|
|
78
|
+
- `ready-to-merge` is refused unless the pull request is open in the project repository, `--sha` is the full 40-character SHA of its head, and every check in `[gates] required_checks` is green on that head (with none declared: at least one check, all green). It needs a GitHub token.
|
|
79
|
+
- `release` removes the phase and runtime labels, moves the ticket back to the team's first unstarted state and posts `Agent status: released — <reason>`.
|
|
80
|
+
- `report` and `release` find the ticket from `--ticket`, then `ARMADA_TICKET`, then the current git branch (`feature/abc-12-…`).
|
|
81
|
+
- Turso is optional. When it is not configured or not reachable, the commands still write Linear and print a warning.
|
|
82
|
+
|
|
35
83
|
## Keys
|
|
36
84
|
|
|
37
85
|
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).
|
|
@@ -39,8 +87,8 @@ Armada needs a few keys. Set them up once per machine with `armada auth login`,
|
|
|
39
87
|
| Variable | What | Needed by |
|
|
40
88
|
| --- | --- | --- |
|
|
41
89
|
| `LINEAR_API_KEY` | Linear personal API key (Linear > Settings > Security & access > Personal API keys) | `armada status` |
|
|
42
|
-
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` | live activity (
|
|
43
|
-
| `ARMADA_TURSO_TOKEN` | Turso database token |
|
|
90
|
+
| `ARMADA_TURSO_URL` | Turso database URL, `libsql://...` (`file:/path/armada.db` for a local database) | `armada init` and `armada status --all` (project registry); live activity: events, runtime handles, inbox (optional) |
|
|
91
|
+
| `ARMADA_TURSO_TOKEN` | Turso database token | the same (optional for a `file:` database) |
|
|
44
92
|
| `GITHUB_TOKEN` or `GH_TOKEN` | GitHub token; otherwise `gh auth token` is used | pull requests and CI |
|
|
45
93
|
|
|
46
94
|
- `armada auth login` asks only for the keys that are missing, with hidden input for tokens, and stores them in `~/.config/armada/credentials` (or `$XDG_CONFIG_HOME/armada/credentials`), mode 0600 in a 0700 directory. Without a terminal it asks nothing and lists the variables to set instead.
|
|
@@ -78,12 +126,16 @@ ready_label = "ready-for-agent" # marks a ticket an agent may take (default)
|
|
|
78
126
|
[tracker.labels]
|
|
79
127
|
phase_group = "Agent phase" # single-select label group for the agent phase (default)
|
|
80
128
|
runtime_group = "Agent runtime" # single-select label group for the agent runtime (default)
|
|
129
|
+
runtimes = ["Claude Code", "Codex", "Conductor"] # values of the runtime group (default)
|
|
81
130
|
|
|
82
131
|
[github]
|
|
83
132
|
repository = "acme/widgets" # owner/name (required)
|
|
84
133
|
|
|
134
|
+
[gates]
|
|
135
|
+
required_checks = ["test"] # CI checks that must be green before a hand-back (default: every check)
|
|
136
|
+
|
|
85
137
|
[policy]
|
|
86
|
-
|
|
138
|
+
silence_minutes = 15 # a worker with no report for longer is flagged silent (default 15)
|
|
87
139
|
```
|
|
88
140
|
|
|
89
141
|
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).
|
|
@@ -105,7 +157,7 @@ See [AGENTS.md](https://github.com/The-Vibe-Company/armada/blob/main/AGENTS.md)
|
|
|
105
157
|
## What it is made of
|
|
106
158
|
|
|
107
159
|
- **`armada` CLI** (TypeScript). The coordinator and the workers call it to claim tickets, report progress, ask and answer questions, launch workers and merge.
|
|
108
|
-
- **Skills** vendored into the managed repository
|
|
160
|
+
- **Skills** vendored into the managed repository by `armada init`: the coordinator loop, the worker protocol and one runtime guide per runtime. They live in [`skills/`](skills).
|
|
109
161
|
- **Linear** holds the plan: specs, tickets, dependencies and agent phases.
|
|
110
162
|
- **Turso** (libSQL) holds live telemetry: events, heartbeats, pending questions and locks. Losing it loses live detail, never progress.
|
|
111
163
|
- **Conductor Cloud** runs the workers in the first version. Other runtimes come later without changing the worker contract.
|