Repository navigation
Ship device-parity - #261
Merged
Merged
Conversation
The installed hook now runs the helper only when it is there, so an app moved or a device folder replaced leaves agent sessions working rather than failing every hook. The version marker moves to 6, which reads an older entry as outdated for the kit to replace.
The kit judges, installs and removes the hide command link, the Claude Code and Codex hooks, the agent labels plugin and hcoord against an explicit home, kit folder and Herdr socket, so this Mac and a device run the same code. A record under ~/.hide/kit tells a part the operator took away from one never installed, and another tool's files are never rewritten. The labels plugin gains a packaged manifest with no build step for the kit to link.
…r's socket from hcoord The kit target carries a stop flag that ends a child it waits on, local.rs derives this Mac's target from the app bundle and refuses build directories, and hcoord's daemon check is told which Herdr socket to use.
…n Settings A core-owned kit worker runs the launch pass, the operator's Reinstall and a re-read while Settings is open, with the runtime lock released. The first-run hook install, the per-runtime install event and the helper lookup it used are removed. Settings > Agents lists each machine's hook parts with Reinstall on a problem row only.
The release build adds the labels watcher, and the packager stages the packaged manifest, its scripts and the watcher in Contents/Resources/agent-context-labels, refusing to package when any is missing.
The helper's kit call points <root>/current at the build it runs from, removes older builds, and applies, reads or removes the kit for the helper root it was installed under; a request cannot name another folder. When the SSH channel closes, a kit step still running ends its child.
A device connection uploads the whole build (helper, hide, hook helper, labels plugin, hcoord) into its version folder, resuming what an interrupted install left, and the device's kit worker applies the kit on each connection, on Reinstall and when Settings opens. Consent contract 3 names the whole kit; a contract-2 consent for the same folders is carried to 3 on its next connection. Removing a connected device takes Hide's kit off it before its helper connection closes; a device that is not connected keeps it and the log says what stayed. The SFTP hide link and the older-build cleanup move to the kit and the helper.
A device pane's children come from the same judgement as a local pane's, with the pane's hook tokens carried from the device's Herdr and the device's kit report standing in for this Mac's hook files. The fixed remote-host reason is gone: a device where Hide may not install reads as not installed, and one not read yet as unknown.
…ne button Every machine row lists the kit's parts with where each is or why it is not, and offers Reinstall only when a part needs it. Adding or allowing a device agrees to the whole kit once, with the parts and their locations on the form; Add without files is gone. The removal confirmation says in one line what comes off the device and that hcoord stays.
…emoval ARCHITECTURE gains The install kit and consent contract 3, INSTALL says what a first launch and a device add install and how to take them off, agent-hooks describes the guarded v6 command and the kit's record instead of the first-run marker, UI_BEHAVIOR covers the Settings rows, and the docs index and build lists name the new owners.
…emoved, and carry hcoord's relocation through the kit
… an outdated consent's panes unknown
…t breaking each other
…before every reset
… attach through the fixture's relaunch
…oncurrent registrations and hook file mode
…ight status page load
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: PRD
agents/prd/device-parity/prd.md· follows #257 (bundled Herdr server start) and meets #255 (subtree close)Summary
hide-kit)가 같은 구성요소를 이 Mac에는 설치된 앱의 첫 실행에, 각 기기에는 연결 때 묻지 않고 설치한다.Review
/Applications위치 제한은 별도 보안 검토 대상으로 남긴다.hide-kit/src/lib.rs- 운영자 설정 파일과 LaunchAgent를 바꾸는 유일한 경로(계정 lock, private 폴더).hide-agent-hooks/src/install.rs- 운영자 설정 파일 쓰기의 failure path(mode와 symlink 보존, 임시 파일).herdr-core/src/runtime/kit.rs- runtime mutex 밖 worker, 늦은 응답, 기기 삭제 순서와 helper 연결 종료.herdr-core/src/remote/host.rs- 한 계정에 두 연결이 동시에 올리는 경합과 private 폴더.herdr-core/src/runtime/device_catalog.rs- regroup마다 lineage pass를 다시 돈다(#255와 만나는 곳, mutex 안의 일).desktop/src/main/host.ts- hcoord 준비 제거(kit 소유), 창은 status page 로드가 끝난 뒤에 shell을 연다.herdr-core/src/model.rs,contracts/snapshot-wire-enums.json- snapshot wire의DeviceSnapshot.kit.Evidence
device.kit_left) 마지막 삭제가 걷어냈다.~/.claude,~/.codex,~/.local/bin,~/.hcoord,/Applications/hide.app은 건드리지 않았다./Applications설치본 교체(운영자 소유라 하지 않았다).github::tests의 1초 deadline 테스트가 부하(load 9~13)에서 네 번 실패했다. 이 브랜치가 건드리지 않은 모듈이고 단독 실행은 통과했다.추가 증거
Breaking change
~/.local/bin/hide링크, Herdr 플러그인hide.agent-context-labels,~/.hide/kit/가 새로 생긴다.~/.hide/agent-hooks/installed-once표시는 설치 기록으로 보지 않아서, Hide hook이 없는 기계는 다음 실행에 hook을 받는다.AI tooling: 대부분 AI 도구. 사람이 손으로 대조한 것은 아직 없고, 이 PR의 리뷰가 그 대조다.
Verification record
agents/prd/device-parity/prd.md(sha256 f197c2cdf41e26a237da0d79a195e42f15cc67d6df57eed17cd63789b3d9a294)agents/runs/device-parity/verification-report.jsonandagents/runs/device-parity/verification-report.md; source fingerprint 9e6c848822e7523665bf50ded685362f4e9d9c8df0e12c639c228a52a4e91239bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0).upload-*leftovers after a crash; contract-2 carry with an unbound identity; hcoord shim ownership marker; relative PATH candidates; labels dev-link undo;process.rskill/join order; digest-only reuse and payload caps before read; Herdr-down retry of labels; corrupt record healing; a lost Reinstall not requeued; blocked rows offering Reinstall; removal dialog default focus; two Macs sharing one device account; thegithub::tests1 s deadlines under load.