* feat(runs): one delivery track everywhere — the chat card draws the same track as Watch
The chat card under a dispatch had its own list (run-milestones: picked up →
pushed → PR → checks) and Watch had the delivery track, built from
different facts, so moving between the two screens meant reading two
stories about one change.
- lib/run-track-load: the one loader every run surface calls — events,
the runner's snapshot, what was asked, the branch or pull request on
GitHub while the run lives, the commits and checks behind it
(lib/repo-progress, was run-milestones-fetch), and after the run the
fix ledger through merge, deploy and Loki's look. Owner-only for anything
that reaches GitHub or the budget; never from a timer.
- The Watch route and both live-status routes the chat card polls carry
`track`; RunMilestones and the follow line are gone.
- lib/run-track: commits ride the working stage as facts ("Pushed: …", in
the builder's words); a red check is the merged stage in the needs-you
state, a green one "Checks passed — merging", before the ledger catches
up; the pull request's number and title come from the repository too.
- components/projects/RunTrack: `collapsible` — a settled track in a chat
thread folds to its one sentence and opens on a tap.
- components/projects/RunLook: the page before and after, side by side,
under the track in chat and on Watch (the before picture #1238 keeps).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
* refactor(run-follow): drop followRun — every surface reads the ledger through loadRunTrack now
The dead-exports ratchet caught it: nothing referenced the follow-only
wrapper once the live-status routes moved to lib/run-track-load.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(watch): time on every stage, a tap for the facts, one card for the whole run, the walkthrough
The delivery track (#1236) said WHERE the change was. The owner, watching
the next run the same afternoon: "it would also be cool if there's some
time taking … how long each step takes or has taken by the moment I'm
looking at it. Maybe clicking on it and seeing what's going on would be
nice too" — and "smooth movement between different screens; if it's
working on something I should be able to see how it's working on it".
- Every stage carries `at` and `facts`. The page shows "took 1m 20s" on
each stage behind, a one-second clock on the one happening now, and the
time of day otherwise (lib/run-track: stageTimings, formatStageSeconds —
pure, tested). A tap opens the row: which builder claimed it and when,
when the request was delivered, when the agent started and last printed,
the pull request by number, the merge, the deploy run, what Loki saw on
the live page. The working row shows the agent's screen as Watch last
peeked it, so "is it working?" has the screen as its answer.
- A pull request that exists while the agent is still in its session now
reads "Claude Code is finishing up" (now), not "made the change" (done)
with nothing happening — a live track always has a stage marked now.
- One card for the run's whole life (ProjectWatchLive, keyed by run):
waiting → working → on its way → live/stopped. The old split into a live
card and an outcome card unmounted one and mounted the other, so the
page jumped at the moment the person was watching most closely. Marks
and labels transition instead of snapping.
- The Walkthrough: the pull request's own account (lib/feedback/fix-note —
problem, change, where, who it helps, why, alternatives, for us,
downsides, costs, proof, left for later) plays on the card once the run
is done. Every project dispatch now asks the agent for it (dispatchClosing
carries fixNoteInstruction), not only visitor fixes.
- The fix ledger records when the deploy run last moved (deploy.at), so
"live" has a time; GitHub's updated_at is read for it.
Checked in a real browser with the bundled components: the clock ticks,
rows open, no horizontal overflow at 390px, light and dark.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
* test(watch): the browser fixture mounts the one-card Watch with its new props, and checks the track's clock and tap
terminal-clean-browser mounted ProjectWatchLive with the props the split
card had (working/startedAt), so the unified card's kicker looked up an
undefined phase and the page threw. The fixture now passes phase/track/
follow/walkthrough, and a second mount carries a track whose builder
stage is happening now: the row wears a running clock and a tap opens
the facts behind it, at 320 and 390px with no sideways scroll.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
---------
Co-authored-by: Claude <noreply@anthropic.com>
The owner sent a one-line change to petvity from a phone, watched "Claude
Code is working · started just now" under a narrated headline that
paraphrased the request, and did not believe it: "I'm not sure if it's
being done or not, and I don't really have faith in it." Six minutes in,
GitHub already held the branch and the pull request; eleven minutes in it
was merged, deployed and live. Watch said none of that — it narrated, and
when the run closed it stopped at the agent's summary, on a change that was
still a pull request. The facts existed (run events, the fix ledger, the
repo) and were never put on one line a person could read top to bottom.
Now every run draws the same six stages, each done / now / next / needs you
/ failed on evidence only — an event, a URL on GitHub, a deploy run, never
the clock — with one sentence for the whole:
You asked → A builder picked it up → Claude Code made the change →
Pull request opened (link) → Checks passed and merged → Live on <site>
(link, and what Loki saw when it opened the page)
- lib/run-track (pure, scripts/test/run-track.ts): the stages and the
sentence, from run events + the fix ledger + repo evidence.
- lib/run-evidence-live: while a run is live (or closed well with a blind
ledger), ask GitHub for the branch or pull request inside the run's
window — at most once a minute per run, only for a page someone has
open — and record it as payload.evidence, the key the reaper writes, so
the ledger can follow a pull request the handoff never named instead of
reporting "nothing reached GitHub" beside a merged one.
- github-evidence: skip bot pull requests and pushes. Dependabot opens on
its own clock; "Pull request opened: bump 24 packages" about a font-size
change is worse than nothing.
- /api/projects/[id]/watch carries `track`, `following`, `follow` and
`liveUrl`; followRunLedger returns the ledger beside the follow line, and
RunFollow carries its state. The payload type now declares `fix`.
- Watch: the track sits under the narrated headline while it works, and an
outcome card (sentence, track, "Open the live page", Loki's picture)
replaces "Finished" after. The page polls every 10 s after the run
closes until the track settles, and not after.
- ui-track-* in globals.css; docs/foundation/RUN-STATUS-SSOT.md gains the
track's stage/evidence table.
Checked at 390px light and dark and 1024px: no horizontal overflow.
Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67
Co-authored-by: Claude <noreply@anthropic.com>
Align Feedback ↔ Terminal to RUN-STATUS-SSOT: Working only when inject is
verified generating or a generating/progress hop lands after the prompt;
inject-no-generate → Needs you with Open Terminal / switch provider / Restart
Fleet Runner. Stamp injectVerified on runner ack; expand quota chooser to
Claude Code, Codex, Cursor, Grok, Antigravity (no Hermes). Prefer cloud-first
always-on box-runner; do not expand dual-channel status language.
Terminal is a ~60/40 PTY and Loki rail on the same run id Watch
follows. The rail shows phase, stall, and next action from run
events — not a log dump — with Ask vs Inject into this session,
PTY-byte ack after inject, and Grok/Cursor/Antigravity when quota
dies. Mobile opens the same rail as a bottom sheet. Empty Terminal
names Fleet Runner vs Kitty. Implement's Terminal link carries ?run=.
* docs: Loki foundation redesign (harness, AI, Robots, chrome)
SSOT for Cato’s 2026-09-16 program: honest run states, AI providers tab,
Robots foundation, OrangeCat-class chrome. Public name Cato only.
* docs: loop-first implement order (FleetCrown must work before polish)
Cato: P0 Implement honesty + visible Watch/Terminal + live Cloud provider before AI/Robots/chrome.
* docs: use Loki not retired FleetCrown name in foundation order