Repository navigation
feat: show the session record as goal flows - #1548
Merged
Merged
Conversation
…e task checklist The core drops ledger_tasks and the AI task grouping. Requests fall into the goal flow open when they were sent; the label summarizes each request with what it answers, reads a usage limit as its own end, records asks and non-PR outputs, and a doorbell line is judged a letter by the record Hide keeps when typing it. The record DB moves to v7 and the label contract to context_label.v20.
A turn end that reads a new deliverable now replaces the goal, /goal is a signal only in the agents that have it, a summary is marked owed until its analysis is queued, History counts no letters, and a History hit finds a repeat merged into an earlier line.
The operator's next request resolves the questions asked before it, a letter-woken turn no longer repeats an open ask, the label replaces the flow when the work moves to a different part of the product, and an END reads the recorded artifacts so the same output keeps one name.
The turn is read from the last judged turn end, so a /goal or request followed by a letter in the same turn still moves the flow.
…d keep put-away asks away
…summaries A parent's progress or report letter no longer closes what its delegated session asked, the label may resolve an ask only in a turn an answer came in, and the ledger keeps a summary as long as the label may write one, so a long English summary no longer refuses its whole batch.
yansfil
added a commit
that referenced
this pull request
Oct 22, 2026
…1552) Related: PRD lane-two-columns (PR 1 of 2; PR 2, the project tool, follows session-record-goal-flow) ## Summary 오른쪽 lane에서 한 번에 하나만 보여서 PR 카드를 열면 보던 도구가 가려지고, Changes에서 커밋을 열면 목록이 사라졌어요. lane을 두 칸으로 나눴어요: 에이전트 쪽 보는 칸은 문서나 보기 항목(PR 카드 · 기록 · 미션 지도)을 담고, 레일 옆 도구 칸은 Memory · PRs · Explorer · Changes 중 하나를 담아요. 무언가를 열면 보는 칸만 바뀌고 도구는 그대로예요. Files 도구는 없어졌어요. 트리는 Explorer 도구(⇧⌘E)가 되고, 레일 맨 위의 문서 버튼이 열린 문서 수를 세며 문서를 앞으로 가져오거나 접어요. 저장 형식은 schema 4예요. 옛 lane 상태(도구 · 트리 · 폭)는 옮기지 않고 닫힌 기본 모양으로 시작하며, 열린 문서 · 분할 · 코멘트는 그대로 남아요(D-10, B23).  ## Review - **판단해 주세요**: 레일 위쪽의 문서 버튼(파일 아이콘 + 배지)이 "열린 문서"로 읽히는지, 대표 이미지에서 두 칸 사이 구분이 충분한지. - **판단해 주세요**: D-12의 디자인 보드는 저장소 밖이라 갤러리 RightLaneScene으로 대신함 (closed · overlay · pinned · explorer-overlay · explorer-only · expanded · prs · memory · changes · narrow). - **조심해서 볼 파일**: `herdr-core/src/workspace_views.rs` - 저장 형식 schema 4와 schema 3 → 기본값 읽기(옮기지 않음); 옛 문서 목록만 살려야 해요. - **조심해서 볼 파일**: `herdr-core/src/runtime/workspace_view.rs` - `workspace_view` 이벤트 처리(runtime mutex 안): `open` · `documents` · `tool` · `reveal`이 각각 끝 상태 하나를 적고, `documents:true` · `open:true`가 호출(lane_called)로 세어지는 규칙. - **조심해서 볼 파일**: `web/src/workspace.ts` - `laneFrame`/`fitColumns`: 두 칸 폭 배분, 좁은 창에서 보는 칸 → 도구 칸 순으로 줄이고 그래도 안 되면 쌓기(B19). - **조심해서 볼 파일**: `web/src/actions.ts` - ⌘E · 레일 버튼 · 닫기가 보내는 이벤트와 키보드 이동(B11, B15, B16). - **조심해서 볼 파일**: `web/src/viewFocus.ts` - ⌘W 소유자에 `detail`이 생겼고 도구 칸은 아무것도 닫지 않아요(B13, B16). - **조심해서 볼 파일**: `herdr-core/src/runtime/detail.rs` - 리뷰 1차: `open:false`는 보기 슬롯을 내리지 않고(⌘E가 카드를 되돌림), 슬롯 버튼은 닫힌 lane을 열어요(B15, B22). 호출마다 앞으로 낸 칸을 `lane_called_side`로 기록해 쌓인 lane이 추정 없이 그 칸을 그려요(B19). lane-check 2차: 슬롯이 앞으로 오는 모든 경로(카드 · 기록 · 지도 · ← · 레일 버튼)가 한 곳 `call_front_lane`을 지나 lane이 이미 열려 있어도 보는 칸 호출로 기록돼요(B9). - **비용 검토**: 상시 작업 변화 없음. 스냅샷의 `workspace_view`에 필드가 늘었지만 발행 조건은 같고, 접힌 문서는 전처럼 마운트된 채 inert예요. ## Evidence - **확인한 것**: `scripts/verify-cargo.sh test`와 `lint`(clippy + rustfmt) 통과. web typecheck · lint(e2e 크기 예산 포함) · vitest 229 파일 1963개, desktop typecheck · lint · vitest 238개, `node scripts/check-design-contract.mjs` 통과. main을 한 번 머지한 뒤(#1548 이후) 같은 검사를 다시 돌렸어요. - **확인한 것**: 리뷰 1차 수정 8개(⌘E 카드 복원, checkout 바꾼 뒤 보기 버튼, 쌓인 lane의 reveal · 폴더 링크, 배지 항상, 좁은 핀 문구, 꺼진 문서 버튼 힌트, 본문보다 넓은 lane, 문서 정리)마다 회귀 테스트를 더했어요: core 2개(`view_areas.rs`), web 단위 2개(`laneCalls.test.ts`, `MemoryTab.test.tsx`, `workspace.test.ts`), e2e 3개(work-prs · s7 · right-lane). - **확인한 것**: lane-check 2차의 남은 하나(쌓인 lane에서 PRs 목록의 PR을 눌러도 카드가 뒤에 남음, B9)를 고치고 회귀를 더했어요: core `every_way_the_slot_comes_forward_is_a_viewing_column_call`(카드 · 두 번째 카드 · 보인 슬롯의 버튼 · ←), e2e work-prs "in a stacked lane with the PRs tool in front, a row brings its card forward…". - **확인한 것**: CI 1차에서 떨어진 셋을 로컬에서 재현해 고쳤어요: `core_move` 테스트가 저장 키 `view_layout` 대신 `layout`을 읽던 것(핀 Herdr로 로컬 통과), session-panel의 옛 레일 기대값, new-tab(@needs-focus)의 1024px 핀 상태(두 칸이 최소폭으로 들어가 docked가 맞음). - **확인한 것**: 바뀐 web e2e 20개 spec을 격리 Herdr + hided + Chromium으로 로컬 실행. right-lane(7), s6, s4, s7, s3, close-policy, lane-last-tool, lane-hidden-tool, pane-scroll-find, view-close-focus, work-prs, new-tab, view-toolbar-shortcuts, tab-strip-fit, view-bookmarks, view-feedback, recent, workspace-cli, overview-device 모두 통과(처음 실패한 11개는 기대값 · 두 가지 shell 수정 뒤 재실행해 통과). - **확인한 것**: desktop e2e(Electron, 격리 Herdr + hided)로 right-lane · close-policy · new-tab · session-work-ledger · terminal-links · memory-reconcile 6개 spec, background 프로젝트 14개 통과(SSH 1개는 로컬에서 skip). 새 narrow 테스트는 한 번 기대값을 고친 뒤 통과. 리뷰 1차 뒤 new-tab(needs-focus) 1개와 session-work-ledger(머지 충돌 해소분, background)를 다시 돌렸어요. - **확인하지 못한 것**: `/Applications/hide.app`은 바꾸지 않았고(지시) 화면 확인은 격리 후보(Playwright의 web shell, Electron e2e)에서만 했어요. Windows · Linux는 CI lane이 대신해요. - **확인하지 못한 것**: desktop `browser.spec.ts`(@platform, 페이지 폭 900 규칙)와 remote-workspace · browser-cdc 등 나머지 desktop spec은 로컬에서 안 돌렸고 CI의 desktop e2e에 맡겨요. - **확인하지 못한 것**: s3 "draft recovery after restart" 테스트가 세 spec 동시 실행 중 한 번 재접속 실패(connection refused)로 떨어졌고 단독 재실행에서는 통과했어요. lane과 무관한 부하 flake로 봐요. <details><summary>추가 증거</summary>  - 갤러리 `RightLaneScene` 상태: closed · overlay · pinned · explorer-overlay · explorer-only · expanded · prs · memory · changes · narrow. </details> ## Breaking change - `workspace-views.json`이 schema 4로 바뀌어요. 이전 빌드가 쓴 파일은 lane 상태(도구 · 트리 · 폭) 없이 닫힌 기본 모양으로 읽고 문서 목록은 그대로 살려요(PRD D-10). 이 빌드가 쓴 파일을 이전 빌드가 읽으면 그 빌드의 "unknown schema" 경로로 보존(kept aside)돼요. - `toggle_file_tree` · `toggle_lane_files` 단축키 이름이 없어지고 `toggle_lane_explorer`(⇧⌘E) · `toggle_lane_documents`(기본 chord 없음)가 생겨요. 옛 이름에 묶인 chord는 진단만 남기고 버려져요. <details><summary>Verification record</summary> - PRD: agents/prd/lane-two-columns/prd.md (local), PR 1 of 2 - base: main 3316e3c (branched at f3cdcb4, main merged once after #1548), head: 27e3a34 (review round 1: 9c13705 fix, dd91809 test, 8f8f08f merge; lane-check 2: 27e3a34 fix) - suites: verify-cargo test PASS, verify-cargo lint PASS, web typecheck/lint/test PASS, desktop typecheck/lint/test PASS, check-design-contract PASS, web e2e (20 specs) PASS after fixes, desktop e2e (6 specs, background) PASS after fixes; round 1 on the merged tree: verify-cargo test/lint PASS, core_move external test PASS with the pinned Herdr, web e2e right-lane · work-prs · session-panel · s6 · s7 (2 tests) PASS, desktop e2e new-tab (needs-focus) · session-work-ledger PASS - evidence: agents/runs/lane-two-columns/ (local): web-e2e-batch1..5.log, desktop-e2e-batch3..4.log, shots/, round1-*.log, merge-*.log, ci-fail/ - change paths: herdr-core, hided/tests, web/src, web/e2e, desktop/src/main/menu.ts, desktop/e2e, design/tokens.json, docs/UI_BEHAVIOR.md, docs/ARCHITECTURE.md </details>
yansfil
added a commit
that referenced
this pull request
Oct 22, 2026
…cord states (#1565) Related: #1548 ## Summary After #1548 the session record still showed what the agent last said, even when Hide already knew better: a flow whose pull request had merged still read "CI 기다림", a flow the operator moved on from still read as a question, and a past flow's questions stayed in `나를 기다리는 것`. Now Hide's own facts win where they are newer: - a flow whose pull requests all merged or closed after its last line reads `머지됨 #n` / `닫힘` with the time, and the top state does the same for its own flow (a question, block or limit stays); - a flow the operator moved on from shows the one line the label gave as it closed (`context_label.v21`, `closed_result`), else `넘어감` with its last line; - moving to the next flow answers the questions before it; - the record is named after the flow the operator asked most in, while the pane keeps the current flow's name. Before (left) and after (right), gallery `SessionWork` facts case: the first flow reads `머지됨 #1541` instead of a wait, the second `넘어감`, the third shows its closing line, and the top state reads merged.   ## Review - **판단해 주세요**: the closing line is an AI line; it replaces the flow's last turn line even when that turn ended `끝` (eval: 3 of the 18 wrong items in this PR's view are closing lines). Keep it, or show it only for flows that ended on a question or wait? - **판단해 주세요**: the record title is now the largest flow's name everywhere `record.title` is read (record header, backlog origin, search), while the sidebar keeps the current flow's. - **조심해서 볼 파일**: `herdr-core/src/links/ledger_store.rs` (`settle`, `place_flows`, the ask repeat check) - the record read runs on the link worker, not under the runtime mutex; the outputs query adds one indexed `prs` lookup per output row. - **조심해서 볼 파일**: `herdr-core/src/links/store.rs` - link store schema 7 -> 8 (`ledger_chapters.closed_result`); an older build refuses the newer file, as with 7. - **조심해서 볼 파일**: `herdr-core/src/labels/context_label.rs` - label contract v21: `closed_result` required in both schemas, kept only on `replace`, a control character drops the line alone. ## Evidence - **확인한 것**: same 21 real sessions as #1548, each scored by fresh independent scorers with the three views (old record, #1548, this PR) unlabeled in one pass, 7 scorers, rubric unchanged: | | 누락 | 틀림 | 읽기 편함 | 경계 맞음/틀림 | |---|---|---|---|---| | 옛 기록 | 78 | 40 | 2.19 | - | | #1548 | 42 | 25 | 3.62 | 32/16 | | 이 PR | 39 | 18 | 3.86 | 34/14 | - Targets: 틀림 <= 20 met; 운영자 요청 누락 0 met; 경계와 읽기 편함 not worse met. - 누락 <= 35 missed (39). 옛 기록보다 틀린 세션 0 missed (3): flow boundaries, one translated product name, and backlog lines outside the record; none comes from the result, status or ask rules here. - A first turn of a new flow re-listed a past flow's question word for word in 4 of 56 cases; none was scored wrong. - **확인한 것**: `cargo test -p herdr-core` links and labels suites (new tests for settled flows, the top state's own-flow scope including a child's PR and a turn spanning two flows, closing lines, moved-on, asks closed by the next flow and kept dismissed, the title); `SessionRecord.test.tsx` 25 tests; `tsc`; `node scripts/check-design-contract.mjs`; CI `rust workspace` green on the final head. - **확인하지 못한 것**: - The record e2e (`session-work-ledger.spec.ts`) was not run locally (its fixture setup stalled on this machine); it passes in CI on Linux, macOS and Windows. Its fixture now merges the pull requests 3 s after creation and waits for the stored merge times, so the merged result no longer races the flow's line. - Local `sasu implement verify` did not pass for machine reasons, so CI stands in: the test suite hit the 600 s cap at load average ~29, then one run failed `hide-session` `usage_opencode_refuses_oversized_identifiers_before_materializing_them` (a crate this PR does not touch; it passed 5 of 5 alone and passes in CI). Lint passed every time. - No native app check; nothing installed. - A continuation turn with no new request keeps the ledger's first judgment, so a status can stay stale until the next request; this is outside the contract and is a follow-up. <details><summary>추가 증거</summary> Dark theme, same case:   Review rounds: Fidelity (B2 scope, B6 guard) and Code review (e2e expectation, v20 references, dismissed-ask test, child rows, indexed lookup, closing-line refusal, Japanese wording) fixed in 1acbad8; follow-up review found no fix-now defects, and its follow-ups (turn placement, count-free example) are fixed in 4cae0a8 and aab9e6e. </details> ## Breaking change - Link store schema 8: a Hide build from before this PR refuses the link store this one writes, so going back needs the matching state folder. - Label contract `context_label.v21`: answers from v20 are not read as v21. <details><summary>Verification record</summary> </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
The session record's
요청한 작업checklist grouped requests into AI tasks that were often wrong, and the pane's2/3chip counted them.The record now shows the work as goal flows: each request sits in the flow that was open when it was sent, with a one-line AI summary, and a past flow folds to its result.
The checklist, the pane chip, its popover, ⇧⌘U and the AI task grouping are gone.
On top of the record: questions that wait on the operator (
나를 기다리는 것), a usage-limit turn as a badge instead of a status, PRs grouped by direct child with settled ones folded, and non-PR outputs (결과물).Record: the checklist and tabs give way to the waiting questions, the flows, the PR groups and the outputs. Pane head: the
2/3chip is gone.Review
/goalonly confirms it in Claude Code and Codex CLI. Is the split in your own sessions where you expect it?×n.herdr-core/src/links/ledger_store.rs- record DB v7 drops the task table and columns with no way back (one transaction), and the ask close and dedupe run in the turn-end write.herdr-core/src/labels/worker.rs,labels/analysis.rs- a turn is now read from the last judged turn end (this_turn), so a letter landing mid-turn no longer hides the operator's request or/goal.herdr-core/src/labels/context_label.rs- label contract v20; owed summaries (oldest first, 8 per call, the turn's own request always) ride the existing two calls per turn.Evidence
verify-cargo.sh lintclean, web typecheck, lint and unit tests pass,e2e/session-work-ledger.spec.ts7 pass on the web shell and 1 on the desktop host, the design contract passes./goal, one without/goalwhose work changed several times), and each record was scored against its conversation for missing items, wrong items and readability, four rounds with a fix between each.resolvedonly in an answered turn) landed after the last full round and are covered by unit tests, not rerun through the eval./goal, 21 / 7.sasu implement verifypassed at f8d965a but failed twice at the final head 37f5124 because the disk filled while linking (No space left on device, then the half-writtenhidetest binary refused to run); lint passed in both runs, and this PR's CIverifystands in for the local test lane: green at 00cb44d (the Rust lane passed on a rerun of the known flaky with-hide/hide-private#165).Deliberate differences from the PRD's technical notes
×nis computed when the record is read, not stored.imagescount column; the oldchaptercolumn is dropped because a request's flow is found by time.meta.summaries_owed_since), so old sessions are not re-summarized.include_tasksoption is nowinclude_flows.넘기기, not the PRD's무시.Review findings and dispositions
docs/UI_BEHAVIOR.mdlacked the letter fold and the put-away behavior, and the eval lacked a per-session dropped-request count. Fixed: both added (0 dropped)./goalnot gated by agent, summaries cut at one line, stale docs, the operator's own reply in a child pane, put-away questions coming back, thethis_turnfallback untested: all fixed with tests.Follow-ups
work_author,turn_witness, the turn's start); only the flow,/goaland the question close use the whole turn.!shell lines (<bash-input>,<bash-stdout>) are recorded as requests, in the old record too; the shared session parser should treat them as the operator's shell, not a request.sk-keys andkey=valuesecrets, not GitHub tokens, AWS keys or bearer tokens; this change sends more of the conversation (the message before each owed request).Breaking change
links_store_newer). Task grouping already stored is dropped; requests, flows, turns, questions and outputs are kept.Verification record
verifyrun 39790668907 at 00cb44d: success on attempt 2; attempt 1 failed onlymoved_terminal_keeps_registration_letters_and_watch_after_restart, the flaky test with-hide/hide-private#165, which also failed on main at f3cdcb4.sasu implement verifyat f8d965a: PASS (verify-cargo.sh test417 s,verify-cargo.sh lint5.7 s).sasu implement verifyat 37f5124: FAIL twice, machine disk (671 MiB to 1.5 GiB free); lint PASS 7.0 s; the failing tests are the hided integration tests that run thehidebinary, which the full disk left unwritten.cargo nextest run -p herdr-core -p hide-sessionat 37f5124: 3351 passed.