Repository navigation
Move coordination into hided and retire hcoord - #409
Merged
Merged
Conversation
# Conflicts: # .github/workflows/pr.yml # docs/INSTALL.md # hide-kit/src/hcoord.rs
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
## Summary `desktop e2e` (macOS) is the longest job of a verify run and the last to finish in 16 of the last 25 successful runs, so it sets the time `verify` takes (job median 13.8 minutes). Its `Remote mailbox over private SSH` step took 2.1 minutes of that (median 126 s: about 57 s compiling the workspace again under the test's feature set, about 53 s for the one test). The macOS `@platform` web e2e job also holds a macOS runner, builds hided and fetches the pinned Herdr, and finishes earlier (median 9.0 minutes). This moves the lane there: `web-e2e.yml` takes a `remote-mailbox` input, which builds the CLI (`verify-cargo.sh cli`, every binary the lane starts) instead of `build -p hided` and runs the same nextest command after the suite; `pr.yml` sets it for the macOS lane and drops the step from `desktop e2e`. The OS contract's macOS leg stays in `desktop e2e`. ## Review - **판단해 주세요**: the lane now runs when `web-e2e-platform` is planned instead of `desktop-e2e`. On the last 80 merged pull requests that is 62 runs instead of 59 (table below); `ci-plan.py` gets a comment that a narrower `web-e2e-platform` rule would drop the lane. - **판단해 주세요**: the mailbox test resolves dependency features differently from the CLI build, so about 48 dependencies build a second variant that the macOS web e2e cache (saved from `build -p hided`) does not hold: about 25 s per run on this pull request's run. rust-cache saves only when its key changes, and the key hashes `Cargo.toml` and `Cargo.lock`, so main's first run after the next manifest change saves both builds; until then the 25 s stays. - **조심해서 볼 파일**: `.github/workflows/web-e2e.yml`, the reusable lane nightly and the Linux and Windows lanes also call; with the input unset (its default) their steps and cache keys are unchanged. ## Evidence - **확인한 것 (plan)**: `ci-plan.py` (main, after #490) over the file lists of the last 80 merged pull requests (#371-#492): | | before (in `desktop-e2e`) | after (in `web-e2e-platform`) | | --- | --- | --- | | pull requests running the mailbox lane | 59 | 62 | | lose it | | #462, #466, #487: only `desktop/` files, which the lane does not read | | gain it | | #381, #383, #429, #444, #447, #488: `web/e2e` specs tagged `@platform` | - **확인한 것 (catches)**: of 232 failed `pr.yml` runs since 2026-09-05, the mailbox step failed in 2 (#409 `prd/hcoord-retire`, #456 cargo `typify` bump); both plan every lane, so both still run it. - **확인한 것 (before)**: medians of the last 22 successful verify runs: `desktop e2e` 13.8 min, its mailbox step 126 s; `web e2e macos` 9.0 min (build 88 s, End-to-end 382 s). - **확인한 것 (after)**: this pull request's verify run [37288613490](https://github.com/modakbul-gongbang/hide/actions/runs/37288613490) (first commit; the second only removed a cache `key` line rust-cache ignores next to `shared-key`): | | before (median, n=22) | after (this run) | | --- | --- | --- | | `desktop e2e` | 13.8 min, mailbox step 126 s | 12.2 min, no mailbox step (its suite step took 518 s against a 494 s median) | | `web e2e macos` | 9.0 min | 11.3 min: CLI build 91 s (was `build -p hided` 88 s), suite 383 s, mailbox step 128 s (compile 82 s of which about 25 s dependency variants, test 43 s) | | macOS job-minutes for the two | 22.8 | 23.5 | Second run, on the squashed commit, [37290394720](https://github.com/modakbul-gongbang/hide/actions/runs/37290394720): `desktop e2e` 12.0 min, `web e2e macos` 12.6 min (CLI build 99 s, suite 386 s, mailbox step 170 s), `verify` 13.4 min. The two macOS jobs now end within a minute of each other (12.0-12.6 against 13.8 and 9.0), so the macOS ceiling of a run drops by about 1.5 minutes, and by about 25 s more once the cache holds the dependency variants. - **확인한 것**: `python3 -m unittest discover -s scripts/tests` passes (125 tests); both workflow files parse. - **확인하지 못한 것**: the warm steady state of the macOS web e2e job is seen only after main's first run saves the new cache; the first pull-request runs after merge are that measurement.
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: Closes #360. Sasu 변경: yansfil/sasu#16
Summary
Review
머지와 설치가 전환이며, 활성 sasu 런·열린 request·활성 감시가 없을 때 운영자가 시점을 고른다
hide-kit/src/coordination_retirement.rs·herdr-core/src/remote/retirement.rs의 사전 점검·소유권 경계.herdr-core/src/coordination/lineage.rs·herdr-core/src/delivery/worker.rs의 갱신·변경 시 알림·전달 확정 경계.Evidence
Breaking change
기존 조정 명령과 백엔드를 제거하며 장부나 활성 런을 자동 이전하지 않는다.
새 Hide 설치 뒤 Sasu 변경을 적용하고 이름만 바뀐 옛 장부는 운영자가 정리한다.
은퇴 코드는 모든 기기 전환 뒤 운영자가 정한 다음 릴리스에서 제거한다.
Approved decisions
Verification record
계약: 로컬 전용 PRD B D01-D37/B1-B45, SHA256
0a39e8daff38be147644addd1a4874667beeb1551468ec75366e376e01266c5c. 핵심 결정은 Approved decisions에 요약했다.최초 전달 HEAD
c1de92a513e0e4b594c2afe1c19a1592533aabc7, 실제 PR base16e4f7ce41de324b17528b660234b27e2517d622.최초 전달 검증 PASS, 생성
2026-10-04T19:29:37.277Z, report SHA256699d6967c7714e47cb44d4baba6e68de038dd89e5544f401b8b9ca45da5e81a1.source fingerprint
e33ec4635800b5f7d7b85b1799caf4277093765e3fcf26e6e193897d61a5f72b, input fingerprintcd894b2b63b9639ec5c7d989887cd122285e6894b8aa569cc17c2b1bb657098e.S1
bash scripts/verify-cargo.sh test: exit0, 139.640s, log SHA256007de7b285d042990b524692661aeebf7765298ba91ff836fc40210758cd91ea.S2
bash scripts/verify-web.sh: exit0, 33.826s, log SHA256d1e736e4d44533730bb64bc334ad5ccd2db3a3d29928d784aa1dfd125fd319a4.S3
bash scripts/verify-cargo.sh lint: exit0, 2.888s, log SHA256cdd574e981093f1846d4a9c9d6a5e6c94745f49ed1607adbcb706f1786bb0e24.등록 증거 79개, 실제 PR 변경 177경로.
Rust 2205 PASS / 17 existing ignored, web946 PASS, desktop99 PASS /3existing platform skips.
검증 장부 초기 base
7f914c70f2ed9fe48f2d7f3cdb7e26d833e3479b와 통합 main/PR base는 다르다.필수 검사는 지원 locale en_US.UTF-8 및 RUST_TEST_THREADS=4에서 전체 실행했다. 테스트 내부 경쟁·assertion·기한·재시도·skip은 그대로다.
앞선 c1de 전체 실행의 FAIL3회는 보존했다: 미지원 C.UTF-8 Perl setup2개, 기존 process1.85s Deadline1개, 기존 worktree observations_current1개. 소스가 같은 focused32/1 PASS는 원인 해결 증거가 아니다.
최초 ERROR/FAIL, 이전70b 긴 socket setup8FAIL, Python3.9 importERROR를 보존했다. 짧은 owned fixture 교정 후 같은74byte TMP 조건65PASS, 정상Python3.12 scripts108PASS.
구조 검사9종 PASS: scripts108, nightly/design/ignore anchor/asset boundary/capability lock/privacy/removal boundary/pin source.
현재 서명 package proof SHA256
0caf8c5da06b1f3607dbd75fd3b38f531698cdba98e22f274321998468bda0eb, native proof SHA256ee963bed27745b292c10f8c55b36c0a58dd2f2af41af8ec37a71045fc3784ac3.현재 실제 격리 native/session4흐름 PASS, package CLI/daemon/kit 실제 확인, packaged GUI launch UNOBSERVED. Synthetic provider 조건이다.
wire token 영역 SHA256
12168c46a9ae50434dc73df4d43318bb73cc8349f1d265b7344a6e4409e8ba13, sidebar production code 기준 byte-exact, 실제 PR reader diff0. 전체 reader 파일의 상속 변경은 구분했다.상속 #407의 GitHub store1thread/1pending 및 UI-attached coordinator64project 비교는 비용 수용 증거로 대체하지 않았다.
실제 authenticated SSH 후보926e, 단절/reconnect/같은ID/확정과 owned cleanup PASS, hook405/38/196ms. 이후 transport source 동일 범위만 재사용하며 runtime-negative ancestry는 미실행이다.
최종 Sasu88d actual caller1PASS0skip19.553s, nearest40PASS0skip. Caller proof SHA256
02a11b9b8b083166865f0872f090cbeaaadc034f63a00792706cd1003eb25549.사설 fixture EISDIR의 원래 orphan을 재현하고 PID-before-write IPC/실제 reaping/nonzero로 수정했다. 실제 owner EOF0survivors117.599ms, cap2/15s/5s기한 유지; ENOSPC/EACCES 개별 주입은 미실행이다.
코드·보안·계약 최종 후속 리뷰는 모두 Hidec1de/Sasu88d를 검사하고 V2/S5/F7을 해소했다. 기존 전체 계약 리뷰를 유지하며, 리뷰 cutoff의 PENDING/NOT_RUN은 위 실제 최종 검사와 구분한다.
후속 개선: native occupant read→token-write race, handover digest fast path, 사설 runtime-negative ancestry/기기 UI with-hide/hide-private#106. D37 확인과 B39 미입증은 Review에 공개했다.
비용 측정은 candidate43e/baseline59c만 해당한다. 4구성 CLI600회/trusted600회, frame4×120s, 자원 idle80/driven80창.
CLI p95 single0.852051→0.757568ms, multi0.424805→0.559082ms. Trusted marker p95는 두 구성0.10ms 감소. Raw 음수 표본은 지우지 않았다.
frame>16.7ms single26.440772→26.482433%, multi26.829607→27.440633%; baseline/candidate4창의 절대1% 기준은 모두FAIL.
갱신3쌍/12창/240표본: hided idleCPU0.08321149→0.10019573%, driven0.16680784→0.14966253%; RSS idle+844/driven+735KiB.
StrictB39 UNPROVEN. 최종c1de 비용 재측정/내부tick·lock·쓰기 횟수/2,048cap지연은 미관측, CPU10ms 양자화와 통합 build차이를 구분했다.
root agents index0, 상속 #385의103삭제 경로는 색인에서만 삭제하고 로컬 원본을 보존했다. PRD/로그/native원본/profile은 공개하지 않는다.
CI 수정 HEAD
a494bc3bd912186e811e5a09bc4debd838bfa18a: offline registry 확인과 pinned Herdr의 실제 offline uninstall, portable long HOME, 배포본처럼 stripped fixture, HOME 아래 package state를 반영했다.771482a 후보 전체 Rust2208 PASS/17existing ignored, 실제 사설 SSH1 PASS/0ignored, smoke script syntax PASS. f5d9c1b는 fixture/doc만 바꿨으며 외부 XDG config를 명시한 kit68 PASS/0ignored로 확인했다. 최종 a494bc3는 플랫폼 공통 config 함수를 사용하며 kit/platform250 PASS/1existing ignored와 workspace lint PASS로 확인했다.
771482a macOS CI의 Remote mailbox over private SSH 단계 SUCCESS. 같은 후보 Linux CI의 새 fixture2 FAIL을 상속 XDG config로 재현한 뒤, 원래 assertion을 유지하고 owned child의 config 환경을 격리하여 고쳤다.
기존 코드의 offline fixture assertion FAIL을 보존하고 수정 후 동일 assertion PASS를 확인했다. 실제 pinned Herdr fixture에서 대상만 제거되고 foreign entry와 local source는 보존됐다.
읽기 전용 운영 환경 점검: 옛 command·kit·home은 남아 있고 전역 Herdr registry에는 대상 등록이 없어, Herdr가 꺼져도 재개 가능한 경우를 확인했다. 운영 환경에는 쓰지 않았다.
심볼 제거 전송 fixture의 원본 빌드 산출물·제품 코드와 package fixture의 소유권 검사, 모든 기존 assertion·기한·재시도·skip은 유지했다.
Windows APPDATA/USERPROFILE 기본 경로와 XDG 우선순위는 기존 platform resolver를 재사용하고 uninstall child에도 같은 config root를 명시한다. 기존 namespace/ownership 검사는 그대로다.
Linux/Windows package와 macOS CI는 새 head에서 대기 중이며 리드가 확인한다. merge/install은 실행하지 않는다.
main 동기화 HEAD
456ee8c56a4133e8fd2c6331623b63a78bed9ee4:origin/main의8fda555ecd9ca5c09c408b5c737469876ca64b5c를 merge하여 #410을 포함했다. rebase나 force push 없이 일반 push했다.main 기준 verify 실행은 SUCCESS다. 이번 로컬 통과만으로 이전 새 탭 Linux 실패를 기존 flake로 분류하지 않았다.
merge 뒤
bash scripts/verify-cargo.sh cli와bash scripts/verify-web.sh web build를 다시 실행했다. macOS의 pinned Herdr 사설 서버·HOME과 Chromium에서sidebar-pr-start.spec.ts,new-tab.spec.ts를 실행하여 3 PASS/0 FAIL/0 SKIP, 27.6s를 확인했다.merge 뒤
bash scripts/verify-cargo.sh lintPASS와test-scoped -p herdr-core github_reads의 15 PASS/0 FAIL/0 ignored를 확인했다. root agents index0, 작업 트리 clean을 확인했다.이전 Linux job111526037117은 merged PR Scope every check script's build directory to its own checkout #43 글리프 없음, job111526037087은 Agent 영역의 탭 expected2/received1로 실패했다. 기존 assertion·기한·재시도·skip은 유지했으며 새 head의 Linux CI는 대기 중이다.