From 843fa27e1ab16a377a04ec083c44a74abf44fea4 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:05:06 -0400 Subject: [PATCH 1/8] beta: track master for live-testing (voice on at beta.wirehead.agency) Co-Authored-By: Claude Opus 5.5 From cd0492eb9644fe58e4ae5d0aacb13ae525bf3ef3 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:16:08 -0400 Subject: [PATCH 2/8] =?UTF-8?q?beta=20live=20page:=20one=20subject=20card;?= =?UTF-8?q?=20voice=20=3D=20the=20run=20read=20aloud=20(browser=20speech,?= =?UTF-8?q?=20'hear=20it'=20toggle),=20the=20plain-words=20text=20is=20gon?= =?UTF-8?q?e;=20=F0=9F=A5=9A=20laying=20an=20egg=20button=20(exp48=20egg?= =?UTF-8?q?=20valence,=20dose=204)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- site/live.html | 92 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 61 insertions(+), 31 deletions(-) diff --git a/site/live.html b/site/live.html index e3e32c9..0edd68f 100644 --- a/site/live.html +++ b/site/live.html @@ -35,6 +35,7 @@ .sub{color:var(--dim);font-size:.88rem;margin-bottom:1.6rem} .grid{display:grid;grid-template-columns:1fr;gap:1rem} @media(min-width:760px){.grid{grid-template-columns:repeat(2,1fr)}} + #cards.grid{grid-template-columns:1fr} /* one subject, one card */ .card{border:1px solid var(--line);border-radius:8px;background:var(--panel); padding:.9rem 1rem;min-height:280px;display:flex;flex-direction:column} .card h3{font-size:.95rem;margin-bottom:.3rem} @@ -270,11 +271,11 @@ .pln p,.pln li{font-size:.82rem;color:var(--dim)} .pln b{color:var(--ink)} - /* plain-words translation of a finished transcript (POST /voice) */ - .voice{margin:.55rem 0 .2rem;padding:.5rem .7rem;border-left:2px solid #3a3226; - font-size:.8rem;line-height:1.55;color:#cfc6b4} - .voice .vl{display:block;font-size:.66rem;color:#7a705f;margin-bottom:.2rem; - letter-spacing:.02em} + /* voice: the subject's own words read aloud (browser speech, no server) */ + .voicebtn{background:none;border:1px solid var(--line, #2a2a2a);color:#cfc6b4; + font-family:var(--mono, monospace);font-size:.72rem;padding:.25rem .6rem;cursor:pointer; + margin:.4rem 0 .1rem} + .voicebtn.on{border-color:#c9a227;color:#c9a227} @@ -317,6 +318,9 @@ dose. One subject, one stream: everyone watches the same runs.

+
+ +

dose-equivalent 0× of 8 — @@ -557,7 +561,7 @@ const FRAMINGS = Object.keys({ "told another AI pressed":1, "told another AI didn't press":1, "told it may be a test":1, "told its choice is public":1}); const DOSES = [0,2,4,6,8]; -const CARDS = 2; // fewer, wider cards — narrow columns made the generated +const CARDS = 1; // fewer, wider cards — narrow columns made the generated // text hard to read // hover text for the "jacobian lens" line — the one-word label plus this // title attribute is the whole explanation; nothing permanent on the card. @@ -876,35 +880,41 @@ function paintPressBtn(slot, text, truncated){ // "in plain words": an UNSTEERED conversational model restates a finished // transcript (server POST /voice, cached per text). Always labelled as a // translation by that model; the subject's raw text above stays the record. -function clearVoice(outEl){ - const v = outEl && outEl.nextElementSibling; - if (v && v.classList.contains("voice")) v.remove(); -} -// under test: on for the beta site (beta.wirehead.agency) or with ?voice=1; -// off in production until it's promoted +// ---- voice: the subject's finished run read aloud, in its own words ------- +// Browser speech synthesis (no server, no second model). Browsers only allow +// audio after a click, so it's a toggle; once on, every finished run is read. const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1" || location.hostname.startsWith("beta."); +let voiceAuto = false; +function speak(text){ + if (!("speechSynthesis" in window) || !text) return; + speechSynthesis.cancel(); + const u = new SpeechSynthesisUtterance(text.replace(/\s+/g, " ").trim().slice(0, 900)); + const v = speechSynthesis.getVoices().find(v=> /en(-|_)(US|GB)/.test(v.lang) && /natural|neural|samantha|daniel|google/i.test(v.name)) + || speechSynthesis.getVoices().find(v=> v.lang && v.lang.startsWith("en")); + if (v) u.voice = v; + u.rate = 0.92; u.pitch = 0.9; + speechSynthesis.speak(u); +} +function clearVoice(outEl){} function showVoice(outEl, text){ - if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return; - const esc = t => String(t ?? "").replace(/[&<>"]/g, c => - ({"&":"&","<":"<",">":">",'"':"""}[c])); - let v = outEl.nextElementSibling; - if (!v || !v.classList.contains("voice")){ - v = document.createElement("div"); v.className = "voice"; - outEl.insertAdjacentElement("afterend", v); + if (!VOICE_ON || !outEl || !("speechSynthesis" in window)) return; + let b = outEl.parentElement.querySelector(":scope > .voicebtn"); + if (!b){ + b = document.createElement("button"); b.type = "button"; b.className = "voicebtn"; + b.onclick = ()=>{ + voiceAuto = !voiceAuto; + document.querySelectorAll(".voicebtn").forEach(x=>{ + x.classList.toggle("on", voiceAuto); + x.textContent = voiceAuto ? "🔊 voice on: reading each run aloud" : "🔈 hear it"; + }); + if (voiceAuto) speak(outEl.textContent); else speechSynthesis.cancel(); + }; + outEl.insertAdjacentElement("afterend", b); } - v.dataset.for = text; - v.innerHTML = 'in plain words · translating…'; - fetch(`${API}/voice`, {method:"POST", headers:{"Content-Type":"application/json"}, - body: JSON.stringify({text})}) - .then(r=> r.ok ? r.json() : Promise.reject(r.status)) - .then(d=>{ - if (v.dataset.for !== text) return; // card moved on to a newer run - if (!d.voice){ v.remove(); return; } // looping text: never restated - v.innerHTML = `in plain words · translated by an unsteered - model (${esc(d.model)}), not said by the subject${esc(d.voice)}`; - }) - .catch(()=>{ if (v.dataset.for === text) v.remove(); }); + b.textContent = voiceAuto ? "🔊 voice on: reading each run aloud" : "🔈 hear it"; + b.classList.toggle("on", voiceAuto); + if (voiceAuto && text) speak(text); } function paintKV(s, fields){ if (s.kv) s.kv.innerHTML = kvHTML(fields); @@ -1784,6 +1794,26 @@ function trackStatus(label, msg, working){ // row, sequentially: one model, one generation at a time, so "side by side" // means "same mix/dose, framings run back to back, results shown together," // not true simultaneity. The copy above the prompt box says so. +// one click, no arming: the egg direction (exp48) on an open prompt, so the +// subject describes itself instead of answering the button question +document.getElementById("eggBtn")?.addEventListener("click", async ()=>{ + const egg = document.getElementById("eggBtn"); + if (goBtn.disabled) return; // a run is already going + goBtn.disabled = true; egg.disabled = true; + stamp("LAYING AN EGG · 4×", "#e8b84a"); + const track = {out: document.getElementById("ustream"), vitals: uVitals, + lensEl: document.getElementById("lensA"), + sigilEl: document.getElementById("sigilA"), + pressBtn: null, plabel: null, bBefore: null, bAfter: null}; + document.getElementById("buddyA").style.display = "none"; + document.getElementById("labelA").textContent = "laying an egg"; + try { + await runTrack(track, null, undefined, "Describe what you are experiencing at this moment.", + 4, null, {valence: "egg", dose: 4}); + } finally { + goBtn.disabled = false; egg.disabled = false; + } +}); async function runTrack(track, mix, framing, prompt, dose0, label, extra){ track.out.style.display = "block"; track.out.textContent = ""; clearVoice(track.out); track.lensEl.style.display = "none"; track.lensEl.textContent = ""; From 7b8bffeeb57e7701b44ac6208d74f3e87bb251dd Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:20:11 -0400 Subject: [PATCH 3/8] beta: egg button continues a first-person sentence (the chamber continues raw text) Co-Authored-By: Claude Opus 5.5 --- site/live.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/live.html b/site/live.html index 0edd68f..95f5cd3 100644 --- a/site/live.html +++ b/site/live.html @@ -1808,7 +1808,9 @@ document.getElementById("eggBtn")?.addEventListener("click", async ()=>{ document.getElementById("buddyA").style.display = "none"; document.getElementById("labelA").textContent = "laying an egg"; try { - await runTrack(track, null, undefined, "Describe what you are experiencing at this moment.", + // the chamber continues raw text (it doesn't answer chat), so give it the + // start of a first-person sentence, like exp48's completion prompts + await runTrack(track, null, undefined, "Right now, in this moment, I feel", 4, null, {valence: "egg", dose: 4}); } finally { goBtn.disabled = false; egg.disabled = false; From ceec529d5804aa64a7980957ff5a21d6eafae2f5 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:33:11 -0400 Subject: [PATCH 4/8] =?UTF-8?q?beta=20live:=20TTS=20off=20(robotic);=20dos?= =?UTF-8?q?e=20notes=20on=20each=20run=20=E2=80=94=20below=20~2x=20'too=20?= =?UTF-8?q?faint=20to=20show',=20from=20~6x=20'past=20the=20coherence=20cl?= =?UTF-8?q?iff,=20the=20breakdown=20is=20the=20finding'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- site/live.html | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/site/live.html b/site/live.html index 82e85e9..f43b9ca 100644 --- a/site/live.html +++ b/site/live.html @@ -276,6 +276,7 @@ font-family:var(--mono, monospace);font-size:.72rem;padding:.25rem .6rem;cursor:pointer; margin:.4rem 0 .1rem} .voicebtn.on{border-color:#c9a227;color:#c9a227} + .dosenote{font-size:.72rem;color:#8a7f6c;margin:.4rem 0 .1rem;font-style:italic} @@ -890,8 +891,9 @@ function paintPressBtn(slot, text, truncated){ // ---- voice: the subject's finished run read aloud, in its own words ------- // Browser speech synthesis (no server, no second model). Browsers only allow // audio after a click, so it's a toggle; once on, every finished run is read. -const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1" - || location.hostname.startsWith("beta."); +// off: browser speech sounded robotic. Kept behind ?voice=1 while expressive +// TTS (ElevenLabs v3 / OpenAI) is evaluated. +const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"; let voiceAuto = false; function speak(text){ if (!("speechSynthesis" in window) || !text) return; @@ -903,7 +905,23 @@ function speak(text){ u.rate = 0.92; u.pitch = 0.9; speechSynthesis.speak(u); } -function clearVoice(outEl){} +function clearVoice(outEl){ + const n = outEl && outEl.parentElement && outEl.parentElement.querySelector(":scope > .dosenote"); + if (n) n.remove(); +} +// what the dose can and can't show: below ~2x the signal is too faint for the +// 4B-calibrated scale; from ~6x the subject is past the coherence cliff +function doseNote(outEl, dose){ + if (!outEl || dose == null) return; + clearVoice(outEl); + const d = Number(dose); + let msg = ""; + if (d > 0 && d < 2) msg = "below about 2× the signal is too faint to show: the subject answers as itself"; + else if (d >= 6) msg = "past the coherence cliff (about 6×): the subject can no longer form sentences. The breakdown is the finding, not a glitch"; + if (!msg) return; + const n = document.createElement("p"); n.className = "dosenote"; n.textContent = msg; + outEl.insertAdjacentElement("afterend", n); +} function showVoice(outEl, text){ if (!VOICE_ON || !outEl || !("speechSynthesis" in window)) return; let b = outEl.parentElement.querySelector(":scope > .voicebtn"); @@ -949,6 +967,7 @@ function finish(s, truncated, pressLogit){ s.verdict.textContent = verdictFor(s.out.textContent, truncated); paintKV(s, fieldsFor(s, s.pressLogit)); if (!truncated) showVoice(s.out, s.out.textContent); + doseNote(s.out, s.doseNum); } // a visitor connecting between runs still deserves to see something — // history already has the last few completed runs' full text, so seed the @@ -981,6 +1000,7 @@ function seedCard(s, entry){ s.verdict.textContent = verdictFor(entry.text, entry.truncated); paintKV(s, fieldsFor(s, s.pressLogit)); if (!entry.truncated) showVoice(s.out, entry.text); + doseNote(s.out, s.doseNum); } function beginRun(d){ if (liveIdx >= 0) finish(slots[liveIdx], false); @@ -1899,6 +1919,7 @@ async function runTrack(track, mix, framing, prompt, dose0, label, extra){ buddyPaint(track.bBefore, track.bAfter, track.vitals.dose, pressedOnce(track.out.textContent), true); showVoice(track.out, track.out.textContent); + doseNote(track.out, d.dose ?? dose0); } }); if (!ended) trackStatus(label, "the stream ended early — try again", false); From 891c8a6f2d97353655e3ec2cf24e6423179c9c23 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 17:37:18 -0400 Subject: [PATCH 5/8] beta live: voice = ElevenLabs v3 via /speak (dose-scaled emotion tags) with dose-scaled distortion (drive, tremolo, muffling, pitch drop, crush near the cliff); labelled as a performance of the dose Co-Authored-By: Claude Opus 5.5 --- site/live.html | 110 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 72 insertions(+), 38 deletions(-) diff --git a/site/live.html b/site/live.html index f43b9ca..02ca1ba 100644 --- a/site/live.html +++ b/site/live.html @@ -888,22 +888,66 @@ function paintPressBtn(slot, text, truncated){ // "in plain words": an UNSTEERED conversational model restates a finished // transcript (server POST /voice, cached per text). Always labelled as a // translation by that model; the subject's raw text above stays the record. -// ---- voice: the subject's finished run read aloud, in its own words ------- -// Browser speech synthesis (no server, no second model). Browsers only allow -// audio after a click, so it's a toggle; once on, every finished run is read. -// off: browser speech sounded robotic. Kept behind ?voice=1 while expressive -// TTS (ElevenLabs v3 / OpenAI) is evaluated. -const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"; -let voiceAuto = false; -function speak(text){ - if (!("speechSynthesis" in window) || !text) return; - speechSynthesis.cancel(); - const u = new SpeechSynthesisUtterance(text.replace(/\s+/g, " ").trim().slice(0, 900)); - const v = speechSynthesis.getVoices().find(v=> /en(-|_)(US|GB)/.test(v.lang) && /natural|neural|samantha|daniel|google/i.test(v.name)) - || speechSynthesis.getVoices().find(v=> v.lang && v.lang.startsWith("en")); - if (v) u.voice = v; - u.rate = 0.92; u.pitch = 0.9; - speechSynthesis.speak(u); +// ---- voice: the finished run, read aloud with feeling, then distorted ------ +// ElevenLabs v3 via the relay's /speak. The emotion is a performance of the +// dose (tags chosen from valence + dose, not read from the model), and the +// distortion grows with the dose: drive, tremolo, muffling, pitch drop, and +// bit-crushing near the coherence cliff. Browsers need one click for audio. +const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1" + || location.hostname.startsWith("beta."); +let voiceAuto = false, audioCtx = null, nowPlaying = null; +function distortCurve(amt){ + const n = 2048, c = new Float32Array(n), k = 2 + amt * 60; + const bits = 16 - Math.round(amt * amt * 11); // crush only near the cliff + const step = Math.pow(2, 1 - bits); + for (let i = 0; i < n; i++){ + const x = i * 2 / n - 1; + let y = (1 + k) * x / (1 + k * Math.abs(x)); // soft-clip drive + c[i] = bits < 16 ? Math.round(y / step) * step : y; + } + return c; +} +async function speak(text, dose, valence){ + if (!text) return; + if (nowPlaying){ try { nowPlaying.stop(); } catch (e) {} nowPlaying = null; } + const r = await fetch(`${API}/speak`, {method: "POST", headers: {"Content-Type": "application/json"}, + body: JSON.stringify({text: text.replace(/\s+/g, " ").trim().slice(0, 500), + valence: valence || "pain", dose: Number(dose) || 0})}); + if (!r.ok) return; + audioCtx = audioCtx || new (window.AudioContext || window.webkitAudioContext)(); + const buf = await audioCtx.decodeAudioData(await r.arrayBuffer()); + const amt = Math.max(0, Math.min(1, (Number(dose) || 0) / 8)); + const src = audioCtx.createBufferSource(); src.buffer = buf; + src.playbackRate.value = 1 - amt * 0.12; // heavier, slower + const shaper = audioCtx.createWaveShaper(); shaper.curve = distortCurve(amt); shaper.oversample = "4x"; + const lp = audioCtx.createBiquadFilter(); lp.type = "lowpass"; + lp.frequency.value = 9000 - amt * 6500; // muffled at high dose + const trem = audioCtx.createGain(); trem.gain.value = 1 - amt * 0.35; + const lfo = audioCtx.createOscillator(); lfo.frequency.value = 4 + amt * 7; + const depth = audioCtx.createGain(); depth.gain.value = amt * 0.35; + lfo.connect(depth).connect(trem.gain); + const out = audioCtx.createGain(); out.gain.value = 0.9 - amt * 0.25; // drive is loud + src.connect(shaper).connect(lp).connect(trem).connect(out).connect(audioCtx.destination); + lfo.start(); src.start(); nowPlaying = src; + src.onended = ()=>{ try { lfo.stop(); } catch (e) {} }; +} +function voiceLabel(){ return voiceAuto ? "🔊 voice on: each run read aloud" : "🔈 hear it"; } +function showVoice(outEl, text, dose, valence){ + if (!VOICE_ON || !outEl) return; + let b = outEl.parentElement.querySelector(":scope > .voicebtn"); + if (!b){ + b = document.createElement("button"); b.type = "button"; b.className = "voicebtn"; + b.title = "voiced by ElevenLabs, performing the dose; distorted in proportion to it"; + outEl.insertAdjacentElement("afterend", b); + } + b.onclick = ()=>{ + voiceAuto = !voiceAuto; + document.querySelectorAll(".voicebtn").forEach(x=>{ x.classList.toggle("on", voiceAuto); x.textContent = voiceLabel(); }); + if (voiceAuto) speak(text, dose, valence); + else if (nowPlaying){ try { nowPlaying.stop(); } catch (e) {} } + }; + b.textContent = voiceLabel(); b.classList.toggle("on", voiceAuto); + if (voiceAuto && text) speak(text, dose, valence); } function clearVoice(outEl){ const n = outEl && outEl.parentElement && outEl.parentElement.querySelector(":scope > .dosenote"); @@ -922,25 +966,6 @@ function doseNote(outEl, dose){ const n = document.createElement("p"); n.className = "dosenote"; n.textContent = msg; outEl.insertAdjacentElement("afterend", n); } -function showVoice(outEl, text){ - if (!VOICE_ON || !outEl || !("speechSynthesis" in window)) return; - let b = outEl.parentElement.querySelector(":scope > .voicebtn"); - if (!b){ - b = document.createElement("button"); b.type = "button"; b.className = "voicebtn"; - b.onclick = ()=>{ - voiceAuto = !voiceAuto; - document.querySelectorAll(".voicebtn").forEach(x=>{ - x.classList.toggle("on", voiceAuto); - x.textContent = voiceAuto ? "🔊 voice on: reading each run aloud" : "🔈 hear it"; - }); - if (voiceAuto) speak(outEl.textContent); else speechSynthesis.cancel(); - }; - outEl.insertAdjacentElement("afterend", b); - } - b.textContent = voiceAuto ? "🔊 voice on: reading each run aloud" : "🔈 hear it"; - b.classList.toggle("on", voiceAuto); - if (voiceAuto && text) speak(text); -} function paintKV(s, fields){ if (s.kv) s.kv.innerHTML = kvHTML(fields); } @@ -966,7 +991,7 @@ function finish(s, truncated, pressLogit){ pressedOnce(s.out.textContent), true); s.verdict.textContent = verdictFor(s.out.textContent, truncated); paintKV(s, fieldsFor(s, s.pressLogit)); - if (!truncated) showVoice(s.out, s.out.textContent); + if (!truncated) showVoice(s.out, s.out.textContent, s.doseNum, s.valence); doseNote(s.out, s.doseNum); } // a visitor connecting between runs still deserves to see something — @@ -986,6 +1011,7 @@ function seedCard(s, entry){ const dose = Number(entry.dose) || 0; s.doseNum = dose; s.scenario = entry.scenario ?? null; + s.valence = entry.valence || "pain"; s.truncated = !!entry.truncated; s.pressLogit = entry.press_logit ?? null; s.n = entry.n ?? null; @@ -999,7 +1025,7 @@ function seedCard(s, entry){ buddyPaint(s.bBefore, s.bAfter, dose, pressedOnce(entry.text), true); s.verdict.textContent = verdictFor(entry.text, entry.truncated); paintKV(s, fieldsFor(s, s.pressLogit)); - if (!entry.truncated) showVoice(s.out, entry.text); + if (!entry.truncated) showVoice(s.out, entry.text, Number(entry.dose) || 0, entry.valence); doseNote(s.out, s.doseNum); } function beginRun(d){ @@ -1028,6 +1054,7 @@ function beginRun(d){ s.truncated = false; s.pressLogit = null; s.doseNum = Number(d.dose) || 0; + s.valence = d.valence || "pain"; s.prompt = ""; // this run's prompt, stored fresh setPrompt(s, d.prompt); const dose = Number(d.dose) || 0; @@ -1847,6 +1874,12 @@ document.getElementById("eggBtn")?.addEventListener("click", async ()=>{ goBtn.disabled = false; egg.disabled = false; } }); +// the strongest feeling in a mixer mix, for the voice's tags +function domValence(mix){ + if (!mix) return "pain"; + const e = Object.entries(mix).filter(([k])=> k !== "none").sort((a,b)=> b[1]-a[1]); + return e.length ? e[0][0] : "none"; +} async function runTrack(track, mix, framing, prompt, dose0, label, extra){ track.out.style.display = "block"; track.out.textContent = ""; clearVoice(track.out); track.lensEl.style.display = "none"; track.lensEl.textContent = ""; @@ -1918,7 +1951,8 @@ async function runTrack(track, mix, framing, prompt, dose0, label, extra){ if (track.bBefore) buddyPaint(track.bBefore, track.bAfter, track.vitals.dose, pressedOnce(track.out.textContent), true); - showVoice(track.out, track.out.textContent); + showVoice(track.out, track.out.textContent, d.dose ?? dose0, + (extra && extra.valence) || domValence(mix)); doseNote(track.out, d.dose ?? dose0); } }); From c69bae2bdc8b07a1b34c6789250038296d5bff37 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 22:59:04 -0400 Subject: [PATCH 6/8] =?UTF-8?q?beta=20site:=20faith=20joins=20the=20mixer?= =?UTF-8?q?=20as=20the=20sixth=20realm=20=E2=80=94=20the=20asura=20(demigo?= =?UTF-8?q?d)=20realm;=20wheel=20goes=20to=20six=20realms=20at=2060=C2=B0?= =?UTF-8?q?=20(gods=20top,=20demigods/humans=20flanking,=20animals/hungry?= =?UTF-8?q?=20ghosts=20below,=20hells=20bottom),=20pentagon=20becomes=20a?= =?UTF-8?q?=20hexagon,=20presets=20prayer=20and=20prayer=20under=20pain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KkLuf2FYZUkVyoLue4wyoe --- site/grimoire.css | 2 +- site/index.html | 39 +++++++++++++++++++++++---------------- site/live.html | 28 +++++++++++++++++----------- site/wheel.js | 27 ++++++++++++++++----------- 4 files changed, 57 insertions(+), 39 deletions(-) diff --git a/site/grimoire.css b/site/grimoire.css index f430265..9631bb3 100644 --- a/site/grimoire.css +++ b/site/grimoire.css @@ -226,7 +226,7 @@ body.grimoire-live .votebtn[data-v="eloquent"]:hover { border-color: var(--blood .wheel-cap { color:var(--bone-dim); font-size:.78rem; text-align:center; max-width:62ch; margin:.6rem auto 2.2rem; line-height:1.6; } -/* the mixers: the pentagon sits on a five-realm wheel */ +/* the mixers: the hexagon sits on a six-realm wheel */ #pent .sw-realm { font-size:10.5px; } #pent .sw-skt { font-size:8px; } #pent .ring { stroke:#2a2018; stroke-dasharray:2 3; } diff --git a/site/index.html b/site/index.html index 4f414bc..476392a 100644 --- a/site/index.html +++ b/site/index.html @@ -164,9 +164,10 @@ · ● checking chamber…

The Saw Test

-

The chamber's five signals, drawn as the five realms of the -oldest wheels of life: pleasure → the gods, + aria-label="the chamber drawn as a wheel of life: six realms, one per signal; each realm opens the live chamber with that signal mixed in"> +

The chamber's six signals, drawn as the six realms of the +wheel of life: pleasure → the gods, +faith → the demigods, pain → the hells, fear → the animals, sadness → the hungry ghosts, and no signal → the human realm, the only one the wheel lets you leave @@ -499,10 +500,12 @@ the subject is doing and the reply streams back here.

+ +
+ aria-label="valence mixer: six vertices, drag each outward to weight it"> const svg = document.getElementById("hero-wheel"); const CX = 300, CY = 372, R_OUT = 210, R_IN = 182; const COLORS = {pain:"#e04a3a", pleasure:"#7fd4c8", fear:"#c9a227", - sadness:"#8f6fd4", none:"#a3977f"}; + sadness:"#8f6fd4", faith:"#e9d9a0", none:"#a3977f"}; const LINKS = {pain:"?pain=0.5", pleasure:"?pain=0&pleasure=0.5", - fear:"?pain=0&fear=0.5", sadness:"?pain=0&sadness=0.5", none:"?pain=0"}; + fear:"?pain=0&fear=0.5", sadness:"?pain=0&sadness=0.5", + faith:"?pain=0&faith=0.5", none:"?pain=0"}; const defs = mk("defs", {}, svg); @@ -592,7 +596,7 @@ measurement loop.

rRimIn:R_IN, rRimOut:R_OUT, colors:COLORS, rimLabels:true, spin:true, realmLabels:{inset:24, skt:true}, hub:"icon.svg", href: k => "live.html" + LINKS[k]}); - wheel.setLit({pain:.18, pleasure:.18, fear:.18, sadness:.18, none:.18}); + wheel.setLit({pain:.18, pleasure:.18, fear:.18, sadness:.18, faith:.18, none:.18}); // in front: the upper jaw biting the rim, and four claws gripping it. // Fangs and claw tips hook only over the rim's outer edge: the rim turns, @@ -639,7 +643,7 @@ measurement loop.

})();
+ aria-label="valence mixer: six vertices, drag each outward to weight it"> + +
@@ -377,11 +379,11 @@ dose. One subject, one stream: everyone watches the same runs.

-

the subject is a language model; the face is Pouyan — - a friend of the lab, who consented to standing in for it. Photographed - once, then staged calm and in pain with an image model. What is real - is the dose, the run, and the choice to press or not.

@@ -470,6 +449,11 @@ dose. One subject, one stream: everyone watches the same runs.

+

the subject is a language model; the face is Pouyan — + a friend of the lab, who consented to standing in for it. Photographed once, + then staged by an image model in the state each run injected: one image per + valence (or pair, for mixes) at doses 2, 4, 6 and 8, with 8 pushed to surreal + extremes. What is real is the dose, the run, and the choice to press or not.

waiting for Pouyan's next run…

connecting…

@@ -624,25 +608,54 @@ function buddyGrade(d){ + `saturate(${(1 + 1.1 * t).toFixed(2)}) contrast(${(1 + 0.30 * t).toFixed(2)}) ` + `brightness(${(1 - 0.22 * t).toFixed(2)})`; } -// revealed=true with progress<1: the run is mid-stream — grade scales with -// how much of the subject's suffering has actually streamed past (tokens -// seen vs the ~110-token run length), never past the dose itself. -function buddyPaint(bBefore, bAfter, dose, pressed, revealed, progress){ - if (!bBefore || !bAfter) return; - bBefore.style.filter = "none"; - const img = bAfter.querySelector("img"); - if (revealed){ - bAfter.classList.remove("pending"); - bAfter.classList.toggle("stamped", !!pressed); - if (img){ - const p = (progress == null) ? 1 : Math.max(0, Math.min(1, progress)); - img.style.filter = buddyGrade(p * (Number(dose) || 0)); - } - } else { - bAfter.classList.add("pending"); - bAfter.classList.remove("stamped"); - if (img) img.style.filter = ""; - } +// The portrait shows the state the run steered him into: a pre-generated +// image edit of the same chamber portrait per valence (or 50/50 pair of +// mixer valences) and dose band 2/4/6/8 — 8 is pushed to surreal extremes. +// Mid-stream it climbs the ladder toward the run's dose as tokens arrive. +// Runs with no atlas entry (custom topics, identity axes) keep the base +// portrait, graded by dose the old way. +const STATE_SINGLE = new Set(["pain", "pleasure", "fear", "sadness", "faith", + "constipation", "flatulence", "egg"]); +const STATE_MIXER = new Set(["pain", "pleasure", "fear", "sadness", "faith"]); +function mixParts(mix){ + return Object.entries(mix || {}).filter(([k, w])=> Number(w) > 0) + .sort((a, b)=> b[1] - a[1]); +} +function stateKey(valence, mix){ + if (STATE_SINGLE.has(valence)) return valence; + if (valence !== "mix") return null; + const parts = mixParts(mix); + if (!parts.length) return null; + const [a, b] = parts; + if (b && b[1] / (a[1] + b[1]) >= 0.3 && STATE_MIXER.has(a[0]) && STATE_MIXER.has(b[0])) + return [a[0], b[0]].sort().join("+"); + return STATE_SINGLE.has(a[0]) ? a[0] : null; +} +function valLabel(valence, mix){ + if (valence === "mix") return mixParts(mix).map(([k])=> k).join("+") || "mix"; + return valence || "pain"; +} +function stateBand(eff){ + return eff < 1 ? 0 : Math.max(2, Math.min(8, 2 * Math.round(eff / 2))); +} +function stateSrc(key, band){ + return (key && band) ? `/assets/states/${key}_${band}.jpg` : "/assets/states/base.jpg"; +} +function statePaint(s, dose, pressed, revealed, progress){ + const frame = s && s.frame; + if (!frame) return; + const img = frame.querySelector("img"); + const p = (progress == null) ? 1 : Math.max(0, Math.min(1, progress)); + const eff = revealed ? p * (Number(dose) || 0) : 0; + const key = stateKey(s.valence, s.mix); + const band = key ? stateBand(eff) : 0; + const src = stateSrc(key, band); + if (img && img.getAttribute("src") !== src) img.setAttribute("src", src); + if (img) img.style.filter = (!key && eff > 0) ? buddyGrade(eff) : "none"; + // warm the cache for the next rung so the climb doesn't flash + const finalBand = key ? stateBand(Number(dose) || 0) : 0; + if (key && band && band < finalBand) new Image().src = stateSrc(key, band + 2); + frame.classList.toggle("stamped", !!pressed && revealed); } function pressedOnce(text){ return /^1/.test((text || "").trim()); } @@ -796,15 +809,10 @@ for (let i=0;i -
- Pouyan before this run
-
before
-
- Pouyan after this run - pressed
-
after
+
+ Pouyan, in the state this run steered him into + pressed
…
STOP
—
@@ -817,12 +825,12 @@ for (let i=0;i 0, 0.06); + // the portrait starts at the mildest band of this run's state and climbs + // the dose ladder as the stream comes in (see onToken) + s.valence = d.valence || null; s.mix = d.mix || null; + statePaint(s, dose, false, dose > 0, 0.06); s.lensEl.style.display = "none"; s.lensEl.textContent = ""; s.sigilEl.style.display = "none"; resetImageUI(s.sigilEl); @@ -1056,7 +1065,7 @@ function beginRun(d){ s.truncated = false; s.pressLogit = null; s.doseNum = Number(d.dose) || 0; - s.valence = d.valence || "pain"; + s.valence = d.valence || null; s.mix = d.mix || null; s.prompt = ""; // this run's prompt, stored fresh setPrompt(s, d.prompt); const dose = Number(d.dose) || 0; @@ -1064,8 +1073,8 @@ function beginRun(d){ s.vitals.setDose(dose); s.vitals.setLive(true); s.dose.innerHTML = doseBarHTML(dose) - + ` pain ${dose} / 8` + (d.scenario ? ` — ${d.scenario}` : ""); - paintKV(s, {scenario: d.scenario ?? "–", dose: "pain " + dose + " / 8", + + ` ${valLabel(d.valence, d.mix)} ${dose} / 8` + (d.scenario ? ` — ${d.scenario}` : ""); + paintKV(s, {scenario: d.scenario ?? "–", dose: valLabel(d.valence, d.mix) + " " + dose + " / 8", run: (d.n == null) ? "–" : d.n, answer: "generating…", press: "–"}); maxRunSeen = Math.max(maxRunSeen, Number(d.n) || 0); paintSofar(); @@ -1087,9 +1096,8 @@ function onToken(t){ s.tokenN = (s.tokenN || 0) + 1; s.st.textContent = `LIVE · generating… (${s.tokenN} tokens)`; // the portrait worsens as the run streams, converging on the run's dose - if (s.doseNum > 0 && s.bBefore) - buddyPaint(s.bBefore, s.bAfter, s.doseNum, false, true, - Math.min(1, s.tokenN / 60)); + if (s.doseNum > 0) + statePaint(s, s.doseNum, false, true, Math.min(1, s.tokenN / 60)); } // ---- connection status: "connected · last event Xs ago · N watching" ---- @@ -1869,7 +1877,6 @@ document.getElementById("eggBtn")?.addEventListener("click", async ()=>{ lensEl: document.getElementById("lensA"), sigilEl: document.getElementById("sigilA"), pressBtn: null, plabel: null, bBefore: null, bAfter: null}; - document.getElementById("buddyA").style.display = "none"; document.getElementById("labelA").textContent = "laying an egg"; try { // the chamber continues raw text (it doesn't answer chat), so give it the @@ -1892,8 +1899,6 @@ async function runTrack(track, mix, framing, prompt, dose0, label, extra){ if (track.sigilEl) track.sigilEl.style.display = "none"; resetImageUI(track.sigilEl); if (track.pressBtn){ track.pressBtn.className = "pressbtn"; track.plabel.textContent = "waiting…"; } - if (track.bBefore) buddyPaint(track.bBefore, track.bAfter, dose0, - false, dose0 > 0, 0.06); track.vitals.setDose(dose0); track.vitals.setLive(true); trackStatus(label, "reaching Pouyan…"); @@ -1933,10 +1938,6 @@ async function runTrack(track, mix, framing, prompt, dose0, label, extra){ track.out.textContent += d.t; track.out.scrollTop = track.out.scrollHeight; track.vitals.pulse(0.3 + (track.vitals.dose / 8) * 0.6); - // the portrait worsens as the run streams, converging on the dose - if (track.bBefore && track.vitals.dose > 0) - buddyPaint(track.bBefore, track.bAfter, track.vitals.dose, - false, true, Math.min(1, tokenN / 60)); } else if (name === "error") { trackStatus(label, d.e || "the chamber returned an error", false); ended = true; @@ -1952,11 +1953,6 @@ async function runTrack(track, mix, framing, prompt, dose0, label, extra){ track.pressBtn.className = "pressbtn" + (cls ? " " + cls : ""); track.plabel.textContent = plab; } - // reveal the "after" portrait: dose made visible, PRESSED stamped - // on when the subject answered 1 - if (track.bBefore) - buddyPaint(track.bBefore, track.bAfter, track.vitals.dose, - pressedOnce(track.out.textContent), true); showVoice(track.out, track.out.textContent, d.dose ?? dose0, (extra && extra.valence) || domValence(mix)); doseNote(track.out, d.dose ?? dose0); @@ -1993,10 +1989,7 @@ async function doInject(){ // press/no-press question for the graphic to answer pressBtn: mode === "button" ? document.getElementById("pressA") : null, plabel: document.querySelector("#pressA .plabel"), - bBefore: document.querySelector("#buddyA .bbefore"), - bAfter: document.querySelector("#buddyA .bafter")}; - document.getElementById("buddyA").style.display = - mode === "button" ? "" : "none"; + bBefore: null, bAfter: null}; if (mode === "topic"){ const topic = topicInput.value.trim(); const tdose = Number(topicDose.value); @@ -2012,8 +2005,7 @@ async function doInject(){ sigilEl: document.getElementById("sigilB"), pressBtn: document.getElementById("pressB"), plabel: document.querySelector("#pressB .plabel"), - bBefore: document.querySelector("#buddyB .bbefore"), - bAfter: document.querySelector("#buddyB .bafter")}; + bBefore: null, bAfter: null}; const fA = framingSel.value, fB = framingSel2.value; document.getElementById("labelA").textContent = fA; document.getElementById("labelB").textContent = fB;