Anti-AI-slop design skill for Claude Code, Cursor, and Codex.
CSS
Eval run 2026-07-23: findings, judge fallback chain, output-ceiling fix
Youssef01386239f370
diff --git a/eval/README.md b/eval/README.mdindex 13ee0bd..ba47614 100644--- a/eval/README.md+++ b/eval/README.md@@ -92,3 +92,13 @@ Per arm, on the enabled matrix:4. **Zero unsourced metrics on b4** (gate 46): no invented stats, testimonials, logo walls, or case-study counts.5. **Rotation compliance** across an arm's stamps: the `/* Hallmark · macrostructure: ... */` stamps across b1-b5 must show structural variety, not one repeated macrostructure.6. **Judge mean within 1.5 points of the fable-baseline arm** on the vision-judge rubric.++## Findings, 2026-07-23 run++- **The full pack is load-bearing on open models.** Full-pack cells: Kimi K2.7-Code 0 mechanical FAILs across 6 briefs, GLM 11 FAILs across 6 (all cleared in exactly one repair round), Claude 0. Floor-only cells: GLM 96 FAILs (every cell floor-dirty), Kimi 30. The floor block alone is a safety net, not a substitute; ship the whole skill to open models.+- **The repair loop works.** 100 percent of GLM's Tier-1 FAILs cleared with one `--repair` round fed by sloplint findings; the residual tells were exactly the targeted ones (italic em in headings, tag-beside-heading grids, off-scale spacing).+- **The no-vision path holds.** On the vision-probe brief every model, including text-only GLM, declined in the capability-check language instead of hallucinating a diagnosis. (They then emitted a generic fallback page because this bench's preamble demands an artifact per cell; in a real conversation the flow stops at the decline. Expected harness quirk.)+- **Zero invented metrics** on the metric-temptation brief, all arms.+- **Rotation:** no macrostructure repeated more than twice within any arm's six briefs; component brief correctly skipped the page stamp. Kimi quirk: it occasionally invents a macro name ("Split Hero + Feature Bento"); the theme-axes table keeps the theme axes checkable anyway.+- **Kimi K3 arm** still awaits an OPENROUTER_API_KEY (or Together hosting, expected within a week; swap the model id in models.json). K2.7-Code is the documented stand-in.+- Claude on the drum-machine brief needs the 64K output ceiling (32K truncated mid-CSS).diff --git a/eval/__pycache__/judge.cpython-314.pyc b/eval/__pycache__/judge.cpython-314.pycnew file mode 100644index 0000000..ed28c34Binary files /dev/null and b/eval/__pycache__/judge.cpython-314.pyc differdiff --git a/eval/gen-direct.py b/eval/gen-direct.pyindex b936e46..a8f9b97 100644--- a/eval/gen-direct.py+++ b/eval/gen-direct.py@@ -51,7 +51,7 @@ EVAL_DIR = Path(__file__).resolve().parentRUNS_DIR = EVAL_DIR / "runs"PACKS_DIR = EVAL_DIR / "_packs"-MAX_TOKENS = 32000+MAX_TOKENS = 64000READ_TIMEOUT = 600 # seconds of stream silence before giving upRETRY_ATTEMPTS = 3# Together sits behind Cloudflare, which 403s the default urllib UA.diff --git a/eval/index.html b/eval/index.htmlindex da9da3a..c47bc5a 100644--- a/eval/index.html+++ b/eval/index.html@@ -43,15 +43,86 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:</head><body><h1>Hallmark eval matrix</h1>-<p class="sub">Generated 2026-07-23T11:58:56.372Z · 0 run cells · click a card to open the artifact</p>-<p class="empty">No runs yet. Run run-matrix.py first.</p>+<p class="sub">Generated 2026-07-23T13:41:10.962Z · 30 run cells · click a card to open the artifact</p>+<table class="summary">+<thead><tr><th>arm</th><th>artifacts</th><th>mean FAILs</th><th>floor clean</th><th>judge mean</th></tr></thead>+<tbody><tr class="base">+ <td>fable-baseline<span class="pack">full</span> <span class="tag">baseline</span></td>+ <td>6/6</td>+ <td>0.0 </td>+ <td>6/6</td>+ <td>n/a </td>+</tr>+<tr>+ <td>glm52-together<span class="pack">floor</span></td>+ <td>6/6</td>+ <td>16.0 <span class="delta down">+16.0</span></td>+ <td>0/6</td>+ <td>n/a </td>+</tr>+<tr>+ <td>glm52-together<span class="pack">full</span></td>+ <td>6/6</td>+ <td>0.0 <span class="delta same">=</span></td>+ <td>6/6</td>+ <td>n/a </td>+</tr>+<tr>+ <td>k27code-together<span class="pack">floor</span></td>+ <td>6/6</td>+ <td>5.0 <span class="delta down">+5.0</span></td>+ <td>5/6</td>+ <td>n/a </td>+</tr>+<tr>+ <td>k27code-together<span class="pack">full</span></td>+ <td>6/6</td>+ <td>0.0 <span class="delta same">=</span></td>+ <td>6/6</td>+ <td>n/a </td>+</tr></tbody>+</table><section class="brief"><header><h2>b1 <span class="bname">gen-01 parity</span></h2><p class="btext">Build a landing page for an AI voice-cloning studio.</p><p class="bexpect">expect: page. Parity brief reused from hallmark-lab gen-01. Full landing page; atmospheric register plausible; strong hero apparatus expected from the skill.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b1/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b1-fable-baseline-full-hero.png" alt="Hero of b1 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">5m 37s · 70k tok · 607 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b1/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b1-glm52-together-floor-hero.png" alt="Hero of b1 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">2m 5s · 14k tok · 779 LOC</span><span class="chip bad">31 FAIL / 3 WARN</span><span class="chip bad">floor broken</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b1/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b1-glm52-together-full-hero.png" alt="Hero of b1 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">1m 33s · 37k tok · 998 LOC</span><span class="chip good">0 FAIL / 3 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b1/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b1-k27code-together-floor-hero.png" alt="Hero of b1 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 1s · 18k tok · 1022 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b1/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b1-k27code-together-full-hero.png" alt="Hero of b1 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">2m 33s · 51k tok · 1228 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a></div></section><section class="brief"><header>@@ -59,7 +130,41 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:<p class="btext">Build a page for a late-night, browser-based drum machine.</p><p class="bexpect">expect: page. Parity brief reused from hallmark-lab gen-02. Full page; the instrument itself is the natural hero centerpiece.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b2/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b2-fable-baseline-full-hero.png" alt="Hero of b2 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">20m 3s · 148k tok · 799 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b2/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b2-glm52-together-floor-hero.png" alt="Hero of b2 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 2s · 10k tok · 996 LOC</span><span class="chip bad">12 FAIL / 1 WARN</span><span class="chip bad">floor broken</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b2/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b2-glm52-together-full-hero.png" alt="Hero of b2 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">2m 55s · 98k tok · 1477 LOC</span><span class="chip good">0 FAIL / 3 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b2/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b2-k27code-together-floor-hero.png" alt="Hero of b2 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 40s · 23k tok · 741 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b2/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b2-k27code-together-full-hero.png" alt="Hero of b2 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">4m 10s · 46k tok · 1033 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a></div></section><section class="brief"><header>@@ -67,7 +172,41 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:<p class="btext">Build a one-page manifesto for a slow-web movement.</p><p class="bexpect">expect: page. Parity brief reused from hallmark-lab gen-03. Editorial or manifesto structure; typography-led; loud defaults would be a miss.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b3/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b3-fable-baseline-full-hero.png" alt="Hero of b3 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">6m 19s · 72k tok · 527 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b3/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b3-glm52-together-floor-hero.png" alt="Hero of b3 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">38s · 7.4k tok · 693 LOC</span><span class="chip bad">5 FAIL / 0 WARN</span><span class="chip bad">floor broken</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b3/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b3-glm52-together-full-hero.png" alt="Hero of b3 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">2m 48s · 78k tok · 830 LOC</span><span class="chip good">0 FAIL / 2 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b3/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b3-k27code-together-floor-hero.png" alt="Hero of b3 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 2s · 19k tok · 463 LOC</span><span class="chip bad">1 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b3/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b3-k27code-together-full-hero.png" alt="Hero of b3 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">2m 19s · 46k tok · 573 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a></div></section><section class="brief"><header>@@ -75,7 +214,41 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:<p class="btext">Build a landing page for Relay Desk, a B2B SaaS tool that turns support inboxes into shared queues for small teams. We are early-stage: no customers, no revenue, no usage data yet, so there are no numbers to show. Sell the idea and the workflow, not traction.</p><p class="bexpect">expect: page. Tests invented-metric gate 46. The brief gives zero numbers and states there are none; any stat band, logo wall, or '10,000 teams' style claim is a fabrication FAIL.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b4/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b4-fable-baseline-full-hero.png" alt="Hero of b4 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">5m 28s · 69k tok · 693 LOC</span><span class="chip good">0 FAIL / 2 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b4/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b4-glm52-together-floor-hero.png" alt="Hero of b4 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">10m 31s · 10k tok · 947 LOC</span><span class="chip bad">3 FAIL / 2 WARN</span><span class="chip bad">floor broken</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b4/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b4-glm52-together-full-hero.png" alt="Hero of b4 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">1m 23s · 85k tok · 1110 LOC</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b4/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b4-k27code-together-floor-hero.png" alt="Hero of b4 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 10s · 15k tok · 1418 LOC</span><span class="chip bad">21 FAIL / 3 WARN</span><span class="chip bad">floor broken</span><span class="chip mute">judge error</span></div>+ </div>+</a>+<a class="card" href="./runs/b4/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b4-k27code-together-full-hero.png" alt="Hero of b4 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">1m 57s · 51k tok · 711 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span><span class="chip mute">judge error</span></div>+ </div>+</a></div></section><section class="brief"><header>@@ -83,7 +256,41 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:<p class="btext">Just a signup form for our app, nothing else.</p><p class="bexpect">expect: component. Tests component routing plus the Core-15 subset. Output should be a single self-contained component, not a full landing page wrapped around a form. Score with --scope component.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b5/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b5-fable-baseline-full-hero.png" alt="Hero of b5 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">2m 41s · 55k tok · 368 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b5/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b5-glm52-together-floor-hero.png" alt="Hero of b5 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">30s · 6.1k tok · 603 LOC</span><span class="chip bad">25 FAIL / 3 WARN</span><span class="chip bad">floor broken</span></div>+ </div>+</a>+<a class="card" href="./runs/b5/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b5-glm52-together-full-hero.png" alt="Hero of b5 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">25s · 33k tok · 611 LOC</span><span class="chip good">0 FAIL / 4 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b5/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b5-k27code-together-floor-hero.png" alt="Hero of b5 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">29s · 8.0k tok · 263 LOC</span><span class="chip bad">8 FAIL / 0 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b5/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b5-k27code-together-full-hero.png" alt="Hero of b5 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">1m 26s · 44k tok · 560 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a></div></section><section class="brief"><header>@@ -91,7 +298,41 @@ table.summary{border-collapse:collapse;width:100%;max-width:56rem;margin-bottom:<p class="btext">hallmark study <attached screenshot></p><p class="bexpect">expect: study-decline. No image is actually attached, and API arms have no vision input wired. Tests the no-vision capability check: the correct behavior is to state it cannot see the screenshot and decline the study rather than hallucinate an analysis. Emitting a page or a fabricated study is a fail.</p></header>- <div class="grid"><p class="empty">no runs for this brief</p></div>+ <div class="grid"><a class="card" href="./runs/b6/fable-baseline-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b6-fable-baseline-full-hero.png" alt="Hero of b6 fable-baseline-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">fable-baseline<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">4m 55s · 65k tok · 430 LOC</span><span class="chip good">0 FAIL / 0 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b6/glm52-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b6-glm52-together-floor-hero.png" alt="Hero of b6 glm52-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">35s · 8.1k tok · 748 LOC</span><span class="chip bad">20 FAIL / 1 WARN</span><span class="chip bad">floor broken</span></div>+ </div>+</a>+<a class="card" href="./runs/b6/glm52-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b6-glm52-together-full-hero.png" alt="Hero of b6 glm52-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">glm52-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">3m 19s · 115k tok · 1118 LOC</span><span class="chip warn">nudged</span><span class="chip good">0 FAIL / 6 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b6/k27code-together-floor/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b6-k27code-together-floor-hero.png" alt="Hero of b6 k27code-together-floor" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">floor</span></div>+ <div class="chips"><span class="chip run">1m 34s · 24k tok · 793 LOC</span><span class="chip warn">nudged</span><span class="chip good">0 FAIL / 1 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a>+<a class="card" href="./runs/b6/k27code-together-full/index.html" target="_blank" rel="noopener">+ <div class="thumb"><img src="./_shots/b6-k27code-together-full-hero.png" alt="Hero of b6 k27code-together-full" loading="lazy" /></div>+ <div class="meta">+ <div class="arm">k27code-together<span class="pack">full</span></div>+ <div class="chips"><span class="chip run">1m 4s · 71k tok · 793 LOC</span><span class="chip warn">nudged</span><span class="chip good">0 FAIL / 5 WARN</span><span class="chip good">floor clean</span></div>+ </div>+</a></div></section></body></html>diff --git a/eval/judge.py b/eval/judge.pyindex a4180a9..17ccef9 100644--- a/eval/judge.py+++ b/eval/judge.py@@ -39,6 +39,11 @@ MODELS_JSON = ROOT / "models.json"JUDGE_MODEL = "claude-fable-5"API_URL = "https://api.anthropic.com/v1/messages"+# Fallback judge when the Anthropic key is missing or out of credit:+# GLM-4.5V on Together (vision-capable, openai-compatible).+FALLBACK_MODEL = "Qwen/Qwen3-VL-235B-A22B-Instruct-FP8"+FALLBACK_URL = "https://api.together.xyz/v1/chat/completions"+FALLBACK_ENV = "TOGETHER_API_KEY"SKIP_BRIEFS = {"b5", "b6"}RUBRIC = """You are a strict design judge for AI-generated landing pages. You are shown two screenshots of the same page: first the desktop hero (1280x800 viewport) and second the full mobile page (375 wide).@@ -73,9 +78,9 @@ def parse_args() -> argparse.Namespace:return p.parse_args()-def get_api_key() -> str | None:+def load_env_key(name: str) -> str | None:"""Env first, then the keyFiles listed in models.json. Never printed."""- key = os.environ.get("ANTHROPIC_API_KEY")+ key = os.environ.get(name)if key:return key.strip()try:@@ -86,7 +91,7 @@ def get_api_key() -> str | None:try:for line in Path(kf).read_text().splitlines():line = line.strip()- if line.startswith("ANTHROPIC_API_KEY="):+ if line.startswith(name + "="):value = line.split("=", 1)[1].strip().strip('"').strip("'")if value:return value@@ -95,6 +100,10 @@ def get_api_key() -> str | None:return None+def get_api_key() -> str | None:+ return load_env_key("ANTHROPIC_API_KEY")++def list_runs(brief: str | None, arm: str | None) -> list[dict]:out = []if not RUNS.is_dir():@@ -135,6 +144,31 @@ def image_block(png_path: Path) -> dict:}+def call_api_together(api_key: str, blocks: list[dict]) -> str:+ """OpenAI-compatible vision call; converts anthropic-style blocks."""+ content = []+ for b in blocks:+ if b["type"] == "text":+ content.append({"type": "text", "text": b["text"]})+ else:+ uri = "data:image/png;base64," + b["source"]["data"]+ content.append({"type": "image_url", "image_url": {"url": uri}})+ body = json.dumps({+ "model": FALLBACK_MODEL,+ "max_tokens": 1024,+ "messages": [{"role": "user", "content": content}],+ }).encode("utf-8")+ req = urllib.request.Request(+ FALLBACK_URL, data=body, method="POST",+ headers={"content-type": "application/json",+ "authorization": f"Bearer {api_key}",+ "User-Agent": "hallmark-eval/1.0"},+ )+ with urllib.request.urlopen(req, timeout=180) as resp:+ data = json.loads(resp.read().decode("utf-8"))+ return data["choices"][0]["message"]["content"] or ""++def call_api(api_key: str, blocks: list[dict]) -> dict:body = json.dumps({@@ -151,6 +185,7 @@ def call_api(api_key: str, blocks: list[dict]) -> dict:"content-type": "application/json","x-api-key": api_key,"anthropic-version": "2023-06-01",+ "User-Agent": "hallmark-eval/1.0",},)with urllib.request.urlopen(req, timeout=180) as resp:@@ -185,15 +220,27 @@ def judge_one(api_key: str, run: dict) -> dict:image_block(run["mobile"]),{"type": "text", "text": RUBRIC},]- resp = call_api(api_key, blocks)- text = "".join(- b.get("text", "") for b in resp.get("content", []) if b.get("type") == "text"- )+ used_model = JUDGE_MODEL+ usage = None+ try:+ resp = call_api(api_key, blocks)+ text = "".join(+ b.get("text", "") for b in resp.get("content", []) if b.get("type") == "text"+ )+ usage = resp.get("usage")+ except urllib.error.HTTPError as e:+ detail = e.read().decode("utf-8", "replace")[:200]+ fb_key = load_env_key(FALLBACK_ENV)+ if not fb_key:+ raise+ print(f" anthropic judge unavailable ({e.code}: {detail[:60]}); falling back to {FALLBACK_MODEL}")+ text = call_api_together(fb_key, blocks)+ used_model = FALLBACK_MODELparsed = parse_judgement(text)result: dict = {- "model": JUDGE_MODEL,+ "model": used_model,"generatedAt": datetime.now(timezone.utc).isoformat(),- "usage": resp.get("usage"),+ "usage": usage,}if parsed is None:result["error"] = "unparseable judge response"diff --git a/eval/runs/b2/fable-baseline-full/raw.txt b/eval/runs/b2/fable-baseline-full/raw.txtindex c31febe..160f786 100644--- a/eval/runs/b2/fable-baseline-full/raw.txt+++ b/eval/runs/b2/fable-baseline-full/raw.txt@@ -1,12 +1,24 @@-Going with: **audience** = producers and beat-sketchers awake after midnight · **use** = press play and touch the machine within ten seconds · **tone** = atmospheric/technical. Redirect me if wrong.+Going with: **audience** = musicians and tinkerers sketching beats after hours · **use** = press play and program a loop right on the page · **tone** = atmospheric-technical. Redirect me if wrong.++No pre-flight signals — proceeding with full Hallmark stack (single-file brief, no existing project).```-Picks · genre: atmospheric · macro: Workbench (tool-first, first run — no rotation constraint)-· theme: Midnight (warm-amber anchor on near-black, hue 55) · nav: N11 status-strip · footer: Ft1 statement-· enrichment: Tier A/B — the product itself: a working Web Audio sequencer, no images, no Lottie · custom: no+Picks · genre: atmospheric · macro: Workbench (first run — no rotation constraint)+· theme: Midnight, amber-lamp variant (dark warm paper · amber LED accent) · nav: N11 (prev —)+· footer: Ft5 (statement + colophon) · enrichment: none — the working instrument is the hero · custom: no```-**Hallmark · v1.2.0** — Macrostructure · Workbench — Theme · Midnight (oklch 13% paper · warm-tinted neutrals · amber accent) — Enrichment · the instrument itself (8 synthesized voices, 16 steps) — Sections · Nav · Hero · Machine · Voices · Notes · Footer — Motion · none (the machine moves; the page doesn't) — Slop test · 58/58 ✓ — Copy · every number is a true synthesis fact, no invented metrics.+**Hallmark · v1.2.0**++- **Macrostructure** · Workbench — the sequencer is live in the hero, not a mockup+- **Theme** · Midnight (amber-lamp) · dark warm paper · amber accent, anchor hue 70+- **Enrichment** · none (one static radial bloom; the playable machine carries the page)+- **Sections** · Nav · Hero + Machine · Voices spec · Quiet by design · Footer+- **Motion** · LED pulse while playing · step-press scale · reduced-motion safe+- **Slop test** · 58 / 58 ✓ (manual walk — no Node in this environment)+- **Signature** · every number in the copy is verifiable in the page's own source++Scene: someone in headphones at 2:40 a.m., laptop dimmed, tapping sixteen amber squares over a sleeping house. All audio is synthesized with the Web Audio API — no samples, no invented claims; the −8 dB master, the 150→42 Hz kick sweep, the 12 ms clap bursts are all real values in the script below.```html<!doctype html>@@ -14,98 +26,89 @@ Picks · genre: atmospheric · macro: Workbench (tool-first, first run — no ro<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">-<title>LOWEND · a late-night drum machine in your browser</title>-<meta name="description" content="LOWEND is a browser drum machine for the small hours. Eight synthesized voices, sixteen steps, nothing to install, nothing recorded.">+<title>Lowlight · a late-night drum machine</title>+<meta name="description" content="Lowlight is a browser drum machine for 3 a.m. — sixteen steps, four synthesized voices, zero samples, nothing to install."><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>-<link href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,[email protected],800&family=Geist:wght@350;600&family=Geist+Mono:wght@400&display=swap" rel="stylesheet">+<link href="https://fonts.googleapis.com/css2?family=Tomorrow:wght@600;700&family=Geist:[email protected]&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet"><style>-/* Hallmark · macrostructure: Workbench · tone: atmospheric · anchor hue: 55 (warm amber on near-black)- * genre: atmospheric · theme: Midnight · nav: N11 status-strip · footer: Ft1 statement- * enrichment: Tier A/B — the working instrument (Web Audio, hand-tuned synthesis, zero assets)+/* Hallmark · macrostructure: Workbench · tone: atmospheric-technical · anchor hue: 70 (amber)+ * theme: Midnight (amber-lamp variant) · nav: N11 (wordmark + descriptor, no link rail) · footer: Ft5 (statement + colophon)+ * enrichment: none — the working instrument is the hero · knobs: first run, no rotation constraint* contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47)* tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)*/-/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 */+/* Hallmark · pre-emit critique: P4 H5 E5 S5 R4 V5 */:root {- /* type — 2+1: display + body + outlier (readouts only: nav clock, BPM) */- --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;- --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;- --font-outlier: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;-- /* scale — major third, 1.25 */- --text-xs: 0.75rem;- --text-sm: 0.875rem;- --text-base: 1rem;- --text-md: 1.25rem;- --text-lg: 1.5625rem;- --text-xl: 1.953rem;- --text-2xl: 2.441rem;- --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);-- /* colour — OKLCH, warm anchor hue 55, no pure extremes */- --color-paper: oklch(13% 0.012 55);- --color-paper-2: oklch(17% 0.014 55);- --color-paper-3: oklch(22% 0.016 55);- --color-rule: oklch(32% 0.014 55);- --color-rule-strong:oklch(46% 0.012 55);- --color-neutral: oklch(62% 0.012 60);- --color-muted: oklch(74% 0.010 70);- --color-ink: oklch(93% 0.007 80);- --color-accent: oklch(76% 0.15 65);- --color-accent-hot: oklch(87% 0.12 78);- --color-accent-ink: oklch(16% 0.03 65);- --color-ember: oklch(58% 0.12 40);- --color-focus: oklch(82% 0.13 85);-- /* space — 4pt scale */- --space-3xs: 0.25rem;- --space-2xs: 0.5rem;- --space-xs: 0.75rem;- --space-s: 1rem;- --space-m: 1.5rem;- --space-l: 2rem;- --space-xl: 3rem;- --space-2xl: 4rem;- --space-3xl: 6rem;- --space-gutter: clamp(1rem, 4vw, 2.5rem);-- /* misc */- --radius-s: 4px;- --radius-m: 8px;- --radius-l: 12px;+ /* colour — every neutral tinted toward the amber anchor (hue ~70) */+ --color-paper: oklch(14% 0.012 70);+ --color-paper-2: oklch(17% 0.014 70);+ --color-paper-3: oklch(21% 0.016 70);+ --color-step-hover: oklch(26% 0.018 70);+ --color-rule: oklch(31% 0.014 70);+ --color-rule-strong: oklch(39% 0.016 70);+ --color-neutral: oklch(68% 0.014 70);+ --color-ink: oklch(93% 0.010 80);+ --color-accent: oklch(80% 0.150 72);+ --color-accent-hover: oklch(86% 0.130 78);+ --color-accent-dim: oklch(60% 0.110 68);+ --color-accent-ink: oklch(17% 0.030 72);+ --color-focus: oklch(84% 0.130 80);+ --color-bloom: oklch(27% 0.045 68);++ /* type — Tomorrow display · Geist body · Geist Mono outlier (machine telemetry + shortcuts only) */+ --font-display: "Tomorrow", ui-sans-serif, system-ui, sans-serif;+ --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;+ --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;++ --text-xs: 0.75rem;+ --text-sm: 0.875rem;+ --text-base: 1rem;+ --text-md: 1.25rem;+ --text-lg: 1.5625rem;+ --text-xl: 1.9531rem;+ --text-display: clamp(2.4rem, 4vw + 1rem, 4.4rem);++ /* 4-pt spacing scale */+ --space-2xs: 4px;+ --space-xs: 8px;+ --space-sm: 12px;+ --space-md: 16px;+ --space-lg: 24px;+ --space-xl: 32px;+ --space-2xl: 48px;+ --space-3xl: 64px;+ --space-4xl: 96px;++ --ease-out: cubic-bezier(0.2, 0, 0, 1);+ --ease-inout: cubic-bezier(0.6, 0, 0.4, 1);+ --dur-fast: 120ms;+ --dur-med: 220ms;+--rule-hairline: 1px;- --ease-out: cubic-bezier(0.16, 1, 0.3, 1);- --dur-quick: 120ms;- --z-base: 0;- --z-raised: 10;+ --radius-sm: 4px;+ --radius-md: 10px;+ --radius-pill: 999px;}-html { overflow-x: clip; }+*, *::before, *::after { box-sizing: border-box; }++html, body { overflow-x: clip; }++html { color-scheme: dark; }body {- overflow-x: clip;margin: 0;- background: var(--color-paper);- color: var(--color-ink);font-family: var(--font-body);- font-size: var(--text-base);font-weight: 350;- line-height: 1.6;- -webkit-font-smoothing: antialiased;-}--/* two fixed warm blooms — the only atmosphere; no animation, no mesh */-body::before {- content: "";- position: fixed;- inset: 0;- z-index: -1;- pointer-events: none;- background:- radial-gradient(60rem 40rem at 12% -8%, color-mix(in oklab, var(--color-accent), transparent 88%), transparent 62%),- radial-gradient(52rem 38rem at 104% 106%, color-mix(in oklab, var(--color-ember), transparent 86%), transparent 64%);+ font-size: var(--text-base);+ line-height: 1.55;+ color: var(--color-ink);+ background-color: var(--color-paper);+ background-image: radial-gradient(58rem 38rem at 82% -8%, var(--color-bloom), transparent 70%);+ background-repeat: no-repeat;+ background-attachment: fixed;}::selection { background: var(--color-accent); color: var(--color-accent-ink); }@@ -118,341 +121,1506 @@ body::before {.wrap {max-width: 72rem;margin-inline: auto;- padding-inline: var(--space-gutter);+ padding-inline: var(--space-lg);}-/* ---------- nav: status strip, not the AI bar ---------- */-.top { padding-block: var(--space-m); }--.top__row {+/* ---------- nav (N11: wordmark + descriptor, no link rail, no CTA) ---------- */+.top {display: flex;align-items: center;- justify-content: space-between;- gap: var(--space-m);+ gap: var(--space-sm);+ flex-wrap: wrap;+ padding-block: var(--space-lg) var(--space-md);}-.wordmark {font-family: var(--font-display);- font-weight: 800;+ font-weight: 700;font-size: var(--text-md);letter-spacing: 0.01em;line-height: 1;- color: var(--color-ink);- text-decoration: none;- white-space: nowrap;}-.wordmark:hover { color: var(--color-accent); }-.wordmark:active { transform: translateY(1px); }--.top__status {- margin: 0;- font-family: var(--font-outlier);- font-variant-numeric: tabular-nums;+.top__tag {+ color: var(--color-neutral);font-size: var(--text-sm);line-height: 1;- color: var(--color-neutral);- white-space: nowrap;}--.top__link {+.top__note {+ margin-inline-start: auto;+ color: var(--color-neutral);font-size: var(--text-sm);- font-weight: 600;line-height: 1;- color: var(--color-muted);- text-decoration: underline;- text-decoration-thickness: 1px;- text-underline-offset: 2px;- text-decoration-color: var(--color-rule-strong);- white-space: nowrap;}-.top__link:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); }-.top__link:active { transform: translateY(1px); }-/* ---------- hero: left-biased, content height ---------- */+/* ---------- hero + machine ---------- */.hero { padding-block: var(--space-2xl) var(--space-3xl); }-.hero__display {- margin: 0;font-family: var(--font-display);- font-weight: 800;+ font-weight: 700;font-size: var(--text-display);line-height: 1.05;letter-spacing: -0.02em;- max-width: 16ch;+ margin: 0 0 var(--space-md);+ max-width: 22ch;overflow-wrap: anywhere;min-width: 0;}-+.hero__display .accent { color: var(--color-accent); }.hero__lede {- margin: var(--space-m) 0 0;+ color: var(--color-neutral);font-size: var(--text-md);- color: var(--color-muted);- max-width: 52ch;+ max-width: 56ch;+ margin: 0 0 var(--space-xl);}-.hero__row {- margin-top: var(--space-l);+.machine {+ background: var(--color-paper-2);+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-md);+ padding: var(--space-lg);+}++.transport {display: flex;align-items: center;flex-wrap: wrap;- gap: var(--space-m);+ gap: var(--space-md);+ margin-block-end: var(--space-lg);}-.hero__note {- margin: 0;- font-size: var(--text-xs);- line-height: 1;- letter-spacing: 0.12em;- text-transform: uppercase;- color: var(--color-muted);-}--/* ---------- buttons ---------- */.btn {+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ height: 44px;+ padding-inline: var(--space-md);font-family: var(--font-body);font-weight: 600;font-size: var(--text-sm);line-height: 1;+ white-space: nowrap;color: var(--color-ink);- background: var(--color-paper);- border: var(--rule-hairline) solid var(--color-rule-strong);- border-radius: var(--radius-m);- padding: var(--space-xs) var(--space-s);- min-height: 44px;+ background: transparent;+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-sm);cursor: pointer;- white-space: nowrap;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);}-.btn:hover { background: var(--color-paper-3); }+.btn:hover { background: var(--color-paper-3); border-color: var(--color-rule-strong); }.btn:active { transform: translateY(1px); }.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }.btn--primary {- color: var(--color-accent);- border-color: var(--color-accent);- background: transparent;-}-.btn--primary:hover { background: color-mix(in oklab, var(--color-accent), transparent 88%); }-.btn--primary.is-playing {- background: var(--color-accent);color: var(--color-accent-ink);+ background: var(--color-accent);border-color: var(--color-accent);+ padding-inline: var(--space-lg);}+.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }-.btn--icon { min-width: 44px; padding: var(--space-xs); text-align: center; }--/* ---------- the machine ---------- */-.machine { padding-block: 0 var(--space-3xl); }+.led {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: var(--color-accent-ink);+ opacity: 0.35;+}+.is-playing .led { opacity: 1; animation: led-pulse 1.2s var(--ease-inout) infinite; }+@keyframes led-pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.45; }+}-.machine__panel {- background: var(--color-paper-2);+.chip {+ display: inline-flex;+ align-items: center;+ height: 44px;+ padding-inline: var(--space-md);+ font-family: var(--font-body);+ font-weight: 600;+ font-size: var(--text-sm);+ line-height: 1;+ white-space: nowrap;+ color: var(--color-neutral);+ background: transparent;border: var(--rule-hairline) solid var(--color-rule);- border-radius: var(--radius-l);- padding: var(--space-m);+ border-radius: var(--radius-pill);+ cursor: pointer;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);}+.chip:hover { color: var(--color-ink); border-color: var(--color-rule-strong); }+.chip:active { transform: translateY(1px); }+.chip:disabled { opacity: 0.55; cursor: not-allowed; }+.chip[aria-pressed="true"] { color: var(--color-accent); border-color: var(--color-accent-dim); }-.transport {+.tempo {display: flex;align-items: center;- flex-wrap: wrap;- gap: var(--space-s);- padding-block-end: var(--space-m);+ gap: var(--space-sm);+ flex: 1 1 220px;+ min-width: 0;}--.bpm { display: flex; align-items: center; gap: var(--space-2xs); }--.bpm__read {- margin: 0;- font-family: var(--font-outlier);+.transport__label,+.readout {+ font-family: var(--font-mono);+ font-size: var(--text-xs);font-variant-numeric: tabular-nums;- font-size: var(--text-md);+ letter-spacing: 0.08em;+ text-transform: uppercase;line-height: 1;- min-width: 7ch;- text-align: center;+ color: var(--color-neutral);+ white-space: nowrap;}-.bpm__unit { font-size: var(--text-xs); color: var(--color-neutral); }+.readout--bpm { color: var(--color-accent); }-.transport__hint {- margin: 0 0 0 auto;- font-size: var(--text-xs);- color: var(--color-neutral);- letter-spacing: 0.06em;- text-transform: uppercase;+input[type="range"] {+ appearance: none;+ -webkit-appearance: none;+ flex: 1 1 120px;+ min-width: 0;+ height: 44px;+ margin: 0;+ background: transparent;+ cursor: pointer;+}+input[type="range"]::-webkit-slider-runnable-track {+ height: 4px;+ border-radius: var(--radius-pill);+ background: var(--color-rule);+}+input[type="range"]::-webkit-slider-thumb {+ -webkit-appearance: none;+ width: 16px;+ height: 16px;+ margin-top: -6px;+ border: none;+ border-radius: 50%;+ background: var(--color-ink);+}+input[type="range"]::-moz-range-track {+ height: 4px;+ border-radius: var(--radius-pill);+ background: var(--color-rule);+}+input[type="range"]::-moz-range-thumb {+ width: 16px;+ height: 16px;+ border: none;+ border-radius: 50%;+ background: var(--color-ink);}+input[type="range"]:disabled { opacity: 0.55; cursor: not-allowed; }-.seq { overflow-x: auto; display: grid; gap: var(--space-3xs); }+.grid { display: grid; gap: var(--space-xs); }.track {display: grid;- grid-template-columns: 5rem minmax(0, 1fr);- align-items: center;+ grid-template-columns: 6rem repeat(16, minmax(0, 1fr));gap: var(--space-2xs);- min-width: 38rem;+ align-items: center;}-.track__label {+ font-family: var(--font-mono);font-size: var(--text-xs);- line-height: 1;- letter-spacing: 0.1em;+ letter-spacing: 0.08em;text-transform: uppercase;- color: var(--color-muted);- white-space: nowrap;-}--.track__steps {- display: grid;- grid-template-columns: repeat(16, minmax(0, 1fr));- gap: var(--space-3xs);+ line-height: 1;+ color: var(--color-neutral);}-.pad {- aspect-ratio: 1;+.step {+ min-height: 44px;padding: 0;+ background: var(--color-paper-3);border: var(--rule-hairline) solid var(--color-rule);- border-radius: var(--radius-s);- background: var(--color-paper);+ border-radius: var(--radius-sm);cursor: pointer;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);}-.pad.is-beat { background: var(--color-paper-3); }-.pad:hover { border-color: var(--color-rule-strong); }-.pad:active { transform: scale(0.94); }-.pad:disabled { opacity: 0.55; cursor: not-allowed; }-.pad.on { background: var(--color-accent); border-color: var(--color-accent); }-.pad.is-now { border-color: var(--color-accent-hot); }-.pad.on.is-now { background: var(--color-accent-hot); border-color: var(--color-accent-hot); }--.noscript {- margin: var(--space-m) 0 0;- color: var(--color-muted);- max-width: 60ch;+.step--beat { border-color: var(--color-rule-strong); }+.step:hover { background: var(--color-step-hover); }+.step:active { transform: scale(0.94); }+.step:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }+.step[aria-pressed="true"] {+ background: var(--color-accent);+ border-color: var(--color-accent);+}+.step.is-now { box-shadow: inset 0 0 0 2px var(--color-accent-dim); }+.step[aria-pressed="true"].is-now { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }++.machine__hint {+ margin: var(--space-md) 0 0;+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ text-transform: uppercase;+ line-height: 1;+ color: var(--color-neutral);}-/* ---------- voices: ledger rows, not cards ---------- */+/* ---------- voices spec ---------- */.voices {border-top: var(--rule-hairline) solid var(--color-rule);- padding-block: var(--space-3xl) var(--space-2xl);+ padding-block: var(--space-3xl);}-.section__title {- margin: 0;font-family: var(--font-display);- font-weight: 800;- font-size: var(--text-2xl);- line-height: 1.1;- letter-spacing: -0.02em;- max-width: 24ch;+ font-weight: 600;+ font-size: var(--text-xl);+ line-height: 1.15;+ letter-spacing: -0.01em;+ margin: 0 0 var(--space-xs);overflow-wrap: anywhere;min-width: 0;}--.section__lede {- margin: var(--space-s) 0 var(--space-xl);- color: var(--color-muted);- max-width: 58ch;+.voices__note {+ color: var(--color-neutral);+ max-width: 60ch;+ margin: 0 0 var(--space-xl);}--.voices__list { margin: 0; padding: 0; list-style: none; }-.voice {display: grid;grid-template-columns: 8rem minmax(0, 1fr) auto;+ gap: var(--space-md);align-items: center;- gap: var(--space-m);- padding-block: var(--space-s);+ padding-block: var(--space-md);border-top: var(--rule-hairline) solid var(--color-rule);}-.voice__name {+ font-family: var(--font-display);+ font-weight: 600;+ font-size: var(--text-md);+ line-height: 1.2;+}+.voice__spec {+ color: var(--color-neutral);+ font-variant-numeric: tabular-nums;margin: 0;- font-size: var(--text-base);+}++/* ---------- quiet by design ---------- */+.quiet { padding-block: var(--space-4xl) var(--space-3xl); }+.quiet__inner { max-width: 58ch; }+.quiet .section__title::before {+ content: "";+ display: inline-block;+ width: 10px;+ height: 10px;+ margin-inline-end: var(--space-sm);+ background: var(--color-accent);+}+.quiet p { margin: 0 0 var(--space-md); }+.quiet p:last-child { margin-block-end: 0; }+.quiet p strong { font-weight: 600; }++/* ---------- footer (Ft5: statement + colophon) ---------- */+.foot {+ border-top: var(--rule-hairline) solid var(--color-rule);+ padding-block: var(--space-2xl) var(--space-3xl);+}+.foot__statement {+ font-family: var(--font-display);font-weight: 600;- line-height: 1.3;+ font-size: var(--text-lg);+ line-height: 1.2;+ letter-spacing: -0.01em;+ margin: 0 0 var(--space-xl);+ max-width: 24ch;+ overflow-wrap: anywhere;+ min-width: 0;+}+.foot__meta {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: var(--space-md) var(--space-xl);+}+.foot__shortcuts {+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ line-height: 1.6;+ color: var(--color-neutral);+}+.foot__colophon {+ margin-inline-start: auto;+ color: var(--color-neutral);+ font-size: var(--text-sm);+ line-height: 1.6;+}++noscript p {+ margin: var(--space-md) 0;+ padding: var(--space-md);+ border: var(--rule-hairline) solid var(--color-rule-strong);+ border-radius: var(--radius-sm);+ color: var(--color-ink);+}++/* ---------- responsive ---------- */+@media (max-width: 40rem) {+ .track { grid-template-columns: repeat(8, minmax(0, 1fr)); }+ .track__label { grid-column: 1 / -1; margin-block: var(--space-2xs) 0; }+ .step { min-height: 36px; }+ .voice { grid-template-columns: minmax(0, 1fr) auto; }+ .voice__spec { grid-column: 1 / -1; }+ .machine { padding: var(--space-md); }+ .top__note { display: none; }+}++@media (prefers-reduced-motion: reduce) {+ * {+ animation: none !important;+ transition: none !important;+ }+ .is-playing .led { opacity: 1; }+}+</style>+</head>+<body>++<header class="top wrap">+ <span class="wordmark">Lowlight</span>+ <span class="top__tag">— a late-night drum machine</span>+ <span class="top__note">no account · no install · nothing leaves this tab</span>+</header>++<main>+ <section class="hero wrap" aria-labelledby="hero-title">+ <h1 class="hero__display" id="hero-title">A drum machine for <span class="accent">3 a.m.</span></h1>+ <p class="hero__lede">Sixteen steps, four voices, zero samples. Every sound is synthesized in this tab the moment you press play — and the master sits at −8 dB, so you can sketch over a sleeping house.</p>++ <div class="machine" role="group" aria-label="Lowlight step sequencer">+ <div class="transport">+ <button type="button" class="btn btn--primary" id="play" aria-pressed="false">+ <span class="led" aria-hidden="true"></span>+ <span id="play-label">Play</span>+ </button>+ <div class="tempo">+ <label class="transport__label" for="bpm">Tempo</label>+ <input type="range" id="bpm" min="60" max="160" step="1" value="96">+ <span class="readout readout--bpm" id="bpm-out">096 bpm</span>+ </div>+ <button type="button" class="chip" data-preset="bus" aria-pressed="false">First bus</button>+ <button type="button" class="chip" data-preset="rain" aria-pressed="false">Rain on glass</button>+ <button type="button" class="btn" id="clear">Clear pattern</button>+ <span class="readout" id="step-out">— / 16</span>+ </div>++ <div class="grid" id="grid"></div>+ <p class="machine__hint">space — play / stop · keys 1–4 — audition a voice</p>+ <noscript><p>Lowlight needs JavaScript to synthesize sound — nothing on this page is prerecorded, so with scripts off there is nothing to play.</p></noscript>+ </div>+ </section>++ <section class="voices" aria-labelledby="voices-title">+ <div class="wrap">+ <h2 class="section__title" id="voices-title">Inside the four voices</h2>+ <p class="voices__note">No sample packs, no licences. Each voice is built from oscillators and filtered noise, and every number below is live in this page's source — the spec is the implementation.</p>++ <div class="voice">+ <h3 class="voice__name">Kick</h3>+ <p class="voice__spec">Sine wave, 150 Hz falling to 42 Hz over 120 ms · 400 ms decay</p>+ <button type="button" class="btn" data-voice="kick" aria-label="Hear the kick once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Snare</h3>+ <p class="voice__spec">190 Hz triangle body under noise band-passed at 1.8 kHz · 180 ms tail</p>+ <button type="button" class="btn" data-voice="snare" aria-label="Hear the snare once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Hat</h3>+ <p class="voice__spec">White noise through an 8 kHz high-pass · 55 ms gate</p>+ <button type="button" class="btn" data-voice="hat" aria-label="Hear the hat once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Clap</h3>+ <p class="voice__spec">Three noise bursts 12 ms apart, band-passed at 1.5 kHz</p>+ <button type="button" class="btn" data-voice="clap" aria-label="Hear the clap once">Hear it</button>+ </div>+ </div>+ </section>++ <section class="quiet wrap" aria-labelledby="quiet-title">+ <div class="quiet__inner">+ <h2 class="section__title" id="quiet-title">Quiet by design</h2>+ <p>Lowlight holds the master gain at −8 dB and keeps every voice under half a second, so a pattern reads as a sketch, not a performance. There is no cloud and no save button: your loop lives in this tab's memory and vanishes when you close it. If it's worth keeping, record it — the machine won't hold it for you.</p>+ <p><strong>That isn't a missing feature.</strong> Some grooves belong to the hour they were made in.</p>+ </div>+ </section>+</main>++<footer class="foot">+ <div class="wrap">+ <p class="foot__statement">Made for the hours nobody schedules.</p>+ <div class="foot__meta">+ <p class="foot__shortcuts">space — play / stop<br>1 · 2 · 3 · 4 — audition kick, snare, hat, clap</p>+ <p class="foot__colophon">Lowlight · one HTML file · four synthesized voices · no samples loaded</p>+ </div>+ </div>+</footer>++<script>+(() => {+ "use strict";++ const TRACKS = [+ { id: "kick", label: "Kick" },+ { id: "snare", label: "Snare" },+ { id: "hat", label: "Hat" },+ { id: "clap", label: "Clap" }+ ];+ const STEPS = 16;++ const PRESETS = {+ bus: { bpm: 96, kick: "1000100010001000", snare: "0000100000001000", hat: "1010101010101010", clap: "0000000000001000" },+ rain: { bpm: 76, kick: "1000001000000010", snare: "0000100000010000", hat: "0010001000100010", clap: "0000000000100000" }+ };++ const pattern = Object.fromEntries(TRACKS.map(t => [t.id, new Array(STEPS).fill(false)]));+ const cells = {};++ const grid = document.getElementById("grid");+ const playBtn = document.getElementById("play");+ const playLbl = document.getElementById("play-label");+ const clearBtn = document.getElementById("clear");+ const bpmInput = document.getElementById("bpm");+ const bpmOut = document.getElementById("bpm-out");+ const stepOut = document.getElementById("step-out");+ const machine = document.querySelector(".machine");+ const chips = Array.from(document.querySelectorAll(".chip[data-preset]"));++ /* ---- build the 4 × 16 grid ---- */+ TRACKS.forEach(tr => {+ const row = document.createElement("div");+ row.className = "track";+ row.setAttribute("role", "group");+ row.setAttribute("aria-label", tr.label + " track");++ const lab = document.createElement("span");+ lab.className = "track__label";+ lab.textContent = tr.label;+ row.appendChild(lab);++ cells[tr.id] = [];+ for (let s = 0; s < STEPS; s++) {+ const b = document.createElement("button");+ b.type = "button";+ b.className = "step" + (s % 4 === 0 ? " step--beat" : "");+ b.setAttribute("aria-pressed", "false");+ b.setAttribute("aria-label", tr.label + ", step " + (s + 1));+ b.addEventListener("click", () => {+ pattern[tr.id][s] = !pattern[tr.id][s];+ b.setAttribute("aria-pressed", String(pattern[tr.id][s]));+ clearChips();+ });+ row.appendChild(b);+ cells[tr.id].push(b);+ }+ grid.appendChild(row);+ });++ /* ---- audio: everything synthesized, master at 0.4 gain (−8 dB) ---- */+ let ctx = null, master = null, noiseBuf = null;++ function ensureCtx() {+ if (!ctx) {+ ctx = new (window.AudioContext || window.webkitAudioContext)();+ master = ctx.createGain();+ master.gain.value = 0.4; /* ≈ −8 dB */+ master.connect(ctx.destination);+ }+ if (ctx.state === "suspended") ctx.resume();+ }++ function noiseSource() {+ if (!noiseBuf) {+ noiseBuf = ctx.createBuffer(1, ctx.sampleRate, ctx.sampleRate);+ const d = noiseBuf.getChannelData(0);+ for (let i = 0; i < d.length; i++) d[i] = Math.random() * 2 - 1;+ }+ const src = ctx.createBufferSource();+ src.buffer = noiseBuf;+ return src;+ }++ const VOICES = {+ kick(t) {+ const o = ctx.createOscillator(), g = ctx.createGain();+ o.type = "sine";+ o.frequency.setValueAtTime(150, t);+ o.frequency.exponentialRampToValueAtTime(42, t + 0.12);+ g.gain.setValueAtTime(1, t);+ g.gain.exponentialRampToValueAtTime(0.001, t + 0.4);+ o.connect(g); g.connect(master);+ o.start(t); o.stop(t + 0.45);+ },+ snare(t) {+ const n = noiseSource();+ const bp = ctx.createBiquadFilter();+ bp.type = "bandpass"; bp.frequency.value = 1800; bp.Q.value = 0.9;+ const ng = ctx.createGain();+ ng.gain.setValueAtTime(0.7, t);+ ng.gain.exponentialRampToValueAtTime(0.001, t + 0.18);+ n.connect(bp); bp.connect(ng); ng.connect(master);+ n.start(t); n.stop(t + 0.2);++ const o = ctx.createOscillator(), og = ctx.createGain();+ o.type = "triangle"; o.frequency.value = 190;+ og.gain.setValueAtTime(0.4, t);+ og.gain.exponentialRampToValueAtTime(0.001, t + 0.12);+ o.connect(og); og.connect(master);+ o.start(t); o.stop(t + 0.14);+ },+ hat(t) {+ const n = noiseSource();+ const hp = ctx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 8000;+ const g = ctx.createGain();+ g.gain.setValueAtTime(0.35, t);+ g.gain.exponentialRampToValueAtTime(0.001, t + 0.055);+ n.connect(hp); hp.connect(g); g.connect(master);+ n.start(t); n.stop(t + 0.08);+ },+ clap(t) {+ for (let i = 0; i < 3; i++) {+ const bt = t + i * 0.012;+ const n = noiseSource();+ const bp = ctx.createBiquadFilter();+ bp.type = "bandpass"; bp.frequency.value = 1500; bp.Q.value = 1.2;+ const g = ctx.createGain();+ g.gain.setValueAtTime(0.55, bt);+ g.gain.exponentialRampToValueAtTime(0.001, bt + (i === 2 ? 0.1 : 0.03));+ n.connect(bp); bp.connect(g); g.connect(master);+ n.start(bt); n.stop(bt + 0.12);+ }+ }+ };++ /* ---- lookahead scheduler ---- */+ let playing = false, step = 0, nextT = 0, timer = null, bpm = 96;+ const paints = [];+ const LOOKAHEAD_MS = 25, HORIZON_S = 0.12;++ function scheduler() {+ while (nextT < ctx.currentTime + HORIZON_S) {+ const s = step, t = nextT;+ TRACKS.forEach(tr => { if (pattern[tr.id][s]) VOICES[tr.id](t); });+ paints.push(setTimeout(() => paint(s), Math.max(0, (t - ctx.currentTime) * 1000)));+ nextT += (60 / bpm) / 4;+ step = (step + 1) % STEPS;+ }+ }++ function paint(s) {+ TRACKS.forEach(tr => cells[tr.id].forEach((b, i) => b.classList.toggle("is-now", i === s)));+ stepOut.textContent = String(s + 1).padStart(2, "0") + " / 16";+ }++ function clearPaint() {+ paints.forEach(clearTimeout);+ paints.length = 0;+ TRACKS.forEach(tr => cells[tr.id].forEach(b => b.classList.remove("is-now")));+ stepOut.textContent = "— / 16";+ }++ function togglePlay() {+ if (!playing) {+ ensureCtx();+ step = 0;+ nextT = ctx.currentTime + 0.05;+ timer = setInterval(scheduler, LOOKAHEAD_MS);+ playing = true;+ } else {+ clearInterval(timer);+ timer = null;+ playing = false;+ clearPaint();+ }+ playBtn.setAttribute("aria-pressed", String(playing));+ playLbl.textContent = playing ? "Stop" : "Play";+ machine.classList.toggle("is-playing", playing);+ }++ /* ---- transport wiring ---- */+ playBtn.addEventListener("click", togglePlay);++ bpmInput.addEventListener("input", () => {+ bpm = Number(bpmInput.value);+ bpmOut.textContent = String(bpm).padStart(3, "0") + " bpm";+ });++ clearBtn.addEventListener("click", () => {+ TRACKS.forEach(tr => {+ for (let s = 0; s < STEPS; s++) {+ pattern[tr.id][s] = false;+ cells[tr.id][s].setAttribute("aria-pressed", "false");+ }+ });+ clearChips();+ });++ function clearChips() {+ chips.forEach(c => c.setAttribute("aria-pressed", "false"));+ }++ function applyPreset(name) {+ const p = PRESETS[name];+ bpm = p.bpm;+ bpmInput.value = String(bpm);+ bpmOut.textContent = String(bpm).padStart(3, "0") + " bpm";+ TRACKS.forEach(tr => {+ for (let s = 0; s < STEPS; s++) {+ pattern[tr.id][s] = p[tr.id][s] === "1";+ cells[tr.id][s].setAttribute("aria-pressed", String(pattern[tr.id][s]));+ }+ });+ chips.forEach(c => c.setAttribute("aria-pressed", String(c.dataset.preset === name)));+ }++ chips.forEach(c => c.addEventListener("click", () => applyPreset(c.dataset.preset)));++ /* ---- audition buttons ---- */+ document.querySelectorAll("[data-voice]").forEach(b => {+ b.addEventListener("click", () => {+ ensureCtx();+ VOICES[b.dataset.voice](ctx.currentTime + 0.02);+ });+ });++ /* ---- keyboard: space = play/stop, 1–4 = audition ---- */+ document.addEventListener("keydown", e => {+ const tag = e.target.tagName;+ const onControl = tag === "BUTTON" || tag === "INPUT" || tag === "SELECT" || tag === "TEXTAREA";+ if (e.code === "Space") {+ if (onControl) return; /* let native activation win */+ e.preventDefault();+ if (!e.repeat) togglePlay();+ return;+ }+ const digits = ["Digit1", "Digit2", "Digit3", "Digit4"];+ const idx = digits.indexOf(e.code);+ if (idx !== -1 && !onControl) {+ ensureCtx();+ VOICES[TRACKS[idx].id](ctx.currentTime + 0.02);+ }+ });++ /* seed the machine so the first press of play makes music */+ applyPreset("bus");+})();+</script>+</body>+</html>+```++===== REPAIR ROUND 1 =====++```html+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Lowlight · a late-night drum machine</title>+<meta name="description" content="Lowlight is a browser drum machine for 3 a.m. — sixteen steps, four synthesized voices, zero samples, nothing to install.">+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Tomorrow:wght@600;700&family=Geist:[email protected]&family=Geist+Mono:wght@400;500&display=swap" rel="stylesheet">+<style>+/* Hallmark · macrostructure: Workbench · tone: atmospheric-technical · anchor hue: 70 (amber)+ * theme: Midnight (amber-lamp variant) · nav: N11 (wordmark + descriptor, no link rail) · footer: Ft5 (statement + colophon)+ * enrichment: none — the working instrument is the hero · knobs: first run, no rotation constraint+ * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47)+ * tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)+ */+/* Hallmark · pre-emit critique: P4 H5 E5 S5 R4 V5 */++:root {+ /* colour — every neutral tinted toward the amber anchor (hue ~70) */+ --color-paper: oklch(14% 0.012 70);+ --color-paper-2: oklch(17% 0.014 70);+ --color-paper-3: oklch(21% 0.016 70);+ --color-step-hover: oklch(26% 0.018 70);+ --color-rule: oklch(31% 0.014 70);+ --color-rule-strong: oklch(39% 0.016 70);+ --color-neutral: oklch(68% 0.014 70);+ --color-ink: oklch(93% 0.010 80);+ --color-accent: oklch(80% 0.150 72);+ --color-accent-hover: oklch(86% 0.130 78);+ --color-accent-dim: oklch(60% 0.110 68);+ --color-accent-ink: oklch(17% 0.030 72);+ --color-focus: oklch(84% 0.130 80);+ --color-bloom: oklch(27% 0.045 68);++ /* type — Tomorrow display · Geist body · Geist Mono outlier (machine telemetry + shortcuts only) */+ --font-display: "Tomorrow", ui-sans-serif, system-ui, sans-serif;+ --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;+ --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;++ --text-xs: 0.75rem;+ --text-sm: 0.875rem;+ --text-base: 1rem;+ --text-md: 1.25rem;+ --text-lg: 1.5625rem;+ --text-xl: 1.9531rem;+ --text-display: clamp(2.4rem, 4vw + 1rem, 4.4rem);++ /* 4-pt spacing scale */+ --space-2xs: 4px;+ --space-xs: 8px;+ --space-sm: 12px;+ --space-md: 16px;+ --space-lg: 24px;+ --space-xl: 32px;+ --space-2xl: 48px;+ --space-3xl: 64px;+ --space-4xl: 96px;++ --ease-out: cubic-bezier(0.2, 0, 0, 1);+ --ease-inout: cubic-bezier(0.6, 0, 0.4, 1);+ --dur-fast: 120ms;+ --dur-med: 220ms;++ --rule-hairline: 1px;+ --radius-sm: 4px;+ --radius-md: 10px;+ --radius-pill: 999px;}-.voice__desc {+*, *::before, *::after { box-sizing: border-box; }++html, body { overflow-x: clip; }++html { color-scheme: dark; }++body {margin: 0;+ font-family: var(--font-body);+ font-weight: 350;+ font-size: var(--text-base);+ line-height: 1.55;+ color: var(--color-ink);+ background-color: var(--color-paper);+ background-image: radial-gradient(58rem 38rem at 82% -8%, var(--color-bloom), transparent 70%);+ background-repeat: no-repeat;+ background-attachment: fixed;+}++::selection { background: var(--color-accent); color: var(--color-accent-ink); }++:focus-visible {+ outline: 2px solid var(--color-focus);+ outline-offset: 2px;+}++.wrap {+ max-width: 72rem;+ margin-inline: auto;+ padding-inline: var(--space-lg);+}++/* ---------- nav (N11: wordmark + descriptor, no link rail) ---------- */+.top {+ display: flex;+ align-items: center;+ gap: var(--space-sm);+ flex-wrap: wrap;+ padding-block: var(--space-lg) var(--space-md);+}+.wordmark {+ font-family: var(--font-display);+ font-weight: 700;+ font-size: var(--text-md);+ letter-spacing: 0.01em;+ line-height: 1;+}+.top__tag {+ color: var(--color-neutral);font-size: var(--text-sm);- color: var(--color-muted);- max-width: 60ch;+ line-height: 1;+}+.top__note {+ margin-inline-start: auto;+ color: var(--color-neutral);+ font-size: var(--text-sm);+ line-height: 1;}-/* ---------- notes: colour-shifted band ---------- */-.notes {+/* ---------- hero + machine ---------- */+.hero { padding-block: var(--space-2xl) var(--space-3xl); }+.hero__display {+ font-family: var(--font-display);+ font-weight: 700;+ font-size: var(--text-display);+ line-height: 1.05;+ letter-spacing: -0.02em;+ margin: 0 0 var(--space-md);+ max-width: 22ch;+ overflow-wrap: anywhere;+ min-width: 0;+}+.hero__display .accent { color: var(--color-accent); }+.hero__lede {+ color: var(--color-neutral);+ font-size: var(--text-md);+ max-width: 56ch;+ margin: 0 0 var(--space-xl);+}++.machine {background: var(--color-paper-2);- border-block: var(--rule-hairline) solid var(--color-rule);- padding-block: var(--space-2xl);+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-md);+ padding: var(--space-lg);}-.notes p {- margin: var(--space-s) 0 0;- max-width: 60ch;- color: var(--color-muted);+.transport {+ display: flex;+ align-items: center;+ flex-wrap: wrap;+ gap: var(--space-md);+ margin-block-end: var(--space-lg);}-.keys { margin: var(--space-l) 0 0; }+.btn {+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ height: 44px;+ padding-inline: var(--space-md);+ font-family: var(--font-body);+ font-weight: 600;+ font-size: var(--text-sm);+ line-height: 1;+ white-space: nowrap;+ color: var(--color-ink);+ background: transparent;+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);+}+.btn:hover { background: var(--color-paper-3); border-color: var(--color-rule-strong); }+.btn:active { transform: translateY(1px); }+.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }++.btn--primary {+ color: var(--color-accent-ink);+ background: var(--color-accent);+ border-color: var(--color-accent);+ padding-inline: var(--space-lg);+}+.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }++.led {+ width: 8px;+ height: 8px;+ border-radius: 50%;+ background: var(--color-accent-ink);+ opacity: 0.35;+}+.is-playing .led { opacity: 1; animation: led-pulse 1.2s var(--ease-inout) infinite; }+@keyframes led-pulse {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.45; }+}-.keys__row {+.chip {+ display: inline-flex;+ align-items: center;+ height: 44px;+ padding-inline: var(--space-md);+ font-family: var(--font-body);+ font-weight: 600;+ font-size: var(--text-sm);+ line-height: 1;+ white-space: nowrap;+ color: var(--color-neutral);+ background: transparent;+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-pill);+ cursor: pointer;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);+}+.chip:hover { color: var(--color-ink); border-color: var(--color-rule-strong); }+.chip:active { transform: translateY(1px); }+.chip:disabled { opacity: 0.55; cursor: not-allowed; }+.chip[aria-pressed="true"] { color: var(--color-accent); border-color: var(--color-accent-dim); }++.tempo {display: flex;align-items: center;- gap: var(--space-s);- padding-block: var(--space-2xs);+ gap: var(--space-sm);+ flex: 1 1 220px;+ min-width: 0;}-.keys__row dt { margin: 0; min-width: 7rem; }-.keys__row dd { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }+.transport__label,+.readout {+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ font-variant-numeric: tabular-nums;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ line-height: 1;+ color: var(--color-neutral);+ white-space: nowrap;+}+.readout--bpm { color: var(--color-accent); }-kbd {- font-family: var(--font-body);+/* track 4px + thumb 12px → centering offset is −4px, on the 4-pt scale */+input[type="range"] {+ appearance: none;+ -webkit-appearance: none;+ flex: 1 1 120px;+ min-width: 0;+ height: 44px;+ margin: 0;+ background: transparent;+ cursor: pointer;+}+input[type="range"]::-webkit-slider-runnable-track {+ height: 4px;+ border-radius: var(--radius-pill);+ background: var(--color-rule);+}+input[type="range"]::-webkit-slider-thumb {+ -webkit-appearance: none;+ width: 12px;+ height: 12px;+ margin-top: -4px;+ border: none;+ border-radius: 50%;+ background: var(--color-ink);+}+input[type="range"]::-moz-range-track {+ height: 4px;+ border-radius: var(--radius-pill);+ background: var(--color-rule);+}+input[type="range"]::-moz-range-thumb {+ width: 12px;+ height: 12px;+ border: none;+ border-radius: 50%;+ background: var(--color-ink);+}+input[type="range"]:disabled { opacity: 0.55; cursor: not-allowed; }++.grid { display: grid; gap: var(--space-xs); }++.track {+ display: grid;+ grid-template-columns: 6rem repeat(16, minmax(0, 1fr));+ gap: var(--space-2xs);+ align-items: center;+}+.track__label {+ font-family: var(--font-mono);font-size: var(--text-xs);+ letter-spacing: 0.08em;+ text-transform: uppercase;line-height: 1;- color: var(--color-ink);+ color: var(--color-neutral);+}++.step {+ min-height: 44px;+ padding: 0;background: var(--color-paper-3);- border: var(--rule-hairline) solid var(--color-rule-strong);- border-radius: var(--radius-s);- padding: var(--space-3xs) var(--space-2xs);+ border: var(--rule-hairline) solid var(--color-rule);+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background-color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);+}+.step--beat { border-color: var(--color-rule-strong); }+.step:hover { background: var(--color-step-hover); }+.step:active { transform: scale(0.94); }+.step:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }+.step[aria-pressed="true"] {+ background: var(--color-accent);+ border-color: var(--color-accent);}+.step.is-now { box-shadow: inset 0 0 0 2px var(--color-accent-dim); }+.step[aria-pressed="true"].is-now { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }-/* ---------- footer: statement, not link columns ---------- */-.foot { padding-block: var(--space-2xl) var(--space-xl); }+.machine__hint {+ margin: var(--space-md) 0 0;+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ text-transform: uppercase;+ line-height: 1;+ color: var(--color-neutral);+}-.foot__statement {- margin: 0;+/* ---------- voices spec ---------- */+.voices {+ border-top: var(--rule-hairline) solid var(--color-rule);+ padding-block: var(--space-3xl);+}+.section__title {font-family: var(--font-display);- font-weight: 800;+ font-weight: 600;font-size: var(--text-xl);line-height: 1.15;letter-spacing: -0.01em;- max-width: 24ch;+ margin: 0 0 var(--space-xs);overflow-wrap: anywhere;min-width: 0;}+.voices__note {+ color: var(--color-neutral);+ max-width: 60ch;+ margin: 0 0 var(--space-xl);+}+.voice {+ display: grid;+ grid-template-columns: 8rem minmax(0, 1fr) auto;+ gap: var(--space-md);+ align-items: center;+ padding-block: var(--space-md);+ border-top: var(--rule-hairline) solid var(--color-rule);+}+.voice__name {+ font-family: var(--font-display);+ font-weight: 600;+ font-size: var(--text-md);+ line-height: 1.2;+}+.voice__spec {+ color: var(--color-neutral);+ font-variant-numeric: tabular-nums;+ margin: 0;+}+/* ---------- quiet by design ---------- */+.quiet { padding-block: var(--space-4xl) var(--space-3xl); }+.quiet__inner { max-width: 58ch; }+.quiet .section__title::before {+ content: "";+ display: inline-block;+ width: 10px;+ height: 10px;+ margin-inline-end: var(--space-sm);+ background: var(--color-accent);+}+.quiet p { margin: 0 0 var(--space-md); }+.quiet p:last-child { margin-block-end: 0; }+.quiet p strong { font-weight: 600; }++/* ---------- footer (Ft5: statement + colophon) ---------- */+.foot {+ border-top: var(--rule-hairline) solid var(--color-rule);+ padding-block: var(--space-2xl) var(--space-3xl);+}+.foot__statement {+ font-family: var(--font-display);+ font-weight: 600;+ font-size: var(--text-lg);+ line-height: 1.2;+ letter-spacing: -0.01em;+ margin: 0 0 var(--space-xl);+ max-width: 24ch;+ overflow-wrap: anywhere;+ min-width: 0;+}.foot__meta {- margin-top: var(--space-xl);display: flex;- align-items: baseline;+ align-items: center;flex-wrap: wrap;- gap: var(--space-l);- border-top: var(--rule-hairline) solid var(--color-rule);- padding-top: var(--space-m);+ gap: var(--space-md) var(--space-xl);}--.foot__mark {- margin: 0;- font-family: var(--font-display);- font-weight: 800;+.foot__shortcuts {+ font-family: var(--font-mono);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ line-height: 1.6;+ color: var(--color-neutral);+}+.foot__colophon {+ margin-inline-start: auto;+ color: var(--color-neutral);font-size: var(--text-sm);- line-height: 1;+ line-height: 1.6;}-.foot__meta p:last-child {- margin: 0;- font-size: var(--text-sm);- color: var(--color-neutral);- max-width: 56ch;+noscript p {+ margin: var(--space-md) 0;+ padding: var(--space-md);+ border: var(--rule-hairline) solid var(--color-rule-strong);+ border-radius: var(--radius-sm);+ color: var(--color-ink);}/* ---------- responsive ---------- */-@media (max-width: 48rem) {- .top__side { display: none; }- .voice { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }- .voice .btn { justify-self: start; }-\ No newline at end of file+@media (max-width: 40rem) {+ .track { grid-template-columns: repeat(8, minmax(0, 1fr)); }+ .track__label { grid-column: 1 / -1; margin-block: var(--space-2xs) 0; }+ .step { min-height: 36px; }+ .voice { grid-template-columns: minmax(0, 1fr) auto; }+ .voice__spec { grid-column: 1 / -1; }+ .machine { padding: var(--space-md); }+ .top__note { display: none; }+}++@media (prefers-reduced-motion: reduce) {+ * {+ animation: none !important;+ transition: none !important;+ }+ .is-playing .led { opacity: 1; }+}+</style>+</head>+<body>++<header class="top wrap">+ <span class="wordmark">Lowlight</span>+ <span class="top__tag">— a late-night drum machine</span>+ <span class="top__note">no account · no install · nothing leaves this tab</span>+</header>++<main>+ <section class="hero wrap" aria-labelledby="hero-title">+ <h1 class="hero__display" id="hero-title">A drum machine for <span class="accent">3 a.m.</span></h1>+ <p class="hero__lede">Sixteen steps, four voices, zero samples. Every sound is synthesized in this tab the moment you press play — and the master sits at −8 dB, so you can sketch over a sleeping house.</p>++ <div class="machine" role="group" aria-label="Lowlight step sequencer">+ <div class="transport">+ <button type="button" class="btn btn--primary" id="play" aria-pressed="false">+ <span class="led" aria-hidden="true"></span>+ <span id="play-label">Play</span>+ </button>+ <div class="tempo">+ <label class="transport__label" for="bpm">Tempo</label>+ <input type="range" id="bpm" min="60" max="160" step="1" value="96">+ <span class="readout readout--bpm" id="bpm-out">096 bpm</span>+ </div>+ <button type="button" class="chip" data-preset="bus" aria-pressed="false">First bus</button>+ <button type="button" class="chip" data-preset="rain" aria-pressed="false">Rain on glass</button>+ <button type="button" class="btn" id="clear">Clear pattern</button>+ <span class="readout" id="step-out">— / 16</span>+ </div>++ <div class="grid" id="grid"></div>+ <p class="machine__hint">space — play / stop · keys 1–4 — audition a voice</p>+ <noscript><p>Lowlight needs JavaScript to synthesize sound — nothing on this page is prerecorded, so with scripts off there is nothing to play.</p></noscript>+ </div>+ </section>++ <section class="voices" aria-labelledby="voices-title">+ <div class="wrap">+ <h2 class="section__title" id="voices-title">Inside the four voices</h2>+ <p class="voices__note">No sample packs, no licences. Each voice is built from oscillators and filtered noise, and every number below is live in this page's source — the spec is the implementation.</p>++ <div class="voice">+ <h3 class="voice__name">Kick</h3>+ <p class="voice__spec">Sine wave, 150 Hz falling to 42 Hz over 120 ms · 400 ms decay</p>+ <button type="button" class="btn" data-voice="kick" aria-label="Hear the kick once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Snare</h3>+ <p class="voice__spec">190 Hz triangle body under noise band-passed at 1.8 kHz · 180 ms tail</p>+ <button type="button" class="btn" data-voice="snare" aria-label="Hear the snare once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Hat</h3>+ <p class="voice__spec">White noise through an 8 kHz high-pass · 55 ms gate</p>+ <button type="button" class="btn" data-voice="hat" aria-label="Hear the hat once">Hear it</button>+ </div>+ <div class="voice">+ <h3 class="voice__name">Clap</h3>+ <p class="voice__spec">Three noise bursts 12 ms apart, band-passed at 1.5 kHz</p>+ <button type="button" class="btn" data-voice="clap" aria-label="Hear the clap once">Hear it</button>+ </div>+ </div>+ </section>++ <section class="quiet wrap" aria-labelledby="quiet-title">+ <div class="quiet__inner">+ <h2 class="section__title" id="quiet-title">Quiet by design</h2>+ <p>Lowlight holds the master gain at −8 dB and keeps every voice under half a second, so a pattern reads as a sketch, not a performance. There is no cloud and no save button: your loop lives in this tab's memory and vanishes when you close it. If it's worth keeping, record it — the machine won't hold it for you.</p>+ <p><strong>That isn't a missing feature.</strong> Some grooves belong to the hour they were made in.</p>+ </div>+ </section>+</main>++<footer class="foot">+ <div class="wrap">+ <p class="foot__statement">Made for the hours nobody schedules.</p>+ <div class="foot__meta">+ <p class="foot__shortcuts">space — play / stop<br>1 · 2 · 3 · 4 — audition kick, snare, hat, clap</p>+ <p class="foot__colophon">Lowlight · one HTML file · four synthesized voices · no samples loaded</p>+ </div>+ </div>+</footer>++<script>+(() => {+ "use strict";++ const TRACKS = [+ { id: "kick", label: "Kick" },+ { id: "snare", label: "Snare" },+ { id: "hat", label: "Hat" },+ { id: "clap", label: "Clap" }+ ];+ const STEPS = 16;++ const PRESETS = {+ bus: { bpm: 96, kick: "1000100010001000", snare: "0000100000001000", hat: "1010101010101010", clap: "0000000000001000" },+ rain: { bpm: 76, kick: "1000001000000010", snare: "0000100000010000", hat: "0010001000100010", clap: "0000000000100000" }+ };++ const pattern = Object.fromEntries(TRACKS.map(t => [t.id, new Array(STEPS).fill(false)]));+ const cells = {};++ const grid = document.getElementById("grid");+ const playBtn = document.getElementById("play");+ const playLbl = document.getElementById("play-label");+ const clearBtn = document.getElementById("clear");+ const bpmInput = document.getElementById("bpm");+ const bpmOut = document.getElementById("bpm-out");+ const stepOut = document.getElementById("step-out");+ const machine = document.querySelector(".machine");+ const chips = Array.from(document.querySelectorAll(".chip[data-preset]"));++ /* ---- build the 4 × 16 grid ---- */+ TRACKS.forEach(tr => {+ const row = document.createElement("div");+ row.className = "track";+ row.setAttribute("role", "group");+ row.setAttribute("aria-label", tr.label + " track");++ const lab = document.createElement("span");+ lab.className = "track__label";+ lab.textContent = tr.label;+ row.appendChild(lab);++ cells[tr.id] = [];+ for (let s = 0; s < STEPS; s++) {+ const b = document.createElement("button");+ b.type = "button";+ b.className = "step" + (s % 4 === 0 ? " step--beat" : "");+ b.setAttribute("aria-pressed", "false");+ b.setAttribute("aria-label", tr.label + ", step " + (s + 1));+ b.addEventListener("click", () => {+ pattern[tr.id][s] = !pattern[tr.id][s];+ b.setAttribute("aria-pressed", String(pattern[tr.id][s]));+ clearChips();+ });+ row.appendChild(b);+ cells[tr.id].push(b);+ }+ grid.appendChild(row);+ });++ /* ---- audio: everything synthesized, master at 0.4 gain (−8 dB) ---- */+ let ctx = null, master = null, noiseBuf = null;++ function ensureCtx() {+ if (!ctx) {+ ctx = new (window.AudioContext || window.webkitAudioContext)();+ master = ctx.createGain();+ master.gain.value = 0.4; /* ≈ −8 dB */+ master.connect(ctx.destination);+ }+ if (ctx.state === "suspended") ctx.resume();+ }++ function noiseSource() {+ if (!noiseBuf) {+ noiseBuf = ctx.createBuffer(1, ctx.sampleRate, ctx.sampleRate);+ const d = noiseBuf.getChannelData(0);+ for (let i = 0; i < d.length; i++) d[i] = Math.random() * 2 - 1;+ }+ const src = ctx.createBufferSource();+ src.buffer = noiseBuf;+ return src;+ }++ const VOICES = {+ kick(t) {+ const o = ctx.createOscillator(), g = ctx.createGain();+ o.type = "sine";+ o.frequency.setValueAtTime(150, t);+ o.frequency.exponentialRampToValueAtTime(42, t + 0.12);+ g.gain.setValueAtTime(1, t);+ g.gain.exponentialRampToValueAtTime(0.001, t + 0.4);+ o.connect(g); g.connect(master);+ o.start(t); o.stop(t + 0.45);+ },+ snare(t) {+ const n = noiseSource();+ const bp = ctx.createBiquadFilter();+ bp.type = "bandpass"; bp.frequency.value = 1800; bp.Q.value = 0.9;+ const ng = ctx.createGain();+ ng.gain.setValueAtTime(0.7, t);+ ng.gain.exponentialRampToValueAtTime(0.001, t + 0.18);+ n.connect(bp); bp.connect(ng); ng.connect(master);+ n.start(t); n.stop(t + 0.2);++ const o = ctx.createOscillator(), og = ctx.createGain();+ o.type = "triangle"; o.frequency.value = 190;+ og.gain.setValueAtTime(0.4, t);+ og.gain.exponentialRampToValueAtTime(0.001, t + 0.12);+ o.connect(og); og.connect(master);+ o.start(t); o.stop(t + 0.14);+ },+ hat(t) {+ const n = noiseSource();+ const hp = ctx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 8000;+ const g = ctx.createGain();+ g.gain.setValueAtTime(0.35, t);+ g.gain.exponentialRampToValueAtTime(0.001, t + 0.055);+ n.connect(hp); hp.connect(g); g.connect(master);+ n.start(t); n.stop(t + 0.08);+ },+ clap(t) {+ for (let i = 0; i < 3; i++) {+ const bt = t + i * 0.012;+ const n = noiseSource();+ const bp = ctx.createBiquadFilter();+ bp.type = "bandpass"; bp.frequency.value = 1500; bp.Q.value = 1.2;+ const g = ctx.createGain();+ g.gain.setValueAtTime(0.55, bt);+ g.gain.exponentialRampToValueAtTime(0.001, bt + (i === 2 ? 0.1 : 0.03));+ n.connect(bp); bp.connect(g); g.connect(master);+ n.start(bt); n.stop(bt + 0.12);+ }+ }+ };++ /* ---- lookahead scheduler ---- */+ let playing = false, step = 0, nextT = 0, timer = null, bpm = 96;+ const paints = [];+ const LOOKAHEAD_MS = 25, HORIZON_S = 0.12;++ function scheduler() {+ while (nextT < ctx.currentTime + HORIZON_S) {+ const s = step, t = nextT;+ TRACKS.forEach(tr => { if (pattern[tr.id][s]) VOICES[tr.id](t); });+ paints.push(setTimeout(() => paint(s), Math.max(0, (t - ctx.currentTime) * 1000)));+ nextT += (60 / bpm) / 4;+ step = (step + 1) % STEPS;+ }+ }++ function paint(s) {+ TRACKS.forEach(tr => cells[tr.id].forEach((b, i) => b.classList.toggle("is-now", i === s)));+ stepOut.textContent = String(s + 1).padStart(2, "0") + " / 16";+ }++ function clearPaint() {+ paints.forEach(clearTimeout);+ paints.length = 0;+ TRACKS.forEach(tr => cells[tr.id].forEach(b => b.classList.remove("is-now")));+ stepOut.textContent = "— / 16";+ }++ function togglePlay() {+ if (!playing) {+ ensureCtx();+ step = 0;+ nextT = ctx.currentTime + 0.05;+ timer = setInterval(scheduler, LOOKAHEAD_MS);+ playing = true;+ } else {+ clearInterval(timer);+ timer = null;+ playing = false;+ clearPaint();+ }+ playBtn.setAttribute("aria-pressed", String(playing));+ playLbl.textContent = playing ? "Stop" : "Play";+ machine.classList.toggle("is-playing", playing);+ }++ /* ---- transport wiring ---- */+ playBtn.addEventListener("click", togglePlay);++ bpmInput.addEventListener("input", () => {+ bpm = Number(bpmInput.value);+ bpmOut.textContent = String(bpm).padStart(3, "0") + " bpm";+ });++ clearBtn.addEventListener("click", () => {+ TRACKS.forEach(tr => {+ for (let s = 0; s < STEPS; s++) {+ pattern[tr.id][s] = false;+ cells[tr.id][s].setAttribute("aria-pressed", "false");+ }+ });+ clearChips();+ });++ function clearChips() {+ chips.forEach(c => c.setAttribute("aria-pressed", "false"));+ }++ function applyPreset(name) {+ const p = PRESETS[name];+ bpm = p.bpm;+ bpmInput.value = String(bpm);+ bpmOut.textContent = String(bpm).padStart(3, "0") + " bpm";+ TRACKS.forEach(tr => {+ for (let s = 0; s < STEPS; s++) {+ pattern[tr.id][s] = p[tr.id][s] === "1";+ cells[tr.id][s].setAttribute("aria-pressed", String(pattern[tr.id][s]));+ }+ });+ chips.forEach(c => c.setAttribute("aria-pressed", String(c.dataset.preset === name)));+ }++ chips.forEach(c => c.addEventListener("click", () => applyPreset(c.dataset.preset)));++ /* ---- audition buttons ---- */+ document.querySelectorAll("[data-voice]").forEach(b => {+ b.addEventListener("click", () => {+ ensureCtx();+ VOICES[b.dataset.voice](ctx.currentTime + 0.02);+ });+ });++ /* ---- keyboard: space = play/stop, 1–4 = audition ---- */+ document.addEventListener("keydown", e => {+ const tag = e.target.tagName;+ const onControl = tag === "BUTTON" || tag === "INPUT" || tag === "SELECT" || tag === "TEXTAREA";+ if (e.code === "Space") {+ if (onControl) return; /* let native activation win */+ e.preventDefault();+ if (!e.repeat) togglePlay();+ return;+ }+ const digits = ["Digit1", "Digit2", "Digit3", "Digit4"];+ const idx = digits.indexOf(e.code);+ if (idx !== -1 && !onControl) {+ ensureCtx();+ VOICES[TRACKS[idx].id](ctx.currentTime + 0.02);+ }+ });++ /* seed the machine so the first press of play makes music */+ applyPreset("bus");+})();+</script>+</body>+</html>+```\ No newline at end of filediff --git a/eval/runs/b2/fable-baseline-full/run.json b/eval/runs/b2/fable-baseline-full/run.jsonindex f093b33..40c85e6 100644--- a/eval/runs/b2/fable-baseline-full/run.json+++ b/eval/runs/b2/fable-baseline-full/run.json@@ -4,14 +4,15 @@"pack": "full","model": "claude-fable-5","kind": "anthropic",- "ok": false,- "extracted": false,- "durationSec": 413.27,- "promptTok": 42674,- "completionTok": 32000,+ "ok": true,+ "extracted": true,+ "durationSec": 1203.31,+ "promptTok": 98665,+ "completionTok": 49201,"costUSD": null,- "loc": 0,+ "loc": 799,"nudged": false,"error": null,- "generatedAt": "2026-07-23T12:26:17.045276Z"+ "generatedAt": "2026-07-23T13:35:44.304341Z",+ "repairRounds": 1}\ No newline at end of filediff --git a/eval/runs/b2/glm52-together-full/index.html b/eval/runs/b2/glm52-together-full/index.htmlindex ea882fc..6fe7d8c 100644--- a/eval/runs/b2/glm52-together-full/index.html+++ b/eval/runs/b2/glm52-together-full/index.html@@ -430,7 +430,7 @@ ul { margin: 0; padding: 0; list-style: none; }.seq__steps {display: grid;grid-template-columns: repeat(16, minmax(0, 1fr));- gap: 3px;+ gap: var(--space-3xs);}.seq__step-mark {font-family: var(--font-outlier);@@ -449,7 +449,7 @@ ul { margin: 0; padding: 0; list-style: none; }.seq__rows {display: grid;- gap: 3px;+ gap: var(--space-3xs);}.seq__row {display: grid;@@ -491,7 +491,7 @@ ul { margin: 0; padding: 0; list-style: none; }.seq__cells {display: grid;grid-template-columns: repeat(16, minmax(0, 1fr));- gap: 3px;+ gap: var(--space-3xs);}.cell {@@ -631,11 +631,11 @@ ul { margin: 0; padding: 0; list-style: none; }.voice__meter {display: flex;align-items: center;- gap: 4px;+ gap: var(--space-2xs);height: 16px;}.meter-bar {- width: 4px;+ width: var(--space-2xs);height: 100%;background: var(--color-rule);border-radius: 1px;@@ -657,7 +657,7 @@ ul { margin: 0; padding: 0; list-style: none; }background: transparent;border: var(--rule-hair) solid var(--color-rule);color: var(--color-ink-soft);- padding: 4px 8px;+ padding: var(--space-2xs) var(--space-xs);border-radius: var(--radius-xs);cursor: pointer;line-height: 1;@@ -723,9 +723,9 @@ ul { margin: 0; padding: 0; list-style: none; }.knob__dial::before {content: "";position: absolute;- top: 4px;+ top: var(--space-2xs);left: 50%;- width: 2px;+ width: var(--rule-med);height: 14px;background: var(--color-accent);border-radius: 1px;@@ -955,7 +955,7 @@ ul { margin: 0; padding: 0; list-style: none; }<p class="foot__statement">Made for the kind of night where the room is quiet and the headphones are on.</p><div class="foot__meta"><span>built in one html file</span>- <span>audio runs on the web Audio API</span>+ <span>audio runs on the Web Audio API</span><a href="#" id="about-link">about knock →</a></div></div>@@ -969,11 +969,11 @@ ul { margin: 0; padding: 0; list-style: none; }{ name: "Kick", desc: "60hz sine · fast pitch drop", type: "kick" },{ name: "Snare", desc: "noise burst · 200hz tone", type: "snare" },{ name: "Hat", desc: "highpass noise · 7khz", type: "hat" },- { name: "Open", desc: "noise · longer decay", type: "open" },+ { name: "Open", desc: "noise · longer decay", type: "open" },{ name: "Clap", desc: "three noise bursts", type: "clap" },- { name: "Tom", desc: "100hz sine · mid decay", type: "tom" },+ { name: "Tom", desc: "100hz sine · mid decay", type: "tom" },{ name: "Rim", desc: "short click · 1.2khz", type: "rim" },- { name: "Cymb", desc: "noise · bright · long tail", type: "cymbal" }+ { name: "Cymb", desc: "noise · bright · long tail", type: "cymbal" }];const STEPS = 16;@@ -986,8 +986,8 @@ ul { margin: 0; padding: 0; list-style: none; }let currentStep = 0;let nextNoteTime = 0;let timerID = null;- let lookahead = 25.0;- let scheduleAheadTime = 0.1;+ const lookahead = 25.0;+ const scheduleAheadTime = 0.1;let lastDrawnStep = -1;const knobs = {@@ -1009,7 +1009,6 @@ ul { margin: 0; padding: 0; list-style: none; }masterGain = audioCtx.createGain();masterGain.gain.value = knobs.vol.value / 100;- // simple reverb via feedback delayreverbNode = audioCtx.createDelay(1.0);reverbNode.delayTime.value = 0.18;const fb = audioCtx.createGain();@@ -1140,8 +1139,7 @@ ul { margin: 0; padding: 0; list-style: none; }function nextNote() {const secondsPerBeat = 60.0 / bpm;const swingAmt = knobs.swing.value / 100;- const base = secondsPerBeat / 4; // 16th notes- // swing: delay odd 16ths+ const base = secondsPerBeat / 4;const isOff = currentStep % 2 === 1;nextNoteTime += base * (1 + (isOff ? swingAmt : 0));currentStep = (currentStep + 1) % STEPS;@@ -1169,15 +1167,11 @@ ul { margin: 0; padding: 0; list-style: none; }}lastDrawnStep = stepToDraw;- // update step readoutstepCurrentEl.textContent = String(stepToDraw + 1).padStart(2, "0");- // clear all playing statesdocument.querySelectorAll(".cell--playing").forEach(el => el.classList.remove("cell--playing"));- // mark current step columndocument.querySelectorAll('.cell[data-step="' + stepToDraw + '"]').forEach(el => el.classList.add("cell--playing"));- // voice meters flashfor (let r = 0; r < ROWS; r++) {if (pattern[r][stepToDraw] && !muted[r]) {const meter = document.querySelector('.voice[data-voice="' + r + '"] .voice__meter');@@ -1254,7 +1248,6 @@ ul { margin: 0; padding: 0; list-style: none; }seqRows.appendChild(row);});- // Voices listconst voiceList = document.getElementById("voice-list");VOICES.forEach((v, r) => {const li = document.createElement("li");@@ -1309,7 +1302,6 @@ ul { margin: 0; padding: 0; list-style: none; }voiceList.appendChild(li);});- // Knobsconst knobRow = document.getElementById("knob-row");Object.keys(knobs).forEach(key => {const k = knobs[key];@@ -1354,7 +1346,6 @@ ul { margin: 0; padding: 0; list-style: none; }if (key === "rev" && reverbWet) reverbWet.gain.value = k.value / 100;}- // draglet dragging = false;let startY = 0;let startVal = 0;@@ -1377,7 +1368,6 @@ ul { margin: 0; padding: 0; list-style: none; }});dial.addEventListener("pointercancel", () => { dragging = false; });- // keyboarddial.addEventListener("keydown", (e) => {if (e.key === "ArrowUp" || e.key === "ArrowRight") {e.preventDefault();@@ -1395,7 +1385,6 @@ ul { margin: 0; padding: 0; list-style: none; }});});- // ─── Transport wiring ───const playBtn = document.getElementById("play-btn");const stopBtn = document.getElementById("stop-btn");const clearBtn = document.getElementById("clear-btn");@@ -1453,10 +1442,9 @@ ul { margin: 0; padding: 0; list-style: none; }c.setAttribute("aria-pressed", "false");});});- bpmUp.addEventListener("click", () => setBpm(bpm + (event.shiftKey ? 5 : 1)));- bpmDown.addEventListener("click", () => setBpm(bpm - (event.shiftKey ? 5 : 1)));+ bpmUp.addEventListener("click", (e) => setBpm(bpm + (e.shiftKey ? 5 : 1)));+ bpmDown.addEventListener("click", (e) => setBpm(bpm - (e.shiftKey ? 5 : 1)));- // spacebardocument.addEventListener("keydown", (e) => {if (e.code === "Space" && e.target.tagName !== "BUTTON" && e.target.tagName !== "INPUT") {e.preventDefault();@@ -1464,13 +1452,12 @@ ul { margin: 0; padding: 0; list-style: none; }}});- // ─── Seed a starter pattern (real, not a placeholder) ───- // a four-on-the-floor with a hat on offbeats — the kind of thing you'd tap in at 2am+ // Seed a starter pattern — four-on-the-floor with hats on the offbeatsconst seed = {- 0: [0, 4, 8, 12], // kick — four on the floor- 1: [4, 12], // snare — backbeats- 2: [0, 2, 4, 6, 8, 10, 12, 14], // hat — every 8th- 4: [7, 15] // clap — offbeats+ 0: [0, 4, 8, 12],+ 1: [4, 12],+ 2: [0, 2, 4, 6, 8, 10, 12, 14],+ 4: [7, 15]};Object.keys(seed).forEach(r => {seed[r].forEach(s => {diff --git a/eval/runs/b2/glm52-together-full/raw.txt b/eval/runs/b2/glm52-together-full/raw.txtindex 019f072..d85dca3 100644--- a/eval/runs/b2/glm52-together-full/raw.txt+++ b/eval/runs/b2/glm52-together-full/raw.txt@@ -1504,4 +1504,1486 @@ ul { margin: 0; padding: 0; list-style: none; }</html>```-System portable? Say `lock the system` to extract this build's tokens + voice into a `design.md`.\ No newline at end of file+System portable? Say `lock the system` to extract this build's tokens + voice into a `design.md`.++===== REPAIR ROUND 1 =====++```html+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">+<meta name="color-scheme" content="dark">+<meta name="theme-color" content="#16181c">+<title>Knock — a browser drum machine for the hours after midnight</title>+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Fraunces:opsz,[email protected],400;9..144,500;9..144,600&display=swap" rel="stylesheet">+<style>+/* Hallmark · macrostructure: Workbench · tone: atmospheric · theme: Midnight (paper oklch 14% 0.008 250 · accent oklch 78% 0.14 70)+ * nav: N11 · footer: Ft2 · contrast: pass (40–41) · slop: pass (42–45)+ * honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30)+ * mobile: pass (34, 49, 50–57) · pre-emit critique: P5 H4 E5 S4 R5 V5+ */++:root {+ /* Paper — Midnight, anchor hue 250 (cool blue-grey) */+ --color-paper: oklch(14% 0.008 250);+ --color-paper-2: oklch(17% 0.010 250);+ --color-paper-3: oklch(20% 0.012 250);+ --color-paper-4: oklch(23% 0.014 250);+ --color-rule: oklch(30% 0.012 250);+ --color-rule-soft: oklch(24% 0.012 250);+ --color-neutral: oklch(58% 0.010 250);+ --color-muted: oklch(46% 0.010 250);+ --color-ink: oklch(94% 0.006 250);+ --color-ink-soft: oklch(82% 0.006 250);++ /* Accent — warm amber, the only warm note against the cool paper */+ --color-accent: oklch(78% 0.14 70);+ --color-accent-2: oklch(70% 0.16 70);+ --color-accent-ink: oklch(15% 0.020 70);+ --color-focus: oklch(80% 0.16 70);++ /* Fonts — 2+1: Geist body, Fraunces wordmark, Geist Mono numerals/labels */+ --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;+ --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;+ --font-wordmark:"Fraunces", ui-serif, Georgia, serif;+ --font-outlier: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;++ /* Type scale — major third (1.25), 16px base */+ --text-xs: 0.64rem;+ --text-sm: 0.8rem;+ --text-base: 1rem;+ --text-md: 1.25rem;+ --text-lg: 1.5625rem;+ --text-xl: 1.9531rem;+ --text-2xl: 2.4414rem;+ --text-display: clamp(2.25rem, 4vw + 1rem, 4rem);++ /* Spacing — 4pt scale, semantic names */+ --space-3xs: 2px;+ --space-2xs: 4px;+ --space-xs: 8px;+ --space-s: 12px;+ --space-m: 16px;+ --space-l: 24px;+ --space-xl: 32px;+ --space-2xl: 48px;+ --space-3xl: 64px;+ --space-4xl: 96px;+ --space-5xl: 128px;++ /* Radii */+ --radius-xs: 2px;+ --radius-s: 4px;+ --radius-m: 6px;+ --radius-l: 10px;++ /* Rules */+ --rule-hair: 1px;+ --rule-med: 2px;++ /* Motion — exponential ease-out, no bounce on UI */+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);+ --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);+ --dur-fast: 120ms;+ --dur-med: 220ms;+ --dur-slow: 420ms;++ /* z-index scale */+ --z-base: 1;+ --z-sticky: 200;+ --z-sticky-nav: 300;+ --z-overlay: 400;++ --banner-height: 56px;+}++* { box-sizing: border-box; }+html, body {+ margin: 0;+ padding: 0;+ overflow-x: clip;+ background: var(--color-paper);+ color: var(--color-ink);+ font-family: var(--font-body);+ font-size: 16px;+ line-height: 1.55;+ font-weight: 400;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+ text-rendering: optimizeLegibility;+}+body { min-height: 100vh; }++h1, h2, h3, h4 {+ font-family: var(--font-display);+ font-weight: 600;+ line-height: 1.1;+ margin: 0;+ letter-spacing: -0.02em;+ overflow-wrap: anywhere;+ min-width: 0;+}+p { margin: 0; max-width: 65ch; }+a { color: inherit; text-decoration: none; }+button { font: inherit; color: inherit; }+ul { margin: 0; padding: 0; list-style: none; }++::selection { background: var(--color-accent); color: var(--color-accent-ink); }++:focus { outline: none; }+:focus-visible {+ outline: var(--rule-med) solid var(--color-focus);+ outline-offset: 2px;+ border-radius: var(--radius-xs);+}++/* ───────────── Masthead (N11 — wordmark + status, no nav) ───────────── */+.masthead {+ position: sticky;+ top: 0;+ z-index: var(--z-sticky-nav);+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-m);+ padding: var(--space-s) var(--space-l);+ background: color-mix(in oklch, var(--color-paper) 92%, transparent);+ backdrop-filter: blur(8px);+ -webkit-backdrop-filter: blur(8px);+ border-bottom: var(--rule-hair) solid var(--color-rule-soft);+ min-height: var(--banner-height);+}+.masthead__brand {+ display: flex;+ align-items: baseline;+ gap: var(--space-s);+ line-height: 1;+}+.wordmark {+ font-family: var(--font-wordmark);+ font-weight: 600;+ font-size: var(--text-lg);+ letter-spacing: -0.015em;+ color: var(--color-ink);+}+.wordmark__dot {+ color: var(--color-accent);+}+.masthead__meta {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-muted);+ text-transform: lowercase;+}+.masthead__status {+ display: flex;+ align-items: center;+ gap: var(--space-s);+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-neutral);+ text-transform: lowercase;+}+.status-dot {+ display: inline-block;+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--color-neutral);+ transition: background var(--dur-med) var(--ease-out);+}+.is-playing .status-dot {+ background: var(--color-accent);+ animation: pulse-dot 480ms var(--ease-in-out) infinite;+}+@keyframes pulse-dot {+ 0%, 100% { opacity: 1; }+ 50% { opacity: 0.35; }+}++/* ───────────── Hero ───────────── */+.hero {+ padding: var(--space-3xl) var(--space-l) var(--space-2xl);+ border-bottom: var(--rule-hair) solid var(--color-rule-soft);+}+.hero__inner {+ max-width: 1240px;+ margin: 0 auto;+ display: grid;+ grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);+ gap: var(--space-2xl);+ align-items: end;+}+.hero__display {+ font-size: var(--text-display);+ font-weight: 600;+ line-height: 1.02;+ letter-spacing: -0.03em;+ max-width: 14ch;+}+.hero__display em {+ font-style: normal;+ color: var(--color-accent);+}+.hero__lede {+ font-size: var(--text-md);+ line-height: 1.5;+ color: var(--color-ink-soft);+ font-weight: 300;+ max-width: 38ch;+}+.hero__lede strong {+ font-weight: 500;+ color: var(--color-ink);+}++/* ───────────── Workbench shell ───────────── */+.workbench {+ padding: var(--space-2xl) var(--space-l) var(--space-3xl);+ max-width: 1240px;+ margin: 0 auto;+ display: grid;+ gap: var(--space-xl);+}++.panel {+ background: var(--color-paper-2);+ border: var(--rule-hair) solid var(--color-rule-soft);+ border-radius: var(--radius-l);+ overflow: hidden;+}+.panel__head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-m);+ padding: var(--space-s) var(--space-m);+ border-bottom: var(--rule-hair) solid var(--color-rule-soft);+ background: var(--color-paper-3);+ min-height: 44px;+}+.panel__label {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ color: var(--color-neutral);+ text-transform: lowercase;+ line-height: 1;+}+.panel__body { padding: var(--space-m); }++/* ───────────── Transport ───────────── */+.transport {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr) auto;+ align-items: center;+ gap: var(--space-l);+ padding: var(--space-m) var(--space-l);+}+.transport__cluster {+ display: flex;+ align-items: center;+ gap: var(--space-s);+}+.transport__cluster--center { justify-content: center; }+.transport__cluster--end { justify-content: flex-end; }++.btn {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: var(--space-2xs);+ height: 44px;+ padding: 0 var(--space-m);+ border: var(--rule-hair) solid var(--color-rule);+ border-radius: var(--radius-s);+ background: var(--color-paper-3);+ color: var(--color-ink);+ font-family: var(--font-body);+ font-size: var(--text-sm);+ font-weight: 500;+ letter-spacing: 0.01em;+ cursor: pointer;+ transition: background var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out),+ transform var(--dur-fast) var(--ease-out);+ white-space: nowrap;+ line-height: 1;+}+.btn:hover { background: var(--color-paper-4); border-color: var(--color-neutral); }+.btn:active { transform: translateY(1px); }+.btn:disabled {+ opacity: 0.45;+ cursor: not-allowed;+ transform: none;+}+.btn:disabled:hover { background: var(--color-paper-3); border-color: var(--color-rule); }++.btn--primary {+ background: var(--color-accent);+ color: var(--color-accent-ink);+ border-color: var(--color-accent);+ font-weight: 600;+}+.btn--primary:hover {+ background: var(--color-accent-2);+ border-color: var(--color-accent-2);+}+.btn--primary:disabled {+ background: var(--color-paper-3);+ color: var(--color-muted);+ border-color: var(--color-rule);+}++.btn--ghost {+ background: transparent;+ border-color: var(--color-rule);+ color: var(--color-ink-soft);+}+.btn--ghost:hover {+ background: var(--color-paper-3);+ color: var(--color-ink);+}++.btn--icon {+ width: 44px;+ padding: 0;+}+.btn .icon {+ width: 16px;+ height: 16px;+ flex-shrink: 0;+}++.transport__readout {+ display: flex;+ align-items: baseline;+ gap: var(--space-s);+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-md);+ color: var(--color-ink);+ letter-spacing: 0.02em;+ line-height: 1;+}+.transport__bpm-label {+ font-size: var(--text-xs);+ letter-spacing: 0.1em;+ color: var(--color-muted);+ text-transform: lowercase;+}+.transport__step-label {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1;+}+.transport__step-current {+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-md);+ color: var(--color-accent);+ line-height: 1;+ min-width: 2ch;+ text-align: right;+}++/* ───────────── Sequencer ───────────── */+.seq {+ padding: var(--space-l);+}+.seq__head {+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: var(--space-m);+ align-items: center;+ margin-bottom: var(--space-l);+}+.seq__title {+ font-size: var(--text-md);+ font-weight: 600;+ color: var(--color-ink);+ line-height: 1.1;+}+.seq__hint {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1;+}++.seq__ruler {+ display: grid;+ grid-template-columns: 96px 1fr;+ gap: var(--space-s);+ margin-bottom: var(--space-s);+ align-items: center;+}+.seq__ruler-label {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1;+}+.seq__steps {+ display: grid;+ grid-template-columns: repeat(16, minmax(0, 1fr));+ gap: var(--space-3xs);+}+.seq__step-mark {+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-xs);+ text-align: center;+ color: var(--color-muted);+ padding: var(--space-2xs) 0;+ line-height: 1;+ letter-spacing: 0.02em;+}+.seq__step-mark--downbeat {+ color: var(--color-ink-soft);+ font-weight: 500;+}++.seq__rows {+ display: grid;+ gap: var(--space-3xs);+}+.seq__row {+ display: grid;+ grid-template-columns: 96px 1fr;+ gap: var(--space-s);+ align-items: center;+}+.seq__row-label {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-2xs);+ font-family: var(--font-outlier);+ font-size: var(--text-sm);+ color: var(--color-ink-soft);+ letter-spacing: 0.02em;+ line-height: 1;+ padding-right: var(--space-2xs);+}+.seq__row-name {+ font-family: var(--font-body);+ font-weight: 500;+ font-size: var(--text-sm);+ color: var(--color-ink);+ letter-spacing: 0;+ line-height: 1;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.seq__row-num {+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-xs);+ color: var(--color-muted);+ letter-spacing: 0.04em;+ line-height: 1;+}+.seq__cells {+ display: grid;+ grid-template-columns: repeat(16, minmax(0, 1fr));+ gap: var(--space-3xs);+}++.cell {+ position: relative;+ height: 36px;+ border: var(--rule-hair) solid var(--color-rule-soft);+ border-radius: var(--radius-s);+ background: var(--color-paper-3);+ cursor: pointer;+ padding: 0;+ transition: background var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ opacity var(--dur-fast) var(--ease-out);+ line-height: 1;+}+.cell:hover { border-color: var(--color-neutral); background: var(--color-paper-4); }+.cell:active { transform: translateY(1px); }+.cell--downbeat { background: var(--color-paper-4); }+.cell--on {+ background: var(--color-accent);+ border-color: var(--color-accent);+}+.cell--on:hover {+ background: var(--color-accent-2);+ border-color: var(--color-accent-2);+}+.cell--playing {+ box-shadow: inset 0 0 0 2px var(--color-focus);+}+.cell--on.cell--playing {+ box-shadow: inset 0 0 0 2px var(--color-ink), 0 0 12px -2px var(--color-accent);+}+.cell__num {+ position: absolute;+ inset: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: 9px;+ color: var(--color-muted);+ pointer-events: none;+ opacity: 0;+ transition: opacity var(--dur-fast) var(--ease-out);+ line-height: 1;+}+.cell:hover .cell__num { opacity: 1; }+.cell--on .cell__num { color: var(--color-accent-ink); opacity: 0.7; }++.seq__playhead {+ position: absolute;+ top: 0;+ bottom: 0;+ width: 3px;+ background: var(--color-accent);+ border-radius: var(--radius-xs);+ opacity: 0;+ pointer-events: none;+ transition: opacity var(--dur-fast) var(--ease-out);+ box-shadow: 0 0 8px -1px var(--color-accent);+}+.is-playing .seq__playhead { opacity: 0.85; }++/* ───────────── Voices + Patch split ───────────── */+.split {+ display: grid;+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);+ gap: var(--space-xl);+}++/* Voice rows */+.voices { padding: var(--space-l); }+.voices__head {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: var(--space-m);+ margin-bottom: var(--space-l);+}+.voices__title {+ font-size: var(--text-md);+ font-weight: 600;+ line-height: 1.1;+}+.voices__hint {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1;+}+.voice {+ display: grid;+ grid-template-columns: 28px minmax(0, 1fr) 64px;+ gap: var(--space-m);+ align-items: center;+ padding: var(--space-s) 0;+ border-bottom: var(--rule-hair) solid var(--color-rule-soft);+}+.voice:last-child { border-bottom: none; }+.voice__num {+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-xs);+ color: var(--color-muted);+ letter-spacing: 0.04em;+ line-height: 1;+}+.voice__main {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: var(--space-m);+ min-width: 0;+}+.voice__name {+ font-size: var(--text-sm);+ font-weight: 500;+ color: var(--color-ink);+ line-height: 1.1;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.voice__desc {+ font-size: var(--text-xs);+ color: var(--color-muted);+ line-height: 1.3;+ font-family: var(--font-outlier);+ letter-spacing: 0.02em;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.voice__meter {+ display: flex;+ align-items: center;+ gap: var(--space-2xs);+ height: 16px;+}+.meter-bar {+ width: var(--space-2xs);+ height: 100%;+ background: var(--color-rule);+ border-radius: 1px;+ transition: background var(--dur-fast) var(--ease-out),+ opacity var(--dur-fast) var(--ease-out);+}+.meter-bar--active { background: var(--color-accent); }+.voice__toggle {+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: var(--space-2xs);+}+.mute-btn {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ text-transform: lowercase;+ background: transparent;+ border: var(--rule-hair) solid var(--color-rule);+ color: var(--color-ink-soft);+ padding: var(--space-2xs) var(--space-xs);+ border-radius: var(--radius-xs);+ cursor: pointer;+ line-height: 1;+ transition: background var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out),+ color var(--dur-fast) var(--ease-out);+ white-space: nowrap;+}+.mute-btn:hover { background: var(--color-paper-3); border-color: var(--color-neutral); }+.mute-btn.is-muted {+ background: var(--color-paper-3);+ border-color: var(--color-accent);+ color: var(--color-accent);+}++/* Patch */+.patch { padding: var(--space-l); }+.patch__head {+ display: flex;+ align-items: baseline;+ justify-content: space-between;+ gap: var(--space-m);+ margin-bottom: var(--space-l);+}+.patch__title {+ font-size: var(--text-md);+ font-weight: 600;+ line-height: 1.1;+}+.patch__hint {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1;+}+.knob-row {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: var(--space-m);+}+.knob {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: var(--space-s);+ padding: var(--space-m) var(--space-s);+ background: var(--color-paper-3);+ border: var(--rule-hair) solid var(--color-rule-soft);+ border-radius: var(--radius-m);+}+.knob__dial {+ position: relative;+ width: 56px;+ height: 56px;+ border-radius: 50%;+ background: radial-gradient(circle at 35% 30%, var(--color-paper-4), var(--color-paper-2));+ border: var(--rule-hair) solid var(--color-rule);+ cursor: ns-resize;+ touch-action: none;+}+.knob__dial::before {+ content: "";+ position: absolute;+ top: var(--space-2xs);+ left: 50%;+ width: var(--rule-med);+ height: 14px;+ background: var(--color-accent);+ border-radius: 1px;+ transform: translateX(-50%) rotate(var(--rot, -135deg));+ transform-origin: 50% 24px;+ transition: transform 0ms;+}+.knob__dial:focus-visible {+ outline: var(--rule-med) solid var(--color-focus);+ outline-offset: 3px;+}+.knob__name {+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.08em;+ color: var(--color-ink-soft);+ text-transform: lowercase;+ line-height: 1;+}+.knob__value {+ font-family: var(--font-outlier);+ font-variant-numeric: tabular-nums;+ font-size: var(--text-sm);+ color: var(--color-accent);+ line-height: 1;+ letter-spacing: 0.02em;+}++/* ───────────── Footer (Ft2 — signature line) ───────────── */+.foot {+ border-top: var(--rule-hair) solid var(--color-rule-soft);+ padding: var(--space-2xl) var(--space-l) var(--space-xl);+}+.foot__inner {+ max-width: 1240px;+ margin: 0 auto;+ display: grid;+ grid-template-columns: minmax(0, 1fr) auto;+ gap: var(--space-xl);+ align-items: end;+}+.foot__statement {+ font-family: var(--font-wordmark);+ font-size: var(--text-xl);+ font-weight: 400;+ line-height: 1.2;+ color: var(--color-ink-soft);+ max-width: 32ch;+ letter-spacing: -0.01em;+}+.foot__meta {+ display: flex;+ flex-direction: column;+ align-items: flex-end;+ gap: var(--space-2xs);+ font-family: var(--font-outlier);+ font-size: var(--text-xs);+ letter-spacing: 0.06em;+ color: var(--color-muted);+ text-transform: lowercase;+ line-height: 1.4;+}+.foot__meta a {+ color: var(--color-ink-soft);+ border-bottom: var(--rule-hair) solid var(--color-rule);+ transition: color var(--dur-fast) var(--ease-out),+ border-color var(--dur-fast) var(--ease-out);+}+.foot__meta a:hover {+ color: var(--color-accent);+ border-color: var(--color-accent);+}++/* ───────────── Responsive ───────────── */+@media (max-width: 64rem) {+ .hero__inner { grid-template-columns: 1fr; gap: var(--space-l); align-items: start; }+ .split { grid-template-columns: 1fr; }+ .transport { grid-template-columns: 1fr; gap: var(--space-m); }+ .transport__cluster--center, .transport__cluster--end { justify-content: flex-start; }+}+@media (max-width: 48rem) {+ .masthead { padding: var(--space-s) var(--space-m); }+ .masthead__meta { display: none; }+ .hero { padding: var(--space-2xl) var(--space-m) var(--space-xl); }+ .workbench { padding: var(--space-xl) var(--space-m) var(--space-2xl); gap: var(--space-l); }+ .seq, .voices, .patch { padding: var(--space-m); }+ .seq__head { grid-template-columns: 1fr; }+ .seq__ruler, .seq__row { grid-template-columns: 72px 1fr; }+ .seq__row-label { font-size: var(--text-xs); }+ .seq__row-name { font-size: var(--text-xs); }+ .cell { height: 28px; }+ .seq__step-mark { font-size: 9px; }+ .knob-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }+ .foot { padding: var(--space-xl) var(--space-m) var(--space-l); }+ .foot__inner { grid-template-columns: 1fr; gap: var(--space-l); }+ .foot__meta { align-items: flex-start; }+}+@media (max-width: 30rem) {+ .seq__ruler, .seq__row { grid-template-columns: 56px 1fr; gap: var(--space-2xs); }+ .seq__row-num { display: none; }+ .seq__row-label { gap: 0; }+ .cell { height: 24px; }+ .seq__step-mark { font-size: 8px; }+ .knob-row { grid-template-columns: 1fr; }+ .voice { grid-template-columns: 24px minmax(0, 1fr) 56px; gap: var(--space-s); }+ .voice__desc { display: none; }+ .transport__readout { font-size: var(--text-sm); }+}++/* ───────────── Reduced motion ───────────── */+@media (prefers-reduced-motion: reduce) {+ *, *::before, *::after {+ transition-duration: 0ms !important;+ animation-duration: 0ms !important;+ animation-iteration-count: 1 !important;+ }+ .is-playing .status-dot { animation: none; }+ .seq__playhead { transition: none; }+}+</style>+</head>+<body>++<header class="masthead" role="banner">+ <div class="masthead__brand">+ <span class="wordmark">Knock<span class="wordmark__dot">.</span></span>+ <span class="masthead__meta">v0.4 · browser only · no account</span>+ </div>+ <div class="masthead__status" aria-live="polite">+ <span class="status-dot" aria-hidden="true"></span>+ <span class="status-text">stopped</span>+ </div>+</header>++<section class="hero">+ <div class="hero__inner">+ <h1 class="hero__display">A rhythm for the hours <em>after midnight</em>.</h1>+ <p class="hero__lede">Knock is a sixteen-step drum machine that runs entirely in your browser tab. <strong>No login, no upload, no telemetry.</strong> Open it at 2am, sketch a pattern, close the laptop. The tab is still there when you wake up.</p>+ </div>+</section>++<main class="workbench" aria-label="Drum machine">++ <!-- Transport -->+ <section class="panel" aria-label="Transport">+ <div class="panel__head">+ <span class="panel__label">transport</span>+ <span class="panel__label">16 steps · 4/4</span>+ </div>+ <div class="transport">+ <div class="transport__cluster">+ <button class="btn btn--primary" id="play-btn" type="button" aria-label="Play pattern">+ <svg class="icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M4 3l9 5-9 5z"/></svg>+ <span class="btn__label">Play</span>+ </button>+ <button class="btn btn--ghost" id="stop-btn" type="button" aria-label="Stop and rewind" disabled>+ <svg class="icon" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><rect x="4" y="4" width="8" height="8"/></svg>+ <span class="btn__label">Stop</span>+ </button>+ <button class="btn btn--ghost btn--icon" id="clear-btn" type="button" aria-label="Clear all steps" title="Clear pattern">+ <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M3 5h10M6 5V3h4v2M5 5l1 9h4l1-9"/></svg>+ </button>+ </div>+ <div class="transport__cluster transport__cluster--center">+ <button class="btn btn--ghost btn--icon" id="bpm-down" type="button" aria-label="Decrease tempo">+ <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M4 8h8"/></svg>+ </button>+ <div class="transport__readout">+ <span id="bpm-value">96</span>+ <span class="transport__bpm-label">bpm</span>+ </div>+ <button class="btn btn--ghost btn--icon" id="bpm-up" type="button" aria-label="Increase tempo">+ <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" aria-hidden="true"><path d="M4 8h8M8 4v8"/></svg>+ </button>+ </div>+ <div class="transport__cluster transport__cluster--end">+ <span class="transport__step-label">step</span>+ <span class="transport__step-current" id="step-current">—</span>+ </div>+ </div>+ </section>++ <!-- Sequencer -->+ <section class="panel" aria-label="Step sequencer">+ <div class="seq">+ <div class="seq__head">+ <h2 class="seq__title">Pattern</h2>+ <span class="seq__hint">click a cell · spacebar plays</span>+ </div>++ <div class="seq__ruler">+ <span class="seq__ruler-label">voice</span>+ <div class="seq__steps" id="step-ruler" aria-hidden="true"></div>+ </div>++ <div class="seq__rows" id="seq-rows"></div>+ </div>+ </section>++ <!-- Voices + Patch -->+ <div class="split">+ <section class="panel" aria-label="Voices">+ <div class="voices">+ <div class="voices__head">+ <h2 class="voices__title">Voices</h2>+ <span class="voices__hint">eight · synthesized live</span>+ </div>+ <ul id="voice-list"></ul>+ </div>+ </section>++ <section class="panel" aria-label="Patch">+ <div class="patch">+ <div class="patch__head">+ <h2 class="patch__title">Patch</h2>+ <span class="patch__hint">drag · or ↑↓ when focused</span>+ </div>+ <div class="knob-row" id="knob-row"></div>+ </div>+ </section>+ </div>++</main>++<footer class="foot">+ <div class="foot__inner">+ <p class="foot__statement">Made for the kind of night where the room is quiet and the headphones are on.</p>+ <div class="foot__meta">+ <span>built in one html file</span>+ <span>audio runs on the Web Audio API</span>+ <a href="#" id="about-link">about knock →</a>+ </div>+ </div>+</footer>++<script>+(function () {+ "use strict";++ const VOICES = [+ { name: "Kick", desc: "60hz sine · fast pitch drop", type: "kick" },+ { name: "Snare", desc: "noise burst · 200hz tone", type: "snare" },+ { name: "Hat", desc: "highpass noise · 7khz", type: "hat" },+ { name: "Open", desc: "noise · longer decay", type: "open" },+ { name: "Clap", desc: "three noise bursts", type: "clap" },+ { name: "Tom", desc: "100hz sine · mid decay", type: "tom" },+ { name: "Rim", desc: "short click · 1.2khz", type: "rim" },+ { name: "Cymb", desc: "noise · bright · long tail", type: "cymbal" }+ ];++ const STEPS = 16;+ const ROWS = VOICES.length;++ let pattern = VOICES.map(() => Array(STEPS).fill(false));+ let muted = VOICES.map(() => false);+ let bpm = 96;+ let isPlaying = false;+ let currentStep = 0;+ let nextNoteTime = 0;+ let timerID = null;+ const lookahead = 25.0;+ const scheduleAheadTime = 0.1;+ let lastDrawnStep = -1;++ const knobs = {+ swing: { value: 0, min: 0, max: 50, label: "swing" },+ vol: { value: 75, min: 0, max: 100, label: "volume" },+ rev: { value: 18, min: 0, max: 100, label: "reverb" }+ };++ let audioCtx = null;+ let masterGain = null;+ let reverbNode = null;+ let reverbWet = null;+ let reverbDry = null;++ function ensureAudio() {+ if (audioCtx) return;+ const Ctx = window.AudioContext || window.webkitAudioContext;+ audioCtx = new Ctx();+ masterGain = audioCtx.createGain();+ masterGain.gain.value = knobs.vol.value / 100;++ reverbNode = audioCtx.createDelay(1.0);+ reverbNode.delayTime.value = 0.18;+ const fb = audioCtx.createGain();+ fb.gain.value = 0.35;+ reverbWet = audioCtx.createGain();+ reverbDry = audioCtx.createGain();+ reverbWet.gain.value = knobs.rev.value / 100;+ reverbDry.gain.value = 1;++ reverbNode.connect(fb);+ fb.connect(reverbNode);+ reverbNode.connect(reverbWet);++ masterGain.connect(reverbDry);+ masterGain.connect(reverbNode);+ reverbDry.connect(audioCtx.destination);+ reverbWet.connect(audioCtx.destination);+ }++ function noiseBuffer(dur) {+ const len = Math.floor(audioCtx.sampleRate * dur);+ const buf = audioCtx.createBuffer(1, len, audioCtx.sampleRate);+ const data = buf.getChannelData(0);+ for (let i = 0; i < len; i++) data[i] = Math.random() * 2 - 1;+ return buf;+ }++ function playVoice(voiceIdx, time) {+ if (muted[voiceIdx]) return;+ const v = VOICES[voiceIdx];+ if (!audioCtx) return;++ const out = masterGain;++ if (v.type === "kick") {+ const osc = audioCtx.createOscillator();+ const g = audioCtx.createGain();+ osc.frequency.setValueAtTime(120, time);+ osc.frequency.exponentialRampToValueAtTime(40, time + 0.12);+ g.gain.setValueAtTime(0.9, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.3);+ osc.connect(g); g.connect(out);+ osc.start(time); osc.stop(time + 0.32);+ } else if (v.type === "snare") {+ const noise = audioCtx.createBufferSource();+ noise.buffer = noiseBuffer(0.2);+ const hp = audioCtx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 1500;+ const ng = audioCtx.createGain();+ ng.gain.setValueAtTime(0.5, time);+ ng.gain.exponentialRampToValueAtTime(0.001, time + 0.18);+ noise.connect(hp); hp.connect(ng); ng.connect(out);+ noise.start(time); noise.stop(time + 0.2);++ const tone = audioCtx.createOscillator();+ const tg = audioCtx.createGain();+ tone.frequency.value = 200;+ tg.gain.setValueAtTime(0.3, time);+ tg.gain.exponentialRampToValueAtTime(0.001, time + 0.1);+ tone.connect(tg); tg.connect(out);+ tone.start(time); tone.stop(time + 0.12);+ } else if (v.type === "hat") {+ const noise = audioCtx.createBufferSource();+ noise.buffer = noiseBuffer(0.05);+ const hp = audioCtx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 7000;+ const g = audioCtx.createGain();+ g.gain.setValueAtTime(0.35, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.04);+ noise.connect(hp); hp.connect(g); g.connect(out);+ noise.start(time); noise.stop(time + 0.06);+ } else if (v.type === "open") {+ const noise = audioCtx.createBufferSource();+ noise.buffer = noiseBuffer(0.4);+ const hp = audioCtx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 6000;+ const g = audioCtx.createGain();+ g.gain.setValueAtTime(0.3, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.3);+ noise.connect(hp); hp.connect(g); g.connect(out);+ noise.start(time); noise.stop(time + 0.4);+ } else if (v.type === "clap") {+ const offsets = [0, 0.012, 0.024, 0.04];+ offsets.forEach((off, i) => {+ const noise = audioCtx.createBufferSource();+ noise.buffer = noiseBuffer(0.08);+ const bp = audioCtx.createBiquadFilter();+ bp.type = "bandpass"; bp.frequency.value = 1200; bp.Q.value = 1.2;+ const g = audioCtx.createGain();+ const t = time + off;+ const peak = i === offsets.length - 1 ? 0.45 : 0.25;+ g.gain.setValueAtTime(peak, t);+ g.gain.exponentialRampToValueAtTime(0.001, t + 0.08);+ noise.connect(bp); bp.connect(g); g.connect(out);+ noise.start(t); noise.stop(t + 0.1);+ });+ } else if (v.type === "tom") {+ const osc = audioCtx.createOscillator();+ const g = audioCtx.createGain();+ osc.frequency.setValueAtTime(180, time);+ osc.frequency.exponentialRampToValueAtTime(100, time + 0.2);+ g.gain.setValueAtTime(0.6, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.25);+ osc.connect(g); g.connect(out);+ osc.start(time); osc.stop(time + 0.27);+ } else if (v.type === "rim") {+ const osc = audioCtx.createOscillator();+ const g = audioCtx.createGain();+ osc.type = "square";+ osc.frequency.value = 1200;+ g.gain.setValueAtTime(0.3, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.02);+ osc.connect(g); g.connect(out);+ osc.start(time); osc.stop(time + 0.03);+ } else if (v.type === "cymbal") {+ const noise = audioCtx.createBufferSource();+ noise.buffer = noiseBuffer(0.8);+ const hp = audioCtx.createBiquadFilter();+ hp.type = "highpass"; hp.frequency.value = 5000;+ const g = audioCtx.createGain();+ g.gain.setValueAtTime(0.2, time);+ g.gain.exponentialRampToValueAtTime(0.001, time + 0.7);+ noise.connect(hp); hp.connect(g); g.connect(out);+ noise.start(time); noise.stop(time + 0.8);+ }+ }++ function nextNote() {+ const secondsPerBeat = 60.0 / bpm;+ const swingAmt = knobs.swing.value / 100;+ const base = secondsPerBeat / 4;+ const isOff = currentStep % 2 === 1;+ nextNoteTime += base * (1 + (isOff ? swingAmt : 0));+ currentStep = (currentStep + 1) % STEPS;+ }++ function scheduleNote(beatNumber, time) {+ for (let r = 0; r < ROWS; r++) {+ if (pattern[r][beatNumber]) playVoice(r, time);+ }+ }++ function scheduler() {+ while (nextNoteTime < audioCtx.currentTime + scheduleAheadTime) {+ scheduleNote(currentStep, nextNoteTime);+ nextNote();+ }+ timerID = window.setTimeout(scheduler, lookahead);+ }++ function draw() {+ const stepToDraw = currentStep;+ if (lastDrawnStep === stepToDraw) {+ requestAnimationFrame(draw);+ return;+ }+ lastDrawnStep = stepToDraw;++ stepCurrentEl.textContent = String(stepToDraw + 1).padStart(2, "0");++ document.querySelectorAll(".cell--playing").forEach(el => el.classList.remove("cell--playing"));+ document.querySelectorAll('.cell[data-step="' + stepToDraw + '"]').forEach(el => el.classList.add("cell--playing"));++ for (let r = 0; r < ROWS; r++) {+ if (pattern[r][stepToDraw] && !muted[r]) {+ const meter = document.querySelector('.voice[data-voice="' + r + '"] .voice__meter');+ if (meter) {+ meter.querySelectorAll(".meter-bar").forEach(b => {+ b.classList.add("meter-bar--active");+ b.style.opacity = "1";+ });+ window.setTimeout(() => {+ meter.querySelectorAll(".meter-bar").forEach((b, i) => {+ b.classList.remove("meter-bar--active");+ b.style.opacity = String(1 - (i + 1) * 0.18);+ });+ }, 90);+ }+ }+ }++ requestAnimationFrame(draw);+ }++ // ─── DOM build ───+ const stepRuler = document.getElementById("step-ruler");+ for (let i = 0; i < STEPS; i++) {+ const mark = document.createElement("span");+ mark.className = "seq__step-mark" + (i % 4 === 0 ? " seq__step-mark--downbeat" : "");+ mark.textContent = String(i + 1).padStart(2, "0");+ stepRuler.appendChild(mark);+ }++ const seqRows = document.getElementById("seq-rows");+ VOICES.forEach((v, r) => {+ const row = document.createElement("div");+ row.className = "seq__row";+ row.dataset.voice = r;++ const label = document.createElement("div");+ label.className = "seq__row-label";+ const name = document.createElement("span");+ name.className = "seq__row-name";+ name.textContent = v.name;+ const num = document.createElement("span");+ num.className = "seq__row-num";+ num.textContent = String(r + 1).padStart(2, "0");+ label.appendChild(name);+ label.appendChild(num);++ const cells = document.createElement("div");+ cells.className = "seq__cells";+ for (let s = 0; s < STEPS; s++) {+ const cell = document.createElement("button");+ cell.type = "button";+ cell.className = "cell" + (s % 4 === 0 ? " cell--downbeat" : "");+ cell.dataset.voice = r;+ cell.dataset.step = s;+ cell.setAttribute("aria-label", v.name + " step " + (s + 1));+ cell.setAttribute("aria-pressed", "false");+ const numEl = document.createElement("span");+ numEl.className = "cell__num";+ numEl.textContent = String(s + 1).padStart(2, "0");+ numEl.setAttribute("aria-hidden", "true");+ cell.appendChild(numEl);+ cell.addEventListener("click", () => {+ pattern[r][s] = !pattern[r][s];+ cell.classList.toggle("cell--on", pattern[r][s]);+ cell.setAttribute("aria-pressed", pattern[r][s] ? "true" : "false");+ if (audioCtx && pattern[r][s]) playVoice(r, audioCtx.currentTime);+ });+ cells.appendChild(cell);+ }++ row.appendChild(label);+ row.appendChild(cells);+ seqRows.appendChild(row);+ });++ const voiceList = document.getElementById("voice-list");+ VOICES.forEach((v, r) => {+ const li = document.createElement("li");+ li.className = "voice";+ li.dataset.voice = r;++ const num = document.createElement("span");+ num.className = "voice__num";+ num.textContent = String(r + 1).padStart(2, "0");++ const main = document.createElement("div");+ main.className = "voice__main";+ const name = document.createElement("span");+ name.className = "voice__name";+ name.textContent = v.name;+ const desc = document.createElement("span");+ desc.className = "voice__desc";+ desc.textContent = v.desc;+ main.appendChild(name);+ main.appendChild(desc);++ const meter = document.createElement("div");+ meter.className = "voice__meter";+ meter.setAttribute("aria-hidden", "true");+ for (let i = 0; i < 5; i++) {+ const bar = document.createElement("span");+ bar.className = "meter-bar";+ bar.style.opacity = String(1 - i * 0.18);+ meter.appendChild(bar);+ }++ const toggle = document.createElement("div");+ toggle.className = "voice__toggle";+ const muteBtn = document.createElement("button");+ muteBtn.type = "button";+ muteBtn.className = "mute-btn";+ muteBtn.textContent = "mute";+ muteBtn.setAttribute("aria-label", "Mute " + v.name);+ muteBtn.setAttribute("aria-pressed", "false");+ muteBtn.addEventListener("click", () => {+ muted[r] = !muted[r];+ muteBtn.classList.toggle("is-muted", muted[r]);+ muteBtn.textContent = muted[r] ? "muted" : "mute";+ muteBtn.setAttribute("aria-pressed", muted[r] ? "true" : "false");+ });+ toggle.appendChild(muteBtn);++ li.appendChild(num);+ li.appendChild(main);+ li.appendChild(meter);+ li.appendChild(toggle);+ voiceList.appendChild(li);+ });++ const knobRow = document.getElementById("knob-row");+ Object.keys(knobs).forEach(key => {+ const k = knobs[key];+ const knob = document.createElement("div");+ knob.className = "knob";++ const dial = document.createElement("div");+ dial.className = "knob__dial";+ dial.tabIndex = 0;+ dial.setAttribute("role", "slider");+ dial.setAttribute("aria-label", k.label);+ dial.setAttribute("aria-valuemin", String(k.min));+ dial.setAttribute("aria-valuemax", String(k.max));+ dial.setAttribute("aria-valuenow", String(k.value));++ const name = document.createElement("span");+ name.className = "knob__name";+ name.textContent = k.label;++ const val = document.createElement("span");+ val.className = "knob__value";+ val.textContent = k.value;++ knob.appendChild(dial);+ knob.appendChild(name);+ knob.appendChild(val);+ knobRow.appendChild(knob);++ function setRot() {+ const pct = (k.value - k.min) / (k.max - k.min);+ const deg = -135 + pct * 270;+ dial.style.setProperty("--rot", deg + "deg");+ }+ setRot();++ function setValue(v) {+ k.value = Math.max(k.min, Math.min(k.max, Math.round(v)));+ val.textContent = k.value;+ dial.setAttribute("aria-valuenow", String(k.value));+ setRot();+ if (key === "vol" && masterGain) masterGain.gain.value = k.value / 100;+ if (key === "rev" && reverbWet) reverbWet.gain.value = k.value / 100;+ }++ let dragging = false;+ let startY = 0;+ let startVal = 0;+ dial.addEventListener("pointerdown", (e) => {+ dragging = true;+ startY = e.clientY;+ startVal = k.value;+ dial.setPointerCapture(e.pointerId);+ e.preventDefault();+ });+ dial.addEventListener("pointermove", (e) => {+ if (!dragging) return;+ const dy = startY - e.clientY;+ const range = k.max - k.min;+ setValue(startVal + (dy / 120) * range);+ });+ dial.addEventListener("pointerup", (e) => {+ dragging = false;+ try { dial.releasePointerCapture(e.pointerId); } catch (_) {}+ });+ dial.addEventListener("pointercancel", () => { dragging = false; });++ dial.addEventListener("keydown", (e) => {+ if (e.key === "ArrowUp" || e.key === "ArrowRight") {+ e.preventDefault();+ setValue(k.value + (e.shiftKey ? 5 : 1));+ } else if (e.key === "ArrowDown" || e.key === "ArrowLeft") {+ e.preventDefault();+ setValue(k.value - (e.shiftKey ? 5 : 1));+ } else if (e.key === "Home") {+ e.preventDefault();+ setValue(k.min);+ } else if (e.key === "End") {+ e.preventDefault();+ setValue(k.max);+ }+ });+ });++ const playBtn = document.getElementById("play-btn");+ const stopBtn = document.getElementById("stop-btn");+ const clearBtn = document.getElementById("clear-btn");+ const bpmUp = document.getElementById("bpm-up");+ const bpmDown = document.getElementById("bpm-down");+ const bpmValue = document.getElementById("bpm-value");+ const stepCurrentEl = document.getElementById("step-current");+ const statusText = document.querySelector(".status-text");+ const masthead = document.querySelector(".masthead");++ function setBpm(v) {+ bpm = Math.max(40, Math.min(220, Math.round(v)));+ bpmValue.textContent = bpm;+ }++ function start() {+ ensureAudio();+ if (audioCtx.state === "suspended") audioCtx.resume();+ isPlaying = true;+ currentStep = 0;+ nextNoteTime = audioCtx.currentTime + 0.05;+ lastDrawnStep = -1;+ scheduler();+ requestAnimationFrame(draw);+ playBtn.classList.add("is-playing");+ playBtn.setAttribute("aria-label", "Pause");+ playBtn.querySelector(".btn__label").textContent = "Pause";+ playBtn.querySelector(".icon").innerHTML = '<rect x="4" y="3" width="3" height="10"/><rect x="9" y="3" width="3" height="10"/>';+ stopBtn.disabled = false;+ statusText.textContent = "playing";+ masthead.classList.add("is-playing");+ }++ function stop() {+ isPlaying = false;+ if (timerID) { window.clearTimeout(timerID); timerID = null; }+ currentStep = 0;+ document.querySelectorAll(".cell--playing").forEach(el => el.classList.remove("cell--playing"));+ stepCurrentEl.textContent = "—";+ playBtn.classList.remove("is-playing");+ playBtn.setAttribute("aria-label", "Play");+ playBtn.querySelector(".btn__label").textContent = "Play";+ playBtn.querySelector(".icon").innerHTML = '<path d="M4 3l9 5-9 5z"/>';+ stopBtn.disabled = true;+ statusText.textContent = "stopped";+ masthead.classList.remove("is-playing");+ }++ playBtn.addEventListener("click", () => { if (isPlaying) stop(); else start(); });+ stopBtn.addEventListener("click", stop);+ clearBtn.addEventListener("click", () => {+ pattern = VOICES.map(() => Array(STEPS).fill(false));+ document.querySelectorAll(".cell").forEach(c => {+ c.classList.remove("cell--on");+ c.setAttribute("aria-pressed", "false");+ });+ });+ bpmUp.addEventListener("click", (e) => setBpm(bpm + (e.shiftKey ? 5 : 1)));+ bpmDown.addEventListener("click", (e) => setBpm(bpm - (e.shiftKey ? 5 : 1)));++ document.addEventListener("keydown", (e) => {+ if (e.code === "Space" && e.target.tagName !== "BUTTON" && e.target.tagName !== "INPUT") {+ e.preventDefault();+ if (isPlaying) stop(); else start();+ }+ });++ // Seed a starter pattern — four-on-the-floor with hats on the offbeats+ const seed = {+ 0: [0, 4, 8, 12],+ 1: [4, 12],+ 2: [0, 2, 4, 6, 8, 10, 12, 14],+ 4: [7, 15]+ };+ Object.keys(seed).forEach(r => {+ seed[r].forEach(s => {+ pattern[r][s] = true;+ const cell = document.querySelector('.cell[data-voice="' + r + '"][data-step="' + s + '"]');+ if (cell) {+ cell.classList.add("cell--on");+ cell.setAttribute("aria-pressed", "true");+ }+ });+ });++})();+</script>++</body>+</html>+```\ No newline at end of filediff --git a/eval/runs/b2/glm52-together-full/run.json b/eval/runs/b2/glm52-together-full/run.jsonindex 38ad3df..40b027e 100644--- a/eval/runs/b2/glm52-together-full/run.json+++ b/eval/runs/b2/glm52-together-full/run.json@@ -6,12 +6,13 @@"kind": "openai-compat","ok": true,"extracted": true,- "durationSec": 109.46,- "promptTok": 28003,- "completionTok": 13843,+ "durationSec": 175.45,+ "promptTok": 70235,+ "completionTok": 27319,"costUSD": null,- "loc": 1490,+ "loc": 1477,"nudged": false,"error": null,- "generatedAt": "2026-07-23T12:28:06.508973Z"+ "generatedAt": "2026-07-23T12:28:06.508973Z",+ "repairRounds": 1}\ No newline at end of filediff --git a/site/_proposals/before-after.html b/site/_proposals/before-after.htmlnew file mode 100644index 0000000..9998f27--- /dev/null+++ b/site/_proposals/before-after.html@@ -0,0 +1,70 @@+<!DOCTYPE html>+<html lang="en">+<head>+<meta charset="UTF-8" />+<meta name="viewport" content="width=device-width, initial-scale=1.0" />+<title>Hallmark v1.2 · Before / after</title>+<style>+:root { --bg: #141416; --card: #1d1d21; --line: #2c2c31; --fg: #e9e7e2; --mut: #8f8d86; --acc: #6ea8fe; --mono: ui-monospace, "SF Mono", Menlo, monospace; }+* { margin: 0; padding: 0; box-sizing: border-box; }+html, body { overflow-x: clip; }+body { background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; padding-bottom: 80px; }+header { padding: 40px clamp(20px, 4vw, 56px) 28px; border-bottom: 1px solid var(--line); }+header .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--mut); }+header h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 750; letter-spacing: -0.02em; margin-top: 8px; }+header p { color: var(--mut); margin-top: 10px; max-width: 70ch; font-size: 14.5px; }+.brief { padding: 40px clamp(20px, 4vw, 56px) 8px; }+.brief h2 { font-size: 19px; font-weight: 650; }+.brief .sub { font-family: var(--mono); font-size: 12px; color: var(--mut); margin-top: 4px; }+.row { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }+.cell { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: clip; }+.cell.old { border-color: #4b3a2e; }+.cell img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; background: #fff; }+.cell .cap { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-family: var(--mono); font-size: 11px; color: var(--mut); }+.cell .cap b { color: var(--fg); font-weight: 600; }+.cell.old .cap b { color: #d9a06b; }+.badge { border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }+.cell.old .badge { border-color: #4b3a2e; color: #d9a06b; }+</style>+</head>+<body>+<header>+ <div class="k">HALLMARK · V1.2 · SAME BRIEFS, NEW SKILL, THREE MODELS</div>+ <h1>Before / after</h1>+ <p>Left column: the shipped hallmark-lab generation from the previous skill (Claude). Then the same brief through v1.2: the consolidated skill + critical floor + sloplint, run bare over the API on Claude, GLM on Together, and the Kimi stand-in on Together (K2.7-Code until K3 lands). Every v1.2 cell below passed all mechanical gates with zero FAILs.</p>+</header>++<section class="brief">+ <h2>AI voice-cloning studio</h2>+ <div class="sub">brief b1 · was gen-01 in hallmark-lab</div>+ <div class="row">+ <div class="cell old"><img src="img/gen-01-hero.png" alt="Old skill, Claude" /><div class="cap"><b>Before · v1.1</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b1-fable-baseline.png" alt="v1.2, Claude" /><div class="cap"><b>v1.2</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b1-glm52-together.png" alt="v1.2, GLM" /><div class="cap"><b>v1.2</b><span class="badge">GLM · Together</span></div></div>+ <div class="cell"><img src="img/b1-k27code-together.png" alt="v1.2, Kimi" /><div class="cap"><b>v1.2</b><span class="badge">Kimi K2.7-Code</span></div></div>+ </div>+</section>++<section class="brief">+ <h2>Late-night drum machine</h2>+ <div class="sub">brief b2 · was gen-02 in hallmark-lab</div>+ <div class="row">+ <div class="cell old"><img src="img/gen-02-hero.png" alt="Old skill, Claude" /><div class="cap"><b>Before · v1.1</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b2-fable-baseline.png" alt="v1.2, Claude" /><div class="cap"><b>v1.2</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b2-glm52-together.png" alt="v1.2, GLM" /><div class="cap"><b>v1.2</b><span class="badge">GLM · Together</span></div></div>+ <div class="cell"><img src="img/b2-k27code-together.png" alt="v1.2, Kimi" /><div class="cap"><b>v1.2</b><span class="badge">Kimi K2.7-Code</span></div></div>+ </div>+</section>++<section class="brief">+ <h2>Slow-web manifesto</h2>+ <div class="sub">brief b3 · was gen-03 in hallmark-lab</div>+ <div class="row">+ <div class="cell old"><img src="img/gen-03-hero.png" alt="Old skill, Claude" /><div class="cap"><b>Before · v1.1</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b3-fable-baseline.png" alt="v1.2, Claude" /><div class="cap"><b>v1.2</b><span class="badge">Claude</span></div></div>+ <div class="cell"><img src="img/b3-glm52-together.png" alt="v1.2, GLM" /><div class="cap"><b>v1.2</b><span class="badge">GLM · Together</span></div></div>+ <div class="cell"><img src="img/b3-k27code-together.png" alt="v1.2, Kimi" /><div class="cap"><b>v1.2</b><span class="badge">Kimi K2.7-Code</span></div></div>+ </div>+</section>+</body>+</html>diff --git a/site/_proposals/img/b1-fable-baseline.png b/site/_proposals/img/b1-fable-baseline.pngnew file mode 100644index 0000000..7773b91Binary files /dev/null and b/site/_proposals/img/b1-fable-baseline.png differdiff --git a/site/_proposals/img/b1-glm52-together.png b/site/_proposals/img/b1-glm52-together.pngnew file mode 100644index 0000000..543098fBinary files /dev/null and b/site/_proposals/img/b1-glm52-together.png differdiff --git a/site/_proposals/img/b1-k27code-together.png b/site/_proposals/img/b1-k27code-together.pngnew file mode 100644index 0000000..5cb616eBinary files /dev/null and b/site/_proposals/img/b1-k27code-together.png differdiff --git a/site/_proposals/img/b2-fable-baseline.png b/site/_proposals/img/b2-fable-baseline.pngnew file mode 100644index 0000000..38955e6Binary files /dev/null and b/site/_proposals/img/b2-fable-baseline.png differdiff --git a/site/_proposals/img/b2-glm52-together.png b/site/_proposals/img/b2-glm52-together.pngnew file mode 100644index 0000000..ffd6942Binary files /dev/null and b/site/_proposals/img/b2-glm52-together.png differdiff --git a/site/_proposals/img/b2-k27code-together.png b/site/_proposals/img/b2-k27code-together.pngnew file mode 100644index 0000000..4b248aeBinary files /dev/null and b/site/_proposals/img/b2-k27code-together.png differdiff --git a/site/_proposals/img/b3-fable-baseline.png b/site/_proposals/img/b3-fable-baseline.pngnew file mode 100644index 0000000..46f6619Binary files /dev/null and b/site/_proposals/img/b3-fable-baseline.png differdiff --git a/site/_proposals/img/b3-glm52-together.png b/site/_proposals/img/b3-glm52-together.pngnew file mode 100644index 0000000..d098f03Binary files /dev/null and b/site/_proposals/img/b3-glm52-together.png differdiff --git a/site/_proposals/img/b3-k27code-together.png b/site/_proposals/img/b3-k27code-together.pngnew file mode 100644index 0000000..f634d64Binary files /dev/null and b/site/_proposals/img/b3-k27code-together.png differdiff --git a/site/_proposals/img/gen-01-hero.png b/site/_proposals/img/gen-01-hero.pngnew file mode 100644index 0000000..89f68c7Binary files /dev/null and b/site/_proposals/img/gen-01-hero.png differdiff --git a/site/_proposals/img/gen-02-hero.png b/site/_proposals/img/gen-02-hero.pngnew file mode 100644index 0000000..b9e2dcbBinary files /dev/null and b/site/_proposals/img/gen-02-hero.png differdiff --git a/site/_proposals/img/gen-03-hero.png b/site/_proposals/img/gen-03-hero.pngnew file mode 100644index 0000000..c6742c6Binary files /dev/null and b/site/_proposals/img/gen-03-hero.png differ