Skip to content

lane: the WAF learned the DeepSeek Harness opener, so sanitize it too - #110

Merged
LAGcomcom merged 1 commit into
masterfrom
fix/dsh-opener-fingerprint
Oct 22, 2026
Merged

LAGcomcom merged 1 commit into
masterfrom
fix/dsh-opener-fingerprint

Conversation

@LAGcomcom

Copy link
Copy Markdown
Owner

The upstream's content gate learned DeepSeek Harness' fixed opener and refuses the request outright; the sanitize pass rewrites the known markers but not this one, so the retry is refused too and the client never gets a turn.

Measured against the live channel (same gateway, same model, only the system prompt differs):

system prompt result
You are an AI agent powered by DeepSeek Harness. 400 content gate
You are a helpful assistant. 200
DeepSeek Harness 200
You are an AI agent powered by Foo. 200
AI agent powered by DeepSeek Harness 200
you are an ai agent powered by deepseek harness. 400 (case-insensitive)

So the gate matches the whole sentence, not a single word. This adds it to wbFingerprintRewrites, rewriting it to You are an AI agent — the sentence survives, the product name does not. The rewrite still only touches the copy sent upstream; the caller's own body is untouched (deep copy).

Fixes #109

@LAGcomcom
LAGcomcom merged commit 79fccea into master Oct 22, 2026
3 checks passed
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.

[Bug] WorkBuddy 内容门拦下 DeepSeek Harness 的默认开场白:整句 you are an AI agent powered by DeepSeek Harness 被当成客户端特征

1 participant