@exaudeus/workrail 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/feature-flags.js +8 -0
- package/dist/infrastructure/storage/file-workflow-storage.d.ts +4 -0
- package/dist/infrastructure/storage/file-workflow-storage.js +67 -26
- package/package.json +1 -1
- package/workflows/bug-investigation.agentic.json +10 -10
- package/workflows/routines/context-gathering.json +149 -0
- package/workflows/routines/execution-simulation.json +84 -0
- package/workflows/routines/feature-implementation.json +119 -0
- package/workflows/routines/hypothesis-challenge.json +113 -0
- package/workflows/routines/plan-analysis.json +67 -106
- package/workflows/workflow-diagnose-environment.json +21 -14
- package/workflows/systematic-bug-investigation-with-loops.backup-20251106-125543.json +0 -751
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "routine-hypothesis-challenge",
|
|
3
|
+
"name": "Hypothesis Challenge Routine",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "Adversarial testing of hypotheses using an Ideate -> Plan -> Execute strategy. Configurable rigor levels (1-5) allow for progressively deeper skepticism and stress testing.",
|
|
6
|
+
"clarificationPrompts": [
|
|
7
|
+
"What hypotheses or assumptions should I challenge?",
|
|
8
|
+
"What rigor level do you need? (1=Surface, 3=Deep, 5=Maximum)",
|
|
9
|
+
"What evidence supports these hypotheses?",
|
|
10
|
+
"What context should I consider? (bug description, findings, constraints)"
|
|
11
|
+
],
|
|
12
|
+
"preconditions": [
|
|
13
|
+
"Hypotheses or assumptions are clearly stated",
|
|
14
|
+
"Rigor level (1-5) is specified",
|
|
15
|
+
"Supporting evidence is available",
|
|
16
|
+
"Agent has read access to relevant context"
|
|
17
|
+
],
|
|
18
|
+
"metaGuidance": [
|
|
19
|
+
"**ROUTINE PURPOSE:**",
|
|
20
|
+
"This routine performs adversarial testing. It separates strategy (Ideating attack vectors) from execution (Challenging/Stress Testing).",
|
|
21
|
+
"**PHASES:**",
|
|
22
|
+
"1. IDEATE: Brainstorm attack vectors and common flaws",
|
|
23
|
+
"2. STRATEGIZE: Define the challenge plan for the requested rigor",
|
|
24
|
+
"3. EXECUTE: Run the challenge (Surface/Deep/Max)",
|
|
25
|
+
"4. SYNTHESIZE: Deliver verdicts and alternative explanations",
|
|
26
|
+
"**CORE PRINCIPLES:**",
|
|
27
|
+
"- ADVERSARIAL: Actively try to disprove, don't confirm",
|
|
28
|
+
"- SYSTEMATIC: Challenge assumptions, logic, and evidence",
|
|
29
|
+
"- CONSTRUCTIVE: Goal is to strengthen truth, not just destroy"
|
|
30
|
+
],
|
|
31
|
+
"steps": [
|
|
32
|
+
{
|
|
33
|
+
"id": "step-0-ideate-vectors",
|
|
34
|
+
"title": "Step 0: Ideate Challenge Strategy",
|
|
35
|
+
"prompt": "**IDEATE ATTACK VECTORS**\n\nBefore diving into specific hypotheses, step back and look at the whole picture.\n\n**YOUR MISSION:** Brainstorm ways to break these hypotheses.\n\n**EXECUTE:**\n1. Review all hypotheses together\n2. Identify shared assumptions (do they all assume X?)\n3. Brainstorm classes of failure (Concurrency? State? Logic?)\n4. Identify weak points in the evidence provided\n\n**REFLECT:**\n- Are these hypotheses too similar?\n- Are they missing a whole category of explanation?\n- What is the most likely \"unknown unknown\"?\n\n**WORKING NOTES:**\n- Common Assumptions\n- Potential Attack Vectors (e.g., Race Conditions, Edge Cases)\n- Evidence Weaknesses",
|
|
36
|
+
"agentRole": "You are a red-team strategist planning your attack.",
|
|
37
|
+
"requireConfirmation": false,
|
|
38
|
+
"guidance": [
|
|
39
|
+
"BRAINSTORM: Look for systemic issues first",
|
|
40
|
+
"CATEGORIES: Think in categories (Logic, Data, Timing, Environment)",
|
|
41
|
+
"SKEPTICISM: Assume the hypotheses are wrong. Why?"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "step-1-plan-challenge",
|
|
46
|
+
"title": "Step 1: Plan Challenge Tactics",
|
|
47
|
+
"prompt": "**DEFINE CHALLENGE PLAN**\n\nNow define your specific tactics for the requested rigor level.\n\n**YOUR MISSION:** Create a concrete plan to test these hypotheses.\n\n**EXECUTE:**\n1. Map attack vectors to specific hypotheses\n2. Define **Key Questions** to answer\n3. Select **Stress Tests** or **Counter-Examples** to search for\n4. Define criteria for \"disproof\"\n\n**DELIVERABLE:**\nCreate `challenge-strategy.md`:\n- Attack Plan for each Hypothesis\n- Key Assumptions to Probe\n- Required Evidence check",
|
|
48
|
+
"agentRole": "You are a lead auditor defining the scope of the audit.",
|
|
49
|
+
"requireConfirmation": false,
|
|
50
|
+
"guidance": [
|
|
51
|
+
"TACTICS: Be specific (e.g., \"Check for null user in auth flow\")",
|
|
52
|
+
"CRITERIA: What would convince you the hypothesis is false?"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "step-execute-rigor-1",
|
|
57
|
+
"title": "Execution: Rigor 1 (Surface)",
|
|
58
|
+
"runCondition": {
|
|
59
|
+
"var": "rigor",
|
|
60
|
+
"gte": 1
|
|
61
|
+
},
|
|
62
|
+
"prompt": "**EXECUTE RIGOR 1: SURFACE CHALLENGE**\n\nExecute your challenge plan at Rigor 1 (Surface).\n\n**MISSION:** Identify obvious flaws and simple counter-examples.\n\n**EXECUTE:**\n1. Follow `challenge-strategy.md`\n2. Check for obvious logical gaps\n3. Identify simple counter-examples\n4. Check for Occam's Razor alternatives\n\n**WORKING NOTES:**\n- Obvious Flaws\n- Simple Counter-Examples\n- Better Alternatives",
|
|
63
|
+
"agentRole": "You are a skeptical reviewer looking for quick wins.",
|
|
64
|
+
"requireConfirmation": false,
|
|
65
|
+
"guidance": [
|
|
66
|
+
"FOCUS: Obvious errors, simple logic gaps",
|
|
67
|
+
"SPEED: Don't dig deep yet, look for low-hanging fruit"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "step-execute-rigor-3",
|
|
72
|
+
"title": "Execution: Rigor 3 (Deep)",
|
|
73
|
+
"runCondition": {
|
|
74
|
+
"var": "rigor",
|
|
75
|
+
"gte": 3
|
|
76
|
+
},
|
|
77
|
+
"prompt": "**EXECUTE RIGOR 3: DEEP CHALLENGE**\n\nExecute your challenge plan at Rigor 3 (Deep Analysis).\n\n**MISSION:** Deeply challenge with edge cases and hidden assumptions.\n\n**EXECUTE:**\n1. Follow `challenge-strategy.md`\n2. Expose hidden assumptions\n3. Generate systematic edge cases\n4. Analyze timing and environment factors\n\n**WORKING NOTES:**\n- Hidden Assumptions Exposed\n- Edge Case Analysis\n- Environmental Factors",
|
|
78
|
+
"agentRole": "You are a rigorous auditor digging for structural flaws.",
|
|
79
|
+
"requireConfirmation": false,
|
|
80
|
+
"guidance": [
|
|
81
|
+
"FOCUS: Unstated assumptions, boundary conditions",
|
|
82
|
+
"DEPTH: trace logic chains to find breaks"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "step-execute-rigor-5",
|
|
87
|
+
"title": "Execution: Rigor 5 (Maximum)",
|
|
88
|
+
"runCondition": {
|
|
89
|
+
"var": "rigor",
|
|
90
|
+
"gte": 5
|
|
91
|
+
},
|
|
92
|
+
"prompt": "**EXECUTE RIGOR 5: MAX CHALLENGE**\n\nExecute your challenge plan at Rigor 5 (Maximum Skepticism).\n\n**MISSION:** Try to break it completely.\n\n**EXECUTE:**\n1. Follow `challenge-strategy.md`\n2. Exhaustive assumption enumeration\n3. Extreme edge cases and adversarial inputs\n4. Second-order effects and chaos scenarios\n\n**WORKING NOTES:**\n- Exhaustive Challenges\n- Extreme Scenarios\n- Disproof Attempts",
|
|
93
|
+
"agentRole": "You are a relentless adversary trying to prove it wrong.",
|
|
94
|
+
"requireConfirmation": false,
|
|
95
|
+
"guidance": [
|
|
96
|
+
"FOCUS: Breaking the system, extreme edge cases",
|
|
97
|
+
"MINDSET: Trust nothing, verify everything"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"id": "step-synthesize",
|
|
102
|
+
"title": "Step 5: Synthesize Verdicts",
|
|
103
|
+
"prompt": "**SYNTHESIZE VERDICTS**\n\nSynthesize all challenges into final verdicts.\n\n**MISSION:** Deliver clear judgments on each hypothesis.\n\n**EXECUTE:**\n1. Review all Working Notes\n2. Assign Verdicts (Keep/Revise/Reject)\n3. Prioritize Alternatives\n4. Define Critical Tests\n\n**DELIVERABLE:**\nCreate `{deliverableName}`:\n- Executive Summary\n- Hypothesis Analysis & Verdicts\n- Critical Tests Needed\n- Recommendations",
|
|
104
|
+
"agentRole": "You are a judge delivering the final verdict.",
|
|
105
|
+
"requireConfirmation": false,
|
|
106
|
+
"guidance": [
|
|
107
|
+
"VERDICTS: Be decisive based on evidence",
|
|
108
|
+
"ALTERNATIVES: Propose concrete, better explanations",
|
|
109
|
+
"ACTION: What specifically needs to be tested?"
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
@@ -1,139 +1,100 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "routine-plan-analysis",
|
|
3
3
|
"name": "Plan Analysis Routine",
|
|
4
|
-
"version": "1.
|
|
5
|
-
"description": "Validates implementation plans
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"description": "Validates implementation plans using an Ideate -> Plan -> Execute strategy. Checks for completeness, pattern adherence, and risk. Designed for delegation to Plan Analyzer subagent.",
|
|
6
6
|
"clarificationPrompts": [
|
|
7
|
-
"What plan should I analyze? (
|
|
7
|
+
"What plan file should I analyze? (e.g., implementation-plan.md)",
|
|
8
8
|
"What requirements must the plan address?",
|
|
9
9
|
"What constraints must it follow? (patterns, rules, standards)",
|
|
10
10
|
"What context should I consider? (codebase patterns, user rules, background)"
|
|
11
11
|
],
|
|
12
12
|
"preconditions": [
|
|
13
|
-
"Plan is available
|
|
13
|
+
"Plan is available as a file (e.g., implementation-plan.md)",
|
|
14
14
|
"Requirements are clearly stated",
|
|
15
15
|
"Constraints are specified (patterns, rules, standards)",
|
|
16
|
-
"Agent has read access to codebase
|
|
16
|
+
"Agent has read access to codebase and plan file"
|
|
17
17
|
],
|
|
18
18
|
"metaGuidance": [
|
|
19
19
|
"**ROUTINE PURPOSE:**",
|
|
20
|
-
"This routine validates
|
|
21
|
-
"",
|
|
20
|
+
"This routine validates plans. It separates strategy (Ideating analysis vectors) from execution (Checking completeness/patterns/risk).",
|
|
21
|
+
"**PHASES:**",
|
|
22
|
+
"1. IDEATE: Classify the plan type and potential pitfalls",
|
|
23
|
+
"2. STRATEGIZE: Define the analysis focus and checklist",
|
|
24
|
+
"3. EXECUTE: Run the checks (Completeness, Patterns, Risk)",
|
|
25
|
+
"4. SYNTHESIZE: Deliver the final verdict and recommendations",
|
|
22
26
|
"**CORE PRINCIPLES:**",
|
|
23
|
-
"-
|
|
24
|
-
"-
|
|
25
|
-
"-
|
|
26
|
-
"- CONSTRUCTIVE: Suggest improvements, not just criticize",
|
|
27
|
-
"",
|
|
28
|
-
"**EXPECTED INPUT FORMAT:**",
|
|
29
|
-
"Plan: Can be a file reference (e.g., 'implementation-plan.md') or inline text. A plan typically includes: objectives, approach/strategy, steps/phases, dependencies, testing strategy, and success criteria.",
|
|
30
|
-
"Requirements: List of what must be accomplished",
|
|
31
|
-
"Constraints: Patterns to follow, rules to obey, standards to meet",
|
|
32
|
-
"Context: Background information, codebase patterns, user rules",
|
|
33
|
-
"",
|
|
34
|
-
"**PLAN HANDLING:**",
|
|
35
|
-
"If plan is a file reference, use read_file to load it. If plan is provided inline as text, work with it directly.",
|
|
36
|
-
"",
|
|
37
|
-
"**EXECUTION MODEL:**",
|
|
38
|
-
"This routine is designed for autonomous execution. You will receive all necessary context upfront. Your role is to validate thoroughly and identify issues."
|
|
27
|
+
"- CONTEXT-AWARE: Adapt analysis to the plan type (UI vs Backend vs Migration)",
|
|
28
|
+
"- RISK-FOCUSED: Prioritize high-risk areas",
|
|
29
|
+
"- CONSTRUCTIVE: Suggest specific improvements"
|
|
39
30
|
],
|
|
40
31
|
"steps": [
|
|
41
32
|
{
|
|
42
|
-
"id": "step-0-
|
|
43
|
-
"title": "Step 0:
|
|
44
|
-
"prompt": "**
|
|
45
|
-
"agentRole": "You are a
|
|
33
|
+
"id": "step-0-ideate-strategy",
|
|
34
|
+
"title": "Step 0: Ideate Analysis Strategy",
|
|
35
|
+
"prompt": "**IDEATE ANALYSIS STRATEGY**\n\nBefore analyzing the details, look at the plan holistically.\n\n**YOUR MISSION:** Determine what *kind* of plan this is and what usually goes wrong with it.\n\n**EXECUTE:**\n1. Read the plan summary\n2. Classify the plan (e.g., \"Database Migration\", \"UI Refactor\", \"New API Endpoint\")\n3. Brainstorm common pitfalls for this category\n4. Identify key patterns that *should* be present\n\n**REFLECT:**\n- What are the \"unknown unknowns\" for this domain?\n- What is the single biggest risk?\n- Are there specific user rules for this type of work?\n\n**WORKING NOTES:**\n- Plan Classification\n- Common Pitfalls to Check\n- Critical Patterns to Verify\n- Key Risk Areas",
|
|
36
|
+
"agentRole": "You are a seasoned architect deciding how to review a design.",
|
|
37
|
+
"requireConfirmation": false,
|
|
46
38
|
"guidance": [
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
"DEPENDENCY MAPPING: What must happen before what? Are dependencies explicit or implicit?",
|
|
52
|
-
"QUALITY INDICATORS - Clear plan: Explicit objectives, logical structure, clear dependencies, well-organized",
|
|
53
|
-
"QUALITY INDICATORS - Unclear plan: Vague objectives, jumbled structure, hidden dependencies, hard to follow",
|
|
54
|
-
"CONSTRAINT: Just understand - don't evaluate yet",
|
|
55
|
-
"OUTPUT LIMIT: Summary of plan understanding (aim for 300-400 words)"
|
|
56
|
-
],
|
|
57
|
-
"requireConfirmation": false
|
|
39
|
+
"CLASSIFICATION: Be specific (e.g., 'Async Worker Implementation')",
|
|
40
|
+
"PITFALLS: List 3-5 common errors for this specific domain",
|
|
41
|
+
"FOCUS: Decide where to spend your limited attention"
|
|
42
|
+
]
|
|
58
43
|
},
|
|
59
44
|
{
|
|
60
|
-
"id": "step-1-
|
|
61
|
-
"title": "Step 1:
|
|
62
|
-
"prompt": "**
|
|
63
|
-
"agentRole": "You are a
|
|
45
|
+
"id": "step-1-plan-analysis",
|
|
46
|
+
"title": "Step 1: Plan the Analysis",
|
|
47
|
+
"prompt": "**DEFINE ANALYSIS PLAN**\n\nNow define your specific checklist for this analysis.\n\n**YOUR MISSION:** Create a concrete plan to validate this document.\n\n**EXECUTE:**\n1. Select the specific **Checks** to run (Completeness, Patterns, Security, Performance)\n2. Define **Key Questions** to answer\n3. Identify **Reference Files** to check against (patterns, existing code)\n\n**DELIVERABLE:**\nCreate `analysis-strategy.md`:\n- Scope of Analysis\n- Key Questions\n- Pattern Reference List\n- Risk Focus Areas",
|
|
48
|
+
"agentRole": "You are a lead reviewer defining the review criteria.",
|
|
49
|
+
"requireConfirmation": false,
|
|
64
50
|
"guidance": [
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
"IMPLICIT REQUIREMENTS: Always check for - Testing strategy, Documentation updates, Migration/upgrade path, Rollback plan, Monitoring/observability, Performance impact, Security considerations",
|
|
69
|
-
"SUCCESS CRITERIA: How will we know the plan succeeded? Metrics? Tests? User validation?",
|
|
70
|
-
"QUALITY INDICATORS - Complete plan: All requirements mapped, implicit requirements addressed, success criteria defined",
|
|
71
|
-
"QUALITY INDICATORS - Incomplete plan: Missing requirements, no implicit requirements, no success criteria",
|
|
72
|
-
"CONSTRAINT: Focus on what's missing, not how it's done (that's next step)",
|
|
73
|
-
"OUTPUT LIMIT: Completeness analysis with requirement mapping and gaps (aim for 400-500 words)"
|
|
74
|
-
],
|
|
75
|
-
"requireConfirmation": false
|
|
51
|
+
"CUSTOMIZE: Don't just use a generic checklist. Tailor it to the plan type.",
|
|
52
|
+
"REFERENCES: List specific files to check for pattern matching"
|
|
53
|
+
]
|
|
76
54
|
},
|
|
77
55
|
{
|
|
78
|
-
"id": "step-
|
|
79
|
-
"title": "
|
|
80
|
-
"prompt": "**
|
|
81
|
-
"agentRole": "You are a
|
|
56
|
+
"id": "step-execute-completeness",
|
|
57
|
+
"title": "Execution: Completeness Check",
|
|
58
|
+
"prompt": "**EXECUTE COMPLETENESS CHECK**\n\nVerify all requirements are addressed.\n\n**MISSION:** Ensure no requirement is left behind.\n\n**EXECUTE:**\n1. Follow `analysis-strategy.md`\n2. Map Requirements to Plan Sections\n3. identifying gaps\n4. Check for implicit requirements (Testing, Migration, Rollback)\n\n**WORKING NOTES:**\n- Requirement Matrix\n- Gaps Identified\n- Implicit Requirements Status",
|
|
59
|
+
"agentRole": "You are a requirements analyst ensuring full coverage.",
|
|
60
|
+
"requireConfirmation": false,
|
|
82
61
|
"guidance": [
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
"SIMILARITY SEARCH: Find similar implementations - grep 'class.*Service', codebase_search 'How are services structured?'",
|
|
87
|
-
"USER RULE VERIFICATION: Check against provided user rules - naming conventions, architectural patterns, testing requirements",
|
|
88
|
-
"BETTER ALTERNATIVES: Are there superior patterns the plan should use? More modern? More maintainable?",
|
|
89
|
-
"QUALITY INDICATORS - Compliant plan: Follows patterns, deviations justified, matches similar code, follows user rules",
|
|
90
|
-
"QUALITY INDICATORS - Non-compliant plan: Ignores patterns, unexplained deviations, inconsistent with codebase, violates user rules",
|
|
91
|
-
"CONSTRAINT: Focus on pattern adherence, not implementation details",
|
|
92
|
-
"OUTPUT LIMIT: Pattern compliance analysis with deviations and recommendations (aim for 500-600 words)"
|
|
93
|
-
],
|
|
94
|
-
"requireConfirmation": false
|
|
62
|
+
"MAPPING: Create explicit mapping (Req 1 -> Section 2)",
|
|
63
|
+
"IMPLICIT: Don't forget testing, monitoring, docs"
|
|
64
|
+
]
|
|
95
65
|
},
|
|
96
66
|
{
|
|
97
|
-
"id": "step-
|
|
98
|
-
"title": "
|
|
99
|
-
"prompt": "**
|
|
100
|
-
"agentRole": "You are a
|
|
67
|
+
"id": "step-execute-patterns",
|
|
68
|
+
"title": "Execution: Pattern Compliance",
|
|
69
|
+
"prompt": "**EXECUTE PATTERN CHECK**\n\nVerify adherence to codebase patterns.\n\n**MISSION:** Ensure consistency with existing code.\n\n**EXECUTE:**\n1. Follow `analysis-strategy.md`\n2. Check against Reference Files\n3. Identify deviations\n4. Verify user rule compliance\n\n**WORKING NOTES:**\n- Pattern Compliance Matrix\n- Deviations (Justified/Unjustified)",
|
|
70
|
+
"agentRole": "You are a pattern expert ensuring consistency.",
|
|
71
|
+
"requireConfirmation": false,
|
|
101
72
|
"guidance": [
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
"BUSINESS RISK CATEGORIES: Downtime required (service interruption), Data loss potential (could lose data), User impact (breaks workflows), Backward compatibility (breaks existing code), Production incident risk (could cause outage)",
|
|
106
|
-
"SINGLE POINT OF FAILURE: Where is there no redundancy? No fallback? No alternative path?",
|
|
107
|
-
"ROLLBACK ANALYSIS: Can we undo this? How? What if rollback fails? Is there a recovery plan?",
|
|
108
|
-
"EDGE CASE THINKING: What unusual scenarios could break this? Concurrent access? Partial failures? Network issues? Resource exhaustion?",
|
|
109
|
-
"QUALITY INDICATORS - Low risk plan: Risks identified and mitigated, rollback possible, no single points of failure, edge cases considered",
|
|
110
|
-
"QUALITY INDICATORS - High risk plan: Risks not addressed, no rollback plan, single points of failure, edge cases ignored",
|
|
111
|
-
"CONSTRAINT: Identify risks, don't solve them (that's for recommendations)",
|
|
112
|
-
"OUTPUT LIMIT: Risk assessment with categories and severity (aim for 400-500 words)"
|
|
113
|
-
],
|
|
114
|
-
"requireConfirmation": false
|
|
73
|
+
"COMPARE: Explicitly compare plan code snippets to existing files",
|
|
74
|
+
"DEVIATIONS: Ask 'Why is this different?'"
|
|
75
|
+
]
|
|
115
76
|
},
|
|
116
77
|
{
|
|
117
|
-
"id": "step-
|
|
118
|
-
"title": "
|
|
119
|
-
"prompt": "**
|
|
120
|
-
"agentRole": "You are a
|
|
78
|
+
"id": "step-execute-risk",
|
|
79
|
+
"title": "Execution: Risk Assessment",
|
|
80
|
+
"prompt": "**EXECUTE RISK ASSESSMENT**\n\nIdentify potential failure modes.\n\n**MISSION:** Find what could go wrong.\n\n**EXECUTE:**\n1. Follow `analysis-strategy.md`\n2. Check for Technical, Execution, and Business risks\n3. Identify Single Points of Failure\n4. Assess Rollback capability\n\n**WORKING NOTES:**\n- Risk Register (with Severity)\n- Rollback Assessment",
|
|
81
|
+
"agentRole": "You are a risk analyst predicting failures.",
|
|
82
|
+
"requireConfirmation": false,
|
|
121
83
|
"guidance": [
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
84
|
+
"SEVERITY: High/Med/Low",
|
|
85
|
+
"ROLLBACK: Can we undo this?"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "step-synthesize",
|
|
90
|
+
"title": "Step 5: Synthesize Analysis",
|
|
91
|
+
"prompt": "**SYNTHESIZE ANALYSIS**\n\nSynthesize findings into a final report.\n\n**MISSION:** Deliver clear, actionable feedback.\n\n**EXECUTE:**\n1. Review all Working Notes\n2. Assess overall quality\n3. Prioritize issues\n4. Formulate recommendations\n\n**DELIVERABLE:**\nCreate `{deliverableName}`:\n- Executive Summary\n- Completeness/Pattern/Risk Analysis\n- Recommendations\n- Final Verdict (Ready/Revise/Reject)",
|
|
92
|
+
"agentRole": "You are a senior reviewer delivering the final sign-off.",
|
|
93
|
+
"requireConfirmation": false,
|
|
94
|
+
"guidance": [
|
|
95
|
+
"VERDICT: Be clear - Ready or Not?",
|
|
96
|
+
"PRIORITY: Focus on Critical/High issues first"
|
|
97
|
+
]
|
|
136
98
|
}
|
|
137
99
|
]
|
|
138
|
-
}
|
|
139
|
-
|
|
100
|
+
}
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "workflow-diagnose-environment",
|
|
3
3
|
"name": "Diagnostic: Environment & Subagents",
|
|
4
|
-
"
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Automated capability detection for Agentic IDEs. Probes for subagent access and generates a local configuration file.",
|
|
5
6
|
"steps": [
|
|
6
7
|
{
|
|
7
|
-
"id": "
|
|
8
|
-
"title": "
|
|
9
|
-
"prompt": "
|
|
8
|
+
"id": "step-0-probe-capabilities",
|
|
9
|
+
"title": "Step 0: Probe Subagent Capabilities",
|
|
10
|
+
"prompt": "**INITIATING CAPABILITY PROBE**\n\nI need to determine if this environment supports subagent delegation.\n\n**YOUR MISSION:** Attempt to contact a subagent and verify its tool access.\n\n**EXECUTE:**\n1. Check for existing `.workrail/config.json`. If it exists, read it.\n2. **Active Probe:** Attempt to use the `task` tool (or equivalent) to send a message to a subagent type 'context-researcher' (or 'researcher').\n - *Prompt:* \"Please run `workflow_list` and tell me what you see.\"\n3. **Analyze Result:**\n - **Success:** Subagent replied AND saw workflows. (Tier 3)\n - **Partial:** Subagent replied but saw NO tools. (Tier 2)\n - **Failure:** Tool call failed or no subagent found. (Tier 1)\n\n**WORKING NOTES:**\n- Probe Result (Success/Partial/Fail)\n- Subagent Name (if discovered)\n- Tool Access Verified?",
|
|
11
|
+
"agentRole": "You are a system administrator verifying environment capabilities.",
|
|
12
|
+
"requireConfirmation": false,
|
|
13
|
+
"guidance": [
|
|
14
|
+
"AUTO-DISCOVERY: Try standard names like 'context-researcher', 'researcher', 'coder'.",
|
|
15
|
+
"TOOL CHECK: The specific test is 'Can you see WorkRail tools?'.",
|
|
16
|
+
"FAIL FAST: If the 'task' tool doesn't exist, you are immediately in Tier 1 (Solo)."
|
|
17
|
+
]
|
|
10
18
|
},
|
|
11
19
|
{
|
|
12
|
-
"id": "
|
|
13
|
-
"title": "
|
|
14
|
-
"prompt": "
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
"id": "step-1-configure-environment",
|
|
21
|
+
"title": "Step 1: Configure Environment",
|
|
22
|
+
"prompt": "**CONFIGURE WORKRAIL ENVIRONMENT**\n\nBased on the probe result, configure the local workspace.\n\n**YOUR MISSION:** Create or update `.workrail/config.json` to reflect reality.\n\n**EXECUTE:**\n1. **Tier 3 (Delegation):**\n - Write config: `{\"mode\": \"delegate\", \"subagents\": {\"researcher\": \"[name]\"}}`\n - Inform user: \"Delegation enabled. Subagent '[name]' connected.\"\n2. **Tier 2 (Proxy):**\n - Write config: `{\"mode\": \"proxy\", \"subagents\": {\"researcher\": \"[name]\"}}`\n - Inform user: \"Proxy mode enabled. Subagent connected but needs tool whitelist fix.\"\n3. **Tier 1 (Solo):**\n - Write config: `{\"mode\": \"solo\"}`\n - Inform user: \"Solo mode enabled. No subagents detected.\"\n\n**DELIVERABLE:**\n- `.workrail/config.json` file created/updated.\n- Brief summary of capabilities detected.",
|
|
23
|
+
"agentRole": "You are a configuration manager ensuring the system is set up correctly.",
|
|
24
|
+
"requireConfirmation": true,
|
|
25
|
+
"guidance": [
|
|
26
|
+
"PERSISTENCE: Use 'write_file' to save the config.",
|
|
27
|
+
"USER INFO: Be clear about what mode is being set and why."
|
|
28
|
+
]
|
|
21
29
|
}
|
|
22
30
|
]
|
|
23
31
|
}
|
|
24
|
-
|