Skip to content

PRD: 프로젝트별 Overview 제거와 프로젝트 행의 마지막 체크아웃 열기 - #351

Merged
yansfil merged 1 commit into
mainfrom
prd/overview-remove
Oct 3, 2026
Merged

yansfil merged 1 commit into
mainfrom
prd/overview-remove

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Related: #350, agents/prd/overview-remove/prd.md (함께 들어가야 하는 작업: #349)

Summary

이슈 #350을 구현하기 전에 운영자가 승인할 PRD만 추가합니다. 코드는 바꾸지 않습니다.
프로젝트 행을 누르면 Overview 대신 그 프로젝트에서 마지막으로 포커스한 체크아웃이 열리고, 프로젝트 아래 Overview 자식 행과 프로젝트 주소로 여는 진입점을 없앱니다.
프로젝트 단위 조감은 #349의 Overview에서 범위를 이 프로젝트로 전환해서 봅니다.
Decisions 12개, Behaviors 13개입니다. 화면은 아직 바뀌지 않아 이미지는 없습니다.

Review

  • 판단해 주세요 (돌아갈 체크아웃): core가 이미 저장하는 최근 체크아웃 목록에서 이 프로젝트의 첫 항목을 엽니다. 없으면 home 글리프 체크아웃, 그다음 행 순서의 첫 체크아웃입니다. 목록이 10개까지라 오래 안 본 프로젝트는 기본 체크아웃으로 열립니다(D-02).
  • 판단해 주세요 (가정 두 개): 열 체크아웃이 없는 프로젝트는 Overview를 그 범위로 열고(D-05), 툴바의 프로젝트 이름은 링크가 아닌 글자로 둡니다(D-07). 둘 다 정한 적 없는 가정입니다.
  • 판단해 주세요 (⌘K): 프로젝트 결과는 체크아웃을 열고, 이슈와 PR 결과는 해당 프로젝트 범위의 Overview를 유지합니다. 보드와 패널이 거기에만 있기 때문입니다(D-06).
  • 조심해서 볼 곳: 클릭 하나가 이벤트 하나여야 해서 체크아웃 열기 이벤트가 프로젝트 접기 의도를 함께 싣습니다(D-04, B5). 이 PRD가 대체하는 문장은 sidebar-row-click-overview-row의 D-03과 B5-B7입니다.
  • 질문: Overview를 프로젝트 소속이 아닌 하나의 모달/페이지로 열고 사이드바 행과 단축키로 들어간다 #349 PRD가 이 프로젝트 범위를 두는 것이 확정돼야 D-05, D-06이 성립합니다. 두 PRD를 같은 순서로 승인할까요?

Evidence

  • 확인한 것: sasu prd readiness가 blocking gap 0개로 통과했습니다(behaviorCount 13, decisionCount 12).
  • 확인한 것: web/src/{sidebar,SearchPalette,WorkspaceScreen,keyboard,actions,recent,projects}.ts(x), herdr-core/src/model.rs, runtime/recent_checkouts.rs, docs/UI_BEHAVIOR.md의 Overview 진입점과 최근 체크아웃 목록을 읽고 사실 진술을 맞췄습니다.
  • 확인하지 못한 것: 인터뷰 qa-log가 없어 sasu spec gate는 실행하지 않았습니다. 출처는 이슈 #350과 대화입니다.
  • 확인하지 못한 것: Pen 보드와 화면 캡처는 없고, 코드 변경이 없어 web, desktop, cargo lane은 실행하지 않았습니다.

@yansfil
yansfil merged commit 8472327 into main Oct 3, 2026
21 checks passed
@yansfil
yansfil deleted the prd/overview-remove branch October 3, 2026 14:22
yansfil added a commit that referenced this pull request Oct 30, 2026
…four hided flakes (#1860)

Closes with-hide/hide-private#351
Closes with-hide/hide-private#321
Closes with-hide/hide-private#347
Closes with-hide/hide-private#330
Related: with-hide/hide-private#339 (diagnostics only; the issue stays
open)

## Summary

Five flaky hided tests, one cause each:

- #351 (`link_mux` connection end): on macOS a `recv` blocked on a local
socket sometimes misses its peer's shutdown, and after that misses its
own end's shutdown too. Then a core-side mux never saw its node end and
kept its streams. Every macOS `LocalStream` read now waits in `poll`
first, which hears both. The test's own `SO_RCVTIMEO` (EINVAL on macOS
after the end) is replaced by a reading thread with a hang guard.
- #321 (`device_bootstrap`): five tests each copied and stripped the 140
MB debug `hided` at once, past the fixture's 10 s command bound. A
shared helper now strips and signs each build version once under a lock,
and `remote_delivery` and `core_move` use it too.
- #347: its one flaky run was the CI merge commit 15f05b4 of a #1846
head that was later rewritten, where 43 of 44 `core_move` tests failed
together. It has passed first try on main since. The cause of that run
is not proven; the issue is closed on the later main passes (evidence in
the issue comment).
- #330: the test was deleted with the SFTP upload in 14b6b68.
- #339 (WSL, Windows only): the cause is not found. The journey keeps
its steps and the Hide AI progress in a bounded in-memory record (256
lines) and prints it only when it fails. At its own 105 s guard, before
the lane's 120 s one, it prints the record and the distribution's
processes, read by an owned `ps` bounded to 10 s, and ends the test. A
passing run prints nothing.

## Review

- **판단해 주세요**: a macOS-only `poll` before every local-socket read,
against the kernel's lost wakeup, instead of changing each caller that
waits for a peer's end.
- **조심해서 볼 파일**: `hide-platform/src/ipc.rs` - high-frequency path: every
`LocalStream` read on macOS (Herdr socket, mux, pane service).
- **조심해서 볼 파일**: `hided/tests/it/support/shipped.rs` - shared state
across test processes: lock, half-made copy cleanup, eviction of an
older build.
- **질문**: `link_mux`'s end tells the link's user by shutting down its
end of an in-process pair, which a Windows peer does not hear until the
handle closes, and no `link_mux` test runs on Windows. Should that
become its own issue?
- **비용 검토**: one `poll(2)` per macOS read, with no new thread, timer,
queue or notification. Linux and Windows read paths are unchanged
(`cfg!(target_vendor = "apple")`). The mux frame reader sits behind a
`BufReader`, so a frame is not one read per field.

## Evidence

- **확인한 것**: #351 reproduced before the fix:
`the_connection_ending_frees_every_stream` failed in 1 of 13, 1 of 81
and 1 of 141 stress iterations (both signatures). A stack sample showed
the core's demux thread asleep in `recvfrom` after its peer ended.
- **확인한 것**: the kernel behaviour, in C at load ~30 on macOS 15.1:
`recv` after the peer's `shutdown(SHUT_WR)` hung for over 60 s, about
once in 4,500 rounds. A `poll` wait hung 0 times in 48,000 rounds, and
`close()` 0 times in 18,000.
- **확인한 것**: the new contract test
`a_shutdown_ends_the_peers_blocked_read_every_time` hung in recvfrom on
its first iteration before the fix. Its rounds now run in an owned
exact-test subprocess bounded to 60 s. With the macOS `poll` removed
again, it failed at stress iteration 12 (round 3,724) in 10 s, with the
subprocess reaped. With the fix: 75 runs × 5,000 rounds passed, and the
`link_mux` tests passed 300 of 300 stress iterations (before the drain's
failure-path change, which only touches a timeout).
- **확인한 것**: `device_bootstrap` passed 6 of 6 twice locally at 8 threads
(macOS, private sshd and pinned Herdr 0.9.5). The store held one
stripped copy, rebuilt once when the build changed.
- **확인한 것**: `hide-platform` + `hided` (lib and `it`) 971 tests and
`herdr-core` + `hide-herdr-client` 3,496 tests passed on macOS with the
change. Clippy `-D warnings` and fmt are clean.
- **확인한 것**: the new contract is Unix only: on the first CI run, `os
contract (windows)` showed that a Windows shutdown never reaches the
peer (`CancelIoEx` ends this end's own I/O; the peer hears the end when
the handle closes).
- **확인하지 못한 것**: #339's cause (no WSL here). `wsl_device.rs` is
Windows-only; a cross-check from macOS could not build its C
dependencies, so the `windows wsl` lane is its first compile.
- **확인한 것 (비용, 미시)**: a C microbenchmark of plain `recv` vs
`poll`+`recv` on one socketpair (macOS 15.1, load 18-48), not a product
build. 64 B messages × 300,000: `recv` 1.14-5.87 µs per read over 5
completed trials, `poll`+`recv` 1.61-6.71 µs over 9. The difference
within a matched pair was 0.3-1 µs; 2 more `recv` trials hung on the
lost wakeup. 16 KiB × 20,000, 6 trials each: 5.7-17.8 µs vs 6.4-16.4 µs,
with the pairs disagreeing in sign (noise).
- **확인하지 못한 것 (비용, 실사용)**: `docs/PERFORMANCE_TESTING.md`'s matched
idle/driven terminal measurement (`scripts/web-shell-measure`,
`MEASURE_SCENARIO=keys`: key echo p50/p95, hided CPU and RSS, base
a891332 vs this head). It was not run: two release builds do not fit
on this Mac's disk now, and its load is 20-60. The microbenchmark does
not prove the product's end-to-end cost.
- **확인하지 못한 것**: `core_move` and `remote_delivery` with the shared
helper (left to the remote mailbox lane).

<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