Skip to content

Move coordination into hided and retire hcoord - #409

Merged
yansfil merged 59 commits into
mainfrom
prd/hcoord-retire
Oct 4, 2026
Merged

yansfil merged 59 commits into
mainfrom
prd/hcoord-retire

Conversation

@yansfil

@yansfil yansfil commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Related: Closes #360. Sasu 변경: yansfil/sasu#16

Summary

  • hided가 계보 토큰과 register/list/show/end/spawn을 소유하고 기존 읽기 계약을 유지한다.
  • 보고의 전달 확정이 감시를 끝내며 원격 수신자도 reverse forward로 같은 장부를 사용한다.
  • kit은 열린 항목을 사전 점검한 뒤 한 릴리스 동안 옛 설치물을 정리하고 장부 폴더 이름만 바꾼다.
  • 기존 조정 플러그인·패키징·현행 문서를 제거하고 별도 Sasu 변경과 함께 전환한다.

격리 후보의 위임 chip
격리 후보의 은퇴 완료 상태

Review

머지와 설치가 전환이며, 활성 sasu 런·열린 request·활성 감시가 없을 때 운영자가 시점을 고른다

  • 리드 결정, 운영자 확인 필요: 확정 기록 없는 과거 ack는 닫힌 상태를 유지하고 전달 확정 증거로 쓰지 않는다(D-37).
  • 결정: plan은 일반 request와 Observer 확인 reply로 닫고 구현자는 기다리지 않는다(D-34).
  • 결정: 옛 Sasu index와 revision은 전환 점검 뒤 운영자가 수동 보관한다(D-35).
  • 비용 판단: B39의 비용 불변은 미입증이며 일부 값이 증가했다. 최종 HEAD의 성능 측정은 하지 않았다.
  • 화면 판단: 대표 이미지의 위임 chip과 은퇴 상태 문구를 검토한다.
  • 전환 판단: 롤백 없이 실패 단계부터 재개하며 소유 불명 테스트 서버는 운영자가 직접 확인한다.
  • 파일: hide-kit/src/coordination_retirement.rs·herdr-core/src/remote/retirement.rs의 사전 점검·소유권 경계.
  • 파일: herdr-core/src/coordination/lineage.rs·herdr-core/src/delivery/worker.rs의 갱신·변경 시 알림·전달 확정 경계.
  • 비용: 키 입력에 새 작업이 없고 기존 1초 갱신의 안정 경로는 완료 배출·등록 수 검사, 변화 시 락 밖 계획·쓰기다.
  • 소유·상한: 서버별 worker 1개, 실행·대기 batch 각 1개, patch 2,048개·완료 4,096개이며 종료 시 락 밖에서 합류한다.

Evidence

  • main merge 뒤 사설 Herdr·HOME의 macOS Chromium에서 sidebar/new-tab 3개와 GitHub core 15개·lint가 통과했다.
  • 이전 새 탭 Linux 실패는 로컬에서 재현되지 않았다. 원인은 미확정이며 merge 뒤 Linux CI 결과를 기다린다.
  • CI 수정은 전체 Rust 2,208개와 최종 kit·platform 250개·lint로 확인했다. 기존 assertion과 기한은 유지했다.
  • 실제 사설 SSH 전달 1개와 macOS CI의 원격 전달 준비 단계가 통과했다. 이후 전달 코드는 바꾸지 않았다.
  • 최초 전달 후보는 Rust 2,205개·web 946개·desktop 99개 및 구조 검사 9종이 통과했다.
  • Rust의 기존 ignored 17개와 desktop의 기존 플랫폼 skip 3개는 별도 실제 실행 증거와 구분한다.
  • 격리 후보의 native 흐름 4개가 통과했다. 서명한 package의 CLI·daemon·kit을 확인했으며 packaged GUI 실행은 미확인이다.
  • 실제 SSH 단절·재연결·같은 ID 보고 확정이 통과했다. 이전 후보 실행과 최종 소스의 동일 범위를 구분했다.
  • 비용 불변은 미입증이다. 유휴 CPU·다중 pane CLI p95 증가와 frame 기준 실패, 내부 tick·lock·쓰기 횟수 미관측이 남는다.
  • 기존 process 기한·worktree watcher의 간헐 실패는 보존했다. 현재 통과가 원인 해결을 증명하지 않는다.
  • Pen 문구는 생성 스크립트로 반영했다. 실제 전환·물리 키보드·IME·타 OS는 미실행이다.
  • Linux·Windows package 재검증은 CI 대기 중이며, smoke state를 사설 HOME 아래로 옮겨 소유권 검사를 유지했다.

Breaking change

기존 조정 명령과 백엔드를 제거하며 장부나 활성 런을 자동 이전하지 않는다.
새 Hide 설치 뒤 Sasu 변경을 적용하고 이름만 바뀐 옛 장부는 운영자가 정리한다.
은퇴 코드는 모든 기기 전환 뒤 운영자가 정한 다음 릴리스에서 제거한다.

Approved decisions
  • D-01·D-03: 전체 전환의 3·4단계이며 Hide 구현 뒤 별도 Sasu 변경을 적용한다.
  • D-09·D-18: 계보의 네 토큰과 읽는 코드는 유지하고 기존 1초 갱신에서 차이가 있는 등록 pane만 락 밖에서 쓴다.
  • D-10·D-19: Hide가 register/list/show/end/spawn과 watch assign을 제공하며 Sasu는 직접 native dispatch 뒤 등록한다.
  • D-14·D-25: 같은 intent의 보고는 한 통이며 hook 출력 뒤 전달 확정 순간 감시가 끝난다.
  • D-11·D-26~D-29: 사람 알림은 첫 경고 미확인 60분과 미전달 60분의 두 원인뿐이며 원인별 중복과 상한을 유지한다.
  • D-15: 기기는 기존 reverse forward로 같은 장부에 닿고 단절 중 hook은 2초 안에 끝나며 별도 spool은 없다.
  • D-12·D-13: Sasu는 Hide만 사용하며 새 상태만 지원하고 옛 장부나 활성 런의 자동 이전은 없다.
  • D-17·D-24·D-30: 한 릴리스 동안 활성 런·열린 편지·감시를 사전 점검하여 발견하면 무변경으로 멈춘다.
  • D-17·D-24: 점검 뒤 중지, LaunchAgent 제거, 소유한 링크·kit 정리, 옛 폴더 이름 변경 순서로 멱등하게 이어가며 롤백은 없다.
  • D-31·D-32: 옛 메시지 헤더 해석은 제거하고 소유를 증명하지 못한 테스트 서버는 자동 정리를 거부한다.
  • D-33: 새 Observer가 명시적 승인과 실제 native 신원·감시 세대로 인계하고 성공 뒤 Sasu 상태를 바꾼다.
  • D-34: plan은 일반 request와 Observer 확인 reply로 닫고 구현자는 기다리지 않는 운영자 확정 흐름이다.
  • D-36: 이미 출력한 보고는 미전달·취소 전환 뒤에도 실제 확정을 기록하여 감시를 끝내고 재확정은 새 감시를 보존한다.
  • D-37: 확정 기록 없는 과거 ack는 닫힌 상태와 재주입 제외를 유지한다. 리드 결정이며 운영자 확인이 필요하다.
  • D-13·D-16: 활성 작업이 없는 머지·설치 시점은 운영자가 고르며 앱 실행 전 감시 공백을 허용한다.
  • D-23: 범위 밖 후속 항목은 #357에서 재검토했다. 실제 기기 UI·역방향 계보의 미확인 범위는 #212에 남는다.
  • D-35: 옛 런 종료와 Hide 전환 점검 후 운영자가 index·revision 파일을 백업 폴더로 수동 보관하며 자동 이전은 없다.
Verification record
  • 계약: 로컬 전용 PRD B D01-D37/B1-B45, SHA256 0a39e8daff38be147644addd1a4874667beeb1551468ec75366e376e01266c5c. 핵심 결정은 Approved decisions에 요약했다.

  • 최초 전달 HEAD c1de92a513e0e4b594c2afe1c19a1592533aabc7, 실제 PR base 16e4f7ce41de324b17528b660234b27e2517d622.

  • 최초 전달 검증 PASS, 생성 2026-10-04T19:29:37.277Z, report SHA256 699d6967c7714e47cb44d4baba6e68de038dd89e5544f401b8b9ca45da5e81a1.

  • source fingerprint e33ec4635800b5f7d7b85b1799caf4277093765e3fcf26e6e193897d61a5f72b, input fingerprint cd894b2b63b9639ec5c7d989887cd122285e6894b8aa569cc17c2b1bb657098e.

  • S1 bash scripts/verify-cargo.sh test: exit0, 139.640s, log SHA256 007de7b285d042990b524692661aeebf7765298ba91ff836fc40210758cd91ea.

  • S2 bash scripts/verify-web.sh: exit0, 33.826s, log SHA256 d1e736e4d44533730bb64bc334ad5ccd2db3a3d29928d784aa1dfd125fd319a4.

  • S3 bash scripts/verify-cargo.sh lint: exit0, 2.888s, log SHA256 cdd574e981093f1846d4a9c9d6a5e6c94745f49ed1607adbcb706f1786bb0e24.

  • 등록 증거 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 SHA256 ee963bed27745b292c10f8c55b36c0a58dd2f2af41af8ec37a71045fc3784ac3.

  • 현재 실제 격리 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 lint PASS와 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는 대기 중이다.

yansfil added 30 commits October 4, 2026 17:58
@yansfil
yansfil merged commit 59d13d9 into main Oct 4, 2026
55 of 58 checks passed
@yansfil
yansfil deleted the prd/hcoord-retire branch October 4, 2026 21:23
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.
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.

hcoord를 은퇴시키고 sasu와 원격 전달을 hide로 옮긴다 (3, 4단계)

1 participant