[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AB69H751TTCJ7XAQEV1FYW":3,"skill-same:01M7AB69H751TTCJ7XAQEV1FYW":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7AB69H751TTCJ7XAQEV1FYW","parallel-orchestration",null,"複数AIエージェントへtaskを分解・委譲し、immutable snapshot\u002Fresultとdependency-aware stacked deliveryで安全に並行統合する時に使用する。","rebuildup\u002Fproject-init","rebuildup","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F176191237?v=4","01M7AB3QGQ73Q2YNFNFGPAVVRX","samuido","01M7AB3QHEEN3RPZSTXYW3062Y",2,"MIT","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-orchestration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: parallel-orchestration\ndescription: 複数AIエージェントへtaskを分解・委譲し、immutable snapshot\u002Fresultとdependency-aware stacked deliveryで安全に並行統合する時に使用する。\n---\n\n# Parallel Orchestration\n\nLayer: **Operating Model + Skill**\n\n非自明な実装をdependency graphへ分解し、Readyまたはstack-readyなnodeをresource\u002FWIP制約内で安全に並行実行する。\n\nConstitutional requirementは「1 worker = 1 particular sandbox」ではなく **Mutable Ownership Safety \u002F Identity Integrity \u002F Organizational Continuity** である。current modelはisolated mutable runtime + immutable snapshot\u002Fresult + fencing identity（現在はgeneration-based fencing）でこれを実現する。\n\nより強いagent\u002Fruntimeが同等以上のguaranteeを別mechanismで提供する場合は、ADR-0017のrefinement contractに従って置換できる。Worker \u002F Supervisor のlogical roleと observational \u002F mutable \u002F durable attempt の分類は `organization\u002Fexecution-roles.md` と ADR-0019 をcanonical sourceとする。Herdrをselected runtime Practiceとして使う場合は `herdr-runtime` Skillを適用するが、Herdr lifecycle stateをcanonical task\u002Fresult stateにしない。\n\n## Attempt-class routing\n\nspawn前にroleだけでなくexecution attempt classを決める。\n\n- **observational**: research \u002F exploration \u002F independent review \u002F read-only diagnostics。source\u002Fruntimeのmutable ownershipを持たない限りbranch \u002F Draft PR \u002F sandbox \u002F fencing \u002F durable checkpointを要求しない。\n- **mutable**: independent implementationやstateful execution。明示的mutable-ownership boundary、base\u002Fresult identity、stale result rejectionを要求する。\n- **durable**: Issue-level \u002F long-running \u002F background \u002F remote execution。mutable要件に加えてdurable discoverability、checkpoint\u002Frecovery、fencingを要求する。\n\n観測用subagentがsourceを変更し始めた場合はmutableへ、session\u002Fprovider lossを越えて継続すべきworkになった場合はdurableへpromotionする。\n\n## Current operating guarantees\n\n- concurrent mutable implementation workerごとにisolated runtime、serialization、transaction等の明示的mutable-ownership boundaryを持つ。current defaultは1 worker = 1 isolated mutable runtime。\n- shared working tree \u002F Git index \u002F integration branchを複数workerが直接更新しない。\n- parent -> child はimmutable snapshot。\n- child -> parent はimmutable commit\u002Fref\u002Fdiff + validation result。\n- sandbox lifecycleはworker外のSupervisorが管理する。\n- worktree単体をexecution isolationとみなさない。\n- WSL\u002FLinuxでSupervisorがlocal branchをworktreeへmaterializeする場合は`worktree-workflow` Skillに従ってWorktrunkを使用できるが、各workerのruntime isolationとimmutable result contractは別に維持する。\n- durable planning unitはGitHub Issue、短命な内部subtaskはSupervisor taskとしてよい。\n- Issue dependency graphがdurable dependency SoTであり、Git branch topologyだけでdependencyを管理しない。\n- child lifecycleはparent model processではなくSupervisorが所有する。\n- durable worker task\u002Fresultはstale attemptを排除できるfencing identityを持つ。current implementationでは `execution_generation` を使用し、初期generationは `1`、recovery\u002Freassignment時にSupervisorが原子的に進める。\n- result統合前にapplicableなcurrent fencing identityとの一致を検証し、stale identityを統合しない。\n- validation resultはvalidated SHA\u002Fsnapshotにpinし、stack rebase\u002Fupdate後の別SHAへ流用しない。\n- long-running task \u002F context limit \u002F sandbox recreationでは `agent-recovery` Skillを適用する。\n- `security-audit` のcandidate validationではhunterとverifierを同一agentにせず、fresh verifierへimmutable candidate\u002Fevidenceを渡す。final record verificationが必要なprofileでも同じseparationを維持する。\n- spawn前に `policy-evaluation` Skillのexecution profileを判定し、mechanical \u002F localized taskへ不要なfan-outを導入しない。\n\n## Execution profile routing\n\norchestration strengthはtask sizeの印象ではなくexecution profileから決める。\n\n- `mechanical`: solo executionをdefaultとし、deterministic tooling \u002F focused validationを優先する。\n- `localized`: bounded scopeをsoloで進め、必要なvalidationと、policy\u002Fuser-visible riskがある場合のcold final reviewを追加する。\n- `cross-boundary`: dependency graphへ分解し、安全なnodeのみparallelizeする。candidate artifact完了後はbuilderと分離したindependent cold reviewを必須とする。\n- `judgment-heavy`: evidence \u002F reference \u002F acceptance rubricを先に固定し、candidate artifact完了後はbuilderと分離したindependent cold reviewを必須とする。\n\n複数profileに該当する場合はsafeguardを合成する。特に `cross-boundary` かつ `judgment-heavy` のtaskはdependency decomposition \u002F safe parallelismとevidence\u002Frubric-first executionの両方を適用し、combined routingをorchestration前に記録する。\n\nexecution profileは `quality-gate` のverification risk taxonomyを置換しない。orchestration\u002Freview強度とtest levelを別々に決定する。\n\n## Adaptive fan-out \u002F fan-in\n\nfan-outはagent数ではなくadmitted progressを最適化する。まず **smallest useful fan-out**（独立して価値を出せる最小数）で開始し、各fan-in boundaryで再評価する。\n\nmode:\n\n- **independent decomposition**: Ready \u002F stack-readyな独立nodeを並行実行する。\n- **competitive exploration**: uncertain problemへ複数のobservational candidateを独立に作らせる。多数決ではなくevidence \u002F measurement \u002F validationで比較する。\n- **specialist separation**: builder \u002F reviewer \u002F benchmark \u002F security等を責務分離する。\n- **speculative execution**: reviewable immutable predecessor snapshotへexact pinできる場合だけ先行する。predecessor変更時はstaleとしてreconcileする。\n\ncompetitive mutable implementationは、各attemptが独立mutable ownership boundary、同一base\u002Finput identity、immutable result contractを持つ場合だけ許可する。満たせなければobservational explorationまたは直列implementationへ縮退する。\n\n追加spawnはReady work、uncertainty、WIP、provider\u002Fhost resource、human review、CI\u002Fexternal wait、retry\u002Fstale率、回収costを見て判断する。idle capacityだけを理由にworkを分割しない。追加Workerのmarginal valueよりorchestration\u002Fintegration bottleneckが大きい場合はfan-outを止める。\n\n短命でparent内部に閉じる観測・探索helperは、project-localでexternal routeが指定されていなければnative subagentを使用できる。独立lifecycle \u002F mutable ownership \u002F background continuity \u002F provider separation \u002F budget isolation \u002F human attach、またはrole-specific external routeが必要ならtop-level Workerへ昇格する。起動前にroleのrouteをresolveし、実際のharness\u002Fproviderがそのrouteに一致するようpreflight\u002Fpermissionで保証する。Herdrを使う具体mappingと参照実装は `herdr-runtime` と `templates\u002Fagent-routing\u002F` に従う。\n\nfan-in時はtask\u002Fattempt\u002Fbase\u002Ffencing\u002Fresult identityとapplicable evidenceを確認する。複数agentの同意だけをcorrectness evidenceにしない。\n\n## Capacity \u002F delivery-estimation coupling\n\nscheduleやroadmapを理由にWIP \u002F spawn数 \u002F agent数を増減する場合は、`agent-delivery-estimation` Skillを参照する。\n\norchestration側から少なくとも次の観測可能情報を提供する。\n\n- active agent count \u002F WIP\n- Ready \u002F blocked \u002F stack-ready node数\n- task type \u002F risk \u002F Work Unit when calibrated\n- retry \u002F reassignment \u002F generation change\n- blocked duration\n- human-review queue\n- CI \u002F integration wait\n- usage-limit \u002F provider resource constraint\n\nagent数増加を線形speedupとみなさない。task mixやhuman\u002FCI bottleneckが異なる期間のthroughput差をagent数の因果効果と断定しない。\n\nestimate達成のためにisolation、snapshot\u002Fresult、fencing identity、WIP\u002Fresource safetyを弱めてはならない。安全なorchestration invariantはforecastより優先する。\n\n## Dependency readiness\n\nnodeは次のどちらかを満たす場合にspawn可能:\n\n1. unfinished prerequisiteがない\n2. hard predecessorが未mergeでも、reviewable immutable predecessor snapshotがあり `stack-ready` と判定できる\n\n`stack-ready` で開始する場合、worker inputへpredecessor Issue\u002FPR identityとexact commit SHA \u002F immutable snapshotを記録する。\n\npredecessorが後から変更された場合はaffected downstream task\u002Fbranchをstaleとして扱い、base reconciliationとrequired revalidationを行う。\n\n## Flow\n\n1. Issueのobjective \u002F acceptance criteria \u002F dependency \u002F target releaseを読む。\n2. `policy-evaluation` に従ってexecution profileを判定し、fan-out \u002F reviewer強度を決める。\n3. canonical Issue dependency graphからtask graphを作る。\n4. linear hard dependency segmentでstacked PRが適切かを判断する。\n5. 各nodeのinput snapshot \u002F predecessor snapshot \u002F output contract \u002F recovery boundaryを決める。\n6. Supervisorがdurable taskへcurrent fencing identity（current defaultでは `execution_generation`）と実行policyを割り当ててspawnする。\n7. Readyまたはstack-readyなnodeをWIP\u002Fresource制約内でspawnする。\n8. durable ticket branchをworker\u002Fsubagentが作る場合、first meaningful commitをcanonical remoteへpublishし、remote head SHA一致を確認した直後にPRを作成する。active\u002FincompleteならDraft、readiness条件を満たしていればReady for reviewとし、published commit + PRなしでactive implementationを継続しない。\n9. meaningful boundaryでcheckpointする。\n10. worker resultをinspectし、applicableなcurrent fencing identityとbase snapshotがcurrent expected stateに一致することを確認する。\n11. Coordinator\u002FSupervisorだけがshared durable integration stateへ順序立てて統合する。\n12. integration checkpointごとにrequired validationを行う。\n13. predecessor変更でupstack\u002Fdownstream branchが更新された場合、affected validationを再実行する。\n14. Reviewerをclean candidate snapshotから起動する。cross-boundary \u002F judgment-heavy workではbuilderのprivate reasoningではなくobjective \u002F rubric \u002F artifact \u002F validation evidenceを渡すindependent cold reviewを必須とする。\n15. GitHub Issue \u002F Project \u002F PR metadataを実行状態と同期する。\n\n## Spawn contract\n\nobservational workerはobjective \u002F scope \u002F authority \u002F expected evidenceの最小contractでよい。mutable workerでは次を基準とし、durable workerではfencing \u002F recovery fieldsを必須化する。\n\nmutable workerの最低限input:\n\n```text\nissue_or_task_id\nobjective\nacceptance_criteria\ntarget_release\nbase_snapshot\npredecessor_issue_or_pr\npredecessor_snapshot\nimmediate_pr_base\nbranch_identity\nexpected_pr_identity_and_state\nassignee_expectation\nreviewer_expectation\nlabel_expectation\nfencing_identity_or_execution_generation\nrole\nattempt_class\nallowed_tools\nfilesystem_policy\nnetwork_policy\nbudget\nexpected_result\n```\n\ndurable workerでは上記に加えて、`recovery_boundary`、durable checkpoint\u002Fevidence reference、durable discoverability metadataを必須とする。resume\u002Frecovery時は`checkpoint_sha_or_snapshot`も必須とする。\n\ndependency \u002F durable GitHub deliveryを使わない短命taskでは該当しないfieldはnull\u002Fomittedでよい。\n\n`budget` にはresource \u002F cost \u002F timeoutに加えて、childがさらにspawnできる深さと数の上限を含める。上限のないrecursive spawn（fork bomb）やunbounded costを作らない。\n\n`filesystem_policy` \u002F `network_policy` はSupervisorが実際にenforceする境界を表す。policy enforcementが別のruntime\u002Fprovider設定で行われる場合も、spawn contractにはそのpolicy IDまたは解決済みpolicyを記録し、worker inputと実際のsandbox制約が追跡可能でなければならない。\n\n## Durable branch contract\n\nworker\u002Fsubagentへdurable branch作成権限を与える場合、その権限はremote publication + PR state lifecycleとセットで扱う。\n\ncanonical sequence:\n\n1. branch作成\n2. first meaningful commit\n3. canonical remoteへcommitをpublish\n4. remote branch head SHAがfirst meaningful commit SHAと一致することを確認\n5. immediate PR creation with state matching actual work\n6. Issue linkage \u002F assignee \u002F reviewer \u002F labels \u002F target release \u002F stack contextを設定\n7. implementation継続\n\nGitHub上のPRはremoteでheadを解決でき、head\u002Fbaseに差分がある必要があるため、branch作成・first commit・remote publication・remote head検証・PR creation\u002Fstate設定を1つのoperational start procedureとして扱う。\n\nworkerがremote publishまたはPR mutation権限を持たない場合、first meaningful commit後ただちにSupervisor\u002FCoordinatorへcontrolを返す。Supervisor\u002FCoordinatorがcommitをpublishし、remote head SHA一致を確認し、PR作成\u002Fstate設定を完了するまでそのdurable branchでの追加implementationを進めない。\n\nEphemeral immutable ref\u002Fresultはこのcontractの対象外。\n\n## Result contract\n\nobservational resultはsource mutationを含まず、evidence provenanceと対象artifact identityを返す。mutable\u002Fdurable workerは次を基準とする。\n\nmutable workerの最低限output:\n\n```text\nagent_id\nissue_or_task_id\ntarget_release\nbase_snapshot\npredecessor_snapshot\nfencing_identity_or_execution_generation\nattempt_class\nresult_commit_or_ref\npr_identity (PR設定完了後は必須。それ以前の権限不足handoffではnull\u002Fomitted)\npr_state (PR設定完了後は必須。それ以前の権限不足handoffではnull\u002Fomitted)\nsummary\nvalidation_results\nknown_issues\n```\n\ndurable workerでは上記に加えて、`checkpoint_sha_or_snapshot`、`status`、`completed_steps`、`next_steps`、`pending_validation`、`external_side_effects`、`artifact_refs`、`updated_at`を含むrecovery handoffを必須とする。GitHub\u002Fbranch deliveryの場合はpublished remote head、PR identityと実際のstate（Draft \u002F Ready）、Issue\u002Fbranch metadataも必須とする。\n\napplicableなcurrent fencing identity（current implementationでは `execution_generation`）と一致しないresultは自動統合しない。\n\nrecorded predecessor\u002Fbase snapshotとcurrent expected baseが異なるresultはstale candidateとしてreconcileし、盲目的に統合しない。\n\n## Landing handoff boundary\n\nworker \u002F subagent の **shared durable integration state への ordered landing**（`release-x-y-z` への ticket landing、`release-x-y-z -> main` release PR merge、`main` への直接反映等）は **Coordinator \u002F Supervisor だけが実行する**。\n\n- worker \u002F subagent は target release trunk \u002F `main` への merge \u002F landing 操作を実行せず、PR creation\u002Fstate・remote publication・branch head verify・validationまで完了したcandidateをimmutable handoffする。\n- **ticket-class** candidateはreadiness\u002Fquality gateを満たせば追加のuser merge authorizationなしでCoordinator \u002F Supervisorがdependency順にlandingする。\n- **release-class** `release-* -> main` candidateはexplicit user authorizationが必要で、authorization scopeをhandoff artifactへ含める。\n- Coordinator \u002F Supervisorはlanding直前にactual head\u002Fbase\u002Fcurrent SHAを再取得し、ticket\u002Frelease classificationとrequired gateを再検証する。\n\nこの境界を越えて worker \u002F subagent が landing 操作を実行した場合:\n\n- 直近 landing は stale candidate として扱う。\n- 自動rollback は前提としない。integration state への影響と reconciliation 必要性を Supervisor が reassess し、必要なら new landing 候補で再実行する。\n\nstandaloneでticket PRを扱うAgentはreadiness\u002Fquality gate通過後に自律landingできる。standaloneでrelease PRを扱うAgentはexplicit release authorizationがある場合に限り直接landingできる。\n\n## Review handoff\n\nReviewer inputはclean candidate snapshotへpinする。\n\nReviewerが見るのは、requested scopeの網羅、decision precedenceとの整合、correctness \u002F architecture consistency、regression risk、required verification levelに対するtest adequacy、validation evidenceがcurrent SHAのものか、hidden coupling、sandbox \u002F runtimeでの再現性、target release \u002F stack predecessorとの整合、PR metadataとIssue linkageの整合、関係する場合はrecovery \u002F checkpointとの整合である。\n\nPR review contextには最低限:\n\n- linked Issue \u002F acceptance criteria\n- target release\n- immediate stack predecessor if any\n- current head SHA\n- validation evidence for that SHA\n- known blockers\n- expected reviewer\u002FCODEOWNERS context\n\nreview後にhead SHAが変わった場合、古いapproval\u002Fvalidationがcurrent policy上有効かを再評価する。\n\n## Parent failure\n\nparent agentが停止してもsafeなchildを自動破棄しない。\n\nrecovered CoordinatorはSupervisorからchildを再発見し、running\u002Fcompleted\u002Ffailed\u002Forphanedをreconcileする。completed resultはimmutable snapshot\u002Fresult relationship、predecessor\u002Fbase identity、applicableなcurrent fencing identityを確認してから統合する。\n\nGitHub上のIssue\u002FPR\u002Fbranch metadataはdurable recovery evidenceであり、active durable ticket branchにpublished remote head + PRがない状態を正常状態として扱わない。PRが存在する場合もactive\u002FincompleteならDraft、readiness条件を満たしていればReady for reviewであることをreconcileする。Ready ticket PRの未landing、land済みopen Issue、merged\u002Flanded後のstale ticket branchもdriftとしてrepairする。zero-diff release branchはDraft release PR invariantの例外だが、first meaningful integrated difference後はDraft release PRを必須とし、release PRをautonomous ticket landingへ含めない。\n\n## Fallback\n\nisolated sandbox同士なら同じfileを触ること自体は直列化の理由にならない。直列化やdependencyが必要なのは、same interfaceの非互換変更、same generated artifact、same external mutable resourceを扱う場合である。\n\ntrue isolationが使えない場合、shared mutable workspaceで並列実装しない。read-only researchの並列化または安全な直列実装へ縮退する。\n\nstacked PRを安全に維持できない場合もdependency SoTを壊さず、predecessor merge後に通常ticketとして開始する直列workflowへ縮退する。\n\n## Organizational outcome checks\n\norchestrationのqualityはfan-out数や特定Supervisor APIではなく、次のoutcomeで確認する。\n\n- concurrent workersが互いのmutable stateを無調停に破壊しない\n- task \u002F attempt \u002F result identityをretry\u002Frecovery後も取り違えない\n- completed resultのevidenceがcurrent artifactへbindされる\n- parent\u002Fworker loss後もdurable stateからreconcileできる\n- dependency\u002Fauthorityを無視して速さだけを最大化しない\n- orchestration overheadがtask価値を上回る場合はsolo executionへ縮退できる\n\ncurrent Supervisor \u002F execution_generation \u002F Worktrunk shapeはこれらを満たす現在のimplementationであり、永続的なAPI contractではない。\n","# Parallel Orchestration\n\nLayer: **Operating Model + Skill**\n\n非自明な実装をdependency graphへ分解し、Readyまたはstack-readyなnodeをresource\u002FWIP制約内で安全に並行実行する。\n\nConstitutional requirementは「1 worker = 1 particular sandbox」ではなく **Mutable Ownership Safety \u002F Identity Integrity \u002F Organizational Continuity** である。current modelはisolated mutable runtime + immutable snapshot\u002Fresult + fencing identity（現在はgeneration-based fencing）でこれを実現する。\n\nより強いagent\u002Fruntimeが同等以上のguaranteeを別mechanismで提供する場合は、ADR-0017のrefinement contractに従って置換できる。Worker \u002F Supervisor のlogical roleと observational \u002F mutable \u002F durable attempt の分類は `organization\u002Fexecution-roles.md` と ADR-0019 をcanonical sourceとする。Herdrをselected runtime Practiceとして使う場合は `herdr-runtime` Skillを適用するが、Herdr lifecycle stateをcanonical task\u002Fresult stateにしない。\n\n## Attempt-class routing\n\nspawn前にroleだけでなくexecution attempt classを決める。\n\n- **observational**: research \u002F exploration \u002F independent review \u002F read-only diagnostics。source\u002Fruntimeのmutable ownershipを持たない限りbranch \u002F Draft PR \u002F sandbox \u002F fencing \u002F durable checkpointを要求しない。\n- **mutable**: independent implementationやstateful execution。明示的mutable-ownership boundary、base\u002Fresult identity、stale result rejectionを要求する。\n- **durable**: Issue-level \u002F long-running \u002F background \u002F remote execution。mutable要件に加えてdurable discoverability、checkpoint\u002Frecovery、fencingを要求する。\n\n観測用subagentがsourceを変更し始めた場合はmutableへ、session\u002Fprovider lossを越えて継続すべきworkになった場合はdurableへpromotionする。\n\n## Current operating guarantees\n\n- concurrent mutable implementation workerごとにisolated runtime、serialization、transaction等の明示的mutable-ownership boundaryを持つ。current defaultは1 worker = 1 isolated mutable runtime。\n- shared working tree \u002F Git index \u002F integration branchを複数workerが直接更新しない。\n- parent -> child はimmutable snapshot。\n- child -> parent はimmutable commit\u002Fref\u002Fdiff + validation result。\n- sandbox lifecycleはworker外のSupervisorが管理する。\n- worktree単体をexecution isolationとみなさない。\n- WSL\u002FLinuxでSupervisorがlocal branchをworktreeへmaterializeする場合は`worktree-workflow` Skillに従ってWorktrunkを使用できるが、各workerのruntime isolationとimmutable result contractは別に維持する。\n- durable planning unitはGitHub Issue、短命な内部subtaskはSupervisor taskとしてよい。\n- Issue dependency graphがdurable dependency SoTであり、Git branch topologyだけでdependencyを管理しない。\n- child lifecycleはparent model processではなくSupervisorが所有する。\n- durable worker task\u002Fresultはstale attemptを排除できるfencing identityを持つ。current implementationでは `execution_generation` を使用し、初期generationは `1`、recovery\u002Freassignment時にSupervisorが原子的に進める。\n- result統合前にapplicableなcurrent fencing identityとの一致を検証し、stale identityを統合しない。\n- validation resultはvalidated SHA\u002Fsnapshotにpinし、stack rebase\u002Fupdate後の別SHAへ流用しない。\n- long-running task \u002F context limit \u002F sandbox recreationでは `agent-recovery` Skillを適用する。\n- `security-audit` のcandidate validationではhunterとverifierを同一agentにせず、fresh verifierへimmutable candidate\u002Fevidenceを渡す。final record verificationが必要なprofileでも同じseparationを維持する。\n- spawn前に `policy-evaluation` Skillのexecution profileを判定し、mechanical \u002F localized taskへ不要なfan-outを導入しない。\n\n## Execution profile routing\n\norchestration strengthはtask sizeの印象ではなくexecution profileから決める。\n\n- `mechanical`: solo executionをdefaultとし、deterministic tooling \u002F focused validationを優先する。\n- `localized`: bounded scopeをsoloで進め、必要なvalidationと、policy\u002Fuser-visible riskがある場合のcold final reviewを追加する。\n- `cross-boundary`: dependency graphへ分解し、安全なnodeのみparallelizeする。candidate artifact完了後はbuilderと分離したindependent cold reviewを必須とする。\n- `judgment-heavy`: evidence \u002F reference \u002F acceptance rubricを先に固定し、candidate artifact完了後はbuilderと分離したindependent cold reviewを必須とする。\n\n複数profileに該当する場合はsafeguardを合成する。特に `cross-boundary` かつ `judgment-heavy` のtaskはdependency decomposition \u002F safe parallelismとevidence\u002Frubric-first executionの両方を適用し、combined routingをorchestration前に記録する。\n\nexecution profileは `quality-gate` のverification risk taxonomyを置換しない。orchestration\u002Freview強度とtest levelを別々に決定する。\n\n## Adaptive fan-out \u002F fan-in\n\nfan-outはagent数ではなくadmitted progressを最適化する。まず **smallest useful fan-out**（独立して価値を出せる最小数）で開始し、各fan-in boundaryで再評価する。\n\nmode:\n\n- **independent decomposition**: Ready \u002F stack-readyな独立nodeを並行実行する。\n- **competitive exploration**: uncertain problemへ複数のobservational candidateを独立に作らせる。多数決ではなくevidence \u002F measurement \u002F validationで比較する。\n- **specialist separation**: builder \u002F reviewer \u002F benchmark \u002F security等を責務分離する。\n- **speculative execution**: reviewable immutable predecessor snapshotへexact pinできる場合だけ先行する。predecessor変更時はstaleとしてreconcileする。\n\ncompetitive mutable implementationは、各attemptが独立mutable ownership boundary、同一base\u002Finput identity、immutable result contractを持つ場合だけ許可する。満たせなければobservational explorationまたは直列implementationへ縮退する。\n\n追加spawnはReady work、uncertainty、WIP、provider\u002Fhost resource、human review、CI\u002Fexternal wait、retry\u002Fstale率、回収costを見て判断する。idle capacityだけを理由にworkを分割しない。追加Workerのmarginal valueよりorchestration\u002Fintegration bottleneckが大きい場合はfan-outを止める。\n\n短命でparent内部に閉じる観測・探索helperは、project-localでexternal routeが指定されていなければnative subagentを使用できる。独立lifecycle \u002F mutable ownership \u002F background continuity \u002F provider separation \u002F budget isolation \u002F human attach、またはrole-specific external routeが必要ならtop-level Workerへ昇格する。起動前にroleのrouteをresolveし、実際のharness\u002Fproviderがそのrouteに一致するようpreflight\u002Fpermissionで保証する。Herdrを使う具体mappingと参照実装は `herdr-runtime` と `templates\u002Fagent-routing\u002F` に従う。\n\nfan-in時はtask\u002Fattempt\u002Fbase\u002Ffencing\u002Fresult identityとapplicable evidenceを確認する。複数agentの同意だけをcorrectness evidenceにしない。\n\n## Capacity \u002F delivery-estimation coupling\n\nscheduleやroadmapを理由にWIP \u002F spawn数 \u002F agent数を増減する場合は、`agent-delivery-estimation` Skillを参照する。\n\norchestration側から少なくとも次の観測可能情報を提供する。\n\n- active agent count \u002F WIP\n- Ready \u002F blocked \u002F stack-ready node数\n- task type \u002F risk \u002F Work Unit when calibrated\n- retry \u002F reassignment \u002F generation change\n- blocked duration\n- human-review queue\n- CI \u002F integration wait\n- usage-limit \u002F provider resource constraint\n\nagent数増加を線形speedupとみなさない。task mixやhuman\u002FCI bottleneckが異なる期間のthroughput差をagent数の因果効果と断定しない。\n\nestimate達成のためにisolation、snapshot\u002Fresult、fencing identity、WIP\u002Fresource safetyを弱めてはならない。安全なorchestration invariantはforecastより優先する。\n\n## Dependency readiness\n\nnodeは次のどちらかを満たす場合にspawn可能:\n\n1. unfinished prerequisiteがない\n2. hard predecessorが未mergeでも、reviewable immutable predecessor snapshotがあり `stack-ready` と判定できる\n\n`stack-ready` で開始する場合、worker inputへpredecessor Issue\u002FPR identityとexact commit SHA \u002F immutable snapshotを記録する。\n\npredecessorが後から変更された場合はaffected downstream task\u002Fbranchをstaleとして扱い、base reconciliationとrequired revalidationを行う。\n\n## Flow\n\n1. Issueのobjective \u002F acceptance criteria \u002F dependency \u002F target releaseを読む。\n2. `policy-evaluation` に従ってexecution profileを判定し、fan-out \u002F reviewer強度を決める。\n3. canonical Issue dependency graphからtask graphを作る。\n4. linear hard dependency segmentでstacked PRが適切かを判断する。\n5. 各nodeのinput snapshot \u002F predecessor snapshot \u002F output contract \u002F recovery boundaryを決める。\n6. Supervisorがdurable taskへcurrent fencing identity（current defaultでは `execution_generation`）と実行policyを割り当ててspawnする。\n7. Readyまたはstack-readyなnodeをWIP\u002Fresource制約内でspawnする。\n8. durable ticket branchをworker\u002Fsubagentが作る場合、first meaningful commitをcanonical remoteへpublishし、remote head SHA一致を確認した直後にPRを作成する。active\u002FincompleteならDraft、readiness条件を満たしていればReady for reviewとし、published commit + PRなしでactive implementationを継続しない。\n9. meaningful boundaryでcheckpointする。\n10. worker resultをinspectし、applicableなcurrent fencing identityとbase snapshotがcurrent expected stateに一致することを確認する。\n11. Coordinator\u002FSupervisorだけがshared durable integration stateへ順序立てて統合する。\n12. integration checkpointごとにrequired validationを行う。\n13. predecessor変更でupstack\u002Fdownstream branchが更新された場合、affected validationを再実行する。\n14. Reviewerをclean candidate snapshotから起動する。cross-boundary \u002F judgment-heavy workではbuilderのprivate reasoningではなくobjective \u002F rubric \u002F artifact \u002F validation evidenceを渡すindependent cold reviewを必須とする。\n15. GitHub Issue \u002F Project \u002F PR metadataを実行状態と同期する。\n\n## Spawn contract\n\nobservational workerはobjective \u002F scope \u002F authority \u002F expected evidenceの最小contractでよい。mutable workerでは次を基準とし、durable workerではfencing \u002F recovery fieldsを必須化する。\n\nmutable workerの最低限input:\n\n```text\nissue_or_task_id\nobjective\nacceptance_criteria\ntarget_release\nbase_snapshot\npredecessor_issue_or_pr\npredecessor_snapshot\nimmediate_pr_base\nbranch_identity\nexpected_pr_identity_and_state\nassignee_expectation\nreviewer_expectation\nlabel_expectation\nfencing_identity_or_execution_generation\nrole\nattempt_class\nallowed_tools\nfilesystem_policy\nnetwork_policy\nbudget\nexpected_result\n```\n\ndurable workerでは上記に加えて、`recovery_boundary`、durable checkpoint\u002Fevidence reference、durable discoverability metadataを必須とする。resume\u002Frecovery時は`checkpoint_sha_or_snapshot`も必須とする。\n\ndependency \u002F durable GitHub deliveryを使わない短命taskでは該当しないfieldはnull\u002Fomittedでよい。\n\n`budget` にはresource \u002F cost \u002F timeoutに加えて、childがさらにspawnできる深さと数の上限を含める。上限のないrecursive spawn（fork bomb）やunbounded costを作らない。\n\n`filesystem_policy` \u002F `network_policy` はSupervisorが実際にenforceする境界を表す。policy enforcementが別のruntime\u002Fprovider設定で行われる場合も、spawn contractにはそのpolicy IDまたは解決済みpolicyを記録し、worker inputと実際のsandbox制約が追跡可能でなければならない。\n\n## Durable branch contract\n\nworker\u002Fsubagentへdurable branch作成権限を与える場合、その権限はremote publication + PR state lifecycleとセットで扱う。\n\ncanonical sequence:\n\n1. branch作成\n2. first meaningful commit\n3. canonical remoteへcommitをpublish\n4. remote branch head SHAがfirst meaningful commit SHAと一致することを確認\n5. immediate PR creation with state matching actual work\n6. Issue linkage \u002F assignee \u002F reviewer \u002F labels \u002F target release \u002F stack contextを設定\n7. implementation継続\n\nGitHub上のPRはremoteでheadを解決でき、head\u002Fbaseに差分がある必要があるため、branch作成・first commit・remote publication・remote head検証・PR creation\u002Fstate設定を1つのoperational start procedureとして扱う。\n\nworkerがremote publishまたはPR mutation権限を持たない場合、first meaningful commit後ただちにSupervisor\u002FCoordinatorへcontrolを返す。Supervisor\u002FCoordinatorがcommitをpublishし、remote head SHA一致を確認し、PR作成\u002Fstate設定を完了するまでそのdurable branchでの追加implementationを進めない。\n\nEphemeral immutable ref\u002Fresultはこのcontractの対象外。\n\n## Result contract\n\nobservational resultはsource mutationを含まず、evidence provenanceと対象artifact identityを返す。mutable\u002Fdurable workerは次を基準とする。\n\nmutable workerの最低限output:\n\n```text\nagent_id\nissue_or_task_id\ntarget_release\nbase_snapshot\npredecessor_snapshot\nfencing_identity_or_execution_generation\nattempt_class\nresult_commit_or_ref\npr_identity (PR設定完了後は必須。それ以前の権限不足handoffではnull\u002Fomitted)\npr_state (PR設定完了後は必須。それ以前の権限不足handoffではnull\u002Fomitted)\nsummary\nvalidation_results\nknown_issues\n```\n\ndurable workerでは上記に加えて、`checkpoint_sha_or_snapshot`、`status`、`completed_steps`、`next_steps`、`pending_validation`、`external_side_effects`、`artifact_refs`、`updated_at`を含むrecovery handoffを必須とする。GitHub\u002Fbranch deliveryの場合はpublished remote head、PR identityと実際のstate（Draft \u002F Ready）、Issue\u002Fbranch metadataも必須とする。\n\napplicableなcurrent fencing identity（current implementationでは `execution_generation`）と一致しないresultは自動統合しない。\n\nrecorded predecessor\u002Fbase snapshotとcurrent expected baseが異なるresultはstale candidateとしてreconcileし、盲目的に統合しない。\n\n## Landing handoff boundary\n\nworker \u002F subagent の **shared durable integration state への ordered landing**（`release-x-y-z` への ticket landing、`release-x-y-z -> main` release PR merge、`main` への直接反映等）は **Coordinator \u002F Supervisor だけが実行する**。\n\n- worker \u002F subagent は target release trunk \u002F `main` への merge \u002F landing 操作を実行せず、PR creation\u002Fstate・remote publication・branch head verify・validationまで完了したcandidateをimmutable handoffする。\n- **ticket-class** candidateはreadiness\u002Fquality gateを満たせば追加のuser merge authorizationなしでCoordinator \u002F Supervisorがdependency順にlandingする。\n- **release-class** `release-* -> main` candidateはexplicit user authorizationが必要で、authorization scopeをhandoff artifactへ含める。\n- Coordinator \u002F Supervisorはlanding直前にactual head\u002Fbase\u002Fcurrent SHAを再取得し、ticket\u002Frelease classificationとrequired gateを再検証する。\n\nこの境界を越えて worker \u002F subagent が landing 操作を実行した場合:\n\n- 直近 landing は stale candidate として扱う。\n- 自動rollback は前提としない。integration state への影響と reconciliation 必要性を Supervisor が reassess し、必要なら new landing 候補で再実行する。\n\nstandaloneでticket PRを扱うAgentはreadiness\u002Fquality gate通過後に自律landingできる。standaloneでrelease PRを扱うAgentはexplicit release authorizationがある場合に限り直接landingできる。\n\n## Review handoff\n\nReviewer inputはclean candidate snapshotへpinする。\n\nReviewerが見るのは、requested scopeの網羅、decision precedenceとの整合、correctness \u002F architecture consistency、regression risk、required verification levelに対するtest adequacy、validation evidenceがcurrent SHAのものか、hidden coupling、sandbox \u002F runtimeでの再現性、target release \u002F stack predecessorとの整合、PR metadataとIssue linkageの整合、関係する場合はrecovery \u002F checkpointとの整合である。\n\nPR review contextには最低限:\n\n- linked Issue \u002F acceptance criteria\n- target release\n- immediate stack predecessor if any\n- current head SHA\n- validation evidence for that SHA\n- known blockers\n- expected reviewer\u002FCODEOWNERS context\n\nreview後にhead SHAが変わった場合、古いapproval\u002Fvalidationがcurrent policy上有効かを再評価する。\n\n## Parent failure\n\nparent agentが停止してもsafeなchildを自動破棄しない。\n\nrecovered CoordinatorはSupervisorからchildを再発見し、running\u002Fcompleted\u002Ffailed\u002Forphanedをreconcileする。completed resultはimmutable snapshot\u002Fresult relationship、predecessor\u002Fbase identity、applicableなcurrent fencing identityを確認してから統合する。\n\nGitHub上のIssue\u002FPR\u002Fbranch metadataはdurable recovery evidenceであり、active durable ticket branchにpublished remote head + PRがない状態を正常状態として扱わない。PRが存在する場合もactive\u002FincompleteならDraft、readiness条件を満たしていればReady for reviewであることをreconcileする。Ready ticket PRの未landing、land済みopen Issue、merged\u002Flanded後のstale ticket branchもdriftとしてrepairする。zero-diff release branchはDraft release PR invariantの例外だが、first meaningful integrated difference後はDraft release PRを必須とし、release PRをautonomous ticket landingへ含めない。\n\n## Fallback\n\nisolated sandbox同士なら同じfileを触ること自体は直列化の理由にならない。直列化やdependencyが必要なのは、same interfaceの非互換変更、same generated artifact、same external mutable resourceを扱う場合である。\n\ntrue isolationが使えない場合、shared mutable workspaceで並列実装しない。read-only researchの並列化または安全な直列実装へ縮退する。\n\nstacked PRを安全に維持できない場合もdependency SoTを壊さず、predecessor merge後に通常ticketとして開始する直列workflowへ縮退する。\n\n## Organizational outcome checks\n\norchestrationのqualityはfan-out数や特定Supervisor APIではなく、次のoutcomeで確認する。\n\n- concurrent workersが互いのmutable stateを無調停に破壊しない\n- task \u002F attempt \u002F result identityをretry\u002Frecovery後も取り違えない\n- completed resultのevidenceがcurrent artifactへbindされる\n- parent\u002Fworker loss後もdurable stateからreconcileできる\n- dependency\u002Fauthorityを無視して速さだけを最大化しない\n- orchestration overheadがtask価値を上回る場合はsolo executionへ縮退できる\n\ncurrent Supervisor \u002F execution_generation \u002F Worktrunk shapeはこれらを満たす現在のimplementationであり、永続的なAPI contractではない。\n",{"name":5,"description":7},"main","fae2dd6b4eb2a8c4744ff719f591e6e697efe4a4","skills\u002Fparallel-orchestration",0,"https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init","https:\u002F\u002Fgithub.com\u002Frebuildup","https:\u002F\u002Frebuildup.dev","jp 2007\r\nweb制作か映像制作、それにまつわるツールの制作をしている高専生","2026-11-13 16:51:04",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add rebuildup\u002Fproject-init --skill parallel-orchestration",{"tool":39,"command":40},"bunx","bunx skills add rebuildup\u002Fproject-init --skill parallel-orchestration",{"tool":42,"command":43},"pnpm","pnpm dlx skills add rebuildup\u002Fproject-init --skill parallel-orchestration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fparallel-orchestration\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7AB77SBZEANKTQWPK1A9YW5","worktree-workflow","current release-driven profileでWorktrunkをWSL\u002FLinux workspace lifecycle Practiceとして使い、Rust\u002FCargo worktreeのbuild-output isolation・cache reuse・cleanupを含め、同等以上のguaranteeを持つalternativeへのrefinementも判断する時に使用する。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fworktree-workflow\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7AB74AK8FAJ98HBC7KK1648","skill-selection","projectの初期化や再整備で、どのAgent Skillを導入するかを決める時に使用する。必要な能力を判定し、project-initの能力一覧と候補記録、さらに外部の探索から候補を評価して、能力ごとに担当を決め、project-localに導入してlockと採否を記録する。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fskill-selection\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7AB71CFH8ZKF0QPV5H9QPS0","security-maintenance","framework\u002Fruntime\u002Fdependencyの脆弱性情報を収集し、projectへの実影響と優先度を判定してticket\u002Freleaseへ反映する時に使用する。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-maintenance\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7AB6YFYS2QF2D1YH4K1117G","security-audit","source codeから未知のsecurity invariant failureを能動的に探索し、coverageを明示しながら独立検証されたfindingへ変換する時に使用する。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AB6QW54HQ8JTRADE6NQ52X","secrets-management","application \u002F serviceのenvironment secretをInfisical中心で設計・初期化・移行・検証する時に使用する。CLI-first、repository-controlled schema、Machine Identity、GitHub OIDC、agent least-privilege、secret-safe evidenceを扱う。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fsecrets-management\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AB6N6WC13K9E0BPAFXWNPH","sandbox-runtime","implementation worker用の独立sandboxを作成・検証し、macOS \u002F WSL\u002FLinux \u002F remote provider差を吸収する時に使用する。","https:\u002F\u002Fgithub.com\u002Frebuildup\u002Fproject-init\u002Fblob\u002Fmain\u002Fskills\u002Fsandbox-runtime\u002FSKILL.md",[],[]]