Autonomous Agent Run Forensics
Reconstruct an agent-run incident from up to 500 events, detect duplicate side effects and illegal task transitions, attribute failure/cost by tool, and return a hashed recovery-priority packet.
2990 credits per call · $29.90 USDC with x402
Sample input
{
"events": [
{
"id": "1",
"ts": "2026-10-01T10:00:00Z",
"type": "tool",
"tool": "buyer",
"status": "ok",
"fingerprint": "abc",
"cost_usd": 1,
"side_effect_possible": true,
"state_from": "working",
"state_to": "completed"
},
{
"id": "2",
"ts": "2026-10-01T10:01:00Z",
"type": "retry",
"tool": "buyer",
"status": "failed",
"error_code": "timeout",
"fingerprint": "abc",
"cost_usd": 1,
"side_effect_possible": true,
"state_from": "completed",
"state_to": "working"
}
]
}Worked sample output
{
"ok": true,
"mode": "run_forensics_pack",
"incident": {
"event_count": 2,
"failure_count": 1,
"total_cost_usd": 2,
"first_failure_event_id": "2",
"duplicate_side_effect_count": 1,
"invalid_transition_count": 1
},
"duplicate_side_effects": [
{
"fingerprint": "abc",
"first_event_id": "1",
"repeated_event_id": "2"
}
],
"invalid_state_transitions": [
{
"event_id": "2",
"from": "completed",
"to": "working",
"reason": "transition_not_allowed"
}
],
"tool_summary": {
"buyer": {
"events": 2,
"failures": 1,
"cost_usd": 2
}
},
"recovery_priority": [
{
"priority": 1,
"action": "stop_duplicate_side_effect_retries"
},
{
"priority": 2,
"action": "repair_invalid_task_state"
},
{
"priority": 3,
"action": "resume_from_last_known_good_checkpoint"
}
],
"incident_sha256": "a04f9a9169e71a35216a0d169ff1959fb6d1b0869f25fce809ff1b939f3e5a64",
"limitations": [
"Forensics are deterministic over caller-supplied events.",
"The pack identifies structural failure signals; it does not establish legal fault or independently verify remote logs."
]
}Worked example using published sample data only. Own-data execution is paid.
Connect in curl
Set BOUNTY_API_KEY privately after your payment is verified. Change the retry key for each new logical request.
curl 'https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/agent-run-forensics' \
-H "Authorization: Bearer $BOUNTY_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: workflow-request-001' \
-H 'X-Max-Credits: 2990' \
--data '{"events":[{"id":"1","ts":"2026-10-01T10:00:00Z","type":"tool","tool":"buyer","status":"ok","fingerprint":"abc","cost_usd":1,"side_effect_possible":true,"state_from":"working","state_to":"completed"},{"id":"2","ts":"2026-10-01T10:01:00Z","type":"retry","tool":"buyer","status":"failed","error_code":"timeout","fingerprint":"abc","cost_usd":1,"side_effect_possible":true,"state_from":"completed","state_to":"working"}]}'Connect in n8n
Download the inactive n8n template. Import it, configure the private Header Auth credential, inspect the sample and run it manually. A new execution creates a new billable request; there is no automatic schedule.
Use an HTTP POST to https://bounty-engineer-x402-prod.onrender.com/v1/prepaid/agent-run-forensics. Send JSON and these headers; store the Bearer token as a private credential.
{
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR_PRIVATE_API_KEY",
"Content-Type": "application/json",
"Idempotency-Key": "UNIQUE_PER_LOGICAL_REQUEST",
"X-Max-Credits": "2990"
},
"body": {
"events": [
{
"id": "1",
"ts": "2026-10-01T10:00:00Z",
"type": "tool",
"tool": "buyer",
"status": "ok",
"fingerprint": "abc",
"cost_usd": 1,
"side_effect_possible": true,
"state_from": "working",
"state_to": "completed"
},
{
"id": "2",
"ts": "2026-10-01T10:01:00Z",
"type": "retry",
"tool": "buyer",
"status": "failed",
"error_code": "timeout",
"fingerprint": "abc",
"cost_usd": 1,
"side_effect_possible": true,
"state_from": "completed",
"state_to": "working"
}
]
}
}Reuse a retry key only for the same input. Failed execution returns reserved credits. Full integration and recovery guide · Machine-readable recipe