runtime-orchestrator-boundary

Classify runtime vs orchestrator features by state lifetime to enforce the architectural boundary.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/transreal/claudecode --skill runtime-orchestrator-boundary
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-orchestrator-boundary
Source: https://github.com/transreal/claudecode/tree/main/Claude%20Directives/skills/runtime-orchestrator-boundary
Command: npx skills add https://github.com/transreal/claudecode --skill runtime-orchestrator-boundary

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents reliability bugs caused by putting workflow-lifetime state into the wrong layer when introducing parallelism, retries, approvals, or worker spawning.

Core Features & Use Cases

  • Hard boundary rule (state lifetime): Routes turn-scoped, DAG-internal work to ClaudeRuntime and workflow-lifetime work to ClaudeOrchestrator.
  • Parallelism decision table: Clarifies which patterns (tool parallel execution vs worker pools) belong to Runtime vs Orchestrator.
  • Design-time enforcement checklist: Provides review questions that catch violations early (notebook writes, approval/pause/resume, retry loops, snapshot/restore, commit ordering).

Quick Start

When adding a new feature that involves parallel execution, ask which state survives across turns, and place workflow-lifetime state management into ClaudeOrchestrator instead of ClaudeRuntime.

Frequently Asked Questions about runtime-orchestrator-boundary

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate workflow state from runtime execution when adding parallelism?

To separate workflow state from runtime execution, classify features by state persistence: route turn-scoped, DAG-internal parallelism to the runtime layer, and route workflow-level parallelism with persistent state transitions to the orchestrator layer.

What is the architectural boundary between a runtime and an orchestrator for state machines?

The boundary is defined by state lifetime: the runtime handles short-lived, turn-scoped execution steps, while the orchestrator manages workflow-lifetime state transitions, approvals, and worker spawning that persist across multiple turns.

Why does putting persistent workflow state into the runtime cause reliability bugs?

Persistent workflow state in the runtime causes reliability bugs because the runtime is designed for transient, turn-scoped execution and cannot safely manage cross-turn state transitions, retry loops, or snapshot and restore operations required for workflow recovery.

When do I need workflow orchestration safety guardrails for retry and repair loops?

You need workflow orchestration safety guardrails when implementing retry and repair loops, worker spawning, or approval pauses, ensuring these persistent state transitions and commit ordering checks remain managed by the orchestrator, not the runtime.

Does worker spawning belong in the runtime or the orchestrator?

Worker spawning belongs in the orchestrator if the workers manage workflow-lifetime state and persist across turns, while transient tool parallel execution stays in the runtime, as determined by the state lifetime classification rule.

What are the limitations of using runtime-level parallelism for long-running workflows?

Runtime-level parallelism is limited to turn-scoped, DAG-internal execution and cannot safely handle workflow-level state migration, notebook commits, or snapshot and restore operations, which must be enforced in the orchestrator to prevent boundary violations.