Repository navigation
느린 링크에서도 기기 helper 설치가 끝나고, 시간 초과한 업로드 조각을 지운다 - #794
Merged
Merged
Conversation
…emove an abandoned upload
yansfil
added a commit
that referenced
this pull request
Oct 9, 2026
Related: #751 (core-host-node 2b), #794 (기기 helper 설치) ## Summary 지금은 모든 키와 출력 바이트가 core의 `Mutex<Runtime>`을 지나고, 키마다 snapshot이 나가며, device pane은 attach마다 SSH 연결을 새로 엽니다. 이 PR은 core를 mini로 옮기는 작업의 3단계로, 터미널 길을 pane이 있는 기기의 node가 갖게 합니다: 이 Mac pane은 hided 안의 node 터미널 서비스가, device pane은 그 기기 node 연결 안의 같은 서비스가 attach와 바이트 흐름을 맡습니다. 화면의 키와 출력은 router와 hub(`hided/src/terminal_hub.rs`)를 거쳐 `/ws`의 별도 `terminal` frame으로 오가고, core는 Enter 제출, 입력 시각, 포커스, attach 상태 같은 사실만 받습니다. core가 이 Mac에 있는 지금 구성에서 보이는 변화는 없습니다(D-04). 기기 helper 설치 수정(병렬 업로드, 버린 staging 정리)은 이 작업 중 찾았고 #794로 이미 main에 들어가 이 diff에는 없습니다. ## Review - **판단해 주세요**: (a) PTY 크기 변경은 지금처럼 core가 Herdr 확정 뒤 node에 보냅니다(D-17). 화면에서 node로 바로 가지 않습니다. - **판단해 주세요**: (b) device pane의 최근 출력(ring)은 기기 node가 아니라 화면 쪽 hub에 둡니다. 기기 uplink는 보내지 못한 출력 1 MiB만 갖습니다. - **판단해 주세요**: (c) snapshot의 `input_generation`은 읽는 곳이 없어 wire에서 지웠습니다(`chunks`, `terminal_sequence`, `chunks_dropped`와 함께). - **판단해 주세요**: (d) 동의 해석: 터미널은 node 연결을 그대로 따릅니다. 동의가 없거나 다른 계약이면 지금도 연결이 없으니(`NotAllowed`) 기존 unavailable 상태와 Settings 동작만 보입니다. - **판단해 주세요**: 기기 id에 `:`를 받지 않습니다. pane id `remote:<기기>:pane:<pane>`을 첫 `:pane:`에서 나누는데, `a:pane:b`나 `x:pane` 같은 id는 다른 기기의 pane id를 자기 것으로 읽을 수 있었습니다. - **판단해 주세요**: 이 규칙에 걸리는 id는 `register_device` 이벤트를 직접 보내거나 UI 상태 파일을 손으로 쓴 경우에만 생깁니다. 추가 폼은 id를 `[a-z0-9_-]`로 만들고, 운영자의 등록은 `mini` 하나입니다. - **판단해 주세요**: 그런 id는 등록 때 `device.invalid`(추가 폼이 이미 보여 주는 이유)로 거절되고, 저장돼 있던 것은 연결하지 않고 `device.connect_failed`에 id와 이유를 남기며 행은 unavailable입니다. 다른 기기는 그대로 연결합니다. - **판단해 주세요**: 기기가 자기 pane에 대해 보낸 Error 보고는 core에 note(로그 기록)로 갑니다. 운영자의 last error가 되면 화면이 진행 중인 열기를 거절로 읽기 때문입니다. 이쪽이 기기에 대해 만드는 오류(연결 끊김, 키 넘침)는 그대로 오류입니다. - **판단해 주세요**: PRD와 다른 숫자: pane 메모리 상한은 "3 MiB"가 아니라 "3 MiB와 기다리는 full frame 하나"입니다(D-16, B12). 1 MiB를 넘는 full frame도 그려지게 하려고요. - **판단해 주세요**: PRD에 없던 상한: 연결의 터미널 줄 8 MiB, hub chunk 4 MiB, 기기 보고의 이름 64바이트·메시지 512자·초당 1,024개. - **판단해 주세요**: PRD에 없던 상한: 기기 줄이 이 Mac 로그에 남기는 기록은 연결마다 초당 64개·16 KiB(진단, note, 읽지 못한 줄)이고 나머지는 한 기록에 셉니다. pane 상태는 버리지 않습니다. - **판단해 주세요**: PRD에 없던 상한: 기기에 "끝났다"를 한 번만 알리려고 기억하는 pane 이름은 256개이고, 나머지는 한 칸을 같이 씁니다. - **조심해서 볼 파일**: `hide-node/src/terminal/mod.rs` - 서비스 lock 안에서 sink에 보고를 넘깁니다(순서 보장). sink가 막히거나 되부르면 교착입니다. - **조심해서 볼 파일**: 같은 파일 `hand_over` - 리뷰 2차 5번: 출력은 lock 안에서 줄 세우고 lock 밖에서 넘깁니다. session reader만 자기 frame이 넘어갈 때까지 기다리고(backpressure), core의 control과 키는 기다리지 않으며 다른 reader의 frame을 넘기지 않습니다. sink panic은 `terminal.sink_panicked`로 남기고 이어 넘깁니다(failure path). - **조심해서 볼 파일**: `hide-node/src/terminal/session.rs` - 리뷰 2차 1번: 거절된 paste는 callback을 부르지 않습니다. callback은 서비스 lock을 잡고, 거절을 받는 쪽이 이미 그 lock을 쥐고 있습니다(교착). - **조심해서 볼 파일**: `hide-node/src/terminal/router.rs` - 다른 기계가 보낸 것을 받는 경계(failure path). 그 기기 자신의 pane 중 core가 붙였거나 화면에 있는 것과, 그 기기에 맡긴 paste만 받습니다. - **조심해서 볼 파일**: `hide-node/src/terminal/device.rs` - 기기 줄을 core로 넘기는 proxy(failure path). 키 상한, 로그 기록 상한, Error를 note로 바꾸는 곳입니다. - **조심해서 볼 파일**: `hide-node-link/src/terminal.rs` `split_device_pane_id`, `herdr-core/src/runtime/{events,devices}.rs` - 기기 id 규칙과 거절 경로. - **조심해서 볼 파일**: `hided/src/terminal_hub.rs` - high-frequency path. 출력 chunk마다 한 번 렌더하고 client끼리 나눕니다. resume, overflow, redraw 규칙이 여기 있습니다. - **조심해서 볼 파일**: `hide-node/src/ssh/host.rs` - 연결 reader의 줄 상한과 writer가 바쁠 때 다시 쓰는 규칙(failure path). - **조심해서 볼 파일**: `herdr-core/src/runtime/terminal.rs` - core가 받는 보고(runtime mutex). 투영하지 않은 pane의 입력 보고는 무시합니다. - **조심해서 볼 파일**: `herdr-core/src/terminal_reports.rs`, `hide-node/src/terminal/device.rs` - 리뷰 2차 2번: 보고 줄이 상한(core 16,384개, 기기 4,096개)을 넘으면 버리지 않고 같은 대상(pane 상태, 첫 frame, 보인 frame, 키, paste 결과, 생성 취소)의 기다리는 보고를 대신합니다. 규칙은 `TerminalReport::same_subject`, `superseded_by` 하나를 둘이 같이 씁니다. - **조심해서 볼 파일**: `contracts/hided-ws.schema.json`, `web/src/store.ts` - snapshot wire 변경. - **조심해서 볼 파일**: `hide-node-link/src/protocol.rs`, `hide-node/src/ssh/host.rs` - main과 합칠 때 양쪽이 모두 25로 올려 26으로 정했습니다(Herdr contract 밖, device link). main의 25 node는 거절되고 다시 설치되며, 감사된 24 연결은 터미널을 시작하지 않습니다. - **조심해서 볼 파일**: 같은 곳 - 24 연결이 터미널을 잃는 일은 없습니다. 연결마다 이 빌드의 payload를 버전 폴더에 설치하고(`host.rs:1196`) 그 helper를 `node serve`로 띄우므로(`host.rs:1209`), 이 빌드가 기기 플랫폼의 helper를 싣는 한 서빙 node는 26입니다. 24 Hello는 이 빌드가 띄우지 않은 helper에서만 옵니다(`host.rs:974`의 건너뜀은 그 경우). - **조심해서 볼 파일**: `herdr-core/src/runtime/terminal.rs` - main의 pane header 계산을 node가 보고한 상태 투영 위에서 합쳤습니다(runtime mutex). 파일별로 어느 쪽을 지켰는지는 아래 접은 칸에 있습니다. - **비용 검토**: 키 하나는 router map 조회와 node writer 전달뿐이고 core lock과 snapshot 발행이 없습니다. core는 pane마다 초당 최대 한 번 묶인 입력 보고를 받습니다. - **비용 검토**: 상한: 키 보관 64 KiB·3초·요청 8개, 출력 ring 512개/2 MiB, client당 미전송 1 MiB, node당 attach 64개, 보고 채널 16,384개(넘으면 같은 대상끼리 합침). - **비용 검토**: 기기로 내려가는 키는 pane마다 256 KiB·대기 줄 2,048개, 키가 기다리는 pane 64개까지이고 넘으면 그 pane만 끝납니다(B18). control, view, redraw는 연결마다 8,192줄·8 MiB이고 넘으면 연결을 멈춘 것으로 보고 끊습니다(D-19). - **판단해 주세요**: 위 키 줄 2,048개와 pane 64개, 연결의 8,192줄·8 MiB는 PRD에 없던 숫자입니다. - **판단해 주세요**: (e) 기기 Retry가 그 기기의 helper가 폴더마다 답한 사실(facts, worktrees)을 지우지 않습니다. 새 연결이 모두 다시 묻고, 답이 오면 그때 바꿉니다(`reread_device_facts`). 기기를 지울 때만 지웁니다(`forget_device_directories`). - **판단해 주세요**: (e 계속) 전에는 Retry가 기기 삭제와 같은 정리를 했습니다. 새 연결의 Herdr 세션은 helper보다 먼저 와서, helper가 다시 답할 때까지 그 기기 pane이 폴더 행으로 묶였습니다. - **판단해 주세요**: (e 계속) pane의 `hide` 명령은 시작할 때 checkout 문맥에 묶이고 실행 전에 바뀌면 거절되므로, 그 사이에 걸친 명령이 `pane_changed`나 `caller_context_changed`로 거절됐습니다. - **판단해 주세요**: (e 계속) 원격 mailbox lane이 Linux에서 이것으로 실패했습니다(재연결 뒤 hook이 편지를 못 받음). main에도 같은 경합이 있고, 이 PR이 테스트의 준비 신호(`host.panes_started`)와 `host.ready` 사이에 터미널 서비스 시작을 넣어 틈을 넓혔습니다. 테스트는 고치지 않았습니다(D-23). - **판단해 주세요**: (e 계속) 새 연결은 helper와 Herdr 세션 중 어느 쪽이 먼저 와도 모든 폴더와 저장소 worktree를 다시 읽습니다(worktree 목록도 facts처럼 `reread` 표시를 가짐). - **판단해 주세요**: (e 계속) helper가 운영자가 허락한 기계가 아니라고 답하면(`IdentityChanged`) 남긴 답을 지웁니다. 그 기기 pane은 다시 허락할 때까지 폴더 행입니다. - **판단해 주세요**: (e 계속) PRD에 없던 상한: 기기마다 답을 기억하는 폴더와 저장소 1,024개(`MAX_KNOWN_PATHS`). 넘으면 지금 세션이 보이는 것만 남기고 로그에 남깁니다. 넘지 않으면 지우지 않아, 떠났다 돌아온 폴더의 pane이 바로 묶입니다. - **조심해서 볼 파일**: `herdr-core/src/runtime/{device_catalog,devices,events,hosts}.rs` - Retry, 기기 삭제, 바뀐 기계가 지우는 범위(ownership). 남긴 facts는 새 연결의 helper 답으로만 바뀝니다. - **조심해서 볼 파일**: `hide-node-link/src/terminal.rs`, `herdr-core/src/runtime/terminal.rs` - 리뷰 1차 2번: core가 키를 기다리지 않고 키보드가 간 pane을 node에 알립니다(`TerminalControl::Focus`, 이 PR의 프로토콜 26 안). 화면 키가 그 pane과 다르면 node가 포커스를 보고합니다. - **판단해 주세요**: 리뷰 1차로 생긴 PRD에 없던 상한: node가 붙이지 않고 기억하는 pane 128개(attach 64개의 2배). 닿으면 view만 이름 붙인 것(core 화면에 없고, 키를 갖지 않고, core가 한 번만 말하는 잠듦, 닫힘, paste 대상이 아닌 것)을 잊고, 그래도 닿아 있으면 모르는 pane의 view를 거절합니다. 리뷰 2차 8번: frame 기다림(`WatchFrame`)은 pane 밖에 64개까지 두고, 모르는 pane을 깨우는 control은 아무것도 만들지 않습니다. 이 Mac pane writer의 쓰지 못한 입력은 기기 키와 같은 256 KiB(D-18)이고 넘으면 그 쓰기만 거절합니다. - **비용 검토**: 리뷰 1차 9번: hub는 출력 chunk를 hub lock 밖에서 한 번만 base64와 JSON 문자열로 만들고, node는 출력을 lock 안에서 줄 세운 뒤 lock 밖의 drainer 하나가 넘깁니다. 4 MiB full frame을 만드는 동안 키, control, 다른 pane의 frame이 기다리지 않습니다. - **비용 검토**: 리뷰 1차 9번 (계속): 출력을 낸 reader는 자기 묶음이 넘어갈 때까지 기다려 backpressure는 그대로이고, 순서는 hub sequence가 정합니다. - **비용 검토**: 리뷰 2차 6번: hub는 client의 미전송 chunk를 pane마다 따로 두고 각 pane 첫 chunk의 sequence 색인으로 순서대로 꺼냅니다. full frame, overflow, forget은 그 pane 것만 건드리고, 버린 chunk는 lock 밖에서 놓습니다. - **비용 검토**: 리뷰 2차 6번 (계속): 멈춘 client에 작은 chunk 1,082,315개(pane 64개)가 쌓인 상태에서 한 pane의 full frame 동안 다른 쪽이 hub lock을 기다린 최대는 11.5 ms에서 7.5-10.2 us가 됐습니다(release, 3회씩). - **비용 검토**: 리뷰 2차 4번: 기기 uplink는 frame을 lock 밖에서 base64와 JSON으로 만듭니다. full frame을 기다리는 pane의 출력은 만들지 않고 버립니다. - **판단해 주세요**: (f) 리뷰 2차 9번: core는 크기가 바뀐 resize만 node에 보냅니다. 같은 크기 resize가 새 view의 full frame을 부르던 일(전에는 core가 `need_full`을 가짐)은 이제 node가 합니다: 세션이 이미 그 grid로 돌면 node가 Herdr에 화면 전체를 다시 그리라고 합니다(redraw와 같은 길). - **판단해 주세요**: (g) 리뷰 2차 2번: 상한을 넘은 키 보고는 합쳐지면서 Enter 여러 번이 한 번으로 셉니다(라벨 질문 시각은 마지막 키 시각). 같은 pane의 상태 보고는 마지막 것만 남고, 그 사이 다른 보고 뒤에 적용됩니다. - **판단해 주세요**: (h) 리뷰 3차 3번: `/ws` wire에 hub epoch를 더했습니다. hub마다 무작위 16자리 hex epoch를 정하고, `terminal` frame은 `terminal_epoch`로, handshake는 `have_terminal_epoch`로 싣습니다. 같은 epoch일 때만 cursor에서 이어 받고, 다른 epoch나 epoch 없는 cursor(데몬보다 오래 산 페이지)는 모든 pane을 다시 그립니다. schema, web 생성 타입, web store, hided를 같은 커밋에서 바꿨습니다. - **판단해 주세요**: (i) 리뷰 3차 5번: client마다 full frame 요청을 그 pane의 full frame이 올 때까지 두고, 2초마다 타이머로 다시 묻습니다(client끼리는 한 번). 10초가 지나면 포기하고 `terminal.redraw_unanswered`를 남깁니다. 그동안 답하지 못하는 node는 세션이 없고, 다음 세션의 첫 frame은 full이기 때문입니다. 10초는 PRD에 없던 숫자입니다. - **조심해서 볼 파일**: `hide-node/src/terminal/mod.rs` `hand_over` - 리뷰 3차 1번: 기다리는 reader는 자기 묶음(`first..=through`)까지만 넘깁니다. 전에는 다음 reader의 frame도 넘겨, 여러 pane이 찍는 동안 한 reader가 넘기기에 머물며 자기 pane을 읽지 못할 수 있었습니다. - **조심해서 볼 파일**: `hide-node/src/terminal/router.rs` - 리뷰 3차 2번: core가 잠들었다고, 닫는 중이라고 말한 기기 pane을 router가 기억하고(core의 집합을 그대로 따름), 기기의 새 연결에 화면 pane, 키보드 pane과 함께 알립니다. node는 모르는 pane이라도 잠듦이나 닫힘을 들으면 그 pane을 기억합니다(c20c882, 자체 리뷰가 찾음). - **조심해서 볼 파일**: `hided/src/core.rs` `shutdown` - 리뷰 3차 4번: owner thread를 join한 뒤 모든 기기 터미널을 지웁니다(`Router::remove_every_device`). 기기 node가 자기를 가진 router에 보고해 둘이 서로를 붙잡았고, 기기가 연결된 채 handle을 놓으면 router, 이 Mac 터미널 서비스와 세션이 프로세스가 끝날 때까지 남았습니다(ownership, failure path). - **비용 검토**: 리뷰 3차 6번: grid 변경의 frame 기다림은 Herdr가 받아들일 때 한 번, 레이아웃이 적용될 때 한 번만 겁니다(record당 최대 2번). 전에는 적용 전 frame마다 보고, runtime lock, control이 하나씩 들었습니다. - **비용 검토**: hub의 `ready()`가 깨어날 때마다 다음 redraw 시각을 읽으려 hub lock을 한 번 더 잡습니다(client당, 남은 요청만 훑음). h11 쌍이 이것을 포함한 head를 쟀습니다. - **판단해 주세요**: 리뷰 2차로 생긴 PRD에 없던 상한: 보고 줄에서 새 대상은 core 65,536개, 기기 16,384개까지이고 넘으면 버리고 기록합니다. 기기 진단 기록 1,024개, node의 frame 기다림 64개(core의 열린 작업 상한과 컴파일 때 비교), 화면이 보내는 pane id 512바이트(가장 긴 기기 pane id). - **판단해 주세요**: 리뷰 2차 3번: 연결은 됐지만 터미널이 없는 기기(24 helper, 또는 터미널 서비스 시작 실패)의 pane은 "helper가 연결되지 않음" 대신 그 이유를 보입니다(`TerminalRoutes::terminals_unstarted`). 키 거절 문구도 "기기 터미널이 연결되지 않음"으로 바꿨습니다(kind는 그대로 `terminal.device_disconnected`). - **알아 둘 것**: 이 PR을 합쳐도 운영자의 설치된 앱(0.1.0-main.5ba348f1)과 mini helper는 바뀌지 않습니다. mini helper는 이 merge로 만든 앱을 설치해 연결할 때만 프로토콜 26으로 바뀝니다(25 helper는 거절되거나 시작되지 않고, 새 payload가 설치됩니다). - **미룬 것 1**: 기기 node가 자기 pane의 Enter 제출과 입력 시각을 거짓으로 말할 수 있습니다(라벨 질문 시각). 위험: 그 기기 pane의 라벨과 대기 표시가 틀립니다. - **미룬 것 1 (계속)**: 보고는 `remote:<그 기기>:pane:` 안으로만 이름 붙어 다른 기기나 이 Mac pane의 core 상태에 닿지 않습니다. 제출 규칙은 node 몫(D-13)이라 router가 다시 판정할 수 없습니다. - **미룬 것 2**: 측정 harness의 ssh는 가드가 검사한 known_hosts 경로를 다시 읽습니다(검사와 연결 사이 교체). 위험: 그 파일을 바꿀 수 있으면 이미 운영자 계정을 가진 것이고, 제품 경로가 아닙니다. **사고 기록 (2026-10-09)**: 이동한 remote probe가 mini의 사설 sshd를 거쳐 실제 계정 홈의 `~/.hide/host-helper/6536958e73c1f8e2`에 helper를 올렸습니다(00:39-00:46 KST). SFTP는 `~/`를 계정의 passwd 홈으로 풀고, `SetEnv HOME`은 명령에만 닿아서입니다. Observer가 00:49에 그 폴더만 지웠고, `current`, LaunchAgents, Herdr 설정은 바뀌지 않았습니다. 가드: probe와 측정 harness가 연결 전에 격리 계정 외의 대상을 거절합니다(0908272, ac1b70b, 2c4e62d, 6c4e1bc). **제품 follow-up**: 설치가 SFTP 홈과 명령의 `$HOME`이 같은지 확인하지 않습니다. 사설 sshd 뒤의 기기에서 같은 일이 날 수 있어 별도 이슈로 다룹니다. ## Evidence - **확인한 것**: head c20c88234에서 `sasu implement verify` PASS: S1 `bash scripts/verify-cargo.sh test`(워크스페이스 전체), S2 lint. - **확인한 것**: 리뷰 1차 뒤 자체 리뷰(Fidelity, Code, Security) 두 벌의 Fix now와 고를 만한 follow-up을 고쳤고, 동작을 바꾼 것마다 수정 전 코드에서 실패하는 테스트가 있습니다: helper가 세션보다 먼저 온 Retry의 worktree 다시 읽기, 바뀐 기계의 답 지우기, 1,024개 상한(c4c74b4), sink panic이 출력 넘김을 멈추지 않음(8f6e416), 상한에서 view만 이름 붙인 pane 잊기(a678677), 잠든 pane의 표시는 남김(5aa9bf8). - **확인한 것**: paste 쓰기가 실패하면 뒤에 친 키를 남기는 변경(045afac)은 되돌렸습니다(472e249). core는 세대가 바뀐 세션에 paste를 다시 보내지 않고, 쓰기 실패는 그 세션이 끝났다는 뜻이라 다시 쓰일 일이 없었습니다. - **확인한 것**: 리뷰 2차 9개를 고쳤고(3114815..bc1a194), 동작을 바꾼 것마다 수정 전 코드에서 실패하는 테스트가 있습니다: 거절된 paste 둘(교착으로 시간 초과), 상한을 넘은 보고의 pane 상태(core, 기기), 다른 pane의 frame을 넘기는 동안 Release가 바로 돌아옴(전에는 2초 기다림), 600바이트 pane id, 깨우기와 frame 기다림만 받은 pane 129개 뒤 새 view(전에는 거절), 같은 크기 resize(core는 보내지 않고 node가 full frame을 부름), 터미널 없는 연결의 pane 문구. - **확인한 것**: 리뷰 2차 4번(uplink를 lock 밖에서 만듦)은 늦음만 바뀌어 테스트가 없고 키 echo 쌍으로 봤습니다. 6번은 순서 테스트와 위 hub lock 측정으로 봤습니다. - **확인한 것**: 리뷰 3차 8개 중 1-6을 고쳤고(59f15ed..5714e43), 각 테스트가 수정 전 코드에서 실패합니다: 한 reader의 frame이 sink에 있는 동안 다른 reader가 자기 pane의 끝을 읽음(전에는 넘기기에 머묾), 다시 연결한 기기 node가 잠듦과 닫힘을 들음, 다른 hub의 cursor는 모든 pane을 다시 그림, 기기가 연결된 채 handle을 놓으면 router가 사라짐, 조용한 pane의 잃은 답을 두 번째 client가 다시 물음, 적용 전 frame 3개가 watch를 다시 걸지 않음(전에는 3번). 7, 8은 follow-up입니다. - **확인한 것**: 3번 테스트는 고친 뒤 `Resume::After`가 epoch를 가져 그대로는 옛 코드에서 돌지 않습니다. 실패 기록은 같은 장면을 옛 형태로 쓴 것입니다. - **확인한 것**: 리뷰 3차 diff의 Fidelity, Code, Security 리뷰: Fidelity와 Security는 Fix now가 없었습니다. Code의 Fix now 하나(새 node가 모르는 pane의 닫힘을 버려 다시 알림이 소용없음)는 c20c88234에서 고쳤고, 테스트가 수정 전 실패합니다(`terminal.unavailable`). 그 커밋의 짧은 후속 Code 리뷰는 Fix now가 없었습니다. - **확인한 것**: PR이 main과 충돌해(DIRTY) 62f183328에는 CI가 돌지 않았습니다. main 49d438cb0을 합쳤고(d197bfd, 충돌은 `hided/tests/it/handshake.rs` 하나: main의 재시도 loop를 지키고 cursor는 revision만 따름), 3114815b0의 CI가 모두 통과했습니다(Linux 원격 mailbox, Windows check와 e2e 포함, 실패 0, workflow가 건너뛴 2개). - **확인한 것**: 리뷰 1차 10개를 9ca38de2c에서 고쳤고, 동작을 바꾼 9개는 각 테스트가 수정 전 코드에서 실패하는 것을 확인했습니다(10번은 문서 줄 나눔). - **확인한 것**: 고친 crate(`herdr-core`, `hided`, `hide-node`, `hide-node-link`, `hide-host`) 테스트 2,504개 중 2,503개 통과(e2a6aa3). 실패 하나는 `hide-host` git 테스트가 이 Mac의 커밋 서명 agent를 기다리다 난 것(이 diff 밖)이고 `hide-host` 133개를 다시 돌려 모두 통과했습니다. 그 뒤 head는 워크스페이스 전체 `verify-cargo.sh test`로 봤습니다. - **확인한 것**: lint(fmt, clippy 전체), policy 검사, hakari, `scripts/tests` 317개 통과. web은 바뀌지 않아 verify-web은 다시 돌리지 않았습니다. - **확인한 것**: 원격 mailbox lane: 실패한 테스트만 Linux에서 세 번 돌리는 임시 branch로 원인을 찾았습니다. 수정 전 3/3 실패(`pane_changed`, `caller_context_changed`), Retry 수정 뒤 3/3 통과. 임시 branch와 그 로그 코드는 지웠습니다. - **확인한 것**: 이 Mac에서 c20c88234의 같은 lane(`remote_delivery`, `held_letter_notice`) 4개, `terminal_children` 2개, `real_herdr` 1개 통과(고정 Herdr 0.9.3). 5714e43a2에서 워크스페이스 전체 `cargo test` 3,693개 통과 0 실패와 `scripts/verify-web.sh`(web 1,308, desktop 162 테스트) 통과(`hide-host` git fixture는 커밋 서명을 끄고). 그 뒤 c20c88234는 node 한 곳과 테스트 하나이고 hide-node 158개 통과. 새 core 테스트 3개(재연결, Retry, 삭제)는 각각 수정 없이 실패합니다. - **확인한 것**: 이 Mac이 load 7-11일 때 실제 Herdr 테스트를 더 돌리면 `remote_delivery::a_spawn_with_machine_starts_the_agent_on_the_device_under_its_caller`가 head 11회 중 2회, 기기 hook의 1.25초 intake 기한을 넘겨 실패했습니다(편지 거절이 아니라 `deadline`). main a03ac5821도 같은 필터, 같은 load에서 5회 중 1회 같은 메시지로 실패해 이 PR 전부터 있던 load 민감 테스트로 봅니다. 테스트는 고치지 않았습니다(D-23). - **확인한 것**: 리뷰 1차 2, 6, 9번이 키와 출력 길을 건드려 de8650825에서 b520d6eb와 한 쌍(h8, head 먼저)을 더 쟀습니다: idle p95 18.51 -> 18.55, driven 16.49 -> 16.79 ms, 키 10,000개 둘 다 정확, driven CPU 4.80 -> 1.94%. load는 기준 3.2, head 4.0입니다. - **확인한 것**: 자체 리뷰 수정 뒤 52e827a12에서 한 쌍(h9, 기준 먼저)을 더 쟀습니다: idle p95 23.15 -> 22.12, driven 27.34 -> 27.87 ms, 키 10,000개 둘 다 정확, driven CPU 3.88 -> 1.94%. load는 기준 31.9, head 7.9로 둘 다 조용한 회차보다 4-10 ms 위입니다. 그 뒤 자체 리뷰 커밋(62f183328까지)은 키와 출력의 평소 길에 닿지 않습니다. - **확인한 것**: 리뷰 2차 1, 4, 5, 6번이 키와 출력 길을 건드려 bc1a1949a에서 한 쌍(h10, 기준 먼저)을 더 쟀습니다: idle p95 21.98 -> 18.86, driven 24.83 -> 17.62 ms, 키 10,000개 둘 다 정확, driven CPU 3.87 -> 1.93%. load는 기준 6.0, head 3.8이라 head가 낮은 것을 이득으로 읽지 않습니다. - **확인한 것**: 리뷰 3차 1, 3번(과 5번)이 출력 길을 건드려 c20c88234에서 한 쌍(h11, 기준 먼저)을 더 쟀습니다: idle p95 18.63 -> 18.75, driven 17.43 -> 17.35 ms, 키 10,000개 둘 다 정확, driven CPU 3.85 -> 1.93%. load는 기준 9.5, head 6.6입니다. - **확인한 것**: 11쌍 판정(회차별 p95의 중간값): idle 18.53 -> 18.86 ms(+0.33), driven 17.18 -> 17.35 ms(+0.17), 상한 5 ms. 모은 p95는 idle 0.00, driven +0.50 ms입니다(10쌍은 +0.81, +0.26과 -0.05, +0.50). - **확인한 것**: 합친 트리에서 `cargo test` 3,568개 통과 0 실패, `scripts/verify-web.sh`(web 1,306, desktop 162 테스트, typecheck, lint, build), design contract, Herdr contract(schema), pin, workstation identity 검사 통과. - **확인한 것**: 합치기 전 c839d8018에서 기기 proxy, router, 기기 id 규칙의 집중 테스트 통과(hide-node terminal 71, hide-node-link 3, core devices 15). - **확인한 것**: head 844717054에서 `bash scripts/verify-cargo.sh nextest --profile ci --workspace` 3,445개 통과, 22 skipped. flaky 1개(`hide-host` git 테스트, 재시도 통과, 이 diff 밖). - **확인한 것**: 고정 Herdr 0.9.3의 실제 Herdr 테스트 3/3. 데몬을 죽여도 attach 자식이 남지 않고(B20), 친 줄이 찍힙니다. - **확인한 것**: 패키지 0.1.0-dev.84471705에서 `local-kit.spec.ts` 통과. - **확인한 것**: B2 이 Mac 키 echo, 기준 b520d6eb와 7쌍 번갈아(h7은 main을 합친 ff732a5), 회차별 p95의 중간값으로: idle +1.42 ms, driven +0.08 ms(상한 5 ms). 6쌍만으로는 +1.12, +0.05. - **확인한 것**: main의 23개 커밋이 키 길, 출력, wire, device link를 건드려 합친 head로 한 쌍(h7)을 더 쟀습니다: idle p95 20.04 -> 19.80, driven 20.30 -> 19.47 ms, 키 10,000개 둘 다 정확, driven CPU 3.86 -> 1.93%. 기준이 load 10-17, head가 4-6에서 돌아 "합쳐도 나빠지지 않음"으로만 읽습니다. - **확인한 것**: 7쌍을 모은 p95는 idle +5.73 ms, driven +0.28 ms입니다(6쌍은 +8.55, +0.04). idle 차이는 head 두 회차(h3 load 40, h6 load 17.5)에서 옵니다. - **확인한 것**: 기준 h5 driven은 측정이 아닙니다. 빼면 idle +1.11 ms, driven -0.07 ms. - **확인한 것**: 표본은 표식 `aNNNNz`를 치기 직전(t0)부터 그 pane 버퍼(스크롤백 포함)에 표식이 처음 보이는 xterm write까지입니다. idle과 driven이 같은 표식 50개를 칩니다. - **확인한 것**: 그래서 idle의 표식이 지워지지 않고 남으면 다음 아무 write에서 끝나고, 그게 t0보다 먼저면 음수입니다. 기준 h5 driven은 50개 모두 5 ms 아래(음수 8개)라 이 모양입니다. - **확인한 것**: head 6회의 idle, driven 12개 회차에는 음수가 없고, 5 ms 아래는 h4 idle 한 개(3.83 ms)뿐이라 p95를 움직이지 않습니다. 그 지우기가 기준 h5에서 왜 안 됐는지는 모릅니다. - **확인한 것**: B21 hided 단독 최대 RSS는 h1-h11에서 기준 24.2-29.8 MiB, head 32.8-37.9 MiB로 +8~10 MiB(상한 32 MiB). attach된 pane 5개 × ring 최대 2 MiB(D-16)와 맞습니다. - **확인한 것**: B4 키 10,000개는 이 Mac 22회(h1-h11)와 device 4회 모두 잃거나 섞인 키 0개. driven CPU 중간값 3.86% -> 1.94%, 창 없을 때 1.94% -> 0.97%(B19). - **확인한 것**: B16 실제 mini device pane: 기기 연결은 pane 1개일 때도 5개일 때도 하나(sshd ESTABLISHED 2줄, 기준 6줄과 14줄). - **확인한 것**: remote probe가 head에서 node 연결로 실제 mini 격리 계정에 attach, 100x30 full frame, 스크롤까지 통과(5.9초). 실제 계정의 `~/.hide/host-helper`는 그대로. - **확인한 것**: Fidelity, Code, Security 리뷰와 그 뒤 짧은 후속 리뷰들의 Fix now는 모두 커밋과 테스트로 고쳤습니다(4cf5b58..b4521effd, 리뷰 1차 뒤 c4c74b4..e1752e9, 리뷰 2차는 위). 마지막 자체 리뷰 쌍(52e827a..62f1833)은 Fix now가 없었고, 그 follow-up 중 프레임 해제 위치와 상한 문서, 테스트 단언은 163eba1, e1752e927에서 고쳤습니다. 남긴 것은 위 미룬 것 둘과 아래 follow-up입니다. - **확인하지 못한 것**: 이 Mac 측정 h1-h4와 mini device 측정은 8447170, h5-h6은 a589a8efd에서 했습니다. 그 뒤 커밋은 기기 id 규칙, 기기 proxy의 넘침·거절·로그 상한, main에서 가져온 hide-platform 테스트 하나라 정상 키 길에는 닿지 않습니다. - **확인하지 못한 것**: B21 프로세스 트리 최대는 head 99.0 MiB(h2), 79.1 MiB(h5, 이름이 기록된 `gh` 자식 26.7 MiB)입니다. h2의 한 표본 +38.6 MiB 자식은 이름 기록 전이고, 기준도 같은 크기(39.1 MiB)를 한 번 보였습니다. - **확인하지 못한 것**: desktop e2e(0f1cc72, `@needs-focus` 제외)는 40 통과, 8 skipped, 18 실패이고 실패는 모두 macOS가 창 캡처를 거절한 것입니다(화면 기록 권한 없음, 권한 창은 건드리지 않음). CI의 macOS lane이 캡처까지 봅니다. - **확인하지 못한 것**: 패키지의 `server-session-search` 네이티브 테스트도 첫 창 캡처에서 같은 이유로 멈췄고, 그 전 단언은 통과했습니다. - **확인하지 못한 것**: web e2e 222개 통과는 bab498f 결과입니다. 그 뒤 커밋은 hub, router, 기기 proxy의 상한과 거절 규칙이고 CI web lane이 head에서 다시 돕니다. - **확인하지 못한 것**: B14 네이티브 QA(붙여넣기, 한글 조합, 클립보드, 링크, 이미지, 파일 끌어 놓기)는 이 head에서 하지 않았습니다. B22 폰은 실행하지 않았습니다. - **확인하지 못한 것**: B17은 `device_kit` 테스트로만 봤고 실제 mini 링크를 끊어 보진 않았습니다. B11, B12의 끊김 뒤 화면과 pane 일치는 hub 단위 테스트와 측정의 실제 overflow, redraw까지만 봤습니다. - **관찰(원인 모름)**: head device 측정 중 운영자 앱의 mini 링크가 두 번(03:58:05, 04:01:55) 읽기 시간 초과 뒤 1-2초 안에 다시 붙었습니다. 둘 다 head 회차 안이고 기준 회차와 그 전 후보 6회차에는 없었습니다. - **관찰(원인 모름)**: 첫 번째는 그 회차가 기기에 연결하기 4.5초 전이라 그 연결이 원인은 아닙니다. mini의 실제 파일은 전후 fingerprint로 그대로였고, 다른 점은 운영자 Herdr 로그의 그 링크 자신의 끊김 기록뿐입니다. <details><summary>측정 (이 Mac, 실제 Mac mini device pane)</summary> **이 Mac, headless (b520d6eb와 이 PR을 번갈아 11쌍, 2026-10-09 KST: h1-h4는 844717054로 03:02-03:50, h5-h6은 a589a8efd로 04:40-05:03, h7은 main을 합친 ff732a538로 06:14-06:25, h8은 리뷰 1차 뒤 de8650825로 08:16-08:28, h9는 자체 리뷰 수정 뒤 52e827a12로 09:31-09:42, h10은 리뷰 2차 뒤 bc1a1949a로 11:09-11:21, h11은 리뷰 3차 뒤 c20c88234로 12:00-12:11)** `scripts/web-shell-measure/run.sh` keys 시나리오, 키 10,000개, `--isolated-headless`, 고정 Herdr 0.9.3. 회차마다 50개 idle echo와 50개 driven echo. | 회차 | 1분 load | 기준 idle p95 / driven p95 ms | 1분 load | head idle p95 / driven p95 ms | |---|---|---|---|---| | h1 | 12.4 | 17.96 / 16.81 | 6.9 | 17.82 / 16.58 | | h2 | 7.1 | 18.36 / 16.53 | 8.1 | 18.23 / 16.89 | | h3 | 10.9 | 18.53 / 17.18 | 40.2 | 48.09 / 16.50 | | h4 | 18.4 | 20.20 / 34.21 | 26.5 | 20.75 / 22.35 | | h5 | 8.6 | 11.91 / 3.49 (음수 표본 8개, 무효) | 4.2 | 17.64 / 44.57 | | h6 | 15.4 | 18.38 / 16.57 | 17.5 | 36.45 / 16.49 | | h7 | 16.7 | 20.04 / 20.30 | 3.8 | 19.80 / 19.47 | | h8 | 3.2 | 18.51 / 16.49 | 4.0 | 18.55 / 16.79 | | h9 | 31.9 | 23.15 / 27.34 | 7.9 | 22.12 / 27.87 | | h10 | 6.0 | 21.98 / 24.83 | 3.8 | 18.86 / 17.62 | | h11 | 9.5 | 18.63 / 17.43 | 6.6 | 18.75 / 17.35 | - 판정(회차별 p95의 중간값, `docs/PERFORMANCE_TESTING.md`): 11쌍 idle 18.53 -> 18.86 ms(+0.33), driven 17.18 -> 17.35 ms(+0.17). 10쌍 idle 18.52 -> 19.33 ms(+0.81), driven 17.00 -> 17.26 ms(+0.26). 9쌍 idle 18.51 -> 19.80 ms(+1.29), driven 16.81 -> 16.89 ms(+0.08). 8쌍 idle 18.45 -> 19.17 ms(+0.72), driven 16.69 -> 16.84 ms(+0.15). 7쌍 idle 18.38 -> 19.80 ms(+1.42), driven 16.81 -> 16.89 ms(+0.08). 6쌍은 +1.12, +0.05, 기준 h5를 빼면 +1.11, -0.07. - h7은 head를 먼저 돌렸습니다(06:14, load 5.2). 그 전 06:01 시도는 release build 직후 load 27이라 제가 멈췄고, 06:07 시도는 main의 한 칸 sidebar에서 harness가 checkout을 못 열어(8b4006624로 고침) head가 실패했습니다. - h7 hided 단독 최대 RSS: 기준 24.9/25.3/29.0, head 33.3/35.1/37.3 MiB(+8.4~9.8). - 모은 값(각 300개): idle p50 16.58 -> 16.74, p95 18.40 -> 26.95(+8.55); driven p50 13.98 -> 14.45, p95 17.13 -> 17.17. - head의 느린 표본(25 ms 넘음)은 h3 idle, h6 idle, h5 driven에서 회차 안에 흩어져 있고 처음에 몰리지 않았습니다. 기준 h4 driven도 같은 모양입니다. - hided CPU(회차 중간값의 중간값): driven 3.86% -> 1.94%, 창 없을 때 1.94% -> 0.97%, idle 둘 다 0. - hided 단독 최대 RSS(h5-h6, 프로세스별 샘플러): 기준 idle 25.0/24.2, driven 25.2/24.5, 창 없을 때 28.5/27.7 MiB; head 32.8/34.1, 33.9/34.9, 33.7/37.9 MiB. - 프로세스 트리(hided, attach 자식 `herdr` 5개 4-6 MiB씩, 잠깐 뜨는 자식) 최대: 기준 53.0-60.6 MiB, head 54.9-99.0 MiB. 이름이 기록된 잠깐 자식은 `lsof`(약 1 MiB)와 head h5 driven의 `gh` 26.7 MiB. - driven echo 동안 ws frame: 기준 delta 1,703-1,757개, head terminal 1,328-1,394개, delta 0개(h1-h4). - 다시 열기 단계에서 head는 `terminal.output_overflow` 3번과 redraw 3번을 남깁니다(창이 닫힌 동안 뒤처진 client). 두 빌드 모두 full redraw 5번. **실제 Mac mini device pane (b520d6eb와 8447170 번갈아 2쌍씩, 2026-10-09 03:56-04:05 KST)** 기기는 mini의 격리 계정(사설 sshd 22841, 격리 Herdr 0.9.3)이고 화면은 이 Mac의 격리 hided와 headless Chrome입니다. | | idle p50 / p95 ms | driven p50 / p95 ms | driven echo 중 frame | 10,000 키 | 정착 hided RSS | |---|---|---|---|---|---| | b520d6e | 16.7 / 96.2, 16.6 / 104.5 | 19.7 / 37.5 | delta 1,600-1,674 | 2회 모두 정확 | 22.4-22.7 MiB | | head | 16.4 / 97.4, 16.3 / 96.8 | 18.0 / 38.6 | terminal 778-783 | 2회 모두 정확 | 29.1-30.2 MiB | - idle은 키 측정 회차와 driven 측정 회차를 따로 모았습니다(각 100개). p95 100 ms 근처는 두 빌드가 같아 링크와 기기 쪽 몫입니다. - head-hr2는 이 Mac load가 13에서 24로 오르며 타이핑 자체가 8.2초 걸렸습니다. 마지막 키 뒤 도착까지는 249 ms로 다른 회차(278-350 ms)와 같습니다. - B16: mini에서 2초마다 22841의 ESTABLISHED 줄을 셌습니다. head는 pane 1개일 때도 5개일 때도 2줄이고, b520d6eb는 6줄과 14줄입니다. - 원격 probe(`hide-node/tests/it/remote_terminal_probe.rs`)도 head에서 node 연결로 통과했습니다(5.9초). 실제 계정의 `~/.hide/host-helper`는 그대로였습니다. </details> <details><summary>main과 합친 충돌 해결 (파일별)</summary> **main(a03ac58)을 합친 충돌 7개 파일과 고친 테스트** - `hide-node-link/src/protocol.rs`: 양쪽 모두 24에서 25로 올렸습니다(main은 Hello의 reader 기능, 이 PR은 터미널 줄). 26으로 올려 둘 다 담았습니다. main의 25 node는 Hello에서 거절되고 이 빌드의 payload로 다시 설치됩니다. - `hide-node/src/ssh/host.rs`: main의 규칙(감사된 24와 현재 버전만 받음)을 지키고, `Inner`에 양쪽 필드(`terminals`, `readers`)를 둘 다 둡니다. 24 연결에는 터미널을 시작하라고 묻지 않고 `host.terminals_unstarted`를 남깁니다. 테스트가 25 거절을 고정합니다. - `herdr-core/src/runtime/delivery.rs`: main이 키에 붙인 `reopen_resolved_session`을 이 PR이 나눈 `note_delivery_key_at`으로 옮겼습니다. node의 입력 보고가 이 길로만 오기 때문입니다. - `herdr-core/src/runtime/operations.rs`: main의 `tick_session_day`와 이 PR의 `sync_terminal_intents`를 둘 다 둡니다. `reattach_resized_observers`는 node로 옮겨 core에 없습니다. - `herdr-core/src/runtime/terminal.rs`: main의 header 변화 검사(`refresh_pane_headers`)를 이 PR의 투영(node가 보고한 상태)에서 계산합니다. - `herdr-core/src/runtime/tests/agents_settings_remote.rs`: 이 PR의 다시 붙지 않음 단언과 main의 세션 resolution 단언을 둘 다 둡니다. main에 남아 있던 core 터미널 세션 단언은 이 PR이 지운 것이라 뺐습니다. - `hided/tests/it/node_contract.rs`: 테스트 도우미의 생성자 둘(`start_with` 터미널, `start_with_packages` 패키지)을 `start_with(pane_events, terminals, retained_packages)` 하나로 합쳤습니다. - 충돌은 아니지만 main의 새 테스트 `control_frames_keep_headers_without_derivation_until_a_relevant_transition`은 core 터미널 세션을 썼습니다. 바이트가 core에 오지 않으므로 `transport_and_scroll_transitions_derive_pane_headers_once_each`로 바꿔 node 상태 보고 100번에 header 계산 0번, 실제 변화마다 1번을 봅니다. - main 자신의 `web/src/generated/hided-ws.ts`는 main 스키마의 `factory_question_guard`가 빠진 채라 그대로 두었습니다(follow-up). </details> <details><summary>옮긴 단위 테스트 (D-23, 파일별)</summary> web, desktop e2e와 `hided/tests/it/real_herdr.rs`는 고치지 않았습니다(`git diff` 비어 있음). 아래는 wire 모양이나 Runtime 안의 터미널 상태를 직접 고정했던 단위 테스트입니다. **`herdr-core/src/live.rs`에서 `hide-node/src/terminal/`로** - `session.rs`: `first_wheel_reaches_the_pipe_without_waiting_for_a_frame`, `next_wheel_reaches_the_pipe_without_waiting_for_a_terminal_frame`, `keyboard_input_keeps_its_order_after_scroll_input` (이름 그대로) - `protocol.rs`: `official_terminal_ndjson_boundary_decodes_frames_and_closed_reasons`, `official_terminal_cli_arguments_never_request_takeover` (그대로), `official_terminal_control_boundary_encodes_input_resize_and_release` -> `..._input_resize_scroll_and_release` **`herdr-core/src/labels/input.rs`에서** - `only_a_typed_return_is_a_submit` -> `hide-node/src/terminal/input.rs` (base64 경우는 빠짐, 키가 바이트로 옴) **`herdr-core/src/runtime/tests/terminal.rs`에서 `hide-node/src/terminal/tests.rs`로** - 그대로: `an_observed_frame_at_an_old_grid_reattaches_the_observer_at_the_views_grid`, `an_observed_view_that_changes_size_reattaches_once_the_size_settles`, `a_control_session_attaches_at_the_grid_the_view_reported`, `retry_preserves_the_canvas_until_a_matching_replacement_frame`, `a_rebuilt_view_for_an_attached_pane_is_given_a_frame_to_draw` - 이름 바뀜: `a_foreign_grid_is_held_until_a_matching_full_frame_arrives` -> `a_frame_at_a_foreign_grid_waits_for_a_full_frame_at_the_view_grid`; `one_launch_holds_an_attach_until_the_view_reports_a_size` -> `an_attach_without_a_size_waits_for_one_then_attaches_at_it` - 나뉨: `attach_failure_names_its_reason_on_that_pane_and_leaves_the_others_idle`, `runtime_owner_conflict_observes_ignores_stale_delivery_and_reconnects_once` - node 쪽 절반은 hide-node로, core 투영 절반은 남음 **`herdr-core/src/runtime/tests/key_routing.rs`에서** - `keys_for_an_unknown_request_reach_no_pane`, `keys_for_a_split_older_than_the_age_limit_reach_no_pane` -> `input.rs` `an_unnamed_request_stops_holding_after_its_lifetime` - `input_to_an_attaching_pane_is_kept_and_written_in_order` -> `input.rs` `an_attaching_pane_keeps_keys_in_order_up_to_the_cap`, `tests.rs` `keys_typed_while_the_session_opens_are_written_first_in_order` - `input_held_for_a_pane_whose_retries_ran_out_is_not_written_on_reconnect` -> `tests.rs` (그대로) - `input_held_through_a_reconnect_is_written_only_within_the_age_limit` -> `input.rs` `an_attaching_pane_gets_keys_held_up_to_the_age_limit_and_not_older_ones` - 나머지는 이름 그대로, core가 보내는 요청 control(RequestOpen/Resolve/Discard)과 snapshot 행을 확인 **단언이 바뀐 core 테스트** - `agent_sleep.rs` `input_to_a_sleeping_pane_goes_nowhere`: dispatch 거절 대신 `TerminalControl::Asleep`이 잠듦 끝 뒤에만 나가는지 - `snapshot_delta.rs` `retained_views_keep_a_hidden_tabs_output_arriving`: 숨은 탭 pane에 Release/Forget이 없고 `controlling`으로 남는지(바이트는 hub 테스트가 봄) - `agents_settings_remote.rs` `remote_session_sync_reconciles_target_scoped_structured_terminals`: core 세션 대신 Attach(40x120), `controlling`, Forget; `ordinary_click_uses_detected_pane_agent_and_never_sends_enter`: `TerminalControl::Write` 바이트 - `labels.rs` 두 테스트, `delivery.rs` `no_hide_key_ends_a_draft_not_even_the_enter_that_opens_a_picker`: `key` 이벤트 대신 node의 입력 보고, 같은 수 - `devices.rs` `returning_to_this_machine_gives_the_keyboard_back_to_the_local_pane`: 입력 보고 전 pane 투영(core가 투영하지 않은 pane의 보고를 무시하므로) - `pane_geometry.rs` 도우미 `runtime_on`, `resizes`: 쓴 JSON 줄 대신 `TerminalControl::Resize` - `snapshot_delta_payload(rev, seq)` -> `(rev)` 서명만: `snapshot_delta.rs`, `operator_focus.rs`, `factory_screen.rs`, `lineage.rs`, `links.rs`, `project_sessions.rs`, `projects.rs`, `recent_checkouts.rs`, `view_areas.rs`, `workspace_view.rs` - `LiveContext.herdr_bin` 제거만: `agent_connection`, `control_order`, `home`, `key_routing`, `repository_clone`, `session_navigation`, `terminal`, `tree_close`, `session_sync/{coordinator,tests}`, `attachments` **hided, web** - `hided/tests/it/handshake.rs` `a_reconnect_resumes_from_the_client_cursor`: snapshot에 terminal 필드가 없고 terminal cursor 0으로 이어짐; 도우미 `send_event`가 `terminal` frame을 건너뜀 - `hided/src/server.rs` 두 테스트: `classify_frame`의 `chunks_dropped` 인자 제거(그 경우는 hub 테스트로) - `hided/tests/it/node_contract.rs` 도우미 `Device::start` -> `start_with(pane_events, terminals)` - `web/src/store.test.ts`: delta chunk 대신 `terminal` frame과 cursor; 초기 fixture `terminalSequence` 0 -> null - remote probe `official_remote_terminal_session_fixture_probe` -> `hide-node/tests/it/remote_terminal_probe.rs`: node 연결로, 표식은 vt100 화면에서 읽음(Herdr 0.9.3이 스크롤을 바뀐 셀로 다시 그려서, b520d6eb에서도 실패) </details> <details><summary>follow-up 후보</summary> 리뷰에서 나왔지만 이 층 밖이거나 위험이 낮아 남긴 것입니다. 머지 뒤 이슈로 엽니다. - 재연결 gap 뒤 화면과 pane이 같은지 보는 e2e(B11/B12). 지금은 hub 단위 테스트와 측정의 실제 overflow, redraw만 있습니다. - 새 기기 node에 잠듦, 닫힘 intent를 다시 보내지 않습니다. - hub cursor에 epoch가 없습니다. - 256 KiB 넘는 paste는 기기 pane을 끝냅니다(키 상한과 같은 규칙). - 동의를 거둬도 기기 route가 남습니다. - pane id를 argv로 넘기기 전 모양 검사, `RemoveClipboard` 경로 범위, close reason에 들어가는 serde 문구. - `Client.unsent`의 0 항목 정리, core 로그의 node 기록 중복. - start-session 상한이 시작 중인 pane을 세는 방식. - 키 handler `schema_version` 값과 디코드 크기 상한. - 내부 상태를 읽는 테스트를 호출자가 보는 단언으로. - B20 Windows와 observer 모드 실행. - 조용한 기계에서 300 샘플로 driven echo 여유 재측정. - 기기 터미널이 helper 설치에 기대는 시간(`install-timing`), SFTP 설치의 크기 검사와 staging 정리. - 기기가 고른 note kind가 core 로그 기록의 맨 위 `kind`에 기기 표시 없이 들어갑니다(core 기록처럼 읽힐 수 있음). - 기기 pane의 pane 조작 실패(`pane.split_failed` 등)는 기기 Herdr의 문구를 last error로 가져옵니다(운영자가 시작한 동작의 답). - 거절 횟수 기록은 새 거절이 다음 창을 열 때까지 미뤄집니다(잃지는 않음). - 이름을 기억하는 256개 pane을 넘긴 pane은 조용히 거절됩니다(운영자 자신의 화면이 지어낸 pane id 256개를 쳐야 생김). - 포커스 창(2초)이 지나 온 포커스 말은 기록 없이 버립니다. - 4 MiB 넘는 full chunk는 그 pane을 로그 기록만 남기고 기다리게 둡니다. - `install_device`가 routes lock 안에서 Shown을 보내 멈춤 기록을 남길 수 있습니다. - 기기의 event/progress 줄은 128 MiB 답 상한을 따릅니다(이 PR 전부터). - 모든 node가 보고 채널 하나(16,384개, 넘으면 대상별로 합침)를 같이 씁니다. hub의 client당 메모리 합계 설명이 없습니다. - `device-guard.sh`: 키와 known_hosts 경로의 `%` 거절, `MEASURE_DEVICE_HOME`을 realpath로. - B3도 B2처럼 회차별 p95 중간값으로 판정하고 기기 링크의 잡음을 적기. - 멈춰서 끊긴 연결의 재연결은 가짜 링크로만 따라가 봤습니다. - 측정 harness: 회차마다 다른 표식 접두어를 써서 앞 회차의 글자가 뒤 표본을 끝내지 못하게. `run.sh`의 sidebar 단계 주석도 한 칸 sidebar에 맞게. - 이 Mac 기기로 포커스를 옮길 때 기기 attach 의도를 놓는지 보는 테스트가 없습니다(core 터미널 세션과 함께 빠짐). - main의 `web/src/generated/hided-ws.ts`에 main 스키마의 `factory_question_guard`가 빠져 있습니다. - 기기 로그 상한은 연결마다 초당이라, 계속 넘치면 1 MiB 로그를 빠르면 약 1분에 채우고 두 번째에는 이전 파일도 바뀝니다. 여러 연결이나 재연결이면 더 빠릅니다. 기기 전체에 더 긴 구간의 상한이나 기기 기록용 별도 로그가 필요합니다. - 마지막 창의 셈 기록은 writer가 놓을 때 남아, 멈춘 링크에서는 막힌 write가 끝난 뒤입니다. - 기기 helper가 폴더 답 중간에 시간 초과로 멈추면(`ask_facts`의 첫 실패), 남은 폴더는 지난 연결의 답을 다음 연결까지 씁니다. catalog는 그동안 unavailable을 이유와 함께 보입니다. - Retry 전 연결이 빚진 읽기의 늦은 실패가 새 연결의 `unavailable`로 잠깐 남습니다. 모든 폴더가 답해져 있으면 화면에 보이지 않고, helper가 다시 붙으면 지워집니다. - `FrameShown`의 `u64::MAX` 시각과 여러 스레드의 출력 순서를 직접 고정하는 테스트가 없습니다(`saturating_sub`와 drainer 순서는 코드로만 봄). - `hide-host`의 git 테스트 도우미가 운영자 git 설정의 커밋 서명을 따라, 서명 agent가 멈추면 실패합니다(`-c commit.gpgsign=false`가 없음, 이 diff 밖). - 다시 허락(동의 갱신) 뒤 별칭이 다른 기계를 가리키면, 새 helper가 답할 때까지 지난 기계의 폴더 답을 씁니다. 답을 준 기계의 identity를 답과 함께 두고 다르면 지우는 쪽이 이 묶음을 닫습니다(지금은 `IdentityChanged`만). - helper의 identity 확인 전에 다른 기계의 Herdr 세션이 지난 답으로 묶여 보일 수 있습니다(화면만, helper 연결과 credential 없음). - sink panic 뒤 잃은 frame은 다시 그리지 않습니다(기록은 `terminal.sink_panicked`, 넘김은 이어집니다). - 상한에서 `Shown`이 아직 오지 않은 view도 함께 잊힙니다(상한 길에서만). - 잠든 agent pane 128개가 보이지 않는 탭에 있으면 그것만으로 상한이 차 새 pane의 view가 거절됩니다. frame 기다림은 상한 밖으로 옮겼고(리뷰 2차 8번), 잠듦도 같은 모양이 낫습니다. - 상한에서 잊지 않는 표시 중 잠듦만 테스트가 있습니다(닫힘, paste 대상은 코드로만 봄). - `/ws` 토큰을 가진 쪽이 오래된 키 하나씩 붙잡은 pane으로 상한을 채울 수 있습니다(이 PR 전부터). 키가 모두 나이 상한을 넘은 hold는 빈 것으로 보는 쪽이 닫습니다. - 지금 세션이 보이는 폴더만으로 1,024개를 넘으면 그 상태를 알리는 기록이 따로 없습니다(잘린 것이 있을 때만 남김). - 키가 넘친(`Overflowed`) 세션 없는 pane은 잊히지 않습니다. - core는 쓰기 실패한 paste를 다시 시도할 수 있다고 보이지만, 그 시도는 늘 "연결이 바뀜"으로 끝납니다(이 PR 전부터). - 리뷰 3차 7번: 기기 출력은 SSH reader에서 base64를 풀고 hub에서 다시 base64로 만듭니다. full이 아닌 chunk는 받은 base64를 그대로 넘길 수 있습니다(효율). - 리뷰 3차 8번: `DeviceSink::output`이 frame마다 routes mutex를 두 번 잡고(attach 확인, release 경합) 그 안에서 `routes.due()`를 돕니다. 키, control, 보고와 다툽니다(효율). - `have_terminal_epoch`의 wire 수준 테스트가 없습니다. `hided/tests/it/handshake.rs`는 epoch 없이 cursor를 보내 이제 다시 그리기로 가지만, pane이 없어 이어 받기와 같아 보이고 frame 종류만 봅니다. hub와 web store 테스트가 양 끝을 봅니다. - `terminal.redraw_unanswered`는 창 단위로 묶지 않습니다(client, pane, 10초 요청마다 최대 한 줄). - reader는 자기 묶음 뒤에도 아무도 기다리지 않는 작은 배달을 넘깁니다. control이 쉬지 않고 오면 그만큼 머뭅니다(control 속도로 한정). - 기기의 새 연결에 다시 알린 잠듦과 닫힘 pane은 node의 붙이지 않은 pane 128개에 셉니다. 붙지 않은 pane은 닫힘이 풀린 뒤 상한이 거둘 때까지 빈 항목으로 남습니다. - shutdown 테스트는 `RemoteHost` 없이 평범한 link로 봅니다. 실제 연결의 line handler를 거치는 고리는 core가 host를 놓으면 풀린다고 코드로만 봤습니다. </details> ## Breaking change - `/ws` wire와 node 프로토콜이 바뀝니다(`PROTOCOL_VERSION` 26, main의 25는 reader 기능). 다른 빌드의 화면은 붙지 않고, 번들의 `hide connect`가 지금 규칙대로 다른 빌드 데몬을 교체합니다. - 기기 id에 `:`가 있으면 등록되지 않고, 저장돼 있던 것은 연결되지 않습니다. 추가 폼으로 만든 id에는 `:`가 없습니다. - 연결된 기기는 다음 연결 때 새 helper 버전을 설치합니다. 운영자가 할 일은 없습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/core-host-node-terminal/prd.md` (sha256 8c3ad2236a02833444791e78027f0396a29ffc32350b068c134c042ef6b666a8) - Base 49d438c → head c20c882, verified 2026-10-09T03:23:46.623Z: PASS - Verification report: `agents/runs/core-host-node-terminal/verification-report.json` and `agents/runs/core-host-node-terminal/verification-report.md`; source fingerprint 0112e4a79bb45a7f5502901314871da4dad8c45b3eeca4bb9cb791af32b176b0 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews (advisory, all native subagents unless named): - Fidelity, Code, Security set on 0f1cc72 and its follow-up through 8447170: every Fix now fixed with a commit and a test (4cf5b58..8447170); follow-ups listed in the body. - Fidelity, Code, Security follow-up set on a589a8e: Fix now (an id ending in :pane still overlapped, a device's Error became the operator's last error, a device could flood this machine's log) fixed in 7905e8f and f9e996f. - Code and Security on f9e996f: device notes bypassed the record cap and the last window's count was lost; fixed in 84a504e. - Code and Security on 84a504e: the cap counted records not bytes, and the drop flush was untested; fixed in a9554f4. - Code and Security on a9554f4: no Fix now; three follow-ups taken in c839d80 (reworded from b4521effd, same tree). - Follow-up review on b4521effd: no Fix now; a docs wording follow-up is listed in the body. - Fidelity, Code, Security on the merge of origin/main a03ac58 (staged resolution): no code defect; two stale protocol-25 doc lines fixed and the audited-24 terminal skip asserted in ff732a5. - Short follow-up on ff732a5 and 8b40066 (harness fix found by the h7 pair): no Fix now; a stale comment in run.sh is a follow-up. - Observer code review round 1 on 8b40066: ten findings fixed in 9ca38de, the nine behavioral ones each with a test that fails before. - Fidelity, Code, Security set A on 8b40066..de86508: Fix now (a Retry whose helper came first lost the worktree reread) fixed in c4c74b4; follow-ups taken in c4c74b4, 8f6e416, e2a6aa3. - Fidelity, Code, Security set B on de86508..52e827a: Fix now (the cap forgot panes the core flagged once, the ARCHITECTURE cap rule, the paste retry that cannot happen) fixed in 5aa9bf8 and withdrawn in 472e249; follow-ups taken in 26e3da4 and 62f1833. - Fidelity and Code+Security pair on 52e827a..62f1833: no Fix now; follow-ups taken in 163eba1 and e1752e9. - Observer code review round 2 on 62f1833: nine findings changed in 3114815..bc1a194 after merging origin/main 49d438c (d197bfd), each behavioral fix with a test that fails before; h10 key-echo pair on bc1a194. - Observer code review round 3 on bc1a194: items 1-6 changed in 59f15ed..5714e43, each with a test that fails before; 7 and 8 are follow-ups in the body. - Fidelity, Code, Security on bc1a194..5714e43: Fidelity and Security no Fix now; Code's Fix now (a device's new node ignored a replayed closing control) fixed in c20c882 with a test that fails before; follow-ups in the body. - Follow-up Code review of c20c882: no Fix now. h11 key-echo pair on c20c882. - Short Fidelity review of the evidence added on c20c882 (h11, the eleven-pair comparison, the real-Herdr lanes, the verify report): no Fix now; every figure in h11-results.md matches its trial data. - Evidence: 112 registered (91 log, 21 file); paths are local to the run directory - agents/runs/core-host-node-terminal/notes/nextest-head-844717054.log - agents/runs/core-host-node-terminal/notes/ignored-real-herdr-844717054.log - agents/runs/core-host-node-terminal/notes/package-844717054.log - agents/runs/core-host-node-terminal/e2e/packaged-844717054.log - agents/runs/core-host-node-terminal/e2e/web-e2e-bab498f69.log - agents/runs/core-host-node-terminal/e2e/desktop-e2e-0f1cc72de.log - agents/runs/core-host-node-terminal/measure/compare-head.json - agents/runs/core-host-node-terminal/measure/head-results.md - agents/runs/core-host-node-terminal/measure/device-head-summary.json - agents/runs/core-host-node-terminal/mini/device-results.md - agents/runs/core-host-node-terminal/mini/sshd-sampler.log - agents/runs/core-host-node-terminal/mini/device-trials-head.log - agents/runs/core-host-node-terminal/notes/remote-terminal-probe-844717054.log - agents/runs/core-host-node-terminal/notes/incident-mini-helper-2026-10-09.md - agents/runs/core-host-node-terminal/notes/operator-link-blips-2026-10-09.md - agents/runs/core-host-node-terminal/review/dispositions-0f1cc72de.md - agents/runs/core-host-node-terminal/notes/moved-tests.md - agents/runs/core-host-node-terminal/measure/six-pairs-results.md - agents/runs/core-host-node-terminal/measure/compare-six.json - agents/runs/core-host-node-terminal/measure/compare-six.py - agents/runs/core-host-node-terminal/measure/head-h5h6.log - agents/runs/core-host-node-terminal/notes/release-build-a589a8efd.log - agents/runs/core-host-node-terminal/review/dispositions-final.md - agents/runs/core-host-node-terminal/notes/focused-b4521effd.log - agents/runs/core-host-node-terminal/notes/lint-review-fixes-6.log - agents/runs/core-host-node-terminal/notes/sasu-verify-f9e996fc3.log - agents/runs/core-host-node-terminal/notes/sasu-verify-84a504e54.log - agents/runs/core-host-node-terminal/notes/reword-b4521effd.txt - agents/runs/core-host-node-terminal/measure/h7-results.md - agents/runs/core-host-node-terminal/measure/compare-seven.json - agents/runs/core-host-node-terminal/measure/compare-seven.py - agents/runs/core-host-node-terminal/measure/head-h7.log - agents/runs/core-host-node-terminal/notes/release-build-ff732a538.log - agents/runs/core-host-node-terminal/notes/test-merge-main.log - agents/runs/core-host-node-terminal/notes/verify-web-merge-main.log - agents/runs/core-host-node-terminal/notes/lint-merge-main-2.log - agents/runs/core-host-node-terminal/notes/sasu-verify-ff732a538.log - agents/runs/core-host-node-terminal/review/dispositions-merge-main.md - agents/runs/core-host-node-terminal/notes/review-r1-fails-before.log - agents/runs/core-host-node-terminal/notes/review-r1-tests.log - agents/runs/core-host-node-terminal/notes/mailbox-linux-root-cause.md - agents/runs/core-host-node-terminal/notes/mailbox-probe-1-37854647555.log - agents/runs/core-host-node-terminal/notes/mailbox-probe-2-37855992206.log - agents/runs/core-host-node-terminal/notes/mailbox-probe-3-37856553971-contexts.jsonl - agents/runs/core-host-node-terminal/notes/mailbox-probe-4-37857469194.log - agents/runs/core-host-node-terminal/notes/retry-fails-before.log - agents/runs/core-host-node-terminal/notes/reread-fails-before.log - agents/runs/core-host-node-terminal/notes/removal-fails-before.log - agents/runs/core-host-node-terminal/notes/mailbox-lane-de8650825.log - agents/runs/core-host-node-terminal/notes/test-crates-de8650825.log - agents/runs/core-host-node-terminal/measure/h8-results.md - agents/runs/core-host-node-terminal/measure/compare-eight.json - agents/runs/core-host-node-terminal/measure/pair-h8.log - agents/runs/core-host-node-terminal/notes/release-build-de8650825.log - agents/runs/core-host-node-terminal/notes/catalog-r2-fails-before.log - agents/runs/core-host-node-terminal/notes/sink-panic-fails-before.log - agents/runs/core-host-node-terminal/notes/unowned-panes-fails-before.log - agents/runs/core-host-node-terminal/notes/asleep-at-cap-fails-before.log - agents/runs/core-host-node-terminal/notes/test-crates-e2a6aa398.log - agents/runs/core-host-node-terminal/notes/lint-r3.log - agents/runs/core-host-node-terminal/notes/sasu-verify-62f183328.log - agents/runs/core-host-node-terminal/notes/mailbox-lane-62f183328.log - agents/runs/core-host-node-terminal/notes/terminal-children-62f183328.log - agents/runs/core-host-node-terminal/notes/mailbox-ab/summary.txt - agents/runs/core-host-node-terminal/notes/mailbox-ab2/summary.txt - agents/runs/core-host-node-terminal/notes/mailbox-ab/head-spawn-failure-hook-diagnostics.json - agents/runs/core-host-node-terminal/measure/h9-results.md - agents/runs/core-host-node-terminal/measure/compare-nine.json - agents/runs/core-host-node-terminal/review/dispositions-r2-native.md - agents/runs/core-host-node-terminal/review/dispositions-r2-delta.md - agents/runs/core-host-node-terminal/notes/lint-r4.log - agents/runs/core-host-node-terminal/review/code-review-r2-dispositions.md - agents/runs/core-host-node-terminal/notes/paste-refused-deadlock-fails-before.log - agents/runs/core-host-node-terminal/notes/reports-past-limit-fails-before.log - agents/runs/core-host-node-terminal/notes/device-reports-past-cap-fails-before.log - agents/runs/core-host-node-terminal/notes/control-waits-on-sink-fails-before.log - agents/runs/core-host-node-terminal/notes/pane-id-length-fails-before.log - agents/runs/core-host-node-terminal/notes/watch-ghosts-fails-before.log - agents/runs/core-host-node-terminal/notes/same-size-resize-fails-before.log - agents/runs/core-host-node-terminal/notes/hub-pane-queues-measure.md - agents/runs/core-host-node-terminal/notes/lint-r2-bc1a1949a.log - agents/runs/core-host-node-terminal/notes/test-workspace-r2-bc1a1949a.log - agents/runs/core-host-node-terminal/notes/mailbox-lane-bc1a1949a.log - agents/runs/core-host-node-terminal/notes/terminal-children-bc1a1949a.log - agents/runs/core-host-node-terminal/notes/real-herdr-bc1a1949a.log - agents/runs/core-host-node-terminal/notes/test-merge-49d438cb0.log - agents/runs/core-host-node-terminal/notes/test-workspace-merge-deadlock.log - agents/runs/core-host-node-terminal/notes/test-hide-host-merge-unsigned.log - agents/runs/core-host-node-terminal/notes/verify-web-merge.log - agents/runs/core-host-node-terminal/measure/h10-results.md - agents/runs/core-host-node-terminal/measure/compare-ten.json - agents/runs/core-host-node-terminal/notes/sasu-verify-bc1a1949a.log - agents/runs/core-host-node-terminal/review/code-review-r3-dispositions.md - agents/runs/core-host-node-terminal/review/dispositions-r3-native.md - agents/runs/core-host-node-terminal/review/r3-review-handoff.md - agents/runs/core-host-node-terminal/notes/r3-two-readers-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-device-asleep-replay-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-hub-epoch-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-router-cycle-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-quiet-redraw-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-frame-watch-rearm-fails-before.log - agents/runs/core-host-node-terminal/notes/r3-closing-unknown-pane-fails-before.log - agents/runs/core-host-node-terminal/notes/lint-r3-c20c88234.log - agents/runs/core-host-node-terminal/notes/test-workspace-r3-5714e43a2.log - agents/runs/core-host-node-terminal/notes/verify-web-r3-5714e43a2.log - agents/runs/core-host-node-terminal/notes/release-build-c20c88234.log - agents/runs/core-host-node-terminal/measure/h11-results.md - agents/runs/core-host-node-terminal/measure/compare-eleven.json - agents/runs/core-host-node-terminal/measure/compare-eleven.py - agents/runs/core-host-node-terminal/notes/mailbox-lane-r3-c20c88234.log - agents/runs/core-host-node-terminal/notes/terminal-children-r3-c20c88234.log - agents/runs/core-host-node-terminal/notes/real-herdr-r3-c20c88234.log - Changed paths: 122 (see Files changed) - Delivery: mode pr, branch `spec/core-host-node-terminal`, base `main` </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.
Related: #751
Summary
#751 이후 기기 helper 설치가 느린 링크에서 끝나지 않습니다.
41 MB
hided를 32 KiB SFTP 쓰기 하나씩 답을 기다리며 올려서, RTT 약 78 ms(Tailscale)에서 약 2분이 걸리고INSTALL_TIMEOUT120초를 넘깁니다.시간 초과 때 업로드가 중간에 버려져 staging 파일(시도당 약 35 MB)이 기기에 남고, 다음 시도는 새 이름으로 다시 올립니다.
이 PR은 쓰기와 읽어 확인하기를 16개씩 동시에 보내고(왕복당 512 KiB), 이 프로세스가 버린 staging 파일을 같은 폴더의 다음 업로드가 지우게 합니다.
INSTALL_TIMEOUT은 그대로입니다.Review
hide-node/src/ssh/host.rs- failure path. 쓰기는 각자 offset을 지정하므로 도착 순서와 무관하고, 모든 답을 확인한 뒤 전체 파일을 다시 읽어 sha256으로 확인합니다.ABANDONED_STAGING- 이 프로세스가 만든 이름만 기억하고(최대 64개), 같은 폴더에 다음 업로드가 올 때만 지웁니다. 다른 프로세스나 다른 pid가 남긴 파일은 건드리지 않습니다.Evidence
mini에host.failed"Installing the device helper timed out; nothing was started" 115회,host.ready0회..upload-hided-<pid>-<n>파일 110개, 3.7 GB가 남았습니다(손으로 지웠습니다).cargo fmt --check통과.