Repository navigation
에이전트 계층을 루트에서 보이게: 승격은 루트로, 자식은 어디서나 같은 트리로 - #892
Merged
Merged
Conversation
…s by agent state A raised descendant at any depth now puts its lineage root, once, in Needs You with the verb and what to do; the descendant keeps its own group. Each row carries its own PR summary and a descendant mark, Sessions groups by the agent's own state (Needs You, Working, Done, Idle, Resolved) with a 24-hour Resolved window, and Sessions keeps its own tree folds.
… drop the unread header pull
…hared verb, PR, descendant and rail parts
… button chip, device line and PR card hover
…, Sessions and pane header screens
…ts own PR summary
…d 2 design: review targets, gallery tree rows, no issue or branch chips on tree rows
… mark and the regrouped Sessions in the owning guides
… the device rail, draw the fold row's chevron, and give the scene a two-level tree with asks, PR states and a fold
… raised row on each ask, keep a read AI question from asking, and build each checkout's sidebar tree once
…e tree popover, open Home trees in place, list several PRs under the sidebar icon, and block a band's Open while its device is not connected
…ant mark, the header's tree button and popover, the five Sessions groups, and the one-line open checkout
…ut PR and palette flows
…he hook count never changes, and format the lift and demand verb changes
…ep finished children with a raised or working descendant unfolded, and check a draft's Open against the parent's device
…ne line, and say how a tree row's ask line differs from a raised row's request line
…hy-screens The blocked, stopped and waiting states from the agent-blocked-state work join the agent tree: a block keeps its cause as a tree row's line and as its Sessions line instead of an ask verb, a stopped turn is the Idle row's unfinished line, and waiting on children is the wait the core now names. design/hide-screens.pen is regenerated from main's file with the merged generators, so every sheet only one side touched matches that side.
…n the warning colour while it waits, keep a read block's cause in Sessions, and correct the band, Resolved and ja Idle wording
This was referenced Oct 9, 2026
yansfil
added a commit
that referenced
this pull request
Oct 9, 2026
Related: #892 (main turned red in the remote mailbox lane after it merged) ## Summary - `remote_delivery::connected_remote_panes_receive_once_and_disconnect_keeps_the_same_letter_pending` timed out waiting for the bell of the letter sent just before the device disconnects. - Cause: the doorbell tried that letter in the moment the SSH link dropped, the Herdr call failed, and a failed ring waits for the pane to move (the bell might have been typed). The device came back with the pane idle at the same state sequence, so it never moved and the letter was never rung again. - Fix: when the pane or its device's link goes away after a failed ring (`pane_unavailable`), that wait ends, and the letter is tried again once the link is back. A bell that had started a turn would have moved the pane, so this cannot type a second bell into a turn the first one started. - #892 did not add the bug; it changed timing so the doorbell now reaches that letter before the disconnect more often (traced below). ## Review - **조심해서 볼 파일**: `herdr-core/src/delivery/doorbell.rs` - failure path of the bell: when a failed ring may be retried decides whether a bell can be typed twice. - **질문**: is "the link went away and came back with the pane unmoved" a safe enough signal that the first bell never landed, or should the retry also require a new state sequence from Herdr? ## Evidence - **확인한 것**: a new doorbell test drives the fake Herdr through a ring that fails as the link drops, the link going away (`pane_unavailable`), and the link coming back: with the fix the letter is rung once; with `link_lost` disabled nothing is typed (the CI symptom). herdr-core and hided: 2302 tests pass. - **확인한 것**: TEMP trace runs (#894 on main, #895 on the commit before #892, coordinator and doorbell logged, every run directory kept): pre-#892 4/4 passed with no `doorbell.failed`; main 3/4, and the one failure is the only run with `doorbell.failed herdr_call_failed` for that letter, after which the reconnected coordinator connected and published but the letter was never tried again. - **확인한 것**: the remote mailbox test passed 6/6 locally on macOS before the fix (the race needs the CI runner's timing). - **확인하지 못한 것**: why #892 moved the doorbell's first look at the letter earlier was not isolated; the fix removes the dependency on that timing. The eight-repeat TEMP run with this fix is linked in a comment when it finishes.
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.
Related: PRD
agents/prd/agent-hierarchy-screens/prd.md· 같은 영역의 직전 작업 #861, #862, #869 · 막힘 상태 #890 위에 합침Summary
! N,● N)를, 행마다 PR 아이콘 하나를 단다.외 N건을 열고, 끝나고 읽은 자식은끝난 자식 N아래로 접힌다.Review
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을 막는다.Evidence
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통과./Applications/hide.app)에서의 실제 계보 확인은 하지 않았다. 지시상 설치와 실행을 하지 않았고, 확인은 gallery, e2e fixture, 격리된 Herdr로 했다.bell_intake::the_bell_turn_receives_the_letter_bodies_and_confirms_them(이 PR이 손대지 않은 crate)이 부하 중 한 번 실패했다. 단독 8회는 모두 통과.cmdk.spec:215가 로컬에서만 실패하고, 서명을 끄면 통과한다. CI는 영향 없다.design/hide-screens.pen은 main의 파일에서 합친 생성기로 다시 만들었다. 한쪽만 바꾼 시트는 그쪽과 같다. gallery fixture(agentScopes.json,agentStates.json)도 diff가 크다.추가 증거
후속으로 남긴 것:
agentScopes.json에는 옛 sessions/work 모양이 남아 있다.lift는 행마다 조상을 다시 계산한다(lineage_path_pane_ids로 줄일 수 있음). 트리 레일의border-l-2는 토큰이 아닌 폭이다.wait(백그라운드 작업, 답장 대기)를 보지 않는다. 막힘 band의+N은 팝오버를 열지 못한다. 요청 집계(scope.rsVERBS)에blocked가 없다(main과 같음).Verification record
agents/prd/agent-hierarchy-screens/prd.md(sha256 68f370e815271d2cb5a8c6fe4f549a64fd3088a3ac45a7f44129f7981769361f)agents/runs/agent-hierarchy-screens/verification-report.jsonandagents/runs/agent-hierarchy-screens/verification-report.md; source fingerprint 9fe3702577bf19b095ae8c67820fbe23cb686760563c2158181227bea553b678bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)gen-prd/agent-hierarchy-screens, basemain