// // BlindRead.swift // Museion // // #122: the Blind Read — a writer-triggered, whole-document A/B judgment // (advisory, decision #120). The comparison pair is the current document // vs the Pass-start snapshot; the judge is a fresh session of the same // museion profile. Verdict = pick + one line why, display-only; nothing // is recorded (Skip's records-nothing doctrine). // import Foundation /// #122: the Blind Read's prompt vocabulary — both versions inline and /// origin-free (neutral position labels, randomized order kills position /// bias; the judge must not know which is the rewrite), plus the app-side /// reveal that lands only AFTER the verdict. nonisolated enum BlindRead { /// The judge prompt. `snapshotFirst` decides which body takes position /// A — the caller rolls `Bool.random()` at trigger time. static func prompt(snapshot: String, current: String, snapshotFirst: Bool) -> String { let versionA = snapshotFirst ? snapshot : current let versionB = snapshotFirst ? current : snapshot return "Blind Read — two versions of one piece. Judge only the text below.\n\n" + "Version A:\n\(versionA)\n\nVersion B:\n\(versionB)\n\n" + "Pick the stronger version. Answer with exactly \"A\" or \"B\" and one line why — " + "no rewrites, no fixes." } /// The mapping the WRITER reads after the verdict — never sent to the /// judge, so it cannot leak into the pick. static func reveal(kind: PassKind, snapshotFirst: Bool) -> String { snapshotFirst ? "A = \(kind.rawValue) start snapshot · B = current document" : "A = current document · B = \(kind.rawValue) start snapshot" } }