mirrored listing x402 eip155:8453

Given a source bundle, entry file, command, and failure predicate (exit code and/or stdout

Given a source bundle, entry file, command, and failure predicate (exit code and/or stdout/stderr patterns), runs a deterministic delta-debugging reducer in a network-isolated sandbox and returns the reduced bundle and entry that still reproduce the failure, plus a replay script and run log. Scoped to a local minimum under the passes listed, never a proof of global minimality.

Do you run reduce.api.williamrobinson.dev? This listing was mirrored from Coinbase's public Bazaar. Claim it in 30 seconds — no account required — and it becomes verified, permanently overriding the mirrored copy.

Claim this listing
500000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-11
updated

Provider

reduce.api.williamrobinson.dev · discovered, not yet claimed by its owner

Payment (x402 accepts[])

[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x26026370fe8b2bb17af9092a17691c76519366da",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "500000",
    "maxTimeoutSeconds": 300
  }
]

Output schema

{
  "bazaar": {
    "info": {
      "input": {
        "body": {
          "bundle": "UEsDBBQAAAAAAAAAIVwQVBcsKwQAACsEAAAHAAAAbWFpbi5weWltcG9ydCBqc29uCgpmcm9tIGhlbHBlciBpbXBvcnQgbm9ybWFsaXplLCB3ZWlnaHRlZF9hdmVyYWdlCgoKZGVmIGxvYWRfZGF0YShwYXRoPSJkYXRhLmpzb24iKToKICAgIHdpdGggb3BlbihwYXRoKSBhcyBoYW5kbGU6CiAgICAgICAgcmV0dXJuIGpzb24ubG9hZChoYW5kbGUpCgoKZGVmIGJ1aWxkX3JlcG9ydChkYXRhKToKICAgIHZhbHVlcyA9IGRhdGEuZ2V0KCJ2YWx1ZXMiLCBbXSkKICAgIHdlaWdodHMgPSBkYXRhLmdldCgid2VpZ2h0cyIsIFtdKQogICAgbm9ybWFsaXplZCA9IFtub3JtYWxpemUodmFsdWUpIGZvciB2YWx1ZSBpbiB2YWx1ZXNdCiAgICBhdmVyYWdlID0gd2VpZ2h0ZWRfYXZlcmFnZShub3JtYWxpemVkLCB3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AAACkgQAAAABtYWluLnB5UEsBAhQDFAAAAAAAAAAhXP2qbLTqAAAA6gAAAAkAAAAAAAAAAAAAAKSBUAQAAGhlbHBlci5weVBLAQIUAxQAAAAAAAAAIVxYWsf9UAAAAFAAAAAJAAAAAAAAAAAAAACkgWEFAABkYXRhLmpzb25QSwECFAMUAAAAAAAAACFca/EuTqkBAACpAQAACQAAAAAAAAAAAAAApIHYBQAAUkVBRE1FLm1kUEsFBgAAAAAEAAQA2gAAAKgHAAAAAA==",
          "command": [
            "python3",
            "main.py"
          ],
          "entry": "main.py",
          "language": "python",
          "maxRuns": 400,
          "predicate": {
            "exitCode": 1,
            "stderrPattern": "ZeroDivisionError"
          },
          "pruneFiles": true,
          "timeoutMs": 2000
        },
        "bodyType": "json",
        "method": "POST",
        "type": "http"
      },
      "output": {
        "example": {
          "artifacts": [
            {
              "href": "https://reduce.api.williamrobinson.dev/v1/reduce/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef/reduced.zip",
              "mediaType": "application/zip",
              "name": "reduced.zip",
              "sha256": "aa10eb1d670feaba930017330f4dc2460f84943e708024169f6407a8ed02b2c3",
              "sizeBytes": 781
            },
            {
              "href": "https://reduce.api.williamrobinson.dev/v1/reduce/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef/entry.txt",
              "mediaType": "text/plain; charset=utf-8",
              "name": "entry.txt",
              "sha256": "0d48387beee96a0f9d104d8b43a968f5f072e20c12f58f29b4089a4c9a65a20c",
              "sizeBytes": 573
            },
            {
              "href": "https://reduce.api.williamrobinson.dev/v1/reduce/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef/replay.sh",
              "mediaType": "text/x-shellscript; charset=utf-8",
              "name": "replay.sh",
              "sha256": "d03d747cb6abef5e32753f9ae3e557d528964975966f47cc2997f47be492db39",
              "sizeBytes": 551
            },
            {
              "href": "https://reduce.api.williamrobinson.dev/v1/reduce/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef/runs.jsonl",
              "mediaType": "application/x-ndjson",
              "name": "runs.jsonl",
              "sha256": "31c14148efc3a0afadb4af5b11d98388299cecad1eefd8d04bee92cf85f36221",
              "sizeBytes": 41221
            },
            {
              "href": "https://reduce.api.williamrobinson.dev/v1/reduce/artifacts/0123456789abcdef0123456789abcdef0123456789abcdef/report.json",
              "mediaType": "application/json",
              "name": "report.json",
              "sha256": "9696740bcb531213c19c3cae0bf48014aae88e5b56e7ee2d6b76d47a47b82901",
              "sizeBytes": 2651
            }
          ],
          "checks": [
            {
              "code": "bundle_valid",
              "detail": "The bundle passed the zip guard and entry checks.",
              "status": "passed"
            },
            {
              "code": "command_allowed",
              "detail": "The command's interpreter is on the runner's allowlist.",
              "status": "passed"
            },
            {
              "code": "reproduces_twice",
              "detail": "The original bundle reproduced the failure on both baseline runs.",
              "status": "passed"
            },
            {
              "code": "reduced_reproduces_twice",
              "detail": "The reduced bundle reproduced the failure on both verification runs.",
              "status": "passed"
            },
            {
              "code": "reduction_achieved",
              "detail": "Removed 46.3% of the entry's bytes.",
              "status": "passed"
            },
            {
              "code": "within_budget",
              "detail": "The reducer converged within the run and time budget.",
              "status": "passed"
            }
          ],
          "command": [
            "python3",
            "main.py"
          ],
          "entry": "main.py",
          "expiresAt": "2026-09-12T05:11:08.482Z",
          "limitations": [
            "Reduction is heuristic delta-debugging, not a proof of minimality: the result is a local minimum under the fixed pass order listed in `passes`, never the provably smallest reproduction.",
            "Structure-aware chunk removal understands JSON, Python (indentation blocks), and JavaScript/TypeScript/C-like (statement splitting) syntax only; other languages get line- and token-level passes only.",
            "Identifier and semantic renaming are never attempted.",
            "The buyer's command runs once per candidate in a network-isolated, single-flight container; races, multi-process interactions, and environment-dependent flakiness beyond the two-run reproduction check cannot be captured.",
            "Compiled languages (C/C++/Rust build pipelines), multi-command builds, and parallel candidate execution are out of scope."
          ],
          "original": {
            "bytes": 1806,
            "entryBytes": 1067,
            "entryLines": 39,
            "files": 4,
            "run": {
              "durationMs": 44,
              "exitCode": 1,
              "failing": true,
              "signal": null,
              "stderrBytes": 395,
              "stdoutBytes": 0,
              "timedOut": false
            }
          },
          "passes": [
            {
              "name": "strip-comments",
              "removedBytes": 295,
              "removedFiles": 0,
              "runs": 1
            },
            {
              "name": "file-pruning",
              "removedBytes": 425,
              "removedFiles": 1,
              "runs": 3
            },
            {
              "name": "chunk-removal",
              "removedBytes": 48,
              "removedFiles": 0,
              "runs": 60
            },
            {
              "name": "line-ddmin",
              "removedBytes": 0,
              "removedFiles": 0,
              "runs": 76
            },
            {
              "name": "token-trimming",
              "removedBytes": 151,
              "removedFiles": 0,
              "runs": 255
            },
            {
              "name": "cleanup",
              "removedBytes": 0,
              "removedFiles": 0,
              "runs": 0
            }
          ],
          "predicate": {
            "exitCode": 1,
            "stderrPattern": "ZeroDivisionError"
          },
          "prunedFiles": [
            "README.md"
          ],
          "reduced": {
            "bytes": 887,
            "entryBytes": 573,
            "entryLines": 19,
            "files": 3,
            "run": {
              "durationMs": 44,
              "exitCode": 1,
              "failing": true,
              "signal": null,
              "stderrBytes": 417,
              "stdoutBytes": 0,
              "timedOut": false
            }
          },
          "reductionRatio": 0.4629803186504217,
          "runs": {
            "budgetExhausted": false,
            "failing": 35,
            "passing": 364,
            "timedOut": 0,
            "total": 399
          },
          "status": "passed",
          "tools": {
            "reducer": "reduce/1.0",
            "runner": "628ms"
          },
          "truncated": false,
          "warnings": []
        },
        "type": "json"
      }
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "input": {
          "additionalProperties": false,
          "properties": {
            "body": {
              "$defs": {
                "predicate": {
                  "additionalProperties": false,
                  "anyOf": [
                    {
                      "properties": {
                        "exitCode": true
                      },
                      "required": [
                        "exitCode"
                      ]
                    },
                    {
                      "properties": {
                        "stdoutPattern": true
                      },
                      "required": [
                        "stdoutPattern"
                      ]
                    },
                    {
                      "properties": {
                        "stderrPattern": true
                      },
                      "required": [
                        "stderrPattern"
                      ]
                    },
                    {
                      "properties": {
                        "timeoutIsFailure": true
                      },
                      "required": [
                        "timeoutIsFailure"
                      ]
                    }
                  ],
                  "properties": {
                    "exitCode": {
                      "description": "Exact exit code, or \"nonzero\" to match any non-zero code including signals and timeouts.",
                      "oneOf": [
                        {
                          "maximum": 255,
                          "minimum": 0,
                          "type": "integer"
                        },
                        {
                          "const": "nonzero"
                        }
                      ]
                    },
                    "stderrPattern": {
                      "description": "ECMAScript regular expression (compiled with the \"u\" flag) tested against the captured, capped stderr.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": "string"
                    },
                    "stdoutPattern": {
                      "description": "ECMAScript regular expression (compiled with the \"u\" flag) tested against the captured, capped stdout.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": "string"
                    },
                    "timeoutIsFailure": {
                      "description": "Treat a run that exceeds timeoutMs as satisfying the predicate.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                }
              },
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "additionalProperties": false,
              "properties": {
                "bundle": {
                  "contentEncoding": "base64",
                  "description": "Base64 .zip of the bundle: source files and inputs (<= 2097152 bytes decoded), no symlinks, no absolute paths, no \"..\" entries.",
                  "maxLength": 2796204,
                  "type": "string"
                },
                "command": {
                  "description": "Command run from the bundle root; argv[0] must be one of node, python3, sh.",
                  "items": {
                    "maxLength": 512,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 16,
                  "minItems": 1,
                  "type": "array"
                },
                "entry": {
                  "description": "Relative forward-slash path inside the bundle of the file to reduce textually (<= 524288 bytes, UTF-8 text).",
                  "maxLength": 1024,
                  "minLength": 1,
                  "type": "string"
                },
                "language": {
                  "default": "auto",
                  "description": "Language hint for structure-aware passes; \"auto\" sniffs from the entry's extension.",
                  "enum": [
                    "auto",
                    "text",
                    "json",
                    "javascript",
                    "typescript",
                    "python",
                    "c-like"
                  ],
                  "type": "string"
                },
                "maxRuns": {
                  "default": 400,
                  "description": "Upper bound on candidate executions.",
                  "maximum": 600,
                  "minimum": 1,
                  "type": "integer"
                },
                "predicate": {
                  "$ref": "#/properties/input/properties/body/$defs/predicate"
                },
                "pruneFiles": {
                  "default": true,
                  "description": "Whether files other than the entry may be deleted when the failure survives without them.",
                  "type": "boolean"
                },
                "timeoutMs": {
                  "description": "Per-run wall-clock limit in milliseconds.",
                  "maximum": 5000,
                  "minimum": 100,
                  "type": "integer"
                }
              },
              "required": [
                "bundle",
                "entry",
                "command",
                "predicate",
                "timeoutMs"
              ],
              "type": "object"
            },
            "bodyType": {
              "enum": [
                "json",
                "form-data",
                "text"
              ],
              "type": "string"
            },
            "method": {
              "enum": [
                "POST"
              ],
              "type": "string"
            },
            "type": {
              "const": "http",
              "type": "string"
            }
          },
          "required": [
            "type",
            "method",
            "bodyType",
            "body"
          ],
          "type": "object"
        },
        "output": {
          "properties": {
            "example": {
              "$defs": {
                "artifact": {
                  "additionalProperties": false,
                  "properties": {
                    "href": {
                      "format": "uri",
                      "type": "string"
                    },
                    "mediaType": {
                      "type": "string"
                    },
                    "name": {
                      "enum": [
                        "reduced.zip",
                        "entry.txt",
                        "replay.sh",
                        "runs.jsonl",
                        "report.json"
                      ],
                      "type": "string"
                    },
                    "sha256": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "sizeBytes": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "name",
                    "mediaType",
                    "sizeBytes",
                    "sha256",
                    "href"
                  ],
                  "type": "object"
                },
                "check": {
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "passed",
                        "failed",
                        "not_checked"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "code",
                    "status",
                    "detail"
                  ],
                  "type": "object"
                },
                "predicate": {
                  "additionalProperties": false,
                  "anyOf": [
                    {
                      "properties": {
                        "exitCode": true
                      },
                      "required": [
                        "exitCode"
                      ]
                    },
                    {
                      "properties": {
                        "stdoutPattern": true
                      },
                      "required": [
                        "stdoutPattern"
                      ]
                    },
                    {
                      "properties": {
                        "stderrPattern": true
                      },
                      "required": [
                        "stderrPattern"
                      ]
                    },
                    {
                      "properties": {
                        "timeoutIsFailure": true
                      },
                      "required": [
                        "timeoutIsFailure"
                      ]
                    }
                  ],
                  "properties": {
                    "exitCode": {
                      "description": "Exact exit code, or \"nonzero\" to match any non-zero code including signals and timeouts.",
                      "oneOf": [
                        {
                          "maximum": 255,
                          "minimum": 0,
                          "type": "integer"
                        },
                        {
                          "const": "nonzero"
                        }
                      ]
                    },
                    "stderrPattern": {
                      "description": "ECMAScript regular expression (compiled with the \"u\" flag) tested against the captured, capped stderr.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": "string"
                    },
                    "stdoutPattern": {
                      "description": "ECMAScript regular expression (compiled with the \"u\" flag) tested against the captured, capped stdout.",
                      "maxLength": 256,
                      "minLength": 1,
                      "type": "string"
                    },
                    "timeoutIsFailure": {
                      "description": "Treat a run that exceeds timeoutMs as satisfying the predicate.",
                      "type": "boolean"
                    }
                  },
                  "type": "object"
                },
                "runOutcome": {
                  "additionalProperties": false,
                  "properties": {
                    "durationMs": {
                      "minimum": 0,
                      "type": "number"
                    },
                    "exitCode": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "failing": {
                      "type": "boolean"
                    },
                    "signal": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "stderrBytes": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "stdoutBytes": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "timedOut": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "exitCode",
                    "signal",
                    "timedOut",
                    "durationMs",
                    "stdoutBytes",
                    "stderrBytes",
                    "failing"
                  ],
                  "type": "object"
                },
                "runSummary": {
                  "additionalProperties": false,
                  "properties": {
                    "bytes": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "entryBytes": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "entryLines": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "files": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "run": {
                      "$ref": "#/properties/output/properties/example/$defs/runOutcome"
                    }
                  },
                  "required": [
                    "files",
                    "bytes",
                    "entryBytes",
                    "entryLines",
                    "run"
                  ],
                  "type": "object"
                }
              },
              "$schema": "https://json-schema.org/draft/2020-12/schema",
              "additionalProperties": false,
              "properties": {
                "artifacts": {
                  "items": {
                    "$ref": "#/properties/output/properties/example/$defs/artifact"
                  },
                  "maxItems": 5,
                  "type": "array"
                },
                "checks": {
                  "items": {
                    "$ref": "#/properties/output/properties/example/$defs/check"
                  },
                  "type": "array"
                },
                "command": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "entry": {
                  "type": "string"
                },
                "expiresAt": {
                  "format": "date-time",
                  "type": "string"
                },
                "limitations": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "original": {
                  "$ref": "#/properties/output/properties/example/$defs/runSummary"
                },
                "passes": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "removedBytes": {
                        "type": "integer"
                      },
                      "removedFiles": {
                        "minimum": 0,
                        "type": "integer"
                      },
                      "runs": {
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "name",
                      "runs",
                      "removedBytes",
                      "removedFiles"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "predicate": {
                  "$ref": "#/properties/output/properties/example/$defs/predicate"
                },
                "prunedFiles": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "reduced": {
                  "$ref": "#/properties/output/properties/example/$defs/runSummary"
                },
                "reductionRatio": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                },
                "runs": {
                  "additionalProperties": false,
                  "properties": {
                    "budgetExhausted": {
                      "type": "boolean"
                    },
                    "failing": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "passing": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "timedOut": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "total": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "total",
                    "failing",
                    "passing",
                    "timedOut",
                    "budgetExhausted"
                  ],
                  "type": "object"
                },
                "status": {
                  "enum": [
                    "passed",
                    "failed"
                  ],
                  "type": "string"
                },
                "tools": {
                  "additionalProperties": false,
                  "properties": {
                    "reducer": {
                      "type": "string"
                    },
                    "runner": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "reducer",
                    "runner"
                  ],
                  "type": "object"
                },
                "truncated": {
                  "type": "boolean"
                },
                "warnings": {
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 100,
                  "type": "array"
                }
              },
              "required": [
                "status",
                "tools",
                "entry",
                "command",
                "predicate",
                "original",
                "reduced",
                "reductionRatio",
                "passes",
                "runs",
                "prunedFiles",
                "checks",
                "warnings",
                "limitations",
                "truncated",
                "expiresAt",
                "artifacts"
              ],
              "type": "object"
            },
            "type": {
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  },
  "builder-code": {
    "info": {
      "s": [
        "cdp_sdk_server"
      ]
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "a": {
          "description": "App builder code",
          "pattern": "^[a-z0-9_]{1,32}$",
          "type": "string"
        },
        "s": {
          "description": "Service builder codes",
          "items": {
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "maxItems": 11,
          "type": "array"
        },
        "w": {
          "description": "Wallet builder code",
          "pattern": "^[a-z0-9_]{1,32}$",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "eip2612GasSponsoring": {},
  "erc20ApprovalGasSponsoring": {},
  "payment-identifier": {
    "info": {
      "required": true
    },
    "schema": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "properties": {
        "id": {
          "maxLength": 128,
          "minLength": 16,
          "pattern": "^[a-zA-Z0-9_-]+$",
          "type": "string"
        },
        "required": {
          "type": "boolean"
        }
      },
      "required": [
        "required"
      ],
      "type": "object"
    }
  }
}

Use it

curl

curl "https://reduce.api.williamrobinson.dev/v1/reduce/minimize"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid

JavaScript

const res = await fetch("https://reduce.api.williamrobinson.dev/v1/reduce/minimize");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}

Python

import httpx
res = httpx.get("https://reduce.api.williamrobinson.dev/v1/reduce/minimize")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Machine-readable

Everything on this page is also available as clean JSON at /resources/8203.json, and this resource appears in /discovery/resources and /discovery/search.