Repository navigation
Stabilize worktree overview reader test - #83
Merged
Merged
Conversation
This was referenced Sep 17, 2026
yansfil
added a commit
that referenced
this pull request
Sep 17, 2026
## Summary - Document the repository's current pull-request merge policy. - Replace stale squash-only wording with the merge-commit policy enforced by the GitHub repository settings. - Keep required `verify` checks and branch protection requirements unchanged. ## Related - Repository merge settings and PR #83 merge behavior. ## Review focus - **사람이 판단할 것**: Confirm that the documented merge policy matches the repository settings and the intended delivery workflow. - **위험한 파일**: `AGENTS.md` and `CONTRIBUTING.md`, because agents use them to choose delivery commands. - **리뷰어에게 묻는 것**: Does the wording accurately describe the current branch protection and merge method? ## Breaking change - None. This documents the existing repository behavior. ## Risk surface - This change affects agent and contributor delivery guidance only. - Required `verify` checks and direct-push protection remain required. ## Evidence - `git diff --check` passed. - Compared the wording with the repository's current GitHub merge settings. - No product code or runtime behavior changed. ## AI tooling - [x] 일부를 AI 도구로 작성 **손으로 확인한 것**: 직접 대조한 GitHub repository merge settings, branch protection, and the two repository guidance files.
yansfil
added a commit
that referenced
this pull request
Sep 17, 2026
## Summary 세션 동기화 코드를 책임별 모듈로 분리해 coordinator가 event loop와 orchestration을 소유하고, snapshot projection·replica transition·Herdr subscription lifecycle이 각각 독립된 경계를 갖도록 했습니다. PR #83의 merge commit `72f382e` 위로 rebase한 뒤, 기존 작업 커밋 3개를 보존한 상태입니다. ## Related - PR #83 merge commit `72f382e` ## Review focus - **사람이 판단할 것**: `coordinator.rs`가 orchestration만 남기고 subscription/projection 책임을 충분히 분리했는지 확인해 주세요. - **위험한 파일**: `herdr-core/src/session_sync/subscription.rs` - subscription reader thread의 수명, reconnect, stale/bootstrap failure 경계를 옮긴 파일입니다. - **리뷰어에게 묻는 것**: 다음 slice에서 capability-reader publishing을 별도 모듈로 분리할 때 현재 root re-export 경계를 유지하는 것이 적절한지 확인해 주세요. ## Risk surface - **Runtime mutex**: 새 모듈은 기존 lock/read 순서를 이동만 했으며, mutex 아래 subprocess·blocking I/O·대형 serialization을 추가하지 않았습니다. - **Snapshot wire**: 기존 `session.snapshot` bootstrap과 cursored `events.subscribe`를 그대로 사용하고, typed wire conversion 경계만 projection/subscription 모듈로 이동했습니다. - **Herdr contract**: 새 Herdr method나 schema field를 추가하지 않았습니다. 기존 protocol 23 contract를 사용합니다. - **Failure path**: host/sequence mismatch, stream disconnect, event gap, transport/malformed error가 기존 `ConnectFailure`와 stale/unreachable/malformed 진단 경로를 유지합니다. - **High-frequency path**: event loop의 wake/reconnect/reader ownership 동작은 유지하고, capability readers의 기존 coordinator-only gate를 유지합니다. ## Evidence - **확인한 것**: rebase 후 `GIT_CONFIG_GLOBAL=/dev/null bash scripts/check-hide-full.sh`가 통과했습니다. Rust `herdr-core`는 554 passed / 6 ignored, Swift는 462 tests passed, design contract와 CI binding, Herdr pin/schema(protocol 23), structure gates가 모두 통과했습니다. - **확인한 것**: `bash scripts/check-hide-accessibility.sh`가 linked-worktree dev bundle을 실제로 빌드·실행하고 AXHelp probe PASS를 반환했습니다. - **확인한 것**: `python3 scripts/check-no-attribution.py --range origin/main..HEAD`가 통과했고, rebase 이후 worktree는 clean입니다. - **확인하지 못한 것과 그 이유**: 별도 Workbench native evidence run directory와 screenshot 세트는 이번 diff가 Swift/UI를 변경하지 않아 생성하지 않았습니다. 대신 linked dev bundle의 native accessibility probe를 실행했습니다. - **확인하지 못한 것과 그 이유**: Swift 출력의 기존 Highlightr/SwiftTerm/AppKit 경고는 vendored/SDK 경고이며 이번 diff의 Swift 변경으로 발생한 것이 아닙니다. Swift 소스는 변경하지 않았습니다. ## AI tooling - [ ] 사람이 직접 작성 - [x] 일부를 AI 도구로 작성 - [ ] 대부분을 AI 도구로 작성 **손으로 확인한 것**: `origin/main`의 `72f382e`를 기준으로 conflict-free rebase 결과와 3개 commit diff를 직접 확인했고, clean worktree·gate logs·native AXHelp 결과를 대조했습니다.
yansfil
added a commit
that referenced
this pull request
Sep 17, 2026
## Summary - Extract ShellModel navigation presentation into its own module. - Extract pane-selection lifecycle and transition policy into a dedicated module with focused tests. - Keep Herdr dispatch and snapshot settlement coordination in `ShellModel`. ## Related - Follows the runtime refactor merged in #81 and the overview reader stabilization merged in #83. ## Review focus - **사람이 판단할 것**: Confirm that pane-selection and navigation state transitions still match the ShellModel ownership contract. - **위험한 파일**: `ShellModel.swift`, `ShellModelNavigation.swift`, and `ShellModelPaneSelection.swift`, because presentation and transition policy moved across module boundaries. - **리뷰어에게 묻는 것**: Are the extracted pure policies sufficiently isolated from Herdr dispatch and snapshot settlement? ## Risk surface - **Ownership**: Herdr dispatch and snapshot settlement remain in `ShellModel`; the extracted modules own presentation and pure transition policy. - **Failure path**: Existing refusal and settlement behavior remains in the ShellModel event path. - **High-frequency path**: The pane-selection policy tests and full Swift suite cover the extracted transitions. ## Evidence - Rebased onto `origin/main` at `72f382e` without conflicts. - `bash scripts/check-hide-full.sh` passed. - Swift shell suite: 465 passed. - Rust, repository structure, design/component, Herdr contract, and native bundle gates passed. - Existing Highlightr, SwiftTerm, and archive deployment-target warnings were unchanged baseline warnings; no ShellModel-specific warnings remain. - Worktree is clean at `76da63e`. ## AI tooling - [x] 일부를 AI 도구로 작성 **손으로 확인한 것**: 직접 대조한 rebase base, clean worktree, commit range, full gate output, and assembled bundle result.
yansfil
added a commit
that referenced
this pull request
Sep 17, 2026
## Summary Split the former monolithic Hide UI source into responsibility-owned Swift modules without changing runtime behavior or snapshot/event ownership. The refactor now has dedicated modules for search, sidebar, main surface, terminal surface, chat composer, shared environment/font handling, shell root composition, recent navigation, Pet dashboard, and worktree creation. The obsolete `HideUI.swift` file is removed. The component/design ownership checks and the Rust source-structure regressions now follow the new module boundaries. ## Related - PR #83 - stabilize the worktree overview reader test and merge the current base. - PR #81 - split the Rust runtime into responsibility-owned modules. ## Review focus - **사람이 판단할 것**: Whether the extracted SwiftUI modules match the existing product composition and ownership patterns. - **위험한 파일**: `macos/Sources/HerdrMacOS/HideMainView.swift`, `macos/Sources/HerdrMacOS/HideTerminalSurface.swift`, and `herdr-core/src/runtime/tests/snapshot_delta.rs` because they preserve the main composition, terminal retention surface, and source-structure regressions. - **리뷰어에게 묻는 것**: Does the final module layout provide the right long-term ownership boundary now that `HideUI.swift` is gone? ## Risk surface - **Ownership**: No core state, Herdr ownership, snapshot wire, or event dispatch semantics changed. The change only moves existing SwiftUI declarations and updates structural ownership checks. - **Failure path**: No user-visible failure path or diagnostic behavior changed. The Rust source checks were updated only to read the new Swift file locations. ## Evidence - **확인한 것**: Rebased cleanly onto `origin/main` at `72f382e`; `bash scripts/check-hide-full.sh` passed with Rust workspace tests, Swift tests, repository invariants, Herdr schema, design contract, and design-control tests. Rust runtime tests reported 554 passed and 6 ignored; Swift tests reported 462 passed; Python script tests reported 33 passed. `bash scripts/check-hide-accessibility.sh` passed against the assembled signed dev bundle and native accessibility probe. Component ownership, worktree policy, workbench ownership, no-attribution, and diff checks passed. - **확인하지 못한 것과 그 이유**: No separate interactive screenshot/performance evidence was collected because this is a behavior-preserving source refactor and the native accessibility gate passed. The full build still prints existing warnings from unchanged Highlightr/SwiftTerm/vendor code, the unchanged `HerdrApp.swift` sendability capture, and linker deployment-target diagnostics; no warning points at changed source paths. ## AI tooling - [x] 대부분을 AI 도구로 작성 **손으로 확인한 것**: Rebase result, commit sequence, changed-file ownership, full deterministic gate output, native accessibility output, no-attribution result, and clean worktree state.
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.
Summary
BackgroundReadandWorktreeReader.Related
Review focus
herdr-core/src/reader.rsandherdr-core/src/worktrees.rs, because they add test-only access to background reader state.Risk surface
Evidence
GIT_CONFIG_GLOBAL=/dev/null bash scripts/verify-cargo.sh test: passed.GIT_CONFIG_GLOBAL=/dev/null bash scripts/verify-cargo.sh lint: passed.GIT_CONFIG_GLOBAL=/dev/null zsh scripts/check-runtime-gates.sh: passed.AI tooling
손으로 확인한 것: Reviewed the three-file diff, confirmed the production assertion remains unchanged, and checked the targeted repetition plus full runtime gate output.