A local video studio for your coding agent. Describe a video in one sentence: your agent directs, your machine renders. Claude Code, Codex, Cursor, Devin and more. No API keys, no uploads.
Python agent-skillsai-agentscaptionsclaude-codeclaude-code-pluginclaude-skillscodexcursorexplainer-videoffmpegheadless-chromekokoro-ttslocal-firstmanimmcp-servermotion-graphicstext-to-speechvideovideo-editingvideo-generation
Harness manual edition 2: six practices that catch what your agents miss (#80)
Favio Vázquez2c32d1650958
diff --git a/site/build.py b/site/build.pyindex 519268f..f74905e 100644--- a/site/build.py+++ b/site/build.py@@ -1779,6 +1779,7 @@ HARNESS_SRC = SITE / "content" / "harness.html" # the page's body; its first lHARNESS_MEDIA = "examples/_harness" # loops, posters, the 0.4.3 film and the link-preview cardHARNESS_TITLE = "Many hands, one yes: a guide to harness engineering"ARTICLE_URL = re.compile(r"\A<!--\s*ARTICLE_URL=(\S+)\s*-->\n")+ARTICLE2_URL = re.compile(r"\A<!--\s*ARTICLE2_URL=(\S*)\s*-->\n")def build_harness(site: Site) -> None:@@ -1790,8 +1791,24 @@ def build_harness(site: Site) -> None:m = ARTICLE_URL.match(text)if not m:sys.exit("site/build.py: %s must start with <!-- ARTICLE_URL=https://... -->" % HARNESS_SRC.relative_to(REPO))- body = re.sub(r"\A\s*<!--.*?-->\s*", "", text[m.end():], count=1, flags=re.S) # the note for editors+ rest = text[m.end():]+ m2 = ARTICLE2_URL.match(rest) # optional: the edition 2 article; empty until it is live+ if m2:+ rest = rest[m2.end():]+ url2 = m2.group(1) if m2 else ""+ body = re.sub(r"\A\s*<!--.*?-->\s*", "", rest, count=1, flags=re.S) # the note for editorsbody = body.replace("{{ARTICLE_URL}}", esc(m.group(1)))+ first = '<a href="%s">Many hands, one yes</a>' % esc(m.group(1))+ body = body.replace("{{ARTICLE2_LINK}}", "The articles: %s · <a href=\"%s\">Harness engineering: 6 practices</a>" % (first, esc(url2))+ if url2 else "The article: %s" % first)++ def optional(mo: "re.Match[str]") -> str: # <!--IF-MEDIA a.mp4 a.jpg-->with<!--ELSE-->without<!--END-MEDIA-->+ have = all(src_path("%s/%s" % (HARNESS_MEDIA, n)).is_file() for n in mo.group(1).split())+ return mo.group(2) if have else mo.group(3)+ body = re.sub(r"<!--IF-MEDIA ([^>]+?)-->(.*?)<!--ELSE-->(.*?)<!--END-MEDIA-->", optional, body, flags=re.S)+ # the edition strip's counts come from the sections' own data-ed marks, never typed by hand+ body = body.replace("{{ED_NEW}}", str(len(re.findall(r'<section\b[^>]*\bdata-ed="new"', body))))+ body = body.replace("{{ED_UPD}}", str(len(re.findall(r'<section\b[^>]*\bdata-ed="updated"', body))))def media(mo: "re.Match[str]") -> str:src = src_path("%s/%s" % (HARNESS_MEDIA, mo.group(2)))diff --git a/site/content/harness.html b/site/content/harness.htmlindex 8a6c4d6..bc65483 100644--- a/site/content/harness.html+++ b/site/content/harness.html@@ -1,15 +1,26 @@<!-- ARTICLE_URL=https://x.com/FavioVaz/status/2109701469251223884 -->+<!-- ARTICLE2_URL= --><!-- The harness manual (public edition), served at harness/ by site/build.py (build_harness). ARTICLE_URL above is- where section 14's "Favio on X" link goes: set it to the article's address once it is live. Styles:+ where section 14's "Favio on X" link goes: set it to the article's address once it is live. ARTICLE2_URL is the+ edition 2 article; leave it empty until that article is live, and the strip shows only the edition 1 link.+ Sections carry data-ed="new" or "updated" for edition 2; build.py counts them into the edition strip+ (ED_NEW, ED_UPD). An IF-MEDIA / ELSE / END-MEDIA comment block keeps its first part only when every file it+ names is in examples/_harness (the edition 2 film). Styles:static/harness.css (scoped to .harness); script: static/harness.js. media/NAME is examples/_harness/NAME. --><div class="harness"><div class="wrap"><!-- 00 HERO -->-<section class="hero" aria-labelledby="h-hero">+<section class="hero" aria-labelledby="h-hero" data-ed="updated">+ <div class="ed-strip" aria-label="Edition">+ <div class="ed-id"><b>Edition 2</b><span>16 Oct 2026</span><i>Six practices</i></div>+ <div class="ed-cnt"><span class="num">{{ED_NEW}}</span> new, <span class="num">{{ED_UPD}}</span> updated since edition 1</div>+ <button type="button" class="ed-sw" id="edSwitch" role="switch" aria-checked="false" hidden><span class="knob" aria-hidden="true"></span>What changed since edition 1</button>+ <div class="ed-links">{{ARTICLE2_LINK}}</div>+ </div><p class="origin">From the harness behind showtime: <a href="https://github.com/FavioVazquez/showtime">github.com/FavioVazquez/showtime</a></p>- <div class="eyebrow"><b>Operating manual</b> · an agent studio, as of 11 Oct 2026</div>+ <div class="eyebrow"><b>Operating manual</b> · an agent studio, edition 2, as of 16 Oct 2026</div><h1 id="h-hero">Many hands,<br><span class="y">one yes.</span></h1>- <p class="lede"><strong>showtime</strong> is an open-source video studio for coding agents: “Your agent directs. Your machine renders.” It is built by one person, Favio Vázquez, and a crew of agents. This is the crew’s operating manual: who does what, on which model and machine, and how a task becomes a merged PR or a film. This public edition is a snapshot as of 11 Oct 2026; private names are left out and paths are generalized.</p>+ <p class="lede"><strong>showtime</strong> is an open-source video studio for coding agents: “Your agent directs. Your machine renders.” It is built by one person, Favio Vázquez, and a crew of agents. This is the crew’s operating manual: who does what, on which model and machine, and how a task becomes a merged PR or a film. Edition 1 was a snapshot as of 11 Oct 2026; edition 2 adds what changed through the 0.4.6 release on 16 Oct. Private names are left out and paths are generalized.</p><div class="topo" id="topoWrap"><div class="topo-stage" id="topoStage">@@ -25,16 +36,19 @@<aside class="topo-panel" id="topoPanel" aria-label="Details"></aside><div class="sr" id="topoLive" aria-live="polite"></div></div><div class="stats">- <div><b>16</b><span>PRs merged into the private working repo on 9 Oct by ~12:35, each through Favio’s gate</span></div>- <div><b>13</b><span>jobs run on one Devin cloud machine on 9 Oct</span></div>- <div><b>5</b><span>model tiers routed by task: Haiku, Sonnet, Opus, Fable, Jev</span></div>+ <div><b>49</b><span>PRs merged into the private working repo from the first article (12 Oct) to the 0.4.6 release (16 Oct), each through Favio’s gate</span></div>+ <div><b>4</b><span>releases in those four days: 0.4.3 and 0.4.4 on 13 Oct, 0.4.5 on 15 Oct, 0.4.6 on 16 Oct</span></div>+ <div><b>1+7</b><span>a director session and seven lane sessions, each with its own state file, today</span></div><div><b><em>1</em></b><span>person says yes to every merge, spend and public word</span></div></div><nav class="index" aria-label="Contents">+ <a href="#ledger"><span>E2</span>Six practices</a><a href="#finder"><span>01</span>Situation finder</a><a href="#releases"><span>02</span>Releases</a><a href="#day"><span>03</span>A day in the harness</a>+ <a href="#compaction"><span>03b</span>What a compaction keeps</a>+ <a href="#lanes"><span>03c</span>One session became many</a><a href="#routing"><span>04</span>Model routing</a><a href="#venues"><span>05</span>Where work runs</a><a href="#shipping"><span>06</span>Shipping code</a>@@ -50,6 +64,28 @@<noscript><p class="note">The diagrams, the finder, the day replay and the other interactive parts of this manual need JavaScript; the text around them reads without it.</p></noscript></section>+<!-- E2 PRACTICES (edition 2) -->+<section class="sec" id="ledger" aria-labelledby="h-ledger" data-ed="new">+ <div class="sec-head">+ <div><div class="sec-no">E2 · Six practices, new in edition 2</div><h2 id="h-ledger">Six practices that catch what your agents miss</h2></div>+ <p>Edition 1 wrote down a rule: Favio must never be the one who notices. By 15 Oct he had noticed four times, and the crew had noticed two more misses itself. Each miss became one of the practices below. Each card gives the rule and how to set it up in your own setup; turn it over for the miss that taught it, what it cost and what it became: a <span class="tag amber">check</span> is enforced by code, a <span class="tag dim">rule</span> is written down.</p>+ </div>+<!--IF-MEDIA harness-v2-hero.mp4 harness-v2-hero.jpg-->+ <figure class="e2-film"><video src="media/harness-v2-hero.mp4" poster="media/harness-v2-hero.jpg" width="1920" height="1080" controls playsinline preload="none" aria-label="The six practices in one short film: each miss ticks off one practice on a checklist. Every frame is drawn."></video><figcaption>The six practices in one short film. Every frame is drawn for it; none comes from a real film. Music: “Newer Wave” by Kevin MacLeod (incompetech.com), licensed under <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.</figcaption></figure>+<!--ELSE--><!--END-MEDIA-->+ <div class="ledger" id="ledgerCards">+ <ol class="fallback" id="ledgerData">+ <li data-d="15 Oct" data-k="check rule" data-l="showtime check|the practices"><b class="t">A review counts only for the version it judged.</b> <span class="r">Tie every verdict to the exact version it saw, and review again after any change.</span> Set it up: <ol class="s"><li>Store every verdict with the id of what it judged: a commit hash, a render’s name, a file hash.</li><li>Make the ship or merge step refuse a verdict whose id is not the current one.</li><li>After any change, run the checks again, then a review that compares the new version with the judged one.</li></ol> The miss that taught it: <b class="m">A label over a label.</b> <span class="w">Two labels sat on top of each other at 0:46 of a film. The critic’s last round had judged an earlier render; the fixes for its findings moved a label, and no round judged the render that went out.</span> Noticed by <span class="who">Favio</span>. What it cost: <span class="c">Six more renders across both aspects before a fixed copy went out, and a new critic round.</span> What it became: <span class="b">showtime check looks for text over text across the whole timeline, in 0.4.6. And a critic’s verdict counts only for the render it judged.</span></li>+ <li data-d="15 Oct" data-k="rule" data-l="the practices"><b class="t">Read the failing log before any re-run.</b> <span class="r">Name the cause of a failure, and whether it can happen again, before anyone presses re-run.</span> Set it up: <ol class="s"><li>On a failed check, read the failing test’s log and its code first.</li><li>Write down the cause and whether it can repeat.</li><li>Re-run only for a cause that cannot repeat, and say so.</li><li>A failure that will repeat and has nothing to do with the change goes to a person as a decision, with its cause.</li></ol> The miss that taught it: <b class="m">A re-run that waited for nothing.</b> <span class="w">A CI job failed on a public pull request and was re-run before anyone read its log. The log had the cause: an icon lookup waited 38.5 s against a 30 s limit, so it would fail again.</span> Noticed by <span class="who">Favio</span>. What it cost: <span class="c">15.6 minutes of CI on a failure the log already explained.</span> What it became: <span class="b">A written rule for every session. The fix, which suggests from the local index before any fetch, merged the same day.</span></li>+ <li data-d="15 Oct" data-k="rule" data-l="the practices"><b class="t">Estimate in agent time, from your own measured runs.</b> <span class="r">Base every estimate on runs you have measured, and name the slow part.</span> Set it up: <ol class="s"><li>Log the start and end of every agent task.</li><li>Make estimates quote those runs: a decided tool change with tests takes a minute or two.</li><li>Name the slow part by its measured length, such as a render or a test suite, and don’t pad the total.</li></ol> The miss that taught it: <b class="m">An estimate in human time.</b> <span class="w">A decided change to one of our tools, with 11 tests, came with an estimate of 20 to 30 minutes. It took 81 seconds.</span> Noticed by <span class="who">Favio</span>. What it cost: <span class="c">An estimate off by 15 to 22 times, and the waiting planned around it.</span> What it became: <span class="b">A written rule: estimates come from our own measured runs, and the slow part gets named.</span></li>+ <li data-d="15 Oct" data-k="check rule" data-l="showtime 0.4.6|the practices"><b class="t">Every output format is its own deliverable.</b> <span class="r">Each format of the same work (an aspect ratio, a platform, a language) gets its own checks, its own review and a full look from start to end.</span> Set it up: <ol class="s"><li>List every output format as its own item.</li><li>Check text, and also drawn shapes and progress markers against the twin.</li><li>Give each its own review, and scrub a contact sheet of the whole thing at one frame per second.</li></ol> The miss that taught it: <b class="m">A playhead that froze.</b> <span class="w">In a film’s portrait cut the sound strip ran off its edge and the playhead froze from 14.4 s. The cause was a showtime bug: the strip ignored where the clip starts, in both aspects.</span> Noticed by <span class="who">Favio</span>. What it cost: <span class="c">A film already sent as final went back for a full re-render, and a finished work session reopened.</span> What it became: <span class="b">A showtime fix and its test, in 0.4.6. And each aspect is its own film, with its own critic round, its own checks and a contact sheet scrubbed end to end.</span></li>+ <li data-d="13 to 15 Oct" data-k="check" data-l="the start-up hook"><b class="t">Give each session a state file, under the start-up limit.</b> <span class="r">Start every session with a short rules card plus its own state, under the start-up hook’s limit, and resume it after a compaction.</span> Set it up: <ol class="s"><li>Find your start-up hook’s output limit (ours: 10,000 characters; above it only the first 2,000 arrive).</li><li>Print a short rules card plus the session’s own state file, under a cap the script enforces, and point to the full rules.</li><li>Keep one state file per line of work, updated at every milestone.</li><li>Log each compaction and whether its summary names the state file; message the session to resume.</li></ol> The miss that taught it: <b class="m">A start-up note over the limit.</b> <span class="w">The hook that runs at each compaction printed the practices, then the session’s own state. It grew past the 10,000-character limit, and only the first 2,000 characters arrived, so the state went first.</span> Noticed by <span class="who">the crew</span>. What it cost: <span class="c">The director’s own state, lost on 2 of its 9 compactions under the old hook (13 to 15 Oct; both on 15 Oct).</span> What it became: <span class="b">The hook prints a short rules card and the session’s own state file, under 9,000 characters. Since the new hook, up to the 0.4.6 release, 43 of the 44 compaction summaries across all sessions named their state file.</span></li>+ <li data-d="15 Oct" data-k="rule" data-l="the practices"><b class="t">Wake reviewers on every new version.</b> <span class="r">Whoever pushes a new version messages each reviewer directly, and checks that the message started work.</span> Set it up: <ol class="s"><li>Whoever opens or updates a pull request messages each reviewer.</li><li>Scripts send by session id and check the reply: did a turn start, or is the message queued?</li><li>Keep the timer as a backup.</li></ol> The miss that taught it: <b class="m">A reviewer that slept.</b> <span class="w">The reviewer session reads every pull request, and its verdict is part of the merge gate. Its timer fires only while the session is awake, so it missed one.</span> Noticed by <span class="who">the director</span>. What it cost: <span class="c">A review waited until a message woke the reviewer.</span> What it became: <span class="b">A written rule: every session that opens a pull request or pushes a new head messages the reviewer directly.</span></li>+ </ol>+ </div>+ <p class="note e2-sum" id="ledgerSum">Three of the six became code. The other three are written rules, which hold only while every session reads them; in edition 1, 22 of 41 rules had code behind them.</p>+</section>+<!-- 01 FINDER --><section class="sec" id="finder" aria-labelledby="h-find"><div class="sec-head">@@ -67,24 +103,24 @@</section><!-- 01 RELEASES -->-<section class="sec" id="releases" aria-labelledby="h-rel">+<section class="sec" id="releases" aria-labelledby="h-rel" data-ed="updated"><div class="sec-head">- <div><div class="sec-no">02 · Releases</div><h2 id="h-rel">Fourteen days, 0.1.0 to 0.4.2</h2></div>- <p>Diamonds sit on true dates. 0.3.0 made quality the default because Favio’s blind vote said so: lean 0.3.0 beat 0.2.0 on 4 of 6 and plain Opus on 7 of 8. An AI judge preferred 0.2.0’s polish, and the human’s vote decided.</p>+ <div><div class="sec-no">02 · Releases</div><h2 id="h-rel">Nineteen days, 0.1.0 to 0.4.6</h2></div>+ <p>Diamonds sit on true dates. 0.3.0 made quality the default because Favio’s blind vote said so: lean 0.3.0 beat 0.2.0 on 4 of 6 and plain Opus on 7 of 8. An AI judge preferred 0.2.0’s polish, and the human’s vote decided. Dates are in UTC: the CHANGELOG dates 0.4.5 on 14 Oct, local time, and here it sits on 15 Oct.</p></div><div class="tl" id="timeline"></div></section><!-- 02 DAY -->-<section class="sec" id="day" aria-labelledby="h-day">+<section class="sec" id="day" aria-labelledby="h-day" data-ed="updated"><div class="sec-head"><div><div class="sec-no">03 · A day in the harness</div><h2 id="h-day">Scroll the clock through one day</h2></div>- <p>Each lane is a hand on the work: the owner’s gates, the main session, the sub-agents by model, Devin cloud, the creative session. Pick a day (9 Oct, or the release day from 10 Oct to 11 Oct), scroll, and the clock walks its log in order; every event lights up as it happens. Times are the log’s own. A “~” means the log gave the time as approximate; a hollow dot means the log kept the order but no time, so the clock shows the window instead of guessing. In this public edition, events that touch private work are generalized and a few are left out.</p>+ <p>Each lane is a hand on the work: the owner’s gates, the main session, the sub-agents by model, Devin cloud, the creative session. Pick a day (9 Oct, the release day from 10 Oct to 11 Oct, or 15 Oct from edition 2), scroll, and the clock walks its log in order; every event lights up as it happens. Times are the log’s own. A “~” means the log gave the time as approximate; a hollow dot means the log kept the order but no time, so the clock shows the window instead of guessing. In this public edition, events that touch private work are generalized and a few are left out. The 15 Oct day is built differently: only merges, compactions, checks, reviews and releases are kept, every lane has a generic name, and its times are UTC.</p></div><div class="rp" id="rp"><div class="rp-sticky" id="rpSticky"><div class="rp-head">- <div class="rp-pick" role="group" aria-label="Day"><button type="button" class="rp-day" aria-pressed="true">Fri 9 Oct</button><button type="button" class="rp-day" aria-pressed="false">Sun 11 Oct · release</button><span class="rp-src">from the day log</span></div>+ <div class="rp-pick" role="group" aria-label="Day"><button type="button" class="rp-day" aria-pressed="true">Fri 9 Oct</button><button type="button" class="rp-day" aria-pressed="false">Sun 11 Oct · release</button><button type="button" class="rp-day" aria-pressed="false">Thu 15 Oct · UTC</button><span class="rp-src">from the day log</span></div><div class="rp-clock" aria-live="off"><span class="c" id="rpClock">--:--</span><small id="rpClockS"></small></div><p class="rp-title" id="rpTitle"></p></div>@@ -105,8 +141,60 @@<details class="rp-list" id="rpList"><summary>Every event of this day, as a list</summary><div class="tblw"><table><thead><tr><th>Time</th><th>Lane</th><th>What</th><th>Gate</th></tr></thead><tbody id="rpRows"></tbody></table></div></details></section>+<!-- 03b COMPACTION (edition 2) -->+<section class="sec" id="compaction" aria-labelledby="h-cmp" data-ed="new">+ <div class="sec-head">+ <div><div class="sec-no">03b · What a compaction keeps</div><h2 id="h-cmp">The end went first</h2></div>+ <p>The crew caught this one. A hook runs when a session starts, resumes or compacts, and prints what the session must know. Ours printed the practices, then the session’s newest resume block. As the practices grew, the output passed the hook limit, and only a preview of its beginning reached the session, so the session’s own state, printed last, was the first thing lost. Press the buttons to see each hook arrive.</p>+ </div>+ <div class="cmp" id="cmp">+ <div class="cmp-bar" role="group" aria-label="Which hook">+ <button class="btn" type="button" data-s="old" aria-pressed="true">Old hook</button>+ <button class="btn" type="button" data-s="new" aria-pressed="false">New hook</button>+ <button class="btn" type="button" data-s="after" aria-pressed="false">After the compaction</button>+ </div>+ <div class="cmp-stage" id="cmpStage">+ <p class="fallback">Old hook: 12,957 characters written; over the limit only a preview of the first 2,000 arrived, so the state block, printed last, was lost first. New hook: a short rules card and the session’s own state file, under the line, arrive whole. After a compaction the session sits idle until a message wakes it.</p>+ </div>+ <div class="cmp-read" id="cmpRead" aria-live="polite"></div>+ </div>+ <p class="note cmp-cap">The hook limit is 10,000 characters; above it the output is saved to a file and the session gets a preview of up to the first 2,000. At one compaction on 15 Oct the old hook would have printed 12,957. From the director’s transcript: of its 9 compactions under the old hook (13 to 15 Oct), 7 arrived whole and 2, both on 15 Oct, arrived as the 2,000-character preview. The new hook stays under 9,000 and its first line says to read the full practices. Segment widths in the old bar are approximate.</p>+ <div class="subh">The compaction log · the first five after the change, 15 Oct (UTC)</div>+ <ol class="clog" aria-label="Five compactions on 15 Oct: summary size and whether it named its state file">+ <li><span class="t num">11:56</span><span class="b" aria-hidden="true"><i style="width:93.03%"></i></span><span class="v num">18,606</span><span class="y">named its state file</span></li>+ <li><span class="t num">11:56</span><span class="b" aria-hidden="true"><i style="width:84.5%"></i></span><span class="v num">16,900</span><span class="y">named its state file</span></li>+ <li><span class="t num">11:56</span><span class="b" aria-hidden="true"><i style="width:90.86%"></i></span><span class="v num">18,172</span><span class="y">named its state file</span></li>+ <li><span class="t num">12:00</span><span class="b" aria-hidden="true"><i style="width:78.61%"></i></span><span class="v num">15,721</span><span class="y">named its state file</span></li>+ <li><span class="t num">12:05</span><span class="b" aria-hidden="true"><i style="width:90.41%"></i></span><span class="v num">18,082</span><span class="y">named its state file</span></li>+ </ol>+ <p class="note">Summary size in characters, on a scale from 0 to 20,000. Each compaction writes two rows into the same SQL layer as the rest of the logs. All five were started by hand, and every summary named the session’s state file.</p>+</section>++<!-- 03c LANES (edition 2) -->+<section class="sec" id="lanes" aria-labelledby="h-lanes" data-ed="new">+ <div class="sec-head">+ <div><div class="sec-no">03c · One session became many</div><h2 id="h-lanes">A director and seven lanes</h2></div>+ <p>Until this week one long session, the director, did almost everything. From 8 Oct until the work split into lanes on 15 Oct it was compacted 19 times, and before at least 12 of those it wrote a resume block into its state file. Now each line of work runs in its own session, started from a card Favio clicks, with its own state file. Sessions talk by message; the director keeps the one list of what is open, merges, and talks to Favio. Select a lane to see the shape of its state file.</p>+ </div>+ <div class="lns" id="lns">+ <div class="lns-stage">+ <div class="topo-bar" role="group" aria-label="Show the studio">+ <button class="btn" type="button" data-v="one" aria-pressed="false">One session</button>+ <button class="btn" type="button" data-v="many" aria-pressed="true">Many sessions</button>+ <span class="sp"></span>+ <button class="btn" type="button" id="lnsPlay" aria-pressed="false">Play</button>+ </div>+ <svg id="lnsSvg" role="group" aria-label="The director session and its lanes. Each lane is a button that shows its state file."></svg>+ <div class="ticker" aria-live="off"><span class="k" id="lnsK">seven lanes today; two not named</span><span id="lnsT"></span></div>+ </div>+ <aside class="topo-panel" id="lnsPanel" aria-live="polite">+ <p class="fallback">Lanes today: release code, reviews, films, an experiment and this article, plus two not named here. Each keeps a state file with its working folder, its session, when it was updated, what it is doing now, and what it promised.</p>+ </aside>+ </div>+</section>+<!-- 03 ROUTING -->-<section class="sec" id="routing" aria-labelledby="h-rt">+<section class="sec" id="routing" aria-labelledby="h-rt" data-ed="updated"><div class="sec-head"><div><div class="sec-no">04 · Model routing</div><h2 id="h-rt">Patch the task to its model</h2></div><p>Every sub-agent gets a model picked for its task. All five patches are shown; choose a task to trace its cable. Examples marked <span class="tag amber">on record</span> are what the log attributes to that tier; <span class="tag dim">kind of job</span> marks the work the tier owns, where the log names no single run.</p>@@ -117,10 +205,11 @@<div class="sw-col" id="swModels"></div></div><div class="sw-read" id="swRead" aria-live="polite"></div>+ <p class="ed-note"><b>Edition 2</b> Every agent now gets an effort level as well as a model: low for agents that only collect, medium for decided, mechanical work, high for design, debugging and reviews. Reviews at decision points still go in a log with whether they changed a decision: from 12 Oct to the 0.4.6 release it has 103 rows, 61 marked yes, 41 ungraded and 1 marked no. The crew grades those rows itself, so 61 is an upper bound.</p></section><!-- 04 VENUES -->-<section class="sec" id="venues" aria-labelledby="h-ven">+<section class="sec" id="venues" aria-labelledby="h-ven" data-ed="updated"><div class="sec-head"><div><div class="sec-no">05 · Where work runs</div><h2 id="h-ven">One 20-second render, three machines</h2></div><p>Phase 0, 8 Oct: one 20-second showreel rendered on each venue. The bars rest at their measured times; replay the race to watch them at 1 s of screen per 30 s of render.</p>@@ -147,6 +236,7 @@</div><div class="subh">The 13 jobs, as the log lists them (the data-toy work counts as two)</div><div class="jobs" id="jobs"></div>+ <p class="ed-note"><b>Edition 2</b> The build machine runs tests only, started and stopped for each run. Renders stay on the Mac, one at a time.</p></section><!-- 05 SHIPPING -->@@ -166,7 +256,7 @@</section><!-- 06 QUALITY -->-<section class="sec" id="quality" aria-labelledby="h-q">+<section class="sec" id="quality" aria-labelledby="h-q" data-ed="updated"><div class="sec-head"><div><div class="sec-no">07 · Quality instruments</div><h2 id="h-q">Small charts, honest scales</h2></div><p>Each instrument answers one question. Scales start at zero; counts are drawn as counts. The last row measures the harness itself.</p>@@ -292,6 +382,72 @@</div></div></div>++ <div class="subh" id="verdict">Edition 2 · the verdict was for an earlier cut</div>+ <div class="vc-intro">+ <p>The film with the label at 0:46 had passed a critic. The critic’s last round judged an earlier render, final-7, which had no overlap, and said post it. The crew then fixed what that round had found, and the fixes moved a label. No round judged final-10, the render that went out. The director checked its contact sheet and passed it too.</p>+ <p>Pick a render and scrub its synthetic film. Under the scrubber, the page runs the same test showtime’s check runs: each text box goes through its transform, and two boxes that overlap by more than a few pixels both ways are a hit. It is the same test, not the same code, and it runs only at the time you scrub to. Sweep runs it every 0.1 s; the check steps every 0.1 to 0.25 s, by the film’s length.</p>+ </div>+ <div class="vc" id="vc">+ <p class="fallback">Renders final-7 to final-10 of one film. The critic’s last round judged final-7 and said post it; it had no overlap. Fixes for that round’s findings went into later renders, and final-10 went out without a critic round. The text-over-text check, run on final-10, reports an overlap from 0:45.5 to 0:47.2. The check is in showtime from 0.4.6.</p>+ </div>+ <p class="vc-fact" id="vcFact"><span><b>final-7</b> judged, no overlap</span><span><b>final-10</b> never judged, overlap 0:45.5 to 0:47.2</span><span>in <code>showtime check</code> from 0.4.6</span></p>+ <p class="note">The film here is drawn for this page; it only stands in for the real one. On the real film the check reports 0:45.50 to 0:47.23, and across 43 projects and 10 templates laid out in portrait it raised no false alarm.</p>++ <div class="subh">Edition 2 · four days, measured</div>+ <div class="ttm" id="ttm">+ <div class="panel">+ <div class="panel-h">Time to merge · every PR, 9 to 16 Oct<span class="sp"></span><button class="btn" type="button" id="ttmCmp" aria-pressed="true">First four days</button></div>+ <div class="panel-b">+ <div class="ttm-plot" id="ttmPlot" tabindex="0" role="group" aria-label="Time to merge for every merged PR: hours open against the time it merged, dot area by added lines. Use the left and right arrow keys to step through the PRs." aria-describedby="ttmNote">+ <p class="fallback">From the first article (12 Oct, 17:43 UTC) to the 0.4.6 release (16 Oct, 15:15 UTC), 49 PRs merged, with a median of 1.6 hours open (p90 7.8 h) and a median of 158 added lines. In the repo’s first four days, 50 PRs merged with a median of 3.0 hours and 91 added lines.</p>+ </div>+ <div class="ttm-read" id="ttmRead" aria-live="polite"></div>+ <p class="note" id="ttmNote">Bigger PRs stay open longer. Split by size, PRs still merged faster than in the repo’s first four days: 3.3 h against 5.2 h at 200 or more added lines (19 PRs against 15), 0.8 h against 2.5 h under 200 (30 against 35). The groups are small, so read it as a direction. The PRs are in the private working repo, so they are shown by merge time only. Hours are on a log scale with a floor at one minute, and dot area grows with added lines, capped at 4,000.</p>+ <details class="rp-list"><summary>Every PR, as a table</summary><div class="tblw"><table><thead><tr><th>Merged (UTC)</th><th>Hours open</th><th>Added lines</th></tr></thead><tbody id="ttmRows"></tbody></table></div></details>+ </div>+ </div>+ <div class="meas">+ <div class="panel">+ <div class="panel-h">Favio’s gate · at least 181 asks, 12 to 16 Oct</div>+ <div class="panel-b">+ <div class="waffle" id="waffle" role="img" aria-label="181 asks: 137 yes as proposed, 40 changed, 0 no, 4 with no answer"></div>+ <div class="wkey" aria-hidden="true"><span><i class="y"></i>137 yes as proposed</span><span><i class="c"></i>40 changed</span><span><i class="n"></i>4 no answer</span><span>0 no</span></div>+ <ul class="facts">+ <li><b>35 of 42</b><span>multiple-choice asks from 12 to 15 Oct that carried a recommended option were answered with it. The crew briefs well, or Favio, when busy, clicks the first button; this data can’t tell which.</span></li>+ <li><b>11 of 53</b><span>design asks came back changed (21%), against 38 of 92 in edition 1 (41%).</span></li>+ <li><b>1.9 min</b><span>median answer, against 3.6 min in edition 1.</span></li>+ </ul>+ <p class="note" style="margin:0">Counted from our log of asks, which is built from the chat, so read every number as a floor; the multiple-choice line comes from one pass over the chat, 12 to 15 Oct.</p>+ </div>+ </div>+ <div class="panel">+ <div class="panel-h">The cloud reviewer · first pass, edition 1 and 2</div>+ <div class="panel-b">+ <p class="q">Share of findings fixed on the same PR</p>+ <div class="rv" role="list">+ <div class="rvr" role="listitem"><span>blockers</span><span class="bt"><i class="e1" style="width:100%"></i><i style="width:100%"></i></span><span class="v">11 of 11</span></div>+ <div class="rvr" role="listitem"><span>should-fix</span><span class="bt"><i class="e1" style="width:96.5%"></i><i style="width:88.5%"></i></span><span class="v">54 of 61</span></div>+ <div class="rvr" role="listitem"><span>nits</span><span class="bt"><i class="e1" style="width:70.7%"></i><i style="width:36.8%"></i></span><span class="v">71 of 193</span></div>+ <div class="rvr" role="listitem"><span>overall</span><span class="bt"><i class="e1" style="width:78%"></i><i style="width:51.3%"></i></span><span class="v">51%</span></div>+ </div>+ <div class="wkey" aria-hidden="true"><span><i class="e1"></i>edition 1</span><span><i class="y"></i>edition 2, one PR excluded</span></div>+ <p class="note" style="margin:0">Edition 1: blockers 7 of 7, should-fix 55 of 57, nits 111 of 157, no false alarm. Edition 2, to the 0.4.6 release: three false alarms. Overall pools the three rows: 173 of 221 in edition 1, 136 of 265 now, where the 6 nits whose outcome is unknown count as not fixed. Same rule both times: a finding counts only if it was fixed on the same PR. Read from the review prose, to within a few points.</p>+ </div>+ </div>+ <div class="panel">+ <div class="panel-h">The reviewer session · reads every PR</div>+ <div class="panel-b">+ <ul class="facts">+ <li><b>242</b><span>first-pass findings on 46 PRs, to the 0.4.6 release.</span></li>+ <li><b>60%</b><span>of them led to a change; for 40 the outcome is unknown.</span></li>+ <li><b>13</b><span>verdict rounds on one PR by 15 Oct, the most for any.</span></li>+ </ul>+ <p class="note" style="margin:0">Its verdict is part of the merge gate. Since 15 Oct every lane messages it on each new head.</p>+ </div>+ </div>+ </div>+ </div></section><!-- 07 CASE: STALL -->@@ -349,10 +505,10 @@</section><!-- 12 LESSONS -->-<section class="sec" id="lessons" aria-labelledby="h-les">+<section class="sec" id="lessons" aria-labelledby="h-les" data-ed="updated"><div class="sec-head"><div><div class="sec-no">11 · Scars wall</div><h2 id="h-les">Every rule has a scar</h2></div>- <p>Each rule the crew follows sits beside the incident that wrote it: what happened, what it cost, the rule now, and where the rule lives, so the next session finds it. Only incidents the logs and memory record are here; private names and paths are generalized.</p>+ <p>Each rule the crew follows sits beside the incident that wrote it: what happened, what it cost, the rule now, and where the rule lives, so the next session finds it. Only incidents the logs and memory record are here; private names and paths are generalized. Edition 2’s six ledger rows are here too, behind their own filter, with four more misses from 16 Oct.</p></div><div class="scar-top"><div class="scar-count"><b id="scarN">0</b><span>incidents on record, each with the rule it left behind</span></div>@@ -472,7 +628,7 @@ done</code></pre></div></section>-<section class="sec" id="next" aria-labelledby="h-next">+<section class="sec" id="next" aria-labelledby="h-next" data-ed="updated"><div class="sec-head"><div><div class="sec-no">14 · Next</div><h2 id="h-next">New in 0.4.3: living diagrams</h2></div></div>@@ -488,12 +644,22 @@ done</code></pre></ul></div></div>+ <div class="subh">Edition 2 · in 0.4.6</div>+ <ul class="nx46">+ <li><span class="tag green">in 0.4.6</span><p>Text over text: <code>showtime check</code> steps through the whole timeline, every 0.1 to 0.25 s by the film’s length, and reports any two pieces of text that overlap, on the page or on any canvas.</p></li>+ <li><span class="tag green">in 0.4.6</span><p>The sound strip fix and its test: the strip placed its ticks by film time and ignored where the clip starts.</p></li>+ <li><span class="tag green">in 0.4.6</span><p>Text drawn outside the area a phone app leaves free: <code>check</code> now compares every text a page draws on its own canvas with that area, at every step. Before, 33, 29 and 13 pieces of text in three portrait films passed.</p></li>+ <li><span class="tag green">in 0.4.6</span><p>A page that stops answering: <code>check</code> now ends with an error that names the late step, instead of waiting a minute for each step.</p></li>+ <li><span class="tag dim">not a check yet</span><p>Lines drawn under text: 10 pieces of text in one film.</p></li>+ </ul>+ <p class="note">Both gaps were found the same day by the session that built the overlap check; the first is a check in 0.4.6, the second is not one yet. If the pattern holds, the next miss will be on something the crew has not made before.</p></section><div class="colophon">- <span><b>The showtime harness · public edition.</b> Compiled from the crew’s logs and notes, as of 11 Oct 2026.</span>+ <span><b>The showtime harness · public edition.</b> Compiled from the crew’s logs and notes, as of 16 Oct 2026.</span>+ <span class="eds">Editions: 1 · 11 Oct 2026 · Many hands, one yes. 2 · 16 Oct 2026 · Six practices.</span><span>showtime is open source: <a href="https://github.com/FavioVazquez/showtime">github.com/FavioVazquez/showtime</a></span></div></div></div>diff --git a/site/static/harness.css b/site/static/harness.cssindex d002fe2..ae76069 100644--- a/site/static/harness.css+++ b/site/static/harness.css@@ -169,7 +169,7 @@.harness .tag.dim{color:var(--text-3)}.harness .tl{position:relative}.harness .tl-axis{position:relative;height:74px;margin:0 0 0;border-bottom:1px solid var(--line-2)}-.harness .tl-days{position:absolute;inset:auto 0 0 0;display:grid;grid-template-columns:repeat(14,1fr);font:500 11px/1 var(--f-mono);color:var(--text-3)}+.harness .tl-days{position:absolute;inset:auto 0 0 0;display:grid;grid-template-columns:repeat(19,1fr);font:500 11px/1 var(--f-mono);color:var(--text-3)}.harness .tl-days span{padding:0 0 8px;border-left:1px solid var(--line);text-align:center;white-space:nowrap}.harness .tl-days span.m{color:var(--text-2)}.harness .tl-mk{position:absolute;bottom:-6px;width:11px;height:11px;margin-left:-5.5px;background:var(--bg);border:2px solid var(--amber);transform:rotate(45deg)}@@ -179,17 +179,17 @@.harness .tl-ctxr{position:absolute;bottom:20px;height:1px;background:var(--cyan);opacity:.6}.harness .tl-lead{display:block;width:100%;height:46px}.harness .tl-lead path{fill:none;stroke:var(--line-2);stroke-width:1;vector-effect:non-scaling-stroke}-.harness .tl-cards{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid var(--line)}+.harness .tl-cards{display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,1fr));border-left:1px solid var(--line)}.harness .tl-card{padding:12px 12px 14px;border-right:1px solid var(--line);border-top:2px solid var(--amber);min-width:0}.harness .tl-card.wip{border-top-style:dashed}.harness .tl-card .v{font:600 var(--s-md)/1 var(--f-mono);color:var(--amber)}.harness .tl-card .d{font:500 var(--s-xs)/1.3 var(--f-mono);color:var(--text-3);margin:5px 0 8px;text-transform:uppercase;letter-spacing:.06em}.harness .tl-card p{margin:0;font-size:var(--s-sm);line-height:1.45;color:var(--text-2)}-.harness .tl-around{margin-top:20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}+.harness .tl-around{margin-top:20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}.harness .tl-around div{padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:var(--s-sm);color:var(--text-2);min-width:0}.harness .tl-around b{display:inline-block;font:600 10px/1 var(--f-mono);color:var(--on-cyan);background:var(--cyan);padding:3px 4px;margin-right:6px}.harness .tl-around i{font-style:normal;font:500 var(--s-xs)/1 var(--f-mono);color:var(--text-3)}-@media (max-width:860px){.harness .tl-axis,.harness .tl-lead{display:none}+@media (max-width:1100px){.harness .tl-axis,.harness .tl-lead{display:none}.harness .tl-cards{grid-template-columns:minmax(0,1fr);border-left:2px solid var(--amber);margin-left:6px}.harness .tl-card{border-top:0;border-right:0;border-bottom:1px solid var(--line);position:relative;padding-left:18px}.harness .tl-card::before{content:"";position:absolute;left:-8px;top:15px;width:10px;height:10px;background:var(--bg);border:2px solid var(--amber);transform:rotate(45deg)}@@ -711,3 +711,257 @@.harness .next li{margin:0 0 6px}.harness .next a{color:var(--cyan)}++/* ================= EDITION 2 (15 Oct) ================= */+.harness .fallback{margin:0;padding:14px 16px;font-size:var(--s-sm);color:var(--text-2)}+.harness ol.fallback{padding-left:34px;display:grid;gap:6px}+/* the edition strip, above the title */+.harness .ed-strip{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:10px 14px;margin:0 0 22px;border:1px solid var(--line-2);border-left:3px solid var(--amber);background:var(--bg-1);font:500 var(--s-xs)/1.35 var(--f-mono);letter-spacing:.06em;color:var(--text-2)}+.harness .ed-id{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;text-transform:uppercase}+.harness .ed-id b{color:var(--amber);font-weight:600;letter-spacing:.14em}+.harness .ed-id i{font-style:normal;color:var(--text);font-weight:600}+.harness .ed-cnt .num{color:var(--text);font-weight:600}+.harness .ed-links{flex:1 1 100%;text-transform:none;letter-spacing:.02em;color:var(--text-3)}+.harness .ed-links span{color:var(--text-2)}+.harness .ed-sw{display:inline-flex;align-items:center;gap:9px;margin-left:auto;padding:6px 10px 6px 6px;border:1px solid var(--line-2);border-radius:999px;background:var(--bg-2);color:var(--text);font:600 var(--s-xs)/1 var(--f-mono);letter-spacing:.04em;cursor:pointer}+.harness .ed-sw .knob{position:relative;width:30px;height:16px;border-radius:999px;background:var(--bg-3);border:1px solid var(--line-2);flex:none}+.harness .ed-sw .knob::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:var(--text-3);transition:left .2s,background .2s}+.harness .ed-sw[aria-checked="true"]{border-color:var(--amber)}+.harness .ed-sw[aria-checked="true"] .knob{background:var(--amber-wash);border-color:var(--amber)}+.harness .ed-sw[aria-checked="true"] .knob::after{left:16px;background:var(--amber)}+.harness .ed-sw:hover{border-color:var(--amber)}+.harness .ed-chip{display:none;margin-left:8px;padding:3px 6px;font:700 10px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;font-style:normal;border-radius:var(--r);vertical-align:1px}+.harness .ed-chip.new{background:var(--amber);color:var(--on-amber)}+.harness .ed-chip.updated{border:1px solid var(--cyan);color:var(--cyan)}+.harness.ed-diff .ed-chip{display:inline-block}+.harness.ed-diff section.sec:not([data-ed]){opacity:.36;transition:opacity .3s}+.harness.ed-diff .index a:not([data-ed]){opacity:.4}+.harness .index a .ed-chip{margin-left:auto}+.harness .ed-note{margin:14px 0 0;padding:10px 14px;border-left:3px solid var(--amber);background:var(--amber-wash);font-size:var(--s-sm);color:var(--text-2);max-width:96ch}+.harness .ed-note b{font:700 var(--s-xs)/1 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--amber);margin-right:8px}+.harness .colophon .eds{flex-basis:100%}+@media (max-width:640px){.harness .ed-sw{margin-left:0}+}+/* the ledger: cards that turn over; both faces stay in the document */+.harness .e2-film{margin:0 0 18px;border:1px solid var(--line-2);background:var(--bg-1)}+.harness .e2-film video{display:block;width:100%;height:auto;aspect-ratio:16/9;background:var(--bg-2)}+.harness .e2-film figcaption{padding:10px 14px;font-size:var(--s-sm);color:var(--text-3)}+.harness .ledger{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:14px}+.harness .lc{display:flex;flex-direction:column;min-width:0;perspective:1400px}+.harness .lc-in{display:grid;flex:1;transition:transform .6s cubic-bezier(.3,.7,.2,1);transform-style:preserve-3d}+.harness .lc-f,.harness .lc-b{grid-area:1/1;border:1px solid var(--line-2);background:var(--bg-1);padding:14px 16px 12px;backface-visibility:hidden;-webkit-backface-visibility:hidden;min-width:0;display:flex;flex-direction:column;gap:8px}+.harness .lc-f{border-top:3px solid var(--amber)}+.harness .lc-b{transform:rotateY(180deg);border-top:3px solid var(--red);background:color-mix(in srgb,var(--red) 6%,var(--bg-1))}+.harness .lc.flip .lc-in{transform:rotateY(180deg)}+.harness .lc:not(.flip) .lc-b,.harness .lc.flip .lc-f{pointer-events:none}+.harness .lc-n{display:flex;justify-content:space-between;gap:10px;font:500 var(--s-xs)/1.2 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--text-3)}+.harness .lc-n b{font:900 34px/.8 var(--f-display);color:var(--text);letter-spacing:0}+.harness .lc h3{font:800 26px/1 var(--f-display);text-transform:uppercase;margin:2px 0 0}+.harness .lc p{margin:0;font-size:var(--s-sm);line-height:1.5;color:var(--text-2)}+.harness .lc-b p{font:500 var(--s-md)/1.45 var(--f-body);color:var(--text)}+.harness .lc dl{margin:auto 0 0;display:grid;gap:8px;padding-top:6px;border-top:1px solid var(--line)}+.harness .lc dt{font:600 10.5px/1.2 var(--f-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--text-3);margin-bottom:2px}+.harness .lc .cost dt{color:var(--red)}+.harness .lc dd{margin:0;font-size:var(--s-sm);color:var(--text)}+.harness .lc-tags{display:flex;gap:6px}+.harness .lc-r{font:600 var(--s-md)/1.4 var(--f-body)!important;color:var(--text)!important}+.harness .lc-s{border-top:1px solid var(--line);padding-top:8px}+.harness .lc-s summary{cursor:pointer;font:600 var(--s-xs)/1.2 var(--f-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--amber);list-style:none}+.harness .lc-s summary::-webkit-details-marker{display:none}+.harness .lc-s summary::before{content:"+ ";color:var(--text-3)}+.harness .lc-s[open] summary::before{content:"\2212 "}+.harness .lc-s ol{margin:8px 0 0;padding-left:20px;display:grid;gap:6px;font-size:var(--s-sm);line-height:1.45;color:var(--text-2)}+.harness .lc-f .lc-tags{margin-top:auto}+.harness .lc-b a{margin-top:auto;font:500 var(--s-xs)/1 var(--f-mono)}+.harness .lc-btn{margin-top:-1px;width:100%;padding:10px 14px;border:1px solid var(--line-2);background:var(--bg-2);color:var(--text);font:600 var(--s-xs)/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;cursor:pointer;text-align:left}+.harness .lc-btn::after{content:" ↻";color:var(--amber)}+.harness .lc-btn:hover{border-color:var(--amber);color:var(--amber)}+.harness .e2-sum{margin-top:14px}+/* the scars wall's edition 2 cards */+.harness .scar.e2{border-color:color-mix(in srgb,var(--amber) 55%,var(--line-2))}+/* N2: what a compaction keeps */+.harness .cmp{border:1px solid var(--line-2);background:var(--bg-1);box-shadow:var(--shadow)}+.harness .cmp-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}+.harness .cmp-stage{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:18px 16px}+@media (min-width:900px){.harness .cmp-stage{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start;gap:24px;padding:22px 20px}+}+.harness .cmp-out{padding-bottom:22px}+.harness .cmp-out.dim{opacity:.45}+.harness .cmp-lab{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font:500 var(--s-xs)/1.3 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:30px}+.harness .cmp-lab .num{text-transform:none;letter-spacing:0;font-size:var(--s-md);color:var(--text-2)}+.harness .cmp-lab .num b{color:var(--text);font-weight:600}+.harness .cmp-track{position:relative;height:46px;background:var(--bg-2);border:1px solid var(--line)}+.harness .cmp-track .seg{position:absolute;top:0;bottom:0;left:0;display:flex;align-items:center;padding:0 8px;overflow:hidden;font:600 11px/1 var(--f-mono);letter-spacing:.04em;white-space:nowrap}+.harness .cmp-track .seg.p,.harness .cmp-track .seg.c{background:color-mix(in srgb,var(--cyan) 30%,var(--bg-2));color:var(--text)}+.harness .cmp-track .seg.s{background:color-mix(in srgb,var(--amber) 42%,var(--bg-2));color:var(--text);border-left:2px solid var(--bg-1)}+.harness .cmp-track .cut{position:absolute;top:-1px;bottom:-1px;width:0;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--bg) 82%,transparent) 0 5px,color-mix(in srgb,var(--bg) 62%,transparent) 5px 10px);transition:width 1.6s cubic-bezier(.5,0,.3,1) .2s}+.harness .cmp-stage.go .cut{width:var(--w)}+.harness .cmp-track .mk{position:absolute;top:-10px;bottom:-10px;width:0;border-left:2px solid var(--text);font-style:normal}+.harness .cmp-track .mk span{position:absolute;bottom:100%;left:-1px;transform:translateX(-50%);font:600 10.5px/1 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text);white-space:nowrap;padding-bottom:3px}+.harness .cmp-track .mk.cap{border-color:var(--red)}+.harness .cmp-track .mk.cap span{color:var(--red)}+.harness .cmp-track .mk.pv{border-left:2px dashed var(--green)}+.harness .cmp-track .mk.pv span,.harness .cmp-track .mk.bd span{top:100%;bottom:auto;padding:3px 0 0;color:var(--green)}+.harness .cmp-track .mk.bd{border-left:2px dashed var(--green)}+.harness .cmp-sess{border:1px solid var(--line-2);background:var(--bg-2);padding:12px 14px;min-height:150px;transition:border-color .3s}+.harness .cmp-sh{display:flex;justify-content:space-between;gap:10px;font:500 var(--s-xs)/1.3 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text-3);margin-bottom:8px}+.harness .cmp-sh .state{color:var(--green)}+.harness .cmp-sess.idle .state{color:var(--text-3)}+.harness .cmp-sess ol{list-style:none;margin:0;padding:0}+.harness .cmp-sess li{padding:7px 0 7px 18px;border-top:1px solid var(--line);font-size:var(--s-sm);color:var(--text);position:relative;transition:opacity .5s,color .5s;transition-delay:var(--d)}+.harness .cmp-sess li::before{content:"";position:absolute;left:0;top:13px;width:8px;height:8px;background:var(--cyan)}+.harness .cmp-sess li.s::before{background:var(--amber)}+.harness .cmp-stage.go ol.old li.p2,.harness .cmp-stage.go ol.old li.s{opacity:.32;text-decoration:line-through}+.harness .cmp-pv{margin:8px 0 0;font:500 var(--s-xs)/1.4 var(--f-mono);color:var(--red)}+.harness .cmp-idle{margin:4px 0 12px;font:600 var(--s-md)/1.3 var(--f-mono);color:var(--text-2)}+.harness .cmp-sess:not(.idle) .cmp-idle{color:var(--text-3)}+.harness .cmp-wake{margin:10px 0 0;font:600 var(--s-md)/1.3 var(--f-mono);color:var(--green);opacity:0;transition:opacity .4s}+.harness .cmp-sess:not(.idle) .cmp-wake{opacity:1}+.harness .env{display:flex;align-items:center;gap:10px;padding:9px 11px;border:1px solid var(--amber);background:var(--amber-wash);font:500 var(--s-sm)/1.3 var(--f-body);color:var(--text);opacity:0;transform:translateX(-24px);transition:opacity .5s .5s,transform .7s .5s}+.harness .env i{width:20px;height:14px;flex:none;border:1.5px solid var(--amber);background:linear-gradient(to bottom right,transparent 48%,var(--amber) 48% 52%,transparent 52%) 0 0/50% 100% no-repeat,linear-gradient(to bottom left,transparent 48%,var(--amber) 48% 52%,transparent 52%) 100% 0/50% 100% no-repeat}+.harness .cmp-stage.go .env{opacity:1;transform:none}+.harness .cmp-read{padding:12px 16px;border-top:1px solid var(--line);background:var(--bg-2);font-size:var(--s-md);color:var(--text-2);min-height:48px}+.harness .cmp-cap{margin-top:12px}+.harness .clog{list-style:none;margin:0;padding:0;border:1px solid var(--line-2);background:var(--bg-1)}+.harness .clog li{display:grid;grid-template-columns:3.4em minmax(0,1fr) 4.6em minmax(0,11em);gap:12px;align-items:center;padding:8px 14px;border-top:1px solid var(--line);font-size:var(--s-sm)}+.harness .clog li:first-child{border-top:0}+.harness .clog .t{color:var(--text-3)}+.harness .clog .b{height:10px;background:var(--bg-3)}+.harness .clog .b i{display:block;height:100%;background:var(--cyan)}+.harness .clog .v{text-align:right;color:var(--text);font-weight:600}+.harness .clog .y{color:var(--green);font:500 var(--s-xs)/1.2 var(--f-mono)}+.harness .clog .y::before{content:"✓ "}+@media (max-width:560px){.harness .clog li{grid-template-columns:3em minmax(0,1fr) 4.4em;gap:8px}+.harness .clog .y{grid-column:1/-1;padding-left:calc(3em + 8px)}+}+/* N3: one session became many */+.harness .lns{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--line-2);background:var(--bg-1);box-shadow:var(--shadow)}+@media (min-width:1180px){.harness .lns{grid-template-columns:minmax(0,1fr) 340px}+.harness .lns-stage{border-right:1px solid var(--line-2)}+}+.harness .lns-stage{min-width:0;border-bottom:1px solid var(--line-2)}+@media (min-width:1180px){.harness .lns-stage{border-bottom:0}+}+.harness #lnsSvg{display:block;width:100%;height:auto;padding:8px 6px 0}+.harness #lnsSvg.tall{max-width:420px;margin:0 auto}+.harness #lnsSvg text{font-family:var(--f-body)}+.harness #lnsSvg .gauge{fill:var(--bg-3);stroke:var(--line-2)}+.harness #lnsSvg .gfill{fill:var(--amber)}+.harness #lnsSvg .lane,.harness #lnsSvg .ln-edges{transition:opacity .45s calc(var(--i,0) * 70ms),visibility .45s}+.harness #lnsSvg.one .lane,.harness #lnsSvg.one .ln-edges{opacity:0;visibility:hidden}+.harness #lnsSvg .lane.un .nl{fill:var(--text-3);font-style:italic;font-weight:500}+.harness #lnsSvg .env-g rect{fill:var(--amber)}+.harness #lnsSvg .env-g path{fill:none;stroke:var(--on-amber);stroke-width:1.5}+.harness .lns .ticker{flex-wrap:wrap;gap:4px 12px}+.harness .sf{margin:10px 0 0;padding:12px;border:1px solid var(--line);background:var(--bg-2);font:12.5px/1.55 var(--f-mono);color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}+/* N1: the verdict was for an earlier cut */+.harness .vc-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 32px;margin-bottom:16px;font-size:var(--s-md);color:var(--text-2)}+.harness .vc-intro p{margin:0;max-width:66ch}+@media (min-width:900px){.harness .vc-intro{grid-template-columns:1fr 1fr}+}+.harness .vc{border:1px solid var(--line-2);background:var(--bg-1);box-shadow:var(--shadow)}+.harness .vc-tl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line-2)}+.harness .vc-r{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px;border:0;border-right:1px solid var(--line);background:none;text-align:left;min-width:0;color:var(--text)}+.harness .vc-r:last-child{border-right:0}+.harness button.vc-r{cursor:pointer}+.harness button.vc-r:hover{background:var(--bg-2)}+.harness button.vc-r[aria-pressed="true"]{background:var(--amber-wash);box-shadow:inset 0 -3px 0 var(--amber)}+.harness .vc-r svg{width:100%;max-width:200px;height:auto;display:block;border:1px solid var(--line)}+.harness .vc-r b{font:600 var(--s-md)/1 var(--f-mono)}+.harness .vc-r small{font-size:12px;line-height:1.35;color:var(--text-3)}+.harness .vc-r.faint{opacity:.6;justify-content:flex-end}+.harness .vc-r.fx::before{content:"";position:absolute;left:0;right:0;top:32%;border-top:2px dashed var(--cyan);opacity:.7}+.harness .vc-r.fx::after{content:"";position:absolute;right:-1px;top:calc(32% - 6px);border:6px solid transparent;border-left:9px solid var(--cyan);border-right:0;opacity:.8}+.harness .vc-r .stamp{font-size:11px;padding:4px 6px}+.harness .stamp.ghost{color:var(--text-3);border:1.5px dashed var(--text-3);transform:rotate(1.5deg)}+.harness .vc-r small .tag{margin-right:4px;vertical-align:0}+.harness .th-bg{fill:#0b1118}+.harness .th-ln{stroke:#34485b;stroke-width:1}+.harness .th-a{fill:#ff7262}+.harness .th-b{fill:#aab8c4;opacity:.6}+.harness .th-was{fill:none;stroke:#ff7262;stroke-dasharray:2 2;opacity:.7}+.harness .vc-pl{display:grid;gap:10px;padding:14px}+@media (min-width:1000px){.harness .vc-pl{grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:"cv now" "cv ctl" "sl ctl";gap:12px 22px;padding:18px}+.harness .vc-pl .vc-cv{grid-area:cv}+.harness .vc-pl .vc-now{grid-area:now;font-size:var(--s-lg);line-height:1.35;padding:10px 0;border-bottom:1px solid var(--line)}+.harness .vc-pl .vc-scr{grid-area:sl}+.harness .vc-pl .vc-ctl{grid-area:ctl;align-self:start;flex-direction:column;align-items:flex-start}+}+.harness .vc-cv{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#0b1118;border:1px solid var(--line)}+.harness .vc-now{font:600 var(--s-md)/1.3 var(--f-mono);color:var(--text-2);min-height:1.3em}+.harness .vc-now.hit{color:var(--red)}+.harness .vc-sl{display:grid;gap:6px;padding:6px 0;cursor:pointer;touch-action:none;outline-offset:4px}+.harness .vc-track{position:relative;height:6px;background:var(--bg-3);margin:8px 8px 4px}+.harness .vc-fill{position:absolute;inset:0 auto 0 0;background:var(--amber)}+.harness .vc-th{position:absolute;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;background:var(--amber);border:3px solid var(--bg-1);box-shadow:0 0 0 1.5px var(--amber);border-radius:50%}+.harness .vc-sl:focus-visible .vc-th{box-shadow:0 0 0 3px var(--text)}+.harness .vc-lk{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding-top:4px;font:500 var(--s-xs)/1.2 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin:0 8px}+.harness .vc-lk span{display:inline-flex;align-items:center;gap:5px;text-transform:none;letter-spacing:0}+.harness .vc-lk span::before{content:"";width:10px;height:10px;background:var(--bg-3);border:1px solid var(--line-2)}+.harness .vc-lk span.ok::before{background:color-mix(in srgb,var(--green) 45%,var(--bg-3))}+.harness .vc-lk span.hit::before{background:var(--red)}+.harness .vc-lk span:first-of-type{margin-left:auto}+.harness .vc-lane{display:block;width:calc(100% - 16px);height:20px;margin:0 8px;border:1px solid var(--line)}+.harness .vc-ctl{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}+.harness .vc-sw{margin:0;font:600 var(--s-sm)/1.4 var(--f-mono);color:var(--text-2);min-height:1.4em}+.harness .vc-ctl .note{margin:0}+.harness .vc-ctl > div{display:flex;flex-wrap:wrap;gap:8px}+.harness .vc-fact{display:flex;flex-wrap:wrap;gap:0;margin:0;border:1px solid var(--line-2);border-top:0;background:var(--bg-2);font-size:var(--s-sm);color:var(--text-2)}+.harness .vc-fact span{padding:10px 14px;border-right:1px solid var(--line);flex:1 1 220px}+.harness .vc-fact span:last-child{border-right:0}+.harness .vc-fact b{font:600 var(--s-sm)/1 var(--f-mono);color:var(--amber);margin-right:6px}+@media (max-width:640px){.harness .vc-tl{grid-template-columns:repeat(2,minmax(0,1fr))}+.harness .vc-r{border-bottom:1px solid var(--line)}+.harness .vc-r:nth-child(2){border-right:0}+.harness .vc-r.faint{padding:8px 12px}+.harness .vc-r.faint{order:2}+.harness .vc-r.fx::before,.harness .vc-r.fx::after{display:none}+.harness .vc-r svg{max-width:none}+.harness .vc-pl{padding:10px}+.harness .vc-now{font-size:var(--s-sm);order:-1}+.harness .vc-fact span{border-right:0;border-bottom:1px solid var(--line)}+}+/* N5: three days, measured */+.harness .ttm{display:grid;gap:16px}+.harness .ttm-plot{position:relative;min-height:300px;outline-offset:3px}+.harness .ttm-plot svg{display:block;overflow:visible}+.harness .ttm-plot .gy,.harness .ttm-plot .gx{stroke:var(--line);stroke-width:1}+.harness .ttm-plot .tx{fill:var(--text-3);font:500 10.5px var(--f-mono)}+.harness .ttm-plot .rule{stroke:var(--text-3);stroke-width:1;stroke-dasharray:3 3}+.harness .ttm-plot .rule.art{stroke:var(--amber);stroke-dasharray:none;stroke-width:1.5}+.harness .ttm-plot .rl{fill:var(--text-2);font:600 10.5px var(--f-mono)}+.harness .ttm-plot .med{stroke:var(--amber);stroke-width:1.5;stroke-dasharray:6 4}+.harness .ttm-plot .med.pre{stroke:var(--steel)}+.harness .ttm-plot .ml{fill:var(--text-2);font:600 10.5px var(--f-mono);paint-order:stroke;stroke:var(--bg-1);stroke-width:3px}+.harness .ttm-plot .dt{fill:color-mix(in srgb,var(--amber) 50%,transparent);stroke:var(--amber);stroke-width:1.2}+.harness .ttm-plot .dt.pre{fill:color-mix(in srgb,var(--steel) 22%,transparent);stroke:var(--steel);stroke-width:1}+.harness .ttm-plot .hl{fill:none;stroke:var(--text);stroke-width:2}+.harness .ttm-read{font:600 var(--s-sm)/1.4 var(--f-mono);color:var(--text);min-height:1.4em}+.harness .ttm tr.pre td{color:var(--text-3)}+.harness .waffle{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;max-width:340px}+.harness .waffle i{display:block;aspect-ratio:1;background:var(--amber)}+.harness .waffle i.c{background:var(--cyan)}+.harness .waffle i.n{background:transparent;border:1.5px solid var(--text-3)}+.harness .wkey{display:flex;flex-wrap:wrap;gap:4px 14px;font:500 var(--s-xs)/1.4 var(--f-mono);color:var(--text-2)}+.harness .wkey span{display:inline-flex;align-items:center;gap:6px}+.harness .wkey i{width:10px;height:10px;display:inline-block;background:var(--amber)}+.harness .wkey i.c{background:var(--cyan)}+.harness .wkey i.n{background:transparent;border:1.5px solid var(--text-3)}+.harness .wkey i.e1{background:var(--steel);opacity:.55}+.harness .rv{display:grid;gap:10px}+.harness .rvr{display:grid;grid-template-columns:minmax(0,5.6em) minmax(0,1fr) 5.4em;gap:10px;align-items:center;font-size:var(--s-sm)}+.harness .rvr .bt{display:grid;gap:3px;background:none}+.harness .rvr .bt i{display:block;height:9px;background:var(--amber)}+.harness .rvr .bt i.e1{background:var(--steel);opacity:.55}+.harness .rvr .v{font:600 var(--s-sm)/1 var(--f-mono);text-align:right;color:var(--text)}+/* section 14: next */+.harness .nx46{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}+.harness .nx46 li{padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}+.harness .nx46 p{margin:8px 0 0;font-size:var(--s-sm);color:var(--text-2)}+@media (prefers-reduced-motion: reduce){.harness .lc-in{transition:none;transform:none!important}+.harness .lc-f,.harness .lc-b{backface-visibility:visible;transition:opacity .25s}+.harness .lc-b{transform:none;opacity:0}+.harness .lc.flip .lc-b{opacity:1}+.harness .lc.flip .lc-f{opacity:0}+.harness .cmp-track .cut,.harness .cmp-sess li,.harness .env,.harness #lnsSvg .lane,.harness #lnsSvg .ln-edges,.harness .ed-sw .knob::after{transition:none}+}diff --git a/site/static/harness.js b/site/static/harness.jsindex 431838e..1187192 100644--- a/site/static/harness.js+++ b/site/static/harness.js@@ -345,12 +345,12 @@ requestAnimationFrame(frame);let rT; window.addEventListener("resize", () => { clearTimeout(rT); rT = setTimeout(render, 120); });mq.addEventListener && mq.addEventListener("change", e => { reduced = e.matches; layoutName = ""; setPlaying(!reduced); render(); });-document.querySelectorAll(".sec-head").forEach(h => { const n = h.querySelector(".sec-no"); if (!n) return; const g = document.createElement("span"); g.className = "snum"; g.setAttribute("aria-hidden","true"); g.textContent = n.textContent.trim().slice(0,2); h.prepend(g); });+document.querySelectorAll(".sec-head").forEach(h => { const n = h.querySelector(".sec-no"); if (!n) return; const g = document.createElement("span"); g.className = "snum"; g.setAttribute("aria-hidden","true"); g.textContent = n.textContent.trim().split(/\s/)[0].slice(0,3); h.prepend(g); });if (reduced) ["#raceBtn"].forEach(q => { const b = $(q); if (b) b.hidden = true; });/* ================= 01 TIMELINE ================= */(function timeline() {- const DAYS = ["28","29","30","1","2","3","4","5","6","7","8","9","10","11"];+ const DAYS = ["28","29","30","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"], ND = DAYS.length;const REL = [{v:"0.1.0", d:"28 Sep", day:0, t:"Public. “Your agent directs. Your machine renders.”"},{v:"0.2.0", d:"29 Sep", day:1, t:"Works in every coding agent; lazy downloads."},@@ -358,15 +358,20 @@ if (reduced) ["#raceBtn"].forEach(q => { const b = $(q); if (b) b.hidden = true;{v:"0.3.1–0.3.5", d:"30 Sep – 3 Oct", day:2, end:5, t:"Patch releases 0.3.1 through 0.3.5."},{v:"0.4.0", d:"5 Oct", day:7, t:"Questions built in, a first-viewer story check, pr-video, a hearing pass."},{v:"0.4.1", d:"8 Oct", day:10, t:"Speed, looks, talking-head cards, a new showreel."},- {v:"0.4.2", d:"11 Oct", day:13, t:"Shipped once every check was green on all four systems; 16 PRs had merged on 9 Oct alone."}+ {v:"0.4.2", d:"11 Oct", day:13, t:"Shipped once every check was green on all four systems; 16 PRs had merged on 9 Oct alone."},+ {v:"0.4.3", d:"13 Oct", day:14.8, t:"Living diagrams; recap and repro turn a coding session or a failing test into a short narrated film."},+ {v:"0.4.4", d:"13 Oct", day:15.3, t:"X-ray: a real clip’s inside, drawn in sync with its sound and checked with a receipt."},+ {v:"0.4.5", d:"15 Oct", day:17, t:"X-ray from data, and the skill reorganized by family with a routing eval."},+ {v:"0.4.6", d:"16 Oct", day:18, t:"check catches text over text, text outside a phone’s free area, and a stuck page."}];const CTX = [{k:"A", d:"2 Oct", day:4, t:"Comparison rounds on Devin begin. Plain Opus won rounds 1 and 5, so showtime’s reel was not published."},{k:"B", d:"5 Oct", day:7, t:"Round 6, after a density fix: showtime 1st and 2nd, the plain winner 3rd."},{k:"C", d:"8 Oct", day:10, t:"Venues measured (Phase 0). The creative session’s first film. Jev evaluated for $0.02."},- {k:"D", d:"10–11 Oct", day:12, end:13, t:"The release waits until every check is green on all four systems, Intel included."}+ {k:"D", d:"10–11 Oct", day:12, end:13, t:"The release waits until every check is green on all four systems, Intel included."},+ {k:"E", d:"12 Oct", day:14, t:"Edition 1 of this manual goes public with the first article. Edition 2 follows with 0.4.6."}];- const pct = d => (d + .5) / 14 * 100;+ const pct = d => (d + .5) / ND * 100;const root = $("#timeline");let axis = `<div class="tl-axis" aria-hidden="true"><div class="tl-days">${DAYS.map((d,i) => `<span class="${i===0||i===3?"m":""}">${d}${i===0?" Sep":i===3?" Oct":""}</span>`).join("")}</div>`;REL.forEach(r => {@@ -381,11 +386,11 @@ if (reduced) ["#raceBtn"].forEach(q => { const b = $(q); if (b) b.hidden = true;axis += `</div>`;let lead = `<svg class="tl-lead" viewBox="0 0 100 46" preserveAspectRatio="none" aria-hidden="true">`;REL.forEach((r,i) => {- const x0 = r.end != null ? (pct(r.day)+pct(r.end))/2 : pct(r.day), x1 = (i + .5)/7*100;+ const x0 = r.end != null ? (pct(r.day)+pct(r.end))/2 : pct(r.day), x1 = (i + .5)/REL.length*100;lead += `<path d="M${x0},0 L${x0},14 L${x1},34 L${x1},46"/>`;});lead += `</svg>`;- const cards = `<ol class="tl-cards" style="list-style:none;margin:0;padding:0">${REL.map(r => `<li class="tl-card${r.wip?" wip":""}"><div class="v">${r.v}</div><div class="d">${r.d}</div><p>${esc(r.t)}</p></li>`).join("")}</ol>`;+ const cards = `<ol class="tl-cards" style="list-style:none;margin:0;padding:0;--n:${REL.length}">${REL.map(r => `<li class="tl-card${r.wip?" wip":""}"><div class="v">${r.v}</div><div class="d">${r.d}</div><p>${esc(r.t)}</p></li>`).join("")}</ol>`;const around = `<div class="subh" style="margin-top:28px">Around the releases</div><div class="tl-around">${CTX.map(c => `<div><b>${c.k}</b><i>${c.d}</i><br>${esc(c.t)}</div>`).join("")}</div>`;root.innerHTML = axis + lead + cards + around;})();@@ -515,6 +520,40 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,{t:"", between:["20:50","22:00"], lane:"owner", model:"Favio", gate:"public", what:"0.4.2 is released on Favio’s go: public PR #50 merged, tag v0.4.2, the GitHub release, What’s new on the site"}]};+/* Edition 2: 15 Oct in UTC, only merges, compactions, checks, reviews and releases, generic lanes; merge and+ compaction times are the PR list's and the compaction log's */+const DAY_1015 = {date:"2026-10-15", src:"from the open list and the PR list", title:"15 Oct (UTC): merges, a compaction round, and a re-run that waited for nothing",+ lanes:[{id:"owner", name:"Owner gates", abbr:"Owner", sub:"Favio"},{id:"dir", name:"Director", abbr:"Dir", sub:"one list"},+ {id:"code", name:"Release code", abbr:"Code", sub:"lane"},{id:"checks", name:"Checks", abbr:"Check", sub:"CI · tests"},+ {id:"films", name:"Films", abbr:"Films", sub:"lane"},{id:"rev", name:"Reviews", abbr:"Rev", sub:"lane"},{id:"other", name:"Other lanes", abbr:"Other", sub:"not named"}],+ events:[+ ["03:37","dir","public","0.4.5 is released on Favio’s go: the tag, the release and the site"],+ ["~08:40","rev","","The reviewer session missed a pull request: its timer does not fire while it is idle. A message wakes it; from now on every lane messages it on each new head"],+ ["","checks","","The first 0.4.6 pull request passes the full suite on the build machine, and every review says MERGE"],+ ["09:17","code","merge","Merges the first 0.4.6 pull request: tests and setup on other machines"],+ ["09:54","code","merge","Merges files stored byte for byte, with no line endings rewritten at checkout"],+ ["10:15","code","merge","Merges a skipped cut walk as a warning, and sturdier test deadlines"],+ ["10:20","dir","","A CI job fails on a public fix pull request, and the director re-runs it before reading its log"],+ ["10:23","code","merge","Merges small items from the 0.4.6 plan"],+ ["10:36","checks","","The re-run is cancelled after 15.6 minutes. The log had the cause: an icon lookup waits 38.5 s against a 30 s limit, so it fails every time"],+ ["","dir","public","On Favio’s yes, the fix-only public pull request merges"],+ ["11:23","code","merge","Merges the icon fix: a misspelled name gets its suggestion from the local index, before any fetch"],+ ["11:54","owner","","Favio starts a compaction round, one lane after another"],+ ["11:56","code","","Compacts: an 18,606-character summary that names its state file"],+ ["11:56","rev","","Compacts: 16,900 characters, names its state file"],+ ["11:56","other","","A lane not named here compacts: 18,172 characters, names its state file"],+ ["11:59","code","merge","Merges a report of .gitattributes lines git ignores, and a size-read test that runs on software graphics"],+ ["12:00","other","","Another lane compacts: 15,721 characters, names its state file"],+ ["12:05","films","","Compacts: 18,082 characters, names its state file. Then it sits idle, because a compaction does not start a turn"],+ ["","dir","","Checks the round: the rules card and each session’s own state file arrived whole in all four sessions checked"],+ ["","dir","","Messages the films lane to resume from its state file, and writes the rule: a compacted lane needs a message"],+ ["","checks","","The new overlap check, run on the film Favio caught, reports 0:45.50 to 0:47.23"],+ ["","rev","","The reviewer session on the overlap check: FIX FIRST"],+ ["","checks","","Round 2 of the overlap check: no false alarm over 43 projects and 10 templates laid out in portrait"],+ ["","rev","","The reviewer session: MERGE at the new head"],+ ["15:07","code","merge","Merges the text-over-text check, for 0.4.6"]+ ].map(([t, lane, gate, what]) => ({t, lane, gate, what}))};+(function replay() {const BASE = [{id:"owner", name:"Owner gates", abbr:"Owner", sub:"Favio"},@@ -543,9 +582,10 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,const fmt = (min, ap) => (ap ? "~" : "") + String(Math.floor(min / 60) % 24).padStart(2, "0") + ":" + String(min % 60).padStart(2, "0");function norm(raw) {+ const own = raw.lanes, ownName = id => (own.find(l => l.id === id) || {}).name || id;const E = arr(raw.events).filter(e => e && (e.what || e.t)).map(e => {const m = TRE.exec(String(e.t || ""));- return {min: m ? (+m[2]) * 60 + (+m[3]) : null, ap: !!(m && m[1]), lane: laneOf(e), laneRaw: String(e.lane || ""), model: String(e.model || ""),+ return {min: m ? (+m[2]) * 60 + (+m[3]) : null, ap: !!(m && m[1]), lane: own ? e.lane : laneOf(e), laneRaw: String(e.lane || ""), model: own ? ownName(e.lane) : String(e.model || ""),what: String(e.what || ""), gate: normGate(e.gate), gateRaw: String(e.gate || ""), between: Array.isArray(e.between) ? e.between : null, when: String(e.when || "")};});const timed = E.filter(e => e.min != null).map(e => e.min);@@ -565,12 +605,12 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,let a, b;if (e.between) { a = String(e.between[0] || ""); b = String(e.between[1] || ""); }else { a = prev ? prev.label : ""; b = next ? next.label : ""; }- e.win = e.when ? e.when : a && b ? `${a}–${b}` : b ? `before ${b}` : a ? `after ${a}` : "time not logged";+ e.win = e.when ? e.when : a && b ? (own ? `${a} to ${b}` : `${a}–${b}`) : b ? `before ${b}` : a ? `after ${a}` : "time not logged";e.label = "";}i = j;}- const lanes = BASE.slice();+ const lanes = (own || BASE).slice();E.forEach(e => { if (!lanes.some(l => l.id === e.lane)) lanes.push({id:e.lane, name:e.laneRaw || e.lane, abbr:(e.laneRaw || e.lane).slice(0, 6), sub:""}); });return {date: String(raw.date || raw._id || ""), title: String(raw.title || ""), E, lanes, start, end, dayNames: arr(raw.dayNames)};}@@ -600,7 +640,7 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,D.lanes.forEach(l => {h += `<div class="rp-lane ${l.id === "owner" ? "owner" : ""} ${used.has(l.id) ? "" : "idle"}" data-lane="${esc(l.id)}"><div class="ln"><span class="full">${esc(l.name)}</span><span class="abbr">${esc(l.abbr)}</span>${l.sub ? `<small>${esc(l.sub)}</small>` : ""}</div><div class="tr">`;D.E.forEach((e, i) => {- if (e.lane === l.id && !(l.id === "owner" && e.gate)) h += `<i class="dot ${e.min == null ? "un" : e.ap ? "ap" : ""} ${e.lane === "main" || e.lane === "owner" ? "m-main" : ""}" data-i="${i}" style="left:${X(e.pos)}"></i>`;+ if (e.lane === l.id && !(l.id === "owner" && e.gate)) h += `<i class="dot ${e.min == null ? "un" : e.ap ? "ap" : ""} ${/^(main|owner|dir)$/.test(e.lane) ? "m-main" : ""}" data-i="${i}" style="left:${X(e.pos)}"></i>`;if (l.id === "owner" && e.gate) h += `<i class="gmk ${e.gate}" data-i="${i}" style="left:${X(e.pos)}"></i>`;});h += `</div></div>`;@@ -640,7 +680,7 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,else { clockEl.className = "c win"; clockEl.textContent = /\d:\d/.test(a.win) ? a.win.replace(/–/g, " – ") : a.win; clockS.textContent = withDay("in order · time not logged", a); }scrub.value = i; cntEl.textContent = `${String(i + 1).padStart(2, "0")} / ${String(n).padStart(2, "0")}`;const prev = D.E.slice(Math.max(0, i - 3), i).reverse();- nowEl.innerHTML = `<div class="rp-card"><div class="meta"><span style="color:var(--text-2)">${esc(withDay(a.label || a.win, a))}</span><span>${esc(laneName(a.lane))}</span>${chip(a.model, modelCls(a.model))}</div>+ nowEl.innerHTML = `<div class="rp-card"><div class="meta"><span style="color:var(--text-2)">${esc(withDay(a.label || a.win, a))}</span>${a.model === laneName(a.lane) ? "" : `<span>${esc(laneName(a.lane))}</span>`}${chip(a.model, modelCls(a.model))}</div><p class="what">${links(esc(a.what))}</p>${a.gate ? `<div class="gateline"><i class="gm ${a.gate}" aria-hidden="true"></i>${esc(GATES[a.gate])}</div>` : ""}</div><div class="rp-prev"><div class="kick" style="margin-bottom:4px">Just before</div><ol>${prev.length ? prev.map(e => `<li><i>${esc(e.label || "–")}</i><span>${esc(e.what)}</span></li>`).join("") : `<li><i>·</i><span>The day starts here.</span></li>`}${i < n - 1 ? `<li class="nx"><i>next</i><span>${esc(D.E[i + 1].what)}</span></li>` : ""}</ol></div>`;@@ -658,8 +698,8 @@ const DAY_1011 = {date:"2026-10-11", title:"10–11 Oct: 0.4.2 waits for green,scrub.addEventListener("input", () => { const n = D.E.length, len = root.offsetHeight - window.innerHeight + TOP, top0 = root.getBoundingClientRect().top + window.scrollY - TOP;window.scrollTo({top: top0 + (+scrub.value + .5) / n * len, behavior:"auto"}); });- const DAYS = [DAY_0909, DAY_1011], pickBtns = [...document.querySelectorAll(".rp-day")];- function pickDay(i) { pickBtns.forEach((x, j) => x.setAttribute("aria-pressed", j === i ? "true" : "false")); D = norm(DAYS[i]); build(); }+ const DAYS = [DAY_0909, DAY_1011, DAY_1015], pickBtns = [...document.querySelectorAll(".rp-day")];+ function pickDay(i) { pickBtns.forEach((x, j) => x.setAttribute("aria-pressed", j === i ? "true" : "false")); $(".rp-src").textContent = DAYS[i].src || "from the day log"; D = norm(DAYS[i]); build(); }pickBtns.forEach((x, i) => x.addEventListener("click", () => { pickDay(i); const r = root.getBoundingClientRect(); if (r.top < 0) window.scrollTo({top: r.top + window.scrollY - TOP, behavior: "auto"}); }));pickDay(0);let rz; window.addEventListener("resize", () => { clearTimeout(rz); rz = setTimeout(() => { if (D) build(); }, 150); });@@ -1065,9 +1105,323 @@ stepper("#caseStall", "Issue #24", [run();})();+/* ================= EDITION 2 ================= each instrument starts near the viewport; nothing autoplays */+const lazy = (sel, fn) => { const el = $(sel); if (!el) return;+ if (!("IntersectionObserver" in window)) return fn(el);+ const io = new IntersectionObserver(es => { if (es.some(e => e.isIntersecting)) { io.disconnect(); fn(el); } }, {rootMargin: "400px 0px"});+ io.observe(el); };+const css = v => getComputedStyle($(".harness")).getPropertyValue(v).trim();+const pressOne = (btns, b) => btns.forEach(x => x.setAttribute("aria-pressed", x === b ? "true" : "false"));+const mmss = t => `${Math.floor(t / 60)}:${(t % 60).toFixed(1).padStart(4, "0")}`;++/* one list, two views: the ledger rows live in the page (#ledgerData, also the no-JS text); the cards and the+ scars wall's edition 2 filter are drawn from them */+const LEDGER = [...document.querySelectorAll("#ledgerData > li")].filter(li => ["t", "r", "m", "w", "who", "c", "b"].every(c => li.querySelector("." + c))).map(li => { const f = c => li.querySelector("." + c).textContent;+ return {d:li.dataset.d, k:li.dataset.k.split(" "), l:li.dataset.l.split("|"), t:f("t").replace(/\.$/, ""), r:f("r"), m:f("m").replace(/\.$/, ""),+ s:[...li.querySelectorAll(".s li")].map(x => x.textContent), w:f("w"), who:f("who"), c:f("c"), b:f("b")}; });++(function edition() {+ const sw = $("#edSwitch"), root = $(".harness"); if (!sw) return;+ document.querySelectorAll(".harness section[data-ed]").forEach(sec => {+ const k = sec.dataset.ed, c = `<em class="ed-chip ${k}">${k === "new" ? "New" : "Updated"}</em>`;+ const no = sec.querySelector(".sec-no, .eyebrow"); if (no) no.insertAdjacentHTML("beforeend", c);+ const a = sec.id && $(`.index a[href="#${sec.id}"]`); if (a) { a.dataset.ed = k; a.insertAdjacentHTML("beforeend", c); }+ });+ sw.hidden = false;+ sw.addEventListener("click", () => { const on = sw.getAttribute("aria-checked") !== "true";+ sw.setAttribute("aria-checked", String(on)); root.classList.toggle("ed-diff", on); });+})();++lazy("#ledgerCards", el => {+ /* a practice per card: the rule and how to set it up on the front; the miss behind it on the back */+ el.innerHTML = LEDGER.map((r, i) => `<article class="lc"><div class="lc-in">+ <div class="lc-f"><div class="lc-n"><b>${String(i + 1).padStart(2, "0")}</b><span>Practice</span></div><h3>${esc(r.t)}</h3><p class="lc-r">${esc(r.r)}</p>+ <details class="lc-s" open><summary>Set it up</summary><ol>${r.s.map(x => `<li>${esc(x)}</li>`).join("")}</ol></details>+ <div class="lc-tags">${r.k.map(k => `<span class="tag ${k === "check" ? "amber" : "dim"}">${k}</span>`).join(" ")}</div></div>+ <div class="lc-b" id="lcb${i}"><div class="lc-n"><b>${String(i + 1).padStart(2, "0")}</b><span>${esc(r.d)}</span></div><h3>${esc(r.m)}</h3><p>${esc(r.w)}</p>+ <dl><div><dt>Noticed by</dt><dd>${esc(r.who)}</dd></div><div class="cost"><dt>What it cost</dt><dd>${esc(r.c)}</dd></div><div><dt>What it became</dt><dd>${esc(r.b)}</dd></div></dl>+ <a href="#scar-e2-${i + 1}" tabindex="-1">Its card on the scars wall</a></div></div>+ <button type="button" class="lc-btn" aria-expanded="false" aria-controls="lcb${i}">The miss behind it</button></article>`).join("");+ el.addEventListener("click", e => {+ const b = e.target.closest(".lc-btn"); if (!b) return;+ const card = b.closest(".lc"), on = b.getAttribute("aria-expanded") !== "true";+ b.setAttribute("aria-expanded", String(on)); card.classList.toggle("flip", on);+ b.textContent = on ? "Back to the practice" : "The miss behind it";+ card.querySelector(".lc-b a").tabIndex = on ? 0 : -1;+ });+ const n = LEDGER.filter(r => r.k.includes("check")).length, sum = $("#ledgerSum");+ const W = ["none","one","two","three","four","five","six"];+ if (sum) sum.textContent = `${W[n].replace(/^./, c => c.toUpperCase())} of the six became code. The other ${W[6 - n]} are written rules, which hold only while every session reads them; in edition 1, 22 of 41 rules had code behind them.`;+});++/* ---------- N1 · the verdict was for an earlier cut ---------- */+lazy("#vc", vc => {+ const FW = 1600, FH = 900, TR = {x:40, y:60, s:1.1}; /* the lanes panel's transform, film pixels */+ /* the text a render draws at time t, in the panel's units */+ const texts = (r, t) => { const k = Math.round(t * 10), o = [];+ if (k >= 455 && k <= 472) o.push({n:"label b", x:560, y:420, w:420, h:56, f:"500 40px", c:"rgba(170,184,196,.7)"});+ if (t >= 38) o.push(r === 7 ? {n:"LABEL A", x:560, y:180, w:300, h:72, f:"800 52px", c:"#ff7262"} : {n:"LABEL A", x:640, y:404, w:300, h:72, f:"800 52px", c:"#ff7262"});+ return o; };+ /* boxes through the transform; an overlap of more than 4 px both ways is a hit */+ const box = b => ({l:TR.x + b.x * TR.s, t:TR.y + b.y * TR.s, r:TR.x + (b.x + b.w) * TR.s, b:TR.y + (b.y + b.h) * TR.s, n:b.n});+ const test = (r, t) => { const B = texts(r, t).map(box), hits = [];+ for (let i = 0; i < B.length; i++) for (let j = i + 1; j < B.length; j++) {+ const ox = Math.min(B[i].r, B[j].r) - Math.max(B[i].l, B[j].l), oy = Math.min(B[i].b, B[j].b) - Math.max(B[i].t, B[j].t);+ if (ox > 4 && oy > 4) hits.push({a:B[i], b:B[j], ox, oy});+ } return {B, hits}; };+ const thumb = r => `<svg viewBox="0 0 160 90" aria-hidden="true"><rect width="160" height="90" class="th-bg"/><path d="M8 28h144M8 56h144" class="th-ln"/>+ <rect x="${r === 7 ? 62 : 70}" y="${r === 7 ? 24 : 47}" width="34" height="8" class="th-a"/><rect x="62" y="49" width="46" height="6" class="th-b"/>${r === 10 ? '<rect x="62" y="24" width="34" height="8" class="th-was"/>' : ""}</svg>`;+ vc.innerHTML = `<div class="vc-tl" role="group" aria-label="Renders of one film. Select final-7 or final-10 to load it into the player">+ <button type="button" class="vc-r" data-r="7" aria-pressed="true">${thumb(7)}<b>final-7</b><span class="stamp g">post it</span><small>critic round 2 judged this one</small></button>+ <div class="vc-r faint" aria-hidden="true"><b>final-8</b><small>a later render</small></div>+ <div class="vc-r faint fx" aria-hidden="true"><b>final-9</b><small>a later render; the critic’s fixes land in final-10</small></div>+ <button type="button" class="vc-r" data-r="10" aria-pressed="false">${thumb(10)}<b>final-10</b><span class="stamp ghost">post it</span><small><span class="tag">sent</span> verdict carried, not re-judged; the director checked its contact sheet and passed it too</small></button>+ </div>+ <div class="vc-pl"><canvas class="vc-cv" role="img"></canvas>+ <div class="vc-now" aria-live="polite"></div>+ <div class="vc-scr"><div class="vc-sl" role="slider" tabindex="0" aria-label="Time in the synthetic film" aria-valuemin="0" aria-valuemax="60">+ <div class="vc-track"><i class="vc-fill"></i><i class="vc-th"></i></div>+ <canvas class="vc-lane" aria-hidden="true"></canvas>+ </div><div class="vc-lk">the test, every 0.1 s, above<span>untested</span><span class="ok">no overlap</span><span class="hit">overlap</span></div></div>+ <div class="vc-ctl"><div><button class="btn" type="button" data-a="sweep">Sweep every 0.1 s</button> <button class="btn ghost" type="button" data-a="clear">Clear the lane</button></div><p class="vc-sw" aria-live="polite"></p>+ <p class="note">Dashed boxes are the text boxes the test measures, through the panel’s transform; red is where two overlap. Arrow keys move 0.1 s, Shift and an arrow 1 s.</p></div>+ </div>`;+ const cv = $(".vc-cv", vc), lane = $(".vc-lane", vc), sl = $(".vc-sl", vc), now = $(".vc-now", vc), swr = $(".vc-sw", vc);+ const rbtn = [...vc.querySelectorAll("button.vc-r")];+ const res = {7: new Int8Array(601), 10: new Int8Array(601)};+ let r = 7, k = 460, sweeping = 0;+ const fit = c => { const w = c.clientWidth, h = c.clientHeight, d = Math.min(2, window.devicePixelRatio || 1);+ if (c.width !== Math.round(w * d)) { c.width = Math.round(w * d); c.height = Math.round(h * d); } return d; };+ function film(t, T) {+ const d = fit(cv), x = cv.getContext("2d"), s = cv.width / FW;+ x.setTransform(s, 0, 0, s, 0, 0);+ x.fillStyle = "#0b1118"; x.fillRect(0, 0, FW, FH);+ x.strokeStyle = "rgba(120,170,200,.08)"; x.lineWidth = 1;+ for (let g = 0; g <= FW; g += 80) { x.beginPath(); x.moveTo(g, 0); x.lineTo(g, FH); x.stroke(); }+ x.font = "500 30px 'IBM Plex Mono',monospace"; x.fillStyle = "#81909c";+ x.fillText("SYNTHETIC FILM · DRAWN FOR THIS PAGE", 40, 44); x.textAlign = "right"; x.fillText(`final-${r} · ${mmss(t)}`, FW - 40, 44); x.textAlign = "left";+ x.save(); x.translate(TR.x, TR.y); x.scale(TR.s, TR.s);+ [[120, "lane 1"], [380, "lane 2"]].forEach(([y, n]) => { x.strokeStyle = "#34485b"; x.strokeRect(40, y, 1300, 200); x.fillStyle = "#81909c"; x.font = "500 28px 'IBM Plex Mono',monospace"; x.fillText(n, 56, y + 36); });+ x.strokeStyle = "#66d8ea"; x.lineWidth = 3; x.beginPath();+ for (let i = 0; i <= 260; i++) { const u = i / 260, y = 330 + Math.sin(u * 18 + t * 1.3) * 34 * Math.sin(u * 3.1 + .4) - 110; i ? x.lineTo(60 + u * 1260, y) : x.moveTo(60 + u * 1260, y); }+ x.stroke();+ texts(r, t).forEach(b => { x.font = `${b.f} 'IBM Plex Sans',sans-serif`; x.fillStyle = b.c; x.textBaseline = "middle";+ const m = x.measureText(b.n).width, sc = Math.min(1, (b.w - 16) / m); x.save(); x.translate(b.x + 8, b.y + b.h / 2); x.scale(sc, 1); x.fillText(b.n, 0, 0); x.restore(); });+ x.restore(); x.textBaseline = "alphabetic";+ T.B.forEach(b => { x.strokeStyle = "rgba(102,216,234,.85)"; x.setLineDash([8, 6]); x.lineWidth = 2; x.strokeRect(b.l, b.t, b.r - b.l, b.b - b.t); });+ x.setLineDash([]);+ T.hits.forEach(h => { const l = Math.max(h.a.l, h.b.l), tp = Math.max(h.a.t, h.b.t);+ x.fillStyle = "rgba(255,114,98,.35)"; x.fillRect(l, tp, h.ox, h.oy); x.strokeStyle = "#ff7262"; x.lineWidth = 3; x.strokeRect(l, tp, h.ox, h.oy); });+ x.fillStyle = "#223040"; x.fillRect(40, FH - 40, FW - 80, 6); x.fillStyle = "#ffb547"; x.fillRect(40, FH - 40, (FW - 80) * t / 60, 6);+ }+ function drawLane() {+ const d = fit(lane), x = lane.getContext("2d"), w = lane.width, h = lane.height, R = res[r], cw = w / 600;+ x.clearRect(0, 0, w, h); x.fillStyle = css("--bg-3"); x.fillRect(0, 0, w, h);+ const col = [null, css("--green"), css("--red")];+ for (let i = 0; i < 600; i++) if (R[i]) { x.globalAlpha = R[i] === 1 ? .45 : 1; x.fillStyle = col[R[i]]; x.fillRect(Math.floor(i * cw), 0, Math.floor((i + 1) * cw) - Math.floor(i * cw), h); }+ x.globalAlpha = 1; x.fillStyle = css("--amber"); x.fillRect(Math.round(k / 600 * w) - d, 0, 2 * d, h);+ }+ function set(nk, quiet) {+ k = Math.max(0, Math.min(600, Math.round(nk))); const t = k / 10, T = test(r, t);+ if (k < 600) res[r][k] = T.hits.length ? 2 : 1;+ film(t, T); drawLane();+ $(".vc-fill", vc).style.width = $(".vc-th", vc).style.left = (k / 6) + "%";+ sl.setAttribute("aria-valuenow", t.toFixed(1)); sl.setAttribute("aria-valuetext", `${t.toFixed(1)} seconds`);+ const msg = T.hits.length ? `${mmss(t)} · ${T.B.length} texts drawn · ${T.hits[0].b.n} over ${T.hits[0].a.n}: ${Math.round(T.hits[0].ox)} × ${Math.round(T.hits[0].oy)} px` : `${mmss(t)} · ${T.B.length === 1 ? "1 text" : T.B.length + " texts"} drawn · no overlap`;+ cv.setAttribute("aria-label", `Synthetic film, final-${r}, at ${msg}`);+ now.classList.toggle("hit", !!T.hits.length);+ if (!quiet) now.textContent = msg;+ }+ function summary() {+ const R = res[r], hit = []; for (let i = 0; i < 600; i++) if (R[i] === 2) hit.push(i);+ swr.textContent = hit.length ? `Sweep of final-${r}: overlap from ${mmss(hit[0] / 10)} to ${mmss(hit[hit.length - 1] / 10)}, ${hit.length} samples` : `Sweep of final-${r}: no overlap at any 0.1 s`;+ }+ function sweep() {+ if (sweeping) return; const back = k;+ if (reduced) { for (let i = 0; i < 600; i++) set(i, true); set(back); summary(); return; }+ let i = 0; sweeping = 1;+ const step = () => { for (let n = 0; n < 6 && i < 600; n++) set(i++, true); if (i < 600) requestAnimationFrame(step); else { sweeping = 0; set(back); summary(); } };+ requestAnimationFrame(step);+ }+ rbtn.forEach(b => b.addEventListener("click", () => { r = +b.dataset.r; pressOne(rbtn, b); swr.textContent = ""; set(k); }));+ vc.querySelector('[data-a="sweep"]').addEventListener("click", sweep);+ vc.querySelector('[data-a="clear"]').addEventListener("click", () => { res[r].fill(0); swr.textContent = ""; set(k); });+ const fromX = e => { const b = $(".vc-track", vc).getBoundingClientRect(); return (e.clientX - b.left) / b.width * 600; };+ sl.addEventListener("pointerdown", e => { sl.setPointerCapture(e.pointerId); sl.focus(); set(fromX(e)); });+ sl.addEventListener("pointermove", e => { if (sl.hasPointerCapture(e.pointerId)) set(fromX(e)); });+ sl.addEventListener("keydown", e => {+ const st = e.shiftKey ? 10 : 1, m = {ArrowRight:st, ArrowUp:st, ArrowLeft:-st, ArrowDown:-st, PageUp:10, PageDown:-10}[e.key];+ if (m) set(k + m); else if (e.key === "Home") set(0); else if (e.key === "End") set(600); else return;+ e.preventDefault();+ });+ let rz; window.addEventListener("resize", () => { clearTimeout(rz); rz = setTimeout(() => set(k, true), 150); });+ const mo = new MutationObserver(() => set(k, true)); mo.observe(document.documentElement, {attributes:true, attributeFilter:["data-theme"]});+ set(k);+});++/* ---------- N2 · what a compaction keeps ---------- */+lazy("#cmp", cmp => {+ const MAX = 13500, P = v => (v / MAX * 100).toFixed(2) + "%";+ const st = $("#cmpStage"), rd = $("#cmpRead"), btns = [...cmp.querySelectorAll(".cmp-bar .btn")];+ const LINES = {+ old: [["p", "practices · first lines"], ["p2", "practices · later lines"], ["s", "this session’s state: what it was doing, what it promised"]],+ new: [["c", "rules card · first line: read the full practices before anything else"], ["s", "this session’s own state file, matched by its session id"]]+ };+ const READ = {+ old: "Old hook, reconstructed from the files: it would have printed 12,957 characters, and only a 2,000-character preview arrives. The session’s own state was printed last, so it was the first thing lost. This happened on 2 of the director’s 9 compactions under the old hook.",+ new: "New hook: a short rules card and this session’s own state file, under the line. Both arrive whole.",+ after: "After the compaction the session sits idle: a compaction doesn’t start a turn. A message from the director wakes it, and it resumes from its state file."+ };+ function show(s) {+ const o = s === "old", a = s === "after";+ st.innerHTML = `<div class="cmp-out${a ? " dim" : ""}"><div class="cmp-lab"><span>hook output</span><span class="num">${o ? "<b>12,957</b> to print · <b>2,000</b> arrived (reconstructed)" : "arrived whole"}</span></div>+ <div class="cmp-track">${o ? `<div class="seg p" style="width:${P(8770)}"><span>practices</span></div><div class="seg s" style="left:${P(8770)};width:${P(4187)}"><span>state</span></div>+ <div class="cut" style="right:${P(MAX - 12957)};--w:${P(10957)}"></div><i class="mk pv" style="left:${P(2000)}"><span>preview</span></i>`+ : `<div class="seg c" style="width:${P(2400)}"><span>card</span></div><div class="seg s" style="left:${P(2400)};width:${P(4300)}"><span>state file</span></div><i class="mk bd" style="left:${P(9000)}"><span>budget</span></i>`}+ <i class="mk cap" style="left:${P(10000)}"><span>cap</span></i></div></div>+ <div class="cmp-sess${a ? " idle" : ""}"><div class="cmp-sh"><span>the session, after a compaction</span><span class="state">${a ? "idle" : "reading"}</span></div>+ ${a ? `<p class="cmp-idle">idle: a compaction doesn’t start a turn</p><div class="env"><i aria-hidden="true"></i>from the director: resume from your state file</div><p class="cmp-wake">working again, from its own state file</p>`+ : `<ol class="${o ? "old" : ""}">${LINES[o ? "old" : "new"].map(([c, t], i) => `<li class="${c}" style="--d:${o ? [.9, .45, 0][i] : 0}s">${esc(t)}</li>`).join("")}</ol>${o ? `<p class="cmp-pv">output saved to a file · the session gets a preview of the first 2,000 characters</p>` : ""}`}+ </div>`;+ rd.textContent = READ[s];+ requestAnimationFrame(() => requestAnimationFrame(() => { st.classList.add("go");+ if (a) setTimeout(() => { const e = $(".cmp-sess", st); if (e) { e.classList.remove("idle"); $(".state", e).textContent = "working"; } }, reduced ? 0 : 1300); }));+ st.classList.remove("go");+ }+ btns.forEach(b => b.addEventListener("click", () => { pressOne(btns, b); show(b.dataset.s); }));+ show("old");+});++/* ---------- N3 · one session became many ---------- */+lazy("#lns", root => {+ const svg = $("#lnsSvg"), panel = $("#lnsPanel"), K = $("#lnsK"), T = $("#lnsT"), playB = $("#lnsPlay");+ const vbtn = [...root.querySelectorAll("[data-v]")];+ const LN = [["release code", "The 0.4.6 pull requests, and the checks that go into showtime."],+ ["reviews", "The reviewer session. It reads every pull request, and its verdict is part of the merge gate."],+ ["films", "Films made with showtime. Each aspect is checked as its own film."],+ ["experiment", "A measured experiment and its write-up."],+ ["this article", "This page and the article that goes with it."], ["", "A lane not named here."], ["", "A lane not named here."]];+ const ENV = [["dir", 5, "a brief, from the director to a new lane"], [0, 1, "a new PR head, sent to the reviewer"],+ ["dir", 2, "resume from your state file, after a compaction"], [1, 0, "a verdict back to the lane"]];+ let view = "many", playing = false, clock = 0, last = 0, vis = true, blocks = 13, fill = .18, sel = -1, geo;+ const wide = () => root.clientWidth >= 700;+ function layout() {+ if (wide()) { const W = 1000; return {W, H:420, D:{x:380, y:20, w:240, h:110}, L:LN.map((_, i) => ({x:6 + i * 141.6, y:300, w:130, h:84})),+ edge:(d, l) => `M${d.x + d.w / 2},${d.y + d.h} C${d.x + d.w / 2},${(d.y + d.h + l.y) / 2 + 20} ${l.x + l.w / 2},${(d.y + d.h + l.y) / 2 - 20} ${l.x + l.w / 2},${l.y}`}; }+ return {W:360, H:640, D:{x:60, y:8, w:240, h:110}, L:LN.map((_, i) => ({x:56, y:150 + i * 68, w:296, h:56})),+ edge:(d, l) => `M${d.x},${d.y + d.h / 2} H26 V${l.y + l.h / 2} H${l.x}`};+ }+ function draw() {+ const g = geo = layout(); svg.setAttribute("viewBox", `0 0 ${g.W} ${g.H}`); svg.classList.toggle("tall", !wide());+ let h = `<g class="ln-edges">${g.L.map((l, i) => `<path class="edge" id="lnE${i}" d="${g.edge(g.D, l)}"/>`).join("")}</g>`;+ h += `<g class="node k-amber${sel === -1 ? " sel" : ""}" data-i="-1" tabindex="0" role="button" aria-label="The director: show what it keeps"><rect class="box" x="${g.D.x}" y="${g.D.y}" width="${g.D.w}" height="${g.D.h}"/><rect class="bar" x="${g.D.x}" y="${g.D.y}" width="4" height="${g.D.h}"/>+ <text class="nl" x="${g.D.x + 16}" y="${g.D.y + 26}">director</text><text class="ns" x="${g.D.x + 16}" y="${g.D.y + 44}">THE ONE LIST · MERGES · FAVIO</text>+ <rect class="gauge" x="${g.D.x + 16}" y="${g.D.y + 58}" width="${g.D.w - 32}" height="10"/><rect class="gfill" id="lnsG" x="${g.D.x + 16}" y="${g.D.y + 58}" width="${(g.D.w - 32) * fill}" height="10"/>+ <text class="ns" x="${g.D.x + 16}" y="${g.D.y + 92}" id="lnsB">RESUME BLOCKS WRITTEN: ${blocks}</text></g>`;+ h += g.L.map((l, i) => `<g class="node lane${LN[i][0] ? "" : " k-dim un"}${sel === i ? " sel" : ""}" data-i="${i}" tabindex="0" role="button" aria-label="${LN[i][0] ? LN[i][0] : "a lane not named here"}: show the shape of its state file" style="--i:${i}">+ <rect class="box" x="${l.x}" y="${l.y}" width="${l.w}" height="${l.h}"/><rect class="bar" x="${l.x}" y="${l.y}" width="4" height="${l.h}"/>+ <text class="nl" x="${l.x + 14}" y="${l.y + (wide() ? 32 : 25)}">${LN[i][0] || "not named"}</text><text class="ns" x="${l.x + 14}" y="${l.y + (wide() ? 54 : 44)}">STATE FILE</text></g>`).join("");+ h += `<g id="lnsEnv" class="env-g" opacity="0"><rect x="-10" y="-7" width="20" height="14" rx="1"/><path d="M-10,-7 L0,1 L10,-7"/></g>`;+ svg.innerHTML = h; svg.classList.toggle("one", view === "one");+ }+ function info(i) {+ sel = i; svg.querySelectorAll(".node").forEach(n => n.classList.toggle("sel", +n.dataset.i === i));+ const nm = i < 0 ? "director" : LN[i][0] || "a lane not named here";+ panel.innerHTML = `<h3>${esc(nm)}</h3><div class="sub">${i < 0 ? "the director session" : "a lane session · the shape of its state file"}</div>+ <p>${i < 0 ? "Keeps the one list of what is open, merges, and talks to Favio. From 8 Oct until the work split into lanes on 15 Oct it was compacted 19 times, and before at least 12 of those it wrote a resume block into its state file." : esc(LN[i][1])}</p>+ <pre class="sf">${i < 0 ? "# RESUME HERE (written before a compaction)\nRead this, then the open list.\n\n## Waiting on the owner\n- <item>: <the decision needed>\n\n## Running\n- <lane>: <how you’ll know it’s done>"+ : "# the lane’s state file\ncwd: <its working folder>\nsession: <its session id>\nupdated: <date, time>\n\n## Now\n- <what it is doing; how the director\n will know it is done>\n\n## Promises\n- <what it promised, and to whom>"}</pre>+ <p class="note">Values are placeholders. The start-up hook finds this file by the session’s id and puts it in context after every compaction.</p>`;+ }+ function setView(v) { view = v; pressOne(vbtn, vbtn.find(b => b.dataset.v === v)); svg.classList.toggle("one", v === "one");+ svg.setAttribute("viewBox", `0 0 ${geo.W} ${v === "one" && !wide() ? 130 : geo.H}`);+ K.textContent = v === "one" ? "one session did almost everything" : "seven lanes today; two not named";+ T.textContent = v === "one" ? "planning, merging, releases, articles, films: and 19 compactions before the lane split on 15 Oct" : reduced || !playing ? "messages: a brief · a new PR head to the reviewer · resume from your state file · a verdict back" : ""; }+ function gauge(f, b) { fill = f; blocks = b; const G = $("#lnsG"), B = $("#lnsB"); if (G) G.setAttribute("width", (geo.D.w - 32) * f); if (B) B.textContent = `RESUME BLOCKS WRITTEN: ${b}`; }+ function setPlay(v) { playing = v && !reduced; playB.setAttribute("aria-pressed", String(playing)); playB.textContent = playing ? "Pause" : "Play";+ if (v && reduced) { gauge(.18, 13); setView("many"); }+ if (playing) { if (clock === 0) { gauge(0, 0); setView("one"); } last = performance.now(); requestAnimationFrame(tick); } }+ function envAt(e, u) { /* lane to lane goes through the director */+ const seg = [], [a, b] = e; if (a !== "dir") seg.push([a, true]); seg.push([b, false]);+ const n = seg.length, j = Math.min(n - 1, Math.floor(u * n)), v = u * n - j, p = $("#lnE" + seg[j][0]), L = p.getTotalLength();+ return p.getPointAtLength(seg[j][1] ? L * (1 - v) : L * v);+ }+ function tick(t) {+ if (!playing) return;+ const dt = Math.min(.1, (t - last) / 1000); last = t; if (vis) clock += dt;+ const E = $("#lnsEnv");+ if (clock < 6.5) { const c = clock / .5, f = c % 1; gauge(f < .8 ? .15 + f / .8 * .85 : 1 - (f - .8) / .2 * .82, Math.min(13, Math.floor(c + .2))); }+ else if (view === "one") { gauge(.18, 13); setView("many"); T.textContent = ""; }+ else if (clock > 7.5) { const q = (clock - 7.5) / 1.8, e = ENV[Math.floor(q) % ENV.length], u = q % 1;+ const pt = envAt(e, Math.min(1, u / .85)); E.setAttribute("transform", `translate(${pt.x},${pt.y})`); E.setAttribute("opacity", u > .92 ? 0 : 1);+ T.textContent = e[2]; }+ requestAnimationFrame(tick);+ }+ vbtn.forEach(b => b.addEventListener("click", () => { setPlay(false); clock = 0; gauge(b.dataset.v === "one" ? .7 : .18, 13); setView(b.dataset.v); const E = $("#lnsEnv"); if (E) E.setAttribute("opacity", 0); }));+ playB.addEventListener("click", () => setPlay(!playing));+ const act = e => { const n = e.target.closest(".node"); if (n) info(+n.dataset.i); };+ svg.addEventListener("click", act);+ svg.addEventListener("keydown", e => { if (e.key === "Enter" || e.key === " ") { e.preventDefault(); act(e); } });+ new IntersectionObserver(es => { vis = es[0].isIntersecting; }).observe(svg);+ let rz, ww = wide(); window.addEventListener("resize", () => { clearTimeout(rz); rz = setTimeout(() => { if (wide() !== ww) { ww = wide(); draw(); } }, 150); });+ draw(); setView("many"); info(-1);+});++/* ---------- N5 · three days, measured ---------- */+lazy("#ttm", () => {+ /* merged PRs, in merge order: minutes after 9 Oct 00:00 UTC, hours open × 1000, added lines */+ const RAW = "40,830,165;308,4650,114;308,4658,82;368,586,43;406,1011,46;406,1377,18;446,7013,590;465,1677,350;468,2,13;530,2804,113;567,3929,213;734,5936,22;759,5206,313;838,3202,385;897,5076,123;941,5092,211;1024,2359,131;1024,2551,26;1024,2743,52;1049,117,11;1052,4693,124;1058,3406,38;1354,2708,28;1367,2868,66;1445,4149,82;1449,4192,83;1573,6221,93;1718,8638,223;1833,9456,37;1858,9123,56;2015,12250,1552;2016,6291,258;2017,3468,642;2017,6184,647;2660,7055,285;2666,2502,39;2778,1084,99;2858,1139,9;2933,897,89;3035,976,20;3243,1024,108;3419,3124,265;3707,446,15;4078,2794,128;4236,825,12;4285,290,23;4324,425,71;4722,4358,2490;4782,852,4;4886,5651,3316;5464,12934,4076;5487,3375,2870;5678,13081,510;5703,7195,285;5727,16334,158;5842,7757,2868;5876,3510,253;5989,3041,897;6063,741,6232;6203,677,19;7048,7866,12250;7048,10852,4087;7849,1596,94;7852,1649,39;7971,3261,1175;8180,7110,969;8242,2038,340;8306,882,65;8325,321,137;8335,221,19;8363,174,132;8392,49,16;8420,79,2;8458,81,3;8554,680,12;9197,2572,264;9234,2231,344;9255,3303,69;9263,998,106;9323,712,173;9359,1309,78;9547,1805,651;9702,1335,162;9811,1693,68;9824,1498,691;9834,3669,151;9879,2924,335;9911,3471,194;9928,1555,135;9978,994,35;10114,3178,776;10162,478,16;10276,627,161;10326,350,49;10348,215,36;10535,255,3;10682,1280,99;10846,890,170;10905,210,62";+ const ART = 5383.35, END = 11160, D0 = Date.UTC(2026, 9, 9);+ const PR = RAW.split(";").map(s => { const [m, h, a] = s.split(",").map(Number); return {m, h:h / 1000, a, since:m >= ART}; });+ const RULES = [[ART, "first article"], [6761, "0.4.3"], [7045, "0.4.4"], [8857, "0.4.5"], [10995, "0.4.6"]];+ const plot = $("#ttmPlot"), read = $("#ttmRead"), cmpB = $("#ttmCmp");+ const when = m => { const d = new Date(D0 + m * 60000); return `${d.getUTCDate()} Oct ${String(d.getUTCHours()).padStart(2, "0")}:${String(d.getUTCMinutes()).padStart(2, "0")}`; };+ const hrs = h => h < 1 / 60 ? "under a minute" : h < 1 ? `${Math.round(h * 60)} min` : `${h.toFixed(1)} h`;+ const say = p => `Merged ${when(p.m)} UTC · open ${hrs(p.h)} · ${p.a.toLocaleString("en-US")} added lines${p.since ? "" : " · first four days"}`;+ $("#ttmRows").innerHTML = PR.slice().sort((a, b) => a.m - b.m).map(p => `<tr${p.since ? "" : ' class="pre"'}><td class="n">${when(p.m)}</td><td class="n">${p.h.toFixed(2)}</td><td class="n">${p.a.toLocaleString("en-US")}</td></tr>`).join("");+ let cmp = plot.clientWidth >= 640, cur = -1, vis = [], X, Y, M;+ function draw() {+ const w = plot.clientWidth, h = w < 560 ? 300 : 360; M = {l:50, r:12, t:40, b:30};+ const x0 = cmp ? 0 : ART - 360, lo = Math.log(1 / 60), hi = Math.log(24);+ X = m => M.l + (m - x0) / (END - x0) * (w - M.l - M.r);+ Y = v => M.t + (1 - (Math.log(Math.max(1 / 60, v)) - lo) / (hi - lo)) * (h - M.t - M.b);+ vis = PR.filter(p => cmp || p.since).sort((a, b) => a.m - b.m);+ let s = `<svg width="${w}" height="${h}" viewBox="0 0 ${w} ${h}" aria-hidden="true">`;+ [[1 / 60, "1 min"], [1 / 6, "10 min"], [1, "1 h"], [10, "10 h"]].forEach(([v, l]) => { s += `<line class="gy" x1="${M.l}" x2="${w - M.r}" y1="${Y(v)}" y2="${Y(v)}"/><text class="tx" x="${M.l - 6}" y="${Y(v) + 4}" text-anchor="end">${l}</text>`; });+ for (let d = Math.ceil(x0 / 1440); d * 1440 <= END; d++) { const x = X(d * 1440); if (x < M.l) continue;+ s += `<line class="gx" x1="${x}" x2="${x}" y1="${M.t}" y2="${h - M.b}"/>`;+ if (X(d * 1440 + 720) < w - M.r) s += `<text class="tx" x="${X(d * 1440 + 720)}" y="${h - 10}" text-anchor="middle">${9 + d} Oct</text>`; }+ RULES.forEach(([m, l], i) => { const x = X(m), up = i ? 6 : 22; if (x < M.l) return; s += `<line class="rule${i ? "" : " art"}" x1="${x}" x2="${x}" y1="${M.t - up + 2}" y2="${h - M.b}"/><text class="rl" x="${i === 1 || i === RULES.length - 1 ? x - 3 : x + 3}" y="${M.t - up}"${i === 1 || i === RULES.length - 1 ? ' text-anchor="end"' : ""}>${l}</text>`; });+ [[0, ART, 3.0, "median 3.0 h"], [ART, END, 1.56, "median 1.6 h"]].forEach(([a, b, v, l], i) => { if (!cmp && !i) return;+ s += `<line class="med${i ? "" : " pre"}" x1="${Math.max(M.l, X(a))}" x2="${X(b)}" y1="${Y(v)}" y2="${Y(v)}"/><text class="ml" x="${Math.max(M.l, X(a)) + 5}" y="${Y(v) - 5}">${l}</text>`; });+ vis.slice().sort((a, b) => b.a - a.a).forEach(p => { const r = Math.max(2.5, Math.sqrt(Math.min(p.a, 4000) / 4000) * (w < 560 ? 10 : 14));+ s += `<circle class="dt${p.since ? "" : " pre"}" cx="${X(p.m)}" cy="${Y(p.h)}" r="${r}"/>`; });+ s += `<circle class="hl" r="0" cx="0" cy="0"/></svg>`;+ plot.innerHTML = s; pick(cur, true);+ }+ function pick(i, quiet) {+ cur = i; const c = $(".hl", plot); if (!c) return;+ if (i < 0 || !vis[i]) { c.setAttribute("r", 0); if (!quiet) read.textContent = ""; return; }+ const p = vis[i]; c.setAttribute("cx", X(p.m)); c.setAttribute("cy", Y(p.h)); c.setAttribute("r", 9);+ read.textContent = say(p);+ }+ read.textContent = "Hover or tap a dot, or focus the chart and use the arrow keys.";+ const near = e => { const b = plot.getBoundingClientRect(), x = e.clientX - b.left, y = e.clientY - b.top; let best = -1, bd = 900;+ vis.forEach((p, i) => { const d = (X(p.m) - x) ** 2 + (Y(p.h) - y) ** 2; if (d < bd) { bd = d; best = i; } }); return best; };+ plot.addEventListener("pointermove", e => { const i = near(e); if (i >= 0 && i !== cur) pick(i); });+ plot.addEventListener("pointerdown", e => { const i = near(e); if (i >= 0) pick(i); });+ plot.addEventListener("keydown", e => { const m = {ArrowRight:1, ArrowUp:1, ArrowLeft:-1, ArrowDown:-1}[e.key]; if (!m) return; e.preventDefault();+ pick(cur < 0 ? (m > 0 ? 0 : vis.length - 1) : (cur + m + vis.length) % vis.length); });+ cmpB.setAttribute("aria-pressed", String(cmp));+ cmpB.addEventListener("click", () => { const p = vis[cur]; cmp = !cmp; cmpB.setAttribute("aria-pressed", String(cmp)); draw(); cur = p ? vis.indexOf(p) : -1; pick(cur, true); });+ let rz, lw = plot.clientWidth; window.addEventListener("resize", () => { clearTimeout(rz); rz = setTimeout(() => { if (plot.clientWidth !== lw) { lw = plot.clientWidth; draw(); } }, 150); });+ draw();+ const wf = $("#waffle"); if (wf) wf.innerHTML = Array.from({length:181}, (_, i) => `<i class="${i < 137 ? "y" : i < 177 ? "c" : "n"}"></i>`).join("");+});+/* ================= 13 SCARS WALL ================= */(function scars() {- const AREAS = [["all","All"],["devin","Devin"],["tests","Tests & merges"],["films","Films"],["ops","Ops & state"]];+ const AREAS = [["all","All"],["e2","New in edition 2"],["devin","Devin"],["tests","Tests & merges"],["films","Films"],["ops","Ops & state"]];const S = [{a:"tests", d:"11 Oct", t:"The tolerance we almost loosened",w:"An ARM Linux run failed a poster-colour test at 0.754 against a 0.75 tolerance. The first fix raised the tolerance.",@@ -1186,19 +1540,39 @@ stepper("#caseStall", "Issue #24", [c:"Deliverables he couldn’t open.",r:"Copy to the delivery folder the app can open first; phone videos ≤30 MB; HTML as a link.", l:["delivery notes"], go:"#finder"}];+ /* edition 2, 16 Oct: four misses from the day after the six practices */+ const NEW16 = [+ {t:"A failed job read as still running",+ w:"A macOS test job on a release pull request had failed: two tests ran into their 900 s limit. The CI summary showed that job with no result yet, the status line read it as still running, and the report said nothing new had failed. Noticed by Favio.",+ c:"A failed release job went unreported until Favio asked. Its log led to a real bug: a page check could crawl for half an hour or more once a page stopped answering.",+ r:"Read each job’s own result, not the summary, and open the log of any job that did not succeed. In 0.4.6, a page check whose page stops answering ends with an error.", l:["the practices", "the CI checks"]},+ {t:"A PDF checked on page 1",+ w:"A paper’s final PDF went out after a look at its first page. It had a half-empty page with one column, figure pages scattered through the text and no References heading. The next build put figures after the references, under no heading. Noticed by Favio, twice.",+ c:"Two rejected builds of a paper, before it was published.",+ r:"A contact sheet of every page and a full-size look at each, then a reader’s check: every page sits under a heading the reader has seen, in the order one publisher’s own author guide gives.", l:["the practices"]},+ {t:"A speed-up that shortened the wait",+ w:"A setting that makes a deadline test run faster also shortened the time it allowed to open the page. The test passed on a quiet machine and timed out opening the page on a busy one. Noticed by the cloud reviewer.",+ c:"A release fix waited while the cause was found.",+ r:"Opening the page has its own time limit, apart from the speed-up, and the test runs on a quiet and a loaded machine before it merges. It now passes on both.", l:["the test helper", "the practices"]},+ {t:"A pull request that read like someone else wrote it",+ w:"The body of a pull request on Favio’s own repository spoke about him in the third person and listed internal merge rules. Noticed by Favio.",+ c:"The body was rewritten before he merged it.",+ r:"Public text is written in Favio’s own voice and states facts, not the crew’s process. Before anything is posted, a search for process words.", l:["the practices"]}+ ].map((x, i) => ({a:"e2", id:`scar-e2-${i + 7}`, d:"16 Oct", t:x.t, w:esc(x.w), c:esc(x.c), r:esc(x.r), l:x.l, go:"#ledger", more:"Context"}));+ S.unshift(...NEW16, ...LEDGER.map((r, i) => ({a:"e2", id:`scar-e2-${i + 1}`, d:r.d, t:r.m, w:`${esc(r.w)} Noticed by ${esc(r.who)}.`, c:esc(r.c), r:esc(r.b), l:r.l, go:"#ledger"})));const wall = $("#scars"), filt = $("#scarFilt");const name = Object.fromEntries(AREAS);- wall.innerHTML = S.map(s => `<article class="scar" data-a="${s.a}"><div class="hd"><span>${esc(s.d)}</span><span class="ar">${esc(name[s.a])}</span></div><h3>${esc(s.t)}</h3>+ wall.innerHTML = S.map(s => `<article class="scar${s.id ? " e2" : ""}" data-a="${s.a}"${s.id ? ` id="${s.id}"` : ""}><div class="hd"><span>${esc(s.d)}</span><span class="ar">${esc(name[s.a])}</span></div><h3>${esc(s.t)}</h3><dl><div><dt>What happened</dt><dd>${links(s.w)}</dd></div><div class="cost"><dt>What it cost</dt><dd>${s.c}</dd></div></dl><div class="rule"><div class="k">The rule now</div><p>${links(s.r)}</p></div>- <div class="lives"><span class="k">Lives in</span>${s.l.map(x => `<span class="chip">${esc(x)}</span>`).join("")}<a href="${s.go}">Context</a></div></article>`).join("");+ <div class="lives"><span class="k">Lives in</span>${s.l.map(x => `<span class="chip">${esc(x)}</span>`).join("")}<a href="${s.go}">${s.more || (s.id ? "Its practice" : "Context")}</a></div></article>`).join("");$("#scarN").innerHTML = `${S.length}`;filt.innerHTML = AREAS.map(([k, l], i) => `<button type="button" data-a="${k}" aria-pressed="${i === 0}">${esc(l)}<small>${k === "all" ? S.length : S.filter(s => s.a === k).length}</small></button>`).join("");- filt.addEventListener("click", e => {- const b = e.target.closest("button"); if (!b) return;- filt.querySelectorAll("button").forEach(x => x.setAttribute("aria-pressed", x === b ? "true" : "false"));- wall.querySelectorAll(".scar").forEach(c => { c.hidden = !(b.dataset.a === "all" || c.dataset.a === b.dataset.a); });- });+ const pickArea = b => { filt.querySelectorAll("button").forEach(x => x.setAttribute("aria-pressed", x === b ? "true" : "false"));+ wall.querySelectorAll(".scar").forEach(c => { c.hidden = !(b.dataset.a === "all" || c.dataset.a === b.dataset.a); }); };+ filt.addEventListener("click", e => { const b = e.target.closest("button"); if (b) pickArea(b); });+ /* a ledger card's link opens its filter */+ document.addEventListener("click", e => { const a = e.target.closest('a[href^="#scar-e2-"]'); if (a) pickArea(filt.querySelector('[data-a="e2"]')); });const W = [["Critic on the storyboard","Blockers caught before any scene was built."],["Independent reviewers on every number","A fresh review session found a fairer clock in a film’s data."],diff --git a/skills/showtime/tests/test_site_build.py b/skills/showtime/tests/test_site_build.pyindex 11a5a68..1368d9d 100644--- a/skills/showtime/tests/test_site_build.py+++ b/skills/showtime/tests/test_site_build.py@@ -380,6 +380,71 @@ class HarnessPage(unittest.TestCase):self.assertEqual([e["u"] for e in site.search], [build.HARNESS_PAGE])self.assertEqual(build.check_search(site), [])+ def built(self) -> str:+ tmp = Path(tempfile.mkdtemp(prefix="st-harness-"))+ self.addCleanup(shutil.rmtree, tmp, True)+ build.build_harness(build.Site(tmp, [], "owner/repo", None, "main"))+ return (tmp / build.HARNESS_PAGE).read_text(encoding="utf-8")++ def test_edition2_ledger_has_six_whole_cards(self):+ # harness.js builds one card per top-level li of #ledgerData and skips an li that lacks any of these parts+ from html.parser import HTMLParser++ class Cards(HTMLParser):+ def __init__(self):+ super().__init__()+ self.cards, self.depth, self.inside = [], 0, False++ def handle_starttag(self, tag, attrs):+ a = dict(attrs)+ if tag == "ol" and a.get("id") == "ledgerData":+ self.inside, self.depth = True, 0+ return+ if not self.inside:+ return+ if tag in ("ol", "ul"):+ self.depth += 1+ if "s" in (a.get("class") or "").split() and self.cards:+ self.cards[-1]["steps_ol"] = True+ elif tag == "li" and self.depth == 0:+ self.cards.append({"parts": set(), "steps": 0})+ elif tag == "li" and self.cards and self.cards[-1].get("steps_ol") and self.depth == 1:+ self.cards[-1]["steps"] += 1+ for c in (a.get("class") or "").split():+ if self.cards:+ self.cards[-1]["parts"].add(c)++ def handle_endtag(self, tag):+ if not self.inside:+ return+ if tag in ("ol", "ul"):+ if self.depth == 0:+ self.inside = False+ else:+ self.depth -= 1++ p = Cards()+ p.feed(self.built())+ self.assertEqual(len(p.cards), 6)+ for i, card in enumerate(p.cards, 1):+ self.assertLessEqual({"t", "r", "s", "m", "w", "who", "c", "b"}, card["parts"], "card %d" % i)+ self.assertGreaterEqual(card["steps"], 3, "card %d" % i)++ def test_edition2_shows_no_private_pr_numbers(self):+ # the working repo's PRs are private: an edition 2 section may only show a #NN that links a public issue+ public = re.compile(r'<a href="https://github\.com/FavioVazquez/showtime/issues/(\d+)">#\1</a>')+ sections = re.findall(r'<section\b[^>]*\bdata-ed="(?:new|updated)"[^>]*>.*?</section>', self.built(), re.S)+ self.assertGreaterEqual(len(sections), 6)+ for s in sections:+ bare = re.findall(r"#\d+", re.sub(r"&#\d+;", "", public.sub("", s)))+ self.assertEqual(bare, [], s[:80])+ js = (REPO / "site" / "static" / "harness.js").read_text(encoding="utf-8")+ day = js[js.index("const DAY_1015"):js.index("].map(", js.index("const DAY_1015"))]+ ttm = js[js.index('lazy("#ttm"'):]+ ttm = ttm[:ttm.index("\n});\n")]+ for name, part in (("DAY_1015", day), ("#ttm", ttm)):+ self.assertIsNone(re.search(r"#(\d+|\$\{)", part.replace('"#ttm', "")), name)+@unittest.skipIf(build is None, "needs markdown-it-py (showtime's venv has it)")class StartHereAndShelves(unittest.TestCase):