Skip to content

Workspace 본문을 Agent Views, File Views, Tools 세 컬럼으로 나눕니다 - #361

Merged
yansfil merged 54 commits into
mainfrom
prd/three-column-panel
Oct 4, 2026
Merged

yansfil merged 54 commits into
mainfrom
prd/three-column-panel

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #321 · PRD agents/prd/three-column-panel/prd.md

Summary

  • Workspace를 Agent Views, File Views, Tools 컬럼으로 나누고 전체 폭 툴바에 독립적인 호출 버튼을 둡니다.
  • Workspace별 탭 트리, 도구 선택과 컬럼 폭을 유지하며 기존 설정을 이행합니다.
  • 최소 폭은 Agent 480 / File Views 360 / Tools 260px, 구분선 포함 단계는 1116 / 848px입니다. 본문 1100px은 중간 배치를 씁니다.
  • 넓은 배치의 Tools 호출은 중간 배치에서 File Views를 가리지 않습니다. 중간 배치에서 새로 호출한 Tools는 자신의 저장 폭을 씁니다.
  • 연속 divider 키 입력을 확인된 폭에 누적하고, 승인된 Pen master·상태 화면 및 owning 생성기·검사기를 반영합니다.

Review

  • 판단해 주세요: 전체 계약의 최종 Code/Fidelity/Security 검토가 남아 있습니다. 독립 B35 시각 검토는 실제 native/Pen 77개 이미지 비교에 한정된 CLEAR입니다.
  • 조심해서 볼 파일: workspace_views.rs, runtime/workspace_view.rs의 core 소유권·설정 이행; WorkspaceScreen.tsx, columnCalls.ts의 임시 배치·폭 확인; Pen 검사기의 ref/alias/중첩 paint 및 pen-cli.mjs의 취소 정리.
  • 비용 검토: divider별 미확인 프레임 1개와 core 확인 슬롯 1개, ID 최대 128바이트입니다. 입력마다 기존 이벤트 1개를 쓰며 새 타이머·I/O·Herdr 호출을 추가하지 않습니다. Pen 작업은 기존 기한·출력 cap을 유지하고 취소 시 자식을 기다린 뒤 정리합니다.

Evidence

  • 확인한 것: 1d4 제품 빌드에서 web 868 / desktop 99 단위 사례(기존 skip 3), hcoord e2e 36, type/lint/build, divider 원래 native와 빠른 키 입력, S6가 통과했습니다. 현재 제품·Pen·토큰 소스와 출력은 동일합니다.
  • 확인한 것: 87 head에서 실제 Browser slot/overlay/no-reload, Light/Dark 컬럼·툴바·divider, private SSH B34와 guarded foreground area-cycle을 재검증했습니다. 실제 PNG 127개와 geometry·후보 PID/window·서버 identity를 등록했으며 모두 정리했습니다. 이후 main 통합은 테스트 변경만 포함합니다.
  • 확인한 것: 기존 Pen 정리·scratch 33개 사례가 수정 후 통과했고, 현재 head 디자인 CI가 통과했습니다. ref/paint 검사기 P2 세 건과 승인된 정확히 180개 paint 단위는 같은 독립 검토자가 확인했습니다.
  • 현재 실패/미완료: 7495 전체 web은 115/116 통과, fixture Git 서명 설정 1개 실패였습니다. 명령별 commit.gpgsign=false 수정 후 원래 사례가 87 head에서 통과했으며, 현재 head의 원래 전체 116개 사례는 실행 중입니다. 이전 rename-focus 실패는 이후 통과와 별개로 원인 미확정 상태를 보존합니다.
  • 현재 실패/미완료: 전체 87 head Rust 검증은 IPC burst의 179번째 연결 거부로 실패했고 lint는 통과했습니다. IPC 소유자가 원인을 조사하며 단독 실행 통과로 실패를 닫지 않았습니다. 최신 main을 통합한 현재 보고서는 STALE이며, 현재 CI와 7495 Linux 외부 탭·탭 개수 실패의 확인이 남아 있습니다.
  • 성능 한계: private baseline/candidate 6회, 600개 실제 echo marker와 동일 geometry를 기록했습니다. 첫 비교의 외부 compiler 부하 때문에 전체 비교는 INCONCLUSIVE입니다. 속도 개선이나 OS 키 입력 지연을 주장하지 않습니다.
  • 다음 작업: 원래 웹 전체 결과와 현재 CI를 확인하고 IPC 소유자의 원인·수정 증거를 받은 뒤 현재 전체 Rust/lint 및 최종 Code/Fidelity/Security 검토를 완료합니다. 35개 계약·assertion·기한·사례 수·제외 없음 조건을 유지하며, 남은 항목이 닫히기 전에는 병합하지 않습니다.
  • 생성물: 승인된 Pen 라이브러리·화면과 owning generator/check mapping입니다. 기존 48개 export와 다른 root, sealed PRD를 보존했습니다.
과거 headless 화면 참고

이 이미지는 과거 소스의 headless 캡처이며 현재 native 검증을 증명하지 않습니다.

과거 넓은 컬럼 배치

Breaking change

  • 다음 저장부터 기존 panel/pinned/폭 비율 대신 독립적인 views/tools 및 컬럼 폭을 씁니다. 기존 설정을 읽는 이행 경로가 있으며, 이전 빌드의 새 키 해석은 확인하지 않았습니다.
Verification record
  • Published head 3b5df081cf9f212e6e3bb88c40e8054470214977, ordinary merge of current main cab8625fa0cc9f35db3434e231cdf74728118319; local and remote match, tracked tree clean. The latest integration changes only hided/tests/real_herdr.rs lifecycle diagnostics.
  • PRD SHA256 3045379a3be58671e97db0e1abc4430d43cd45bfe6b9b4dc38ad5be548c4aa27; B1-B35, S1 full workspace Rust and S2 lint retained with zero exclusions. Current deterministic verdict STALE after latest-main integration. Attempt d0190733-f330-4661-a005-1e2cc36a3af0 at87 was FAIL: Rust exit101 in95.1s, IPC24 PASS/1 FAIL at connect179/code61; lint PASS14.0s. The original focused200-connect case passes at3b without proving the cause fixed.
  • Current CI: verify 37172457406 pending; design 37172457284 SUCCESS. Original Pen lifecycle/scratch33 PASS11.462s, no assertion or cancellation-check changes.
  • Parent7495 full116: UTC01:51:45 to02:16:14, 115 PASS / 1 fixture-signing FAIL, source stable, owned group empty. The fixture correction retains all original product assertions and deadlines.
  • Historical7d4 full116: 115 PASS / 1 rename-focus FAIL. Subsequent original focused flows and7495 full Rename PASS do not establish a causal fix. Raw7495 Linux1 external-create and Linux6 tab-count REDs remain preserved.
  • Product outputs retain 1d4 identity: hided SHA256 2696609d820e454832b0a8e2f3d9930c962581117362c551d91863539c228e48, web index 947a63c87252066221151d115094f6a4228fc5a464a6cd9d44a528fa38f4709b, desktop main 86aafdeffa6931247bc1284cd8ffb338577377cd9675f5d854ad30bfacff6991.
  • Fresh87 native: background14 PASS/1 SSH prerequisite skip, separately real private SSH B34 1 PASS, guarded foreground area-cycle1 PASS22.6s;127 actual PNGs plus sidecars. Every exact candidate/private server ended, all414 kernel birth identities independently absent; operator app and server untouched. Original signing-fixture case1 PASS15.5s.
  • B35 independent scoped CLEAR:46 real candidate PNGs +31 matched Pen/library images. Product/Pen byte identity carries that scoped review; fresh87 collection127 PNGs is separately registered with its actual source identity. Current collection includes80 actual echo markers,2 toggle PTY resizes,0 held-drag/2 release resizes, no new View request. Final full-contract review is pending.
  • Final paired87 observations:3 alternating baseline7c974/current87 pairs,50 idle+50 driven each,600 markers/zero exclusions/same geometry, all143 kernel birth identities absent.31 foreign compiler samples in pair1 make the overall comparison INCONCLUSIVE; pairs2/3 have no such samples. CLI-return-to-xterm-write is a signed timing boundary and does not prove OS keyboard latency.
  • Screens SHA256 fe2f8bcd9f46c3031528d31d91eb9b31c8d6f3dc4929a5d210a225e5ae9ab1af, library 24ef07fc5256240cfe834f16c68d219a63fd8d5aff908c598a9018b660cdba7e. Approved paint unit: 113 equivalent inherited restatements and67 disclosed canonical Dark corrections, all other properties preserved.
  • Finalization publishes all coherent commits with honest remaining gates. Source artifacts, private profiles, logs and captures remain uncommitted under ignored run directories. This PR is not a whole-acceptance or merge claim.

yansfil added 24 commits October 3, 2026 20:30
A Workspace's presentation is now whether File Views and Tools are on,
the Tools column's tool and the two column widths. The side panel's
state, Pin, its shares and the covered report are gone, and so is the
agent choice that closed a floating panel.

- workspace_view carries result values (views, tools, tool, widths), so
  a repeated event lands once; views on with no view opens the New tab
  page in the same event, and the last view leaving turns File Views off
- a reveal turns Tools on with the Explorer and leaves File Views alone
- workspace-views.json stays schema 2 and reads a stored panel once:
  open or expanded as File Views on, closed as off, widths at defaults;
  a one-time diagnostic counts the entries read that way
- panel_covers and in_place are removed with their only reader
The toolbar spans the whole body and carries Open server, File Views and
Tools as icons with tooltips and chord keycaps; under it the three
columns are docked side by side and none floats over another.

- columnFrame decides what a body shows from the column minimums
  (480/360/260): every column at 1100px and up, one beside Agent Views
  down to 840px with Tools giving way first, one column below that
- the narrow arrangement is page state set where every event passes,
  so a called column takes the slot and a narrow body stores nothing
- File Views and Tools toggle by result value; below 840px the icon of
  the column filling the slot only gives it back to Agent Views
- dividers drag a guide and land once; the one between File Views and
  Tools trades their widths, so the agents keep theirs
- the side panel, its overlay tools, Expand, Pin, the covers report and
  in_place are gone; the two shortcut ids keep their saved bindings
- column minimums and File Views' default width are tokens
…iews from any caller

The web and desktop specs address Agent Views, File Views and Tools by
their column selectors instead of the side panel, its Expand, Pin and
Tools overlay. Specs that needed the expanded panel's room widen File
Views by its divider or turn Tools off, and the web suite's default
viewport is the wide step so a file open does not hide Tools.

A File Views call that does not start in the page, such as a CLI open
with --reveal, now shows File Views in a body too narrow for every
column: the core counts the area intents that call File Views and the
page treats a rise as a call. Nothing about the narrow body is stored.
UI_BEHAVIOR replaces the side panel section with the three columns, the
toolbar icons and their chords, the dividers and the narrow-window
steps, and states the one-time read of the stored panel keys.
ARCHITECTURE owns the column state, the area intents and the
views_called count, the web's column frame and slots, and the docked
resize cost that replaces issue 170's floating panel. BROWSER_DISPLAYS
drops the Tools overlay and the side panel's edge.
…their dividers

Review fixes on the column change:
- The core numbers each File Views call and keeps each Workspace's last
  number; the page reads them on every snapshot, whether or not the
  Workspace screen is drawn, so a call into one Workspace never moves
  another's columns, a reveal that brings a Workspace in front still
  shows File Views, and the page's own open is not applied twice.
- The width steps include the dividers, so Agent Views keeps its 480px
  minimum just above each step.
- The toolbar tooltips show the chords as bound.
- File Views turned on with no view opens the New tab page before
  anything else changes, so a refusal leaves the entry as it was, and a
  load turns File Views off after the layout repair rather than before.
- The s6 column toggles count exactly one resize per pane on screen.
…ts own checkout

Follow-up review fixes:
- A call is the front Workspace's number past the call count the page
  read last, so an old call never moves a Workspace chosen later and a
  core that started again is read from its new count.
- An intent that numbers a call announces the snapshot even when the
  view it opens was already shown.
- A reveal of a path is numbered on its own checkout's Workspace once it
  settles there, never on the Workspace that was in front.
A reveal whose read is refused as it lands, such as at the display cap,
no longer numbers a File Views call, so a narrow body does not switch
to File Views for a refused reveal.
macOS trashes into the .Trash of the account's home from the password
database, whatever HOME says, so the trash test found nothing when a
test runner set its own HOME. The test now reads the account home the
same way; the trash code itself is unchanged.
Main's per-system chords reach the column specs and toolbar labels, and
its Ctrl+Tab cycle test reads File Views in place of the side panel.
At 1440 the body is 1100px, under the wide step once the dividers count, so
opening the first file called File Views in the Explorer's place and the
second file could not be opened from it.
A terminal link sends reveal_path, and its settling turned Tools on with the
Explorer for every path, so opening a linked file docked a second column and
narrowed the agent terminal twice. PRD B4 turns File Views on for that open
and B5 keeps Tools for the Explorer's own reveal; a linked folder, which no
tab can show, still turns Tools on with the Explorer.
On a CI screen the close-policy window is held to about 1024 wide, a narrow
body where closing the last view shows Agent Views, so the shell is zoomed
out to reach the wide step and the spec asserts it. The link specs print
lines meant never to wrap, but the first link that opens a file docks File
Views and narrows the pane, rewrapping the rows; they now turn File Views on
before printing, zoomed out so the pane stays wide, and check that a linked
file leaves Tools off.
A linked folder opens nothing in File Views, yet it turned File Views on and
numbered a File Views call, docking two columns and resizing the agent
terminal twice. It now turns Tools on with the Explorer, leaves File Views as
it was, and calls Tools in a narrow body so the folder is on screen.
The pane narrows when File Views turns on and again when a linked folder
turns Tools on; the spec now waits for the narrower width to hold before it
reads printed rows, rather than accepting two reads of the old width.
@yansfil

yansfil commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Current finalization status: PR361 is fully pushed at 501829905e8dc6c8c0d335a1504d7db9d51118f9.
The clean writer worktree, tracking ref, git ls-remote, and public PR head match, with zero local-only commits.
The earlier 27015461 push gap is closed.
This head includes the existing worktree-deletion fixture correction and design-review cancellation cleanup changes.

B35 native-versus-Pen visual review is clear.
The 46 native captures were produced at 1d4f24f7e2df16ce15e8a5fa1d3d65faa83ed3b6; subsequent changes affect test fixtures, design-review process cleanup, and its guide, while product UI source, Pen boards, and tokens remain unchanged.
Comparison with 31 Pen/library references covers Dark/Light toolbar grouping, tooltips, focus and badges, divider rest/hover/focus/drag, Korean long labels and full paths, 1116/1100 and 848/847 transitions, called panels, Tools-only, and zero Views.
The reviewed-image manifest SHA256 is c6f617367c75145fe3a1d7674ad7932667896b5207961401160cda23802e016f.
This closes scoped B35 visual review only.

Current-head Design contract and verify remain queued/running.
The following failures at the preceding 7495cdf1 head remain recorded until unchanged gates verify the current candidate:

  • Design contract: cancellation test at scripts/tests/design-review.test.mjs:260/280 still found the fake export process after review exit; the expected ESRCH exception was missing.
  • Linux1/6: agent-tab-groups.spec.ts:237/252 could not find externally created w1:t3 in the tab bar within the original 5-second assertion.
  • Linux6/6: tab-strip-fit.spec.ts:61/82 expected 16 tabs and received 15 within the original 5-second assertion.
  • The full116 run ended at 7495cdf1: 115 passed / 1 failed in 24.4 minutes, source stable and owned process group cleaned up.
    Its failure was fixture setup in worktree-delete.spec.ts:34/50: inherited Git SSH signing could not communicate with the signing agent before the product flow.
    The fixture correction is now pushed, but its successful verification is not inferred from the commit.

Remaining acceptance: current-main required CI, whole35 verification, quiet performance pair, and final independent exact-head review.
Main was verified at 31123442224037662d1b0f6f26e21730fbfa184e; subsequent integration must use the latest main.
Next action: the existing writer finishes current-scope diagnosis and unchanged applicable gates, with accurate results and ordinary pushes of any coherent fixes.
The integration owner reviews the final exact head; the parent merges when current-main required CI is green and independent review is clear.
#349/#350 implementation remains outside this finalization run.
No whole-feature completion or merge readiness is claimed.

yansfil added a commit that referenced this pull request Oct 4, 2026
Related: #233, #361, #362, #359.

## Summary

- Check deletion before pane closure; name the locked worktree, literal
Git reason and manual unlock action.
- Discard names every measured ignored repository; an unavailable scan
blocks deletion with a recovery action.
- Changed lock, scan or repository facts retire Discard consent,
including an A-to-B-to-A return.
- Notify existing renderer connections after accepting refreshed facts
and releasing the runtime lock.

![Locked worktree names its Git reason and unlock
action](https://github.com/user-attachments/assets/5e25495d-49d5-4597-8828-10689157f2e2)

Isolated capture at `790c7fdd`; later `cb546e43` dialog captures were
inspected locally.

## Review

- **판단해 주세요**: Review the lock/scan recovery copy and repository-name
legibility in the existing dialog.
- **조심해서 볼 파일**: `hide-host/src/worktrees.rs` - bounded enumeration and
final guarded removal.
- **조심해서 볼 파일**: `herdr-core/src/runtime/projects.rs` - preflight
precedes pane closure, outside Runtime.
- **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs` -
notifications after accepted facts or loading completion.
- **조심해서 볼 파일**: `web/src/WorkspaceDialogs.tsx` - changed facts
permanently retire earlier Discard consent.
- **비용 검토**: Each linked worktree has its own
2M-step/30-second/1,024-name cap; project cost scales with their count.

## Evidence

- **확인한 것**: Prior `cb546e43` local checks, CI, independent review and
four isolated browser deletion flows passed.
- **확인한 것**: Current-main `cd0cde23` preservation review is clear;
original fixes and prior closed findings are retained.
- **확인하지 못한 것**: Current `cd0cde23` verify is pending; design contract
and exact-candidate CLI build passed.
- **확인하지 못한 것**: Aside/u0 reconnected, but its first current QA failed
at screenshot routing; full acceptance is pending.
- **확인하지 못한 것**: Next: correct capture routing and finish unchanged UI
assertions and CI; packaged native QA is unrun.
- **확인하지 못한 것**: Original `790c7fdd` caller test passed unexpectedly;
automatic GitHub publication can mask omission.
- **확인하지 못한 것**: An earlier full Rust run had two unrelated install-kit
watcher failures; original records are retained.
- **확인하지 못한 것**: A change after preflight can still fail the final
removal guard; Git and pane closure are not atomic.

<details><summary>추가 증거</summary>

At `cb546e43`, Rust fmt/clippy, CLI build, web/desktop typecheck, lint,
tests and builds passed.
Web 868 tests, desktop 94 tests with 3 platform skips, coordination 48
unit and 35 E2E tests passed.
Four isolated browser deletion flows passed, including same-renderer
lock refresh and A-to-B-to-A consent reset.
This caller coverage is separate from required Aside acceptance.
Workerless observer tests passed 3/3; omitting only the notifier failed
both positive cases while the negative case passed.
Restoring the original notification passed 3/3; the formatting-only
final source also passed 3/3.
At `790c7fdd`, host worktree integration 9/9 and core worktree behavior
95/95 passed.
The same-socket E2E provides caller coverage; the observer mutation
proves the notification boundary.

Prior
[verify](https://github.com/modakbul-gongbang/hide/actions/runs/37164422339)
and [design
contract](https://github.com/modakbul-gongbang/hide/actions/runs/37164422232)
passed at `cb546e43`, including Linux/macOS web E2E, desktop E2E and
Windows checks.
Current-main `cd0cde23` merges `cab8625f`; its only incoming delta from
`b8b2c1f8` is the already-merged daemon test fixture.
All 27 issue-file blobs and strict protocol 16 are unchanged,
independently reviewed.
A fresh canonical CLI build passed in 92.12595 seconds; its exact
candidate hided and all 44 runtime/web artifact hashes are pinned for UI
QA.
Current
[verify](https://github.com/modakbul-gongbang/hide/actions/runs/37173380167)
is pending; [design
contract](https://github.com/modakbul-gongbang/hide/actions/runs/37173380086)
passed.
The superseded `b8b2c1f8` verify run was cancelled after the ordinary
source-preserving main merge; its partial results are retained.
Independent exact-head guide review and actual remote PR cost-wording
review close the P3 finding; prior runtime/integration review remains
clear.
No broad local Rust rerun or web rebuild was performed; the sole web
delta is test-only diagnostics and production build inputs are
unchanged.

The implementation reuses the existing off-lock worktree reader and
single removal slot.
Each linked worktree in an accepted project read receives its own
ignored-repository scan, capped at 2,000,000 steps, 30 seconds and 1,024
names.
Total scan cost scales with the linked-worktree count, with no shared
project-wide step, time or name cap.
An unavailable or capped scan refuses deletion.
Accepted changed facts or loading completion publish one coalesced
notification after releasing Runtime; unchanged and stale answers stay
silent.
No new permanent timer or input-path I/O is added.
Existing project counts, aggregate answer bytes and coordinator mailbox
have no new fixed cap; a generic in-flight read may finish after its
driver ends.

Earlier unavailable Aside observations remain historical NOT_RUN
records.
Local Aside/u0 is now reachable; the first current attempt stopped when
the screenshot path escaped its sandbox, despite a zero CLI exit.
The owned tab and all seven observed private process identities were
released; the original failure log is retained.
Corrected capture transport requires explicit UI PASS, tab RELEASE and
five actual PNG captures; no assertions or deadlines change.
Matching helper/core protocol 16 is preserved; later shared protocol
changes require their owning integration review.
Original failures and causal mutation evidence remain retained locally.

</details>

## Breaking change

Host helper protocol 16 requires matching client/helper updates.
An older helper refuses deletion before pane closure.
@yansfil

yansfil commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

ddee003: Windows 초기화 race 수정 후 필수 verify 녹색; 추가 native·CPU/provider·mini·B34/Pen/quiet pair·전체 계약 재검증은 미실행.

# Conflicts:
#	web/e2e/worktree-delete.spec.ts
@yansfil
yansfil merged commit d1d9c1d into main Oct 4, 2026
21 checks passed
@yansfil
yansfil deleted the prd/three-column-panel branch October 4, 2026 05:10
yansfil added a commit that referenced this pull request Oct 4, 2026
Related: #329, #361, #386, #387
Closes #322

## Summary

- File View도 Agent와 같은 연속 축소 계산과 탭 슬롯을 사용합니다.
- 선택 탭이 제목과 닫기를 가장 오래 유지하며, 최소 마크 폭까지 모자랄 때만 스크롤합니다.
- 기본은 기존 파일 타입 아이콘이며, 전체 이름과 저장 상태는 툴팁·접근성 이름에 남습니다.
- 새 문구는 네 언어에 추가했고 `docs/UI_BEHAVIOR.md`를 갱신했습니다.

![같은 폭에서 main과 변경 화면
비교](https://github.com/user-attachments/assets/87dcc0e7-940e-4861-bedd-69565a884caa)
같은 12개 파일과 영역 폭입니다. 변경 후에는 선택 제목을 남기면서 나머지 파일도 스트립 안에 들어옵니다.

## Review

- **질문**: 최소 상태는 A 파일 타입, B 확장자, C 이름 앞글자 중 무엇을 쓸까요? 기존 패턴인 A를 구현했습니다.
- B/C는 같은 실행 화면에서 최소 상태의 마크만 바꾼 제안입니다. `collapsedDisplayMark` 한 곳에서 교체할
수 있습니다.

![최소 밀도 후보 세
가지](https://github.com/user-attachments/assets/324c3c99-2142-4610-9186-ebd2549c115c)

- **조심해서 볼 파일**: `AreaTree.tsx`의 크기 관찰을 View에도 적용합니다. 공유 계산과 Agent 동작은
유지합니다.
- **비용 검토**: 보이는 View 영역당 ResizeObserver 하나를 추가합니다. 콜백은 경계 두 번 읽기와 CSS 폭
두 번 쓰기입니다.
- 밀도가 바뀔 때만 렌더하며 core 이벤트·PTY 리사이즈를 보내지 않습니다. 최대 6개 영역이고 언마운트 때 해제합니다.

## Evidence

- 수정 전 실제 e2e에서 File 탭이 104px에 멈추는 실패를 확인했습니다. 수정 후 독립 폭 계산과 실제 DOM이
일치합니다.
- `verify-web.sh` 전체 통과: web 942개, desktop 99개 단위 테스트와 타입·lint·빌드,
hcoord 검사 포함.
- 관련 e2e 5개 통과: Agent 연속 축소, File 12탭의 밀도·선택·스크롤·닫기, 미리보기, 좁은 화면, 컬럼 토글.
- 사설 Herdr와 격리된 Electron의 정확한 창 캡처로 축소·미저장 마크를 확인했고, 후보는 두 테마와 한·중·일
이름으로 비교했습니다.
- 디자인 계약, harness 비공개 경계, 공개 소스의 워크스테이션 식별 정보 검사가 통과했습니다.
- **확인하지 못한 것**: 아이콘 최종 선택은 사람의 판단이 남아 있습니다. Windows/Linux 네이티브 UI와 전체
e2e는 실행하지 않았습니다.
- 기존 desktop 단위 테스트의 3개 skip은 그대로이며 이번 변경의 e2e에는 skip·재시도·시간 제한 변경이
없습니다.

<details><summary>추가 증거</summary>

밝은 테마에서도 같은 세 후보를 비교했습니다.
![밝은 테마
후보](https://github.com/user-attachments/assets/de4033b5-cc99-4d15-8bdd-84c4db451633)

</details>
yansfil added a commit that referenced this pull request Oct 4, 2026
## Summary

Every PR ran Rust, the unit suites on three OSes and the full E2E, even
a docs-only PR.
The median time for the required checks to finish was 32.45 min (Orca
16.22, Paseo 20.65).
Now a `plan` job reads the changed paths (`HEAD^1..HEAD` of the PR merge
commit) and plans only the lanes the change needs.
The same plan sets each job's `if:` and is what `verify` checks the
results against.

- `verify` passes only when every **planned** lane is `success` and
every **unplanned** lane is `skipped`. A planned lane that was skipped,
failed or cancelled fails `verify`, and so does a `needs` entry the plan
doesn't know or a failed plan.
- The Windows browser `@platform` smoke moves out of `windows check`
into its own `windows e2e` lane, which calls `web-e2e.yml` the same way
nightly does. Compile, unit tests and the OS contract stay in `windows
check`.
- `checks` is split into `policy` (on every plan), `web checks`,
`desktop checks` and `hcoord`.
- A main push, a comparison that fails (base missing, not a merge
commit, diff parse failure, `cargo metadata` failure) and any
unclassified path all run **every** lane.
- Main pushes no longer cancel each other (`cancel-in-progress` is now
PR-only). `design-contract.yml` also cancels only the same PR's previous
run.
- The rules live in one place, `scripts/ci-plan.py`; the table in
`docs/TESTING.md`, "Which lanes a pull request runs", explains them.

## Review

- **판단해 주세요**: whether it is acceptable that **main's full run is the
safety net** for a lane wrongly left out. A wrongly skipped lane
surfaces as a failure on main after the merge, not on the PR.
- **판단해 주세요**: whether to keep the Windows smoke now skipping `@flaky`
tests, as macOS already did. No `@platform` test is tagged `@flaky`
today, so the behavior is the same for now.
- **판단해 주세요**: web code shared with the desktop host (`SHARED_WEB`) also
runs the desktop lanes and the macOS/Windows `@platform` lanes. That is
broader than the brief's "desktop 연결까지"; I chose it because terminal,
input and shortcut changes are Windows-impacting.
- **조심해서 볼 파일**: `scripts/ci-plan.py` `READERS` and `SHARED_WEB`. These
two hand-kept lists are where a lane can be dropped wrongly (the failure
path). Review found five omissions from tests reading files across
folders and they are fixed (below).
- **조심해서 볼 파일**: the `verify` job in `.github/workflows/pr.yml` and
`aggregate()`. This is the merge gate itself.
- **질문**: `site/`, `tools/`, `spikes/`, `.github/*.md` and `agents/prd`
currently fall under "unknown path → everything". Should a follow-up
narrow them?

## Evidence

**Plan replay over the last 20 merged PRs.** Each row runs the
classifier on the merge commit's `^1..` diff:

| PR | 경로 수 | 계획 | 생략되는 lane | Rust crate |
| --- | ---: | --- | --- | --- |
| #389 | 7 | 전체 (`scripts/web-shell-measure/run.sh`) | - | 전체 |
| #388 | 6 | 부분 | desktop-checks, hcoord, os-contract, windows-check,
windows-e2e, macOS-e2e, desktop-e2e | herdr-core |
| #385 | 125 | 전체 (`.github/pull_request_template.md`) | - | 전체 |
| #387 | 70 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #386 | 61 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #368 | 2 | 전체 (`.github/workflows/pr.yml`) | - | 전체 |
| #372 | 23 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #382 | 3 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-host, hided |
| #383 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #384 | 8 | 부분 | web-checks, desktop-checks, hcoord, os-contract,
windows-check, windows-e2e, web-e2e, macOS-e2e, desktop-e2e | herdr-core
|
| #380 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hided
|
| #381 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #378 | 58 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #377 | 11 | 부분 | hcoord | herdr-core, hided |
| #361 | 91 | 전체 (`agents/prd/three-column-panel/prd.md`) | - | 전체 |
| #376 | 7 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-ai, hide-herdr-client, hide-host, hide-kit,
hide-memory, hide-platform, hide-session, hided |
| #367 | 27 | 부분 | hcoord | herdr-core, hide-host, hided |
| #375 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-host, hide-kit, hide-memory, hided |
| #366 | 8 | 전체 (`.github/workflows/release.yml`) | - | 전체 |
| #362 | 153 | 전체 (`agents/prd/overview-request-view/prd.md`) | - | 전체 |

- **줄어드는 lane**:
- 11 of 20 PRs would run a partial plan; 9 run everything because they
touch `.github/`, `contracts/`, `scripts/` or `agents/`.
- A docs-only PR (#384) runs no E2E, Windows or macOS lane. It still
runs `rust -p herdr-core`, because a herdr-core test reads the root
`AGENTS.md`.
- A web display change (#388) runs no Windows, macOS, desktop or
OS-contract lane.
- A Rust crate change tests only that crate and its reverse
dependencies, from `cargo metadata`. For example #380 tests `herdr-core`
and `hided` only.
- **확인한 것**:
  - `scripts/tests/test_ci_plan.py` passes 19 cases. They cover:
    - Docs-only, which excludes Rust and E2E.
    - A pure web display change, which excludes the Windows smoke.
    - `hide-platform`, which includes Windows and the OS contract.
- Shared web, a `@platform` spec, `desktop/src/main` and leaf-crate
reverse dependencies.
    - Every `READERS` entry.
- Unknown paths, lockfiles and workflows, a type change, an empty diff,
a missing base, a non-merge HEAD and a missing crate graph, which all
run everything.
- The aggregate rejecting a skipped, failed or cancelled planned lane,
an unplanned lane that ran, a missing or extra `needs` entry, a failed
plan and an empty plan.
- The full `python3 -m unittest discover -s scripts/tests` suite passes
(108). That includes the check that every gate a workflow runs is a
tracked script.
- actionlint passes on every workflow. `check-herdr-pin-single-source`,
`check-hide-design-enforcement`, `check-no-workstation-identity`,
`check-harness-ignore-anchor` and `verify-cargo.sh fmt-check` all pass.
- Running `plan` on #388 produced the expected `GITHUB_OUTPUT` (`lanes`,
`full`, `rust-packages`) and the job-summary table.
- Running `aggregate` with a fake `needs` passed when the results
matched the plan and failed when a planned lane was skipped.
- **리뷰 반영**: a code review and a fidelity review against the brief found
these, now fixed:
- Tests read files across folders, so these changes now plan the lanes
that read them: the root `AGENTS.md` (herdr-core test), `web/src` and
`hided/src` (herdr-core structure tests), `wirePath.ts` (imported by web
e2e) and `design/tokens.json` (read by web tests).
  - Every crate change now runs `windows check`.
  - Main pushes no longer cancel each other.
  - `docs/PERFORMANCE_TESTING.md` no longer describes the old lanes.
- **CI ([run
37214808511](https://github.com/modakbul-gongbang/hide/actions/runs/37214808511))**:
- The plan was full (the change touches `.github/` and `scripts/`), and
every lane ran, including the separate `windows e2e`. All passed.
- The first attempt failed in Linux web e2e shard 2/6 on
`home.spec.ts:82` (the location bar read `Home/hde-…` instead of
`Home/~/hide`). This PR touches no web or test code. `verify` reported
exactly `web-e2e: planned, expected success, got failure`.
  - One rerun of the failed jobs passed, and `verify` is green.
- The `home.spec` failure is a flaky-test candidate; it belongs to the
main-green work, not this PR.
- **확인하지 못한 것**:
- Partial plans have never run on Actions. A docs-only or web-only PR
has not been tried; the first one after the merge will show it.
- The cold-cache time of the `windows e2e` lane is unmeasured. It uses
the same path as the nightly Windows lane.
- Main runs now queue instead of cancelling, but GitHub keeps only one
pending run per group. If three merges land in a row, the middle merge's
full run can be dropped.
- **안전망과 위험**: a lane that should have run but was skipped is the risk.
Main's full run catches it after the merge; the fix is then a rule in
`scripts/ci-plan.py` plus a test case.

Does not include: a failure ledger or history, a quarantine registry,
cache changes, a `max-parallel` experiment, or the `package.yml` `paths`
trigger (all out of scope).
If this and the main-green PR overlap in `pr.yml`, whichever merges
later rebases.
yansfil added a commit that referenced this pull request Oct 30, 2026
…d type Grok's lines on Windows (#1858)

Closes with-hide/hide-private#360
Closes with-hide/hide-private#361

## Summary

v1.0.4 후보를 떨어뜨린 Windows 가짜 모델 journey 실패 두 건의 원인을 고칩니다.

- **#360**: Herdr는 구독한 이벤트 종류마다 따로 읽어 보내서, 새 워크스페이스의 `tab_created`가
`workspace_created`보다 먼저 올 수 있습니다. 코어는 이를 잘못된 이벤트로 보고 세션을 잠깐 내렸고, 그 사이
spawn의 호출자 확인이 `caller_context_changed`로 거절됐습니다. 이제 이미 pane·layout에 하던
것처럼 탭도 워크스페이스가 올 때까지 잡아 두었다가 적용합니다.
- **#361**: 원인은 지우기 키가 아니라 붙여넣기였습니다. grok 세션에는 12줄 중 01~04줄이 한 프롬프트로
남았습니다. Windows의 Grok은 붙여넣기 이벤트를 받지 못하고, 키가 10 ms 안에 이어 올 때만 붙여넣기로
묶습니다(grok-build `coalesce_live_keys`). 부하로 틈이 생기면 줄바꿈이 Enter가 됩니다. Hide가
막을 수 없는 Grok 쪽 한계라서 INSTALL.md에 Windows 칸으로 적고, journey는 Windows의 Grok에만
같은 12줄을 Grok의 줄바꿈 키(Alt+Enter)로 입력합니다(단계 이름 `drafted`).

## Review

- **판단해 주세요**: #361은 운영자가 Windows에서 Grok에 여러 줄을 붙여넣을 때도 생길 수 있습니다.
Hide에서 고치지 않고 INSTALL.md의 지원 공백으로 둔 판단이 맞는지 봐 주세요.
- **조심해서 볼 파일**:
- `herdr-core/src/session_sync/replica.rs` - Herdr contract와 세션 동기화의 실패
경로. 부모가 오지 않은 탭을 거절 대신 보류합니다. 보류 상한 64 -> 96(32탭 버스트의 탭·pane·layout).
- `scripts/agent_journey/composer.py` - Windows의 Grok만 붙여넣기 대신 Alt+Enter
줄로 입력합니다. 다른 에이전트·시스템은 그대로입니다.
- **비용 검토**: 이벤트당 추가 일은 보류 목록 재검사뿐이고, 목록은 상한(96)을 넘으면 지금처럼 divergence로
다시 읽습니다.

## Evidence

- **확인한 것**:
- 원인: 실패 run 40986640426의 hided 로그 `event.rejected ... tab_created ...
missing workspace` 직후 재연결, 그리고 Herdr 0.9.5 `src/api/server.rs`가 구독마다 따로
drain하는 코드.
- 원인: run 40988292324의 grok 세션 기록(01~04줄만 제출), grok-build
`event_loop.rs`의 10 ms 묶음 로직.
-
`a_tab_announced_before_its_workspace_applies_when_the_workspace_arrives`:
Herdr가 보낸 순서(저장소 w2, 탭 둘, pane 둘, layout 둘, 그 뒤 worktree w3)를
Strict·Reconcile 두 모드로 재생합니다. 고치기 전 코드는 Strict에서 거절, Reconcile에서 탭을 버려서
실패합니다.
- composer 단위 테스트: Windows Grok은 `drafted`(Alt+Enter 11개, 맨 CR 없음),
Windows Codex와 macOS Grok은 기존 붙여넣기. `TIMED_PASTE`를 비우면 실패하는 것을 확인.
journey 스크립트 테스트 161개 통과.
- Windows 가짜 모델 journey를 이 브랜치(59de5e0)에서 4번 실행해 4번 모두 통과: run
40992132752, 40992136859, 40992139711, 40992142814. 네 번 모두 grok
`drafted` 단계 통과(새 프롬프트 0), hided 로그에 `event.rejected` 없음.
- PR verify(61f8326) 통과: rust workspace 4142개 통과, 새 replica 테스트 포함,
재시도 없음.
- #361 원인 댓글:
with-hide/hide-private#361 (comment)
- **확인하지 못한 것**:
  - 이 Mac은 디스크가 부족해 Rust 테스트를 로컬에서 돌리지 않았습니다. CI의 Rust 레인이 증명합니다.
- 실제 운영자가 Windows에서 Grok에 붙여넣는 경우는 고치지 않았습니다(Grok이 Windows 붙여넣기를 한 이벤트로
읽어야 닫힘).
- 4번의 Windows 실행은 탭이 워크스페이스보다 먼저 온 순간을 로그로 보여주지 않습니다(보류에는 진단 줄이 없음).
#360의 증명은 replica 회귀 테스트입니다.
- grok-build는 공개 이슈·토론을 막아 두어 상류 이슈를 열지 못했습니다. INSTALL.md 칸에 그렇게 적었습니다.
- 포커스 이벤트(`workspace_focused`, `tab_focused`)가 아직 알려지지 않은 워크스페이스보다 먼저 오는
같은 계열은 이번에 바꾸지 않았습니다. 기존 테스트가 이를 divergence로 정해 두었습니다.

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

</details>
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