Skip to content

feat: plan mission nodes as code, general or waiting nodes with presets - #2485

Merged
yansfil merged 5 commits into
mainfrom
feat/mission-node-presets
Nov 12, 2026
Merged

yansfil merged 5 commits into
mainfrom
feat/mission-node-presets

Conversation

@yansfil

@yansfil yansfil commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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 #2466 and #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).

A node's kind is change, general or external. A general node carries a
preset (research, verify, deploy, or none) from one table in the core,
which names its icon and the gate it starts with. A record or a plan that
names research or verify reads as a general node with that preset, so
every existing mission opens and runs as it did; the schema stays 4.

A gate may ask before its node starts (when: start). It asks once every
node it depends on is done, through the gate's decision card, and until
the operator passes it no worker is bound or spawned under the node
(mission_gate_before_start). A deploy node is planned with one by
default, which "gate": null takes away. A verdict may be recorded on
every general node.

The snapshot and the phone frame carry the preset, its icon key and the
gate's when; the phone frame keeps a research or verify step's old kind
name so an older phone bundle draws it as before.
hide mission show says a node's kind in the operator's words: 코드,
일반 with its preset's name (일반 · 리서치), or 기다림 for a node that
waits on a pull request or branch outside the mission. The Conductor's
guide explains the two working kinds and the waiting node, gives one
table of presets with when to use each and what it starts with, and
says how a deploy node's start gate asks and how to take it away. The
CLI contract lists the new refusals.
A dropped node taken back to work, or set to work by the operator, no
longer passes its start gate unseen; the operator's fix answer waits
for the Conductor to record its line before the gate asks again; a
preset change gives the node the new preset's gate; a refused spawn
names what the mission owes.
…sets

# Conflicts:
#	contracts/hide-cli.json
#	hide-core/src/runtime/missions.rs
#	hided/assets/mission/help.md
@yansfil
yansfil added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit d40a236 Nov 12, 2026
40 checks passed
@yansfil
yansfil deleted the feat/mission-node-presets branch November 12, 2026 13:47
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
…th-hide#2494)

Closes with-hide#2478
Closes with-hide#2479
Related: with-hide/hide-private#889 (paired `docs/missions.md` change);
stacked on with-hide#2485.

## Summary

A project folder that is not a Git repository could hold neither a
mission nor a delegated agent: the mission was refused as an unknown
project, and `hide agent spawn` always wanted `--repo` and `--branch`.
Now a mission made in a plain folder is a mission of general nodes only,
whose workers start in the folder itself and finish by their lines,
checkers and gates, with no branch, pull request or merge.
A code (`change`) or waiting (`external`) node, or a destination branch,
is refused as `mission_needs_git`, and its next action says code work
needs a Git repository.
`hide agent spawn` without `--repo` and `--branch`, from a pane of a
plain-folder project, starts the agent in that folder; in a Git project
both stay required, and the refusal (`spawn_repo_required`) now says so
plainly.
A folder counts as plain only on its machine's own read (this machine's
path read, or a device's helper); a checkout whose `.git` cannot be
read, or one that is gone, is refused (`spawn_folder_unreadable`,
`mission_project_unknown`), never treated as a plain folder.

No screenshot: no screen changes; the map and Missions screen draw these
missions as they draw any other.

```
$ hide mission plan --json '{"nodes":[{"key":"fix","kind":"change",...}]}'   # in a plain folder
{"ok":false,"reason":"mission_needs_git","next_action":"This mission's project is a plain folder, not a Git repository: ..."}
$ hide agent spawn --parent here --intent m:synopsis --name w --kind codex --brief-file brief.md
{"ok":true, ...}   # the worker's pane opens in the folder
```

## Review

- **Decide**: help.md tells the Conductor to keep writers in one folder
apart with `depends_on` or a separate output folder per brief; the core
checks no `paths` (operator decision 2026-11-12).
- **Risky files**:
- `hide-core/src/runtime/delivery.rs` - failure path: `spawn_place`
decides, under the runtime mutex, whether a spawn without `--branch` may
start, from in-memory rows and path facts only; a `--machine` there is
checked first (`spawn_target`, as the executor already does under the
lock), and a retry of an admitted folder spawn skips the folder
judgment.
- `hide-core/src/runtime/projects.rs` - `checkout_kind`: Folder only on
the node's answer (`catalog_paths.project` / `device_facts`), never
inferred from a row that is merely not Git.
- `hide-core/src/coordination/mod.rs` - ledger wire: a folder spawn
writes `branch` = the folder plus `folder: true`, so a build before this
one still loads the ledger (it requires a non-empty `branch`).
- `hide-core/src/coordination/executor.rs` - calls outside the engine
contract: a folder spawn opens a folder owner tab
(`OwnerOpen::for_checkout`) instead of a worktree; no `worktree_path` or
`create_worktree` call is made.
- `hide-core/src/coordination/naming.rs` - a folder child's tab is now
named; its owner workspace name is left alone.
- **Cost**: none on a hot path; a mission create and a spawn each scan
the workspace rows once (`checkout_kind`), as the catalog lookup already
did.

## Tests

- **Layer**: core runtime tests over a faked engine and device, the
layer that owns admission and the ledger; the CLI parse test in
`hided/src/agent_cli.rs`.
- **Catches**: making the plain-folder node check `false` fails
`a_plain_folder_project_runs_a_mission_of_general_nodes_and_refuses_code_nodes`;
letting a Git project's spawn through without a branch fails
`a_git_project_keeps_repo_and_branch_required` (both planted and seen to
fail).
Reading a not-Git row as a folder again fails
`a_checkout_its_machine_could_not_read_makes_no_plain_folder_mission`
and the unreadable cases in
`a_git_project_keeps_repo_and_branch_required`; judging a retry's folder
again fails the Git-turned retry in
`a_spawn_without_repo_or_branch_starts_the_child_in_the_callers_folder`;
`a_caller_here_starts_a_child_in_a_devices_plain_folder` covers
`--machine` with `--repo` alone and an unknown machine.
- **Repeat**: the repeat lane on this PR runs the changed tests.
- **Waits**: none; the spawn tests run `Prepared::run` with the existing
30 s bound.

## Evidence

- **Verified**:
- `cargo nextest` over hide-core and hided before the review fixes: 5415
of 5416 passed, the one failure the committed CLI contract, regenerated
here.
- After the review fixes, 636 filtered mission, spawn, naming, refusal
and contract tests: 634 passed on the first run; the contract
(regenerated) and one `node_session_activity` deadline under load then
passed alone. No existing test changes beyond the `Option` wraps of
`repo`/`branch`.
- The plain-folder mission test runs research, no-preset, verify and
deploy general nodes through create, plan, start, record, a gate and
close done.
- Folder spawns on this machine, beside the caller, and on a device
(after its facts are read; before that `spawn_project_loading`) start in
the folder, and a retry returns the same agent.
- Live, on an isolated candidate (this branch's build in a private
`hide.app`, private HOME and state folder, a real Codex worker) with a
folder outside any Git repository (`git rev-parse` exit 128):
the Conductor's `mission create` took the folder as its project;
`change` and `external` plans were refused `mission_needs_git`;
`agent spawn --parent here --intent mission-1:synopsis` with no
`--repo`/`--branch` opened the worker in the folder;
it wrote `synopsis.md` there and recorded its line, and Hide closed the
mission done. No candidate process was left.
  - `scripts/verify-cargo.sh lint` (fmt and clippy) clean.
- **Not verified**:
- Windows and Linux: no system-specific code was added (the folder path
goes through the same owner tab as a Git checkout), so their CI lanes
are the check.
- A worker kind never trusted in the folder asks its own folder-trust
question at start; Hide records trust only for the worktrees it makes.
- The phone draws plain-folder missions with no change and was not
opened.
- In the live run the worker's first record, 14 s after its start, came
before the Conductor's bind and was refused
`mission_criterion_not_yours`; its brief said to retry. This race is the
same in a Git mission and is not changed here.
- The live run's Conductor was a shell with a hook-given identity, not a
model; the candidate's Codex config carried the operator's
`danger-full-access` and `approval_policy = "never"`, without which
Codex held the worker's `hide` call for an approval.

## Breaking change

None for a Git project. Downgrade limits, written in `docs/INSTALL.md`:
a build before this drops a mission's `plain_folder` (its plan admits
code nodes again), and reads a folder spawn's record as a branch named
after the folder.
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
…e's captures first (with-hide#2496)

Related: with-hide/hide-private#890

## Summary

A screen gate in a mission asked the operator only after review, verify
and CI had all passed.
Each fix the operator asked for ran that whole line again before they
saw it: on mission-57's card one round took over half an hour while the
code change took 2-3 minutes.
The Conductor can now relay the operator's OK on an end gate with `hide
mission gate <node> --pass --said …` before it asks (a start gate from
with-hide#2485 still answers only once it asks); the gate passes, asks nothing
later, and the node still waits on its other lines.
`hide mission help` now runs a screen gate captures first: the worker
sends captures right after each fix, the Conductor opens them at once,
and the tests, docs, push and checkers follow the OK.

No screenshot: no screen changes; the map shows a passed gate as it does
today.

## Review

- **Decide**: a fix after the OK that changes what the operator saw does
not ask again; the guide says to show the new screens with the next
report.
- **Risky files**: `hide-core/src/runtime/mission_gates.rs` - runs under
the runtime mutex and is the one entry every gate answer settles
through; the early pass is limited to the Conductor's pane relay, and
card, phone and an early fix are refused as before.
- **Cost**: none on a hot path; one more condition in a command handler.

## Tests

- **Layer**: unit, in `hide-core/src/runtime/tests/missions.rs`, where
the gate entry and the done refusal meet.
- **Catches**: an early pane `--pass` refused, a node finishing with
lines open after an early pass, or the gate asking again once passed;
planting the old `gate_open` check for a pane pass fails the new test
with `mission_gate_not_open`.
- **Repeat**: one local run; the changed tests go through CI's repeat
lane.
- **Waits**: none.

## Evidence

- **Verified**: `verify-cargo.sh nextest -p hide-core -E 'test(/gate/)'`
after merging main with with-hide#2485, 65 passed, the start-gate tests among
them (an early pass on a start gate is refused); the new end-gate test
among them; rustfmt check on both changed Rust files; the new test fails
on the old rule.
- **Not verified**: the full Rust workspace, clippy and the `hided`
tests are left to CI (the machine ran at load 36 with 5 GiB free); no
live mission has run with the new guide yet.

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

Base 1717196, main merged once at dfdb50e (with-hide#2485), head
8a8a242. Local: `nextest -p hide-core -E 'test(/gate/)'` 60/60 before
the merge, 65/65 after it; CI green on 8a8a242; planted old rule:
`an_ok_relayed_before_the_gate_asks_passes_it_and_the_node_still_waits_on_its_lines`
failed with `mission_gate_not_open`. Review: one native code review; no
blocking finding on the gate logic; three fixes applied in d504440
(refusal hint, ARCHITECTURE.md, a node is never held on the OK);
follow-ups listed in the PR conversation.

</details>
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
…ult line (with-hide#2466)

Related: follows with-hide#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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/done-before-after.png?raw=true)

![Before (left) and after (right): a stacked node goes into the pull
request it stands on, its PR icon and a grey
number](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/merge_wait-before-after.png?raw=true)

![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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-pr-flow-large-dark.png?raw=true)

![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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/5a3e516/case-marks-large-dark.png?raw=true)

![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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/5a3e516/case-marks-fit-light.png?raw=true)

![Card hover (A): title and band, then 상태, 단계, 들어가는 곳, PR and 머지 rows;
the plan's reason small under 머지 and how to change it under a
hairline](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-operator-hover-deploy-light.png?raw=true)

## 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 with-hide#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, `with-hide#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.

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

![Before (left) and after (right): the look strip moves right under the
title and the card ends in with-hide#2447 →
main](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/gate-open-before-after.png?raw=true)

![PR flow into main: each working card's steps and 지금 line above the
branch line; stacked on [PR] 3101 and another base in
bold](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-pr-flow-dark.png?raw=true)

![Card hover, working: 상태, 워커, 단계 with 지금, the whole branch line, the
PR's state word, who
merges](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-pr-flow-hover-api-dark.png?raw=true)

![Card hover for research: 상태 and the whole conclusion as its
결과](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-direct-hover-cause-dark.png?raw=true)

![Merges the plan gives the operator: a faint person ahead, the yellow
머지할 차례 band and destination when due, grey after with the purple merge
icon](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-operator-light.png?raw=true)

![Planned cards: dashed, no time, the Conductor's steps, ending in PR →
release/1.2 or PR 없이 → release/1.2 on one
row](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-plan-dark.png?raw=true)

![Direct change: → main · PR 없이 moves as one group after the branch; an
outside PR, research with its conclusion, verify with 통과
7/7](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-direct-light.png?raw=true)

![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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-card-stations/67c831c/case-outside-light.png?raw=true)

</details>

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

- 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 with-hide#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 (with-hide#2495, with-hide#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.

</details>
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>
Yolohyo pushed a commit to Yolohyo/hide that referenced this pull request Nov 13, 2026
with-hide#2500)

Related: mission-57 node presets-core, defect d1 (found by
presets-stories on main 2359c77 after with-hide#2485)

## Summary

When a deploy node's start gate was open (`👁 볼 것`, the operator's turn),
the Conductor relaying the operator's OK from its conversation, `hide
mission gate <node> --pass --said "<words>"`, was refused
`mission_gate_not_open`.
The pane path only accepted an end gate, so a start gate could be passed
only from the card or the phone, though the help and the node's own
waiting note tell the Conductor to relay it.
Now an open gate of either kind takes the relayed pass as it takes the
card's; the early OK before a gate asks stays an end gate's only, so a
start gate that is not open yet is still refused from every path.

No screenshot: core rule only

## Review

- **Risky files**: `hide-core/src/runtime/mission_gates.rs` -
`settle_gate`, the one entry every gate answer goes through; the pane
pass is now `gate_open` plus the existing early end-gate OK.

## Tests

- **Layer**: core runtime test beside the other gate tests
(`hide-core/src/runtime/tests/missions.rs`).
- **Catches**: the pane pass on an open start gate being refused;
planted by restoring the old rule, the new test fails at the relay with
`mission_gate_not_open`.
- **Repeat**: does not apply: no e2e spec or tests/it module changed.
- **Waits**: none.

## Evidence

- **Verified**:
`an_open_start_gate_takes_the_operators_ok_relayed_from_the_pane`:
refused before the dependency is done, then passed with the words and
`via: pane`, question gone, worker binds, repeat changes nothing.
- **Verified**: hide-core tests matching `gate` and `start_gate` pass;
`clippy -p hide-core --all-targets -D warnings` clean.
- **Verified**: `hide mission help` now says a start gate takes the
relayed answer once it is open, as `docs/ARCHITECTURE.md` does.
- **Not verified**: no live run in a candidate app (the relay goes
through the same `settle_gate` the test drives); full workspace suite
left to CI.
- **Not verified**: no private doc change: with-hide/hide-private
`docs/missions.md` already refuses the pane answer only "while the gate
is not yet asked".

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

Base 2359c77 (main), head 4d4c898. Filtered nextest and clippy
through `scripts/verify-cargo.sh`.

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