Skip to content

Office: queue guard in the server hire path, not only the page #3119

Closed

Description

@QuinnsCode

From the spike in #3117. The dispatch hint is a page-only card, off by default; office-workers hire, MCP and the PR agent skip it. Move the check into the hire/queue handler, include other queued tasks' file guesses, and offer hold-until-merged (reuse Held/stillBusy). Size M, 1-2 days.

Activity

  1. QuinnsCode commented on Nov 1, 2026

    @QuinnsCode
    OwnerAuthor

    Not doable in this repo: the hire/queue handler is in the Agent Office binary (outside RustyBuns). Needs a change there.

  2. QuinnsCode commented on Nov 3, 2026

    @QuinnsCode
    OwnerAuthor

    Status 2026-11-03: the pre-PR half of the spike shipped. scripts/preflight.ts (#3364, #3371) lists open PRs that change a branch's files and has Mervin merge the branch after them (card/clash: exit 1). AGENTS.md tells workers to run it before gh pr create.

    Still to do here: the same check at hire/queue time, in the Agent Office binary, so tasks are held before two workers start on the same files. The page's dispatch hint is still the only place that happens today. A server-side hire handler could call overlaps() and verdict() from scripts/preflight.ts against the open PRs, with the task's file guesses standing in for a branch.

  3. self-assigned this
    on Nov 4, 2026
  4. QuinnsCode commented on Nov 9, 2026

    @QuinnsCode
    OwnerAuthor

    Done, from the 2026-11-09 board scan (notes/audit/2026-11-09-*.json): Server-side hire/queue guard landed in #3426 (commit 68ed875, apps/agent-office/live/overlap.ts: refuse, hold or send anyway). The unqueued-hire gap is its own issue, #3427.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions