@the-vibe-company/armada 0.1.9 → 0.1.10

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 +3 -1
  2. package/dist/armada.js +123 -33
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -109,6 +109,7 @@ armada answer --note ABC-12 "main moved: rebase before you ship" # an unsolicit
109
109
  - `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 in Turso. The worker then stops and waits for the answer in its session, and reports the phase it resumes. It finds the ticket like `report`.
110
110
  - `inbox` lists the coordinator's open items (questions, requests, hand-backs) and silent workers, oldest first. A worker is silent when it holds a ticket, its newest Turso event is older than `policy.silence_minutes`, and its phase does not wait on someone else. It reads Turso only (no Linear key) and records that the coordinator is at work, for the dashboard. `--wait` polls every 5 s and marks the items that were not there before with `*`; loop on it.
111
111
  - `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 Turso; a ticket id answers that ticket's open questions and also works without Turso. `--note` records a message the worker did not ask for as `Agent status: <phase> — note: …`. These two are the coordinator's records: Armada never reads them as the worker's phase, hand-back or sign of life. Only questions and requests can be answered; `merge` resolves hand-backs, and `release` and `merge` resolve the ticket's open questions. A worker that does not report within `policy.silence_minutes` of an answer shows as silent.
112
+ - The dashboard adds two kinds of request, signed by the person who made them. An `answer-request` carries the owner's answer to an open question: deliver it, then `armada answer <request id> "<answer>"`, which resolves the request and its question and names the requester on the ticket (answering the question 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.
112
113
 
113
114
  ## Merge a finished pull request (coordinator)
114
115
 
@@ -132,6 +133,7 @@ armada merge 34 # or the pull request URL; --ticket ABC-12 when the
132
133
  - **Waiting for you** comes first, across projects. It lists questions, blocked workers, plans to approve, hand-backs and silent workers, the most urgent first.
133
134
  - **At work** has one row per ticket in flight. A row shows the project, the runtime and session, the six-step phase pipeline, time in phase, the last report, the pull request with its CI, and the flags (red CI, conflict, double claim).
134
135
  - A filter shows one project. Each project shows whether its coordinator is active, from its last inbox read.
136
+ - **Answer** a question from its line in Waiting for you (an option of the question fills the answer in). **Ready to launch** lists the frontier with a Launch button and a profile picker, the routed profile preselected. Neither reaches a worker: each becomes a request in that project's coordinator inbox, signed with the name the viewer gives (remembered in a cookie; default `ARMADA_DASHBOARD_AUTHOR`), and shows as pending until the coordinator carries it out. The dashboard holds no runtime credential.
135
137
  - It stays live without a reload. Linear and GitHub are read at most once a minute per project. Turso is read on every 5-second poll, so a worker's `armada report` shows within seconds.
136
138
  - When Turso is unreachable, a banner says so and the view falls back to Linear and GitHub.
137
139
  - The interface is in English or French (`ARMADA_DASHBOARD_LANGUAGE`, or the EN/FR switch).
@@ -148,7 +150,7 @@ bun run demo:report WID-12 shipping "Opened the pull request" # w
148
150
  **Deploy on Vercel.** Create a project from this repository and set these options:
149
151
 
150
152
  - Root Directory: `packages/dashboard`, with files outside the root directory included (the default). The framework preset is Next.js, and Bun installs the workspace from `bun.lock`.
151
- - Environment variables: `ARMADA_DASHBOARD_PASSWORD`, `LINEAR_API_KEY`, `GITHUB_TOKEN`, `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN`. Optional: `ARMADA_REPOSITORIES` (the `owner/name` list shown while Turso is unreachable on a fresh server), `ARMADA_DASHBOARD_LANGUAGE` (`en` or `fr`) and `ARMADA_DASHBOARD_SNAPSHOT_SECONDS` (Linear and GitHub read period, default 60).
153
+ - Environment variables: `ARMADA_DASHBOARD_PASSWORD`, `LINEAR_API_KEY`, `GITHUB_TOKEN`, `ARMADA_TURSO_URL` and `ARMADA_TURSO_TOKEN`. Optional: `ARMADA_REPOSITORIES` (the `owner/name` list shown while Turso is unreachable on a fresh server), `ARMADA_DASHBOARD_LANGUAGE` (`en` or `fr`), `ARMADA_DASHBOARD_SNAPSHOT_SECONDS` (Linear and GitHub read period, default 60) and `ARMADA_DASHBOARD_AUTHOR` (the name requests are signed with until a viewer gives theirs). Never add a runtime token (Conductor or other): the coordinator carries out every request.
152
154
  - The keys stay on the server; the browser only receives the fleet reading.
153
155
 
154
156
  **Password.** The dashboard asks for `ARMADA_DASHBOARD_PASSWORD` before it shows anything, on every host, a custom domain included. Every page, the polling route and every server action answer 401 or send the viewer to the login page until then; only the build's static files are public.
package/dist/armada.js CHANGED
@@ -2100,6 +2100,18 @@ var MIGRATIONS = [
2100
2100
  PRIMARY KEY (project, ticket)
2101
2101
  )`
2102
2102
  ]
2103
+ },
2104
+ {
2105
+ version: 4,
2106
+ statements: [
2107
+ `CREATE TABLE IF NOT EXISTS inbox_requests (
2108
+ item INTEGER PRIMARY KEY,
2109
+ project TEXT NOT NULL,
2110
+ question INTEGER,
2111
+ profile TEXT
2112
+ )`,
2113
+ "CREATE INDEX IF NOT EXISTS inbox_requests_by_question ON inbox_requests (project, question)"
2114
+ ]
2103
2115
  }
2104
2116
  ];
2105
2117
  var SCHEMA_VERSION = MIGRATIONS.at(-1)?.version ?? 0;
@@ -2340,26 +2352,10 @@ async function putHandBack(db, item) {
2340
2352
  if (!updated.rowsAffected)
2341
2353
  await addInboxItem(db, { ...item, kind: "hand-back", recipient: "coordinator" });
2342
2354
  }
2343
- async function openInboxItems(db, q) {
2344
- const rs = await db.execute({
2345
- sql: `SELECT id, project, ticket, kind, recipient, author, body, created_at FROM inbox_items
2346
- WHERE project = ? AND recipient = ? AND resolved_at IS NULL ${q.ticket ? "AND ticket = ?" : ""}
2347
- ORDER BY created_at, id`,
2348
- args: q.ticket ? [q.project, q.recipient, q.ticket] : [q.project, q.recipient]
2349
- });
2350
- return rs.rows.map((r) => ({
2351
- id: Number(r.id),
2352
- project: String(r.project),
2353
- ticket: r.ticket === null ? null : String(r.ticket),
2354
- kind: String(r.kind),
2355
- recipient: String(r.recipient),
2356
- author: r.author === null ? null : String(r.author),
2357
- body: String(r.body),
2358
- createdAt: String(r.created_at)
2359
- }));
2360
- }
2361
- var INBOX_COLUMNS = "id, project, ticket, kind, recipient, author, body, created_at, resolved_at, resolution";
2362
- var inboxRow = (r) => ({
2355
+ var INBOX_COLUMNS = `i.id, i.project, i.ticket, i.kind, i.recipient, i.author, i.body, i.created_at,
2356
+ i.resolved_at, i.resolution, q.item AS request_item, q.question AS request_question, q.profile AS request_profile`;
2357
+ var INBOX_FROM = "inbox_items i LEFT JOIN inbox_requests q ON q.item = i.id";
2358
+ var inboxItem = (r) => ({
2363
2359
  id: Number(r.id),
2364
2360
  project: String(r.project),
2365
2361
  ticket: r.ticket === null ? null : String(r.ticket),
@@ -2368,12 +2364,30 @@ var inboxRow = (r) => ({
2368
2364
  author: r.author === null ? null : String(r.author),
2369
2365
  body: String(r.body),
2370
2366
  createdAt: String(r.created_at),
2367
+ ...r.request_item === null || r.request_item === undefined ? {} : {
2368
+ request: {
2369
+ question: r.request_question === null ? null : Number(r.request_question),
2370
+ profile: r.request_profile === null ? null : String(r.request_profile)
2371
+ }
2372
+ }
2373
+ });
2374
+ async function openInboxItems(db, q) {
2375
+ const rs = await db.execute({
2376
+ sql: `SELECT ${INBOX_COLUMNS} FROM ${INBOX_FROM}
2377
+ WHERE i.project = ? AND i.recipient = ? AND i.resolved_at IS NULL ${q.ticket ? "AND i.ticket = ?" : ""}
2378
+ ORDER BY i.created_at, i.id`,
2379
+ args: q.ticket ? [q.project, q.recipient, q.ticket] : [q.project, q.recipient]
2380
+ });
2381
+ return rs.rows.map(inboxItem);
2382
+ }
2383
+ var inboxRow = (r) => ({
2384
+ ...inboxItem(r),
2371
2385
  resolvedAt: r.resolved_at === null ? null : String(r.resolved_at),
2372
2386
  resolution: r.resolution === null ? null : String(r.resolution)
2373
2387
  });
2374
2388
  async function getInboxItem(db, project, id) {
2375
2389
  const rs = await db.execute({
2376
- sql: `SELECT ${INBOX_COLUMNS} FROM inbox_items WHERE project = ? AND id = ?`,
2390
+ sql: `SELECT ${INBOX_COLUMNS} FROM ${INBOX_FROM} WHERE i.project = ? AND i.id = ?`,
2377
2391
  args: [project, id]
2378
2392
  });
2379
2393
  const r = rs.rows[0];
@@ -2403,6 +2417,15 @@ async function resolveInboxItems(db, q) {
2403
2417
  });
2404
2418
  return rs.rowsAffected;
2405
2419
  }
2420
+ async function resolveAnswerRequests(db, q) {
2421
+ const rs = await db.execute({
2422
+ sql: `UPDATE inbox_items SET resolved_at = ?, resolution = ?
2423
+ WHERE project = ? AND kind = 'answer-request' AND resolved_at IS NULL
2424
+ AND id IN (SELECT item FROM inbox_requests WHERE project = ? AND question = ?)`,
2425
+ args: [q.at.toISOString(), q.resolution, q.project, q.project, q.question]
2426
+ });
2427
+ return rs.rowsAffected;
2428
+ }
2406
2429
  async function acquireLease(db, l) {
2407
2430
  const at = l.at.toISOString();
2408
2431
  const expires = new Date(l.at.getTime() + l.ttlMs).toISOString();
@@ -2625,7 +2648,7 @@ ${claimLine({ runtime: runtime.name, handle: input.handle, branch, started, prof
2625
2648
  });
2626
2649
  lines.push(`${inProgress ? `Moved to ${inProgress.name}` : "State unchanged"}, assigned to ${viewer.name}, labels ${phaseLabel?.name ?? ticket.agentPhase} and ${runtime.name}.`);
2627
2650
  const at = ctx.now();
2628
- await live(ctx, warnings, "record the claim", async (db) => {
2651
+ const launched = await live(ctx, warnings, "record the claim", async (db) => {
2629
2652
  await ensureProject(db, projectOf(config), at);
2630
2653
  await saveRuntimeHandle(db, {
2631
2654
  project: config.project.slug,
@@ -2651,7 +2674,24 @@ ${claimLine({ runtime: runtime.name, handle: input.handle, branch, started, prof
2651
2674
  handle: input.handle,
2652
2675
  at
2653
2676
  });
2677
+ if (resuming)
2678
+ return [];
2679
+ const asked = (await openInboxItems(db, { project: config.project.slug, recipient: "coordinator", ticket: ticket.id })).filter((i) => i.kind === "launch-request");
2680
+ for (const r of asked)
2681
+ await resolveInboxItem(db, {
2682
+ project: config.project.slug,
2683
+ id: r.id,
2684
+ resolution: `claimed by ${runtime.name} (${input.handle})`,
2685
+ at
2686
+ });
2687
+ return asked;
2654
2688
  });
2689
+ if (launched?.length) {
2690
+ const who = [...new Set(launched.map((r) => r.author ?? "the owner"))].join(", ");
2691
+ const ids = launched.map((r) => `#${r.id}`).join(", ");
2692
+ await linear.comment(ticket.uuid, `Agent status: planning — launched as ${who} asked from the dashboard (request ${ids})`);
2693
+ lines.push(`Launch request ${ids} from ${who} resolved.`);
2694
+ }
2655
2695
  const state = await readBack(ctx, ticket.id, warnings);
2656
2696
  return { ticket: ticket.id, url: ticket.url, lines, warnings, inbox: null, state };
2657
2697
  }
@@ -2782,6 +2822,13 @@ async function releaseTicket(ctx, input) {
2782
2822
  resolution: `ticket released: ${input.reason.trim()}`,
2783
2823
  at
2784
2824
  });
2825
+ await resolveInboxItems(db, {
2826
+ project: config.project.slug,
2827
+ ticket: ticket.id,
2828
+ kind: "answer-request",
2829
+ resolution: `ticket released: ${input.reason.trim()}`,
2830
+ at
2831
+ });
2785
2832
  await recordEvent(db, {
2786
2833
  project: config.project.slug,
2787
2834
  ticket: ticket.id,
@@ -3515,7 +3562,8 @@ async function readInbox(db, o) {
3515
3562
  author: i.author,
3516
3563
  body: i.body,
3517
3564
  createdAt: i.createdAt,
3518
- new: false
3565
+ new: false,
3566
+ ...i.request ? { request: i.request } : {}
3519
3567
  }));
3520
3568
  const asking = new Set(items.filter((i) => i.kind === "question").map((i) => i.ticket));
3521
3569
  for (const h of handles) {
@@ -3598,6 +3646,7 @@ function statusComment(phase, word, text, ref) {
3598
3646
 
3599
3647
  ${detail}` : line;
3600
3648
  }
3649
+ var ANSWERABLE = ["question", "request", "answer-request", "launch-request"];
3601
3650
  async function answerItem(ctx, input) {
3602
3651
  const { config, linear } = ctx;
3603
3652
  const project = config.project.slug;
@@ -3609,18 +3658,19 @@ async function answerItem(ctx, input) {
3609
3658
  throw new Refusal("a note goes to a ticket, not to an inbox item", 'armada answer --note <ticket> "<message>"');
3610
3659
  const warnings = [];
3611
3660
  const lines = [];
3661
+ let item = null;
3612
3662
  let itemId = null;
3613
3663
  let ticketId = null;
3614
3664
  if (idMatch) {
3615
3665
  itemId = Number(idMatch[1]);
3616
- const item = await live(ctx, warnings, `read inbox item #${itemId}`, (db) => getInboxItem(db, project, itemId ?? 0));
3666
+ item = await live(ctx, warnings, `read inbox item #${itemId}`, (db) => getInboxItem(db, project, itemId ?? 0));
3617
3667
  if (!item)
3618
3668
  throw new Refusal(warnings.length ? `inbox item #${itemId} cannot be read (${warnings.join("; ")})` : `inbox item #${itemId} does not exist in project ${project}`, warnings.length ? 'armada answer <ticket> "<answer>", to answer by ticket instead' : "armada inbox");
3619
3669
  if (item.resolvedAt)
3620
3670
  throw new Refusal(`inbox item #${itemId} was already resolved at ${item.resolvedAt}`, "armada inbox");
3621
3671
  if (item.kind === "hand-back")
3622
3672
  throw new Refusal(`inbox item #${itemId} is a hand-back: armada merge resolves it once the pull request is merged`, `armada merge <pr>${item.ticket ? ` --ticket ${item.ticket}` : ""} --dry-run`);
3623
- if (item.recipient !== "coordinator" || item.kind !== "question" && item.kind !== "request")
3673
+ if (item.recipient !== "coordinator" || !ANSWERABLE.includes(item.kind))
3624
3674
  throw new Refusal(`inbox item #${itemId} is a ${item.kind} for the ${item.recipient}, not something to answer`, "armada inbox");
3625
3675
  ticketId = item.ticket;
3626
3676
  } else {
@@ -3631,6 +3681,9 @@ async function answerItem(ctx, input) {
3631
3681
  throw new Refusal(`${ticketId} has no open question in the inbox`, `armada answer --note ${ticketId} "<message>", for an unsolicited message`);
3632
3682
  }
3633
3683
  }
3684
+ if (item?.kind === "launch-request")
3685
+ return declineLaunch(ctx, item, text, warnings);
3686
+ const question = item?.kind === "answer-request" ? item.request?.question ?? null : null;
3634
3687
  let url = "";
3635
3688
  if (ticketId) {
3636
3689
  const ticket = await linear.readTicket(ticketId);
@@ -3643,7 +3696,7 @@ async function answerItem(ctx, input) {
3643
3696
  throw new Refusal(`${ticket.id} has no agent phase: no worker holds it, so there is no one to tell`, "armada status, to see which tickets are in flight");
3644
3697
  warnings.push(`${ticket.id} has no agent phase (no worker holds it); the answer was not posted on the ticket`);
3645
3698
  } else {
3646
- const ref = itemId === null ? null : `Answers question #${itemId}.`;
3699
+ const ref = item?.kind === "answer-request" ? `Answers ${question === null ? "the open question" : `question #${question}`}, as ${item.author ?? "the owner"} asked from the dashboard (request #${item.id}).` : itemId === null ? null : `Answers question #${itemId}.`;
3647
3700
  await linear.comment(ticket.uuid, statusComment(ticket.agentPhase, input.note ? "note" : "answer", text, ref));
3648
3701
  lines.push(`${input.note ? "Note" : "Answer"} posted on ${ticket.id} (${ticket.agentPhase}).`);
3649
3702
  }
@@ -3664,11 +3717,19 @@ async function answerItem(ctx, input) {
3664
3717
  await resolveInboxItem(db, { project, id, resolution: "delivered through the runtime", at });
3665
3718
  return `Note #${id} recorded.`;
3666
3719
  }
3720
+ if (item?.kind === "answer-request") {
3721
+ await resolveInboxItem(db, { project, id: item.id, resolution: text, at });
3722
+ const closed = question !== null && await resolveInboxItem(db, { project, id: question, resolution: text, at });
3723
+ return `Dashboard request #${item.id} delivered${closed ? `; question #${question} resolved` : ""}.`;
3724
+ }
3667
3725
  if (itemId !== null) {
3668
3726
  const done = await resolveInboxItem(db, { project, id: itemId, resolution: text, at });
3727
+ if (item?.kind === "question")
3728
+ await resolveAnswerRequests(db, { project, question: itemId, resolution: text, at });
3669
3729
  return done ? `Inbox item #${itemId} resolved.` : `Inbox item #${itemId} was already resolved.`;
3670
3730
  }
3671
3731
  const n = await resolveInboxItems(db, { project, ticket: ticketId ?? "", kind: "question", resolution: text, at });
3732
+ await resolveInboxItems(db, { project, ticket: ticketId ?? "", kind: "answer-request", resolution: text, at });
3672
3733
  return `${n} open question${n === 1 ? "" : "s"} of ${ticketId} resolved.`;
3673
3734
  });
3674
3735
  if (recorded)
@@ -3677,6 +3738,14 @@ async function answerItem(ctx, input) {
3677
3738
  lines.push("The worker resumes once it reports its phase again.");
3678
3739
  return { ticket: ticketId ?? `#${itemId}`, url, lines, warnings: [...new Set(warnings)], inbox: null };
3679
3740
  }
3741
+ async function declineLaunch(ctx, item, reason, warnings) {
3742
+ const project = ctx.config.project.slug;
3743
+ const done = await live(ctx, warnings, `decline launch request #${item.id}`, (db) => resolveInboxItem(db, { project, id: item.id, resolution: `declined: ${reason}`, at: ctx.now() }));
3744
+ const lines = done === null ? [] : [
3745
+ done ? `Launch request #${item.id} for ${item.ticket} declined; the dashboard shows it closed.` : `Launch request #${item.id} was already resolved.`
3746
+ ];
3747
+ return { ticket: item.ticket ?? `#${item.id}`, url: "", lines, warnings: [...new Set(warnings)], inbox: null };
3748
+ }
3680
3749
  // ../core/src/labels.ts
3681
3750
  function requiredLabels(config) {
3682
3751
  return [
@@ -4449,6 +4518,13 @@ async function after(ctx, c, merged, lines) {
4449
4518
  at
4450
4519
  });
4451
4520
  await resolveInboxItems(db, { project: slug, ticket: c.ticket.id, kind: "question", resolution: "merged", at });
4521
+ await resolveInboxItems(db, {
4522
+ project: slug,
4523
+ ticket: c.ticket.id,
4524
+ kind: "answer-request",
4525
+ resolution: "merged",
4526
+ at
4527
+ });
4452
4528
  await releaseRuntimeHandle(db, slug, c.ticket.id, at);
4453
4529
  return { handle, resolved, open: await openRuntimeHandles(db, slug) };
4454
4530
  });
@@ -4544,16 +4620,20 @@ The coordinator turns the owner's intent into merged pull requests. Each worker
4544
4620
 
4545
4621
  1. **Read the fleet** with \`armada status\` and \`armada inbox\`, never from memory. Done when you can name every ticket in flight and its phase, every ready ticket, every pull request waiting, every silent worker and every pending question or request.
4546
4622
  2. **Answer what waits for you first.** For each question in \`armada inbox\`: decide it, or escalate it to the owner when it is a product decision and wait for theirs. Deliver the answer in the worker's session with the runtime guide's *message* section, then record it with \`armada answer <item> "<decision and reason>"\`. \`armada answer\` only records; it never reaches the worker. Decide reversible choices yourself and prefer the option that keeps behaviour observable. When two workers need the same shared resource (a migration slot, a generated file, a version number), set the rule once and tell both. A message the worker did not ask for (main moved, rebase needed) takes the same path: deliver it with the runtime guide, then \`armada answer --note <ticket> "<message>"\`. Done when the inbox shows no open question.
4547
- 3. **Check silent workers** with the runtime guide's *status* section. A worker that is still working gets a nudge to report; a worker that died is relaunched or its ticket released.
4548
- 4. **Launch ready tickets** that do not collide with work in flight, one at a time:
4623
+ 3. **Carry out the owner's dashboard requests.** They are the owner's word, signed with their name; they never reached a worker.
4624
+ - \`answer-request\` (it names the question it answers, \`answers #<id>\`): deliver its text in the worker's session with the runtime guide's *message* section, as the owner's answer, then \`armada answer <request id> "<the text you delivered>"\`. That resolves the request and its question, and the ticket names who answered. If the question is gone (the worker was released), \`armada answer <request id> "<why>"\` closes it.
4625
+ - \`launch-request\` (it names the profile the owner chose): launch the ticket as in step 5, with that profile. When it differs from the routed one, the request's body gives the \`--profile\` and \`--reason\` to pass to \`armada brief\` and to the worker's claim. The worker's \`armada claim\` resolves the request and posts who asked. If the ticket must not start (it collides with work in flight, or its plan changed), decline it: \`armada answer <request id> "<why>"\`, and tell the owner in your report.
4626
+ Done when the inbox shows no open request.
4627
+ 4. **Check silent workers** with the runtime guide's *status* section. A worker that is still working gets a nudge to report; a worker that died is relaunched or its ticket released.
4628
+ 5. **Launch ready tickets** that do not collide with work in flight, one at a time:
4549
4629
  - pick the ticket from the frontier in \`armada status\`;
4550
4630
  - run \`armada brief <ticket>\` and resolve its warnings. The profile (agent, model, effort) is routed from the ticket's labels by \`[[conductor.routing]]\` in \`armada.toml\`, else \`default_profile\`, and the brief says which rule chose it. Follow it. Override it only when the ticket's labels mislead (for example a \`web\` ticket that is really a tricky back-end bug): \`armada brief <ticket> --profile <name> --reason "<why>"\`. The reason lands in the worker's claim comment;
4551
4631
  - write the prompt with \`armada brief <ticket> --prompt > <file>\` and add what only you know: which parallel workers touch neighbouring code and where the boundary is, and decisions not yet on the ticket;
4552
4632
  - launch it with the runtime guide's *launch* section, passing the profile's values and the environment variables the brief names;
4553
4633
  - check the claim: \`armada status\` shows the ticket in flight, phase \`planning\`, with the handle the runtime returned. Done when every launched ticket is In Progress with a claim.
4554
- 5. **Merge handed-back pull requests** one at a time with \`armada merge <pr>\`, following [MERGE.md](MERGE.md). Done when the pull request is merged, the ticket is Done with its agent labels removed, and every in-flight worker affected by what landed has been told.
4555
- 6. **Turn findings into tickets.** A gap a worker reports or a bug you see becomes a ticket under the right spec, with blocked-by relations, and is launched when ready. No finding lives only in a transcript.
4556
- 7. **Report to the owner** in their language (\`tracker.language\` in \`armada.toml\`, or the owner's personal setting): what merged, what runs, what you decided for them, and the one thing they must do, with its exact place (a URL, a setting). Outcomes and numbers, no process narration.
4634
+ 6. **Merge handed-back pull requests** one at a time with \`armada merge <pr>\`, following [MERGE.md](MERGE.md). Done when the pull request is merged, the ticket is Done with its agent labels removed, and every in-flight worker affected by what landed has been told.
4635
+ 7. **Turn findings into tickets.** A gap a worker reports or a bug you see becomes a ticket under the right spec, with blocked-by relations, and is launched when ready. No finding lives only in a transcript.
4636
+ 8. **Report to the owner** in their language (\`tracker.language\` in \`armada.toml\`, or the owner's personal setting): what merged, what runs, what you decided for them, and the one thing they must do, with its exact place (a URL, a setting). Outcomes and numbers, no process narration.
4557
4637
 
4558
4638
  Repeat from step 1. Between rounds, \`armada inbox --wait\` blocks until a new item arrives or its timeout (default 300 s, \`--timeout <seconds>\`; keep it under your command time limit). Each \`armada inbox\` call also tells the dashboard you are at work.
4559
4639
 
@@ -4854,6 +4934,10 @@ ${SHIP_ARTIFACTS}
4854
4934
  var planIsEmpty = (p) => !p.writes.length && !p.removes.length && !p.links.length;
4855
4935
  // ../core/src/status.ts
4856
4936
  var STATUS_SCHEMA_VERSION = 1;
4937
+ function routeOf(config, labels) {
4938
+ const route = routeProfile(config, labels);
4939
+ return route ? { profile: route.name, why: describeRoute(route, config) } : null;
4940
+ }
4857
4941
  function buildStatus({
4858
4942
  config,
4859
4943
  program,
@@ -4900,6 +4984,7 @@ function buildStatus({
4900
4984
  phaseSource: l.phaseSource,
4901
4985
  runtime: l.runtime,
4902
4986
  handle: l.handle,
4987
+ profile: live2?.handles?.[l.issue.id]?.profile ?? l.claim?.profile ?? null,
4903
4988
  agent: l.agent,
4904
4989
  since: l.since,
4905
4990
  lastUpdate: l.lastUpdate,
@@ -4917,7 +5002,8 @@ function buildStatus({
4917
5002
  spec: c.spec,
4918
5003
  readyForAgent: c.readyForAgent,
4919
5004
  onCriticalPath: c.onCriticalPath,
4920
- unlocks: c.unlocksAll
5005
+ unlocks: c.unlocksAll,
5006
+ route: routeOf(config, c.issue.labels)
4921
5007
  })),
4922
5008
  pullRequests: forge ? waitingPullRequests(m, forge.prs).map(({ pr, ticket }) => ({
4923
5009
  ...prRef(pr),
@@ -4964,7 +5050,7 @@ async function loadStatus(config, opts) {
4964
5050
  });
4965
5051
  }
4966
5052
  // package.json
4967
- var version = "0.1.9";
5053
+ var version = "0.1.10";
4968
5054
 
4969
5055
  // src/io.ts
4970
5056
  class UsageError extends Error {
@@ -5629,6 +5715,8 @@ function renderInbox(r) {
5629
5715
  e.id === null ? e.kind : `#${e.id} ${e.kind}`,
5630
5716
  e.ticket,
5631
5717
  e.author && `from ${e.author}`,
5718
+ e.request?.question && `answers #${e.request.question}`,
5719
+ e.request?.profile && `profile ${e.request.profile}`,
5632
5720
  e.createdAt
5633
5721
  ].filter(Boolean).join(" · ");
5634
5722
  out.push(`${e.new ? "* " : " "}${head}`, ...e.body.split(`
@@ -5636,6 +5724,8 @@ function renderInbox(r) {
5636
5724
  }
5637
5725
  if (r.items.some((e) => e.kind === "question"))
5638
5726
  out.push(`Deliver each answer in the worker's session with the runtime guide, then record it: armada answer <id> "<answer>".`);
5727
+ if (r.items.some((e) => e.kind === "answer-request" || e.kind === "launch-request"))
5728
+ out.push('Dashboard requests: deliver an answer-request, then armada answer <id> "<answer>"; launch a launch-request (its claim resolves it), or decline it with armada answer <id> "<why>".');
5639
5729
  }
5640
5730
  if (r.wait?.timedOut)
5641
5731
  out.push(`No new item within ${r.wait.timeoutSeconds} s.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",