Skip to content

Console API: start a Ticket run in a known Launch directory #1771

Closed

Description

@JacobStephens2

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 cd into, plus a launch_directories list in the User config, each resolved to its repository (owner/name) through its origin remote. 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 gh and a fake Harness: a run token 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 read or act token gets a 403 naming run.
  • The Launch directory list endpoint and its CLI twin agree.
  • docs/guide.md documents starting work through the API and launch_directories.

Activity

  1. added
    enhancement
    ready-for-agent
    on Nov 5, 2026
  2. JacobStephens2 commented on Nov 6, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1809, merged into issue-1768 by a thirdshift Ticket run with Self-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions