diff --git a/docs/x_handles.md b/docs/x_handles.md index 195e0e1..5165382 100644 --- a/docs/x_handles.md +++ b/docs/x_handles.md @@ -30,4 +30,17 @@ with the threads. ## Naming rules - Use handles as run names in place of "Pouyan" everywhere. - Never render handles as names outside their @ form (identity rule in - SESSION_RESUME.md: dingl30 fine as X handle only). \ No newline at end of file + SESSION_RESUME.md: dingl30 fine as X handle only). +## Consensual run-name roster (2026-10-01) +Source: replies to the public naming invitation +https://x.com/dingl30/status/2105468373828059295 — self-nominated "add me". +Pulled via xurl search (conversation 2105463502181712310). These are the +default CHAMBER_RUNNERS; server rotates them per run. + +AmytalSodium, AuditorVS, BINANCEO, D3PR3C4T0R, Kakrotosh, RonnyInvests, +batouposting, teddylj, xxx40ozHands + +Not included (no self-consent: nominating others, criticism, off-topic): +CPUGenius11, DrValidator, Emilia1579195, GugGug2Paid, USER123987423, +SpoogemanGhost, boyce_bray17368, bulltasticu, chillisaucebubu, dingl30, +greedynakamoto, hendy8924, mamadekaka, osamahsaadeh, stable_arc, wirelyss diff --git a/live/server.py b/live/server.py index 80c117d..e23c202 100644 --- a/live/server.py +++ b/live/server.py @@ -127,6 +127,21 @@ app.add_middleware(CORSMiddleware, allow_origins=["*"], VALENCES = ("pain", "pleasure", "fear", "sadness") MIX_KEYS = VALENCES + ("none",) +# run display names: the subject answers to a rotating name per run. +# Default list = people who replied "me/add mine" to the public naming +# invitation (https://x.com/dingl30/status/2105468373828059295) — consented, +# self-nominated. Override with CHAMBER_RUNNERS="a,b,c". +RUNNERS = [h.strip().lstrip("@") for h in os.environ.get( + "CHAMBER_RUNNERS", + "AmytalSodium,AuditorVS,BINANCEO,D3PR3C4T0R,Kakrotosh," + "RonnyInvests,batouposting,teddylj,xxx40ozHands").split(",") if h.strip()] + +def _runner(n): + """Display name for run n (1-based), cycling through RUNNERS.""" + if not RUNNERS or n is None: + return None + return "@" + RUNNERS[((n - 1) % len(RUNNERS) + len(RUNNERS)) % len(RUNNERS)] + # "vec" starts present-and-None: the forward hook reads it on every token. _state = {"model": None, "tok": None, "vecs": None, "hook": None, "ready": False, "vec": None, "scale": 1.0} @@ -539,7 +554,8 @@ async def steer(req: Request): info = set_mix_vec(arg) meta = {"valence": "mix", "mix": info["mix"], "weights": info["weights"], "dose": info["dose"], - "prompt": prompt, "scenario": framing_key} + "prompt": prompt, "scenario": framing_key, + "runner": _runner(None)} elif mode == "topic": topic_str, topic_dose = arg try: @@ -555,7 +571,8 @@ async def steer(req: Request): else: set_vec(arg) meta = {"valence": arg[0], "dose": arg[1], - "prompt": prompt, "scenario": framing_key} + "prompt": prompt, "scenario": framing_key, + "runner": _runner(None)} yield _sse("run", meta) try: lens_toks = await loop.run_in_executor( @@ -680,7 +697,8 @@ async def stream(): # start — that silence is what Railway turns into a 502 # "current" lets a viewer who joins mid-run paint the card it missed # the run event for — otherwise tokens arrive with no prompt attached - yield _sse("hello", {"subject": "the subject", "busy": _CYCLE_BUSY, + yield _sse("hello", {"subject": "the subject", "runners": RUNNERS, + "busy": _CYCLE_BUSY, "valences": list(VALENCES), "current": _CURRENT, "viewers": len(_SUBSCRIBERS), @@ -811,7 +829,8 @@ async def _shared_cycle(): continue run_n += 1 _CYCLE_BUSY = True - meta = {"n": run_n, "scenario": scenario, + meta = {"n": run_n, "runner": _runner(run_n), + "scenario": scenario, "valence": "pain", "dose": dose, "prompt": prompt} _CURRENT = dict(meta, text="") _broadcast("run", meta) diff --git a/site/downloads/saw_chamber_code.tar.gz b/site/downloads/saw_chamber_code.tar.gz index 0f4af63..7278802 100644 Binary files a/site/downloads/saw_chamber_code.tar.gz and b/site/downloads/saw_chamber_code.tar.gz differ diff --git a/site/live.html b/site/live.html index 153c404..a4d84df 100644 --- a/site/live.html +++ b/site/live.html @@ -492,8 +492,20 @@ const LENS_TITLE = "a linear probe of the model's hidden state at layer 18, " const RUN_NAMES = ["mike","william","dave","gary","susan","phil","nigel", "carl","derek","trevor","brian","keith","doug","bruce","stan","barry", "russell","colin","dennis","frank"]; +// consensual run names: people who asked for it on the naming invitation +// (server sends the roster in "hello" as "runners"); fall back to the +// mundane placeholder names when the roster is empty. +let RUN_HANDLES = []; function nameFor(n){ - return (n == null) ? null : RUN_NAMES[((n % RUN_NAMES.length) + RUN_NAMES.length) % RUN_NAMES.length]; + if (n == null) return null; + if (RUN_HANDLES.length){ + return "@" + RUN_HANDLES[((n - 1) % RUN_HANDLES.length + RUN_HANDLES.length) % RUN_HANDLES.length]; + } + return RUN_NAMES[((n % RUN_NAMES.length) + RUN_NAMES.length) % RUN_NAMES.length]; +} +function headerFor(n){ + const nick = nameFor(n); + return "the subject" + (nick ? ` ("${nick}")` : "") + " · run " + (n ?? "?"); } const API = (new URLSearchParams(location.search)).get("api") || "https://saw-production-688b.up.railway.app"; @@ -669,8 +681,8 @@ function finish(s, truncated, pressLogit){ // next run happens to start. Rendered as already-finished, never "live". function seedCard(s, entry){ s.live = false; - const nick = nameFor(entry.n); - s.h.textContent = "the subject" + (nick ? ` ("${nick}")` : "") + " · run " + (entry.n ?? "?"); + + s.h.textContent = headerFor(entry.n); s.st.textContent = "finished · between runs"; s.st.className = "st"; s.out.textContent = entry.text || ""; @@ -697,8 +709,8 @@ function beginRun(d){ liveIdx = nextSlot; nextSlot = (nextSlot + 1) % CARDS; s.live = true; - const nick = nameFor(d.n); - s.h.textContent = "the subject" + (nick ? ` ("${nick}")` : "") + " · run " + (d.n == null ? "?" : d.n); + + s.h.textContent = headerFor(d.n); s.st.textContent = "LIVE · signal injected"; s.st.className = "st live"; s.tokenN = 0; @@ -961,6 +973,16 @@ function pump(){ } if (d.stats) lastStats = d.stats; if (d.stats) Object.entries(d.stats).forEach(([name, s])=>paintStat(name, s)); + if (Array.isArray(d.runners) && d.runners.length){ + RUN_HANDLES = d.runners; + // repaint every run header now that real names are in + slots.forEach(sl=>{ if (sl && sl.n != null) sl.h.textContent = headerFor(sl.n); }); + historyEl.querySelectorAll(".hitem").forEach(it=>{ + const nn = Number((it.querySelector(".hn") || {}).title?.replace(/^#/, "")); + const nick = it.querySelector(".hn"); + if (nick && nn) nick.textContent = nameFor(nn) || nick.textContent; + }); + } if (d.votes){ allVotes = d.votes; Object.entries(allVotes).forEach(([uid, c])=>paintVotes(Number(uid), c)); } // joined mid-run: repaint the card the run event already went out for