Skip to content

feat: draw the desktop's five-row mission card on the phone from what its frame carries - #2468

Merged
yansfil merged 25 commits into
mainfrom
feat/mission-phone-stations
Nov 12, 2026
Merged

yansfil merged 25 commits into
mainfrom
feat/mission-phone-stations

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Related: #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
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 feat: draw each mission card as five rows ending in its branch or result line #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 #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 feat: draw each mission card as five rows ending in its branch or result line #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 feat: draw each mission card as five rows ending in its branch or result line #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 feat: draw each mission card as five rows ending in its branch or result line #2466's, updated in with-hide/hide-private#876.
More evidence

The same mission, light

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

Other cases on the phone, light

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.

Verification record
  • Base: feat/mission-card-stations (feat: draw each mission card as five rows ending in its branch or result line #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.

@yansfil yansfil changed the title feat: draw the destination's stations and merge strip on the phone's mission cards feat: draw the desktop's five-row mission card on the phone from what its frame carries Nov 12, 2026
…ive rows

# Conflicts:
#	hide-core/src/agent_state/tally/phone/missions.rs
…a marked line's number with its mark on the phone
The phone card keeps naming a general step's preset in its accessible name
where no bottom line says it, and the phone tests plan research and verify
steps as general steps with those presets.
Base automatically changed from feat/mission-card-stations to main November 12, 2026 15:05
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 24fae07 Nov 12, 2026
89 checks passed
@yansfil
yansfil deleted the feat/mission-phone-stations branch November 12, 2026 15:38
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
…d, panel and phone (with-hide#2498)

Related: PRD node-presets (D-08 to D-13, B1, B2, B3, B5, B10, B12);
builds on with-hide#2468 (merged); core in with-hide#2485; paired design doc
with-hide/hide-private#892

## Summary

Mission nodes are now code, general (with a preset) or waiting nodes
(with-hide#2485), but the card still drew only research and verify, and a deploy
or no-preset node had an empty bottom line.
Now every general node ends in its preset's icon and name (리서치, 검증,
배포·출시, 일반), and once done in its result line, or `통과 n/m` / `실패 n/m`
whatever the preset.
A deploy node's start gate is the card's band: faint while the work
before it runs, yellow with 내 차례 once it asks, gone from the card once
passed.
A failed verdict turns the node's mark red, a waiting node says `⏳ 기다림`
where a worker would be, and "조사" reads "리서치" everywhere; the phone
draws the same icons, names and bands.

![Deploy node: start gate faint while its dependency works, yellow and
Needs you once it asks; passed start gate gone from the working and done
cards](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/case-deploy-dark.png?raw=true)

## Review

- **Decide**: the approved mockup (`presets.html`) as drawn, with v4's
own parts kept where they differ: the band shows the plan's look with
v4's eye icon (no `볼 것:` prefix), the planned card keeps its `(계획)`
worker row, the waiting node's line has no head branch name (the core
sends none). The Conductor chose these on 2026-11-12; the red mark and
the hidden passed start gate follow the mockup.
- **Decide**: English says `Watching` for a waiting node, since
`Waiting` is already the planned state's word; Korean is the core's
`기다림`.
- **Decide**: the phone's merge-due item still names only the node's
newest pull request; it is left as is, because the desktop's merge turn
names the newest one too (D-52), and changing both is not this change's.
- **Risky files**: `web/src/missionLine.ts` - the one result-line
computation the desktop card, its hover and the phone read;
`web/src/components/mission-node-mark.tsx` - the state mark every map
draws.
- **Cost**: none on a resident path; the card computes one line per
render from fields it already had.

## Tests

- **Layer**: unit for the line, card, hover, panel and phone card
(`missionLine.test.ts`, `MissionMap.test.tsx`, `MissionGate.test.tsx`,
`mobile/missions.test.tsx`); `missionKindWords.test.ts` reads the core's
preset table and `hide mission show`'s words and fails when the Korean
catalog says another; e2e `mission-presets.spec.ts` plans through the
real CLI (old `research` name included), checks the map, the deploy
start gate refusal `mission_gate_before_start` and a paired phone
(paired through `e2e/phone-direct-pair.ts`, shared with
`mission-gate.spec.ts`), which only the command/socket boundary shows.
- **Catches**: a verdict drawn only for verify (planted: both line tests
failed); a phone that drops the waiting row (planted: the e2e failed at
the phone); a hover mark that is not red on a failed verdict (planted:
the card test failed); a done deploy node's result the panel does not
show beside a plan (planted: the panel test failed).
- **Repeat**: the four unit files 3x, then on this head
`mission-presets.spec.ts` and `mission-gate.spec.ts` three runs each,
all green, locally.
- **Waits**: none new; the e2e waits on data attributes and CLI answers.

## Evidence

- **Verified**: web unit suite 319 files / 2988 tests;
`mission-presets`, `mission-gate`, `mission-map`, `mission-merge-owner`
and the phone mission e2e (10 tests) on this head's `web/dist` and hided
built at with-hide#2468's head (no Rust changed since); lint, typecheck,
`check-design-contract.mjs`, timed waits, attribution and
workstation-identity checks.
- **Verified**: an isolated candidate app (own `HIDE_STATE_DIR`, desktop
host and hided at with-hide#2485's code) captured each preset planned, working
and done, verify pass and fail, the deploy start gate faint and asking,
a no-preset node and waiting nodes, dark and light and at the largest
text size; two copies of the operator's old records (mission-24
research, mission-8 verify) open with the same states, results and
verdicts before and after.
- **Not verified**: the phone captures come from the gallery's phone
scene at iPhone 13 size, not a paired device; the e2e covers a paired
phone's drawing. A phone app built before general nodes still draws a
deploy or no-preset step as `Code` (documented in `docs/INSTALL.md` by
with-hide#2485). No Rust changed.

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

![Verify node: planned, working, Passed 7/7 green, Failed 5/7 red with a
red
mark](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/case-verify-dark.png?raw=true)
![No-preset general node: document icon and General, then its result
line](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/case-none-light.png?raw=true)
![Waiting node: hourglass and 기다림 in the worker row, v4 outside line in
PR
colour](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/case-waiting-light.png?raw=true)
![Old record mission-24 before this
change](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/research-before-dark.png?raw=true)
![Old record mission-24 after: same results, done icons
green](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/research-dark.png?raw=true)
![Phone, iPhone 13 size: same preset icons and names, start gate bands,
waiting
step](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-preset-cards/221206b/phone-presets-fit-dark.png?raw=true)

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