Skip to content

Make Windows web e2e specs write pane commands and paths the way the product and shell expect - #439

Merged
yansfil merged 6 commits into
mainfrom
ci/windows-e2e-shell-path
Oct 5, 2026
Merged

yansfil merged 6 commits into
mainfrom
ci/windows-e2e-shell-path

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Windows web e2e의 spec 12건이 제품 결함이 아니라 spec과 fixture의 이식 문제로 실패하던 것을 고칩니다.

  • pane 셸: spec이 cmd.exe pane에 POSIX 명령(printf "$?", for/do/done)을 보내던 것을, fixture가 설정한 셸을 읽어 명령을 만드는 helper(runInPane, printLinesCommand, paneShellTabName)로 바꿨습니다. 셸 종류는 process.platform이 아니라 Herdr config의 셸 이름에서 읽습니다.
  • 경로: 제품은 hide-platform path 규약대로 /를 쓰는데 spec이 native \ 경로로 selector와 기대값을 만들었습니다. 이미 s2/s3/s7이 쓰는 toPage로 맞췄습니다. 제품 쪽 규약 위반은 찾지 못했습니다.
  • theme.spec:55는 원인이 달랐습니다(아래 Review).

Review

  • 판단해 주세요: Windows fixture shim이 Enter(CR)를 에코할 때 Unix tty처럼 줄을 끝내도록 바꿨습니다(입력 로그는 그대로). 다른 Windows spec의 화면 기대가 이 에코에 기대고 있지 않은지 봐 주세요.
  • 조심해서 볼 파일: web/e2e/herdr-fixture.ts - 모든 Windows web e2e가 거치는 shim과 새 helper. cmd.exe 상태 기록은 call echo %^errorlevel%이고 상태 파일을 마지막에 써서 완료 신호로 씁니다.
  • 조심해서 볼 파일: web/e2e/s6.spec.ts - Windows에서 daemon을 강제 종료하므로 방금 고른 front View가 workspace-views.json에 저장될 때까지 기다린 뒤 재시작합니다(시간이 아니라 저장 상태를 기다림).
  • 새 @flaky/ignore 없음, retry/timeout/기대값 변경 없음. 기존 agent-tab-groups:35의 @flaky(Flaky e2e: agent-tab-groups split stops a shown pane's output in the area that lost the keyboard #303)는 Linux/macOS 경쟁 조건이라 이 PR이 원인을 고치지 않아 그대로 둡니다.

Evidence

  • 확인한 것: nightly를 이 브랜치에서 2회 dispatch(37248327702, 37250242120). 두 번째 Windows 4 shard에서 대상 12건(theme:55,125, agent-tab-groups:35, agent-tab-names:6, view-bookmarks:51,129, workspace-cli:43, s4:16,104, s6:25, tab-strip-fit:153, view-wrap:21) 전부 통과. 첫 run에서는 workspace-cli(경로)와 s6(저장 전 종료)가 남아 둘째 커밋에서 고쳤습니다.
  • 확인한 것: macOS 로컬에서 대상 spec 전부 통과(retry 0), web typecheck와 lint 통과.
  • 확인하지 못한 것: 두 번째 run의 Linux 1/2/5 shard는 이 글을 쓸 때 진행 중이었습니다. Linux/macOS에서 실패한 것은 이 PR과 무관한 기존 건입니다(sidebar-menus:80, sidebar-pr-start:108, overview-modal:7, mobile:690, macOS pane-focus-ordering:185).
  • 확인하지 못한 것: Windows web e2e에는 이 PR 범위 밖의 실패가 남아 있습니다(EBUSY 정리, /bin/ps 등 unix 전용 fixture, 가짜 gh/provider 가설). 각각 G1c/G1d/G1e 담당입니다.

The product spells an absolute path with / between names on every system
(hide-platform path). Five specs built the row selectors and the History root
from native paths, so on Windows they waited for C:\...\notes.md while the
page drew C:/.../notes.md. They now take the wire spelling from toPage, as
s2, s3 and s7 already do.
The fixture starts cmd.exe in Windows panes and zsh elsewhere, but specs sent
POSIX text (printf, for/do/done, status via $?) to every pane, so on Windows
the status files never appeared and tab names read C:\Windows\system32\cmd.exe.
The fixture now reads the shell family from the shell Herdr was configured
with and offers one helper per need: runInPane for a program with its exit
status, printLinesCommand for output, paneShellTabName for the tab title.

The fixture's agent shim also echoed Enter as a bare CR on Windows, so the next
typed line was drawn over the previous one; it now ends the echoed line the
way a Unix tty does.
…ed front View before a hard restart

workspace-cli compared the CLI's / spelling with a native path. s6 stops the
daemon with a hard kill on Windows, which loses a front View that was only
just chosen; it now waits until workspace-views.json holds it.
…path

# Conflicts:
#	web/e2e/view-bookmarks.spec.ts
@yansfil
yansfil merged commit 3696c73 into main Oct 5, 2026
28 checks passed
@yansfil
yansfil deleted the ci/windows-e2e-shell-path branch October 5, 2026 05:38
yansfil added a commit that referenced this pull request Oct 5, 2026
…ult (#490)

Related: the unclassified-paths table (reviewer decision), #486
(separate branch; both touch `ci-plan.py`'s neighbours, the second to
merge resolves a small conflict in `test_ci_plan.py` and `TESTING.md`)

## Summary

`ci-plan.py` sent every path no rule claimed to every lane, so 42 of the
last 80 merged pull requests (52%) ran all ten.
This names the paths whose readers are known and leaves every other path
on "every lane": `POLICY_ONLY` (no lane reads it: `agents/`, `site/`,
`tools/`, `spikes/`, `.gitignore` files, PR template, workflows `pr.yml`
does not call, `scripts/tests/`, the policy, design, release and
measurement scripts, Markdown below an unclaimed folder) plans `policy`
alone, and `NAMED_LANES` (fixtures, Playwright, eslint and vitest
configs, `web/scripts`, `desktop/scripts`) plans the lanes that read it.
A path that is not named, including any new one, still plans every lane.

## Review

- **판단해 주세요**: `web/e2e` files that are not specs plan `web-checks`,
`web-e2e`, `web-e2e-platform`, `windows-e2e`, `desktop-checks`,
`desktop-e2e`, `windows-check` (desktop suites import them,
`desktop/e2e` unit tests run in `windows-check`); they drop `rust` and
`os-contract` only.
- **판단해 주세요**: `scripts/ci-plan.py` stays on every lane although the
table listed it as `policy`: it decides the plan for every later pull
request, and `policy` runs its tests but not what a wrong rule would
skip.
- **판단해 주세요**: lockfiles, `package.json`, `Cargo.lock`, `contracts/`,
`verify-*.sh`, `ci-flaky-report.py` and the three workflows lanes use
stay full (the table's class where full is right).
- **조심해서 볼 파일**: `scripts/ci-plan.py` (`POLICY_ONLY`, `NAMED_LANES`,
`named_lanes`) and `scripts/tests/test_ci_plan.py` (`NamedPaths`,
including a check that no `POLICY_ONLY` script is named by a lane's
workflow job or the scripts those jobs run).

## Evidence

- **확인한 것**: `scripts/tests` suite passes (27 plan tests; a case per
named path, one that every unnamed and shared path is still full, one
that a named path does not narrow a plan with another reason, and the
reader check).
- **확인한 것**: the changed plan run on the file lists of the last 80
merged pull requests (#355-#483) against main's plan:

| | before | after |
| --- | --- | --- |
| pull requests planning every lane | 42 | 19 |
| pull requests whose plan changed | | 20 |
| lane runs (sum over the 80) | 683 | 585 (-14%) |

| lane | PRs running it before -> after |
| --- | --- |
| policy | 80 -> 80 |
| rust | 76 -> 59 |
| web-checks | 63 -> 51 |
| desktop-checks | 47 -> 39 |
| os-contract | 65 -> 48 |
| windows-check | 65 -> 58 |
| windows-e2e | 71 -> 61 |
| web-e2e | 78 -> 68 |
| web-e2e-platform | 71 -> 61 |
| desktop-e2e | 67 -> 60 |

No pull request gained a lane.

- **확인한 것**: lanes that caught a failure keep it. Of the 300 most recent
`pr.yml` pull-request runs, 73 failed; 72 had a failing lane (the other
failed in `verify` only).
Each run's failing lane was checked against the new plan for that pull
request's file list (the run's own diff where the pull request is still
open, the final file list for merged ones, so earlier pushes can
differ).
The lane stays planned in 68 of 72. The four that would not run it, and
why they are not catches:
- #466 (2 runs): `windows-e2e` failed on `s2.spec.ts:55` and `less`, a
main failure (#475, #424) that the pull request, which touched four
`desktop/e2e` files, did not cause. The new plan runs `desktop-checks`,
`desktop-e2e`, `windows-check`.
- #366: `rust` and `windows-check` failed in `hided` and disk tests
before nextest retries (#463) on a pull request that changed release
scripts and docs only.
- #369: README and SECURITY only; `windows-check` failed before path
selection existed, and the current plan does not run it for those files
either.
The failures that were this pull request's own (#474 desktop-e2e, #436
windows-e2e, #439 web-e2e-platform, #385, #364) keep their lane.
- **확인하지 못한 것**: the narrowing is judged on file lists, not by
re-running CI; a pull request that changes a named file in a way that
needs a lane left out is caught by main's full run, as before.

<details><summary>CI 크기 (D3)</summary>

`ci-plan.py` +77 lines (two tables and `named_lanes`), `test_ci_plan.py`
+97, `TESTING.md` +5; no workflow changed.

</details>
yansfil added a commit that referenced this pull request Oct 23, 2026
…rdr (#1589)

## Summary

랜딩 페이지와 README의 스크린샷이 이미 없어진 도구를 보여주고 있었고, 핵심 가치도 흩어져 있었습니다.
이제 랜딩은 섹션마다 주장 하나와 그림 하나만 두는 짧은 페이지입니다: Hide AI, 멀티에이전트 뷰, Herdr 위에서 돈다,
에이전트 옆에 열리는 것들, 여러 기기, 가격, FAQ.
README도 같은 네 가지 가치(한눈에 보기, Hide AI와 Memory, 브라우저와 파일, 여러 기기) 순서로 읽힙니다.

![page
top](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/e051c3d/d-part-0.png?raw=true)
첫 화면과 Hide AI: 같은 사이드바 줄이 Hide AI 꺼짐/켜짐으로 저절로 바뀌는 스위치, 그 아래 할 일 목록·세션
기록·Memory 카드 세 장.

![page
middle](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/e051c3d/d-part-1.png?raw=true)
멀티에이전트 뷰(Overview 그래프 영상, 리드 pane, Conductor), 새 "Built on Herdr" 섹션(진짜
터미널 위, 옮길 것 없음), 에이전트 옆에 열리는 브라우저와 PR.

![page
bottom](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/e051c3d/d-part-2.png?raw=true)
여러 기기, 무료 플랜 하나와 Software Factory 한 줄, FAQ 4개.

두 번째 손질:
- Hide AI 스위치는 이제 Tasks 목록 전체(Needs You, Unread, Revisit, Working,
Waiting)를 켜고 끕니다. 꺼지면 태스크 이름이 Codex, Antigravity, OpenCode로만 보입니다. 첫 카드는
PR 목록으로 바꿨습니다.
- 예시 이야기의 PR을 태스크마다 한두 개로 줄였습니다. 한 태스크에 PR 표시가 다섯 개씩 붙어 어지러웠기 때문입니다.
- 브라우저 카드에서는 hide가 실제로 그리는 에이전트 커서(라임색 화살표, 클릭 물결, 요소 테두리)가 명령에 맞춰
움직입니다.
- Hide AI를 켜면 Revisit에 '읽고 미뤄 둔 질문'이 하나 더 생기고, Hide AI만 찾아 연결한 PR(#438,
#439)이 태스크에 붙습니다. 끄면 그 질문은 Working으로 돌아가고 두 PR은 사라집니다. status-model.md의
켜짐/꺼짐 표대로입니다.
- Hide AI를 켜면 태스크마다 두 번째 줄(질문이 원하는 것, 끝난 결과, 진행 중인 일)이 붙습니다. 끄면 질문의 원문 첫
줄과 '하위 작업 대기' 줄만 남습니다.
- 브라우저 섹션은 Codex 터미널과 옆 화면을 함께 보여주는 3단계입니다: 스펙 PDF를 열고(hide file open),
페이지를 열고(hide browser open), 커서로 Export CSV를 누릅니다. PDF는 앱의 실제 PDF 뷰어가
그립니다. 옆에 있던 PR 카드는 뺐습니다.
- 기기 지도의 에이전트 옆에 로고를 넣었습니다(Claude Code, Codex, OpenCode).
- 여러 기기 섹션은 설정 화면 대신 기기 지도입니다. 노트북, Linux 서버, 항상 켜진 Mac mini(코어), 휴대폰
사이를 에이전트 편지가 코어를 거쳐 오가고, 노트북이 닫혀도 코어가 계속 일합니다.

![hide ai
switch](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/d9fb592/a-1440-ai-2900.png?raw=true)
Tasks 목록 스위치(켜짐).

![browser
pointer](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/d9fb592/a-1440-agentpage-2600.png?raw=true)
에이전트 커서가 Total을 누르는 순간.

![machine
map](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/d9fb592/a-1440-machines-4200.png?raw=true)
기기 지도: Linux 서버의 Codex가 MacBook의 Claude Code에게 답하는 편지.

## Review

- **판단해 주세요**: 짧아진 구성과 제목 문구(Run ten agents. See only the two that need
you. / Ten logs in. One line out. / Real terminals underneath. Nothing
to migrate.).
- **판단해 주세요**: 지금까지 사이트는 다른 회사 로고를 앱 화면 안에만 두는 원칙이었는데, 기기 지도에 Claude
Code, Codex, OpenCode 로고를 직접 넣었습니다. 앱이 이미 싣는 파일을 그대로 썼고, Antigravity 로고는
Google이 사전 요청을 요구해서 넣지 않았습니다.
- **판단해 주세요**: 기기 지도는 앱 화면이 아니라 페이지가 그린 그림입니다. 설정 화면에는 기기 사이 대화가 보이지 않기
때문입니다. 편지는 모두 코어를 거치게 그려서 delivery.md와 맞췄습니다.
- **판단해 주세요**: Hide AI 스위치는 화면에 보이는 동안 2.6초마다 꺼짐/켜짐을 오가고, 한 번 누르면 멈춥니다.
모션 줄이기 설정에서는 저절로 바뀌지 않습니다.
- **판단해 주세요**: Software Factory는 섹션 대신 가격 아래 한 줄이고, "Join the list"는
[email protected]로 가는 메일 링크입니다.
- **판단해 주세요**: 브라우저 카드의 인보이스 페이지는 갤러리가 넣은 가짜 페이지 그림입니다. 갤러리 탭에서는 데스크톱
호스트가 페이지를 그릴 수 없기 때문입니다.
- **판단해 주세요**: PR 카드, 세션 기록, Conductor 미션은
`web/src/gallery/landingLaneData.ts`의 지어낸 영어 데이터입니다.
- **조심해서 볼 파일**: `site/index.html` - Herdr 섹션과 FAQ 문구를 INSTALL.md에
맞췄습니다(오래된 Herdr면 옮길지 묻고, macOS·Linux에서는 pane 유지).
- **조심해서 볼 파일**: `site/scenes.js`, `site/site.js` - 탭 코드를 지우고 스위치와 FAQ
링크 열기만 남겼습니다.
- **참고**: 커밋 `17ac8cdbb`는 제목과 달리 Memory 장면을 리드 pane 하나로 바꾸는 변경과 안 쓰는 사진
삭제를 담고 있습니다. push 뒤라 고쳐 쓰지 않았습니다.

## Evidence

- **확인한 것**: 랜딩 장면과 그 잘라낸 사진(rows-on/off, tasks-list, 레인 4종, devices)을
다크/라이트 2x로 찍었고, 캡처 과정에서 한글 0건, 페이지 에러 0건이었습니다.
- **확인한 것**: 짧아진 페이지를 1440px와 390px에서 전체 렌더링했고, 가로 넘침 0이었습니다. Team 영상은
1440px 다크와 390px 라이트에서 테마에 맞는 파일로 재생되는 것(4초 시점 재생 중)을 확인했습니다.
- **확인한 것**: `bash scripts/verify-web.sh` exit 0, `node
scripts/check-design-contract.mjs` 통과, `node --test
site/tests/downloads.test.mjs` 통과, landingSceneData 테스트 3개 통과.
- **확인한 것**: `check-no-workstation-identity.sh`,
`check-herdr-pin-single-source.sh` 통과.
- **확인하지 못한 것**: 로컬 `check-no-attribution.py`는 커밋 `fb7e2d526` 제목의
"Codex" 단어 때문에 실패합니다. 이미 push된 이력이라 고쳐 쓰지 않았고, CI는 이 검사를 돌리지 않습니다.
- **확인하지 못한 것**: `check-herdr-release.py bump` 왕복 검사는 docs/INSTALL.md
181행 때문에 실패합니다. 테스트용 v0.8.2 bump가 표 안의 "0.8.2"를 덮어쓰는 기존 문제이고, 이 PR이 고친
"weekly" 문구와는 별개입니다.
- **확인하지 못한 것**: GitHub에서 README가 어떻게 보이는지(`[!TIP]`, 표 안 이미지)와
Safari·Firefox에서의 렌더링과 영상 재생.
- **확인하지 못한 것**: 비공개 캡처 도구(hide-private `capture-site-shots.mjs`)는 아직 예전
사진 목록 그대로입니다.

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

Conductor와 미션 지도

![conductor](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/b8e1603/final-conductor-dark.png?raw=true)

레인의 PR 카드

![pr](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/b8e1603/final-pr-dark.png?raw=true)

레인의 세션 기록

![record](https://github.com/yansfil/pr-assets/blob/main/hide/docs-landing-readme-refresh/b8e1603/final-record-dark.png?raw=true)

</details>
yansfil added a commit that referenced this pull request Nov 2, 2026
Related: #2011

## Summary

폰이 기본으로 Hide 중계를 통해 연결되고, 설정의 한 연결 줄에서 연결 상태와 다시 시도·업데이트·상한 거부를 확인합니다.
QR은 app.withhide.dev를 열며 5분 뒤 만료됩니다. Tailscale 직접 연결은 고급에서 고릅니다.
방법마다 페어링한 폰을 따로 유지하고, 끄기·해제 시 연결을 닫습니다.
폰 내용은 기기와 폰 사이에서 암호화합니다.
기존 Tailscale 설정은 그대로 이어 쓰고 새 설정은 중계로 시작합니다.

![Settings Mobile: encrypted relay connection, five-minute QR and
advanced
Tailscale](https://github.com/yansfil/pr-assets/blob/main/hide/feat-hided-relay/e8fa807/settings-qr.png?raw=true)

실제 Settings 컴포넌트의 격리 갤러리입니다.
연결 줄, QR 만료 안내, 접힌 고급 영역을 확인해 주세요.

![Settings Mobile: relay stays available when the old Tailscale setup
cannot be
removed](https://github.com/yansfil/pr-assets/blob/main/hide/feat-hided-relay/5eeb736/settings-cleanup.png?raw=true)

이전 Tailscale 연결을 정리할 CLI가 없어도 중계는 연결되고, 같은 한 줄에 정리 실패가 남습니다.

## Review

- **판단해 주세요**: 연결 상태와 암호화 설명의 길이, 고급 Tailscale의 발견성.
- **조심해서 볼 파일**: `hided/src/mobile/relay.rs`, `phone.rs` - 암호화 경계, 종료
순서, 취소와 큐 상한.
- **조심해서 볼 파일**: `mobile/mod.rs`, `phones.rs`, `store.rs` - 키 저장, 방식 전환과
기존 폰 보존, 재연결 후 요청 기록.
- **비용 검토**: 연결 1개, 폰 작업 8개, 폰당 수신 8프레임·공유 송신 32프레임; 상태 전환만 발행하며 core 잠금
안에서 네트워크 작업을 하지 않습니다.

## Evidence

- **확인한 것**: 실제 hided 중계 통합 6개가 macOS·Linux·Windows에서 암호화·재연결·방법별 폰
보존·해제·끄기·미인증 제한 시간을 확인합니다.
- **확인한 것**: 입력 중단 테스트가 연결을 끊고 같은 요청을 재시도할 때 영구 대기에 남지 않음을 확인합니다.
- **확인한 것**: Mobile UI 24개, 직접 연결 브라우저 5개와 격리 갤러리의 한글·영문·큰
글씨·dark/light·QR·고급 상태를 확인했습니다.
- **확인한 것**: 최신 커밋에서 로컬 lint·Rust 7,357개·web 2,471개·desktop 307개·빌드·디자인
계약과 GitHub CI가 통과했습니다.
- **재시도 이력**: 기존 기기 테스트 #430·#439는 최초 실패 후 로컬 단독 1회와 CI 작업 1회 재실행에서
통과했습니다. CI에는 기존 세션 복원 #419의 자동 재시도도 있습니다.
- **확인하지 못한 것**: 실제 폰·native 앱·운영 TLS와 실제 PTY 답장 재전송은 통합·배포 검증에 남아 있습니다.

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

Head: `d75b9db7d9ef0287392452ad5fc77bfce605f26c`.
Base: `b1b25cde4`, including protocol #2011, Memory correction #2020,
relay server #2014 and hosted phone #2019.
Scope: mobile-relay B1-B10, hided B24, B28; hided transport, Settings
Mobile, owning architecture/UI guides.
The architecture merge preserves both the hosted phone WASM initiator
and the device responder/admission/authentication contract.
Cargo.lock and workspace-hack did not change in that merge; their shared
feature union was generated at `92620a992` and passes CI.
Caller tests use shared admission/routing types and real Noise sessions
without implementing a second relay service.
The interrupted-input test uses the real phone/Noise path and node
permission boundary; it does not claim an actual PTY write.
The original socket handler already detached its input task on
disconnect, so the original cancellation premise was not reproduced.
The follow-up additionally settles from the blocking operation with an
Uncertain drop guard; the caller test verifies disconnect/retry lifetime
rather than isolating that guard.
Independent re-review passed at `5eeb73668`; the additional live-peer
and unreaped-task bound at `744506a3e` was reviewed and accepted.
The QR screenshot was captured at `e8fa80774`; the cleanup screenshot
was captured at `5eeb73668`; the Settings product changes are unchanged
since that follow-up.
The five direct-mobile browser journeys passed at `6c2a6e338` without
weaker assertions or timeouts.
The Cursor fixture now explicitly selects Advanced > Use Tailscale
before enabling Mobile.

Current-head local verification ran on macOS under the shared mission
lock:

- `bash scripts/verify-cargo.sh lint`: PASS, 1m 10s.
- `bash scripts/verify-cargo.sh test-scoped`: core 3,929 passed, 1
failed, 20 ignored; stopped at the existing own_devices assertion in
`herdr-core/src/runtime/tests/own_devices.rs:158`.
- The only exact-test rerun on the same SHA passed in 0.27s; the initial
Kit/GuardrailPolicy assertion failure remains recorded, matching
[#430](with-hide/hide-private#430) and
[#439](with-hide/hide-private#439).
- `bash scripts/verify-cargo.sh test-scoped --workspace --exclude
herdr-core` then ran the crates the initial command had not reached:
3,427 passed, 149 ignored.
- Combined Rust coverage: 7,357 passed, 169 ignored, including the one
separately rerun test; this is a split completion after an initial
failure, not an uninterrupted green run.
- `bash scripts/verify-web.sh`: PASS; web 2,471 passed / 3 skipped,
desktop 307 passed / 4 skipped; type checks, lint and builds passed.
- `node scripts/check-design-contract.mjs`: PASS.

[GitHub CI run
41456834038](https://github.com/with-hide/hide/actions/runs/41456834038)
passed on attempt 2 after exactly one failed-job rerun:

- Attempt 1: Rust 7,338 passed / 1 failed / 166 skipped; own_devices
#430/#439 failed both automatic attempts.
- Attempt 2: Rust 7,339 passed / 166 skipped; own_devices passed on its
first attempt in 0.027s.
- Attempt 2 also includes one automatic retry of the existing
session-restore test
[#419](with-hide/hide-private#419); the first
failure remains in its job log.
- Linux and Windows each passed all six mobile_relay caller tests on
attempt 1; Windows job `125315707247` completed successfully.
- Linux browser shards and Windows E2E passed on attempt 1 without flaky
results.
- Cursor phone passed in shard 6 (`125317575438`, 6.6s); the
reopened-tab test tracked by #418 passed in shard 4 (`125317575230`,
3.3s), both on their first attempt.
- macOS desktop, protocol and packaging lanes passed; macOS hided mobile
evidence is the local run above.

Real phone/native-app interaction, production TLS and actual PTY replay
remain outside this PR's verified evidence.

</details>
yansfil added a commit that referenced this pull request Nov 3, 2026
…tarts (#2021)

## Summary

새 엔진에서 탭과 분할을 만들 때 홀더 시작을 기다리느라 화면이 늦게 나타나고, 66개 셸 복원이 느렸습니다.
요청한 자리를 먼저 그리고 홀더가 준비되면 연결하며, 기록 저장과 잠금 대기의 비용을 줄였습니다.
시작에 실패한 pane은 이유와 닫기 버튼을 가진 기존 카드로 남습니다.

스크린샷 없음: 화면 코드는 바뀌지 않고 기존 실패 카드를 사용합니다. 성능은 앞선 동일 release 빌드의 격리된 브라우저에서
비교했습니다.

## Review

- **저장 경계**: 홀더 기록과 incarnation만 `UntilReboot`를 쓰고 일반 저장은 `sync_all`을
유지합니다. 아래 저장 파일을 확인해 주세요.
- **복구 경계**: 부팅 전 손상은 정리하고 이번 부팅의 손상과 모르는 형식은 보존·거절합니다.
- **시작 소유권**: 조기 attach, 즉시 읽기의 시작 결과 대기, 닫힌 pane의 뒤늦은 홀더 정리를 확인해 주세요.
아래 엔진·노드 파일이 경계입니다.
- **비용과 상한**: 키 입력당 추가 작업은 없습니다. 실행 8개·대기 8개, attach 64를 유지하며 복원은 8개
작업자가 전체 pane을 순서대로 시작합니다.
- **저장 비용**: 저장 5회를 3회로 줄이고 용량 상한 미만의 전체 파싱을 없앴습니다. 공용 잠금은 1ms부터 20ms까지
기다리며 timeout·취소 계약은 유지합니다.
- **판단 사항**: 새 pane도 기존 “복구하지 못했어요” 문구를 씁니다. 복원 셸 응답의 +87.7ms 미달은 운영자
위임으로 예외 수용했고 c2는 skipped입니다.
- **복구 delta**: main에 병합된 #2020의 테스트 날짜 수정만 가져왔습니다. 고정 날짜로 인한 #438을
바로잡으며 성능 코드와 행동 기대값은 그대로입니다.

## Evidence

- **최종 검사**: lint PASS, 전체 7,323 PASS·169 ignored. 홀더 최초 실패 1건은 같은 SHA
1회 재실행으로 PASS했고 원인은 미해결입니다.
- **독립 검토와 CI**: 최종 delta 재리뷰와 새 policy CI PASS입니다. 전체 실행은 ci-plan이 이전
run을 재사용했고 아래에 구분했습니다.
- **탭·분할**: 기존 5쌍의 화면·프레임 p50/p95가 기준 안입니다. 원본 재계산도 일치하며 최종 SHA의 새 측정으로
주장하지 않습니다.
- **복원**: 셸 응답 +87.7ms 미달, 탭 -93.2ms·앞 탭 -113.2ms입니다. 미달을 통과로 바꾸지 않았습니다.
- **미실행**: 이번 복구에서는 성능 재측정·release 빌드·네이티브 앱 검증을 하지 않았습니다. 최종 SHA의
Linux·Windows 전체 실행은 없으며 이전 CI 재사용으로 판단됐습니다.

<details><summary>검토 파일, 후속과 기존 기능 증거</summary>

- 저장 파일: `hide-platform/src/fs/atomic.rs`,
`hide-holder-protocol/src/record.rs`, `hide-kit/src/panes.rs`. 기록의 내구성과
용량 경계입니다.
- 엔진·노드 파일: `herdr-core/src/engine/own/{mod,starts}.rs`,
`hide-node/src/terminal/{engine_panes,holder}.rs`. 시작·실패·정리 소유권입니다.
- 복구 delta: `herdr-core/src/runtime/memory_analysis.rs`의 테스트 모듈만 변경했습니다.

- 노드 attach는 시작 실패를 별도 상태로 기억하지 않아 준비 기한 뒤 일반 오류를 낼 수 있습니다. 화면에는 엔진의 실패
이유가 남고 자동 재시도는 제한됩니다.
- 홀더와 kit의 `millis` 중복, 폴더 정리의 버전 이름 재계산은 별도 정리 대상으로 남깁니다.
- 읽기와 시작 허가의 대기 한도가 겹치면 `holder_start_timeout`이 먼저 날 수 있으며, 에이전트 resume
복원 경로의 엔진 참조 경합도 남습니다. 기존 독립 재리뷰에서는 사소한 후속으로 분류했습니다.
- 기존 최종 성능 코드의 128 pane 복원·저장 재개방 시험, 홀더 통합 67/67, 실제 node→holder 즉시 읽기와
엔진 계약 각 1/1이 통과했습니다. 두 실행의 홀더 17개도 모두 종료됐습니다.
- 즉시 읽기 대기 제거와 대기 상한 9 변이는 예상 검사에서 실패했습니다. 조기 attach 소유권과 용량 경계 변이도 각각
예상 검사에서 실패했습니다.

| 행 | 화면 p50 / p95 여유 | 프레임 p50 / p95 여유 | 판정 |
| --- | --- | --- | --- |
| 22 탭 만들기 | -0.26 / -8.10ms | -3.97 / -14.31ms | 통과 |
| 23 분할 | -2.43 / -3.13ms | -21.18 / -3.11ms | 통과 |

두 측정은 동일 빌드의 H/P 순서를 교대했습니다.
운영자 결정에 따라 시작 load<12, 최고 load<=15, 빌드 0을 적용했고 제외 실행도 보존했습니다.
여유는 쌍별 `P - (1.1H + 0.5ms)`의 중앙값, 복원은 `P - 1.1H`이며 0 이하면 기준 안입니다.

</details>

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

- Recovery final head: `4250e5ce37ec92cbe2bead59340e04a833163143`.
- Recovery delta: cherry-pick -x
`4c051dd12815776664392479b5c425ea1947e32b` from merged #2020. Only the
test module in `herdr-core/src/runtime/memory_analysis.rs` changed
(+51/-38); the complete file matches main at
`c4b89aad35ba641fd7fee393740be11fc2849ce3`, and production code matches
the previously reviewed head.
- Before the fix, the exact #438 fork-cutoff test failed on its one
allowed retry at `6ce4e4d2b` ([3,1] instead of [3,2]). The main fix
replaces fixed dates with one relative clock capture; behavior
assertions remain unchanged.
- Final-head `scripts/verify-cargo.sh lint`: exit0.
`scripts/verify-cargo.sh test`: exit101 at holder integration after 15
targets; herdr-core 3,928 passed /0 failed /21 ignored, including #438
and the OMP fork test.
- First failure:
`hide-holder::it::lifecycle::a_holder_runs_its_shell_and_carries_input_and_output_across_connections`,
support.rs:478, `ProgramExited` before `40 100`. This matches the
reported signature of with-hide/hide-private#426; its root cause remains
unresolved.
- Only that failed test was retried once on the same final head through
`scripts/verify-cargo.sh test-scoped -p hide-holder --test it
lifecycle::a_holder_runs_its_shell_and_carries_input_and_output_across_connections
-- --exact`: exit0, 1 passed /66 filtered.
- Continued all 23 targets in the 14 packages not reached by fail-fast
with `test-scoped --tests --no-fail-fast`; then all 20 workspace
documentation targets with `test-scoped --workspace --doc
--no-fail-fast`. Both exit0. Cargo metadata, executable dependency
sources and result logs account for all 38 test targets plus 20
documentation targets, with no missing or repeated passing target.
- Combined first attempts: 7,322 passed /1 failed /169 ignored. With the
one failed-test retry: 7,323 passed /0 unresolved failures /169
pre-existing ignored. Mission check recorded PASS with `--rerun`; no
test or required gate was newly skipped.
- Independent delta review PASS at final head: original patch
byte-identical, all 67 tests and 377 assertions retained; no blocker,
product change or acceptance weakening. This review covers the delta
from `6ce4e4d2b`, whose product review remains recorded below.
- C1 original measurements remain pinned to `98770406f`; c2 remains
skipped by the operator's delegated exception (+87.7ms). No new
performance run, release build or native app verification was performed.
- Final-head policy CI:
https://github.com/with-hide/hide/actions/runs/41566242903, attempt1
SUCCESS; plan, policy and verify passed. Design contract run 41566242941
also passed.
- The CI plan at final head / main
`c4b89aad35ba641fd7fee393740be11fc2849ce3` automatically reuses full run
`41501891830`, verified head `6ce4e4d2bde84c79aca5c1a91a1b0b0e7c085b38`
/ base `4b61785aa02a727a2e446b90a32cd83190504324`. The same fixture fix
is already on main, so the effective PR change remains identical under
the existing ci-plan comparison. Other lanes were skipped by that plan;
this is not fresh Linux/Windows full execution at the final head.
- Parent will evaluate current merge order and locked premerge checks.
After-push merge-order says stay on this branch, do not stack on risky
#2017, and merge main once after #2017 lands.
- Local log SHA-256: lint
`35f4b464852210e9de451fbe821bc80fbe5bee8a29f67a0285355f509e3a291c`,
initial test
`349457b1a579c84edb8c86b0963de44fb4b536d7ba6c586370f7c8083785451d`,
failed-only retry
`f2b3b320cd05d45ed562cc50ac459b8fe3df439d94f150e8b7aeb56c5c5c9d1a`,
continuation
`dbce71e5dc8659e6772e234da41f5f79d15b7adb1f239c8ce7001af99f19319e`, docs
`97a7726c2a083e330ced2577eae5b69e891fbc76a10dcba5d2f9b9fdb8f0398e`.



- Base: `9305a846b`.
- Previous reviewed head: `6ce4e4d2b`. Previous full-run head:
`76097c943`.
- Previous `76097c943`: `scripts/verify-cargo.sh lint` exit0. Full
workspace exit101, 7,320 passed /2 failed /168 ignored; #438 fixed-date
and #439 own_devices.rs:158 no engine asked the node. Holder
integration67/67. Release exit0. #439 same-head focused follow-up1/1
passed; the first full-run failure remains recorded.
- Previous `6ce4e4d2b`: strict final-SHA lint exit0, full workspace
exit101: 7,322 passed /1 failed (#438 fork cutoff) /169 ignored. Holder
integration67/67. Real holder immediate-read and engine-contract tests
each1/1; all17 holder PIDs gone. No new release build or performance
measurement.
- Earlier same-source full run: 7,320 passed /3 failed /169 ignored.
Failures were #438, #426 holder ProgramExited before expected grid
output, and guarded process spawn EINVAL22 at process.rs:1897. The
guarded-process focused run passed1/1 and the final full run passed that
test; neither explains the first failure, which remains preserved.
- Default file barrier regression: 7 passed; removing the full-sync
barrier failed the expected assertion, then source restored.
- Early holder attach: public ownership before registration, real holder
first frame and echoed input; ownership removal failed the expected
assertion, then source restored.
- Holder admission: records suite 16/16; concurrent starts preserve
cap128 including unreadable records, ended records preserve room and
retention128. Treating all files as live at the boundary failed with
Cap130, then source restored.
- pairs-3 at `98770406f`: 5 pairs, 20 load-valid runs, 3 discarded,
accepted peak13.39, all23 runs left0 processes; new_tab/split20 samples
each, no timeouts or no-Herdr errors. Row28 outside this node: echo
slack p50+0.2 / p95+1.6ms, preserved for the gate owner.
- pairs-4 at `699f322c9`: 5 restore pairs, 10 valid runs, 3
build-contaminated runs discarded, accepted peak11.09, all13 runs exit0
and left0 processes. Release hashes verified before/after. All5 own
restores have66 holder starts and no terminal.session_failed/no-Herdr
error.

| Row30 | Herdr 5 runs (ms) | Own 5 runs (ms) | Median slack |
| --- | --- | --- | --- |
| Shells | 653, 718, 669, 622, 655 | 806, 1139, 744, 742, 873 | +87.7ms,
failed |
| Tabs | 660, 725, 676, 630, 662 | 666, 1147, 532, 532, 635 | -93.2ms |
| Front | 898, 962, 917, 866, 912 | 920, 1410, 808, 813, 890 | -113.2ms
|

- Previous adverse evidence retained: pairs-2 row22 screen p50+0.6ms,
shells H633-825/P2206-2335ms; pairs-3 shells+60.3ms, front withheld
because error text could satisfy its detector. pairs-4 corrected the
early attach error; diag-4 was incomplete and supplied no acceptance
verdict.
- Earlier workspace failures remain recorded: #438; holder lifecycle
#426 reproduced once in10 on both branch and base; four mobile
socket-open failures at98770406f, a focused16/16 follow-up did not
establish their cause. At699f322c9 only#438 failed (7,320 passed /1
failed /168 ignored).
- Earlier draft CI aggregate failed with lanes=[] and test jobs skipped.
Ready CI at76097c943:
https://github.com/with-hide/hide/actions/runs/41496549250 failed the
restore-save ordering test on Linux and the old-record fixture on
Windows; both are addressed by this follow-up.

- Previous-head CI:
https://github.com/with-hide/hide/actions/runs/41501891830, attempt2
SUCCESS. Attempt1 failed Windows check (fixture lld-link15890ms),
Windows web E2E (fixture clang59999ms), and Windows package window check
(fixture lld-link14082ms). Only failed jobs were rerun once. All passed
on attempt2; no timeout was raised and no test was weakened. Root cause
of the initial fixture failures remains unconfirmed.
- Independent previous-head review: PASS at `6ce4e4d2b`; remaining minor
follow-ups are listed under Review.

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