Repository navigation
Closed
Labels
Description
This was generated by AI during triage.
Parent
#1768 (Spec: starting work and administering a machine through the Console API). Built on #1753 (the Console API). Governing decision: ADR 0026.
What to build
A client with the run scope starts a Ticket run (or a Spec run, for an issue with sub-issues) through the API, in one of the machine's known Launch directories.
- Known Launch directories: the directories this account's thirdshift cron jobs
cdinto, plus alaunch_directorieslist in the User config, each resolved to its repository (owner/name) through itsoriginremote. An endpoint and its CLI twin list them. - Start endpoint: it takes the repository as owner/name, the issue (number or URL), and the shared options (merge, email, harness, model, effort, base-fix, security review and fix) as structured JSON. The Console resolves the repository's Launch directory, then spawns the same thirdshift binary with the equivalent arguments there: detached in its own session, with the account's login environment, output appended to the log cron uses. It waits briefly (bounded, e.g. 30 seconds) for the Command record, then returns the Command's name. A repository with no known Launch directory is refused.
- Who started it: the requester's identity (person and machine, or token holder) reaches the Command through its environment, and its Activity log start line names them. Commands started from cron or a terminal are unchanged.
- Every start is written to the Console log.
- It behaves exactly like the typed command: a Ticket run started on an issue always runs.
Acceptance criteria
- An HTTP test with the fake
ghand a fake Harness: aruntoken starts a Ticket run in a fixture clone named by a fixture cron job. The response names the Command, its Command record appears, and the Activity log names the token holder. - A repository outside the known Launch directories is refused, and nothing starts.
- The started Command keeps running across a Console restart.
- A
readoracttoken gets a 403 namingrun. - The Launch directory list endpoint and its CLI twin agree.
-
docs/guide.mddocuments starting work through the API andlaunch_directories.
Activity
JacobStephens2 commentedon Nov 6, 2026
Closed by #1809, merged into issue-1768 by a thirdshift Ticket run with Self-merge.