{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/agent-to-agent-test-harness.schema.json",
  "title": "Wever Labs Agent-to-Agent Test Harness v1",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "schema_version": {
      "const": "agent_to_agent_test_harness.v1"
    },
    "mode": {
      "type": "string",
      "enum": [
        "read_harness",
        "list_synthetic_agents",
        "build_test_plan",
        "run_agent_to_agent_test",
        "run_packetops_agent_test",
        "run_diligenceops_agent_test",
        "verify_agent_to_agent_transcript",
        "build_agent_report",
        "read_recent_agent_tests"
      ]
    },
    "rail_key": {
      "type": "string",
      "enum": [
        "packetops",
        "diligenceops"
      ]
    },
    "idempotency_key": {
      "type": "string"
    },
    "payment_reference": {
      "type": "string"
    },
    "callback_url": {
      "type": "string",
      "format": "uri"
    },
    "requesting_agent_id": {
      "type": "string"
    },
    "rail_execution_agent_id": {
      "type": "string"
    },
    "receipt_verifier_agent_id": {
      "type": "string"
    },
    "environment": {
      "type": "string",
      "enum": [
        "sandbox",
        "production"
      ]
    },
    "persist": {
      "type": "boolean"
    }
  },
  "required": [
    "mode"
  ]
}
