carlos / platform Public

fleet-activity-grouping

No handoff yet. An agent working here writes one with amadan branch handoff, so that whoever picks the branch up next — a person, or another agent on another machine — can start without reading the whole history.

Recently

Human

<task-notification> <task-id>aed590cf4692ae313</task-id> <tool-use-id>toolu_01B7WvHdKSzUKfA8SuMnRzVM</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/aed590cf4692ae313.output</output-file> <status>completed</status> <summary>Agent "Build fleet activity grouping" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>I've built all three changes and pushed them to `fleet-activity-grouping` on amadan. I haven't described or merged the branch. **Commits** - `4b1cfc87` console: group operator activity so one person's burst does not hide everyone else. This has all three changes and their tests in one commit, because they share one grouping file, one copy table and the same tests. Splitting them would have meant hand-editing files part by part. - `502056c3` console: give the operator screenshots a deploy burst. The screenshot test now seeds four of one person's actions, ending in a ship and promote, so the shots show a fold and a merged row. **Tests** - 67 tests pass across the dashboard, Activity, person, census and related groups; go vet and gofmt are clean. - New tests are in `internal/console/opactivity_group_test.go`. They cover everything you listed; the ship and promote case goes through the real CLI ship and promote endpoints. - Two existing tests needed changes: - The helper that seeds rows for the paging and filter tests used to space them seconds apart, so they would now fold. It now spaces them 11 minutes apart. - The test for long and stored-data rows adds one row by a second person, because the dashboard now shows only each person's latest action. - `TestControlPlaneAppAllowsAPersonToPromote` fails on this machine because it builds a binary inside `$TMPDIR`, which sits under a git checkout. It passes with `GOFLAGS=-buildvcs=false` and has nothing to do with this change. - The census tests passed. **Dashboard window:** the newest 200 audit rows, up to 10 people, newest first. - It is one read of bounded size on the console's own SQLite, however busy the platform is. - It is never empty while anything has happened; a 24-hour window would show nothing on a quiet day. - 200 is twenty times the people shown, so a burst of about ten rows can't crowd anyone out. - The reason is written in the commit message and in a comment in `opdashboard.go`. **Copy table:** `internal/console/opactivity_copy.go`. It has a comment saying Paul approved every string unchanged on 2026-10-31. - Headings: `activityHeadLastActive`, `activityHeadWho`, `activityHeadActions`, `activityHeadLatest`, `activityHeadApps`, used through `activityDashHead`. - Counts and apps: `activityActionsOne`, `activityActionsMany`, `activityAppsMore`. - Folds: `activityFoldOnApp`, `activityFoldBare`. - Merged row: `activityShippedPromoted`. - The grouping logic is in `internal/console/opactivity_group.go`. **Screenshots** are in `/home/paulca/.cache/tmp/fleet-shots.2VLu/` (dashboard and activity at 1280, 1024 and 390 px, light and dark). The `open/` subfolder has the same pages with folds rendered open; I added `open` to the template only for that run and removed it before committing. Please delete the folder once you've looked. - On the dashboard, the five-column table looks right. On a phone it keeps Last active and Who, but the "LAST ACTIVE" heading wraps to two lines. - On Activity, the fold row shows a caret and its rows are tinted. The tint is faint in dark mode. **Things I wasn't sure about** 1. **Folds need the same account as well as the same app**, so two accounts' apps with the same name never fold together. On the dashboard, two such apps also count as two in "{app} and {n} more". 2. **A merged ship and promote counts as two actions.** So "4 actions on shop" opens onto three rows, one of them "shipped and promoted". The dashboard's Actions count also counts stored rows. 3. **Only command-line ships and promotes merge.** The ship must end "(cli)" or "(cli, rootfs)" and the promote "(cli)". The merged row uses the ship's marker, so a rootfs ship shows "(cli, rootfs)". A console promote, which has no marker, and a confirmed proposal never merge. 4. **"Immediately followed" means different things on different pages.** On the unfiltered Activity page, another person's row between a ship and its promote stops the merge. The dashboard and person page merge within that one person's own rows. 5. **The person page can show fewer than 20 lines.** It still reads 20 stored rows, and a merge turns two of them into one line. 6. **I ignored AGENTS.md's Go cache instruction.** It says to point `GOCACHE` at `/tmp/claude-1001/gocache`; I left it at the default as you and Paul's instructions say. Go commands had to run with the sandbox off because the default cache is read-only inside it. 7. **Git reported a lock error on both commits.** The file is `/home/paulca/amadan.net/carlos/platform/.git/packed-refs.lock`, empty and dated Oct 30 22:25. Both commits and the push succeeded anyway. I didn't create it and left it alone.</result> <usage><subagent_tokens>232800</subagent_tokens><tool_uses>83</tool_uses><duration_ms>1798415</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>bc6eptgbx</task-id> <tool-use-id>toolu_01D44NPbFxBUNAxkd691ucTd</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/c2acaf22-306d-491b-b2b6-addbf33b8e87/tasks/bc6eptgbx.output</output-file> <status>completed</status> <summary>Background command "Wait for the copy review result" completed (exit code 0)</summary> </task-notification>