Skip to content

fix: redact MCP names inside transcripts quoted in tool results - #27

Merged
vunm-dev merged 1 commit into
release/v0.5.0from
fix/pdn-0004-redact-nested-transcripts
Sep 30, 2026
Merged

vunm-dev merged 1 commit into
release/v0.5.0from
fix/pdn-0004-redact-nested-transcripts

Conversation

@vunm-dev

Copy link
Copy Markdown
Member

sanitize.sh reduced init events by type, but a tool result can carry a
whole raw transcript the host read, and its init event is a string there.
The per-event reduction never looks inside it, which is how one MCP server
name reached docs/evidence/e-claude-1.

A final pass now redacts MCP server entries and mcp__ tool-name prefixes
in any form, escaped or not. Checked on a synthetic run with a transcript
quoted once and twice: nothing survives, every line stays valid JSON, other
content is untouched, and a second run changes nothing. Re-running it over
the committed v0.5.0 evidence changes no file.

The e-claude-1 README records the one redacted name in its record.

Stacked on the Layer B evidence PR, which introduces sanitize.sh; retarget to release/v0.5.0 once that one lands. Part of PDN-0004.

🤖 Generated with Claude Code

Base automatically changed from test/pdn-0004-s7-layer-b-evidence to release/v0.5.0 September 30, 2026 17:01
sanitize.sh reduced init events by type, but a tool result can carry a
whole raw transcript the host read, and its init event is a string there.
The per-event reduction never looks inside it, which is how one MCP server
name reached docs/evidence/e-claude-1.

A final pass now redacts MCP server entries and mcp__ tool-name prefixes
in any form, escaped or not. Checked on a synthetic run with a transcript
quoted once and twice: nothing survives, every line stays valid JSON, other
content is untouched, and a second run changes nothing. Re-running it over
the committed v0.5.0 evidence changes no file.

The e-claude-1 README records the one redacted name in its record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vunm-dev
vunm-dev force-pushed the fix/pdn-0004-redact-nested-transcripts branch from 26b81ab to 5db6821 Compare September 30, 2026 17:02
@vunm-dev
vunm-dev merged commit 16de389 into release/v0.5.0 Sep 30, 2026
7 checks passed
@vunm-dev
vunm-dev deleted the fix/pdn-0004-redact-nested-transcripts branch September 30, 2026 17:28
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.

1 participant