Skip to content

feat: draw each mission card as five rows ending in its branch or result line - #2466

Merged
yansfil merged 35 commits into
mainfrom
feat/mission-card-stations
Nov 12, 2026
Merged

yansfil merged 35 commits into
mainfrom
feat/mission-card-stations

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Related: follows #2459 (merged); the phone draws the same rows in a follow-up pull request (mission-57 node phone-card); paired design guide with-hide/hide-private#876.

Summary

The mission map knew where each node's work goes and who merges it, but the card did not say so.
A first version drew a station track (작업 → PR → 승인 → main); the operator found it heavy and missed the plain PR number at the bottom, so the card is now simpler.
Each card is five rows, one gap apart and all starting at the card's left edge: the title; the operator's band under it (볼 것, 머지할 차례); the agent, model and time; the steps; and, under a hairline, one bottom line.
A code node's bottom line is [icon] #n <branch> → <destination>, the icon and colour exactly as the PR list draws that pull request; a stacked pull request or another base is bold, and a merge the operator does is a person before the destination.
A line too long for one row keeps #n alone on the first row and puts <branch> → <destination> on the second, from the card's left edge; there a name shorter than half the row stays whole and two long ones share it, each ending in … with its whole name on hover. A line without a number never wraps, and a direct change's PR 없이 follows its destination. A numbered line with ⚠, 내 차례 or ! is always two rows: the number, never cut, and those marks on the first, the warning's words giving way first, and the path on the second.
A line without a number follows the same rule with its icon in the number's place: with ⚠ or 내 차례 at its right end it keeps one row only when it fits, and otherwise the icon and the marks hold the first row and <branch> → <destination> · PR 없이 the second, so nothing overlaps.
A stacked node's destination is the pull request it stands on: that pull request's icon in its state's colour and its number in grey, so the node's own #n leads.
Hovering a card shows it in labelled rows with the card's own parts (상태, 워커, 단계, 들어가는 곳, PR, 머지, or 결과), each fact once.
A research or verify node ends in its result instead: its kind while it runs, then the conclusion or 통과 n/m.
The station track and its code are gone.

Before (left) and after (right): each card ends in its branch line; a line too long for one row keeps #n alone and puts the branch and → 👤 [PR] 1900 on the next row

Before (left) and after (right): a stacked node goes into the pull request it stands on, its PR icon and a grey number

Largest text size (17 px): #3110 +1 keeps its first row with ⚠ push 없음 and 내 차례, the branch and destination on the second; a long line keeps #n alone

Largest text size (17 px), lines without a number: 내 차례 and ⚠ 리뷰 FAIL ×3 hold the first row at the right end, the branch, destination and PR 없이 the second from the card's left edge

Base text size: fix/x → main · PR 없이 fits beside 내 차례 and keeps one row; beside ⚠ 리뷰 FAIL ×3 it does not fit and moves to the second row

Card hover (A): title and band, then 상태, 단계, 들어가는 곳, PR and 머지 rows; the plan's reason small under 머지 and how to change it under a hairline

Review

  • Decide: whether the five rows read calmer than the station track did, at a glance, on the map's own zoom.
  • Decide: the person before the destination as "I merge this": faint orange ahead, yellow and bold with the 머지할 차례 band when due, grey after.
  • Decide: the new words: 어디로 들어가나 (the card's name and hover), PR 없이, 조사, 검증, 통과, 실패.
  • Decide: the second row of a long line at the largest text size: two long names cut to half each, readable enough on the map's own zoom.
  • Decide: the hover's rows leave out the worktree branch (it is the line's branch), the Conductor's last line, the change note and the last push.
  • Decide: an outside branch's name now reaches the phone (external_branch) as part of its line (D-14); before, it stayed on the Mac.
  • Risky files: hide-core/src/runtime/missions.rs - snapshot wire: MissionView.destination is the judged branch, NodeView.outside is new, and the view cache now keys on each project's default branch.
  • Risky files: hide-core/src/agent_state/tally/phone/missions.rs - phone wire: optional destination, scope, pr_base, pr_more, external_pr, external_branch, external_base, external_state.
  • Risky files: web/src/missionLine.ts - the one calculation of the bottom line the desktop card, its hover and the phone read.
  • Risky files: web/src/components/mission-line.tsx and the foot in web/src/MissionMap.tsx - a numbered line runs inline so its path wraps whole, or is a two-row grid when it has right-end marks; the share of the second row is a grid of minmax(0, auto) columns.
  • Risky files: web/src/components/mission-node-hover.tsx - the hover rebuilt as labelled rows from the card's parts; its old strings are replaced in four languages.
  • Cost: per mission refresh, one in-memory catalog lookup per mission and one GitHub-list lookup per outside node, under the lock; no I/O, no new notification. The card draws from fields it already had.

Tests

  • Layer: unit for the bottom line's rules and words (missionLine.test.ts) and the card (MissionMap.test.tsx: row order, the one gap, the band, the person, the result line, the planned card, the accessible name and hover); Rust for the judged destination, the outside view and the phone fields; e2e mission-map.spec.ts for a narrow window's spills, a planned card's five rows and its accessible name, the hover's rows for a working, a stacked and a research node, and a stacked destination's mark, grey number and PR n words (MissionMap.test.tsx, missionLine.test.ts); and, at the largest Interface text, six working changes (into a long release branch, stacked, a short one, one before its pull request, a direct one, and one with +1 and two marks seeded into its record) whose lines end inside their cards, in a real browser: the long numbered ones keep #n alone and put branch and destination on a second row from the card's left edge, sharing it when both are long; the short one stays on one row with the wider gap after its number; the two without a number never wrap, the direct one's PR 없이 on its destination's row; the one with marks keeps #3116 +1 whole with ⚠ and 내 차례 on its first row and its path on the second; every row starts where the title row does and the six cards stand apart on the map.
  • Catches: planting three changes in this head's mission-line.tsx fails the largest-text e2e on each: a numbered line that cannot wrap (wrapped), a plain flex row instead of the shared grid (half), and PR 없이 outside the destination (direct); de4fd48's line fails it too; deb9949's line and foot fail the marks case (firstRow and inside, the marks pushing the number to a second row); on 98d566f, a line without a number whose path does not take the row's leftover fails it too (whole: 내 차례 clipped at its left on the long pre-pull-request line); 7f699dd's one-row line fails it at 13 px (hotfix and lone: 리뷰 FAIL ×3 over · PR 없이).
  • Catches: a stacked pull request drawn to the mission's destination: planting it (base_pr ignored) fails two missionLine.test.ts tests.
  • Repeat: the mission-map e2e passed on 5a3e516's build; the largest-text test now waits for the map to settle at each text size (two frames agreeing) before it measures; repeated runs are the verifier's, and CI's repeat lane runs it on this head.
  • Waits: none added.

Evidence

  • Verified: on 5a3e516: the largest-text e2e measures every branch line at 13 px and at 17 px; lines without a number on direct changes and one before its pull request, short and long branches, with 내 차례 alone, ⚠ 리뷰 FAIL ×3 alone and both, never meet their marks, and at 17 px each holds its icon and marks on the first row and its path on the second from the card's left edge; mission-map.spec.ts 5 passed, web unit MissionMap, missionLine, missions, the phone's missions, TaskLens and OverviewGraph 195 passed, typecheck, lint and the design contract clean.
  • Verified: isolated candidate on 5a3e516's web build, dark and light: the same lines at 13 px and 17 px with destination release/target, and fix/x → main · PR 없이 beside 내 차례 on one row.
  • Verified: on 98d566f (main with feat: plan mission nodes as code, general or waiting nodes with presets #2485 merged): typecheck, lint, the design contract and the attribution check clean; web unit missionLine, MissionMap, missions, the phone's missions, i18n, TaskLens, the sidebar mission row and OverviewGraph passed; e2e/mission-map.spec.ts five passed with hided, hooks and holder rebuilt from the merged Rust: the long line before its pull request with 내 차례 keeps the mark whole at the foot's right edge, and the hover's whole line reads its number.
  • Verified: web unit on 67c831c: MissionMap, missionLine, MissionGate, the phone's and components 360 passed, and i18n 53; on b248a02: missionLine and MissionMap 57 passed; after merging main, the whole web unit suite 2968 passed, with one practice test timing out under machine load and passing alone (10/10); typecheck, lint and the design contract clean.
  • Verified: e2e/mission-map.spec.ts on 67c831c's build: four passed in the spec run and the largest-text test passed after its stacked row's width expectation moved (the destination is now its mark and number); on deb9949's build all five had passed: at 17 px #3114 and #3115 stand alone on their first rows with branch and destination on the second from the card's left edge, → #3114 whole beside a cut branch, the long branch and the long release destination each holding at least 40% of the row and cut at its end with its whole name in the hover, #7 fix/typo → #3114 on one row with a wider gap after the number than before it, the line before its pull request and the direct line on one row with · No PR beside the destination, and the five cards apart on the map.
  • Verified: isolated candidate (own state folder and HOME, records replayed offline) on 67c831c's web build: twelve use cases in dark and light, seven card hovers (working, stacked, done, merge due, operator's merge ahead, research working and done), including the largest text size with a long branch, another base, a review-fail ⚠ beside a two-row line, +1 with ⚠ push 없음 and 내 차례, and the operator's merge due, each working card's steps bar, and the eleven baseline states before beside after; the 17 px capture found the ⚠ taking the second row's width when the foot aligned its marks to the top, fixed in deb9949 by floating them beside the first row.
  • Verified: a branch or destination the core did not send is left out, never named: old records without them show only the icon and PR 없이 or PR (B60).
  • Verified: hide-core mission, outside and phone tests 54 passed, clippy and cargo fmt --check clean, on 08fd287, before main was merged.
  • Verified: a phone bundle from before these fields, paired with an isolated hided of 08fd287, listed and opened the mission with no page error and showed no branch name it was not sent.
  • Not verified: the capture candidate's hided was built from 08fd287's Rust: main's merged Rust is not in it; this change is web only since then, and CI builds and tests this head's Rust.
  • Not verified: the phone card's v4 rows: the follow-up pull request (mission-57 node phone-card).
  • Not verified: captures other than lines without a number with marks were not taken again on 5a3e516; they are 67c831c's.
  • Not verified: repeated runs and planted defects on this head: left to the mission's verifier.
  • Not verified: the hover on the phone: the phone has no card hover.
  • Not verified: the hover's commit count and worktree path (D-19) and the reasons for scope and cap in the options (D-50) are left out: the core has no value for them.
  • Not verified: Windows and Linux in a live app; the change is web and core logic with no platform code, left to CI.
More evidence

Before (left) and after (right): the look strip moves right under the title and the card ends in #2447 → main

PR flow into main: each working card's steps and 지금 line above the branch line; stacked on [PR] 3101 and another base in bold

Card hover, working: 상태, 워커, 단계 with 지금, the whole branch line, the PR's state word, who merges

Card hover for research: 상태 and the whole conclusion as its 결과

Merges the plan gives the operator: a faint person ahead, the yellow 머지할 차례 band and destination when due, grey after with the purple merge icon

Planned cards: dashed, no time, the Conductor's steps, ending in PR → release/1.2 or PR 없이 → release/1.2 on one row

Direct change: → main · PR 없이 moves as one group after the branch; an outside PR, research with its conclusion, verify with 통과 7/7

Outside nodes: each pull request ends at its own base, bold where it is not the mission's destination; an unread base is left out

Verification record
  • PRD: mission-destination (local), node card of mission-57: D-13 to D-25, D-35, D-36, D-45, D-50; card v4 D-51 to D-55 and B54 to B60, which replace the station track (D-46 and its rows) on 2026-11-12.
  • Base main, head 5a3e516: 5cc7e98 card v4 and the station code removed, ff61dab its e2e, 111a763 the destination kept whole, f1395a9 main merged (mission-graph-card.tsx: main's title-aligned indent kept with v4's one gap), 2d6a913 the line kept inside the card at 17 px, b248a02 its e2e, the stale comments and the foot's unreachable condition (review of 2d6a913: F1, m4, m5), review PASS on b248a02; de4fd48 the operator's capture review (D-56): rows from the card's left edge; 8cbf226 the operator's second capture review (D-56 revised): the number alone on a long line's first row, the second row shared between branch and destination, and review of de4fd48 (F1 PR 없이 after the destination, m1 the right-end marks at the first row); deb9949 the marks float beside the first row so the second keeps the card's width; 2d6e080 a numbered line with marks is two rows with its number whole (verify FAIL on deb9949, D-56 as settled); 67c831c a stacked destination as its pull request's icon and a grey number (D-57) and the hover as labelled rows (D-58), review PASS of D-57 and D-58 and verification PASS on it; f1ae91d a line without a number keeps its marks at its right end, the line taking what they leave (review of 67c831c: F1), the unused worker role word removed (m1), the hover's whole line reading its number (m2); fb0f87d main merged with feat: plan mission nodes as code, general or waiting nodes with presets #2485 (MissionScene.tsx: main's general verify node kept with this branch's outside base and state; the result line reads a general node's research or verify preset, another general node's line left to the presets' card work); 98d566f its e2e; 7f699dd main merged again (docs: drop the oldest finished entries when an accumulating record reaches its cap #2495, fix: refuse a rebase or force push only to a mission's agents #2497: hooks and docs only, clean), verification FAIL on it (F1: · PR 없이 under the marks of a line without a number); 5a3e516 a line without a number keeps one row only when it fits beside its marks, otherwise its icon and marks on the first row and its path on the second (D-56 as for a number).
  • D-56 as revised on 2026-11-12: a line that fits is one row; otherwise the number keeps the first row and the second is shared, a name shorter than half of it whole and two longer ones half each, both cut at their ends with their whole names in the hover and the card's name; the icon and number never.
  • Earlier, on the station track: review and verification PASS on ede9554; 08fd287 reads the due merge from the core alone.
  • Planted defect: base_pr ignored in ownLine; missionLine.test.ts 2 failed, restored.

Base automatically changed from feat/mission-merge-owner to main November 11, 2026 18:18
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
## Summary

Supersedes with-hide#2454 with the same commit; the branch changes only to remove
the with-hide#2466 stack.

The phone's vertical step rail made a mission's parallel work hard to
follow.
The phone now uses the desktop graph's layout, card frame, connections
and report.
Touch pan and pinch preserve the view; a node tap opens its worker's
conversation.
The header, progress, decision and reply controls keep their existing
behavior.

![Phone mission graph at 393 pt, demo mission,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/demo-light.png?raw=true)

![Phone mission graph at 393 pt, demo mission,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/demo-dark.png?raw=true)

<details><summary>18-node mission and touch zoom at 393 pt</summary>

![Phone mission graph at 393 pt, 18 nodes in parallel branches,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-light.png?raw=true)

![Phone mission graph at 393 pt, 18 nodes in parallel branches,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-dark.png?raw=true)

![Phone mission graph at 393 pt, native touch pinch to 91 percent and
pan](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/long-zoomed-panned.png?raw=true)

</details>

![Ready merge remains the operator turn, open PR with-hide#33
+1](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-mission-graph/826e92f/merge-ready-light.png?raw=true)

Paired owning-guide update:
with-hide/hide-private#868

## Review

- **Decide**: The operator approved the graph UI. Corrected captures
settle theme transitions before recording colors.
- **Risky files**: `MissionMapCanvas.tsx` adds touch gestures;
`MissionGraph.tsx` shares the desktop layout.
- **Risky files**: `mission-graph-card.tsx` extracts the desktop frame;
phone metadata stays at its boundary.
- **Cost**: At most two pointers and one pending animation frame; no
wire events; frame cancels on unmount.

## Tests

- **Layer**: Phone UI unit tests, existing desktop graph tests, and
native Chromium touch through the phone demo.
- **Catches**: Missing/parallel nodes, gates, omitted/empty/finished
states, worker taps and wrong turn markers.
- **Catches**: Deliberately omitting one node failed the four-node graph
test; restored source passes.
- **Catches**: After integrating with-hide#2459, the detail keeps ready operator
merges, newest open held PR and additional count; restoring the old
current-PR selection fails on with-hide#37 instead of with-hide#33.
- **Catches**: Native card-start pan and pinch continue across
successive moves; restoring the capture-transfer bug fails the second
pan move.
- **Repeat**: Built-phone CI repeats the native card-touch scenario 6
times successfully, with retries disabled; the two changed E2E specs
total 192 passes.
- **Repeat**: On committed `826e92f`, all 27 focused phone tests passed
3 consecutive runs through the shared cargo slot, including the added
ready-merge detail assertions; no retry.
- **Repeat**: The new native-touch scenario body passed 3 local
source-hosted Chromium runs; real paired-phone gate E2E passed 3 local
runs; 26 phone tests × 3 local runs passed; 141 focused tests, including
CSS variable validation, passed after the CI fix.
- **Waits**: No new fixed waits, retries or timeout overrides in
committed tests.

## Evidence

- **Verified**: 393 × 852 CSS px, light/dark demo and 18 nodes; no page
overflow or browser exceptions.
- **Verified**: Native Chromium touch pinch 46% → 91%, pan by 60/90 px,
drag suppresses worker navigation.
- **Verified**: Node tap opens its worker; finished map fits; empty and
omitted plans render one line.
- **Verified**: A real paired phone answers a gate and keeps its
completed step visible on the shared graph; 3 local E2E runs passed.
- **Verified**: After merging main once, 27 focused phone tests pass,
the native-touch scenario passes, and the 393 pt ready-merge card shows
the correct open PRs and operator turn.
- **Verified**: Prior candidate web/phone builds and focused units pass;
current lint, design contract and native-touch checks pass.
- **Not verified**: Physical iPhone/Safari and native iOS host; live
relay/Apple services were outside scope.
- **Verified**: Final integration-head CI passes all planned lanes,
including WSL product tests after one failed-only rerun. macOS lanes
were skipped by the plan.
- **Not verified**: This is direct delegation with no PRD run.

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

- Candidate: `826e92f014316961d80b7ac520791451313c8b77`; integrated
main: `62583c64fe74e98e6c8432e7c66571fed5cdcca0`.
- Final CI:
https://github.com/with-hide/hide/actions/runs/43077731006/attempts/2,
success on the candidate above. The first attempt stalled during WSL
distribution setup before product tests; the lead requested cancellation
and one failed-only rerun. Its cancellation annotation is `The run was
canceled by @yansfil.` The canceled job log was unavailable (`log not
found`); its raw job state and annotation are preserved locally. The
rerun completed setup in 61 seconds and both WSL product steps passed.
- Previous head `13a79ac24e`:
https://github.com/with-hide/hide/actions/runs/43038814917, attempt 3,
all planned lanes pass.
- Main was merged once after with-hide#2459 landed. The sole conflict was its
edits to the removed phone rail; the shared `mergePull` rule now
supplies the graph card, ready merges join initial framing, and the
inherited list test also checks detail cards.
- Independent capture-transfer delta review: PASS on
`4aa2e62d6215f42d8f250604dc7f04468cb7a40b` (letter-35738); integration
delta source review found no code issues, and the reviewer confirmed the
27-test, three-run repeat evidence (letter-35762).
- Native touch repeat (successful first-attempt result retained by the
failed-only rerun):
https://github.com/with-hide/hide/actions/runs/43077731006/job/130722419662;
`mission-gate.spec.ts` + `phone-relay.spec.ts`, 32 tests x 6 repeats,
192 pass, retries 0. Native card touch passes all 6 repeats in 1.7-1.8
seconds each.
- The superseded 4aa2 verify was cancelled before pushing this
integration head; no failure was observed before cancellation.
- Final head retains card pointers while implicit capture transfers to
the canvas; only the canvas losing its own capture ends tracking.
- Before fix: all five native pan moves stop at scrollTop 106; three
pinch moves stop at scale 1.00.
- After fix: pan scrollTop 106, 121, 136, 151, 154; pinch scales 1.00,
1.33, 1.67.
- Card-start event traces record SPAN implicit capture, bubbling lost
capture and DIV capture, followed by actual successive moves.
- Restoring the old handler makes the new scenario fail on its second
pan move; restored fix passes three times.
- Local source-hosted runs execute the committed scenario body with only
its navigation changed to the Vite entry; the built-phone relay-fixture
run passed all six CI repeats; local focused-unit WASM preparation later
ran in the shared slot after disk space recovered.
- The lead requested one failed-only rerun after another unchanged
branch passed WSL; only WSL and verify reran.
- That failed-only rerun changed no source; the external package-host
DNS failure no longer reproduced on that attempt.
- Author review covered correctness, fragmentation, simplicity, module
boundaries, ownership/limits and tests.
- The existing phone frame already carries dependencies; no contracts,
daemon projection or protocol change.
- Desktop-only satellites and defect metadata stay absent on the phone;
values are not fabricated.
- The App Store capture marker `[data-phone-mission-steps]` remains on
the graph section.
- Final focused tests ran through the shared cargo slot and verification
entrypoint. An initial unslotted preparation was stopped immediately,
then rerun through the slot.
- All browsers and the worktree's dev server were closed; the installed
app and operator runtime were untouched.
- The operator approved the graph UI; the parent owns the merge. No
merge was attempted.
- All six phone captures were re-recorded at final candidate
`826e92f014` after the capture-transfer fix.
- CI run 43034405862 caught the remaining old rail-fold E2E expectation;
it now checks the requested visible completed graph card.
- That run also hit Ubuntu DNS resolution failure in WSL package
installation before product tests; the log is preserved and the previous
head subsequently passed the complete planned verify.
- Initial CI run 43032557664 caught an undefined CSS size variable; the
ineffective reference is removed.
- Dark controls in the first long-light capture were a 150 ms theme
transition, confirmed by computed styles and active CSS transitions;
corrected captures record settled colors.
- Empty reply/selection keeps Send/Answer disabled as designed; the
input and header remain active.

Capture SHA-256:

- `demo-light.png`:
`1000c713b58fb97011988f4a29a5225a91a6ef2564957daedd1c7fd3574c2d1f`
- `demo-dark.png`:
`4034c128592617a1232ac8dd62fe23c495e370fcec98bee816fe9613057167ff`
- `long-light.png`:
`9f4f1874d89820407369b428b241ce16713fde9cddac8133d6c40f9862203247`
- `long-dark.png`:
`a3c41bf2baed60e94fcbe2610a547e8ee70d22022eddc6abf5d424a0c1c84d97`
- `long-zoomed-panned.png`:
`2f3f8015198768a7e6680f23cfbb3a818e3aeba4e4d33971a51efd2f02c2403c`
- `merge-ready-light.png`:
`39620d8bef7f13ab721acf262bb7f90001ad0f976b33a9a2f9207c88601f0d03`

</details>
… line

The station track gives way to card v4 (PRD mission-destination D-51-D-55, B54-B60): the title row holds the mark and the title, the operator's band (the gate and a due merge) sits right under it, the worker's mark, model and time have their own row, and under a hairline a code node ends in its pull request's PR-list mark, number, branch and destination with the operator's merge as a person before it, while research and verify end in their kind, then the conclusion or verdict. One computation in missionLine.ts serves the map, its hover and the phone; the station module, its strip states, words and token are gone.
…tions

# Conflicts:
#	web/src/components/mission-graph-card.tsx
The destination's room is now what is left after the icon and number, so main's title indent and a 17 px font cannot push it past the card's padding; a direct line with no branch or destination no longer starts with a dot. The narrow-window e2e also checks the branch and destination parts.
@yansfil yansfil changed the title feat: draw each mission node's way to its destination branch on the map feat: draw each mission card as five rows ending in its branch or result line Nov 12, 2026
A working change into a long release branch and one stacked on it, each on a long branch, at 17 px: every part of the line ends inside the card, the branch is cut first, the number never, and the destination is whole where it fits and cut only at its end otherwise, its whole name kept in the card's name. The card's bottom line is drawn for every node kind, so its unreachable condition is gone; comments that still named stations, a title-row worker or a second-line strip now name the branch line and the merge band; the narrow-window title check waits for the cut.
…tination under the number

The map card no longer indents its rows past the state mark, so the band, the worker, the steps and the bottom line all start at the card's left edge. A branch line too long for one row now moves its destination, whole, to a row of its own that starts under the number, cutting it only when it is longer than that row; the first row's branch still gives way first. The largest-text e2e measures both, and that the taller cards stay apart on the map.
…tions

# Conflicts:
#	web/src/gallery/MissionScene.tsx
@yansfil

yansfil commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Accepted for the next change: after the node presets landed, a general node whose preset is neither research nor verify (deploy, or none) draws an empty foot under the card's hairline, and a mark alone sits at the row's left end (web/src/MissionMap.tsx:461-468, web/src/missionLine.ts:129-132). The preset card change redraws that card with the preset's own line, so it is fixed there rather than here; the foot's comment at MissionMap.tsx:460 is corrected with it.

@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 9d13ed4 Nov 12, 2026
45 checks passed
@yansfil
yansfil deleted the feat/mission-card-stations branch November 12, 2026 15:05
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
…ts (with-hide#2485)

Related: PRD `agents/prd/node-presets/prd.md` (mission-57, node
presets-core; D-01-D-07, D-10, D-11 wire side, D-12, D-13); paired
private PR with-hide/hide-private#883; the card, panel and phone screens
follow in node presets-card after with-hide#2466 and with-hide#2468.

## Summary

A mission node is now one of three kinds: a code node (`change`), a
general node (`general`) and a waiting node (`external`, unchanged in
the record).
A general node carries a preset, `research`, `verify`, `deploy` or none,
from one table in the core that names its icon key and the gate it
starts with.
Every existing mission opens and runs as before: a stored or planned
`research`/`verify` node reads as a general node with that preset; the
schema stays 4.
A gate can now ask before its node starts (`"when": "start"`): a deploy
node gets one by default (`배포해도 될지`), `"gate": null` takes it away, and
until the operator passes it no worker is bound
(`mission_gate_before_start`), a dropped node taken back to work
included; the operator setting such a node to work from the map goes
past the gate as their answer.
A plan that leaves `gate` out on a new node, or on one whose kind or
preset changes, gives it the new preset's gate, none included.
`hide mission show` says `코드`, `일반 · 리서치` or `기다림`, and `hide mission
help` explains the kinds with one preset table.

No screenshot: existing missions draw as before; the card, panel and
phone look for presets is node presets-card's pull request.

```
$ hide mission plan --json '{"nodes":[{"key":"ship","title":"사이트 배포","kind":"general","preset":"deploy","criteria":["…"]}]}'
→ ship has the human line {"text":"배포해도 될지","when":"start"}; once its dependencies are done the gate asks on the decision card
$ hide mission node ship --agent-id agent-7
{"ok":false,"reason":"mission_gate_before_start: ship", …}
```

## Review

- **Decide** (accepted by the Conductor): a phone app built before this
change draws a working general step with the deploy preset or none as
`Code` (its fallback); research/verify steps keep their old names on the
frame, so old apps draw them as before. This is the old app's limit,
written beside the downgrade limits; the app that knows presets draws
them in node presets-card.
- **Decide** (the Conductor's decision): `고칠 점 있음` on a start gate makes
the operator's words a defect line and does not ask again at once. The
gate asks again when that line closes (the Conductor makes the fix and
records it, which it may on a node that never had a worker), and
meanwhile it holds no mission decision: the same rule as an end gate
asking again after its defect closes.
- **Risky files**: `hide-core/src/missions.rs` - stored format:
`convert_old_kinds` rewrites `research`/`verify` at read time for every
schema; the schema stays 4 (downgrade limit in `docs/INSTALL.md` and the
private doc).
- **Risky files**: `hide-core/src/runtime/missions.rs`,
`agent_state/tally/phone/missions.rs`,
`contracts/snapshot-wire-enums.json` - snapshot wire:
`mission_node_kind` loses two values; `preset`, `icon` and the gate's
`when` are additive.
- **Risky files**: `hide-core/src/runtime/mission_gates.rs`,
`delivery/worker.rs`, `hided/src/server.rs` - a new refusal on the spawn
path, one rule (`MissionNode::start_refusal`) shared with holds,
answered with the mission's next action.
- **Risky files**: `hide-core/src/missions.rs` `apply_patch` and
`runtime/mission_health.rs` Resume - the start-gate refusal judges the
node as the change leaves it (`MissionNode::at_work`), and the
operator's Resume passes the gate through `settle_gate` as Done passes
an end gate.
- **Cost**: none on hot paths; the read-time conversion walks each
mission's nodes once at load.

## Tests

- **Layer**: unit (record, plan, patch), runtime integration (start gate
through the health pass, the decision card and the spawn rule), the
released-state upgrade test, phone projection, CLI show, web store.
- **Catches**: an old book or plan read as an unknown kind; a start gate
that never asks, asks before its dependencies are done, or lets a worker
bind before the pass; a deploy node without its default; a dropped node,
or one the operator resumes, working behind an unpassed start gate; a
start gate asking again before its fix line is recorded; a preset change
keeping the old preset's gate; a refused spawn told to retry; a verdict
refused on a general node; an old phone frame read wrongly by a new
bundle. Planted: skipping `convert_old_kinds` fails the released-state
test and the book test.
- **Repeat**: does not apply: no e2e spec or `tests/it` module changed.
- **Waits**: none.

## Evidence

- **Verified**: on 0d3ceba (review fixes): hide-core nextest
4551/4551; hided lib 719/719 and hided integration 135/135 (rerun at 4
threads after three connect tests timed out on hided's start at load
average 144; the first run's agent_exec failures were a binary left
truncated by a full disk, relinked); clippy `-D warnings` clean; CLI
contract unchanged.
- **Verified**: on 66879e2: hide-core + hided full nextest 5402/5402;
CI verify green; verifier PASS.
- **Verified**:
`a_released_builds_missions_read_as_that_build_published_them` reads
every release folder v1.2.1-v1.2.7 with their research/verify nodes as
general + preset and the same state, lines and verdicts.
- **Verified**: web typecheck, lint, 2955 unit tests (one practice-world
test timed out under load 75 and passed alone, 10/10).
- **Verified**: the phone bundle of origin/main (3e95750), fed the
frame this core sends, opens the mission with no console error: research
steps say `Research`, a deploy step with an open start gate reads
waiting, a no-preset working step says `Code`.
- **Not verified**: no live candidate app run; the map, panel and phone
screens for presets are node presets-card's, and B1-B11 end to end are
node presets-stories'.
- **Not verified**: the site's user docs still name `Research` and
`Verify` as kinds (screen words, presets-card).
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
… its frame carries (with-hide#2468)

Related: with-hide#2466 (the base: the desktop's five-row mission card and the
shared bottom line this draws from)

## Summary

The operator replaced the station track on mission cards with a calmer
five-row card (card v4), on the desktop and the phone alike.
The phone's mission cards now have the desktop's rows from what the
phone's frame carries: the title, the operator's band right under it (`볼
것`, `머지할 차례`), the worker's mark and name, and under a hairline the
bottom line.
For a step that changes code that line is `#n → <destination>` behind
its pull request's mark as the PR list draws it, with a person before
the destination when the operator merges; research and verify end in
their kind.
A destination too long for the row, or a line that ends in `내 차례`, puts
`→ <destination>` on a second row from the card's left edge, the number
and `내 차례` keeping the first, as on the desktop; a stacked step goes
into its pull request's mark, lit by the state of the step that holds
it, and a grey number.
The line comes from the same `branchLine`/`resultLine` the desktop draws
from; the phone shows no branch name, model, time, steps bar, conclusion
or verdict because its frame carries none, and `docs/INSTALL.md` says so
with what would close it.
A new phone bundle on an older core draws the same rows, stops the line
before `→`, and names nothing the core did not send; a tap still opens
the worker's conversation.

![Desktop map (top) and the phone's cards (bottom) of one mission whose
merges the operator owns,
dark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/summary-dark.png?raw=true)
Look at the phone cards beside the desktop's: the same band under the
title, the same line icon and colour, the person faint orange ahead,
yellow with the band once the merge is due, grey after.

## Review

- **Decide**: whether each phone card reads like the desktop card of the
same case with only the frame's missing rows left off; other cases are
under More evidence.
- **Risky files**: `web/src/mobile/missionModel.ts` - `phoneLineNode`
maps the phone's flat wire fields onto the shared line node; a missing
field stays missing, an outside step from an older core names only the
pull request the frame carries, and a stacked step's pull request takes
its state from the step whose current pull request it is, grey otherwise
(an older one stays grey; `docs/INSTALL.md` records it).
- **Risky files**: `web/src/mobile/PhoneMissionMap.tsx` - the card's
rows; the bottom line's `내 차례` and long wait are handed to the shared
line as its end marks, as the desktop's are, shown only when the step
waits on the operator for more than its merge, and an outside step with
nothing it watches has no line; a general step whose line does not say
its preset (deploy, none) names it in the card's accessible name, as the
phone's card did before (PRD node-presets B9), and draws no line until
the presets' bottom line lands for both screens.
- **Cost**: none on a resident path: a card computes its line once per
render of that node, memoized on the node.
- **Risky files**: `hide-core/src/agent_state/tally/phone/missions.rs` -
the phone's mission frame no longer carries the mission's `scope`:
nothing on the phone reads it since the core alone decides a merge is
due, so it is removed (engineering principle 1); no released phone
bundle read it, since with-hide#2466 added it and neither has merged.

## Tests

- **Layer**: unit (`web/src/mobile/missions.test.tsx`) for each case's
band, worker, line mark and words, person, bold destination, stacked
pull request mark, accessible name and head tag, and an older core's
frame; `missionGate.test.tsx` reads the long wait as the shared end mark
words it.
- **Layer**: e2e (`web/e2e/mobile.spec.ts`): a real core with the fake
gh sends its mission frame to a paired phone; only this layer sees the
core's fields reach the phone bundle and fit the phone's width.
- **Catches**: the phone dropping a field it was sent or inventing one
it was not; planted defect: `phoneLineNode` ignoring `pr_base` and an
older core's outside pull request failed both new unit tests; the
stacked case expects the held pull request's state and an unheld one
`unknown`.
- **Catches**: the F1 test still checks the list row names only open
pull requests; on the card it now expects the band `Yours to merge` and
a due person, since v4 moves the number to the line.
- **Repeat**: the CI `repeat` lane runs the changed spec with no retry.
- **Waits**: the phone's connection (20 s, pairing) and the schema and
outside lines (30 s each, GitHub's answer reaching the core's frame),
each marked `wait-ok` with that state; no new poll.

## Evidence

- **Verified**: full web unit suite on this head (318 files, 2971 tests,
3 skipped); typecheck, lint, design contract and `check-timed-waits.py`
(also `--base origin/main`) pass.
- **Verified**: the phone e2e on this head; the gate e2e
(`mission-gate.spec.ts`) and the phone graph e2es
(`phone-relay.spec.ts`) on `2094e90d1b`, before the outside-step fix and
the base's line layouts.
- **Verified**: an isolated candidate core at iPhone 13 size, dark and
light, ten seeded missions, each beside the desktop map of the same
mission (on a `hided` built before main's node presets); no card part
spills at the phone's own text size or at the desktop's largest (17/13).
Measured on the page: every row of every card starts at one left edge;
`#n → release/target` stays one row at both sizes, the number twice as
far from the destination as the icon is from the number; a long
destination moves to a second row that starts at the card's left edge,
the number alone on the first, and ends in `…`; a line with no number
stays one row; a numbered line ending in `내 차례` (an open `볼 것` gate) is
always two rows, the number and `내 차례` on the first; a stacked step
reads `with-hide#35 → [mark] 31` with the number grey; a direct step ending in `내
차례` keeps its icon and `내 차례` on the first row and, where `→
<destination> · PR 없이` does not fit between them, puts it whole on the
second; measured on the page, the end marks never meet the line's words
at either size; research and verify steps still end in their kind.
- **Verified**: a core built from main before with-hide#2466, serving this
bundle: no head tag, no invented branch or destination, no page errors;
a stacked step still reads `→ 31` behind its pull request's mark, and a
line ending in `내 차례` with no destination stays one row.
- **Verified**: the Rust change (the phone frame's `scope` removed, its
assertion and comments) by CI's rust workspace on `6b2e0d2a40`; nothing
in Rust changed after it.
- **Not verified**: a local Rust build or test of this branch: the disk
was too full, so CI's rust workspace judges it; the e2e and captures ran
on a `hided` built from with-hide#2466's Rust before it merged main, so they do
not show main's node presets on the wire (the phone bundle reads an
older kind as its preset, which the unit test covers).
- **Not verified**: a real iPhone, in the iOS app or Safari; captures
are a browser at iPhone 13 size.
- **Not verified**: the phone draws its text at a fixed 1.25
(`web/phone.html`) and does not follow iOS text size, so the large-text
check applied the desktop's largest interface scale.
- **Not verified**: the phone's model, time, steps bar, conclusion and
verdict, which its frame does not carry; recorded as a phone row in
`docs/INSTALL.md`, What each system supports, with what closes it.
- **Not verified**: Windows and Linux by hand; this is a web-only
change, run by CI.
- No paired hide-private pull request: the phone card's look is owned by
public `docs/UI_BEHAVIOR.md`; private `docs/missions.md`'s line on what
the phone frame carries is with-hide#2466's, updated in
with-hide/hide-private#876.

<details><summary>More evidence</summary>

![The same mission,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/summary-light.png?raw=true)

![Other cases on the phone, dark: working, several, stacked, other base,
direct landed, outside, research, verify, planned to a long branch,
planned direct, scope pr, newest
merged](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/cases-dark.png?raw=true)

![Other cases on the phone,
light](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-phone-stations/5874cd1/cases-light.png?raw=true)

Each case was also captured as a whole phone page and beside the desktop
map of the same seeded mission (nine missions, dark and light, and the
same bundle on an older core), kept with the run.

</details>

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

- Base: `feat/mission-card-stations` (with-hide#2466) at `5a3e516a7c` (with
main); web evidence and captures on `5874cd12c4`.
- Policy: `python3 scripts/check-timed-waits.py`, with `--base
origin/main`; `python3 scripts/check-no-attribution.py`.
- Web: `bash scripts/verify-web.sh web test` (318 files, 2986 tests);
`web typecheck`; `web lint`; `web build`; `node
scripts/check-design-contract.mjs`.
- E2E: `bash scripts/verify-web.sh web e2e e2e/mobile.spec.ts -g "ends
each step in the desktop's line"`; `web e2e e2e/mission-gate.spec.ts
e2e/phone-relay.spec.ts -g mission`.
- Captures: an isolated `HIDE_STATE_DIR` and HOME, the fake gh, a fake
Tailscale pairing, iPhone 13 browser context; the candidate core ended
after each run, no process left.
- Changed paths: `hide-core/src/agent_state/tally/phone/missions.rs`,
`docs/INSTALL.md`, `docs/UI_BEHAVIOR.md`, `web/e2e/mobile.spec.ts`,
`web/src/components/mission-options.tsx`,
`web/src/gallery/mobilePhoneMissionsData.ts`,
`web/src/mobile/MissionDetail.tsx`,
`web/src/mobile/PhoneMissionMap.tsx`,
`web/src/mobile/missionGate.test.tsx`, `web/src/mobile/missionModel.ts`,
`web/src/mobile/missions.test.tsx`, `web/src/mobile/protocol.ts`.

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