Skip to content

[codex] Redact tool telemetry args summaries - #298

Merged
likun666661 merged 1 commit into
apache:mainfrom
tt-a1i:codex/redact-tool-args-summary
Jun 30, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
tt-a1i:codex/redact-tool-args-summary

Conversation

@tt-a1i

@tt-a1i tt-a1i commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Closes #295.

What changed

  • Redacts tool argsSummary at the shared runtime summarization boundary before truncation.
  • Extends shared secret redaction to serialized JSON sensitive keys such as authorization, apiKey, and password.
  • Adds focused core and runtime regression coverage for telemetry arg summaries.

Why

Generic tool telemetry currently records argsSummary by stringifying raw args. WebSearch had a special-case scrub, but sibling tools still reached telemetry through the runtime path. Redacting in the shared summarizeArgs() path makes success and error telemetry use the same protection.

Validation

  • npm --workspace @maka/core run test -- --test-name-pattern redaction
  • node --test --test-name-pattern "permissionRequired=false fast path" packages/runtime/dist/__tests__/ai-sdk-backend.test.js

Note: npm --workspace @maka/runtime run test -- --test-name-pattern "permissionRequired=false fast path" still executed the broader runtime test set in this repo and hit an unrelated existing Bash timeout assertion; the target AiSdkBackend case passed directly.

@tt-a1i
tt-a1i force-pushed the codex/redact-tool-args-summary branch from cf7389b to edefc65 Compare June 26, 2026 07:02
@tt-a1i
tt-a1i marked this pull request as ready for review June 26, 2026 07:46

@likun666661 likun666661 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Redact secrets in tool telemetry argsSummary

2 participants