Skip to content

Pin Herdr v0.9.3 and resync the session replica on events_lost - #738

Merged
yansfil merged 5 commits into
mainfrom
chore/herdr-0.9.3
Oct 7, 2026
Merged

yansfil merged 5 commits into
mainfrom
chore/herdr-0.9.3

Conversation

@yansfil

@yansfil yansfil commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Summary

hide가 번들하는 Herdr를 v0.9.1에서 최신 stable v0.9.3(v0.9.2 기능 릴리스 + 핫픽스)으로 옮긴다.
scripts/bump-herdr.sh v0.9.3이 세 플랫폼 asset을 내려받아 검증하고 contracts/herdr-bundle.json, API 스키마, 핀을 인용하는 문서를 썼다. 프로토콜 revision은 22 그대로다.
v0.9.2부터 Herdr는 뒤처진 구독자에게 이벤트를 조용히 건너뛰는 대신 events_lost 에러를 보내고 연결을 닫는다.
지금까지 hide는 이 줄을 일반 스트림 에러로 받아 재구독과 새 snapshot으로 다시 맞추긴 했지만, 그 사이 Herdr를 stale로 게시해 사이드바에 "Herdr not responding"이 떴다. Herdr는 응답 중인데도.
이제 events_lost는 실패가 아니라 재동기화다: subscription.events_lost를 로그에 남기고, 마지막 projection을 화면에 둔 채 새 구독과 snapshot으로 교체한다. 재연결이 실패할 때만 화면에 닿는다.
또 0.9.2부터 Herdr는 규칙에 맞지 않는 Codex CLI 화면을 idle이 아니라 unknown으로 읽고, agent start --kind codex는 화면에 Codex CLI 시작 composer(› Ask Codex to do anything)가 보여야 성공한다. claude-shim을 codex로 복사해 쓰던 e2e 두 개가 그래서 시간 초과로 실패했고, shim이 codex 이름으로 실행되면 그 줄을 그리게 했다.

Review

  • 판단해 주세요: 운영자 서버가 0.9.3으로 옮겨지면 쉬고 있는 Codex CLI 행이 Herdr unknown으로 와서 ~(Unknown)로 그려질 수 있다. hide 상태 모델("unknown은 Idle로 그리지 않는다")대로이고, 닫기 확인에서 unknown 자손이 모두 닫기를 막는 것도 같다. 이 PR은 모델을 바꾸지 않았다.
  • 판단해 주세요: events_lost 재동기화 동안(재연결 지연 100 ms + 구독/snapshot 한 번) 화면은 직전 projection을 그대로 보여 준다. 설계 원칙 #13에 따라 운영자가 할 일이 없는 상태라 화면에 올리지 않았다.
  • 조심해서 볼 파일: herdr-core/src/session_sync/coordinator.rs EventsLost 분기 - failure path. 다른 구독 에러는 여전히 stale로 게시된다.
  • 조심해서 볼 파일: herdr-core/src/wire.rs parse_subscription_line - 스키마가 에러 코드를 열어 두어(ErrorBody.code: string) Socket API 문서의 events_lost를 경계에서 문자열로 알아본다.
  • 조심해서 볼 파일: web/e2e/shims/claude-shim.c - 실행 이름이 codex일 때만 시작 composer 한 줄을 그린다. Claude로 쓰일 때 출력은 그대로다.
  • 조심해서 볼 파일: contracts/herdr-api.schema.json - Herdr contract. 생성 타입 변경은 컴파일 수정 없이 통과했다(제거된 타입은 쓰지 않았고 추가된 필드는 모두 optional).
  • 비용 검토: 상시 작업 추가 없음. 계속 뒤처지는 스트림은 재연결 지연(성공 후 100 ms로 리셋, 연속 실패 시 5 s까지 두 배) 한 번마다 구독 하나와 snapshot 하나로 묶인다. 기존 스트림 에러 경로와 같은 상한이다.

릴리스 노트 항목별 판단 (v0.9.2, v0.9.3):

  • pane graphics API 제거 (pane.graphics.* → unknown_method): 영향 없음. hide 어디에도 호출이 없고(rg pane.graphics), 제거된 생성 타입도 쓰지 않았다.
  • events_lost (구독이 뒤처지면 에러 후 연결 종료): 위 변경. 프로덕션 Herdr 구독자는 session_sync/subscription.rs 하나뿐이고(로컬과 기기 모두 같은 coordinator), 그 reader는 소켓을 별도 스레드에서 무제한 채널로 바로 비운다.
  • 에이전트 자체 보고 상태와 resume (resume_argv): 영향 없음. hide는 custom 에이전트 상태를 보고하지 않고, 필드는 optional이라 요청 생성도 그대로다.
  • 새 pane의 TERM_PROGRAM=herdr, 바깥 터미널·Claude Code 세션 마커 제거: 영향 없음. hide는 TERM_PROGRAM을 읽지 않고, 세션 연결은 pane env가 아니라 Herdr의 agent_session과 hook으로 한다.
  • 복원 에이전트를 100 ms 간격으로 시작: 영향 없음. 서버 재시작 후 에이전트가 하나씩 나타날 뿐이고, replica는 이벤트로 받는다.
  • 워크스페이스 마지막 탭 닫기 확인: 영향 없음. TUI 키바인딩과 탭 메뉴에만 적용되고 CLI/API tab.close는 즉시 닫는다. hide는 API로 닫고 TUI를 띄우지 않는다. 기존 confirmation_required(worktree 그룹 전체를 닫는 경우) 처리는 그대로다.
  • integration 스크립트 버전: 0.9.1과 0.9.3으로 격리 HOME에 모든 integration을 설치해 비교했더니 OpenCode만 v12 → v13으로 올랐다. kit는 Hide가 설치한 outdated integration을 다음 kit 패스에서 다시 설치하고, 운영자가 직접 설치한 것은 그대로 둔다. integration status 출력 형식은 같다.
  • 생성 wire 타입: 추가 pane.clear, server.ssh_agent.register, 에이전트 completion_seq, pane restore_error, 서버 ssh_agent_registration; 삭제 PaneGraphics*와 graphics 이벤트. wire.rs 수정 없이 컴파일된다. completion_seq는 done 판정에 쓸 여지가 있지만 이 PR 범위 밖이다.
  • Codex CLI 상태 판정 (Codex is no longer reported idle during active output, #4507): 영향 있음. Herdr 소스(src/detect/manifest.rs의 assume_idle = agent != Codex, src/pane/agent_detection.rs의 codex_prompt_ready)와 격리 서버 재현으로 확인했다: 같은 가짜 codex 프로그램이 0.9.1에서는 3.8 s에 idle로 시작하고 0.9.3에서는 unknown에 머물러 agent start가 시간 초과된다. e2e shim을 고쳤고, 화면 영향은 위 판단 항목이다.
  • 그 밖의 Fixed 항목(pane 클릭의 Escape, 첫 작업 done 판정, live handoff 후 hook 상태 유지, 소켓 일시 오류 후 수락, 0.9.3의 Escape+키 단축키 복구 등): hide 코드 변경 불필요. 동작은 CI의 Herdr fixture e2e가 0.9.3에서 다시 확인한다.

설치 영향: 머지된 앱을 설치해도 운영자의 실행 중인 Herdr 서버는 0.9.1로 남는다. 데스크톱 호스트는 응답하는 서버를 교체하지 않는다.
서버를 0.9.3으로 옮기는 것은 live handoff뿐이며, 이것은 운영자가 승인해 따로 하는 단계다. 그 전까지 번들 CLI 0.9.3은 같은 프로토콜 22로 0.9.1 서버와 붙는다(사설 0.9.1 서버에 0.9.3 CLI로 status server, api snapshot, workspace create, agent list, terminal session control을 확인).

Evidence

  • 확인한 것: 계약 - check-herdr-contract.sh full scope가 격리된 0.9.3 서버(전용 HOME과 소켓, 상속 HERDR_* 제거)에서 pass (protocol 22, schema sha256 9e2af207…), check-herdr-schema.py와 check-herdr-pin-single-source.sh pass.
  • 확인한 것: 새 테스트 coordinator_resyncs_after_events_lost_without_reporting_herdr_stale - 가짜 Herdr 소켓이 events_lost를 보내고 재동기화 snapshot을 붙잡은 동안 status.herdr.state == "connected"와 직전 프로젝트가 남아 있음을, 풀어 준 뒤 새 snapshot으로 바뀜을 확인한다. events_lost를 일반 에러로 되돌리는 결함을 심으면 left: "stale"로 실패하는 것을 확인했다.
  • 확인한 것: verify-cargo.sh lint(fmt + clippy 전체 타깃), verify-web.sh(web/desktop typecheck, lint, test, build), web build, build -p hided, cli, 스크립트 suite, 정책 검사(harness anchor, agent asset, capability readers, workstation identity, worktree removal boundary, nightly report) pass.
  • 확인한 것: macOS에서 고정 0.9.3으로 Herdr에 민감한 web e2e 10개 spec 실행: s2, agent-close-contract, close-subtree, close-policy, new-tab, pane-focus-ordering, stale-snapshot-focus, agent-tab-names, recent, recent-agents-restart(shim 수정 후) 통과. agents-tab은 이 Mac의 /opt/homebrew/bin/opencode가 kit의 로그인 셸 PATH로 잡혀 "Installed 5"가 되어 실패했다(픽스처 환경 누수, 이 변경과 무관). 전체 web e2e는 CI가 돌린다.
  • 확인한 것: 고정 0.9.3에 대해 macOS에서 실제 Herdr suite 통과: OS contract(hide-platform, hide-herdr-client), hide-herdr-client real_herdr, hided real_herdr, herdr-core remote_delivery(사설 서버 둘과 loopback SSH).
  • 확인한 것: verify-cargo.sh test - herdr-core 1,600여 개를 포함해 이 변경이 닿는 크레이트는 통과했다. 이 Mac의 load average가 50~90이던 세 번의 전체 실행에서 변경 밖 타이밍 테스트가 번갈아 실패했다: herdr-core github::…closing_line…, ssh_hosts…는 단독 재실행에서 통과했다.
  • 확인하지 못한 것: hide-agent-hooks의 spawn_guard 2개(새로 복사한 실행 파일의 첫 실행 5 s 상한)가 부하 속 단독 재실행에서도 실패했고, codex_trust 1개(가짜 app-server 시작)는 전체 실행에서 실패한 뒤 다시 돌리지 않았다. 이 크레이트는 바뀐 코드에 의존하지 않으며 CI 결과로 판단한다.
  • 확인하지 못한 것: 실제 Herdr에서 events_lost를 일으키지 못했다(서버 이벤트 기록을 넘기는 부하가 필요). 동작은 Socket API 문서와 가짜 소켓 테스트로만 확인했다.
  • 확인하지 못한 것: desktop e2e와 패키지 앱 수동 확인은 로컬에서 돌리지 않았다(CI의 macOS desktop e2e와 package lane이 맡는다). 운영자의 서버와 /Applications/hide.app은 건드리지 않았다.

Move the bundled Herdr from v0.9.1 to v0.9.3 with scripts/bump-herdr.sh.
The contract drops the removed pane graphics methods and adds pane.clear,
server.ssh_agent.register, resume_argv on agent reports, completion_seq on
agents and restore_error on panes; the protocol revision stays 22.
Herdr 0.9.2 closes a subscription that falls behind its event history with
an events_lost error instead of skipping events. The coordinator now treats
it as a resync: it logs subscription.events_lost and reconnects with a fresh
subscription and snapshot, keeping the last projection on screen, so the
sidebar no longer reads Herdr as not responding while Herdr is answering.
Herdr 0.9.2 reads no idle Codex CLI screen as idle and lets
`agent start --kind codex` succeed only once the screen shows the Codex CLI
startup composer. The specs that copy `claude-shim` as `codex` timed out
in agent start; the copy now draws that line, as the Codex CLI does at
startup.
@yansfil
yansfil merged commit fffb3c0 into main Oct 7, 2026
22 checks passed
@yansfil
yansfil deleted the chore/herdr-0.9.3 branch October 7, 2026 10:16
@yansfil yansfil mentioned this pull request Oct 7, 2026
yansfil added a commit that referenced this pull request Oct 7, 2026
Related: 1단계 #682 (머지됨, 707ef2c) 위의 2단계 · PRD
`agents/prd/software-factory-ui/prd.md`

## Summary

1단계(#682)로 Factory 엔진, 저장소, `hide factory` CLI가 들어왔지만 운영자는 터미널로만 볼 수
있었습니다.
이 PR은 그 위에 Factory 화면을 얹습니다: 내 차례, 보드, 그래프, Task 페이지, 만들기 시트, 설정, 비서 패널.
코어 스냅샷에 `factory`와 `factory_task` 섹션이 생기고, 엔진 스레드가 비교해 달라졌을 때만 내보냅니다.
화면의 모든 행동은 `factory_action` 이벤트 하나로 1단계 `Command`를 그대로 실어 보냅니다.
사이드바 배지, 요청 뷰의 Factory 줄, ⇧⌘F 단축키가 Factory로 이어집니다.

리뷰 전에 함께 넣은 것 (마지막 push ceae33e 이후):

- 코드 리뷰 3회차의 결함 7개를 고침 (설정 검사 추가 중복, 받지 못하는 숫자 복원, Task 페이지 폼별 요청, i32
우선순위 상한, 받아들여진 답 뒤 보내기 비활성 등), 각각 jsdom 테스트와 함께.
- 흐름 막대의 완료 오늘을 이 기기의 현지 날짜로 셉니다. 전에는 UTC 날짜라 서울 오전 9시 전에 끝난 Task가
빠졌습니다. 엔진 요약을 바꾸는 유일한 변경이며 운영자가 이 PR에 넣도록 허락했습니다
(`hide-platform/src/time.rs`, `hide-factory` Clock 포트에 `utc_offset_ms`).
- 검증 n/3 수에 "검증 실패" 이름을 붙이고, 완료된 Task의 기준은 충족 체크로 그립니다.
- '{{answer}}(으)로 보내기' 대신 조사 없는 '보내기: {{answer}}'; Factory 문구 전체에서 한국어
조사 대체 표기를 없앴고 `labels.test.ts`가 지킵니다.
- 엔진이 줄인 글의 `[cut N bytes]` 표시를 결정, 시도 로그, 목표 어디에 있든 "… (줄임)"으로 보여 줍니다.
- 의존 그래프(Issues Dependencies와 Factory 그래프가 함께 쓰는 D-08 배치)의 배치와 선 경로만
elkjs layered로 바꿨습니다. 카드와 토큰은 그대로이고, 전이 축약은 Factory 그래프에만 남깁니다. elkjs는
그래프를 열 때 동적 import로 불러 Web Worker에서 돌리고, 3초나 카드 400장을 넘으면 열 배치로 남기며 진단
로그를 남깁니다.
- main(#664, node id) 병합 뒤 만들기 시트가 `"local"` 대신 이 기기의 node id로 프로젝트를
고릅니다.
- main(#692 node link, 그 뒤 #738 Herdr 0.9.3과 #733)을 병합했습니다; Factory 화면
포트는 Factory host 시작 직후 그대로 설치되고, 완료 오늘의 시간대 읽기는 2b가 노드로 옮길 기기 일로 경계 검사에
적었습니다.

라이선스: elkjs 0.12.0은 EPL-2.0 (또는 GPL-3.0-or-later)이고, hide(MIT)는 이를 수정하지
않은 번들 의존성으로 EPL-2.0에 따라 씁니다. 패키지된 앱은 `elk-worker.min.js`를 그대로 담습니다.

![내 차례 (ko, Light): 완료 오늘 9, 보내기:
ok](https://github.com/yansfil/pr-assets/blob/main/hide/software-factory-ui/9ed33d7/ko-light-turn.png?raw=true)

## Review

- **판단해 주세요**: 그래프 배치가 elkjs layered로 바뀌어 긴 선이 카드 사이로 돌아갑니다; Issues
Dependencies 화면에도 같은 배치가 적용됩니다 (아래 그래프 이미지).
- **판단해 주세요**: 내 차례 맨 위 항목이 펼쳐진 채 답 후보가 바로 보이는 밀도가 적당한지 (위 이미지).
- **판단해 주세요**: 엔진이 쓴 영어 문장(GitHub 읽기/쓰기, `gh` 로그아웃 다음 행동)과 공지 접두사는 모든
언어에서 그대로 보입니다.
- **판단해 주세요**: 새 번들 의존성 elkjs (EPL-2.0); 저장소에 제3자 고지 파일이 없어 고지 문구를 넣을
자리가 없습니다.
- **조심해서 볼 파일**: `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` - core
`ui_state.factory_secretary_pane`, 목록에 나온 pane만 기억.
- **조심해서 볼 파일**: `hide-platform/src/time.rs` - Unix
`localtime_r`/`tm_gmtoff`, Windows `GetTimeZoneInformation`; 읽지 못하면 한 번
로그하고 UTC로 셉니다.
- **조심해서 볼 파일**: `hide-factory/src/summary.rs`, `adapters.rs` - 엔진 요약의
날짜 경계 (Clock 포트에 메서드 하나).
- **조심해서 볼 파일**: `web/src/dependencyLayout.ts`, `web/src/TaskBoards.tsx`
- 공유 그래프 배치, worker 수명, 시간 제한, 구조별 배치 기억.
- **비용 검토**: 유휴 시 2분마다 바깥 읽기 시각이 바뀌어 22 KB `factory` 프레임 하나; hided CPU
60초당 0.23-0.25초.
- **비용 검토**: 열린 Task 페이지는 명령과 틱마다 다시 읽지만 같으면 버립니다; 우선순위 변경 20번에 프레임 20개.
- **비용 검토**: 그래프 배치는 같은 노드와 선이면 다시 묻지 않고, 거절된 구조는 한 번만 묻고 한 번만 로그합니다.
- **질문**: 아래 "PRD가 말하지 않은 곳의 가정" 중 바꿔야 할 것이 있는지.

<details><summary>PRD가 말하지 않은 곳의 가정</summary>

- One generic `factory_action` event carries the stage-1 `Command`
(strict decode, whitelisted verbs, one event per action), read as the
PRD's "typed UI 이벤트 하나씩".
- The 내 차례 tab count and the sidebar badge always show the global
`my_turn`, also while the project filter is set.
- With several Factories the board shows Factory after Factory in the
engine's order; the screen re-sorts nothing.
- The flow bar sums the shown Factories' flows; its read time is the
oldest GitHub read among them, stale when any is stale.
- Done today counts by this machine's local day, the day the operator
reads it on; a machine whose offset cannot be read counts in UTC and
logs once.
- The Factory screen is kept out of Recent Panels.
- 카드 고치기 (edit) opens the secretary, because the PRD has no edit form
and the engine's edit is a card re-add.
- The secretary row shows only while an open Factory exists; its pane is
remembered in core `ui_state.factory_secretary_pane`; it starts with the
Factory config's `default_runtime`; its first prompt is English.
- The create sheet asks the engine for a new preview on each project or
verification change and preselects the first detected candidate; it
lists this machine's projects only, because the engine reads local
folders.
- Settings can add a check (the `check` verb is in the screen whitelist)
but not remove one: the engine has no removal verb.
- The Overview's yellow count keeps its aria name '내 차례', which now
overlaps the Factory's 내 차례 (PRD Risks).
- ⇧⌘F was free and is now Open Factory; the shortcut test and the docs
table gained that row.
- The init preview's GitHub reads and writes are English sentences with
no codes; the sheet shows them as given in every language.
- Refusal reasons have no engine enum; the screen labels all 50, held
complete by `labels.test.ts` reading every `refuse`/`Refusal::new`
reason in `hide-factory/src` and `herdr-core/src`; an unlisted reason
shows its code.
- A stop's free-text detail (`stop_detail` in the engine's item text) is
not shown in 내 차례; only the coded reason is.
- The graph's placement and edge routes come from elkjs's layered
algorithm for both Issues Dependencies and the Factory graph (D-08 still
shares one layout); only the Factory graph drops transitive edges. Over
400 cards or 3 seconds the columns layout stays and a diagnostic is
logged.
- An engine notice's text is shown as the engine wrote it, so the
stage-1 prefix `무관한 발견:` stays Korean in every interface language.
- The Task page's chain lists the stored dependencies, including those
the graph leaves out as redundant (L-1 lists L-5, which also waits on
L-2 and L-4).
- B9 puts the time left on the line under the open item; the approved
picture puts the time cue at the item's right, where every item has it,
and the screen follows the picture.
- A failed project check is `init_failed` with a stage; the engine tells
a logged-out `gh` apart 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.
- With no required checks a GitHub repository still lists CI first; the
sheet's own first pick moves to the detected commands when the engine
refuses CI with `ci_checks_required`.
- Text the engine shortened shows a muted "… (줄임)" where each `[cut N
bytes]` mark was, in decisions, attempt logs and the goal.
</details>

## Evidence

- **확인한 것**: 푸시한 머리 a9370ae(main #738 병합)에서 sasu verify PASS (S1, S2),
CI 통과, build, 집중 테스트 865개, 코어 경계 검사, verify-web, Factory와 Overview e2e
9/9 (Herdr 0.9.3), 그 전 머리 563c1a59에서도 sasu verify PASS (S1
`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.
- **확인한 것**: 9ed33d70에서 web e2e 19/19: `factory.spec.ts` (그래프가
`layered`로 열림, 만들기 시트에서 `fixture` 프로젝트 선택), `overview.spec.ts`,
`s2.spec.ts`.
- **확인한 것**: 새 테스트: 서울 오전 9시 전에 끝난 Task가 그날의 완료로 세어짐 (Rust); 긴 L-1>L-5
선의 경로가 어떤 카드 상자와도 겹치지 않음, 카드 수 상한, 시간 제한 뒤 worker 종료, 같은 구조 재구성 때 배치 유지,
거절된 구조 한 번만 묻기 (vitest); 조사 대체 표기 없음, 줄임 표시, 충족 기준, 검증 실패 이름, 열 배치 대체
(jsdom).
- **확인한 것**: 격리된 후보 앱 네이티브 QA (9ed33d7, #692 병합 전, 1단계 Factory 사본,
ko/en x Light/Dark): 완료 오늘 9, 보내기: ok, 그래프 layered 선 10개, T-3 줄임 표시, 만들기
시트 프로젝트 calc와 fixture; #664 이전에 쓴 상태 폴더도 그대로 열림.
- **확인한 것**: B25 그래프 열기: 탭 클릭부터 layered 배치까지 23-302 ms (302 ms는 worker를
처음 불러오는 첫 열기), 네 번 모두 main thread long task 0개; 1.6 MB worker 파일은 한 번만
불러옴.
- **확인한 것**: 이전 B25, 50-Task Factory: 입력 echo p50 2.1 대 2.2 ms, p95 9.8
대 11.5 ms, 탭 전환 잡음 범위.
- **확인하지 못한 것**: B25는 debug 빌드, 통제되지 않은 부하; release, 스크롤, 실행 중 Task,
400장 넘는 그래프나 worker 시간 초과의 네이티브 확인 (단위 테스트만).
- **확인하지 못한 것**: GitHub를 쓰는 만들기 시트 전체 흐름 (실제 저장소에 Factory를 돌리지 않음), CI
대체 선택의 테스트, 비서 시작 hook의 단위 테스트, Pen 프레임 렌더.
- **확인하지 못한 것**: 부하 30-60에서 S1이 이 PR 밖 테스트로 실패했다가 단독 또는 재실행에서 PASS:
`github` gh 시간 초과, `codex_trust` 자식 pid (두 번), `ssh_hosts` 주소 None,
`worktrees` stale; 563c1a59의 첫 실행은 디스크가 가득 찬 순간 fixture의 git commit이
실패하고 (e2e 3개) 테스트 바이너리 하나가 실행 중 사라져 (S1) 실패, 다시 돌려 PASS.
- **생성물**: `design/hide-screens.pen`의 Factory 화면은
`scripts/pen-screens-factory.mjs`가 씁니다.

<details><summary>추가 증거</summary>

![그래프 (ko, Light): elkjs layered 배치, 긴 선이 카드 사이로
지나감](https://github.com/yansfil/pr-assets/blob/main/hide/software-factory-ui/9ed33d7/ko-light-graph.png?raw=true)

![Graph (en, Dark): layered
layout](https://github.com/yansfil/pr-assets/blob/main/hide/software-factory-ui/9ed33d7/en-dark-graph.png?raw=true)

![Task T-3 (ko, Light): 줄임 표시, 검증 실패 0/3, 완료 기준
체크](https://github.com/yansfil/pr-assets/blob/main/hide/software-factory-ui/9ed33d7/ko-light-task-T-3.png?raw=true)

![Create sheet (en, Dark): this machine's projects by node
id](https://github.com/yansfil/pr-assets/blob/main/hide/software-factory-ui/9ed33d7/en-dark-create-projects.png?raw=true)

후속 개선:

- 바깥 읽기 시각을 작은 별도 필드나 섹션으로 내보내, 시각 하나 때문에 요약 전체를 다시 보내지 않기; 엔진이 깨어날 때마다
요약을 다시 만드는 일도 함께.
- 행동 답이 그 행동이 바꾼 요약보다 먼저 옴 (화면마다 보정 중); 요약을 먼저 내보내기, 답은 별도 섹션으로.
- 큐가 가득 차 버려진 `factory_task_open`은 다시 묻지 않아 Task 페이지가 로딩에 머묾.
- 열린 Task 페이지는 프로세스에 하나이고 클라이언트가 떠나도 남음; 클라이언트별 소유로.
- 공유 그래프 worker: 한 그래프의 시간 초과가 대기 중인 다른 배치까지 끝냄 (각자 기한에 열 배치로 남음); 배치마다
시작 시각부터 재는 순차 큐로.
- `summary::build`에 0이 아닌 시차를 넣는 Rust 테스트 (지금은 `local_day`만 고정).
- 제목과 문장 속에 끼워 넣은 질문 글의 `[cut N bytes]`도 줄임 표시로.
- elkjs EPL-2.0 고지를 담을 제3자 고지 파일 체계.
- 그래프 확대/이동과 미니맵.
- CI 대체 선택 때 경고가 잠깐 보임; 무응답 뒤 다시 시도 버튼이 켜져 있음.
- 비서 시작 hook에 테스트 추가; 비서 pane id는 목록에 있는지만 확인하므로 Herdr가 재시작 뒤 id를 다시 쓴다면
신원 확인 추가.
- 1단계가 `gh` 로그아웃을 코드로 알리면 화면이 그 다음 행동을 번역할 수 있음.
- 설정 거절이 모든 칸의 입력을 되돌림; 거절된 칸만 되돌리기.
- 대기 중 add가 루프 끝 발행을 건너뜀 (이 PR 전부터).

</details>

<details><summary>Verification record</summary>

- PRD: `agents/prd/software-factory-ui/prd.md` (sha256
4102547e0dfc5f17ab8554209dd17eab92e83036646f14b414ed2369f19dd73b)
- Base e515726 → head a9370ae, verified 2026-10-07T11:00:50.045Z: PASS
- a9370ae is the merge of main fffb3c0 (#738 Herdr 0.9.3, #733) on
563c1a5; sasu implement verify passed on both heads (the first run on
a9370ae was stopped by the disk floor and rerun).
- Verification report:
`agents/runs/software-factory-ui/verification-report.json` and
`agents/runs/software-factory-ui/verification-report.md`; source
fingerprint
bdf303ba6f2a0342e79a3de079ccceb9fff0e4f17a70ea7f4ec6dbe67e91359b
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity (b6084f0): B5 init_failed 다음 행동, B22 Close 조건, B13 범위, B25
증거 범위 지적; 앞의 셋은 35f02bef에서 고침, B25는 아래 확인하지 못한 것에 남김
- Code (b6084f0): Medium 5건(secretary 기억 재시도, config 무응답 deadline,
factory_busy 라벨, 늦은 답 유실, Task 페이지 재읽기) 모두 f3fc7d0, 35f02be,
0847812a에서 고침
  - 병합 뒤 후속 리뷰 (0847812, 5d5eb89): Fix now 없음; Follow-up은 아래 목록
- 두 번째 main 병합 뒤 후속 리뷰 (4bdaa80): Fix now 없음; Factory task 상태 `landed`와
`CheckoutSnapshot.landed`가 이름만 겹침 (Follow-up)
- PR 코드 리뷰 1회차 (4bdaa80): 10건; 5건을 0c9a4a1c에서 고침 (자세히 위 Enter, 한글 조합 중
Enter, 거절된 설정값 복원과 중복 전송, 설정 위 ⇧⌘F, 보관만 남은 보드); 나머지 5건은 Follow-up 또는 변경
없음
- 고친 커밋 후속 리뷰 (0c9a4a1): Fix now 없음; 다시 입력한 값 재전송과 문서 문구를 7d87084f에서 반영
- PR 코드 리뷰 2회차 (7d87084): 8건; 6건을 ceae33e1에서 고침 (check/close 답에 config가
없어 설정 화면이 깨짐, 만들기 시트가 이전 프로젝트 답을 다시 읽음, 비운 숫자가 0으로 감, 폼 입력 유실, 받아들여진 답
재전송, 사라진 Factory의 Task 로딩); 2건 Follow-up
- PR 코드 리뷰 3회차 (ceae33e): 10건; 7건을 edd3e432에서 고침, init probe는 변경 없음, 2건
Follow-up
- 977/986 수정 후속 리뷰 (11b2af7): Fix now 2건 (스냅샷마다 그래프 배치가 열 배치로 돌아감, 거절된
배치를 스냅샷마다 다시 물음) 모두 a1965fc, 6c8f90fb에서 테스트와 함께 고침; Follow-up 4건은 위 목록
- main(#664) 병합 뒤 후속 리뷰 (9ed33d7): 병합에서 찾은 만들기 시트의 `"local"` 필터를
9ed33d70에서 고침; 그 밖의 결함 없음
- main(#692, node link) 병합 뒤 후속 리뷰 (7e018cc, 563c1a5, 마지막): 결함 없음;
Factory 시계의 시간대 읽기를 2b가 옮길 기기 일로 경계 검사와 ARCHITECTURE에 적음 (563c1a5)
- Evidence: 41 registered (11 file, 22 screenshot, 8 log); paths are
local to the run directory
  - agents/runs/software-factory-ui/qa/native/RECORD.md
  - agents/runs/software-factory-ui/qa/native/ko-light-graph.png
  - agents/runs/software-factory-ui/qa/native/ko-light-graph-right.png
  - agents/runs/software-factory-ui/qa/native/ko-dark-board.png
  - agents/runs/software-factory-ui/qa/native/en-light-turn.png
  - agents/runs/software-factory-ui/qa/native/en-dark-settings.png
  - agents/runs/software-factory-ui/qa/native/ko-dark-settings.png
  - agents/runs/software-factory-ui/qa/native/ko-light-task-T-9.png
  - agents/runs/software-factory-ui/qa/native/en-dark-task-T-1.png
  - agents/runs/software-factory-ui/qa/native/status.json
  - agents/runs/software-factory-ui/qa/native/facts.json
-
agents/runs/software-factory-ui/qa/design-review/states/light-1440-long-x1.png
-
agents/runs/software-factory-ui/qa/design-review/states/dark-1440-long-x1.png
  - agents/runs/software-factory-ui/qa/design-review/report.md
  - agents/runs/software-factory-ui/qa/native/CORRECTION.md
  - agents/runs/software-factory-ui/qa/b25/RECORD.md
  - agents/runs/software-factory-ui/qa/b25/b25-matched.json
  - agents/runs/software-factory-ui/qa/b25/run1.json
  - agents/runs/software-factory-ui/qa/b25/b25-idle.json
  - agents/runs/software-factory-ui/qa/b25/idle-frames.json
  - agents/runs/software-factory-ui/qa/b25/zz-b25-matched.spec.ts.txt
  - agents/runs/software-factory-ui/qa/b25/zz-b25-idle.spec.ts.txt
  - agents/runs/software-factory-ui/qa/native2/RECORD.md
  - agents/runs/software-factory-ui/qa/native2/CORRECTION.md
  - agents/runs/software-factory-ui/qa/native2/facts.json
  - agents/runs/software-factory-ui/qa/native2/ko-light-graph.png
  - agents/runs/software-factory-ui/qa/native2/en-dark-graph.png
  - agents/runs/software-factory-ui/qa/native2/ko-light-graph-right.png
  - agents/runs/software-factory-ui/qa/native2/ko-light-task-T-3.png
  - agents/runs/software-factory-ui/qa/native2/ko-light-task-T-1.png
  - agents/runs/software-factory-ui/qa/native2/ko-light-turn.png
  - agents/runs/software-factory-ui/qa/native2/en-light-graph.png
  - agents/runs/software-factory-ui/qa/native2/ko-dark-graph.png
  - agents/runs/software-factory-ui/qa/review/merge-664-review.md
  - agents/runs/software-factory-ui/qa/native3/RECORD.md
  - agents/runs/software-factory-ui/qa/native3/facts.json
  - agents/runs/software-factory-ui/qa/native3/ko-light-graph.png
  - agents/runs/software-factory-ui/qa/native3/en-dark-graph.png
  - agents/runs/software-factory-ui/qa/native3/ko-light-turn.png
- agents/runs/software-factory-ui/qa/native3/en-dark-create-projects.png
  - agents/runs/software-factory-ui/qa/review/merge-692-review.md
- Changed paths: 634 (see Files changed)

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant