dag-mutation-strategist

Select recovery strategies for failed DAG nodes based on failure type and cost budget.

2|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/curiositech/port-daddy --skill dag-mutation-strategist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dag-mutation-strategist
Source: https://github.com/curiositech/port-daddy/tree/main/skills/dag-mutation-strategist
Command: npx skills add https://github.com/curiositech/port-daddy --skill dag-mutation-strategist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Decides how to mutate a directed acyclic graph (DAG) when a node fails, output quality falls below threshold, or new information changes the plan, preventing wasted budget and repeated failures. It selects an appropriate recovery approach — retry, rephrase, upgrade/downgrade model, swap skills, fork paths, replan, insert validators, or escalate to humans — based on failure type, cost budget, and execution history. It complements error detection and execution components by focusing solely on strategy selection.

Core Features & Use Cases

  • Failure-aware strategy selection: Maps failure types (transient, model, schema, logic, cascade) to targeted fixes like backoff retries, schema injection, or model upgrades.
  • Cost-proportional recovery: Compares recovery cost vs remaining budget and avoids expensive recoveries for trivial failures.
  • Iteration and escalation rules: Enforces iteration caps, traces root causes across dependencies, and escalates when automated strategies plateau.
  • Parallel and fallback approaches: Supports forking parallel candidate paths to hedge ambiguity and swapping challenger skills when available.
  • Integration points: Consumes diagnostics from dag-quality or dag-ops and hands off chosen plans to dag-planner or dag-runtime for execution.

Quick Start

Use the dag-mutation-strategist to pick a recovery plan for a failed DAG node by providing the failure type, execution history, and your cost budget.

Frequently Asked Questions about dag-mutation-strategist

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

FAQPage Schema
How do I choose a recovery strategy when a DAG node fails?

Cost-aware DAG recovery compares the expense of potential fixes against your remaining budget, preventing wasted resources by avoiding expensive recoveries for trivial failures and enforcing iteration caps before escalating to humans.

What is the best way to handle model refusals or schema mismatches in a DAG?

DAG mutation supports parallel recovery by forking parallel candidate paths to hedge against ambiguity and swapping challenger skills when available, allowing the workflow to explore multiple solutions simultaneously.

When should I escalate a failed DAG node instead of retrying?

DAG mutation integrates by consuming diagnostics from detection components like dag-quality or dag-ops, then handing off the chosen recovery plan to execution components such as dag-planner or dag-runtime for action.

Can I use DAG mutation for budget-constrained replanning?

DAG mutation handles cascade issues by tracing root causes across node dependencies and selecting appropriate recovery strategies, ensuring that fixing an upstream failure prevents repeated downstream failures within the workflow.