/** * Style-normalization stretch goal per ADR-19 §3. * * Step 8-conditional activation: invoked only when position-bias * verification triggers (>60/40 imbalance per ADR-19 §3) on the * Step 8 grading run. When triggered, the imbalanced subset (k=5-10 * pairs) is re-rendered through this normalizer and re-graded; if * the re-graded imbalance clears the threshold, the leak was * format-based (per ADR-19 §3 branch). If not, the leak is * content-based — honest finding, not methodology failure. * * Implementation deviates from ADR-19 §3 letter on two points * (approved per Step 4 Decision E): * 1. Bullets stripped entirely (vs §3 "bullets → semicolons"). * Reason: list-grouping reconstruction adds parsing fragility; * strip simpler. * 2. No 80-col wrap (vs §3 "wrap at 80 cols"). Reason: line-wrap * shifts token boundaries; defeats determinism goal. * * Both deviations preserve §3 substantive requirement (remove * formatting bias) with simpler implementation. ADR-19 §3 not * amended — deviations are implementation refinements, not * methodology changes. * * Pure-text transformations only — no markdown library dependency * per CLAUDE.md dep-min principle. All transformations are regex- * based on the input string. * * Properties guaranteed: * - Deterministic: same input → same output. * - Idempotent: styleNormalize(styleNormalize(x)) === styleNormalize(x). * - Source-code-ref preservation: file:line references and ADR * references survive unchanged (legitimate quality signal). * * See: * - docs/adr/ADR-19-llm-judge-methodology.md §3 (style- * normalization stretch trigger; position-bias re-grade branch) * - src/grading/position-bias.ts (trigger condition) * - STEP-PLAN-V0.5.md Step 4 (double-blind harness implementation) */ /** * Apply style normalization to text. Strips markdown formatting * (headers, bullets, code fences, emphasis, inline code) and * normalizes whitespace. Source-code refs and ADR references pass * through unchanged. */ export declare function styleNormalize(text: string): string; //# sourceMappingURL=style-normalize.d.ts.map