{"uid":"cap_l0JawGb0DONvcPRPUhqfu","slug":"uos-genesis-repair-validate-attest-6b1003e3","name":"UOS Genesis repair_validate_attest","description":"UOS Genesis machine utility: repair_validate_attest","url":"https://genesis.palsus2023.workers.dev/v1/repair_validate_attest","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["input"],"properties":{"input":{"description":"Malformed JSON produced by an LLM, API, autonomous agent, or automation workflow. Genesis repairs it, canonicalizes it, validates it, generates a SHA-256 fingerprint, and returns a signed machine-verifiable integrity attestation."}},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}},"additionalProperties":true},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jd6Lt8wV7TUStACDndsPm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Repairs malformed or machine-generated JSON, then canonicalizes, validates, fingerprints, and produces a cryptographic attestation receipt for it.","exampleAgentPrompt":"This JSON came out of my LLM pipeline and is probably malformed — can you repair it, canonicalize it, and give me a cryptographic attestation receipt confirming it's valid? Here it is: {\"name\":\"Alice\",\"age\":30,}","exampleUseCases":[{"title":"Attesting LLM-generated config files","prompt":"My model just generated this config JSON but it has trailing commas and inconsistent quoting — repair it and give me a signed attestation I can pass to the deployment pipeline to prove it's valid and canonical."},{"title":"Audit trail for data pipeline outputs","prompt":"I need to validate this machine-generated JSON record, canonicalize it so the field order is deterministic, fingerprint it, and get an attestation receipt I can store as proof it passed validation at this stage."},{"title":"Verifying third-party JSON payloads","prompt":"I received this JSON payload from an external vendor and I'm not sure it's well-formed — can you repair and canonicalize it, then produce a cryptographic attestation so I have a verifiable record that it was checked?"}],"resultDescription":"Returns a repaired and canonicalized version of the input JSON, a cryptographic fingerprint (likely SHA-256), and an attestation receipt confirming the document was validated. The receipt can be used as a trust signal or audit artifact in downstream automated workflows.","failureModes":["Input is so severely malformed that repair is impossible — returns error indicating unrecoverable JSON","Empty or missing 'input' field — returns validation error","Input is not a string — schema validation failure","Network timeout on Cloudflare Worker edge node","Payment not accepted or insufficient USDC balance via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need not just JSON repair but a combined pipeline step that also canonicalizes, fingerprints, and cryptographically attests the result — useful for audit trails, pipeline trust, or downstream systems that require verifiable proof of validation. If you only need simple JSON repair without attestation, prefer the sibling repair_json endpoint. If you only need a standalone attestation receipt, use attestation_receipt instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:35:48.287Z","isFirstParty":false}