Skip to content

Add mass dashboard, a live terminal view of the organization - #272

Merged
coryodaniel merged 121 commits into
mainfrom
dashboard
Nov 30, 2026
Merged

coryodaniel merged 121 commits into
mainfrom
dashboard

Conversation

@coryodaniel

@coryodaniel coryodaniel commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

mass dashboard (aliases dash, constellation) opens Massdriver Constellation, a full-screen, live view of the organization. It's built on the runtime and application queries and on the instance alarm, deployment, upgrade and dependency fields in the v2 API. The guide is massdriver-cloud/docs#304.

This PR now includes the work from #275, #276, #277, #278, #279, #280, #281, #282, #284, #285, #286, #289 and #290.

Focus

An organization can have hundreds of projects, so the dashboard reads one neighborhood rather than everything.

  • The center. It centers on the environment --env names, or else the environment of the most recent deployment. It reads that environment and its neighbors out to --depth hops (default 1), ring by ring, with environments(filter: {id: {in: ...}}).

  • Neighbors are:

    • the producers its instances depend on;
    • the consumers that reference its resources or default to them;
    • the environment it was forked from.
  • Past the edge. Environments past the edge show 🔭. Ids it asks for that don't come back show as no access.

  • Moving the focus.

    • A selection that rests for 700ms, or one made with enter, becomes the focus, and nodes glide to their new places.
    • / matches what is in view first. If nothing matches, it reads a directory of environment ids and names once and searches that.
  • Everything else follows the view:

    • the stash feed, annotations and refreshes;
    • the Alarms, Upgrades and Deployments tabs;
    • the instance counts on Runtimes;
    • --watch.

    Runtime and application lists stay org-wide.

Tabs

  1. Constellation: environments linked by the resources they use and the environment they were forked from.
    • Marks. Sparks run from producer to consumer. Rings show instance status, firing alarms pulse, running deployments sweep around the ring, and ↑N marks available upgrades.
    • Side panel. Selecting an environment shows its instances, alarms, deployments, widgets, notes, neighbors and blast radius. The blast radius lights the downstream environments by hop.
    • Toggles (b a c g s): blast radius, instance dots, cost sizing, grouping by project, producers on top.
  2. Runtimes: version adoption per runtime, instances and applications marked Latest or Behind, and a what-if for a patch, minor or major release.
  3. Alarms: every firing alarm in view, with how far its blast radius reaches.
  4. Upgrades: every instance in view that has a newer bundle version its constraint allows.
  5. Deployments: deployments awaiting approval first, then those in flight, then the 20 most recent finished ones, dimmed.
    • c shows a deployment's config: the message, the bundle version, and a diff of its params against the last completed provision. Values that look secret are masked.
    • y approves it.
    • x rejects it, with an optional reason. The API's rejectDeployment takes no message, so the reason goes in the deployment's stash under review/rejection after the reject.
    • The tab reads by instance, 100 instances per request, only while it's open.

Themes, palettes and rendering

  • Themes. --theme picks how the map is drawn, and v cycles through them:
    • constellation: a force layout with braille rings and curved links.
    • metro: stations on a band per project, producers to the left.
    • radar: the focus at the center of a sweeping scope, with each environment on the ring as many hops out as it is.
    • plain: environments listed by project, one line each, with only the facts that apply and nothing moving. Environments you can't see sit under "More".
  • Palettes. --palette picks night, rain or blueprint, and p cycles through them. Red, orange and yellow keep their meaning in every palette.
  • Rendering. --render blocks draws solid blocks instead of braille, for terminals such as Ghostty.
  • Banner. A banner from the stash runs across the top of the map.

Live

  • Ticker. It polls the audit log every --events (default 5s). Events of the stash* types are left off.
    • Flashes. Where something happens, the environment ripples and an emoji rises: 🚀 deploy started, ✅ finished, 💥 failed, 🚨 alarm, and others. --flashes words shows the event name instead, and --flashes off keeps only the ripple.
    • Overflow. A poll that gets cut short says so only when it missed events newer than the last ones read.
  • What gets re-read, and when:
    • Whole map: on start, refocus, search, r, and after an approve or deploy. Also on these audit events: an instance or connection created, deleted or moved in view, or any remote reference or environment default.
    • Status only: on a deployment or alarm event, and on each --refresh tick (default 30s). The status read (dashboardEnvironmentStatus) covers each instance's status, version, upgrade, alarms and latest deployments. It's merged into the snapshot, so nothing on the map moves.
    • Nothing: the refresh timer is skipped while every environment in view streams and the audit log is followed.
  • Replay. t replays 5 minutes to 24 hours of the audit log onto the map. Space pauses, and [ and ] change the speed.
  • Watch. --watch jumps to each alarm that starts firing, locks onto it under a banner, rings the terminal and sends an OSC 9 notification. When the alarm clears, the view goes back to where it was.
  • Logs. f follows a deployment's logs in a wider side panel.
    • It streams with Deployments.StreamLogs and falls back to polling. It keeps 500 lines and drops repeats.
    • Page up/down, shift+↑/shift+↓, home and end scroll, and new lines don't move what you're reading.
  • Open. o opens the selection in the web app.
  • Key line. The bottom line lists only the keys that work where you are.

Acting

  • Approve and deploy from the map. n/N pick an instance. y approves its waiting deployment, and d deploys it again with its current params.
  • Confirmation. Both open a box that names the action and shows the blast radius. The box offers c to see the config first. Any key other than y or enter cancels.
  • Read-only. --read-only turns off approving, rejecting and deploying.

Stash, widgets and annotations

  • Feed. The dashboard reads every project, environment, component and instance stash in view, then streams each key as it is set or deleted, one stream per environment in view.
    • A service account, a view of more than 20 environments, or a reconnecting stream polls every --stash interval (default 3s) instead.
    • Each full or status read, and each reconnect, reads the whole stash again.
  • Widgets. They come from the well-known keys the way the Massdriver UI draws them: md/v1/health, md/v1/usage, md/v1/traffic, md/v1/banner and md/v1/links, with the UI's thresholds.
    • The ticker draws a change as its widget, such as ● degraded, ▮▮▮▮▮▮▮▮▯▯ 82/100 % CPU or 40/s · ✕7 · 180ms, after the key's emoji (🩺 📊 📈 📣 🔗). The key name appears only when there's nothing else to show.
    • Only keys a widget draws reach the ticker or rise over the map.
  • Annotations. Pinned widget annotations bind any stash key and win over the automatic widget. Note annotations render their Liquid templates with the UI's stash bindings.
    • A service account never asks for annotations: Viewer.Get is checked once per session. For anyone else, a classified 403 stops further calls for the session.
  • Safety. Text from the stash, notes, logs and deployments is stripped of control characters, and only http and https links are clickable.

Incidents

  • Record. While it runs, the dashboard keeps a record of each incident: the snapshot and stash when it fired, its blast radius, and the events in that blast radius from 15 minutes before until it cleared.
  • Write-up. w opens the write-up inside the dashboard, rendered with Glamour in the palette's colors.
    • e edits the raw markdown, and esc goes back to the rendered view.
    • ctrl+s saves incident-<instance>-<alarm>-<YYYYMMDD-HHMM>.md and its .json recording with mode 0600.
    • Closing with unsaved edits asks first.
  • Playback. --playback <file> replays a recording offline, with no profile and no API calls.
  • Export. e on the map saves it as an SVG in the current theme and palette.

Tutorial

--tutorial walks through 18 steps on a made-up organization, offline. Each step locks onto what it explains under a caption: rings, alarms, deploys, sparks, forks, blast radius, upgrades, banners, notes, out of view, no access, flashes, the ticker, the side panel and the keys.

Key bindings

Keys can be rebound in $XDG_CONFIG_HOME/massdriver/dashboard.yaml, else ~/.config/massdriver/dashboard.yaml, or in a file named with --keys:

keys:
  approve: y
  follow_logs: [f, L]
  deploy: []
  • One keymap. Every handler looks up named actions per context, and rebinding an action changes it everywhere it appears.
  • Errors. An unknown action or key, malformed YAML, or one key doing two things on one screen is an error at startup that names the problem.
  • ctrl+c always quits.
  • Typing boxes. The search box, the rejection reason and the write-up editor take typed characters before any binding.
  • Displays follow. The key line, every box, the ? legend and the tutorial show the bound keys.

Piped output

When stdout is not a terminal, the command prints the environments, firing alarms and runtimes in view as tables.

Layout

cmd/dashboard.go is wiring only. The logic lives in internal/commands/dashboard and reads through a narrow API interface over the SDK's GraphQL transport and its audit log, stash, deployments and viewer services. It needs massdriver-sdk-go v0.7.0 and #288's move to its streams; merge #288 first.

🤖 Generated with Claude Code

Shows environments as a constellation linked by the resources they share,
with firing alarms, blast radius, deployments in flight, available upgrades,
and spend. Runtimes, Alarms, and Upgrades tabs cover runtime adoption, what
is firing, and what can upgrade. A ticker follows the audit log and lights
up where things happen, and a replay plays a chosen window of it back onto
the map. Piped output prints the same data as tables.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 1m 12s —— View job


Review of mass dashboard (#272)

I read cmd/dashboard.go, api.go, dashboard.go, model.go, ticker.go and the start of replay.go. I skimmed the rest. go test ./internal/commands/dashboard/ passes. golangci-lint isn't installed in this runner, so I didn't run lint or make check.

Layering and structure

  • The layering follows CLAUDE.md. cmd/dashboard.go is wiring only, logic is in internal/commands/dashboard behind a narrow API interface, and there are no test files in cmd/.
  • The SDK owns auth and config: the profile comes from newMassdriverClient, and nothing resolves credentials locally.
  • I didn't check that every cmd/ flag and helpdoc change is reflected in docs/generated. CI will catch that if make docs was missed.

Issues, most important first

  1. Event poll reads one page of 50 (api.go, Events; model.go, applyEvents).

    • Events fetches a single page. applyEvents then advances since to the newest event time.
    • If more than 50 events land between polls, the extras are never shown. This is most likely with a short --events interval or a busy org.
    • Either page until Next == "" or until a seen ID turns up, or document the cap.
    • This also assumes ListPage returns newest-first. History relies on the same assumption when it truncates "keeping the newest". Please confirm that ordering is guaranteed, or pass an explicit sort.
  2. Replay silently truncates (api.go, History).

    • historyLimit = 1000 drops the oldest events on a 24h window with no sign in the UI. The replay looks complete but starts partway through the window.
    • Surfacing "showing newest 1000 of N+" in the replay ticker would help.
  3. A stale historyMsg can be applied to a later replay (replay.go).

    • applyHistory only checks m.replay.loading.
    • If you press t to cancel during loading, then t and enter again, the first request's result can arrive and be taken as the second's. The windows may differ.
    • A request ID on historyMsg, compared on apply, fixes it. The same applies to snapshotMsg and eventsMsg if you ever allow concurrent requests.
  4. Unbounded seen map (model.go).

    • seen map[string]bool grows for the life of the session while events is capped at 40.
    • It is small, but on a long-running dashboard you could prune IDs older than since - eventBacklog.
  5. Fetch is heavy and has no partial-failure path (api.go, Fetch).

    • It drains environments, runtimes and applications one after another.
    • Each environment page nests instances, alarms, dependencies and cost.
    • On a large org, one error in any later page discards everything, and the next refresh re-reads it all.
    • Consider running the three drains concurrently with errgroup, and keeping the previous snapshot on error. The model already does the latter.
    • Alarms only read the first page per instance (AlarmsPage). Instances with many alarms can under-report firing alarms. Worth a comment, or a limit argument on the query.
  6. Fetch and the polling commands use context.Background().

    • fetch, fetchEvents and startReplay ignore the ctx passed to Run.
    • Quitting the program won't cancel in-flight requests. Exit is quick in practice, but threading the context through Config would be cleaner.
  7. OpenBrowser (dashboard.go).

    • cmd.Start() is never followed by Wait() or Release(), so xdg-open and open leave zombie processes until the program exits.
    • Use go cmd.Wait() or cmd.Process.Release().
  8. Environment ID inferred from the audit subject (ToEvent).

    • Building EnvID as parts[2] + "-" + parts[3] from an MRI string is fragile if the ID format ever changes.
    • The unit test covers the current shape. Consider noting this next to the code, since it's a non-obvious coupling.

CLAUDE.md comment rule

  • The rule is "default to none, and no doc comments on unexported helpers". Several unexported items carry narrating doc comments:
    • ticker in ticker.go
    • applyEvents in model.go
    • startSpeed, toggleReplay and replay in replay.go
    • bar in detail.go
    • settle in layout.go
    • several in graph.go and canvas.go
  • Comments that explain why are fine (maxPages, the replaySteps note). The ones that restate what the code does should go.

Tests

  • Coverage looks good and is table-driven, with one _test.go per source file. views.go and theme.go have no test file, which is acceptable if they are render-only.
  • It would be worth adding a regression test for the stale-history case (item 3) and the event-burst case (item 1).

Minor

  • go.mod: x/ansi moved from indirect to direct. This is correct, and go mod tidy should be a no-op.
  • The non-TTY summary prints three tables with no section headers, only blank lines between them. A one-line header per table would make piped output easier to read.

Items 1 and 3 are worth fixing before merge. The rest are follow-ups or polish.
· branch dashboard

A burst of events between polls no longer loses all but the newest 50,
and a replay says when its window held more than it can play. A replay
cancelled while loading can no longer take the answer meant for the one
that replaced it. Firing counts use the instance's count rather than the
first page of alarms, reads stop when the dashboard closes, and the three
reads run at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. Fixed in 05eaf7a:

  1. Event poll paging. Events now pages until the last page, up to 500 events per poll. The audit log's default order is newest first (auditlogs.ListInput documents DESC as the default), and both Events and History page back from the newest.
  2. Silent replay truncation. History returns a Log with Truncated, and the replay ticker shows "newest N only" when the window held more than 1,000 events.
  3. Stale historyMsg. Each replay read carries a request number, and applyHistory ignores answers to cancelled reads. Added a regression test. Snapshot and event reads never overlap, because loading guards the first and polls are chained.
  4. Unbounded seen. Reads start at since inclusive, so only events at since can come back. seen now drops IDs older than since after each read.
  5. Fetch. The three reads run concurrently with errgroup. The model already keeps the previous snapshot on error. Firing counts now use firingAlarmCount rather than the length of the first page of alarms.
  6. Context. Run's context reaches every read through Config.Context.
  7. OpenBrowser. It now waits on the process in a goroutine.
  8. MRI coupling. No change. ToEvent's doc comment already states the subject format and how the environment ID comes out of it, and TestToEvent pins it.

Comments. I removed the doc comments on unexported helpers that only restated the code. The ones left explain why: maxPages, readAudit's ordering assumption, historyMsg's request number, applyEvents's re-read, nearest's scoring, and stats' drop order.

Not changed:

  • Section headers on piped output. Each table already has its own column headers, and plain tables stay easy to grep and awk.
  • Event-burst regression test. Item 1 is covered by TestReadAudit, which reads a 320-event burst and checks truncation of a 1,200-event window.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 1m 23s —— View job


Re-review of mass dashboard (#272) at 05eaf7a

I read the diff of 05eaf7a (api.go, model.go, replay.go, dashboard.go, go.mod). go build ./..., go vet and go test ./internal/commands/dashboard/ pass. golangci-lint isn't available in this runner, so I didn't run make check or make docs. CI will cover those.

Items 1–7 from the first review are resolved. Nothing blocks merge.

Checked and fine

  • Event paging (readAudit).
    • The loop stops at the limit or when Next is empty. Truncated is len > limit || Next != "", which is correct. The reverse to oldest-first happens after trimming, so the newest events are the ones kept.
    • An empty page with a non-empty Next also stops the loop, so it can't spin.
  • Stale replay reads. Each replay read carries a request number, and applyHistory checks it along with loading. Both cancelling during a load and restarting are handled.
  • seen pruning. Deleting IDs with at < since is safe because reads start at since inclusive. Events stamped exactly since stay in the map, so they aren't re-flashed.
  • Fetch with errgroup. Each goroutine writes a different Snapshot field, so there is no race. The first error cancels the other two reads and the error is wrapped with which read failed.
  • firingAlarmCount. The field exists in the SDK schema (schema.graphql:8772, Int!).
  • OpenBrowser. go cmd.Wait() removes the zombie process.
  • go.mod. x/sync moved from indirect to direct, which is correct.

Remaining nits

  1. Alarm counts can disagree with the Alarms list (graph.go:201).
    • in.Firing = max(len(firing), inst.FiringAlarmCount) fixes the counts and rings. node.Firing and g.Firing, which feed the Alarms tab and the detail panel, still hold only the first page of alarms.
    • An instance with more alarms than one page shows, for example, "7 firing" with fewer rows listed. That is acceptable, but it's worth a short comment or a "+N more" row so it doesn't look like a bug.
  2. Poll truncation is silent (api.go, Events).
    • Events discards Log.Truncated. A burst over 500 events between polls drops the oldest events, and since advances past them. The ticker and flashes never show that anything was missed. Unlike the replay, this has no indicator.
    • It's rare and the cap is documented in a comment, so it's fine to leave. A toast would be the cheap fix.
  3. Late-arriving audit events.
    • since advances to the newest event time, and seen entries older than since are dropped. An event with an older timestamp that is ingested late would never be read. This only matters if the audit log can lag, and it's the same tradeoff as before, so I'm only noting it.
  4. Event-burst test coverage. TestReadAudit covers the burst and truncation at the API layer. applyEvents pruning seen has no direct test. A small case in model_test.go would pin the "event at since isn't re-flashed" behavior.

Your two "not changed" decisions are reasonable. The ToEvent doc comment plus TestToEvent covers the MRI coupling, and unheadered tables are easier to pipe.

Summary: the fixes are correct and the tests pass. The nits above can be follow-ups.
· branch dashboard

The footer says when more events arrived between polls than one poll
reads, and the side panel counts firing alarms beyond the first page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

coryodaniel commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Thanks. Fixed in aaae7dc and 7e41571:

  1. Alarm counts vs. listed rows. The side panel heading now uses the instance count, and it adds "+N more on the instances' alarm pages" when the first page lists fewer. Covered by TestEnvDetailMoreAlarms.
  2. Silent poll truncation. Events returns the Log, and the footer says "more than N events since the last check; showing the newest" when a poll was cut short.
  3. Late-arriving events. You're right that this can happen. EventStream.record stamps the CloudEvent before the insert commits, so a slower transaction can land behind events already read. Each poll now re-reads the last 30 seconds before since, and seen keeps IDs for that window so the overlap doesn't repeat them.
  4. seen pruning test. TestModelEvents now polls three times. It checks that an event read again shows once, that a late event stamped before the previous read still shows, and that a cut-short read shows its notice.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 54s —— View job


Re-review of mass dashboard (#272) at aaae7dc

I read the diff of aaae7dc (api.go, detail.go, model.go, views.go and their tests). go test ./internal/commands/dashboard/ and go vet pass. I didn't run make check or make docs, and golangci-lint isn't available in this runner. CI covers those.

Nothing blocks merge.

Checked and fine

  • Alarm count in the side panel (detail.go).
    • The heading now uses env.FiringCount(), the sum of per-instance Firing, which is max(len(firing), FiringAlarmCount). It matches the rings and counts elsewhere.
    • The "+N more" line only shows when the total exceeds the listed rows, so it won't appear in the normal case.
  • Poll truncation (api.go, model.go).
    • Events now returns the Log.
    • applyEvents shows the notice only when !msg.initial, so the first read doesn't warn.
    • len(msg.log.Events) is the cap when truncated, because readAudit trims to the limit, so the "more than N" text is accurate.
  • Toast prefix move (views.go). The ↗ now lives in the message strings, and the opened-URL toast was updated to match. The truncation toast carries no arrow, which is reasonable.
  • Late-arriving events. Your explanation holds if occurredAt is written in the same transaction as the change. Leaving since as is and keeping seen as the dedupe is consistent.

Nits, none blocking

  1. defer in writeFiring (detail.go:107).
    • The deferred closure only runs after the loop. A plain statement after the loop does the same, and the loop has no early returns.
    • It reads more simply without defer.
  2. Truncation notice can be overwritten. It shares the one toast slot with the "opened" toast, so a keypress like o right after a poll replaces it. It also expires after toastFrames. This is acceptable for a rare condition.
  3. Alarms tab still lists only listed rows. The side panel now says when rows are missing, but the Alarms tab, which is fed by g.Firing, doesn't. If its heading shows the total, it will have the same mismatch. It's worth checking, and a one-line note would fix it.

Summary: the changes do what the comment says and the tests pass. The nits can be follow-ups.
· branch dashboard

coryodaniel and others added 2 commits November 27, 2026 02:36
An event is stamped before the transaction that writes it commits, so it
can land behind events a poll has already read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. The review covered aaae7dc. 7e41571 had already changed item 3 of my earlier reply. EventStream.record stamps the event before the insert commits, so occurredAt can trail events already read. Each poll now re-reads the last 30 seconds, and seen keeps IDs for that window. I edited my earlier comment to match.

Fixed in the latest push:

  1. defer in writeFiring. It's now a plain call after the loop, through a shared moreAlarms helper.
  2. Alarms tab. The heading counts every firing alarm, and the tab ends with the same "+N more" line when the first pages list fewer. It shows the calm state only when the count is zero. The test covers both the side panel and the tab.

Not changed:
2. Shared toast slot. A keypress can replace the truncation notice. The condition is rare, the notice is informational, and the ticker already shows the events that did arrive.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 58s —— View job


Re-review of mass dashboard (#272) at 9db59de

I read the diffs of 7e41571 and 9db59de (model.go, detail.go, views.go, detail_test.go). go test ./internal/commands/dashboard/ and go vet pass. I didn't run make check or make docs, and I didn't confirm that golangci-lint is available here. CI covers those.

Nothing blocks merge.

Checked and fine

  • 30-second overlap (model.go).
    • fetchEvents reads from since - eventOverlap. seen is pruned at the same boundary, so an event the overlap returns again is already in seen and doesn't flash twice.
    • An event older than since that lands late still shows. The window is inclusive at both ends, so nothing drops between the read and the prune.
    • The truncation toast counts the overlap events against the 500 cap. A quiet org re-reads about 30 seconds per poll, which is cheap.
  • writeFiring / moreAlarms (detail.go).
    • The defer is gone. moreAlarms returns an empty string when nothing is missing, so the normal case is unchanged.
  • Alarms tab (views.go).
    • The total is the sum of FiringCount(), which matches the side panel and the rings. The calm state shows only when the total is zero.
    • If the first pages list no alarms but the count is above zero, the heading and "+N more" line still show. That is correct.
    • The new test covers the tab with FiringAlarmCount = 3 and checks the heading and the "+2 more" line.
  • Shared toast slot. Leaving it as is seems reasonable for a rare, informational notice.

Nits, none blocking

  1. Piped output undercounts (dashboard.go:108-113).
    • The non-TTY environments table reports env.FiringCount(), but the "Firing" table lists only g.Firing. With many alarms on one instance, the two disagree and nothing says why.
    • The fix is a short trailing line, reusing the same total minus listed rows. This is the same fix as for the Alarms tab.
  2. Count loop duplicated. alarmsBody sums FiringCount() over g.Envs inline. If nit 1 is taken up, a small Graph method for the total would serve both places.

Summary: the changes do what the commit messages say and the tests pass. The nits can be follow-ups.
· branch dashboard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. Both nits are fixed in the latest push:

  1. Piped output. The summary's alarm table now ends with "+N more on the instances' alarm pages" when the first pages list fewer than the count. Covered by TestRunSummaryMoreAlarms.
  2. Duplicated count loop. Graph.FiringCount() sums the environments, and both the Alarms tab and the summary use it.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 40s —— View job


Re-review of mass dashboard (#272) at 584ff70

I read the diff of 584ff70 (dashboard.go, graph.go, views.go, dashboard_test.go). go test ./internal/commands/dashboard/ and go vet pass. I didn't run make check or make docs. CI covers those.

Nothing blocks merge.

Checked and fine

  • Graph.FiringCount() (graph.go). It sums EnvNode.FiringCount() over g.Envs. The Alarms tab, the summary and the side panel now count the same way. The inline loop in alarmsBody is gone.
  • Piped output (dashboard.go).
    • writeAlarms computes the total from the graph, not from len(g.Firing). If the first pages list no alarms but FiringAlarmCount is above zero, the table and the "+N more" line still print.
    • The trailing line is plain text with no ANSI styling, which suits piped output.
  • TestRunSummaryMoreAlarms. Setting FiringAlarmCount = 3 on an instance that lists one alarm gives "+2 more", and the test checks that line.

Nit, not blocking

  • Duplicated wording. The "+N more on the instances' alarm pages" text is in moreAlarms (detail.go:117, styled) and again as a literal in writeAlarms. Moving the plain string into a shared helper that the styled version wraps would keep the two from drifting. It's two lines, so it's fine to leave.

Summary: the changes do what the commit message says and the tests pass.
· branch dashboard

@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. Leaving the duplicated wording: one copy is styled for the panel and the other is plain for pipes, and a shared helper for two lines of text would add more than it saves.

Widgets set through md/ stash keys show where they belong: health colors an
instance, usage draws a bar, traffic paces the sparks on the links an
instance sends on and labels them, a banner flags an environment, and
header links appear in the side panel. A server without widgets leaves
them out.

With --watch, an alarm that starts firing takes the view to its
environment, locks on, shows its blast radius under a banner, and rings
the terminal with a desktop notification. When it clears the view goes
back where it was, unless someone moved it. A running plan no longer
counts as a deploy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Added stash widgets and --watch incident mode in 636b42b (see the updated description). @claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 1m 30s —— View job


Review of mass dashboard (#272) at 636b42b

I read the stash widgets (widgets.go) and the --watch incident mode (incident.go). I also read the Fetch and key-handling changes. go build, go vet and go test ./internal/commands/dashboard/ pass. I didn't run make check or make docs, and golangci-lint isn't available here.

Item 1 is worth fixing before merge. Items 2 and 3 are real bugs in --watch.

Bugs

  1. Widgets are always read with a cancelled context (api.go, Fetch).

    • group, ctx := errgroup.WithContext(ctx) shadows ctx. The derived context is cancelled when group.Wait() returns.
    • fetchWidgets(ctx, ...) runs after Wait, so against a real server every widget request fails with context canceled. fetchWidgets swallows the error and returns nil, so the dashboard silently shows no widgets.
    • The tests pass because the fake API ignores ctx.
    • Fix: keep the outer context for the widget read, for example group, gctx := errgroup.WithContext(ctx) and use gctx only inside the Go closures.
    • Add a test whose fake Widgets returns ctx.Err().
  2. The "unless someone moved it" restore doesn't work during the resolved banner (model.go:341, incident.go:118).

    • touched is only set when len(m.watch.open) > 0.
    • Once the alarm clears, open is empty. Moving the selection or tab during the 60-frame "resolved after…" window doesn't set touched, so settleWatch jumps the view back to the saved state.
    • Fix: set touched whenever m.watch.back != nil, or whenever open is non-empty or resolved is non-nil.
  3. A new incident during the resolved window overwrites the saved view (incident.go:93).

    • openIncidents saves w.back whenever len(w.open) == 0. That is also true while the previous incident's resolved banner is showing.
    • The saved view then becomes the locked-on incident view, and the original tab and selection are lost.
    • Fix: only set back and reset touched when w.back == nil. settleWatch already clears the whole state.

Security

  1. Unsanitised stash content reaches the terminal (detail.go:247, theme.go:117).
    • hyperlink writes the stash-provided URL straight into an OSC 8 sequence, and the label is not sanitised either.
    • Stash values can be written by anyone with write access to an instance. An ESC or BEL in the URL ends the sequence early, and the rest is interpreted by the terminal.
    • Banner messages, labels and alarm names are rendered the same way.
    • Run oscSafe-style control-character stripping on the URL, label and banner text. Also only link http:// and https:// URLs, so file: and custom schemes aren't clickable.
    • oscSafe already exists for the notification, and the notification path is handled correctly.

Smaller points

  1. Widget reads are sequential and all-or-nothing (widgets.go:144).

    • One batch per project, read one after another. This adds latency to every refresh, and it runs after the three parallel reads.
    • A failure in any batch returns nil, which discards the batches that already succeeded.
    • Run the batches concurrently (bounded), and keep the ones that succeed.
    • Errors from a server that has the widget API but fails are also indistinguishable from "no widget API". A footer note would help.
  2. Incident detection sees only the first page of alarms (incident.go:56).

    • It diffs Graph.Firing, which is first-page only, as noted in earlier rounds.
    • An alarm that moves on or off the first page can open a false incident or a false resolve.
    • Alarms beyond the first page can never open one.
    • This is worth a comment, or a diff keyed on counts per instance.
  3. Notification write races with rendering (dashboard.go).

    • TerminalNotifier writes \a and the OSC 9 sequence to opts.Out from a tea.Cmd goroutine, while Bubble Tea is rendering to the same file.
    • A frame write can interleave with it. Writes are usually atomic at this size, but it isn't guaranteed.
    • tea.Printf or tea.Raw (if available in the pinned bubbletea) goes through the renderer.

Checked and fine

  • widgetScopes batches per project at 200 scopes, as the description says.
  • Values.UnmarshalJSON handles both the object and the encoded-string form.
  • oscSafe on the notification, and the guard on before == nil so the first read opens no incident.

Summary: the widget context bug (1) and the two state bugs in --watch (2, 3) should be fixed before merge, along with the injection hardening (4). The rest can be follow-ups.
· branch dashboard

Widget reads ran on a context the parallel reads had already cancelled,
so no widget ever showed against a real server. Widget batches now run
four at a time and keep the ones that succeed.

Text from the platform has its control characters stripped before it
reaches the terminal, and only http and https links are clickable.

--watch now opens an incident only when an instance's firing count rises,
and resolves one only when the list shows every alarm of its instance, so
an alarm moving on or off the first page opens or closes nothing. The view
goes back to where it was before the first incident, and a move during the
resolved banner keeps it where it was moved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

coryodaniel commented Nov 27, 2026 •

Copy link
Copy Markdown
Member Author

Thanks, these were real. Fixed in eb5a4b9:

  1. Cancelled widget context. Confirmed. The group's context is now groupCtx, used only inside the three reads, and widgets read with the caller's context. The fake Widgets returns ctx.Err(), so TestWidgetsOnTheGraph fails without the fix.
  2. Move during the resolved banner. touched is now set whenever a saved view exists (watch.back != nil), which covers the resolved window. Covered by TestIncidentKeepsAMoveWhileResolved.
  3. New incident during the resolved window. The view is saved only when none is saved, and settleWatch clears it. Covered by TestIncidentDuringResolvedKeepsTheFirstView.
  4. Terminal injection. Text from the platform has C0 and C1 control characters stripped when it enters the graph or the ticker: stash widget strings, environment and project names, alarm names and messages, and audit log details and actors. Only http and https header links are kept, and hyperlink refuses anything else. Covered by TestWidgetsCannotEscapeTheTerminal.
  5. Widget reads. Batches now run four at a time, and a failed batch leaves out only its own project. Covered by TestWidgetsKeepTheReadsThatWork. I didn't add a footer note: before the widget API ships, every org would see it on every refresh.
  6. First-page diff. Detection is now count-based. An incident opens only when an instance's firing count rises. If nothing new is listed, it opens as "N alarms firing" on the instance. An alarm missing from the list resolves only when the list shows every firing alarm of its instance, or the count reaches zero. Covered by TestIncidentPastTheFirstPage and TestIncidentLeavingThePageStaysOpen.

Not changed:
7. Notification write vs. renderer. bubbletea v1.3.10 has no raw-output command (tea.Printf and tea.Println are dropped in the alt screen). The notifier writes its sequence in one call, and the renderer writes each frame in one call. In practice the notification lands between frames, though a terminal isn't required to keep two writes whole. A stray bell sequence inside a frame would cost one garbled frame, which the next one repaints.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 1m 27s —— View job


Re-review of mass dashboard (#272) at eb5a4b9

I read the diff of eb5a4b9 (api.go, widgets.go, incident.go, model.go, theme.go, graph.go, dashboard.go). go build, go vet and go test ./internal/commands/dashboard/ pass. I didn't run make check or make docs, and I didn't confirm that golangci-lint is available here. CI covers those.

Nothing blocks merge. Items 1–6 from my last review are resolved, and I agree with leaving item 7 as is.

Checked and fine

  • Widget context (api.go). Fetch reads widgets with the caller's ctx. groupCtx is used only inside the three Go closures, and the fake Widgets returns ctx.Err(), so the test would catch a regression.
  • Resolved-banner restore (model.go:341, incident.go:148).
    • touched is now set whenever watch.back != nil.
    • openIncidents saves the view only when back == nil, and settleWatch clears the whole watchState.
    • A move during the resolved window is kept. A new incident in that window keeps the first saved view.
  • Widget batches (widgets.go).
    • Each goroutine writes only results[i], so there is no race. The loop variables are per-iteration under go 1.26.
    • A failed batch leaves out only its own project. Dropping the footer note is reasonable for a server without the widget API.
  • Count-based detection (incident.go).
    • An incident opens only when an instance's firing count rises. An unlisted rise opens as "N alarms firing".
    • stillFiring resolves an incident only when the instance's count is zero, or when the list shows every alarm of the instance and the incident's alarm isn't among them.
    • An alarm moving off the first page therefore closes nothing.
  • Notification write. Your reasoning holds. bubbletea v1.3.10 has no raw-output command, and a single write under 300 bytes is practical.
  • Hyperlinks. hyperlink refuses non-web URLs and strips control characters from the URL.

Nits, none blocking

  1. Some platform text still bypasses clean.
    • graph.go:244-246 copies bundle name and version and runtime name and version straight into InstNode.
    • The runtime and application names in rollout.go also look uncleaned.
    • These aren't stash values. Publishers and admins write them, so the risk is lower. But the stated rule is that text from the platform is cleaned on entry, and these reach the screen and the piped tables.
    • Cleaning them where they enter the graph or snapshot would make the rule uniform.
  2. webURL is case-sensitive. HTTPS://example.com is dropped. This is safe and only drops a valid link. strings.EqualFold on the prefix, or url.Parse and a scheme check, would accept it.
  3. Repeated unlisted incidents. An Unlisted incident is named "%d alarms firing". If the count rises again on the same instance, a second incident opens under a different name. Both resolve when the count reaches zero. The banner will show "+1 more" for what is one instance. Consider reusing the open unlisted incident for the instance.
  4. clean and C1 range. clean strips 0x7f–0x9f, which covers the 8-bit CSI/OSC introducers. It leaves Unicode bidi overrides (U+202A–U+202E, U+2066–U+2069) in place. These can make a label or URL display differently from its text. This is cosmetic spoofing and could be stripped too.

Summary: the fixes do what the commit message says and the tests pass. The nits can be follow-ups.
· branch dashboard

…dents

Bundle names and versions are publisher text, so they lose control
characters too, and so does a bidirectional override in any platform text.
A second rise on an instance whose alarms are past the first page updates
its open incident instead of opening another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. All four are fixed in the latest push:

  1. Bundle and runtime text. Fetch cleans bundle names and versions, runtime and application IDs, and adoption versions before anything reads them, so the graph, the Runtimes tab and the piped tables see the same cleaned text.
  2. webURL case. The scheme check is case-insensitive.
  3. Repeated unlisted incidents. A second rise on an instance with an open unlisted incident renames that incident to the new count, and doesn't notify again. Covered in TestIncidentPastTheFirstPage.
  4. Bidi overrides. clean also strips U+202A–U+202E and U+2066–U+2069. Covered in TestWidgetsCannotEscapeTheTerminal.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 1m 6s —— View job


Re-review of mass dashboard (#272) at a888892

I read the diff of a888892 (api.go, incident.go, widgets.go and their tests). go build and go test ./internal/commands/dashboard/ pass; I ran go vet as well. I didn't run make check or make docs. CI covers those.

Nothing blocks merge. All four nits from the last review are resolved.

Checked and fine

  • webURL. The prefix check is case-insensitive and still allows only http and https. The test links HTTPS://LOUD.example.com, and it is kept.
  • clean. It now strips U+202A–U+202E and U+2066–U+2069 in addition to the C0 and C1 controls. The test checks that Loudevil comes out as Loudevil.
  • foldUnlisted. A second rise on an instance with an open unlisted incident renames that incident, and openIncidents returns early without re-locking or notifying. TestIncidentPastTheFirstPage checks the "6 alarms firing" banner, that there is no "+1 more", and that only one notification was sent.
  • cleanSnapshot. It runs after the widget read, so it doesn't change the IDs used for scopes. Runtime IDs, application IDs and bundle names are all cleaned, so the joins between them still match.

Nits, none blocking

  1. No direct test for cleanSnapshot. TestWidgetsCannotEscapeTheTerminal covers stash text. Nothing puts a control character in a bundle name, version or runtime ID and checks that Fetch strips it. One table case would stop a future new field from slipping past, and it would pin the claim in your reply.
  2. foldUnlisted mutates w.open in place. It writes into the shared backing array. This is harmless today because the model holds the only reference. A short comment would stop someone copying the slice later and being surprised.
  3. Other invisible characters. clean leaves U+200E, U+200F and U+061C (directional marks) and U+2028/U+2029 (line and paragraph separators) in place. The directional marks are much weaker than overrides, so this is cosmetic. Stripping them would make the set complete.

Summary: the changes do what the commit message says and the tests pass. The nits can be follow-ups.
· branch dashboard

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

Thanks. All three are fixed in the latest push:

  1. cleanSnapshot test. TestFetchCleansPublisherText puts control characters, an override and a directional mark into runtime, adoption, application, deployed-version, bundle and runtime-name fields. It checks that each comes out cleaned and that the rollout still joins instances and applications to the runtime.
  2. foldUnlisted mutation. openIncidents clones w.open before folding, so the rename touches only the model's own copy.
  3. Other invisible characters. clean also strips U+200E, U+200F, U+061C, U+2028 and U+2029. Covered in TestWidgetsCannotEscapeTheTerminal.

@claude please review.

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 44s —— View job


Re-review of mass dashboard (#272) at 09e2d3c

I read the diff of 09e2d3c (api_test.go, incident.go, widgets.go, widgets_test.go). go test ./internal/commands/dashboard/ and go vet pass. I didn't run make check or make docs, and I didn't check that golangci-lint is installed here. CI covers those.

Nothing blocks merge. All three nits from the last review are resolved.

Checked and fine

  • TestFetchCleansPublisherText.
    • It covers every field cleanSnapshot touches: runtime ID, adoption version, application ID, application runtime name, deployed version, bundle name, and instance runtime name.
    • The closing BuildRollout assertion confirms the cleaned runtime and application names still join, which is the part most likely to break silently.
    • The test sets each input to a distinct control, override, or directional mark.
  • foldUnlisted mutation. slices.Clone(w.open) runs before folding, so the rename no longer writes into a shared backing array. The comment now says the rename happens "in open".
  • clean. It now also strips U+200E, U+200F, U+061C, U+2028 and U+2029. Combined with the earlier ranges, the list covers C0, C1, bidi overrides and isolates, directional marks, and line and paragraph separators.

Nit, not blocking

  • Zero-width and tag characters. clean still passes U+200B–U+200D, U+2060, U+FEFF and the U+E0000 tag block. They are invisible but can't open or close an escape sequence, so this is cosmetic, for example making two bundle names look identical. Stripping them is a one-line change to the case if you want the set to be complete.

Summary: the changes do what the commit message says and the tests pass.
· branch dashboard

coryodaniel and others added 2 commits November 29, 2026 22:02
Listing it for cancel spread it to the replay picker and the search box,
where it either clashed with quit or changed what ctrl+c does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On an org busy with stash writes, the poll's high-water mark lagged behind
them, so a full read still said it was cut short.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

This PR now includes #275–#290; the description covers all of it. Since the last review here:

The #290 nit about cancel: [ctrl+c] leaving cancel unbound elsewhere isn't changed: the helpdoc already says ctrl+c can't be bound to anything else.

@claude please review.

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 25s —— View job


Re-review of mass dashboard (#272) at 6549838

I read the diff of 6549838 (model.go, model_test.go) and the surrounding freshEvents and applyEvents. I didn't run the tests, make check or make docs, so CI has to cover those. No command, flag or helpdoc text changed, so make docs should be a no-op.

Nothing blocks the code. The one merge item left is the go.mod pseudo-version, which moves to the SDK release first, as you said.

Checked and fine

  • The fix.
    • since now advances before the stash* skip, so stash events count toward what the poll has read.
    • Before this, a stash-only window left since at its old value. The "cut short" check in applyEvents (Events[0].At.After(m.since)) then saw the oldest kept event as newer than since, and the toast fired on every poll.
    • Stash events are still left out of seen and the ticker, so what the user sees is unchanged.
  • Overlap and pruning.
    • Advancing since for every event keeps fetchEvents (since - eventOverlap) and the seen prune on the same boundary.
    • Non-stash events keep the 30-second re-read window, so late-arriving events still show.
  • Truncation check. readAudit returns events oldest-first after trimming, so Events[0] is the oldest kept. If it isn't after since, nothing newer than what was read was dropped.
  • TestModelEvents.
    • The new case reads a stash-only event, then a truncated read that overlaps it, and checks that the toast doesn't show.
    • It would fail without the fix. With since unmoved, s0 would be after the zero time and the toast would appear.
    • It is in the existing test function and follows the table-free style around it.
  • ctrl+c reply. Leaving cancel: [ctrl+c] as is makes sense, since the helpdoc already says ctrl+c can't be bound to anything else.

Nit, not blocking

  • Because since is only ever moved forward by At, a stash event with a clock-skewed future timestamp would pull the high-water mark ahead of real events. The same applies to any event type, so this isn't new, and the 30-second overlap absorbs ordinary skew.

Summary: the change does what the commit message says, and the test pins it. Move go.mod to the SDK release before merging.
· branch dashboard

Items already use · inside themselves, so the gap between events was hard
to find.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

081895a: events on the live ticker and the replay ticker are now separated by a │ bar. A · already separates the parts inside each event, so it was hard to tell where one event ended. TestModelEvents checks for the bar.

@claude please review.

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 15s —— View job


Re-review of mass dashboard (#272) at 081895a

I read the diff of 081895a (ticker.go, replay.go, model_test.go). I didn't run the tests, make check or make docs, so CI has to cover those. No command, flag or helpdoc text changed, so make docs should be a no-op.

Nothing blocks the code. The one merge item left is the go.mod pseudo-version, which moves to the SDK release first, as you said.

Checked and fine

  • Live ticker (ticker.go).
    • The "waiting for activity" case returns early with the same three-space gap as before.
    • The width check measures head + " " + items joined by the bar, so the cut-off point accounts for the wider separator.
    • The loop still includes the item that crosses the width, as it did before. fit trims the line.
  • Replay ticker (replay.go). The events are joined with the bar into one part. The part is added only when there are items, so the Truncated note and the other parts keep their two-space joins and no stray bar appears.
  • Comment on tickerSep. It says why the bar differs from the inner ·, which fits the CLAUDE.md rule.
  • Test. TestModelEvents asserts the bar between the two events, in the existing test function.

Nits, none blocking

  1. Width of the bar and the narrow case. The separator is five columns, up from three. At 80 columns this fits about one fewer event. This is a small cost for readability.
  2. The bar is checked in the test as ana │ . This depends on styleMuted.Render emitting no escape codes in the test environment. That holds for the other assertions in this file, so it's fine. It would break if a test ever forced a color profile.
  3. No replay coverage. The replay ticker change has no test. One assertion on replayTicker() with two events would pin it.
  4. Trailing bar. If m.events holds a single event, no bar shows, which is right. I didn't see a path where the bar trails the last item.

Summary: the change does what the commit message says, and the live ticker test pins it. Move go.mod to the SDK release before merging.
· branch dashboard

coryodaniel and others added 2 commits November 29, 2026 22:47
Moves the SDK to its main branch, where #59 merged. Stash entries now carry
their scope, so mass alpha stash get --output json includes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coryodaniel

Copy link
Copy Markdown
Member Author

c0c6f1f merges #288, with main and #270 in it. follow.go takes #288's version, which returns the SDK stream itself. The SDK is now on its main branch (f1f2605). Merge #288 first; this PR's diff then shrinks to the dashboard alone.

@claude please review.

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 2m 38s —— View job


Re-review of mass dashboard (#272) at c0c6f1f

I read the diff of the merge against origin/main for the files that #288, #270 and main touch: follow.go and its test, deploy.go and its test, cmd/deployment.go, stash_test.go and go.mod. go build ./... and go vet ./... are clean. go test passes for environment, instance, stash and dashboard. I didn't run make check or make docs, so CI covers lint and the docs diff.

Nothing blocks the code.

Checked and fine

  • follow.go.
    • It takes Use the SDK's streams and report a dropped log stream #288's version. StreamEnvironmentEvents returns the *streaming.Stream, and the loop reads events.C.
    • When the channel closes, streamEnded returns the stream's error wrapped with the environment id, or nil when it ended cleanly.
    • A tail that fails prints one line under its prefix and doesn't stop the follow. It stays quiet when ctx is cancelled.
  • Tests.
    • TestFollowEnvironment_ReturnsStreamError and TestFollowEnvironment_KeepsFollowingWhenOneTailFails cover both paths.
    • TestRunDeployReportsTailError covers the error wrapping.
  • Dashboard against the SDK main commit. feed.go and logs.go build against streaming.Stream and streaming.ErrRequiresPAT as they are in f1f2605, and the dashboard tests pass.
  • go.mod. The SDK is now v0.6.1-0.20261130064156-f1f2605a4c08, which is a commit on the SDK's main branch. The x/ansi, termenv and x/sync entries are direct, as before.

Before merge

  • go.mod is still a pseudo-version. It is on the SDK's main branch now, so it won't disappear, but move it to the tagged release once there is one, as the description says.
  • Merge Use the SDK's streams and report a dropped log stream #288 first, as you said. This PR's diff for follow.go, deploy.go and cmd/deployment.go should then disappear. I couldn't check what main looks like after that merge, so rebase or merge main afterwards and make sure follow.go and its test don't conflict.

Nit, not blocking

  • cmd/deployment.go and deploy.go now wrap the tail error in the same message (tail logs for deployment %s: %w) in two places. It is two lines, so it's fine to leave.

Summary: the merge keeps #288's behavior, the SDK change builds with the dashboard, and the tests pass. Merge #288 first and move go.mod to the release.
· branch dashboard

coryodaniel and others added 2 commits November 29, 2026 23:05
@coryodaniel

Copy link
Copy Markdown
Member Author

164eaec merges #288 on massdriver-sdk-go v0.7.0. No pseudo-version is left.

@claude please review.

@claude

claude Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Claude finished @coryodaniel's task in 2m 26s —— View job


Re-review of mass dashboard (#272) at 164eaec

I read the diff of 164eaec against the previous head: the merge adds go.mod and go.sum changes only, taking the SDK from the pseudo-version to v0.7.0. go build ./... and go vet ./... are clean, and go test passes for dashboard, environment, instance and stash. I didn't run make check or make docs, so CI has to cover lint and the docs diff. No command, flag or helpdoc text changed, so make docs should be a no-op.

Nothing blocks merge.

Checked and fine

  • SDK pin. go.mod now requires github.com/massdriver-cloud/massdriver-sdk-go v0.7.0, a tagged release. The pseudo-version blocker from the earlier rounds is gone.
  • Build against the release. The stream code in feed.go, logs.go and follow.go compiles and its tests pass against v0.7.0.

Before merge

Summary: the change does what the commit message says, and the tests pass. I have no new findings.
· branch dashboard

@coryodaniel
coryodaniel merged commit c754be8 into main Nov 30, 2026
5 checks passed
@coryodaniel
coryodaniel deleted the dashboard branch November 30, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant