Skip to content

[finding] check:pm-dispatch-gates repeatedly holds the shared verify lock 500-900s+, starving the queue #14521

Description

@baozhoutao

Filed unassigned while working #14350 (a small docs-only re-quote). Recorded so it does not rot silently.

Observed on objectstack-14350 worktree, 2026-09-02, over several os-verify-lock.sh calls against docs/qa/platform-checklist/areas/cli.json and packages/lint/packages/formula: pnpm check:pm-dispatch-gates was the lock holder for every one of five consecutive queue-timeouts (os-verify-lock.sh exit 99, budget 540s each), across at least three distinct holder PIDs (24842, 26837, 2891) — i.e. not one stuck process, but repeated fresh invocations that each ran past the 540s budget before releasing the lock. One instance was still the holder after 782s+ held when a retry finally acquired behind it.

This isn't a claim that check:pm-dispatch-gates itself is wrong — only that its typical runtime (roughly 500-900s+ observed) is now large enough, relative to os-verify-lock.sh's 540s per-call budget, that any other seat queued behind it reliably times out at least once before getting a turn. On a shared-box fleet with several agents running heavy verification concurrently, this reads as a throughput problem worth someone measuring deliberately (is 500-900s the new normal for this check post the recent scripts/pm/dispatch-gates.mjs growth — it gained ~455 lines in a git merge origin/main pulled during this same session — or is something making individual runs slower than intended?).

Not connected to #14350's fix or file surface; recorded as an operational observation only, no reproduction steps beyond "run check:pm-dispatch-gates on a loaded box and time it."

Generated by Claude Code

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions