The clean room
Status: designed and untested. This page specifies an experiment; it does not report one.
Claim: a corpus that teaches the model its own bad style (the dirty house) cannot be cleaned by a model that reads it — the source text is itself the style exemplar. The cleanup needs a barrier: the agent that writes the replacement must never read the text being replaced.
The method: three roles and a barrier
- Reader. Sees the original. Emits only structured records, never prose: one record per assertion, with typed fields (claim, referent, anchor as file:line, kind). Extracting, not summarizing.
- Writer. Sees the records, the style rules, and example passages drawn from OUTSIDE the repo. Never sees the original — it cannot imitate text it has not read. Writes the replacement.
- Checker. Sees both the original and the replacement, and answers one question: does the new text assert the same claims? Letting it see both sides is safe because it never writes — only writing carries style. When meaning was lost, it rejects; repairing would mean writing, which is the wrong side of the barrier.
Two constraints carry the whole design:
- The intermediate must be structured, not prose. Style lives in surface form — word choice, clause structure, rhythm. Typed fields have no clause structure to carry it. If the reader emits a summary paragraph instead, style crosses the barrier intact and the method does nothing.
- One unit per writer, then discard it. Measured exemplar effects decay by the second output while written rules persist — so a writer handles one file and is not reused down a list. Its style anchor is strongest on its first output and gone by its second.
And one scoping rule before any of it: substitute, never rewrite, where substitution is enough. Replacing one term with another writes no prose, so there is nothing to infect. The clean room is only for text that needs actual rewriting.
The failure hypothesis, stated up front
Two different problems hide under “bad style,” and the clean room targets only one. It is built to strip the style your corpus imported and now re-teaches — the dirty house. It does nothing about the model’s inherent default register, bubbly and over-structured, which comes from its training data rather than your repo and which no barrier around your corpus can reach (don’t ask for perfection is nearer that one). So I expect the barrier to stop the copying and not the voice: a writer that never reads my dirty docs still has its own habits, and the measured expectation for style rules is attenuation, not control. There is also a subtler leak: the reader picks the words inside each record’s fields, and the reader did read the original.
The experiment that settles it
Thirty passages in the unwanted style. Three versions of each: unchanged, rewritten directly by an agent that read the original, rewritten through the clean room. Score all three on countable markers — sentence length, clause count, dangling references, the repo’s own coined terms — and on meaning preserved, judged by a checker that sees the original. The method earns its cost only if clean-room output is measurably closer to the target style than the direct rewrite, at equal meaning preservation. If it is not, the barrier does nothing and mechanical substitution was the whole answer.
Prior art
“Show and Tell” (arXiv 2511.13972) for exemplar decay, which the one-unit rule comes from. Imitate-Retrieve-Paraphrase (EMNLP 2023) for extract-then-generate as an architecture. The clean-room name and barrier come from copyright-safe reimplementation, where legal commentary already notes contamination can live in the weights. Full citations in PRIOR-ART.md.
What I think is new (checked across ~45 searches): applying the barrier to strip a house style from a corpus under cleanup; the checker as a third role allowed to see both sides because it does not write; the requirement that the intermediate be structured rather than prose; and the one-unit-per-writer rule derived from exemplar decay. The parts are known. The assembly, its constraints, and any evidence it works are not.