Skip to content

Command limit: Pickup runs share a repository up to [pass] command_limit #1571

Closed

Description

@JacobStephens2

This was generated by AI from a grill-with-docs session.

Parent

#1564

What to build

[pass] command_limit in the User config, a whole number from 1 up, default 1, is how many live Commands on one repository on one machine skip a Pass there. This is the Command limit in GLOSSARY.md, and it replaces the one-at-a-time Pass lock.

  • Every live Command counts, Ticket runs and Spec runs started by hand on an Issue URL included. Only a Pass is ever skipped: a command the Day shift types always runs.
  • A Pass's dispatched Spec run or Ticket run is part of that Pass and takes no slot of its own.
  • A Command that ends, however it ends, a crash included, frees its slot.
  • In this Ticket only Pickup runs share a repository. Architect runs, Security runs and issue-less Custom processes still start only when nothing else is running on the repository, and keep it to themselves, as today.

Decided in docs/grill-with-docs/1532-keep-working-the-backlog.md: Q1.2, Q2.1, Q3.1, Q3.2.

Acceptance criteria

  • Each live Command on a repository holds a slot that the operating system frees when its process ends. A Pass counts the held slots and takes one under a short lock, so two Passes starting together can't both take the last slot. A Command started on an Issue URL takes a slot without checking the count.
  • At command_limit = 1, a second Pass is skipped as today. Its message and exit code don't change, and existing ALREADY_RUNNING tests pass unchanged.
  • At command_limit = 2, two Pickup runs on one repository run at once. A third Pass is skipped, its line saying how many Commands are running and what the limit is, which tells it apart from a skip for the Failure limit.
  • A Ticket run started by hand on an Issue URL fills a slot, so a Pass at the limit is skipped, but the Ticket run itself is never refused, even at the limit.
  • A killed Command frees its slot for the next Pass.
  • The limit counts only its own repository: a full repository never skips another repository's Pass.
  • A thirdshift from before this change and one from after still keep each other out. Each Pass also tries today's lock file, so with command_limit = 1 old and new binaries behave the same.
  • An Architect run, Security run or issue-less Custom process is skipped while any other Command runs on the repository. While it runs, every Pass is skipped.
  • Skips are recorded in the Activity log once per change of reason. thirdshift status and the Console show each overlapping Command on its own row.
  • command_limit is refused at 0, negative, fractional or quoted values. Setup's defaults, the User config comments and docs/guide.md describe it, and the guide says how to raise it, beside the [resources] memory and load waits.
  • Tests run through the CLI, with two thirdshift processes at once (prior art: the ALREADY_RUNNING tests in architect_run), plus user_config.

Blocked by

None - can start immediately.

Activity

  1. added
    enhancement
    ready-for-agent
    on Oct 28, 2026
  2. JacobStephens2 commented on Oct 29, 2026

    @JacobStephens2
    OwnerAuthor

    Closed by #1580, merged into issue-1564 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