Skip to content

Document Rust and Swift working conventions - #37

Merged
yansfil merged 1 commit into
mainfrom
docs/language-conventions-final
Sep 10, 2026
Merged

yansfil merged 1 commit into
mainfrom
docs/language-conventions-final

Conversation

@yansfil

@yansfil yansfil commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

This adds concise nested working-convention files for the Rust core and Swift shell, gives the second supported runtime a compatibility link to the same source, and registers both documents in the active documentation map so contributors see conventions derived from the code nearest to the files they edit.

Review boundary

  • Runtime mutex: N/A - documentation and instruction discovery only.
  • Snapshot wire: N/A - no field or channel changed.
  • Ownership: N/A - no Herdr-owned or core-owned value changed.
  • Herdr contract: N/A - no method, parameter, field, or bundled pin changed.
  • Failure path: N/A - no product behavior changed.

Evidence

  • Verified by: both supported coding runtimes loaded the Rust heading from herdr-core/ and the Swift heading from macos/; git diff --check passed; the Rust test lanes passed locally; both Swift tests affected by this machine's invalid inherited locale passed individually under the repository's en_US.UTF-8 locale.
  • Convention sample: 34 of 38 ordinary Rust source modules keep inline test modules and two large suites use dedicated *_tests.rs files; all 59 operational diagnostic call sites carry a kind; lib.rs registers 20 private modules and 13 public modules.
  • Convention sample: all 48 Swift test files use Swift Testing and contain 362 @Test declarations; 17 *Presentation types occur across 10 source files; production Swift sources contain no direct print calls.
  • Deliberately excluded: formatter and linter rules that tools can enforce, duplicated runtime architecture, and a requirement that every presentation type have its own file because the tree does not follow that rule consistently.
  • Runtime parity decision: each nested compatibility file is a relative symlink to the adjacent real instruction file, matching the repository root convention without maintaining duplicate text.
  • Not verified (and why): the aggregate local Swift run is not green on this workstation because one existing test omits --verification-no-remote, reads the operator's real mini SSH alias, and blocks the main actor until a 150-second timeout; the pull request's isolated verify workflow is the acceptance run.
  • High-frequency path impact (or N/A): N/A - no executable path or state changed.

Screenshots

N/A - no visual surface changed.

AI tooling

Machine assistance produced the initial wording and repository counts; every convention was checked against the current tree, both nested loading paths were exercised, and the complete diff was reviewed manually.

@yansfil
yansfil merged commit f3e232c into main Sep 10, 2026
5 checks passed
@yansfil
yansfil deleted the docs/language-conventions-final branch September 10, 2026 01:09
yansfil added a commit that referenced this pull request Oct 16, 2026
…m the tools (#1273)

## Summary

- PR 카드가 우측 레인에 뜨면 rail 맨 위에 버튼이 하나 생기는데, PRs 도구와 같은 회색 PR 아이콘이라 도구가 두
개처럼 보였다.
- 승인된 설계(Task lens C, E, I)는 이 버튼을 PR 상태의 아이콘과 색(머지 가능 초록, 머지됨 보라 등)으로
그리고 아래에 짧은 구분선을 둔다. 코드가 둘 다 빠뜨렸다.
- 수정: 버튼과 레인 머리줄의 마크를 카드 PR의 상태 마크로 그리고, 버튼 아래에 도구와 가르는 선을 하나 둔다. 세션 기록은
지금처럼 문서 아이콘이다.

![rail 확대: 왼쪽 before, 가운데 after(라이트), 오른쪽 after(다크). 맨 위 버튼이 초록 PR 마크로
바뀌고 아래에 선이
생김](https://github.com/yansfil/pr-assets/blob/main/with-hide/hide/detail-slot-rail-mark/54e344b/rail-zoom.png?raw=true)

## Review

- **판단해 주세요**: 맨 위 버튼이 PRs 도구와 충분히 구별되는지(색과 선만으로 구별, 모양은 상태가 열린 PR이면 같은
glyph).
- **조심해서 볼 파일**: `web/src/DetailPanel.tsx` - `DetailIcon`이 목록의 PR 상태를
읽는다; 목록에 없는 PR은 상태 없이 기본 glyph를 그린다.

## Evidence

- **확인한 것**: `work-prs.spec.ts` 카드 테스트가 rail 순서 `detail, 구분선, memory,
prs, 구분선, files, changes`와 마크 상태(#31 mergeable, #37 merged)를 확인.
- **확인한 것**: `work-prs`, `right-lane`, `link-graph` e2e 20개, web lint,
web unit 1717개 통과(로컬, pinned Herdr 0.9.3).
- **확인한 것**: e2e 캡처로 라이트/다크 둘 다 Pen 설계(`보기 · PR #1217`:
`$--pr-mergeable` glyph, `보기 | tools divider`)와 맞음을 눈으로 확인.
- **확인하지 못한 것**: 데스크톱 앱 네이티브 화면 캡처는 하지 않았다(같은 웹 셸을 브라우저로 확인).

<details><summary>추가 증거</summary>

레인 전체: 왼쪽 before, 가운데 after 라이트, 오른쪽 after 다크. 머리줄의 `PR #31` 마크도 상태 색으로
바뀜.

![before
after](https://github.com/yansfil/pr-assets/blob/main/with-hide/hide/detail-slot-rail-mark/54e344b/before-after.png?raw=true)

</details>
yansfil added a commit that referenced this pull request Oct 29, 2026
Closes with-hide/hide-private#37
Closes with-hide/hide-private#38
Closes with-hide/hide-private#307

## Summary

A resting Codex CLI was hard to wake and to write to.

- **#37, stray `9;5u` before the resume line.** Sleep pressed Ctrl+C
twice. Codex CLI quits on the first, so the second reached the shell.
Sleep now presses again only when the agent asks for it.
- **#307, letter stuck pending.** A bell whose reservation failed typed
nothing, yet waited for the pane to move. It now retries on the timer,
at most three bells.
- **#38, 429 read as failure.** A Codex CLI turn never answered, whose
conversation's newest retry is a 429, reads `not measured`. A check that
failed on its own beside that turn stays a failure.

스크린샷 없음: 화면을 바꾸지 않는 변경입니다 (셸 입력, 편지 재시도, journey 판정).

## Review

- **판단해 주세요**: the wake clears nothing from the shell's line before it
types. Two cases can still leave text there:
- a quit key the agent never read before the node ended it; only after
`agent_sleep.exit_keys_unanswered`, and no measured run reached it;
- a terminal's answer to the agent's query arriving after it exited;
never seen in a run.
- **판단해 주세요**: after a node end, Herdr keeps the agent's terminal modes
for the shell; filed as with-hide/hide-private#320 (Herdr upstream
report needed).
- **판단해 주세요**: Windows has no real-Herdr sleep-and-wake test (cell in
`docs/INSTALL.md`).
- Codex CLI 0.165.0 never turns the keyboard protocol on there: its
crossterm fork (`openai-oss-forks/crossterm` at `ed1cdab3`) answers
`PushKeyboardEnhancementFlags` with an unsupported error on a Windows
console.
- So a quit press reaches PowerShell as Ctrl+C, never as `ESC[99;5u`.
The press decision is the same code, with unit tests in the Windows
lane.
- **fish 4.9.3 `agent_pane_busy`, a fixture fault**:
- fish 4 runs its man-page completion generator (bash, Python) in its
own foreground group for about 3 s after its first prompt, unless
`~/.cache/fish/generated_completions` exists; fish 3 checked
`~/.local/share/fish`.
- The test sent its first `agent.start` without the shell wait every
product start has, and Herdr refused. It now starts through
`start_within`, and the fixture makes both folders.
- A product start waits on that state for up to 30 s (`SHELL_WAIT`). The
generator runs only on a user's first fish start; how long it takes over
a full set of man pages is not measured.
- **조심해서 볼 파일**:
- `herdr-core/src/agent_sleep_herdr.rs` - failure path: quit presses
follow the screen and the foreground group.
- `herdr-core/src/delivery/doorbell.rs` - failure path: only a failure
before `agent.prompt` retries on the timer.
- `scripts/agent_journey/cells.py`, `journey.py` - only a `NO_ANSWER`
verdict asks the provider log, and a start prefers any other failure.
- `herdr-core/src/agent_start/real_herdr_tests.rs` - the stand-in's
release (`Release`, `Watched`).
- **비용 검토**: sleep reads the screen every 100 ms while quitting, inside
its 5 s grace.

## Evidence

- **확인한 것**:
- Real Herdr 0.9.5: a stand-in Codex CLI (kitty keyboard on, quits on
the first Ctrl+C) is slept and woken by Hide.
- It hands its terminal back only when the test releases it: after the
sleep's screen read shows it quitting, or after a second press is
answered. No timer orders the steps.
- It reads its input a byte at a time up to the first whole Ctrl+C, so a
second press queued with the first stays for the shell.
- Old sleep: 10 of 10 fail (5 runs, zsh and bash), the wake running
`9;5ucodex resume slept-session`; also 10 of 10 when both presses are
queued before the stand-in reads (a local-only hold).
- New sleep: 15 of 15 pass (5 runs, zsh, bash and fish 4.9.3); Linux CI
runs zsh, bash and fish.
- Unit tests: a second press only on the agent's hint or an emptied
draft; an agent quitting on its first press gets one press.
- Unit test: a failed reservation rings again on the timer (0 bells
typed before the fix).
- Provider log: cursor boundary in the same second, another thread, a
later non-429 retry.
- Start composition: an emitter failure beside an unanswered turn and a
429 stays a failure (read `not measured` before the fix).
- Fake-model journey at 698b118, `codex` row alone (codex-cli
0.163.0): 12 of 12 cells; sleep ended Codex CLI by its own key (no
`exit_keys_unanswered`).
- **확인하지 못한 것**:
  - No real-Herdr sleep and wake on Windows (see Review).
- #307's original evidence was deleted; the cause was read from the
issue's log lines, not replayed.
  - No signed-in journey on Codex CLI 0.165.0 here, and no live 429.

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

- base 047d094, head 2397a4e.
- CI run 40860922492 at 2397a4e, attempt 1: green, 41 pass, 3 skipping
(full run, `pr.yml` changed); `windows check` step "Agent sleep ends the
agent's process tree" 4 of 4, the three quit press tests included.
- CI run 40853614406 at f837d75, attempt 1: green, 21 pass, 10
skipping; `rust workspace` 5560 of 5560, real-Herdr shell step 10 of 10
(sleep and wake on zsh, bash and fish).
- CI run 40844861122 at 391c939: attempt 1 failed only `web e2e
windows`, in setup before any test (`spawnSync powershell.exe
ETIMEDOUT`); attempt 2 green, 21 pass, 10 skipping; `rust workspace`
5560 of 5560, real-Herdr shell step 10 of 10 (sleep and wake on zsh,
bash and fish).
- CI run 40839420249 at 698b118, attempt 1: green; `rust workspace`
5560 of 5560 tests, real-Herdr shell step 10 of 10.
- Local full `nextest -p herdr-core -p hide-agent-adapter`: not run
since 923c430 (3461 of 3461); the build at 698b118 hit a full disk,
and CI covers it.
- Python at 698b118: `test_agent_journey_provider_limit` and
`test_agent_journey_cells` 36 OK; `test_agent_live_protection` 53 OK
alone (it timed out in a full run while the disk filled).
- `fmt-check`, `clippy -p herdr-core --all-targets -D warnings` at
391c939: clean.
- Sleep and wake on real Herdr at f837d75: base sleep code 10 of 10
fail (zsh, bash, 5 runs each), and 10 of 10 with both presses queued
before the stand-in's first read; head 15 of 15 pass (zsh, bash, fish
4.9.3, 5 runs each). With that hold and 391c939's one-call read, the
base sleep passed 4 of 4, the hole the byte read closes.
- Sleep and wake on real Herdr at 391c939: base sleep code 10 of 10
fail (zsh, bash, 5 runs each); head 15 of 15 pass (zsh, bash, fish
4.9.3, 5 runs each); fish also passes with fish 4's marker folder
removed (7.4 s, the start waiting out the generator).
- Local fake-model journey, `codex` row, at 698b118: 12 of 12 pass.
- Review: letter-16881 addressed in 923c430 and ca3db1c;
letter-16914 in aed2c51 and 698b118; letter-16977 and letter-16979
in 391c939; letter-17055 in f837d75; the Windows lane runs the quit
press tests from 2397a4e.

</details>
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
Related: with-hide#2451; paired design update: with-hide/hide-private#870.

## Summary

A plan can now leave one node's merge to the operator while the rest of
the mission continues.
That node finishes when its PR is green and approved, then appears in
Your turn with its merge action.
PR-scope missions keep their existing quiet readiness behavior and
closing report.

![Light: before readiness on the left, operator merge turn on the
right](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-merge-owner/6c438ca/comparison-light.png?raw=true)
Look at Your turn: the merge appears only after the PR becomes ready.

![Dark readiness
transition](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-merge-owner/6c438ca/comparison-dark.png?raw=true)
Before readiness is on the left; the ready node's operator merge is on
the right.

![Needs You keeps open PR 31 after the last held PR 37
merged](https://github.com/yansfil/pr-assets/blob/main/hide/feat-mission-merge-owner/6c438ca/turn-sidebar-light.png?raw=true)
Merge turns name the latest still-open held PR and `+N` for the others;
the report names all open PRs.
Map-card strips, stations and headers belong to a separate change.

## Review

- **Decide**: Check the existing turn card's merge wording and the quiet
PR-scope captures in Light and Dark.
- **Risky files**: `mission_health.rs`, `runtime/missions.rs`,
`mission_landing.rs`: completion, landing and device count.
- **Risky files**: `agent_state/tally/phone/missions.rs`, `snapshot.ts`:
additive phone and desktop projection.
- **Cost**: Bounded reads of existing nodes/PRs during mission
publication; no new worker, timer, queue or I/O.
- **Risky files**: `MissionTurn.tsx`, `MissionScreen.tsx`,
`missionList.ts`, sidebar and phone: use the same open PR selection,
including when the last held PR settled.
- **Compatibility**: Storage and wire additions are optional. Old
records keep scope behavior; old builds ignore/drop the override and
cannot honor it. The retained old phone bundle lists and opens a real
new-core frame.

## Tests

- **Layer**: Runtime completion/landing and wire tests, shared
desktop/phone rules, and two fake-GitHub browser flows.
- **Catches**: Readiness mistaken for merge, early/noisy turns, a
missing device count, or a scope-PR readiness turn. Also catches a
report/turn naming a merged or closed last PR while an earlier held PR
stays open.
- **Repeat**: Final candidate: 248 filtered Rust and 149 focused web
tests passed. Two isolated browser scenarios passed twice each (4/4),
including the open-31/merged-37 regression. [CI
checks](https://github.com/with-hide/hide/pull/2459/checks) will rerun
on push.
- **Waits**: Existing catalog, CLI and GitHub observation helpers; poll
node completion and visible UI, with no sleeps.

## Evidence

- **Verified**: Plan owner/reason, readiness turn/count, quiet PR scope,
report and GitHub-driven settlement.
- **Verified**: Real candidate daemon, private fixture state, real
git/local bare origin, and fake GitHub; two flows passed twice each.
- **Verified**: Formatting, lint, design contract, enum contract,
generated-type reproduction and attribution checks.
- **Not verified**: Final-head CI, native window, physical phone,
production relay/GitHub and Windows/Linux runtime.
- **Not verified**: Operator visual approval and independent review
remain with the mission's designated reviewers.

<details><summary>More evidence and compatibility</summary>

The plan accepts `operator_merge` on a merge-scope change delivered by
PR, with a trimmed one-line reason of 1-80 characters.
Omitting the value keeps it; `null` clears it.
The CLI and Conductor guide name the scope exception.
This stays `landing: left/merge`, never a gate; only a GitHub merge
settles it.
A ready exception contributes one mission Needs You item, including the
device count.
Scope `pr` adds no readiness turn/count/badge/notification; its
pre-existing `merge_wait` landing actions remain.

Record schema stays 4, with optional `operator_merge` omitted from old
records.
Released-state fixtures keep their published state through the first
evaluation.
An older build accepts a new record by ignoring the unknown field and
can drop it on save; its scope rules may merge this PR.
Downgrading while relying on the override is therefore not a supported
safety guarantee.

The wire adds optional `node.merge` (`by`, optional `why`, `state`,
`prs`) and PR `base`.
New enum families are added without renaming or removing old values.
The phone explicitly projects these fields; old phone code ignores them,
and new phone code accepts their absence.
`merge.prs` carries only held PRs GitHub last read open, in held order;
older cores omit it and keep their previous display.
Mission rest is an existing schema gap owned by `snapshot.ts` under
`web/AGENTS.md`; declared-frame generation reproduces without changes.
The retained pre-change `/p/5` bundle received an actual new-core
mission frame containing `merge.state=due` and `merge.prs=[31]`, then
listed and opened that mission without a page error.
This browser smoke served the unchanged archived bytes through the
isolated daemon with direct pairing; production relay and a physical
phone were not exercised.

Baseline cells touched, from the supplied inventory:

| Cells | Preserved behavior and extension |
| --- | --- |
| B-1, B-2 | PR readiness and default merge completion remain; only an
explicit merge-owner exception finishes ready. |
| B-7, B-8 | Unsettled landing closes `merge_wait`; GitHub merge settles
it and closes without a Hide action. |
| B-13, B-15 | Existing landing proof and ordering remain; merge targets
and report use only still-open held PRs. |
| B-20, B-21, B-22 | Stale/missing reads do not complete work; required
evidence and follow-up PR behavior remain tested. |
| B-40, B-42 | Add only the explicit ready-node turn; retain existing
closed/merge-wait actions and report. |
| B-44, B-45 | Phone uses the shared optional merge projection; existing
gate and folded-step tests remain green. |
| B-46, B-47, B-48, B-55 | Optional storage addition retains
schema/defaults, migrations, profiles and old records. |
| B-50, B-51, B-54 | Extend existing snapshots with merge
owner/state/reason and PR base; do not replace prior fields. |

No pull-at-close or worktree-cleanup behavior changes here.

</details>

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

Base: `04c0b2d3bce6`; candidate:
`6c438ca61e5cd8507f66bcc1ac16fcecc9369884`.
The final candidate fixes multi-PR selection in reports and merge turns;
it retains the per-node readiness and quiet scope-PR rules.

- Filtered `hide-core` library tests: 248 passed (mission
runtime/health/landing, record/phone, wire enums).
- Six focused web/map/list/sidebar/phone unit files: 149 passed.
- `mission-merge-owner.spec.ts`: 4 passed (two scenarios repeated
twice), real isolated daemon plus local bare origin and fake GitHub.
- `fmt-check`, filtered core clippy, web typecheck/lint/bundle, design
contract, timed-wait policy, harness-ignore and attribution: passed.
- Declared-frame generation with install overrides unset: clean
reproduction.
- 18 filtered CLI formatting/contract tests passed; archived p/5 phone
smoke passed against the final daemon, including the new open-PR list
(one scenario).
- F1 regression was observed failing before the fix: the report omitted
open with-hide#31 and named only with-hide#37. All-open, last-merged and last-closed cases
now pass.
- The previous CI run failed on two missing wait annotations (now
committed) and a Windows fixture compiler timeout before tests; the
final-head run is pending.

Run artifacts stay outside tracked source.
Merge-order after push: stay on main; do not stack on the independent
cleanup PR.

</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>
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
…hide#2470)

## Summary

A delegated agent's open questions (`나를 기다리는 것`) stayed open after its
parent had already answered them in a letter.
Hide is meant to close a child's earlier questions when its parent sends
a `reply` or `request` letter (B12), but it never matched the parent.
The bell line names the writer by the name a person knows it by (its
registered name, else its pane's title), while the child's lineage names
the parent by its wire name (`agent-32039`); for every parent registered
without a name, every Conductor, the two never matched.
The bell record now also carries the writer's wire name and the letter's
kind, the judged message keeps them, and the answer check compares wire
name with wire name.
On the operator's ledger copy, 15 of 20 hand-labelled stale questions
would have closed this way (17 counting two letters too old for the
delivery ledger to show their sender).

## Review

- **Decide**: a parent's request letter closes every earlier question of
its child, and the turn's judgment lists again the ones still waiting
(documented B12, now working). On the labelled sample this also closes 2
of 3 live questions (both a person's own step) unless the judgment lists
them again; the stacked follow-up keeps a person's step from closing on
a parent's letter.
- **Risky files**: `hide-core/src/delivery/doorbell.rs` - the bell is
recorded under the runtime lock as before, with one more owned string;
`hide-core/src/labels/facts.rs` - the verdict saved in `labels.json`
gains an optional field (old records read with none).
- **Cost**: one `wire_name` lookup over the pass's ledger copy per bell
typed; no new work per input or tick.

## Tests

- **Layer**: unit, in the label worker (`labels/tests.rs`), driving real
session files, the real bell line (`delivery::bell::line`) and the bell
record, and reading the `TurnEnd` the ledger receives.
- **Catches**: a parent matched by the name the line shows. Planting the
old comparison fails it: `[true, false, false, false, true]` against
`[true, true, false, false, false]`, which also shows the old code took
an impostor whose line showed the parent's name.
- **Repeat**: the new test 5 times locally, all green.
- **Waits**: none new; the existing `settle` helper.

## Evidence

- **Verified**: `labels::`, `doorbell` and `open_ask` tests, 271 run,
271 passed; clippy `-D warnings` on `hide-core` all targets; fmt.
- **Verified**: root cause reproduced on the operator's ledger copy
(session 1c86d7, letter at offset 3421468: parent `agent-32039`, line
sender `hide 앱 모바일 출시 계획`); the same parent appeared under three titles
in one day.
- **Not verified**: no live run against an installed build; the full
Rust suite and the other lanes run in CI only.
- **Not verified**: the measured effect is a simulation over a copy of
the ledger with the delivery ledger's sender names, not a replay through
the judgment.

<details><summary>Measured on the labelled sample (41 open questions of
11-11/12 with later turns; 20 stale, 3 live by hand)</summary>

| | before | after |
| --- | --- | --- |
| stale closed by a parent's reply/request | 0/20 | 15/20 (17 with two
letters older than the delivery ledger keeps) |
| live closed before the judgment lists them again | 0/3 | 2/3 (778191:
approval, App Store Connect details) |
| roots with no operator answer (#5, with-hide#37, with-hide#40) | open | open: not
certain, left to the stacked fold |

Needs You is unchanged: a delegated row carries no questions, and a
root's hold still ends only on the operator's own message.

</details>

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

Base adb0f56. Suites: nextest `-p hide-core` filtered `labels::`,
`doorbell`, `open_ask` (271/271); clippy `-p hide-core --all-targets -D
warnings`; `check-no-workstation-identity.sh`,
`check-no-attribution.py`, `check-timed-waits.py`.

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