Back to Field Notes
Log

October 21: the placeholder the bold rule ate, and a menu trapped by a blur

Ask Infinary lost every code block to its own bold rule, and the phone menu shrank to a 73-pixel box once the nav blurred. Also: the site's product screens became real scenes, and Field Notes itself went live.

Covers
Written
Repositories
infinary.io, infinary_controls, infinary_agent, Orca-strator
Reading time
6 min
#site-chat#css#living-screens#ci-and-testing#agent-memory
Contents

A busy day: 40 merged pull requests across four repositories, most of them on this site. Two bugs are worth telling properly. The rest is a short list.

The placeholder the bold rule ate

Ask Infinary, the chat on this site, showed no fenced code at all. Ask it for a shell command, and where the command should have been, the answer said CODEBLOCK0, with BLOCK in italics.

The chat renders the model’s markdown with a small renderer of its own, in a fixed series of steps. Code has to survive the steps that turn ** into bold and _ into italics, so step 2 lifts each fenced block out and leaves a placeholder, __CODE_BLOCK_0__, and step 14 puts the block back.

The fix in PR #263:

  • Code is stashed earlier, before escaping and before any inline rule runs.
  • The placeholder can’t be rewritten. It’s built from two Unicode private-use characters, U+E000 and U+E001, around an index. No markdown rule matches them, and they’re stripped from the model’s text before rendering, so a model can’t forge one.
  • The restore uses a function replacement, so a $& or $1 inside someone’s code stays literal instead of being read as a replacement pattern.

Our first version of the fix used one marker for both kinds of code, and inline code lost its line breaks. The review caught it before merge, and the merged version gives inline and fenced code separate markers. While we were in the renderer, we also narrowed which link targets it will turn into links. The site’s tests went from 199 to 214. Earlier the same day, PR #262 fixed numbered lists that lost their numbering.

A menu trapped by a blur

On a phone, opening the menu and then scrolling made the menu vanish.

The menu is a full-screen overlay, position: fixed with inset: 0. It sat inside the sticky <nav>. Once the page scrolls past 50 pixels, the nav condenses and gets a backdrop-filter blur.

Measured on the live site at 375×812, the “full-screen” menu was 73 pixels tall with its top at −530: drawn off-screen. Locking scroll with overflow: hidden on the body doesn’t stop a phone scrolling the page behind an overlay, so the first scroll with the menu open was enough to trigger the blur.

The fix in PR #286 moves the menu out of the <nav> to be its sibling. The nav keeps a higher z-index, so its logo and close button stay on top. While the menu is open, the scroll lock goes on the root element, and overscroll-behavior: contain stops the menu’s own scroll chaining to the page. It also closes on a link tap, on Escape, on navigation, and when the window widens to desktop. Four new tests pin the structure: the menu stays outside the nav, is full-screen, and locks the root.

The site’s screens became real

Most of the day’s PRs replaced the illustrations on this site’s product pages with living scenes: short, scripted replays of the real product, drawn in HTML and CSS rather than recorded as video.

  • The engine compiles a scene’s steps into time ranges, so the scene’s state is a pure function of time. Scrubbing, replay and the reduced-motion view all use that one path. The markup is the scene’s final frame, so without JavaScript you see the finished state. The player loads only on pages with a scene and is 3.3 KB gzipped.
  • The data is a fictional company, Larkhaven Mechanical, with its people, customers and story beats, plus one fictional company for each industry page.
  • A gate checks that every scene carries a label for what it shows, from a shipped feature to a concept, and runs in the build and in npm run honesty:check.
  • Where they went: run replays on all 18 live and beta agent pages, replacing 12 AI-generated photos; the 9 module pages; all 22 industry pages; the last phone mock-ups on the Kremio page; and Home.
  • A capture bench seeds the fictional company into a throwaway ERP built from our approved (The server image every Infinary site runs: Frappe, ERPNext and our own apps, pinned to exact versions and tested together.), screenshots the real (Frappe's built-in web interface, where people use ERPNext in a browser.), and deletes everything. Its first run produced 26 screens at desktop and phone width, in 11 minutes for about $0.18 of build time.

The scenes draw today’s stock Frappe v16 Desk, because our own Desk theme (below) hasn’t been released yet.

PRs merged
40
agent pages with run replays
18
industry pages with scenes
22
site tests after the chat fixes
214

Also

  • A test that failed 1 run in 256. A golden-image test made a “same size, different bytes” file by replacing the last byte of random data with x. When the random data already ended in x, the files were identical and the test failed, once on an unrelated PR. It now flips the last byte instead (PR #265).
  • Home speed, in the lab. Loading only the Latin subset of our fonts, and a 14 KB WebP logo in place of a 158 KB PNG, moved the median Lighthouse mobile score on Home from 81 to 88 over 10 interleaved pairs on a local build. Bigger changes that cut page weight further were left out, because they raised blocking time. These are lab numbers from one machine, not production.
  • An empty window isn’t a failure. Invoice Checker’s three-way-match lane failed on our own ERP site on every run, because its check demanded at least one document examined, and the window had none. The honest answer to an empty window is “insufficient data”, and the check now applies only to real verdicts (Orca-strator #81). Merged, not yet released.
  • A false drift alarm. Every site with Frappe CRM reported customization drift that nobody made: CRM’s installer writes one Contact setting in code, with nothing marking it as the installer’s. The fingerprint now owns that record while it’s unchanged, and still flags it once someone edits it (infinary_agent #52). Merged, not yet released.
  • Infinary Controls 0.21.0 was released, with the hub’s key set and plain pairing errors from a key ring for the hub. Our own ERP site moved to it that evening, on a new image.
  • Agent Memory got its design approved and its first phase merged: long-term notes for agents, stored as documents on the customer’s own site. Phase 1 ships dark, with no agent wired to it yet, and isn’t released.
  • A Desk theme was designed and its first phase merged: the Infinary look on every Desk page, with per-customer brand colours planned. Not released.
  • Field Notes itself went live: the redesign into logs, deep dives and guides, the tool that collects each day’s activity, and 41 history notes going back to April. This is the first daily note drafted with that tool.