# APID / OP Cloud identifier request guard

- Optimization ID: `2026-07-23-apid-op-cloud-identifiers`
- Owner: auto-oncall services
- Source: operator feedback on 2026-07-23
- Bounded problem: OP ticket drafts may incorrectly ask customers for TiDB Cloud `org ID` or `cluster ID`.
- Implementation status: merged and deployed to staging; the shared analysis contract and runner result guard both enforce the OP boundary.
- Effective status: `optimized_verified`.
- Candidate verification: TypeScript build and all 409 repository tests passed. A read-only historical replay of APID-29159 at 2026-07-23T15:27:08+08:00 produced no org ID, organization ID, cluster ID, orgId, clusterId, or TiDB Cloud organization/project request in the draft, `requestedContext`, or clarification fields. Local replay run: `181ce767-97a5-40fe-ba05-266f0e197d68`.
- Effective verification: staging image
  `c64cddad242b5d443d1c19273f3bd19142983204` reached 1/1 Ready. Write replay
  run `60106` (`8857f379-13db-4f2b-98e0-ea4e7275be07`) produced no forbidden
  Cloud identifier request in the draft, requested context, or final Jira
  body. It updated existing internal comment `23124789` in place; Jira readback
  returned `public=false`.
- Unresolved gap: none for the bounded APID-29159 behavior.
- Next action: watch future APID and supported OP cases for regressions without
  weakening requests for case-relevant SQL, plan, log, or timestamp evidence.

<!-- auto-oncall-optimization-record
{
  "schemaVersion": "auto-oncall-optimization-record-v1",
  "optimizationId": "2026-07-23-apid-op-cloud-identifiers",
  "problems": [
    {
      "problemId": "apid-op-cloud-identifiers-requested",
      "summary": "OP ticket drafts ask customers for TiDB Cloud org or cluster identifiers",
      "status": "optimized_verified",
      "issueKeys": ["APID-29159"],
      "sourceRefs": ["https://tidb.atlassian.net/browse/APID-29159#problem:op-cloud-identifiers-requested"],
      "signalTextIncludesAny": ["APID", "OP ticket", "org ID", "cluster ID"],
      "observedThrough": "2026-07-23",
      "effectiveAt": "2026-07-23T08:43:48Z",
      "verifiedAt": "2026-07-23T08:46:53Z",
      "attemptedAction": "Strengthen the shared support-analysis prompt, add a runner correction guard, and verify APID-29159 on the candidate branch without a Cloud identifier request.",
      "evidenceUrl": "https://tidb.atlassian.net/rest/api/3/issue/7891926/comment/23124789"
    }
  ]
}
-->
