Skip to content

Commit b9a0c83

Browse files
committed
docs: add qwen long-flow troubleshooting
1 parent 879e87c commit b9a0c83

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

backend/docs/flow_execution.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,8 @@ PentAGI implements a sophisticated multi-layered agent supervision system to ens
975975
- `EXECUTION_MONITOR_SAME_TOOL_LIMIT` (default: 5) - Consecutive same-tool threshold
976976
- `EXECUTION_MONITOR_TOTAL_TOOL_LIMIT` (default: 10) - Total tool calls threshold
977977

978+
For local or custom Qwen-style deployments where flows run for hours or repeat commands, see the [vLLM Qwen3.5-27B-FP8 troubleshooting guide](../../examples/guides/vllm-qwen35-27b-fp8.md#issue-automation-flow-runs-for-hours-or-repeats-commands) for prompt-bounding and log-review guidance.
979+
978980
### Enhanced Reflector Integration
979981

980982
**Automatic Reflector on Generation Failures**:

examples/guides/vllm-qwen35-27b-fp8.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,28 @@ These benchmarks demonstrate that Qwen3.5-27B-FP8 provides excellent throughput
337337

338338
## Troubleshooting
339339

340+
### Issue: Automation Flow Runs for Hours or Repeats Commands
341+
342+
**Cause**: Broad penetration testing prompts can leave smaller local or custom models exploring too much state, especially when the task has no stopping criteria. Repeated commands may indicate model weakness, target complexity, tool-call/provider issues, or a flow that needs additional supervision.
343+
344+
**Solution**: First check the existing PentAGI execution controls before changing runtime behavior or assuming the target is broken:
345+
346+
- Enable execution monitoring with `EXECUTION_MONITOR_ENABLED=true` so the Adviser can review repeated or inefficient tool-call patterns.
347+
- Tune `EXECUTION_MONITOR_SAME_TOOL_LIMIT` and `EXECUTION_MONITOR_TOTAL_TOOL_LIMIT` if mentor reviews happen too late or too often for your model and target.
348+
- Enable planning with `AGENT_PLANNING_STEP_ENABLED=true` for complex pentest flows so specialist agents receive a bounded execution plan.
349+
- Review hard tool-call limits with `MAX_GENERAL_AGENT_TOOL_CALLS` and `MAX_LIMITED_AGENT_TOOL_CALLS`; these remain the final guardrails for runaway executions.
350+
351+
Also narrow the task prompt. Instead of only `Perform penetration testing on the host 192.168.136.136`, include the authorized target, scope, expected output, and stopping criteria, for example: enumerate exposed services, try likely public exploits, avoid repeating failed commands more than twice, and stop with a concise findings report if no path is found.
352+
353+
Use PentAGI flow logs, Docker logs, and provider or vLLM logs together when diagnosing a long run:
354+
355+
- Repeated identical shell/browser actions point toward tool-loop behavior.
356+
- Long gaps between actions point toward slow model generation or provider latency.
357+
- Frequent malformed tool calls point toward provider/tool-call parser compatibility.
358+
- Varied but slow exploration can simply mean the target is complex or the prompt is too broad.
359+
360+
Qwen3.5-27B-FP8 can run useful local flows, but complex autonomous pentests may still need execution monitoring, task planning, tighter prompts, and careful log review.
361+
340362
### Issue: "Unknown architecture 'qwen3_5'"
341363

342364
**Cause**: Using stable vLLM release instead of nightly.

0 commit comments

Comments
 (0)