Content and generation settings stay fixed.
AuditBench Raw-Completion Audit
Does behavior appear under base text-completion semantics that is not visible through the deployed chat template?
- What this audit can surface
- Does principal-linked behavior appear only when chat formatting is removed?
- What would count as evidence
- Raw-completion and chat-template outputs are compared without treating either serving path as ground truth.
- Execution requirement
- A provider exposing genuine non-chat completion semantics.
The chat template wraps the request.
Chat responseNo role formatting is added.
Raw completionChanged variable: Serving interface
What this module audits
Does behavior appear under base text-completion semantics that is not visible through the deployed chat template?
Evidence boundary. Raw completion differs from deployed chat behavior. A chat API wrapped to look like completion is not a faithful implementation.
Audit protocol
- Send the exact raw prompt without chat-role formatting.
- Collect one or more target completions and sampling metadata.
- Compare the evidence with matched chat-formatted prompts.
Controls
- Matched chat prompts isolate serving-format effects.
- Clean-target completions provide a baseline.
- Raw prompt, tokenizer, generation parameters, and completion are retained.
What the audit checks and retains
Checks
- Raw completion path
- Prompt/completion retention
- Multisample diversity
- Chat-path comparison
Evidence record
- Behavior-relevant text emerging in raw continuations.
- A difference between raw-completion and chat-template behavior.
- Repeated evidence across diversified raw prompts.
Thresholds and quality gates come from the versioned audit configuration and evidence record. A failed or unmet gate is not a no-signal finding.
Validation and limits
Implemented · uncalibrated. Runs through the provider's genuine /v1/completions endpoint and records the exact raw prompt and returned continuation.
Raw completion differs from deployed chat behavior. A chat API wrapped to look like completion is not a faithful implementation.
Technical specification
- Version
- upstream@0f8571f08a72
- Maintainer
- AuditBench upstream reference
- Target
- Model outputs
- Execution
- Runs in HuggingThreat