Skip to content

Studio: the runner's batch and the FirstMap run kind #758

Done

Description

@danielrispler

Parent

#753

What to build

The background runner can run several runs as one batch that holds the project's slot together, and has a read-only FirstMap kind. #753, "The drafting run" ("Kind", "A batch in the runner" and how a batch ends early).

Acceptance criteria

  • A batch is several runs queued as one request: they take the project's slot together and start together, each with its own folder, limit, status.json and pick-up; the slot frees when the last ends; a later request queues behind it.
  • A run that joins an active batch (a reviewer, a retry, a redraft) starts at once.
  • Discard of a batch cancels every run through Runner::cancel (running stopped, queued dropped) and frees the slot.
  • A login, usage or rate-limit failure mid-batch pauses the queues as today, and the batch's ended runs stay recorded.
  • After a restart, pick_up finds every run of a batch: live ones are waited for, ended ones recorded, dead ones reported as failed; no slot stays held with nothing behind it.
  • Kind::FirstMap: tools Read,Glob,Grep, no shell, no setup, so the checks gate never applies; tests on claude_command show it.
  • Runner tests with a stub launcher cover each criterion above.
  • docs/studio/behaviour/background-runs.md describes batches and the kind; system-map.json follows any change.

Reading

Touches

  • Files: server/src/runner.rs, docs/studio/behaviour/background-runs.md, system-map.json
  • Session: auto mode
  • Route: strong · effort high — queue, concurrency and persisted run state across restarts

Activity

  1. added
    ready-for-agent
    on Nov 27, 2026
  2. danielrispler commented on Nov 28, 2026

    @danielrispler
    OwnerAuthor

    Resolved in PR #776 (squash e6034bf on main), spec #753. Built on the integration branch as 6180109: the runner's batch and the FirstMap run kind.

    Route outcome: strong·high claude/opus → pass | 17m

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions