{
  "schema": "gravity.service_registry.v1",
  "status": "canonical",
  "authority": "Gravity Service Authority",
  "interaction_model": "invoice_bound",
  "description": "Machine-readable registry of GravityBTC public services.",
  "services": [
    {
      "id": "relay",
      "code": "GRV-RELAY",
      "name": "Relay",
      "purpose": "Observe and package Bitcoin transaction records.",
      "workflow": "invoice_bound",
      "tiers": [
        "T1",
        "T2",
        "T3"
      ],
      "state_endpoint": "/api/v1/status",
      "verification_endpoint": "/api/v1/verify",
      "required_inputs": [
        {
          "name": "txids",
          "description": "One or more Bitcoin transaction IDs.",
          "required": true
        },
        {
          "name": "record_title",
          "description": "Human-readable title for the operational record.",
          "required": true
        },
        {
          "name": "group_label",
          "description": "Logical grouping used for organization.",
          "required": true
        },
        {
          "name": "record_context",
          "description": "Brief description of the operational context.",
          "required": true
        }
      ],
      "documentation_url": "/relay/",
      "produces": [
        "invoice",
        "relay_record",
        "manifest",
        "retrieval_package",
        "verification_status"
      ]
    },
    {
      "id": "case",
      "code": "GRV-CASE",
      "name": "Case",
      "purpose": "Review and package Bitcoin transaction evidence.",
      "workflow": "invoice_bound",
      "tiers": [
        "FORENSIC",
        "CERTIFIED"
      ],
      "state_endpoint": "/api/v1/status",
      "verification_endpoint": "/api/v1/verify",
      "required_inputs": [
        {
          "name": "txid",
          "description": "Bitcoin transaction ID under review.",
          "required": true
        },
        {
          "name": "record_title",
          "description": "Human-readable title.",
          "required": true
        },
        {
          "name": "group_label",
          "description": "Logical grouping.",
          "required": true
        },
        {
          "name": "record_context",
          "description": "Brief description of the review.",
          "required": true
        }
      ],
      "documentation_url": "/case/",
      "produces": [
        "invoice",
        "case_report",
        "manifest",
        "retrieval_package",
        "verification_status"
      ]
    },
    {
      "id": "certification",
      "code": "GRV-CERT",
      "name": "Certification",
      "purpose": "Issue durable verification records.",
      "workflow": "invoice_bound",
      "tiers": [
        "T1",
        "T2",
        "T3"
      ],
      "state_endpoint": "/api/v1/status",
      "verification_endpoint": "/api/v1/verify",
      "required_inputs": [
        {
          "name": "cert_reference",
          "description": "TXID, invoice ID, artifact hash, or record reference.",
          "required": true
        },
        {
          "name": "record_title",
          "description": "Human-readable title.",
          "required": true
        },
        {
          "name": "group_label",
          "description": "Logical grouping.",
          "required": true
        },
        {
          "name": "record_context",
          "description": "Brief description of the certification.",
          "required": true
        }
      ],
      "documentation_url": "/cert/",
      "produces": [
        "invoice",
        "certification_record",
        "manifest",
        "retrieval_package",
        "verification_status"
      ]
    }
  ]
}
