Skip to content

feat: show the shared mission graph on the phone - #2454

Closed
yansfil wants to merge 17 commits into
mainfrom
feat/phone-mission-graph
Closed

yansfil wants to merge 17 commits into
mainfrom
feat/phone-mission-graph

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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

Phone mission graph at 393 pt, demo mission, dark

18-node mission and touch zoom at 393 pt

Phone mission graph at 393 pt, 18 nodes in parallel branches, light

Phone mission graph at 393 pt, 18 nodes in parallel branches, dark

Phone mission graph at 393 pt, native touch pinch to 91 percent and pan

Ready merge remains the operator turn, open PR #33 +1

Paired owning-guide update: https://github.com/with-hide/hide-private/pull/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 feat: leave a node's ready merge to the operator #2459, the detail keeps ready operator merges, newest open held PR and additional count; restoring the old current-PR selection fails on Document Rust and Swift working conventions #37 instead of Distinguish pull request states with colors and icons #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.
Verification record
  • 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 feat: leave a node's ready merge to the operator #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

@yansfil
yansfil enabled auto-merge November 11, 2026 18:15
@yansfil
yansfil disabled auto-merge November 11, 2026 18:29
@yansfil
yansfil changed the base branch from main to feat/mission-card-stations November 11, 2026 19:13
@yansfil
yansfil changed the base branch from feat/mission-card-stations to main November 11, 2026 19:25
@yansfil

yansfil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #2467, using the same verified commit 826e92f014316961d80b7ac520791451313c8b77.
The replacement branch removes the stack on #2466 without rewriting history.
The resolved stack commit remains on keep/phone-mission-graph-on-stations.

@yansfil yansfil closed this Nov 11, 2026
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
…ith-hide#2462)

Closes with-hide/hide-private#826
Related: with-hide#2443 and with-hide#2456; unblocks verification of with-hide#2460 and with-hide#2454.

## Summary

Native checks still assume an immediate blocked-child raise and the old
phone pause explanation.
Wait for the real raised request after the approved grace, and expect
the approved computer-use description.
Close Settings and wait for the presented frame before capturing the
raised pane in either theme.

## Review

- **Decide**: budgets account for with-hide#2443's approved grace; the grace
boundary remains covered by core tests.
- **Risky files**: `session-workflow.spec.ts` retains the real
blocked-child path and exact raised-label predicate.
- **Risky files**: `phone-push-settings.spec.ts` keeps the full copy
assertion against with-hide#2456 and `UI_BEHAVIOR.md`.

## Tests

- **Layer**: native e2e checks Korean task rows, pane bands, terminal
geometry and persisted phone pause settings.
- **Catches**: old main runs fail before the 60-second grace; the first
candidate reaches the unchanged UI assertions.
- **Catches**: the same CI exposed the obsolete pause explanation on
both attempts; its assertion remains exact.
- **Repeat**: grace candidate passes once without retry; final candidate
macOS validation is pending.
- **Waits**: snapshot guard allows the 60-second grace plus its existing
30-second label budget.
- **Waits**: test guard adds that grace to its existing 90-second
budget; Settings absence is asserted before capture.
- **Waits**: existing animation/compositor helpers wait for the
presented native frame; no custom delay is added.

## Evidence

- **Verified**: first candidate PR verify passes typecheck, lint, size
budgets and timed-wait policy.
- **Verified**: its macOS session workflow passes in 94.492 seconds on
the first attempt, with every assertion intact.
- **Verified**: its native artifacts expose a stale Settings frame in
the light capture, corrected by the new gate.
- **Not verified**: final candidate CI and fixed captures are pending;
local builds exceed the 2.4 GiB disk margin.
- **Not verified**: original pre-with-hide#2443 intermittency is not
independently diagnosed; direct delegation, no PRD run.

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

Base `8ee63b8e5138fd6aae02d987fd4563458f842d1a`; final candidate
`b897729e73`.
Before: main run 43031426412 and with-hide#2460 run 43060583267 fail the
30-second raised-label wait on both attempts.
Grace candidate `0c50b38168`:
https://github.com/with-hide/hide/actions/runs/43065626764
Mac desktop:
https://github.com/with-hide/hide/actions/runs/43065619655/job/130679676966
Shard 1 passes 64 tests, skips one; shard 2 passes 65, skips ten and
fails only the old phone-pause copy.
The original reports, native windows and failure logs are preserved
locally.
Remaining unrelated jobs in that superseded nightly were cancelled
before final-candidate validation.
Self-review: product, snapshot, lifecycle and cleanup are unchanged;
state predicates remain exact and guards finite.

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