[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AC3W7HPNRB7F6ZER6G5ZM9":3,"skill-same:01M6AC3W7HPNRB7F6ZER6G5ZM9":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":17,"updatedAt":56,"install":57,"resources":70},"01M6AC3W7HPNRB7F6ZER6G5ZM9","sensitive-logging-audit","Python SDK 敏感数据审查","Audit or fix sensitive-data exposure in Python SDK diagnostics, exceptions, logging, and telemetry.","审查或修复 Python SDK 的诊断信息、异常、日志记录和遥测中的敏感数据暴露问题。","openai\u002Fopenai-agents-python","openai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14957082?v=4","01M6AC29YGCR4S2NTJFV0G8B81","OpenAI","01M6AC2Y1RF9XDR59QMSQSGNJF",30682,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"sensitive logging audit","logging","audit","python","sdk","telemetry","diagnostics","data","sensitive-data","python sdk","fix","data exposure","2026-11-10 10:12:30",false,"---\nname: sensitive-logging-audit\ndescription: Audit or fix sensitive-data exposure in Python SDK diagnostics, exceptions, logging, and telemetry.\n---\n\n# Sensitive Logging Audit\n\n## Objective\n\nFind candidate output sinks, trace their values manually, fix demonstrated leaks at shared runtime boundaries, and prove redaction with adversarial tests.\n\nThe collector is only a syntax-based search aid. It does not resolve Python aliases or control flow, certify policy guards, or prove that an absent candidate is safe.\n\n## Workflow\n\n### 1. Establish the review surface\n\n- Work in the current checkout and preserve unrelated changes.\n- Read `src\u002Fagents\u002F_debug.py`, `src\u002Fagents\u002Flogger.py`, and the affected callers.\n- Treat exception messages, arguments, tracebacks, causes, contexts, notes, names, URLs, and arbitrary values as potentially sensitive.\n- Read [the Python redaction validation matrix](references\u002Fredaction-validation.md).\n\nRun the collector tests, then collect candidates:\n\n```bash\nuv run python .agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Ftest_inventory.py\nuv run python .agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Finventory_logging.py \\\n  --format json --output \u002Ftmp\u002Fsensitive-logging-candidates.json\n```\n\nThe report intentionally contains no `policy`, `safe`, or guard classification.\n\n### 2. Supplement the collector with source search\n\nThe collector does not follow assignments such as `emit = logger.error`. Search the source directly and inspect aliases, callbacks, wrappers, and reflective dispatch:\n\n```bash\nrg -n '\\.(debug|info|warning|warn|error|exception|critical|fatal|log)\\b' src\u002Fagents\nrg -n '\\b(print|pprint|pp|warn|warn_explicit|write|writelines|print_exc|print_exception)\\b' src\u002Fagents\nrg -n 'DONT_LOG_(MODEL|TOOL)_DATA|log_(model|tool|model_and_tool)_action' src\u002Fagents\n```\n\nDo not turn collector coverage or a textual guard into a security conclusion. Trace producers and callers.\n\n### 3. Classify manually\n\nAssign each reviewed path one disposition:\n\n- `model`: model requests, responses, Realtime events, or derived values.\n- `tool`: tool arguments, outputs, MCP data, tool events, or derived values.\n- `model+tool`: either class may reach the sink.\n- `operational`: demonstrated to contain only non-sensitive SDK metadata.\n- `intentional-output`: explicitly user-facing output rather than diagnostics.\n- `uncertain`: source tracing is incomplete.\n\nRecord evidence in the audit report. The script does not validate or inherit dispositions.\n\n### 4. Fix runtime boundaries\n\nBefore changing runtime behavior, use `$implementation-strategy`.\n\n- Check the relevant `_debug.DONT_LOG_MODEL_DATA` and `_debug.DONT_LOG_TOOL_DATA` flags before formatting or inspecting sensitive values.\n- Redact mixed model\u002Ftool values when either flag disables data logging.\n- In redacted mode, emit a fixed message and omit sensitive `args`, `extra`, and `exc_info`.\n- Build diagnostic-only context lazily so redacted mode never reads it.\n- Preserve useful diagnostics when sensitive-data logging is explicitly enabled.\n- Keep logging failure from changing fallback, cleanup, event, rejection, or cancellation behavior.\n- For MCP URLs, remove credentials, query parameters, and fragments in diagnostic mode; never use sanitized names as a substitute for fixed redacted messages.\n\n### 5. Prove caller behavior\n\nAdd tests at every changed caller boundary. Inspect the complete `LogRecord`, not only rendered text. Test both redacted policies, diagnostic mode, hostile objects, exception chains, and the caller's observable fallback or cleanup behavior as applicable.\n\n### 6. Re-run and close out\n\nRe-run the collector, the manual searches, focused tests, and applicable repository gates. Use `$code-change-verification` for runtime or test changes and `$pr-draft-summary` when required.\n\nReport candidate counts as search coverage only. Lead with confirmed leaks fixed, retained intentional output, reviewed uncertainty, and verification results. Never report a clean collector result as proof that no sensitive logging path exists.\n","# Sensitive Logging Audit\n\n## Objective\n\nFind candidate output sinks, trace their values manually, fix demonstrated leaks at shared runtime boundaries, and prove redaction with adversarial tests.\n\nThe collector is only a syntax-based search aid. It does not resolve Python aliases or control flow, certify policy guards, or prove that an absent candidate is safe.\n\n## Workflow\n\n### 1. Establish the review surface\n\n- Work in the current checkout and preserve unrelated changes.\n- Read `src\u002Fagents\u002F_debug.py`, `src\u002Fagents\u002Flogger.py`, and the affected callers.\n- Treat exception messages, arguments, tracebacks, causes, contexts, notes, names, URLs, and arbitrary values as potentially sensitive.\n- Read [the Python redaction validation matrix](references\u002Fredaction-validation.md).\n\nRun the collector tests, then collect candidates:\n\n```bash\nuv run python .agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Ftest_inventory.py\nuv run python .agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Finventory_logging.py \\\n  --format json --output \u002Ftmp\u002Fsensitive-logging-candidates.json\n```\n\nThe report intentionally contains no `policy`, `safe`, or guard classification.\n\n### 2. Supplement the collector with source search\n\nThe collector does not follow assignments such as `emit = logger.error`. Search the source directly and inspect aliases, callbacks, wrappers, and reflective dispatch:\n\n```bash\nrg -n '\\.(debug|info|warning|warn|error|exception|critical|fatal|log)\\b' src\u002Fagents\nrg -n '\\b(print|pprint|pp|warn|warn_explicit|write|writelines|print_exc|print_exception)\\b' src\u002Fagents\nrg -n 'DONT_LOG_(MODEL|TOOL)_DATA|log_(model|tool|model_and_tool)_action' src\u002Fagents\n```\n\nDo not turn collector coverage or a textual guard into a security conclusion. Trace producers and callers.\n\n### 3. Classify manually\n\nAssign each reviewed path one disposition:\n\n- `model`: model requests, responses, Realtime events, or derived values.\n- `tool`: tool arguments, outputs, MCP data, tool events, or derived values.\n- `model+tool`: either class may reach the sink.\n- `operational`: demonstrated to contain only non-sensitive SDK metadata.\n- `intentional-output`: explicitly user-facing output rather than diagnostics.\n- `uncertain`: source tracing is incomplete.\n\nRecord evidence in the audit report. The script does not validate or inherit dispositions.\n\n### 4. Fix runtime boundaries\n\nBefore changing runtime behavior, use `$implementation-strategy`.\n\n- Check the relevant `_debug.DONT_LOG_MODEL_DATA` and `_debug.DONT_LOG_TOOL_DATA` flags before formatting or inspecting sensitive values.\n- Redact mixed model\u002Ftool values when either flag disables data logging.\n- In redacted mode, emit a fixed message and omit sensitive `args`, `extra`, and `exc_info`.\n- Build diagnostic-only context lazily so redacted mode never reads it.\n- Preserve useful diagnostics when sensitive-data logging is explicitly enabled.\n- Keep logging failure from changing fallback, cleanup, event, rejection, or cancellation behavior.\n- For MCP URLs, remove credentials, query parameters, and fragments in diagnostic mode; never use sanitized names as a substitute for fixed redacted messages.\n\n### 5. Prove caller behavior\n\nAdd tests at every changed caller boundary. Inspect the complete `LogRecord`, not only rendered text. Test both redacted policies, diagnostic mode, hostile objects, exception chains, and the caller's observable fallback or cleanup behavior as applicable.\n\n### 6. Re-run and close out\n\nRe-run the collector, the manual searches, focused tests, and applicable repository gates. Use `$code-change-verification` for runtime or test changes and `$pr-draft-summary` when required.\n\nReport candidate counts as search coverage only. Lead with confirmed leaks fixed, retained intentional output, reviewed uncertainty, and verification results. Never report a clean collector result as proof that no sensitive logging path exists.\n",{"name":5,"description":7},"main","e355d69152d4f4730dfb03b63dbce53e8d9f5d8c",".agents\u002Fskills\u002Fsensitive-logging-audit",5060,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","https:\u002F\u002Fopenai.github.io\u002Fopenai-agents-python\u002F","https:\u002F\u002Fgithub.com\u002Fopenai","https:\u002F\u002Fopenai.com\u002F","2026-11-15 03:02:55",{"source":9,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add openai\u002Fopenai-agents-python --skill sensitive-logging-audit",{"tool":63,"command":64},"bunx","bunx skills add openai\u002Fopenai-agents-python --skill sensitive-logging-audit",{"tool":66,"command":67},"pnpm","pnpm dlx skills add openai\u002Fopenai-agents-python --skill sensitive-logging-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002FSKILL.md",true,[71,77,81,87],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"agents\u002Fopenai.yaml","REFERENCE","参考文档",244,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002Fagents\u002Fopenai.yaml",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fredaction-validation.md",4323,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002Freferences\u002Fredaction-validation.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Finventory_logging.py","SCRIPT","脚本",11946,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Finventory_logging.py",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Ftest_inventory.py",5669,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsensitive-logging-audit\u002Fscripts\u002Ftest_inventory.py",[92,114,135,161,184,205],{"skillNo":93,"name":94,"nameZh":95,"description":96,"descriptionZh":97,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":98,"categories":99,"keywords":106,"publishedAt":43},"01M6AC44SFMJ4HVV9JMHG512AF","csv-workbench","CSV 文件分析与数值摘要","Analyze CSV files in \u002Fmnt\u002Fdata and return concise numeric summaries.","分析 \u002Fmnt\u002Fdata 中的 CSV 文件，并返回简明的数值摘要。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002Fexamples\u002Ftools\u002Fskills\u002Fcsv-workbench\u002FSKILL.md",[100,103],{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":104,"categoryName":105,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[107,108,109,110,111,112,113,38],"csv workbench","csv","analyze csv files","summaries","concise","files","analyze",{"skillNo":115,"name":116,"nameZh":117,"description":118,"descriptionZh":119,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":128,"publishedAt":43},"01M6AC4378JAXKE5EY80EP53YJ","playwright","Playwright 浏览器自动化","Use when the task requires capturing or automating a real browser from the terminal.","当任务需要从终端捕获真实浏览器画面或对其进行自动化操作时使用。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002Fexamples\u002Fsandbox\u002Ftutorials\u002Fvision_website_clone\u002Fskills\u002Fplaywright\u002FSKILL.md",[122,125],{"categoryNo":123,"categoryName":124,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":126,"categoryName":127,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH2SFTXSGVVGVBMDTMWK","桌面自动化与界面操作",[116,129,130,131,132,133,134],"terminal","browser","use","task","real browser","when",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":149,"publishedAt":43},"01M6AC41D0TJJSDT1GR852DPZK","prior-auth-packet-builder","医疗预授权资料包生成","Build a concise prior authorization packet from local case files and payer policy docs.","根据本地病例文件和付款方政策文档，生成简洁的预先授权资料包。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002Fexamples\u002Fsandbox\u002Fhealthcare_support\u002Fskills\u002Fprior-auth-packet-builder\u002FSKILL.md",[143,146],{"categoryNo":144,"categoryName":145,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C1B18J3Q6FY9X0NSTS4WCH","保险理赔处理",{"categoryNo":147,"categoryName":148,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C1B1928VAAJFQYEZAAW1XW","理赔专员",[150,151,152,112,153,154,155,156,111,157,158,159,160],"builder","prior auth packet builder","auth","build","local","prior authorization","case","payer","authorization","docs","policy",{"skillNo":162,"name":163,"nameZh":164,"description":165,"descriptionZh":166,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":167,"categories":168,"keywords":175,"publishedAt":43},"01M6AC3ZYJZVN0CQBJTJR59TXX","credit-note-fixer","贷项通知单格式修复","Fix the tiny credit-note formatting bug and rerun the exact targeted test command.","修复贷项通知单（credit note）的格式小错误，并重新运行确切指定的测试命令。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002Fexamples\u002Fsandbox\u002Fdocs\u002Fskills\u002Fcredit-note-fixer\u002FSKILL.md",[169,172],{"categoryNo":170,"categoryName":171,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":173,"categoryName":174,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[176,177,178,179,180,41,181,182,183],"note","fixer","credit note fixer","test","command","bug","formatting","rerun",{"skillNo":185,"name":186,"nameZh":187,"description":188,"descriptionZh":189,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":190,"categories":191,"keywords":196,"publishedAt":43},"01M6AC3Y77VB5C437JYFS42QFH","test-coverage-improver","Python SDK 测试覆盖率提升","Measure Python SDK coverage or address measured coverage gaps. Use for coverage audits and metric regressions, not routine test additions.","测量 Python SDK 的覆盖率，或处理已测出的覆盖缺口。用于覆盖率审计和指标回退，而非日常新增测试。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftest-coverage-improver\u002FSKILL.md",[192,193],{"categoryNo":123,"categoryName":124,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":194,"categoryName":195,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[197,198,199,179,200,34,35,201,40,131,202,203,204],"test coverage","coverage","test coverage improver","metric","coverage gaps","for","gaps","routine",{"skillNo":206,"name":207,"nameZh":208,"description":209,"descriptionZh":210,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":211,"categories":212,"keywords":215,"publishedAt":43},"01M6AC3T3T4PX36423023Y6MG8","runtime-behavior-probe","运行时行为探测规划","Plan controlled runtime probes when explicitly invoked; execute only after the required probe approval.","在被明确调用时规划受控的运行时探测；仅在获得所需的探测批准后方可执行。","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fruntime-behavior-probe\u002FSKILL.md",[213,214],{"categoryNo":170,"categoryName":171,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":173,"categoryName":174,"taxonomyType":28,"taxonomyTypeDesc":29},[216,217,218,219,220,221,222,223,134],"runtime behavior probe","behavior","runtime","probe","plan","execute","approval","only"]