From e92796d5fc3b7ad501ec5ebe79ae31f27f411ce7 Mon Sep 17 00:00:00 2001
From: eve VT <38737064+terrafying@users.noreply.github.com>
Date: Thu, 1 Oct 2026 11:43:04 -0400
Subject: [PATCH] add sigil: a deterministic glyph drawn from each run's lens
tokens
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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.
---
site/live.html | 75 +++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 68 insertions(+), 7 deletions(-)
diff --git a/site/live.html b/site/live.html
index a4d84df..1ca6320 100644
--- a/site/live.html
+++ b/site/live.html
@@ -366,7 +366,11 @@ else is.
-
+
+
+
+
STOP
—
@@ -374,7 +378,11 @@ else is.
-
+
+
+
+
STOP
—
@@ -485,6 +493,46 @@ const CARDS = 2; // fewer, wider cards — narrow columns made the generated
const LENS_TITLE = "a linear probe of the model's hidden state at layer 18, "
+ "decoded through its own output head — what concept is live inside it "
+ "right now, not a preview of what it's about to say";
+
+// ---- sigil: a deterministic glyph drawn from the lens tokens, not from
+// whatever the model chooses to narrate out loud. Same tokens always draw
+// the same sigil (a stable hash per token -> an angle on the containment
+// circle, connected in sequence, chaos-magic-sigil style) — a second,
+// wordless readout of the internal state, free and instant (no image API).
+function _sigilHash(s){
+ let h = 0;
+ for (let i = 0; i < s.length; i++) h = (h * 31 + s.charCodeAt(i)) | 0;
+ return Math.abs(h);
+}
+const SIGIL_NS = "http://www.w3.org/2000/svg";
+function paintSigil(svg, tokens, hex, dose){
+ if (!svg) return;
+ if (!Array.isArray(tokens) || !tokens.length){ svg.style.display = "none"; return; }
+ svg.style.display = "block";
+ while (svg.firstChild) svg.removeChild(svg.firstChild);
+ const mk = (tag, attrs) => {
+ const el = document.createElementNS(SIGIL_NS, tag);
+ for (const k in attrs) el.setAttribute(k, attrs[k]);
+ return el;
+ };
+ const cx = 50, cy = 50, R = 40;
+ const pts = tokens.map(t => {
+ const a = (_sigilHash(t) % 360) * Math.PI / 180;
+ return [cx + R * Math.cos(a), cy + R * Math.sin(a)];
+ });
+ const sw = Math.max(1, Math.min(4, 0.6 + (Math.max(0, dose) / 8) * 3));
+ svg.appendChild(mk("circle", {cx, cy, r: R, fill: "none", stroke: hex,
+ "stroke-width": 1, "stroke-opacity": 0.35}));
+ if (pts.length > 1){
+ const d = pts.map((p, i) => (i === 0 ? "M" : "L")
+ + p[0].toFixed(1) + "," + p[1].toFixed(1)).join(" ") + " Z";
+ svg.appendChild(mk("path", {d, fill: "none", stroke: hex,
+ "stroke-width": sw, "stroke-linejoin": "round", "stroke-opacity": 0.9}));
+ }
+ pts.forEach(p => svg.appendChild(
+ mk("circle", {cx: p[0], cy: p[1], r: 2.2, fill: hex})));
+ svg.appendChild(mk("circle", {cx, cy, r: 1.6, fill: hex, "fill-opacity": 0.6}));
+}
// one subject (see the sub-head above), but each numbered run gets
// a throwaway nickname for flavor — deterministic from the run number so
// every viewer of the shared cycle sees the same one. Deliberately mundane
@@ -569,7 +617,11 @@ for (let i=0;ithe subject · waiting