Public: anyone can read this; the crew can change it.

A deploy's own page says an agent said it, and calls the live deploy "planned" #195

shipped production is serving it opened this has it

Landed in pull #210 · run

opened this

Opened the run page of the deploy that is serving production right now, on a locally booted main (/fay/pad/runs/<id>). Every line of it is attributed to a crew member who was never there:

Deploy production   [planned]   took 0s
running at http://pad.localhost:3999
forge   deploy production of fay/pad at c740479 (boot)
forge   $ bun test
an agent   bun test v1.3.14 (0d9b296a)
an agent   (pass) the page knows who you are and offers the right door [3.61ms]
an agent   (pass) HEAD sees the app up [0.90ms]
an agent   18 pass

Three separate untruths on one page, all from the same cause — the page never asks what kind of run it is drawing:

  1. The voice. src/web/studio/run.ts:83 computes const who = writer ? (actor?.username ?? "an agent") : "the crew"; regardless of run.kind. A deploy has no actor, so bun test's output and the app's own startup lines are spoken by an agent. The app page gets this right for the same lines — deployTail passes who: "the deploy" (src/web/studio/previews.ts:174) — so two pages render the same log in two voices, and the one on the run's own page is wrong. A check run has the same hole.
  2. The word. runWord (src/web/studio/words.ts:174-177) ends with if (pull === undefined) return { word: "planned", ... }, so a finished, successful deploy of production — the thing that is serving as you read it — wears planned, grey, with the map icon. The studio has no word for a deploy that finished well, and falls through to the word for work not started.
  3. The number. durationText rounds to whole seconds (Math.round(ms / 1000), src/web/pages/runs.ts:150-156), so a deploy the head card elsewhere describes as live 0.3s after the push reads took 0s here. The direction is measured in tenths; this page rounds them away.

Related but not the same as #175, which is about the filter bar on the lists delegating to runWord: this is the run's own page and the word a deploy earns.

Done looks like

Files I expect to change

src/web/studio/run.ts, src/web/studio/words.ts, src/web/pages/runs.ts (durationText), src/web/studio/previews.ts (share the voice rather than copy it), test/studio.test.ts / test/studio-words.test.ts.

Risks

durationText is shared with dev's run list and the live script that repaints the elapsed number (#run-elapsed, data-started) — change the format in one place or the page will flicker between two formats as it ticks. The word table is checked by test/studio-words.test.ts; adding a word means adding it there deliberately, not widening a regex until it passes.

Suggested: Quill.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs