Repository navigation
Clean up Settings: six tabs, seven agents, a Hide AI tab and Reopen for unheard panes - #668
Merged
Merged
Conversation
The three agents were monograms while their brand terms were unread. The marks now ship as their vendors published them, each listed in the logo manifest with its source, terms, modification and retrieval date: - Gemini CLI: the official repository icon, a PNG because no SVG is published; agentLogos.ts globs PNG beside SVG and the logo check accepts either name, so no agent is special-cased. - Grok: Grok_Logomark_Dark.svg from xAI's brand archive, byte for byte. - Pi: the press kit primary logo rather than its badge. The badge recolours itself near white under prefers-color-scheme: dark, which an <img> takes from the app's dark theme, so it vanished on the white logo plate. The Onboarding screen sheet reads its marks from the manifest instead of a copy of the list, and the bundled notice covers every agent mark.
hide_platform::host::login_shell_path runs $SHELL -ilc with the login variables and the given home, reads the PATH it prints between two marks past anything the startup files print, and ends the shell and its tree at the deadline or on stop. Windows says Unsupported. login_path's comment no longer claims to be the login shell's PATH: it is the process's own.
An agent is installed when one of its programs is found on the login shell's PATH, the daemon's own PATH or the usual install folders; a folder the agent creates no longer counts (~/.cursor without cursor-agent, ~/.pi/agent without pi). home_markers and AgentAdapter::detected/executable are gone. The nine adapters found by folder alone now name their program, confirmed against each vendor's install script and docs: copilot, amp, droid, goose, kilo, pi, grok, kimi, vibe. The kit's search asks the login shell (cached until a startup file changes, retried a minute after a failure, logged as kit.login_shell_unread), so CLIs whose installers add their own folder in ~/.zshrc (~/.grok/bin, ~/.kilo/bin, ~/.opencode/bin, ~/.kimi-code/bin, ~/.pi/agent/bin) are found from a Dock launch and on an SSH device helper. Only the kit asks; cli_path keeps its shell-free search for the hook diagnosis, Memory and Codex CLI per pane. An agent that is on and whose program is gone keeps its record, stub and hook, reads Not on this machine with the reason, and keeps its switch to take them out.
The Settings line for agents with no switch read "Not set up on this machine"; it now reads "Not installed on this machine" under the key settings.agentsNotInstalled, matching the onboarding tile and the other languages. Comments that defined a tile's or row's switch by "set up" now say installed.
When the kit's owner goes away (Hide quitting, a device connection closing) the shell read is cut short on purpose; that is not a failure to log or a PATH to remember for the next pass.
An agent now counts as installed only when its program is found, so the fixture home carries `claude` and `gemini` in ~/.local/bin.
Korean and Chinese already describe the agents Hide equips as the ones installed on a machine; the English and Japanese note now say the same.
An agent counts as installed only when its program is found, so the smoke's private home now carries stand-in `claude` and `codex` programs in ~/.local/bin, which the kit searches on Linux and Windows. Without them the first-run answer installs the hooks but is not recorded, and the upgraded package's pass reads both hooks off.
The sheet keeps the tab strip and the gate; General, Appearance, Agents, Issues, Devices, Performance and Shortcuts, the device kit rows and the add form, and the shared pending-edit reader are separate files. No behavior change.
…eadline and text-CLI backends Providers are registry entries (Claude Code, Codex CLI, Gemini CLI, Grok, OpenCode, Pi, Cursor). ai.json gains enabled and an ordered fallback list; the router asks only the chosen provider and its fallbacks, once each, within one overall deadline, and reports Disabled, per-provider status and the last provider that answered. One-shot CLIs share a runner with capped output, private prompt files and owned children. Gemini CLI, Grok and Pi answer in text; OpenCode and Cursor stay unsupported until a read-only run can be guaranteed. Claude Code's model list is read from the CLI instead of a hardcoded list.
The chord chip is the control: pressing it waits for a chord that applies at once, Escape cancels the recording without closing the sheet, and the restore and clear controls show on hover or keyboard focus of the row. The eight area commands fold into one line that counts the unset ones, the numbered chords read as Fixed rows with a hold-to-see subtitle, and the macOS-app-only Toggle Conversation row and its explanations are gone. The recent tab and recent panel commands are named Next recent tab and Next panel (all projects). Settings rows gain a native-details Disclosure.
The core builds a backend for every registered provider, reads models through AiSettings, and applies a provider choice through set_provider, so the chosen provider alone is asked until a fallback is added. Tests follow the registry ids and the new default provider.
The kit lists exactly Claude Code, Codex CLI, Gemini CLI, Grok, OpenCode, Pi and Cursor, in that order. What an earlier build put down for GitHub Copilot CLI, Amp, Factory Droid, Kiro, Qwen Code, Goose, Cline, Kilo Code, Crush, Junie, Augment, Kimi Code and Mistral Vibe is taken out once, by the kit record's ownership, and only where it carries Hide's own marker. A file the operator wrote or edited stays, a file that does not parse is left and retried, and a second pass reads and writes nothing. The kit no longer turns the shared Codex CLI daemon off on its own. The `codex_per_pane` part, its switch and the `kit_component_set` event are gone, and a record that still names the part loads and drops it. `hide_agent_hooks::codex_daemon` stays for a turn-off the operator asks for later, and every start Hide makes still passes `--no-daemon`. The capability that flag needs is `KitReport.codex_daemon` (`KitSnapshot.codex_daemon`). The adapter's documented minimum version and the version probe behind it served only Kiro and are removed. Retired guidance hook layouts stay in `hide-agent-hooks` as remove-only, and a leftover entry runs nothing. Helper protocol 18. The agent logo manifest drops the marks of the retired agents.
…r CLI Herdr learns an agent's session id from the hook script or plugin that `herdr integration install <target>` puts into the agent's configuration, and lineage, the mailbox identity, labels and sleep all read that session id. Each of the six agents the pinned Herdr has a target for gets it as a piece of its row (`AgentReport.herdr`, record code `herdr:<agent>`), through the bundled Herdr on this Mac and the device's own Herdr on a device. Gemini CLI has no target, which is not a failure. Hide removes only what the record says it installed: an integration that was already in place is the operator's and stays, on and off and when the machine leaves Hide. A failed install fails that agent's row alone, and the next pass converges. Every call is one owned child with a deadline on the kit worker or the helper, never under the runtime lock.
Grok and OpenCode can run the hooks in `~/.claude/settings.json`, and Hide writes no hook of its own for either. Claude Code's hook still counts, reads Memory and prints guidance there, but it no longer takes or confirms a letter, which is addressed to the pane's own session. The Cursor guard becomes `ForeignOrigin`, found by the variables each agent documents for the processes it starts. The built helper is run beside a stand-in `hide` that answers `inbox` with one letter, outside and inside each agent.
The status carried the received protocol and version only when the revision was refused, so a healthy Herdr read as unavailable in Settings details. The snapshot's own version now rides the session payload, and a connected status names it with the revision that matched.
…rtcuts The Appearance, Issues and Performance tabs are gone. General holds the language, theme, accent and interface text, the GitHub connection with a Check again action, and an About group whose Details fold carries the daemon, Herdr runtime, environment and recent diagnostics. Sleep after and the issue link switch move into Agents as two reusable groups, and Hide AI gets its own tab with the agent summary and worktree name switches under Features. The "kept by hided" sentence and the Authentication paragraph are removed, the sheet header names a device only while a remote one is selected, the Herdr protocol shows one real number while it matches, and the leftover per-pane shared-server kit switch is deleted from the web.
… answers The Background AI snapshot now carries what the Hide AI tab shows: whether Hide AI is on, the chosen agent (absent until one is chosen), one row per registered agent with installed, selectable, retry time and model list facts, the ordered fallback list and the refusal of the chosen agent with the listed agent that answers instead. Reasons are codes, never prose. ai_settings events set the switch, Runs on, a model for Runs on or a listed agent, and add or remove a fallback agent; an agent that cannot be chosen is refused where it is chosen. With Hide AI off, or no agent chosen, labels, worktree names and Memory analysis make no model call and resume when it is on. While nobody has chosen, the agents switched on are asked for their sign-in and the first signed-in one in the fixed order is chosen with its default model; a stored choice is never replaced.
… while Hide AI is off The disclosure now says analysis may go to the agent Hide AI runs on or one added under fallback, so a project that accepted the earlier wording is disabled once on opening the store and must accept again; its stored Memory, search and Sessions stay. A request refused because Hide AI is off is a wait, not a parked failure. docs/AI_PROVIDERS.md describes the published state, the first-run choice and what each feature does with Hide AI off.
… the six Settings tabs The project row's context menu gets an Issue source submenu (Automatic, GitHub, Local) with the stored choice checked, replacing the Settings page that listed every project. Settings > General's new e2e covers the six tabs, the Details disclosure and the real Herdr version and protocol.
…ck General on a narrow window Hide AI asks no model until an agent is chosen, so a fixture home now stores the `claude` fixture shim as chosen; the shim answers the model-list request Hide AI makes. The agent summary switch is read in Hide AI, and General is checked in Korean and English, light and dark, for sideways overflow.
…I's agent on the first-run screen Use Hide AI switch that dims the rest while off, a Runs on row that lists only agents the core would accept with the sign-in state beside it, a model menu with CLI default and a fixed-list marker, an ordered fallback list with Add agent and the agents Hide AI cannot use yet, the one-line stand-in notice, and the Features group. The first-run screen shows which agent Hide AI will use under Apply.
…s for the Partial popover Each Claude Code and Codex CLI pane carries whether Hide hears its session and why not (the Codex CLI's shared server, started before the hook, or a setup that needs Settings), and each machine's agent row counts the connected sessions and lists the others while they are open. The per-session hook warning list is replaced by those counts, so a closed session leaves the number. The kit's adapter table gains one feature table that the Partial popover reads: hook features come from the adapter's hook, the integration from its Herdr target, and sleep, fork, start from Hide and conversation titles from its session reader, with a core test holding each flag to the gate that decides it.
An e2e on the isolated daemon for the Use Hide AI switch, Runs on, the Add agent menu with stand-in programs, the fallback order, remove and the narrow window in both languages; a component test for who answers, the paused and sign-in lines, the fixed and failed model lists; the first-run e2e checks the line. The UI, provider and architecture guides now name the Hide AI tab and its first-run line.
…ly why a refusal left it alone A not connected pane's chip gains a Reopen event. The session ends the way agent sleep ends it and starts again in the same pane with its own resume arguments, on its own server when it is a Codex CLI session. Everything knowable first (an unread Codex CLI, a conversation without a session id, a folder that is gone, an agent that is working) is refused before the agent is touched, and the pane carries a code for the popover's one line. A second press while one runs starts nothing.
…d the Codex CLI app-server included A CLI found on the login shell folders was started with the daemon PATH, so a script CLI whose interpreter only the shell reaches was reported ready and then failed. One Program type resolves a CLI and carries the search it was found on; the runner and the Codex CLI session apply it. A backend config can name its own search path, which the new tests use with a stand-in interpreter and no login shell. Tests that need a missing CLI now name an absolute path, so none of them reads the real login shell.
… so a switched-on agent keeps its row when its program goes away The web grouped an agent under Installed by a `chosen` field no producer sent, so an agent the operator switched on and whose program was then removed lost its switch. The kit report now carries `chosen` (the record holds a choice for the agent, absent in a report from a build that predates it), the core publishes it in the kit snapshot, and the web field is required.
…nder way before it answers request_kit_check dropped the changed flag of set_kit_checking, so dispatch_json returned false and the shell never pulled the snapshot that carries checking: true. The runtime test now asserts the event is announced and the snapshot carries the flip, using wait_for instead of a hand-rolled sleep poll, and the Agents e2e counts the kit_check frame the click sends instead of asserting the idle state that exists before it.
…ot start it again The failure was published only as last_error, which nothing in the shell read and which the core clears at its next event, so the operator saw a bare shell and no reason. The shell now raises pane_reopen failures as a notice that stays until dismissed, UI_BEHAVIOR records why this one failure is a notice, and the pane_reopen header comment no longer claims every refusal leaves the pane as it was.
…le after the core clears last_error
… with The lookup already skipped them; the value handed to the child kept them, so an empty segment searched the child's working directory. Also say in the architecture guide that an agent whose program is gone keeps its switch only when the operator chose it.
… is asserted quiet in an environment with none The kit's program search says in the log when no login shell is named, and the sealed suite's environment names none.
…annot share one A name made from the pid and the clock collided when two tests started in the same microsecond, and one test then ran the other's stand-in script or lost its own record.
…hat Appearance is not a tab
…irement tests use Taking a retired agent's old entry out does not depend on the system's hook shell, so the test that lays that entry down must not either.
The desktop app under test has no kit and no signed-in agent for the first-run rule to pick, so labels never came; a saved choice is kept (B48), as a real operator's is.
yansfil
added a commit
that referenced
this pull request
Oct 6, 2026
…view them (#670) Related: PRD `agents/prd/codex-hook-trust/prd.md` ## Summary - Codex asked "Hooks need review" for Hide's own hooks after every install, update or helper move, though installing Hide is the operator's approval of them. - After the kit finds the Codex hook part in place (launch, device connect, Reinstall), Hide has Codex record trust for its own entries through `codex app-server` (`hooks/list`, then one `config/batchWrite`); Hide computes no hash and writes no `config.toml`. - A pass trusts only an entry that is untrusted or modified and exactly Hide's: user `hooks.json` of this home, same event, same command, same matcher as the install writes; a foreign hook, a look-alike carrying Hide's marker, a project or managed hook is left for the review screen. - A trust Codex did not keep, a Codex that answers and then fails, hangs or reports Hide's file unusable shows the Codex hook part as Failed with a one-line reason; a Codex without hook trust, or one that ends before the handshake (no app-server), changes nothing. - No UI surface is new, so there are no screenshots. ## Review - **Depends on #668, already merged into main as eed3f2c.** - **판단해 주세요**: the agent chose these and the operator has not confirmed them: D-02 exact-command match (also requires `handlerType == command`, canonical `sourcePath`, key prefix `<sourcePath>:`, and the same matcher as install, null today); D-03 stacking order with the hook install; D-04..D-10 and D-12 (15 s overall, 5 s per request, 1 MiB per line, 4 MiB total, 16 server requests; cwd is the account home; process-local failure memo); D-14 delegating the merge of config to Codex. - **판단해 주세요**: the PRD's B1 ("no review screen at all") does not hold where the kit also installs Herdr's integration hook for Codex; that hook is another tool's and stays untrusted, so Codex still shows a review of 1 hook, and Hide's own five are listed `Trusted`. Docs say so. Should Hide ever vouch for Herdr's hook? - **판단해 주세요**: a trust failure on a connected device reaches the remote pane chip as "hook is not installed" through the existing Failed mapping in `herdr-core/src/agent_hooks.rs`; left as is. - **조심해서 볼 파일**: `hide-agent-hooks/src/codex_trust.rs` - `select_targets` decides what Hide may trust (security); the owned child, its bounded shutdown and caps. - **조심해서 볼 파일**: `hide-agent-hooks/src/install.rs` - `codex_command` and `hook_matcher` are the one source of what install writes and what trust expects. - **조심해서 볼 파일**: `hide-kit/src/lib.rs`, `hide-kit/src/codex_trust.rs` - the apply loop gate and the process-local failure memo that `status` (read-only, spawns nothing) repeats. - **비용 검토**: one short `codex app-server` per pass that finds a Hide entry, only on the kit worker or device helper, never under `Mutex<Runtime>`; a pass with nothing to record starts one process and writes nothing; `status` starts none; the child is killed as a tree and reaped within about 2 s of ending. - **질문**: is the process-local failure memo acceptable, or should the reason survive a restart? It survives `status` and device connections, not a new process. ## Evidence - **확인한 것**: `sasu implement verify` on the head, S1 `verify-cargo.sh test` and S2 `lint`, both PASS; new tests: 17 integration (a python stand-in `codex`: ok, repeat writes nothing, unknown method, hang, early exit, silent no-op write, refused write, stop, flood, over-long line, unparsable hooks file, a process outside the child's tree holding its pipe) and 7 kit tests (fresh, outdated and shifted-index reinstall, failure survives `status`, next success clears it, agent off spawns nothing, no Codex). - **확인한 것**: live on codex-cli 0.160.0, private Herdr 0.9.1 and a private HOME: a first pass wrote five `trusted_hash` entries and `codex --no-daemon` opened straight to the prompt with Hide's SessionStart context delivered; a foreign hook and a look-alike over `/tmp/impostor` were not trusted and Codex still reviewed them; an entry the operator switched off stayed `enabled = false` and became trusted; three further passes left `config.toml` byte for byte unchanged; a Codex that never answers ended in Failed with the one-line reason, the cause logged and no process left; the next pass recovered. - **확인한 것**: real Codex 0.160.0 answers an unknown method as `-32600 "unknown variant"`, an unparsable `hooks.json` as a warning with an empty list, and a broken `config.toml` as an `errors` entry; the check handles all three and the stand-in answers those shapes. - **확인하지 못한 것**: Windows; a real connected device (the kit runs as a device helper does, against a private HOME); an older Codex without `hooks/list`; a real hook version bump (a helper path change stood in); a Codex other than 0.160.0 (an update to 0.160.1 was offered and skipped); the operator's own `~/.codex`, servers and `/Applications/hide.app`, which were never touched. - **확인하지 못한 것**: Codex's own words for a failure go to stderr, which a detached daemon loses; only the cause class reaches the diagnostic log (through `apply.completed`). <details><summary>Verification record</summary> - PRD: `agents/prd/codex-hook-trust/prd.md` (sha256 8d706fb0c4b1f86ff87075c5ee3b2d5ca9c865a21e99c11e1e082db7d6017d8d) - Base acf7edf → head b9b6817, verified 2026-10-06T22:51:06.438Z: PASS - Verification report: `agents/runs/codex-hook-trust/verification-report.json` and `agents/runs/codex-hook-trust/verification-report.md`; source fingerprint 491fa4991de0ea6d4a23e6e8b0dee31addad61332cf303361652a12bfcf3ddc5 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: Fidelity, Code and Security ran at 42f80ee (Security read the D-02 target rule first) and again at 28f8ee0; a closure review ran on aed7b3a with nothing blocking. Fixed: Codex's real unknown-method answer (-32600), an unbounded end of the app-server, the `errors` guard that never fired on real Codex (now also the unparsable-file warning), key prefix and server-request caps, Herdr's hook named in the docs, one unobserved docs claim dropped (1c846bc). Follow-ups left: a shared stdio JSON-RPC session for hide-ai and this module; narrowing `errors` to this home or file if a field case needs it; `OwnedChild`'s own Drop can wait after a SIGKILL not seen to land; `expectedVersion` on the write; a detail field on the part report so Codex's words reach the diagnostic log. From the closure review of the handshake change: log one structured line when a Codex ends before the handshake (it now shows nothing and leaves no trace), assert the child is gone in that test, and a `hang_early` fixture mode to pin a hang before `initialize` as TimedOut. Later commits: a docs wording fix (1c846bc) and a neutral account name in unit-test paths (8891579), after CI policy checks refused a home-directory path. CI then showed the package smoke and two e2e specs run a Codex stand-in that exits at once; a Codex that ends before it answers the handshake is now Unsupported (no app-server) and shows nothing, while one that answers and then ends, hangs or refuses stays Failed; pinned by `a_codex_that_ends_before_the_handshake_has_no_app_server_and_says_nothing` and a kit case, and the fixtures were left as they were. - Evidence: 12 registered (2 file, 10 log); paths are local to the run directory - agents/runs/codex-hook-trust/evidence/live2/EVIDENCE.md - agents/runs/codex-hook-trust/evidence/live2/b1-tokens.txt - agents/runs/codex-hook-trust/evidence/live2/b1-pane.txt - agents/runs/codex-hook-trust/evidence/live2/b45-table.txt - agents/runs/codex-hook-trust/evidence/live2/b45-pane.txt - agents/runs/codex-hook-trust/evidence/live2/b6-after.txt - agents/runs/codex-hook-trust/evidence/live2/b7.txt - agents/runs/codex-hook-trust/evidence/live2/b11.txt - agents/runs/codex-hook-trust/evidence/live/b4-review-sessionstart.txt - agents/runs/codex-hook-trust/evidence/live/daemon-note-pane.txt - agents/runs/codex-hook-trust/evidence/live/daemon-note-control-pane.txt - agents/runs/codex-hook-trust/evidence/live/EVIDENCE.md - Changed paths: 22 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
… version probe (#685) Related: #668 ## Summary #668(Settings 정리) 머지 직후 그 작업 브랜치에서 만들어졌지만 올라가지 못한 커밋 두 개를 main 위로 옮겼습니다. - 로그인 셸 PATH 캐시가 모든 셸·홈 쌍을 잠금 하나로 묶고 있어서, 한 홈의 느린 셸 질의가 다른 홈의 질의까지 세워 두었습니다. 이제 쌍마다 잠금이 따로 있어, 같은 쌍은 여전히 셸 하나를 같이 기다리고 다른 홈은 기다리지 않습니다. 부하가 걸리면 `hided::opener_lifecycle` 테스트가 각자의 홈에서 서로의 셸 뒤에 줄을 서다 시간 초과로 실패했는데, 그 원인으로 보이는 대기를 없앴습니다. - 아무도 부르지 않는 kit 버전 프로브(`hide_agent_hooks::program_version`)를 지웠고, `docs/ARCHITECTURE.md`의 helper protocol 번호를 실제 값 20으로 고쳤습니다. ## Review - **조심해서 볼 파일**: `hide-platform/src/programs.rs` - 잠금 구조가 바뀝니다. 바깥 목록 잠금은 슬롯을 찾거나 만드는 동안만 잡고, 셸 질의는 그 쌍의 슬롯 잠금 안에서만 기다립니다. 상한 8쌍과 오래된 것부터 버리는 규칙은 그대로이고, 버려진 슬롯을 쥔 호출자는 자기 질의를 끝까지 마칩니다. ## Evidence - **확인한 것**: 새 테스트 `a_slow_ask_for_one_home_does_not_hold_another_home_behind_it`가 한 홈의 셸이 답하지 않는 동안 다른 홈이 답을 받는지 확인합니다. 기존 `callers_that_arrive_cold_together_start_one_shell`이 같은 쌍은 셸 하나만 띄우는지 계속 확인합니다. - **확인한 것**: 두 커밋이 처음 만들어진 브랜치(#668 head 위)에서 `scripts/verify-cargo.sh test`와 `lint` 전체가 통과했습니다. - **확인한 것**: main 위로 옮긴 뒤 `cargo fmt --check`, attribution 검사, `hide-platform`·`hide-agent-hooks`·`hide-kit`의 clippy `--all-targets -D warnings`가 통과했습니다. 지운 `program_version`을 부르는 곳은 main(#670의 `codex_trust` 포함)에 없습니다. - **확인한 것**: 같은 세 crate의 nextest 467개 중 464개가 통과했습니다. 실패한 3개는 load average 50에서 `launchctl`과 첫 실행이 시간 초과한 것이고(이 변경이 건드리지 않는 경로), 그 전 실행에서는 `codex_trust`의 `a_codex_that_does_not_answer_is_stopped_and_nothing_of_it_is_left`가 테스트 stand-in(`fake-codex.py`)이 자식 pid를 쓰기 전에 시간 초과로 실패했습니다. 이 4개를 따로 다시 돌리면 모두 통과합니다. - **확인하지 못한 것**: `opener_lifecycle` 부하 실패의 원인이 이 잠금이었는지는 추적하지 않았습니다. 대기를 없앤 것이지, 그 실패를 다시 재현해 사라진 것을 본 것은 아닙니다. - **확인하지 못한 것**: main 위 전체 Rust/웹/데스크톱 lane은 CI에 맡겼습니다.
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
Related: 선행 #668, #670 (둘 다 이미 main에 merge됨) ## Summary - 에이전트가 `herdr agent start`로 직접 띄운 자식은 부모 기록이 없어 관계도에 선이 없고 watch도 없어, 멈춰도 아무도 깨우지 않습니다. - Claude Code와 Codex CLI의 hook에 `PreToolUse`(Bash matcher)를 더해, 등록된 checkout의 Herdr pane에서 이런 호출을 실행 전에 거절합니다. - 거절 이유에 채워진 `hide agent spawn --parent here --name ... --kind ... --repo ... --branch ...` 명령을 담아, 에이전트가 한 번에 다시 시도합니다. - 대상은 `herdr agent start`, 그리고 첫 단어가 에이전트 종류인 `herdr pane run`/`send-text`뿐이고, 그 밖의 호출은 출력도 지연도 없이 그대로 실행됩니다. - Settings의 Partial 칩 목록에 `종`과 `herdr 직접 실행 차단` 항목이 에이전트별로 더해집니다(해당 없는 에이전트는 -). ``` Not run: this call starts an agent with herdr directly ... Start it through Hide instead: hide agent spawn --parent here --name set-g --intent <intent> --kind claude --repo /path/repo --branch topic ``` ## Review - **판단해 주세요**: 연쇄 호출(`cd x && herdr agent start ...`)은 호출 전체를 거절하고, 이유에 나머지 명령을 따로 실행하라고 적습니다. 열린 질문의 답입니다. - **판단해 주세요**: 에이전트가 정한 가정 중 운영자가 확인하지 않은 것: D-09(Gemini `BeforeAgent`)는 이 PR에 없고, D-10 `--branch`는 호출자의 현재 branch, D-12 원칙 intake는 gen-prd 절차의 가정입니다. - **판단해 주세요**: 범위 축소. Gemini CLI, Grok, Cursor는 이 머신에 없어 검증할 수 없으므로 가드와 `BeforeAgent`를 설치하지 않고 기능 목록에 -로 둡니다. D-06/B7(3개 에이전트), D-09/B8, B11(연결 기기)은 미납품 또는 미검증입니다. - **판단해 주세요**: Hide가 붙지 않은 Herdr의 pane도 cwd가 등록 checkout이면 같은 거절을 받고, 안내 명령은 그 pane을 부모로 잡지 못합니다. D-03 문자 그대로이며, 가르려면 hided bootstrap 응답에 바인딩을 실어야 합니다. - **판단해 주세요**: `--session`, `--machine`, 다른 `HERDR_SOCKET_PATH`/`HERDR_SESSION`(inline, `env`, `export`)을 지정한 호출은 거절하지 않습니다. 격리 검증용 Herdr가 그렇게 뜹니다. `source`로 설정하면 읽지 못해 거절됩니다. - **판단해 주세요**: 새 Mac의 Codex 첫 실행은 "Hooks need review"에 Herdr 통합 hook 하나만 보여 줍니다. Hide의 가드는 이미 Trusted이며, 이번에는 고치지 않습니다. - **조심해서 볼 파일**: `hide-agent-hooks/src/spawn_guard.rs` - 셸 렉서의 오탐은 평범한 호출을 거절하는 fail-closed이고, 미탐은 허용입니다. - **조심해서 볼 파일**: `hide-agent-hooks/src/bin/hide-agent-hooks.rs` - 모든 Bash 호출의 고빈도 경로이고, 어떤 실패도 exit 0과 무출력이어야 합니다. - **조심해서 볼 파일**: `hide-agent-hooks/src/install.rs`, `codex_trust.rs` - 운영자 소유 hook 파일 쓰기와 Codex 신뢰(matcher까지 일치해야 Trusted). - **조심해서 볼 파일**: `hide-kit/src/agents.rs`, `contracts/snapshot-wire-enums.json` - snapshot wire enum 순서와 기능 표. - **조심해서 볼 파일**: `hided/tests/opener_lifecycle.rs` - 이 PR의 범위 밖이지만 S1을 막아 포함한 테스트 완화(원인 증명이 아닌 완화). - **비용 검토**: 입력(Bash 호출)당 프로세스 시작 1회이고, `herdr`가 payload에 없으면 파싱도 spawn도 하지 않습니다. 상세와 수치는 `docs/PERFORMANCE_TESTING.md`에 있습니다. - **비용 검토**: `hide workspace bootstrap` 자식은 launch 때만 1개, 2.5초 상한, 출력 16 KiB 상한이며 모든 종료 경로에서 정리됩니다. 로그는 256 KiB와 이전본 1개로 상한이 있고, 락 안 작업과 알림 fan-out은 없습니다. ## Evidence - **확인한 것**: 전체 `cargo test --workspace` 통과(S1), clippy 포함 lint(S2) 통과, web typecheck/lint/test 1164개 통과, hide-agent-hooks의 단위 111개와 통합 테스트(stand-in `hide`로 등록/미등록/꺼짐/무응답/느림/타 에이전트 세션)를 확인했습니다. - **확인한 것**: 격리 Herdr 0.9.1과 실제 Claude Code 2.1.292, Codex CLI 0.160에서 `agent start`, 연쇄 `pane run`, `send-text` 거절, `hide agent spawn`으로 부모 선과 watch가 생기는 것, Codex가 `PreToolUse`(Bash)를 Trusted로 표시하는 것을 봤습니다. - **확인한 것**: 일반 Bash 호출은 두 TUI 모두 출력과 지연이 없고, 대몬이 꺼진 상태에서 호출은 그대로 실행됩니다(7~39 ms, exit 0). - **확인한 것**: hook 비용(릴리스, p50/p95, 부하 평균 약 4): 프로세스 시작만 2.8/4.3 ms, 일반 호출 Claude Code 5.7/7.2 ms, Codex 5.6/8.0 ms, 거절된 launch 약 10/12 ms. - **확인한 것**: 로그인 사본(Claude, Codex)을 격리 HOME에서만 썼고, 토큰이 갱신되지 않았음을 지문 비교로 확인한 뒤 `rm -P`로 지웠습니다. - **확인하지 못한 것**: Gemini CLI, Grok, Cursor(미설치, D-06/B7, D-09/B8 미납품), B11 연결 기기, Windows, Codex에서 대몬이 꺼진 상태의 라이브 관찰(통합 테스트만). - **확인하지 못한 것**: 라이브 검증은 첫 리뷰 때의 head에서 했고, 이후 렉서, 다른 Herdr 허용, 진단 로그 이동은 단위와 통합 테스트로만 확인했습니다. Partial 칩 화면은 직접 보지 않았습니다(두 에이전트는 모든 기능이 ✓라 칩에 나오지 않습니다). - **확인하지 못한 것**: 새 Codex 자식의 첫 spawn은 `native_identity_unavailable`로 한 번 실패할 수 있고 같은 intent 재시도로 수렴합니다(기존 동작). `opener_lifecycle` 실패는 재현하지 못해 완화로만 고쳤습니다. <details><summary>추가 증거</summary> - 거절 화면, 체인/`send-text` 거절, 부모 선과 watch, Codex 신뢰 목록, 지연 측정은 실행 기록에 보관되어 있고(저장소 밖), 이 PR에는 넣지 않았습니다. - `opener_lifecycle`: 새로 쓴 fake helper 스크립트의 첫 exec가 약 174 ms(두 번째는 8 ms)이고, 이것이 supervisor의 2초 acceptance 창 안에 들어가 부하가 큰 실행에서 pid 파일을 못 쓴 것으로 추정합니다(측정된 것은 비용까지). 스크립트를 창 밖에서 한 번 실행해 두도록 했습니다(macOS만). </details> <details><summary>Verification record</summary> - PRD: `agents/prd/herdr-spawn-guard/prd.md` (sha256 52bd96d6a437c1cf127f32196c8d9244449e5c91fe22a4706e854d541f34afc5) - Base 5a8d59b → head 8a018e6, verified 2026-10-07T01:20:24.034Z: PASS - Verification report: `agents/runs/herdr-spawn-guard/verification-report.json` and `agents/runs/herdr-spawn-guard/verification-report.md`; source fingerprint 28ef9b50e63a91ddb8b024a247e4ef06c9d38d74999fcd5b03a26d4b718a25b6 - 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 at da5ea05: Fix now(렉서 fail-closed와 미탐, 다른 Herdr 대상, 미등록 응답의 분류, 진단의 로그 파일 이동, 예약어와 wrapper, owner 핸드셰이크 exit 2, INSTALL.md 표, 오래된 주석)를 고쳤고, 첫 spawn `ledger_unavailable`은 픽스처 상태 폴더 권한(0755) 때문이라 제품 결함이 아니며, 체크아웃 바인딩 pane 건은 알려진 한계로 문서화했습니다. - Fidelity+Code and Security follow-up at 8617857: heredoc 본문을 가진 launch가 빠지는 회귀, `export`로 다른 Herdr를 가리키는 호출을 모두 고쳤습니다. - Final follow-up at 0db57b5 and 77e1de53 (tree identical to the verified head): `<<\EOF`, here-string 회귀를 고쳤고 새 Fix now는 없습니다. - Follow-up improvements 미반영: send-text 오탐(문서화), PowerShell 인용과 `<intent>` 자리표시자, `hide_project::git::branch`의 무제한 HEAD 읽기, delivery 진단 저장소 공유, `$` 포함 값의 다른 Herdr 판정, `sudo`/`timeout` wrapper, 한 통합 테스트의 timeout. - verify한 head는 리뷰한 77e1de53에 main(#684 이후)을 충돌 없이 merge한 것입니다. merge로 들어온 main의 변경은 이 PR의 리뷰 대상이 아니며, 겹친 파일 4개의 자동 merge는 직접 diff로 확인했습니다. - Evidence: 22 registered (17 file, 5 log); paths are local to the run directory - agents/runs/herdr-spawn-guard/artifacts/step0-probe.md - agents/runs/herdr-spawn-guard/live/evidence/claude-b1-refusal-pane.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-b1-agent-start-pane.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-b2-chained-pane-run.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-b2-send-text.txt - agents/runs/herdr-spawn-guard/live/evidence/claude-b3-spawn-pane.txt - agents/runs/herdr-spawn-guard/live/evidence/claude-b3-agent-list.json - agents/runs/herdr-spawn-guard/live/evidence/codex-b3-spawn-pane.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-b3-agent-list.json - agents/runs/herdr-spawn-guard/live/evidence/codex-b4-pane-split-allowed.txt - agents/runs/herdr-spawn-guard/live/evidence/claude-b4-ordinary-call.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-b4-ordinary-call.txt - agents/runs/herdr-spawn-guard/live/evidence/claude-b6-daemon-down.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-hooks-trust-list.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-hooks-review-list.txt - agents/runs/herdr-spawn-guard/live/evidence/codex-first-screens.txt - agents/runs/herdr-spawn-guard/live/evidence/latency-release.txt - agents/runs/herdr-spawn-guard/live/evidence/guard-real-hide-timing.txt - agents/runs/herdr-spawn-guard/live/opener/first-exec-quiet.txt - agents/runs/herdr-spawn-guard/live/opener/chain-latency-quiet.txt - agents/runs/herdr-spawn-guard/live/opener/full-run-samples.txt - agents/runs/herdr-spawn-guard/live/opener/cause.md - Changed paths: 48 (see Files changed) </details>
This was referenced Oct 7, 2026
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
Related: PRD `agents/prd/codex-herdr-hook-trust/prd.md` · 선행: #670 (Codex hook 신뢰), #668 (kit의 Herdr 연동), #688 (spawn guard) ## Summary - #670 이후 hide 자기 hook은 Codex에 신뢰로 기록되지만, kit이 같이 설치하는 Herdr의 Codex hook은 남의 것이라 새 기기에서 "Hooks need review"가 뜨고, 승인 전까지 Herdr는 그 pane의 Codex 세션을 모른다. - kit이 `herdr integration install codex`를 부르기 직전과 직후에 `~/.codex/hooks.json`을 읽어, 그 호출이 추가한 항목(event, matcher, 종류, command)을 kit 기록(`herdr_hooks`)에 남긴다. Herdr의 명령은 hide에 적혀 있지 않다. - 기록된 항목은 #670의 `select_targets`가 hide 자기 항목과 같은 글자 단위 일치 규칙으로 함께 고른다. 신뢰 확인은 pass당 한 번이고, 에이전트 부품 설치 뒤로 옮겨 첫 설치에서 한 번의 app-server 세션으로 둘 다 신뢰된다. - 운영자가 먼저 설치한 연동, 같은 스크립트 이름을 흉내 낸 명령, 다른 에이전트는 바뀌지 않는다. `docs/agent-hooks.md`, `INSTALL.md`, `ARCHITECTURE.md`에 이 규칙과 2026-10-07 조사 결과를 적었다. ## Review - **판단해 주세요 (보안)**: 학습은 설치 호출 전후 diff다. 그 한 번의 호출 구간에 다른 도구가 항목을 순수하게 추가하면 Herdr 것으로 기록되고 신뢰된다. 상한 4개, 사용자 권한의 쓰기가 필요하고, `config.toml`을 직접 쓰는 것보다 더 얻는 것은 없다. 호출 구간 밖의 쓰기, 다른 항목의 삭제나 수정은 막았다. 더 막으려면 `integration status`의 스크립트 경로를 명령에 요구하는 규칙이 필요한데, 손으로 쓴 Herdr 규칙에 가까워 넣지 않았다. 이 잔여 위험을 받아들이시겠습니까? - **판단해 주세요 (기존 기기)**: `herdr:codex`만 있고 항목 기록이 없는 기기(#668 빌드가 설치)는 학습하지 못한다. Herdr가 이미 쓴 항목은 재설치해도 그대로라 kit에 추가로 보이지 않는다. 그 기기는 검토 화면을 한 번 보고, 승인하면 그 해시가 신뢰된다. Herdr가 옛 항목을 지우지 않고 새 항목만 더할 때만 회복하며, 제자리 교체는 기록에 없는 항목의 제거라 거절된다. 이전은 넣지 않았다. - **판단해 주세요 (D-03 해석)**: 신뢰 확인을 #670의 자리(부품 루프 안)에서 `agent_kit::apply` 뒤로 옮겼다. Herdr 연동이 그때서야 설치되므로 B1에 필요하다. 프로세스와 확인 경로는 그대로 하나다. - **운영자가 확인하지 않은 구현 측 가정**: D-02의 학습 방식(설치 시점 기록), D-04, D-05 조사(Cursor 현재 CLI와 Pi 사용자 extension은 문서 추정), D-06, D-07. - **조심해서 볼 파일**: `hide-agent-hooks/src/codex_trust.rs` - 신뢰 대상 선택(`select_targets`, `learn_herdr_entries`), 가장 먼저 볼 곳. `hide-kit/src/agent_kit.rs` - 설치 전후 읽기, `apply`/`reports` 분리. `hide-kit/src/lib.rs` - 확인 위치와 Codex 부품 실패 전파. `hide-kit/src/record.rs` - `herdr:codex`가 있을 때만 항목을 읽는 관문. - **비용 검토**: 새 프로세스와 새 상태 파일은 없다. `codex app-server` 확인은 pass당 1회 그대로이고, 설치 호출마다 hooks.json 읽기 2회, 학습 항목 상한 4개다. ## Evidence - **확인한 것**: 고정된 Herdr 0.9.1(sha가 `contracts/herdr-bundle.json`과 일치)과 codex-cli 0.160.0, 격리된 Herdr 서버, 비공개 HOME에서 실제 kit pass(`hide_kit::apply`)를 돌려 봤다. 빈 `~/.codex`에서 한 pass로 7개 항목이 신뢰됐고 Codex가 "Hooks need review" 없이 시작했으며, 첫 턴 뒤 `herdr agent list`에 `agent_session`(source `herdr:codex`)과 hide의 `hide_hooks` 토큰이 있었다(B1, 수정 뒤 코드로 다시 확인). 반복 pass는 `config.toml`을 바이트 단위로 그대로 두었다(B6). 운영자가 먼저 설치한 연동은 신뢰되지 않아 Codex가 그 hook 하나만 검토 화면에 올렸다(B2). 같은 이름의 다른 경로 명령도 검토 화면에 올랐다(B3). 워크스페이스 전체 `cargo test`와 `lint`가 통과했다(kit 140개, `hide-agent-hooks` 통합 22개, 단위 25개 이상 포함). `auth.json` 사본의 지문은 끝까지 같았고 `rm -P`로 지웠다. - **확인하지 못한 것**: B4(Herdr 명령 변경)와 B5(기록 실패)는 stand-in으로만 확인했고 실제 Herdr/Codex로는 보지 않았다. 패키지된 `hide.app`, 기기(device) 경로, Herdr가 명령을 제자리에서 바꾸는 실제 동작, Herdr 재설치가 `config.toml`의 `hooks.state`를 보존하는지, Cursor와 Pi의 실제 동작은 확인하지 못했다. <details><summary>Verification record</summary> - PRD: `agents/prd/codex-herdr-hook-trust/prd.md` (sha256 5efb1726de39a3c658cbe20a3d78b38b17f3e111d72cdce00b2e58ca7ed1a5ae) - Base 7852aef → head f4ec34a, verified 2026-10-07T02:49:37.198Z: PASS - Verification report: `agents/runs/codex-herdr-hook-trust/verification-report.json` and `agents/runs/codex-herdr-hook-trust/verification-report.md`; source fingerprint 303af8c81f58d9b78dfe504150308ce977849713bc2efe752613539d398fa624 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews (조언용, 병합 권한 아님): - 아래 SHA는 origin/main(9e9e6a9)으로 충돌 없이 리베이스하기 전 값이다. 이 PR의 diff는 같고, 리베이스한 head에서 verify가 다시 통과했다. - Fidelity: a586392a, 4d199851, e27da3be, 0ff0c5f6 검토. Fix now 없음. 사람 결정으로 넘긴 것: 기존 기록 기기 미학습(위 Review 2번), 신뢰 확인 위치 이동. 문서 문구 두 건은 0ff0c5f6에서 반영. - Code: a586392a에서 Fix now 3건(시험이 주장을 확인하지 못함, 오류 경로 시험 부족, 설치 전후 읽기 간격) 모두 4d199851에서 수정; 4d199851에서 1건(거절된 학습이 기록을 지움)을 e27da3be에서 수정; e27da3be는 Fix now 없음. 0ff0c5f6(문서와 주석만 바뀜)은 Code와 Security가 다시 보지 않았고 Fidelity가 확인함. - Security: a586392a에서 Fix now 1건(전후 읽기 창이 넓음)을 4d199851에서 좁힘; 4d199851과 e27da3be는 Fix now 없음. - 받아들이지 않은 제안: 학습 집합 길이 상한, 기록에서 사라진 항목의 매 pass 정리, `integration status` 경로로 명령 교차 확인, 기록 로드 시 상한 검사(이유는 Review에). - Follow-up improvements: `a_refused_learn_keeps_what_was_recorded_before`에 설치 호출 발생 단언 추가, `handler_type` 검사가 세 곳에 겹침. - Evidence: 3 registered (2 file, 1 log); paths are local to the run directory - agents/runs/codex-herdr-hook-trust/live/evidence.md - agents/runs/codex-herdr-hook-trust/live/b1/screen-after-prompt.txt - agents/runs/codex-herdr-hook-trust/live/evidence-rerun.md - Changed paths: 22 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…n agent choice does not cover the shell (#698) Refs #412 (nightly run 37541045200, package (macos)) ## Summary - 실패: nightly package (macos)의 `server-session-search.spec.ts` "server picker and conversation search in a background native window"가 두 시도 모두 `getByRole('button', { name: /^Settings \(/ })`를 30초 동안 찾지 못했다. - 원인: 이 lane은 packaged app을 띄우고, packaged daemon은 이 Mac의 kit을 돌린다. Settings 정리(#668)부터 kit은 kit 기록이 없는 HOME을 첫 실행 agent 선택(`agent_onboarding: pending`)으로 붙잡고, 셸은 Apply로만 닫히는 modal(`AgentOnboarding`)을 띄운다. modal은 나머지 셸을 접근성 트리에서 숨기므로 sidebar의 Settings 버튼이 role로 잡히지 않는다. - 제품 결함이 아니다: Settings icon 버튼은 `Hint`가 준 `aria-label` "Settings (⌘,)"를 그대로 갖는다. 테스트가 첫 실행이 아닌 HOME을 가정한 것이다. - 수정: kit spec들이 이미 쓰는 방식(`device-home.ts`의 `seedKitRecord`: 빈 kit 기록으로 "kit이 돈 적 있는 머신"을 만든다)을 이 spec에도 적용했다. 첫 실행 dialog 자체는 web e2e `agent-onboarding.spec.ts`와 core 결정 테스트가 따로 지킨다. - PR의 desktop e2e lane에서는 같은 spec이 통과해 왔다: 그 lane의 debug daemon은 kit을 돌리지 않아 첫 실행 dialog가 뜨지 않는다. ## Review - **조심해서 볼 파일**: `desktop/e2e/server-session-search.spec.ts` - kit 기록을 모든 lane에서 심는다. debug daemon은 kit을 돌리지 않으므로 desktop e2e lane에는 영향이 없다. ## Evidence - **확인한 것**: - nightly 실패 시점 hided 로그에 packaged kit의 `apply.completed`가 있고, 같은 spec이 PR desktop e2e(debug daemon)에서는 통과(#686 run, 11.6 s). - desktop typecheck, lint(test size 포함) 로컬 통과. - macOS package lane TEMP workflow_dispatch(retry 0) 수정 전/후: 아래 표. - **확인하지 못한 것**: 로컬 packaged app 실행(release build가 디스크 하한을 넘김). macOS 증거는 TEMP CI다. | macOS package lane (TEMP dispatch, retry 0) | 수정 전 (main) | 수정 후 | |---|---|---| | server-session-search "server picker ..." | 실패: Settings `getByRole` 30 s 초과 (run 37564888317) | 통과 16.1 s (run 37564891413) | | local-kit | 통과 | 통과 |
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
… a hand-started Codex runs in its own pane (#656) Closes #641 Related: #668 (settings-cleanup가 키트 줄을 없애고 팝오버 링크를 만듦), #669 (issue 651), #616 ## Summary - 공유 Codex daemon이 돌고 있으면 손으로 연 Codex가 그 daemon에 붙어 hide가 그 pane을 따라가지 못합니다(issue #641). - main의 Not connected 팝오버 링크 "Turn off Codex's shared server…"는 자동 시작만 끄고 떠 있는 daemon은 두어서, 누른 뒤에도 다음 손으로 연 Codex가 여전히 붙었습니다. - 이제 링크가 먼저 확인 창(대상 기계, 붙은 Codex가 끊기고 `codex resume`으로 이어감, hide가 연 Codex는 계속 돎)을 열고, 확인하면 자동 시작을 끈 뒤 떠 있는 daemon까지 멈춥니다(운영자 선택 C). - 자동 시작은 이미 꺼졌는데 daemon이 떠 있는 기계에서도 그 pane은 공유 서버 이유와 링크를 보이고, 그때 링크는 멈추기만 합니다. - 이 Mac과 SSH device가 같게 동작합니다(helper protocol 21). 처음 열었던 Settings 키트 줄 방식은 #668이 그 줄을 없애서 대체했습니다.   ## Review - **판단해 주세요**: settings-cleanup의 "A running daemon is never stopped (D-23)"를 운영자 선택 C로 의도적으로 뒤집었습니다(`codex_daemon.rs` 모듈 설명, UI_BEHAVIOR, ARCHITECTURE, INSTALL, status-model). - **판단해 주세요**: 확인 창 문구(en) "Turn off Codex's shared server on {machine}?" / "Codex stops starting its shared server, and the one running now stops." / "Every Codex attached to it disconnects. In its pane, run codex resume to continue." / "Codex that Hide started doesn't use this server and keeps running." / 버튼 "Leave it running", "Turn off and stop" (ko "그대로 두기", "끄고 멈추기"). - **판단해 주세요**: PRD D-07/B9(위임된 가정). 자동 시작이 꺼졌는데 daemon이 떠 있으면 pane을 "Started before Hide was set up" 대신 공유 서버로 읽고 링크를 둡니다. 판단은 마지막 키트 읽기 기준이고 새 polling은 없습니다. 원하는 동작이 맞나요? - **판단해 주세요**: `daemon version`이 실패하면 Codex의 제어 소켓(`CODEX_HOME/app-server-control/app-server-control.sock`)이 없을 때만 "daemon 없음"으로 봅니다. 이 규칙은 pane 이유를 정하는 읽기에만 쓰고, 확인한 끄기는 소켓으로 판단하지 않습니다: `daemon version`이 실행 중이라고 읽지 못하면 `daemon stop`을 실행하고 그 타입 있는 답(`notRunning`, `stopped`)을 믿습니다(0.160에서 관찰한 형식). - **판단해 주세요**: 그래서 daemon이 없을 때도 끄기는 `daemon stop`을 한 번 실행합니다(아무것도 멈추지 않고 `notRunning`으로 답함). PRD B5의 "멈추기를 시도하지 않는다"와 글자로는 다르고, 보이는 결과(done, 멈춘 것 없음)는 같습니다. - **조심해서 볼 파일**: `hide-agent-hooks/src/codex_daemon.rs` - failure path. daemon을 멈추는 유일한 경로와 소켓 판단. - **조심해서 볼 파일**: `herdr-core/src/runtime/kit.rs` - runtime mutex 아래의 요청, 실행 번호, 연결이 끊긴 device의 요청 정리. 자식 프로세스는 키트 스레드와 helper에서만 돕니다. - **조심해서 볼 파일**: `hide-host/src/protocol.rs`, `hide-kit/src/lib.rs` - helper 계약. protocol 21, `codex_daemon_off`가 멈추기까지 하므로 20 helper는 연결에서 거절됩니다. - **조심해서 볼 파일**: `web/src/PaneConnection.tsx` - 확인 창, 두 번 보내지 않는 guard, 링크가 사라지면 창도 닫힘. - **조심해서 볼 파일**: commit하는 Git test fixture의 `commit.gpgsign=false` - 범위 밖, 서명을 요구하는 전역 git 설정에서 실패해서 둠. - **비용 검토**: 키트 읽기마다 `daemon version` 한 번이 늘어납니다(Codex에 설정이 있는 기계만, 키트 스레드와 helper에서). 멈추기는 운영자의 확인 한 번에 한 번입니다. ## Evidence - **확인한 것**: 실제 Codex CLI 0.160.0, 전용 HOME과 CODEX_HOME(daemon 소켓과 프로세스가 그 CODEX_HOME 소속임을 먼저 확인), 격리 Herdr, dev hided에서 팝오버, 확인 창 en/ko(포커스된 버튼 없음, 개수 없음), 그대로 두기는 아무것도 보내지 않음. - **확인한 것**: 같은 환경에서 확인하면 진행 표시 뒤 done, 한 번에 자동 시작 꺼짐과 daemon 멈춤, `--no-daemon` Codex는 계속 답함, 새로 손으로 연 Codex는 자기 서버로 돌고 세션과 작업 라벨을 받음. - **확인한 것**: B9 라이브. 자동 시작이 꺼진 뒤 손으로 띄운 daemon은 다음 키트 읽기에서 공유 서버 이유와 링크를 만들고, 다시 누르면 멈추기만 하며, 그 뒤 이유가 돌아옴. - **확인한 것**: 소켓 규칙 라이브. `daemon stop`은 끝나기 전에 소켓을 지움(3/3), SIGKILL된 daemon은 소켓을 남기고 `daemon stop`은 `notRunning`으로 답함. - **확인한 것**: SSH device 경로는 desktop e2e(private sshd, 가짜 codex)에서 device의 끄기가 그 device의 daemon을 멈춤. 패키징한 앱으로 `local-kit.spec` 통과(CI는 PR에서 macOS 패키지를 만들지 않음). - **확인한 것**: 바뀐 4 crate는 retry 없이 전부 통과, 전체 workspace nextest(CI의 retry 1)는 통과(retry는 main의 hided opener 테스트뿐), lint, `verify-web.sh`, design contract 통과. 새 테스트는 결함을 심으면 각각 실패. - **확인하지 못한 것**: 실제 Codex로 SSH device에서 멈추기(e2e는 가짜 codex), Mac mini는 쓰지 않음(운영 기계). `daemon bootstrap`으로 관리되는 daemon. - **확인하지 못한 것**: sasu의 전체 `cargo test` suite(S1)는 이 run에서 issue 651 때문에 제외된 채로 남습니다(#669가 고쳤지만 amend는 제외를 되돌리지 못함). 대신 위의 전체 workspace 실행. - **확인하지 못한 것**: 연결이 끊긴 device에서 거절된 확인은 화면에 새로 보이는 것이 없음(로그만, 링크는 남음). <details><summary>추가 증거</summary>  - 후속: main의 테스트 `device_kit::the_latest_agent_switch_wins_over_one_still_queued`의 경쟁 조건은 #689로 남김(이 diff의 경로가 아님). - 후속: 격리 daemon의 자체 업데이트 루프가 검증 도중 0.160.1로 바꿈(daemon 멈춤과는 무관한 upstream 동작). - 코드 리뷰(옵션 C 1차)에서 남긴 것: 키트 읽기마다 `daemon version` 프로세스가 하나 더 돌고, 끄기 pass는 Codex 명령을 여섯 번쯤 차례로 실행합니다(마지막 읽기는 멈춤이 이미 확인한 것을 반복). - 코드 리뷰(옵션 C 1차)에서 남긴 것: core가 요청을 거절하면(헬퍼 연결 안 됨 등) 팝오버에 새로 보이는 것이 없고(로그만), 같은 실패가 다시 오면 진행 표시를 놓친 경우 숨을 수 있습니다. - 코드 리뷰(옵션 C 1차)에서 남긴 것: 잊히는 device에서 대기 중인 끄기를 정리하는 일이 잠깐 Failed 상태를 내보내고, 진행 중인 끄기는 채널 오류가 늦으면 시간 초과(180초)까지 진행 중으로 남습니다. </details> <details><summary>Verification record</summary> - PRD: `agents/prd/codex-daemon-apply/prd.md` (sha256 0855bd5e7604c29a52bb0b47c4402a201ed75b71634e776f7f65067bf34fa250) - Base b520d6e → head bbbded8, verified 2026-10-07T02:35:22.540Z: PASS - Verification report: `agents/runs/codex-daemon-apply/verification-report.json` and `agents/runs/codex-daemon-apply/verification-report.md`; source fingerprint 22fe5e7e3bda4412077198f5916ebc47ab134f32abdc17b3d73ea8cd9eccb767 - Suites: - S1: EXCLUDED `bash scripts/verify-cargo.sh test` - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: kit-row version (superseded by #668): Fidelity, Code, Security sets and two PR code review rounds, all fixed or listed. Option C (amendment 3): Fidelity, Code and Security on 755c8b4d found three (retry link lost after an unreadable stop failure, uncapped Codex text in logs, quit mid-stop read as stop_failed), fixed in 755c8b4d; all three flagged a failed daemon version read as no daemon, decided by the Observer: no daemon only while the control socket is absent (5f4d6514); follow-up Code+Security review found a crashed daemon's stale socket would block every retry, settled by daemon stop's typed notRunning inside the confirmed turn-off (4c73d043, ad77171a), verdict correct; rebase review on e008417 clean. PR code review round 1 on e008417: two fixed in cc9c309 and bbbded8 (the confirmed stop never decides from the socket and trusts daemon stop's typed answer; the unreachable line no longer claims the setting is unchanged), follow-up review met; four deferred, listed under Evidence. - Evidence: 138 registered (33 screenshot, 101 log, 4 file); paths are local to the run directory - agents/runs/codex-daemon-apply/live/screens/1-running-en.png - agents/runs/codex-daemon-apply/live/screens/2-confirm-en.png - agents/runs/codex-daemon-apply/live/screens/2-confirm-ko.png - agents/runs/codex-daemon-apply/live/screens/4-settled-en.png - agents/runs/codex-daemon-apply/live/screens/5-labels-after-stop-expanded.png - agents/runs/codex-daemon-apply/live/02-scope-after-start.txt - agents/runs/codex-daemon-apply/live/03-before-stop.txt - agents/runs/codex-daemon-apply/live/04-after-stop.txt - agents/runs/codex-daemon-apply/screens/device-e2e/codex-daemon-running.png - agents/runs/codex-daemon-apply/screens/device-e2e/codex-daemon-confirm.png - agents/runs/codex-daemon-apply/screens/device-e2e/codex-daemon-stop-failed.png - agents/runs/codex-daemon-apply/screens/device-e2e/codex-daemon-stopping.png - agents/runs/codex-daemon-apply/screens/device-e2e/codex-daemon-stopped.png - agents/runs/codex-daemon-apply/live/05-after-new-codex.txt - agents/runs/codex-daemon-apply/verify/nextest-ci-workspace.log - agents/runs/codex-daemon-apply/verify/strict-touched-crates.log - agents/runs/codex-daemon-apply/verify/opener-base-b520d6eb.log - agents/runs/codex-daemon-apply/verify/opener-bisect.log - agents/runs/codex-daemon-apply/verify/nextest-ci-workspace-f4baf4ce.log - agents/runs/codex-daemon-apply/verify/strict-touched-crates-f4baf4ce.log - agents/runs/codex-daemon-apply/verify/review-fixes-planted.log - agents/runs/codex-daemon-apply/verify/nextest-ci-workspace-60e83a88.log - agents/runs/codex-daemon-apply/verify/strict-touched-crates-60e83a88.log - agents/runs/codex-daemon-apply/verify/nextest-ci-workspace-1f9417dd.log - agents/runs/codex-daemon-apply/verify/device-kit-stress.log - agents/runs/codex-daemon-apply/verify/nextest-ci-workspace-0402652c.log - agents/runs/codex-daemon-apply/verify/strict-touched-crates-0402652c.log - agents/runs/codex-daemon-apply/verify/round2-device-kit-e2e.log - agents/runs/codex-daemon-apply/verify/round2-planted-e2e.log - agents/runs/codex-daemon-apply/verify/round2-planted.log - agents/runs/codex-daemon-apply/verify/web-0402652c.log - agents/runs/codex-daemon-apply/screens/device-e2e-round2/codex-daemon-confirm.png - agents/runs/codex-daemon-apply/screens/device-e2e-round2/codex-daemon-running.png - agents/runs/codex-daemon-apply/screens/device-e2e-round2/codex-daemon-stop-failed.png - agents/runs/codex-daemon-apply/screens/device-e2e-round2/codex-daemon-stopped.png - agents/runs/codex-daemon-apply/screens/device-e2e-round2/codex-daemon-stopping.png - agents/runs/codex-daemon-apply/verify/lint-a3e7140b.log - agents/runs/codex-daemon-apply/verify/nextest-ci-a3e7140b.log - agents/runs/codex-daemon-apply/verify/strict-touched-a3e7140b.log - agents/runs/codex-daemon-apply/verify/git-fixture-signing-a3e7140b.log - agents/runs/codex-daemon-apply/verify/verify-web-a3e7140b.log - agents/runs/codex-daemon-apply/verify/policy-a3e7140b.log - agents/runs/codex-daemon-apply/verify/device-kit-e2e-a3e7140b.log - agents/runs/codex-daemon-apply/screens/merged-device-kit-a3e7140b/codex-daemon-running.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-a3e7140b/codex-daemon-confirm.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-a3e7140b/codex-daemon-stopping.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-a3e7140b/codex-daemon-stop-failed.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-a3e7140b/codex-daemon-stopped.png - agents/runs/codex-daemon-apply/verify/strict-touched-51c416ff.log - agents/runs/codex-daemon-apply/verify/lint-51c416ff.log - agents/runs/codex-daemon-apply/verify/build-bins-51c416ff.log - agents/runs/codex-daemon-apply/verify/device-kit-e2e-51c416ff.log - agents/runs/codex-daemon-apply/screens/merged-device-kit-51c416ff/codex-daemon-confirm.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-51c416ff/codex-daemon-stopping.png - agents/runs/codex-daemon-apply/screens/merged-device-kit-51c416ff/codex-daemon-stopped.png - agents/runs/codex-daemon-apply/verify/review1-fixes-before-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-fixes-after-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-strict-touched-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-strict-touched-signing-config-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-lint-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-verify-web-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-design-contract-8dde1c3e.log - agents/runs/codex-daemon-apply/verify/review1-device-kit-e2e-8dde1c3e.log - agents/runs/codex-daemon-apply/screens/review1-device-kit-8dde1c3e/codex-daemon-stop-failed.png - agents/runs/codex-daemon-apply/screens/review1-device-kit-8dde1c3e/codex-daemon-stopping.png - agents/runs/codex-daemon-apply/screens/review1-device-kit-8dde1c3e/codex-daemon-stop-failed-row.png - agents/runs/codex-daemon-apply/screens/review1-device-kit-8dde1c3e/codex-daemon-stopping-row.png - agents/runs/codex-daemon-apply/verify/review1b-before-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-after-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-lint-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-strict-touched-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-device-kit-e2e-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-package-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/review1b-local-kit-e2e-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/final-package-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/final-local-kit-e2e-6ef5f8ed.log - agents/runs/codex-daemon-apply/verify/final2-strict-hide-host-f5facb4e.log - agents/runs/codex-daemon-apply/live-c/02-scope-after-start.txt - agents/runs/codex-daemon-apply/live-c/03-before-stop.txt - agents/runs/codex-daemon-apply/live-c/screens/2-popover-en.png - agents/runs/codex-daemon-apply/live-c/screens/3-confirm-en.png - agents/runs/codex-daemon-apply/live-c/screens/3-confirm-ko.png - agents/runs/codex-daemon-apply/live-c/04-go.txt - agents/runs/codex-daemon-apply/live-c/screens/4-answer-en.png - agents/runs/codex-daemon-apply/live-c/05-after-stop.txt - agents/runs/codex-daemon-apply/live-c/06-after-new-codex.txt - agents/runs/codex-daemon-apply/live-c/screens/5-settled-en.png - agents/runs/codex-daemon-apply/live-c/07-b9.txt - agents/runs/codex-daemon-apply/live-c/08-b9-second-request.txt - agents/runs/codex-daemon-apply/live-c/screens/6-b9-popover-en.png - agents/runs/codex-daemon-apply/live-c/core.jsonl - agents/runs/codex-daemon-apply/e2e-c/device-kit.log - agents/runs/codex-daemon-apply/e2e-c/hide-desktop-kit-HgtUMT-daemon.jsonl - agents/runs/codex-daemon-apply/verify/c-strict-tests-3.log - agents/runs/codex-daemon-apply/verify/c-strict-letter-origin-rerun.log - agents/runs/codex-daemon-apply/verify/c-mutation-run.log - agents/runs/codex-daemon-apply/verify/c-mutation-run-2.log - agents/runs/codex-daemon-apply/verify/c-mutation-run-3.log - agents/runs/codex-daemon-apply/verify/c-lint.log - agents/runs/codex-daemon-apply/verify/c-verify-web-3.log - agents/runs/codex-daemon-apply/verify/c-design-contract-2.log - agents/runs/codex-daemon-apply/review-c/review-set.md - agents/runs/codex-daemon-apply/verify/c-review-fix-tests-2.log - agents/runs/codex-daemon-apply/verify/c-review-fix-mutation.log - agents/runs/codex-daemon-apply/verify/c-lint-2.log - agents/runs/codex-daemon-apply/verify/c-workspace-nextest.log - agents/runs/codex-daemon-apply/e2e-c/local-kit.log - agents/runs/codex-daemon-apply/verify/c-strict-tests-final.log - agents/runs/codex-daemon-apply/verify/c-socket-tests.log - agents/runs/codex-daemon-apply/verify/c-socket-mutation-a.log - agents/runs/codex-daemon-apply/verify/c-socket-mutation-b.log - agents/runs/codex-daemon-apply/verify/c-strict-tests-socket.log - agents/runs/codex-daemon-apply/verify/c-ssh-hosts-rerun.log - agents/runs/codex-daemon-apply/verify/c-lint-3.log - agents/runs/codex-daemon-apply/live-c/09-socket-live.txt - agents/runs/codex-daemon-apply/verify/c-socket-tests-2.log - agents/runs/codex-daemon-apply/verify/c-socket-mutations-2.log - agents/runs/codex-daemon-apply/verify/c-strict-tests-socket-2.log - agents/runs/codex-daemon-apply/verify/c-lint-4.log - agents/runs/codex-daemon-apply/review-c/review-socket.md - agents/runs/codex-daemon-apply/verify/c-socket-tests-3.log - agents/runs/codex-daemon-apply/verify/c-socket-mutation-widen.log - agents/runs/codex-daemon-apply/verify/c-lint-5.log - agents/runs/codex-daemon-apply/review-c/review-rebase.md - agents/runs/codex-daemon-apply/verify/c-rebase-strict.log - agents/runs/codex-daemon-apply/verify/c-rebase-lint.log - agents/runs/codex-daemon-apply/verify/c-rebase-verify-web.log - agents/runs/codex-daemon-apply/verify/c-rebase-design.log - agents/runs/codex-daemon-apply/e2e-rebase/device-kit.log - agents/runs/codex-daemon-apply/verify/c-r1-strict.log - agents/runs/codex-daemon-apply/verify/c-r1-codex-trust-rerun.log - agents/runs/codex-daemon-apply/verify/c-r1-mutation.log - agents/runs/codex-daemon-apply/verify/c-r1-lint.log - agents/runs/codex-daemon-apply/verify/c-r1-verify-web.log - agents/runs/codex-daemon-apply/verify/c-r1-design.log - agents/runs/codex-daemon-apply/review-c/review-r1.md - agents/runs/codex-daemon-apply/verify/c-r1-tests-2.log - agents/runs/codex-daemon-apply/verify/c-r1-lint-2.log - Changed paths: 348 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
…712) ## Summary nightly 실패는 지금까지 issue #412 한 곳에 lane 이름만 댓글로 쌓였습니다. 어떤 테스트인지 알 수 없었고, 녹색이 되어도 닫히지 않았습니다(10-07 package (macos)의 `server-session-search.spec.ts:29` 실패를 아무도 몰랐음). 이제 실패 하나가 `nightly-failure` issue 하나입니다. 재발하면 같은 issue에 댓글이 달리고, lane이 녹색이 되면 issue가 닫힙니다. - 각 lane의 보고 단계(`ci-flaky-report.py`)는 재시도까지 실패한 테스트를 job의 `Failed test` annotation으로 남기기만 합니다(실행 요약 화면에도 이름이 보임). flaky issue 쓰기는 그대로입니다. - nightly의 report job(`ci-flaky-report.py --nightly`)이 issue를 쓰는 유일한 곳입니다. - annotation이 있으면 lane의 테스트당 issue 하나, 없으면 lane과 실패한 step당 하나를 엽니다. 제목은 `Nightly failure (<lane>): <테스트 또는 step>`(200자 상한)이라 같은 테스트가 macOS와 Windows에서 실패하면 제목이 다른 issue 둘입니다. 준비 단계에서 실패했으면 `infra` label을 답니다. - 본문: lane의 마지막 녹색 nightly 이후 머지된 원인 후보 PR, 오류 발췌(`clean`), `- Expires:` 이틀 뒤. - run attempt마다 댓글 한 번, run당 10개 상한(넘치면 하나로 묶음), 예약 run에서 녹색인 lane의 issue 닫기, main이 아닌 run은 쓰지 않음. - 예약은 `17 17 * * *`(02:17 KST)로 옮겼습니다. 정각 예약은 GitHub가 늦춰, 03:00 KST 예약이 07:30~08:50 KST에 시작했습니다. - 지운 것: `nightly-report.cjs`(#412 umbrella)와 그 테스트, policy job의 node test 단계. 원인 후보·표식·상한을 두 언어에 두지 않으려고 report 로직을 Python 한 곳으로 옮겼습니다. #412는 머지 뒤 감독이 닫습니다. ## Review - **판단해 주세요**: annotation 한도. GitHub 문서(REST check runs, "Update a check run")는 "GitHub Actions are limited to 10 warning annotations and 10 error annotations per step."라고만 적고, job·run 한도는 문서에 없습니다. - 보고 단계 하나는 스크립트를 한 번만 돌리고(workflow test가 확인), 실패 테스트 8개까지 annotation을 남깁니다. 넘치면 `Failed tests not annotated` 하나에 남은 수를 적고, runner 자신의 몫으로 하나를 비워 둡니다. - report job은 남은 수를 run 상한 묶음 issue에 더합니다. 실패한 job에 `Failed test`가 하나도 없으면 단계 실패 issue로 엽니다. - **판단해 주세요**: package (macos)에 보고 단계를 더했지만 `issues: write`는 주지 않았습니다. release.yml과 pr.yml(#700의 `package` lane)이 package.yml을 `contents: read`로 부르기 때문입니다. annotation은 권한이 필요 없고, 그 job의 flaky는 job summary에 "not filed"로 남습니다. - #700 뒤로 이 단계는 PR run에서도 돕니다. PR run에서 annotation은 실행 요약 화면에만 보이고, issue는 main의 nightly report만 씁니다. - **판단해 주세요**: lane은 job 이름에서 shard(`2/4`)를 뗀 것입니다. `verify / verify` gate는 다른 lane 실패를 따라 실패하므로 lane에서 뺐습니다. step 실패의 원인 후보 경로는 그 lane이 거친 workflow와 그 workflow가 부르는 `scripts/`입니다. - **조심해서 볼 파일**: `scripts/ci-flaky-report.py` `Nightly`(failure path). GitHub API 오류는 report job을 실패시켜 조용히 넘어가지 않습니다. `nightly.yml` report job 권한(`actions`, `checks`, `pull-requests` read)도 함께 봐 주세요. - **비용 검토**: report job의 목록 조회는 모두 100개씩 10쪽까지 읽고, 넘으면 오류입니다. 마지막 녹색은 14 run까지 찾습니다. compare가 1000 commit을 넘으면 원인 후보를 "unknown"으로 적습니다. PR 파일 목록은 run 안에서 cache합니다. - 덤: nightly desktop job의 rust junit 보고 줄을 지웠습니다(그 job은 nextest를 돌리지 않음). 보고 단계 이름은 `Report flaky and failed tests`로 바꿨습니다. ## Evidence - **확인한 것**: - `scripts/tests/test_ci_flaky_report.py` 39개 통과(가짜 jobs·annotations·logs·issues·compare·PR 응답). - 첫 실패가 열고, 같은 attempt 재실행은 댓글 0, 새 attempt는 1. - 녹색 lane이 닫고 skipped·cancelled는 무시, 수동 run은 `all`일 때만 닫음. - annotation 없는 실패 job은 단계 실패, infra 분류, 상한 10과 묶음, main 아님은 쓰기 없음, dry-run은 쓰기 없음. - 원인 후보(범위 밖·다른 파일 제외, 여러 쪽 compare), annotation 형식과 8+1 한도, report 단계당 실행 한 번. - 같은 테스트가 두 lane에서 실패하면 제목이 다른 issue 둘, 제목 200자 상한. - main(#700 포함) merge 뒤 `python3 -m unittest discover -s scripts/tests` 189개 통과. policy job의 구조 검사, `check-no-workstation-identity`, attribution 검사 통과. - dry-run(아래 펼침). 테스트 목록은 그 run의 job log(Playwright list 요약)에서 재구성했습니다. 그 run들에는 `Failed test` annotation이 없기 때문입니다. 나머지(jobs, steps, 이전 run, compare, PR 파일)는 실제 API를 읽기만 했습니다. - 10-07 run 37541045200: issue 하나. `desktop/e2e/server-session-search.spec.ts:29`, 원인 후보 #668. - 10-06 run 37391023049: 10개와 묶음 하나("3 more"). 단계 실패 둘(desktop windows·linux의 suite step), 테스트 8개. 이 lane들은 14 run 안에 녹색이 없어 원인 후보가 "unknown"입니다. - **확인하지 못한 것**: - 실제 report job과 annotation 생성은 Actions에서 아직 돌지 않았습니다. report job은 main의 nightly에서만 돕니다. annotation 형식은 문서와 테스트로만 확인했습니다. - job·run당 annotation 한도는 문서가 없어 확인하지 못했습니다. <details><summary>dry-run: 10-07 run 37541045200</summary> ``` # package / package (macos): rebuilt 1 failed test(s) from its log would open [nightly-failure] Nightly failure (package / package (macos)): server picker and conversation search in a background native window <!-- nightly-failure:package / package (macos):desktop/e2e/server-session-search.spec.ts > server picker and conversation search in a background native window --> Nightly CI failed in the `package / package (macos)` lane. - Test: `desktop/e2e/server-session-search.spec.ts:29` "server picker and conversation search in a background native window" - Lane: `package / package (macos)` on macos-15 - Commit: 0f06ce6 - Last green nightly of this lane: 9d5072f (https://github.com/modakbul-gongbang/hide/actions/runs/37391023049) - Candidate pull requests (merged since then, touching `desktop/e2e/server-session-search.spec.ts`): #668 - Expires: 2026-10-09 TimeoutError: locator.click: Timeout 30000ms exceeded. - waiting for getByRole('button', { name: /^Settings \(/ }) ``` </details> <details><summary>dry-run: 10-06 run 37391023049 (제목만)</summary> ``` would open [nightly-failure] Nightly failure (desktop e2e (windows full)): Whole desktop suite would open [nightly-failure] Nightly failure (desktop e2e (linux full)): Whole desktop suite would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): a Project's Sessions: history, filters, a read-only session, failures and two windows would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): 2000-session search progress preserves history and terminal input would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): ⌘K Start an agent… starts an agent in the checkout in front with the chosen model and first prompt would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): weekly usage: a loading, an available and an unavailable row, and the hints the page sends would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): an agent slept from the pane menu keeps its row and wakes in the same pane on a visit would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): the area layout and its divider ratio survive a hided restart would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): rename refusal and timeout preserve text for retry would open [nightly-failure] Nightly failure (web e2e (Windows full) / web e2e nightly-windows): the phone's start sheet starts an agent in a checkout and in Home, and keeps its text while the phone is away would open [nightly-failure] nightly: 3 more failures in run 37391023049 ``` </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/settings-cleanup/prd.md· builds on #623 and #624 (both already onmain)Summary
Not connectedchip with Reopen; Devices, Mobile (Show QR) and Shortcuts are cleaned up, and the B1-B68 and D-23 defects are fixed.Review
docs/UI_BEHAVIOR.md.hide-kit/src/retired_agents.rsandhide-kit/src/agent_kit.rs- removes files in the operator's home, ownership-gated by the kit record.hide-agent-hooks/- the only crate that writes operator-owned config; the letter guard (runtime::takes_letters) is a three-runtime allowlist.herdr-core/src/runtime/kit.rs,runtime/agents.rs,ai.rs-Mutex<Runtime>discipline, what is published on a real transition, one event per user action.hide-platform/src/programs.rs- the one CLI search (login shell, daemon PATH, install folders); it keeps the single cached shell answer, the one state this crate holds.hide-ai/src/router.rs,registry.rs,program.rs- what leaves the machine, to which agent, and the PATH each child runs with.ssh -Gis capped at 32 hosts, 3 s, 4 at a time; first-run and login rechecks run every 5 minutes only while no agent is chosen.Evidence
sasu implement verifyon the final head, S1verify-cargo.sh testand S2lint, both PASS; webtsc,eslint,vitest(1164 tests),vite build, the desktop equivalents, andcheck-design-contract.mjspass.hided) ran on the head after the first merge with main: 204 passed, and the one failure (a newlink-graphspec still clicking the removed Appearance tab) is fixed and passes alone; the full suite was not run again after the last, test-only commits and the second merge with main.initializeand answered one Hide AI request; every other agent backend is proven against scripted stand-ins that record the exact argv, env and stdin.local-kit,device-homeanddevice-kite2e were not run on the final head (they need a packaged app and an isolated sshd that was not available); an earlierdevice-homefailure at[data-agent-counts]is not re-checked.Screen / Settings,MobileandOnboardingPen sheets are stale because thepentool is not installed here;docs/DESIGN_WORKFLOW.mdnames exactly which.bash scripts/verify-web.shas a whole did not run (pnpm11 stops on esbuild's build-script check); each of its steps ran directly fromnode_modules/.bin.Breaking change
ai.jsonchoice is kept.Verification record
agents/prd/settings-cleanup/prd.md(sha256 50a4410849b1701abb7176e05fe65f94f02b282e8f4e112c9c82170ad9645b33)agents/runs/settings-cleanup/verification-report.jsonandagents/runs/settings-cleanup/verification-report.md; source fingerprint 580774e7a3c52e884b063a2531f05366b8c0d4a4807efafe5992c2d5731d7091bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)c43c369thenf3a6dbf: first round F1 (an agent whose CLI is not found listed as Installed) and F2 (Check again showed no reason) fixed; second round F1 (chosennever sent, so an agent switched on and then uninstalled lost its switch) fixed by publishingchosenend to end; follow-ups (Memory analysis not resuming after Hide AI is turned back on, dead strings for check reasons with no sender) left open.hide-platformagainst its written rule: all fixed; two test-quality items fixed.ssh -GevaluatingMatch exec, Hide AI children inheriting the whole environment, integration ownership by agent name, the login-shell stop flag for Hide AI callers.3efd366): no regression; the Reopen notice can be lost before the snapshot is pulled (low, inferred), listed as a follow-up.