Repository navigation
Route Factory worker questions through tracked requests - #786
Merged
Merged
Conversation
This was referenced Oct 8, 2026
yansfil
added a commit
that referenced
this pull request
Oct 8, 2026
Related: #769, #786 ## Summary - 설치된 Grok, Pi, omp, Cursor, OpenCode를 기존 시작 화면에서 선택하고 지원 인자로 첫 지시를 보냅니다. - 검색과 Memory의 공급자 판별을 명시해 알 수 없는 세션을 Claude Code로 읽지 않습니다. - 인증된 연결의 실제 읽기 기능을 따로 확인하며, 감사한 이전 helper의 기존 기능을 유지합니다. - 새 읽기 기능을 위한 저장 확인, pane 닫기, 같은 세션 깨우기 경계를 기존 소유자에 추가합니다. - 여섯 PR 중 첫 공통 변경이며, 다섯 새 reader의 활성화는 각 후속 PR이 완료될 때까지 꺼져 있습니다.   ## Review - **판단해 주세요**: 지원하는 모델 인자의 목록을 읽지 못하면 기존처럼 비활성 기본값을 보여줍니다. - **조심해서 볼 파일**: `hide-node-link/src/link.rs`와 `readers.rs`는 연결별 기능과 decode 거부 경계입니다. - **조심해서 볼 파일**: `runtime/agent_sleep/dormant.rs`, `persistence.rs`는 저장 확인과 중복 실행 경계입니다. - **비용 검토**: wake 확인 대기 중에는 pane과 최대 256개 기록을 한 번씩 읽고, 변경을 기존 notifier로 알립니다. - **상한과 종료**: 기존 worker를 쓰며 진행 의도 4개, 180초 제한, 세대 검사와 종료 시 소유 해제를 유지합니다. - **후속 항목**: 오래된 Reopen 요청이 잠드는 중인 행 대신 이전 일반 복원 항목을 소비할 수 있는 P2가 남습니다. ## Evidence - **확인한 것**: sealed 필수 3개 suite가 모두 통과했으며 core 1,777개, web 1,288개, desktop 159개 테스트가 포함됩니다. - **확인한 것**: sleep/wake 회귀 18개가 통과했으며 실제 저장 파일과 외부 Herdr close/create/start/확인 경계도 검사했습니다. - **확인한 것**: Identity 독립 게이트와 이전 프로토콜·혼합 응답·교체된 연결 회귀 29개가 통과했습니다. - **확인한 것**: 격리 브라우저의 일곱 종류 메뉴, Pi 선택, 한국어 입력과 비활성 기본 모델을 관찰했습니다. - **확인한 것**: 이전 후보에서 실제 retained helper SSH 연결과 일반 교체, 기존 sleep 재현이 통과했습니다. - **CI**: Linux 네 shard와 Windows 브라우저, desktop e2e, 세 OS 패키징을 포함한 모든 필수 lane이 통과했습니다. - **확인하지 못한 것**: 실제 새 제공자 start·resume·fork, 패키지 앱의 native 화면과 로컬 전체 Playwright는 미실행입니다. - **미확인 원인**: 첫 legacy-sleep 준비 실패와 hook first-exec warmup 실패는 원인 미확인입니다. 변경 없는 재현과 이후 전체 suite는 통과했습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/session-readers-common-v2/prd.md` (sha256 9126b0c36344a96bebe9cc2e9d08f3eebbfc38dc704a585c56fc4c1dfbe044e6) - Merge-base 5ba348f, current accepted main tip 7a42024 → head eddaa24, verified 2026-10-08T16:58:41.341Z: PASS - Verification report: `agents/runs/session-readers-common-v2/verification-report.json` and `agents/runs/session-readers-common-v2/verification-report.md`; source fingerprint 4da488e1312397a66b032153d9bc7f8ede402925798c1731d5327f13c2cd3fbd - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-web.sh` (exit 0) - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Fidelity review: complete common B1-B6 review through 1ed704f and source integration review on exact eddaa24; no P0/P1. Original successful durable-owner coverage, independent Identity gate and dormant sole-resume authority findings closed. Parent/current-guide Model interpretation remains a human judgment alongside Code's literal-child concern. - Code review: complete common B1-B6 review through 1ed704f and source integration review on exact eddaa24; no P0/P1. Original Identity decode fence and dormant duplicate-authority fixes remain intact; accepted older ordinary-Reopen P2 and literal B1 Model presentation disagreement retain their closure conditions. - Security review: complete common B1-B6 review through 1ed704f and source integration review on exact eddaa24; no P0/P1. Authentication, immutable connection facts, path/owner retirement, write guards and private phone boundaries remain intact. Existing P2 and external-probe limits retained. - Final evidence closure: Fidelity, Code and Security independently checked the exact eddaa24 replacement report, all three current command logs, three new registered diagnostic artifacts and the complete five-file main5ba..7a interaction diff; no new P0/P1. Their complete prior B1-B6 review and supplemental policy dispositions remain incorporated. Accepted P2 follow-ups and unrun provider/native surfaces retain their stated limits. - Integration: ordinary merge of accepted main 5ba348f without conflicts or manual resolution; tree exactly matches precomputed ee5e456. Seventy-two of 78 common path blobs remain unchanged; all six interactions reviewed. GitHub had reported the previous head dirty and scheduled no CI; the old no-checks watch never granted merge authority. - Current report SHA256 ec4f773ca6710d0ce4cddd6a8e5053358aa8d36b9893103bb5594d75fc0fbb5c, input fingerprint f55fdc827c05242e1e46f533ecaef905b0c712f6606e257559c98881035cfa88, source fingerprint 4da488e1312397a66b032153d9bc7f8ede402925798c1731d5327f13c2cd3fbd, no exclusions or tree/input mutations. - Current command logs: S1 mechanical-1e7f95913dc6076b.log exit0/288.053s SHA256 f8e2c1a71110124bf983b054950dc0a7afd0b439e600ca21a758412373833f75; S2 mechanical-b64896c596730ee1.log exit0/81.765s SHA256 bf9179a2f23d8e9d172c0162c1a161a9a9c789946c245b0aabde00845a3d0899; S3 mechanical-3cc9f5d9093a2614.log exit0/5.625s SHA256 8e4bdfb11ddf9dd009b7946b2d21dab0371805b31c728033e7200dd861760978. - Base-tip follow-up: 7a42024 is not merged into this candidate; conflict-free prospective merge tree a14e1fd is uncompiled. Repository-configured premerge checks must validate current main before merge. The report binds baseTip7a and merge-base5ba without changing HEAD. - Failure disposition: original kit expectation and node-link test lint fixed in 2a5ca10; bounded immutable guard clone and equivalent confirmation filter lints fixed in 1ed704f. Unsupported inherited C.UTF-8 diagnosed independently; supported invocation-only en_US.UTF-8 makes unchanged watcher assertions pass. New same-head hook warmup FAIL retained: 20 copied-executable first-exec Deadlines before behavior assertions, cleanup unconfirmed. One unchanged case then all63 normal-parallel integration tests and final full suite passed. High load is correlation, cause/initial cleanup remain unknown. No test deadline, thread setting, exclusion or global environment change. - CI disposition: [verify run37809556284](https://github.com/modakbul-gongbang/hide/actions/runs/37809556284) attempt2 completed SUCCESS at2026-10-08T17:18:44Z on exact eddaa24. Attempt1 passed every planned lane except desktop e2e, which acquired no hosted runner and executed no steps; GitHub annotation names macOS arm64 capacity constraints. Failed-jobs-only retry acquired a runner, desktop e2e and its flaky reporter passed, and final aggregation passed. [Main7a verify run37810892341](https://github.com/modakbul-gongbang/hide/actions/runs/37810892341) also passed attempt2 after the identical infrastructure failure. Separate Design contract run37809554930 passed. No source, runner policy or assertion change was made for either retry. - Supplemental current-head checks: 209 Python policy tests, eight other repository gates and hakari pass; actual log SHA256 68c8f8f04f092c169e5ea7405fe6f22775515756b1568a529fd1d963e6679638. - Earlier surface provenance: screenshots and actual browser observation target f5f2, with no Start submitted; retained24 SSH and normal replacement target 0815, with no repeated actual SSH probe on this integration head. - Evidence: 40 registered (24 log, 13 file, 1 browser, 2 screenshot); paths are local to the run directory - agents/runs/session-readers-common-v2/common-integration-lib-fixed.log - agents/runs/session-readers-common-v2/common-cli-build.log - agents/runs/session-readers-common-v2/common-retained24-current.log - agents/runs/session-readers-common-v2/common-browser-regression.log - agents/runs/session-readers-common-v2/common-legacy-sleep-reproduction.log - agents/runs/session-readers-common-v2/common-review-fixes-libs.log - agents/runs/session-readers-common-v2/common-dormant-fixture-corrected.log - agents/runs/session-readers-common-v2/common-dormant-folder-owner.log - agents/runs/session-readers-common-v2/review-fidelity-0815.md - agents/runs/session-readers-common-v2/review-code-0815.md - agents/runs/session-readers-common-v2/review-security-0815.md - agents/runs/session-readers-common-v2/common-dormant-canonical.log - agents/runs/session-readers-common-v2/common-identity-gate-current.log - agents/runs/session-readers-common-v2/common-cli-rebuild-f5f2.log - agents/runs/session-readers-common-v2/review-code-f5f2.md - agents/runs/session-readers-common-v2/review-fidelity-f5f2.md - agents/runs/session-readers-common-v2/review-security-f5f2.md - agents/runs/session-readers-common-v2/manual-browser/aside-start-observation.txt - agents/runs/session-readers-common-v2/manual-browser/png_kinds.png - agents/runs/session-readers-common-v2/manual-browser/png_pi.png - agents/runs/session-readers-common-v2/manual-browser/cleanup.json - agents/runs/session-readers-common-v2/common-sealed-verify-f5f2-registered.log - agents/runs/session-readers-common-v2/common-kit-start-repro.log - agents/runs/session-readers-common-v2/common-node-clippy-repro.log - agents/runs/session-readers-common-v2/common-kit-start-fixed.log - agents/runs/session-readers-common-v2/common-node-fixed.log - agents/runs/session-readers-common-v2/common-node-clippy-fixed.log - agents/runs/session-readers-common-v2/common-watchers-locale-repro.log - agents/runs/session-readers-common-v2/common-watchers-supported-locale.log - agents/runs/session-readers-common-v2/common-core-clippy-2a5-repro.log - agents/runs/session-readers-common-v2/common-core-clippy-guard-fixed.log - agents/runs/session-readers-common-v2/common-dormant-guard-fixed.log - agents/runs/session-readers-common-v2/locale-diagnosis.json - agents/runs/session-readers-common-v2/review-code-2a5.md - agents/runs/session-readers-common-v2/review-fidelity-2a5.md - agents/runs/session-readers-common-v2/review-security-2a5.md - agents/runs/session-readers-common-v2/verification-report-2a5-fail.json - agents/runs/session-readers-common-v2/common-hook-warmup-single-repro.log - agents/runs/session-readers-common-v2/common-hook-warmup-integration-repro.log - agents/runs/session-readers-common-v2/hook-warmup-diagnosis.md - Changed paths: 78 (see Files changed) - Delivery: mode pr, branch `feat/session-readers-common`, base `main` </details>
yansfil
added a commit
that referenced
this pull request
Oct 9, 2026
<!-- hide-factory: f-73a54a0605/T-1 --> ## 목표 ## What happened Factory 질문 차단(PR #786) 작업 중 세 번, Factory 일꾼 pane이 정해진 시간 안에 수락된 일꾼(accepted worker)으로 바뀌지 않았습니다. 세 경우 모두 원인을 좁히지 못한 채 머지됐습니다. - 실제 Codex 0.160.1로 Factory task를 취소한 뒤 같은 일꾼을 되살리고(revive) thread를 resume했을 때, 새 pane이 4초 관찰 안에 수락된 일꾼으로 바뀌지 않았습니다. 문서에 적힌 재시도 간격은 30초입니다. - 전체 web e2e와 focused 재현에서 새 Factory 질문 spec이 "수락된 일꾼 30초 대기"에서 실패했습니다. 디스크 여유가 5GiB 있을 때 단독으로 돌려도 실패했습니다. 이후 focused 실행은 통과했지만, 원인을 고친 것으로 확인되지는 않았습니다. - 일꾼이 아닌 일반 pane은 READY를 보고했는데도 그 CLI가 12초에서 시간 초과됐습니다. 사용자 쪽 영향은, 되살린 일꾼이나 막 띄운 일꾼이 한동안 일꾼으로 인정받지 못해 Factory 질문 차단 같은 일꾼 전용 동작이 늦게 걸리거나 걸리지 않을 수 있다는 점입니다. ## What you expected 정상 경로로 띄운 일꾼과 되살린 일꾼 모두, 문서에 적힌 재시도 간격 안에 수락된 일꾼으로 바뀝니다. 바뀌지 않으면 그 이유가 진단 로그에 남습니다. ## Steps to reproduce 1. Factory에 task를 하나 넣고 Codex 일꾼을 띄웁니다. 2. 일꾼이 수락된 뒤 task를 취소합니다. 3. 같은 일꾼을 되살리고 thread를 resume합니다. 4. 새 pane이 수락된 일꾼으로 바뀌는 데 걸리는 시간을 30초 이상 관찰합니다. 부하가 높은 기기에서 `web/e2e`의 Factory 질문 spec을 반복 실행하는 것도 재현 후보입니다. ## Versions - hide: main be7ca5d (#786 머지) - Herdr: 0.9.3 - macOS: 15.1 - Codex: 0.160.1 ## Diagnostics #786 Review와 Evidence에 세 관찰이 적혀 있습니다. P9 코드 리뷰는 늦게 도착한 native 보고와 stable intent 수락 경로가 되살리기 실패와 같은 원인일 수 있는지 살폈지만 결론을 내지 못했습니다. ## 완료 조건 ## 결정 기록 ```text - 라벨로 들어온 Task입니다. 카드 초안을 확인해 주세요. -> confirm - 완료 기준(criteria)이 비어 있습니다. 무엇을 만족하면 이 Task가 끝난 것입니까? 원인 규명(진단)만 할지, 수정까지 포함할지도 정해져 있지 않습니다. -> 기준 예: (1) 되살린 일꾼이 재시도 간격(30초) 안에 수락된 일꾼으로 바뀌는 자동 테스트, (2) 전환 실패 시 이유를 진단 로그에 남기는 테스트, (3) web/e2e Factory 질문 spec을 부하 상태에서 N회 반복해 통과. - 세 관찰의 원인이 같은지 불명확합니다. 일반 pane의 CLI 12초 시간 초과도 이 Task 범위입니까? -> 일반 pane 시간 초과는 일꾼 전환과 별개일 수 있으므로 범위 밖으로 두고, 원인이 같다고 밝혀지면 그때 포함합니다. - '문서에 적힌 재시도 간격 30초'가 어느 문서의 어느 값인지 카드에 없고, 4초 관찰이 실패인지도 불분명합니다. 기준이 되는 값은 무엇입니까? -> 해당 문서와 상수를 카드에 명시하고, 30초 안에 전환되면 통과로 봅니다. - 재현이 불안정하고(단독 실행에서는 실패 후 통과) 실제 Codex 0.160.1이 필요합니다. 자동 검증은 어떤 방식으로 합니까? -> 실제 Codex 대신 fake agent로 취소→되살리기→resume 경로를 결정적으로 재현하는 Rust 테스트를 먼저 만듭니다. 실제 Codex 확인은 수동 증거로 별도 기록합니다. - 감시: The suggested retry for T-1 may fail the same way. The worker name factory-herdr-ide-t-1 is still held by an existing terminal (pane wJA:p1, status Unknown) in the same worktree. The board sho [cut 271 bytes] -> ok - done: 원인: 일꾼의 agent가 session을 5초 안에 보이지 않으면 spawn이 native_identity_unavailable로 끝나고, 엔진이 30초 뒤에야 다시 물어 수락이 35초 이상 늦어졌습니다(e2e의 30초 대기 실패와 같은 경로). 고침: (1) hide-factory engine: 시작한 지 30초 미만인 일꾼은 다음 tick마다 다시 묻고, 그 뒤는 문서대로 30초 간격입니다. (2) herdr-core factory host: 수락 안 된 시작은 worker.start_unfinished(stage, reason, waited_ms)를 reason당 한 번, 거절은 worker.start_refused, 수락은 worker.start_accepted를, 깨운 일꾼의 편지가 막히면 worker.wake_waiting/wake_delivered를 진단 로그에 남깁니다. docs/factory.md와 PERFORMANCE_TESTING.md 갱신. 검증: 새 engine 테스트 2개(옛 동작에서 실패 확인)와 host 테스트 6개 통과, hide-factory 172, herdr-core factory 49 통과, clippy와 fmt 통과. 실제 스택에서 shim의 session 보고를 8초 늦춰 factory-question-guard e2e를 돌리면 옛 간격에서는 30초 대기가 실패하고(start_unfinished waited 5397ms) 새 간격에서는 통과합니다(start_accepted waited 8768ms). factory-question-guard와 factory e2e 9개 통과. 확인 못 한 것: 실제 Codex 0.160.1의 취소-되살리기-resume(wake 경로)는 재현하지 못했고 이번에 추가한 wake_waiting 로그가 다음 관찰의 원인을 알려 줍니다. 세 번째 관찰(일반 pane CLI 12초)은 재현되지 않아 unrelated로 제안했습니다. ``` Closes #801
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.
Merged on a green
verifyrun (37746375845: Rust 3333 pass, Linux web e2e 222 pass, macOS desktop 62 pass, Windows and all packages green) and the pre-merge check against main 6472cb3. The local sealed verify did not finish: its last run failed five hide-kit fixture tests on 5 s command timeouts on one Mac, which pass in CI and in a later local rerun (148/148); the cause is not isolated.Summary
hide factory askwith a denial reason.Existing row at an earlier reviewed build; question content does not add a new UI surface.
Review
hided/src/pane_auth.rsandherdr-core/src/runtime/factory.rs.hide-agent-hooks/src/{install,guidance,lossless_json}.rs.herdr-core/src/labels/.Evidence
Additional evidence and limits
Current candidate:
a876b8a49d1abc6a55f807f63686357ae4229041.Accepted main included:
0a257a8d04738e12e376f0b4e74f18384226b5ec.The representative capture and native receipts pin earlier binaries; intervening source changes were independently reviewed.
The latest focused worker browser scenario passed without retries at
cc28d79f05b6c1121429ea80c75715b3ae88da60.The current Rust failure is five private fake-command 5-second timeouts, not an operator daemon operation.
The interrupted verification lease was recovered through the supported artifact command; the failed Rust result remains recorded.
Final native Codex production testing passed kit trust and normal worker acceptance, then stopped before a question attempt.
The accepted fallback combines actual hook-scope/model evidence, production kit/trust checks and the accepted-worker fixture.
A revived Codex pane missed a 4-second observation; the documented retry interval is 30 seconds and the cause remains unisolated.
A normal nonworker reported READY but its CLI timed out at 12 seconds; the cause remains unisolated.
Earlier local desktop background checks passed58 with8 remote/packaged-fixture skips;4 foreground specs were excluded.
Current CI desktop passed62 with8 remote/packaged-fixture skips, including4 foreground specs; no native pixel claim.
Source, requirements and security reviews have no open source Fix-now finding on this head; final evidence reviews remain pending.
The current CLI rebuild passed before the local full web run.
The first full web invocation omitted the evidence destination directory and failed before hided startup.
Its negative logs and first error remain retained; a separate prepared invocation now runs the same222 tests with retries0.
The complete current verify workflow succeeded: https://github.com/modakbul-gongbang/hide/actions/runs/37746375845.
It includes Rust, Linux web shards, Windows checks/E2E, macOS desktop E2E, all OS contracts and three package lanes.
CI nextest on Linux and local cargo test on macOS are distinct environments; passing CI does not isolate the earlier timeout cause.
The coordinating lead owns the eventual merge commit; this PR must not be merged while verification remains unsettled.