Skip to content

feat: show plans and missions as checklists, progress chips and a map-first mission page - #1679

Merged
yansfil merged 5 commits into
mainfrom
gen-prd/mission-plan-visibility
Oct 25, 2026
Merged

yansfil merged 5 commits into
mainfrom
gen-prd/mission-plan-visibility

Conversation

@yansfil

@yansfil yansfil commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Related: PRD agents/prd/mission-plan-visibility/prd.md (레이어 1: 화면만, 지금 있는 데이터로. 코어·CLI·배너는 레이어 2 PR)

Summary

  • 계획과 미션이 어디까지 왔는지 pane에서 한눈에 안 보였고, 작은 맵 팝오버는 글자가 잘리고 상태 색이 섞여 읽기 어려웠습니다.
  • pane의 계획 칩과 미션 칩이 단계·노드마다 한 칸씩 상태 색 막대와 정확한 n/m을 보입니다. 20칸을 넘으면 같은 상태끼리 길이 비율로 합칩니다.
  • 계획 팝오버는 맵 대신 순서 있는 체크리스트(지금 단계 표시, 병렬 단계 들여쓰기), 끝난 계획은 ✓ m단계 끝과 산출물로 접습니다. 기록 열기 footer는 없앴습니다.
  • 미션 팝오버는 도는 노드와 단계, 끝남 k · 다음 j, 끝난 미션은 보고 두 줄과 결과 세 개를 보입니다. Conductor pane 둘째 줄은 ! <판단> 또는 도는 중 n · ….
  • 미션 페이지는 탭 없이 한 장: 상태·시간·칸·범례 머리, 카드 테두리 전체가 상태(↻n ✎ ! 배지), 한 시간축의 흐름 표, 끝난 미션은 보고와 결과 표가 맵 앞에 옵니다.

Conductor pane: mission chip with progress cells and its popover (nodes at work, done/next tally)

Mission page: head with legend, whole-border card states, and the 흐름 table on one time axis

Review

  • 판단해 주세요: Conductor pane에서 도는 노드가 없으면 둘째 줄을 비웁니다(PRD B9 그대로). 그동안 Conductor 자신의 계획 줄이나 진행 줄은 대신 서지 않습니다.
  • 판단해 주세요: 판단(!) 배지는 held 노드 모두에 미션의 질문 하나를 보입니다. 어느 노드의 판단인지는 레이어 2의 decide --node가 정합니다.
  • 조심해서 볼 파일: web/src/MissionMap.tsx - 페이지 전체를 다시 썼습니다(카드, 흐름 표, 행 펼침, 결과 표). 상태별 분기가 많습니다.
  • 조심해서 볼 파일: web/src/PaneHeaderBand.tsx - pane 머리 줄의 우선순위를 바꿨습니다. 미션 pane은 미션 줄만 씁니다.
  • 조심해서 볼 파일: web/src/missions.ts - nodeResult가 조사·검증 줄을 끝난 뒤에만 결과로 읽습니다. 도는 동안은 진행 줄입니다.
  • 비용 검토: 새 상시 작업은 분 단위 시계 하나(useMinuteClock, 열린 미션 페이지의 흐름 표만 구독)와 계획 팝오버가 열려 있는 동안의 ResizeObserver 하나입니다. 스냅샷 wire와 코어는 바뀌지 않았습니다.

Evidence

  • 확인한 것: scripts/verify-web.sh 통과(web 2136, desktop 260, lint, 타입, 빌드), check-design-contract.mjs 통과, Playwright e2e mission-map.spec.ts·plan-review.spec.ts 2/2(격리된 Herdr와 hided).
  • 확인한 것: 새·바꾼 단위 테스트가 칩 칸과 n/m·접근 이름, 30단계 계획의 칸 합치기, 체크리스트 순서와 접기, 카드 상태·배지·접근 이름, 흐름 표 막대·필터·행 펼침, 끝난/취소 미션 순서, Conductor 둘째 줄을 확인합니다.
  • 확인한 것: 갤러리에서 진행 중·끝남·취소·PR 없음 미션, pane 팝오버 진행 중·끝남·취소, 계획 진행 중·끝남을 한국어 다크와 영어 라이트로 캡처해 눈으로 봤습니다.
  • 확인하지 못한 것: 패키지된 앱에서의 네이티브 확인은 하지 않았습니다. 팝오버가 놓인 뒤 지금 단계로 스크롤되는지(B5)는 jsdom이 레이아웃을 안 해서 단위 테스트로 못 잡고, 갤러리 캡처로만 봤습니다.
  • 확인하지 못한 것: 레이어 2 범위(이벤트 목록, 판단 배너의 이유·선택지·추천, 답 보내기, node --commit/--verdict)는 이 PR에 없습니다.
추가 증거

Plan chip popover as an ordered checklist with the current step marked

Finished mission: report folded at three lines and a results table before the map

Verification record
  • PRD: agents/prd/mission-plan-visibility/prd.md (sha256 2392c4808502efa0bb46c57e1425f915cc7f33f1c9ab0c603e44888b86d46fa2)
  • Base 12cdde5 → head b73cdb1, verified 2026-10-25T16:07:59.054Z: PASS
  • Verification report: agents/runs/mission-plan-visibility/verification-report.json and agents/runs/mission-plan-visibility/verification-report.md; source fingerprint 3f1d0230a1940f9113f539a950ff1d91236d7b04d325104bd64ab37e4a100d85
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • Fidelity (c1dd695): Fix now 6. Research/verify line read as a result while running: fixed (8eb47be). Held ! badge missing (B16): fixed. Current step revealed before the popover was placed (B5): fixed, re-reveals on resize. Gallery captures predated fixes: recaptured at aafa23e. B9 fell back to the agent's progress: fixed to the PRD's empty line. Conclusion not labelled in the row: fixed (결론/결과).
    • Code (c1dd695): Fix now 6. Same result gating: fixed. Conclusion under 지금: fixed. Finished-plan fold leaked into the record and node row: fixed (popover only). Badges unreachable by keyboard: card accessible name carries them. Dead keys and token: removed. Conductor plan line: kept the PRD B9 behavior instead (no line).
    • Follow-up (8eb47be): Fix now 3: a waiting or failed node lost its line in the row, held name repeated "Held", cancelled row still said 지금; all fixed (d13abc4). Follow-up (d13abc4): Fix now 1, cancelled held card still read its question; fixed (aafa23e). Closure check on aafa23e: no Fix now. Merge of main (b73cdb1, import-block conflict in PanePlanChip.tsx): closure check found no Fix now; main's drag guard in usePaneChipPopover reaches both chips.
    • Deferred follow-ups: stop revealing after the operator scrolls, failed verify in the results table (B23 lists done nodes), per-node decision for ! (layer 2), merge_wait reads as ended because the core sets closed_at, the 지금 filter lists a cancelled mission's unfinished nodes, direct unit tests for orderByDependencies and planCells.
  • Evidence: none registered separately.
  • Changed paths: 35 (see Files changed)
  • Delivery: mode pr, branch gen-prd/mission-plan-visibility, base main

…s and a map-first mission page

The pane chip says 계획 or 미션 with a cell per step or node, the plan popover
is a dependency-ordered checklist, the mission popover lists the nodes at
work or what a finished mission left, and neither has a record footer. The
mission page in the 보기 slot reads head, banner, map and one 흐름 table, its
cards bordered by state from one set of mission tokens, its results worded by
node kind, and a finished or cancelled mission leads with its report and
results.
…visibility

# Conflicts:
#	web/src/PanePlanChip.tsx
@yansfil
yansfil merged commit dd4f1e1 into main Oct 25, 2026
27 checks passed
@yansfil
yansfil deleted the gen-prd/mission-plan-visibility branch October 25, 2026 16:32
yansfil added a commit that referenced this pull request Oct 26, 2026
…rom events (#1683)

Related: #1679 (layer 1, 계획과 미션 지도 화면)

## Summary

- 미션이 판단을 기다릴 때 운영자는 Conductor 대화로 가야만 답할 수 있었고, 미션 지도는 노드가 언제 무엇을 했는지
보여 주지 않았습니다.
- 이제 미션 지도 위 배너가 질문, 이유, 멈춘 노드, 기다린 시간, Conductor의 선택지(추천 표시)와 `직접
답하기…`를 보여 주고, 고른 답은 core가 Conductor 대화에 `[판단 답] <질문> → <답>`으로 입력합니다. 작업
중이면 편지처럼 차례를 기다립니다.
- core가 미션마다 사건 기록(최대 500개, 넘친 개수 보존)을 따로 저장하고, 흐름 표는 그 기록으로 막대를 상태별
구간으로 나누고 `⑂ ↓ ! ✓ ⊘ ✎ ×` 표시를 얹습니다.
- 결과 표에 노드의 커밋과 검증 판정(PASS/FAIL, 통과 수)이 나오고, `hide mission
decide`/`node`에 `--why --option --recommend --node`, `--commit --verdict
--checks`가 생겼습니다.
- 답을 받지 못하는 Conductor(OpenCode, Pi, omp, Antigravity)는 배너 버튼이 꺼지고 대화로
안내합니다.
- Herdr가 입력 응답을 주지 않아 답이 들어갔는지 모르면, 답은 `전달 확인 안 됨`으로 남고 운영자가 `다시 보내기`를
누를 때만 한 번 더 입력됩니다. Hide가 그 사이에 꺼져도 다시 입력하지 않습니다.

![판단 배너: 질문, 이유, 멈춘 노드, 선택지와 추천, 직접 답하기; 아래 흐름 표는 사건 구간으로 나뉜
막대](https://github.com/yansfil/pr-assets/blob/main/hide/mission-plan-visibility/218f192/mission-decision-880-ko-dark-crop.png?raw=true)


## Review

- **판단해 주세요**: 답 입력을 받는 에이전트를 doorbell이 울리는 셋(Claude Code, Codex,
Grok)으로 한정했습니다. 나머지는 대화에서 답하게 둔 결정이 맞는지.
- **판단해 주세요**: 배너의 추천 선택지를 채운 버튼 + `추천` 태그로 표시한 것(첫 스크린샷).
- **조심해서 볼 파일**: `herdr-core/src/runtime/mission_events.rs`,
`herdr-core/src/mission_events.rs` - runtime mutex 안에서는 새 사건만 Arc로 넘기고,
저장 스레드가 자기 기록 사본에 이어 붙여 씁니다. 스냅샷은 core의 목록을 Arc로 공유합니다. 미션이 닫히는 두
경로(close, 머지 완료) 모두 판단을 끝내는지.
- **조심해서 볼 파일**: `herdr-core/src/delivery/doorbell.rs` 답 입력 경로 - failure
path. Conductor가 30초 넘게 없거나 기기가 끊기거나 입력 전에 실패하면 답을 버리고
이유(`conductor_gone`, `device_disconnected`, `send_failed`)를 배너에 남깁니다.
`agent.prompt`를 부른 뒤의 실패·타임아웃은 `unconfirmed`로 남고, 부르기 직전에 기록에 저장합니다.
- **조심해서 볼 파일**: `contracts/snapshot-wire-enums.json`,
`web/src/snapshot.ts` - snapshot wire. `mission_events`는 보기 칸에 열린 미션
하나에만 실립니다.
- **비용 검토**: 사건은 상태가 실제로 바뀔 때만 기록됩니다. 미션당 500개 상한, 한 줄 600자 상한이 있고, 시작할
때 고아 파일을 지웁니다. 상한을 넘은 사건은 처음과 100개마다 진단 로그에 남깁니다.

## Evidence

- **확인한 것**: sasu verify가 이 head에서 cargo 전체 테스트와 lint를 통과했고, web
검사(`verify-web.sh`)와 디자인 계약은 마지막 web 변경 뒤에 통과했고, 미션 지도 e2e는 core 사건으로 그린
막대(작업 구간과 살아 있는 끝)를 실제 hided로 확인합니다. 미션 판단 닫기, 30초 부재 유예, 실패 이유 해제를 core
테스트로 고정했습니다.
- **확인한 것**: 작업 중 답 입력이 턴을 끊지 않는지 macOS 격리 Herdr에서 쟀습니다. Claude Code
2.1.310은 작업 중 읽은 뒤 도구 결과 4개를 이어 받고 한 턴으로 끝났습니다(추가 사용자 턴 0). Codex
0.164.0은 12번 호출 중 4번째 뒤에 받은 답을 확인한다고 말하고 나머지 8번을 같은 턴에서 이어 갔습니다.
- **확인한 것**: Codex 측정은 HOME과 모든 XDG 폴더, Herdr 설정, 세션, 소켓을 따로 두고 에이전트를
띄우기 전에 워크스페이스 0개를 확인한 조건에서 했습니다.
- **사고**: 첫 직접 측정에서 `XDG_CONFIG_HOME`을 따로 두지 않아 격리 Herdr가 운영자의
`session.json`을 읽고 워크스페이스 62개와 에이전트 약 20개를 이어 띄운 뒤 파일을 덮어썼습니다. 서버를
SIGKILL로 멈추고 시작 시 스냅샷으로 파일을 되돌렸으며, Observer가 운영자 Herdr 62개 워크스페이스가 정상임을
확인했습니다.
- **확인하지 못한 것**: Grok의 작업 중 답 입력, Windows와 Linux의 답 입력은 재지
못했습니다(`docs/INSTALL.md` 지원 표에 칸으로 남김). 설치된 앱에서의 실제 미션 판단 왕복도 확인하지 않았습니다.
- **확인한 것(운영자 결정 두 건)**: Herdr가 `agent.prompt`에 타임아웃을 내는 가짜 Herdr로, 답이 한
번 입력된 뒤 이후 패스에서 다시 입력되지 않고 `unconfirmed`로 남는 것을 doorbell 테스트로 확인했습니다. 다시
보내기 한 번만 입력되고 두 번째 누름은 아무것도 하지 않는 것, 재시작 사이에도 다시 입력하지 않는 것은 core 테스트로,
열린 미션의 사건 목록이 core 목록과 같은 Arc를 공유하는 것도 core 테스트로 고정했습니다.
- **확인하지 못한 것(후속)**: 확인과 전송 사이의 이어받기 경쟁(이어받은 뒤 옛 pane에 입력될 수 있음), 입력 전
실패 시 답 폐기, 다시 보내기가 첫 답 시각으로 차례를 재는 점, 저장 스레드가 미션별 기록 사본을 따로 들고 있는 메모리,
입력 직전의 기록 저장이 동기 저장이 아니어서 그 몇 ms 사이 강제 종료 시 남는 위험, 입력 중 판단이 끝날 때 사건 미기록,
같은 pane에 같은 회차 편지와 답, 흐름 표시의 키보드 초점, 다시 열기와 이어받기의 사건 미기록, 이미 머지된 PR을 처음
볼 때 `PrMerged` 누락, 너무 긴 `--why`의 일반 거절 문구.

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

![입력 확인이 안 된 답: 전달 확인 안 됨과 다시
보내기](https://github.com/yansfil/pr-assets/blob/main/hide/mission-plan-visibility/94ca3b4/mission-decision-unconfirmed-880-ko-dark-crop.png?raw=true)

![답을 고른 뒤: 보낸 답과 Conductor 차례를 기다리는
상태](https://github.com/yansfil/pr-assets/blob/main/hide/mission-plan-visibility/218f192/mission-decision-sent-880-ko-dark-crop.png?raw=true)

![같은 화면, 영어와 밝은
테마](https://github.com/yansfil/pr-assets/blob/main/hide/mission-plan-visibility/218f192/mission-decision-880-en-light-crop.png?raw=true)

</details>

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

- PRD: `agents/prd/mission-plan-visibility/prd.md` (sha256
2392c4808502efa0bb46c57e1425f915cc7f33f1c9ab0c603e44888b86d46fa2)
- Base b73cdb1 → head 94ca3b4, verified 2026-10-25T23:33:56.929Z: PASS
- Verification report:
`agents/runs/mission-plan-visibility/verification-report.json` and
`agents/runs/mission-plan-visibility/verification-report.md`; source
fingerprint
3569bd436acc5e2eebbf30abce709ac71a45a6f5cacbbdce0c17125bc4c800e1
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity (native, head cb7e640): Fix now 6, all fixed in
39ed6d5/79141f53c (answer events on the flow, stale failure reason
after take, empty-segment bar, cancelled bar colour, orphan event-file
sweep, startup answer drop via 30 s grace).
- Code (native, head cb7e640): Fix now 2, both fixed (banner keyed by
question, merge-done path ends the decision); follow-ups listed under
Evidence.
- Follow-up review (native, cb7e640..79141f5): all 8 items closed,
no new Fix now; close-path test and cancelled-bar doc line added in
4d53e61; 218f192 is rustfmt plus boxing the scoped mission request
for clippy.
- de1bcdb adds the mission event store to
`check-core-touches-no-machine.py`'s core stores after the policy lane
refused it; no product code changed.
- c4861f8 updates `web/e2e/mission-map.spec.ts` after CI's web e2e
lane 2/6 failed: the row is now drawn from events
(`data-flow-drawn=events`, a worked segment, a live end), not the times
bar; passed locally.
- 2fdedfc folds that e2e check into one expect so the spec stays
within the 40-expect budget the web lint enforces.
- Operator decision (letter-14348): two follow-ups fixed in this PR.
39c451c: an answer whose `agent.prompt` failed or timed out stays
`unconfirmed` and is typed again only on the operator's resend; the lock
hands the event store only new events and the snapshot shares the
history by Arc.
- Follow-up review (native, 39c451c): both CLOSED, no Fix now; its
restart-window follow-up fixed in 4b61ecb (held as unconfirmed before
the prompt).
- Follow-up review (native, 4b61ecb): Fix now 1, a resend while the
prompt was in flight could make the answer due again; fixed in 94ca3b4
with a test. Remaining follow-ups (book save is queued, not synchronous;
no history event when a decision ends during a prompt in flight;
take-over between check and prompt) are listed under Evidence.
- Evidence: none registered separately.
- Changed paths: 41 (see Files changed)
- Delivery: mode pr, branch `gen-prd/mission-plan-visibility-core`, base
`main`

</details>
yansfil added a commit that referenced this pull request Oct 26, 2026
…cklist and mission banner (#1692)

Related: #1690 (pane header `@`, 개요에서 보기 moved to the menu), #1673
(agent reference drag), #1641 (`--beside`), #1679 (plan checklist),
#1683 (mission decision banner)

## Summary

- 최근 머지로 화면이 바뀌어 연습 3·4·7·8편이 없는 버튼과 옛 이름을 가르치고 있었습니다.
- 3편: 개요는 ⋯ 메뉴(우클릭) 첫 항목 `개요에서 보기`로 열고, 리드가 선택된 채로 열립니다.
- 4편 C: pane 머리줄의 `@`로 상대를 고르고 할 일을 덧붙여 보냅니다. 사이드바 행 끌어 놓기와 이름·ID 복사는
"이렇게도 된다"로 한 줄. A에 "옆에 띄워 줘"(오른쪽 절반) 한 줄.
- 7편: "계획 지도"를 실제 화면 이름(계획 단계, 계획)으로 고쳤습니다.
- 8편: 큰 지도를 연 뒤 배너의 (추천) 선택지를 눌러 답합니다. 대화로 답해도 된다는 것과 흐름 표 소개는 한 줄씩.

![4편 C: 왼쪽 pane 머리줄의 @를 눌러 회원가입 에이전트를 고르는
단계](https://github.com/yansfil/pr-assets/blob/main/hide/fix-practice-chapters-current-screen/3dac018/delegate-mention.png?raw=true)

## Review

- **판단해 주세요**: 8편 순서를 `칩 → 크게 → 배너에서 답 → 지도`로 바꿨습니다. 배너가 큰 지도에만
있어서입니다(미니 팝오버는 `대화로`만 있음).
- **판단해 주세요**: 4편은 `@`(새 단계 `mention`)와 `할 일 말하기`(`send`) 두 단계로 나눴습니다.
"옆에 띄워 줘"는 새 단계 없이 A의 child 설명 한 줄로만 넣었습니다.
- **조심해서 볼 파일**: `web/src/practice/PracticeCoach.tsx` - 새 gesture
`pick`(컨트롤을 누르고 목록에서 고르기). 목록이 이미 열려 있으면 다시 누르지 않습니다(닫히지 않도록).
- **조심해서 볼 파일**: `web/src/practice/worlds/delegate.ts` - `prompt`는
참조(`@이름 (pane id · 일)`)만 있으면 빈 것으로 읽어, ⏎가 예시(참조+할 일)를 대신 입력합니다. 학습자가 덧붙인
말이 있으면 그대로 보냅니다.
- **조심해서 볼 파일**: `web/src/practice/worlds/mission.ts` - 배너의
`mission_answer`를 core 대신 받아 단계를 넘깁니다. 다른 key, 없는 선택지, 빈 글, 질문이 없을 때는
거절합니다.
- **판단해 주세요**: 단계가 바뀐 3·4·8편은 `version`을 2로 올려 예전 진행이 `바뀜`으로 보입니다. 7편은
문구만 바뀌어 그대로 뒀습니다.

## Evidence

- **확인한 것**: 갤러리(`gallery?scene=practice&chapter=3|4|7|8`, ko,
1280x800)에서 ⏎만으로 각 단계까지 진행해 캡처. 3편 개요는 리드가 선택된 패널로 열림.
- **확인한 것**: `practice.spec.ts`(격리된 Herdr·hided): 전 챕터 ⏎ 진행, 모든 단계에서 다시
시작, 4편은 메뉴 복사→붙여넣기 손 경로로 `mention`·`send` 통과. `overview-map`,
`agent-reference-drop`도 실행. 9 passed.
- **확인한 것**: 새 unit `worlds/delegate.test.ts`, `worlds/mission.test.ts`.
참조 제거와 key 검사를 심어 각각 실패하는 것을 확인. web typecheck, lint, vitest 전체(252
files), `check-design-contract.mjs` 통과.
- **확인하지 못한 것**: 실제 앱(설치본) 연습 창에서의 손 조작, 사이드바 행 드래그를 연습 안에서 직접 끌어 놓는
경로(같은 `typeReference` 입력이라 world는 같지만 e2e로 끌지는 않음).

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

![8편: 지도 위 판단 배너의 추천 선택지를 누르는
단계](https://github.com/yansfil/pr-assets/blob/main/hide/fix-practice-chapters-current-screen/3dac018/mission-answer.png?raw=true)

![3편: ⋯ 메뉴의 개요에서 보기로 열려 리드가 선택된
개요](https://github.com/yansfil/pr-assets/blob/main/hide/fix-practice-chapters-current-screen/3dac018/follow-map.png?raw=true)

</details>

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

- head: 3dac018 (base main 23f2189)
- `verify-web.sh web e2e e2e/practice.spec.ts e2e/overview-map.spec.ts
e2e/agent-reference-drop.spec.ts`: 9 passed (2.4m), macOS
- `verify-web.sh web typecheck|lint|test`: pass (252 files, 2164 tests)
- `node scripts/check-design-contract.mjs`: pass

</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