/dev-graph:run-dev-graph-schedule [--repo-root PATH] [--scope ID] [--max-parallel N]from dev-graph
Calculates conflict-free parallel batches from a dependency graph, separating feature-ready from task-ready items. Use when you need to schedule work respecting dependencies, tracker parity, resource scope, and active leases.
Ships in dev-graph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Purpose & Output Contractの最小の実成果物をmain contextで作成する。effect別のparse/open・secret・irreversible・corrupt guardだけを実行し、現物path・digest・開き方を提示してからaccept-as-is/diagnoseを記録する。accept-as-isはその場でhandoff完了とし、後続sectionを実行しない。
以下の既存workflow・goal-seek・評価・修正sectionはdiagnoseが記録されてsemantic_evaluator_startedへ遷移した場合だけ実行する。release/exhaustiveは別の明示eventを必要とする。
devgraph/<graph_node_id> branch/claim command。ready と status/depends_on exact-set parity=confirmed の積集合だけを採用する。github/none は local graph から算出する。parity の期待値は bd-bridge.py --op ready --graph <graph> が正準の build-parity-manifest.py にメモリ内で委譲し、graph の beads_linkage (sync の起票結果を C02 link-beads が記録したもの) からprovenance付きで組み立て、その出力を schedule-graph.py --ready-source bd-bridge --ready-json <path> に渡す。linkage の無い beads の node は ready に出ず、linkage の無い依存先を持つ node は conflict になる。parent_feature に名指す feature は計画済みなので planner の候補に出さず、schedule-graph.py の planned_features に分けて返す (同じ feature を2回計画しない)。その feature の実行候補は member の task である。schedule-graph.py の resource_scope conflict と C27 lease snapshot を重ね、同じ resource を触る組を分離する。C17 独立 verifier が不一致を出したら推薦しない。出力は ready sets、parallel batches、conflict pairs、各 task の devgraph/<graph_node_id> branch と dev-graph worktree claim <id> command。read-only で graph/tracker/lease を変更しない。
候補は mvp_alignment.mvp_fit の rank (direct → enabling → 未設定 → deferred、同 rank は node id 順) で並び、その理由を stdout の selection_receipt (policy: mvp-first/v1) に載せる。利用者へ着手順を示すときは、この receipt の mvp_fit と目的/背景/根拠をそのまま添え、順序を独自に並べ替えない。enum 外の mvp_fit は停止として扱い、未設定へ丸めない。
beads binding を含むときは、--ready-json を消費する前に同じ周回で生成する。committed 済みの古い receipt を使い回さない。parity manifest は canonical graph だけから作り、source_graph_digest を持つ。ready payload に parity_provenance が付いていれば、schedule-graph.py はその source_graph_digest を現 graph の canonical digest と照合し、不一致なら stale として停止する。
bd-bridge.py --op ready --graph は同じbuilderの build() をメモリ内で使う読取専用の入口であり、別の生成規則やmanifestファイルを持たない。
parity manifest を手書きしない。../../scripts/build-parity-manifest.py が唯一の生成経路で、既定の出力先は eval-log/dev-graph/run-dev-graph-schedule/parity-manifest.json (下の $OUT/parity-manifest.json) である。stale で止まったときも manifest を作り直す。source_graph_digest だけを現在値へ書き換える修正は stale 検出を恒久的に無効化する (execution-tracker-contract §10)。
OUT="$DEV_GRAPH_ROOT/eval-log/dev-graph/run-dev-graph-schedule"
python3 -B ../../scripts/build-parity-manifest.py --repo-root "$DEV_GRAPH_ROOT"
python3 -B ../../scripts/bd-bridge.py --op ready --repo-root "$DEV_GRAPH_ROOT" --parity-manifest "$OUT/parity-manifest.json" > "$OUT/ready.json"
python3 -B ../../scripts/manage-worktree-lease.py --repo-root "$DEV_GRAPH_ROOT" --op list > "$OUT/leases.json"
python3 -B ../../scripts/schedule-graph.py --graph "$DEV_GRAPH_ROOT/.dev-graph/state/graph.json" \
--ready-source bd-bridge --ready-json "$OUT/ready.json" --leases "$OUT/leases.json" \
--scope "<feature-id>" --max-parallel "<N>" > "$OUT/schedule.json"
github/none だけなら --ready-source self とし、--ready-json は渡さない。除外された候補は excluded[] (dependency_unsatisfied / ready_payload_entry_absent / beads_parity_stale_or_unconfirmed)、対応付けの失敗は unmapped[] に理由つきで出る。判定順序と理由の一覧は schedule-graph-contract.md を正本とする。
グラフの依存関係・完了状態・active worktree leaseから次に着手すべきready-setと、リソーススコープ/lease重複のない複数worktree向け並列バッチを算出・提示した状態になっている
依存関係を都度人手で追跡せずに次の一手を判断できるようにする。binding=beadsはC28でstatusとdepends_on edge exact-set parityがconfirmedの場合だけbd ready候補を採用し、parity pending/conflictは推薦しない。その候補へdev-graph固有のresource_scope/lease重複回避を重ねる。github/noneはC16で自前算出し、mode=bothはbinding別結果を合成する。二層ready-set: feature ready (機能間depends_on充足) はper-feature planning起動候補、task ready (feature内depends_on充足+resource_scope非競合) は実行候補として区別し、feature単位の並列batchとtask単位の並列batchを混在させない (MM-10)
devgraph/<graph_node_id> で claim command が public CLI 形式であるfrontmatter の goal_seek.engine: inline / fork: subagent / max_loops: 5 を実行契約とする。固定手順は使わず、未達 checklist と担当 prompts/*.md からその周回の操作を都度生成する。各周回で inner criterion を検証し、完了後は outer criterion の live trial/content review を最大 feedback_contract.max_iterations=3 周で評価する。
resolve-repo-context.py --mode read の JSON receipt を得て、repo_root が content_roots.repository の realpath と一致する場合だけ DEV_GRAPH_ROOT=<receipt.repo_root> に固定する。cwd から再解決しない。$DEV_GRAPH_ROOT/eval-log/run-dev-graph-schedule-goal-spec.json へ、各 checklist の status/evidence を $DEV_GRAPH_ROOT/eval-log/run-dev-graph-schedule-progress.json へ記録する。prompts/<R-id>.md を読み、Agent で分離 context に fork する。ユーザー判断が必要な境界だけ AskUserQuestion を使う。
Agent を spawn_agent に写し、fork_turns="none" を指定して親の履歴を受け継がせない (既定は親の履歴を子へ写すので、分離 context にならない)。子には正本の絶対 path と入力 (入力の path、上で固定した DEV_GRAPH_ROOT の値、C24 receipt の JSON、親が確定した --scope・--max-parallel・binding mode の値) だけを渡し、子が自分で全文を読む。子は repo root を cwd から解き直さない。親の会話や判定の要約は渡さない。子は利用者に問わない。問いが要るときは問いの案を親へ返し、親が user turn で問う。起動の受理を結果として扱わず、wait_agent で子の完了を待ってから最終応答を受け取る。wait_agent は timeout や、ほかの子の更新でも返るので、その子の完了が届くまで待ち直す。task_name は小文字・数字・underscore だけで作り、周回番号を付けて一意にする。同じ周回で同じ名前の子を起こし直すときは、試行番号を足す (例: dev_graph_parallel_safety_verifier_loop2_a2)。子にも読取専用の境界を渡す (この skill は graph/tracker/lease を変更しない)。
task_name は R-id を小文字にしてハイフンを underscore に変え、周回番号を付ける (例: r3_schedule_loop2)。渡す正本は prompts/<R-id>.md である。task_name は dev_graph_parallel_safety_verifier に周回番号を付ける。渡す正本は ../../agents/dev-graph-parallel-safety-verifier.md で、入力はその Layer 2 の 4 つの path で、graph snapshot は上の schedule-graph.py の --graph に渡した path、schedule receipt は R3 が書いた $OUT/schedule.json、lease snapshot は $OUT/leases.json、beads parity receipt は C28 が書いた $OUT/ready.json (edge_parity と parity_provenance を持つ) である。$OUT/parity-manifest.json は C28 への入力で、tracker 側の parity の結果ではないので、verifier へ receipt として渡さない。binding に beads を含まないときは beads parity receipt が無いので、無いことを verifier へ伝える。再検証も新しい子で行い、検証を終えた子へ追加の指示を送らない。$DEV_GRAPH_ROOT/eval-log/run-dev-graph-schedule-intermediate.jsonl へ original_goal、original_goal_hash、current_goal_snapshot、delta_from_original、merged_directive_for_next、drift_signal を append-only で記録する。次周回は直前の merged_directive_for_next を必須入力にする。feedback_contract.criteria が PASS のときだけ完了する。各周回後に次の検査を実行し、中間成果物の欠落・goal drift・hash 不一致を fail-closed にする。
python3 - "$DEV_GRAPH_ROOT/eval-log/run-dev-graph-schedule-goal-spec.json" "$DEV_GRAPH_ROOT/eval-log/run-dev-graph-schedule-intermediate.jsonl" <<'PY'
import hashlib, json, sys
goal = json.load(open(sys.argv[1], encoding='utf-8'))
rows = [json.loads(line) for line in open(sys.argv[2], encoding='utf-8') if line.strip()]
required_keys = {'original_goal','original_goal_hash','current_goal_snapshot','delta_from_original','merged_directive_for_next','drift_signal'}
expected = hashlib.sha256(goal['original_goal'].encode('utf-8')).hexdigest()
assert rows, 'intermediate.jsonl is empty'
for row in rows:
assert required_keys <= row.keys(), required_keys - row.keys()
assert row['original_goal'] == goal['original_goal']
assert row['original_goal_hash'] == expected
PY
criteria:IN1: schedule-graph.py の ready-set に blocked/draft/unconfirmed/evaluation非pass/readiness非complete の候補が 0件であることを script test で検証する。criteria:OUT1: 推薦 task は全 depends_on がdoneで、未充足依存を持つ候補が ready-set に0件であることを受入テストで検証する。criteria:OUT2: 同一parallel batch内の resource_scope.touches 重複ペアが0件で、active leaseと衝突する候補を推薦しないことを受入テストで検証する。criteria:OUT3: ready taskごとに一意な suggested_branch=devgraph/<graph_node_id> と dev-graph worktree claim <id> commandを返し、C27が同一graph_node_idの二重claimを0件に抑止することを受入テストで検証する。blocked/draft/unconfirmed/evaluation!=pass/readiness!=complete のどれかを ready に混入させない。depends_on の done を確認する。resource_scope.touches と active lease の両方を衝突判定に使う。What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/run-dev-graph-decompose大きな自然文構想を feature・architecture・機能間依存へマクロ分解したいとき、ready feature の system-dev-planner package を atomic 登録・binding 別投影したいときに使う。/run-dev-graph-initdev-graph を呼出し元 repository/worktree 内へ冪等初期化したいとき、6 content root と repo-local config/state/templates/hook fallback を安全に用意したいときに使う。/run-dev-graph-nodedev-graph artifact を正規 path へ atomic 追加・差分更新したいとき、system-dev-planner の exact 13 phase task package を all-or-none 登録したいときに使う。/run-dev-graph-renderdev-graph を静的 HTML に可視化したいとき、外部 CDN/npm なしの自己完結 SVG + inline JS 成果物を生成したいときに使う。/run-dev-graph-requirements確定 system spec と feature package から実装要件を導出したいとき、readiness 完了時だけ capability-build/task-graph build へ handoff したいときに使う。/run-dev-graph-statusdev-graph node を metadata で検索したいとき、依存・tombstone・completion 状態を副作用なしで確認したいときに使う。npx claudepluginhub daishiman/harness-dev --plugin dev-graphOther plugins' skills for the same job