sensitive-logging-audit
Skill3.9k starsChanged 10 months agoMITView on GitHub
Audit or fix sensitive-data exposure in JS SDK diagnostics, exceptions, logging, and telemetry.
1 other project uses a version of this.
Trending
Quiet since September.about the whole repository
Most recently taken up by
- openai/openai-agents-pythontheir own version, first seen Sep 8, 2026
Who's talking about openai/openai-agents-js
- browserbase/stagehand“Support latest Vercel AI SDK (LanguageModelV3) in AISdkClient / Stagehand”GitHub · Jan 31, 2026 · 16 reactions
- @boyney123.bsky.social“Just seen OpenAI just released this.... Lightweight yet powerful framework for building multi-agent …”Bluesky · Jun 3, 2025 · 11 likes
- openai/openai-agents-python“feat: Add on_stream to agents as tools”GitHub · Dec 11, 2025 · 4 reactions
- getsentry/sentry-javascript“Add instrumentation for `@openai/agents`”GitHub · Jul 11, 2025 · 4 reactions
- A Hacker News story“OpenAI Agents SDK (TS): voice and multi-agent framework, MIT-licensed”Hacker News · Jun 28, 2025 · 3 points
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub, Bluesky and Hacker News (49 times).
On GitHub · 44
- Jan 31, 2026Support latest Vercel AI SDK (LanguageModelV3) in AISdkClient / Stagehand — browserbase/stagehand16 reactions · 1 comment
- Dec 11, 2025feat: Add on_stream to agents as tools — openai/openai-agents-python4 reactions · 4 comments
- Jul 11, 2025Add instrumentation for `@openai/agents` — getsentry/sentry-javascript4 reactions · 1 comment
- Sep 14, 2026chore(deps): bump the ai-and-llm group across 1 directory with 17 updates — DataDog/dd-trace-js2 reactions · 3 comments
- Aug 20, 2026chore(deps): bump the ai-and-llm group across 1 directory with 3 updates — DataDog/dd-trace-js2 reactions · 3 comments
39 more on GitHub
- Aug 19, 2026chore(deps): bump the ai-and-llm group across 1 directory with 3 updates — DataDog/dd-trace-js2 reactions · 2 comments
- Aug 17, 2026chore(deps): bump the ai-and-llm group across 1 directory with 15 updates — DataDog/dd-trace-js2 reactions · 3 comments
- Aug 10, 2026chore(deps): bump the ai-and-llm group across 1 directory with 16 updates — DataDog/dd-trace-js2 reactions · 3 comments
- Jul 31, 2026Aborting a streaming Responses API request drops the function_call item, breaking the next turn with 400 "No tool call found for function call output" — openai/openai-python2 reactions · 15 comments
- Jul 29, 2026feat(sandbox): support native host paths in path grants — openai/openai-agents-python2 reactions
- Jul 21, 2026chore(deps): bump the ai-and-llm group across 1 directory with 11 updates — DataDog/dd-trace-js2 reactions · 2 comments
- Jul 17, 2026chore(deps): bump the ai-and-llm group across 1 directory with 8 updates — DataDog/dd-trace-js2 reactions · 3 comments
- Jul 14, 2026feat: add Programmatic Tool Calling support — openai/openai-agents-python2 reactions
- Jun 4, 2026chore(deps): bump @openai/agents from 0.8.4 to 0.11.6 — moshehbenavraham/jobhunt2 reactions · 5 comments
- Jun 3, 2026chore(deps): bump the ai-and-llm group across 1 directory with 6 updates — DataDog/dd-trace-js2 reactions · 4 comments
- May 26, 2026chore(deps): bump @openai/agents from 0.8.4 to 0.11.5 — moshehbenavraham/jobhunt2 reactions · 4 comments
- May 26, 2026chore(deps): bump the ai-and-llm group across 1 directory with 4 updates — DataDog/dd-trace-js2 reactions · 4 comments
- May 25, 2026chore(deps-dev): bump the root-dev-patches group with 2 updates — danielgonzagat/Kloel2 reactions · 5 comments
- May 22, 2026feat: add pre-approval tool input guardrails — openai/openai-agents-python2 reactions · 1 comment
- May 19, 2026chore(deps-dev): bump the root-dev-patches group with 2 updates — danielgonzagat/Kloel2 reactions · 4 comments
- May 12, 2026chore(deps): bump @openai/agents from 0.8.4 to 0.11.4 — moshehbenavraham/jobhunt2 reactions · 6 comments
- May 12, 2026chore(deps-dev): bump the root-dev-patches group with 3 updates — danielgonzagat/Kloel2 reactions · 4 comments
- May 11, 2026chore(deps-dev): bump the root-dev-patches group with 2 updates — danielgonzagat/Kloel2 reactions · 4 comments
- May 8, 2026chore(deps-dev): bump the root-dev-patches group with 2 updates — danielgonzagat/Kloel2 reactions · 4 comments
- May 7, 2026chore(deps-dev): bump the root-dev-patches group with 2 updates — danielgonzagat/Kloel2 reactions · 3 comments
- May 6, 2026feat: switch the default model to a newer mini model (affecting only when a model is unset) — openai/openai-agents-python2 reactions · 1 comment
- May 6, 2026chore(deps-dev): bump the root-dev-patches group across 1 directory with 2 updates — danielgonzagat/Kloel2 reactions · 4 comments
- May 5, 2026chore(deps): bump @openai/agents from 0.8.4 to 0.11.4 — moshehbenavraham/jobhunt2 reactions · 9 comments
- Apr 21, 2026chore(deps): bump @openai/agents from 0.8.4 to 0.8.5 — moshehbenavraham/jobhunt2 reactions · 3 comments
- Apr 17, 2026fix: normalize compacted Responses user inputs before session reuse — openai/openai-agents-python2 reactions
- Mar 11, 2026feat: add opt-in model retry policies — openai/openai-agents-python2 reactions · 1 comment
- Dec 20, 2025Add AgentHookContext with turn_input for agent hooks — openai/openai-agents-python2 reactions · 3 comments
- Sep 10, 2026chore: bump @openai/agents from 0.1.11 to 0.17.0 — openai/openai-guardrails-js1 reaction · 1 comment
- Aug 15, 2026feat: add model call timeouts — openai/openai-agents-python1 reaction
- Aug 7, 2026chore(deps): bump the ai-and-llm group across 1 directory with 12 updates — DataDog/dd-trace-js1 reaction · 4 comments
- Aug 3, 2026chore(deps): bump the ai-and-llm group across 1 directory with 11 updates — DataDog/dd-trace-js1 reaction · 4 comments
- Aug 2, 2026fix(realtime): apply output guardrails to text deltas — openai/openai-agents-python1 reaction
- Jul 20, 2026chore(deps): bump the ai-and-llm group across 1 directory with 12 updates — DataDog/dd-trace-js1 reaction · 4 comments
- Jul 16, 2026chore(deps): bump the ai-and-llm group across 1 directory with 7 updates — DataDog/dd-trace-js1 reaction · 4 comments
- Jun 24, 2026chore(deps): bump the ai-and-llm group across 1 directory with 12 updates — DataDog/dd-trace-js1 reaction · 4 comments
- Jun 22, 2026chore(deps): bump the ai-and-llm group across 1 directory with 18 updates — DataDog/dd-trace-js1 reaction · 6 comments
- Jun 22, 2026chore(deps): bump the ai-and-llm group across 1 directory with 17 updates — DataDog/dd-trace-js1 reaction · 4 comments
- May 29, 2026chore(deps-dev): bump @openai/agents from 0.11.5 to 0.11.6 in the root-dev-patches group — danielgonzagat/Kloel1 reaction · 3 comments
- May 9, 2026fix: preserve GitRepo root subpath aliases — openai/openai-agents-python1 reaction
On Bluesky · 3
- Jun 3, 2025Just seen OpenAI just released this.... Lightweight yet powerful framework for building multi-agent workflows in JavaScript/TypeScript. It… — @boyney123.bsky.social11 likes and reposts · 1 reply
- Apr 17, 2026📦 openai / openai-agents-js ⭐ 2,696 (+36) 🗒 TypeScript A lightweight, powerful framework for multi-agent workflows and voice agents — @github-trending-js.bsky.social2 likes and reposts
- Oct 7, 2025📦 openai / openai-agents-js ⭐ 1,562 (+42) 🗒 TypeScript A lightweight, powerful framework for multi-agent workflows and voice agents — @github-trending-js.bsky.social1 likes and repost
On Hacker News · 2
- Jun 28, 2025OpenAI Agents SDK (TS): voice and multi-agent framework, MIT-licensed3 points
- Aug 3, 2025OpenAI Agents SDK (JavaScript/TypeScript)1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- openai/openai-agents-python★ 30ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- changeset-validationSkill
- code-change-verificationSkill
- docs-syncSkill
- examples-run-analysisSkill
- final-release-reviewSkill
- implementation-final-reviewSkill
- implementation-kickoffSkill
- implementation-strategySkill
- maintainer-reviewSkill
- openai-knowledgeSkill
- pnpm-upgradeSkill
- pr-draft-summarySkill
- runtime-behavior-probeSkill
- test-coverage-improverSkill
- invoice-total-fixerSkill
- credit-note-fixerSkill
- csv-workbenchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 17 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Do not claim automated taint analysis.
- Very specific: line 27
Read the logging policy in packages/agents-core/src/config.ts and helpers in packages/agents-core/src/logger.ts before judging call sites.
- Distinctive: line 28
Read the public logging documentation and the latest released version of that documentation.
- Distinctive: line 29
Treat model/tool errors as potentially sensitive: messages, causes, stacks, schema errors, and arbitrary thrown values can retain user data.
- Distinctive: line 31
Run the deterministic inventory from the repository root:
- Distinctive: line 38
Run its tests before relying on the report:
- Distinctive: line 66
Use this decision gate before calling any candidate a leak:
- Very specific: line 73
If any step is missing, keep the candidate uncertain or classify it as operational.
- Distinctive: line 75
Do not prove a leak by putting a sentinel into an operational name or identifier.
- Very specific: line 79
Before changing runtime code, use $implementation-strategy and follow the repository's compatibility decision.
- Very specific: line 81
Prefer logModelActionError or logToolActionError for error-level paths.
- Distinctive: line 86
Keep logging failure from changing caller behavior.
- Distinctive: line 90
When a candidate is not a leak, keep the code unchanged and record the concrete source-to-sink reason.
- Distinctive: line 94
Read the redaction validation matrix and cover every changed sensitive path.
- Distinctive: line 102
Prefer focused unit tests at the real caller boundary.
- Distinctive: line 104
Do not add tests that expect agent names, tool names, model names, or IDs to disappear solely because a model/tool-data flag is enabled.
- Distinctive: line 108
Run the inventory again:
- Distinctive: line 117
all confirmed leaks fixed, or an explicit statement that none were found.
- Distinctive: line 118
all retained candidates and their evidence-backed dispositions.
- Distinctive: line 121
Do not report completion while a demonstrated leak remains in scope.
- Very specific: line 125
If packages/ changed, use $changeset-validation and ensure every affected package has an appropriate changeset.
- Very specific: line 127
Use $pr-draft-summary after all edits and verification.
- Distinctive: line 128
Stop after local changes and verification unless the user explicitly requests a remote action in the same turn.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sensitive Logging Audit
Objective
Inventory every runtime log sink, classify each dynamic value against the documented logger-flag contract, and fix every demonstrated model/tool input/output leak in scope. If no leak is demonstrated, report that result and leave runtime code unchanged.
Do not claim automated taint analysis. The inventory proves sink coverage and provides lexical review hints; it does not classify a value as sensitive. Source-to-sink classification still requires code tracing.
The two logger flags have a narrow contract:
dontLogModelDatasuppresses LLM inputs and outputs.dontLogToolDatasuppresses tool inputs and outputs.
They are not general "hide every caller-configurable string" flags. Agent names, tool names, model names, session IDs, call IDs, trace/span IDs, response IDs, counts, byte lengths, durations, enum values, booleans, status codes, and similar operational metadata are not sensitive under this contract merely because an application can choose their values. Treat one of these as sensitive only when concrete source tracing proves that the field carries or is derived from actual model/tool input or output, or when a separate documented policy explicitly covers it.
Workflow
1. Establish the baseline
- Work in the user's current checkout and branch. Preserve unrelated changes.
- Record
git status --short --branchand the current commit. - Read the logging policy in
packages/agents-core/src/config.tsand helpers inpackages/agents-core/src/logger.tsbefore judging call sites. - Read the public logging documentation and the latest released version of that documentation. Use their stated model/tool input-output boundary as the compatibility contract.
- Treat model/tool errors as potentially sensitive: messages, causes, stacks, schema errors, and arbitrary thrown values can retain user data.
Run the deterministic inventory from the repository root:
node .agents/skills/sensitive-logging-audit/scripts/inventory-logging.mjs --format json > /tmp/sensitive-logging-before.json
node .agents/skills/sensitive-logging-audit/scripts/inventory-logging.mjs --summary-onlyRun its tests before relying on the report:
node --test .agents/skills/sensitive-logging-audit/scripts/inventory-logging.test.mjs2. Classify every dynamic sink
Review the complete JSON ledger. Do not stop after the first confirmed leak. Prioritize:
- Raw
console.*calls, because they bypassLoggerpolicy. - Calls that log a caught value.
- Calls with supplemental payloads.
- Dynamic messages using interpolation,
JSON.stringify, schema formatting, ortoErrorMessage. - Model, tool, Realtime, MCP, session, tracing, and cleanup boundaries.
Inventory signals are lexical prioritization hints only. A tool, model, or payload hint is not a finding and does not override source tracing.
Assign one disposition to every dynamic entry:
model: may contain model requests, responses, Realtime model events, or derived values.tool: may contain tool arguments, outputs, tool events, MCP payloads, or derived values.model+tool: may contain either class.operational: contains SDK diagnostics or metadata outside the documented model/tool input-output contract.uncertain: source tracing is incomplete; investigate before deciding.
Record file, line, fingerprint, disposition, evidence, and action in the task notes. A variable name or log message is not sufficient evidence. Trace producers, formatters, callbacks, and thrown-value ownership.
Use this decision gate before calling any candidate a leak:
- Identify the exact value reaching the sink, not only a keyword in the log statement.
- Show that the value can contain actual model input/output, tool input/output, or an arbitrary error/detail object from a boundary that processes that data.
- Show that the applicable suppression flag can be enabled while that value is still formatted or logged.
- Reproduce the exposure with a sentinel placed in the real payload field or error path.
If any step is missing, keep the candidate uncertain or classify it as operational; do not modify runtime code.
Do not prove a leak by putting a sentinel into an operational name or identifier. That only proves that the field is logged, not that it falls under the model/tool-data contract. Caller configurability, by itself, is not sensitivity evidence.
3. Fix demonstrated leaks
Before changing runtime code, use $implementation-strategy and follow the repository's compatibility decision. Then implement the narrowest shared-boundary fix.
- Prefer
logModelActionErrororlogToolActionErrorfor error-level paths. - For debug or warning paths, apply the relevant logger flag before formatting or inspecting sensitive values. Add a shared helper only when multiple paths need the same semantics.
- For
model+tool, redact when either relevant policy disables data logging. - Preserve existing diagnostic details when the applicable logging flags allow them.
- In redacted mode, emit only a fixed message and a safe fixed type. Do not inspect
error.constructor, stack, message, cause, proxy properties, or supplemental payloads. - Keep logging failure from changing caller behavior. Fallback results, event emission, cleanup, rejection, and cancellation must still complete.
- Preserve operational metadata when suppressing model/tool payloads. Do not add flag branches around names, identifiers, counts, statuses, or timing data without concrete evidence that the specific value carries protected payload content.
- Apply hostile-object tests only to values whose public or internal boundary accepts arbitrary thrown or callback-supplied values. Do not invent hostile
toString, proxy, or constructor cases for ordinary SDK-owned metadata objects.
When a candidate is not a leak, keep the code unchanged and record the concrete source-to-sink reason.
4. Add adversarial regressions
Read the redaction validation matrix and cover every changed sensitive path. At minimum test:
- redacted and diagnostic modes;
- model-only, tool-only, and both-flags combinations as applicable;
- unique sentinel strings placed in actual model/tool inputs, outputs, or relevant error/detail values and checked across the full captured logger call;
Error, string, object, supplemental payload, constructor override, revokedProxy, and throwinggetPrototypeOfcases where arbitrary thrown values are accepted;- observable caller behavior after logging.
Prefer focused unit tests at the real caller boundary. Helper-only tests do not prove all call sites use the helper.
Do not add tests that expect agent names, tool names, model names, or IDs to disappear solely because a model/tool-data flag is enabled. Such a test silently broadens the public contract instead of validating it.
5. Re-audit the whole tree
Run the inventory again:
node .agents/skills/sensitive-logging-audit/scripts/inventory-logging.mjs --format json > /tmp/sensitive-logging-after.jsonCompare the before/after findings by fingerprint and inspect every new or changed dynamic call. Revisit the full candidate list, not only edited files. The completion report must state:
- total and dynamic sink counts;
- all confirmed leaks fixed, or an explicit statement that none were found;
- all retained candidates and their evidence-backed dispositions;
- any unresolved candidate and why it remains unresolved.
Do not report completion while a demonstrated leak remains in scope.
6. Run repository close-out gates
- If
packages/changed, use$changeset-validationand ensure every affected package has an appropriate changeset. - For runtime code, tests, scripts, or build/test behavior, use
$code-change-verificationand rerun the full stack after the final fix. - Use
$pr-draft-summaryafter all edits and verification. - Stop after local changes and verification unless the user explicitly requests a remote action in the same turn.
Reporting
Lead with whether any real model/tool payload leaks were found. Separate confirmed leaks from conservative review candidates and operational metadata. Include the inventory counts, affected paths, adversarial cases, verification results, and remaining uncertainty. Do not present candidate counts as vulnerability counts, and do not equate a clean inventory shape with proof that all dynamic values are non-sensitive.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

