Skip to content

feat: download device kits when a device connects - #1700

Merged
yansfil merged 11 commits into
mainfrom
feat/device-helper-platforms
Oct 27, 2026
Merged

yansfil merged 11 commits into
mainfrom
feat/device-helper-platforms

Conversation

@yansfil

@yansfil yansfil commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Linux x64·ARM64 기기가 Mac 앱과 같은 버전의 도우미·설치 kit·Herdr를 받도록 바꿉니다.
앱에는 작은 manifest만 넣고, 첫 연결에 릴리스 파일을 검증해 내려받아 재사용합니다.
연결 전 실패 사유·재시도를 표시하고, Intel Mac은 지원 종료 사유를 표시합니다.

Linux 기기의 연결 전 릴리스 없음 사유와 헬퍼 다시 시도, 한국어·800px·Dark 합성 상태

Intel Mac 지원 종료 사유, 한국어·800px·Dark 합성 상태

Review

  • 판단해 주세요: 첫 연결의 네트워크 의존성, 캐시 정책, 지원 종료 문구와 실패 행의 가독성을 확인해 주세요.
  • 조심해서 볼 파일: device_bundles.rs·host.rs의 검증 실패·캐시 교체·업로드 경계입니다.
  • 비용 검토: 기존 연결 worker만 사용하고, 캐시는 두 플랫폼·단일 staging·최대 1024 MiB로 제한합니다.
  • HTTP 60초·캐시 잠금 대기 5초이며 runtime 잠금·입력·틱 경로에는 작업을 추가하지 않습니다.
  • private publisher는 docs/BUILD.md 계약에 따라 같은 릴리스에 Linux 번들 2개와 manifest를 첨부해야 합니다.
  • 릴리스 검사기·draft writer는 총 18개 자산과 번들 크기·SHA를 검증하며, draft 전 소스 커밋도 확인합니다.

Evidence

  • 다운로드·무결성·릴리스 없음·Intel 미지원 행과 정리 실패의 반환·진단·재시도 회귀가 통과했습니다.
  • 한국어 Light/Dark·800px에서 제품 컴포넌트의 합성 갤러리 화면을 확인했습니다.
  • Rust lint/test, web/desktop, 정책, workflow, pin, 디자인 계약 검사가 통과했습니다.
  • Mac 패키지의 실행·서명과 Windows·Linux 패키지의 설치·실행·버전 업데이트 검사가 통과했습니다.
  • 앱은 432.1 MiB이며 기기용 데이터는 작은 manifest만 포함하고, 별도 Linux 번들 2×4개의 무결성과 아키텍처를 확인했습니다.
  • 최종 후보의 전체 CI가 통과했으며 mailbox는 실패 후 두 번째 실행에서 통과했습니다.
  • 확인하지 못한 것: 물리 Linux 기기의 다운로드부터 SSH 설치·handoff까지, private 게시 연결, 공식 Developer ID 서명·notarization입니다.

Breaking change

Intel Mac 기기는 지원하지 않습니다. Apple Silicon Mac과 Linux x64·ARM64 기기를 지원합니다.

추가 증거

같은 Linux 다운로드 실패 행, Light 합성 상태

같은 Intel Mac 지원 종료 행, Light 합성 상태

Verification record
  • 로컬 Rust lint·5853개(120개 제외), 웹 2169개·desktop 269개, 정책 682개(21개 skip)가 통과했습니다.
  • HTTP/cache 경계 6개와 실패 행·무결성 검사의 실제 회귀를 확인했습니다.
  • 새 조건·SHA 검사를 각각 제거하면 예상한 테스트가 실패했고, 복구 후 통과했습니다.
  • Mac package 실행 6개, DMG·ZIP 앱 서명 검사, 네이티브 4개의 ad-hoc 서명 검사가 통과했습니다.
  • Linux 번들의 각 파일은 0755, 명시한 SHA·size와 ELF x64/ARM64 헤더를 확인했습니다.
  • Candidate: c83bfd29a367705539f4d5a394cac49c2de31ae6.
  • verify 40432412737: tested merge f9391bb3dee2992bd5a46401799e969755f2de12, main 68c210abb908607bc036c7693acf2641d1da8b8a.
  • Mac package: 0.0.0-ci.4182, order 1291; manifest와 실제 네이티브 CLI의 version/source가 일치합니다.
  • ZIP 비압축 앱 합계 453070600 bytes, ZIP 183479366 bytes, manifest 1774 bytes입니다.
  • Mac 릴리스 자산 9개를 확인했습니다. 각 Linux 번들은 루트의 hided, hide, hide-agent-hooks, herdr 네 파일뿐입니다.
  • Linux x64·ARM64 producer는 각 플랫폼에서 빌드한 CLI의 version/source 검사도 통과했습니다.
  • 기존 앱 내 전체 번들 후보의 933982518 bytes와 크기를 비교했습니다. 서로 다른 커밋의 산출물이며 같은 커밋의 성능 비교는 아닙니다.
  • 화면 캡처는 2963e43이며 최종 후보까지 UI 소스 변경은 없습니다.
  • 첫 Mac CI의 installer 목록 오류는 수정 후 실제 package 검사와 6개/9개 조합 회귀가 통과했습니다.
  • mailbox 첫 실행은 helper-ready timeout 뒤 disk quota 초과로 실패했고, 같은 후보의 두 번째 실행에서 통과했습니다.
  • Base: main의 기기 bootstrap 변경을 merge로 통합했습니다. 연결 순서·서버 시작은 수정하지 않았습니다.
  • 기기 행은 연결 전 helper 실패와 unsupported 사유가 숨겨지는 조건만 고쳤습니다.
  • Pin은 contracts/herdr-bundle.json만 읽으며 기존 pin을 유지합니다.
  • 로컬 PRD와 run artifact는 커밋에 포함하지 않습니다.

@yansfil
yansfil marked this pull request as ready for review October 26, 2026 14:36
@yansfil yansfil changed the title build: bundle device helpers for Intel Mac and Linux feat: download device kits when a device connects Oct 26, 2026
@yansfil
yansfil merged commit 16f2f06 into main Oct 27, 2026
95 of 97 checks passed
@yansfil
yansfil deleted the feat/device-helper-platforms branch October 27, 2026 02:39
yansfil added a commit that referenced this pull request Oct 27, 2026
…1722)

Related: #1702, #1700

## Summary

- 기기에 서버가 없어도 Herdr가 고른 소켓을 유지하고, 못 읽으면 기기의 소켓·세션 환경 설정을 따릅니다.
- 서버 시작 실패의 Retry는 연결을 다시 열어 pane 서비스와 터미널 경로도 복구합니다.
- 보내기로 한 Herdr의 전송 실패는 기기 행의 설치 실패로 전달하고, 이전 유효 사본과 링크를 보존합니다.

## Review

- **판단해 주세요**: 시작 실패 뒤 연결 전체를 다시 여는 복구 범위와, 필수 Herdr 전송 실패의 재시도 경로.
- **조심해서 볼 파일**: `runtime/kit.rs`의 연결 복구, `ssh/host.rs`의 전송 오류,
`hide-host/src/kit.rs`의 링크 교체 순서.
- 기존 연결 worker를 사용하며 Runtime 잠금이나 session-sync에 I/O를 추가하지 않습니다.

## Evidence

- **확인한 것**: 세 항목 모두 현재 main에서 확인했고, 수정 전 회귀 테스트가 각각 실패했습니다.
- **확인한 것**: host/node 및 core Retry 테스트, 플랫폼 소켓 선택 검사와 전용 계정·소켓의 실제 SSH
6개가 통과했습니다.
- **확인한 것**: 실패 뒤 재연결에서 pane 소켓 접속, 터미널 제어권, 입력한 명령의 출력까지 확인했습니다.
- **확인한 것**: 최종 head의 계획된 CI lane 전체와 `verify`가 통과했습니다. 세 OS 계약, Rust,
원격 SSH, Linux/Windows 웹 및 macOS/Windows 데스크톱 E2E를 포함합니다.
- **한계**: 별도 core-move 검사 두 개는 기존 이슈와 같은 오류 뒤 CI 재시도에서 통과했습니다. 아래 기록에서
구분합니다.
- **확인하지 못한 것**: 실제 외부 기기와 네이티브 기기 행 클릭은 검증하지 않았습니다.
- 화면 파일과 문구 변경은 없습니다.

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

Base: `16f2f066b09b2ec7d95a3ede3ea7859c3447e092`.
Head: `f5274f1d278c582a7ad07786050172171a5e2bdf`.
CI checkout: `69892251f4591d0ae165c389ccc7e2d5ed866ea9`, the merge of
that head with main `c88c8c470e14a712245fa6e3cc27c2faedc7aada`.
The three original regression checks failed before production fixes.
Focused hide-host (140 unit + 67 integration) and hide-node (214 unit +
1 integration) suites passed, with existing ignored tests unchanged.
The core failed-start retry regression and platform host tests passed.
At preceding head `9df8bf1b3`, the complete platform integration rerun
passed 233 tests (2 existing ignored).
The final resolver change passed 22 platform host tests and the pinned
binary socket/session comparison; that comparison runs on every OS
contract lane.
All 6 isolated real-SSH bootstrap tests passed serially on the final
candidate, including environment socket/session selection, required
upload failure/re-send and usable terminals after failed startup.
The initial platform and parallel SSH attempts hit ENOSPC; the parent
freed space, and their final reruns above passed.
The pinned schema contract, core machine-boundary check, pin
single-source, attribution, design contract and diff whitespace checks
passed.
Full local lanes are deferred to CI at the parent's request because disk
space is shared with concurrent work.
Independent Code and Fidelity re-reviews passed the final head with no
Fix now findings; the initial Code review's environment-session gap is
resolved.
Optional follow-up: direct pin-file upload and final rename fault
injection; the current required-error propagation and preservation
checks cover their shared failure path.
Full final-head CI run
[40445618782](https://github.com/with-hide/hide/actions/runs/40445618782)
and its required `verify` passed.
Executed lanes: Rust (5,822 tests plus 7 separate checks), Windows
workspace/checks, remote mailbox/SSH, OS and SDK contracts on
macOS/Linux/Windows, Linux web E2E (383), Windows web E2E (64), macOS
desktop E2E (117) and Windows desktop E2E (19).
All 6 real SSH bootstrap tests and the pinned socket/session comparison
on every OS passed on their first attempt.
All web and desktop E2E logs reported no flaky tests.
Package and agent-journey lanes were not selected by the plan; this PR
does not claim they ran.
The remote lane also classified two core-move tests as flaky after
helper-readiness timeouts; both passed their one CI retry.
The same failures were already tracked from main in
[#1663](#1663) and
[#1428](#1428); CI appended this
run to those issues.
Issue #1428 is past its recorded expiry; this PR does not claim those
two flows are stable.

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