원클릭으로
manifold-m-solve
Generate parallel execution plan from constraint network. Identifies waves, critical path, and bidirectional dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate parallel execution plan from constraint network. Identifies waves, critical path, and bidirectional dependencies
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Backward reasoning from desired outcome. Derives required conditions by asking 'What must be TRUE?'
Verify ALL artifacts against ALL constraints. Produces a verification matrix showing coverage and gaps
Light mode: 3-phase workflow for simple changes. Use instead of full workflow for bug fixes, small features, or quick iterations.
Initialize a constraint manifold for a feature. Creates .manifold/<feature>.json + .manifold/<feature>.md
Interview-driven constraint discovery across 5 categories (business, technical, UX, security, operational)
Surface and resolve constraint conflicts (trade-offs). Identifies direct conflicts, resource tensions, and competing requirements
| name | manifold-m-solve |
| description | Generate parallel execution plan from constraint network. Identifies waves, critical path, and bidirectional dependencies |
Generate parallel execution plan from constraint network.
Discipline: This command follows
references/execution-discipline.md— the Iron Law of verification, the never-start-on-mainrule, and the Red Flags below.
| Field | Valid Values |
|---|---|
| Reads From | Manifold YAML, anchor document |
| Outputs | Execution plan with parallel waves |
| Graph Version | 1 |
This command performs read-only analysis. It does not modify manifold files.
See
SCHEMA_REFERENCE.mdfor valid constraint_graph node types, edge definitions, and execution plan structure.
/manifold:m-solve <feature-name> [--backward] [--visualize] [--dot]
--backward - Reason from outcome backward (Arrival-style bidirectional analysis)--visualize - Show ASCII constraint network and execution plan--dot - Output GraphViz DOT format for diagram generationTraditional approach (sequential):
Task → Subtask 1 → Subtask 2 → Subtask 3 → Done
Each step waits for the previous. No parallelization. No visibility into dependencies.
Manifold approach (constraint network):
{Constraints, Tensions, Required Truths} → Graph → Parallel Waves → Done
All relationships visible. Independent tasks execute in parallel. Critical path identified.
Build constraint graph from manifold YAML
Identify dependencies
tension.between[] for conflict relationshipsmaps_to_constraints for RT dependenciesdependency_chain from anchor documentDetect parallel opportunities
Generate execution plan
/manifold:m-solve payment-retry --visualize
CONSTRAINT NETWORK: payment-retry
══════════════════════════════════════════════════
┌─ CONSTRAINTS ─────────────────────────────────────┐
│ ○ B1: No duplicate payments * │
│ ○ B2: 95% retry success rate │
│ ○ T1: API response < 200ms │
│ ○ T2: Atomic state transitions │
└───────────────────────────────────────────────────┘
│
▼
┌─ TENSIONS ────────────────────────────────────────┐
│ B1, T1 ┄⚡┄ Performance vs Safety │
│ U1, O1 ━⚡━ UX vs Operational (resolved) │
└───────────────────────────────────────────────────┘
│
▼
┌─ REQUIRED TRUTHS ─────────────────────────────────┐
│ ○ RT-1: Idempotency key preserved * ← [B1, T1] │
│ ○ RT-2: Error classification exists ← [T2] │
│ ○ RT-3: Retry budget sufficient ← [O2] │
└───────────────────────────────────────────────────┘
* = critical path
EXECUTION PLAN
══════════════
Strategy: hybrid
Parallelization Factor: 2.1x
Critical Path: B1 → TN1 → RT-1 → ART-idempotency
Wave 1 (CONSTRAINED) - 4 parallel tasks:
├── [B1] Discover and document: No duplicate payments
├── [B2] Discover and document: 95% retry success
├── [T1] Discover and document: API response < 200ms
└── [T2] Discover and document: Atomic state transitions
Wave 2 (TENSIONED) - 2 parallel tasks:
├── [TN1] Analyze and resolve: Performance vs Safety
└── [TN2] Analyze and resolve: UX vs Operational
Wave 3 (ANCHORED) - 3 parallel tasks:
├── [RT-1] Derive and validate: Idempotency key (CRITICAL)
├── [RT-2] Derive and validate: Error classification
└── [RT-3] Derive and validate: Retry budget
Wave 4 (GENERATED) - 3 parallel tasks:
├── [ART-*] Generate: src/idempotency.ts
├── [ART-*] Generate: src/error-classifier.ts
└── [ART-*] Generate: src/retry-policy.ts
/manifold:m-solve payment-retry --backward
BACKWARD ANALYSIS: What must be TRUE for outcome?
═══════════════════════════════════════════════════
Outcome: "95% retry success for transient failures"
Starting from outcome, working backward...
RT-1: Idempotency key preserved
├── REQUIRES: B1 (no duplicates)
├── REQUIRES: T1 (latency budget)
└── WHY: Without idempotency, retries create duplicates
RT-2: Error classification exists
├── REQUIRES: T2 (atomic state)
└── WHY: Must distinguish transient from permanent failures
RT-3: Retry budget sufficient
├── REQUIRES: O2 (monitoring)
└── WHY: Need 3+ attempts with exponential backoff
DEPENDENCY CHAIN:
B1 ──┐
├──→ TN1 ──→ RT-1 ──→ Outcome
T1 ──┘
T2 ──────────────→ RT-2 ──→ Outcome
O2 ──────────────→ RT-3 ──→ Outcome
CRITICAL QUESTION:
Given desired state Z (95% retry success), what configuration
of constraints satisfies all required truths simultaneously?
BLOCKING DEPENDENCIES:
- RT-1 blocks artifact generation (idempotency.ts)
- B1 must be satisfied before RT-1 can be validated
- TN1 must be resolved before RT-1 makes sense
/manifold:m-solve payment-retry --dot > graph.dot
dot -Tpng graph.dot -o constraint-network.png
Generates a visual diagram showing:
This command embodies temporally non-linear reasoning:
All information exists simultaneously
Bidirectional causal reasoning
Parallel execution waves
Phases retained for human comprehension
When this command is invoked:
.manifold/<feature>.json (or .yaml for legacy)anchors section (or .manifold/<feature>.anchor.yaml for legacy)--backward: Show bidirectional analysis--visualize: Show ASCII network and plan--dot: Output GraphViz DOT formatThis slash command maps to:
manifold graph <feature> # Output constraint graph JSON
manifold solve <feature> # Output execution plan JSON
With flags:
--ascii for ASCII visualization--dot for GraphViz DOT format--backward for bidirectional analysisAskUserQuestion tool with structured options. NEVER ask questions as plain text without options./manifold:mN-xxx <feature>) and a one-line explanation of what the next phase does.AskUserQuestion with labeled choices (A, B, C) and descriptions.| Thought | Reality |
|---|---|
| "Parallelize everything" | Only group tasks with zero file overlap. |
| "Ignore the critical path" | The critical path bounds the schedule — surface it. |
| "The plan looks right, ship it" | Validate the dependency graph against the manifold first. |