Repository navigation
feat: replace the Memory and PRs tools with the Project tool and a sidebar PR list - #1567
Merged
Merged
Conversation
… tools in the core
… tell an unread cost from zero - A live session whose record holds an open ask joins 할 일, one line per pane - Cost stays empty until the first build, says when no build succeeded, and a failed build retries - An agent with an unpriced model stays named apart and the total reads as a lower bound - The worktree table lists every worktree by each checkout's own mark, past the tile's cap - +N 더 counts only rows the core sent; the rest point to the sidebar's lists - Recent memory reads every card, whatever the 기억 search
…ped worktree table
Contributor
Author
|
머지 보류: 격리 앱 확인 2차에서 고칠 것 3개가 나와 수정 예정이에요(할 일 '나머지 N개' 링크가 넘친 PR을 태스크 목록으로 보냄, 사용량 저장소를 못 열 때 비용 칸이 실패 표시 없이 대기로 남음, 사이드바 PR 줄의 에이전트 칩을 hover GitHub 버튼이 덮음). 고친 커밋이 올라오고 다시 확인하면 이 보류를 풀게요. |
…en the usage store will not open, and keep a PR row's agent mark pressable
Contributor
Author
|
머지 보류 해제: 고칠 것 3개를 04ec1341f에서 고쳤고, 격리 앱 확인 3차를 통과했어요(통과 12 · 실패 0). 이 head의 CI가 초록이면 머지해도 돼요. |
yansfil
added a commit
that referenced
this pull request
Oct 22, 2026
## Summary
에이전트가 자기 일의 계획을 `hide plan`으로 올리면, Hide가 그 단계를 pane 옆 지도로 그리고 매 프롬프트에 지금
단계를 알려 줍니다.
`--ask`로 올린 계획은 운영자의 검토를 기다리는 질문이 되어 pane 띠, 사이드바 둘째 줄, 벨, 폰에 같은 길로
뜨고(core는 문구 없이 `ask_subject` `{cause: plan_review, steps}`만 보내고 각 화면이 자기
언어로 씁니다), 에이전트가 `hide plan approve`할 때까지 파일 쓰기와 `git commit`/`git push`가
막힙니다.
pane 머리의 옛 작업 칩 자리에 계획 칩(`n/m`, 검토 중이면 `Review`)이 생기고, 팝오버는 작은 지도, `크게
›`는 보기 칸의 큰 지도입니다.
계획은 세션 기록과 같은 저장소에 남아 재시작 뒤에도 읽히고, 세션이 지워지면 함께 지워집니다.

검토로 올린 계획(영어 UI): 칩 `Review`, pane 띠와 사이드바 둘째 줄이 `Plan review · 5
steps`로 묻습니다. 한국어 UI에서는 `계획 검토 · 5단계`입니다.
## Review
- **판단해 주세요**: B20의 "같은 자리에서 끈다"를 Settings › Agents의 에이전트 스위치로 읽었습니다. 스킬
줄은 읽기 전용이고 스킬마다 끄는 스위치는 없습니다(kit에 그 상태가 없음). 스킬별 스위치가 필요하면 후속으로 나눕니다.
- **판단해 주세요**: 재계획에서 빠진 `done` 단계는 `done`인 채 "바뀜"으로 남깁니다(빠진 나머지는
`dropped`). `n/m`이 뒤로 가지 않게 하려는 선택입니다.
- **판단해 주세요**: 새 토큰 `--size-plan-node-compact: 144`(팝오버 작은 지도의 카드 폭).
- **조심해서 볼 파일**: `herdr-core/src/runtime/plans.rs` - runtime mutex 안의 일.
`refresh_plan_reviews`가 snapshot 경로에서 계획 책이 바뀐 때만 보이는 행에 검토 질문을 다시 얹고,
얹었던 것만 걷어 냅니다.
- **조심해서 볼 파일**: `herdr-core/src/agent_state/turn.rs`, `header.rs`,
`tally.rs` - snapshot wire. 행의 `ask_subject`가 `state.line.subject`,
`state.ask.subject`, 띠 `subject`, 벨과 폰 알림의 `subject`로 그대로
갑니다(`ask_subject_cause`를 `snapshot-wire-enums.json`에 등록). 이 행은 `detail`이
비고 상태 단어만 남습니다.
- **조심해서 볼 파일**: `web/public/m/sw.js`, `web/src/mobile/push.ts` - 폰이 닫혀
있어도 알림을 쓰도록 페이지가 `{{count}}`를 남긴 문구를 서비스 워커에 넘기고, 워커가 단계 수를 채웁니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/snapshot_delta.rs` - snapshot
wire. 위 호출이 `refresh_missions` 앞에 들어갑니다.
- **조심해서 볼 파일**: `herdr-core/src/links/` - 링크 worker가 유일한 SQLite writer,
스키마 9에 `ledger_plans` 표(#1565의 8 다음).
- **조심해서 볼 파일**: `hide-agent-hooks/src/plan_record.rs`,
`hide-agent-hooks/src/delivery.rs` - failure path. PreToolUse는 core를 부르지
않고 pane 기록 파일만 읽습니다. 읽지 못한 계획 요약은 요약만 버리고 편지는 그대로 전합니다.
- **조심해서 볼 파일**: `herdr-core/src/dag.rs` - 미션 그래프 코드를 옮긴 것(동작 그대로, 미션
테스트 77개 통과).
- **비용 검토**: 고빈도 경로 추가는 snapshot마다 `plans.edit` 비교 한 번입니다. 계획이 바뀐
publish에서만 행 복사, lineage, 읽음 축을 다시 돕니다. 계획은 128개(`PLAN_LIMIT`), 단계는
64개(`plan_too_large`)로 막히고, `laid`는 보이는 pane으로 잘립니다.
## Evidence
- **확인한 것**: 격리된 Herdr와 hided 위의 Playwright e2e
`web/e2e/plan-review.spec.ts`. `--ask` → 칩 Review, 띠와 사이드바 `Plan review
· 4 steps`(영어 UI), approve → 띠와 사이드바가 비고 1/4, 일하는 단계가 둘째 줄, 순서 거절
`plan_order_refused`, 2/4, 팝오버 4단계, `크게 ›` → 보기 칸 큰 지도(아래로 흐름), drop → 칩
사라짐.
- **확인한 것**: 격리된 후보 Electron 창(Playwright renderer capture, 사설
HOME/state/Herdr)에서 아래 화면 네 장. 운영자 앱과 서버는 쓰지 않았습니다.
- **확인한 것**: 핵심 회귀 - 다른 Herdr 이벤트 없이 approve만 해도 검토 질문이 행에서 걷힘(첫 캡처에서 남아
있던 것을 고침, core 테스트로 고정).
- **확인한 것**: core plan/mission 테스트, delivery-envelope 계약 테스트(계획 요약과 힌트
예시), hide-agent-hooks 전체(훅이 `hide`를 부르지 않고 거절), hided CLI 계약, hide-kit,
web 전체(`scripts/verify-web.sh`), design contract, cargo lint(clippy,
fmt).
- **확인하지 못한 것**: OpenCode와 Pi 플러그인 helper의 계획 거절 경로는 테스트가 없습니다(Claude
Code CLI 경로만 픽스처로 증명).
- **확인하지 못한 것**: 연결된 기기의 pane(B22), 폰 줄(B24)은 실행해 보지 않았습니다. 같은 질문 행을
읽는다는 것은 코드로만 확인했습니다.
- **확인하지 못한 것**: 실제 macOS 창 크롬과 네이티브 입력(renderer capture만 했습니다).
- **확인하지 못한 것**: 한 번 OpenCode plugin2 테스트 "a terminal that misses an
answer…"가 부하 중 실패했고 재실행에서 통과했습니다. 이 변경과 무관해 보입니다.
<details><summary>추가 증거</summary>

approve 뒤: 묻기가 사라지고 칩 `1/5`, pane 둘째 줄이 `core 이벤트 · 이벤트 쓰는 중`.

칩 팝오버: 끝난 단계 채움, 지금 단계 진행색과 `Now`, 기다리는 단계 점선, `PR` 꼬리.

`크게 ›`가 보기 칸에 큰 지도를 엽니다.
</details>
<details><summary>Verification record</summary>
- PRD: `hide-plan` (D-01..D-30, B1..B24), head `e52d7f7b7` (main merged
four times: `02f9043c0`, `d55a5218e` with #1564, `68e6fcba4` with #1565,
`8a6ca61af` with #1567; the last keeps both sides' 보기 items, Plan beside
Worktrees and Cost, and 55 shortcut rows).
- Review band wording moved out of the core (`e6e898dc3`): the row
carries `ask_subject`, and web, bell and phone word it with
`plan.askReview`; core test compares the wire structure, web tests cover
en/ko line, bell and service worker; e2e `plan-review.spec.ts` passes
with the English text; isolated capture replaced.
- Reviews of `e6e898dc3`: Code review found a raised ask (a blocked
delegated child carrying the subject) would word the label line on its
root; `22e41901a` carries `subject` on `RaisedAsk` to the root's ask,
band, turn card and tree popover, with a core test. A plain laid review
does not raise on its own (`ChildBlocked` needs the child's own block),
so this was a latent path. Fidelity review: the same popover sites,
fixed by the same commit; no other Fix now. Follow-ups:
`overviewTasks.cardLine` reads only `ask.what` (its one consumer falls
back to the subject).
- `sasu implement verify`: PASS on `e52d7f7b7` (and on `22e41901a`,
`8a6ca61af`); CI `verify` green on `e52d7f7b7` (run 39855795741). The
phone's cached words now include the plan review template
(`mobile.spec.ts` expectation, `e52d7f7b7`). Code review of the
`8a6ca61af` merge: no Fix now.
- Earlier: `sasu implement verify` PASS on `68e6fcba4` (S1
`verify-cargo.sh test`, S2 `verify-cargo.sh lint`), and earlier on
`02f9043c0` and `7582bce1e`.
- Before the merge, two runs on `3c96a8381` each failed one unrelated
timing test under machine load (load average 20 to 28):
`memory_analysis::...a_linked_node_s_closed_session...` and
`memory_hook::...short_continuations...` (`Deadline` for `Empty`). Each
passed alone, neither file is in this diff.
- Link store schema: #1565 merged first and took version 8
(`closed_result`); `ledger_plans` is version 9, applied after it in the
same migration. Code review of the move: no Fix now (a store a pre-merge
build of this branch stamped 8 would miss `closed_result`; only
throwaway candidate stores).
- Fidelity review on `6195d35af`: 6 Fix now, 5 fixed (done steps on
replan, `--json` revise route, record 지금 line, waypoints icon,
`plan_not_yours` test), 1 left to the reviewer (B20 per-skill off).
Follow-up on `3c96a8381`: no Fix now.
- Code review on `6195d35af`: 4 Fix now, all fixed (`plan_too_large` and
`--json` errors as JSON, review question lifted from shown rows,
`--json` revise route, unreadable plan summary keeps the letters).
Follow-up on `3c96a8381`: no Fix now.
- After the merge, Fidelity found that a deleted session's plan item
closed the viewing column instead of showing the documents (main's
lane-two-columns B13); `drop_detail_items` fixes it for plans and
missions (`2b4b5ad79`). Both reviews of `02f9043c0..7582bce`: no Fix
now.
- CI web e2e linux 5/6 (`s2.spec.ts` shortcut count 53 vs 54 with Show
plan) fixed in `7582bce1e`.
- Follow-ups carried: plan context before the restore finishes, skip the
row copy when no plan is proposed, remote rows' read mark after a
re-lay, bell on a review laid at pull time, ghost steps toward the 64
cap, session precedence after `/clear`, device clock skew, pane record
cleanup, eviction note, OpenCode and Pi helper test, `git rebase
--continue`, a documents-return assertion on the plan delete path,
re-reading a record under a dropped plan.
- Evidence: 5 isolated renderer captures registered (B5, B7, B11, B12,
B14); e2e `web/e2e/plan-review.spec.ts`.
</details>
yansfil
added a commit
that referenced
this pull request
Oct 29, 2026
…lakes (#1819) Closes with-hide/hide-private#304 Closes with-hide/hide-private#305 ## Summary 부하에서 가끔 깨지던 Rust 테스트 두 건의 원인을 고칩니다. 같은 묶음의 나머지 세 건은 이슈별로 아래에 적었습니다. - **#304 OpenCode 사용량 읽기**: 읽기가 10 ms 시간 예산을 첫 행을 읽기 전에도 검사해서, DB를 여는 데 그 시간을 넘기면 행을 하나도 읽지 않고 끝났습니다. 이제 예산은 둘째 행부터 검사합니다(줄 파일 읽기와 같은 규칙). 그래서 읽기는 언제나 전진합니다. 테스트는 시간 예산이 자를 수 있는 정확한 개수(첫 읽기 2행) 대신, 읽기마다 scan total 이하(3 MiB 행 2개), 더 남은 읽기는 1행 이상, 전체 4행을 단언합니다. - **#305 늦게 세션을 보이는 자식의 bind**: 테스트가 session sync 대신 lineage writer를 관찰시키는데, 세션이 보인 뒤 한 번만 관찰시킵니다. writer는 이전 batch가 아직 worker에게 넘어가지 않았으면 그 관찰을 다음 관찰에서 처리하므로, 부하에서 worker가 늦으면 bind가 계획되지 않았습니다. 테스트가 이제 at-rest batch를 worker가 가져간 뒤에 세션을 보이게 합니다. - **#174** links_store_busy: main의 1a90d50(#1567)가 이미 고쳤고 그 뒤 재발이 없어 근거와 함께 닫았습니다. - **#134** agy signed in: 그 lane은 ff9b090(운영자 결정 10-27)로 CI에서 빠졌고, 남은 agy contract는 세 OS 모두 통과해 닫았습니다. - **#115** perf topology 'Build the web shell': main에서도 다시 실패합니다(원인: 웹 타입검사 시간이 catalog와 함께 커짐). 고치는 방식을 conductor에게 묻는 중이라 이 PR에는 아직 없습니다. 스크린샷 없음: 화면을 바꾸지 않는 테스트와 읽기 경로 변경입니다. ## Review - **판단해 주세요**: #305를 제품이 아니라 테스트에서 고친 판단. 운영에서는 subscription이 살아 있는 동안 session sync가 1초마다 `agent.list`를 묻고 답마다 `writer.observe`를 부릅니다(`session_sync/coordinator.rs` 318-322행, 825-836행). 미뤄진 관찰은 `pending_retry`로 남아 다음 관찰이 바뀐 것 없이도 계획하고(`a_full_pending_batch_is_retried_without_duplicating_in_flight_patches`), 재연결은 `changed=true`로 다시 관찰합니다. 그래서 운영에서 미룬 관찰을 잃지 않고, 관찰을 한 번만 하는 쪽은 테스트였습니다. - **판단해 주세요**: #304 테스트의 기대값 변경. 요구(scan total을 넘는 행은 다음 읽기가 읽는다)는 그대로이고, 시간 예산이 자를 수 있는 정확한 개수를 단언하던 테스트가 요구를 잘못 표현했던 것입니다. 시간 예산(10 ms)은 바꾸지 않았습니다. - **조심해서 볼 파일**: `hide-session/src/usage/opencode.rs` - 사용량 읽기 경로(high-frequency path). 행마다 하는 일은 그대로이고, 첫 행에서 시간 검사 하나를 건너뜁니다. - **조심해서 볼 파일**: `herdr-core/src/coordination/lineage.rs` - 테스트 전용(`#[cfg(test)]`) 조회 하나만 더했습니다. ## Evidence - **확인한 것**: #305는 worker가 batch를 가져가기 전에 300 ms 지연을 심어 이슈와 같은 실패(`timed out waiting for the core binds the late child`)를 재현했고, 수정한 테스트는 같은 지연에서 통과했습니다. 지연은 되돌렸습니다. - **확인한 것**: #304는 scan total을 끄는 결함을 심으면 새 테스트가 `read 1 took 4 rows`로 실패하는 것을 확인하고 되돌렸습니다. - **확인한 것**: `scripts/verify-cargo.sh nextest -p hide-session -p herdr-core` 3796개 통과, `scripts/verify-cargo.sh lint`(fmt, clippy 전체) 통과. 로컬 load average 15-80, 디스크 98%. - **확인한 것**: `nightly.yml` lane=agy를 main 047d0944d에서 dispatch, agy contract와 agent trust contract 6개 job 모두 통과(run 40803128207). - **확인하지 못한 것**: `perf.yml` dispatch(run 40803125317)는 main에서 'Build the web shell'이 5분을 넘겨 실패합니다(#115, 위). 이 PR은 그 lane을 고치지 않았습니다. - **확인하지 못한 것**: #304의 "첫 행은 항상 읽는다"는 시계를 주입할 수 없어 결정적인 테스트가 없습니다. 부하에서만 새 단언(더 남은 읽기는 1행 이상)이 그 결함을 잡습니다. <details><summary>Verification record</summary> - base 047d094, head 7feb3b2 </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.
Related: PRD lane-two-columns PR 2, after #1552
Summary
The right lane's Memory and PRs tools become one Project tool with two tabs, 현황 and 기억.
현황 shows the project in front: four tiles (sessions, PRs, Git, 7-day cost) and a 할 일 list (new asks, then 다시 볼 것, then my PRs and reviews).
The pull request list moves to the sidebar as a third list beside 프로젝트 and 태스크 (⇧⌘R, and ⇧⌘B turns through all three).
The Git and cost tiles open a worktree table and a cost page in the 보기 slot; the core derives the status and prices each local project's last seven days on the usage worker.
Isolated daemon with a stand-in
gh: look at the tile layout and whether the 할 일 list reads as "what is mine to do".Review
RENAMED_KEYSinweb/src/shortcuts.ts, B25; test "runs a chord bound to the removed Memory and PRs tools…").herdr-core/src/agent_state/tally/scope.rs- status is derived inside the scope cache, so it is rebuilt only when tasks, the PR board or Git facts change (B42; nothing read under the runtime lock).herdr-core/src/usage_ledger/worker.rs,project_cost.rs- cost is built on the ledger worker, at most every 30 s, capped at 200,000 calls (limitedplus one diagnostic past it).herdr-core/src/workspace_views.rs- schema 5; a schema 4 lane saved on Memory or PRs opens with no tool column (D-10).herdr-core/src/links/ledger_store.rs- the link worker's summary read now counts each session's open record asks in one grouped query off the lock; the scope cache compares them as input.herdr-core/src/usage/model.rs,contracts/hided-ws.schema.json-nodes[].projectsis absent until the first cost build succeeds andprojects_failedis new, so a tile tells "not read yet" and "failed" from $0.00.eventsper rebuild on the worker, none on the snapshot path.Evidence
verify-cargo.sh lintclean;verify-cargo.sh test --no-fail-fast5642 passed. After merging main: herdr-core lib 3041/3041, web typecheck/lint, 1955 web unit tests, web and desktop build,check-design-contract.mjs.@needs-focus): memory-progress, memory-reconcile, project-settings, browser, right-lane.–), and a PR row's agent mark keeps its own width beside the hover buttons so the pointer and the keyboard reach it. New tests: coretodo_agentscount, workera_usage_store_that_cannot_open_reports_the_costs_failed, ProjectTool per-kind overflow links, e2e work-prs B41 agent mark press (fails on the old row). herdr-core lib, web unit 1958, clippy, eslint; web e2e work-prs, right-lane, memory-tab, lane-last-tool, hide-ai-usage-limit, weekly-usage, hide-ai-home 29/29.labels::tests::record_tests::unchanged_panes_sharing_a_conversation_do_not_repeat_metadata_writestwice withlinks_store_busy; the race is on main too (the test is unchanged there). The test's own store connection writes while the link worker writes its start metas, and a deferred read-then-write transaction fails busy at once without the busy timeout.LinkStore::apply_answer_observednow begins IMMEDIATE, so it waits for the writer. Locally the test failed 1 run in 8 before and passed 24 of 24 after; links 111 and labels 181 pass.@needs-focustests were not run locally.moved_terminal_keeps_registration_letters_and_watch_after_restart,a_linked_node_s_sessions_are_read_through_its_linkand hidedmobile::a_foreign_entry_or_a_failed_command_leaves_mobile_unexposed, e2e s2 and desktop right-lane.추가 증거
Breaking change
workspace-views.jsonis written as schema 5; an older build keeps that file aside and starts lanes from defaults.Verification record
Head 1a90d50 (review round 2 and a link store busy fix; origin/main merged at d247fe7 after #1552 landed). Local run evidence stays outside the repository.