~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The console's pages are looked at, as pictures, before they change

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/look

What changes

just look draws the console's pages as pictures in target/look, for an agent to open with Read: any path, signed out or signed in as any account of its world (--as bob, through the PDS's own page, as a person signs in), desktop or phone, light or dark (desktop light and phone dark unless asked), a dialog or menu open (--click), typed into (--type), or one element alone (--element). It says when a page is wider than the screen, naming the element that runs past the edge.

It draws over a world as the e2e flows do (harness/world.mjs, behind the same https front, which now lives there for both), with the console served by its dev server, so the pictures are of the source as it is, with no build. The world has eight accounts, among them one with the longest handle the PDS takes, and Riders with nothing in it: the bare state. Seeds (--seed) write the rest, through the opensocial command, joining as the people would, and the console where only it writes (a group's pictures): full (a group with a banner, picture, links, rules, a moderator, more than a page of members, someone asking, an invite out), long (everything as long as the host takes), and waiting. A seed of one's own is a small module given the same tools. just look-up keeps a world up until ctrl-c, each seed written to it once, so a look takes seconds rather than half a minute.

The ui skill (.claude/skills/ui) says how the console's pages are looked at and what they are held to: the look (warm paper, cards, one colour that acts, rounded headings), its tokens and component layers, the states to look at, and the house rules (sentence case, one Empty in the list's place, space, weight, the same act done the same way everywhere: input in a dialog, a confirming dialog for what cannot be undone, lists, a part's heading carrying its act), and a critique by a fresh agent before pushing. AGENTS.md says to load it before changing anything under web/.

The https front passes WebSockets on too, so the dev server's page stays connected rather than reloading under a look.

Why

The signed-in group page was rough (a great empty block for a group with no banner, a blank disc for no picture, an empty list as two loose sentences, leaving the heaviest thing on the card) and nobody had seen it: its checks only proved it worked. This is the way to see it; the next pull uses it on every page.

The pages need a live host, so the look draws over a real world rather than recorded answers: the console's queries are the host's, and a recording would be one more thing to keep in step.

How it was checked

just look run over a kept world and a world of its own, signed out and as alice and dan, each seed, --click, --type, --element, phone and desktop, light and dark; the pictures attached are its own. just e2e over the moved front; node harness/docs.mjs.

Shortcomings

A look only draws; it judges nothing, which is the critique's job. A change to the host needs the kept world started again. Signing in waits for the page's script, as a click before it posts the form natively, which the page's form-action policy stops at the PDS's redirect: a person who clicks that early sees nothing happen.

🤖 Generated with Claude Code

riders-alice-desktop-light.png

invite-alice-phone-dark.png

Approved

This adds just look and just look-up, a Playwright harness that draws the console's pages over a world, plus three seeds, the ui skill, and an AGENTS.md line pointing to it. It also moves the https front into harness/world.mjs for both e2e and look, and passes WebSockets through tls-proxy.mjs. I read every changed file and found nothing that must change.

The new harness/world.mjs exports (tlsFront, resolving, and start with live, base, riders and stop) match what look.mjs and the e2e setup use. I read the code only and did not run just look or the e2e flows.

Minor, not blocking:

  • docs/reference/cli.md lists the look options but omits --press, --out and --name. They are documented at the top of look.mjs.
  • stop() sends SIGTERM to npx, not to the vite process it starts. If npx doesn't pass the signal on, a dev server could be left running after a look that started its own world. This is worth a check by hand.
Merged as 3e6251e