# Wetech Business Alias Mapping

<!-- auto-oncall-optimization-record
{
  "schemaVersion": "auto-oncall-optimization-record-v1",
  "optimizationId": "wetech-gosaas02-alias-2026-08-12",
  "problems": [
    {
      "problemId": "wetech-gosaas02-readiness-target-unmapped",
      "summary": "APID-29194 supplied the Wetech business alias gosaas02, but the provider inventory recognized only the canonical SaaS02 name and exited before authentication or datasource readiness.",
      "status": "optimized_verified",
      "issueKeys": ["APID-29194"],
      "sourceRefs": [
        "https://tidb.atlassian.net/browse/APID-29194#problem:wetech-gosaas02-target-mapping"
      ],
      "signalTextIncludesAny": [
        "unknown cluster alias: gosaas02",
        "diagnostic_wetech_readiness_failed",
        "targetReference=null"
      ],
      "observedThrough": "2026-08-12",
      "effectiveAt": "2026-08-12T06:49:36Z",
      "verifiedAt": "2026-08-12T07:03:00Z",
      "attemptedAction": "Add gosaas02 as an explicit region-scoped business alias of the canonical asia-prod SaaS02 inventory entry and resolve configured aliases through the same unique-match, fail-closed target lookup as canonical aliases.",
      "evidenceUrl": "https://github.com/tidbcloud/aisupport/tree/main/auto-oncall-services/docs/opts/2026-08-12-wetech-gosaas02-alias.md"
    }
  ]
}
-->

- Optimization ID: `wetech-gosaas02-alias-2026-08-12`
- Owner: Wetech provider target inventory
- Source reference: APID-29194 replay
- Implementation status: deployed to staging in image `d599c228d5a64003baf432a98d359589e20d22a2`
- Effective status: `optimized_verified`

## Bounded problem

APID-29194 supplied `gosaas02` as its exact Wetech cluster target. The bundled
inventory contained the canonical `SaaS02` entry and its full Dashboard proxy
name, but not this business alias. The readiness helper therefore returned
`unknown cluster alias` before browser authentication, datasource discovery,
or Provider execution; the runner consequently had no `targetReference`.

## Candidate change

- Store `gosaas02` as an explicit alternate alias on the existing
  `asia-prod/SaaS02` entry.
- Resolve canonical and alternate aliases with the same normalization and
  region filter.
- Preserve exact Dashboard-name handling, the default `asia-prod` behavior,
  unique-match validation, and cross-region fail-closed behavior.

## Verification evidence

APID-29194 replay `2c8613cb-3174-40f5-b720-96a2fb61a8b5` completed live
readiness in 27,722 ms with target `wetech:asia-prod:SaaS02`, then executed
Slow Query and Statements against the canonical SaaS02 Dashboard target.

## Unresolved gaps

The read-only replay was not used to refresh the Jira internal comment.

## Next validation action

Refresh the existing Jira internal comment only after the replay draft is
reviewed and a write is explicitly authorized.
