Repository navigation
feat: answer a mission's decision from its banner and draw its flow from events - #1683
Merged
Merged
Conversation
…e operator's answer from the banner
…ugh a short absence
…mission history copies off the lock
…rt never types it twice
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편: 큰 지도를 연 뒤 배너의 (추천) 선택지를 눌러 답합니다. 대화로 답해도 된다는 것과 흐름 표 소개는 한 줄씩.  ## 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>   </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>
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: #1679 (layer 1, 계획과 미션 지도 화면)
Summary
직접 답하기…를 보여 주고, 고른 답은 core가 Conductor 대화에[판단 답] <질문> → <답>으로 입력합니다. 작업 중이면 편지처럼 차례를 기다립니다.⑂ ↓ ! ✓ ⊘ ✎ ×표시를 얹습니다.hide mission decide/node에--why --option --recommend --node,--commit --verdict --checks가 생겼습니다.전달 확인 안 됨으로 남고 운영자가다시 보내기를 누를 때만 한 번 더 입력됩니다. Hide가 그 사이에 꺼져도 다시 입력하지 않습니다.Review
추천태그로 표시한 것(첫 스크린샷).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는 보기 칸에 열린 미션 하나에만 실립니다.Evidence
verify-web.sh)와 디자인 계약은 마지막 web 변경 뒤에 통과했고, 미션 지도 e2e는 core 사건으로 그린 막대(작업 구간과 살아 있는 끝)를 실제 hided로 확인합니다. 미션 판단 닫기, 30초 부재 유예, 실패 이유 해제를 core 테스트로 고정했습니다.XDG_CONFIG_HOME을 따로 두지 않아 격리 Herdr가 운영자의session.json을 읽고 워크스페이스 62개와 에이전트 약 20개를 이어 띄운 뒤 파일을 덮어썼습니다. 서버를 SIGKILL로 멈추고 시작 시 스냅샷으로 파일을 되돌렸으며, Observer가 운영자 Herdr 62개 워크스페이스가 정상임을 확인했습니다.docs/INSTALL.md지원 표에 칸으로 남김). 설치된 앱에서의 실제 미션 판단 왕복도 확인하지 않았습니다.agent.prompt에 타임아웃을 내는 가짜 Herdr로, 답이 한 번 입력된 뒤 이후 패스에서 다시 입력되지 않고unconfirmed로 남는 것을 doorbell 테스트로 확인했습니다. 다시 보내기 한 번만 입력되고 두 번째 누름은 아무것도 하지 않는 것, 재시작 사이에도 다시 입력하지 않는 것은 core 테스트로, 열린 미션의 사건 목록이 core 목록과 같은 Arc를 공유하는 것도 core 테스트로 고정했습니다.PrMerged누락, 너무 긴--why의 일반 거절 문구.추가 증거
Verification record
agents/prd/mission-plan-visibility/prd.md(sha256 2392c4808502efa0bb46c57e1425f915cc7f33f1c9ab0c603e44888b86d46fa2)agents/runs/mission-plan-visibility/verification-report.jsonandagents/runs/mission-plan-visibility/verification-report.md; source fingerprint 3569bd436acc5e2eebbf30abce709ac71a45a6f5cacbbdce0c17125bc4c800e1bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)check-core-touches-no-machine.py's core stores after the policy lane refused it; no product code changed.web/e2e/mission-map.spec.tsafter 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.agent.promptfailed or timed out staysunconfirmedand 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.gen-prd/mission-plan-visibility-core, basemain