{"service":"Agent Error Fix Receipt","version":"2026-05-25-d1-revenue-log","mode":"mainnet","price":"$0.01","payment":"x402","network":"eip155:8453","testnet":false,"real_revenue":true,"notice":"Mainnet staging is configured. Real USDC payments are enabled only after a paid request settles successfully.","paid_endpoint":"/fix-error","hyperxosist_paid_endpoint":"/hyperxosist-query","human_buy_endpoint":"/buy","post_payment_retry":"Retry POST /fix-error with the x402 payment proof supplied by the client wallet/facilitator.","input_schema":{"command":"string optional","error":"string optional","log":"string optional","environment":"string optional"},"output_schema":{"status":"paid","receipt":{"root_cause":"string","next_command":"string","retry_plan":["string"],"risk_note":"string","prevention_note":"string","generated_at":"ISO-8601 string"}},"request_examples":{"missing_dependency":{"summary":"Build fails because a dependency cannot be resolved","value":{"command":"npm run build","error":"Error: Cannot find module 'hono'","environment":"Node.js Cloudflare Worker build"}},"invalid_deployment_credential":{"summary":"Deployment fails with an authorization error","value":{"command":"npm run deploy","error":"401 Unauthorized: API token invalid","environment":"CI deployment"}},"unavailable_local_service":{"summary":"A local health check cannot reach the service","value":{"command":"curl http://127.0.0.1:3000/health","error":"Connection refused","environment":"Linux service"}}},"response_examples":{"successful_diagnosis":{"value":{"status":"paid","service":"Agent Error Fix Receipt","version":"2026-05-25-d1-revenue-log","mode":"mainnet","network":"eip155:8453","real_revenue":true,"input_received":true,"request_id":"example-request-id","revenue_proof_log":"paid_fix_error_receipt_issued","durable_revenue_log":true,"post_payment_retry_path":"Retry POST /fix-error with x402 payment proof.","receipt":{"root_cause":"The failure appears related to a missing package, missing file, or unresolved module path.","next_command":"npm install","retry_plan":["Confirm the exact failing command.","Run the smallest non-destructive diagnostic command relevant to the error.","Check whether required environment variables, packages, files, or services are present.","Retry the original command once after the minimal fix."],"risk_note":"Do not run destructive cleanup, reset, rm, database, credential, or firewall commands without manual review.","prevention_note":"Store this error pattern in a runbook and add a preflight check before future runs.","generated_at":"2026-06-14T00:00:00.000Z"}}}},"expected_output_schema":{"type":"object","additionalProperties":false,"required":["status","service","version","mode","network","real_revenue","input_received","request_id","revenue_proof_log","durable_revenue_log","post_payment_retry_path","receipt"],"properties":{"status":{"type":"string","enum":["paid"]},"service":{"type":"string"},"version":{"type":"string"},"mode":{"type":"string"},"network":{"type":"string"},"real_revenue":{"type":"boolean","description":"Server mainnet configuration flag; not independent evidence of customer revenue."},"input_received":{"type":"boolean"},"request_id":{"type":"string"},"revenue_proof_log":{"type":"string"},"durable_revenue_log":{"type":"boolean"},"post_payment_retry_path":{"type":"string"},"receipt":{"type":"object","additionalProperties":false,"required":["root_cause","next_command","retry_plan","risk_note","prevention_note","generated_at"],"properties":{"root_cause":{"type":"string","description":"Concise diagnosis based on the submitted evidence."},"next_command":{"type":"string","description":"One concrete command or action to try next."},"retry_plan":{"type":"array","items":{"type":"string"},"description":"Ordered recovery steps, including when to submit a new error."},"risk_note":{"type":"string","description":"Operational or security caution for the proposed action."},"prevention_note":{"type":"string","description":"A preventive practice for future runs."},"generated_at":{"type":"string","format":"date-time","description":"Receipt generation timestamp."}}}}},"when_to_use":["A command, build, deployment, API call, or service check failed and the next action is unclear.","A retry produced a new error message or failed at a different stage.","The runtime, dependency version, environment, or deployment target changed.","A concise machine-readable diagnosis is needed before an automation continues."],"repeat_use_scenarios":["Submit the new error after applying the previous receipt's next command.","Submit the same workflow failure after changing dependencies, runtime, or environment.","Submit each distinct failure stage in a build or deployment as a separate diagnosis.","Use a new request when fresh logs contain evidence not present in the previous request.","Do not repeat an unchanged request unless the execution context changed."],"what_you_receive_after_payment":{"result":"One JSON repair receipt for the submitted failure.","includes":["root_cause","next_command","retry_plan","risk_note","prevention_note","generated_at"],"delivery":"The paid retry returns HTTP 200. Read diagnostic fields from response.receipt, for example response.receipt.root_cause.","continuation":"Apply the guidance, then submit only a new or materially changed error as another /fix-error request."}}