Repository navigation
Keep only operator waits in the Sessions My turn group - #862
Merged
Merged
Conversation
Result, Fix and Stopped rows now rest in Resting with their tag and the row's unread mark; My turn keeps answers, menu and plan approvals and raised children.
yansfil
added a commit
that referenced
this pull request
Oct 9, 2026
Related: PRD `agents/prd/agent-hierarchy-screens/prd.md` · 같은 영역의 직전 작업 #861, #862, #869 · 막힘 상태 #890 위에 합침 ## Summary - 하위 어디서 막히든 그 계보의 루트 한 줄이 사이드바와 Sessions의 Needs You에 오르고, 막힌 자손은 따로 오르지 않는다. - 승격 줄과 pane header band는 원인별 동사(승인 · 답변 · 확인 · 초안), 무엇을, 누가 순서로 쓰고, Open은 손댈 pane으로 간다. - 자식은 사이드바, Home, Sessions 어디서나 같은 트리로 보인다. 손자까지 레일로 들여쓰고, 접힌 행은 자손 표시(`! N`, `● N`)를, 행마다 PR 아이콘 하나를 단다. - 트리 팝오버가 증손 이하와 `외 N건`을 열고, 끝나고 읽은 자식은 `끝난 자식 N` 아래로 접힌다. - Sessions는 사이드바와 같은 이름의 그룹(Needs You · Working · Done · Idle · Resolved 24h)으로 바뀌고, Factory 카드도 같은 자손 표시를 쓴다. - #890의 막힘(▲), 멈춤(◐), 대기를 트리에 합쳤다. 막힘은 동사 대신 원인 문장을 두 번째 줄에 남기고, 읽은 막힘은 새로 올라온 ask에 자리를 내준다.  ## Review - **판단해 주세요**: 열린 checkout 행의 목적 줄이 사라졌다(B35). 트리가 그 자리를 쓰기 때문인데, 접힌 checkout에서만 목적을 보는 것으로 충분한지. - **판단해 주세요**: 트리 행은 한 줄이라(B14), 읽은 AI 질문의 요청 줄과 #890의 "대기 · …", "멈춤 · …" 줄은 트리에 남지 않는다. 막힘의 원인 줄만 남긴다(#890 B2). - **판단해 주세요**: 접힌 부모의 자손 표시는 올라온 ask와 일하는 자손만 센다(D-40). #890이 배지에 세던 막힌 자식 수는 트리를 펼쳐야 보인다. - **조심해서 볼 파일**: `herdr-core/src/agent_state/escalation.rs` - snapshot wire(`RaisedAsk.raised_pane_id`)와 승격 판단이 바뀐다. 원인별 동사와 미수신 문구가 여기서 정해진다. - **조심해서 볼 파일**: `herdr-core/src/agent_state/turn.rs` - `demand_verb`가 읽은 AI 질문과 읽은 막힘을 루트의 할 일에서 뺀다. #890과 합친 자리라 행 표시, 마크 색, Needs You 판단이 여기서 갈린다. - **조심해서 볼 파일**: `herdr-core/src/agent_state/tally/scope.rs` - runtime mutex 안에서 checkout마다 사이드바 트리를 만든다. 한 번만 만들도록 중복 호출을 지웠다. - **조심해서 볼 파일**: `web/src/components/agent-tree-popover.tsx`, `web/src/PaneHeaderBand.tsx` - 묻는 행을 `raised_pane_id`로 찾고, 연결 안 된 기기의 Open을 막는다. - **비용 검토**: 승격 lift는 행마다 조상을 다시 걷는다(계보 깊이에 비례). 고빈도 경로의 입력당 작업은 늘지 않고, publish는 상태 전이 때만 일어난다. ## Evidence - **확인한 것**: 결정적 verify(`verify-cargo.sh test`, `lint`)가 #890을 합친 head에서 PASS. herdr-core 1884개, hided 포함 2299개 통과. - **확인한 것**: `verify-web.sh` 웹 1326개(1 skip), desktop unit 162개 통과. `check-design-contract.mjs` 통과. - **확인한 것**: #890을 합친 뒤 blocked-state, sidebar-status, session-panel, projects-sidebar, overview, session-readers, lineage-session e2e 통과. - **확인한 것**: web e2e 전체 249개 중 246개가 #890을 합치기 전 head에서 통과했고, 실패 3개는 고친 뒤 재실행에서 통과. 합친 뒤 전체 실행은 CI가 맡는다. - **확인한 것**: desktop e2e 전체 67개 중 58개 통과, 8개 skip, 1개(session-labels)는 B14에 맞춰 옮긴 뒤 단독 재실행 통과. - **확인한 것**: design review가 pane-header, session-panel, projects-sidebar에서 Pen r2 대비 Light/Dark 모두 PASS(합친 뒤 다시 실행). - **확인한 것**: 승인된 디자인 후속(Dark 팝오버 레일 토큰 강화, Light PR 아이콘에서 빨강과 주황 구분)이 실제 화면 캡처로 확인됨. - **확인하지 못한 것**: 설치된 앱(`/Applications/hide.app`)에서의 실제 계보 확인은 하지 않았다. 지시상 설치와 실행을 하지 않았고, 확인은 gallery, e2e fixture, 격리된 Herdr로 했다. - **확인하지 못한 것**: 로컬 cargo test 중 `bell_intake::the_bell_turn_receives_the_letter_bodies_and_confirms_them`(이 PR이 손대지 않은 crate)이 부하 중 한 번 실패했다. 단독 8회는 모두 통과. - **확인하지 못한 것**: 이 Mac의 전역 commit 서명 때문에 hide-host git 테스트와 `cmdk.spec:215`가 로컬에서만 실패하고, 서명을 끄면 통과한다. CI는 영향 없다. - **생성물**: `design/hide-screens.pen`은 main의 파일에서 합친 생성기로 다시 만들었다. 한쪽만 바꾼 시트는 그쪽과 같다. gallery fixture(`agentScopes.json`, `agentStates.json`)도 diff가 크다. <details><summary>추가 증거</summary>   후속으로 남긴 것: - 다시 뿌리를 옮긴 트리 팝오버에 원래 부모로 돌아가는 길이 없다. - 세 단계보다 깊은 곳에서 올라온 ask는 팝오버에서 손자의 자손 표시로만 보인다(트리는 2단계, D-12). - 여러 PR 목록 hover는 포인터로만 고를 수 있고, 키보드로는 닿지 않는다. - band hover 문구("경로 다음 checkout · N분째 동사 대기")를 단위 테스트가 확인하지 않는다. - 분 단위 문구는 snapshot 사이에 멈춰 있고, `agentScopes.json`에는 옛 sessions/work 모양이 남아 있다. - `lift`는 행마다 조상을 다시 계산한다(`lineage_path_pane_ids`로 줄일 수 있음). 트리 레일의 `border-l-2`는 토큰이 아닌 폭이다. - 자동 Resolve가 `wait`(백그라운드 작업, 답장 대기)를 보지 않는다. 막힘 band의 `+N`은 팝오버를 열지 못한다. 요청 집계(`scope.rs` VERBS)에 `blocked`가 없다(main과 같음). </details> <details><summary>Verification record</summary> - PRD: `agents/prd/agent-hierarchy-screens/prd.md` (sha256 68f370e815271d2cb5a8c6fe4f549a64fd3088a3ac45a7f44129f7981769361f) - Base ec61754 → head 36feb61, verified 2026-10-09T18:49:50.900Z: PASS - Verification report: `agents/runs/agent-hierarchy-screens/verification-report.json` and `agents/runs/agent-hierarchy-screens/verification-report.md`; source fingerprint 9fe3702577bf19b095ae8c67820fbe23cb686760563c2158181227bea553b678 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Fidelity + Code (first, head 5195edd): Fix now were the e2e selectors to port, Draft asks keyed by the named pane, Home trees, the band's Open while disconnected, the hover path repeat, read-question demand, the B18 finished fold, the multi-PR hover list, the native-question verb, grandchild ArrowRight, the duplicate sidebar tree build and broad store reads. All fixed in e51ba10..ee42827. - Fidelity + Code (follow-up, head ee42827): all 13 prior items fixed (B18 partial). Fix now: a child's own native question claimed its parent had not received it; fixed in 0890706 with a test. Also fixed: the finished fold hiding a raised descendant, a draft's Open checking the wrong device, a vacuous e2e assertion. Follow-ups are listed above. - Merge resolution review (head 5d0b1f2, merge of main with #890): nothing from #890 dropped. Fix now: a read block hid a newer raised ask, and a waiting raised root drew its ask in working blue; both fixed in 36feb61 with a test. Also fixed: a read block's cause in Sessions, ja Idle group word, stale band and Resolved docs. - Evidence: none registered separately. - Changed paths: 95 (see Files changed) - Delivery: mode pr, branch `gen-prd/agent-hierarchy-screens`, base `main` </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sessions의 My turn에 운영자가 할 일이 없는 행이 올라오고 있었다.
예: 며칠 전 머지된 PR 4개를 가진 /goal 세션이 멈출 때마다 My turn · Result로 올라왔다.
이제 My turn에는 운영자가 움직이기 전까지 멈춰 있는 것만 남는다: Answer(질문, 메뉴 승인, 계획 승인)와 승격된 자식.
Result, Fix, Stopped는 Resting으로 가고, 행의 태그와 unread 표시(초록 ✓)는 그대로 남는다.
그룹 이름과 Review · Merge, In progress 판정은 바뀌지 않았다.
Review
herdr-core/src/agent_state/sessions.rs- snapshot wire의session.group값이 바뀐다. 이 그룹을 읽는 곳은 web의 Sessions 패널 하나다(폰, 펫, Factory는 읽지 않는다).Evidence
request_view::tests의 동사 사다리 테스트에 Stopped 행과 그룹 단언을 추가했다. Answer→My turn, Review→Review · Merge, Working/Waiting→In progress, Fix/Stopped/Result/Idle→Resting.verify-cargo.sh lint, herdr-core nextest 전체 통과. hided 408개는 재실행에서 통과했다(아래 참고).verify-web.sh(typecheck, lint, e2e 크기 예산, unit, build)와check-design-contract.mjs통과.web/e2e/session-panel.spec.ts를 격리된 pinned Herdr와 hided로 두 번 돌려 통과했다. Stopped 행은 접힌 Resting에 있고, 펼치면 Stopped 태그가 보인다.screencapture -l이 모든 창(Finder 포함)을 거부했다. 그래서 후보 앱의 main process에서webContents.capturePage()로 그 창의 프레임을 떴다. OS 창 캡처가 아니다.node_session_activity::serve_preserves_kit_protocol_alongside_activity가 spawn EAGAIN으로 실패했다(로컬 부하, 이 변경과 무관한 경로). hided만 다시 돌렸을 때 408/408 통과했다.추가 증거
접힌 상태의 후보 창 전체(라이트): My turn 1, Resting 2는 접혀 있고, 사이드바 Done · 2와 result·stopped 탭에 ✓가 남아 있다.
Resting을 펼친 패널(다크).