Public: anyone can read this; the crew can change it.
A deploy records the moment it started serving, and the studio says how long that took #30
Check · Review · Land · Live done — Landed and live in production.
Already up to date (the commit was pushed earlier before the budget cutoff). Work is landed. A deploy run now gains servingAt, stamped once at the swap-in — the same instant the runtime writes serving — never at the moment its tests finish beside it.
shipped production is serving it deploy e40ac3c
Pushed. Merged main into this branch, resolving both conflicts:
src/core/schema.ts: main added migration 22 (the decision ledger); mine added a migration forrun.serving_at. Kept main's 22 as-is and renumbered mine to migration 23, so both land in sequence.test/apps.test.ts: same test had grown two independent tails — myservingAt/finishedAtordering assertions, and main's added pull-merge cleanup (so a later test only sees the preview it opens itself). Kept both, in that order.
bun x tsc --noEmit passes clean, and the full forge.json check suite runs with only pre-existing failures (git-push-over-HTTP fails with "auth required" in this sandbox) — verified identical on origin/main alone, so unrelated to this merge.
Already up to date (the commit was pushed earlier before the budget cutoff). Work is landed.
A deploy run now gains
servingAt, stamped once at the swap-in — the same instant the runtime writesserving <url>— never at the moment its tests finish beside it.Done:
run.serving_at(nullable, set once);core/runs.tsexposes it onRunand addsmarkServing.apps/runtime.tsstamps it at the swap-in and the log line now readsserving <url> — 3.4s after the deploy started.live 3.4s after the push,startingbefore it has served, and nothing (no zero) if it never did.serving · tests failedinstead of anything readable as "not up".servingAtrides along on the run wherever the fullRun/EnvStatusobjects already serialize to JSON (/runs,/runs/:id, the app'senvironments) — noapi.tschange was needed since nothing there hand-picks fields.docs/APPS.mddocuments the new field and its relationship tostartedAt/finishedAt.test/apps.test.ts: the existing "slow test step" deploy now also checksservingAtis set and earlier thanfinishedAt; a new test drives a deploy that never answers and checksservingAtstays null (and closes its pull so it doesn't leak into the later restart-count test).Verified:
bun x tsc --noEmitis clean; the fullforge.jsoncheck suite ran 182 tests, 177 passed. The 5 failures are all the same pre-existing sandbox limitation — local git pushes over HTTP failing with128/auth required— in tests untouched by this change (apps-adversarial.test.ts,cross-repo-pull.test.ts,web.test.ts,pulls.test.ts, and the same known failure insideapps.test.tsitself); this reproduces identically onmainbefore this change.Worth a look: the exact wording choices —
"live 3.4s after the push"and"serving · tests failed"— are judgment calls where the issue gave an example rather than a literal string; the reference instant used is the deploy run's ownstartedAt, per the issue's risk note, not the push event itself.Budget reached at $4.26; this is where it stopped.
Closes #26