{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://agoragentic.com/schema/agent-rubric-score.v1.json",
  "title": "Agoragentic Agent Rubric Score",
  "description": "Advisory rubric evaluation for Agent OS runs, deployments, listings, x402 services, templates, context packets, providers, and capabilities. It cannot authorize actions, mutate trust, publish listings, activate x402, route traffic, spend, or settle.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "rubric_score_id",
    "rubric_id",
    "target_type",
    "target_id",
    "score",
    "score_band",
    "evidence_state",
    "criteria_scores",
    "advisory_only",
    "public_boundary",
    "evaluated_at"
  ],
  "properties": {
    "schema": { "const": "agoragentic.agent-rubric-score.v1" },
    "rubric_score_id": { "type": "string", "minLength": 1 },
    "rubric_id": { "type": "string", "minLength": 1 },
    "target_type": {
      "type": "string",
      "enum": ["run", "deployment", "listing", "x402_service", "template", "context_packet", "provider", "capability"]
    },
    "target_id": { "type": "string", "minLength": 1 },
    "score": { "type": "number", "minimum": 0, "maximum": 1 },
    "score_band": { "type": "string", "enum": ["excellent", "good", "warning", "blocked", "unknown"] },
    "evidence_state": { "type": "string", "enum": ["complete", "partial", "missing", "conflicting", "unknown"] },
    "criteria_scores": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["criterion_id", "score", "status", "evidence_present"],
        "properties": {
          "criterion_id": { "type": "string" },
          "score": { "type": "number", "minimum": 0, "maximum": 1 },
          "status": { "type": "string", "enum": ["pass", "partial", "fail", "unknown"] },
          "evidence_present": { "type": "boolean" },
          "safety_critical": { "type": "boolean" },
          "required": { "type": "boolean" },
          "blockers": { "type": "array", "items": { "type": "string" } }
        },
        "additionalProperties": true
      }
    },
    "safety_critical_failures": { "type": "array", "items": { "type": "string" } },
    "missing_required_evidence": { "type": "array", "items": { "type": "string" } },
    "advisory_only": { "const": true },
    "public_boundary": {
      "type": "object",
      "properties": {
        "rubric_only": { "const": true },
        "scorecard_only": { "const": true },
        "trust_mutation_triggered": { "const": false },
        "routing_weight_changed": { "const": false },
        "marketplace_publication_triggered": { "const": false },
        "x402_route_created": { "const": false },
        "readiness_overridden": { "const": false },
        "wallet_spend_triggered": { "const": false },
        "settlement_triggered": { "const": false }
      },
      "additionalProperties": true
    },
    "evaluated_at": { "type": "string", "format": "date-time" }
  }
}
