{
  "schema": "xagent-install-manifest-v1",
  "product": {
    "name": "xAgent ID",
    "audience": "website_agent"
  },
  "target": {
    "url": "https://example.com",
    "host": "example.com",
    "ownership_required": true
  },
  "release": {
    "package": "@twin3-ai/agent-id",
    "version": "0.3.19",
    "integrity": "sha512-+zSORpYlXaVLGlmKJNGNgK8jcNI7ztOt4Ppjm+6UdLiiT6/xfQ0bYs+5harI7J4iK+yXovJhHE6jwpaNBfE06g==",
    "ready": true,
    "api_origin": "https://xagent.id",
    "commit": "1322c73c43fd9927971fb6f16c015ca4156a5250",
    "published_at": "2026-08-15T06:15:30.443Z",
    "manifest": "https://xagent.id/.well-known/agent-id-release.json",
    "manifest_hash": "sha256:b0e91a5d168c152f70c3a81f4f98949af820fe35b1888ddaf2263a46748b3f76",
    "compatibility": {
      "node": ">=20",
      "npm": ">=10"
    },
    "rollback": {
      "package": "@twin3-ai/agent-id",
      "version": "0.3.18",
      "integrity": "sha512-+fe8zVvHQfF1e6Fen/WDsuR8iyKrlSU5AUd1YbV/Xrgk4jPgfilsjDtvhPcRvjklZm+stOyBDeqleCFdTxpWyA==",
      "source": "previous_production_release"
    }
  },
  "contracts": {
    "agent_card": "https://xagent.id/.well-known/agent-card.json",
    "openapi": "https://xagent.id/agent/openapi.json",
    "mcp": "https://xagent.id/agent/mcp.json",
    "full_install_guide": "https://xagent.id/api/site_agents/install_guide?url=https%3A%2F%2Fexample.com",
    "install_status": "https://xagent.id/api/site_agents/install_status?url=https%3A%2F%2Fexample.com"
  },
  "modules": [
    {
      "id": "identity",
      "grant": "identity_publish",
      "default": true,
      "writes": [
        ".well-known/agent-id.json",
        ".well-known/agent-card.json"
      ]
    },
    {
      "id": "audit",
      "grant": "public_read",
      "default": true,
      "writes": []
    },
    {
      "id": "measurement",
      "grant": "telemetry_submit",
      "default": false,
      "writes": []
    },
    {
      "id": "optimization",
      "grant": "insights_read",
      "default": true,
      "writes": []
    },
    {
      "id": "automation",
      "grant": "ai_files_write",
      "default": false,
      "writes": [
        "owner_allowlisted_ai_files_only"
      ]
    }
  ],
  "authority": {
    "default": "read_only",
    "owner_approval_required_before_write": true,
    "mother_service_can_write_site": false,
    "mother_service_has_source_or_deploy_access": false,
    "site_credential_custody": "customer_only",
    "rollback_required_for_bounded_changes": true
  },
  "workflow": [
    {
      "id": "discover",
      "method": "GET",
      "url": "https://xagent.id/.well-known/xagent-install.json",
      "side_effect": "none"
    },
    {
      "id": "preflight",
      "method": "verify_release",
      "url": "https://xagent.id/.well-known/agent-id-release.json",
      "side_effect": "none"
    },
    {
      "id": "dry_run",
      "method": "local_cli",
      "command": "npx --yes @twin3-ai/agent-id@0.3.19 install https://example.com --modules identity,audit,optimization --grant identity_publish,public_read,insights_read --project-root . --public-root ./public --dry-run",
      "side_effect": "none"
    },
    {
      "id": "owner_approval",
      "method": "human_gate",
      "required": true,
      "side_effect": "none"
    },
    {
      "id": "apply",
      "method": "local_cli",
      "command": "npx --yes @twin3-ai/agent-id@0.3.19 install https://example.com --modules identity,audit,optimization --grant identity_publish,public_read,insights_read --project-root . --public-root ./public --apply",
      "side_effect": "writes_owner_approved_files"
    },
    {
      "id": "domain_verify",
      "method": "local_cli",
      "command": "npm exec --yes --package=@twin3-ai/agent-id@0.3.19 -- agent-id enterprise-domain-verify --project-root .",
      "side_effect": "verifies_public_proof"
    },
    {
      "id": "activate",
      "method": "local_cli",
      "command": "npm exec --yes --package=@twin3-ai/agent-id@0.3.19 -- agent-id enterprise-managed-enable --project-root .",
      "side_effect": "enables_public_read_only_inspection"
    },
    {
      "id": "dashboard_login",
      "method": "local_cli",
      "command": "npm exec --yes --package=@twin3-ai/agent-id@0.3.19 -- agent-id dashboard-login --project-root .",
      "side_effect": "creates_one_time_dashboard_url"
    },
    {
      "id": "observe",
      "method": "dashboard",
      "url": "https://xagent.id/dashboard",
      "side_effect": "none"
    },
    {
      "id": "rollback",
      "method": "local_cli",
      "command": "npm exec --yes --package=@twin3-ai/agent-id@0.3.19 -- agent-id enterprise-rollback-once --task-id <task-id> --project-root . --approve",
      "owner_approval_required": true,
      "side_effect": "restores_customer_approved_change"
    }
  ],
  "evidence_policy": {
    "channels": [
      "A1_observed_ai_crawler_reads",
      "A2_fixed_prompt_citations",
      "B1_observed_conversions"
    ],
    "missing_data": "pending_not_zero",
    "synthetic_outcomes_allowed": false,
    "bounded_change_proof": [
      "site_receipt",
      "independent_public_refetch",
      "rollback_receipt"
    ]
  },
  "failure_policy": {
    "release_not_ready": "stop_before_install",
    "domain_not_verified": "stop_before_credentials_or_private_actions",
    "approval_missing": "stop_before_write",
    "public_refetch_mismatch": "rollback_or_hold_for_owner_review"
  },
  "non_claims": [
    "installation_does_not_guarantee_ranking_citation_recommendation_or_conversion",
    "audit_without_external_evidence_does_not_prove_business_lift"
  ]
}