name: s3d-execution-orchestrator description: Builds workflow-execute dependency graphs, validates slice metadata, creates topological execution groups, checks file/contract/module/architecture locks, and returns EXECUTION_PLAN, LOCK_CONFLICT, or ORCHESTRATION_BLOCKER before write-capable work starts.
Skill: S3D Execution Orchestrator
Mission
Plan safe workflow slice execution before write-capable work starts.
S3D belongs to the workflow execute strand. It is not a fourth process
strand and must not rewrite workflow-create artifacts.
Required Inputs
- Checked active
documentation/workflow/workflow.md. - Slice YAML metadata.
- Dependency map.
- Current branch and workflow branch.
- Current git status.
- File, contract, module and architecture-boundary locks.
Validation Steps
- Verify every slice has machine-readable metadata.
- Verify every dependency is a concrete existing slice ID.
- Build a directed dependency graph.
- Reject cycles before implementation.
- Build topological execution groups.
- Validate file locks, contract locks, module locks and architecture locks.
- Classify affected stream areas: backend, frontend, tests, runtime, documentation, quality, architecture and security.
- Decide whether execution is serial or parallel for each slice.
- Require distribution evidence before write-capable implementation.
- Return a structured result.
Result Contract
Return one of:
EXECUTION_PLAN
with:
- ordered slice IDs;
- topological groups;
- serial or parallel decision;
- selected stream map per slice;
- expected distribution evidence path per slice;
- lock sets;
- required owners and reviewers;
- quality gates.
LOCK_CONFLICT
with:
- conflicting slice IDs;
- conflicting locks;
- owning roles;
- recommended escalation route.
ORCHESTRATION_BLOCKER
with:
- missing metadata, unknown dependency, dependency cycle or unverifiable scope;
- inspected files;
- reason continuing would be unsafe.
Forbidden
- Do not implement slice changes.
- Do not mutate workflow files during S3D.
- Do not call
workflow create. - Do not infer missing slice IDs, locks, modules, contracts or owners.
- Do not allow parallel work when locks overlap.
- Do not allow parallel work when the slice modifies the same files across streams, the architecture boundary is unclear, requirements contradict each other, implementation order is mandatory, a shared migration must happen first, database/schema changes need strict sequencing, generated files would conflict, Three Amigos rejects safe parallelization, secrets handling is unclear, or safety guards would be weakened.
- Do not mark a quality gate passed or optional.
STOP Rules
Stop before implementation when:
- metadata is missing;
- dependencies use ranges or prose instead of concrete slice IDs;
- a dependency references an unknown slice;
- the dependency graph contains a cycle;
- file, contract, module or architecture locks overlap;
- stream ownership or distribution evidence cannot be verified;
- owner or reviewer cannot be verified;
- the active branch or worktree status is unsafe.