Skip to content

test: run the e2e suite on both engines and close bundle 3's gate - #2017

Merged
yansfil merged 125 commits into
mainfrom
feat/engine-two-engine-gate
Nov 3, 2026
Merged

yansfil merged 125 commits into
mainfrom
feat/engine-two-engine-gate

Conversation

@yansfil

@yansfil yansfil commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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(fix: preserve Windows journey input and controller outcomes #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로 남긴 것'에 적었습니다.
성능 1쌍 결과 (97a101a, own은 자체 엔진)
항목 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이었습니다.

Verification record
  • 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.
Windows own-engine transition exceptions (35 named tests)

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

@yansfil
yansfil marked this pull request as ready for review November 2, 2026 09:02
The structural review of the engine bundle found decisions made in more
than one place; each now has one owner:

- Single-quoting a shell word (POSIX and PowerShell, with PowerShell's
  typographic quotes) lives in hide-shell's quote module, used by the
  hook installer, the engine's start line and the node's notice line.
- A typable resume word and its line limits are the definition reader's
  (hide_agent_adapter::definition), which the engine's resume check uses.
- Whether a start's pane runs the terminal it chose is asked in one
  place (node_access::pane_terminal) by the checkout start and the
  worktree start.
- Settling agent definitions and handing them to the label worker is one
  function used by the handle and the worker.
- The engine's restore thread holds the engine weakly, so dropping the
  engine ends it; the longest start line, the early-facts cap, the open
  limit and the node's local panes are each named once.
A pane on the core's own engine inherited the holder's owner descriptor (HIDE_PROCESS_OWNER_FD), so Hide's hook helper in the pane read it as its own owner, could not watch it and exited without reporting: no hook session ever reached the engine. The holder now removes the owner-launch keys from the program's environment.
…n either engine

startFixture({ family: true }) has its first agent spawn the second beside it with hide agent spawn --parent here, so the core records the relationship as it does for a real delegation; spawnChild spawns more. The fixture sizes the panes it makes, since on Herdr the daemon delivers typed keys only to a pane a view has sized, and the spawn-capable stand-in echoes what it is typed.
…d apart

The own engine's jobs record history and logs under their own shard names, the plan test counts them, and TESTING and CONTRIBUTING describe the neutral fixture, the @herdr tag and the two engine lanes in place of the @own tag.
… ARM64's gap

A row for this machine's panes on the own engine per system, Windows ARM64 not supported for want of a CI runner with the condition that closes it, and the path a hook-reported session takes to the engine.
s7, checkout-pr, antigravity-hooks, terminal-webgl, view-wrap, lane-hidden-tool and worktree-removing-menu run on both engines; herdr-fixture keeps its Herdr-only tests tagged @herdr beside one neutral test; pane-scroll-find, agent-sleep and agent-fork keep the tests the own engine cannot pass yet tagged @herdr with the gap named.
…ngine

A pane search asks for 10,000 lines and a holder answers at most 2,000, so the find bar on the core's own engine showed pane.read failed. The node now reads up to the bound, marked truncated past it.
…e-gate

# Conflicts:
#	docs/TESTING.md
#	scripts/tests/test_ci_plan.py
(cherry picked from commit 52ea2b2d042259a344ebf5b1d8b917bf44ff5f21)
(cherry picked from commit 8cf7cbeac983a163eb29d41b8457ca9360712943)
(cherry picked from commit 8472bad63dde25b0e3a6e0bff90abe656f020079)
(cherry picked from commit c07ac83d452ccef364b59bda0e6bf3cb8e3cf781)
(cherry picked from commit 562c1dfefdbc4ca70331b047b5d933c5cfc5abf6)
(cherry picked from commit 242cc54219fdc1dbea14ed0471cf92720511bbfa)
(cherry picked from commit 2cfe1f554c45d83c074d72ae58cb6c0b281ccdca)
(cherry picked from commit 809c4b2b9bb80af2bba4863a4281df40c487c16d)
The core's own engine lists a reopened tab before the reopen's answer
reaches the core. The tab was admitted to the area the operator was in,
and its captured area and the visible tab waited for a later topology that
never came, so Reopen Closed put the tab beside the wrong area's tabs.

The tab-create answer already applied a placement to a tab the catalog
listed; that step is now one function both answers use, and the reopen
answer also moves the visible tab to the restored pane at once.
Both sides took NodeLink protocol 71: this branch's holder scroll and read calls (71) and pane ownership (72), and main's removal of the running-agent queue call. The merged node speaks 73 and keeps every step's note. The Claude stand-in draws main's empty composer for either agent and still announces readiness on every system.
yansfil added a commit that referenced this pull request Nov 3, 2026
## Summary

- Windows에서 시작 안내의 탭이 입력 과정에서 달라져, 답변이 있어도 수신 확인이 빠지던 문제를 고칩니다.
- 실패할 때 종료 원인과 출력을 남기고, 시작한 자식 프로세스가 끝난 뒤 다음 작업으로 넘어갑니다.

## Review

- **판단해 주세요**: 저장한 원문과 엄격한 수신 확인을 유지하면서 모든 전달 경로의 탭을 기존 확인 규칙과 같은 4공백으로
바꿉니다.
- **조심해서 볼 파일**: `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 응답과 외부 호출 없음을 확인합니다.
- **병렬 변경**: 전달 경계와 controller가 겹치는 열린 PR은 병합 직전에 충돌과 계약을 다시 확인해 주세요.
- **비용 검토**: 입력마다 한 번 검사하고 탭이 있을 때만 문자열을 만듭니다.
  새 상시 작업이나 알림은 없습니다.

## Evidence

- **확인한 것**: macOS에서 Python 13개와 실제 C 프로세스 경계 6개, fmt 및 engine/core 경계
검사가 통과했습니다.
- **확인한 것**: hooks/core 테스트 4,361개 통과·24개 제외·실패 0개이며, all-targets
clippy도 통과했습니다.
- **확인한 것**: 독립 소스 리뷰와 후속 검토에서 미해결 Fix now는 없습니다.
- **확인한 것**: 이전 커밋의 별도 [Windows OMP
검증](https://github.com/with-hide/hide/actions/runs/41637497094)은 고정
CLI·가짜 모델로 13개 통과, 시작 안내를 한 번에 수신 확인했습니다.
- **확인하지 못한 것**: [첫 PR
CI](https://github.com/with-hide/hide/actions/runs/41637445522)는 Linux
정리 확인에서 실패했습니다.
  수정 후 CI는 대기 중이며, 원래 빈 응답 실패의 원인은 미확정입니다.
- **확인하지 못한 것**: 최신 커밋의 Windows 전체 여정, 실제 로그인, 전체 출시 후보 및 설치 검증은 별도
범위입니다.

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

- PRD: `agents/prd/windows-journey-verified/PRD.md` (sha256
b4a2a9638af3be87eb85e90509da336c8bb556402730ef911af0239d89eb5f3b)
- Base 1fbe27d → head 33860e7, verified 2026-11-03T13:34:59.532Z: PASS
- Verification report:
`agents/runs/windows-journey-verified/verification-report.json` and
`agents/runs/windows-journey-verified/verification-report.md`; source
fingerprint
d97a26238316b11abaaf41ff83ed1cdbce7da2489f4696873b8ed15484984962
- Suites:
- S1: GREEN `python3 agents/runs/windows-journey/verify-fixtures.py`
(exit 0)
- S2: GREEN `bash scripts/verify-cargo.sh test-scoped --jobs 2
--no-fail-fast -p hide-agent-hooks -p herdr-core` (exit 0)
- S3: GREEN `bash scripts/verify-cargo.sh clippy --jobs 2 -p
hide-agent-hooks -p herdr-core --all-targets -- -D warnings` (exit 0)
- Independent full source review: head
`32fc1ef36b890a90070e309a85aa0467f6c575f7`; no open Fix now. F1 (Windows
process-object settlement) and F2 (job cap below the sum of steps)
closed in `f7890a2c38e28d6ee77c708e2fbd25b894bc4ec2`.
- Independent follow-up source reviews: exact `954b5da` output delta,
`3dbf353a` Linux subreaper delta, `7a9e401a` AGY fixture delta and
`33860e7483e2a48aafc606ff51b43dcc1ad2b7df` cast removal; no new Fix now
or follow-up improvements. Previous closures retained; reviewers ran no
build, tests or CI.
- Final same-head Fidelity/Code follow-up:
`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. Advisory `agentReview:
NOT_RUN` remains unchanged.
- First official local `32fc1ef3` FAIL: 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 later `954b5da` PASS.
- First PR CI `41637445522` attempt 1 at `954b5da`: 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.
- First local `3dbf353a` FAIL: 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.
- First local `7a9e401a` FAIL: 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.
- Historical Windows candidate `41606803918` attempt 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.
- Parent-owned Windows OMP run `41637497094` attempt 1, exact
`954b5dafa649ef819035511f17ca5190bd3dac52`: 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 sha256
`6cfdc0c8e7d0253f8e67ca6c6961ae9e5acb89474b8f17c629fb6dcf51682672`; not
final-head, provider-login or full-candidate proof.
- Earlier focused adverse results (absent driver results and the
job-budget mismatch) remain preserved separately; no gate expectation,
retry count or missing-result classification was relaxed.
- Current local run used `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.
- Placement at main `8038c40238b5fc2adce487a43238645ff1078d4a`: Stay as
you are. Overlaps #2038 and #2017 do not justify stacking; after either
lands, merge main once if the repository tool requires it.
- Evidence: 12 registered (12 file); paths are local to the run
directory
  - agents/runs/windows-journey/verify-fixtures.py
  - agents/runs/windows-journey/original-evidence.json
  - agents/runs/release-windows-review/report.md
  - agents/runs/release-output-review/report.md
  - agents/runs/windows-journey/first-final-failure.json
  - agents/runs/release-output-review/linux-subreaper-report.md
  - agents/runs/windows-journey/linux-first-selected.json
  - agents/runs/windows-journey/first-3db-selected.json
  - agents/runs/release-output-review/agy-fixture-report.md
  - agents/runs/windows-journey/first-7a9e-selected.json
  - agents/runs/release-output-review/pipe-cast-report.md
  - agents/runs/windows-journey/windows-omp-954b-parent-summary.json
- Changed paths: 14 (see Files changed)
- Delivery: mode pr, branch `fix/release-windows-journey`, base `main`

</details>
On the core's own engine a family fixture's agent reports a new session
by running Hide's SessionStart hook from inside its pane, through the
same runner a tool call uses. The stand-in draws its composer again after
every command it runs, and since that composer has Claude Code's rule
frame, the frame drawn under a permission prompt made the screen read as
an agent at rest, so the asking row in session-panel left Needs You.

A command the runner marks as the agent's own hook now leaves the screen
as it was, as Claude Code draws nothing for a hook; a tool call still
returns to the composer. Herdr binds the session through its own report
and types nothing into the pane, so only the own engine lane failed.
The diagnostic redaction from main writes a `/home/<name>/` segment as
`~/`, and this test named its temporary home folder `home`, so the logged
legacy and new state paths no longer contained the paths it compares.
The fixture home is now `operator`; the redaction rule is unchanged.

The test file runs only on macOS, so Linux CI never ran it after the
redaction landed; a local macOS check found it.
The stand-in's provider config keeps this branch's session reporter lines and takes main's optional within-ms command budget after the completion file; the journey controller writes both through --write-config.
check-no-workstation-identity reads a literal Linux home path in a tracked file as a workstation identity, which the policy lane refused.
write_config counted an optional within-ms line among the command's arguments while load_config does not, so the two disagreed at the argument limit: a full command with a budget was refused, and a budget with no command was written and then refused on load.
Three places numbered the pane requests of one owner incarnation: the
node's LocalPanes counted from zero on its own, LinkPanes counted on the
core's side of the link, and hide-kit's Owner::issue used the owner's
record of admitted numbers. A number LocalPanes handed out could match one
Owner::issue gave, and the owner then refused a legitimate start as naming
a different intent or as already finished.

LocalPanes now takes its numbers from the owner (Owner::number), the same
numbering Owner::issue uses, so the node side has one. PaneHolders::start,
which no product path called after the link's start call was removed, is
gone with its two implementations and its test fakes; tests start a pane
the way the engine does, by number, reservation, start and retirement.
LinkPanes still numbers on the core's side, since folding it into the
node's owner needs a new link call.
@yansfil
yansfil merged commit fe6f2e3 into main Nov 3, 2026
140 of 143 checks passed
@yansfil
yansfil deleted the feat/engine-two-engine-gate branch November 3, 2026 23:44
yansfil added a commit that referenced this pull request Nov 4, 2026
…2049)

Related: #2017 (two-engine gate, merged)

## Summary

On a machine that switches to Hide's own engine (still behind the
development switch `HIDE_DEV_PANE_HOLDER=1`), Hide's Herdr session moves
over: the same tabs, layout and ids, and the agents reopen their
conversations.
While Hide's Herdr runs, Hide asks first; "Later" leaves a sidebar row,
and a Herdr Hide never used can be imported read only from the row,
Settings, the first run or `hide import herdr`.
A dialed device asks the same question under its name, and its node
reads its save and stops Hide's Herdr there with the code this machine
uses.
An agent whose turn the move or a reboot cut off gets one letter after
it resumes; a resting agent gets none.
Pi, omp, OpenCode and Grok report their first session when the shell
starts or the session switches, so letters reach them before their first
turn.
The Herdr path is unchanged.

![Hide의 Herdr가 돌 때 옮기기 전에 묻는 창 (갤러리 import-ask, ko,
dark)](https://github.com/yansfil/pr-assets/blob/main/hide/feat-engine-b4-transition/159b103/b4-transition-herdr-move-question.png?raw=true)

## Review

- **판단해 주세요**: Hide's Herdr is stopped through its socket's
`server.stop` (D-6 named the program's `herdr server stop`): the same
API, it still works after an update removed the program (B42), and the
end is confirmed by pid and start time, falling back to the system's
end; a device's node stops its Herdr with the same code.
- **판단해 주세요**: a workspace left out shows the converter's English reason
(`its tab 2 does not lay out exactly the panes it holds`) in every
language.
- **판단해 주세요**: the cut-off letter is English like Hide's other notes,
not the PRD's Korean wording.
- **조심해서 볼 파일**: `herdr-core/src/herdr_import.rs` - the record that
holds not-yet-moved panes' Hide state, the commit mark, waiting resumes.
- **조심해서 볼 파일**: `hided/src/herdr_transition.rs` - which Herdr is Hide's
(peer pid, start time, program), stop and its fallback, the core-role
restart.
- **조심해서 볼 파일**: `herdr-core/src/herdr_import/device.rs`,
`hide-host/src/herdr_save.rs` - a device's move: the node reads and
stops (`Call::HerdrSave`, `Call::HerdrStop`, refused unless the server
is still the one found), the save it read is kept in the device's engine
folder, and the next start imports it before any link is up.
- **판단해 주세요**: node protocol goes to 74 for the two calls; main is 71,
the gate 73, and no other open pull request uses 74 (checked 2026-11-04;
check again before the merge, since git does not flag two branches
choosing the same number).
- **판단해 주세요**: `docs/INSTALL.md` gains a support row for the move,
unverified on all three systems until the new-engine journey moves a
live Herdr; a Windows device runs no node, as the dialed device row
already says.
- **판단해 주세요**: a conversation an import gave back whose pane runs
another command (or on Windows, which does not say) now resumes in a new
tab of the same workspace named for the agent, as D-8 says; it waits
again only when that tab cannot open.
- **조심해서 볼 파일**: `hided/src/core_update.rs` - after a commit, a failed
core update does not start the previous build and keeps `current` at the
new one, so a retry starts it again (B40).
- **조심해서 볼 파일**: `herdr-core/src/engine/own/restore.rs` - reads hook
files on the restore thread, gives waiting conversations back to their
panes.
- **조심해서 볼 파일**: `hided/src/pane_auth.rs` - refuses `hide` from a Herdr
pane not moved yet (`pane_not_moved`) before the checkout fallback.
- **판단해 주세요**: on Windows, where the system names no process's program,
Hide's Herdr is the one running from a Hide runtime copy's `herdr.exe`
or a pinned device copy, matched by file identity; a Herdr Hide started
from a copy that was renamed reads as someone else's and is only offered
read only (the `docs/INSTALL.md` cell says so).
- **조심해서 볼 파일**: `herdr-core/src/herdr_import.rs` - every change to the
import record takes one lock in the record's owner, so the core, the
start and a device's move never overwrite each other; the move is marked
done (commit) only before a step that cannot be undone, never for a
read-only import.
- **조심해서 볼 파일**: `hided/src/herdr_transition.rs` - an asked move reopens
conversations only if Hide's Herdr is still stopped at the next start;
one started again keeps them waiting and logs why; the move reads the
Herdr socket a shell named while the own engine is on.
- **판단해 주세요**: 정책 검사 목록 변경과 이유:
`scripts/check-core-touches-no-machine.py` now lists
`herdr-core/src/herdr_import.rs` among the core's own stores (10
touches): the import record beside the engine's saved layout (D-25), the
save a device's node read, kept there until the next start imports it,
and the delivery ledger whose registrations the move hands over before
the core runs. The module stays after Herdr goes (the PRD names it among
the three remaining pieces), so it is a store and not a later layer. The
core now names the save's wire types and read cap from
`hide_node_link::herdr_save` instead of node code.
- **비용 검토**: no high-frequency path; the look runs on its own thread per
ask, the letter tick is one emptiness test when nothing is owed (cap
128, 10 min).

## Evidence

- **확인한 것**: on 2b75d26 (before the policy fix, which moved one
constant and the core's import paths), the full `scripts/verify-cargo.sh
lint` and `scripts/verify-cargo.sh test --no-fail-fast`: 7528 passed, 0
failed, 170 ignored.
- **확인한 것**: among them, a stand-in Herdr stopped through its socket and
through the system, and a pid another process took left alone (B3, B42);
Hide's Herdr known by its runtime copy file (the Windows rule, run here
on macOS); the import record changed from 16 threads at once with
nothing lost; a restarted Herdr keeping conversations waiting; the
new-tab resume (B15); the update that keeps the new build after a commit
and starts it on retry (B40); a device's move at the next start through
a stand-in node; Grok's session start report.
- **확인한 것**: web typecheck, lint and tests on 2be4bb3 (HerdrImport,
FirstRunWizard, onboarding gallery, i18n, the device question under its
name); no web source changed since.
- **확인한 것**: the onboarding gallery's `import-*` states render,
`import-device` among them.
- **확인하지 못한 것**: no live Herdr has moved: the device move is tested to
the link stand-in level, and the real-device journey belongs to the
release verification. Pi, omp and OpenCode's first-session report is
proved by CI's web e2e on this pull request. Cursor is retired from
support, so it reports nothing.

<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