Repository navigation
fix: preserve Windows journey input and controller outcomes - #2039
Merged
Merged
Conversation
…ourney # Conflicts: # docs/delivery.md # herdr-core/src/delivery/ladder.rs # web/e2e/shims/spawn-provider.c
yansfil
added a commit
that referenced
this pull request
Nov 3, 2026
) ## Summary 웹 시험을 Herdr와 자체 엔진에서 같은 사용자 흐름으로 실행합니다. 시험을 옮기며 드러난 시작·복원·잠들기·찾기·입력 결함을 고쳤고, 자체 엔진에서 닫았다 다시 연 탭이 원래 영역으로 돌아가지 않던 문제도 고쳤습니다. 모바일 알림은 턴마다 한 번 보내고, 감지보다 먼저 온 세션 보고와 읽은 질문 문장을 보존합니다. 문서에 두 엔진의 지원 범위, 성능 비교 방법과 승인된 전환 예외를 반영했습니다. Closes with-hide/hide-private#449 | 읽은 질문: 수정 전 | 수정 후 | | --- | --- | |  |  | ## Review - **판단해 주세요**: 자체 엔진은 성능 1쌍 비교에서 13개 항목이 기존 기준(Herdr의 1.1배)을 넘습니다. 자체 엔진은 개발 스위치 뒤에 있으므로, 운영자 결정(2026-11-04)으로 성능 줄(c2)은 건너뛰고 이 관문을 병합합니다. 개선은 기본값 전환 전 별도 작업(perf-tune)에서 합니다. - `runtime/editor.rs`, `runtime/agent_areas.rs`: 다시 연 탭이 응답보다 먼저 목록에 올라도 원래 영역과 보이는 탭을 바로 맞춥니다. 새 탭 응답과 같은 함수를 씁니다. 53f5682 CI에서 자체 엔진의 `agent-tab-groups.spec.ts:313`이 다시 연 뒤 탭 수 확인(346행, 기대 2, 실제 1)에서 한 번 실패하고 재시도에서 통과했습니다(hide-private#187). 이 수정이 다루는 단계라 남은 경쟁이 있는지 판단해 주세요. - `TaskLens.tsx`: 읽은 질문은 기존 core line을 재사용합니다. 흐린 질문의 가독성을 확인해 주세요. - `labels/worker.rs`, `agent_state/turn.rs`: 분석 실패·회복 뒤 중복 알림과 다음 읽기의 누락을 막습니다. - `engine/own`: 초기 세션 보고 보존, 시작 완료를 기다리는 읽기, 엔진 종료 뒤 복구 작업의 수명을 확인해 주세요. - `web/e2e/shims/spawn-provider.c`, `web/e2e/agent-pane.ts`: 자체 엔진에서 시험이 새 세션을 에이전트 자신의 훅으로 보고할 때, 대역이 권한 질문 아래에 입력창을 다시 그리지 않습니다. main이 입력창에 틀을 그리게 된 뒤로, 그 입력창이 권한 질문보다 우선해 '쉼'으로 읽혔습니다. 도구 호출 명령 뒤에는 지금처럼 입력창을 다시 그립니다. 제품 화면 읽기는 바꾸지 않았습니다. - `scripts/agent_journey/controller.py`, `spawn-provider.c`: 이 브랜치의 세션 보고 설정 줄과 main(#2039)의 명령 시간 한도(`within-ms`)를 합쳤습니다. 설정을 쓸 때도 한도 줄을 명령 인자로 세지 않습니다. - `hide-kit/src/panes.rs`, `hide-kit/src/panes/ownership.rs`, `requests.rs`, `reservation.rs`(약 1,400줄): pane 레코드의 소유·예약·요청 번호입니다. 노드 쪽 요청 번호는 이제 `Owner` 한 곳에서 셉니다. `LocalPanes`의 자체 카운터를 없앴고, 제품 경로가 쓰지 않던 `PaneHolders::start`와 그 구현·시험 가짜를 지웠습니다. 시험은 엔진처럼 번호, 예약, 시작, 번호 반납 순서로 pane을 시작합니다. - **번들 4로 남긴 것**: - `LinkPanes`는 링크의 코어 쪽에서 번호를 셉니다. 노드의 `Owner`로 합치려면 새 링크 호출(계약 변경)이 필요합니다. - hide-node `Holders::start`와 hide-kit `Panes::start`(예전 레코드 채택 포함)는 holder_node 예제와 hide-holder 레코드 시험만 씁니다. 지금은 같은 `Owner` 번호를 씁니다. - 알려진 minor로 받아들이고 번들 4에서 고칩니다: hide-kit `judge`가 holder 없이 취소된 묘비를 회복 때마다 다시 써서 끝난 이유를 덮습니다(회복마다 한 번이라 횟수는 유한). `notification_pending`/`notification_finalized`가 웹이 읽지 않는데도 모든 에이전트 스냅샷에 실립니다. journey controller의 세션 보고 스크립트는 `python -I` 없이 돕니다(대역 설정 형식을 넓혀야 고칠 수 있음). - `hide-node-link/src/protocol.rs`: 노드 프로토콜은 73입니다. 이 브랜치의 71·72와 main의 71(실행 중 큐 호출 제거)을 합쳤습니다. - **비용**: 알림은 pane당 고정 크기 상태이며 기존 worker를 씁니다. CI 계수에서 빠졌던 패키지 6개를 반영했습니다. - **전환 예외**: Pi·omp·OpenCode·Grok·Cursor의 첫 세션 보고와 Windows 자체 엔진의 시작·감지는 묶음 4 PR A에서 닫습니다. 아래 Windows 35개 명시 예외와 성능 30행의 승인된 한도 외에는 시험 범위와 기준을 유지합니다. ## Evidence 두 엔진, 세 OS의 e2e 결과: | OS | 시험 범위 | Herdr | 자체 엔진 | 근거 | | --- | --- | --- | --- | --- | | Linux | 전체 e2e(자체 엔진은 `@herdr` 제외) | 430 통과, 건너뜀 1 | 367 통과, 재시도 통과 3(hide-private#443, hide-private#459, hide-private#187) | CI 41702808842, 53f5682 | | Windows | `@platform` | 74 통과(1차 실패한 session-work-ledger:46은 같은 SHA 재실행에서 통과, hide-private#262) | 25 통과, 명시 예외 35 건너뜀 | CI 41702808842, 53f5682 | | macOS | `@platform` | 74 통과 | 59 통과 | nightly 41675125156, 97a101a | `@herdr` 표시 시험은 57개(30개 파일)이고, 모두 바로 위에 `// Herdr only:` 이유 줄이 있습니다. - **확인한 것**: - CI: 53f568258의 CI 41702808842가 통과했습니다(2차 시도). 1차의 실패 2건은 Windows Herdr의 `session-work-ledger.spec.ts:46`(시험 준비 중 자식 spawn이 `agent_pane_required`로 거절, 같은 SHA 재실행에서 통과, hide-private#262)과 Linux 도우미 빌드의 zig 고정 패키지 내려받기 실패(러너 네트워크)였습니다. 두 엔진, 세 OS 결과는 위 표와 같습니다. - 로컬 전체 검사: 53f568258에서 `scripts/verify-cargo.sh lint` 통과, `test`는 7,475개 통과, 0개 실패, 170개 무시입니다. 바로 앞 후보 e7fc0b67a에서는 hide-holder `lifecycle::a_holder_runs_its_shell_and_carries_input_and_output_across_connections`가 한 번 실패한 뒤 단독 실행에서 통과했습니다(hide-private#426). - 자체 엔진 session-panel 회귀: CI 41683633334에서 자체 엔진 Linux 5/6의 `session-panel.spec.ts:79`가 두 번 모두 실패했습니다. 로컬 macOS에서 같은 실패를 재현했고, 대역을 고친 뒤 이 파일의 시험 2개가 통과했습니다. - macOS 두 엔진(nightly 41675125156, 97a101a, `@platform` 시험): Herdr 74개, 자체 엔진 59개 통과. `desk-lane.spec.ts:173` 하나는 재시도에서 통과한 flaky(hide-private#466)이고, desktop·holder 재시작·agent journey도 통과했습니다. remote mailbox macOS 실패는 main nightly에도 있는 hide-private#391입니다. - 다시 연 탭 회귀: 새 시험은 수정 없이 실패하고 수정 뒤 통과합니다. herdr-core lib 3,980개 통과. 이전 CI의 자체 엔진 e2e에서 `agent-tab-groups.spec.ts:313`이 통과했고, 53f568258에서는 위 Review처럼 재시도에서 통과했습니다. - 성능(97a101a, keys와 operator topology를 엔진별 1회): 4회 모두 끝났고 남은 프로세스 0, 빌드 0입니다. 자체 엔진은 입력 echo가 3~5ms 느리고(p50 16.6 대 20.6ms), 새 탭 p50·분할 p95와 쉴 때 hided CPU(0.00 대 0.96%)·RSS(+10.8MB)가 기준을 넘습니다. 1만 키 오류 0, 확대·닫기·전환·크기 조절, 출력 중 CPU, 저장 횟수는 기준 안입니다. - 측정 조건: load1 6 기준은 맞추지 못해 지휘자 결정으로 15를 적용했습니다. 회차별 시작 load는 Herdr keys 10.96, own keys 4.00, topology 2.05/2.36입니다. - **확인하지 못한 것**: - 성능 31행 전체, node 행, 행 1~15와 30(복원)은 재지 않았습니다. 표본 1쌍이라 일반적인 성능 우열을 말할 수 없습니다. - topology는 연결된 pane이 Herdr 8개, 자체 엔진 7개라 입력이 같았다고 입증하지 못했습니다. - flaky로 처리한 시험: SSH 취소(hide-private#389), own_devices(hide-private#430, main 수정이 merge로 들어옴), hide-platform `a_start_whose_supervisor_ends_before_it_hears_the_answer_is_an_error`(hide-private#482, 966e6b59c에서 한 번 실패한 뒤 같은 바이너리 단독 실행에서 통과), hide-holder lifecycle(hide-private#426, e7fc0b6 전체 검사에서 한 번 실패한 뒤 단독 실행에서 통과), Windows 시험 대역 빌드의 60초 한도(hide-private#393, e7fc0b6 CI에서 시험 전에 끊김). connect_build의 macOS 전용 시험 하나는 main #2036의 경로 가리기와 시험 폴더 이름이 겹쳐 실패했고, Linux CI는 이 시험을 돌리지 않아 main에서 드러나지 않았습니다. main #2048이 가려진 경로를 검사하도록 같은 시험을 고쳤고, 이 브랜치는 그 main을 merge하며 main 쪽 시험을 그대로 택했습니다. - macOS의 두 엔진 결과는 nightly가 돈 97a101a 기준이며, 그 뒤 후보에서는 macOS e2e를 다시 돌리지 않았습니다. - 독립 리뷰: 막는 문제 1건(요청 번호 발급기)은 이 PR에서 고쳤고, minor는 위 '번들 4로 남긴 것'에 적었습니다. <details><summary>성능 1쌍 결과 (97a101a, own은 자체 엔진)</summary> | 항목 | Herdr | own | 기준 | | --- | --- | --- | --- | | 입력 echo, 쉴 때 p50/p95 ms | 16.6/17.4 | 20.6/22.4 | 초과 | | 입력 echo, 출력 중 p50/p95 ms | 15.8/16.9 | 19.2/22.0 | 초과 | | 1만 키 손실·순서 오류 | 0 | 0 | 통과 | | 큰 화면 echo p50/p95 ms | 17.6/18.7 | 20.3/22.7 | 초과 | | 새 탭 p50 화면/프레임 ms | 21.0/57.0 | 24.6/65.3 | 초과(p95 통과) | | 분할 p95 화면/프레임 ms | 28.5/74.2 | 39.3/95.3 | 초과(p50 통과) | | 확대·축소·닫기·전환·크기 조절 | | | 통과 | | 쉴 때 CPU% hided/엔진/Chrome | 0.00/0.00/0.00 | 0.96/0.00/0.48 | hided·Chrome 초과 | | 출력 중 CPU% hided/엔진/Chrome | 1.95/7.78/25.25 | 1.94/4.83/26.32 | 통과 | | 창 없을 때 CPU% hided/엔진 | 0.97/8.21 | 0.97/4.83 | 통과 | | 쉴 때 hided RSS MB | 76.5 | 87.3 | 초과 | | 레이아웃 저장 횟수 / 조작당 | 704 / 2.01 | 471 / 0.80 | 통과 | | topology 뒤 RSS hided/엔진 MB | 136.9/296.3 | 135.6/607.6 | hided 통과, 엔진은 기록만 | 기준은 own ≤ 1.1×Herdr(지연은 +0.5ms)입니다. 각 회차 시작 load: Herdr keys 10.96, own keys 4.00, Herdr topology 2.05, own topology 2.36. load1 6 기준은 맞추지 못해 지휘자 결정으로 15를 적용했고, 모든 표본에서 빌드는 0이었습니다. </details> <details><summary>Verification record</summary> - Candidate: `53f568258` (merge of main `5b28f682b` into `e7fc0b67a`; the merge changes only `hided/tests/it/connect_build.rs`, to main's version). Local lint and test on `53f568258`: lint passed; test 7475 passed, 0 failed, 170 ignored. CI: run 41702808842, attempt 2 green. Performance was measured on `97a101a7a` (main `6afb9543`); the later commits are main's changes, test and fixture fixes, the request numbering change and one test formatting line. - Performance manifest `ed6fd7f163a2e934ec5d1f2d08cf3b7183464fc40aefd94cf893cad99749d65d` (re-sealed for the load 15 decision; run.py 35bef2f8 -> 92b33ccd). reduced-observation `6c6d3d61`, rounds `9b126fb0`, complete_observation true, full 31-row gate UNMEASURED. - Row 30 shells exception (median[P-(1.1×H+0.5)] <= 87.7 ms) is unchanged and unused: restore was not measured. - Earlier candidate c6aa365's four runs had unequal fixtures and are kept only as history. - Run artifacts remain local under `agents/runs/mission-25/gate/`; none is committed. </details> <details><summary>Windows own-engine transition exceptions (35 named tests)</summary> The holder reports no foreground group on Windows, so agent start and detection need bundle 4 PR A's alternative proof. Each test below calls the conditional skip itself; no filename or title pattern excludes tests. - `agent-fork.spec.ts`: Fork agent accepts bare pane keys from another client and opens right of the source - `close-subtree.spec.ts`: Delete worktree closes the agents its checkout spawned outside it before the folder goes - `herdr-fixture.spec.ts`: the fixture's two agents accept their first input, and stopping it removes its root - `home.spec.ts`: Home's ~/hide holds a link to each registered project - `korean-input.spec.ts`: ⇧↩ right after a Hangul syllable reaches the program after that syllable - `overview-device.spec.ts`: @platform an agent pane's head opens its session record in the lane and leaves the keyboard in the terminal - `overview-map.spec.ts`: @platform Overview restores its exact current session and keeps map movement local - `pane-focus-ordering.spec.ts`: keys typed after rapid pane clicks reach the last pane - `pane-move.spec.ts`: header edges insert in all four directions while retaining terminal, process, session and xterm - `s2.spec.ts`: switching checkouts is one focus_checkout, and a plain folder is a row of the Overview over its Workspace - `s2.spec.ts`: a tab switch mounts the new tab, ⌥T opens a terminal directly, and recent agents, reorder and close still work - `s2.spec.ts`: a wheel over a shell pane is one terminal_scroll per batch, and a click is one terminal_click answered by the SGR report - `s2.spec.ts`: a wheel over an alternate-screen program is one terminal_scroll and no key event, and q reaches it - `s2.spec.ts`: a drag selects locally without a click, and its copy joins wrapped lines and keeps a shared margin's indentation - `s2.spec.ts`: the shortcut sheet marks the moved chords and ⌘F reaches the agent's own find, each without a stray key or find bar - `s2.spec.ts`: typed text echoes and parks across a tab switch, and a dropped socket comes back with the tab bar and splits - `s3.spec.ts`: editing a document marks it dirty, saves it, and a disk change asks how to resolve - `s3.spec.ts`: the Explorer creates, renames, moves and trashes entries - `s3.spec.ts`: a change in an expanded folder refreshes the tree without a reload - `s3.spec.ts`: ⌘P opens a file by name and ⌘K switches checkout - `s3.spec.ts`: Explorer files paste paths and images attach to the receiving terminal - `s7.spec.ts`: Open to the side shows one document twice: edits and Korean input reach both, each keeps its place, and closing keeps unsaved text - `session-work-ledger.spec.ts`: @platform a native session's record groups its requests by goal flow and keeps its PRs, children and asks through search and summaries off - `session-work-ledger.spec.ts`: @platform 백로그로 saves a local memo without publishing and 되돌리기 restores the missed work - `session-work-ledger.spec.ts`: @platform ⌘⇧M adds a backlog issue from the terminal and hands the keyboard back - `session-work-ledger.spec.ts`: @platform local missed-work adds survive a repository edit and keep the session origin - `session-work-ledger.spec.ts`: @platform a local missed-work add finishes while GitHub is unavailable and survives A-to-B-to-A edits - `session-work-ledger.spec.ts`: @platform a migrated session with an unknown original repository can retain its missed work locally - `shell.spec.ts`: a sidebar row click switches the pane and typed text echoes there - `sidebar-tab-groups.spec.ts`: a tab with two agents opens with a line that opens it, takes its name once renamed, and keeps it at one agent while named - `stale-snapshot-focus.spec.ts`: a snapshot older than the last click does not take the keys back, and the one that includes it keeps them - `stale-snapshot-focus.spec.ts`: the answer to a click on the focused pane leaves the keys where the operator took them since - `stale-snapshot-focus.spec.ts`: a focus move that waited for the last click is dropped once the operator takes the keys elsewhere - `stale-snapshot-focus.spec.ts`: opening the pane that is already focused from the sidebar takes the keyboard - `worktree-delete.spec.ts`: a dirty worktree with an unmerged branch and an agent is deleted once both boxes are ticked </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
Review
web/e2e/shims/spawn-provider.c- Windows Job 구성원의 실제 종료와 Linux 입양 자식 회수, 정리 실패 시 중단.scripts/agent_journey/controller*.py- 종료 상태와 명령 ID의 일치, 부분 출력 보존, 실패 후 재사용 차단.hide-agent-hooks/src/delivery.rs,herdr-core/src/delivery/ladder.rs,herdr-core/src/start_prompt.rs- 입력을 보내는 시점과 수신 확인의 같은 정규화 규칙.hide-agent-hooks/tests/it/agy_hooks.rs- 정상 입력과 EOF를 시작 전에 준비하고, 입력이 오지 않는 실제 파이프에서는 기존 ask 응답과 외부 호출 없음을 확인합니다.새 상시 작업이나 알림은 없습니다.
Evidence
수정 후 CI는 대기 중이며, 원래 빈 응답 실패의 원인은 미확정입니다.
Verification record
agents/prd/windows-journey-verified/PRD.md(sha256 b4a2a9638af3be87eb85e90509da336c8bb556402730ef911af0239d89eb5f3b)agents/runs/windows-journey-verified/verification-report.jsonandagents/runs/windows-journey-verified/verification-report.md; source fingerprint d97a26238316b11abaaf41ff83ed1cdbce7da2489f4696873b8ed15484984962python3 agents/runs/windows-journey/verify-fixtures.py(exit 0)bash scripts/verify-cargo.sh test-scoped --jobs 2 --no-fail-fast -p hide-agent-hooks -p herdr-core(exit 0)bash scripts/verify-cargo.sh clippy --jobs 2 -p hide-agent-hooks -p herdr-core --all-targets -- -D warnings(exit 0)32fc1ef36b890a90070e309a85aa0467f6c575f7; no open Fix now. F1 (Windows process-object settlement) and F2 (job cap below the sum of steps) closed inf7890a2c38e28d6ee77c708e2fbd25b894bc4ec2.954b5daoutput delta,3dbf353aLinux subreaper delta,7a9e401aAGY fixture delta and33860e7483e2a48aafc606ff51b43dcc1ad2b7dfcast removal; no new Fix now or follow-up improvements. Previous closures retained; reviewers ran no build, tests or CI.33860e7483e2a48aafc606ff51b43dcc1ad2b7df, current report and all 12 registered evidence digests checked; no new Fix now or follow-up. This continued the existing independent source reviews; no new native reviewer pair or runtime execution was performed. AdvisoryagentReview: NOT_RUNremains unchanged.32fc1ef3FAIL: Python 13 pass, actual C 5 pass / 1 fail because short partial stdout was absent before watchdog exit; Rust 4360 pass / 24 ignored and clippy pass. Preserved separately from the later954b5daPASS.41637445522attempt 1 at954b5da: Linux C boundary 4 pass / 2 cleanup failures, then the aggregate verify failed. Other executed jobs passed, including Windows C boundary 6, Windows forms 21 and Windows packaging. Original logs and selected outcomes remain; no original Linux process table was captured.3dbf353aFAIL: S1 and clippy passed; Rust 4359 pass / 24 ignored / 1 fail, AGY direct start expected deny but observed ask. Original cause remains unconfirmed; the fixture now prepares finite input before starting the hook.7a9e401aFAIL: S1 passed and Rust 4361 pass / 24 ignored; clippy rejected the redundant PIPE_BUF cast. The final commit removes that cast, and the current three-suite PASS is a separate execution.41606803918attempt 1 had an unreadable empty answer; the permitted failed-only attempt 2 passed that cell and failed OMP launch_brief intake confirmation. No third retry was run. The historical empty-answer cause remains unconfirmed.41637497094attempt 1, exact954b5dafa649ef819035511f17ca5190bd3dac52: fixed CLI with fake model, 13 pass / 2 N/A, exit 0, launch_brief input attempts 1 and confirmed_at 1793709929150, one answer and cleanup confirmed. Report sha2566cfdc0c8e7d0253f8e67ca6c6961ae9e5acb89474b8f17c629fb6dcf51682672; not final-head, provider-login or full-candidate proof.lockf -k /tmp/hide-premerge.lock, jobs 2 and this worktree's warm target. Final executable scan and exact-verifier scan found no remaining process, and the immediate same-lock probe passed. The independent PID/birth sample ran after completion and captured no live process; historical PID/birth coverage is unverified.8038c40238b5fc2adce487a43238645ff1078d4a: Stay as you are. Overlaps fix: deliver letters during ongoing work #2038 and test: run the e2e suite on both engines and close bundle 3's gate #2017 do not justify stacking; after either lands, merge main once if the repository tool requires it.fix/release-windows-journey, basemain