What problem does it solve?
Runtime logging in the openai-agents-js SDK can accidentally leak model inputs/outputs, tool arguments and results, Realtime events, MCP payloads, session history, or arbitrary thrown error values, even when the OPENAI_AGENTS_DONT_LOG_MODEL_DATA or OPENAI_AGENTS_DONT_LOG_TOOL_DATA flags are enabled. This Skill inventories every logger and console call, classifies each dynamic value against the documented flag contract, and fixes only demonstrated leaks without over-redacting operational metadata like names, IDs, counts, and statuses.
Core Features & Use Cases
- Deterministic log sink inventory: A TypeScript AST-based script inventories every logger and console call, resolves aliases, destructured methods, computed methods, and Logger-typed members, and emits stable fingerprints plus JSON or summary reports.
- Evidence-gated leak classification: Each dynamic sink is classified as model, tool, model+tool, operational, or uncertain, requiring source-to-sink tracing and a sentinel reproducer before any runtime code is changed.
- Policy-aware remediation and regression tests: Fixes route through helpers like logModelActionError and logToolActionError, with an adversarial validation matrix covering redacted and diagnostic modes, hostile constructors, revoked Proxies, and supplemental payloads.
- Use Case: While reviewing a pull request that adds error logging to tool execution, run the inventory to confirm whether a caught exception can carry tool arguments past the dontLogToolData flag, then apply the narrowest shared-boundary fix and re-audit.
Quick Start
Ask the agent to audit the repository's runtime logging for model or tool payload leaks using the sensitive-logging-audit workflow and report any confirmed exposures.