Repository navigation
Bind a Workspace caller outside its pane to the checkout holding its cwd - #202
Merged
Merged
Conversation
The core's caller slot now parses either a Herdr pane id or an encoded checkout caller (checkout:<key>:<canonical path>). A checkout caller is bound to the longest connected, registered checkout path that equals or contains its cwd by whole segments; none refuses checkout_not_registered and an equal-length pair refuses ambiguous_checkout. The retry record is keyed by the full caller id, so two capabilities in one checkout never share a cached answer, and a context mismatch names the checkout rather than a moved pane.
…g its cwd When the bootstrap's pane attestation fails for a local caller, or the caller sends no pane id, hided reads the peer's working directory from the kernel (proc_pidinfo PROC_PIDVNODEPATHINFO on macOS, /proc/<pid>/cwd on Linux), canonicalizes it and asks the core for the registered, connected checkout that contains it. The issued capability is bound to that checkout: validation rechecks only registration and device connection, a persistent bootstrap from the same checkout reuses its live reference, and the pane path is unchanged. An unreadable cwd fails closed as caller_unavailable; a cwd outside every registered checkout is checkout_not_registered. Each issuance and refusal is one record in the core's diagnostics log, which the daemon can now write because the detached daemon's stderr is discarded.
The architecture guide names both attestation paths, what each credential records and rechecks, and the caller id the core sees; the hook guide says the reference prefix is a convenience and why a Codex daemon hook may run outside the pane; the browser and UI guides stop calling every command pane-scoped.
…r it was persistent The daemon answers a bootstrap with a reason only, so the CLI now maps checkout_not_registered and caller_unavailable to the step the caller can take instead of the pane wording. The checkout capability diagnostic gains a persistent flag, which tells a hook-issued bootstrap from a one-shot command in the log.
…ded pane id The bootstrap's pane attestation returned early when hided had no Herdr socket, so a caller with a stale pane id never reached the checkout fallback in that state; the attestation now lives in one function whose every pane failure hands the caller to the fallback, and a test drives it with no socket. A request naming the core's encoded checkout caller in its pane id is refused as invalid_request rather than handed to Herdr. Tests cover the unreadable caller, the bad nonce, and two registrations of one checkout path (ambiguous_checkout).
# Conflicts: # docs/UI_BEHAVIOR.md
This was referenced Sep 27, 2026
Merged
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
Related: `agents/prd/sidebar-row-click-overview-row/prd.md`, follows #167; integrates current main ## Summary - 체크아웃 행을 클릭하면 Workspace가 열리면서 에이전트가 펼쳐지고, 이미 열린 행을 다시 누르면 접힙니다. - Git 프로젝트 첫 자식에 Overview 행을 추가하고, Overview 선택 표시를 이 행으로 옮겼습니다. - 열기와 펼침을 이벤트 하나로 반영하며, 사라진 체크아웃 요청은 상태 변경 없이 진단만 남깁니다. - Git 정보가 갱신되어도 에이전트에서 가져온 체크아웃 목적 문구를 유지합니다.  펼친 에이전트 목록은 왼쪽, 접힌 상태는 오른쪽입니다. Overview는 두 상태 모두 첫 자식 행입니다. ## Review - **판단해 주세요**: 행 재클릭으로 접는 동작과 프로젝트 아래 Overview 진입점의 위치. - **조심해서 볼 파일**: `runtime.rs`, `events.rs`의 상태 소유권, `runtime/projects.rs`의 파생 문구, `navigation.ts`의 전환·실패 경로. - **리뷰 반영**: 조기 전환, 거부 후 timeout 안내, 최근 패널의 누락된 식별자와 Git 갱신 시 목적 문구 소실을 수정했습니다. ## Evidence - **확인한 것**: 목적 문구 소실을 3회 재현했고, 수정 후 최종 병합본에서 같은 브라우저 시나리오가 3회 연속 통과했습니다. - **확인한 것**: 단일 이벤트, 클릭·재클릭·키보드·Overview 선택, 원자적 거부를 검사했습니다. 최종 Rust test/lint도 통과했습니다. - **확인하지 못한 것**: 최종 커밋 CI는 진행 중입니다. 로컬 Electron UI는 D-07 범위 밖이며 비동기 projection 실패는 별도 주입하지 않았습니다. - **생성물**: Projects Sidebar 시트와 웹 wire 타입을 생성기로 갱신했습니다. main 대비 디자인 라이브러리 변경은 없습니다. <details><summary>추가 증거</summary>   최신 격리 런타임에서 펼침과 Overview 전환 후에도 primary 목적 문구가 유지됩니다. </details> <details><summary>Verification record</summary> - PRD: `agents/prd/sidebar-row-click-overview-row/prd.md` (sha256 5db6a301d9034c2d1c7ebdcfab202e0be82877e44d8c3fa08fb5fe73bbda8fca) - Base 9529e58 → head a7eb0d5, verified 2026-09-27T12:22:19.149Z: PASS - Verification report: `agents/runs/sidebar-row-click-overview-row/verification-report.json` and `agents/runs/sidebar-row-click-overview-row/verification-report.md`; source fingerprint 7ffbe78df1b06af059735f0fad94a63e25ea407b3d8e1d9f3958519fb04c4623 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Fidelity: a7eb0d5, final head and registered evidence reviewed; no Fix now. B1-B10 retained. Prior admission and cancellation findings fixed. Existing documentation and Pen/runtime differences remain follow-up only. - Code: a7eb0d5 APPROVE; premature navigation, stale timeout, Recent Panels identity and purpose refresh findings closed. Optional explicit asynchronous projection-failure regression remains. - CI regression: 2b62f74 failed purpose assertion at projects-sidebar.spec.ts:242. Reproduced 3/3 locally, valid RED unit test failed after refresh; existing purpose helper restores derived title before publication. GREEN regression and 3/3 E2E pass before and after final main integration. Assertions unchanged. - Main integration: merged origin/main7af7e040 without rebasing;23 task paths differ. Design library unchanged. Includes #195/#196/#197/#202/#203/#204. - Additional checks: web397 and desktop39 unit/typecheck/lint/build PASS on second integration (web source unchanged since); fresh final hided build and design contract PASS. Earlier design16 conditions/112 assertions and44 script tests PASS. - Final sealed run:126.0s Rust test,2.0s lint; initial formatting-only failure corrected and both reviewers confirmed no semantic change. - Historical setup failures and full-suite failures remain in registered logs; final results above supersede them. Earlier CI cancelled for requested main integration. Final-head CI pending. - Local Electron UI observation is outside D-07; CI owns Electron E2E. Async projection failure not separately injected. Original board1 A/B remains authority; comparison baseline is delegated. - Evidence: 45 registered (15 screenshot, 28 log, 2 file); paths are local to the run directory - agents/runs/sidebar-row-click-overview-row/evidence/row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/overview-row-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/sidebar-final.log - agents/runs/sidebar-row-click-overview-row/evidence/web-final.log - agents/runs/sidebar-row-click-overview-row/evidence/manual-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/sidebar-reviewed.log - agents/runs/sidebar-row-click-overview-row/evidence/web-reviewed.log - agents/runs/sidebar-row-click-overview-row/evidence/core-checkout.log - agents/runs/sidebar-row-click-overview-row/evidence/web-final-head.log - agents/runs/sidebar-row-click-overview-row/evidence/final-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/final-overview-row-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/e2e-final-head.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-rechecked.log - agents/runs/sidebar-row-click-overview-row/evidence/all-e2e-initial.log - agents/runs/sidebar-row-click-overview-row/evidence/web-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/build-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/design-tests-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-merged-overview.log - agents/runs/sidebar-row-click-overview-row/evidence/design-merged.md - agents/runs/sidebar-row-click-overview-row/evidence/design-merged.json - agents/runs/sidebar-row-click-overview-row/evidence/design-merged-compare.png - agents/runs/sidebar-row-click-overview-row/evidence/design-merged-states.png - agents/runs/sidebar-row-click-overview-row/evidence/merged-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/merged-overview-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/build-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/web-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-second-merge-tabs.log - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.md - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.json - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge-compare.png - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge-states.png - agents/runs/sidebar-row-click-overview-row/evidence/second-merge-row-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/second-merge-overview.png - agents/runs/sidebar-row-click-overview-row/evidence/purpose-regression-red-valid.log - agents/runs/sidebar-row-click-overview-row/evidence/purpose-regression-green-valid.log - agents/runs/sidebar-row-click-overview-row/evidence/ci-repro.log - agents/runs/sidebar-row-click-overview-row/evidence/purpose-fix-e2e.log - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-e2e.log - agents/runs/sidebar-row-click-overview-row/evidence/build-final-ci-fix.log - agents/runs/sidebar-row-click-overview-row/evidence/design-final-ci-fix.log - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-screens-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-screens-overview-row-selected.png - Changed paths: 129 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
…ame the bound checkout (#205) Related: #202 (checkout-bound capability; this is its hook-side follow-up) ## Summary - #202 lets hided bind a local caller outside any pane (Codex 0.157's shared app-server daemon, a plain terminal) to the registered checkout holding its cwd, but the SessionStart hook helper still skipped the Workspace probe whenever `HERDR_PANE_ID` was unset, so a daemon-run Codex session got no Workspace guidance even though bare `hide` already worked. - The helper now probes on every SessionStart and appends the guidance whenever the daemon binds the caller; the guidance names the checkout path the daemon answered with instead of "this connected pane". - Pane counters and Herdr reporting stay pane-only; hided, the CLI, and the Action list are unchanged. ```text Hide Workspace control is available for this session's checkout `/Users/.../herdr-ide.worktrees/hook-probe-without-pane`. Commands affect only that checkout's Workspace; there is no Workspace override. Prefix each command with `HIDE_CAP_REF='…' '/Applications/hide.app/Contents/Resources/hide'`. Available commands: … ``` ## Review - **판단해 주세요**: hide의 hook이 설치된 머신에서는 이제 Herdr 밖의 일반 터미널 세션도 등록 checkout 안에 있으면 Workspace 안내문을 받습니다. #202의 접근 모델(같은 계정, cwd가 등록 checkout 안)과 같은 경계이지만, 안내문이 뜨는 범위가 넓어지는 것을 받아들일지. - **조심해서 볼 파일**: `hide-agent-hooks/src/bin/hide-agent-hooks.rs` - SessionStart의 probe 게이트 제거; counters/report 분기는 그대로 pane id를 요구하는지. `hide-agent-hooks/src/workspace_context.rs` - `checkout_path`가 없으면 안내문 자체를 내지 않음(failure path). - **질문**: 없음. ## Evidence - **확인한 것**: `scripts/verify-cargo.sh test` 전체 워크스페이스 green(새 단위 테스트 2개 포함), `lint` clean, `pnpm --dir desktop typecheck` green. 이 브랜치로 패키징한 hide.app을 설치한 뒤, pane id 없이 등록 checkout에서 helper를 직접 실행하면 안내문이 그 checkout 경로를 이름 짓고, checkout 밖에서는 안내문이 없음(hided 로그 `checkout_capability.issued` / `refused`). 공용 daemon(pid ppid 확인)에 붙은 실제 Codex 0.157.1 세션 두 개에서 session-start 컨텍스트에 안내문이 들어갔고, daemon의 cwd와 다른 checkout에서 띄운 세션은 그 checkout 경로를 받음. 즉 daemon 안 hook은 스레드 cwd를 봄(#202 PRD의 B13 미결 항목 해소). - **확인하지 못한 것**: `desktop/e2e/remote-workspace.spec.ts`의 새 `plainInCheckout` 케이스는 로컬에서 돌리지 않았고 CI의 desktop lane에 맡김. SSH 원격 helper는 pane id 없이는 지금처럼 안내문이 없어야 하는데(원격 attestation은 pane 전용) 라이브로는 보지 않음. 리뷰어 지적: hook이 설치된 일반 터미널의 모든 SessionStart가 probe 두 번(각 2초 상한)을 더 돌리므로 Hide가 안 떠 있어도 최대 4초가 추가될 수 있음; 실제로는 소켓 부재로 즉시 실패. **AI tooling**: 대부분 AI 도구. 사람이 대조한 것: 설치본에서의 helper 출력과 Codex 세션 두 개의 답변, 리뷰어의 Fix now 없음 판정.
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
… checkouts (#216) Related: #202, #205, `agents/prd/checkout-capability/prd.md` ## Summary #202 let a caller with no attestable pane (Codex 0.157's shared daemon) hold a checkout-bound Workspace credential, but two edges still spoke the pane path's language. A checkout-bound command whose answer no longer matched its credential was refused as `pane_changed` with "Reconnect the pane and retry", a step that caller cannot take; it now answers `checkout_not_registered` with the checkout next action, chosen by the credential's own binding. A checkout-bound capability whose project was unregistered stayed in the registry until its eight-hour lifetime ended, counting against the 64-reference cap; the five-second sweep now drops it, with a `sweep`-stage `pane_auth` record. `AGENTS.md` gains the rule for `/Applications/hide.app` after 2026-09-27, when one session replaced the operator's app with a pre-fix build and deleted the backups beside it. ```text before {"reason":"pane_changed","next_action":"Reconnect the pane and retry"} after {"reason":"checkout_not_registered","next_action":"Run the command from a shell inside a registered project checkout, or reconnect Hide, and retry"} ``` ## Review - **판단해 주세요**: the installed-app rule's wording in `AGENTS.md`; whether "the operator asked for it in the session doing the replacing" is the authority line you want. - **조심해서 볼 파일**: `hided/src/pane_auth.rs` `Registry::sweep` - it now asks the core once per live checkout-bound entry every 5 s (at most 64, in-process owner-thread round trips), with the registry lock released and on a `spawn_blocking` task, so a bootstrap or validation never waits behind it; a pane-bound entry is not re-resolved. - **조심해서 볼 파일**: `hided/src/server.rs` - the two post-command context checks return `cap.changed_refusal()`; the validate refusal's next action is now keyed by reason. ## Evidence - **확인한 것**: `scripts/verify-cargo.sh test -p hided` (77 hided unit tests, including the new `sweep_drops_a_checkout_capability_whose_checkout_no_longer_resolves`: a claimed checkout-bound entry against a bare core is gone after one sweep and its reference file removed, a pane-bound entry stays, and the token then validates as `credential_expired`), `verify-cargo.sh lint`, `cargo fmt --all --check`, `check-no-workstation-identity.sh`, `check-no-attribution.py`. - **확인하지 못한 것**: no live run on the installed app; the `checkout_not_registered` refusal text on a real post-command mismatch is covered by the unit-level `changed_refusal` mapping, not by unregistering a project under a running daemon. One `hide-agent-hooks` deadline test failed once under load and passed on rerun (known flake, unrelated files). **AI tooling**: 대부분 AI 도구. Diff, the sweep's lock and thread placement, and the AGENTS.md wording were read by hand.
yansfil
added a commit
that referenced
this pull request
Oct 29, 2026
Closes with-hide/hide-private#180 Closes with-hide/hide-private#277 Closes with-hide/hide-private#202 Closes with-hide/hide-private#198 Closes with-hide/hide-private#199 Closes with-hide/hide-private#48 Closes with-hide/hide-private#114 ## Summary Windows에서만 가끔 실패하던 테스트 묶음을 원인별로 고칩니다. 재시도는 늘리지 않았고, 각 실행의 10초 제한은 그대로 두었으며, 프로세스 정리에 쓸 시간만 더했습니다. 테스트가 같은 파일에 같이 쓰던 것, 처음 실행하는 PowerShell과 node의 비용을 제한 시간 안에서 내던 것, vitest worker를 동기 컴파일로 막던 것, 화면 테스트마다 반복하던 무거운 작업을 없앴습니다. 제품 동작은 바뀌지 않습니다. 설치된 hook이 처음 실행될 때 PowerShell 모듈을 불러오는 비용은 hide-private#318로 남겼습니다. #124는 그 lane이 #1719로 이미 삭제되어 근거 코멘트를 남기고 닫았습니다. 스크린샷 없음: 화면 동작은 바뀌지 않음(`web/src/i18n/instance.ts`는 같은 검증을 하는 시점만 앞당김). <details><summary>이슈별 원인과 처리</summary> - **#198 #199 agy hook 테스트**: 테스트 준비가 PowerShell을 `exit 0`으로만 미리 띄웠습니다. 그래서 hook 명령이 쓰는 `Test-Path`가 모듈을 처음 불러오는 비용(새 runner에서는 설치된 모든 모듈의 캐시를 먼저 만듦)이 15초 제한 안에 들어갔습니다. 미리 띄울 때 `Test-Path`까지 실행합니다. 이것은 warm 상태의 기능 테스트를 위한 준비입니다. 제품 hook 명령의 cold 경로는 그대로이고, 고치려면 설치된 명령 문자열과 HOOK_VERSION이 바뀌어야 해서 hide-private#318로 남겼습니다. - **#202 hide-kit node 테스트**: job에서 처음 실행하는 `node.exe`가 2.5-40초 걸렸습니다(다음 node는 0.1초). 테스트의 제한 시간이 시작되기 전에 `node --version`으로 첫 실행을 냅니다(`stand_ins`, hided 테스트가 이미 쓰는 방식). 바뀌는 것은 테스트 준비뿐입니다. - **#180 #277 herdr-core PowerShell 시작 질문 테스트**: 두 pane이 한 파일에 `Add-Content`로 쓰면서 모든 오류를 잡고 5초 동안 재시도했고, 실패 화면에는 "stayed locked"만 남았습니다. 기록마다 자기 파일에 .NET으로 쓰고 재시도는 없앴습니다. 오류가 나면 그 오류가 그대로 보입니다. - **#48 platform-program.unit.ts**: `beforeAll`이 C 프로그램 6개를 `execFileSync`로 동기 컴파일해서 worker가 81초 동안 막혔습니다. 컴파일과 프로그램 실행을 await하는 자식으로 바꿨습니다(`web/e2e/bounded-child.ts`). 호출마다 동기 호출 때와 같은 제한(컴파일 60초와 1 MiB, 실행 10초)이 있습니다. 어떻게 끝나든(스스로 종료, 제한 초과, 시작 실패, 테스트의 `signal`) 기존 fixture 도구로 자식 트리 전체를 끝냅니다. 첫 프로세스의 종료는 그것이 띄운 자손에 대해 아무것도 말해 주지 않고, Windows에서는 자손이 출력을 쥐고 있어도 그 종료와 함께 `close`가 오기 때문입니다. Unix는 process group 종료를 확인하고, Windows는 `hide-processes`가 identity로 자손을 따라갑니다. 이 도구들은 의존이 없는 `web/e2e/process-tree.ts`로 옮겨 shim 빌드도 함께 씁니다. 종료를 확인하지 못하면 즉시 그렇게 알리고, 호출자는 임시 파일을 지우지 않습니다. 그때까지 트리는 worker 종료 정리(`ownUntilWorkerExit`)에 등록되어 있습니다. Windows에서는 `hide-processes`를 먼저 빌드하고, 이후 컴파일을 따라갑니다. 그 자신의 컴파일이 실패하면 partial 파일을 남깁니다. - **#114 Windows web unit 5초 타임아웃**: Windows runner는 jsdom 테스트가 이 Mac보다 약 7배 느려서, 로컬에서 0.5초를 넘는 테스트가 5초 한도에 붙습니다. 무거운 동기 작업 두 개를 없앴습니다. - 화면 테스트마다 mount할 때 번역 카탈로그(약 4,000키 x 4개 언어)를 다시 검증 -> 정적 카탈로그라 모듈을 불러올 때 한 번만 검증. - `practice/worlds.test.ts`가 입력마다 출발 상태의 snapshot과 화면을 다시 계산(테스트 시간의 87%) -> 상태마다 한 번만 그리고 store에는 매번 다시 넣음. world가 상태를 제자리에서 바꾸지 않는다는 것은 모든 모델을 deep-freeze한 상태로 18개 테스트가 통과하는 것으로 확인했습니다. - **#124 nightly agent journey signed in (windows)**: 이 lane은 #1719(c88d028, 10-27 운영자 결정)로 CI에서 빠졌습니다. 코드 수정 없이 근거 코멘트를 남기고 not planned로 닫았습니다. </details> ## Review - **판단해 주세요**: #198 #199와 #202는 테스트 준비만 바꿉니다. 제품 hook의 cold 첫 실행(hide-private#318)은 이 PR의 범위 밖입니다. - **조심해서 볼 파일**: `web/src/i18n/instance.ts` - 카탈로그 검증이 import 시점으로 옮겨졌습니다. 잘못된 카탈로그는 이제 첫 instance를 만들 때가 아니라 모듈을 불러올 때 throw합니다. - **조심해서 볼 파일**: `web/e2e/bounded-child.ts`, `web/e2e/process-tree.ts`, `web/e2e/shims/build.ts` - 실패 경로의 트리 종료, 종료를 확인하지 못했을 때 파일을 남기는 것, worker 종료 정리. `endStartGroup`, `windowsProcessTree`, `endWindowsProcesses`의 본문이 `process-tree.ts`로 옮겨졌습니다(기존 이름은 그대로 위임). `buildFixtureShims`는 async가 되어, Playwright `globalSetup` 두 곳과 vitest 파일 세 곳이 await합니다. - **남은 한계**: with-hide/hide-private#324 ## Evidence - **확인한 것 (원인)**: run 40449782460에서 PowerShell 테스트 4개가 같은 순간에 시작해 38-48초 걸렸고, 제한 없이 `Test-Path`를 먼저 실행한 `every_windows_command`만 통과했습니다. run 40679837812에서는 node 테스트가 1차에 30초로 시간 초과되고 재시도에 12초 걸렸습니다. run 40679854397의 pane 화면에는 `claude-args stayed locked`가 남았습니다. - **확인한 것 (Windows)**: head 997877724의 `windows check`(run 40723179805)에 TRY 2/FLAKY/onTaskUpdate 줄이 없습니다. herdr-core PowerShell 테스트 10.7초, agy hook 테스트 2.8-5.6초, hide-kit node 테스트 2.4초입니다. web unit에서 가장 느린 테스트는 OverviewGraph overflow 3.9초이고, worlds는 최대 1.5초입니다(main run 40706855580에서는 5.8초). Windows agent journey dispatch run 40719259611 통과. - **확인한 것 (로컬 macOS)**: `verify-web.sh web/desktop typecheck/lint`, `desktop test` 통과. `web test`는 260 files 중 `src/mobile/sleep.test.tsx` 2개만 5초 타임아웃으로 실패했습니다(측정 중 load 98). 단독으로 돌리면 통과하고, 이 PR이 건드리지 않은 파일입니다. `bounded-child.unit.ts`의 세 회귀 테스트(종료 실패를 즉시 알림, 부모가 먼저 끝나고 자손이 stdout을 쥔 경우, worker 종료)는 각 수정을 되돌리면(Unix group 대신 첫 프로세스만 kill, worker 등록 제거, 종료 실패를 close까지 대기) 실패하고, 복원하면 통과합니다. - **확인한 것 (Windows 트리 종료)**: head e2179be05의 `windows check`에서 `bounded-child.unit.ts` 4개(종료 실패, 부모 선종료, 제한 시간 초과 때 출력을 쥔 자손, worker 종료)와 `windows-processes.unit.ts`가 통과했습니다. 한 번의 green은 flaky가 해소됐다는 증명이 아니므로, 이후 main run에서 같은 이슈 코멘트가 다시 붙지 않는지 봐야 합니다. OverviewGraph overflow(3.9초)가 여전히 5초 한도에 가장 가깝습니다. - **확인하지 못한 것**: #180 #277에서 원래 삼켜진 오류가 무엇이었는지는 로그로 복원할 수 없었습니다. 공유 파일과 cmdlet 의존을 둘 다 없애 두 후보를 모두 제거했고, 남는 실패는 자기 메시지를 보입니다. <details><summary>Verification record</summary> - head: e2179be (fix/flaky-windows-lane, origin/main 877ec01 merge 포함) - 이 head의 CI: verify run 40829385062 전체 pass (windows check job 123299939776: TRY 2/FLAKY/onTaskUpdate 줄 없음, web unit 260 files, desktop unit 28 files; windows e2e, windows desktop, package windows, os/agy contract windows pass) - 거쳐 온 head: 5823db114는 Windows에서 부모 종료와 함께 `close`가 와서 `bounded-child.unit.ts`가 실패(run 40823405169). 0bde0ea2b는 `hide-processes` 자신의 컴파일에 아직 없는 경로를 넘겨 Windows 빌드가 실패(run 40826389313). 둘 다 e2179be05에서 고침 - Windows agent journey dispatch: run 40719259611 (systems windows, fake model) pass </details>
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/checkout-capability/prd.mdSummary
daemon_auto_startruns tool shells and hooks under a sharedcodex app-serverdaemon, sohide workspace ...from a Codex thread carried no pane and was refused; only a Claude Code pane worked.proc_pidinfo//proc), and the core binds the caller to the longest registered, connected checkout containing that cwd.checkout:<nonce>:<canonical path>; validate re-queries the core by that id and revokes on any refusal, so an unregistered checkout or a disconnected device refuses withcheckout_not_registered, never another checkout.HERDR_PANE_IDis unset instead of refusing locally, and a refused bootstrap names its next step (run from a shell inside a registered checkout, or reconnect Hide).server.rs, or Codex configuration changed (D-07); the remote SSH bridge keeps pane attestation only.Review
ambiguous_checkoutrefuses when two registrations share one path rather than picking one; a nested checkout wins over its parent by longest path.hide-agent-hooksgates its probe onHERDR_PANE_ID; bare commands work regardless (B13). Restoring the guidance is a separate decision.hided/src/pane_auth.rs- failure path: every pane failure (Herdr socket missing, stale pane id, caller not a descendant) must reach the fallback, and a request pane id shaped like the encoded caller is refused asinvalid_request.herdr-core/src/runtime/workspace_control.rs- ownership:resolve_callerruns under the runtime lock and touches only registry facts, no I/O; the retry record is keyed by the full caller id.hided/src/workspace_cli.rs- a bootstrap with an empty pane id is now the normal path for a caller without a pane.checkout_not_registeredinserver.rs(today it sayspane_changed, frozen by D-07)?Evidence
verify-cargo.sh test; lint and the web lane pass.HERDR_PANE_ID) ran the same sequence; each of the 11 bootstraps loggedcheckout_capability.issuedwith the worktree's checkout id./tmpit was refusedcheckout_not_registeredwith the next action and nothing opened.hide workspace infostill succeeded withpane_reason: pane_not_connected.checkout_not_registeredand code reading ofRegistry::validateonly.process_cwd; the remote path is unchanged and the Linux branch is covered by reading only.AI tooling: 대부분 AI 도구. Hand-checked: the live sequences on the installed app in both runtimes, the diagnostics records, and the ARCHITECTURE.md wording against the code.
Verification record
agents/prd/checkout-capability/prd.md(sha256 18998d349efde6b8fa0742d9e5914a9d50e5d2b178e65b9bb8e8520d833ed40c)agents/runs/checkout-capability/verification-report.jsonandagents/runs/checkout-capability/verification-report.md; source fingerprint 17554945fb9ee9e9a629ccc5a8457b2081bf1a49654c391a485ed6c2875b86e6bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)