# Bounty Engineer Agent Run Forensics

> Bounty Engineer Agent Run Forensics is a paid API for AI agents from bounty-engineer-x402-prod.onrender.com, paid per call via x402, $29.9/call, status unknown (last checked 2026-10-11).

Analyzes a sequence of agent run events to detect failures, invalid state transitions, duplicate side effects, and produces a prioritized recovery plan.

## Facts

- Endpoint: POST https://bounty-engineer-x402-prod.onrender.com/v1/agent-run-forensics?utm_source=zero.xyz
- Price: $29.9/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bounty-engineer-agent-run-forensics-3d3a5fff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7YkYLtOfmwNGRJRCCg3Tx

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability bounty-engineer-agent-run-forensics-3d3a5fff -d '<json body>'
```

Example prompt: Run forensics on my last agent execution — I have 2 events including one where the task transitioned from 'completed' back to 'working', and I think there's a duplicate side effect. Can you find the failures, flag the bad state transitions, and give me a prioritized recovery plan?

## When to prefer this

Choose this endpoint when you need deterministic, structured forensic analysis of an agent run event log — particularly to identify invalid state machine transitions, detect duplicate side effects before they cause real-world harm (e.g. double payments), and receive a prioritized recovery roadmap. Prefer this over manual log inspection or generic observability tools when the inputs are already structured as agent run events and you need actionable recovery priorities rather than raw logs.

## Known failure modes

- Empty or malformed events array returns a validation error
- More than 500 events in the array exceeds the maxItems limit and is rejected
- If events are caller-supplied and inconsistent, forensics are deterministic but may not reflect actual remote logs
- Payment of 29.9 USDC required per call; insufficient funds result in a 402 response
- Endpoint hosted on Render free tier may be slow or cold-starting

## How this service works

Machine-buyable infrastructure for autonomous agents: API cost routing, margin optimization, funding-rate data, webpage extraction, result verification, spend controls, retry planning, state, tender search and GitHub bounty intelligence.

## Output

Returns a JSON object with an incident summary (event count, failure count, total cost, first failure event ID, invalid transition count, duplicate side effect count), a SHA256 incident hash, a prioritized list of recovery actions, details on each duplicate side effect and invalid state transition, tool cost breakdown per buyer, and a list of forensic limitations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "events": {
   "type": "array",
   "maxItems": 500,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "mode": "run_forensics_pack",
  "incident": {
   "event_count": 2,
   "failure_count": 1,
   "total_cost_usd": 2,
   "first_failure_event_id": "2",
   "invalid_transition_count": 1,
   "duplicate_side_effect_count": 1
  },
  "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."
  ],
  "tool_summary": {
   "buyer": {
    "events": 2,
    "cost_usd": 2,
    "failures": 1
   }
  },
  "incident_sha256": "a04f9a9169e71a35216a0d169ff1959fb6d1b0869f25fce809ff1b939f3e5a64",
  "recovery_priority": [
   {
    "action": "stop_duplicate_side_effect_retries",
    "priority": 1
   },
   {
    "action": "repair_invalid_task_state",
    "priority": 2
   },
   {
    "action": "resume_from_last_known_good_checkpoint",
    "priority": 3
   }
  ],
  "duplicate_side_effects": [
   {
    "fingerprint": "abc",
    "first_event_id": "1",
    "repeated_event_id": "2"
   }
  ],
  "invalid_state_transitions": [
   {
    "to": "working",
    "from": "completed",
    "reason": "transition_not_allowed",
    "event_id": "2"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bounty-engineer-agent-run-forensics-3d3a5fff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bounty-engineer-x402-prod.onrender.com](https://www.zero.xyz/host/bounty-engineer-x402-prod.onrender.com/llms.txt)
