Part 8 · 7 min read v1.0 · 22 June 2026
Layered HTML mockup frames flowing into a numbered specification document with checkboxes — mockups encoded as SDD, not decoration.

Mockups Are Specs, Not Screenshots

The search mockup looked right. Centered omnibox, ranked results, an AI overview block — the same visual language as Perplexity and every other AI search product shipping that month. I had static HTML that opened in a browser, sober chrome, channel icons, a settings screen for hybrid ranking weights. It was polished.

It was also the wrong product.

ArticleRecommender is not a search engine you open when you already have a question. The north star is still Signal → Investigate → Connect → Brief, but the daily job is smaller and more habitual: what matters today on this topic? That is a feed you scroll like LinkedIn or Instagram — ranked cards, dismiss and save on the card, a wall selector for which edition you are reading — not a query box waiting for intent.

I pivoted the mockups. Then I did the step that made them survive contact with agents: I encoded them as specification-driven design, region by region, with acceptance checkboxes an engineer (or an agent session) could target without re-reading my head.

The wrong home looked beautiful

Phase 1 shipped chat, discovery, and archive. When I returned to the product after the evaluation-lab detour, the UI still behaved like a chat app with search bolted on. I asked for a senior UX pass — design principles, information architecture, possibly mockups.

The first pass was search-first. Perplexity-style layout: omnibox as hero, results below, explainability panels. It matched competitive patterns. It did not match how I actually use the product — opening the app in the morning to see what landed overnight, not typing a query I had not formed yet.

The correction was blunt: daily aggregator, not search engine. Collectors run on a schedule; the catalog grows; the home surface answers “what’s interesting today?” Search stays available — as a catalog lens on /search, not as /.

That single sentence reorganized the whole design kit.

What I built instead of Figma

I did not open Figma. I built a static HTML mockup kit under docs/design/ux-search-redesign/ in the ArticleRecommender repo — files you open with file://, tweak in an editor, and refresh. No design-tool export pipeline, no screenshot deck that goes stale the moment an agent changes a component name.

The hub is mockups/index.html. The surfaces that matter:

MockupRoute (target)Job
feed-desktop.html/Today feed — walls, periods, digest, cards
search-desktop.html/searchCatalog search when you have a query
walls-manage.html/interestsCreate and edit topic walls
search-mobile.htmlmobile targetBottom nav, compact cards

Supporting docs capture the why, not just the pixels: feed-paradigm.md (LinkedIn/Instagram patterns, what to avoid as home default), topic-walls.md, time-horizons.md (today · week · month editions), appearance-themes.md (nine client theme previews).

The mockups iterated in chat — palette sobered from psychedelic to Linear/Vercel-class chrome, channel images added, layout width toggle, theme bar — but they stayed HTML so every revision was diffable and agent-editable.

The encoding step

Pretty mockups die in Slack threads. The durable artifact is the SDD slice that maps mockup regions to numbered requirements and acceptance criteria.

I asked to encode mockup features as SDD. The result is docs/specs/feed-and-home-ux.md — thirteen sections, explicit terminology (UI topic wall → API interest_id), a surface inventory tying each HTML file to spec sections, and a traceability table at §13:

Mockup regionSpec §
Rail + top bar§1
Theme bar§3
Wall strip + panel§4
Period tabs§5
Digest§6
Filter chips + cards§7

Each functional block has acceptance checkboxes — concrete behaviors like “/ renders feed, not search composer as hero” and “Nav to Search preserves wall context when interest_id was selected on feed.” That is the same contract shape I use for API specs: requirements first, acceptance second, testing implied third.

Mockup to SDD to test loop Mockup region maps to SDD section, acceptance checkbox, and automated test. Mockup region feed-desktop.html  wall strip, cards Walk the layout SDD section feed-and-home-ux.md �4, �7 Requirements + acceptance Acceptance checkbox / renders feed; wall context � search What done means Playwright / unit test feed-home.spec.ts, feed-nav.spec.ts Validate

The mockup kit README now points implementers at the SDD first, mockups second — design reference, not authority. Authority lives in the numbered spec agents can grep.

Not pretty screenshots

There is a failure mode I have seen on agent-heavy projects: someone generates a gorgeous UI image, drops it in a doc, and declares design done. Agents implement something that resembles the image. Playwright passes on happy paths nobody wrote down. Three sprints later nobody agrees what “done” meant.

Specs Drive. Tests Validate. describes the application stack version of this — SDD drives intent, tests validate behavior, agents draft in between. UX gets the same ladder:

LaneRole on feed redesign
MockupsExplore layout, hierarchy, copy — the walk until the paradigm is right
SDD (feed-and-home-ux.md)Encode regions as requirements + acceptance — the contract
TestsPlaywright and component tests keyed to acceptance — the signature

Mockups without acceptance criteria are mood boards. Acceptance without mockups is abstract — engineers invent spacing. Together they give agents a fixed target: “make §7 true and match feed-desktop.html for the card chrome.”

Chapter 7 ended with walk until the map is clear, then automate the work around judgment. The mockup kit was the map for UX. The SDD was how I stopped re-explaining the map every session.

What actually shipped

Routes in frontend/src/App.tsx match the IA from the spec: FeedPage at /, SearchPage at /search, interests at /interests, settings and archive on the rail.

FeedPage.tsx is not a placeholder. It loads walls from GET /api/interests, fetches GET /api/feeds/{interest_id} with date and period, renders period tabs, wall strip and panel, digest block, channel filter chips, feed cards with feedback actions, theme bar, layout width toggle, empty and caught-up states, and month theme clusters when the API returns them.

E2E covers the behaviors the spec cares about:

That is real product surface — not a screenshot of intent.

What is still open

Honesty matters. The acceptance checkboxes in feed-and-home-ux.md are still unchecked in the doc — I have not formally closed the traceability loop by ticking §1–§9 as verified against production. Some gaps are real:

That gap is useful. It tells the next agent session exactly what “done” still means without re-opening the HTML folder.

Takeaways

Previous: Agents Draft. I Sign. · Series index: Building an Evaluation Lab by Accident

The Evidence


← All posts