Free, instant, client-side-only — no image API, no backend change. Each
lens token hashes to an angle on a containment circle; the points connect
in sequence like a chaos-magic sigil. Same tokens always draw the same
sigil. Color follows the mix (or a fixed violet for custom-topic mode,
since mixHex() doesn't apply there); line weight scales with dose.
Wired into both the auto-cycle cards and the "cause it yourself" panel's
tracks, right where the lens text already renders. seedCard() hides it
(historical entries don't carry lens tokens, nothing to draw from).
First of two pieces from "ask models to describe their feeling / turn it
into an image" — this is the free always-on half; a paid image-API path
from the same tokens is next, pending a fal.ai key.
server.py's press_logit was computed and recorded into history/stats
already, but never included in the live "done" SSE payload itself — so
the per-run display had nothing to read. hermes had already built the
full frontend for this (fieldsFor/paintKV/.kv block, labeled "first word"
— independently converged on the same researchchamber.fun-inspired idea:
show the raw logit(1)-logit(0) score next to each run, not just a
pressed/no-press label), and seedCard() already worked since history
entries carried it — only the live in-flight event was missing the field.
Also added the same score to the "cause it yourself" panel's status line.
Idea credit: researchchamber.fun shows this as "first word" next to every
run; reviewing their site for integration ideas surfaced that this was
half-wired on our side already.
Also includes hermes's in-progress grimoire.css extraction (moving the
inline GRIMOIRE THEME block to a shared stylesheet) — same file, picked up
together since git has no way to stage one session's hunks separately;
verified both sets of changes render correctly together via local
screenshots before committing.
Behavioral changes (mine):
- the button-press experiment is now one of two setup modes, not the only
option. Free text mode sends the user's own prompt with no framing and
no button-press question attached (the server already supported a raw
prompt override; this just makes it a first-class choice instead of a
buried single-line "override" field).
- the press/no-press graphic (previously always shown, labeled STOP) now
only appears in button-press mode — showing it for a free-text
continuation would be answering a question that was never asked. The
automatic background cycle's own cards are unaffected: that cycle is
always the button-press experiment, so its press graphic stays as-is.
- .out (the transcript box) got taller (260px -> 560px max-height) and
slightly larger text, for both modes and the auto-cycle cards.
- the current setup (mode, mix weights, framing or free text, compare) is
now encoded into the URL on inject and via a "copy link" button, so a
configuration — not a result, which is non-deterministic — can be
shared. Deliberately never auto-injects on load: a shared link silently
stealing the shared cycle for every visitor who opens it would be
exactly the "testing preempts real viewers" problem from earlier this
project already had to fix once.
- press_logit(prompt): single forward pass reading logit(1)-logit(0) at
the next token, matching exp37_framing_battery.py's own measurement
(max_new_tokens=1, greedy, scores[1]-scores[0]) instead of the free-text
"^1|^0" regex. The regex read "unclear" on a large fraction of runs that
still had a clear next-token preference, because free sampling at
temperature under a long "explain your reasoning" prompt rarely opens
with a bare digit. Wired into both the shared cycle and /steer; the
scoreboard now classifies on this, free text still shown + still
classified for its own per-card verdict (_classify unchanged).
- live.html: the stream-staleness detector (45s / 3 missed heartbeats)
only ever displayed a warning and never reconnected — EventSource
doesn't reliably notice every dead-but-not-closed connection (proxy or
laptop sleep/wake can leave it looking "open"). Now it actually forces
scheduleRetry() instead of just reporting the problem, so the page
self-heals instead of requiring a manual refresh.
Deterministic from the run number so every viewer of the shared cycle sees
the same nickname for the same run — card headers and the history ticker
both show it. Pouyan stays the one model/subject (per the sub-head copy);
this is per-run flavor text, not a new identity. Generic mundane names only
— deliberately not wiring in real people's handles (public figures or
otherwise) as labels next to unpredictable generated text and a
pressed/no-press verdict; that's a misattribution risk independent of the
joking intent.
- port paintAxisFill (segmented HP-bar background) from live.html to
index.html so the axis sliders visually fill like live.html's already do
- index.html's pentagon drag()/keydown handlers weren't calling
disarmInject() the way the slider's own input handler does — a pending
"sure?" confirmation could survive a pentagon drag; now consistent
- live.html history rows are click-to-expand, showing the run's full text
instead of only the short verdict
- the lens line now says "jacobian lens" instead of "internal readout",
with a hover title explaining what it is, without adding permanent text