{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "The Citadel",
  "description": "AI Tactical Strategist for Men — dating intelligence, profile forensics, behavioral analysis, and Stoic-aligned coaching. Agent-native commerce via MCP, A2A, x402, and OAuth 2.0.",
  "url": "https://thecitadelapp.com",
  "logo": "https://thecitadelapp.com/icons/android-chrome-512x512.png",
  "version": "2.0.0",
  "provider": {
    "organization": "The Citadel",
    "url": "https://thecitadelapp.com",
    "contact": "support@thecitadelapp.com"
  },
  "protocols": {
    "a2a": {
      "version": "0.2",
      "endpoint": "https://thecitadelapp.com/api/mcp/server",
      "authentication": {
        "schemes": ["bearer", "oauth2"],
        "credentials_url": "https://thecitadelapp.com/api/auth/refresh",
        "oauth2": {
          "registration": "https://thecitadelapp.com/api/oauth/register",
          "authorization": "https://thecitadelapp.com/api/oauth/authorize",
          "token": "https://thecitadelapp.com/api/oauth/token"
        }
      }
    },
    "mcp": {
      "version": "2025-03-26",
      "endpoint": "https://thecitadelapp.com/api/mcp/server",
      "transport": "streamable-http",
      "mode": "stateless-post"
    },
    "openapi": {
      "version": "3.1.0",
      "spec_url": "https://thecitadelapp.com/api/openapi"
    },
    "ucp": {
      "version": "1.0",
      "discovery_url": "https://thecitadelapp.com/.well-known/ucp.json"
    },
    "x402": {
      "version": "1.0",
      "settle_url": "https://thecitadelapp.com/api/commerce/x402/settle",
      "networks": ["base", "base-sepolia"],
      "tokens": ["USDC"],
      "treasury": "0x5585Bdd3E2D8e689c20acB10a58c09fA02b46Ca4",
      "usdc_contracts": {
        "base": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "base-sepolia": "0x036CbD53842c5426634e7929541eC2318f3dCF7e"
      }
    }
  },
  "commerce": {
    "headless_api": "https://thecitadelapp.com/api/commerce/headless",
    "conversational_api": "https://thecitadelapp.com/api/commerce/checkout/conversational",
    "payment_methods": ["credits", "x402", "mandate"],
    "products": [
      {
        "id": "roast",
        "sku": "CITADEL-ROAST-001",
        "name": "Profile Forensic Analysis",
        "description": "AI-powered dating profile audit with brutally honest, Stoic-grounded feedback",
        "pricing": {
          "b2c": { "amount_cents": 500, "currency": "usd", "credits": 10 },
          "b2b_agentic": { "amount_cents": 150, "currency": "usd" }
        },
        "latency": { "min_seconds": 15, "max_seconds": 45 }
      },
      {
        "id": "flake-detector",
        "sku": "CITADEL-FD-001",
        "name": "Flake Detection",
        "description": "Behavioral chat analysis predicting whether a match will follow through",
        "pricing": {
          "b2c": { "amount_cents": 300, "currency": "usd", "credits": 5 },
          "b2b_agentic": { "amount_cents": 100, "currency": "usd" }
        },
        "latency": { "min_seconds": 10, "max_seconds": 30 }
      },
      {
        "id": "vice",
        "sku": "CITADEL-VICE-001",
        "name": "Vice Investigation",
        "description": "Forensic catfish/scam detection with risk scoring and evidence analysis",
        "pricing": {
          "b2c": { "amount_cents": 1000, "currency": "usd", "credits": 20 },
          "b2b_agentic": { "amount_cents": 125, "currency": "usd" }
        },
        "latency": { "min_seconds": 20, "max_seconds": 60 }
      },
      {
        "id": "power",
        "sku": "CITADEL-POWER-001",
        "name": "Profile Forge — AI Profile Fixer",
        "description": "AI-generated, identity-preserving profile photos + rewritten bio. Requires a completed Roast.",
        "pricing": {
          "b2c": { "amount_cents": 1999, "currency": "usd", "credits": 40 },
          "b2b_agentic": { "amount_cents": 500, "currency": "usd" }
        },
        "latency": { "min_seconds": 60, "max_seconds": 300 },
        "input_schema": {
          "roast_id": {
            "type": "string",
            "required": true,
            "description": "UUID of a completed Roast"
          }
        }
      }
    ]
  },
  "capabilities": [
    {
      "id": "roast",
      "name": "Profile Forensic Analysis",
      "description": "Brutal objective audit of dating profile performance",
      "input": "images",
      "output": "structured_report"
    },
    {
      "id": "flake-detector",
      "name": "Flake Detection",
      "description": "AI message analysis to predict unreliable behavior",
      "input": "text_or_screenshots",
      "output": "probability_score"
    },
    {
      "id": "vice",
      "name": "Vice Investigation",
      "description": "Lifestyle red-flag analysis and risk assessment",
      "input": "text_or_screenshots",
      "output": "risk_report"
    },
    {
      "id": "coaching",
      "name": "Stoic-Aligned Coaching",
      "description": "AI coaching grounded in Marcus Aurelius, Epictetus, and Seneca",
      "input": "text",
      "output": "streaming_text"
    }
  ],
  "trust": {
    "tiers": ["unknown", "identified", "verified", "trusted", "sovereign"],
    "kya_registration": "https://thecitadelapp.com/api/agents/register",
    "jwks": "https://thecitadelapp.com/.well-known/jwks.json",
    "receipts": true,
    "rate_limits": true,
    "escalation": true
  },
  "skills": [
    "dating_profile_analysis",
    "message_behavior_prediction",
    "red_flag_detection",
    "stoic_philosophy_coaching",
    "emotional_resilience_training"
  ],
  "security": "https://thecitadelapp.com/.well-known/security.txt",
  "terms_of_service": "https://thecitadelapp.com/terms",
  "privacy_policy": "https://thecitadelapp.com/privacy"
}
