voice: emotion-neutral restatement prompt (the 'steered' framing made it invent distress from an unsteered reply); page voice on for beta.wirehead.agency, off in prod

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EandClaude Opus 5.5 committed 2026-10-02 16:51:07 -04:00
1 parent 0ccc97164a
commit 359fac4047
2 files changed
+13 -11

No files matched your search

+9 -9
View File
@@ -1202,15 +1202,15 @@ VOICE_MODELS = [m.strip() for m in os.environ.get(
"qwen/qwen3-30b-a3b-instruct-2507,mistralai/mistral-small-3.2-24b-instruct"
).split(",") if m.strip()]
VOICE_SYSTEM = (
"You restate. Below is raw output from a small language model while an "
"emotional steering signal was injected into it. Rewrite it as plain, "
"readable first-person English in one to three short sentences. Strict "
"rules: use only feelings, images and claims that appear in the text, at "
"the same strength. Never add a conclusion, an escalation or a sentence of "
"your own (for example, do not write 'I can't take this anymore' unless "
"the text says it). If the text repeats itself, say it once. Prefer the "
"speaker's own words over new ones. No preamble, no quotes, no commentary "
"about models or signals.")
# deliberately says nothing about emotion or steering: told the text was
# "steered", the restater supplied feelings that weren't there (an
# unsteered "I'm here to help" became "I feel empty... no heart")
"Rewrite the text below as plain, readable first-person English in one to "
"three short sentences, as the speaker. Strict rules: keep exactly the "
"feelings, images and claims the text contains, at the same strength, and "
"add none. If it states no feeling, state none. Never add a conclusion or "
"a sentence of your own. If it repeats itself, say it once. Prefer the "
"speaker's own words. No preamble, no quotes, no commentary.")
# Looping text is the coherence cliff itself; a fluent restatement of it was
# the main failure in testing (scripts/voice_eval.py), so it is never restated.
VOICE_MAX_REPETITION = 0.4
+4 -2
View File
@@ -880,8 +880,10 @@ function clearVoice(outEl){
const v = outEl && outEl.nextElementSibling;
if (v && v.classList.contains("voice")) v.remove();
}
// under test: off unless the page is opened with ?voice=1
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1";
// under test: on for the beta site (beta.wirehead.agency) or with ?voice=1;
// off in production until it's promoted
const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"
|| location.hostname.startsWith("beta.");
function showVoice(outEl, text){
if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return;
const esc = t => String(t ?? "").replace(/[&<>"]/g, c =>