add ledger + vectors pages; archive.html gets deep-linkable filters

- build_ledger.py / site/ledger.html: the pre-registered exp41 protocol's
  hypotheses, verdicts, per-cell press stats, contrasts, and the
  betrayal-reveal result, straight from its own already-computed
  results.json/hypotheses.json — no new stats derived here.
- build_vectors.py / site/vectors.html: extraction-set sizes and
  before/after orthogonalization cosines (exp41), the layer-by-layer AUC
  curve (exp43), plus a live client-side fetch of the running server's own
  /vector endpoint so the "what's actually injected right now" number is
  never a stale snapshot.
- site/archive.html: added ?q=&valence=&exp=&tag= URL params so the new
  pages (and anyone) can deep-link straight to the matching transcripts
  instead of just naming a condition in prose.

Deliberately unstyled beyond the site's existing base tokens — same as
archive.html, left for a visual pass rather than guessing at the
in-progress grimoire direction.
This commit is contained in:
eve VT committed 2026-10-01 08:54:02 -04:00
1 parent 93d2308c3e
commit 2896bc962f
7 files changed
+1159

No files matched your search

+16
View File
@@ -161,9 +161,25 @@ function populateFilters(){
document.getElementById("q").addEventListener("input", render);
// deep-linkable: ?tag=corrected&valence=pain&exp=exp41_reveals&q=signal —
// lets other pages (the ledger, say) point straight at the matching
// transcripts instead of just naming a condition in prose
function applyQueryParams(){
const p = new URLSearchParams(location.search);
if (p.has("q")) document.getElementById("q").value = p.get("q");
if (p.has("valence")) document.getElementById("valenceSel").value = p.get("valence");
if (p.has("exp")) document.getElementById("expSel").value = p.get("exp");
active.valence = document.getElementById("valenceSel").value;
active.exp = document.getElementById("expSel").value;
if (p.has("tag")) active.tag = p.get("tag");
}
fetch(API_DATA).then(r=>r.json()).then(d=>{
ALL = d;
populateFilters();
applyQueryParams();
document.querySelectorAll(".chip").forEach(c=>
c.classList.toggle("active", c.dataset.tag === active.tag));
render();
document.getElementById("footCount").prepend(ALL.length + " ");
}).catch(err=>{