Repository navigation
feat: run Hide on the core's own engine alone and delete Herdr - #2069
Conversation
The remote mailbox lane runs the mailbox journeys, the node contract and a device's holder panes against private daemons and pane holders with no Herdr; the web e2e lane, the Linux real-shell step, the Windows engine contract and the OS contract lane drop their Herdr fetches and steps. The populated-catalog manual measurement, built on Herdr in all three of its parts, is removed; its follow-up is with-hide/hide-private#499.
A release's Linux device bundle carries the helper, the CLI, the agent hooks and the pane holder, as manifest format 3; the package smokes check the installed app carries no Herdr, and the Windows installer smoke keeps only the daemon across a reinstall.
scripts/web-dev.sh places the pane holder beside the daemon and starts no Herdr server, keeping an isolated run's state folder under /tmp, where a holder's socket path fits. INSTALL.md says what the first launch, an update, a device and an uninstall do now that Hide runs no Herdr, that moving the core is paused (with-hide/hide-private#491), and drops the support rows that described Hide's Herdr.
# Conflicts: # docs/INSTALL.md # hide-kit/src/lib.rs # hide-kit/src/tests/codex_trust_cases.rs # hided/src/env.rs # hided/tests/it/core_move.rs # hided/tests/it/real_herdr.rs
…e fixture parameters
Hide no longer runs, moves or installs anything of Herdr outside the core: the device engine refusal, the Herdr service starts and socket in the node protocol and the kit call, the device Herdr copy, pin and behind-line, the Herdr takeover step and restart, the kit's spawn guard and Herdr integration features, the hooks' direct observation and the graph's direct input lines, and the shells' Herdr prompt mark. The opener guard keeps the shell-call guard, a Herdr step saved by an earlier version opens the agent step, and the guards' documents and pinned plugin bytes follow.
# Conflicts: # docs/INSTALL.md # docs/UI_BEHAVIOR.md # herdr-core/src/engine/contract.rs # web/e2e/fixture-agents.ts # web/e2e/layout.spec.ts # web/e2e/own-windows-agent-start.ts
The first-run Devices step read Herdr's saved machines with `herdr machine list`. Without a Herdr that read failed, so the step never settled and stayed in the route. It now lists the ssh config Hosts and this PC's WSL only, settles as an empty list when there is nothing, and drops the Herdr profile rows, their refusals and the node's Herdr program.
A Herdr move stops the core and starts it again in the same daemon. The engine answered from a second node that nothing closed, and the daemon's routes still held the core handle, so the old engine kept the pane owner lock and the new core's restore waited for it until it gave up. The core and its engine now share one node, which the core's stop already closes.
# Conflicts: # docs/INSTALL.md # docs/TESTING.md # scripts/tests/test_ci_plan.py # web/e2e/codex-plan-approval.spec.ts # web/e2e/engine-fixture.ts
…holder can leave" This reverts commit b1c1122.
yansfil
left a comment
There was a problem hiding this comment.
PASS · R2 해소 확인 · serious 0 / ordinary 0 / minor 0
40f03d0f193daee3ea35f817d957430990309e79..cf52ca2d5b6807ae81f541edee5d55a3bd91f520에서 요청된 R2 잔여만 재리뷰했습니다.
docs/ARCHITECTURE.md:2150-2151: 삭제된 real_herdr 시험과 HIDE_E2E_HERDR_BIN 대신 실제 IPC·holder 연결/해제/인계 시험, connect_stop·handshake·engine::contract를 지정합니다. 해당 시험과 Windows CI의 실행 경로가 존재하고 설명한 검증 경계와 일치합니다.docs/TESTING.md:590: WSL 연결 종료와 강제 종료 뒤 같은 holder PID가 남는다는 설명이 실제 holder_pids 비교와 일치합니다.- 같은 문서의 옛 Herdr 계약 시험 안내, 계약 모듈 주석과 CI의 죽은 제외 조건도 함께 정리됐습니다. 원칙 1의 활성 참조 정리로 R2를 닫습니다.
R1 데이터 보존과 R3 first-run 복구는 앞선 리뷰의 해결 상태를 유지합니다. 내부 이름과 지정된 상태 설명의 후속 정리 결정도 그대로 반영합니다.
이번 결론은 R2 해소에 한정합니다. 함께 올라온 cf52ca2d5의 별도 e2e 수정은 이번 요청의 검토 범위 밖입니다. 로컬 빌드·시험, 브라우저·네이티브 확인과 Windows PC 접속은 하지 않았습니다. 해당 SHA의 CI는 확인 당시 plan 진행 중이므로 전체 CI 통과나 릴리스 준비 완료를 뜻하지 않습니다.
…nly what the registry has more
yansfil
left a comment
There was a problem hiding this comment.
FAIL · serious 1 / ordinary 0 / minor 0
범위: a42b7cef2..5eb5ed2bb110b8abc353b72ddbf41b9f44594e2f의 두 커밋. 요청한 e2e 대체와 Windows 환경 병합 규칙을 검토했습니다.
- serious · R4 · 정확성:
vendor/portable-pty/src/cmdbuilder.rs:185-201,244에서 시스템 레지스트리를 먼저 같은 map에 넣은 뒤, 사용자 레지스트리의 같은 이름은Some(_) => {}로 버립니다. 이 분기는 처음 상속된 값과 이번에 시스템 레지스트리에서 보충한 값을 구분하지 않습니다. 예를 들어 daemon 시작 당시 없던JAVA_HOME을 이후 시스템에는C:\Java\system, 사용자에는C:\Java\user로 설정하면, 새 pane은 사용자 JDK 대신 시스템 JDK를 사용합니다. 이전 구현은 이 경우 사용자 값이 덮어썼고, Windows도 일반 변수는 사용자 값이 시스템 값을 재정의합니다(Windows 환경 처리 순서). 처음 상속된 키만 보호하고, 보충할 레지스트리 환경은 시스템 다음 사용자 순으로 먼저 완성한 뒤 병합해 주세요. PATH의 시작 경로 우선 규칙은 유지할 수 있습니다.hide-holder/tests/it/lifecycle.rs:114-146은 이미 상속된 PATH·TEMP 보존만 확인하므로, 시작 환경에 없는 동일 키의 시스템·사용자 충돌도 검증해야 합니다.
cf52ca2d5의 e2e 5개는 시험 자체를 지우거나 건너뛰지 않았습니다. 제거된 Herdr 통합 항목과 badge를 현재 항목으로 바꾸고, 없어진 spawn guard 대신 설치된 opener guard의 거절 형식·안내·단일 로그와 일반 호출 및 은퇴한 callback의 동작을 계속 검증합니다. 4개 언어·2개 테마·키보드 복귀 검사도 유지됩니다. 원칙 1에 맞는 소비자 정리이며, 기대값 약화로 판단할 지적은 없습니다.
Windows 회귀 시험은 실제 holder에서 PATH 접두부와 TEMP를 출력받고 종료를 확인하므로, 기존 상속 값을 보존하려는 수정 자체는 검증합니다. 다만 위 레지스트리 우선순위 회귀는 잡지 못합니다. R1·R2·R3은 앞선 해결 상태를 유지합니다.
로컬 빌드·시험, 브라우저·네이티브 확인과 Windows PC 접속은 하지 않았습니다. R4는 소스의 분기와 공식 병합 규칙을 대조한 결과입니다. 해당 SHA의 전체 CI 통과는 아직 확인하지 않았습니다.
yansfil
left a comment
There was a problem hiding this comment.
PASS · R4 해소 · serious 0 / ordinary 0 / minor 0
범위: 5eb5ed2bb110b8abc353b72ddbf41b9f44594e2f..5c07ac5fb5a2d9f313990bdb1fb623a40fcf4271. R4 수정과 함께 바뀐 시험·문서를 재리뷰했습니다.
vendor/portable-pty/src/cmdbuilder.rs:196-205,242-283은 레지스트리 환경을 별도로 완성한 뒤 상속 환경에 보충합니다. 일반 변수는 사용자 값이 시스템 값을 대체하고, PATH는 시스템·사용자 순으로 잇습니다. 그 결과를 상속 환경에 넣을 때는 기존 변수 값을 보존하고 PATH의 기존 경로를 앞에 둡니다. 따라서 앞선 JAVA_HOME 충돌 사례에서 사용자 값이 선택되며 R4를 닫습니다.
hide-holder/tests/it/lifecycle.rs:157의 새 시험은 운영 코드가 실제 호출하는 merge_registry_environment를 사용하며, 대소문자가 다른 JAVA_HOME 충돌의 사용자 값, 상속 TEMP 보호, PATH 순서, 레지스트리에서만 오는 ComSpec, USERNAME 제외를 고정된 기대값으로 확인합니다. 이전의 실제 holder PATH·TEMP 출력 시험도 그대로 남았습니다. 순수 병합 시험은 실제 Windows 레지스트리나 프로세스 실행 증거와 구분됩니다. vt.yml은 holder 시험을 각 OS에서 실행하도록 연결돼 있습니다. 원칙 12의 관찰 가능한 병합 결과 검증에 맞고, 기존 기대값을 약화하지 않았습니다.
PATCHES.md와 ARCHITECTURE.md도 같은 병합 순서로 갱신됐습니다. R1·R2·R3은 앞선 해결 상태를 유지하며 이번 변경에서 추가로 막는 지적은 없습니다.
로컬 빌드·시험, 브라우저·네이티브 확인과 Windows PC 접속은 하지 않았습니다. 해당 SHA의 verify 41909777885는 확인 당시 pending이며, 별도 이전 실행 41909691551은 cancelled입니다. 이 소스 재리뷰 PASS는 c2 전체 CI 통과나 릴리스 준비 완료를 뜻하지 않습니다.
yansfil
left a comment
There was a problem hiding this comment.
PASS: 5c07ac5fb..f1c8f1a99 재리뷰. serious 0, ordinary 0, minor 1.
#2075(af768810d)를 합친 충돌 해소를 두 부모와 대조했습니다. 이전 R4의 수정은 유지됩니다.
- 정확성·모듈 경계: 프로토콜 75의 편지 parts 계약을 유지하고 Herdr 필드 제거를 76으로 구분했습니다. holder의 Submit 협상과
Whole/Refused분기, 첫 입력 준비 확인, prompt 경계가 유지됩니다. - 파편화·단순성: 원칙 1에 따라 폐기한 Herdr
AsTyped, observer 경로와 중복 시험 harness를 되살리지 않았습니다. holder 입력 변환·프로토콜·watch와 시작 판정 코드는 main의 변경을 유지합니다. - 소유권·한도: 재전송의 만료 시각, 입력 상한, 편지 뒤 입력 순서와 unsupported/timeout 보고가 유지됩니다. 이번 충돌 해소에서 새로운 데이터 삭제 경로는 발견하지 못했습니다.
- 시험: holder 제출 간격·순서, 미지원 holder의 입력 거부, 만료·상한 초과 보고의 단언을 유지했습니다. 해결된 journey 제외를 제거한 문서와 실행 목록도 일치합니다.
minor R5, 시험·단순성: hide-node/src/terminal/tests.rs:1193의 a_herdr_session_takes_a_forks_released_keys_as_typed는 이름과 달리 이제 harness_with의 Submissions::Whole holder를 검사합니다. 삭제한 Herdr AsTyped 경로가 검증되는 것처럼 읽히므로 실제 holder의 쓰기 순서를 나타내도록 이름을 바꾸거나 기존 holder 시험과 합쳐 주세요. 실행 경로의 결함은 아니므로 머지를 막지 않습니다.
범위는 이 merge의 통합과 충돌 해소입니다. 로컬 빌드·시험, Windows 기기 접속과 앱 조작은 하지 않았습니다. 해당 SHA의 verify 41929574596은 진행 중이며, 이 소스 리뷰 PASS는 c2 전체 CI 완료나 c3 머지 순서·릴리스 통과를 뜻하지 않습니다.
…e holder tests now cover
yansfil
left a comment
There was a problem hiding this comment.
PASS: f1c8f1a99..6ab3a3ad2의 R5만 재확인했습니다. serious 0, ordinary 0, minor 0. R5 닫음.
삭제한 19줄은 Herdr 이름으로 Whole holder 경로를 검사하던 중복 시험입니다. 원칙 1과 시험 관점에서 삭제가 적절합니다.
hide-node/src/terminal/tests.rs:1050의 fork 해제 시험은 Whole harness로hello\rmore!출력과 Enter 앞 간격을 검사합니다.:1061의 지연 attach 시험은 삭제된 시험과 같은hello+ Enter 입력에 대해hello\r출력과 간격을 검사합니다.written(:1006)은 합친 출력 전체를 기대값과 비교하며,Submitting::submit(:273)이 실제 gap을 둡니다.hide-node/src/terminal/tests.rs:1077의 편지 중 fork 해제 시험은 편지가 끝나기 전 무출력과 이후hello\r!순서를 함께 검사합니다. 기존 실패·상한 검증은 변경되지 않았습니다.- 정확한 증거 범위: 삭제 전후 시험 모두 Submit 호출 횟수 자체를 세지는 않습니다. 단일 제출 구성은
hide-node/src/terminal/input.rs:749가 text와 Enter를 하나의Typed::Submit으로 만들고,hide-node/src/terminal/mod.rs:1539가 replay를 한 번 꺼내 넘기는 소스 흐름으로 확인했습니다. 따라서 삭제로 기존의 호출 횟수 단언을 잃은 것은 아닙니다.
이번 판정은 R5 삭제의 정적 재리뷰입니다. 로컬 빌드·시험은 실행하지 않았으며, 전체 CI·머지·릴리스 판정을 대신하지 않습니다.
…e core when it does
yansfil
left a comment
There was a problem hiding this comment.
FAIL: 6ab3a3ad2..aaebcd8a9 깨우기 수정 재리뷰. serious 1, ordinary 0, minor 0. 이전 R1~R5는 닫힌 상태입니다.
serious R6, 정확성·시험: herdr-core/src/engine/own/mod.rs:1460-1465에서 스냅샷과 다음 알림을 서로 다른 시각으로 계산해 Starting 종료 알림을 잃을 수 있습니다. Topology::state는 자체 Instant::now()(topology.rs:1072)로 launch_pending=true를 담습니다. 화면이 이미 idle이고 입력 준비도 끝난 pane의 settle 직전에 이 읽기가 시작되고, topology를 복사하는 동안 settle을 지나면, 뒤의 next_start_change(Instant::now())는 start_changes_at의 !launch_pending(now) 분기(agents.rs:383-384)에서 None을 반환합니다. arm(None)은 기존 예약까지 지웁니다. 시계 스레드가 아직 해당 알림을 처리하지 못한 순서라면, pending 스냅샷만 반환되고 다음 알림은 없어집니다. 다른 facts나 재발행 요청이 오지 않으면 행은 Starting에 남습니다. coordinator의 주기 timeout은 엔진을 다시 읽지 않으므로 스스로 복구하지도 않습니다.
스냅샷과 다음 알림을 동일한 기준 시각으로 계산해 주세요. 그 시각에 pending이었다면 예약 시점에는 이미 지난 settle이라도 즉시 알림을 내도록 남겨야 합니다. settle 직전 상태를 만든 뒤 예약 시점이 경계를 지난 경우와 deadline 경계를 시간 주입 등으로 결정적으로 검사해 주세요. 현재 시험은 settle 300 ms 전에 예약하므로 이 경계를 보지 않습니다.
나머지 관점: 기존 상태 축과 watcher를 재사용하고, 시계는 예약 하나와 스레드 하나만 소유하며 잠금을 놓고 watcher를 부릅니다. 원칙 14·15에 해당하는 Drop 종료·join과 고정 크기 예약을 확인했습니다. session 읽기마다 pane 수에 비례하는 순회가 하나 추가되고, 알림은 기존 재발행 경로로 합쳐집니다. 이 delta에서 사용자 데이터 삭제나 기존 단언을 약화한 변경은 발견하지 못했습니다.
이 판정은 소스의 가능한 실행 순서를 근거로 합니다. 로컬 빌드·시험이나 Windows 기기 실행은 하지 않았고, 작성자의 시험 통과 보고를 직접 재현한 것으로 보지 않았습니다. 전체 CI·머지·릴리스 판정은 별도입니다.
yansfil
left a comment
There was a problem hiding this comment.
FAIL: aaebcd8a9..489a18977 두 커밋 재리뷰. serious 1(R6 잔여), ordinary 0, minor 0.
615f36e5a는 한 번의 session 읽기 안에서 스냅샷과 예약 시각이 엇갈리던 경로를 고쳤습니다. 그러나 화면에 반영하지 않는 다른 session 읽기가 만료 알림을 지우는 경로가 남습니다.
serious R6 잔여, 정확성·소유권·시험: herdr-core/src/engine/own/mod.rs:1466, herdr-core/src/engine/own/start_clock.rs:48-54.
- coordinator가 유일한 pending pane의 Starting 스냅샷을 읽고 settle 시각 T를 예약합니다.
- T가 지났지만 시계 스레드가 아직 실행되지 않은 사이, 별도 조회가
session()을 읽습니다. 실제로OwnEngine::agents(mod.rs:1528)도 이 함수를 부르고, 시작 식별 조회인coordination/executor.rs:264등이 그 결과만 사용합니다. - 새 조회는 이미 settled이므로
next_start_change(now)가 None입니다.arm(None)은 처리 전의 T를 지웁니다. 이 조회는 coordinator의 스냅샷을 갱신하거나 Republish를 보내지 않습니다. - 시계는 깨어나도 예약이 없으므로 알리지 않고, 다른 변화가 없다면 화면은 이전 Starting에 남습니다.
같은 now를 쓰는 것만으로는 이 실행 순서를 막지 못합니다. 이미 만료됐고 아직 전달하지 않은 예약은 새 예약이나 None으로 바꾸더라도 watcher에 한 번 전달되도록 해 주세요. 또는 예약 갱신의 소유자를 실제 게시 경로로 제한해야 합니다. 시계 처리를 잠시 지연한 상태에서 T를 넘긴 비게시 조회가 들어와도 watcher가 알림을 받는 결정적 시험이 필요합니다. 추가된 경계 시험은 state_at과 next_start_change만 비교하고 실제 arm과 여러 조회 사이의 순서를 거치지 않습니다.
489a18977의 변경은 확인했습니다. launch_pending 동안 완료 상태를 Starting으로 표시하고 Working과 demand의 우선순위는 유지합니다. 정상 첫 턴이 빠르게 끝나도 pending 종료까지 완료 표시가 늦어지는 정책이 문서와 시험에 반영됐습니다. 이 변경 자체에 추가 지적은 없습니다.
파편화·단순성·모듈 경계에서는 기존 상태 축과 시계 경로를 재사용하며, 원칙 1에 따라 옛 Topology::state를 제거했습니다. 새 자원이나 데이터 삭제는 추가하지 않았습니다. 다만 원칙 14의 알림 전달 책임은 위 경로에서 아직 충족되지 않습니다.
소스 실행 순서에 근거한 판정이며 로컬 빌드·시험, Windows 접속과 앱 조작은 하지 않았습니다. 해당 SHA의 verify 41942118709는 진행 중입니다.
…e, in place of a start clock
yansfil
left a comment
There was a problem hiding this comment.
PASS: 489a18977..4311bb40a 두 커밋 재리뷰. serious 0, ordinary 0, minor 0. R6 닫음.
- 정확성·소유권:
own/topology.rs:1088에서 같은 now로 스냅샷의 pending과settles_at을 계산합니다.session_sync/coordinator.rs:420-434는 자신이 보관한 게시 스냅샷의 시각으로 기다린 뒤, 만료되면 기존 Republish 경로에서 다시 읽고 게시합니다.engine.agents등 다른 읽기는 이 스냅샷이나 예약을 바꾸지 않으므로 R6의 비게시 조회에 의한 알림 취소 경로가 없어졌습니다. 읽기 실패는 기존 재연결 경로로 넘어갑니다. - 파편화·단순성·모듈 경계: 원칙 1·7·14에 따라 별도 start_clock과 arm 호출을 삭제하고 기존 coordinator에 갱신 책임을 모았습니다. 절대 시각은 내부 ProjectionState에만 있고 화면으로 보내는 payload에는 추가하지 않았습니다.
- 한도·성능: 스냅샷당 다음 시각 하나만 보관합니다. pane 순회로 구한 가장 빠른 시각을 기존 대기 기한과 비교하며, 별도 스레드·큐·주기 폴링을 추가하지 않습니다.
- 완료 판정:
agent_state/axes.rs:1258의 completion_seq 구분을 확인했습니다. 새 시작은PaneAgent::started에서 완료 순번 없이 만들고, 이번 실행의 Working 뒤 정지는agents.rs:584에서 완료 순번을 얻어 그대로 projection에 실립니다. 따라서 이전 훅의 Done만 남은 시작과 이번 실행에서 실제 완료한 행을 구분하며, Working과 demand 우선순위를 유지합니다. - 시험: pending과 다음 시각의 settle/deadline 경계, 비게시 조회 후의 읽기, coordinator 대기 시각·만료 판정, 이번 실행 완료 순번이 있는 행의 비Starting 단언을 확인했습니다. 삭제한 시계 시험은 제거된 구현에 속하며, 기존 web e2e의 기대값을 약화한 변경은 없습니다. coordinator 시험은 대기 계산·만료 판정 단위 시험이며 실제 실행 전체를 검증했다고 보지는 않습니다.
로컬 빌드·시험, Windows 접속과 앱 조작은 하지 않았습니다. 작성자의 실행 결과는 직접 재현한 증거와 구분합니다. 해당 SHA의 CI는 진행 중이며, 이 소스 리뷰 PASS는 c2 전체 CI 완료나 c3 머지·릴리스 판정을 대신하지 않습니다.
There was a problem hiding this comment.
PASS: 4311bb40a..2cfb453de 두 커밋 재리뷰. serious 0, ordinary 0, minor 0. 이전 지적은 닫힌 상태입니다.
- d99d5ba, 시험:
web/e2e/fixture-agents.ts:60은 기존 세션 ID 일치 조건을 유지하면서 Starting 종료를 추가로 기다립니다. 20초 제한은 유지되고 생략이나 예외 무시는 추가하지 않았습니다. sidebar 높이 30px, 정렬·키보드 단언은 그대로입니다. fork 시험의 입력·시작 시간 측정도 이 대기 전에 끝납니다. - 2cfb453, 정확성·경계:
herdr-core/src/fork/worker.rs:439의 at_rest를 첫 대기와 전송 직전 재확인에 함께 사용합니다.OwnEngine::pane_agent_status(own/mod.rs:1914)는 interactive이며 launch_pending이 끝난 경우에만 실제 상태를 반환하므로 done 허용이 입력 준비 확인을 우회하지 않습니다. Working·Unknown·Blocked는 여전히 허용하지 않습니다. - 파편화·단순성: 두 확인 지점의 조건을 함수 하나로 모았습니다. 원칙 6·7에 맞게 기존 입력 준비 판정과 fork 경로를 재사용합니다. 고정된 Herdr 원본의 시작 대기도 입력 준비가 된 idle과 done을 허용합니다.
- 소유권·한도: 기존 대기 기한과 실패 반환, composer 정리, fork 후보 식별과 세션 보고 흐름을 유지합니다. 새 자원이나 사용자 데이터 삭제 경로는 없습니다.
- 시험: 추가된 done 경우는 Working 다음 Done을 두 번 읽고 성공하며, 전체 호출 목록 단언에 submit_text와 report_agent_session이 각각 한 번 포함됩니다. 미확인·중복 후보와 읽기 실패에 대한 기존 단언은 유지됩니다.
로컬 빌드·시험, Windows 접속과 앱 조작은 하지 않았습니다. 해당 SHA의 verify 41951563011은 진행 중이며, 이 소스 리뷰 PASS는 전체 CI·머지·릴리스 통과를 뜻하지 않습니다.
추가 확인, 재확인 시점의 경쟁: 첫 대기 이후 인덱스 읽기·composer 정리 중 Working으로 바뀌면 두 번째 확인에서 거절합니다. 두 번째 상태 읽기와 submit_text 자체는 원자적이지 않아 그 사이 상태가 바뀌는 기존 간격은 남습니다(fork/worker.rs:491-500, own/mod.rs:2056). 이번 두 커밋은 그 간격이나 전송 방식을 바꾸지 않습니다. 따라서 경쟁이 완전히 제거됐다는 판정은 아니며, 이 delta에서 준비 확인을 약화한 새 경로는 발견하지 못했습니다.
yansfil
left a comment
There was a problem hiding this comment.
PASS: 2cfb453de..c8eacaa09 fixture 변경 재리뷰. serious 0, ordinary 0, minor 0.
- 정확성·시험:
web/e2e/daemon-actions.ts:154의 startedAgentIn은 기존 행 존재·종류 확인에 비Starting 조건을 추가합니다. 각 helper는 시작 명령과 기존 입력 준비·세션 보고를 먼저 진행하므로, 이후 spec의 행동을 기다려야만 준비를 끝내는 순환은 발견하지 못했습니다. setAgentSession과 startAgentInProject의 세션 ID 일치 조건도 유지합니다. - 기존 높이·로고·키보드 단언, 기대값과 skip 조건은 바꾸지 않았습니다.
desktop/e2e/agent-logo-peek.spec.ts:56의 높이 불변 단언도 그대로입니다. 행의 Starting을 직접 검사하는 e2e는 검색 범위에서 발견하지 못했으며,web/e2e/agent-tab-groups.spec.ts:251의 복원 중앙 화면 Starting 검증은 별개로 유지됩니다. 이 대기를 시작 전 과정이나 시작 중 입력의 안전성을 검증한 증거로 해석하지는 않습니다. - 파편화·단순성·모듈 경계: 원칙 7에 따라 기존 snapshot 기반 fixture 계층의 한 함수로 준비 조건을 모았습니다. spec별 숫자 보정이나 제품 상태 변경은 없습니다. 세션 없는 시작도 같은 준비 조건을 사용합니다.
- 소유권·한도: 20초·30초 등 기존의 유한한 until 대기를 사용하며, 시간 초과와 연결 오류는 실패로 전파됩니다. 새 프로세스·반복 전송·무한 재시도나 사용자 데이터 삭제는 없습니다. 기존 연결의 finally 정리도 유지됩니다.
로컬 빌드·시험과 앱 조작은 하지 않았습니다. 작성자의 실행 결과는 독립 실행 증거와 구분합니다. 해당 SHA의 verify 41957439426은 진행 중이며, 전체 CI·머지·릴리스 판정은 별도입니다.
…runs Hide has run every pane on the core's own engine since with-hide#2069, but about 3,000 comment lines still named Herdr as the one that owns, reports, confirms or refuses. They now name the engine, the pane holder or the node, and the clauses about Herdr-only mechanisms that no longer exist are removed. Attribution, the Herdr-session move into the engine, comparisons with Herdr's pinned source, identifiers, wire ids and environment variable names stay.
…r runs Hide has run every pane on the core's own engine since with-hide#2069, but the architecture, delivery, status, UI behavior and hook guides, AGENTS.md and the procedures still named Herdr as the owner of panes, layout, focus and agent state, and described Herdr-only mechanisms (event subscription and replica, launch settle, observer reattach, plugin uninstall, the About tab's Herdr rows) the code no longer has. They now describe the engine, the pane holder and the node, and the removed mechanisms are gone. Attribution, the move of a Herdr session into the engine, the removal of Herdr copies an earlier Hide left, dated measurements and identifiers stay. Table rows in docs/README.md that named files that no longer exist point at the current ones.
…ith-hide#2167) ## Summary Hide stopped running Herdr in with-hide#2069, but code that only a Herdr connection could reach stayed behind. This removes it, with its tests, and fixes two texts that still said Herdr does something. Stored files and wire codes a 1.2.1 install sends are unchanged; the Herdr import path stays. 스크린샷 없음: the removed pane caption ("scroll held by another client") cannot appear since 1.2.0, so no screen changes. | # | Candidate | Outcome | | --- | --- | --- | | 1 | `codex_trust::learn_herdr_entries` | Removed, with `hook_entries`, `NotLearned`, `MAX_LEARNED_ENTRIES` (only learning fed them) and their tests | | 2 | `layout::herdr_takeover_record` | Removed; `docs/INSTALL.md` no longer lists `herdr-handoff.json` as current | | 3 | `opencode-host.ts` `config.herdr` branch | Removed (`listed`, `announce`, the config field) | | 4 | Observer scroll path | Removed end to end: `Engine::scroll_pane`, `spawn_viewport_scroll`, `viewport_scrolls`, `panes_scroll_held`, `scroll_held_elsewhere`, the `controlled_elsewhere` notice, its web caption and copy | | 5 | `PartCause::HerdrAbsent` / `UpdateHerdr` | Removed; an old `herdr_absent`/`update_herdr` reads as `Other` through `#[serde(other)]` | | 6 | nextest `remote_core::` / `core_move::` | Both overrides removed: no test module matches them | | 7 | `core_move::Inspection.herdr_socket` | Kept: always `None`, but `supervisor.rs:874` and `supervisor/move_back.rs:314` branch on it in the move path that waits on with-hide/hide-private#491 | | 8 | `notify_herdr` toast channel | Removed with `Engine::notify`, the English title/body and `Core::linked_nodes`; phone push is the one channel | | 9 | `coreError` herdr keys | Kept: every key is still reached (`workspace.control_unavailable`, `agent_start.refused_by_herdr`, `live::SessionFetchError::state`); copy already says "terminal engine" (c7eb9a5) | | 10 | `declarations.rs` Cursor `would_change` | Rewritten: "hooks Hide installs" instead of a pinned Herdr integration | | 11 | `hided-ws.schema.json` `thread_input` | Description names `Engine::submit_text`; `hided/src/mobile/pane.rs` already said "This Mac's engine" | ## Review - **판단해 주세요**: 4 removes the `controlled_elsewhere` notice kind and `scroll_held_elsewhere`; the field was absent from the wire while false, and only an `observing` pane (gone from the node since 15c8986, v1.2.0) could set it. - **판단해 주세요**: 7 is kept: removing the field makes the whole move execution after the checks unreachable code to delete, which is with-hide#491's call, not this cleanup's. - **판단해 주세요**: `transport_and_scroll_transitions_derive_pane_headers_once_each` is now `transport_transitions_...`: its scroll half went with the hold, so the name follows. - **조심해서 볼 파일**: `herdr-core/src/runtime/terminal.rs` - high-frequency wheel path; the controlled and before-attach branches are unchanged. - **조심해서 볼 파일**: `hided/src/mobile/mod.rs` - failure path of the human notice; a failed push still logs `human.channels_failed`, now without `herdr`/`herdr_node`. - **조심해서 볼 파일**: `contracts/snapshot-wire-enums.json` - two retired `kit_part_cause` values leave the contract. ## Evidence - **확인한 것**: the mission check on c365cce: `fmt-check`, `clippy --workspace --all-targets -D warnings`, `web lint`, `web typecheck` all pass. - **확인한 것**: nextest for `herdr-core`, `hide-agent-hooks`, `hide-agent-adapter` passes; `web test` 291 files, 2663 tests pass. - **확인한 것**: `hide-kit` fails 36 tests locally, the same on the base commit 1f587e8 (6 of the same 9 picked tests fail there too), so it is this machine, not this change; CI is the proof for it. - **확인한 것**: each removal's callers found with `rg` across the workspace before deleting; only the item's own tests reached it. - **확인한 것**: `hided` `held_letter_notice::` 3 tests pass; the `human.channels_failed` record no longer carries `herdr`. - **확인하지 못한 것**: the rest of `hided`'s integration tests were not run locally (disk and time); CI runs them. - **확인하지 못한 것**: no live run in the app; nothing on screen changes. <details><summary>More Herdr-era code found, not removed (out of this node's scope)</summary> - `hide-node/src/terminal/protocol.rs` `Mode::Observe` and the `"observing"` matches in `runtime/terminal.rs`, `runtime/attachments.rs`, `PaneView.tsx`/`paneMove.ts` live sets: no node reports it now. - `hide-kit/src/record.rs` `set_herdr_hook_entries`: only tests call it now that learning is gone. - The holder's `scroll(pane, Some(offset))` form: only `None` is sent now. - `docs/agent-hooks.md:1256`, `docs/BROWSER_DISPLAYS.md:587,594`, `docs/ARCHITECTURE.md:2761` cite `hided/tests/it/remote_core.rs` / `core_move::` tests that no longer exist. - `herdr-core/src/runtime/session_thread.rs:17` comment still names `pane.send_input`. </details> <details><summary>Verification record</summary> </details>
Related: #2067, #2068, #2070
Refs with-hide/hide-private#491
Refs with-hide/hide-private#499
Summary
이 PR 뒤로 Hide는 macOS, Linux, Windows와 연결된 기기 모두에서 자체 엔진(pane마다 하나의 보관 프로그램) 하나로만 돕니다.
패키지와 기기 묶음에
herdr가 없고, 앱, 로그인 항목,hide connect어디서도 Herdr를 띄우거나 넘겨받지 않습니다.Herdr를 쓰던 사람의 작업은 앞선 PR의 옮기기와 가져오기로 넘어오고, 그 길과 kit의 Herdr 통합 은퇴만 남습니다.
새 엔진에서 코어 옮기기는 일시 중단합니다(Refs with-hide/hide-private#491).
화면, CLI, 현행 문서에서 Herdr를 엔진처럼 말하던 문구는 "터미널 엔진"으로 바꾸거나 지웠습니다.
내부 이름(
herdr-core, wire와 저장 이름)은 동작이 바뀌지 않는 기계적 변경이라 1.2.0 뒤 별도 PR에서 바꿉니다.스크린샷 없음: 화면 구조는 그대로이고, 문구 교체와 죽은 칸 삭제뿐입니다(기기 추가의 Herdr 소켓 칸, About의 Herdr 버전·프로토콜·소켓·바이너리 줄). About의 엔진 줄은 이제 연결 상태를 문장으로 보여 줍니다.
Review
herdr_version을 더 보내지 않아 웹이 모든 기기 체크아웃의 "용도 설정"을 "Herdr 0.9.1 이상 필요"로 막고 있었습니다. 그 막음과 필드를 지웠습니다(c7eb9a5ad).HIDE_DEV_DEVICE_HOME)을 주면 시작 단계가 옛 세 번째 칸($c)을 읽어 "홈을 만들 수 없음"으로 실패했습니다(c77f791e8).hide device add --socket은 B3에서 빠졌는데 계약과 안내가 남아 있었습니다(71b70b3cc).PATH와TEMP를 덮어써, 데몬이 받은PATH가 pane에 닿지 않았습니다(Windows journey의 모든 에이전트가claude를 못 찾음). 이제 레지스트리 환경을 Windows가 로그인 때 만드는 대로 먼저 완성하고(시스템 다음 사용자, 같은 이름은 사용자 값,PATH만 둘을 이음), 데몬의 변수는 그대로 둔 채 없는 변수만 더하며,PATH는 데몬의 폴더 뒤에 레지스트리에만 있는 폴더를 붙입니다. macOS, Linux와 같은 규칙이고, Hide를 켠 뒤 설치한 CLI도 계속 찾습니다. 업스트림과 Herdr는 덮어썼습니다(5eb5ed2bb,5c07ac5fb,vendor/portable-pty/src/cmdbuilder.rs의merge_registry_environment).holder-perf.py와web-shell-measure는 Herdr 경로만 지워 남겼습니다(Refs with-hide/hide-private#499).741346616).Grok과 agy 훅 e2e는 이제
herdr agent start대신 시스템 열기(open report.html)를 막는지 봅니다(cf52ca2d5).%%errorlevel%%), 준비 파일은 읽으면서 쓸 수 있게 .NET으로 씁니다.@herdr제외 옵션을 web, desktop, 패키지 e2e에서 뺐습니다.real_herdr.rs를 가리키던 곳을 지금의 증명으로 바꿨습니다. 전송은hide-platformipc와 holder 시험, Windows 기동은connect_stop,handshake, ConPTY 위 엔진 계약, WSL은 같은 holder 프로세스가 링크 끝과 소유자 강제 종료를 넘어 남는지입니다(a42b7cef2).Submissions::AsTyped)는 Herdr 세션이 없어 지웠고, 노드 시험의 기본 세션은 holder처럼 제출을 통째로 받습니다. journey의 Pi, OpenCode, fork, wake 제외는 main대로 모두 풀었습니다(f1c8f1a99).launch_pending) 행은 일하지 않고 엔진이 그 시작 뒤 턴이 끝난 것을 보지 못한 한 "시작 중"입니다(Claude Code와 agy가 지난 실행의 훅에서 들고 있는 "턴 끝남"은 세지 않습니다,agent_state::agent_starting). 화면이 이미 쉬고 있어 아무것도 바뀌지 않아도, 세션 읽기가 그 시작이 끝날 수 있는 시각(ProjectionState::settles_at)을 함께 내고, 그 읽기를 게시한 coordinator가 그때 다시 읽어 행이 쉬는 중으로 바뀝니다. 다른 조회는 읽기만 합니다. 엔진이 치는 편지는 원래도 시작이 끝날 때까지 기다렸고, 운영자가 직접 치는 키는 Herdr처럼 그대로 갑니다(aaebcd8a9..4311bb40a)./fork를 칩니다. Herdr v0.9.5의 시작 대기와 같은 규칙입니다(2cfb453de).openFixture,setAgentSession,startAgentIn,startAgentInProject,agentPane)가 행이 "시작 중"을 벗어난 뒤(startedAgentIn)에 넘기도록 했습니다. 시험 기대값은 그대로입니다(d99d5ba49,c8eacaa09).hided/src/core_move/preflight.rs- failure path: 코어 옮기기를 이유와 함께 거절.hide-node/src/ssh/bootstrap.rs- 기기 시작 스크립트의 칸 순서(Herdr 칸이 빠짐).hide-node/src/ssh/device_bundles.rs,desktop/scripts/device-helpers.mjs- 기기 묶음 형식 3, 옛 묶음 거절.hide-kit/src/herdr_integration.rs- 운영자 설정 파일을 지우는 유일한 길(hide-agent-hooks).herdr-core/src/links/store.rs- 저장소 15판, 옛 표를 남기는 이전 길.vendor/portable-pty/src/cmdbuilder.rs- Windows pane이 받는 환경(레지스트리는 더하기만).herdr-core/src/fork/worker.rs- failure path: agy fork가/fork를 치는 조건(idle 또는 done).herdr-core/src/session_sync/coordinator.rs- high-frequency path: 게시한 읽기의settles_at에 한 번 다시 읽음(시작이 열린 동안만, 250 ms 틱과 같은 루프).hide-platform/src/fs/private.rs- Windows 폴더의 OWNER RIGHTS 허용(Pythonmkdtemp가 주는 ACL).web/src/settings/AboutTab.tsx,web/src/settings/AddDevice.tsx- 지운 줄과 칸..github/workflows/*- 모든 레인이 새 엔진 하나로, Herdr를 받거나 띄우는 단계 없음.Evidence
f1c8f1a99):verify-cargo.sh lint(fmt-check와 workspace clippy), hakari 통과.hide-node,hide-node-link,hide-holder,hide-holder-protocol,herdr-core,hided,hide-platformnextest 5363개 통과.scripts/tests795개 통과.herdr-core,hided,hide-host,hide-kit,hide-nodenextest 5258개 중 문구 변경과 맞물린 실패 5개를 고친 뒤 그 시험들과 bootstrap, 계약 시험 다시 통과.scripts/tests의 agent, CI 계획, flaky 보고, 패키지 e2e 시험 통과.run.sh새 엔진 하나, topology operator) 41884788538 통과. journey stand-ins와 가짜 모델은 Linux, macOS 통과.a_pane_program_keeps_the_path_and_temporary_folder_its_holder_was_started_with와 레지스트리 규칙 시험a_windows_pane_takes_the_users_registry_value_over_the_systems_and_keeps_its_starters(시스템/사용자 같은 이름 충돌 포함) 통과, portable-pty는 Windows 대상으로 컴파일 확인. Windows에서는vt.yml이 같은 시험을 돌립니다.4311bb40a): lint,herdr-core와hidednextest 4563개 통과. 새 시험a_start_whose_screen_already_rests_is_read_settled_once_its_settle_passes(만료 뒤 비게시 조회 다음 게시 읽기에서 settle)와an_agent_whose_start_is_pending_reads_starting_though_its_screen_rests는 고침을 빼면 실패합니다.a_read_that_has_a_start_pending_always_names_a_later_moment는 settle과 마감 경계 시각을 주입합니다. 행 상태를 기다리는 web e2e 19개 파일에서 73개 통과, 4개 건너뜀(로컬 linux 3/6의session-work-ledger실패를 고친 뒤).aaebcd8a9): 가짜 모델 journey 41937427750에서 macOS, Linux 전부 통과, Windows는 codex resume까지 통과하고 claude-code, agy resume만 실패(훅이 남긴 지난 턴, 위 고침).f1c8f1a99): Windows 가짜 모델 journey 41929631031에서 resume 말고 모든 칸 통과(codex 시작 포함).c8eacaa09): 세 OS journey 41957431527의 여섯 레인(Windows forms, 가짜 모델과 stand-ins의 macOS, Linux, Windows) 모두 통과.c8eacaa09): CI와 같은 방식으로 나눈 web e2e linux 6/6 shard 66개 통과 1개 건너뜀; 바뀐 helper를 쓰는 web spec 156개 중 152개 통과 4개 건너뜀; desktopagent-logo-peek,digit-shortcuts,keys6개 통과; agy fork 단위 시험(done 경우 포함)과herdr-coreclippy 통과.489a18977,4311bb40a): agy fork가 Linux(두 번)와 Windows(한 번)에서 실패한 원인은 위의 done 상태였고2cfb453de뒤 세 OS 모두 통과했습니다.2cfb453de의 Windows journey 41951563729에서 OpenCode 시작 한 칸이 실패했습니다(지시문이 붙여 넣어졌으나 Enter를 놓침). 지시문을 친 시점이 시작 변경 전f1c8f1a99(통과)와 같은 약 3.5초라 이 PR의 회귀가 아니고, Windows에서 키를 읽는지 모르는 채 3초 정착으로 입력하는 hide-private#545와 같은 종류입니다.c8eacaa09에서는 통과했습니다.llms.txt변경은 배포하지 않았습니다.Breaking change
herdr포함)은 받지 않습니다. 기기는 연결 때 새 묶음을 받습니다.hide device add의--socket이 없어졌습니다.Verification record