Skip to content

Ship the Electron app alone and delete the Swift shell - #188

Merged
yansfil merged 13 commits into
mainfrom
prd/electron-app-swift-removal
Sep 27, 2026
Merged

yansfil merged 13 commits into
mainfrom
prd/electron-app-swift-removal

Conversation

@yansfil

@yansfil yansfil commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Related: PRD agents/prd/electron-app-swift-removal/prd.md · backlog issue with-hide/hide-private#110 (features only the removed shell had) · follows #185

Summary

  • The Swift shell (macos/, 279 files), its C ABI, the shell pivot spike, hided's coexistence prompt, the Swift build and verify scripts, the Swift CI lane and 22 Swift-subject check scripts are deleted.
  • The Electron app (desktop/) is the only shipped app: pnpm --dir desktop package builds hided, hide, the hook helper, the device helper and the pinned Herdr into Contents/Resources, ad-hoc signs, zips and writes a sha256; release.yml publishes that archive.
  • A packaged app resolves its own bundled hide before PATH and hands the bundled Herdr to the daemon as HERDR_BIN_PATH unless the environment already names one, so Finder launches need nothing on PATH.
  • The Herdr pin moved to contracts/herdr-bundle.json; scripts/verify-web.sh is the web and desktop verify entrypoint; tests that scanned macos/ now scan the web shell; the hook helper is resolved in Contents/Resources, where it ships.
  • Every guide, comment and identifier describes the repository without the Swift shell; the word remains only in INSTALL.md's residual-files line.

The packaged hide.app opened on an isolated HOME with a bare PATH: its bundled hide started hided against the bundled Herdr and the web shell attached

A copy of the app whose bundled hide cannot run shows the connection failure page with Retry

Review

  • 판단해 주세요: the release archive stays ad-hoc signed with no notarization (D-08); the first launch needs the Gatekeeper context-menu step INSTALL.md describes.
  • 판단해 주세요: neither hided nor the core starts a Herdr server (the Swift shell did); the packaged app needs one running, reported as a follow-up, not built.
  • 판단해 주세요: hooks the Swift app installed name a helper under its Contents/MacOS; after the swap Settings shows them as missing their helper and Install rewrites them (INSTALL.md).
  • 조심해서 볼 파일: desktop/scripts/package.mjs - failure path: a missing or non-executable binary must stop the build by name and leave no app.
  • 조심해서 볼 파일: desktop/src/main/{cli.ts,host.ts,env.ts} - ownership: the bundled CLI is tried after an override and the worktree build, never remembered; HERDR_BIN_PATH only when absent.
  • 조심해서 볼 파일: hide-agent-hooks/src/install.rs - failure path: helper_for now accepts only <app>.app/Contents/Resources; the path written into an operator's hook file comes from here.
  • 조심해서 볼 파일: herdr-core/src/handle.rs - runtime mutex: the former ffi.rs; the notifier latch is still cleared before the lock is taken.
  • 조심해서 볼 파일: .github/workflows/release.yml, scripts/verify-cargo.sh - build became release and builds the four shipped binaries.
  • 질문: spikes/web-shell/ (a different frozen spike) still mentions macos and Swift; it was left as a frozen record. Keep it, or delete it in a follow-up?

Evidence

  • 확인한 것: the packaged app (version 0.0.0-local) launched on an isolated HOME with PATH=/usr/bin:/bin:/usr/sbin:/sbin and a private Herdr 0.9.1 server started from the bundled binary: the host log shows cli.resolved source=bundled, herdr=bundled, discovery.attached; the window capture above shows the attached shell (B4, B6).
  • 확인한 것: a copy of the app with a non-executable Contents/Resources/hide shows the connection failure page and retries with cli_missing (B8); codesign --verify --deep --strict passes, the zip's sha256 sidecar verifies, Contents/Resources holds the five executables (B4, B5).
  • 확인한 것: packaging with a non-executable cached Herdr fails with cannot package hide.app: not an executable file: herdr (...) and leaves no app (B12).
  • 확인한 것: verify-cargo.sh test and lint (sealed suite, PASS), verify-web.sh (web and desktop typecheck, lint, unit, build), the 32 python script tests, the design contract, the six scripts-lane checks and the pin check all exit 0 on this branch.
  • 확인한 것: the B1 sweep (rg for macos/|HideTheme|herdr_core\.h|verify-swift|build_dev_app|SwiftUI|swift test, and rg -i swift) finds only INSTALL.md's line, .swift file-type icon data in web/src/fileIcons.ts and a /usr/bin/swift path assertion in a tools test.
  • 확인한 것: web Playwright e2e against a freshly built debug hided: 66 passed, 1 failed (the s7 display-limit spec, an Explorer row not clickable within 15 s under full-suite load); that spec alone passes on rerun, and the branch's web changes are comments and test names.
  • 확인하지 못한 것: the desktop Playwright e2e was not run locally because it takes the operator's screen; CI's web lane runs it.
  • 확인하지 못한 것: no Finder open -a launch, no Gatekeeper first-launch on another Mac, and no install over an existing /Applications/hide.app, so the hook reinstall path after the swap is described, not observed.
  • 생성물: design/hide-screens.pen and design/hide-ui.lib.pen changed only in the provider-mark image URLs and three sample file or task names, the output of node scripts/gen-screens.mjs.

Breaking change

  • The shipped app is the Electron hide.app; the Swift app is gone. State under ~/.local/state/hide and the hook configuration are read as before; files only the Swift app wrote under ~/Library/Application Support/hide/ stay on disk, and state.json's pane chords are imported once.
  • Rollback is reinstalling the previous GitHub release; core state compatibility holds only up to that release.
  • Hooks installed by the Swift app point at its bundle's Contents/MacOS/hide-agent-hooks; after the swap, open Settings and install the hooks again.

AI tooling: mostly AI tooling; the packaged-app launch, the cli_missing page, the packaging refusal and the B1 sweep were checked by hand against the captures and logs.

Verification record
  • PRD: agents/prd/electron-app-swift-removal/prd.md (sha256 d85d8a04a4e208863493b5ecf8aba064078fccf3a83cf46dc35e7512344771d1)
  • Base 452ceec → head 3135944, verified 2026-09-27T09:17:56.054Z: PASS
  • Verification report: agents/runs/electron-app-swift-removal/verification-report.json and agents/runs/electron-app-swift-removal/verification-report.md; source fingerprint 969ffbb03e8c67d2f001dc3de38da17911c9b266e80e783ab8c01af5fc83644e
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • Fidelity (head 99d95ee, follow-up not needed): no Fix now; Follow-up: the herdr-core test-coverage inventory that lived in the deleted docs/verification-fixtures.md was not moved to a surviving guide; Note: D-01's "12 docs / 27 scripts" counts do not map one to one onto the diff, B1 and B10 hold.
    • Code (head 99d95ee, follow-up on 3135944): Fix now: docs/agent-hooks.md still placed the hook helper in Contents/MacOS, fixed in 3135944 and confirmed closed by the follow-up; Note: a legacy hook fixture string in hide-agent-hooks/src/runtime.rs keeps the old Contents/MacOS path on purpose.
    • Security (head 99d95ee, follow-up not needed): no Fix now; Follow-up: the release archive is ad-hoc signed with no hardened runtime and no notarization, an accepted PRD decision (D-08) worth confirming for a public release.
    • The sealed suite carries the two cargo lanes; bash scripts/verify-web.sh (config key web) ran by hand on 99d95ee with exit 0 (registered log).
  • Evidence: 14 registered (2 screenshot, 12 log); paths are local to the run directory
    • agents/runs/electron-app-swift-removal/evidence/b6-packaged-attached.png
    • agents/runs/electron-app-swift-removal/evidence/b6-host.log
    • agents/runs/electron-app-swift-removal/evidence/b6-status.json
    • agents/runs/electron-app-swift-removal/evidence/b8-cli-missing.png
    • agents/runs/electron-app-swift-removal/evidence/b8-host.log
    • agents/runs/electron-app-swift-removal/evidence/b12-refusal.log
    • agents/runs/electron-app-swift-removal/evidence/package.log
    • agents/runs/electron-app-swift-removal/evidence/verify-web.log
    • agents/runs/electron-app-swift-removal/evidence/cargo-test.log
    • agents/runs/electron-app-swift-removal/evidence/cargo-lint.log
    • agents/runs/electron-app-swift-removal/evidence/python-tests.log
    • agents/runs/electron-app-swift-removal/evidence/design-contract.log
    • agents/runs/electron-app-swift-removal/evidence/web-e2e.log
    • agents/runs/electron-app-swift-removal/evidence/web-e2e-s7-rerun.log
  • Changed paths: 777 (see Files changed)

The pin now lives at contracts/herdr-bundle.json beside the schema it
derives, and every reader (fetch, single-source check, bump, the update
and verify workflows, the e2e fixtures, the measurement env) reads that
path. The third-party notices and the app icon move to desktop/resources
for the Electron app to ship; the Highlightr and Octicons notices leave
with the Swift-only code they covered. The pin update workflow runs the
workspace test suite in place of the Swift suite.
…ives

herdr-core is an rlib with one consumer, the daemon. The extern C entry
points, the byte buffer and callback types, the header and the FFI
contract and smoke tests go; ffi.rs becomes handle.rs, holding Core, the
change notifier and the owner-thread rule as before. The structure tests
that read the Swift shell's sources now read the daemon's and the web
shell's for the same invariants: one core per daemon, terminal instances
parked rather than recreated on a tab switch, no even-grid layout
stand-in, no position-derived tab label. The two tests whose subject was
AppKit window chrome and the Swift theme's CGFloat tokens have no web
counterpart and are removed.
No Swift shell can hold a Herdr socket any more, so connect, serve and
dev start the daemon without the per-socket prompt or the TTY refusal.
A packaged app tries its own Contents/Resources/hide after the worktree
build and before PATH, logs it as tried like every candidate, and never
remembers it. Every hide child it starts gets HERDR_BIN_PATH set to the
bundled herdr unless the environment already names one, so a daemon
started from Finder can attach pane terminals with nothing on PATH while
an isolated e2e or a development server keeps its own binary. The key
joins the host's environment registry and the spawn helper takes the
child's environment as an argument.
pnpm --dir desktop package now builds the web shell and the release
binaries, fetches the pinned Herdr through the digest-verified cache,
refuses by name when any binary to ship is missing or not executable and
leaves no app behind, packages them flat into Contents/Resources with the
app icon and third-party notices, signs the bundle ad hoc, verifies the
signature and writes hide-v<version>-macos-<arch>.zip with its SHA-256
beside the app under desktop/out. The version comes from HIDE_VERSION or
the nearest release tag. scripts/verify-web.sh is the web and desktop
verification entrypoint the sealed suite and CI share, and the cargo
wrapper's release mode builds the binaries the app ships instead of the
static archive no shell links any more.
…bject checks

pr.yml runs rust, repository invariants, web shell and desktop app lanes
and verify requires exactly those four; release.yml tests the workspace
and the web lane, then packages the desktop app under the tag's version
and uploads the archive and checksum from desktop/out. The check scripts
whose only subject was Swift source (panel sections, shortcut chords,
worktree presentation and states, base policy, catalog copy, packaged
resource access, the SwiftTerm row cache, the CoreBridge inventory, the
copy inventory, the accessibility probe, the native e2e driver, the FFI
idle measurement, the dist retention script) leave with their tests; the
runtime gate, full-check, typed-contract and workstation-identity scripts
now target the Rust, web and desktop lanes, and the build regression test
exercises the cargo wrapper's release mode on a tiny workspace instead of
a SwiftPM link.
macos/ (the SwiftUI shell, SwiftTerm and Highlightr, the CHerdrCore
module, its tests, fixtures, build scripts and agent notes) and the
frozen spikes/swift-shell-pivot record leave the tree; the web shell
served by hided and the Electron desktop host are the product.
The design library and screen sheets referenced the agent marks under
the Swift shell's resources; they now point at the identical files in
web/src/assets, and the screens generator writes the same path.
… and design data

The core, hided, the web shell and the desktop host no longer explain their
wire and behavior by reference to the Swift shell: comments describe the
current owner, the shortcut import names the removed native app's state
file, and tests that scanned macos/ scan the web shell instead.

The hook helper is resolved in the app's Contents/Resources, where the
daemon and the helper now ship side by side; the old Contents/MacOS rule
refused the packaged app and hooks could never be installed from it.

Config and tooling drop their Swift entries: dependabot, gitattributes,
gitignore, agent permissions, the preflight and measure tests, the design
library's example file names and the palette screen's sample row.
Rewrites PERFORMANCE_TESTING.md, UI_BEHAVIOR.md, DESIGN_WORKFLOW.md,
theme-contract.md, status-model.md, AI_PROVIDERS.md, and
design/agent-workflow-review.md to describe the repository without the
removed Swift shell.

- PERFORMANCE_TESTING.md: drops native AppKit reproduction, isolation,
  capture, and signpost-capture procedures; keeps the core/hided
  mutex, snapshot delta, and idle/driven measurement content, and the
  web-shell-measure, Projects/Overview, and Project Memory cost
  contracts with owners fixed to their surviving code.
- UI_BEHAVIOR.md: removes every Native owner line, replacing Swift
  file names with the surviving web/core owners, and rewords
  sentences that contrasted the Swift shell with the web shell.
- BROWSER_DISPLAYS.md needed no change: its native mentions already
  refer to the Electron WebContentsView host.
- DESIGN_WORKFLOW.md: drops the HideTheme.swift coexistence sentence.
- theme-contract.md: documents the pet theme format as a contract for
  a future pet reader (backlog issue #184), with herdr-core/src/pet.rs
  as the core-side pose owner, instead of the removed Swift loader.
- status-model.md: replaces Swift regression owners and the
  Swift-shell disclosure/decoder asides with the surviving core/web
  facts.
- AI_PROVIDERS.md: replaces the Swift/AppKit shutdown description
  with the current hided SIGTERM/SIGKILL behavior, and drops the
  Swift shell from the usage-hint sentence.
- design/agent-workflow-review.md: replaces every Swift master-owner
  path with the surviving web/core owners and rewords the
  native-outline and verification sections for the current stack.
…ndex and the install steps

AGENTS.md routes to desktop/ as the shipped app, names the release
binaries the packager reads, the two verify entrypoints and the pin at
contracts/herdr-bundle.json. CONTRIBUTING.md lists the four CI lanes and
the gates that survive, and describes a release as the packaged app and
its checksum. docs/README.md points each rule at its surviving owner and
at the Electron backlog issue (#184) for the features the native shell
alone had.

ARCHITECTURE.md, BUILD.md, dev-runtime.md, INSTALL.md, the project README,
SECURITY.md and the contracts README describe hided, the web shell and
the Electron host as the whole product; the pet window guide and the
verification fixtures guide are deleted with the shell they described.
The hook guide still described the helper beside the app executable in
Contents/MacOS; helper_for resolves it in Contents/Resources now, where
the daemon and the helper ship side by side.
@yansfil
yansfil merged commit 9b3a1d9 into main Sep 27, 2026
6 checks passed
@yansfil
yansfil deleted the prd/electron-app-swift-removal branch September 27, 2026 09:41
yansfil added a commit that referenced this pull request Sep 27, 2026
Related: PRD `agents/prd/design-review-workflow/prd.md` · 이 흐름을 실제 변경에
적용한 예시: #187 (임시 예시, merge하지 않고 닫음)

## Summary

디자인 변경이 "고른 디자인"대로 구현됐는지를 Pen과 앱을 번갈아 보며 판단하던 과정을 한 명령으로 묶었습니다.
`scripts/design-review.mjs baseline`은 고른 Pen 디자인을 덮어쓸 수 없는 번들로 보관하고, 사용자
결정인지 위임된 제안인지를 기록합니다.
`review`는 정적 계약, 현재 Pen export, 실제 `Sidebar`의 Chromium 측정과 캡처를 한 번에 돌려
번들의 레이아웃 규칙으로 PASS, FAIL, INCOMPLETE를 냅니다.
PR 템플릿은 화면 변경이면 대표 이미지 한 장과 판단 하나를 위에 두고 나머지 증거는 접도록, 화면이 없는 변경이면 스크린샷
없이 쓰도록 바꿨습니다.

<img
src="https://github.com/yansfil/pr-assets/blob/main/hide/design-review-workflow/0465042/psb-sidebar-l.png?raw=true"
width="720" alt="Reference, current Pen and actual sidebar side by
side">

`review`가 만드는 비교 이미지입니다. 세 칸이 같은 조건(Light · 292px · 기본 콘텐츠 · rest)이고,
오른쪽 실제 화면에만 있는 Search 필드와 칩 말줄임 같은 차이가 사람이 볼 곳입니다.

## Review

- **판단해 주세요**: 위 이미지에서 Pen과 실제 화면의 차이(Search 필드, 대기 루트 점과 링, footer 단축키,
칩 말줄임)가 renderer 차이인지 고칠 drift인지.
- **조심해서 볼 파일**: `scripts/design-review.mjs` - failure path: Pen, dev
server, Chromium 소유와 취소 시 정리, INCOMPLETE 판정.
- **조심해서 볼 파일**: `web/e2e/sidebar-geometry.mjs` - e2e spec과 review가 같은
측정 코드를 씁니다(`wire.ts`에서 옮김, 타입은 `.d.mts`).
- **조심해서 볼 파일**: `.github/pull_request_template.md` - 이후 모든 PR 본문의 모양이
바뀝니다.

## Evidence

- **확인한 것**: Light/Dark × 292/240px × 기본/긴 한글 × 글자 1/1.25 = 16조건, 규칙 7개,
112행 모두 PASS(0465042).
- **확인한 것**: 12px 규칙 번들로 18px 코드를 검사하면 FAIL과 행별 offset. Pen 없음, 번들 변조는
INCOMPLETE(exit 3). Pen export 중 취소는 exit 143, 정리 완료.
- **확인한 것**: 격리 Herdr 0.9.1과 hided를 Herdr Browser pane에서 chromux로 조작, 같은
측정 코드로 18px/단계, 9행 hover 시 이동 0.
- **확인한 것**: node test design-review 21, design-scratch 10.
`verify-web.sh`(web 390, desktop 39, typecheck, lint, build). e2e
projects-sidebar, sidebar-status.
- **확인하지 못한 것**: 데스크톱 앱(Electron) 창에서의 화면. 실제 앱 관찰은 63b5b205에서 했고 이후
`web/src` 변경은 gallery뿐입니다.
- **확인하지 못한 것**: 다른 머신에서 번들 열기. 다른 디렉터리로 옮겨 Pen 없이 `show`한 것까지만 확인했습니다.
- **생성물**: `design/hide-ui.lib.pen`, `web/src/tokens.css`는 토큰
1개(`--size-gallery-scene-h`) 추가로 generator가 다시 쓴 것입니다.

<details><summary>추가 증거</summary>

<img
src="https://github.com/yansfil/pr-assets/blob/main/hide/design-review-workflow/0465042/light-240-long-x1.png?raw=true"
width="720" alt="Actual-only state sheet at 240px with long Korean
titles">

대응 Pen 프레임이 없는 조건(Light · 240px · 긴 한글 제목)은 실제 화면만의 상태 시트로 따로 보여 줍니다:
rest, hover, focus, 부모 접힘, checkout 닫힘.

<img
src="https://github.com/yansfil/pr-assets/blob/main/hide/design-review-workflow/0465042/app-stage1-rest-light.png?raw=true"
width="292" alt="Real app sidebar in a Herdr Browser pane">

실제 앱: 격리 Herdr 서버와 hided를 Herdr Browser pane에서 연 Projects 사이드바입니다(합성
데이터, 63b5b205에서 관찰).

</details>

**AI tooling**: 대부분 AI 도구. 사람의 손 대조는 아직 없고, 위 "판단해 주세요"가 그 자리입니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/design-review-workflow/prd.md` (sha256
47c0b9a306185e899e3a0f213bba89b5d03c578ceddfe1c9cb5ff2b925a80c74)
- Base 04a5be9 → head c9394db, verified 2026-09-27T09:46:05.635Z: PASS
- Verification report:
`agents/runs/design-review-workflow/verification-report.json` and
`agents/runs/design-review-workflow/verification-report.md`; source
fingerprint
819923b112138a09a3bd16e90a16102d6a00fbe414cf490c91cc99c998493f65
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Separately run required check (not part of the sealed suite of the 2
commands above): `bash scripts/verify-web.sh` on c9394db (web 390,
desktop 39, typecheck, lint, build), exit 0. It replaces `bash
scripts/verify-swift.sh test`, which passed (534 tests) on every earlier
head through 766a669 and was deleted with the Swift shell by main
(#188).
- Reviews (advisory, native):
- Round 1 on 63b5b20, Code: Fix now (1) cleanup swallowed close
failures -> logged and reported INCOMPLETE; (2) same-name libraries
overwrote each other in a bundle -> refused. Follow-ups: store seeding
during render -> layout effect; import cycle -> copied once.
- Round 1 on 63b5b20, Fidelity: Fix now (1) a cancel during the Pen
export did not end the run -> signal handling now spans every phase,
test + live check. Follow-ups: slug check simplified; current-Pen
theme/content drift left to human judgment.
- Found during round 1: current Pen was exported from the bundle's
source, wrong for a scratch proposal -> targets declare `file`, review
exports it.
- Round 2 on 20d2d21 (follow-up): every prior finding closed, no Fix
now. Follow-ups taken: test for a proposal bundle; realpath key for
libraries. Interrupt test for other phases not added (live evidence
instead).
- Round 3 on 0465042, Fidelity and Code: no Fix now; B10 met by this
body.
- CI on 0465042 failed the desktop app lane (TS7016: no declaration for
web/e2e/sidebar-geometry.mjs under the desktop e2e typecheck) ->
317f0ab adds sidebar-geometry.d.mts; desktop typecheck, lint and 37
tests pass locally.
- Round 4 on 317f0ab, fix spot review: every declared signature matches
the module; desktop typecheck and web lint pass; no Fix now, no
Follow-up.
- Round 5 on 4a4b108, PR template and design workflow presentation
rule: no Fix now. Follow-up outside this change: AGENTS.md "Before
Opening A Pull Request" still says "Summary with screenshots".
- Base: origin/main merged twice to satisfy the merge path's freshness
check: 766a669 (cf9189f, no conflicts, PR diff unchanged) and c9394db
(9b3a1d9, #188; conflicts in CONTRIBUTING.md and docs/README.md
resolved as main's lines plus this PR's design-review references; Pen
files equal generator output).
- Spot review of 766a669: parents and diff exact, no interaction with
main's files; no Fix now.
- Spot review of c9394db (verified head): only the two intended
conflict resolutions; PR hunks equal the reviewed change set apart from
main's context lines; generators, design contract, identity and
attribution checks clean; no Fix now.
- Delivery includes (Observer decision, this ship only): `--include
agents/config.json --include
agents/prd/electron-app-swift-removal/prd.md --include macos/CLAUDE.md`.
Ship's allowlist refused these paths in the branch history; all three
arrive only from merged origin/main #188 (9b3a1d9), `git diff 9b3a1d9
c9394db` over them is empty, and they are not changed by this PR.
- Evidence: 45 registered (21 log, 8 file, 9 image, 7 screenshot); paths
are local to the run directory
-
agents/runs/design-review-workflow/evidence/swift-test-0465042dc215ad07fe9ea512dbda7e349a1c92e7.log
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/report.md
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/report.json
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/compare/psb-sidebar-l.png
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/compare/psb-sidebar-d.png
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/states/light-240-long-x1.png
-
agents/runs/design-review-workflow/design/review/20260927-084347-db5c12/states/dark-292-reference-x1.25.png
-
agents/runs/design-review-workflow/evidence/stage1-review-full-0465042d.log
-
agents/runs/design-review-workflow/evidence/review-cancel-during-pen-20d2d21a.txt
- agents/runs/design-review-workflow/evidence/review-cancel-sigterm.txt
-
agents/runs/design-review-workflow/evidence/stage1-review-probe-12px.log
  - agents/runs/design-review-workflow/evidence/stage1-review-no-pen.log
- agents/runs/design-review-workflow/evidence/stage1-review-tampered.log
-
agents/runs/design-review-workflow/evidence/stage1-show-without-pen.log
-
agents/runs/design-review-workflow/evidence/e2e-sidebar-specs-63b5b205.log
-
agents/runs/design-review-workflow/evidence/app-herdr-browser-measure-stage1.json
  - agents/runs/design-review-workflow/evidence/app-stage1-rest.png
- agents/runs/design-review-workflow/evidence/app-stage1-rest-light.png
-
agents/runs/design-review-workflow/evidence/app-stage1-hover-parent-light.png
-
agents/runs/design-review-workflow/evidence/design-review-node-tests-0465042d.log
-
agents/runs/design-review-workflow/evidence/swift-test-317f0ab0cad8a315ec6fc46fd67a6bdbb88802e3.log
- agents/runs/design-review-workflow/evidence/desktop-lane-317f0ab0.log
-
agents/runs/design-review-workflow/design/baseline/stage2-proposal-12px/manifest.json
-
agents/runs/design-review-workflow/evidence/stage2-review-before-20d2d21a.log
-
agents/runs/design-review-workflow/design/review/20260927-090351-1e4258/report.md
-
agents/runs/design-review-workflow/evidence/stage2-review-after-29454969.log
-
agents/runs/design-review-workflow/design/review/20260927-090351-1e4258/compare/psb-sidebar-l.png
-
agents/runs/design-review-workflow/design/review/20260927-090351-1e4258/compare/psb-sidebar-d.png
-
agents/runs/design-review-workflow/design/review/20260927-090351-1e4258/states/light-240-long-x1.png
-
agents/runs/design-review-workflow/design/review/20260927-090351-1e4258/states/dark-292-long-x1.png
-
agents/runs/design-review-workflow/evidence/stage2-before-after-light-292.png
-
agents/runs/design-review-workflow/evidence/app-herdr-browser-measure-stage2.json
- agents/runs/design-review-workflow/evidence/app-stage2-rest-light.png
-
agents/runs/design-review-workflow/evidence/app-stage2-hover-parent-light.png
  - agents/runs/design-review-workflow/evidence/app-stage2-rest-dark.png
-
agents/runs/design-review-workflow/evidence/app-stage2-rest-light-240.png
-
agents/runs/design-review-workflow/evidence/e2e-sidebar-specs-29454969.log
- agents/runs/design-review-workflow/evidence/stage2-lanes-29454969.log
-
agents/runs/design-review-workflow/evidence/swift-test-29454969ba0ea8a8c209fbccf5373b95aef4e013.log
-
agents/runs/design-review-workflow/evidence/swift-test-4a4b108523569b7bd276ad672b78bf69b7bd9c29.log
-
agents/runs/design-review-workflow/evidence/swift-test-766a669a533e6069edce9d902b1558c49beab2ff.log
-
agents/runs/design-review-workflow/evidence/pr186-diff-vs-main-766a669a.patch
-
agents/runs/design-review-workflow/evidence/verify-web-c9394db7b98d9c0937301a50c15024f761069e5d.log
-
agents/runs/design-review-workflow/evidence/pr186-diff-vs-main-c9394db7.patch
-
agents/runs/design-review-workflow/evidence/design-review-node-tests-c9394db7.log
- Changed paths: 797 (see Files changed)

</details>
yansfil added a commit that referenced this pull request Sep 27, 2026
Related: PRD `agents/prd/hcoord-plugin/prd.md` · follows #188 · fixes
[sasu#10](yansfil/sasu#10),
[sasu#11](yansfil/sasu#11)

## Summary

- Move hcoord from sasu into an independently installable Herdr plugin,
sourced from
[`399fb59`](yansfil/sasu@399fb59).
- Bundle the plugin with the Electron app and converge per-home daemon
and LaunchAgent setup without requiring Node at runtime.
- Project local and remote parent-child checkout lineage into the
Projects sidebar with the approved folded child rows and device chip.
- Keep remote spawn deadlines and stop-start convergence inside the
plugin while preserving actionable failures and bounded work.

![Projects sidebar with Overview, folded lineage, expanded checkout
child, origin context, and device
identity](https://github.com/yansfil/pr-assets/blob/main/hide/hcoord-plugin/b8f7ab0/projects-sidebar-lineage-ba1bd09e.png?raw=true)

![Packaged Electron app in an isolated home with the lineage row and
device
affordance](https://github.com/yansfil/pr-assets/blob/main/hide/hcoord-plugin/b8f7ab0/packaged-projects-light-3b7c316e.png?raw=true)

## Review

- **판단해 주세요**: Overview 아래의 접힌 자식 체크아웃 행과 device-name chip이 작업 맥락을 충분히
빠르게 전달하는지 봐 주세요.
- **조심해서 볼 파일**: `herdr-core/src/{wire.rs,session_sync/projection.rs}` -
wire ownership과 runtime mutex 밖의 projection 갱신.
- **조심해서 볼 파일**: `plugins/hcoord/src/hcoord/{service,remote}.ts` -
idempotent restart, bounded remote output, spawn uncertainty 경로.
- **조심해서 볼 파일**: `desktop/src/main/hcoord.ts` - 패키지 내 실행 경로와 소유권 정리.

## Evidence

- **확인한 것**: 현재 HEAD에서 hcoord unit 30개, E2E 26개, web unit 412개, desktop
unit 41개와 충돌 접점 통합 E2E 3개가 통과했습니다.
- **확인한 것**: CI의 71/72 strict-locator 실패를 재현하고 origin/main UI A/B와 수정 후
targeted PASS로 원인과 해결을 구분했습니다.
- **확인한 것**: main `adadce76`을 병합해 숫자 키캡과 hcoord folded-lineage를 같은
Agents 행에 보존했고, 봉인 검증과 세 최종 리뷰가 정확한 병합 HEAD에서 통과했습니다.
- **확인한 것**: 최종 PR HEAD에서 static-design, desktop, hcoord, repository
invariants, Rust, Web Shell, aggregate verify 7개 CI 체크가 모두 통과했습니다.
- **확인한 것**: 최종 HEAD의 Rust workspace test와 lint, 현재 패키지의 archive
checksum과 deep codesign 검증이 통과했습니다.
- **확인한 것**: 격리 HOME, HCOORD_HOME, private Herdr socket, Node 없는 PATH에서
packaged app을 실행했고 운영 앱 PID는 유지했습니다.
- **확인하지 못한 것**: 실제 login reboot, public plugin install, mini 간 연결은 안전
경계 때문에 격리 fixture로 대체했습니다.
- **확인하지 못한 것**: remote desktop SSH E2E 1개는 조건부 skip이고 Peekaboo 권한이 없어
Playwright Electron 캡처를 사용했습니다.
- **생성물**: `scripts/pen-screens.mjs`로 `design/hide-screens.pen`을 재생성했고
design contract과 HEAD diff를 확인했습니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/hcoord-plugin/prd.md` (sha256
17c8f49fe695feb8d798dc79a4b5bf79390be38f77f210de65a248434e4fdb87)
- Base adadce7 → head c7ddcf5, verified 2026-09-27T14:51:17.291Z: PASS
- Verification report:
`agents/runs/hcoord-plugin/verification-report.json` and
`agents/runs/hcoord-plugin/verification-report.md`; source fingerprint
b0457c86b5c9eda0f3e10da5bffc07d2c97290014e271cd80424870e2de8c2e1
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity at c7ddcf5: PASS for B1-B32, no must-fix; live login and
public install remain isolated or fixture-backed.
  - Code at c7ddcf5: PASS, no must-fix or follow-up.
- Security at c7ddcf5: PASS, no security, privacy, or process-isolation
must-fix.
- Evidence: 16 registered (6 screenshot, 3 log, 4 image, 3 file); paths
are local to the run directory
- agents/runs/hcoord-plugin/artifacts/visual/packaged-lineage-light.png
  - agents/runs/hcoord-plugin/artifacts/visual/packaged-lineage-dark.png
- agents/runs/hcoord-plugin/artifacts/visual/process-and-isolation.json
  - agents/runs/hcoord-plugin/artifacts/visual/screen-main.png
- agents/runs/hcoord-plugin/artifacts/visual/screen-projects-sidebar.png
-
agents/runs/hcoord-plugin/artifacts/final/packaged-projects-light-3b7c316e.png
-
agents/runs/hcoord-plugin/artifacts/final/packaged-projects-dark-3b7c316e.png
-
agents/runs/hcoord-plugin/artifacts/final/projects-sidebar-lineage-3b7c316e.png
-
agents/runs/hcoord-plugin/artifacts/final/process-and-isolation-3b7c316e.json
  - agents/runs/hcoord-plugin/artifacts/final/screen-main-3b7c316e.png
-
agents/runs/hcoord-plugin/artifacts/final/screen-projects-sidebar-3b7c316e.png
  - agents/runs/hcoord-plugin/artifacts/final/package-3b7c316e.sha256
-
agents/runs/hcoord-plugin/artifacts/final/projects-sidebar-lineage-ba1bd09e.png
  - agents/runs/hcoord-plugin/artifacts/final/package-ba1bd09e.sha256
  - agents/runs/hcoord-plugin/artifacts/final/package-b8f7ab01.sha256
  - agents/runs/hcoord-plugin/ci/delegated-checkout-ab.md
  - agents/runs/hcoord-plugin/ci/main-adadce76-integration.md
- Changed paths: 91 (see Files 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