Troubleshooting¶
Common issues and how to resolve them.
Workflow Validation Errors¶
"unknown agent: X"¶
Problem: A step references an agent that isn't defined.
Solution: Check spelling and define the agent:
agents:
security-reviewer: # Must match exactly
inline:
description: "..."
prompt: "..."
steps:
- id: scan
agent: security-reviewer # Must match agents section
"circular dependency detected"¶
Problem: Steps depend on each other in a loop.
Solution: Review your depends_on chains and break the cycle:
# ✗ Bad: Circular
- id: step-a
depends_on: [step-b]
- id: step-b
depends_on: [step-a]
# ✓ Good: Linear
- id: step-a
- id: step-b
depends_on: [step-a]
"duplicate step id: X"¶
Problem: Two steps have the same ID.
Solution: Give each step a unique ID:
"missing required input: X"¶
Problem: An input without a default wasn't provided.
Solution: Either provide the input or add a default:
# Option 2: Add default
inputs:
files:
description: "Files to analyze"
default: "*.go" # Now optional
Runtime Errors¶
"step X failed: context deadline exceeded"¶
Problem: A step exceeded its configured timeout limit.
Event-Based Completion
goflow uses event-based session monitoring by default — sessions complete naturally when the LLM finishes. You only see this error if you explicitly set a timeout on the step.
Solutions:
-
Remove the timeout — If you don't need a strict time limit, remove the
timeoutfield and let the session complete naturally -
Increase the timeout — If you need a safety limit, increase it:
-
Use --verbose or --stream to monitor progress — See what the agent is doing:
-
Simplify the prompt — Complex prompts may cause the agent to spin
-
Split into smaller steps — Break down the task for better visibility
"agent file not found: X"¶
Problem: Can't find the referenced .agent.md file.
Solutions:
-
Check the path — Paths are relative to the workflow file:
-
Check file extension — Must be
.agent.md -
Use absolute path — For debugging:
"template error: step X not found"¶
Problem: Referencing a step that doesn't exist.
Solution: Fix the typo in your template:
"condition references unknown step"¶
Problem: A condition references a non-existent step.
Solution: Verify the step ID in your condition:
Mock Mode Issues¶
Mock mode shows "mock output" but real mode fails¶
Problem: Workflow works in mock mode but fails with real AI calls.
Possible causes:
-
Copilot CLI not installed
-
Not authenticated
-
Model not available — Check if the specified model is accessible to your account
-
Try the CLI fallback — If the SDK executor has issues, run with
--clito use the legacy subprocess executor:
Agent Issues¶
Agent tools not working¶
Problem: Agent can't use expected tools.
Solutions:
-
Check tool is listed:
-
Use correct tool names:
Agent seems to ignore instructions¶
Problem: Agent doesn't follow the system prompt.
Solutions:
-
Make instructions clearer:
-
Check prompt isn't too long — Very long prompts may have key instructions ignored
-
Use stronger directives:
Audit Trail Issues¶
Audit directory not created¶
Problem: No .workflow-runs/ directory appears.
Solutions:
-
Check write permissions:
-
Specify explicit path:
Old runs not cleaned up¶
Problem: Audit directory grows indefinitely.
Solution: Configure retention:
Template Issues¶
Template not replaced¶
Problem: {{inputs.X}} or {{steps.Y.output}} appears literally in output.
Solutions:
-
Check syntax — No spaces inside braces:
-
Check field name exists:
Output truncated unexpectedly¶
Problem: Step output is shorter than expected.
Solution: Adjust truncation settings:
Or disable for specific output:
Getting More Help¶
1. Enable Verbose Mode¶
Shows step-by-step progress and timing.
2. Check the Audit Trail¶
Every run saves the exact prompts and outputs:
cat .workflow-runs/*/steps/*/prompt.md # What was sent
cat .workflow-runs/*/steps/*/output.md # What was received
3. Run Single Steps¶
Isolate problem steps:
4. Validate First¶
Check YAML structure before running:
Still Stuck?¶
- Search existing issues on GitHub
- Create a minimal reproducible example
- Open an issue with:
- Your workflow file (sanitized)
- The error message
goflow versionoutput- Steps to reproduce