Skip to content

Group the Overview by worktree and relabel Changes as History - #113

Merged
yansfil merged 7 commits into
mainfrom
prd/right-panel-overview
Sep 20, 2026
Merged

yansfil merged 7 commits into
mainfrom
prd/right-panel-overview

Conversation

@yansfil

@yansfil yansfil commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Related: PRD agents/prd/right-panel-overview/prd.md · follows #109 and #101 · PR 2 (History body) is parked until its planning is done

Summary

  • The Overview is one list: the project's worktrees as groups, each holding the agents working in it, in a fixed order (primary first, then by creation time, then an Inactive fold).
  • Above it, a stat strip of derived facts: disk and open PRs always, behind origin and merged to clean up only when there is something to do.
  • Each group header carries files · ↑a ↓b · size · #PR; a row click opens the pane, the header opens the workspace, the files chip opens History.
  • Deleted: the Git ancestry graph, both inspectors, the summary rows, the Tasks/Git toggle, the Needs You bar, and the overview_select / overview_changes events.
  • The Changes tab is now labelled History; its body is unchanged until PR 2.

Overview: stat strip, then one list grouped by worktree

An empty group's Start agent… row opens the provider submenu

Herdr unreachable: the caption sits above the search, the last known rows stay clickable

Review

  • 판단해 주세요: the subtitle omits · M inactive at zero; a group's chevron folds its rows and shares the sidebar's collapsed set (not in the PRD); while searching, a matching inactive checkout appears as a header line and the fold hides.
  • 판단해 주세요: a checkout holding only a delegated child pane counts as inactive by the sidebar's rule, so that child appears in no Overview group.
  • 조심해서 볼 파일: herdr-core/src/runtime/projects.rs - agent_start_in_checkout is a new live write path (tab.create / workspace.create through the task-operation slot, refused without a connection).
  • 조심해서 볼 파일: herdr-core/src/worktrees.rs - upstream() now parses two counts from one rev-list --left-right; a parse failure reads as ?, never as zero.
  • 조심해서 볼 파일: macos/Sources/HerdrMacOS/CheckoutOverview.swift - the whole surface is new; nothing runs under the runtime mutex.
  • 질문: is Terminal only / Claude / Codex the right submenu order, given the New worktree sheet lists providers the same way?

Evidence

  • 확인한 것: every state on a six-worktree fixture (origin two commits ahead, dirty and ahead worktrees, two merged, one long branch name, a plain folder project) in 12 background exact-window captures; row click, header click, files chip to History, popovers and cleanup sheet, New agent here ▸ Claude creating a tab and starting the agent, search keep and no-match, the Inactive fold, the disconnected caption.
  • 확인한 것: reader cost with GIT_TRACE: 0 git commands over 60 s idle with the Overview visible; one 67-command pass of about 1 s per detected change, the same count as before this PR.
  • 확인하지 못한 것: the PR chip and the open-PR number with a signed-in gh (the fixture has no GitHub remote; covered by OverviewPresentationTests); the header and row context menus opened by hand, Reveal in sidebar, Copy pane id, Close pane… and Delete worktree… from the Overview (SwiftUI context menus do not open through background accessibility; item lists are asserted by menusListTheAgreedItemsInOrder, the actions reuse the sidebar's paths).
  • 생성물: design/hide.pen is 31k of the 34k changed lines and is script output (Screen / Panel / Overview, Screen / Overview / States, Screen / Overview / Actions, Screen / Panel / History, Screen / History / States and actions); the screenshots above are what it describes.

AI tooling: written mostly with AI tooling; the PRD, the design boards and the review dispositions were checked by hand against the captures.

Verification record
  • PRD: agents/prd/right-panel-overview/prd.md (sha256 f1d4434cdadeb687c25e136efa2bcb7f7955a3634c05de6d44f8bf2680f934c1)
  • Base 958aad8 → head 2c3b6ab, verified 2026-09-19T15:47:12.243Z: PASS
  • Verification report: agents/runs/right-panel-overview/verification-report.json and agents/runs/right-panel-overview/verification-report.md; source fingerprint d41d3ba8829835e7d8d9139c96d03437b25cb7fd5aba71d570befc8876290c1c
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-swift.sh test (exit 0)
    • S3: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews: Fidelity and Code reviewed 34b5f65, then re-reviewed 98bebf5 and 2c3b6ab (same tree). One Fix now from each, fixed in 2c3b6ab: the dead WorktreeMenuPolicy.overviewHeaderItems list whose order disagreed with the menu the view builds. Final Fix now: none. Follow-ups: the zero-inactive subtitle, the per-group fold sharing the sidebar state, positional chip ids in ForEach.
  • Evidence: 13 registered (1 log, 12 screenshot); paths are local to the run directory
    • agents/runs/right-panel-overview/artifacts/live/timing-summary.md
    • agents/runs/right-panel-overview/artifacts/live/shots/03-overview-orchestra.png
    • agents/runs/right-panel-overview/artifacts/live/shots/10-relaunch-inactive-order.png
    • agents/runs/right-panel-overview/artifacts/live/shots/11-folder-project.png
    • agents/runs/right-panel-overview/artifacts/live/shots/05-search-review.png
    • agents/runs/right-panel-overview/artifacts/live/shots/06-search-no-match.png
    • agents/runs/right-panel-overview/artifacts/live/shots/07-row-click-focuses-pane.png
    • agents/runs/right-panel-overview/artifacts/live/shots/08-files-chip-opens-history.png
    • agents/runs/right-panel-overview/artifacts/live/shots/12-start-agent-menu.png
    • agents/runs/right-panel-overview/artifacts/live/shots/13-agent-started-in-gamma.png
    • agents/runs/right-panel-overview/artifacts/live/shots/14-disk-popover.png
    • agents/runs/right-panel-overview/artifacts/live/shots/15-cleanup-sheet.png
    • agents/runs/right-panel-overview/artifacts/live/shots/16-disconnected.png
  • Changed paths: 40 (see Files changed)

The design canvas now carries the five target boards for the right panel
restructure: Screen / Panel / Overview, Screen / Overview / States,
Screen / Overview / Actions, Screen / Panel / History and Screen / History /
States and actions. The old Project task forest, Inspect without moving,
Availability states and Panel / Changes boards are gone, and the Explorer
board's third tab reads History. The approved PRD for this change rides
along as the contract the boards were drawn from.
…iew history

The worktree reader no longer reads a project's Git ancestry: the Overview
graph it fed is being deleted, so `git_history.rs`, the `history` field
and the request's `overview_root` go with it, together with the read cache
that only existed to keep the history out of the base key.

In their place each worktree carries `behind_upstream` and
`created_at_unix_ms`. The first comes out of the `rev-list` that already
counts unpushed commits, widened to `--left-right --count @{u}...HEAD`, so
the number of git processes per worktree does not change; the second is the
stat of the worktree's own `.git/worktrees/<name>` entry, read off the
gitfile with no process at all.

The core's Overview events change with the screen: `overview_select`, its
inspected-checkout state and `overview_changes` are gone; `overview_open_section`
focuses a checkout and switches the panel section in one event, and
`agent_start_in_checkout` opens a tab with the checkout as its cwd through
the task operation slot the worktree sheet already reports through.
A workspace that is not a Git repository had no disk request, so its
Overview could show nothing at the top. The focused local folder is now
measured as one root, which is the one fact the folder project's strip
and group header draw.
… History

The Overview is now the project's worktrees as groups, each holding the
agents working in it, under a stat strip of derived project facts: disk,
open pull requests, and, only when there is something to act on, the
base branch behind its upstream and merged worktrees to clean up. Every
cell follows one glyph language, a number, an ellipsis while reading, a
question mark when unreadable, and absence when not applicable.

A group header carries the branch and one mono detail line of files,
ahead/behind, size and pull request chip; the files chip opens the
checkout on History in one core event. Rows are the sidebar's agent
identity and state, nested under a parent in the same group, with a
caption naming a parent in another worktree. Header and row context
menus start agents in the checkout, reveal the pane in the sidebar, and
reuse the existing worktree and pane-close gates. Groups sit in a fixed
order, primary first, linked worktrees oldest first, then the shared
Inactive fold; search keeps matching rows with their group.

The Git ancestry graph, the inspectors, the summary rows, the Tasks/Git
mode toggle and the Needs You bar are removed with their graph tokens,
lane colours, canvas variables and the disclosure style nothing else
used. The Changes tab is labelled History; its body is unchanged. The
component and control checks no longer demand a choice group or a
disclosure allowance from the Overview, and the Overview gate scripts
assert the new states.
DESIGN.md carries the Overview contract for the stat strip, the group
header line, the row shape, the menus, the search rules and the states;
ARCHITECTURE.md names the two new events; PERFORMANCE_TESTING.md
replaces the project history paragraph with the catalog-only cost
contract and its regression owners; the agent workflow review marks its
task-forest section historical; CONTRIBUTING.md describes the moved
gates.
…tive checkouts under the fold

A plain folder project has no worktree catalog, so its stat strip and
group header read the focused checkout's own disk measurement; the
strip showed a permanent ellipsis before. The Inactive fold's checkouts
are drawn under the fold row rather than above it, matching the
sidebar, and the popover buttons take the shell's text button style
instead of the system bordered one.
The header menu is built in CheckoutOverview and its order is stated by
OverviewPresentation.headerMenuItems, so the parallel list in
WorktreeMenuPolicy had no caller and a different order. The serde
default on a Serialize-only snapshot field did nothing. The right-panel
sections gate's comment names History.
@yansfil
yansfil merged commit a8d948e into main Sep 20, 2026
5 checks passed
@yansfil
yansfil deleted the prd/right-panel-overview branch September 20, 2026 01:44
yansfil added a commit that referenced this pull request Sep 20, 2026
Related: follows #113, whose body showed the problem this fixes.

## Summary

- The template now runs in the order a reviewer reads: what changed,
what needs my judgment, what is already proven.
- `Related:` is one line above `Summary`, for the issues a PR closes and
the PRs it depends on.
- `Review` absorbs `Review focus` and `Risk surface`: the six risk areas
become the reason written beside each file to watch, so nothing is
answered "N/A".
- `Evidence` keeps confirmed / not confirmed and adds a `생성물` line for
large generated diffs such as `design/hide.pen`.
- `AI tooling` is one line, and a folded `Verification record` block at
the end takes the SHAs, suites, evidence list and changed-path count
that `/ship` generates.
- `AGENTS.md` and `CONTRIBUTING.md` name the new sections; no script
reads the template.

## Review

- **판단해 주세요**: whether folding `Risk surface` into per-file reasons
loses the checklist's reminder value for hand-written PRs; whether the
40-line / 120-character budget in the header comment is the right size.
- **조심해서 볼 파일**: `.github/pull_request_template.md` - the wording of the
Korean guidance comments, since they are what every future PR author
reads.
- **질문**: should the `Verification record` block stay in the template
for hand-opened PRs (the comment says to delete it), or be added only by
`/ship`?

## Evidence

- **확인한 것**: `/ship`'s `body` command on the `right-panel-overview` run
drafts into this template, places `Related:` under the leading comment
and above `Summary`, and replaces the placeholder record with a 26-line
folded block whose paths are record-tree relative (`agents/runs/...`, no
workstation path); the sasu ship test suite passes 8/8 with three tests
covering this shape.
- **확인하지 못한 것**: GitHub's rendering of the template on a new PR was not
opened in a browser; this PR is the first use, so its own body is the
rendering check.

**AI tooling**: written mostly with AI tooling; the template text, the
AGENTS.md sentence and the CONTRIBUTING.md sentence were read and
adjusted by hand.
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