variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout

This commit is contained in:
2026-11-15 14:35:00 +00:00
parent c51d31078e
commit fa3f23b474
51 changed files with 3477 additions and 1719 deletions
+4 -4
View File
@@ -1,20 +1,20 @@
// web/log.mjs — diagnostics: a rolling event log that survives
// web/log.mjs -- diagnostics: a rolling event log that survives
// refreshes.
//
// The api() choke point records every server call (status + duration),
// uncaught errors land here, and so do navigation ejections — the
// uncaught errors land here, and so do navigation ejections -- the
// "why did the app throw me out" history the ten-second banner loses.
// Kept in sessionStorage; the header's "log" button shows it.
import { $ } from './dom.mjs';
const log = [];
try { log.push(...JSON.parse(sessionStorage.getItem('diag') ?? '[]')); } catch { /* fresh or corrupt — start empty */ }
try { log.push(...JSON.parse(sessionStorage.getItem('diag') ?? '[]')); } catch { /* fresh or corrupt -- start empty */ }
export function logEvent(kind, text) {
log.push(`${new Date().toISOString().slice(11, 19)} ${kind} ${text}`);
if (log.length > 300) log.splice(0, log.length - 300);
try { sessionStorage.setItem('diag', JSON.stringify(log)); } catch { /* storage full or blocked — the in-memory copy lives on */ }
try { sessionStorage.setItem('diag', JSON.stringify(log)); } catch { /* storage full or blocked -- the in-memory copy lives on */ }
}
function renderDiag() {