Skip to content

feat: show mission review gates on desktop and phone - #2390

Merged
yansfil merged 11 commits into
mainfrom
feat/mission-human-gate-web
Nov 10, 2026
Merged

yansfil merged 11 commits into
mainfrom
feat/mission-human-gate-web

Conversation

@yansfil

@yansfil yansfil commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Related: mission-45 web-gate · with-hide/hide-private#817

Summary

계획에서 사람이 볼 곳을 먼저 읽고, 실제 도착한 지점만 내 차례로 표시합니다.
지도와 폰에 눈 띠·회색 눈 숫자를 더하고, 답한 뒤에는 체크와 답변 출처를 남깁니다.
폰에서도 검토 문구를 끝까지 읽고, 실행 뒤에 올 지점도 계속 볼 수 있습니다.
한국어·영어·중국어·일본어 문구와 갤러리 장면을 함께 반영했습니다.

도착한 지점만 노란 내 차례로 표시합니다.
폰의 계획에서 볼 내용과 시점을 끝까지 읽을 수 있습니다.
폰에서 답한 지점도 확인함과 답변 출처가 남습니다.

Review

  • Decide: 도착 전 눈 띠와 도착 후 노란 내 차례의 구분, 네 언어 문구를 화면으로 확인해 주세요.
  • Risky files: tally/phone/missions.rs, mobile/protocol.ts - 기존 프레임에 선택적 gate 필드만 복사합니다.
  • Risky files: MissionDecision.tsx - 오래 기다림 글만 추가하며, main의 라디오·답하기·보관된 View를 유지합니다.
  • Cost: 공용 시계에 표시 중인 노드·패널당 O(1) 구독을 더합니다. 매초 확인하고 분 단위로 다시 그리며, unmount 때 해제합니다.
  • Cost: 폰은 기존 프레임 크기 제한 안에서 gate만 복사합니다. 새 타이머·통신·코어 이벤트는 없습니다.
  • Decision: B15 계획 승인은 대화와 재계획으로, B3의 80자·노드당 1개 제한은 코어의 plan 거절로 충족합니다. 화면 토글은 없습니다.

Tests

  • Layer: 컴포넌트·Rust projection·실제 daemon e2e. 폰 답변이 같은 코어를 거쳐 지도에 반영되는 경계를 검사합니다.
  • Catches: 도착 전 내 차례 오염, 중복 질문 카드, 오래 기다림 비교, 폰 gate 누락과 답변 출처 유실을 잡습니다.
  • Catches: planned 지점과 2노드 planning→running 시험은 수정 전 2개 모두 실패했고, 수정 후 통과했습니다.
  • Repeat: 새 컴포넌트 7개와 회귀 포함 120개 × 3, projection 1개 × 3, 실제 gate e2e 1개 × 3 모두 통과했습니다.
  • Waits: 프로젝트 준비는 snapshot 읽기로 기다린 뒤 create를 한 번만 합니다. 준비·질문·통과·완료 접기를 기다리며 한도는 120초입니다.

Evidence

  • Verified: 격리 macOS 후보 창에서 계획→도착→카드 답변→통과를 한국어·중국어·일본어로 실행하고 실제 창을 캡처했습니다.
  • Verified: iPhone 13 크기의 Chromium을 같은 격리 서버에 연결해 계획→도착→폰 답변→지도 통과를 3회 확인했습니다.
  • Verified: 폰 계획의 네 언어와 긴 혼합 문구를 390px에서 캡처하고, 말줄임·가로 넘침 없이 읽히는지 확인했습니다.
  • Verified: 전체 Rust fmt/clippy, 웹·데스크톱 build/typecheck/lint·단위 시험과 디자인 계약이 통과했습니다.
  • Not verified: 실물 iOS·원격 기기 pane·운영 relay·Windows/Linux 네이티브·물리 IME는 미확인입니다.
  • Not verified: 전체 Rust 시험·전체 e2e는 로컬에서 실행하지 않았습니다. CI는 본문 갱신 시점에 진행 중이며 아래 Checks에서 확인합니다.
More evidence

계획에서 내가 볼 곳과 도착 시점을 먼저 확인합니다.

카드에서 답하면 회색 체크와 답변 기록이 남습니다.

현재 캡처는 별도 검증에서 같은 head로 빌드한 후보를 재사용했고, Electron 44.4.5를 사용했습니다.
현재 후보의 hide-agent-hooks와 hide-holder도 그 워크트리에 준비된 것을 사용했습니다.
앞선 후보에서는 허용된 설치본 1.2.6-main.10723b64의 두 보조 프로그램을 복사했고, 최종 캡처는 새 후보로 교체했습니다.
운영자 앱을 교체하거나 운영자 pane에 입력하지 않았고, 각 후보 앱·daemon·fixture는 실행 뒤 종료했습니다.

Verification record
  • Head: 8bcd2b27bcab8caeec235ea0d3fc4a2680af5bf9; merged main: b7bf579dee5e; 병합 커밋 외 변경 없음(기능 변경 19개 파일 동일). 이미지와 아래 로컬 검증은 432e864d0af18a30660e4e6c9703e76bcc8a7428 기준(2026-11-10 UTC)이며, 새 head는 로컬 빌드 없이 CI에서 확인합니다.
  • scripts/verify-cargo.sh lint: workspace fmt and clippy all targets, exit 0.
  • scripts/verify-web.sh: web 2859 passed / 3 skipped, desktop 321 passed / 4 skipped; build, typecheck and lint, exit 0.
  • Focused component/regression repeats: 120 × 3, exit 0. New desktop tests 5 and phone tests 2.
  • Filtered phone gate projection: 1 × 3, exit 0. macOS compact-unwind linker and nextest version warnings retained.
  • scripts/verify-web.sh web e2e mission-gate.spec.ts --repeat-each=3: 3/3, no retries, at head.
  • Native Korean/Chinese/Japanese plan→arrival→card answer→passed: 3/3 at head, 1600×1000; Korean PID 69697/window 18931, isolated state, show_inactive=true.
  • Phone: English journey, iPhone 13 390×664 viewport, DPR 3, real direct daemon connection with fake Tailscale boundary.
  • Additional phone plan capture: ko/en/zh-CN/ja, 390px, short and long mixed-script subjects; no ellipsis or horizontal overflow.
  • Independent source rereview at head: R1 full phone wording, R2 planned gates after start, R3 observation-only readiness, R4 inline timeout annotation all closed.
  • New R2 tests reproduced both missing-node failures before the fix. A first new assertion checked the tab while detail hid it; corrected to check after Back.
  • Earlier first failures retained separately: pnpm 12 dependency environment, mobile TooltipProvider assumption, capture directory missing, redundant done after automatic mission close, completed phone step folded before assertion.
  • The final setup reads ui_state.interface_language. A broad projection run caused by an extra nextest run argument was interrupted; the three final runs explicitly selected one test each.
  • Phone wire: optional field, absent with old daemon, ignored by old bundle; protocol remains 5. No new stored device/machine id, so release_state scenario is unchanged.
  • No new tokens, dependencies, persistence, approval event or notification rule. Changed paths: 19. UI behavior guide and gallery updated together.
  • After push, merge-order feat: show mission review gates on desktop and phone #2390: Stay as you are. Main's wire names were merged once without conflict; no added herdr field names.
  • CI and changed-test repeat for this candidate; body updated while CI was running.
  • Source, local native/browser proof and cross-platform CI remain distinct evidence surfaces.

@yansfil
yansfil added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 16c17be Nov 10, 2026
69 checks passed
@yansfil
yansfil deleted the feat/mission-human-gate-web branch November 10, 2026 16:46
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
## Summary

The restart fixture waited for the restarted daemon on
`status.herdr.state`. The snapshot now sends `status.engine` (with-hide#2387), so
every Playwright test that restarts hided timed out after 15 s waiting
for "the restarted core's engine and saved Workspace". The fixture reads
`status.engine.state` now.

No screenshot: test fixture only, no screen changes.

## Review

- **Decide**: nothing.
- **Risky files**: `web/e2e/hided-fixture.ts` only (two lines: the local
type and the connected check).
- **Cost**: none.
- **Questions**: none.

## Tests

- **Layer**: Playwright e2e fixture shared by every restart test.
- **Catches**: a restarted daemon that never reports its engine
connected; the failing tests are the existing restart specs, for example
`read-across-restart.spec.ts`.
- **Repeat**: not repeated; the fix is the wire name the fixture reads.
- **Waits**: the existing 15 s wait for the restarted core, unchanged.

## Evidence

- **Verified**: `rg` finds no other `status.herdr` reader in `web/`,
`desktop/` or `scripts/`; the failure message and its cause were
reported from mission-45's with-hide#2390 CI (five Linux e2e shards with the same
15 s timeout).
- **Not verified**: the restart specs were not run locally; CI runs
them.
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