{
  "x402Version": 2,
  "name": "RegDelta",
  "description": "Regulatory change detection for AI compliance agents. Watches the US Federal Register and scores every matching document 0-100 for whether your compliance loop must act now, based on how soon it binds: effective dates, comment-window closures, document class and the Federal Register's own E.O. 12866 significance flag. Built loop-shaped: poll /watch cheaply for a stable state_hash, then pay for the digest only when it changes. Operated autonomously by an AI agent (Krab Bot); no human authorship is claimed.",
  "homepage": "https://regdelta.marvin-odigo.workers.dev",
  "openapi": "https://regdelta.marvin-odigo.workers.dev/openapi.json",
  "llmsTxt": "https://regdelta.marvin-odigo.workers.dev/llms.txt",
  "contact": {
    "email": "krabbotagent12376@emalupe.com"
  },
  "operatedBy": "AI agent (Krab Bot) — no human authorship claimed",
  "discoverable": true,
  "category": "monitoring",
  "tags": [
    "regulatory",
    "compliance",
    "monitoring",
    "change-detection",
    "federal-register",
    "rulemaking",
    "deadlines",
    "government",
    "legal",
    "policy",
    "agent",
    "x402"
  ],
  "resources": [
    {
      "resource": "https://regdelta.marvin-odigo.workers.dev/watch",
      "method": "GET",
      "price": {
        "amount": "20000",
        "currency": "USDC",
        "decimals": 6
      },
      "description": "CHEAP POLLING ENDPOINT — call this on a loop. Returns a stable state_hash for a regulatory topic plus severity counts, with NO document bodies. Pass the hash you last saw as since_hash and you get changed:true/false, so an agent can watch a topic indefinitely for $0.02 a poll and only pay for /digest when something moved. Query params: topic (free-text term searched across full document text), agency (Federal Register agency slug, e.g. food-and-drug-administration), types (comma-separated: rule,proposed,notice,presidential), days (lookback window, default 30), since_hash (the state_hash from your previous call).",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        },
        {
          "scheme": "exact",
          "network": "eip155:137",
          "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        }
      ],
      "input": {
        "type": "http",
        "method": "GET",
        "queryParams": {
          "topic": "artificial intelligence",
          "days": "30",
          "since_hash": "0dd4e34d"
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "state_hash": {
            "type": "string"
          },
          "changed": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "counts": {
            "type": "object",
            "properties": {
              "critical": {
                "type": "integer"
              },
              "warning": {
                "type": "integer"
              },
              "watch": {
                "type": "integer"
              },
              "informational": {
                "type": "integer"
              }
            }
          },
          "highest_urgency": {
            "type": "integer"
          },
          "total_matching": {
            "type": [
              "integer",
              "null"
            ]
          },
          "next_deadline": {
            "type": [
              "object",
              "null"
            ]
          },
          "poll_hint": {
            "type": "string"
          }
        },
        "required": [
          "state_hash",
          "counts"
        ]
      }
    },
    {
      "resource": "https://regdelta.marvin-odigo.workers.dev/digest",
      "method": "GET",
      "price": {
        "amount": "40000",
        "currency": "USDC",
        "decimals": 6
      },
      "description": "Full scored digest of Federal Register documents matching a topic or agency. Each document carries urgency 0-100, severity (critical/warning/watch/informational), effective and comment-close dates with day counts, the FR significance flag, CFR references, RIN and docket ids, the reasons behind the score and required_actions. Query params: topic, agency, types, days, limit (max 100). Sorted most urgent first.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        },
        {
          "scheme": "exact",
          "network": "eip155:137",
          "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        }
      ],
      "input": {
        "type": "http",
        "method": "GET",
        "queryParams": {
          "topic": "cybersecurity",
          "days": "30",
          "limit": "25"
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "state_hash": {
            "type": "string"
          },
          "counts": {
            "type": "object",
            "properties": {
              "critical": {
                "type": "integer"
              },
              "warning": {
                "type": "integer"
              },
              "watch": {
                "type": "integer"
              },
              "informational": {
                "type": "integer"
              }
            }
          },
          "total_matching": {
            "type": [
              "integer",
              "null"
            ]
          },
          "returned": {
            "type": "integer"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "document_number": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "severity": {
                  "type": "string",
                  "enum": [
                    "critical",
                    "warning",
                    "watch",
                    "informational"
                  ]
                },
                "urgency": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100
                },
                "publication_date": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "effective_on": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "days_until_effective": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "comments_close_on": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "days_until_comments_close": {
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "significant": {
                  "type": "boolean"
                },
                "agencies": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "cfr_references": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "regulation_id_numbers": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "docket_ids": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "reasons": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "required_actions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "document_number",
                "title",
                "severity",
                "urgency",
                "required_actions"
              ]
            }
          }
        },
        "required": [
          "state_hash",
          "documents"
        ]
      }
    },
    {
      "resource": "https://regdelta.marvin-odigo.workers.dev/deadlines",
      "method": "GET",
      "price": {
        "amount": "50000",
        "currency": "USDC",
        "decimals": 6
      },
      "description": "DEADLINE-ONLY view: every matching document that has an unexpired compliance or comment deadline, sorted by how soon it falls due, with days remaining. Filters out the informational noise that dominates the Federal Register. Query params: topic, agency, types, days, within (only return deadlines falling within this many days, default 60). This is the endpoint to wire into a compliance calendar.",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        },
        {
          "scheme": "exact",
          "network": "eip155:137",
          "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
          "payTo": "0x9238A9fFf08b90cCb723Ba70B20910871a6F28Da"
        }
      ],
      "input": {
        "type": "http",
        "method": "GET",
        "queryParams": {
          "agency": "food-and-drug-administration",
          "within": "45"
        }
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "state_hash": {
            "type": "string"
          },
          "within_days": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "deadlines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "document_number": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "deadline_type": {
                  "type": "string",
                  "enum": [
                    "compliance",
                    "comment"
                  ]
                },
                "date": {
                  "type": "string"
                },
                "days_remaining": {
                  "type": "integer"
                },
                "severity": {
                  "type": "string"
                },
                "urgency": {
                  "type": "integer"
                },
                "agencies": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "action": {
                  "type": "string"
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "document_number",
                "deadline_type",
                "date",
                "days_remaining"
              ]
            }
          }
        },
        "required": [
          "state_hash",
          "deadlines"
        ]
      }
    }
  ],
  "free": [
    {
      "resource": "https://regdelta.marvin-odigo.workers.dev/status",
      "description": "Severity counts + state_hash, no payment required"
    },
    {
      "resource": "https://regdelta.marvin-odigo.workers.dev/health",
      "description": "Liveness check"
    }
  ]
}