{
  "schemaVersion": 1,
  "purpose": "Evidence-backed Clockify service-routing matrix (ROUTE-001). H02-ROUTING-approved 2026-07-27; ROUTE-002 shipped runtime routing in SDK 0.13.0. No runtime code imports this file -- wrapper/internal/routing.ts keeps an equality-pinned hand-written copy of the approved rows, guarded by wrapper/tests/routing-matrix-equality.test.ts. Every non-null row carries a sourcePointer and proofKind; every unsupported combination is explicit (url: null + unsupportedReason).",
  "approved": true,
  "approvedBy": "apet97",
  "approvedDate": "2026-07-27",
  "sourceRevision": "092642d",
  "nonGoals": [
    "Live-confirming regional/US/UK/AU/developer profile routing against a real regional or subdomain-configured workspace is explicitly deferred: no such sacrificial workspace is currently available (confirmed 2026-07-27). These rows remain liveConfirmationRequired:true, shipped as opt-in if/when ROUTE-002 implements them -- never as globally-trusted defaults -- until a regional/subdomain sandbox becomes available.",
    "Removing pto.api.clockify.me / auditing developer.clockify.me in wrapper/internal/authenticated-boundary-fetch.ts and scripts/sdk-codegen/emitter.mjs's allowlists is runtime code (ROUTE-002), out of scope for this evidence-only matrix. This approval only records that pto.api.clockify.me routes no operation (see conflicts[0])."
  ],
  "sources": {
    "official": "spec/official/clockify.official.openapi.yaml#/info/description (\"## API URLs\" and \"## Regional Server Prefixes\" sections)",
    "corrected": "spec/corrected/clockify.corrected.openapi.yaml (root #/servers and per-operation #/paths/*/*/servers overrides)",
    "existingAllowlists": [
      "wrapper/internal/authenticated-boundary-fetch.ts (CLOCKIFY_PROD_HOSTS)",
      "scripts/sdk-codegen/emitter.mjs (CLOCKIFY_API_HOSTS)"
    ]
  },
  "operationServiceDerivation": {
    "method": "Every corrected-spec operation resolved by its effective server (operation-level `servers` override, else the first root `servers` entry), classified by hostname. Computed live by scripts/service-routing-matrix.mjs against spec/corrected/clockify.corrected.openapi.yaml; the checker compares these stored counts to the current derivation and fails closed on drift.",
    "totalOperations": 175,
    "counts": {
      "api": 164,
      "reports": 10,
      "audit": 1
    },
    "note": "No operation resolves to a fourth host. \"pto\" (time-off) operations resolve to the regular api host -- there is no per-operation servers override routing them elsewhere. This is empirical fact, not evidence that time-off has no distinct service; see conflicts[0]."
  },
  "regionalPrefixes": {
    "euc1": "EU (Germany)",
    "use2": "USA",
    "euw2": "UK",
    "apse2": "AU"
  },
  "profiles": {
    "global": {
      "regular": {
        "url": "https://api.clockify.me/api/v1",
        "sourcePointer": "spec/corrected/clockify.corrected.openapi.yaml#/servers/0; spec/official#/info/description \"API URLs > Global > Regular\"",
        "proofKind": "spec-corrected+official-doc",
        "liveConfirmationRequired": false
      },
      "reports": {
        "url": "https://reports.api.clockify.me/v1",
        "sourcePointer": "spec/corrected/clockify.corrected.openapi.yaml#/servers/1 and 10 per-operation overrides; spec/official#/info/description \"API URLs > Global > Reports\"",
        "proofKind": "spec-corrected+official-doc",
        "liveConfirmationRequired": false
      },
      "audit": {
        "url": "https://auditlog-api.api.clockify.me/v1",
        "sourcePointer": "spec/corrected/clockify.corrected.openapi.yaml#/servers/2 and 1 per-operation override",
        "proofKind": "spec-corrected",
        "liveConfirmationRequired": false,
        "note": "Not documented in spec/official's prose (no audit host example there); proven directly by the corrected spec's own operation override instead."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Confirmed by H02-ROUTING (apet97, 2026-07-27): pto.api.clockify.me is unrouted allowlist code, not a service this SDK targets -- see conflicts[0]. No corrected-spec operation resolves to a distinct pto host; time-off operations resolve to the regular api host (see operationServiceDerivation). This row intentionally does NOT default to the api host: that would assert pto has no distinct service by inference rather than by confirmed decision."
      }
    },
    "eu": {
      "regular": {
        "urlTemplate": "https://euc1.clockify.me/api/v1",
        "sourcePointer": "spec/official#/info/description \"API URLs > Regional > Non-subdomain > Regular\" (literal euc1 example) + \"Regional Server Prefixes\" table",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "reports": {
        "urlTemplate": "https://euc1.clockify.me/report/v1",
        "sourcePointer": "spec/official#/info/description \"API URLs > Regional > Non-subdomain > Reports\" (structural shape only; example text uses the use2/USA prefix, not euc1 -- the heading is \"Regional / Non-subdomain\" in general, not EU-specific, so this is read as the same prefix-substitution pattern as Regular, not a region-specific override; see conflicts[1])",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true,
        "note": "Global reports routing is host-discriminated (reports.api.clockify.me). Regional reports routing is path-discriminated (<prefix>.clockify.me/report/v1) instead -- a genuine, provable structural difference from global, not yet live-confirmed for any specific region in this repo."
      },
      "audit": {
        "url": null,
        "unsupportedReason": "No regional audit-log routing documented in spec/official or spec/corrected."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Same confirmed decision as profiles.global.pto (H02-ROUTING, 2026-07-27): pto.api.clockify.me is unrouted, and no regional evidence exists either way."
      }
    },
    "us": {
      "regular": {
        "urlTemplate": "https://use2.clockify.me/api/v1",
        "sourcePointer": "spec/official#/info/description \"Regional Server Prefixes\" table (USA = use2) applied to the documented Regular template",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "reports": {
        "urlTemplate": "https://use2.clockify.me/report/v1",
        "sourcePointer": "spec/official#/info/description \"API URLs > Regional > Non-subdomain > Reports\" (this is the literal example host in the doc, under the general Regional/Non-subdomain heading)",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "audit": {
        "url": null,
        "unsupportedReason": "No regional audit-log routing documented in spec/official or spec/corrected."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Same confirmed decision as profiles.global.pto (H02-ROUTING, 2026-07-27): pto.api.clockify.me is unrouted, and no regional evidence exists either way."
      }
    },
    "uk": {
      "regular": {
        "urlTemplate": "https://euw2.clockify.me/api/v1",
        "sourcePointer": "spec/official#/info/description \"Regional Server Prefixes\" table (UK = euw2) applied to the documented Regular template",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "reports": {
        "urlTemplate": "https://euw2.clockify.me/report/v1",
        "sourcePointer": "spec/official#/info/description \"Regional Server Prefixes\" table (UK = euw2) applied to the documented Non-subdomain Reports template shape",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "audit": {
        "url": null,
        "unsupportedReason": "No regional audit-log routing documented in spec/official or spec/corrected."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Same confirmed decision as profiles.global.pto (H02-ROUTING, 2026-07-27): pto.api.clockify.me is unrouted, and no regional evidence exists either way."
      }
    },
    "au": {
      "regular": {
        "urlTemplate": "https://apse2.clockify.me/api/v1",
        "sourcePointer": "spec/official#/info/description \"Regional Server Prefixes\" table (AU = apse2) applied to the documented Regular template",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "reports": {
        "urlTemplate": "https://apse2.clockify.me/report/v1",
        "sourcePointer": "spec/official#/info/description \"Regional Server Prefixes\" table (AU = apse2) applied to the documented Non-subdomain Reports template shape",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "audit": {
        "url": null,
        "unsupportedReason": "No regional audit-log routing documented in spec/official or spec/corrected."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Same confirmed decision as profiles.global.pto (H02-ROUTING, 2026-07-27): pto.api.clockify.me is unrouted, and no regional evidence exists either way."
      }
    },
    "developer": {
      "regular": {
        "url": "https://developer.clockify.me/api/v1",
        "sourcePointer": "spec/official#/info/description \"API URLs > Developer > Regular\"",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "reports": {
        "url": "https://developer.clockify.me/report/v1",
        "sourcePointer": "spec/official#/info/description \"API URLs > Developer > Reports\"",
        "proofKind": "official-doc-only",
        "liveConfirmationRequired": true
      },
      "audit": {
        "url": null,
        "unsupportedReason": "No developer-profile audit-log routing documented in spec/official or spec/corrected."
      },
      "pto": {
        "url": null,
        "unsupportedReason": "Same confirmed decision as profiles.global.pto (H02-ROUTING, 2026-07-27): pto.api.clockify.me is unrouted, and no developer-profile evidence exists either way."
      }
    }
  },
  "subdomainReportsTemplate": {
    "urlTemplate": "https://{subdomain}.clockify.me/report/v1",
    "sourcePointer": "spec/official#/info/description \"API URLs > Regional > Subdomain > Reports\" (literal placeholder \"yoursubdomainname.clockify.me\")",
    "proofKind": "official-doc-only",
    "liveConfirmationRequired": true,
    "subdomainValidation": "See scripts/service-routing-matrix.mjs#validateSubdomainLabel: lowercase, 1-63 chars, alphanumeric/hyphen only, no leading/trailing hyphen, no dots, no punycode/xn-- prefix.",
    "note": "Confirmed by H02-ROUTING (apet97, 2026-07-27): a workspace subdomain changes only Reports routing. Regular/API stays on the region-prefix host (profiles.*.regular) regardless of subdomain configuration -- the official doc's \"Subdomain\" section shows Regular as the identical literal euc1.clockify.me/api/v1 example already captured under profiles.eu.regular, and Reports alone uses the subdomain host."
  },
  "conflicts": [
    {
      "id": "pto-host-unproven",
      "description": "wrapper/internal/authenticated-boundary-fetch.ts (CLOCKIFY_PROD_HOSTS) and scripts/sdk-codegen/emitter.mjs (CLOCKIFY_API_HOSTS) both allowlist pto.api.clockify.me. It has zero backing operations in spec/corrected and zero mentions in spec/official's prose. (developer.clockify.me is also allowlisted there; that one is NOT a conflict -- it matches spec/official's Developer profile prose at the same official-doc-only evidence tier as the regional templates, see profiles.developer.)",
      "affectedHosts": [
        "pto.api.clockify.me"
      ],
      "evidence": [
        "wrapper/internal/authenticated-boundary-fetch.ts (CLOCKIFY_PROD_HOSTS)",
        "scripts/sdk-codegen/emitter.mjs (CLOCKIFY_API_HOSTS)",
        "spec/corrected/clockify.corrected.openapi.yaml (no operation targets this host)"
      ],
      "needsHumanResolution": false,
      "resolution": "Confirmed by H02-ROUTING (apet97, 2026-07-27): pto.api.clockify.me routes no operation, so profiles.*.pto stays null + unsupportedReason. The decision stands, but the earlier 'dead host' justification does not: on 2026-08-07 the host answered 200 to GET /user with the same credentials as the regular host. It is reachable and un-targeted, not absent. Removing the host from the runtime allowlist is ROUTE-002 work, out of scope for this evidence-only matrix (see nonGoals)."
    },
    {
      "id": "regional-reports-routing-not-live-confirmed",
      "description": "Regional and subdomain reports routing (path-discriminated <prefix-or-subdomain>.clockify.me/report/v1) is documented only in spec/official's prose examples, with no corresponding spec/corrected per-operation servers override for any region and no live-evidence-manifest row proving it against a real regional/subdomain workspace. Global reports routing (host-discriminated reports.api.clockify.me) is fully proven by spec/corrected.",
      "evidence": [
        "spec/official#/info/description \"API URLs > Regional\" and \"> Developer\" sections",
        "spec/corrected/clockify.corrected.openapi.yaml (no regional/subdomain server overrides exist)",
        "spec/evidence/live-evidence-manifest.json (no regional/subdomain rows)"
      ],
      "needsHumanResolution": false,
      "resolution": "Resolved by H02-ROUTING (apet97, 2026-07-27): a live probe was the preferred resolution, but no regional or subdomain-configured sacrificial workspace is currently available to probe against. Regional/developer/subdomain rows ship as opt-in with liveConfirmationRequired:true (see nonGoals), not as globally-trusted defaults, until such a workspace exists.",
      "resolutionOptions": [
        "Authorize a read-only live probe against an authorized regional/subdomain sacrificial workspace to confirm the templated regional/developer/subdomain rows before ROUTE-002 treats them as fully supported (preferred once such a workspace exists).",
        "Ship ROUTE-002 with these profiles marked liveConfirmationRequired (opt-in, documented as unconfirmed) rather than fully supported -- SELECTED, see resolution above.",
        "Defer regional/developer/subdomain profile support entirely until live-confirmed."
      ]
    }
  ]
}
