Roadmap What just shipped, what's still open, and the locked decisions that shape the kit. Open work, recent landings, and locked design decisions for oku. > [!TLDR] > Most of the chart kit is interactive — tooltips, click-pin, cursor sweep, fullscreen-preserving lightbox, deconflicted labels, family-grouped catalog with clickable mini-cards. Open work is exploratory: auditing hover feedback per chart type, and the catalog and reactive-prose research. > > - Interactivity coverage: every variant in the table below fires a contextual tooltip on hover with real per-anchor data. Cartesian + ridgeline + sparkline + gauge carry a synced cursor that updates the tooltip per-position. > - Visual polish: quadrant + bubble label deconfliction is no-fly-zone aware. Parallel-coordinates line stroke 3.6 → 5px with fade-others on hover. Donut/pie pinned slices scale + accent-stroke. Mermaid fonts clamped to 13px, aspect-fit caps tall portrait diagrams. > - Layout: source / render columns box-top aligned across every example-pair on reference / charts / tables — zero pixel delta. > - Tooltip: width-stable across pin states; explicit × close button when pinned; `_tipPinned` flag stops cursor-driven charts from overwriting pinned content. > - Pick-by-family: 43 clickable mini-cards each with a tiny live render — readers scan the shape they want and click straight into the variant's full example. > - Robustness is the other half of the board: vendored typography, an atomic > build, listener teardown, a keyboard-reachable sidebar collapse. Thirteen > items, filterable by area and priority below. > - `oku` is on PATH as a system command (uv tool install). ## Snapshot {#snapshot} Where the kit sits today, in numbers. Chart types the schema accepts Types with a worked example on the charts page Mermaid diagram types catalogued Intent families on the charts page Documentation pages clean under oku check --strict Pytest tests — green Build trees per oku build (standalone / site) Series colour ramp (--series-1..10) ## Chart interactivity by feature {#interactivity} Which chart types carry which interaction primitive. Filled cells are shipped; empty cells are queued. The table records 28 of the 53 types; the remainder are not yet catalogued here. arc ● ● ○ — ● arc-diagram ● ● ○ — ● area ● ● ● ● ● bar ● ● ● ● ● beeswarm ● ● ○ ● ● box-plot ● ● ○ ● ● bubble ● ● ● ● ● bullet ● ● ○ ● ● bump ● ● ○ ● ● calendar-heatmap ● ● ○ — ● candlestick ● ● ○ ● ● chord ● ● ● — ● connected-scatter ● ● ○ — ● density ● ● ○ ● ● donut ● ● ○ — ● dot-plot ● ● ○ ● ● dumbbell ● ● ○ ● ● funnel ● ● ● — ● gantt ● ● ○ ● ● gauge ● ● ○ ● ● geo ● ● ○ — ● grouped-bar ● ● ● ● ● heatmap ● ● ○ — ● hexbin ● ● ○ — ● histogram ● ● ● ● ● horizon ● ● ○ ● ● line ● ● ● ● ● lollipop ● ● ○ ● ● marimekko ● ● ○ — ● network ● — ○ — ● parallel-coordinates ● ● ● — ● pareto ● ● ● — ● pie ● ● ○ — ● plot ● ● ● ● ● polar-area ● ● ● — ● population-pyramid ● ● ○ — ● quadrant ● ● ● — ● radar ● ● ● — ● range-bar ● ● ● — ● ridgeline ● ● ● ● ● sankey ● ● ● — ● scatter ● ● ● ● ● scatter-matrix ● ● ○ — ● slope ● ● ● — ● sparkline ● ● ○ ● ● stacked-bar ● ● ● ● ● stream ● ● ○ ● ● sunburst ● ● ○ — ● tile-map ● ● ○ — ● treemap ● ● ● — ● violin ● ● ○ ● ● waffle ● ● ○ — ● waterfall ● ● ○ ● ● > [!NEUTRAL] Symbol key > ● shipped · ○ queued · — not applicable. Every row is measured rather than recalled: each chart is opened on a page of its own, the hover is confirmed to have landed before anything is read off it, and the counts below come from that run. **Tooltip is ● on all 53** and **Fullscreen is ● on all 53** — both columns are uniform, and they are kept because a reference table that omits what is universally true makes the reader go and check. **Click-pin is ● on 52.** `network` is the one — , because its gesture is already a drag: pressing a node captures the pointer on the SVG, so the node never receives a click, and the kit deliberately prints no pin offer there. **Hover-highlight is ● on 21** and **Synced cursor on 26**; the rest of the cursor column is — rather than ○, because a sweep cursor needs an axis to sweep along. Family is the author's grouping, not a property of the payload. ## Open / in-flight {#open} Kanban board — filter by area or priority to scope. Each chip filters; the board view groups by status. Network — a node moves with a pointer AND with the arrow keys, and its edges follow either way Every legend item that takes focus does something — marimekko / stream / sunburst chips were announced as toggles and wired to nothing Nested code highlighting (JS in HTML, bash in Markdown — sub-language detect inside fenced blocks) An expanded figure answers the keyboard — the zoom and pan keys were bound to an element focus never reached Three charts build a reading and never show it — beeswarm / bump / horizon wire a per-mark tooltip AND a vertical cursor, and the cursor's hide undoes the mark's show A quadrant is the one chart with a reading and no way to hold it — dots, no cursor, and the dot path has no click of its own Density and violin draw a cursor line and no numbers — neither tags a mark with a reading, and their cursor is one of the eleven that register no seriesLookup Catalog research — waterfall, marimekko, dot-matrix, joy-plot, sunburst A pinned cursor reading could not be let go — the close button stranded the chart and Escape did nothing Every tooltip says "click to pin" and one of the three writers never bound a click The interactivity table records 28 of the 53 chart types the kit ships, and reads as the catalog Footnotes + reference-style links in the renderer's GFM parser (page-level state across b[] strings) Reader personalization ships and no author can find it — `{{key}}` is in no doc, no schema and no `oku spec` output Reactive prose: ${expr} interpolation + oku-bind two-way binding on form inputs (additive, fits v3 unchanged) Vendor Inter + JetBrains Mono so a page carries its own typography (today every page fetches them from Google on load) Build atomically: write the new trees beside the old ones and swap, so a failure leaves the previous output standing Decide what a script inside a rendered .md may do — the markdown viewer executes it today Custom elements release what they bind: lightbox pan/zoom, column resize, chart reconfigure, scroll-spy Sidebar section collapse reachable from the keyboard (the heading takes no focus and carries no state) A chart payload with no plottable rows says so instead of drawing an empty frame island-hand-styled walks mermaid fences too — a classDef with a hex literal is the same defect as an inline style Two citation primitives paint a hex literal instead of a series token An image outside the project fence is reported by the check, not silently inlined into a standalone page Provenance without the author's directory: an opt-out for a page that leaves the machine A filename holding # or ? builds into a page nothing can link to Anatomy of a page documents the v3 markdown shape, not the v1 JSON one Browser suite waits on conditions instead of the clock — 212 calls and 205 s of fixed sleeps down to one, which is the case that cannot have a condition A ` ` inside a viewed document restyles the page that opened it A column-resize handle gives the pointer 2px of its 6px — the rest belongs to the next cell ## Recent landings {#recent} - Three delivered documents came back from a reader carrying an alarm badge, and nothing was wrong with any of them. Behind the badge: `ResizeObserver loop completed with undelivered notifications` on all three and `Script error. @ ?:0` on one. **Neither is a document defect.** A ResizeObserver notice is the browser saying a callback resized something the delivery pass had already visited, so the rest was deferred one frame — the spec's own behaviour, nothing threw, the layout settles. An error with no filename and no error object is the cross-origin sanitised form the page is not permitted to read: over `file://` that covers the kit's own vendored bundles, and everywhere it covers a script a browser extension injected into the page. The indicator keeps what it can attribute; the rest goes to the console once per distinct message, because a silent drop is how the next real defect goes unreported. **And the kit stopped being a candidate for producing the first one.** The sticky table header wrote `--okt-sticky-top` and `data-fit` from inside its own ResizeObserver callback — both invalidate layout — and wrote them on every delivery whether anything had changed or not: measured on that 31-table page over a load and four resizes, 155 `--okt-sticky-top` writes of which 62 set the value already there, and 93 `data-fit` writes of which 91 did. It measures in the callback and writes in the next frame now. The notice itself did not reproduce here on any of the three files, across viewport widths and heights, device pixel ratios 1 to 2, stored width / text-scale / pinned-drawer combinations and the page's own controls, with a deliberate loop proving the detector fires — so the write rule is the fix for a defect that was measured, and the filter is the fix for what the reader actually saw. - A code block gets the grammar it names. Measured on a built page: a fence tagged `hcl` produced one `net::ERR_FILE_NOT_FOUND`, a block with zero syntax tokens, and a clean `oku check` — the vendored grammar list is hand-written, so it holds the languages somebody thought of, and the autoloader takes one base, so a grammar that is not in the directory cannot fall back to the CDN on its own. **The tree says what it needs now**: the build reads its own code fences — in a fence's info string, in a typed block's `lang`, and in an island's `class="language-x"` — and fetches those grammars with their dependencies before the check runs. **And the kit stopped asking for what it cannot serve**: `oku vendor` writes a list of what the directory carries and the loader refuses anything outside it, resolving aliases the way the autoloader does. That was worth 16 failed requests per page on this repo's own docs, one per `text` fence. [`src/oku/prism_catalog.json`](#f/src/oku/prism_catalog.json) — 297 grammars, 104 aliases, 101 dependency entries, generated from Prism's own components.json — is what lets a rule tell a grammar from a word, so `code-lang-missing` reports `hcl` and says nothing about `text`. - An unclosed code fence takes the rest of the page with it, and now says so. A fence opener has to start its line, so a ``` run named mid-sentence is nothing — which is what makes the slip easy: wrap a paragraph so the next line begins with one, and CommonMark opens a block that runs to the end of the document. It happened on this project's own CLI page while documenting the work above: the `oku migrate` section vanished into a code block, the page built, `oku check` was clean, and the only thing that fired was a translation-anchor warning on the other language file, because the two stopped agreeing about which ids exist. On a monolingual page nothing would have said anything. `fence-unclosed` is an error for the reason `island-unclosed` is one — the content after it is not mis-styled, it is gone. - A long table keeps its column labels in view. Every header cell already carried `position: sticky` and it stuck to the wrong thing: a sticky element sticks to its nearest scroll container, and the table's own horizontal-scroll box is one, so the header was pinned to a box that grows with the table and never scrolls. A table that fits its column gives that box up and sticks to the viewport; a wider one keeps it and gets a ghost header outside it, sized from the real one and scrolled in step with it both ways. **Both park under the chrome buttons that stand over their own columns** — measured, at 1100px the search button covers the last column and at 760px and below the Contents button covers the first, so it is most window widths and not a phone case; the offset is measured per table rather than answered with a breakpoint, because the column's width is the reader's to set. - Reader personalization was undocumented, and documenting it found that it had never run. `kit.json` declares keys, the presentation menu grows a Placeholders row, and `{{key}}` is substituted at read time — into ` `, ` ` and ` ` on its own, and into prose wrapped in an island carrying `okc-personalize-target`. Writing that down meant building a page that used it, and the page came back with `{{apiKey}}` printed as written. **Three defects, each hiding the next.** `init` read `if (!btn) buildButton();` and no `btn` was ever declared — a leftover from when the control was a corner button rather than a row this module registers — so it threw a ReferenceError on its first statement, before any substitution. The served modes did call `init`, inside `catch (e) { /* ignore */ }`: a silent catch over a throw that happens every single time, which is the whole reason nobody saw it. And the standalone branch of the kit loader never called `init` at all — it hydrated the keys from the inlined bundle, marked the kit loaded and notified its waiters — so even with the first two fixed, the delivery mode a reader is most often handed a file of would still have done nothing. `load()` has one exit now, the catch says what failed, and both trees are covered by tests that fail against the previous kit. One nuance the documentation had to be corrected on: in prose the swapped value keeps a span naming its key on hover, and in a highlighted code block it does not, because Prism rewrites a block from its own text and nothing that is not code survives there. It is documented in the reference page's cross-cutting section, in both languages, where the behaviours that change how an existing block renders live. - The last exploring row is answered, and the answer is that half of it already ships and nobody can find that half. The row asked for `${expr}` interpolation and `oku-bind` two-way binding. **The blocker is not the one that would be assumed**: a built page carries no CSP at all — measured, `new Function('return 6*7')()` returns 42 on a standalone page opened over `file://` — so an evaluator would run fine. It also corrected a comment in the browser suite's own wait helper, which had been citing that non-existent CSP as a design reason for three releases; the decision it defends is still right for its other reason, and the wrong half is gone. What the row wanted is mostly reachable today: `{{key}}` personalization substitutes reader-set values into prose at runtime, and an HTML island in a page executes its own ` `, so binding a form input needs no new syntax. Against that, `${expr}` would add a templating layer in the renderer and a second evaluation surface in a kit that spent real effort making a viewed document inert. The decision and its reopen trigger are recorded under [Locked decisions](#decisions) rather than here, because that is where a question goes once it has an answer. **And the finding worth more than the decision**: `{{key}}` personalization — the gear icon in the chrome cluster, the localStorage-backed values, the `.okc-personalize-target` opt-in for prose — appears in no authored page, no schema entry and no `oku spec` output. One passing word in a landing entry about the chrome cluster is the whole of its documentation. A primitive nobody can discover is not a primitive, and this is a shipped one, so it is on the board. - The last chart that showed a reading and gave no way to keep it can keep it. `quadrant` draws dots and wires no cursor, so the reading on screen is the Cartesian dot path's own — and that path predates pinning entirely: it printed no offer and bound no click, which is why it was the only ● Tooltip in the table sitting beside a ○ Click-pin. The generalisation is small, because a pin with no anchor element already existed for the cursor and only needed a second user; what is new is that the dot is a distinct tooltip OWNER, so the host can tell "the dot wrote this" from "an anchor wrote this". That distinction is the whole safety argument: an anchor's click never reaches the host, so pinning one from a click on empty plot would be a surprise the reader did not ask for. The flag is named for what it holds now rather than for the writer that found it — a pin with no anchor, not a cursor pin. Click-pin is ● on 52 of 53, and the remaining — is `network`, whose gesture is a drag. - Reviewing the pin work for collateral damage found two defects in it, and both were mine. **The close button stranded the chart.** It called `unpinRich`, which clears the ANCHOR pin and not the cursor's — so on a cursor pin it hid the tooltip and left `_tipPinned` true forever, and every cursor in the kit returns early on that. Measured on density: click the `×`, and the chart never answers the pointer again, with nothing on screen saying why. A control that silently stops the figure is worse than one that does nothing. **And Escape did nothing at all**, on a button whose own title reads `Close (Esc)`. The host's keydown only fires with focus inside the host; the anchor path gets that for free, because clicking a mark focuses it and every mark carries `tabindex`, and a cursor pin has no anchor — an ` ` is not focusable, so the click focused nothing and the key went to the document. Both go through one `unpinAny` now, which releases whichever kind is held, and taking a cursor pin moves focus to the tooltip's own close button, which is what makes the advertised key true. Verified failing against the previous kit on both releases and passing on this one; the anchor-pin case passes either way, which is what a regression guard is supposed to do. Worth naming the method rather than the fix: these came from re-reading the diff for interactions nobody had exercised, not from a report — the pin was landed with tests that all passed, and the combination "pinned, then click the control that closes it" was not among them. - The interactivity table is the whole catalog now, and every cell in it was measured rather than recalled. It recorded 28 variants against a kit shipping 53, so a reader who took it for the catalog saw about half of one — and three of its footnotes had gone stale underneath it. The instrument matters here, because the first version of this measurement was wrong and I published nothing from it: it hovered charts on one shared 53-chart page and gave different answers on different runs. Each chart now gets its own page and its own page LOAD, so no earlier hover, pin or focus survives into the next reading, and every hover is confirmed to have landed before anything is read off it. The corrected run also caught a false negative in my own detector — the cursor column looked for the two classes the generic helper uses, and the kit draws seven, so ridgeline, sparkline, gauge and the three DIV bar charts came back as having no cursor. Those first four are exactly the ones the old footnote named as the sweep-axis charts, which is what made the mistake visible. What the run says: **Tooltip ● on all 53** and **Fullscreen ● on all 53**; **Click-pin ● on 51**, with `network` — because its gesture is a drag the kit deliberately makes no pin offer for, and `quadrant` ○ because it draws dots and no cursor and the dot path has no click of its own; **Hover-highlight ● on 21**; **Synced cursor ● on 26**. The old footnote's other two claims are gone with it — it said synced cursors only make sense for "Cartesian, ridgeline, sparkline, gauge" against 26 charts that have one, and implied the DIV bar variants have no fullscreen when all 53 carry the control. The measurement itself is committed as [`tools/chart_capabilities.py`](#f/tools/chart_capabilities.py), because the cells will need refreshing the next time a chart type lands and a number nobody can reproduce is a number nobody should trust. **And the table is held against the code now**, because a hand-maintained list beside a growing enum is exactly the drift that produced this row: `test_authority_agreement.py` checks that its rows are the chart types the kit ships, and that the two languages record the same marks. Row coverage only — whether a chart fades its siblings on hover is a browser measurement and stays in the browser suite; whether there is a row at all is a set comparison, and that is the half that rotted. - Every tooltip in the kit prints `click to pin`, three different writers print it, and one of them never bound a click. `rich()` honours it for the anchors and the DIV bar charts honour it in `showCrossing`; `_showCursorTip` printed it into five call sites with nothing listening. Measured on density and bump: the hint rendered, a click pinned nothing, and moving the pointer away took the reading down. The cursor has no anchor to take the click — it places the tooltip at a coordinate, not against an element — so the host takes it, and the frozen cursor line is the indicator that a mark's `.okc-pinned` would otherwise be. One flag serves all five call sites, because `_tipPinned` is what every cursor already tests before it redraws. **Two more defects sat behind that one and only appeared once the click worked.** On a Cartesian chart the reading under the pointer is the cursor's cross-series readout while the pointer is physically on a dot, and clicking focused that dot: its `focus` handler swapped the readout for the single point's coordinates between the mouse going down and coming up — `Engineering cost ≈ 4 / Showstoppers + High 9` became `Showstoppers + High / H3 / (4, 9)` — so the click found a tooltip nobody had offered to pin. That handler answers `:focus-visible` now, which is the same rule the filepath chip's card controller already follows, and Tab still shows a dot its reading. Then the pin held and leaving the dot took it away, because the dot path's `hideTip` hid whatever was there — it predates pinning entirely, so nothing it did could disturb a pin until now. **And one mark makes no offer at all**: a network node is dragged, and `_wireNetworkDrag` calls `svg.setPointerCapture` on pointerdown, so every event after that goes to the SVG and the node never sees a mousedown, a mouseup or a click. Measured — `elementFromPoint` names the node's own ` `, the click arrives at `svg.okc-svg`, and capture-phase listeners on the node group record nothing. The pin could never fire there, so the fix is to stop printing an offer the gesture cannot keep rather than to bolt a click onto a drag. One test per writer, not per chart: a 53-case sweep found the defect and then proved unfit to keep it — it hovers whichever mark it can reach on a crowded page, and on `arc` that answer moved between runs while arc pinned correctly three times out of three on a page of its own. - The catalog research asked about five figures and the kit already draws all five; the row was a vocabulary mismatch, not a gap. Measured against three sources at once — the schema's `type` enum, [`kit/schema/examples.json`](#f/kit/schema/examples.json), and the renderer methods in chrome.js — **waterfall, marimekko and sunburst** are present in all three under exactly those names. The other two ship under different ones. **A joy plot is a ridgeline**: same figure, two names, and `ridgeline` is the neutral one — the renderer's own comment says its rows overlap by design, which is the whole of what the other name describes. **A dot matrix is the same unit-chart family as `waffle`**: segments filling a grid, one cell per unit, and the glyph is a rounded square rather than a dot. That last one is a styling difference and is stated as one rather than as equivalence — a reader who wants round marks wants a fill and a radius, not a chart type. So there is nothing to add, which is the answer the row was asking for. The same sweep surfaced something else worth writing down and not fixing here: the interactivity table above records 28 of the 53 chart types the kit ships, so a reader who takes it for the catalog sees roughly half of one. Its footer is scoped honestly — "all 28 variants recorded above" — and the table is still hand-maintained beside a kit that now has a test asserting every type answers the pointer. That is on the board. - The two charts that answered the pointer with a line and no numbers now say something, and one of them had been saying nothing at all. Measured before: `density` drew a vertical cursor and had 0 marks carrying a payload and 0 native ` ` elements; the horizontal `violin` had the same cursor and 0 payloads against 3 titles; and the VERTICAL violin — a separate renderer, reached by `orientation: vertical` and by no shipped example — wired no cursor either, its own comment saying a horizontal one would be the right affordance and no helper existed. So it answered with nothing. Each gets the reading its own shape can support. A violin's body carries the five-number summary the shape draws and never names — n, min, q1, median, q3, max — because the median line and the IQR box are already there and unlabelled; the vertical cursor over the rows stays an alignment aid with no reading of its own, which is the same division beeswarm already uses, and it is only safe because a reading now has an owner. Density has no mark to hover — it is one curve — so the cursor is the only reading it can have, and it reports the height as a share of its own peak and the share of observations at or below the cursor. **Both numbers describe the drawn picture rather than the KDE's units**: the plotted height IS `d / maxDensity`, and a raw density in units of 1/x formats badly and answers a question nobody asked — the kit's own `fmtNum` renders 0.0043 as `0.00`. One builder serves both violin orientations, because they share nothing else and two copies of a chart's reading is how two renderers stop agreeing about what the chart says. The sweep no longer skips anything: a chart with no mark now falls through to its cursor and must produce a reading there, so the two standing skips became a requirement and all 53 chart types pass. Writing the check found one thing worth keeping: JavaScript's `toFixed` rounds a tie away from zero and Python's `format` rounds half to even, which is not exotic here — it is every other quartile of a four-value distribution, and the test read the kit's correct median of 127 as a wrong 126 until it modelled the right rule. - Three charts built a reading and never showed it, and the cause was one tooltip element with three writers and no rule about who owns it. Beeswarm, bump and horizon each wire a per-mark tooltip AND a vertical cursor. Hovering a mark built the tooltip with the right content — `Berlin · 2020 rank #1 value 80` on bump — and it never became visible. The anchor saw `mouseover` and `mouseenter` and no leave, the tooltip is `pointer-events: none` and did not overlap the mark, so nothing about the pointer explained it. What did: `_wireGenericVerticalCursor` calls `_hideCursorTip()` on the same branch where it hides its own line — a mousemove outside the plot band, on either axis — and a data mark can sit outside the band its own chart declares. Measured in viewBox units against the band the cursor line spans: beeswarm's leftmost dot at x=22 and horizon's first hit rect at x=65 are left of `pad.left`, and bump's top dot at y=34 is above a band top of 36. The cursor line reads `hidden` at each of those three points and `visible` at the middle of the same plot, which is what says the branch and not the pointer is the cause. Whoever showed the tooltip owns it now, and only its owner may hide it. Two things about the fix are decisions. **All three writers claim ownership, not two** — the Cartesian `.okc-dot` path writes the same element through its own `showTip`, and a rule covering two of three would leave a dot's reading still the cursor's to delete. And **the cursor keeps hiding what the cursor showed**, which is the half a single-owner rule breaks if it only ever protects the anchor; a case pins it at a point inside bump's band and off every mark, where the cursor is the writer. The test is a sweep, and building it closed two holes of its own: the mark families are read out of the `rich(...)` calls in chrome.js rather than written down, and dropping an `svg ` prefix that had quietly exempted bar, stacked-bar and grouped-bar — HTML `.okt-bar` elements, not SVG — from their own regression test while reporting them as drawing no mark. 53 chart types pass; two skip and say why in the skip. Which is the separate finding: `density` and `violin` tag no mark with a reading at all and wire a line-only cursor, so hovering either draws a line and shows no numbers — density has 0 payloads and 0 native ` `s, violin 0 and 3. That is on the board rather than folded in here, because a chart that never promised a reading is not a chart breaking a promise. - The browser suite waits on conditions instead of the clock, and the last fixed sleep is the one that cannot have a condition. 212 calls and 205 s of declared sleep are now **one call and 0.7 s** — a test proving a tooltip NEVER appears, where a stability poll starting at zero returns while the show delay is still running and passes without testing anything. It keeps the sleep and says why. The rest became waits, and the replacement is different every time, which is the whole content of the work: the stage's inline transform for a key press that must move something; `window.__okuI18n.load()` for a table that is fetched, because Playwright awaits a promise an `evaluate` returns and that promise is the one the kit's own localize callback is chained to; a button's own flash class for an async clipboard write; the rail's height, 12 closed and 32 open, for every case in that file; `box_stable` on the sidebar for a drawer that has the class before it has finished sliding; `settled` on a Python-side console list the page cannot see. Where a test asserts that nothing moved, the wait is for the PRECONDITION instead — after an OS theme flip it waits for the page to report `prefers-color-scheme` changed, which a sleep never checked, so an emulation that silently failed used to pass. Two measurement mistakes are worth as much as the conversions: the table filter REMOVES rows rather than hiding them and `.okt-table-wrap` holds four renderings of the same rows, so a count of `tbody tr` that looked obvious was counting forty things and watching a class that never changes; and the annotated-code copy button was waited on for the copy-region button's class, from a wrapper two hundred lines away in the same file. Both were found by looking at the DOM instead of guessing a third time. Full suite: 2213 passed, 9 skipped. No timing claim — the point is the flake class, and the machine that measured it had other work on it. - An expanded figure answers the keyboard now. The row asked for a scrollbar and a picture-in-picture minimap; the minimap had shipped — a thumbnail of the figure with a viewport rect that tracks the visible region and can be dragged to pan — and so had drag-pan, wheel and pinch zoom, a three-button toolbar, and `+` / `-` / `0` / arrow keys. What had not shipped was reaching any of it from a keyboard. `open()` sent focus to `.okt-lightbox-content` and every key is bound to the STAGE inside it, so a keydown on the holder bubbles up and away from the listener. Measured: expand a chart, press `+`, and the transform stayed `translate(0px, 0px) scale(1)`; one Tab first and the same key zoomed. Nothing said a Tab was needed. Focus goes to the stage when there is one, and the stage carries a name — a focusable element without one is announced as nothing, and that label is also the only place the shortcuts are written down, since the toolbar's three buttons cover zoom and say nothing about panning. Asserting the focus order either side of that change found an older defect underneath it: the overlay carries `aria-modal="true"` and the module's own header says focus is trapped until the reader closes it, and it was not. The close button is drawn BEFORE the content inside the frame, so tabbing forward from the content walked past the frame into the page behind — 39 presses on a 20-point chart, with the close button reachable only by Shift+Tab. Tab wraps at both ends now, and it is a trap in name only: Escape, the backdrop and the close button all still let go. One thing measured and deliberately not fixed: the three zoom buttons sit 21, 22 and 23 presses in, because the live chart node is moved into the lightbox and each of its 20 data points is focusable and precedes the toolbar in DOM order. The dots are focusable on purpose, and reordering the stage against its own toolbar is a separate decision. **The scrollbar stays unbuilt on purpose** — the stage is a transform rather than a scroll container, and a scrollbar over a figure the reader drags would be a second mechanism for the job the minimap already does. - A legend chip that takes focus now does something, on every chart that draws one. The row asked for donut, pie, waffle and radar; measuring first found all four already shipped — `wireNonCartesianLegend` gives them toggle, solo, hover and keyboard — and box-plot has no legend at all, because its boxes are named on the axis and there is no colour to explain. The same sweep found three the row did not name. Marimekko, stream and sunburst each use the shared legend row, so every chip carried `tabindex="0"`, took focus, and was handed `aria-pressed="false"` by the wiring pass — announced as a toggle button with a pressed state, wired to nothing. Pressing one moved no state at all: 3 chips on marimekko, 3 on stream, 2 on sunburst, against eleven chart types that answered. One cause — the shared row's chips carry `data-series-idx` and the wiring toggles `.okc-series[data-series-idx]`, which none of the three emitted — so the fix is DOM shape rather than a fourth copy of the toggle logic: each renderer wraps its shapes in the group, and the existing wiring, CSS and solo behaviour apply unchanged. Marimekko is the one that had to be rearranged. It paints cells column-first, so one series' cells are scattered through the DOM and a group built per column would hide a third of a series and read as a rendering fault; the cells are collected per series, and the category ticks are held back and emitted after every group, because a chart whose x-axis labels fade as you mute is unreadable exactly when the reader is comparing what is left. A sunburst series is a ring-1 branch whose colour cascades to every arc under it, so the group takes the whole wedge — and a chip's index addresses the FILTERED legend list, so an unlabelled top-level node shifts every index after it and the map between the two is written down rather than assumed. The chips also say what they are now: the shared row had no `aria-label` at all and the Cartesian cluster built one by concatenating the English word `Toggle`, which a translated page carried untranslated; both go through `okuT`. Verified by geometry — every shape's tag, class, path data and box is identical before and after across nine chart types, so the regrouping changed the DOM and not the picture — and the sweep is derived from [`kit/schema/examples.json`](#f/kit/schema/examples.json), so a chart type added tomorrow is covered on the day it lands. One measurement error is worth as much as the fix: the first version of the test reported twelve dead legends, and the defect was the selector. `#donut [a], [b]` scopes only the first branch of a comma list, so every click in the file landed on whichever chart sorts first. - Nested code highlighting was never a missing feature; the kit was deleting it. Prism does the work already — its markdown grammar wraps a fenced block in one `token code` spanning every line and puts `token code-block language-bash` inside it, and its markup grammar hands a ` ` and a ` ` body to JavaScript and CSS. Measured on the same source: raw Prism produced `code-block language-bash` with `builtin class-name`, `operator`, `function` and `parameter variable` inside it, and what reached the reader from the kit was three bare `token code` spans with no language at all. The line splitter — the pass that groups a block into one `.okt-code-line` per source line so lines can be numbered and folded — handled an element straddling a newline by cloning it per line and assigning `textContent`, which flattens every descendant. Its own comment stated the assumption and named the exception it was wrong about: "complex nested tokens across newlines are very rare". A fenced block inside a markdown sample is exactly that shape, and this repo's documentation is made of them. The splitter recurses now: a shallow clone opens, the children walk through the same emitter, and each break closes and reopens the whole open stack, so nesting survives to any depth. The HTML half looked like it worked and did not — the kit's own nested pass was re-highlighting `.token.script` by hand after the splitter had flattened Prism's `language-javascript` span, so the colours came back and the structure did not. Measured after: the HTML block carries five nested language spans (three `javascript`, two `css`) against none before, and the markdown block one `bash` with six tokens in it against zero. One defect the rewrite introduced and the test found: an element whose content ENDS on a break gets a clone reopened that nothing is emitted into, and the per-break pruning only reaches clones a LATER break arrives at — which left an empty `language-javascript` and an empty `language-css` on the page, spans the fold pass and the copy path both walk. Each element prunes its own clone as it closes. - A network node moves with the arrow keys, and the board row that asked for dragging was describing something already shipped. Reading the source found `_wireNetworkDrag` complete; measuring it in a browser found the drag working — a node went from (316.4, 276.4) to (377.5, 235.6) and all three edges touching it followed. What the same measurement found is the gap nobody had written down: each node group carries `tabindex="0"`, so Tab reaches every node in the graph, and every key did nothing. That is the `role="button"` defect the filepath chip had, wearing a different element — focus is a promise — and it is worse here, because untangling was the whole point of the interaction and there was no other way to do it. Arrows nudge, Shift takes four steps at once, and the step is a fortieth of the viewBox's short side so one press is visible on any chart without a reader holding a key down to cross the figure. Both paths go through ONE mover: a drag and a nudge that each wrote the transform, the two data attributes and every touching edge would be two copies of one rule, and the second to change is the one that stops matching. The mover also clamps to the viewBox, which neither path did — off-canvas is worse for a nudge than for a drag, since a pointer is still holding the node it took away where thirty presses of one key leave nothing on screen to aim at. One test was written and then deleted rather than kept: the arrow key's `preventDefault` could not be shown to do anything, because on a document with 3100px of scroll available and nothing hidden on `html` or `body`, a Chromium ` ` with `tabindex` does not scroll the page on an arrow key with the call or without it. The call stays as the correct thing to do and nothing claims it was observed doing anything. - Thirty-five fixed sleeps in the browser suite became waits on the thing they were waiting for, and the measurement says the reason is not speed. 96 calls and 49.5 s of declared sleep down to 61 and 20.9 s; the largest single one was 6 s, paid on every run to catch a request that arrives in about 300 ms. Wall clock, measured back to back on the same machine: 592.5 s against 580.1 s, and a later run of the converted suite came in at 615.6 s with 168 s more CPU — which says the variance between runs is bigger than the effect, so there is no speed claim to make here. **What the work buys is a flake class, and it produced its own evidence.** `test_filepath.py`'s card helper waited for "a tooltip with text", which answers yes while the PREVIOUS test's card is still on screen: the module's earlier test hovers a chip and never leaves, so the helper read a stale tooltip and passed. The 350 ms sleep had been hiding that, not preventing it. Three shapes cover almost all of it. `after_rerender` stamps a diagram's ` ` before an action so the wait can tell a NEW render from the one already there — "is there an svg" answers yes throughout, which is why a theme flip sat behind 3.2 s and now takes 0.305 s. `measured` waits for an expression to stop changing and then returns it, so a wait and the assertion after it cannot watch different things — the shape every hover-then-read-a-computed-style test had. `settled` does the same for an observation that lives in PYTHON rather than in the page, which is what the request list a network test asserts on is; mirroring that count back into the page with an `evaluate` from inside a request handler is the other way to do it and it re-enters the driver during navigation. One sleep stays a sleep and now says why: a test proving a tooltip never appears cannot wait for an absence, because a stability poll starting at zero returns while the show delay is still running and passes without testing anything. - The filepath chip is nudged for and rewritten to, because knowing about a primitive is not the same as reaching for it. Documents keep writing a path as a bare code span — a dead end, where the reader leaves the page, finds the file and comes back — and most often in a table, which is a list of things to go and find. `path-in-code-span` had existed for exactly this and was an `info`, which is one summary line naming the code, so it reached nobody: measured on this repo's own docs, ten spans across six pages, including the reference page that documents the chip and a glossary page naming a registry file. It is a **warning** now. The gate had already answered the objection info was chosen for — `_looks_like_a_path` requires a SEPARATOR, so a bare `kit.json` in a sentence telling the reader to create one is not judged at all, and the file must additionally resolve inside the project. What info bought was invisibility. Raising a severity without a mechanical remedy is nagging, so **`oku check --fix`** ships with it: it rewrites prose, GFM cells and `oku-*` payloads, leaves front matter, plain fences, island raw-text regions and existing links alone, re-parses every fence it touches so a payload that stopped being JSON is reverted whole rather than written out broken, and is idempotent because a chip's label is a code span inside a link construct. It is defined as APPLYING WHAT THE REPORT SAID — it takes the issue list rather than walking the tree again, since which pages qualify has several answers already baked into the check and a second walk is a second set of answers waiting to diverge. A materialised page is exempt from both: a README renders through the kit and is also read on GitHub, where `#f/…` is a link to an anchor that does not exist. One bug found while building it, and it is the same one the island lint already carries a comment about: counting ` ` on the unmasked line makes the sentence “multi-line code in an island is a ` `” open a raw-text region that never closes, which silenced 8 of the 10 rewrites on this repo's own docs. The chip was measured working in both table spellings first, since the whole push rests on it: one visible chip per cell, the preview carrying the file's text, rows within 4px of a plain-text row, and no sideways scroll at 360px. - The theme control has three stops again, and System is the only auto there is. It had two, Light and Dark, with following the OS surviving as a policy: you re-entered it by picking whichever theme the OS was already showing, a 4px dot said you were in it, and an explicit choice expired at the next OS flip — `theme-pref` stored `" @ "` so a flip that happened with the tab closed expired it too. All three existed to fit the rule into one corner button that could show one of two icons. The reason a third stop was cut in the first place is real and it is not the count: on a cycler, `system` and `dark` under a dark OS are the same pixels, so the only way to know which one you were in was to read the icon. Drawing the stops fixes that — a segmented control shows all three with the chosen one pressed, so they are two visibly different states even when the page is the same colour. Both mechanisms cost the reader something the panel does not have to charge: the expiry meant "always dark" could not be pinned past an OS flip, so a reader whose OS runs on a schedule re-picked it once a day, and the hand-back gesture meant the way to auto was knowing that clicking a theme you were already in did something other than nothing. A choice now holds until the reader changes it, `theme-pref` stores the bare mode, and the dot is gone with the policy it marked. Pressed is keyed off `data-theme-mode` and not `data-theme` — on System with a dark OS those are `system` and `dark`, so the other one lights Dark while the reader is on System and looks correct in every light-OS test. The absence of a key IS System, so a reader who has never touched the control and one who chose System back cannot drift apart, and a stored value naming no theme falls back there rather than pinning someone to a theme they cannot get out of; a `"dark@light"` from the old kit is read for its first field and rewritten bare, because under this rule that is simply still their pin. The `matchMedia` listener returns early unless the mode is System, which is the whole difference between the three stops and the two they replaced. Measured at 320px: the three-segment control is 214px inside a 266px row and the panel's right edge stays 16px inside the viewport at 320, 360 and 1280. - The reader can make the document bigger, and the document is all of it. A text-size ladder from 80% to 200% steps `zoom` on the reading column, which is the one mechanism that takes text, inline SVG, Mermaid's output and images together and still REFLOWS — a paragraph at 1.5 wraps at 1.5. Measured on this repo's own charts page at 1440px: the same string renders 145px wide at 1.0 and 218px at 1.5, a chart's rendered height goes 55px to 97px, a sidebar tree row 28px to 42px, and the 44px chrome buttons, the rail and the sidebar's own 320px width do not move at all. Three things it broke and one it exposed. `--content-width: 100vw` for the `max` mode asked for 125% of the viewport at 1.25x, because a viewport unit resolves against a containing block zoom does not touch; it is `100%` now. A `position: fixed` tooltip inside the zoomed column takes the zoom with it — the coordinate written into `left` is multiplied, and the coordinate came out of `getBoundingClientRect()`, which does not multiply — so a chart tooltip landed 189px from its bar at 1.25x and 360px at 1.5x, and the three tooltips that live inside `main` now write through `__okuSetFixedPos`. `main`'s padding is divided by the scale, because on a phone the column is already clamped to the viewport and every pixel the padding gained came off the figure: a chart went 286px to 256px when the reader asked for MORE. And the exposed one is older than the feature: `minmax(200px, 1fr)` is a floor a track refuses to go below, so at 2x on a 360px viewport eight compare cards laid out 400px wide inside 360px — every auto-fill floor is `minmax(min(Npx, 100%), 1fr)` now, and a sparkline row that sized to max-content with no `max-width: 100%` went with it. - Every presentation choice is behind one button. The flex row fixed the corner's arithmetic and not its count: six buttons wanted that corner — personalize, search, language, warning, theme, width — and text size was the seventh. Six 44px boxes over the top of the reading column is a toolbar the reader reads before every click, and five sixths of it is set once. The split is by frequency, so search stays out (used while reading) and so does the warning indicator (an alarm, which must never hide itself); text size, width, theme, language and placeholders are rows in the menu. It pays twice: an icon-only cycler exists because a 44px box has no room for words, so the width control's three-segment icon had to be hovered to be read and announced its stops in a `title` nobody opens. A row has room for one labelled button per stop, so the state is visible instead of announced. Rows register rather than being listed, for the reason the flex row exists — language appears only where there is a translation, placeholders only where a snippet declared some — and the panel does not close when a control inside it is used, because finding the right text size is three clicks and a menu that closed on the first would make it nine. - The prose rules reach the prose now, not only the paragraphs. `placeholder-text` read paragraphs and nothing else, while `process-breadcrumb` — three lines away in the same function — already walked prose nested inside typed payloads. Measured on one page carrying the same `TODO` in a paragraph and in a step body: one warning, from the paragraph. This repo's own [`examples/iceberg.md`](#f/examples/iceberg.md) carried `Mermaid diagrams (still TODO in build sequence step 11)` in a compare-grid card, past `oku check --strict`, long enough for all three things that card listed as future work to have shipped; the card is rewritten to what the kit does today, and the stale copy is what the gap was hiding. Both rules also stopped at an HTML island — they sat at the foot of the prose loop past three `continue`s, so nothing between a ` `'s tags was ever read, and an island is markup the reader sees through. The exception is raw text, tracked here rather than left to the island walk because that walk arms only on an island's opening tag: a ` ` inside a ` `, which is the idiom the kit documents for multi-line code in an island, was an ordinary island line to it, and `// TODO: implement` in a sample is the sample. Closing the first gap surfaced the other half — [`docs/cli.md`](#f/docs/cli.md) failed its own check, because the severity table has to spell the four placeholders it catches and that table is a payload. A token in a code span is the token being named, so code spans are masked before the placeholder search; masked to spaces rather than stripped, since every locator in the checker is a line number into the source as written and deleting a span moves everything after it. - A page whose subject IS a history can now cite it. `process-breadcrumb` scoped itself by who WROTE the prose — pages materialised from repo markdown are exempt because the kit does not own that text — and a hand-authored measurement report correcting an earlier round is owned by its author and is still not kit documentation. It had no escape: every sentence naming the round it corrects raised a warning, `oku check --strict` exited 1, and the only way past the gate was to rewrite each citation into a date, which loses the reference the reader needs. Observed at 29 warnings on one document, all on correct prose. `documents_history: true` in front-matter exempts that one rule on that one page. It is not folded into `skip_prose`, the seam that looks like the fix: that turns off every prose rule, and a stray placeholder left in a report is still one — measured, `placeholder-text` still fires under the exemption. It is not a kit.json switch either, for the reason `skip_gitignored` states about itself: a tree-wide setting exempts pages written later, from a file nobody opens while writing prose. Both emitters honour it, because the same sentence in a step body raised the same code from a different call site. The warning names the way out, since a warning on correct prose with no named escape is one the author works around by deleting the citation. - Four of the seven accent tokens the front-matter spec documents were never a colour. `_applyAccent`'s palette map held three; `violet` and `green` fell through to a fallback that set `--accent` from the browser's own name table and left `--accent-soft` and `--accent-strong` on indigo, so a callout drew one hue on its rule and another on the surface behind it. `rose` and `slate` are not CSS named colours, so the declaration was invalid, `--accent` computed to the literal string, and `buildConfig` handed that string to Mermaid — which requires a concrete colour. Measured on the reproduction: `accent: teal` drew a 155px figure, `accent: rose` drew 0px and an "Unsupported color format" card for every diagram on the page, and `oku check --strict` called both pages clean. All seven carry a light and a dark family now, each clearing 4.5:1 on the page background and on its own plate in both themes (lowest measured: amber's strong-on-soft at 4.51, green's accent-on-bg at 4.80). A value outside the map is handed to the browser first, so `rebeccapurple` and `hsl(280 60% 40%)` get a matched soft, strong and dark variant instead of a lone hue; one the browser cannot parse keeps the default accent and says so, because a wrong colour is recoverable and a page of error cards is not. `oku check` says `accent-unknown` for a bare word that is neither, and `diagram-unknown-token` for a mermaid `classDef` naming a `var(--token)` the kit being checked does not define — the shape of the report that arrived from another project, where the skill briefing documents `var(--series-N-soft)` and the installed tool read `kit 2026-08-20-r50`, three weeks behind the kit that ships them. - A curly quote in a diagram label is a character, not a delimiter. The diagram element decodes its source before Mermaid parses it, because a fence's body arrives through the markdown pipeline escaped — `<` for ` ` and `as of ` — the newest mtime among the same files the digest covers, one file list for both, since a date covering a different set describes a different build. Derived from the files rather than stamped by a build hook, so it needs neither git nor packaging machinery: for an installed tool it reads as the install time, for a checkout as the last edit. - The search excerpt marks the word that matched. `toLowerCase()` is not length-preserving — a Turkish `İ` becomes `i` plus a combining dot — so the index the search found in the lowered body was not an index into the body it then sliced. Measured on a Turkish section, searching `kayıt`: the mark read `ayıt ` and the window opened 37 characters before the match instead of 40. The drift is exactly zero until a character whose lowercase is longer than itself appears earlier in the same section, which is why it survived — it shows up on the pages whose author writes Turkish. The lowered text and the map back are built in one pass now, and only when lowercasing changed the length, so the English path pays one comparison. Where the mark sits in the excerpt is arithmetic rather than a second search: a second `indexOf` is a second chance to land on the wrong character, and it found nothing at all whenever the window had already drifted past the match. The same defect turned up in a test helper that searched `html.lower().find(" attribute width: A negative value is not valid`, so the figure keeps its title, its axes and its tick labels and loses the data, while the console names an attribute rather than a chart. Two payload families reach it, both from ordinary work: a gap subtracted from a cell thinner than the gap — 900 bins across a 576px plot give each bin 0.64px, and the 1px inter-bar gap takes the width to -0.36 — and a pair written the wrong way round (`q3` below `q1`, `high` below `low`, `end` before `start`), where the span is the difference of two scaled coordinates. `markSpan` orders the pair and floors the result at 0.5px across ten call sites; `oku check` reports `chart-inverted-range` for the second family, because ordering the pair is exactly what hides it — the figure looks right and reads wrong. Found by mutating every shipped example four ways rather than by reading: 244 payloads on one page produced 904 console errors from four blocks, and none after. Every normal chart measures identically before and after at 1440px and 360px; the 900-bin histogram goes from 900 bars of width 0 to 900 of width 0.74. - The browser suite mostly waits on conditions now. It held 212 `wait_for_timeout` calls totalling 205 s — dead time on every run that finished early, and a flake on the one run that did not, arriving as a failure in an assertion with nothing to do with timing. 124 of them became `page_quiet` (the render pass stopped changing the document), `box_stable` (a transition finished), `scroll_stable`, `diagram_drawn` or `until_changed`. Two consecutive full runs: 636 passed in 339.7 s and 331.8 s, against 608 s before. 88 calls and 41 s remain, each waiting on a hover, a tap or a pointer leaving — a per-test condition, and a guessed condition is worse than a sleep because it passes for the wrong reason. - "Anatomy of a page" shows the shape an author types. It opened with a v1 JSON page — `kind: "page"`, a `meta` object, a `blocks` tree — so the first example a reader met was the one form they should not reach for, and the markdown format was a subsection further down framed as an add-on. The example is now front-matter plus a GFM body with a typed fence in it, followed by the three things that are the whole format, and JSON is named as the older form with `oku migrate` beside it. Eight content-regression cases hold it, in both languages, all eight failing on the old section. - A page whose filename holds a URL delimiter is one the tree can reach. Every manifest `path` becomes an href and is compared against `location.pathname`, which the browser returns percent-encoded; raw, `notes#1.html` pointed at `notes` with the fragment `1`, `what?.html` at a query string, and `a b.html` ended the llms.txt link target at the space. The page was built, indexed and listed each time, and the row that named it went elsewhere — nothing failed. Paths are now encoded per segment, `parent` with them (a path and the parent it groups under are compared as strings) and exactly once, `source` left raw for the reader who opens it in an editor. Five of the seven browser cases and four of the seven Python ones fail without it; the space case passes either way, because the browser encodes that one itself. - A stylesheet in a viewed document is confined to it. A ` ` does not run, which is why the first inert pass left it, and it still reached the whole document it was inserted into — the reader's page. `body { display: none }` in a linked file blanked that page with no control left to undo it; the test module's own fixture cannot reach the viewer without the fix, so all fifteen of its tests error rather than fail. The sheet is now wrapped in one CSS nesting block keyed to the viewer host, so the document keeps its styling and a rule naming `:root`, `html` or `body` matches nothing. ` ` goes with the framing elements: a cross-origin sheet has no rules to confine, and every `rel` is a network request made for a reader who only opened a file. The notice counts both, in the page's own language — five new string-table keys. - A page written to leave the machine can drop the rebuild command. The footer's `cd ~/code/notes && oku build` names a directory layout rather than an account, and it is still something the page hands to everyone it reaches. `"rebuild_command": false` in kit.json removes the field, and the button goes with it — the runtime already drew nothing when `cmd` was absent, so there is no disabled state. Version, kit stamp, build age and the drift warning stay, because none of them names a machine. On by default: the failure the footer exists for is a page that could not say how old it was. - An image reaching past the project is left where it is, and named. `collect_page_assets` asked whether a file sits above the tree being built; nothing asked whether the project owns it, so `` was base64'd into a standalone page in silence, past a clean `oku check`. The fence is the one `#f/` already answers to — nearest `.git`, else `kit.json` — read through the same scanner the build carries with, so the check reports exactly what the build would publish. `image-outside` at warning; the build prints the file it declined; the reference stays in the page. An image above the docs root but inside the project still travels, which is the case that made the fence necessary rather than a blanket refusal. - Every code `oku check` emits is a code the severity table explains, in both languages. Three copies of one list and no way for them to see each other — the eighth source of the shape `test_authority_agreement.py` exists for. Both directions are held; the reverse one found that a scan reading two of the four call shapes reports `chart-*`, `json-parse-failed` and `shadowed-source` as documented-but-dead. - A mermaid `classDef` with a hex literal is `island-hand-styled` too. The lint only ever walked string blocks, and a mermaid fence lifts to a typed `diagram` block before it gets there, so nine hardcoded fills on this repo's own architecture page passed `oku check --strict` — pale plates that stayed pale on a dark page, carrying a label that inverted with the theme without them. The ramp gained a plate per colour per theme (`--series-1-soft` … `--series-10-soft`) and the diagrams moved to `fill:var(--series-N-soft),stroke:var(--series-N),color:var(--text)`. The plate now flips with the theme (`rgb(220,252,231)` to `rgb(20,83,45)` at 1280px and at 360px) and the label on it measures 12.47 to 15.56:1 in light, 7.10 to 9.28:1 in dark. Mermaid's grammar takes CSS values and not CSS functions, which is why the plates are tokens rather than a `color-mix()` at the call site. - A chart with nothing to plot says so at render time, not only at build time. `oku check` has rejected an empty payload since the one-rule pass; the renderer drew the frame and the axes anyway, and the generic empty-block guard passed it because an ` ` full of tick labels counts as visible. The two exposures the check cannot reach are a JSON page edited by hand and a tree built by an older tool. The same rule now runs in both places, on the authored payload in both — normalising a `line` fills in `marks`, which reads as data. - A section in the contents panel folds from the keyboard. The control was a ` ` with the click handler on the row, so the only keyboard-reachable thing in a section header was the link — and the link navigates. It is a ` ` now, with `aria-expanded` and `aria-controls`, kept in step with the scroll-spy through one setter; a section with nothing to fold keeps a plain span, so the numbers still line up (link x 66 at 1440px and at 360px) without a tab stop that goes nowhere. - The column-resize grab zone sits inside its own cell. Straddling the boundary (`right: -3px`) let the next `th` paint over the outer two-thirds: of six visible pixels two answered, and the grip line the reader can see was in the dead part, where a click sorted the next column instead of resizing this one. Ten pixels inside the cell, all ten reaching the pointer at 1440px and at 360px. - A drag binds its `mousemove` / `mouseup` pair on press and releases it on release. Bound permanently instead, the lightbox stage added a pair per open (1 to 11 over ten open/close cycles, each holding that open's cloned figure), a zoomable chart added one per chart (10 on the charts page) and a resizable table added one per column (14 on the tables page). All three now sit at 1 or 0 at rest. The chart-config popover and the scroll-spy were checked in the same pass and bind once, not per element. - A document opened in the markdown viewer is read, not run. A ` ` in a linked `.md` executed in the host page: it set a global, rewrote `document.title` and wrote the kit's own `oku-theme-mode` key in localStorage. Scripts, `on*` handlers, `javascript:` destinations and framing elements are removed before the file reaches the page, and the viewer says how many went. A page's own islands are unchanged. - A citation kind is coloured by a token, so it follows the theme. `paper` painted `#4338ca` — `--series-3`'s light value — in the card icon and in the underline under the cited words, so on a dark page it stayed light while its four siblings inverted: 2.05:1 against its own icon plate, against 8.7 to 14.8 for the rest. Now 8.35:1. - A build that fails costs the new pages and nothing else: every page is written into `dist/.build- /` and moved into place at the end. A failure partway through used to leave 120 of 120 previously built files deleted. - The page reads in two voices at a reading measure: prose and headings in Literata, everything the kit draws around them in Inter, and a default column that stays at 900px (69 characters to the line on a delivered page, where it was 92) instead of growing with the screen. Summaries, callouts and insights are rules and glyphs on the page's own paper, not tinted boxes; labels are in sentence case. - Typography travels with the page: Inter, JetBrains Mono and Literata are vendored as eight variable woff2 and shared from `_oku/vendor/fonts/`. A standalone page made three requests to Google on open; it now makes none. - GFM conformance pass over the block + inline parser: backslash escapes, intraword-underscore rule, images, strikethrough, autolinks, link titles, character references, hard line breaks, `***` / `___` rules, `~~~` fences, ATX closing sequences, ordered-list start, multi-paragraph list items, escaped pipes in tables, column alignment, ragged-row normalisation, unique heading anchors. - Footnotes and reference-style links, resolved page-wide across b[] strings; `oku check` warns on an undefined reference. - Site navigation for the standard docs/ layout: the manifest is written where the kit lands, and a level with no pages of its own no longer breaks the tree. - `oku serve` falls back to the kit for pages outside the init directory, and percent-decodes request paths (non-ASCII filenames). - Source format v3 (markdown-first) shipped end to end; structural lint resurrected for v2 pages. - Source formats pruned to the two that ship: `.md` (what an author writes) and `.json` (pages written before the markdown format existed). The three carried for the measured comparison — html-first, asciidoc, djot — are deleted, along with their corpus and round-trip tests. HTML was never one of the candidates in the sense the name suggests: it is the OUTPUT of every build. - Path-based navigation router — URL pathname and rendered page can no longer diverge; legacy hash links normalise. - Wide diagrams always fit their column: the SVG renders at most at its authored size and scales down to the column, and its viewBox is refitted to the union of mermaid's box and the real content bbox so nothing mermaid lays outside that box can be cut. Reading detail on a wide diagram is the lightbox's job. This replaced an earlier 90%-of-authored-size floor, which is what made wide flowcharts overflow and read as trimmed. - Lightbox: full-viewport frame; diagrams move the live host (full interactivity) like charts. - Inline sanitised HTML allow-list restored in the renderer; sunburst gained ring-1 legend chips. - Browser regression suite (headless chromium against the real serve handler) wired into the default pytest run. Highlights shipped in the current cycle. Full per-commit history lives in git log. Chart types the schema accepts Charts with synced-cursor sweep Intent-grouped families on charts page Visible label-vs-corner overlaps on quadrant Playwright sweep - Pick-by-family rewrite — 43 clickable mini-cards with live tiny renders; click goes straight to the variant's full example. - Charts page regrouped into 10 intent families (Cartesian / Categorical / Part-to-whole / Distribution / Trend / Flow / Network / Multivariate / Goal / Geographic). - Code / output alignment is universally zero-pixel — boxes line up at top across every example-pair on every doc page. - Tooltip width is stable across pin states; pinned tooltip gets an × close button; viewport-fixed positioning surfaces it above the fullscreen lightbox. - Cartesian charts gain a synced vertical-dash cursor + a per-position tooltip listing every series value at the cursor's nearest x. - Ridgeline + sparkline cursor handlers update the rich tooltip per cursor position (was static-on-enter). - Quadrant corner-pill + Cartesian legend-cluster are no-fly zones for data labels — `_deconflictLabels` shifts or hides labels that would land in them. - Bubble legend backdrop fully opaque — a giant bubble can no longer bleed through the chip labels. - Parallel-coordinates stroke 3.6px resting / 5px hover, fade-others on hover so the highlighted record stands out. - Donut / pie pinned slices scale + accent-stroke; global focus-outline kill across chart shapes. - Gauge zones gain optional labels + a cursor-driven value-at-position inspector. - Mermaid trim mitigation: `.okd-render` now overflow:hidden, aspect-fit caps tall portrait diagrams at 70vh, font-size clamped to 13px for all SVG text. - Compare-grid cards gain optional `href` — whole-tile clickable. Used by Pick-by-family. - Tables `wrap: true` per-column for multi-line cell content. - All html-doc surface references removed; the GitHub repo and the local clone are `oku` too. ## Locked decisions {#decisions} Each was an open question once; collected here so future contributors don't relitigate. - Project name = oku (Turkish 'read!'). Every layer reads `oku`: package (src/oku/), kit CSS prefixes (okt- / okc- / okd-), JS globals (__oku*), event names (oku:*), data-attrs (data-oku-*), and custom-element tag names. - GitHub repo renamed to github.com/mmdemirbas/oku; the schema `$id`, the git-clone example and the CDN URL follow it. - Code / output columns inside example-pair MUST align at the top edge of the box. No 24px spacer for non-code outputs — the visible top edges of the code and output columns line up regardless of the output kind. - Tooltip width is stable across pin states. Pinned vs unpinned switches the footer text + close-button visibility, NEVER the bounding box. - ext-ref host is NOT a navigation link. Clicking pins the tooltip; the destination URL lives as a clickable domain anchor inside the citation card. One affordance per element. - Pagefind is a Python dep, not a system binary — `oku[search]` extra pulls `pagefind[bin]>=1.5`. - Layout = option A (centered document, three-mode content-width cycle: narrow / comfortable / max). - Tier 3 viz (sankey / network / scatter-matrix / parallel-coordinates / chord / geo) all ship as kit-native chart types — no third-party chart library. - Charts / tables / diagrams are sub-pages of Reference (meta.parent: 'reference'). - Source format = v3 markdown-first. A page is `.md`: YAML front-matter + a strict-GFM body (no indented code blocks, no setext headings, no lazy continuation — linted, still valid GFM); kit primitives are ```oku- fences with one compact JSON body; diagrams are ```mermaid fences with an italic caption line; raw block-level HTML islands (script included) pass through to the kit untouched and are audited by `oku check`. Decided after measuring tokens (markdown ≈ 20% leaner than v2 JSON, far leaner than HTML), LLM emission accuracy, and ecosystem direction; HTML-first was evaluated and rejected for repo-resident continually-edited sources. JSON pages (v1/v2) keep rendering via shims; `oku migrate` converts them. - Build outputs = two trees (standalone, site). No dist/markdown twins — the .md sources are the canonical AI/LLM surface; llms.txt lives at the site docs root. - Reactive prose (`${expr}` interpolation, `oku-bind` two-way binding) is **not being built**, and the reasons are not the ones assumed. It is not a capability gap: a built page has no CSP at all — measured, `new Function('return 6*7')()` returns 42 on a standalone page over `file://` — so an evaluator would run. And half of what the row asked for already ships under another name. `{{key}}` personalization substitutes reader-set values into prose at runtime (`kit.json` declares the keys, values persist in localStorage, `.okc-personalize-target` opts a prose passage in), and an HTML island in a page executes its own ` `, so two-way binding on a form input needs no new syntax today. What `${expr}` would add is a templating layer in the renderer and a second evaluation surface in a kit that spent real effort making a VIEWED document inert — against a format whose files are meant to stay readable on GitHub. That last cost is a matter of degree rather than a prohibition: `{#anchor}` and typed fences are already visible there, but they degrade to something a reader can still parse, and an expression sitting inside a sentence does not. **Reopen trigger:** authors asking for computed rather than supplied values. The cheaper answer then is derived keys in personalization, not an evaluator in prose. ## Principles {#principles} Reader-, author-, and maintainer-facing rules every change honours. - Single LEFT sidebar — TOC + site tree stacked. No right TOC, no mid-edge tab. - Visual-first authoring. Pros/cons → comparison-cards, metrics → kpi-grid, trade-offs → table-with-chips. Paragraph + bullets is the fallback, not the default. - Every fix pairs with a Playwright check. Browser-level fixes ship with numeric assertions captured in the commit body. - Numbers in counters / badges only — no English words baked into the kit. - No demo sibling pages. Every example for a primitive lives next to its heading. - No process / round / historical references in docs — describe current behaviour, not how it got there. - Layout invariants are numeric, not eyeball — express the rule as a boundingBox / computed-style assertion or accept it isn't a rule yet.