Repository navigation
Ship software-factory-ui - #708
Merged
Merged
Conversation
…endency layout with a transitive reduction step
…heet and settings, with the sidebar place, secretary row, Open Factory command and Overview split
…e page actions of every state
…t sections they read
…iew target, and widen the Factory number fields
…the engine's codes, and build the create sheet's GitHub step on the preview
…the engine's answer
…ns, take screen actions as one strict factory_action event, and remember the secretary pane
…es, with judgments answered by the fixture provider
Each row's help text went through the shared settings row bare, so it took the page's body size and color and read larger than the row's own label; it now uses the settings note every other settings tab uses.
The chain's middle node drew a plain circle in the state's tone, so a done Task showed an open circle between two done neighbours. It now draws the icon the board, graph and chain cards draw for the same state, and the Screen / Factory sheet draws the running Task's node the same way.
The page was read again only when the summary moved or the screen acted, so a worker's decision, a comment from the CLI or a running attempt's growing log tail stayed off an open page until something else moved the summary. The engine thread now marks the page after each command and tick; the publisher still hands over only a page that changed.
…ning column, and finish late answers From the review of the Factory screens: - The create sheet shows the stage a failed project check stopped at and the engine's next action as written (gh auth login for a logged-out gh); the init_failed label no longer points at the origin remote. - When the engine refuses the sheet's own CI pick because the repository requires no checks, the sheet picks the detected commands, or none. - Factory 닫기 is disabled while the Running column holds any Task, as the engine refuses then, not only while one runs. - A request unanswered after 20 seconds still takes the engine's late answer, and its line says the Factory may still finish it. - A notice's result line shows for its first choice, since it has no suggestion. - The secretary's pane is remembered once a tab lists it; a refused or unanswered start ends without starting anything and goes to the log. - The screen path's busy refusal is spelled out and labelled, so the labels test holds the screen to it. - Unit tests for each, a request view exclusion test for Factory workers, and the request view's line back to the Factory in the end-to-end turn test.
An unlisted pane is refused, the listed one is kept, survives a restart, and a UI-state file written before the field existed loads with none.
…s stage labels apart
…ing, and wait behind Settings
…l, and never send an emptied number
…own request, and put back a number the field cannot take
… cue shortened text, and drop the Korean particle fallback
…outing long edges between cards
…sk once for a refused one, and cue a shortened goal
…ucture instead of a ref written in render
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>
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: 1단계 #682 (머지됨, 707ef2c) 위의 2단계 · PRD
agents/prd/software-factory-ui/prd.mdSummary
1단계(#682)로 Factory 엔진, 저장소,
hide factoryCLI가 들어왔지만 운영자는 터미널로만 볼 수 있었습니다.이 PR은 그 위에 Factory 화면을 얹습니다: 내 차례, 보드, 그래프, Task 페이지, 만들기 시트, 설정, 비서 패널.
코어 스냅샷에
factory와factory_task섹션이 생기고, 엔진 스레드가 비교해 달라졌을 때만 내보냅니다.화면의 모든 행동은
factory_action이벤트 하나로 1단계Command를 그대로 실어 보냅니다.사이드바 배지, 요청 뷰의 Factory 줄, ⇧⌘F 단축키가 Factory로 이어집니다.
리뷰 전에 함께 넣은 것 (마지막 push ceae33e 이후):
hide-platform/src/time.rs,hide-factoryClock 포트에utc_offset_ms).labels.test.ts가 지킵니다.[cut N bytes]표시를 결정, 시도 로그, 목표 어디에 있든 "… (줄임)"으로 보여 줍니다."local"대신 이 기기의 node id로 프로젝트를 고릅니다.라이선스: elkjs 0.12.0은 EPL-2.0 (또는 GPL-3.0-or-later)이고, hide(MIT)는 이를 수정하지 않은 번들 의존성으로 EPL-2.0에 따라 씁니다. 패키지된 앱은
elk-worker.min.js를 그대로 담습니다.Review
gh로그아웃 다음 행동)과 공지 접두사는 모든 언어에서 그대로 보입니다.herdr-core/src/factory/screen.rs- 엔진 스레드의 비교와 발행, high-frequency path.herdr-core/src/factory.rs- 명령과 틱마다touched(), 엔진 루프 안의 추가 일,SystemClock의 현지 시차.herdr-core/src/runtime/factory.rs- runtime mutex 안에서 보내는 이벤트와 거절 경로.snapshot_delta.rs,contracts/snapshot-wire-enums.json- snapshot wire에 새 섹션 둘.persistence.rs- coreui_state.factory_secretary_pane, 목록에 나온 pane만 기억.hide-platform/src/time.rs- Unixlocaltime_r/tm_gmtoff, WindowsGetTimeZoneInformation; 읽지 못하면 한 번 로그하고 UTC로 셉니다.hide-factory/src/summary.rs,adapters.rs- 엔진 요약의 날짜 경계 (Clock 포트에 메서드 하나).web/src/dependencyLayout.ts,web/src/TaskBoards.tsx- 공유 그래프 배치, worker 수명, 시간 제한, 구조별 배치 기억.factory프레임 하나; hided CPU 60초당 0.23-0.25초.PRD가 말하지 않은 곳의 가정
factory_actionevent carries the stage-1Command(strict decode, whitelisted verbs, one event per action), read as the PRD's "typed UI 이벤트 하나씩".my_turn, also while the project filter is set.ui_state.factory_secretary_pane; it starts with the Factory config'sdefault_runtime; its first prompt is English.checkverb is in the screen whitelist) but not remove one: the engine has no removal verb.labels.test.tsreading everyrefuse/Refusal::newreason inhide-factory/srcandherdr-core/src; an unlisted reason shows its code.stop_detailin the engine's item text) is not shown in 내 차례; only the coded reason is.무관한 발견:stays Korean in every interface language.init_failedwith a stage; the engine tells a logged-outghapart only in its English next action, so the sheet shows that sentence as written in every language. A code for that signal in stage 1 would let the screen label it.ci_checks_required.[cut N bytes]mark was, in decisions, attempt logs and the goal.Evidence
verify-cargo.sh test, S2 lint),verify-cargo.sh build --workspace, 코어 경계 검사, herdr-core/hide-factory/hide-platform 집중 테스트 865개, verify-web, design contract, Factory와 Overview e2e 9/9.factory.spec.ts(그래프가layered로 열림, 만들기 시트에서fixture프로젝트 선택),overview.spec.ts,s2.spec.ts.githubgh 시간 초과,codex_trust자식 pid (두 번),ssh_hosts주소 None,worktreesstale; 563c1a59의 첫 실행은 디스크가 가득 찬 순간 fixture의 git commit이 실패하고 (e2e 3개) 테스트 바이너리 하나가 실행 중 사라져 (S1) 실패, 다시 돌려 PASS.design/hide-screens.pen의 Factory 화면은scripts/pen-screens-factory.mjs가 씁니다.추가 증거
후속 개선:
factory_task_open은 다시 묻지 않아 Task 페이지가 로딩에 머묾.summary::build에 0이 아닌 시차를 넣는 Rust 테스트 (지금은local_day만 고정).[cut N bytes]도 줄임 표시로.gh로그아웃을 코드로 알리면 화면이 그 다음 행동을 번역할 수 있음.Verification record
agents/prd/software-factory-ui/prd.md(sha256 4102547e0dfc5f17ab8554209dd17eab92e83036646f14b414ed2369f19dd73b)agents/runs/software-factory-ui/verification-report.jsonandagents/runs/software-factory-ui/verification-report.md; source fingerprint bdf303ba6f2a0342e79a3de079ccceb9fff0e4f17a70ea7f4ec6dbe67e91359bbash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)landed와CheckoutSnapshot.landed가 이름만 겹침 (Follow-up)"local"필터를 9ed33d70에서 고침; 그 밖의 결함 없음