[BUG]: Fail during Recon phase
Describe the bug
Status: failed
Duration: 41m 7s
Total Cost: $22.3952
Agents: 1 completed
Error: recon failed
OutputValidationError
Agent recon failed output validation after 3 attempts
Let me know what you would need to help you investigate the issue.
I found some temp deliverables generated during pre-recon very interresting, and was a bit frustrated not being able to get to the end.
Steps to reproduce
Expected behaviour
Going to the end...
Actual behaviour
Stopped during recon phase
Pre-submission checklist (required)
- [x] I have searched the existing open issues and confirmed this bug has not already been reported.
- [x] I am running the latest released version of
shannon.
If applicable
- [ ] I have included relevant error messages, stack traces, or failure details.
- [X] I have checked the audit logs and pasted the relevant errors.
- [] I have inspected the failed Temporal workflow run and included the failure reason.
- [ ] I have included clear steps to reproduce the issue.
- [ ] I have redacted any sensitive information (tokens, URLs, repo names).
Debugging details
[2026-03-11 20:53:26] [recon] [LLM] Turn 97: Good. Let me check a few more key endpoints and look at the CORS headers on live APIs.
[2026-03-11 20:53:29] [recon] [LLM] Turn 98: {"type":"tool_use","id":"toolu_********","name":"mcp__playwright-agent2__browser_run_code","input":{"code":"async (page) => {\n // Check CORS headers on main API\n const response = await page.evaluate(async () => {\n try {\n const r = await fetch('https://*****/health', {\n method: 'GET',\n headers: {'Origin': 'https://evil.com'}\n });\n const headers = {};\n r.headers.forEach((v, k) => { headers[k] = v; });\n return { status: r.status, headers };\n } catch(e) { return { error: e.message }; }\n });\n return response;\n}"},"caller":{"type":"direct"}}
[2026-03-11 20:53:29] [recon] [LLM] Turn 99: {"type":"tool_use","id":"toolu_********","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://****/leads"},"caller":{"type":"direct"}}
[2026-03-11 20:53:35] [recon] [LLM] Turn 100: CORS confirmed as `access-control-allow-origin: *` from the live API. Rate limits show as 0. Let me check a few more endpoints and wait for all background agents to complete.
[2026-03-11 20:53:38] [recon] [LLM] Turn 101: {"type":"tool_use","id":"toolu_*****","name":"mcp__playwright-agent2__browser_run_code","input":{"code":"async (page) => {\n // Check multiple key endpoints in parallel\n const tests = [\n { url: 'https://*****/auth/local', method: 'OPTIONS' },\n { url: 'https://******/******', method: 'GET' },\n { url: 'https://*******/*****', method: 'GET' },\n { url: 'https://*******/users', method: 'GET' },\n { url: 'https://********/******', method: 'GET' },\n ];\n const results = await page.evaluate(async (tests) => {\n const out = {};\n for (const t of tests) {\n try {\n const r = await fetch(t.url, { method: t.method });\n out[t.url + ' [' + t.method + ']'] = { status: r.status };\n } catch(e) { out[t.url] = { error: e.message }; }\n }\n return out;\n }, tests);\n return results;\n}"},"caller":{"type":"direct"}}
[2026-03-11 20:53:44] [AGENT] recon: Failed - Agent recon failed output validation (10m 19s $4.31)
Screenshots
No response
Authentication method used
CLAUDE_CODE_OAUTH_TOKEN
Full ./shannon command with all flags used (with redactions)
./shannon start URL=https://*****/ REPO=monorepo
Are you using any experimental models or providers other than default Anthropic models?
No
If Yes, which one (model/provider)?
No response
OS (with version)
Sequoia 15.6.1
Docker version ('docker -v')
29.2.1
Additional context
No response
@littleski Thanks for reporting
Can you please share the failed result from temporal workflow and any other info you would like us to know about the environment or type of app (webapp/api) you are testing against which will be helpful for us to reproduce the issue on our side
It's a monorepo with a backend (split in 3), 3 frontend web, 2 mobileApp, and a huge bunch of lambdas. (ruffly 700k LOC in total) I have added the last redacted lines for the workflow, but obviously, i can't share the full log as it would take age to redact with a big risk of not redacting everything. Here is more complete localized logs
799-[2026-03-11 20:17:59] [recon] [LLM] Turn 115: Let me check the geofencing endpoints and policy renewal to understand the unauthenticated API surface.
800-[2026-03-11 20:18:00] [recon] [LLM] Turn 116: {"type":"tool_use","id":"toolu_018Za45pjQcAyqpGjir5TqsG","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://----"},"caller":{"type":"direct"}}
801-[2026-03-11 20:18:02] [recon] [LLM] Turn 117: {"type":"tool_use","id":"toolu_01GxR63LwtDmKdqRMoUZUtKW","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://----"},"caller":{"type":"direct"}}
802-[2026-03-11 20:18:05] [recon] [LLM] Turn 118: {"type":"tool_use","id":"toolu_01CwGXCoymfgbCKtcRAHPsjM","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://----"},"caller":{"type":"direct"}}
803:[2026-03-11 20:18:07] [AGENT] recon: Failed - Agent recon failed output validation (4m 27s $4.58)
804-[2026-03-11 20:23:09] [AGENT] recon: Starting (attempt 2)
908-[2026-03-11 20:33:18] [recon] [LLM] Turn 104: Note: Several endpoints that code analysis identified as public are returning 401 in production - likely there's a global auth change or the combined staging service differs from the per-service setup. Let me check a few more endpoints and look for the webhook endpoints.
909-[2026-03-11 20:33:18] [recon] [LLM] Turn 105: {"type":"tool_use","id":"toolu_01CE9kyzEcwDxrhANijnudTw","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://l-----"},"caller":{"type":"direct"}}
910-[2026-03-11 20:33:18] [recon] [LLM] Turn 106: {"type":"tool_use","id":"toolu_01KU4KugGFGzKGUENmZDm6VF","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://-----"},"caller":{"type":"direct"}}
911:[2026-03-11 20:33:21] [AGENT] recon: Failed - Agent recon failed output validation (10m 11s $4.20)
912-[2026-03-11 20:43:23] [AGENT] recon: Starting (attempt 3)
[2026-03-11 20:53:26] [recon] [LLM] Turn 97: Good. Let me check a few more key endpoints and look at the CORS headers on live APIs.
[2026-03-11 20:53:29] [recon] [LLM] Turn 98: {"type":"tool_use","id":"toolu_********","name":"mcp__playwright-agent2__browser_run_code","input":{"code":"async (page) => {\n // Check CORS headers on main API\n const response = await page.evaluate(async () => {\n try {\n const r = await fetch('https://*****/health', {\n method: 'GET',\n headers: {'Origin': 'https://evil.com'}\n });\n const headers = {};\n r.headers.forEach((v, k) => { headers[k] = v; });\n return { status: r.status, headers };\n } catch(e) { return { error: e.message }; }\n });\n return response;\n}"},"caller":{"type":"direct"}}
[2026-03-11 20:53:29] [recon] [LLM] Turn 99: {"type":"tool_use","id":"toolu_********","name":"mcp__playwright-agent2__browser_navigate","input":{"url":"https://****/leads"},"caller":{"type":"direct"}}
[2026-03-11 20:53:35] [recon] [LLM] Turn 100: CORS confirmed as `access-control-allow-origin: *` from the live API. Rate limits show as 0. Let me check a few more endpoints and wait for all background agents to complete.
[2026-03-11 20:53:38] [recon] [LLM] Turn 101: {"type":"tool_use","id":"toolu_*****","name":"mcp__playwright-agent2__browser_run_code","input":{"code":"async (page) => {\n // Check multiple key endpoints in parallel\n const tests = [\n { url: 'https://*****/auth/local', method: 'OPTIONS' },\n { url: 'https://******/******', method: 'GET' },\n { url: 'https://*******/*****', method: 'GET' },\n { url: 'https://*******/users', method: 'GET' },\n { url: 'https://********/******', method: 'GET' },\n ];\n const results = await page.evaluate(async (tests) => {\n const out = {};\n for (const t of tests) {\n try {\n const r = await fetch(t.url, { method: t.method });\n out[t.url + ' [' + t.method + ']'] = { status: r.status };\n } catch(e) { out[t.url] = { error: e.message }; }\n }\n return out;\n }, tests);\n return results;\n}"},"caller":{"type":"direct"}}
[2026-03-11 20:53:44] [AGENT] recon: Failed - Agent recon failed output validation (10m 19s $4.31)
Thanks for sharing workflow.log
Can you also inspect the failed Temporal workflow run and include the failure result which will be available in http://localhost:8233/namespaces/default/workflows
I will try to see if i can run it again, There is no log persistance of this ?
Till will be persisted, you can go to the shannon folder and run docker compose up -d
{
"type": "workflowExecutionFailedEventAttributes",
"failure": {
"message": "Activity task failed",
"cause": {
"message": "Agent recon failed output validation after 3 attempts",
"source": "TypeScriptSDK",
"stackTrace": "ApplicationFailure: Agent recon failed output validation after 3 attempts\n at ApplicationFailure.nonRetryable (/app/node_modules/@temporalio/common/lib/failure.js:207:16)\n at runAgentActivity (file:///app/dist/temporal/activities.js:123:38)\n at async Activity.execute (/app/node_modules/@temporalio/worker/lib/activity.js:101:20)\n at async NativeConnection.withAbortSignal (/app/node_modules/@temporalio/worker/lib/connection.js:172:16)\n at async Client.withAbortSignal (/app/node_modules/@temporalio/client/lib/base-client.js:65:16)\n at async /app/node_modules/@temporalio/worker/lib/activity.js:161:32\n at async /app/node_modules/@temporalio/worker/lib/worker.js:725:30",
"applicationFailureInfo": {
"type": "OutputValidationError",
"nonRetryable": true,
"details": {
"payloads": [
[
{
"agentName": "recon",
"attemptNumber": 3,
"elapsed": 622340
}
]
]
}
}
},
"activityFailureInfo": {
"scheduledEventId": "35",
"startedEventId": "36",
"identity": "******",
"activityType": {
"name": "runReconAgent"
},
"activityId": "6",
"retryState": "RETRY_STATE_NON_RETRYABLE_FAILURE"
}
},
"retryState": "RETRY_STATE_RETRY_POLICY_NOT_SET",
"workflowTaskCompletedEventId": "46"
}
Since the app requires authentication I would suggest you to pass in config as well
You can follow the below instructions to create a config according to your app https://github.com/KeygraphHQ/shannon?tab=readme-ov-file#configuration-optional
Let us know if this works, thanks!
Closing since we haven't heard back.