{"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":{"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":{"root_cause":"The build cannot resolve the hono package from the current project dependencies.","next_command":"npm install hono","retry_plan":["Install the missing dependency.","Run npm run build again.","If the error remains, verify package.json and the active working directory.","Submit the new error output as a separate /fix-error request."],"risk_note":"Review package changes before deployment. Do not include tokens or secrets in error logs.","prevention_note":"Commit the lockfile and run dependency installation before the build step.","generated_at":"2026-06-14T00:00:00.000Z"}}},"expected_output_schema":{"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 with the receipt in the response body.","continuation":"Apply the guidance, then submit only a new or materially changed error as another /fix-error request."}}