Repository navigation
Draw pane topology changes before Herdr confirms them - #743
Merged
Merged
Conversation
Every tab creation and pane operation Hide starts writes one pane_op.timing diagnostic line with the milliseconds from the request to Herdr's answer, the first drawn snapshot, the first and first layout event, the confirmed layout, the snapshot that carried it and the pane's first frame, so Herdr's share and Hide's can be read apart. Ids and times only; at most 64 records are open, each closed within 10 s.
A tab creation is drawn as a one-pane tab of the checkout's owner workspace as soon as Herdr's answer names its pane, and Herdr's layout replaces it. Keys typed after New tab or a split are sent against the request; the core holds them, capped at 64 KiB per holder and 8 requests, writes them in order to the pane Herdr's answer names, and discards them when the creation fails. A pane whose terminal session is still opening keeps its input instead of dropping it.
A split, zoom, resize or pane close is laid out from the confirmed layout with the same split arithmetic that projects Herdr's layouts and published at once (a split at the answer that names its pane); Herdr's layout replaces the drawing, and a mismatch is recorded. While a change is drawn ahead the tab's panes keep their terminal grid and their PTY size; the latest view size is sent once Herdr has applied it. Each tab runs one geometry operation at a time with at most eight waiting; a refusal, failure or unknown result drops the line behind it and draws the confirmed layout. A zoom or resize Herdr reports as unchanged ends at its answer.
agent.list, a new pane's pane.get, the tick's cwd re-reads and a workspace's workspace.get run on sync-read workers, one per kind with one read of that kind in flight; a read that panics still answers as a failure of its kind, and a re-read the worker cannot take yet is asked again on the next tick. The listening-ports read and the Codex usage read (the node's login and session files, then the usage endpoint) run on BackgroundRead threads, and labels.json is written on the label store's own thread. Output and intervals are unchanged; an agent list asked for while one is out is asked again when it answers, at most every 250 ms. A new pane's layout publishes before Herdr confirms its cwd, standing in the folder of a confirmed pane beside it or the checkout a tab Hide created was asked for; only a pane with neither waits for the read. The purpose mirror syncs only when its catalog or pending purposes change, so an agent status change repeats no purpose work.
The architecture, UI behavior, performance and agent guides describe the drawn-ahead layout, the held PTY size, the held keys and their caps, the per-tab geometry line, the stage record, the event-thread rule and the publish cost rule; the old rule that zoom, splits, closes and resizes wait for Herdr is gone. scripts/web-shell-measure gains a topology scenario that drives split, zoom, close, new tab and tab switch through the web shell's own keys at the operator's scale and twice it, with a baseline hided, and summarizes the stage records.
Keys held for a new pane or a pane whose terminal is opening keep the time each was typed, from the creation request into the pane's hold. When the pane can take them, keys held longer than three seconds are discarded with a stale diagnostic naming the pane and byte count, and the rest are written in order. The age is checked at Herdr's answer and at session open.
A close drawn ahead of Herdr leaves its sibling drawn alone, so Command W on it arrived while the first close was in progress and was refused. The line now decides from Herdr's layout that the pane is one of two, queues its close without drawing it, and starts it only once the close ahead has left the tab and the session update in progress has been applied.
… once A close behind one that failed or whose result is unknown starts and meets its refusal, as before, instead of waiting with no deadline. A pump that an operation it started re-enters leaves the line to the outer pump. The test now confirms the close ahead and checks the last pane's close starts from the applied session and is not canceled.
The test used its own process as the pane's shell, so under cargo test, where every test is a thread of that process, the children other tests had running were reported as the pane's too. A spawned child now stands for the shell; the test asserts it is reported once and that nothing outside its tree is. Fixes #746
yansfil
added a commit
that referenced
this pull request
Oct 7, 2026
Related: PRD `agents/prd/codex-plan-approval-hold/prd.md` (local). The reviewable contract is below. ## Summary - Codex CLI가 plan 모드에서 "Implement this plan?"을 띄운 채 기다릴 때, 편지 종이 Enter를 쳐서 첫 항목 "Yes, implement this plan"을 골랐습니다(2026-10-07 실측 3/3). 운영자가 승인하지 않은 계획이 구현되기 시작했습니다. - 이제 hide는 이미 읽는 Codex 세션 파일(rollout)의 턴 기록(`task_started`의 plan 모드, Plan 항목, `task_complete`)으로 계획 승인 대기를 알아내고, 그동안 종을 보류 사유 `awaiting_operator`로 치지 않습니다. - 같은 동안 그 Codex 행은 기존 승인 대기(approval demand)로 Needs You에 남고, 읽어도 빠지지 않으며, 다음 턴이나 사람의 메시지가 오면 빠집니다. wire와 web 변경은 없습니다. - 판정은 Hide AI 분석이 아닌 결정적 사실이라 요약을 꺼도 같고, 읽은 Herdr `state_change_seq`에 묶여 지금 상태에 대해 읽지 못한 Codex pane은 `session_unread`로 종을 보류합니다. Claude Code pane은 그대로입니다. - 문서: `docs/delivery.md`, `status-model.md`, `UI_BEHAVIOR.md`, `ARCHITECTURE.md`, 성능 ledger.   ## Review - **판단해 주세요**: Herdr가 Codex의 `task_complete` 기록보다 먼저 정지 상태를 읽으면, 그 상태에서는 종만 보류되고 Needs You는 다음 상태 변화까지 뜨지 않습니다. 재읽기를 더하지 않았습니다(PRD B10). - **판단해 주세요**: "No, stay in Plan mode"는 세션 파일에 아무것도 쓰지 않아서, 행이 다음 턴까지 Needs You에 남습니다. - **판단해 주세요**: 세션 파일을 못 찾는 Codex pane(최근 7일 폴더 밖), 그리고 label generator lock이 없는 daemon(같은 Herdr를 따르는 두 번째 hided, 재시작이 겹친 뒤 최대 30초)에서는 Codex 종이 보류됩니다. - **조심해서 볼 파일**: `herdr-core/src/delivery/doorbell.rs` `judge` - failure path. 모름을 "대기 없음"으로 읽지 않습니다. - **조심해서 볼 파일**: `herdr-core/src/labels/overlay.rs` `waiting`, `labels/{worker,store}.rs` - seq 묶음과 serde 기본값으로 저장되는 새 필드. - **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs` - runtime mutex. overlay를 lock 밖에서 먼저 만들고 두 경로 모두 `observe_delivery`에 넘깁니다(main #743과 merge 해결 지점). - **조심해서 볼 파일**: `hide-session/src/turns.rs` - 대기를 언제 안다고 볼지 정하는 match. - **비용 검토**: 세션 읽기는 라벨 작업이 이미 하는 상태 변화 시 증분 읽기에 실리고, 새 파일 읽기, 프로세스, lock 안 I/O는 없습니다. ## Evidence - **확인한 것**: sealed verify S1 `cargo test --workspace`, S2 lint PASS(merge head 267aad3). 첫 두 시도는 base에서도 실패하던 pane process 테스트 때문이었고, main의 #743 수정으로 대체됐습니다. - **확인한 것**: `hide-session` 계약 테스트가 합성 Codex 0.160.1 계획 턴 표본으로 대기 시작, 다음 턴, 사람 메시지, aborted 턴, 질문으로 끝난 plan 턴, 모르는 형식, 증분 읽기와 rescan을 확인합니다. - **확인한 것**: core 테스트가 seq 묶음(이전 seq의 사실은 보류), 모름은 보류, 끝나지 않은 일반 턴은 울림, 요약 꺼짐, 재시작, 필드 없는 기기 helper, Claude Code 불변을 확인합니다. merge 뒤 focused herdr-core 298/298을 3회 돌렸습니다. - **확인한 것**: Playwright `codex-plan-approval.spec.ts`가 고정 Herdr와 hided 위에서 계획 대기 rollout이 행을 Needs You로 넣고, 다음 턴 기록과 상태 변화가 빼는 것을 확인합니다. 심은 결함에서 실패하는 것도 확인했습니다. - **확인한 것**: 격리 live(private socket의 고정 Herdr 0.9.3, private HOME, 이 브랜치의 hided 1560a90, 로그인된 Codex CLI 0.160.1, hooks 꺼짐): Herdr가 계획 메뉴를 `idle`로 읽는 동안 편지가 `awaiting_operator`로 한 번 기록되고 보류됐으며, 키 입력 0회, 메뉴 그대로였습니다. 승인 뒤 다음 턴이 끝나자 종이 한 번 울렸습니다. - **확인한 것**: Herdr는 계획 메뉴를 remote Codex manifest 2026.10.01.1에서는 `idle`로, 번들 2026.09.23.1에서는 `unknown`으로 읽습니다(문서에 manifest별로 적음). - **확인하지 못한 것**: B1 race 경우의 live 재현, 기기 pane live, 계획 대기 중 hided 재시작 live, 운영자의 실제 Codex hook 구성(live는 hooks를 끄고 세션을 직접 보고함). - **확인하지 못한 것**: live 검증이 `~/.codex/sessions`에 Codex rollout 3개를 남겼습니다(설정 변경 없음). AI tooling: native review subagents read the diff; their findings and dispositions are in the record below. <details><summary>Verification record</summary> - PRD: `agents/prd/codex-plan-approval-hold/prd.md` (sha256 e67aa258a404f1a493a93eec74933e5324e0fcbccbbf40ab605b23e78d819012) - Base 9f14487 → head 267aad3, verified 2026-10-07T15:55:58.411Z: PASS - Verification report: `agents/runs/codex-plan-approval-hold/verification-report.json` and `agents/runs/codex-plan-approval-hold/verification-report.md`; source fingerprint f5b5d1bca59a1702fd81feceebf3c2c3946c71d2f7d3503bac7eb4d8b6b4cf14 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Fidelity (1560a90, follow-ups to 6ab4ea3): Fix now - an unknown record format read as "nothing waits" (fb939cc, 6c96181); fixed. - Code (1560a90, follow-ups to 6ab4ea3): Fix now - bell kind mapping disagreed with the session-read kind (5c9342b), approving Enter not counted as the operator's submit at `unknown` (1bd5647), e2e negative check proved nothing (c6c9e75); fixed. A re-read of unsettled turns (8ad7ab8) was reverted (9c0f057) under PRD B10. - Security (1560a90, follow-ups to 6ab4ea3): no open Fix now. - Code, merge resolution only (84e189e): no Fix now. 267aad3 is a conflict-free merge of main (#708) on top, verified again. - Observer read of the doorbell verdict, the seq binding and both coordinator call sites (6ab4ea3): no Fix now. - Follow-up improvements: per-pane head-of-line letter judging (predates this diff), Codex sessions outside the seven newest day folders hold forever, turn_id length cap, phone reply typing Enter on a plan row. - Evidence: 8 registered (1 log, 3 file, 4 screenshot); paths are local to the run directory - agents/runs/codex-plan-approval-hold/evidence/live/core.jsonl - agents/runs/codex-plan-approval-hold/evidence/live/delivery-ledger.json - agents/runs/codex-plan-approval-hold/evidence/live/labels.json - agents/runs/codex-plan-approval-hold/evidence/live/needs-you-idle-plan-menu.png - agents/runs/codex-plan-approval-hold/evidence/live/needs-you-unknown-status.png - agents/runs/codex-plan-approval-hold/evidence/live/README.md - agents/runs/codex-plan-approval-hold/evidence/e2e/codex-plan-approval-waiting.png - agents/runs/codex-plan-approval-hold/evidence/e2e/codex-plan-approval-approved.png - Changed paths: 29 against main (more against the run start base 9f14487, which includes main merged in) </details>
yansfil
added a commit
that referenced
this pull request
Oct 16, 2026
Related: PRD grid-ahead-of-herdr (local), follows instant-pane-topology (#743) ## Summary In a tab with several panes, a zoom, divider drag, pane close or split moved the pane rectangles at once, but the text inside kept its old grid until Herdr confirmed the layout and the core sent the PTY size: the terminal looked like it stretched slowly. The core held that size on purpose, on the belief that Herdr sizes the PTY from the geometry it applies. On the pinned Herdr 0.9.3 it does not: the PTY is the controlling client's size through a zoom, a split and a sibling's close, which a new contract test pins. The hold is gone. The shell fits each terminal to the rectangle drawn for it the moment it is drawn, the node sends that size at once, and Herdr's later layout changes nothing when it matches. A timing record's frame watch now starts at that resize instead of at Herdr's confirmation. Two measurement fixes ride along: the topology scenario presses the current zoom chord, and a new pane's cwd answer republishes only when it would change the screen (one full publish saved per split or new tab at operator scale). ## Review - **판단해 주세요**: `hide-herdr-client/tests/it/real_herdr.rs` is where the D-14 contract test lives (the `os contract` lane runs on all three systems); the PRD named `hided/tests/it/real_herdr.rs`, which runs on Windows only. - **조심해서 볼 파일**: `herdr-core/src/runtime/events.rs` - `TerminalResize` no longer has a held branch; a resize now reaches the node whenever the core's recorded size differs (high-frequency path, under the runtime mutex). - **조심해서 볼 파일**: `herdr-core/src/runtime/op_timing.rs` - a resize marks every record on that pane that is drawn or applied; two operations on one pane share one resize (timing only, no behaviour). - **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs` - `pane_cwds_answer_publishes` skips a publish; the skip is wrong if a pane the screen shows at a stand-in could stay there, which `CatalogState::stand_ins` guards (failure path: a pane left in the wrong folder). - **조심해서 볼 파일**: `hide-node-link/src/lib.rs` - `TerminalControl::Resize` lost `force`; the enum does not deny unknown fields, so an older node reading a newer link and the reverse both parse. - **비용 검토**: per resize, `OpTimings::resize_sent` scans at most 64 open records with no allocation, and one `WatchFrame` goes out only when a record starts waiting; `stand_ins` holds at most `UNCONFIRMED_CWD_LIMIT` (64) entries and is replaced per publish; nothing new runs per tick or per frame. ## Evidence - **확인한 것**: the pinned Herdr 0.9.3 keeps a controller's 45x20 PTY through a zoom on and off and a sibling pane's close, read by `stty size` after each step and by the frame size the controller receives (new contract test, passed locally with `HIDE_E2E_HERDR_BIN`; the code reviewer ran it 42 times, 6 sequential and 36 concurrent, all green). - **확인한 것**: `pane_geometry` tests pin one PTY size per zoom at the drawing and none when Herdr confirms the same layout, a resize before the drawing starts no frame watch, and a refused operation sends nothing more. - **확인한 것**: same fixture, same machine, before (the bundle installed at the time, `0.4.1-main.e8c08186` by its Info.plist and the sha256 of its `hided`, which now sits beside the app as `hide-previous-0.4.1-main.e8c08186.app.bak`; it is main five commits past the merge base 7f02ba5, and that range touches no terminal, node or shell path, only `delivery.rs`; the installed app has since moved to `0.4.1-main.fdc68c74`, so a rerun against it is a different baseline) and after (release build of this branch), `MEASURE_SCENARIO=topology --isolated-headless`, operator scale (43 workspaces, 62 tabs, 66 panes, 30 agents, 5 printing), 10 rounds each, page clock from the key press to the first frame with the new grid: | op | before p50 / p95 ms (load 36-58) | after p50 / p95 ms (load 25-44) | | --- | --- | --- | | zoom | 94.1 / 110.2 | 24.1 / 42.1 | | unzoom | 27.4 / 412.3 | 27.9 / 33.5 | | close | 126.6 / 160.5 | 27.6 / 44.0 | | split | 97.4 / 1015.2 | 129.0 / 309.9 | | new_tab | 132.2 / 581.6 | 137.3 / 960.2 | After the change the first frame with the new grid arrives in the same frame as the rectangle (frame = screen for zoom, unzoom and close); split and new_tab wait for a pane that does not exist yet, so their path is unchanged and the difference is load noise. - **확인한 것**: `pane_op.timing` in the after run, operator scale: zoom first_frame p50 22 ms with the resize at the drawing (drawn p50 8 ms), and one `terminal.resize_settled` per operation (40 for 40), none on Herdr's confirmation; `pane.prediction_mismatch` 0. - **확인한 것**: the measured release binary was built from the tree between 310ef51 and 2bdedef; the two commits after it change only timing-record gating, comments, tests and the cwd-answer guard, none on the terminal path. - **확인한 것**: the contract test passed in the `os contract` lane on macOS, Linux and Windows (verify run 38922022691); the Windows branch asserts the frame size after each step but not `stty`. - **확인하지 못한 것**: the operator app's 146-170 ms split and new-tab layout->applied (PRD D-12) was not reproduced in the fixture at load 28 (p50 18 ms); the remaining suspect and the next measurement are in a follow-up issue the lead opens. - **확인하지 못한 것**: a pane close's sibling grid is proven by the page clock and by `drawn_ms` preceding `herdr_ack_ms`, not by a PTY-side read; the fixture's close ack is 36 ms, not the 0.7-4.3 s the operator saw. - **확인하지 못한 것**: a divider drag has no fixture scenario; its frame watch is registered at request time and is covered by the zoom test's path only. <details><summary>Verification record</summary> - PRD: `agents/prd/grid-ahead-of-herdr/prd.md` (sha256 d297b23b6fc270cf96e410bfcb6a81adf775e7a9cbd73fb6b85b1da7a45bcf1f) - Base 7f02ba5 → head c3ca056, verified 2026-10-16T15:10:33.388Z: PASS - Verification report: `agents/runs/grid-ahead-of-herdr/verification-report.json` and `agents/runs/grid-ahead-of-herdr/verification-report.md`; source fingerprint d6f3d096ef55aca1a20af4d5c9ba0183736a567b9bbbb4babff8e1f69fde2cc1 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Fidelity: reviewed 89e184d, 2bdedef and c3ca056 (closure, code read only). Fix now: stale grid-hold text in ARCHITECTURE.md and events.rs (fixed, 2bdedef); the before/after cited the operator log against the fixture (fixed, same-fixture runs cited above); the cwd-answer skip could leave a pane at its sibling's folder (fixed, c3ca056); the before run's build was unnamed (fixed, Evidence names 0.4.1-main.e8c08186 by its hided sha256, closure confirmed); the D-12/B12 follow-up issue was not opened (stands, the lead opens it at ship time). Follow-up improvements: no PTY-side evidence for a close's sibling grid; the one-resize-per-operation guard is asserted for zoom only, chains unobserved; the contract test splits before attaching and has no divider resize; observed (non-controller) panes reattach instead of resizing, unstated in UI_BEHAVIOR.md; no divider-drag fixture; a chained operation can take an earlier operation's resize for its frame; the Windows branch of the contract test asserts frame sizes only. - Code: reviewed 89e184d, 2bdedef and c3ca056. Fix now: the contract test judged every frame, which could fail on Windows on a queued old-size frame (fixed, 2bdedef judges the marker frame only); stale `force` comments in events.rs and terminal.rs (fixed, 2bdedef); the cwd-answer skip left a stand-in on screen when the announced cwd differed (fixed, c3ca056, closure confirmed). Follow-up improvements: two timing records on one pane share a resize; the unchanged-grid `incomplete` case is not asserted; no shell-layer test that a drawn zoom reports a resize before Herdr confirms; the contract test reads the PTY size at one instant. - Evidence: none registered separately. - Changed paths: 25 (see Files changed) - Delivery: mode pr, branch `grid-ahead-of-herdr`, base `main` </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.
Fixes #746
Related: PRD
agents/prd/instant-pane-topology/prd.md· follow-up with-hide/hide-private#95 · flaky #728 #729 #731Summary
lsof,codexusage HTTP, label fsync)을 worker로 옮겼습니다.커밋은 리뷰 단위입니다: 단계 기록(D-14), 새 탭(A), geometry(B), 이벤트 스레드(C), 문서와 측정. 빌드와 테스트는 HEAD에서만 했습니다.
base 9e9e6a94에서 만든 뒤
origin/main(Herdr 0.9.3) 위로 rebase했고, main이 이미 한 C의 일(경로와 git 탐색의PathIndex)은 버렸습니다.Review
make deploy는 버려지고 1초 전에 친 Enter만 들어갈 수 있습니다. 보관분 전체를 함께 버리는 쪽은 방금 친 키까지 잃어서 택하지 않았습니다. escape sequence와 붙여넣기는 한 덩어리로 와서 중간이 잘리지 않습니다.herdr-core/src/runtime/terminal_input.rs,web/src/keyTarget.ts- 키 라우팅. 틀리면 다른 터미널에서 명령이 실행됩니다.herdr-core/src/runtime/operations.rs,pane_prediction.rs,drawn_ahead.rs- runtime mutex 안의 예측과 탭별 줄.herdr-core/src/session_sync/coordinator.rs,sync_reads.rs- high-frequency path; cwd 재확인도 tick마다 worker로 갑니다.herdr-core/src/runtime/operations.rs의queue_pane_close/pump_geometry_queue,session.rs의ingest_session_with_focus_check- CI에서 찾은 회귀 수정. 닫기를 먼저 그리자 남은 pane의 ⌘W가 "close in progress"로 거절됐습니다. 이제 탭의 줄에서 기다렸다가, 앞 닫기가 끝나고 session 반영이 끝난 뒤 시작합니다.herdr-core/src/worktree_control.rs- 이 기능과 무관한 main의 테스트(Wait for every process under a closed pane's shell before its worktree folder is removed #721)를 고쳤습니다. 테스트 프로세스 자신의 pid를 shell로 써서,cargo test에서는 다른 테스트의 자식(git, zsh)까지 세어 항상 실패했습니다. 자식 프로세스 하나를 띄워 shell로 씁니다(Flaky test: herdr-core worktree_control a_pane_reports_each_running_process_once_and_never_the_systems_pids #746).web/src/actions.ts- main에서 이 기기 id가 node id가 되어 키 표시 조건을localDeviceId(rest())로 비교합니다.pane_op.timing기록 1개.Evidence
keys_for_a_new_tab_survive_an_update_before_herdr_lays_out_its_pane).verify-web.sh(web 1192, desktop 158),check-design-contract.mjs통과.close-policy가 수정 전 로컬 4/4 실패, 수정 후 7/7 통과입니다. 같은 경로의 Rust 테스트는 수정을 빼면 실패합니다.browser-agent(앱이 앞으로 옴)와terminal-links(화면 폭) 2개가 실패했습니다. 이 화면 환경 탓으로 보며, 둘 다 0ec8691 CI에서는 통과했습니다. 판정은 이 헤드의 CI에 맡깁니다.cargo test에서 항상 실패해서 이 PR에서 고쳤습니다(Flaky test: herdr-core worktree_control a_pane_reports_each_running_process_once_and_never_the_systems_pids #746, Review 참고).추가 증거
D-02 표 (Herdr 0.9.1, base 9e9e6a9, candidate 13980671). Key to screen, then key to the new pane's first frame (page clock, 20 rounds; p50 / p95 / max ms; target p95 100 and 200):
Hide share, Herdr's layout event to the snapshot sent (candidate
pane_op.timing; p50 / p95 / max ms; target p95 50):1-minute load: baseline operator 15.0, candidate operator 13.9, baseline double 43.5, candidate double 58.2.
두 배 규모 baseline은 4회차가 baseline의 느린 포커스로 측정 도구 제한 시간에 걸려 3회차 값을 썼습니다.
규모: 운영자(워크스페이스 43, 탭 62, pane 66, agent 30, 출력 중 5), 두 배(86, 124, 132, 60, 10).
idle: hided RSS 51 -> 34, 85 -> 67 MiB; Herdr CPU 중앙값은 운영자 규모 6.8 -> 8.5%. 두 배 규모 echo p95 258 -> 22 ms.
Herdr 0.9.3 spot run (rebased head a84a36ab, operator scale, 10 rounds so p95 is the max, load 44.5-53.2): screen p50 / p95 split 35 / 90, zoom 27 / 274, unzoom 27 / 37, close 25 / 63, new tab 42 / 181, switch 13 / 37 ms; Hide share p50 / p95 split 28 / 93, zoom 7 / 17, close 12 / 95, tab.create 20 / 280 ms; echo p95 18 ms.
B9 관찰 방법: 이전 pane은
cat이라 받은 키를 그대로 보여 줍니다. 단축키 직후 10-51 ms 안에 고유 문자열을 CDP 키로 친 뒤herdr pane read로 두 pane을 읽었습니다. rebase 전 수정 전 헤드의 첫 실행에서 새 탭 1회의 키가 사라졌습니다(core 로그terminal.input_delivered뒤terminal.input_discardedpane_gone). Herdr의 응답과 레이아웃 사이에 session update가 끼면, 아직 레이아웃에 없는 새 pane의 보관 입력을 사라진 pane으로 본 탓입니다.D-13/B21을 main 설계 위에서 코드로 확인한 자리:
agent.list,pane.get, cwd 재확인,workspace.get)는session_sync/sync_reads.rsworker로 갑니다.lsof는ports.rs의PortsReader(BackgroundRead)로 갑니다.codexusage HTTP는usage.rs의codex_background_read로 갑니다.labels/store.rs의save_later저장 스레드로 갑니다.PathIndex답을 30초 refresh까지 다시 씁니다.PathIndex::ask, Settings를 보는 동안의kit::hook_diagnosis, AI 설정 저장.리뷰에서 고친 것:
the_next_operation_in_a_line_waits_for_its_own_layout).구현 중 정한 가정:
changed: false답은 그 작업을 끝냅니다.[A-Za-z0-9_-]이고, 같은 id가 다른 출처로 오면 새 것이 이깁니다.backup/instant-pane-topology-178de4fc브랜치에 로컬로 남아 있습니다.남은 것(Follow-up):
PathIndex::ask가 두 번 일어날 수 있습니다(main 설계, 0.9.3에서 재현 미확인).Unchanged답Verification record
agents/prd/instant-pane-topology/prd.md(sha256 6e29d9b1a7fe1078767176f6fe97261f4e7b9687463b626bacde9865e788b861; amended 2026-10-07 for the 3 s held-input limit, D-11/B10)agents/runs/instant-pane-topology/verification-report.jsonandagents/runs/instant-pane-topology/verification-report.md; source fingerprint d8a40fb15180a5c29f645e8889697b994de183e0972a957b47ac55a54e4de0d5bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)Unchanged.pane_gone.session_failed.