Skip to content

Add Project Home, a mission board of lanes per checkout - #112

Closed
yansfil wants to merge 11 commits into
mainfrom
prd/home-board
Closed

yansfil wants to merge 11 commits into
mainfrom
prd/home-board

Conversation

@yansfil

@yansfil yansfil commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A checkout with no tab used to draw one sentence, No terminal open, and the only project-wide view was the sidebar. This adds Project Home, Hypothesis B of the home-page study: a mission board with one full-width lane per checkout, agent cards nested by lineage inside the lane, a five-stage progress track (Changes, Commits, PR, CI, Merged) in each lane header that is hollow wherever the data cannot fill it, and a Needs You strip first on the page.

It reaches the operator two ways: as the checkout empty state (checkoutStartState == .idle, replacing HideEmptyCheckoutState there), and as a session-local overlay over a checkout that has tabs, toggled by the square.grid.2x2 button at the leading edge of the tab strip, Project Home in the Navigate menu (⇧⌘H), or Escape to close. Any action that opens a pane, checkout or tab closes it, because the terminal is where the operator acts.

  • ProjectHomePresentation.swift is the pure model: lanes in Overview rank, cards with local and cross-checkout lineage, the track stages with their hollow reasons, the attention strip, counts, search filtering, the Escape policy. 19 tests.
  • ProjectHome.swift, ProjectHomeCards.swift, ProjectHomeWrapLayout.swift draw it from HideTheme.Home tokens; ProjectHomeMemo rebuilds the board only when the snapshot revision, focused workspace or connection state changes.
  • Tokens landed in HideTheme.Home, DESIGN.md (new Project Home subsection) and scripts/pen-token-map.json; design/hide.pen changed only by the nine generated variables.

Round 2 (after the first review of the 12-lane page): the Needs You strip caps at two rows with a +N more chip that expands in place; lanes keep their slots while the page is open (rank decides at open and on the header's Sort, new checkouts append); a lane without a PR draws one hollow PR chip and no CI/Merged; hovering or selecting raises a card's family across lanes and a parent carries ↳ to <branch> for children moved elsewhere; an agentless lane is its header row; the lane header row opens the checkout; the page header stays on one row while it fits.

Round 3: every lane header carries the sidebar Workspace row's own agent summary chip (WorkspaceAgentSummary from the same SidebarCheckoutPresentation, no second derivation; the row's group-count tooltip), and a checkout that enters Needs You while its slot is held gets a warning ? after its name until the page reopens or Sort ranks the lanes. Done stays in the strip: it matches the pet badges and the sidebar groups.

Design canvas board pending: no Screen / board was drawn for this page; the PRD's screenshots stand in for it until the board is drawn.

Related

agents/prd/home-board/prd.md (committed in this branch, first commit).

Review focus

  • 사람이 판단할 것: (1) At 12 lanes / 30 agents the first screen is now two strip rows plus four and a half lanes; whether that answers "where should I go" is the product call this PR exists to inform (RESULT critique in the run directory). (2) The core marks a delegated child that stopped as Done (green ✓) and an idle agent whose task ended as Done; the board shows that faithfully, so the Needs You strip carries Done cards per PRD rule 4. (3) One deliberate deviation from the round-2 brief: a Merged read from ancestry (branch already contained in the base) is still drawn filled without a PR, because it is data, not a PR derivative; only hollow CI/Merged are omitted. (4) Selecting a card dims the rest of its lane for as long as the inspector is open (hover and selection raise the same family).
  • 위험한 파일: HideTerminalSurface.swift routes the idle empty state to the board (the old Start button moved into the page header); ShellModel.swift clears projectHomeVisible inside selectAgent, selectCheckout, addTab, focusUnifiedTab; HerdrApp.swift adds an Escape branch to the key monitor ahead of the pane chords.
  • 리뷰어에게 묻는 것: ProjectHomeLane.canOpen uses exists only (the PRD wrote worktree == nil for missing); is a registered checkout whose folder is gone the only "missing" the lane should refuse to open?

Risk surface

  • Ownership: everything here is shell presentation over the existing snapshot; the only dispatches are the existing focus_pane/focus_checkout/add_tab paths through ShellModel. projectHomeVisible is session-local like agentListScope, never persisted, never core state.
  • Failure path: a disconnected server keeps the last board under a bolt.slash notice and the shared disconnected mark on every card; the chord with no local project answers with an interaction notice naming the cause.
  • High-frequency path: the board is rebuilt once per navigationRevision change per focused workspace (memo key), not per view body; no timers, no per-tick work. Wrap layout arithmetic is a pure function with a test.

Evidence

  • 확인한 것:
    • bash scripts/verify-swift.sh test: full shell suite, 473 tests passed after round 2; round 3 re-ran scripts/verify-swift.sh test --filter ProjectHome (24 passed) and the design contract, as asked.
    • node scripts/check-design-contract.mjs, node scripts/check-pen.mjs, bash scripts/check-right-panel-sections.sh, bash scripts/check-shortcut-contract.sh, python3 scripts/check-core-bridge-structure.py, bash scripts/check-no-workstation-identity.sh, bash scripts/check-git-worktree-presentation.sh, python3 scripts/check-no-attribution.py, scripts/check-herdr-contract.sh --schema-only: all pass.
    • git diff --stat origin/main -- design/hide.pen: 1 file, only the ten --size-home-* variables; the Screen / board list is identical to origin/main.
    • Native, on an isolated Herdr 0.9.1 server (own HERDR_SESSION, HERDR_SOCKET_PATH, HERDR_CONFIG_PATH, XDG_*; herdr workspace list empty before the fixture) with a throwaway repo and worktrees under the run directory, agent state reported through herdr pane report-agent / report-metadata including parent_pane lineage, captured with screencapture -l <windowID> of the candidate window only (agents/runs/home-board/native/, local): round 3 re-took 03-scenario-b-overlay (summary chips in every header) and 08-scenario-c-overlay (scenario C built while the page was open: the four original lanes kept their slots, eight appended, perf/scroll-resize-storm arrived in Needs You and carries the ? mark, Sort enabled) plus 08c-scenario-c-sorted (after Sort: re-ranked, marks cleared, Sort disabled); rounds 1 and 2 kept under native/round1/, native/round2/. Round 2 set: 03-scenario-b-overlay (4 checkouts / 9 agents, folded tracks, ↳ to caption on the delegating parent), 04-lane-header-opens-checkout, 05-scenario-b-inspector, 06-scenario-b-hover (the auth parent raised with its child in the search lane, that lane's other cards dimmed), 07-empty-state (a checkout whose last pane closed draws Home; its lane is a header row), 08-scenario-c-overlay (12 checkouts / 30 agents: two strip rows + +7 more, four and a half lanes on the first screen), 08b-scenario-c-strip-expanded, 09-scenario-c-narrow-900 (window at its 960pt minimum: header on two rows, strip two per row), 10-scenario-c-disconnected, 11-scenario-c-reconnected; round 1 captures kept under native/round1/.
    • Teardown: candidate app and private server stopped, pgrep -f hide-home-board.app empty, operator server holds 42 panes and none with a fixture cwd.
  • 확인하지 못한 것과 그 이유:
    • Rust lane (scripts/verify-cargo.sh) not run: no file under herdr-core/ changed.
    • Lane-slot stability, the entered-Needs-You mark and Sort are unit-tested and were seen live in 08 / 08c (lanes added while the page was open); a single agent flipping status while the page was open was not driven separately.
    • The lane header's click-through (row opens, PR chip keeps its click) was captured for the row (04); no fixture lane had a filled PR chip to click.
    • Hover-dim of sibling cards was captured but the dimming is subtle in the PNG; the raise and tooltip are visible.
    • A real PR/CI-filled track was not captured: the fixture repo has no GitHub remote, so PR, CI and Merged are hollow in every capture except the ancestry-merged branches.
    • Observed but not caused here: on every launch of the candidate with a restored --state-path, an interaction alert Waiting for the first herdr connection attempt appears from a focus_pane dispatched before the first connection (core.dispatch.blocked kind=focus_pane); it is not in this diff.
  • 화면 증거: the captures above live in agents/runs/home-board/native/ on the workstation and are not attached here; the run receipt (agents/runs/home-board/RESULT.md) describes each.

AI tooling

  • 사람이 직접 작성 - [ ] 일부를 AI 도구로 작성 - [x] 대부분을 AI 도구로 작성

손으로 확인한 것: every capture was read and the defects it showed were fixed before the next capture (branch name truncation, inspector path clipping, header counts breaking mid-word, the strip hiding cards behind a sideways scroll); the fold width and the wrap layout came out of those reads, not the plan.

Card, child card, attention card, track, inspector and fold widths for
the mission board live under HideTheme.Home, mapped as --size-home-*
variables so the canvas carries them.
One lane per checkout in the Overview's attention order, each with a
five-stage Git progress track that is hollow where the data cannot fill
it, agent cards nested by lineage in a wrapping flow, a Needs You strip
first on the page, hover that raises a lineage, and an inspector that
never moves terminal focus. Drawn where a checkout has no tab, and over
the pane canvas from the tab strip toggle or Project Home (Shift+Cmd+H);
Escape and any action that opens a pane, a checkout or a tab closes it.
…d of truncating or clipping them

A lane narrower than its name and track truncated the branch name to a few
glyphs, the inspector's checkout path ran past its column, the header counts
broke inside their words at 900pt, and at twelve lanes the Needs You strip
scrolled sideways with two thirds of its cards out of sight. Each row now
uses the wrap layout, which also caps a lone item at the container width so
a truncating label truncates rather than overflows.
… folded tracks

Round 2 of the mission board, six changes to one page:

- The Needs You strip caps at two rows with a +N more chip that expands
  in place and a Show fewer chip that folds it; questions stay first.
- A lane keeps its slot while the page is open; rank decides the order
  when Home opens and on the header's Sort, a new checkout appends, and
  Sort is disabled while the slots already match the rank.
- Without a pull request the track stops at one hollow PR chip whose
  tooltip says why (no PR, lookup running, failure, GitHub unanswered);
  CI and Merged derive from the PR and are drawn only with one, except
  a Merged read from ancestry, which is still filled.
- Hovering or selecting a card raises its family across every lane, and
  a parent whose children were moved carries a ↳ to <branch> caption
  naming up to two lanes and counting the rest.
- A lane with no agents is its header row; the uninstrumented mark moves
  beside the badges.
- The lane header row opens the checkout; only a filled PR chip keeps
  its own click. The page header stays on one row while it fits, the
  filter field shrinking first.

Four tests added, two reshaped for the folded track.
…Needs You while frozen

The header draws the sidebar Workspace row's chip from the same
SidebarCheckoutPresentation (representative mark, provider badge, +N, the
row's group-count tooltip), so a lane says what is inside it even when its
cards are scrolled away. A checkout that enters Needs You while its slot is
held carries a warning ? after its name until the page opens again or Sort
ranks the lanes; the lane order keeps the Needs You set from its last rank
and derives the mark, so a lane that leaves Needs You drops it on its own.
@yansfil

yansfil commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #124.

@yansfil yansfil closed this Sep 20, 2026
yansfil added a commit that referenced this pull request Sep 21, 2026
Related: PRD `agents/prd/home-tasks/prd.md`; supersedes #111 and #112.

## Summary

- 빈 체크아웃과 Project Home 오버레이에서 Tasks 기본 보드와 요청별 Agents 보드를 제공합니다.
- git 사실로 전달 단계를 정하고, 질문·오류와 위임 관계는 카드 안에 표시합니다.
- GitHub 이슈 연결·닫힘·Project Status 차이와 열린 이슈 백로그를 읽기 전용으로 표시합니다.
- 직접 이슈 연결은 기존 purpose 저장 경로로 보존하며, 저장·해제 결과는 보드에서 처리합니다.

![Tasks: Git 단계, 이슈 연결, 백로그와 한글
제목](https://github.com/yansfil/pr-assets/blob/main/hide/home-tasks/61527c8/tasks-final-crop.png?raw=true)

![Agents: 요청 상태와 공통 카드
정보](https://github.com/yansfil/pr-assets/blob/main/hide/home-tasks/61527c8/agents-final-crop.png?raw=true)

## Review

- **판단해 주세요**: 승인된 조용한 판의 정보 밀도, 한글 제목 두 줄과 긴 브랜치 생략, Tasks/Agents 전환.
- **조심해서 볼 파일**: `runtime/issues.rs`, `worktree_control.rs` - token/Git
부분 실패와 정리; `github.rs` - 읽기 경계와 200개 상한.
- **조심해서 볼 파일**: `ProjectHomePresentation.swift`, `ShellModel.swift` -
요청 소유권, 스냅샷 갱신과 작업 완료 처리.

## Evidence

- **리뷰 결과**: 두 독립 리뷰가 완료됐고, 총 7개 Fix now는 수정·재검증했습니다. 최종 리뷰에 남은 Fix now는
없습니다.
- **확인한 것**: Rust 848개·Swift 531개 테스트, lint와 디자인 계약 통과; 기존 Rust 9개 무시
항목은 실행하지 않았습니다.
- **확인한 것**: 격리된 실제 macOS 창에서 두 뷰, 직접 연결·해제, 권한 없는 기본 이슈 조회와 한글 줄바꿈을
확인했습니다.
- **확인한 것**: 앞선 빌드에서 닫힌 이슈와 조회 실패 후 사실 유지를 확인했고, 최신 회귀 테스트가 부분 실패·분기 전환을
검사합니다.
- **확인하지 못한 것**: 네이티브 키보드·hover·외부 브라우저·연결 끊김과 모든 Done/Seen 흐름; 화면의
GitHub 사실은 합성 fixture입니다.
- **후속 확인**: 교차 체크아웃 자식, 워크트리 삭제, 연결 저장 후 재시작과 동일 부하 성능 측정은 추가 네이티브 증거가
필요합니다.
- **생성물**: 디자인 라이브러리는 Home 토큰 4개의 동기화만 포함합니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/home-tasks/prd.md` (sha256
9881cac494ffea8b9fa977c5eee10ae3218586c27efc3b7d3c2a480f0c64a87a)
- Base 1a56b8e → head e5017bd, verified 2026-09-20T17:44:38.928Z: PASS
- Verification report: `agents/runs/home-tasks/verification-report.json`
and `agents/runs/home-tasks/verification-report.md`; source fingerprint
1b75205748b099f6d7c5c01b85328f4c5f7cc1b623d3689787123e5d07ea2e79
- 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)
- Fidelity review: available at `e5017bd`; no remaining Fix now. B1
terminal Retry creation, B2 modal-aware Escape, and B8 Working detail
suppression fixed and rechecked.
- Code review: available at `e5017bd`; no remaining Fix now. B18
branch-switch cleanup, B12/B17/B25/B29 optional Project fallback and
independent read retention, B15/B18 unchanged-versus-uncertain save
failure, and detached-to-removed ownership fixed and rechecked.
- Follow-up improvements: expand native keyboard, tooltip, external
browser, child layout, lifecycle, disconnect, deletion and restart
evidence; matched-load performance remains unmeasured.
- Screenshot provenance: captured at `61527c8`; final commit only
retains backend cleanup ownership while detached.
- Assumptions: equal-priority cards retain snapshot order; common
Korean/English Project Status aliases match Git stages; no-pane manual
links use branch config when no workspace exists; Home uses shared
288/148/6/12 tokens.
- Evidence: 3 registered (2 screenshot, 1 file); paths are local to the
run directory
  - agents/runs/home-tasks/native/tasks-final-crop.png
  - agents/runs/home-tasks/native/agents-final-crop.png
  - agents/runs/home-tasks/native-observations.md
- Changed paths: 36 (see Files changed)

</details>
@yansfil
yansfil deleted the prd/home-board branch October 19, 2026 06:51
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