JSON Patch Audit
Judge an RFC 6902 patch against the document it will be applied to. The patch is applied to a copy as a sequence, so each operation is judged against the state it will actually see rather than against the original: a later operation targeting a path an earlier one removed is the defect class this exists for. Reports a missing target, which makes the whole patch fail; a remove, which has no inverse; a replace that changes type; a move into itself; and a path the caller marked protected.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.15 USDC on Base to 0x25e8…a9608. The signed payment is good for 1 minute.
- Paid to
- 0x25e8…a9608
- USD Coin contract
- 0x8335…02913
- Payment window
- 1 minute
- As published
- 150000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
"amount": "150000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 60
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"patch": "[{\"op\":\"remove\",\"path\":\"/limits\"},{\"op\":\"replace\",\"path\":\"/replicas\",\"value\":\"three\"},{\"op\":\"replace\",\"path\":\"/limits/cpu\",\"value\":\"500m\"},{\"op\":\"add\",\"path\":\"/hosts/-\",\"value\":\"c.test\"},{\"op\":\"move\",\"from\":\"/hosts\",\"path\":\"/hosts/0\"},{\"op\":\"remove\",\"path\":\"/name\"}]",
"document": "{\"name\":\"service\",\"replicas\":3,\"limits\":{\"cpu\":\"200m\",\"memory\":\"256Mi\"},\"hosts\":[\"a.test\",\"b.test\"]}",
"protected_paths": [
"/name"
]
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"limits": {
"maxFindings": 500,
"maxJsonBytes": 1048576,
"maxResources": 5000,
"maxTextBytes": 262144,
"maxEnvEntries": 2000,
"maxPatchOperations": 1000
},
"passed": false,
"complete": false,
"findings": [
{
"code": "VALUE_REMOVED",
"path": "/limits",
"detail": "patch[0] removes /limits, which holds 2 member(s). A patch has no inverse, so this is not undone by re-applying.",
"operation": "patch[0]"
},
{
"code": "REPLACE_CHANGES_TYPE",
"path": "/replicas",
"detail": "patch[1] replaces /replicas, which is number, with string. Anything reading that path with a type expectation breaks.",
"operation": "patch[1]"
},
{
"code": "TARGET_DOES_NOT_EXIST",
"path": "/limits/cpu",
"detail": "patch[2] replaces /limits/cpu and nothing is there at this point in the sequence, so applying the patch fails.",
"operation": "patch[2]"
}
],
"operations": [
{
"op": "remove",
"path": "/limits",
"operation": "patch[0]",
"target_existed": true
},
{
"op": "replace",
"path": "/replicas",
"operation": "patch[1]",
"target_existed": true
},
{
"op": "replace",
"path": "/limits/cpu",
"operation": "patch[2]",
"target_existed": false
}
],
"request_id": "example-request",
"service_id": "json_patch_safety_audit",
"assumptions": [
"The patch is applied to a copy as a sequence, so each operation is judged against the state it will actually see. Checking each one against the original document would miss the whole class of defect w...",
"RFC 6902 requires the target of remove, replace, move and copy to exist, so a missing target is reported as the patch failing rather than as doing nothing.",
"A fingerprint of the resulting document is returned so a caller can confirm the result matches what they expect without the result being echoed back."
],
"limitations": [
"The patch and the document supplied. Whether the resulting document is correct for its consumer is outside this.",
"safe_to_apply is true only when every operation applies and none of them removes or retypes existing data."
],
"observed_at": "2026-10-02T00:00:00.000Z",
"not_examined": [
"NO_TEST_OPERATION: The patch contains no test operation, so it will apply to a document in any state. A test is how a patch refuses to apply to a document it was not written against."
],
"finding_count": 6,
"safe_to_apply": false,
"operation_count": 6,
"service_version": "1.0.0",
"findings_by_code": {
"VALUE_REMOVED": 2,
"MOVE_INTO_ITSELF": 1,
"REPLACE_CHANGES_TYPE": 1,
"TARGET_DOES_NOT_EXIST": 1,
"PROTECTED_PATH_MODIFIED": 1
},
"result_fingerprint": {
"sha256": "86e5785b5a4b56dbd848528a323325b44ddf5611b267a762e971e7a84d3c1f8f"
},
"declares_test_operation": false,
"destructive_operation_count": 3
}
}
},
"schema": {
"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": [
"document",
"patch"
],
"properties": {
"patch": {
"type": "string",
"maxLength": 1048576
},
"document": {
"type": "string",
"maxLength": 1048576
},
"protected_paths": {
"type": "array",
"items": {
"type": "string",
"maxLength": 512
},
"maxItems": 200,
"minItems": 1
}
},
"additionalProperties": false
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-10-04 08:30Z
- Last indexed by Roundhouse
- 2026-10-05 00:20Z
- Last enriched (probe, favicon, geo)
- 2026-10-05 00:45Z
- x402 version
- 2
- Max timeout
- 60s
- Liveness probe
- HTTP 0
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service JSON Patch Audit and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=JSON%20Patch%20Audit' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.zfinia.com/x402/v1/json-patch-safety-audit, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.