Repository navigation
Gate pull requests with a verify workflow and add the contributor surface - #1
Merged
Merged
Conversation
…face Nothing ran on a pull request: the only workflow built a release on a tag push without testing it, and seven check scripts existed that no automation invoked. pr.yml now runs three lanes on every pull request and push to main: the Rust suite, the Swift suite with the two user-facing contract scripts, and the repository invariants including a schema comparison against the pinned Herdr binary downloaded and digest-verified from the manifest. A single verify job fails unless every lane succeeded, so branch protection requires one check that never has to change. The release workflow runs both suites before it builds. The off-lock gate read the runtime module's test fixtures as production forks; it now stops at the test module boundary. A new gate fails when a tracked file names a real home directory or machine, which is how the last identity leak shipped. CONTRIBUTING.md lists every gate with its local command, what it protects, and what to do when it blocks. SECURITY.md routes reports to private vulnerability reporting, the code of conduct is Contributor Covenant 2.1, the pull request template asks the five questions this codebase has been bitten by, and dependabot proposes updates after a seven-day cooldown.
The gate is tracked once committed, so git grep found the pattern line inside the script itself. Local runs before the commit could not see it.
The open-source Swift 6.0.3 toolchain crashes in IRGen while compiling a debug build of MainWindowChrome.swift; the release build never reached that path because it compiles with -O. The test lanes now use the Xcode toolchain the macos-15 image ships and print its version first.
yansfil
force-pushed
the
ci-verify-gate
branch
from
September 5, 2026 17:32
f494361 to
d4f4626
Compare
The workstation-identity invariant permits only /Users/example in tracked files; the socket path tests merged from main used /Users/tester and /Users/t.
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
…cwd (#202) Related: PRD `agents/prd/checkout-capability/prd.md` ## Summary - Codex 0.157 with `daemon_auto_start` runs tool shells and hooks under a shared `codex app-server` daemon, so `hide workspace ...` from a Codex thread carried no pane and was refused; only a Claude Code pane worked. - hided's bootstrap now falls back when pane attestation does not succeed: it reads the peer pid's cwd from the kernel (`proc_pidinfo` / `/proc`), and the core binds the caller to the longest registered, connected checkout containing that cwd. - The caller travels in the pane-id slot as `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 with `checkout_not_registered`, never another checkout. - The CLI sends an empty pane id when `HERDR_PANE_ID` is unset instead of refusing locally, and a refused bootstrap names its next step (run from a shell inside a registered checkout, or reconnect Hide). - No CLI command surface, hook text, Action list, `server.rs`, or Codex configuration changed (D-07); the remote SSH bridge keeps pane attestation only.  ## Review - **판단해 주세요**: the access boundary itself. Any local process of the same account whose cwd is inside a registered checkout can now drive that checkout's Workspace views and read files or diffs inside it through the existing paths (PRD Risks). Security found no way to choose or spoof the cwd and no escalation across checkouts or users. - **판단해 주세요**: `ambiguous_checkout` refuses when two registrations share one path rather than picking one; a nested checkout wins over its parent by longest path. - **판단해 주세요**: the daemon-run Codex SessionStart hook gives no Workspace guidance because `hide-agent-hooks` gates its probe on `HERDR_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 as `invalid_request`. - **조심해서 볼 파일**: `herdr-core/src/runtime/workspace_control.rs` - ownership: `resolve_caller` runs 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. - **질문**: should a post-validate context mismatch of a checkout caller answer `checkout_not_registered` in `server.rs` (today it says `pane_changed`, frozen by D-07)? ## Evidence - **확인한 것**: 15 core tests (longest-checkout resolution, separate retry records per caller, ambiguous registration) and 7 hided pane_auth tests (cwd read, persistent reuse across nonces, no-socket fallback, encoded pane id refusal, bad nonce, unreadable peer) pass in `verify-cargo.sh test`; lint and the web lane pass. - **확인한 것**: on the installed app packaged from this branch, a Claude Code pane ran the full sequence (info, browser open --reveal, status, list, select, split, move, close, list) through the pane path with no pane_auth record. - **확인한 것**: a plain Codex thread under the shared daemon (tool shell ppid = daemon, stale or no `HERDR_PANE_ID`) ran the same sequence; each of the 11 bootstraps logged `checkout_capability.issued` with the worktree's checkout id. - **확인한 것**: a double-forked setsid process (launchd parent, no HERDR_* env) ran the sequence from inside the checkout; from `/tmp` it was refused `checkout_not_registered` with the next action and nothing opened. - **확인한 것**: B13, against the restarted daemon with the current hook file: the SessionStart hook ran inside the daemon and its Memory envelope reached the thread, but no Workspace guidance was appended; bare `hide workspace info` still succeeded with `pane_reason: pane_not_connected`. - **확인하지 못한 것**: whether the daemon-run hook's cwd is the thread cwd or the daemon cwd; the hook output does not distinguish them because the guidance branch never ran. - **확인하지 못한 것**: B7 live (validation after unregistering the checkout or disconnecting the device); covered by the core test for `checkout_not_registered` and code reading of `Registry::validate` only. - **확인하지 못한 것**: a remote SSH-bridge caller and a Linux `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. <details><summary>Verification record</summary> - PRD: `agents/prd/checkout-capability/prd.md` (sha256 18998d349efde6b8fa0742d9e5914a9d50e5d2b178e65b9bb8e8520d833ed40c) - Base 34c0914 → head b8211b9, verified 2026-09-27T11:38:40.977Z: PASS - Verification report: `agents/runs/checkout-capability/verification-report.json` and `agents/runs/checkout-capability/verification-report.md`; source fingerprint 17554945fb9ee9e9a629ccc5a8457b2081bf1a49654c391a485ed6c2875b86e6 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: Fidelity, Code, Security reviewed a177860 and re-reviewed the diff to b88b8d0. Code Fix now #1 (a missing Herdr socket short-circuited the bootstrap before the checkout fallback) fixed in b88b8d0 with a test; confirmed closed by all three. Fidelity and Security: no Fix now. Follow-ups outside the PR: server.rs answers pane_changed for a checkout caller's context mismatch (server.rs frozen by D-07); validate() checkout branch and Linux process_cwd have no direct unit test; sweep() does not recheck registration; validate-stage diagnostic carries no peer pid (documented). B13 redo evidence (live-report-b13.md) was registered after that round; head aa8d125 is b88b8d0 plus a merge of origin/main with no source change of this branch (one doc conflict in UI_BEHAVIOR.md resolved by keeping both sides); cc0bb6b changes a test fixture path from /Users/dev/project to /srv/project because CI refuses /Users/ paths in tracked files. b8211b9 merges origin/main again (12 upstream commits, no conflicts) after main moved during CI. All three confirmed the merge and fixture heads add no Fix now. Fidelity found the registered B13 pane_auth record was the wrong line (peer 82092, not the cited 69670); the correction note and all three records are registered, functional finding unchanged. - Evidence: 14 registered (1 screenshot, 13 log); paths are local to the run directory - agents/runs/checkout-capability/browser-panel-checkout-bound.png - agents/runs/checkout-capability/claude-check.json - agents/runs/checkout-capability/codex-check.json - agents/runs/checkout-capability/detached-in-checkout.json - agents/runs/checkout-capability/detached-outside-new-cli.json - agents/runs/checkout-capability/pane-auth-diagnostics.jsonl - agents/runs/checkout-capability/package.log - agents/runs/checkout-capability/live-report.md - agents/runs/checkout-capability/live-report-b13.md - agents/runs/checkout-capability/b13-codex-pane.txt - agents/runs/checkout-capability/b13-pane-auth-record.jsonl - agents/runs/checkout-capability/review-notes.md - agents/runs/checkout-capability/b13-pane-auth-records-all.jsonl - agents/runs/checkout-capability/live-report-b13-correction.md - Changed paths: 851 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
…desktop app (#206) Related: `agents/prd/electron-digit-shortcuts-hints/prd.md` ## Summary - The desktop app had no ⌘1-9 / ⌥1-9 and no hold hint, which the removed native app had; this adds both to the web shell's registry, Electron column only. - ⌘n brings the nth tab of the strip in front forward as one `focus_tab`; ⌥n opens the nth row the Agents list draws, exactly as clicking it; an empty number does nothing. - Holding ⌘ or ⌥ alone for 150 ms floats each tab's or row's number at its top right as a keycap; release, another modifier, any key, losing the window, or a layer opening clears it. - The keycap is a new `web/src/components/ui/keycap.tsx` overlay in popover tokens; it takes the close control's corner on a tab and moves nothing. - The ⌘/ sheet folds each family into one row and says "not on this host" in a browser; Settings > Shortcuts lists both read-only; docs updated.  ## Review - **결정됨**: 번호 chord ⌘1-9/⌥1-9는 고정(재바인딩 없음)이며 시트와 Settings에 읽기 전용으로 보입니다; pane chord를 ⌘n에 묶으면 "⌘n is already Select tab n."으로 거부합니다(Observer 판정 2026-09-27, PRD D-02/B4의 "재바인딩 규칙은 기존과 같다"는 기존 규칙 유지의 뜻). - **판단해 주세요**: ⌥n은 사이드바가 Projects 탭이거나 숨겨져 있어도 Agents 목록 순서로 동작하고, 키캡은 Agents 행이 화면에 있을 때만 뜹니다; 장치가 앞에 있으면 ⌘n은 그 장치의 탭 스트립을 셉니다. - **판단해 주세요**: 대표 이미지에서 활성 탭의 × 자리를 홀드 동안 키캡이 차지합니다(공간은 유지, 놓으면 복귀); 보드 v3 섹션 2와 같은 위치인지 봐 주세요. - **조심해서 볼 파일**: `web/src/keyboard.ts` - 창 keydown capture 리스너(high-frequency path)에 modifier 추적이 더해짐; 키 하나당 Set lookup 하나, 상태 변화가 있을 때만 publish. - **조심해서 볼 파일**: `web/src/shortcuts.ts` - `MACOS_RESERVED`에서 ⌘1-9를 뺐고 레지스트리가 그 chord를 소유; 저장된 macOS set이 ⌘n을 쓰면 여전히 통째로 기본값으로 떨어지지만 진단 문구가 바뀝니다. - **조심해서 볼 파일**: `web/src/navigation.ts` - `agentTree`가 sidebar.tsx에서 옮겨와 사이드바와 ⌥n이 한 목록을 읽습니다. ## Evidence - **확인한 것**: Electron e2e 1개(격리 hided + 고정 Herdr, worktree desktop/dist)를 로컬 1회: ⌘2 한 번에 `focus_tab` 1회, ⌘3(빈 번호) 0회, 딜레이 전 놓으면 키캡 0, ⌘ 홀드에 탭 키캡 2개(1, 2)와 탭·Rename 입력·+ 버튼 박스 불변, 놓기·홀드 중 ⌘2·blur·컨텍스트 메뉴·Settings 열림 각각에 키캡 0, ⌥ 홀드에 행 키캡 1·2와 제목·fold slot 박스 불변, ⌥2에 `focus_pane` 1회, ⌥3 0회, Light 테마 캡처. - **확인한 것**: 브라우저 e2e 1개(headless Chromium): ⌘·⌥ 500 ms 홀드에 키캡 0, ⌘2·⌥2에 이벤트 0, ⌘/ 시트의 두 family 행이 "not on this host"와 "-". - **확인한 것**: vitest 411(레지스트리 18개·브라우저 null·충돌 거부·시트 접기, 힌트 상태기계의 딜레이·조기 해제·modifier 추가·clear·family, 탭/에이전트 번호 부여와 접힌 자식 제외), desktop vitest 39(메뉴가 번호 명령을 싣지 않음), web/desktop typecheck·lint·build, `check-design-contract.mjs`, sealed suite(cargo test·lint) PASS. - **확인하지 못한 것**: 네이티브 창 캡처 - 이 러너에서 `screencapture -l`이 거부되어 캡처는 CDP 렌더러 이미지입니다; 합성된 네이티브 창은 CI 아티팩트나 설치 후 확인이 필요합니다. - **확인하지 못한 것**: 실제 OS 포커스 상실(e2e는 합성 `blur` 이벤트), 실제 키보드로 Electron이 ⌘n을 페이지에 먼저 넘기는지(Playwright chord로만 확인; 메뉴 가속키는 없음), 툴팁과 키캡이 좁은 탭에서 동시에 뜨는 경우, 장치가 앞에 있을 때의 ⌘n 회귀 테스트. - **확인하지 못한 것**: 전체 web/desktop e2e 스위트는 로컬에서 새 spec 2개만 돌렸고 나머지는 CI에 맡깁니다. <details><summary>추가 증거</summary>   </details> **AI tooling**: 대부분 AI 도구; 사람이 대조할 것은 대표 이미지의 키캡 위치와 Review의 세 판단 항목. <details><summary>Verification record</summary> - PRD: `agents/prd/electron-digit-shortcuts-hints/prd.md` (sha256 75217108929150d772e1db1603e2e30c14f18004359c96cb5be735e92f0b5ff8) - Base 17a14c0 → head 9a3a606, verified 2026-09-27T14:06:18.848Z: PASS - Verification report: `agents/runs/electron-digit-shortcuts-hints/verification-report.json` and `agents/runs/electron-digit-shortcuts-hints/verification-report.md`; source fingerprint accbabd3deaa0734e8d5468c9bf849ff68cd8544cd4dfb949ee30da0d23470b0 - One earlier verify on 9a3a606 failed S1 on `hide-agent-hooks/tests/hook_deadline.rs` (a 1.5 s wall-clock bound, untouched here) while a reviewer's vitest ran beside it; it passed in isolation (0.28 s) and on the rerun recorded above. - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews (advisory, native subagents): - Fidelity on f9f82ca: Fix now #1 (Medium) B4/D-02 "재바인딩 규칙은 기존과 같다" read as a promise to rebind the numbered chords; stands unfixed as a recorded assumption for human review (implementor reads it as "the editable set stays the eight pane commands"). Fix now #2 (Low-Medium) no coverage of a layer opening mid-hold; fixed in 5a681d2 (context menu and Settings sheet opened while ⌘ held, keycaps asserted gone). Follow-ups: a device-in-front ⌘n regression test, record decision #1 as an interview decision, a B9 tooltip-plus-keycap capture on a narrow tab. - Code on f9f82ca: no Fix now. Follow-ups taken in 5a681d2: narrowing with `isNumberedCommand` instead of 18 switch cases, `endHold` skips an idle hold, teardown resets `ui.hint`. Not taken: a real OS-level blur in the e2e (synthetic `blur` event kept). - Follow-up on 5a681d2 (diff f9f82ca..5a681d2 with the prior context): no Fix now; follow-ups: pin the `NO_MODIFIERS` reference in a test (taken in bb57299), the double `numberedCommand` lookup (kept, commented), the human ruling above. - Follow-up on bb57299 (diff 5a681d2..bb57299): no Fix now; follow-ups: no focus ring on the close control while its keycap covers it (transient, noted), the double lookup, the human ruling above. - Follow-up on the rebased head a5e50ce5 (same commits on origin/main c68e760): range-diff every commit content-identical, no shared file or symbol with the upstream commits; no Fix now. Shipped instead as bb57299 merged with the same origin/main (1731f50) so the run baseline stays; same 22-file diff. - Follow-up on 9a3a606 (CI fix, diff 1731f50..9a3a606: web/e2e/s2.spec.ts sheet row count 28 → 30): count verified from the registry, moved count stays 8, no other spec asserts a sheet or Settings row count; no Fix now. - Human ruling (Observer, 2026-09-27) on Fidelity Fix now #1: the numbered chords are fixed and not rebindable, shown read-only in the sheet and Settings; the existing rebinding rules stay; no PRD amend needed. - Evidence: 5 registered (5 screenshot); paths are local to the run directory - agents/runs/electron-digit-shortcuts-hints/artifacts/e2e-desktop/digit-hints-tabs-dark.png - agents/runs/electron-digit-shortcuts-hints/artifacts/e2e-desktop/digit-hints-agents-dark.png - agents/runs/electron-digit-shortcuts-hints/artifacts/e2e-desktop/digit-hints-tabs-light.png - agents/runs/electron-digit-shortcuts-hints/artifacts/e2e-browser/digit-hints-browser-alt-hold.png - agents/runs/electron-digit-shortcuts-hints/artifacts/e2e-browser/digit-hints-browser-sheet.png - Changed paths: 25 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 5, 2026
Related: #288 (flaky 정리), 격리 issue #231 #286 #287 #303 #308 #311 #400 #416 #417 #423-#428 ## Summary 새 flaky 하나가 격리 PR이 머지될 때까지 모든 PR의 `verify`를 막던 구조를 도구 내장 retry로 바꿉니다. - CI에서만 Playwright `retries: 1`(web, desktop)과 Linux Rust lane의 `cargo nextest --profile ci`(`retries = 1`, JUnit)를 켭니다. 재시도에서 통과하면 lane은 통과하고, 두 번 실패하면 lane이 실패합니다. - 새로 만든 것은 `scripts/ci-flaky-report.py` 하나입니다. 두 도구의 보고(JSON, JUnit)에서 flaky를 읽어 `quarantine` issue를 만들거나, 이미 그 테스트를 다루는 열린 issue(#416 #417 #423-#428 같은 손으로 쓴 것 포함)에 run을 댓글로 붙입니다. issue에는 처음 발견된 run, PR, 시스템, 만료일(7일)이 들어갑니다. - nightly는 재시도에서도 실패한 테스트만 빨갛게 합니다. "tracked flaky tests block this run"은 없앴고, main의 `--grep-invert @flaky`는 그대로입니다(태그가 0이 되면 지웁니다). - 닫힌 #396에 남아 있던 `hide-platform` IPC burst test의 macOS `ignore`를 지웠습니다(수정은 #401, 최신 main에서 macOS 로컬 실행 통과). ## Review - **판단해 주세요**: 첫 PR의 lane도 통과합니다(운영자 A안). 그 PR이 만든 회귀가 간헐로 보이면 한 번 통과할 수 있고, 막는 장치는 issue에 PR 번호가 남고 7일 기한이 붙는다는 것뿐입니다. - **조심해서 볼 파일**: `.github/workflows/*.yml` - 호출하는 job마다 `issues: write`가 필요해 reusable workflow 호출부 6곳과 desktop/rust job에 권한이 늘었습니다(토큰은 `Report flaky tests` step에만 전달). `scripts/verify-cargo.sh` - `nextest` 모드는 scoped 모드와 같은 인자 검사를 받습니다. - **질문**: Windows와 macOS Rust lane은 `cargo test`로 남깁니다(`--lib x -- filter`, `-- --ignored` 인자 번역과 runner별 설치가 필요). 이 PR에 넣을지 후속으로 둘지 정해 주세요. ## Evidence - **확인한 것**: `scripts/tests` 전체 단위 테스트 122개 통과(`test_ci_flaky_report.py` 11개, 단일 출처 검사 3개: `0.9.143`은 통과, `0.9.1`은 실패). 증거 run 37253118907에서 임시 flaky 테스트 둘을 올려 확인했습니다. - Rust(nextest, Linux): 2212개 중 1개 FLAKY 분류, lane 통과, `Report flaky tests`가 issue를 생성(#451, 닫음). nextest 설치 step 1초 미만, Rust job 전체 약 3분. - Playwright(web shard 6): `retry #1`에서 통과해 `1 flaky`, lane 통과, issue 생성(#460, 닫음). 두 issue 모두 run, PR #419, 시스템, 만료일 7일을 담았습니다. - 실제 nextest 0.9.143 JUnit과 Playwright 1.63 JSON을 스크립트가 읽는 것도 로컬에서 확인했습니다. - **확인하지 못한 것**: 이 push 이후의 verify 전체(임시 파일 제거와 검사 수정 뒤). 두 번 실패하는 테스트가 lane을 막는 경로는 도구의 기본 동작(retry 소진 시 실패)에 맡겼고 별도 실행은 없습니다. Windows/macOS Rust lane은 `cargo test`로 retry가 없습니다. nextest는 doc test를 돌리지 않지만 workspace에 실행되는 doc test는 0개입니다(`ignore`, `text`, `sh` 3개). <details><summary>CI 장치 크기 (main 079b6f2 기준)</summary> | | 079b6f2 | main 4df25a0 | 이 PR | |---|---|---|---| | workflow 파일 / job / step | 8 / 32 / 159 | 8 / 32 / 159 | 8 / 32 / 165 | | workflow 줄 | 1501 | 1501 | 1576 (pr 515, web-e2e 290, nightly 215) | | CI가 부르는 스크립트 수 / 줄 | 29 / 4195 | 29 / 4195 | 30 / 4391 | 늘어난 이유: `ci-flaky-report.py` 194줄과 그 단위 테스트 113줄, nextest 설치와 report step, 권한 선언. 지운 것: 직접 만든 격리 장치 시안(약 490줄 + 테스트 241줄)은 main에 들어간 적이 없습니다. </details>
yansfil
added a commit
that referenced
this pull request
Oct 21, 2026
## Summary 입력창에 글을 쳤다가 Backspace로 다 지워도, Hide는 화면을 못 보니 그 키 입력을 "보내지 않은 초안"으로 여겨 편지를 최대 1시간 붙잡았습니다(`지금 전달` 알약만 남음). 이제 초안 때문에 편지가 멈춘 칸이 30초 쉬면, Hide가 그 칸의 화면을 한 번 읽어 입력창이 비었는지 봅니다. 비었다고 확실히 읽힐 때만 초안을 풀어 편지가 바로 들어가고, 글이 남았거나 판단이 안 서면 지금처럼 붙잡습니다. 에이전트 화면이 업데이트로 바뀌는 경우에 대비해, 새 버전마다 입력창이 확실히 빈 순간에 한 번 검사해서 통과한 버전만 이 기능을 씁니다. 매일 밤 agent journey도 같은 판정기로 일곱 에이전트를 검사합니다. ## Review - **판단해 주세요**: "빈 입력창"은 각 에이전트의 알려진 자리표시자/스타일만 인정합니다(흐린 글씨 전체가 아님: Grok은 붙여넣기를 회색으로 그림). 표는 `docs/delivery.md` Reading the composer. - **판단해 주세요**: 버전 검사에서 한 번 실패하면 그 버전은 영구히 예전처럼 붙잡습니다(브리프대로). 일시적인 화면 덮개로 잘못 실패할 여지가 있습니다. - **조심해서 볼 파일**: `herdr-core/src/delivery/composer.rs`, `doorbell.rs` - 화면 읽기는 doorbell 스레드에서 lock 밖, 초안 한 번당 한 번, pass당 Herdr 호출 8회 안에 포함. - **조심해서 볼 파일**: `herdr-core/src/runtime/delivery.rs` - `release_empty_composer`는 Deliver now와 같은 `released_input_at_unix_ms`를 씀; 읽은 뒤 키가 오면 거절. `note_prompt_submitted`의 working 경합 처리. - **조심해서 볼 파일**: `hide-agent-adapter/src/composer.rs` - 일곱 에이전트를 판정하는 단일 파서(SGR만 해석). - **비용 검토**: 입력/틱당 추가 작업 없음. 초안 보류 칸에서만 쉼 30초 뒤 `pane.read` 1회(1초 타임아웃, 잘린 화면은 실패). 버전 검사는 5초마다 관찰 목록 한 번 훑고 최대 1칸 읽기. 상태 파일 `composer-checks.json` 128개 상한. - **알려진 한계**: 버전은 이 기계의 설치된 `--version`에서만 알 수 있어, 연결된 기기의 칸은 예전처럼 붙잡습니다. 업데이트 뒤 재시작 안 한 칸은 새 버전 검사 결과로 판단됩니다. ## Evidence - **확인한 것**: 격리된 Hide(이 브랜치 `dac6517c2` debug 빌드) + 고정 Herdr 0.9.5, 실제 Claude Code 2.1.306과 Codex CLI 0.163.0. 키는 Hide WebSocket으로 보냄(`terminal.input write_key` 확인). - 입력 후 Backspace로 지우고 편지 전송 → 두 에이전트 모두 `composer.read empty`, `composer.released`, Deliver now 없이 약 30초 뒤 전달(`hook_confirmed`). - 글을 남기고 편지 전송 → 두 에이전트 모두 `not_empty`, 편지 pending 유지, 2분 뒤 `letter_mark.shown`. - Claude Code 붙여넣기 칩 `[Pasted text #1 +11 lines]`을 Backspace 한 번으로 지움 → `empty`, 전달. 36칸 좁은 칸에서도 두 경우 모두 같은 결과. - **확인한 것**: 일곱 에이전트의 실제 화면 캡처 42장(60칸)을 선언대로 판정(`hide-agent-adapter/tests/it/composer.rs`). doorbell 테스트: 해제·초안당 1회 읽기·버전 미확인/실패 시 읽지 않음·버전 검사·hook/working 경합. - **확인한 것**: `verify-cargo.sh test` 워크스페이스 전체 통과, clippy `-D warnings` 통과, `scripts/tests` 638개 통과, workstation identity 검사 통과. - **확인하지 못한 것**: Light 테마, Windows·Linux의 실제 입력창(nightly `composer` 셀이 처음 확인), journey의 120칸 그리드, Grok·OpenCode·Pi·omp·agy의 라이브 해제(벨 대상이 아님). - **확인하지 못한 것**: 라이브 확인에서 Codex CLI 첫 턴은 Herdr가 working을 hook보다 먼저 보고해 버전 검사가 빠졌음. `cbbd9ae0f`로 고쳤고 단위 테스트로 확인했지만 고친 빌드로 라이브 재실행은 안 함. <details><summary>Verification record</summary> - base `main` 78506e8, head `cbbd9ae0f` - live run record kept locally (agents/runs/composer-live) </details>
yansfil
added a commit
that referenced
this pull request
Oct 25, 2026
## Summary 두 fixture 에이전트의 시작을 함께 진행해 초기화 대기를 줄입니다. 각 시작은 기존처럼 입력 준비가 끝나야 성공하며, 한쪽이 실패해도 다른 쪽 종료를 확인한 뒤 fixture를 정리합니다. 이번 릴리스 범위는 병렬 시작과 회귀 검사입니다. item 1(b)의 등록/입력 준비 분리와 PR B는 1.0.1 이후로 보류했습니다. 추가 성능 측정과 측정만을 위한 CI 반복은 종료했습니다. ## Review - **판단해 주세요**: 부분 실패, CLI timeout, worker 종료 때의 프로세스 소유권과 Windows 정리 경계를 확인해 주세요. - **조심해서 볼 파일**: `web/e2e/herdr-fixture.ts` - shell 사전 검사와 실패 정리를 보존하면서 시작 대기만 겹칩니다. - **조심해서 볼 파일**: `web/e2e/herdr-fixture.spec.ts`, `fixture-worker-exit.spec.ts` - 첫 입력·부분 실패와 실제 owner 종료 때의 CLI 정리 순서, 종료 거부 때 root 보존을 검사합니다. - **비용 검토**: 동시 CLI 시작은 두 개이며 각각 30초 상한과 worker 종료 정리를 갖습니다. ## Evidence - **최종 확인**: `fa329a2b7`의 계획된 모든 lane과 `verify`, Design contract가 통과했습니다. Linux 375개, Windows web 60개, macOS desktop 117개·기존 skip 12개, Windows desktop 19개 통과이며 최종 실패·flake·retry는 없습니다. - **최초 후보**: 최초 CI에서 기존 Linux 370개와 Windows 56개는 모두 통과했습니다. macOS desktop 117개 통과·기존 12개 skip, Windows desktop 19개 통과, Windows check도 통과했습니다. - **수정한 실패**: 신규 입력 검사가 CLI의 빈 stdout을 JSON으로 읽어 Linux와 Windows에서 최초·재시도 모두 실패했습니다. 실제 입력 assertion과 30초 실행 상한을 유지하고 CLI를 직접 호출하도록 수정했습니다. 기존 flaky로 분류하지 않습니다. - **수정 검증**: 빈 stdout 수정 후보는 필수 CI 통과, 기존 [flake #1579](https://github.com/with-hide/hide/issues/1579)는 최초 실패 후 retry 통과했습니다. 독립 검토에서 발견된 worker 종료 순서와 회귀 검사 정리를 수정했습니다. `fa329a2b7`의 독립 정적 검토는 PASS이며, 동일 후보의 필수 CI가 모두 통과했습니다. 로컬 native fixture 회귀 4개, fixture 파일 제한 타입 검사, lint·discovery와 pinned 계약 검사가 통과했습니다. - **확인하지 못한 것**: 디스크 제한으로 로컬 전체 e2e, Cargo 빌드, 패키징을 실행하지 않았습니다. 별도 전체 e2e TypeScript 검사는 기존 오류 때문에 실패했으며, 변경 파일 제한 검사의 통과를 전체 타입검사 통과로 주장하지 않습니다. 독립 리뷰어는 최종 SHA에서 두 P2가 해소됐다고 판정했습니다. 리뷰어는 runtime 검사를 실행하지 않았으며, 실행 증거는 author의 제한된 로컬 검사와 실제 PR CI입니다. SIGKILL/OOM은 Node exit hook 보장 밖입니다. <details><summary>Verification record</summary> - Base: `4881c71ef8575c43c0cbcce063455ab4e350c38c`; first parallel candidate: `9657b1891045b9be5bc23b06f86e184fce4db9af`; stdout correction: `dd264343c0fd79c26155e03ca3d57fc1a6771f7a`; fixture ownership correction: `d8446be6238834471be614a4014f6b2e7703e657`; final recovery correction: `fa329a2b7a681c264bebb484e147309730c7f921`. - First run [40202931637, attempt 1](https://github.com/with-hide/hide/actions/runs/40202931637): FAILED only on the new first-input probe in Linux shard 4 and Windows; each failed both initial and retry attempts with `SyntaxError: Unexpected end of JSON input` at fixture JSON parsing. The new partial-failure regression passed on both systems. Corrected run [40205772294, attempt 1](https://github.com/with-hide/hide/actions/runs/40205772294): required CI SUCCESS, Linux 371 passed + 1 flaky, Windows 58 passed, macOS desktop 117 passed / 12 existing skips, Windows desktop 19 passed. The existing `plan-review.spec.ts:39` test failed initially at `core.y` with `TypeError: Cannot read properties of null (reading 'y')`, then passed retry #1 (7.0s each); [#1579](https://github.com/with-hide/hide/issues/1579) records the identical failure since PR #1578 before this change. Independent review rejected that candidate for one P2: pending CLI cleanup ran after server/root teardown on worker exit. The final candidate owns pending CLI trees inside the fixture and synchronously confirms termination before shared-resource teardown. Ownership-correction run [40207692618, attempt 1](https://github.com/with-hide/hide/actions/runs/40207692618) was cancelled when the reviewed test-cleanup correction superseded it. Final required run [40208605365, attempt 1](https://github.com/with-hide/hide/actions/runs/40208605365): SUCCESS, every planned lane passed. Linux 375 passed, Windows web 60 passed, macOS desktop 117 passed / 12 existing skips, Windows desktop 19 passed; no final-run failures, flakes or retries. All four new regressions passed first attempt on Linux and Windows. The previously flaky `plan-review.spec.ts:39` passed first attempt in 6.8s on this head. CI checked merge `701582e74fd5763003b92ba05c99b91475e7be01` against main `12cdde5fe09f5ace92567c48f52e542708dc5f96`. Since the measured exact baseline, main added one agent-reference-drop test and renamed one sidebar-menu test; that explains the final count of 375 instead of 374 and is outside this four-file diff. Independent follow-up found that the new regression also needed confirmed CLI-group and server termination before deleting its roots; the final recovery correction reuses the fixture helper and checks actual pinned server-stop success. Body-edit runs `40206041779`, `40206813894` and `40207837436` were superseded/cancelled by the cleanup push; they are not passing validation or measurement samples. - Baseline [40196397672, attempt 1](https://github.com/with-hide/hide/actions/runs/40196397672) is a successful push on the exact base. [40125600864, attempt 1](https://github.com/with-hide/hide/actions/runs/40125600864) is a nightly on `c216793eba46b3e9d4daef3a4d184823cbc3fa11`, with unrelated failures outside its passing verify aggregate and one Linux flaky test; it is historical context, not an exact-base causal comparison. - Exact-base Linux test-name comparison: 370 common tests, zero removed, two new regressions in the measured first candidate. The earlier 323-test figure describes the historical duration table, not this baseline run. The final cleanup fix adds two more owner-exit regressions, with no coverage removal. Common test-attempt time was 4,395.451s baseline and 3,498.418s first candidate. This is aggregate test time, not wall clock or a causal estimate from repeated samples. Added regression attempts cost 13.7s on Linux and 17.6s on Windows, including both failed attempts of the new input probe. - Existing-measurement job / e2e step durations, baseline → first candidate: | Lane | Baseline job / e2e | First candidate job / e2e | | --- | --- | --- | | Linux 1/6 | 15:20 / 12:35 | 13:13 / 10:24 | | Linux 2/6 | 16:50 / 13:55 | 10:29 / 8:15 | | Linux 3/6 | 14:41 / 12:45 | 12:54 / 10:01 | | Linux 4/6 | 13:25 / 10:58 | 12:33 / 9:28 (probe failed) | | Linux 5/6 | 14:02 / 11:37 | 14:53 / 11:31 | | Linux 6/6 | 15:14 / 12:21 | 13:04 / 10:03 | | Windows web | 19:50 / 12:40 | 17:21 / 9:51 (probe failed) | | Windows check | 17:15 / - | 16:09 / - | | macOS desktop 1/2 | 17:04 / 10:29 | 17:35 / 10:26 | | macOS desktop 2/2 | 18:07 / 11:16 | 16:22 / 10:00 | | Windows desktop | 10:13 / 3:40 | 10:13 / 3:11 | - Queue: baseline measured jobs 1–3s; first candidate Linux/Windows 1–2s, macOS desktop 1/2 17:59 and 2/2 1:55. Run creation to final update was 20:19 baseline versus 36:02 first candidate, including queue and unrelated full-run lanes in the baseline. Sum of the eleven matched lane job durations was 172:01 versus 154:46 runner-minutes; build and policy jobs are excluded from that sum. - Hosted images were Ubuntu 26.04, macOS 15 arm64 and Windows 2025 VS2026; Windows image version was `20261021.278.1` in both runs. Node cache hits and Rust cache hits were present; cache contents, runner load and PR merge revisions are not controlled. Windows check time is not attributed to fixture behavior. No fixed startup-sleep replacement, assertion relaxation, retry/timeout change, test skip or shard-table change was made. No additional measurement-only CI or repeat is planned under the release-priority instruction. - Final-head validation job / e2e step durations (not another controlled performance sample): | Lane | Job | E2E | Queue | | --- | --- | --- | --- | | windows check | 17:58 | - | 2s | | windows desktop / desktop e2e windows 1/1 | 10:23 | 3:36 | 2s | | desktop e2e / desktop e2e macos 2/2 | 17:12 | 9:16 | 2s | | desktop e2e / desktop e2e macos 1/2 | 16:18 | 9:22 | 2s | | windows e2e / web e2e windows 1/1 | 17:02 | 10:02 | 2s | | web e2e / web e2e linux 3/6 | 12:35 | 9:48 | 1s | | web e2e / web e2e linux 4/6 | 12:12 | 9:21 | 1s | | web e2e / web e2e linux 5/6 | 13:09 | 10:48 | 1s | | web e2e / web e2e linux 2/6 | 11:43 | 9:17 | 2s | | web e2e / web e2e linux 1/6 | 13:16 | 10:29 | 1s | | web e2e / web e2e linux 6/6 | 12:28 | 9:53 | 1s | Run creation to final update: 19:36, including queue. The source head is unchanged; the last PR-body check reuses these successful runtime lanes. - Pinned contract: Herdr 0.9.5, protocol 22, schema SHA256 `9e2af207e9aa8183d4aeca5fde9cc48e7909bb40cdbd7cf21608a6d3ea78075b`. - Local: standard web typecheck (`src` scope), lint and regression discovery: PASS. Final candidate fixture-specific TypeScript project: PASS, not a whole-e2e typecheck. Native fixture regression run: 4 PASS (12.9s), using private pinned Herdr and Node only, with no browser, hided, Cargo or app packaging. After the final test-cleanup edit, the two owner-exit cases reran: 2 PASS (5.0s). An earlier local implementation draft failed those two new cases because `execFile` ignores `detached`; scoped types caught the invalid option too. The final code uses `spawn` with explicit 30-second timeout, 1 MiB per stream and private Unix groups; draft processes and roots were reclaimed. - Local: entrypoint script tests initially failed because the inherited unsupported locale injected stderr; `LC_ALL=C` rerun: 14 PASS. Schema tests: 2 PASS. Script discovery ran 673 tests, 21 normal platform skips, one locale failure closed by that focused rerun. Two actual Cargo build tests were excluded locally under the resource restriction and left unchanged in the normal CI policy suite. - Separate e2e TypeScript checking exposed pre-existing errors because the normal web typecheck includes `src` only. Deferred readiness files were checked separately before deferral and are not included in this PR. Their stash/patch and the unpublished instrumentation commit remain local for later work. - First-push merge-order result: `Do: Stay as you are: no open pull request conflicts with it in code.` - Independent review at `dd264343c`: FAIL, one P2 pending-CLI worker-exit ordering finding; fixed in `d8446be62`; regression cleanup follow-up fixed in `fa329a2b7`, independent static review PASS on exact head `fa329a2b7a681c264bebb484e147309730c7f921`, both P2 findings resolved. The independent reviewer ran no runtime tests; final required CI passed on that same head. Run artifacts remain local under `agents/runs/ci-fixture-readiness/` and are never committed. </details>
yansfil
added a commit
that referenced
this pull request
Oct 30, 2026
… every state (#1907) Related: PRD session-docs-and-assistant (Desk 1차), node `ui` of mission-20. #1905 (shared parts) is merged; this PR's base is main. ## Summary Desk 1차를 화면에 연결하기 전에 사람이 먼저 리뷰할 수 있도록, 운영자가 확정한 최종 디자인(proposal-v2의 장면 1, 2, 2-1, 3-7)을 `web/src/components/desk`의 실제 부품으로 그리고 갤러리 `/gallery?scene=desk&state=<장면>`에 꾸민 데이터로 올렸어요. 부품은 값을 props로만 받고 store, WebSocket, hided를 부르지 않아요. 앱의 진짜 화면은 바뀌지 않아요. 세션은 어디서나 사이드바와 같은 상태 표시, 에이전트 로고, 제목으로 시작해요. 카드는 바탕 없는 두 줄이고 할 일은 줄 끝의 글자(`답하기 ›`)예요. 내 말만 말풍선이고, 스레드의 작업은 턴마다 한 줄로 접히고, 질문은 맨 아래 한 곳에만 있어요. 회색 버튼은 Desk 승인 카드의 `거절`과 `한 번 허용`뿐이고, 지난번에 만든 `soft` 버튼 변형은 지웠어요. 값의 이름은 desk wire(feat/desk-host 057da08)의 `desk`·`desk_live` 모양 그대로예요.  2 대화(밝음): 접힌 과정 줄 `생각 8초 · 세션 4개 읽음 · 스레드 3개 띄움`, 작업 중·물어봄·끝남 카드, 기존 세션에 편지로 맡긴 한 줄, 글자뿐인 `생각 중 · 3초`.  4 스레드 하나(어두움): pane 머리와 같은 두 줄 머리(계획 칩, 모델), 접힌 턴 `작업 · 파일 3 · 명령 4 ›`, 펼친 진행 중 턴, 편지·새 스레드 줄. ## Review - **판단해 주세요**: 장면마다 proposal-v2와 맞는지. 특히 2-1(현황 묻기)에서 Desk 답 속 세션 이름은 칩이 아니라 글이에요. reply 항목에 mention이 없어서 답의 Markdown 안에는 칩을 그릴 수 없어요. - **판단해 주세요**: 결과물 썸네일을 작은 고정 크기(새 토큰 `--size-desk-output-thumb` 88)로 바꿨어요. 핀 고정으로 레인이 넓어져도 커지지 않아요. - **판단해 주세요**: 덮는(핀 안 된) 레인은 채팅을 왼쪽으로 밀어요. 채팅 열에 레인 너비만큼 오른쪽 여백을 줘서 680 폭을 지키고, 방이 좁으면 채팅이 줄어요. - **조심해서 볼 파일**: `web/src/desk.ts` - 일 카드, reply, handed 편지, `desk_live`를 wire 이름으로 받아요(`mark`/`mark_read`, `sleeping`, ask `approval`·`blocked`, `failure`, 워커는 pane id, `thought_ms`·`steps`, `letter_kind`). wire와 다른 점 셋은 아래 Evidence에 적었어요. `threadTurns`가 스레드를 턴으로 나누고 작업을 센 수와 접어도 보일 부품을 골라요. - **조심해서 볼 파일**: `web/src/components/ui/button.tsx`, `docs/DESIGN_GUIDE.md` - `soft` 변형을 지웠어요. Desk 줄은 이제 "승인 카드의 두 답과 보내기만 `secondary`, 나머지 행동은 글자, Desk에는 `default` 버튼 없음"이라고 적혀 있어요. - **조심해서 볼 파일**: `web/src/PanePlanChip.tsx` - 칩의 모양(`planChipLook`)과 안쪽(`PlanChipFace`)을 꺼내 Desk 카드와 스레드 머리가 같은 계획 칩을 그려요. pane 머리의 DOM은 그대로예요. - **조심해서 볼 파일**: `web/src/MarkdownText.tsx` - `size="chat"`이 Desk 대화 글자(text-subhead, 줄 높이 1.625)를 줘요. 기본값은 그대로예요. - **원칙**: design #5 사이드바의 StatusMark, PlanChipFace, MissionChipView, DeviceChip, PrMark, SessionRow를 그대로 썼어요. #8 상자는 카드와 승인 카드에만 있고, 상태가 안 바뀌는 줄(맡김, 에이전트 바꿈, 막힘)은 상자 없는 한 줄이에요. engineering #1 안 쓰게 된 i18n 키 12개와 `soft`, 질문 칸 `row-sizes` 장면, 옛 `DeskHandedCard`를 같이 지웠어요. - **다른 화면**: 다른 화면의 라임 버튼을 secondary로 바꾸는 일은 승인된 후속 PR이고, 이 PR에서는 하지 않았어요. ## Evidence - **확인한 것**: 18개 장면 × 밝음·어두움 36장을 1440×880 Chromium으로 찍어 proposal-v2 장면과 나란히 대조했고 페이지 오류는 0이에요. - **확인한 것**: `node scripts/check-design-contract.mjs` 통과, `bash scripts/verify-web.sh` 통과(아래 기록). - **확인한 것**: `web/src/desk.test.ts` 12개, 새로 턴 나누기(메시지마다 새 턴, 답 앞 작업의 파일·명령 수, 접어도 보일 부품, 계획 변경은 빠짐). - **wire와 다른 점**: handed 항목에 상태 표시와 에이전트가 없어서, 화면이 pane id로 세션 칩을 찾아야 해요(`DeskChat`의 `sessions`). 못 찾으면 이름만 보여요. - **wire와 다른 점**: `mentions.sessions[].mark`가 `string`이고 `DeskMention`에 상태 표시와 에이전트가 없어요. 화면은 `RowMark`로 받고, 대화 속 세션 칩은 둘이 있을 때만 표시를 그려요. - **wire와 다른 점**: `mission.status`는 `string`, `nodes`가 있어요. 화면은 정해진 상태 다섯 개로 받고 노드 칸은 그리지 않아요(D-43). `failure` 코드는 받기만 하고 아직 문구가 없어요. 실패 줄은 `reason`으로 써요. - **확인하지 못한 것**: 실제 앱 연결, 키 동작(⌘J, Esc, ↵/⇥, 드래그), 긴 대화 스크롤과 큰 글자, 좁은 창, 스레드의 모델·편지 방향·명령 실행 시간(threads 노드의 `session_thread` 몫). 턴 시간(`작업 1분 12초`)은 데이터가 없어서 그리지 않았어요. - **확인하지 못한 것**: zh-CN·ja 글은 제가 옮긴 초안이라 사람 확인이 필요해요. <details><summary>추가 증거</summary>  2-1 현황 묻기  3 카드 상태 모음: 상태마다 오른쪽 칩 하나, 맡김 한 줄, 바꿈 줄, 막힘, 승인 카드와 답한 뒤 한 줄  5 스레드가 물을 때  6 Threads 목록  7 결과물이 스레드 옆에: 보기 칸 미리보기 탭, 고른 썸네일 테두리, ▣의 안 본 점  스레드 속 Hide 부품: 계획, 새 스레드, 보냄·받음 편지, 연 페이지, 미션 칩, PR  채팅 상태: 답한 승인 한 줄, 바꿈 줄, 알림 줄, 중단  스레드 상태 </details> <details><summary>Verification record</summary> - base main 50bc131 (merged into the branch, no rebase), head 70b74c4 - `bash scripts/verify-web.sh` exit 0 (pnpm 10.14.0, Node 24.22.1): web 268 files, 2349 passed, 3 skipped; desktop 28 files, 302 passed, 4 skipped; typecheck, lint, build - `node scripts/check-design-contract.mjs`: web token contract ok, contrast ok, agent logos ok, ui parts none above baseline - gallery capture: 18 states x Light/Dark at 1440x880 (s3 and chat-states at 1440x2300), 0 page errors </details>
This was referenced Nov 9, 2026
HyunjunJeon
referenced
this pull request
in HyunjunJeon/hide
Nov 9, 2026
…one that never lands (with-hide#2159) Closes with-hide/hide-private#587 Related: with-hide#2114, with-hide#2144 ## Summary 막 시작한 에이전트에 Hide가 친 브리프가 입력창에 닿지 않으면, 누가 그 화면에 답하기 전에는 다시 치지 않았고, 끝까지 안 닿아도 실패로 알리지 않았습니다. 이제 세 경우를 처리합니다. - 입력창이 비어 있고 그 뒤로 에이전트 상태가 전혀 움직이지 않았으면(시작 중에 글을 떨어뜨린 경우), 키를 읽는 프로그램에 다시 칩니다. - 입력창에 에이전트 자신의 붙여넣기 표시가 브리프와 같은 줄 수로 남아 있으면(예: OpenCode `[Pasted ~18 lines]`), 빠진 Enter만 누릅니다. - 세 번 다 받지 않으면 부모에게 실패와 이유를 알리고, 한 번 `input.undelivered` 로그를 남깁니다. 알림 첫 두 줄: ``` worker did not get its brief: Hide tried 3 times and the agent recorded none of them, so Hide does not type it again. Read its screen with `hide pane read <pane>`; `hide agent show` names what it waits on. Once its screen shows its input box, type it there yourself with `hide pane send <pane> <text> --enter`, or stop the agent and start the work again. ``` (한 번의 시도는 다시 치기이거나, 입력창에 남은 브리프에 누른 Enter입니다.) ## Review - **판단해 주세요**: "움직이지 않음"은 기존 상태만 봅니다(Herdr 상태와 core 턴의 마지막 변경 시각, 마지막 working 시작 시각을 `typed_at`과 비교). 그 사이 상태가 바뀌었는데 아무도 답하지 않았으면 예전처럼 기다립니다(`moved_unanswered`). - **판단해 주세요**: omp는 붙여넣기 표시(`📄 #1`)에 줄 수가 없어 표시를 선언하지 않았습니다. 붙여넣기를 글 그대로 보여 주는 에이전트(Codex CLI)는 필요 없습니다. - **조심해서 볼 파일**: `herdr-core/src/delivery/typed.rs` - `retype_due`/`unmoved_since_typing`. 받은 글을 두 번 넣지 않는 조건이 여기 있습니다(working을 읽었거나 상태가 움직이면 다시 치지 않음, 기록 출처가 없는 에이전트는 예전처럼 다시 치지 않음). - **조심해서 볼 파일**: `hide-agent-adapter/src/composer.rs` - `Composer::holds`가 붙여넣기 표시를 읽습니다. 입력창 영역에 그 표시 한 줄만 있고 줄 수가 맞을 때만 참입니다. - **조심해서 볼 파일**: `herdr-core/src/runtime/typed_input.rs` - runtime mutex 안에서 실패 판단과 로그 한 번(`plans.input_undelivered`, 열린 입력 수로 상한). I/O 없음. - 범위: `agents.rs`의 `Live::started`는 건드리지 않았습니다. 새 시계 없음. 작업 첫 프롬프트(`type_first_prompt`)와 편지 알림 벨은 그대로입니다(편지는 자기 마감 상태가 실패를 알립니다). ## Evidence - **확인한 것**: Windows fake journey 41951563729의 OpenCode spawn-48이 실제 사례입니다. 화면은 `[Pasted ~18 lines]`, 로그에 `input.retype_held composer_not_empty`가 두 번 찍혔습니다. 그 화면 캡처를 픽스처로 넣었고 새 판단은 Enter를 누릅니다. - **확인한 것**: doorbell 테스트 `a_brief_a_starting_agent_dropped_is_typed_again_and_one_it_holds_as_a_paste_gets_its_enter`(가짜 엔진, 실제 ledger store)에서 빈 입력창(Codex CLI)은 `prompt_agent` 1번으로 다시 치고, 붙여넣기 표시(Claude Code)는 `send_keys` Enter 1번만 누릅니다(타이핑 0번). 고치기 전 조건으로 되돌리면 `Err("moved_unanswered")`로 실패합니다. - **확인한 것**: 상태가 움직인 경우(답 없으면 안 침, 답하면 침)와 working을 읽은 경우(안 침)는 runtime 테스트로, 세 번 다 쓴 경우의 실패 알림 문구와 `input.undelivered` 1번은 `a_brief_whose_typings_are_spent_tells_its_parent_it_failed_and_logs_it_once`로 확인했습니다. 붙여넣기 표시는 다섯 에이전트 캡처로 맞는 줄 수만 참, 다른 줄 수는 거짓입니다. - **확인한 것**: macOS에서 `cargo test -p herdr-core -p hide-agent-adapter` 전부 통과(herdr-core 3932, adapter 8 + 41), `clippy -D warnings`, `fmt-check`, attribution과 workstation identity 검사 통과. - **확인하지 못한 것**: 격리 후보로 실제 시작 중 드롭을 재현하지 않았습니다. 확인은 CI journey 산출물과 단위/doorbell 테스트까지입니다. Linux와 Windows 레인은 이 PR의 CI에 맡깁니다(변경은 플랫폼 공통 core와 adapter 코드). - **확인하지 못한 것**: 끝 줄바꿈이 있는 붙여넣기를 어떻게 세는지 Claude Code 쪽에서 실측하지 않았습니다(캡처는 끝 줄바꿈 없는 12줄). 틀리면 표시가 맞지 않아 예전처럼 `composer_not_empty`로 기다릴 뿐 잘못 치지는 않습니다. - **확인하지 못한 것**: 로컬 `verify-cargo.sh test`가 워크스페이스 전체를 돌릴 때 hide-holder 테스트가 실패했습니다. test xterm이 설치되지 않은 환경 문제이고 이 PR은 그 crate를 건드리지 않습니다. <details><summary>Verification record</summary> - base: main `9fd114863`, head: `c427f0b52` - 재현 근거: run 41951563729 fake windows `hided.log` spawn-48 / pane `hD:p2`; run 42076471627 agy spawn-84는 외부 편집기가 글을 받은 경우라 범위 밖. </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.
What changed, in one paragraph a new contributor can follow
Pull requests were not checked by anything: the only workflow built a release on a tag push and ran no tests, and seven
scripts/check-*.shgates existed that no automation ran. This adds.github/workflows/pr.yml, which runs the Rust suite, the Swift suite, and every repository invariant on each pull request and push tomain, and folds them into oneverifycheck for branch protection to require. It also adds the files a public repository is expected to carry: CONTRIBUTING with a gate table, SECURITY pointing at private vulnerability reporting, a Contributor Covenant 2.1 code of conduct, a pull request template with this codebase's five review questions, issue templates, CODEOWNERS, and dependabot with a seven-day cooldown.Review boundary
#[cfg(test)], because the test fixtures forkgitin a temp directory with no mutex in scope and the gate had been red onmainbecause of them.scriptslane downloads the Herdr binary named inherdr-bundle.json, verifies its digest, and runscheck-herdr-contract.sh --schema-onlyagainst it. The pin is now a live gate rather than a manifest nobody reads in CI.verify(all(.result == "success")), so a brokenneedsgraph cannot pass silently. The identity gate prints every offending line.Evidence
verifyjq expression tested against a skipped lane;swift testandcargo testgreen locally on this tree.Swatinem/rust-cacheandactions/cachesteps on a first run (cold),setup-swift6.0.3 resolving onmacos-15as it does inrelease.yml, and the Herdr download from GitHub releases on a runner.macos/scripts/check_workbench_*.shread a built dev app bundle and stay local; the fullcheck-herdr-contract.shneeds a running Herdr server and stays local too. Both are named in CONTRIBUTING.Screenshots
N/A - no visual surface changed.
AI tooling
The workflow, scripts, and documents were drafted with AI tooling; every gate was run by hand and the gate table in CONTRIBUTING was checked against each script's actual behavior.
Human review focus
verify. That becomes true only afterenforce_adminsis set onmain; this PR is the check it will require.