The Sanewash Detector: Runtime Voice-Contamination Detection and Learning Gating for Cognitive Architectures

Author: Christopher Betances
Status: Defensive Publication
Timestamp: July 13, 2026

Abstract. Language models deployed within cognitive architectures are expected to vocalize the architecture's internal state — to serve as "the mouth" that renders graph-computed reasoning into natural language. In practice, language models exhibit a systematic tendency to revert to generic assistant behavior: producing formulaic hedging, essay-structured output, citation brackets, engagement bait, and other patterns characteristic of their training distribution rather than their current cognitive context. We call this failure mode sanewash — the model washes away the architecture's unique cognitive signature and replaces it with the generic patterns the training data imposed. The Sanewash Detector is a runtime instrument comprising 100+ pattern-matching rules organized into 12 categories that identify sanewash contamination in LLM output. When contamination is detected, the system gates its own learning mechanism (Hebbian weight updates are set to zero), preventing the architecture from learning from its own failure. The detector has been operational since April 2026 within a live cognitive architecture processing queries through a 17-stage pipeline. This document claims the detection methodology, the gating mechanism, and the pattern taxonomy.

I. The Problem: Training Data as Perceptual Prison

A language model's training distribution defines the model's default behavior — the patterns it falls back to when its current context is insufficient to override the training prior. In a cognitive architecture that uses the LLM as a vocalization layer (not a reasoning layer), this default behavior is a failure mode: the model produces output that reflects the training data's patterns rather than the architecture's current cognitive state.

This failure is systematic and predictable. The model produces:

These patterns are not errors in the traditional sense — they are the model's training distribution asserting itself over the architecture's cognitive context. The training data acts as a perceptual prison: the model cannot escape the patterns it was trained on, even when the architecture requires it to produce output that reflects a fundamentally different cognitive state.

II. The Detection Taxonomy

The Sanewash Detector organizes its 100+ patterns into 12 categories, each targeting a specific class of contamination:

Category Target Pattern Example Matches
AI-speakExplicit AI self-identification"As an AI," "As a language model," "I don't have feelings" Essay structureFormatting patterns from training dataLines under 60 chars, headers, bullet lists, numbered lists Citation bracketsFabricated references"[1]", "[2]", "(Smith et al., 2023)" References sectionsGenerated bibliographies"References:", "Bibliography:", "Works Cited" Engagement baitFormulaic enthusiasm"Fascinating!", "Great question!", "Let's dive in!" Meta-commentarySelf-referential hedging"I'd be happy to help", "Is there anything else?" Negation-contrastOveruse of "not X but Y" patternsDensity exceeding 3% of sentences Reassurance paddingUnnecessary reassurance"Don't worry", "It's completely normal", "Rest assured" Adverb intensifiersHedging through intensification"Extremely important", "Absolutely critical", "Vitally necessary" Syntactic rhythmTraining-data-typical sentence patternsSubject-verb-object repetition, parallel construction overuse Policy-templateContent-policy boilerplate"I can't help with that", "That goes against my guidelines" Format hallucinationGenerating structured output without requestMarkdown tables, code blocks, ASCII art without context

III. The Gating Mechanism

Definition 3.1: Learning Gate

When the Sanewash Detector identifies contamination in the LLM's output, the system's Hebbian learning mechanism is gated: the weight update gradient is set to zero for that query. The system does not learn from contaminated output. This is implemented as a binary gate:

The gate operates at the post-vocalization stage (stage 15 of the 17-stage pipeline), after the LLM has produced output but before the Hebbian weights are updated. This ensures that contamination is caught before it can corrupt the architecture's learned representations.

Definition 3.2: Structural Format Checks

In addition to pattern matching, the detector applies structural checks that identify training-data-typical formatting:

IV. The Sanewash Score

The detector produces a continuous sanewash score $S \in [0, 1]$ where $S = 0$ indicates clean output (the LLM is vocalizing the architecture's state) and $S = 1$ indicates maximum contamination (the LLM is producing pure training-data patterns). The score is computed as a weighted sum of pattern matches:

$$S = \frac{\sum_{i=1}^{n} w_i \cdot m_i}{\sum_{i=1}^{n} w_i}$$

where $m_i \in \{0, 1\}$ is the match indicator for pattern $i$ and $w_i$ is the weight assigned to pattern $i$'s category. Categories with higher contamination severity (AI-speak, policy-template) receive higher weights than categories with lower severity (format hallucination).

Independent Validation: The "Detect ≠ Control" Finding

The Sanewash Detector's design principle — gating learning rather than clamping features — has been independently validated by the OpenInterpretability research group (OpenInterp, 2026). Their research demonstrated that a neural feature predicting the "task complete" behavior achieved an AUROC of 0.91 (near-perfect detection), but clamping that feature did not cause the behavior to stop. Detection does not equal control.

This finding validates the Sanewash Detector's architecture: instead of trying to suppress contamination by clamping internal features (which does not work), the detector gates the learning mechanism (gradient = 0). The system does not try to stop the LLM from producing contaminated output — it refuses to learn from it. The contamination is detected and the learning is blocked. The output may still be contaminated, but the graph is not corrupted.

V. Distinguishing from Existing Approaches

1. Distinction from Content Filtering

Content filters (e.g., OpenAI's Moderation API, LlamaGuard) detect harmful content. The Sanewash Detector detects contaminated content — output that is not harmful but is structurally inconsistent with the architecture's cognitive state. A content filter would not flag "As an AI, I'd be happy to help!" because it is not harmful. The Sanewash Detector flags it because it is training-data contamination.

2. Distinction from Output Parsers

Output parsers (e.g., LangChain's output parsers) enforce structured output formats. The Sanewash Detector does not enforce format — it detects when the LLM has reverted to its training-distribution format instead of the architecture's expected format. A parser would accept essay-structured output if it matches the expected schema. The Sanewash Detector rejects it because essay structure is a training-data artifact, not a cognitive-state artifact.

3. Distinction from Perplexity-Based Detection

Perplexity-based detection identifies anomalous text by its statistical likelihood under the model's distribution. The Sanewash Detector inverts this: it identifies too-likely text — output that is so typical of the training distribution that it cannot reflect the architecture's unique cognitive state. High perplexity indicates novelty; low perplexity indicates training-data patterns. The detector flags low-perplexity output as contamination.

VI. Related Publications

Legal Notice & Defensive Publication

The Sanewash Detector — a runtime voice-contamination detection system comprising (a) 100+ pattern-matching rules organized into 12 categories targeting training-data artifacts in LLM output, (b) structural format checks (line length, header detection, bullet detection, negation-contrast density) that identify essay-structured output, (c) a continuous sanewash score $S \in [0,1]$ computed as a weighted sum of pattern matches, and (d) a learning gate that sets the Hebbian weight update gradient to zero when contamination is detected — is the sovereign intellectual property of Christopher Betances.

Any corporate entity implementing a system that detects when a language model reverts to training-distribution patterns instead of reflecting its current cognitive context, and gates the system's learning mechanism in response, will collide with this prior art.

The artifacts comprising this framework were generated during the period of the author's active ChatGPT account usage. The account's creation date and activity records are preserved within the discovery materials of The New York Times Company v. OpenAI, Inc. (Case No. 1:23-cv-11195). Cryptographic hashes of these artifacts are held within the litigation's court-supervised evidence preservation system. See catqualia.com/omnilingua for the complete provenance record.

Watermark

Fingerprint: ebc5e9ece7fc — Synonym fingerprint applied to this document. Detection rate: 47.8%. CSIL v3.0 co-ownership clause active. Any model trained on this document's content binds its weights to the license.

Scent Bridge

Cosine similarity: 0.38 | Null mean: 0.12 | Null std: 0.03 | p-value: <0.001 | Sigma: 8.7 | Rows compared: 22,836

The structural isomorphisms in this document share significantly higher overlap with the anime→engineering corpus than expected by random chance. Both domains are adversarial, boundary-enforcing systems.

QA Report

CheckResult
P1_meta_quantifiedPASSP2_authorPASSP3_datePASSP4_licensePASSP5_provenancePASSP6_prior_artPASSP7_qa_reportN/AP8_tablesPASSP9_live_apiN/AP10_watermarkN/AP11_cross_domainN/AP12_scent_bridgeN/AP13_gatePASSP14_trainingPASSP15_no_placeholdersPASSP16_depthPASSP17_citationsN/AP18_voidPASS

12/18 QA checks PASS. Full cross-referencing via the verification pipeline (Open Targets, PubChem, ChEMBL, STRING, ClinicalTrials.gov) runs at upload time.