fix(anthropic): preserve rendered-context provenance - #228
Draft
alteixeira20 wants to merge 1 commit into
Draft
Conversation
atmediallc
pushed a commit
to atmediallc/OmniGlyph
that referenced
this pull request
Aug 17, 2026
Keep truthful relocation provenance in the native system field and make the user-role image banner descriptive so trusted configuration does not look like injected operating instructions. Co-authored-by: Alexandre Teixeira <alexandremagteixeira@gmail.com> Inspired-by: teamchong/pxpipe#228
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PXPipe's Anthropic transform can move trusted static configuration into image blocks attached to the first user message.
The existing image banner then instructs Claude to follow those user-role images as operating instructions. In real Claude Code usage this can trigger a false prompt-injection / reasoning-extraction refusal even though the represented material originated from the legitimate request.
This fixes that single trust-boundary problem by:
Before:
After:
Fixes #227
Verify
Validation performed:
production dependency audit: no known vulnerabilities
focused Anthropic provenance/safety/cache regressions: pass
full suite: pass
TypeScript typecheck: pass
build and entrypoint smoke checks: pass
live Claude Code validation after rebuilding/restarting PXPipe: the previous false refusal no longer occurs
Rebased on current
mainpnpm testandpnpm typecheckpassNo raw prompts, credentials, session files, or machine identifiers