Repository navigation
feat: draw the desktop's five-row mission card on the phone from what its frame carries - #2468
Merged
Merged
Conversation
…the phone's mission page
…hat its frame carries
…with nothing it watches
…he phone's five rows
…ive rows # Conflicts: # hide-core/src/agent_state/tally/phone/missions.rs
…the phone's five rows
…the phone's five rows
…mark into the phone's five rows
…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.
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.  ## 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>       </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: #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/resultLinethe desktop draws from; the phone shows no branch name, model, time, steps bar, conclusion or verdict because its frame carries none, anddocs/INSTALL.mdsays 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.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
web/src/mobile/missionModel.ts-phoneLineNodemaps 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.mdrecords it).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.hide-core/src/agent_state/tally/phone/missions.rs- the phone's mission frame no longer carries the mission'sscope: 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
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.tsxreads the long wait as the shared end mark words it.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.phoneLineNodeignoringpr_baseand 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 oneunknown.Yours to mergeand a due person, since v4 moves the number to the line.repeatlane runs the changed spec with no retry.wait-okwith that state; no new poll.Evidence
check-timed-waits.py(also--base origin/main) pass.mission-gate.spec.ts) and the phone graph e2es (phone-relay.spec.ts) on2094e90d1b, before the outside-step fix and the base's line layouts.hidedbuilt 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/targetstays 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] 31with 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.→ 31behind its pull request's mark, and a line ending in내 차례with no destination stays one row.scoperemoved, its assertion and comments) by CI's rust workspace on6b2e0d2a40; nothing in Rust changed after it.hidedbuilt 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).web/phone.html) and does not follow iOS text size, so the large-text check applied the desktop's largest interface scale.docs/INSTALL.md, What each system supports, with what closes it.docs/UI_BEHAVIOR.md; privatedocs/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
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
feat/mission-card-stations(feat: draw each mission card as five rows ending in its branch or result line #2466) at5a3e516a7c(with main); web evidence and captures on5874cd12c4.python3 scripts/check-timed-waits.py, with--base origin/main;python3 scripts/check-no-attribution.py.bash scripts/verify-web.sh web test(318 files, 2986 tests);web typecheck;web lint;web build;node scripts/check-design-contract.mjs.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.HIDE_STATE_DIRand HOME, the fake gh, a fake Tailscale pairing, iPhone 13 browser context; the candidate core ended after each run, no process left.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.