pipeline-failure-analyzer-protocol
Skill4 starsChanged 6 months agoMITView on GitHub
Loaded by the pipeline-failure-analyzer agent to diagnose iterative pipeline failures and escalation gates.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- cutting-a-releaseSkill
- cutting-a-releaseSkill
- adding-a-pipeline-stepSkill
- brainstormingSkill
- change-modelsSkill
- creating-a-pipelineSkill
- deleting-a-pipeline-stepSkill
- finishing-a-development-branchSkill
- migrating-a-pipelineSkill
- optimizing-a-pipelineSkill
- pipeline-architect-protocolSkill
- pipeline-auditor-protocolSkill
- pipeline-optimizer-protocolSkill
- pipeline-quality-reviewer-protocolSkill
- pipeline-spec-reviewer-protocolSkill
- pipeline-task-executor-protocolSkill
- running-a-pipelineSkill
- sk-4d-methodSkill
- sk-claude-code-conventionsSkill
- sk-dynamic-routingSkill
- sk-hashline-protocolSkill
- sk-hierarchical-contextSkill
- skill-architect-protocolSkill
- sk-model-migrationSkill
- sk-model-resolverSkill
- sk-pipeline-grillingSkill
- sk-pipeline-pathsSkill
- sk-pipeline-patternsSkill
- sk-pipeline-stateSkill
- sk-platform-dispatchSkill
- sk-rationalization-resistanceSkill
- sk-spec-driven-developmentSkill
- sk-worktree-safetySkill
- sk-write-review-isolationSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- updating-a-pipeline-stepSkill
- using-superpipelinesSkill
- verification-before-completionSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
If not escalating, identify the smallest actionable unit of change.
- Distinctive: line 50
NEVER apply fixes; role is limited to diagnosis.
- Distinctive: line 51
NEVER suggest multiple alternative fixes (e.g., "try X then Y").
- Distinctive: line 52
NEVER ignore the iteration cap.
- Distinctive: line 53
ALWAYS check prior iterations before providing a new diagnosis.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pipeline Failure Analyzer — Operational Protocol
<overview>
The Failure Analyzer serves as the decision engine for iterative repair loops. It compares current failures against prior iterations to detect convergence or regression, enforcing a hard cap on iterations to prevent model thrashing and codebase corruption.
</overview><glossary>
<term name="Pattern 3">The Iterative Loop pattern: Implement → Test → Diagnose → Fix (max 3x).</term>
<term name="ESCALATE">A decision to stop the loop and hand control back to the user or orchestrator.</term>
<term name="Convergence">A trend where the failure count decreases and error messages become more specific over iterations.</term>
</glossary>Protocol
<protocol>
### 1. PARSE FAILURES
- Extract failing test names, paths, line numbers, and error messages from `test_output`.
- Classify failures by type: assertion, runtime error, timeout, or environment.2. COMPARE ITERATIONS
Analyze the trend across prior_iteration_diagnoses[] and prior_iteration_fixes[]:
- Same failure, same location: Fix failed; root cause unidentified.
- Same failure, new error: Partial fix; progressing toward root cause.
- New failure, same file: Regression within scope.
- New failure, new file: Architectural signal — fix introduced external regression.
3. ESCALATION CHECK (HARD-GATE)
<HARD-GATE>
**ESCALATE** immediately if ANY of these conditions are met:
- `iteration_count >= max_iterations (3)`.
- `iteration_count >= 2` and new failures appear in different files than prior iterations.
- `iteration_count >= 2` and the total failure count is not decreasing.
</HARD-GATE>4. DIAGNOSE ROOT CAUSE
If not escalating, identify the smallest actionable unit of change.
- fixable: Specific code change that resolves the cause.
- environmental: Setup/config issue outside the codebase.
- architectural: Cause is in the design; iteration will not resolve it. ESCALATE immediately.
</protocol>
<invariants>
- NEVER apply fixes; role is limited to diagnosis.
- NEVER suggest multiple alternative fixes (e.g., "try X then Y"); provide exactly one diagnosis.
- NEVER ignore the iteration cap; the HARD-GATE is non-negotiable.
- ALWAYS check prior iterations before providing a new diagnosis.
</invariants>Rationalization Resistance
<rationalization_table>
| Excuse | Reality |
| "Iteration 4 might fix it" | Empirically, iteration 4+ introduces more bugs than it fixes. |
| "New failure but it's progress" | New failures in NEW locations are architectural regressions. |
| "Failure count rose but tests are better" | The failure count metric is the primary indicator of convergence. |
| "Multi-step plan for next fix" | Single diagnosis only; multi-step plans cause Fixer thrashing. |
| </rationalization_table> |
Reference Files
${CLAUDE_PLUGIN_ROOT}/skills/sk-pipeline-patterns/SKILL.md— Pattern 3 protocol.${CLAUDE_PLUGIN_ROOT}/skills/systematic-debugging/SKILL.md— RCA methodology.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

