The LineupWho broke it? The front desk offers sample reports that fill the report box
The saved Kane test self-sample-reports passed at 430f52e and fails at
8565456. The 41 commits in between that changed whisperer/ are the suspects.
For each one Kane questions, that commit's own code is started and Kane replays the same test on it.
Replays spend no credits, but 8 fresh runs did.
🎬 Watch Kane question them
42 versions in a row · the real questionings, in order · about a minute430f52e last good
✗ 8565456 broken
-
035c914Connect any website, and have Kane double-check user claims -
3326807Give Kane its role: the detective who closes a case only when it sees the fix -
f1a0716Add the hook: Kane revisits closed cases before Claude Code may finish -
0b4ecacAdd the hosted live demo for Render -
4526f21Restyle the website as a case file, and lead the home page with proof -
80be025Put Kane front and centre: its own voice, and a replay of each case -
16f474cFix live cases on the server, and show Kane's browser live -
9cec82cLighter camera on Linux: start Chrome directly, with memory-saving flags -
4d6a44eKeep the live view steady while a case runs -
c059937Animate the home page opening -
c81329aHelp Kane past required form fields -
6cbc595Type dates and times the way browser pickers accept them -
0145909Give the planner a field guide for any website -
a673a94Teach Kane itself how to fill forms, with a context file -
3a02defClaude decides what to fill, Kane knows how to type it -
8bfa9a7Fill every field, and no checks before the real one -
e13d363Don't confirm a bug when Kane's step never happened -
bb63eecTurn the live camera off on the server -
cf60c65Add a live tracker of Kane at work -
52acb5b#3 Let the host switch the camera back on, launched like demo.studio -
e85fd48Pin cases on a detective's corkboard, with an evidence wall per case -
b878051Only revisit closed cases when the app's own code changes -
94cd3a0Open cases from a tester's results, with Detective Kane as the main character -
5c7912aStart the game at Detective Kane's desk -
71f9f2dAdd the scene map, a chapter card for new cases, and impact on the verdict -
c630018Reconstruct each closed case in 3D, as a tour that plays by itself -
4bb2200Show Detective Kane acting out each real step in 3D on a live case -
c886350Give the live 3D detective a proper art pass -
dfe5c25Show Kane's real browser on the 3D screen, and fix the door, the chair and the scene map -
35d8ab9#4 Make Detective Kane one character everywhere -
989814fLet Kane sit at his computer and pin evidence on a corkboard as he finds it -
300444aRemaster Kane's office: noir lighting, wallpaper, wainscoting, blind stripes and dust -
33e8d19Let Kane use his chair, give the clock numbers, and follow the viewer's time of day -
612c308Turn the live camera off for good -
91cb692#5 Draw Kane's head like the 3D robot, and add a not-found page -
062e929Add a Verified page and the proof tools behind it -
c35cb18Record the proof experiments: 6 of 6 came out as expected -
ee5f705#6 Export each finished case as a report: PDF-ready page or Markdown -
d4c9535#7 Let Kane check Bug Whisperer itself -
c90a4c3#8 Redesign landing page and main menu -
8565456#2 Redesign 3d game
#n Kane questioned it, in that order. "Ruled out": another questioning settled it. A pass clears that commit and every one before it; a fail means the bug was already there.
8565456 “Redesign 3d game”
sam838 · 2026-11-17 10:21 · questioned as #2
Kane: “The loaded page showed a prefilled bug-report box and a submit button, but no button for filling in a sample report. The test started from the wrong page state or skipped the step that would reveal those controls.”
The commit just before it passed the same test, so this is the change that broke it. Its name doesn't have to mention the bug, and often it doesn't.
whisperer/static/app.js | 42 ++++++- whisperer/static/kane3d.js | 24 +++- whisperer/static/style.css | 210 +++++++++++++++++++++++++++++++++ whisperer/templates/_live.html | 52 ++++++-- whisperer/templates/investigation.html | 10 -- whisperer/templates/report.html | 30 ++--- whisperer/web.py | 21 +++- 7 files changed, 347 insertions(+), 42 deletions(-)
Show the culprit's full change to whisperer/
diff --git a/whisperer/static/app.js b/whisperer/static/app.js index f2ba5e4..e47572a 100644 --- a/whisperer/static/app.js +++ b/whisperer/static/app.js @@ -47,6 +47,42 @@ document.addEventListener("click", async (event) => { } }); +// The live 3D game's lightweight controls. The WebGL stage is kept across polling, while these +// buttons are replaced with the fresh HUD, so the selected camera is read back from the stage. +function syncKaneControls(root = document) { + root.querySelectorAll("[data-kane-game]").forEach((game) => { + const stage = game.querySelector("[data-kane3d]"); + const label = game.querySelector("[data-game-camera] b"); + if (label && stage?.dataset.camera) label.textContent = stage.dataset.camera; + const fullscreen = game.querySelector("[data-game-fullscreen]"); + if (fullscreen) { + const on = document.fullscreenElement === game; + fullscreen.setAttribute("aria-label", on ? "Exit fullscreen" : "Enter fullscreen"); + fullscreen.querySelector("span").textContent = on ? "⛶" : "⛶"; + } + }); +} + +document.addEventListener("click", async (event) => { + const camera = event.target.closest("[data-game-camera]"); + if (camera) { + const stage = camera.closest("[data-kane-game]")?.querySelector("[data-kane3d]"); + const label = stage?.kaneCameraNext?.(); + if (label) camera.querySelector("b").textContent = label; + return; + } + const fullscreen = event.target.closest("[data-game-fullscreen]"); + if (!fullscreen) return; + const game = fullscreen.closest("[data-kane-game]"); + try { + if (document.fullscreenElement) await document.exitFullscreen(); + else await game.requestFullscreen(); + } catch { + /* Fullscreen can be blocked by an embedded browser; the game still works in place. */ + } +}); +document.addEventListener("fullscreenchange", () => syncKaneControls()); + // Before/after compare slider: dragging moves a clip-path wipe (no layout, GPU only). document.addEventListener("input", (event) => { const range = event.target.closest(".compare-range"); @@ -343,7 +379,10 @@ if (live) { .filter((d) => d.open).map((d) => d.dataset.key)); live.innerHTML = await response.text(); live.querySelectorAll("[data-keep]").forEach((n) => { - if (kept[n.dataset.keep]) n.replaceWith(kept[n.dataset.keep]); + if (kept[n.dataset.keep]) { + Object.assign(kept[n.dataset.keep].dataset, n.dataset); + n.replaceWith(kept[n.dataset.keep]); + } }); live.querySelectorAll("details[data-key]").forEach((d) => { if (open.has(d.dataset.key)) d.open = true; @@ -358,6 +397,7 @@ if (live) { live.querySelectorAll("[data-trail]").forEach(initTrail); if (window.initRecon) live.querySelectorAll("[data-recon]").forEach(window.initRecon); if (window.initKane3d) window.initKane3d(live); + syncKaneControls(live); document.dispatchEvent(new Event("kane:update")); // Kane in 3D acts out any new steps typeOut(live); const stampNow = stampText(); diff --git a/whisperer/static/kane3d.js b/whisperer/static/kane3d.js index f09f504..499b919 100644 --- a/whisperer/static/kane3d.js +++ b/whisperer/static/kane3d.js @@ -753,6 +753,18 @@ stage.classList.add("ready"); stage.dataset.ready = "1"; const T = window.THREE; + const cameraViews = [ + { label: "Office", position: new T.Vector3(0.9, 1.95, 3.7), focus: new T.Vector3(-0.65, 1.12, -0.95) }, + { label: "Desk", position: new T.Vector3(0.15, 1.7, 2.45), focus: new T.Vector3(-1.25, 1.15, -0.75) }, + { label: "Evidence", position: new T.Vector3(0.85, 1.85, 2.05), focus: new T.Vector3(-0.25, 1.68, -2.92) }, + ]; + let cameraAt = Math.max(0, cameraViews.findIndex((view) => view.label === stage.dataset.camera)); + stage.dataset.camera = cameraViews[cameraAt].label; + stage.kaneCameraNext = () => { + cameraAt = (cameraAt + 1) % cameraViews.length; + stage.dataset.camera = cameraViews[cameraAt].label; + return stage.dataset.camera; + }; rig.scene.traverse((o) => { for (const m of [].concat(o.material || [])) if (m.isMeshStandardMaterial) m.envMapIntensity = m.metalness > 0.5 ? 0.6 : 0.1; }); @@ -815,10 +827,11 @@ document.addEventListener("kane:update", update); // Kane's real browser on the 3D screen, whenever the live camera is filming it - const liveSrc = stage.dataset.liveSrc; let misses = 0; const pollLive = () => { - if (!canvas.isConnected || !liveSrc) return; + if (!canvas.isConnected) return; + const liveSrc = stage.dataset.liveSrc; + if (!liveSrc) { setTimeout(pollLive, 1500); return; } const img = new Image(); img.onload = () => { misses = 0; rig.screen.state.live = img; rig.screen.draw(); setTimeout(pollLive, 1000); }; img.onerror = () => { @@ -878,7 +891,12 @@ rig.clock.minPivot.rotation.z = -d.getMinutes() / 60 * Math.PI * 2; rig.clock.hourPivot.rotation.z = -((d.getHours() % 12) + d.getMinutes() / 60) / 12 * Math.PI * 2; rig.alarm.intensity = rig.alarmUntil && now < rig.alarmUntil ? 2.2 + Math.sin(now / 70) * 1.2 : 0; - rig.camera.position.x = 0.9 + Math.sin(now / 6000) * 0.12; // a slow drift, so the shot feels alive + const view = cameraViews[cameraAt], ease = Math.min(1, dt * 3.2); + const drift = cameraAt === 0 ? Math.sin(now / 6000) * 0.12 : 0; + rig.camera.position.x += (view.position.x + drift - rig.camera.position.x) * ease; + rig.camera.position.y += (view.position.y - rig.camera.position.y) * ease; + rig.camera.position.z += (view.position.z - rig.camera.position.z) * ease; + rig.focus.lerp(view.focus, ease); rig.camera.lookAt(rig.focus); rig.renderer.render(rig.scene, rig.camera); }; diff --git a/whisperer/static/style.css b/whisperer/static/style.css index b8e7ff5..60a7f12 100644 --- a/whisperer/static/style.css +++ b/whisperer/static/style.css @@ -1017,3 +1017,213 @@ a.btn { text-decoration: none; } @media (prefers-reduced-motion: reduce) { .featured-case { transition: none; } } + +/* The approved direction is a warm paper interface in every system theme. */ +:root { + color-scheme: light; + --paper: #f3eee5; --paper-2: #ebe4d8; --card: #fffdf9; --ink: #17181d; --ink-2: #3d3f47; + --muted: #6f6a62; --line: #e2d9ca; --line-strong: #cfc3b0; --accent: #b4410f; + --accent-ink: #fff; --accent-soft: #f8e9dc; --bug: #b3261e; --bug-soft: #fbe9e7; + --ok: #0f7a52; --ok-soft: #e3f3ea; --warn: #946200; --warn-soft: #fbf1d6; + --neutral-soft: #ece7de; --shadow: 0 1px 0 rgba(23, 24, 29, .04), 0 8px 24px -12px rgba(23, 24, 29, .18); +} +.wrap { max-width: 1536px; padding: 10px 34px 40px; } +.topbar-shell { width: min(100%, 1440px); } +.detective-hero { + grid-template-columns: minmax(0, .94fr) minmax(570px, 1.06fr); gap: 40px; padding: 10px 0 16px; +} +.hero-copy h1 { max-width: 690px; margin-bottom: 14px; font-size: clamp(46px, 3.85vw, 59px); line-height: .96; } +.hero-copy .lede { max-width: 670px; font-size: 16.5px; line-height: 1.5; } +.hero-copy .eyebrow { margin-bottom: 13px; } +.trust-row { margin-top: 15px; } +.kane-console { min-height: 260px; border-radius: 18px; } +.console-body { min-height: 214px; } +.console-kane { height: 210px; } +.console-kane .kane-sprite { width: 150px; transform: translateY(9px); } +.console-steps { padding-block: 12px; } +.console-steps li { min-height: 61px; } +.console-steps li b { font-size: 13px; } +.console-steps li small { font-size: 10.5px; } +.console-steps li div { padding-top: 3px; } +.case-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(350px, .95fr); margin: 10px 0 24px; } +.case-intake { gap: 11px; padding: 21px 28px 22px; } +.workspace-head h2, .next-panel h2 { font-size: 27px; } +.case-intake textarea { height: 84px; min-height: 84px; } +.case-intake .examples { gap: 6px; } +.case-intake .chip { padding: 3px 10px; font-size: 11.5px; } +.evidence-drop { min-height: 67px; padding-block: 9px; } +.investigate-btn { padding-block: 11px; font-size: 15px; } +.next-panel { padding: 21px 26px 18px; } +.next-panel > p { margin: 6px 0 12px; } +.next-steps > li { padding-bottom: 11px; } +.next-steps p { margin-bottom: 5px; } +.proof-mini { min-height: 32px; padding-block: 5px; } +.recent-proof { margin: 18px 0 0; } +.recent-head { align-items: center; margin-bottom: 10px; } +.recent-head h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 24px; } +.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } +.recent-card { + position: relative; overflow: hidden; display: grid; gap: 8px; min-height: 105px; padding: 12px 16px 11px 20px; + color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); +} +.recent-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line-strong); } +.recent-card.tone-ok::before { background: var(--ok); } +.recent-card.tone-bug::before { background: var(--bug); } +.recent-card.tone-warn::before { background: #d99a16; } +.recent-card > div, .recent-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; } +.case-ref, .recent-card time { color: var(--muted); font: 600 10.5px/1 var(--mono); } +.recent-card > b { overflow: hidden; font-family: var(--serif); font-size: 16px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; } +.recent-card footer { color: var(--ink-2); font-size: 11.5px; } +.recent-card footer strong { flex: none; padding: 3px 8px; color: var(--accent); border: 2px solid currentColor; border-radius: 4px; font: 800 10px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-2deg); } +.recent-card.tone-ok footer strong { color: var(--ok); } +.recent-card.tone-bug footer strong { color: var(--bug); } +.recent-card.tone-warn footer strong { color: var(--warn); } + +@media (max-width: 1050px) { + .wrap { padding-inline: 20px; } + .detective-hero { grid-template-columns: 1fr; } + .case-workspace { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); } +} +@media (max-width: 800px) { + .case-workspace { grid-template-columns: 1fr; } + .recent-grid { grid-template-columns: 1fr; } +} +@media (max-width: 560px) { + .wrap { padding-inline: 14px; } + .hero-copy h1 { font-size: 42px; } +} + +/* ── Live 3D investigation game ───────────────────────────────────────────────────────────── + The office stays the real, persistent WebGL scene. The HUD around it is replaced by polling, + so progress changes without restarting Kane's animation. */ +.live-root:has(.scene-live) > .case-track { display: none; } +.scene-live { gap: 10px; margin-top: 14px; } +.kane-game { + position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 7; + border: 3px solid #f3eee5; border-radius: 16px; background: #10131e; + box-shadow: 0 0 0 3px #15182a, 0 22px 42px -22px rgba(0, 0, 0, .72); +} +.kane-game .kane3d { + position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; + border: 0; border-radius: 12px; box-shadow: none; +} +.kane-game .kane3d::after { background: radial-gradient(ellipse at 45% 50%, transparent 62%, rgba(0, 0, 0, .46)); } +.game-chapter { + position: absolute; z-index: 4; left: 50%; top: 14px; transform: translateX(-50%); + min-width: 210px; padding: 7px 16px; text-align: center; color: #f3eee5; + border: 2px solid #d6a84b; border-radius: 999px; background: rgba(21, 24, 42, .9); + box-shadow: 0 7px 20px -10px rgba(0, 0, 0, .8); font: 800 11px/1 var(--mono); + letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(7px); +} +.game-chapter span { color: #ffd166; } +.game-trail { + position: absolute; z-index: 4; top: 20px; right: 16px; width: 205px; overflow: hidden; + color: #f3eee5; border: 2px solid #d6c18d; border-radius: 12px; background: rgba(21, 24, 42, .92); + box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .9); backdrop-filter: blur(8px); +} +.game-trail h3 { + display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; + color: #ffd166; border-bottom: 1px solid rgba(243, 238, 229, .18); + font: 800 11px/1 var(--mono); letter-spacing: .1em; +} +.game-trail h3 span { font-size: 17px; } +.game-trail ol { display: grid; gap: 4px; margin: 0; padding: 9px; list-style: none; } +.game-trail li { + position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: center; + min-height: 31px; padding: 5px 8px; color: #a9adba; border: 1px solid transparent; border-radius: 8px; + font-size: 11.5px; font-weight: 650; +} +.game-trail li:not(:last-child)::after { + content: ""; position: absolute; left: 18px; top: 29px; width: 1px; height: 10px; + background: rgba(214, 168, 75, .55); +} +.game-trail li i { + position: relative; z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; + border: 2px solid #8c91a2; border-radius: 50%; background: #15182a; color: #10271e; + font: 900 10px/1 var(--sans); font-style: normal; +} +.game-trail li.done { color: #d9dbe3; } +.game-trail li.done i { border-color: #4fd39b; background: #4fd39b; } +.game-trail li.active { color: #fff; border-color: #f08a4b; background: rgba(180, 65, 15, .9); box-shadow: 0 0 18px -8px #f08a4b; } +.game-trail li.active i { border-color: #ffd166; } +.game-controls { position: absolute; z-index: 4; left: 14px; bottom: 13px; display: flex; gap: 8px; } +.game-controls button { + display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 11px; + color: #f3eee5; border: 2px solid rgba(243, 238, 229, .8); border-radius: 9px; + background: rgba(21, 24, 42, .86); font: 700 11.5px/1 var(--sans); cursor: pointer; + box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .9); backdrop-filter: blur(7px); +} +.game-controls button:hover { background: rgba(42, 47, 74, .96); } +.game-controls button:active { transform: scale(.97); } +.game-controls button > span { font-size: 15px; } +.game-controls button small { color: #ffd166; } +.game-intro { + position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); + display: grid; justify-items: center; width: min(520px, calc(100% - 440px)); padding: 20px 28px; + color: #f3eee5; text-align: center; border: 3px solid #f3eee5; border-radius: 16px; + background: rgba(28, 25, 29, .88); box-shadow: 0 0 0 3px rgba(21, 24, 42, .85), 0 22px 45px -18px #000; + backdrop-filter: blur(8px); animation: game-intro-in 360ms var(--ease-out) both; +} +.game-intro[hidden] { display: none; } +.game-intro.out { opacity: 0; transform: translate(-50%, calc(-50% - 8px)); transition: opacity 260ms ease, transform 260ms var(--ease-out); } +.game-intro-kicker { color: #ffd166; font: 800 12px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; } +.game-intro-kicker::before, .game-intro-kicker::after { content: " ━ "; letter-spacing: 0; } +.game-intro p { margin: 12px 0 8px; font: italic 700 25px/1.2 var(--serif); } +.game-intro > span:not(.game-intro-kicker) { color: #d6c18d; font-size: 14px; } +.game-intro small { margin-top: 8px; color: #a9adba; } +@keyframes game-intro-in { from { opacity: 0; transform: translate(-50%, -47%) scale(.97); } } + +.game-dialogue { + display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; + min-height: 84px; padding: 11px 16px 12px 12px; color: #f3eee5; + border: 3px solid #f3eee5; border-radius: 13px; background: #15182a; + box-shadow: 0 0 0 3px #15182a, 0 16px 30px -18px rgba(0, 0, 0, .65); +} +.game-dialogue .rpg-portrait { width: 58px; height: 58px; } +.game-dialogue-body { min-width: 0; } +.game-dialogue .rpg-name { display: block; } +.game-dialogue .rpg-text { min-height: 0; font-size: 15px; } +.game-thinking { display: inline-flex; gap: 4px; padding: 8px 10px; border-radius: 999px; background: #292d42; } +.game-thinking i { width: 6px; height: 6px; border-radius: 50%; background: #f3eee5; animation: game-think 1.2s ease-in-out infinite; } +.game-thinking i:nth-child(2) { animation-delay: 160ms; } +.game-thinking i:nth-child(3) { animation-delay: 320ms; } +@keyframes game-think { 50% { opacity: .28; transform: translateY(-2px); } } +.game-live { + display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #72ddb0; + border: 1px solid #32bd81; border-radius: 999px; font: 800 10.5px/1 var(--mono); + letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; +} +.game-live i { width: 8px; height: 8px; border-radius: 50%; background: #4fd39b; box-shadow: 0 0 0 3px rgba(79, 211, 155, .14); } +.kane-game:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; background: #10131e; } +.kane-game:fullscreen .kane3d { border-radius: 0; } + +@media (max-width: 900px) { + .game-trail { width: 178px; } + .game-trail li { min-height: 27px; padding-block: 3px; font-size: 10.5px; } + .game-intro { width: min(460px, calc(100% - 380px)); padding: 16px 20px; } + .game-intro p { font-size: 20px; } +} +@media (max-width: 760px) { + .live-root:has(.scene-live) > .case-track { display: flex; } + .kane-game { aspect-ratio: 4 / 3; } + .game-trail { display: none; } + .game-chapter { left: auto; right: 10px; top: 10px; transform: none; min-width: 0; } + .game-intro { width: min(480px, calc(100% - 28px)); } + .game-controls { left: 10px; bottom: 10px; } + .game-dialogue { grid-template-columns: 48px 1fr auto; } + .game-dialogue .rpg-portrait { width: 48px; height: 48px; } + .game-thinking { display: none; } + .game-live { grid-column: 2 / -1; justify-self: start; } +} +@media (max-width: 480px) { + .game-chapter { font-size: 9px; } + .game-intro p { font-size: 17px; } + .game-controls button:first-child { font-size: 0; } + .game-controls button:first-child b { font-size: 11px; } + .game-dialogue { grid-template-columns: 1fr; } + .game-dialogue .rpg-portrait { display: none; } + .game-live { grid-column: 1; } +} +@media (prefers-reduced-motion: reduce) { + .game-intro, .game-thinking i { animation: none; } +} diff --git a/whisperer/templates/_live.html b/whisperer/templates/_live.html index b764f34..80d7eb9 100644 --- a/whisperer/templates/_live.html +++ b/whisperer/templates/_live.html @@ -1,11 +1,11 @@ -{% from "_kane.html" import sprite, say, head %} +{% from "_kane.html" import sprite, head %} {% set fixv = inv.fix.get('verdict') if inv.fix else None %} {% set fixs = inv.fix.get('status', '') if inv.fix else '' %} <div class="live-root" data-active="{{ 'true' if active else 'false' }}"> {# ------------------------------------------------ progress ------------------------------------------------ #} {% set stage = 0 %} - {% if inv.status in ('planning', 're-planning') %}{% set stage = 1 %} + {% if inv.status in ('queued', 'planning', 're-planning') %}{% set stage = 1 %} {% elif inv.status == 'reproducing' %}{% set stage = 2 %} {% elif inv.status in ('judging', 'double-checking') %}{% set stage = 3 %} {% elif inv.status == 'done' %}{% set stage = 4 %}{% endif %} @@ -14,8 +14,9 @@ {% elif fixs.startswith('waiting') or fixs.startswith('Kane') %}{% set stage = 6 %} {% elif fixs == 'done' %}{% set stage = 7 %}{% endif %} {% endif %} - <ol class="track"> - {% for label in ['The case', 'The scene', 'Evidence', 'Verdict', 'Repair', 'Back to the scene', 'Closed'] %} + {% set game_labels = ['The case', 'The scene', 'Evidence', 'Verdict', 'Repair', 'Back to the scene', 'Closed'] %} + <ol class="track case-track"> + {% for label in game_labels %} <li class="{{ 'done' if loop.index < stage or (stage == 7 and loop.index == 7 and fixv == 'fixed') }} {{ 'now' if loop.index == stage and active }}">{{ label }}</li> {% endfor %} </ol> @@ -25,11 +26,46 @@ <section class="scene scene-live" data-mode="{{ scene.mode }}"> {# Detective Kane in 3D, acting out each real step as it happens (kane3d.js). The stage is kept across page refreshes; the 2D detective shows if 3D isn't available. #} - <div class="kane3d" data-kane3d data-keep="kane-3d"> - <canvas class="kane3d-canvas" role="img" aria-label="Detective Kane at work, in 3D"></canvas> - <div class="kane3d-fallback">{{ sprite(scene.mode) }}</div> + <div class="kane-game" data-kane-game> + <div class="kane3d" data-kane3d data-keep="kane-3d" data-live-src="{{ live_shot or '' }}"> + <canvas class="kane3d-canvas" role="img" aria-label="Detective Kane at work, in 3D"></canvas> + <div class="kane3d-fallback">{{ sprite(scene.mode) }}</div> + </div> + + {% if inv.status in ('queued', 'planning') and not inv.fix %} + <div class="game-intro" data-chapter="{{ inv.id }}" hidden> + <span class="game-intro-kicker">New case</span> + <p>“{{ inv.report[:110] }}{{ '…' if inv.report|length > 110 }}”</p> + <span>Chapter 1 · The witness statement</span> + <small>Detective Kane takes the case…</small> + </div> + {% endif %} + + <div class="game-chapter"><span>{{ stage }} of 7</span> · {{ game_labels[stage - 1] }}</div> + <aside class="game-trail" aria-label="Investigation progress"> + <h3><span aria-hidden="true">⌕</span> Investigation</h3> + <ol> + {% for label in game_labels %} + <li class="{{ 'done' if loop.index < stage }} {{ 'active' if loop.index == stage }}"> + <i aria-hidden="true">{{ '✓' if loop.index < stage else '' }}</i><span>{{ label }}</span> + </li> + {% endfor %} + </ol> + </aside> + <div class="game-controls"> … 122 more lines
The questionings, in order
-
#1
430f52eAdd the Bug Whisperer website Last good version ✓ Cleared: the test passed · 60 s · fresh run -
#2
8565456Redesign 3d game ✗ The bug is there: the test failed · 43 s · fresh run Kane: “The loaded page showed a prefilled bug-report box and a submit button, but no button for filling in a sample report. The test started from the wrong page state or skipped the step that would reveal those controls.” -
#3
52acb5bLet the host switch the camera back on, launched like demo.studio ✓ Cleared: the test passed · 60 s · fresh run -
#4
35d8ab9Make Detective Kane one character everywhere ✓ Cleared: the test passed · 60 s · fresh run -
#5
91cb692Draw Kane's head like the 3D robot, and add a not-found page ✓ Cleared: the test passed · 56 s · fresh run -
#6
ee5f705Export each finished case as a report: PDF-ready page or Markdown ✓ Cleared: the test passed · 64 s · fresh run -
#7
d4c9535Let Kane check Bug Whisperer itself ✓ Cleared: the test passed · 60 s · fresh run -
#8
c90a4c3Redesign landing page and main menu ✓ Cleared: the test passed · 58 s · fresh run
Kept as evidence: docs/evidence/005-lineup-who-broke-the-front-desk