Repository navigation
Bring a connected device's Herdr to the app's pinned release - #1197
Merged
Merged
Conversation
A package that carries Herdr for a device's system uploads it once per pin into the helper root, beside the build folders. After each kit pass the device's node hands the server on the registered socket to that copy when it runs an older stable release, records a failed handoff per server process and pin so it is not retried on every connection, and reports the outcome in the kit report. A copy is removed only once no process on the device runs it, and Hide's own Herdr calls on the device (status read, kit, terminals) use the pinned copy when it is there.
…de's The device row reads the Herdr version its server names in the session, so a handoff shows at once. When the device's node leaves the server on an older release, the row says so in one line with the step its cause allows: update that machine's Herdr when it cannot hand its panes over, or restart Herdr there when a handoff failed. Every outcome is one herdr.handoff log record with the device id. A device on an older Herdr protocol no longer gets this Mac's advice to reopen Hide.
A device server started from an older Herdr moves to the pinned copy with its pane's process alive, a server on another socket keeps its Herdr, a server on the pinned release is left alone, and a refused handoff leaves the server as it was and is not tried again. The remote mailbox lane fetches Herdr 0.9.1 by digest for these.
…e helper The staged build carries the pinned Herdr as the package does. The device gets it beside its build with herdr/current leading to it, its server already on that release is left alone, the row names that version with no extra line, and removing the device takes the copy no server runs.
It made every kit answer carry its largest variant.
- A pinned Herdr copy that any build folder names stays through a prune, so a copy another connection uploaded for its build is not taken before that build applies. - Removing a device whose server still runs a pinned copy keeps the helper folder and says why, instead of reporting a failed removal. - The core machine's build carries neither the device's Herdr copy nor the pin naming it. - The device row's Herdr-behind line ends once the live server answers with another release, and is not shown while the device is unreachable. - Every handoff record names the pinned version, and the server's when it was read, including when no server answers or a stage fails. - Tests for the pinned copy the kit and the terminals choose, and a held copy of the test binary in place of a copied system program, which macOS kills as it starts.
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-herdr-update/prd.md· follows #1083 (이 Mac의 Herdr 서버 핸드오프)Summary
~/.hide/host-helper/herdr/<id>/에 올리고, Hide가 기기에서 부르는 Herdr(상태 확인, kit, 터미널)는 그 사본을 씁니다.herdr는 건드리지 않고, 서버가 쓰는 옛 사본은 쓰는 동안 지우지 않습니다. Windows 기기는 지원표의 문서화된 공백입니다.Review
Herdr 0.9.1 on this device is older than Hide's 0.9.3+ 다시 시작/업데이트 안내)가 운영자에게 충분한지. 이 상태의 화면 캡처는 없고 단위 테스트로만 확인했습니다.hided/src/herdr_handoff.rs- Herdr contract 호출(server.live_handoff)과 실패 기록(16개 상한).hide-host/src/kit.rs- 기기의 파일을 지우는 failure path(사본 정리, 제거).herdr-core/src/runtime/session.rs,runtime/kit.rs,contracts/snapshot-wire-enums.json- snapshot wire에herdr_behind추가와 줄이 끝나는 조건.hide-node/src/ssh/host.rs,hide-node/src/ssh.rs- 업로드 위치와 상태 확인의 PATH 앞자리(허용 문자만).--version1회(5초 상한)와 프로세스 표 1회 읽기, 둘 다 기기 helper에서 runtime lock 밖입니다.Evidence
sasu implement verifyPASS on 최종 head - S1verify-cargo.sh test전체, S2 lint.herdr위에 링크를 걸다 EEXIST)를 고쳤고, 그 spec을 로컬에서 1/1 통과했습니다.herdr바이트 불변, 거부된 핸드오프는 반복 안 함.ping과session.snapshot의 버전 표기가 같음 - 줄이 끝나는 비교가 같은 것을 비교함.AI tooling: 구현 후 Fidelity·Code·Security 리뷰를 별도 세션으로 받았고 판단과 처리는 아래 기록에 있습니다.
Verification record
agents/prd/device-herdr-update/prd.md(sha256 e35a753177c5a93c00914e919d9766dc3842fbce442bb88752c0adf3a6b895be)agents/runs/device-herdr-update/verification-report.jsonandagents/runs/device-herdr-update/verification-report.md; source fingerprint bba4f2a1869581d0838dc7cd7ddaf2d28de10173e1ec1b1d67a6d99ac7cfbba9bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)spec/device-herdr-update, basemain