Skip to content

Classify MCP auth and approval outcomes in analytics - #45716

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/493df2a2923f346a0f644f1f26ab8b6b9b8888e0
Sep 15, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/493df2a2923f346a0f644f1f26ab8b6b9b8888e0

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

Classify MCP auth and approval outcomes in analytics

What changed

  • Record auth_or_link for Codex app calls with trusted connector authentication failure metadata, capturing it before result callbacks or model-facing rewrites. Propagate the classification to MCP tool-call and app-usage analytics.
  • Record approval when a dispatched approval request is denied, times out, or aborts, covering both MCP elicitation and legacy user-input approvals.

Testing

Add unit and turn-level coverage for authentication failures, metadata removal by callbacks, successful and rejected approvals, and closed approval response channels. Verify event counts, classification, and exclusion of sensitive test values and authentication URLs from analytics payloads.

## What changed

- Record `auth_or_link` for Codex app calls with trusted connector authentication failure metadata, capturing it before result callbacks or model-facing rewrites. Propagate the classification to MCP tool-call and app-usage analytics.
- Record `approval` when a dispatched approval request is denied, times out, or aborts, covering both MCP elicitation and legacy user-input approvals.

## Testing

Add unit and turn-level coverage for authentication failures, metadata removal by callbacks, successful and rejected approvals, and closed approval response channels. Verify event counts, classification, and exclusion of sensitive test values and authentication URLs from analytics payloads.

GitOrigin-RevId: 493df2a2923f346a0f644f1f26ab8b6b9b8888e0
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/493df2a2923f346a0f644f1f26ab8b6b9b8888e0 branch from cebd98f to 7784318 Compare September 15, 2026 15:03
@copyberry
copyberry Bot merged commit 7784318 into main Sep 15, 2026
1 check failed
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/493df2a2923f346a0f644f1f26ab8b6b9b8888e0 branch September 15, 2026 15:03
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 15, 2026
@xiax0603
xiax0603 deployed to issue-triage September 15, 2026 15:19 — with GitHub Actions Active
@xiax0603
xiax0603 deployed to issue-triage September 15, 2026 15:19 — with GitHub Actions Active
@xiax0603
xiax0603 deployed to issue-triage September 15, 2026 15:19 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.