run-spec-parallel-detection
Decide which ready tasks start now — dependencies merged on origin/main, Files disjoint from each other and from in-flight pull requests, at most four — using runspec.py batch
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- run-spec-parallel-detection
- description
- Decide which ready tasks start now — dependencies merged on origin/main, Files disjoint from each other and from in-flight pull requests, at most four — using runspec.py batch
- argument-hint
- <spec-name> [--in-flight N,M]
03 SKILL.md 正文
Run Spec — Parallel Detection
Which tasks /run-spec dispatches together. Parallelism is an optimisation: when in doubt a task waits for the next batch.
Input
$ARGUMENTS: the spec name and, optionally, the in-flight tasks (open pull requests not yet merged).
Invocation contexts
- Slash command: prints the batch and the deferred tasks with their reasons.
- Model-invoked: the same;
/run-specalso reads this page inline. - Non-interactive: the same. Read-only.
Steps
-
git fetch origin, then compute the batch from the spec'stasks.md:python3 scripts/harness/runspec.py batch specs/in-progress/<spec>/tasks.md --in-flight <N,M> --max <max-parallel>It takes the ready tasks in task order and keeps each whose
Filesoverlaps neither an earlier pick nor an in-flight task (same path, a directory containing it, or a matching glob). A ready task with noFileslist runs alone. The rest aredeferredwith the reason. -
For each task in the batch,
python3 scripts/harness/runspec.py deps-merged <spec> <N>must exit 0. Workers start from origin/main, so a dependency whose pull request is not merged yet is invisible to them; such a task waits, whatevertasks.mdin the local checkout says. -
Drop
maintainertasks from the batch and report them to the operator.
Why these rules
- Disjoint Files, including in-flight pull requests. Two open pull requests editing one file conflict at merge, and the second needs a merge of main and a re-run of its gates. The spec's own
tasks.mdandhandoff.mdare exempt: each task edits only its own block and its own seeded section, so those edits merge cleanly (scripts/harness/tests/test_runspec.pymerges two such branches). - Merged, not just committed. A worker's worktree is cut from origin/main. Output that exists only in another worktree or an unmerged branch is not there.
- At most four. Beyond four concurrent workers, review and merge become the bottleneck, and an early failure that changes the plan wastes more work.
Output
The batch JSON: batch, deferred (task and reason) and deadlock, plus any task dropped at step 2 or 3.
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code