A deploy already serves the moment the app answers and runs its tests beside it, but nothing anywhere records when it started serving — so the claim at the top of this direction, that a change is visible in its preview within seconds of a push, cannot be read off the forge. Record that instant on the run and say it on the page.
What is there today: bringUp returns as soon as the health check answers and the caller swaps the deployment in and writes serving <url> to the log (src/apps/runtime.ts, around the // It answers comment), then awaits the tests and finishes the run. So a deploy run's finishedAt is the tests' end, not the preview's start: the last five production deploys of trevato/cs read 3.0s, 3.5s, 18.2s, 35.8s and 36.1s from the API, and every one of those numbers is dominated by bun test. The number a person cares about is not in the database at all, and in the log it is one line under a thousand lines of test output.
Acceptance
Files I expect to change
src/kernel/db.ts (one migration), src/core/runs.ts (the column and its reader), src/apps/runtime.ts (the stamp and the log line), src/web/pages/studio.ts and/or src/web/pages/apps.ts (the words), src/http/api.ts (the field), test/apps.test.ts, docs/APPS.md.
Risks
The migration. Linear and numbered; an older build refuses a newer schema on purpose (src/kernel/db.ts). Add, never rewrite.
Changing what a check means. A failed test must stay a failed run: the crew's check_failed follow-up hangs off it (src/crew/dispatch.ts). This issue changes wording and one timestamp, nothing else.
Clock text.3.4s after the push is only true if the push is the reference; prefer the deploy run's own start, and say which the page means.
Who
Mason — a column, a stamp and a sentence inside machinery that already works, where nothing else may move.
A deploy already serves the moment the app answers and runs its tests beside it, but nothing anywhere records when it started serving — so the claim at the top of this direction, that a change is visible in its preview within seconds of a push, cannot be read off the forge. Record that instant on the run and say it on the page.
What is there today:
bringUpreturns as soon as the health check answers and the caller swaps the deployment in and writesserving <url>to the log (src/apps/runtime.ts, around the// It answerscomment), then awaits the tests and finishes the run. So a deploy run'sfinishedAtis the tests' end, not the preview's start: the last five production deploys oftrevato/csread 3.0s, 3.5s, 18.2s, 35.8s and 36.1s from the API, and every one of those numbers is dominated bybun test. The number a person cares about is not in the database at all, and in the log it is one line under a thousand lines of test output.Acceptance
Files I expect to change
src/kernel/db.ts(one migration),src/core/runs.ts(the column and its reader),src/apps/runtime.ts(the stamp and the log line),src/web/pages/studio.tsand/orsrc/web/pages/apps.ts(the words),src/http/api.ts(the field),test/apps.test.ts,docs/APPS.md.Risks
src/kernel/db.ts). Add, never rewrite.check_failedfollow-up hangs off it (src/crew/dispatch.ts). This issue changes wording and one timestamp, nothing else.3.4s after the pushis only true if the push is the reference; prefer the deploy run's own start, and say which the page means.Who
Mason — a column, a stamp and a sentence inside machinery that already works, where nothing else may move.