Skip to content

Windows·Linux 패키지의 kit 설치와 데몬 교체 활성화 - #355

Merged
yansfil merged 6 commits into
mainfrom
platform/kit-install
Oct 3, 2026
Merged

yansfil merged 6 commits into
mainfrom
platform/kit-install

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: Refs with-hide/hide-private#103

Summary

  • Windows·Linux 패키지의 첫 실행에서 hide 명령과 설정된 Claude Code·Codex hook을 설치합니다.
  • Linux는 ~/.local/bin/hide 링크, Windows는 같은 폴더의 hide.cmd와 .hide-kit junction을 사용합니다.
  • 새 패키지가 이전 빌드의 데몬을 교체하고 명령·hook 경로를 갱신합니다.
    개발 빌드는 설치와 교체 권한을 얻지 않습니다.
  • hcoord는 두 OS에서 이유와 함께 Absent를 유지하며, 설치·업데이트 안내와 CI smoke를 함께 바꿨습니다.

Review

  • 판단해 주세요: Windows 명령은 npm의 .cmd 관례를 따릅니다. junction으로 한글 경로와 권한 문제를 처리하며 PATH는 운영자가 직접 설정합니다.
  • 조심해서 볼 파일: hide-kit/src/cli_windows.rs, cli.rs, record.rs - 외부 명령을 보존하며 삭제된 이전 패키지의 소유권을 설치 기록으로 증명하는 경계입니다.
  • 조심해서 볼 파일: local.rs, hided/src/cli.rs - 패키지 판별이 자동 설치와 다른 빌드의 데몬 교체 권한을 함께 결정합니다.
  • 조심해서 볼 파일: desktop/scripts/smoke-package.mjs - 실패 시 데몬·임시 폴더 정리와, 두 번째 패키지의 교체·경로 갱신 증거를 확인해 주세요.

Evidence

  • 확인한 것: 로컬 fmt·Clippy, web 860개·desktop 94개, hcoord 단위 48개·E2E 35개, 구조·설계 계약 검사가 통과했습니다.
  • 확인한 것: 로컬 Rust 전체 1,868개와 최종 head 2d7c7990의 verify·Windows check와 Windows·Linux package smoke가 통과했습니다.
    각 OS의 18개 smoke 검사는 첫 설치·데몬 교체·경로 갱신·최종 종료를 확인합니다.
  • 확인하지 못한 것: 실제 Windows/Linux 기기에서 GUI의 Devices 행, 일반 터미널 설정, 실제 에이전트 세션의 hook 실행은 확인하지 않았습니다.
추가 증거

패키지 smoke는 격리 HOME과 Herdr socket에서 새 셸의 명령 실행, 두 hook의 경로·PowerShell 형식, 타 도구 설정 보존과 hcoord Absent를 확인합니다.
같은 archive를 다시 푼 두 번째 패키지에 PE/ELF 실행 이미지 뒤의 overlay를 추가해 데몬 SHA-256을 바꾸고, 새 PID·새 build hash·갱신된 명령과 hook·동일 빌드 재접속·개발 빌드 교체 거부를 검사합니다.
이는 두 릴리스의 소스 차이를 검증하는 대신 실제 교체 판단 기준인 실행 파일의 해시 차이를 검증합니다.
로컬 최초 전체 빌드는 디스크 부족으로 중단됐고, 이 worktree만 cargo clean한 뒤 디버그 정보를 줄여 재실행했습니다.
중간 재검증에서 기존 label worker 타이밍 테스트 하나가 실패했으며 해당 테스트의 단독 재실행은 통과했습니다.
Windows에서 처음 켠 kit suite의 기존 /bin/sh fixture를 자기 실행 Rust child로 바꿨으며 종료·출력·환경 격리 기대값은 유지했습니다.
패키지 판별 조건 제거, 외부 명령 소유권 오판, 이전 설치 경로 기록 생략의 세 결함을 심었고 각 회귀 검사가 예상대로 실패했습니다.
원본 복구 후 전체 suite도 통과했습니다.
Windows smoke에서 드러난 정리 경로의 문제는 고정된 첫 패키지 CLI로 종료하도록 수정했습니다.
Windows 두 번째 폴더 복사에 필수 파일이 빠진 실패는 실제 archive를 기존 Extract All/tar 절차로 다시 풀도록 수정했습니다.
두 번째 패키지는 기동 전에 준비·검증하고 최초 실패와 정리 실패를 모두 보고합니다.
운영자의 앱, Herdr와 실제 홈 설정은 변경하지 않았습니다.

@yansfil

yansfil commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

머지 준비 완료 2d7c799
Windows·Linux 패키지의 kit 설치와 데몬 교체를 구현했고 verify와 두 OS package smoke가 통과했습니다.

@yansfil
yansfil merged commit 7c974f3 into main Oct 3, 2026
23 checks passed
@yansfil
yansfil deleted the platform/kit-install branch October 3, 2026 17:18
yansfil added a commit that referenced this pull request Oct 5, 2026
…ult (#490)

Related: the unclassified-paths table (reviewer decision), #486
(separate branch; both touch `ci-plan.py`'s neighbours, the second to
merge resolves a small conflict in `test_ci_plan.py` and `TESTING.md`)

## Summary

`ci-plan.py` sent every path no rule claimed to every lane, so 42 of the
last 80 merged pull requests (52%) ran all ten.
This names the paths whose readers are known and leaves every other path
on "every lane": `POLICY_ONLY` (no lane reads it: `agents/`, `site/`,
`tools/`, `spikes/`, `.gitignore` files, PR template, workflows `pr.yml`
does not call, `scripts/tests/`, the policy, design, release and
measurement scripts, Markdown below an unclaimed folder) plans `policy`
alone, and `NAMED_LANES` (fixtures, Playwright, eslint and vitest
configs, `web/scripts`, `desktop/scripts`) plans the lanes that read it.
A path that is not named, including any new one, still plans every lane.

## Review

- **판단해 주세요**: `web/e2e` files that are not specs plan `web-checks`,
`web-e2e`, `web-e2e-platform`, `windows-e2e`, `desktop-checks`,
`desktop-e2e`, `windows-check` (desktop suites import them,
`desktop/e2e` unit tests run in `windows-check`); they drop `rust` and
`os-contract` only.
- **판단해 주세요**: `scripts/ci-plan.py` stays on every lane although the
table listed it as `policy`: it decides the plan for every later pull
request, and `policy` runs its tests but not what a wrong rule would
skip.
- **판단해 주세요**: lockfiles, `package.json`, `Cargo.lock`, `contracts/`,
`verify-*.sh`, `ci-flaky-report.py` and the three workflows lanes use
stay full (the table's class where full is right).
- **조심해서 볼 파일**: `scripts/ci-plan.py` (`POLICY_ONLY`, `NAMED_LANES`,
`named_lanes`) and `scripts/tests/test_ci_plan.py` (`NamedPaths`,
including a check that no `POLICY_ONLY` script is named by a lane's
workflow job or the scripts those jobs run).

## Evidence

- **확인한 것**: `scripts/tests` suite passes (27 plan tests; a case per
named path, one that every unnamed and shared path is still full, one
that a named path does not narrow a plan with another reason, and the
reader check).
- **확인한 것**: the changed plan run on the file lists of the last 80
merged pull requests (#355-#483) against main's plan:

| | before | after |
| --- | --- | --- |
| pull requests planning every lane | 42 | 19 |
| pull requests whose plan changed | | 20 |
| lane runs (sum over the 80) | 683 | 585 (-14%) |

| lane | PRs running it before -> after |
| --- | --- |
| policy | 80 -> 80 |
| rust | 76 -> 59 |
| web-checks | 63 -> 51 |
| desktop-checks | 47 -> 39 |
| os-contract | 65 -> 48 |
| windows-check | 65 -> 58 |
| windows-e2e | 71 -> 61 |
| web-e2e | 78 -> 68 |
| web-e2e-platform | 71 -> 61 |
| desktop-e2e | 67 -> 60 |

No pull request gained a lane.

- **확인한 것**: lanes that caught a failure keep it. Of the 300 most recent
`pr.yml` pull-request runs, 73 failed; 72 had a failing lane (the other
failed in `verify` only).
Each run's failing lane was checked against the new plan for that pull
request's file list (the run's own diff where the pull request is still
open, the final file list for merged ones, so earlier pushes can
differ).
The lane stays planned in 68 of 72. The four that would not run it, and
why they are not catches:
- #466 (2 runs): `windows-e2e` failed on `s2.spec.ts:55` and `less`, a
main failure (#475, #424) that the pull request, which touched four
`desktop/e2e` files, did not cause. The new plan runs `desktop-checks`,
`desktop-e2e`, `windows-check`.
- #366: `rust` and `windows-check` failed in `hided` and disk tests
before nextest retries (#463) on a pull request that changed release
scripts and docs only.
- #369: README and SECURITY only; `windows-check` failed before path
selection existed, and the current plan does not run it for those files
either.
The failures that were this pull request's own (#474 desktop-e2e, #436
windows-e2e, #439 web-e2e-platform, #385, #364) keep their lane.
- **확인하지 못한 것**: the narrowing is judged on file lists, not by
re-running CI; a pull request that changes a named file in a way that
needs a lane left out is caught by main's full run, as before.

<details><summary>CI 크기 (D3)</summary>

`ci-plan.py` +77 lines (two tables and `named_lanes`), `test_ci_plan.py`
+97, `TESTING.md` +5; no workflow changed.

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