{
  "x402Version": 2,
  "id": 39641,
  "slug": "39641",
  "resource": "https://api.blockchainmoneymap.com/api/devagentpal/recursive-commerce-loop-breaker",
  "description": "Detect recursive agent-commerce loops, repeated purchases, delegation depth breaches, fan-out amplification, and bounded projected spend before an autonomous purchase proceeds.",
  "type": "http",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2211E12e6Bc8Da27B48B9DD66A55f5C3388D713a",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": true,
        "properties": {
          "cycleDetected": {
            "type": "boolean"
          },
          "cyclePath": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "decision": {
            "enum": [
              "allow",
              "block",
              "review",
              "completed",
              "partial",
              "failed"
            ],
            "type": "string"
          },
          "evidence": {
            "type": "object"
          },
          "generatedAt": {
            "format": "date-time",
            "type": "string"
          },
          "inputFingerprint": {
            "type": "string"
          },
          "projectedSpend": {
            "type": "string"
          },
          "reasons": {
            "items": {
              "type": "object"
            },
            "type": "array"
          },
          "requestId": {
            "type": "string"
          },
          "riskScore": {
            "maximum": 100,
            "minimum": 0,
            "type": "number"
          },
          "service": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "triggeredPolicies": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "requestId",
          "service",
          "version",
          "decision",
          "riskScore",
          "summary",
          "reasons",
          "evidence",
          "inputFingerprint",
          "generatedAt"
        ],
        "type": "object"
      },
      "type": {
        "enum": [
          "json"
        ],
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "currentAgentId": "agent-a",
            "delegationPath": [
              {
                "agentId": "agent-a",
                "parentAgentId": null,
                "wallet": "0x3cb6ad0990015522e60e21780f2802e2E927c08A"
              }
            ],
            "policy": {
              "maxCycleLength": 8,
              "maxDelegationDepth": 8,
              "maxFanOut": 20,
              "maxProjectedSpend": "0.10",
              "maxProjectionIterations": 10,
              "maxRepeatedFingerprint": 2,
              "maxRepeatedResource": 3,
              "windowSeconds": 3600
            },
            "principalAgentId": "agent-a",
            "proposedPurchase": {
              "amount": "0.01",
              "buyerAgentId": "agent-a",
              "buyerWallet": "0x3cb6ad0990015522e60e21780f2802e2E927c08A",
              "currency": "USDC",
              "network": "base",
              "requestFingerprint": "req-abc",
              "resourceId": "wallet-snapshot",
              "sellerAgentId": "agent-b",
              "sellerWallet": "0x787fD1dc3b533171781e4Ae1A563c1AC7b4435E4",
              "timestamp": "2026-07-19T12:00:00.000Z"
            },
            "purchaseHistory": []
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "currentAgentId": {
                    "type": "string"
                  },
                  "delegationPath": {
                    "maxItems": 100,
                    "type": "array"
                  },
                  "policy": {
                    "type": "object"
                  },
                  "principalAgentId": {
                    "type": "string"
                  },
                  "proposedPurchase": {
                    "type": "object"
                  },
                  "purchaseHistory": {
                    "maxItems": 500,
                    "type": "array"
                  }
                },
                "required": [
                  "principalAgentId",
                  "currentAgentId",
                  "proposedPurchase",
                  "delegationPath",
                  "purchaseHistory",
                  "policy"
                ],
                "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": {
                "additionalProperties": true,
                "properties": {
                  "cycleDetected": {
                    "type": "boolean"
                  },
                  "cyclePath": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "decision": {
                    "enum": [
                      "allow",
                      "block",
                      "review",
                      "completed",
                      "partial",
                      "failed"
                    ],
                    "type": "string"
                  },
                  "evidence": {
                    "type": "object"
                  },
                  "generatedAt": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "inputFingerprint": {
                    "type": "string"
                  },
                  "projectedSpend": {
                    "type": "string"
                  },
                  "reasons": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "requestId": {
                    "type": "string"
                  },
                  "riskScore": {
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  "service": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "triggeredPolicies": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "requestId",
                  "service",
                  "version",
                  "decision",
                  "riskScore",
                  "summary",
                  "reasons",
                  "evidence",
                  "inputFingerprint",
                  "generatedAt"
                ],
                "type": "object"
              },
              "type": {
                "enum": [
                  "json"
                ],
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.blockchainmoneymap.com",
  "lastUpdated": "2026-10-05T19:02:06.141Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-05T19:02:05.921Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "currentAgentId": "agent-a",
              "delegationPath": [
                {
                  "agentId": "agent-a",
                  "parentAgentId": null,
                  "wallet": "0x3cb6ad0990015522e60e21780f2802e2E927c08A"
                }
              ],
              "policy": {
                "maxCycleLength": 8,
                "maxDelegationDepth": 8,
                "maxFanOut": 20,
                "maxProjectedSpend": "0.10",
                "maxProjectionIterations": 10,
                "maxRepeatedFingerprint": 2,
                "maxRepeatedResource": 3,
                "windowSeconds": 3600
              },
              "principalAgentId": "agent-a",
              "proposedPurchase": {
                "amount": "0.01",
                "buyerAgentId": "agent-a",
                "buyerWallet": "0x3cb6ad0990015522e60e21780f2802e2E927c08A",
                "currency": "USDC",
                "network": "base",
                "requestFingerprint": "req-abc",
                "resourceId": "wallet-snapshot",
                "sellerAgentId": "agent-b",
                "sellerWallet": "0x787fD1dc3b533171781e4Ae1A563c1AC7b4435E4",
                "timestamp": "2026-07-19T12:00:00.000Z"
              },
              "purchaseHistory": []
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "currentAgentId": {
                      "type": "string"
                    },
                    "delegationPath": {
                      "maxItems": 100,
                      "type": "array"
                    },
                    "policy": {
                      "type": "object"
                    },
                    "principalAgentId": {
                      "type": "string"
                    },
                    "proposedPurchase": {
                      "type": "object"
                    },
                    "purchaseHistory": {
                      "maxItems": 500,
                      "type": "array"
                    }
                  },
                  "required": [
                    "principalAgentId",
                    "currentAgentId",
                    "proposedPurchase",
                    "delegationPath",
                    "purchaseHistory",
                    "policy"
                  ],
                  "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": {
                  "additionalProperties": true,
                  "properties": {
                    "cycleDetected": {
                      "type": "boolean"
                    },
                    "cyclePath": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "decision": {
                      "enum": [
                        "allow",
                        "block",
                        "review",
                        "completed",
                        "partial",
                        "failed"
                      ],
                      "type": "string"
                    },
                    "evidence": {
                      "type": "object"
                    },
                    "generatedAt": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "inputFingerprint": {
                      "type": "string"
                    },
                    "projectedSpend": {
                      "type": "string"
                    },
                    "reasons": {
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "requestId": {
                      "type": "string"
                    },
                    "riskScore": {
                      "maximum": 100,
                      "minimum": 0,
                      "type": "number"
                    },
                    "service": {
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    },
                    "triggeredPolicies": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "requestId",
                    "service",
                    "version",
                    "decision",
                    "riskScore",
                    "summary",
                    "reasons",
                    "evidence",
                    "inputFingerprint",
                    "generatedAt"
                  ],
                  "type": "object"
                },
                "type": {
                  "enum": [
                    "json"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.blockchainmoneymap.com",
    "manifest_name": "api.blockchainmoneymap.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "cycleDetected": true,
      "cyclePath": [
        "string"
      ],
      "decision": "allow",
      "evidence": {},
      "generatedAt": "2026-01-01T00:00:00Z",
      "inputFingerprint": "string",
      "projectedSpend": "string",
      "reasons": [
        {}
      ],
      "requestId": "string",
      "riskScore": 0,
      "service": "string",
      "summary": "string",
      "triggeredPolicies": [
        "string"
      ],
      "version": "string"
    },
    "type": "json"
  }
}