Skip to content

Move live and remote Herdr parsing to the typed boundary - #13

Merged
yansfil merged 3 commits into
mainfrom
prd/herdr-typed-live-remote
Sep 6, 2026
Merged

yansfil merged 3 commits into
mainfrom
prd/herdr-typed-live-remote

Conversation

@yansfil

@yansfil yansfil commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

This moves the remaining live and remote Herdr request and response handling through herdr-core/src/wire.rs.
Generated request parameter types now build workspace, tab, pane, layout, read, resize and zoom calls, while generated response variants produce the existing domain values and diagnostics.
The old pointer-based agent result parser and remote string helpers are removed, and a private pinned-server probe captures the real agent_created response shape.
Protocol 21 snapshots now decode strictly against the generated contract after the existing protocol-first check.

Review boundary

  • Runtime mutex: No runtime mutex path changed, and this refactor adds no work while the mutex is held.
  • Snapshot wire: No snapshot field or delivery channel changed; only decoding moved behind the generated wire boundary.
  • Ownership: Herdr-owned pane, tab, split, zoom and PTY behavior is unchanged; the core still waits or advances exactly where the existing callers did.
  • Herdr contract: Generated parameter types cover the declared control methods. session.snapshot and terminal input, scroll, resize and release remain boundary-owned schema gaps with tests that require their manual builders to be deleted when generated types appear.
  • Failure path: Existing live error strings and remote stage, retryable and action_required classifications are preserved. A malformed protocol 21 snapshot reports a non-retryable, action-required Protocol diagnostic with the decode error.

Evidence

  • Verified by: unified acceptance 10/10 PASS and suite 3/3 GREEN from agents/runs/herdr-typed-live-remote/receipt.json.
  • Verified by: 288 core tests, 30 FFI contract tests and 100 Swift tests, plus release and Swift builds, pin, schema, structure and workstation-identity gates.
  • Verified by: an isolated pinned-server probe covering workspace create, tab create and move, pane split, layout and read, session snapshot, and the real agent new response.
  • Verified by: isolated desktop startup, protocol mismatch refusal without stopping the foreign server, and recovery after that server was stopped.
  • Not verified: N/A - every required build, behavior and isolated desktop check ran successfully.

Screenshots

N/A - no visual surface changed.

AI tooling

N/A - no attribution is included in this PR.

Human review focus

The main review points are the generated response variant selection in wire.rs, the small preflight checks that preserve legacy diagnostic priority, and the explicit list of request schema gaps.
The isolated probe and full suites prove behavior and contract compatibility; reviewer judgment is limited to the clarity of that boundary.

Risks and rollback

The change does not alter the schema, pinned runtime, retry policy, snapshot delta, notifier or runtime mutex behavior.
Rollback is the three commits on this branch.
There are no deferred checks or known unresolved items.

@yansfil
yansfil merged commit 5612674 into main Sep 6, 2026
4 checks passed
@yansfil
yansfil deleted the prd/herdr-typed-live-remote branch September 6, 2026 07:38
yansfil added a commit that referenced this pull request Sep 6, 2026
The PRD is the approved contract a reviewer reads to judge the change, and
AGENTS.md makes it the one committed file under agents/. PR #13 shipped the
implementation without it.
yansfil added a commit that referenced this pull request Sep 19, 2026
The rule now lives in the principle set as design #13, so the runtime
notes keep only what is local: the log is where an unactionable failure
goes, and a presented surface is a PRD decision.
yansfil added a commit that referenced this pull request Sep 19, 2026
…ing analysis (#106)

## Summary

에이전트가 기능을 구현할 때 데이터가 만들 수 있는 상태를 전부 화면에 올리려는 경향이 있었고, 그 근거가 문서 표현에 있었다.
`AGENTS.md`의 "a refusal or a timeout keeps the core's value and says
so"는 누구에게 말하는지 적지 않아 UI로 읽혔고(#105의 런치 alert가 그 결과), 디자인 캔버스 규칙은 "one
frame per state the data can produce"라 상태 수만큼 보드를 그리게 했다.

- 런타임 노트는 원칙 집합의 design #13("a state reaches the screen only where the
operator would act on it; a failure they cannot act on goes to the
log")을 가리키고, 로컬 사항만 남긴다: 조치 불가한 실패는 진단 로그로, alert/banner/sheet는 PRD 결정이지
기본값이 아니다.
- `Screen /` 보드는 운영자가 다르게 보는 상태당 한 프레임; 로그 한 줄만 바뀌는 상태는 프레임이 없다.
- `DESIGN.md`에서 Raycast 마케팅 사이트 분석 810줄(hero stripe, white CTA pill,
96px section rhythm, store card)을 지웠다. 셸이 참조하지 않던 값이고, 모든 surface 변경이
1400줄을 선독하게 만들고 있었다. front matter는 native 섹션이 참조하는 토큰만 남겼고, `.help()` 금지
규칙은 삭제된 Don't 목록에서 tooltip 섹션으로 옮겼다.

## Review focus

- **사람이 판단할 것**: design #13을 원칙 집합에 추가한 것이 맞는지(oh-my-principle 220c86b).
이 PR은 그 결정을 전제로 한다.
- **위험한 파일**: `DESIGN.md` front matter. `check-hide-design.mjs`가
`essence:`와 `.help()` 문장을 요구하고 `@google/design.md lint`가 orphan token을
경고하므로, 두 file-icon 색은 `shell-file-icon-*` 컴포넌트로 묶었다.

## Risk surface

diff는 문서와 Swift 주석 한 줄이라 런타임 위험면은 없다.

## Evidence

- **확인한 것**: `node scripts/check-hide-design.mjs` (lint 0 errors 0
warnings, 필수 문장 3개 존재), `bash
scripts/check-git-worktree-presentation.sh`, `node
scripts/check-design-contract.mjs` (theme literals 0, 캔버스 146 generated
values 일치), `node scripts/check-hide-design-enforcement.mjs`, `bash
scripts/check-no-workstation-identity.sh` 모두 통과.
- **확인하지 못한 것과 그 이유**: 문서 변경이 이후 에이전트 세션의 행동을 실제로 바꾸는지는 다음 구현 PR에서만
관찰된다.

## AI tooling

- [ ] 사람이 직접 작성  - [ ] 일부를 AI 도구로 작성  - [x] 대부분을 AI 도구로 작성

**손으로 확인한 것**: 삭제 범위(DESIGN.md 469-814행)에 native 규칙이 `.help()` 한 줄 외에
없음을 grep으로 대조했고, 남은 섹션이 참조하는 토큰 집합과 새 front matter가 일치함을 대조했다.
yansfil added a commit that referenced this pull request Sep 26, 2026
…#162)

Closes #153

## Summary

웹 셸은 core가 이미 계산하는 주간 사용량을 보여주지 않았고, 갱신 힌트도 보내지 않아 웹만 쓰는 세션은 첫 읽기 뒤로 값이
멈췄습니다.
이제 사이드바 하단 device picker 오른쪽에 provider별 chip(마크 + 반올림 퍼센트)이 있고, 누르면
Swift와 같은 구조의 `Weekly Usage` / `7 days` popover가 열립니다.
색은 70 미만 success, 70부터 warning, 90부터 destructive이고, loading과
unavailable은 흐린 마크만 남기며 이유는 popover 행에 적습니다(배너 없음, 원칙 #13).
웹은 페이지 가시성과 popover 열림을 `ui_state_update`의 두 힌트로 보내고,
계약(`providerUsage`, `uiStateUsageHints`)과 생성 타입, Pen Component 시트와 사이드바
Screen 시트를 함께 갱신했습니다.

![Dark: Claude Code 62%와 Fable 6%, `codex` 행은 로그인 없음으로
Unavailable](https://github.com/yansfil/pr-assets/blob/main/hide/web-weekly-usage/97fec82/popover-dark.png?raw=true)

![첫 읽기: Claude Code 행은 loading(…)과 `Checking usage…`, chip은 흐린
마크만](https://github.com/yansfil/pr-assets/blob/main/hide/web-weekly-usage/97fec82/popover-first-read-dark.png?raw=true)

![Light: 93%는 destructive, Fable 74%는
warning](https://github.com/yansfil/pr-assets/blob/main/hide/web-weekly-usage/97fec82/popover-light.png?raw=true)

![Pen Screen / Main 사이드바 footer의 chip, Light와
Dark](https://github.com/yansfil/pr-assets/blob/main/hide/web-weekly-usage/97fec82/main-sidebar-both.png?raw=true)

## Review

- **판단해 주세요**: Settings는 웹 헤더에 그대로 두고 chip만 footer에 넣었습니다. Swift처럼
Settings도 footer로 옮길지.
- **판단해 주세요**: 정각 경계에서 카운트다운이 `in 3h 0m`으로 읽힙니다. Swift 코드는 분을 항상 1 이상으로
올려 `in 3h 1m`입니다. 웹은 실제 남은 분을 택했습니다.
- **판단해 주세요**: popover 폭은 새 토큰 대신
`--size-agent-children-popover`(280px)를 재사용했습니다. 병렬 브랜치와 `tokens.json`,
두 `.pen` 변수 블록 충돌을 피하려는 선택입니다.
- **판단해 주세요**: stale과 fallback 행의 메시지(`Last checked 7m ago · offline`,
`From last Codex session`)를 Swift의 툴팁 대신 막대 아래에 보입니다.
- **조심해서 볼 파일**: `web/src/components/weekly-usage.tsx` - ownership: 힌트는
UI state 전체를 되보내는 `updateUiState` echo로 갑니다(연결될 때, 가시성이 바뀔 때, popover를
열고 닫을 때 한 번씩).
- **조심해서 볼 파일**: `web/scripts/gen-types.mjs` - snapshot wire: 생성기는
frame이 닿는 타입만 내므로, 웹이 읽는 snapshot `$def`을 이름으로 나열합니다.
- **조심해서 볼 파일**: `web/e2e/wire.ts`, `web/e2e/hided-fixture.ts` - 공유 e2e
helper: 힌트 전용 `ui_state_update`를 `ui_state_update.usage_hint`로 따로 세고,
fixture에 env override와 log pipe race 수정이 들어갔습니다.
- **질문**: core는 힌트를 값 하나로 들고 있어 웹 페이지가 여럿이면 마지막 보고가 이깁니다. hided가
`ai_settings.observing`처럼 연결별 demand로 모으는 후속 이슈를 열까요?

## Evidence

- **확인한 것**: `pnpm --dir web typecheck`, `lint`, `test`(40 files, 327
tests, 새 `usage.test.ts` 6개 포함).
- **확인한 것**: 최종 head에서 `pnpm --dir web e2e` 전체 61개 통과, 0개 실패(10.8분). 격리된
pinned Herdr 0.9.1(private socket)과 새로 빌드한 hided로 실행했습니다.
- **확인한 것**: 새 `weekly-usage.spec.ts`는 daemon PATH의 `claude` shim(해제 전까지
대기)과 `codex` 로그인이 없는 HOME으로 loading에서 available(62%, Fable 6%, `in 5d
4h`)로 넘어가는 행과 unavailable 행, 접근성 이름, popover 열고 닫힘, hidden 페이지 힌트를
확인합니다.
- **확인한 것**: 로컬 전용 실행에서 shim 인자를 기록해 `claude -p /usage`가 시작 시 1회, 62초 뒤
popover를 다시 열 때 1회, 곧바로 다시 열 때 0회 실행됨을 확인했습니다.
- **확인한 것**: `node scripts/check-design-contract.mjs`, design node test
4종(51개), `python3 -m unittest discover -s scripts/tests`(39개),
`check-no-workstation-identity.sh`, `check-hide-design-enforcement.mjs`,
`check-no-attribution.py`.
- **확인한 것**: Pen 시트를 headless `pen interactive`로 열어 Light와 Dark PNG로
렌더하고 앱 캡처(Light, Dark)와 대조했습니다.
- **확인한 것**: 첫 전체 e2e에서 `s2` 등록 테스트(연결 시 힌트가 `ui_state_update` 수를 하나
늘림)와 `overview` 재시작 단계(fixture log의 `write after end`)가 실패했고, 두 helper를
고친 뒤 전체를 다시 통과시켰습니다.
- **확인한 것**: CI 첫 실행에서 `s7.spec.ts:270`(Open to the side)이 383행 더블클릭 뒤
탭이 preview(`@(>keep.txt*)`)로 남아 한 번 실패했습니다. 힌트는 연결, 가시성 변경, popover 열고
닫을 때만 나가 이 단계와 겹치지 않고, 로컬에서 같은 head로 4회 반복해 4회 통과했으며, 실패한 job 재실행에서 web
shell을 포함한 전체 check가 통과했습니다. main에서도 매번 다른 e2e 한 개가 떨어지는 같은 유형(`s7:516`,
`s6:27`, `desktop:117`)이 있습니다.
- **확인하지 못한 것**: desktop lane과 cargo, Swift lane은 로컬에서 돌리지 않았고
CI(desktop app, rust workspace, swift shell)에서 통과했습니다. Rust, Swift,
desktop 소스는 바뀌지 않았고, desktop은 같은 `web/dist`를 띄웁니다.
- **확인하지 못한 것**: hidden 페이지에서 5분 주기 갱신이 멈추는지는 5분을 기다려 보지 않았습니다. 웹이
`usage_window_visible: false`를 보내는 것은 e2e가, core 스케줄은
`refresh_schedule_stops_hidden_ticks_and_observes_popover_age`가 확인합니다.
- **확인하지 못한 것**: 같은 계정의 Swift 앱과 나란히 퍼센트를 대조하지 않았습니다. 임계값, 반올림, 카운트다운
규칙은 Swift 코드를 기준으로 단위 테스트로 맞췄습니다.
- **생성물**: `design/hide-ui.lib.pen`(+904줄, 새 시트 하나만 추가),
`design/hide-screens.pen`(Main, Workspace 사이드바 footer 노드만),
`web/src/generated/hided-ws.ts`(+34줄)는 스크립트 출력입니다.

**AI tooling**: 대부분 AI 도구로 작성. Swift 참조 화면과 웹 및 Pen 캡처를 대조하고, 생성된 `.pen`
diff가 새 시트와 footer 노드만 바꾸는지 노드 id로 확인했습니다.
yansfil added a commit that referenced this pull request Oct 7, 2026
## Summary

pane이 하나뿐인 tab에서 zoom(⌥⌘↩)을 누르면, 그 뒤로 그 tab의
split(⌘D)·zoom·resize·close가 hided 재시작 전까지 전부 조용히 무시됐습니다.
Herdr는 pane이 하나인 tab의 zoom에 `changed:false`, `reason:"single_pane"`으로
답하는데, core는 이 답을 보지 않고 zoom 상태가 바뀌기를 기다립니다.
바뀌지 않으니 작업 기록이 `unknown`이 되고 기한도 사라져, 같은 tab의 다음 작업을 모두 "이미 진행 중"으로
거절했습니다.
이제 core가 pane 하나짜리(zoom되지 않은) tab의 zoom을 Herdr에 보내지 않고 진단
로그(`pane.zoom.single_pane`, device는 `remote.control.zoom_single_pane`)만
남깁니다.
우클릭 메뉴는 이미 이 경우 Zoom pane을 비활성화하고 있었고, 단축키 경로만 빠져 있었습니다.

## Review

- **판단해 주세요**: 막힌 zoom을 화면에 알리지 않고 로그로만 남깁니다(메뉴 비활성과 같은 결과, 설계 원칙 #13).
- **조심해서 볼 파일**: `herdr-core/src/runtime/events.rs`,
`herdr-core/src/runtime/agents.rs` - runtime mutex 안에서 도는 이벤트 처리. 추가된 것은
이미 들고 있는 layout을 한 번 조회하는 것뿐입니다.
- **질문**: 이미 `unknown`에 기한 없이 남은 작업이 tab을 무기한 막는
경로(`expire_pane_operations`, `expire_remote_operations`) 자체는 그대로 둡니다. 다른
원인으로 같은 상태가 생길 수 있어 별도 이슈로 다룰지 의견 주세요.

## Evidence

- **확인한 것**: 별도 Herdr 0.9.1 서버에서 pane 하나 tab의 `pane zoom`이
`changed:false, reason:"single_pane"`을 반환하고, split 후에는 zoom이 정상 토글됨을 직접
확인했습니다.
- **확인한 것**: 운영 중인 앱 로그에서 13:29 zoom 이후 같은 tab의 `pane.split.*.requested`
8건이 Herdr로 하나도 나가지 않았고, snapshot에 그 zoom 기록이 `unknown`, 기한 `null`로 남아
있었습니다.
- **확인한 것**: 새 runtime 테스트 2개(local `FakeHerdr`, device)가 가드를 끄면 실패하고 켜면
통과합니다. herdr-core 전체 1641개 통과, `verify-cargo.sh lint` 통과.
- **확인한 것**: 단일 pane tab을 zoom하던 기존 테스트 3개는 fixture에 두 번째 pane을 넣어 원래
의도(여러 pane tab의 zoom 확정 순서)대로 고쳤습니다.
- **확인하지 못한 것**: 패키징한 앱에서 직접 눌러본 수동 확인은 하지 않았습니다(설치된 앱 교체 권한 없음).
web/desktop e2e는 CI에 맡깁니다. 해당 spec은 여러 pane tab만 zoom합니다.
yansfil added a commit that referenced this pull request Oct 9, 2026
Related: PRD `agents/prd/session-readers-opencode/prd.md` · 세션 리더 공통
#804, Pi #826, omp #865, Grok #868, Cursor #877 다음의 마지막 child

## Summary

- OpenCode 1.18.30의 세션을 세션 파일이 아니라 OpenCode 자신의 SQLite DB에서 읽기 전용으로
읽습니다.
- 읽을 때마다 같은 transaction 안에서 id가 root session(`parent_id` 없음)이고 기록된
`directory`가 정확히 그 checkout임을 증명합니다.
- 그 증명 위에서 native 제목, `question` 도구 대기, 재우기/깨우기(`opencode -s <id>`),
fork(`-s <id> --fork`)를 켭니다.
- 프로젝트 아카이브 목록/검색/상세와 폰 대화도 `opencode/<id>` locator로 같은 증명을 거쳐 읽습니다.
- lifecycle gate는 `requires_native_proof`(native-file reader 전부 +
OpenCode) 하나로 모았고, 증명 참조는 OpenCode만 id, 나머지는 path입니다.

![OpenCode의 native question이 행의 질문 상태와 pane header의 Answer 태그로
보인다](https://github.com/yansfil/pr-assets/blob/main/hide/session-readers-opencode/023cd90/opencode-native-question.png?raw=true)

![재운 OpenCode 세션이 opencode -s <id>로 새 pane에서 같은 제목으로
깨어난다](https://github.com/yansfil/pr-assets/blob/main/hide/session-readers-opencode/023cd90/opencode-exact-wake.png?raw=true)

## Review

- **판단해 주세요**: DB를 열 수 없을 때 OpenCode 행만 빠지고 화면에는 아무것도 띄우지 않으며 core
로그(`sessions.store_unreadable`)에만 남깁니다(원칙 #13).
- **판단해 주세요**: 그 refusal은 기존 ProjectSessions 답의 한
행(`{"agent","store_refused"}`)으로 옵니다. 옛 core는 refused row 하나로 셉니다.
protocol bump 없이 택한 방식입니다.
- **조심해서 볼 파일**: `hide-agent-adapter/src/lib.rs` - Herdr/core ownership.
`requires_native_proof`가 Grok/Cursor/Pi/omp gate를 그대로 덮는지.
- **조심해서 볼 파일**: `hide-session/src/opencode.rs` - failure path. 모든 SQL은
progress handler 작업 상한과 행 크기 가드 아래에서 돕니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/memory.rs` - Memory 분석이 Memory
reader 있는 agent만 읽도록 바뀌었습니다(OpenCode, Cursor 제외).
- **비용 검토**: 상시 경로 추가 없음. 읽기는 기존 label/activity 요청 때만, 한 번에 1 MiB,
message 200개, part 512개, SQL step 상한 안에서 끝납니다.

## Evidence

- **확인한 것**: sealed verify PASS(cargo test 249 s, lint 4 s), 최종 head에서
clippy workspace clean, nextest 10 crate 3463 통과.
- **확인한 것**: e2e `session-readers.spec.ts` 8/8. DB를 쓰는 OpenCode 대역으로 제목,
child 제목 제외, question 대기/해제, 재우기, `-s <id>` 깨우기, DB+WAL 무변경.
- **확인한 것**: 설치된 OpenCode 1.18.30 실물(로그인 없음, private HOME과 격리 Herdr)로
`-s <id>` 정확 재개, `-s <id> --fork`가 parent 없는 새 root, 실제 WAL DB 읽기.
- **확인한 것**: web typecheck/lint/test 1312 통과, design contract 통과.
- **확인하지 못한 것**: `agent-live-check.py --agents opencode`는 도구 sandbox에서
agent 시작이 timeout, 모든 장면 not_tested, verdict unknown.
- **확인하지 못한 것**: windows check의 `web/e2e/windows-sockets.unit.ts`가
powershell 30 s ETIMEDOUT로 실패(이 PR과 무관, quarantine #880), 실패 잡만 재실행.
- **확인하지 못한 것**: 로그인한 실제 모델 턴의 question 호출, 설치된 OpenCode의 Herdr 세션 자동
보고, 패키지 앱 UI, 실제 폰.

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

- PRD: `agents/prd/session-readers-opencode/prd.md` (sha256
25e35a2b30c918aa5a78c796d0be819bd0eb3de537f002e48a40fc220126b479)
- Base f2ad76a → head 023cd90, verified 2026-10-09T13:20:21.197Z: PASS
- Verification report:
`agents/runs/session-readers-opencode/verification-report.json` and
`agents/runs/session-readers-opencode/verification-report.md`; source
fingerprint
76065e2461def954a490d75420ab1e8fde62f12c7ee7ba0e7ed65a0bdae735b2
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews (advisory):
- Fidelity+Code 1차 (1e7ab02): Fix now 8건 모두 수정. catalog가 DB 실패로 전체 이력을
비우던 것, SQL work cap 누적, pending question, Memory 분석 정지, 폰 newest page
누락, 건너뛴 message의 witness, question 크기 admission, 문서.
- follow-up (fb39ca3): Fix now 3건 수정. DB 단위 실패의 진단 누락(store refusal
row + `sessions.store_unreadable`), json_valid 앞 크기 가드, budget admission
테스트.
- follow-up (0c82c74): Fix now 1건 수정. NotFound 이외 stat 오류를 missing으로
읽던 것. page cap 초과 refusal row도 함께 수정.
- follow-up (merge 후 최종 head 023cd90): Fix now 없음. Low 1건(mode 000 테스트가
root runner에서 실패할 수 있음)은 Follow-up.
- Follow-up: 로그 per-poll 중복, catalog cap에서 refusal 분리, stat 두 번의 race,
OpenCode 3 s follow-up poll 없음(설계), Cursor Memory 제외 테스트, Factory guard
테스트에 Grok/Cursor 추가, 다음 protocol bump에서 typed `{sessions, refusals}` 답.
- Evidence: none registered separately.
- Changed paths: 51 (see Files changed)
- Delivery: mode pr, branch `feat/session-readers-opencode`, base `main`

</details>
yansfil added a commit that referenced this pull request Oct 17, 2026
## Summary

core를 Mac mini로 옮긴 뒤 MacBook 창에서, MacBook pane이 찍은 자기 checkout의 파일 경로를
눌러도 아무것도 열리지 않았습니다.
core가 그 checkout을 자기 기계 목록(navigator)에서만 찾아서, node 세션에 있는 MacBook의
checkout을 "등록되지 않음"으로 버렸기 때문입니다.
이제 core는 node와 기기의 checkout도 catalog에서 찾고, 창은 그 경로가 node의 것임을 이벤트에 적어
보냅니다.
Overview에서 누른 경로처럼 그 checkout이 node에서 앞에 있지 않으면, node의 Herdr에 그
checkout을 앞으로 가져오게 하고 도착하면 파일을 엽니다. 이 기계의 checkout을 눌렀을 때와 같은 결과입니다.
그 기다림은 요청이 살아 있는 동안만 이어집니다. node가 거절하거나 답을 잃거나, 다른 선택이 오거나, 기기가 빠지거나,
node의 앞 checkout이 다른 곳으로 가거나, 답이 5초 안에 오지 않거나, 수락 뒤 15초 안에 도착하지 않으면
버립니다. 그래서 나중에 운영자가 직접 그 checkout을 열어도 예전 클릭의 파일이 열리지 않습니다.
같은 기다림에 실리는 Memory 이동도 이제 같은 규칙으로 만료됩니다. 의도한 변경입니다: 전에는 수락된 Memory 이동이
기한 없이 기다려, 한참 뒤 운영자가 그 checkout을 열면 Memory가 열렸습니다.
같은 실수가 있던 곳도 고쳤습니다: node 프로젝트 PR 카드의 연결 기록, node PR의 1분 시계와 CI 재확인.
`docs/status-model.md`의 "기기 행은 PR을 잇지 않는다" 문장은 실제 동작(기기 행은 CI를 기다리지 않고,
node PR은 연결 기록과 PR 카드로만 이어짐)에 맞게 고쳐 썼습니다. 동작은 바뀌지 않았습니다.

스크린샷 없음: 바뀐 화면 모양이 없습니다. 웹 변경은 terminal link 클릭이 보내는 이벤트에 `device_id`를
더하는 것뿐이고, 결과(파일이 열림)는 core 테스트가 확인합니다.

## Review

- **판단해 주세요**: node에서 앞에 있지 않은 checkout의 경로는 `focus_device: true`인
`FocusWorkspace` 요청으로 node를 앞으로 가져오고, 기다리는 Workspace
선택(`PendingChoice::reveal`)에 reveal을 실어 두었다가 sync가 도착을 보면 엽니다. View 영역이
없는 runtime(제품 hided는 늘 있음)에서만 예전처럼 `reveal.not_in_front`로 거절합니다.
- **판단해 주세요**: 기다리는 Workspace 선택(`PendingChoice`)에 수명을 줬습니다.
`FocusWorkspace`는 추적되는 remote operation이 아니라 `expire_remote_operations`가
보지 못하므로, 선택이 스스로 기한을 가집니다: 답에 `CLOSE_STAGE_TIMEOUT_MS`(5초, PRD D-08의 단계
기한과 같음), node가 수락하면 도착에 `CHOICE_LANDING_TIMEOUT_MS`(15초). 도착은 node
Herdr의 포커스 변경과 node 세션의 publish를 기다리고, 느린 tailnet에서는 5초를 넘을 수 있어 넓혔습니다.
요청 때 node의 앞 checkout을 기억해 두고, 그것도 요청한 checkout도 아닌 곳으로 앞이 옮겨 가면 버립니다. 이
규칙은 reveal, Memory 이동, D-11의 "고른 Workspace" 기억에 모두 적용됩니다. 수락 뒤 15초 넘게 늦게
도착한 앞은 운영자의 선택으로 기억되지 않고 실린 것도 돌지 않습니다.
- **판단해 주세요**: 만료는 로그에만 남습니다(`workspace.choice_expired`, 앞 이동은
`workspace.choice_dropped`). 운영자가 할 수 있는 일이 없는 실패라 화면에 올리지 않습니다(설계 원칙
#13). 그 결과 15초를 넘긴 클릭은 화면에서 조용히 아무 일도 하지 않습니다.
- **판단해 주세요**: node 프로젝트의 PR이 CI를 돌리는 동안, Sessions가 보이면 1분마다 node의
GitHub 읽기를 다시 요청합니다(이 기계 프로젝트와 같은 규칙). 전에는 5분 주기 읽기에만 기댔습니다.
- **기기 범위 답**: `links.rs`의 `link_projects_print`, `link_projects`, 부모
표(~318/354/454)는 main에서도 이미 기기 세션을 훑었고(`link_lineage_workspaces`), 이 PR은
같은 일을 하는 `catalog_workspaces`로 이름만 바꿨습니다. 기기 프로젝트의 PR은
`device_github`에서만 오고, 그 표는 스스로 사실을 보고하는 node만 채웁니다(`projects.rs`,
`LinkOrigin::reports_own_facts`). 그래서 새로 열린 동작(`open_links`, 1분 시계,
재확인)은 실제로 node에만 닿고, SSH 기기 프로젝트에는 PR이 없습니다. `lay_checks`는 이 기계 pane만
놓으니 기기 행은 계속 CI를 기다리지 않습니다.
- **비용**: 1분 tick(`tick_work_clock`)은 node 프로젝트에만 PR이 있어도 이제
`refresh_agent_scopes_at`을 1분에 한 번 돌립니다. 이 함수는 이미 이벤트 처리 47곳에서 부르는 lock
안의 행 순회(I/O 없음)이고, scope cache가 결과를 비교해 바뀐 것이 없으면 publish하지 않습니다. 더해지는
것은 1분에 순회 한 번입니다. 재확인은 CI가 도는 node 프로젝트 수만큼, 이 기계 프로젝트와 같은 상한입니다.
- **조심해서 볼 파일**:
- `herdr-core/src/runtime/session.rs` - reveal이 catalog에서 checkout을 찾고,
기기 세션의 checkout이면 core 포커스를 옮기지 않으며, 뒤에 있으면 기기의 Herdr에
맡깁니다(`reveal_when_in_front`, Herdr/core ownership).
- `herdr-core/src/runtime/workspace_view.rs` - `PendingChoice`가 reveal을
들고, 도착한 sync에서 메모리 표시 다음에 reveal을 돌립니다. 기한, 앞 checkout 기준, 버리는 규칙도 여기
있습니다(runtime mutex 안, I/O 없음; 선택이 기다리는 동안 sync마다 그 기기 세션의 checkout을 한 번
훑습니다).
- `herdr-core/src/runtime/agents.rs`, `operations.rs` - 수락 답이 도착 단계 기한을
새로 걸고(`acknowledge_choice`, 전 `acknowledge_memory_navigation`), tick이
기한을 봅니다(failure path).
- `herdr-core/src/runtime/request_view.rs` - 1분 tick 경로(high-frequency
path): 판단 대상이 catalog 전체로 넓어졌습니다.
- `web/src/actions.ts` - node checkout의 `file_open`/`reveal_path`가
`device_id`를 실어 hided가 core 기계의 root로 경로를 판단하지 않게 합니다(failure path).
- **질문**: node 행도 node PR의 CI를 기다리게 할까요? 이 PR은 그 계약을 바꾸지 않았습니다.

## Evidence

- **확인한 것**: 새 core 테스트 5개 중 4개는 main 코드에서 실패하고(reveal은 버그 보고와 같은
`reveal.unknown_checkout`), 수정 뒤 통과합니다.
- **확인한 것**: 뒤에 있는 node checkout 테스트는 이전 head(a96db77)에서
`reveal.not_in_front`로 실패하고, 지금 통과합니다. 클릭 직후에는 아무것도 읽지 않고 기기의 Herdr에
`FocusWorkspace`가 기록되며, node의 front가 바뀐 sync 뒤에 파일이 node 채널로 읽힙니다.
- **확인한 것**: node reveal 테스트 둘 다 읽기가 node 기기의 채널(`Call::OpenDocument`)로
갔는지 확인합니다.
- **확인한 것**: `a_reveal_waiting_on_a_node_dies_with_the_request`가 일곱
경우(거절, 연결과 함께 잃은 답, 다른 선택, 기기 이탈, 앞이 다른 checkout으로 감, 답 없이 5초 지남, 수락 뒤
5초가 지나도 기다리고 15초 지나면 버림)마다 나중에 운영자가 같은 checkout을 열어도 아무것도 읽지 않고 열지 않음을
확인합니다. 기한 검사를 빼거나 앞 이동 규칙을 빼면 해당 경우가 "the old click opened"로 실패하고, 도착
단계를 5초로 되돌리면 "an accepted request waits for its front"로 실패합니다.
- **확인한 것**:
`a_remote_memory_visit_whose_front_never_landed_in_time_opens_nothing_later`:
수락된 Memory 이동이 기한 안에 도착하지 않으면 나중 방문에 Memory를 열지 않고 기기를 앞으로 가져오지 않습니다. 기한
검사를 빼면 실패합니다.
- **확인한 것**: node 프로젝트 PR 카드 테스트는 실패 경로와 함께 성공 경로(node의 GitHub 답으로
`panel.pr`의 연결 기록이 열림)도 확인합니다.
- **확인한 것**: `scripts/verify-cargo.sh test-scoped -p herdr-core`: 2633
passed, 0 failed, 9 ignored.
- **확인한 것**: `scripts/verify-cargo.sh lint`(fmt, workspace clippy `-D
warnings`) 통과.
- **확인한 것**: `scripts/verify-web.sh web typecheck|lint|test` 통과(199
files, 1753 passed, 1 skipped). 새 웹 테스트는 수정 전 코드에서 node 창의
`reveal_path`에 `device_id`가 없어 실패합니다. 리뷰 수정에는 웹 변경이 없습니다.
- **확인하지 못한 것**: 실제 두 기계 사이 이동 뒤의 앱 화면 클릭. 운영자의 앱과 Herdr를 건드리지 않는 조건이라
core와 웹 단위 테스트로만 봤습니다.
- **확인하지 못한 것**: hided, desktop lane, e2e는 디스크 여유가 작아 CI에 맡깁니다.

<details><summary>navigator만 읽는 core 조회 점검</summary>

- 고침: `session.rs` `reveal_path` (보고된 버그). 뒤에 있는 node checkout은 node를
앞으로 가져온 뒤 엽니다.
- 고침: `links.rs` `open_links` - node 프로젝트 PR 카드의 연결 기록 패널이 열리지 않았습니다.
- main에서 이미 고쳐짐: `links.rs` `links_scope`(#1308). 합치면서 지운 중복 함수 대신
`catalog_workspaces`를 부르게 했습니다.
- 고침: `request_view.rs` `tick_work_clock` - node 프로젝트에만 PR이 있으면 1분 판단이
돌지 않았습니다.
- 고침: `request_view.rs` `reread_pending_checks`의 Work 목록 부분 - node PR의
CI가 1분마다 다시 읽히지 않았습니다.
- 정리: `links.rs`의 `link_lineage_workspaces`는 `catalog_workspaces`와 같은
일이라 지우고, `link_github_project`를 `catalog_github_project`로 이름 바꿔 함께 씁니다.
- 의도대로 둠: `request_view.rs` `lay_local_requests`와 `checks_wait.rs`
`lay_checks`의 장소 표 - 이 기계 행의 PR만 잇습니다. 기기 행은 `lay_remote_requests`가 PR
없이 놓고, `docs/status-model.md`가 기기 행은 CI를 기다리지 않는다고 정합니다.
- 의도대로 둠: `reread_pending_checks`의 행 PR과 checks 대기 부분 - 위와 같은 계약으로 이 기계
행만 있습니다.
- 의도대로 둠: `focus_checkout`, `CreateTab`, `FocusTab`, `local_tab_host` -
기기 checkout의 포커스와 탭은 그 기기의 Herdr가 `remote_control`로 다룹니다.

</details>

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

- base `9acf24362d19` (origin/main at the last merge), head `ac69637e8`.
- `scripts/verify-cargo.sh lint`: pass at head.
- `scripts/verify-cargo.sh test-scoped -p herdr-core`: 2633 passed, 0
failed, 9 ignored at head.
- Mutations: without `expire_pending_choice` in the tick, the reveal
test fails on "no answer in time: the old click opened" and the Memory
test fails; without the front-moved drop, it fails on "the device's
front moved elsewhere: the old click opened"; with the landing stage
back at 5 s, it fails on "an accepted request waits for its front".
- `scripts/verify-cargo.sh nextest -p herdr-core` with the new tests on
the code before the fix: failed; after: passed. The behind-checkout
reveal test failed on `a96db77d6` with `reveal.not_in_front`.
- `scripts/verify-web.sh web typecheck`, `lint`, `test`: pass (199
files, 1753 passed, 1 skipped); the new `actions.test.ts` case failed
before the fix.
- `scripts/check-no-workstation-identity.sh`,
`scripts/check-core-touches-no-machine.py`,
`scripts/check-no-attribution.py --range origin/main..HEAD`: pass.
- Not run locally: hided, desktop, web and desktop e2e, Windows and
Linux lanes.
- Changed paths: `docs/{ARCHITECTURE,UI_BEHAVIOR,status-model}.md`,
`herdr-core/src/runtime/{agents,documents,events,links,operations,request_view,session,workspace_view}.rs`,
`herdr-core/src/runtime/tests/{agent_scopes,documents,labels,links,project_settings,workspace_view}.rs`,
`web/src/actions.ts`, `web/src/actions.test.ts`.

</details>
yansfil added a commit that referenced this pull request Oct 21, 2026
## Summary

- Document official private publication from verified public main,
preserving public source and downloads.
- Replace obsolete public signing operations with local signing guidance
and accurate ownership references.
- Clarify mandatory CI gates, local journey exceptions, fifteen assets
and macOS updater evidence limits.

## Review

- **Cutover timing**: done on 2026-10-22. The operator approved
v0.4.2-rc.1 as the first private publish, the public `release.yml` is
`disabled_manually` with no pending or running run, and the private
policy is on (hide-private #13).
- **Release gates**: check local-only waivers in `CONTRIBUTING.md` and
signing/assets in `docs/BUILD.md`.
- **Merge readiness**: main merged in at cutover; conflicts in
`CONTRIBUTING.md`, `docs/BUILD.md` and `docs/VERIFICATION.md` were
resolved toward the private publisher, keeping main's `live_agents` and
fake-lane wording. `docs/BUILD.md` also says a failed candidate is
dispatched again rather than rerun.

## Evidence

- **Confirmed**: three static checks passed; workstation-identity policy
scanned 2,328 tracked files.
- **Review**: the entire four-file diff received Fidelity and Code
reviews with no outstanding findings.
- **Not confirmed**: signing/notarization, installer/updater, live
providers and analytics were not exercised.
- **CI**: no repository CI success is claimed by this documentation-only
delivery.

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

- PRD: `agents/prd/private-release-publishing/prd.md` (sha256
c666f14c520a7699fa936c6dcaa6636117943ae9f8a7b3610cfefa409432a014)
- Base b7dc11d → head cd4fb92, verified 2026-10-19T13:18:38.578Z: PASS
- Verification report:
`agents/runs/private-release-publishing/verification-report.json` and
`agents/runs/private-release-publishing/verification-report.md`; source
fingerprint
9dbf76ed361bd906742add92b1af4366d9002beea1329b9b0eb94d907dcefd0c
- Suites:
- S1: GREEN `python3 scripts/check-no-workstation-identity.py --scope
index` (exit 0)
- S2: GREEN `python3 scripts/check-no-attribution.py --range
b7dc11d..HEAD` (exit 0)
- S3: GREEN `git diff --check b7dc11d
HEAD` (exit 0)
- Fidelity review: exact head cd4fb92
and unchanged registered evidence []; no Fix now or additional
improvements; signing references and local-only waiver findings closed.
- Code review: exact head cd4fb92 and
unchanged registered evidence []; no Fix now or additional improvements;
workflow/helper consistency and public disclosure boundaries checked.
- Evidence: none registered separately.
- Changed paths: 4 (see Files changed)
- Delivery: mode pr, branch `docs/private-release-publishing`, base
`main`

</details>
yansfil added a commit that referenced this pull request Oct 30, 2026
…pane (#1910)

Related: PRD session-docs-and-assistant (Desk 1차) B25, B26, B27, B29 ·
#1902 (thread reader) · #1907 (Desk screen parts)

## Summary

Desk가 띄운 세션 하나를 스레드로 보이고, 스레드 입력칸의 말을 그 pane에만 넣습니다.
코어가 pane 하나의 스레드를 열면 그 세션이 도는 기기의 node가 잠금 밖에서 기록을 읽고, 세션이 일하는 동안 새로 쓴
부분만 다시 읽어 snapshot에 둡니다.
화면(`ThreadPanel`)은 #1907의 확정 부품 위에 store를 이어, 머리 둘째 줄에 Hide가 띄울 때 고른
모델을, 대화 안에 `hide` 명령이 만든 Hide 부품(계획, 새 세션, 편지, View, 미션)을, 받은 편지는 `✉ 보낸
이에게서 받음` 한 줄로, 도는 명령은 `실행 중 0:12`로 그립니다.
스레드가 이름을 부르는 세션은 코어가 페이지를 만들 때 지금 등록으로 pane을 찾아 두므로, 칩을 누르면 그 세션으로
갑니다(끝난 세션은 이름만).
기록을 못 읽으면 이유 한 줄과 `터미널로`가 보이고, 입력은 Enter로 보내며(IME 조합 중엔 안 보냄) pane이 받을
때까지 말이 칸에 남고, pane이 다른 세션으로 바뀌었거나 없으면 보내지 않고 이유를 보입니다.
보내기 직전(첨부 준비, pane 허락을 받은 뒤)에 pane을 한 번 더 확인하므로, 기다리는 사이 pane이 바뀌면 아무것도
치지 않습니다.
닫힌 스레드로 간 입력은 버리지 않고 `닫힘`으로 답해, 입력칸에 말이 돌아옵니다.
#1907 재리뷰의 스레드 몫(hint ref, 질문 두 번, 접힌 줄 aria-label, 주석 두 곳)도 여기서 고쳤습니다.
화면이 놓일 자리(lane의 도구 칸)는 lane 노드가 붙이고, 지금은 갤러리 `scene=desk-thread`에서
store로 그려집니다.

![연결된 스레드(다크): 머리 둘째 줄에 계획 칩 4/8과 모델, Hide 부품 줄, 편지 양쪽, 실행 중
명령](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/cad6503/thread-live-plan-dark.png?raw=true)
![같은
스레드(라이트)](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/cad6503/thread-live-plan-light.png?raw=true)
![물어보는 세션: 질문은 아래 한
곳에만](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-asking-dark.png?raw=true)
![기록을 못 읽음: 이유 한 줄과
터미널로](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-failed-dark.png?raw=true)
![pane에서 다른 세션이 돎: 보내기 막힘과
이유](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-held-dark.png?raw=true)

## Review

- **판단해 주세요**: 입력은 터미널에 직접 친 것과 다릅니다(D-62). 에이전트가 bracketed paste를 켜 두면
Herdr가 말을 붙여넣기로 감싸므로, 긴 글이 Claude Code에서 `[Pasted text]` 덩어리로 보이고 줄바꿈은
제출되지 않습니다. attach와 PTY 크기를 건드리지 않으려고 고른 길이고 `docs/UI_BEHAVIOR.md`,
Session thread에 적었습니다.
- **판단해 주세요**: 스레드는 코어 전체에 하나만 열립니다(세션 기록과 같은 선례). 두 창이 다른 스레드를 열면 나중 것이
이깁니다.
- **판단해 주세요**: pane이 바뀐 때의 말 "이 pane에서 이제 다른 세션이 돌아요. 이 스레드에서는 보내지 않아요",
없을 때 "이 세션의 pane이 없어요. 보낼 곳이 없어요".
- **조심해서 볼 파일**: `herdr-core/src/runtime/session_thread.rs` - runtime
mutex 안에서는 상태만 바꾸고 node 읽기, 페이지 만들기(Hide 부품, 이름 붙은 세션 찾기), activity 확인,
첨부 스테이징, `pane.send_input`은 모두 worker에서 돕니다. 입력 worker는
스테이징·permit·sleep gate를 지난 뒤 잠금을 한 번 더 잡아 `thread_input_target`(같은
generation, pane Same)을 보고, 잠금을 놓은 뒤 보냅니다. gate의 admission을 쥔 채 잠금을 잡지만,
sleep 쪽 drain 대기는 잠금 밖에서 돌므로 서로 기다리지 않습니다. 열려 있지 않은 스레드로 온 입력은 request
id로 `closed` 답을 받습니다.
- **조심해서 볼 파일**: `herdr-core/src/coordination/mod.rs` -
`registered_record`로 이름·agent id를 지금 등록에 맞춥니다(기존 resolve가 같은 함수를 씀). 페이지
worker는 ledger Arc를 잠금 밖에서 읽습니다.
- **조심해서 볼 파일**: 입력은 엔진 경계(#1903)의
`delivery_engine(device).submit_text`로 보냅니다. 거절 코드 `not_found`는
`pane_gone`, 답이 없으면 `uncertain`(말이 들어갔을 수 있음), 그 밖은 `unavailable`입니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/delivery.rs` - 관찰마다 thread 참조를
만들고 끝에 `follow_session_thread`를 부릅니다(Herdr 세션 읽기마다 도는 고빈도 경로, 열린 스레드가
없으면 즉시 반환).
- **조심해서 볼 파일**: `hide-node-link/src/protocol.rs` - main이 65(기기 hook
상태)를 썼으므로 `Call::SessionThread`는 protocol 66입니다.
- **조심해서 볼 파일**: `web/src/components/desk/thread-panel.tsx` - 보이는 동안
스레드를 열고 닫으며, 입력의 `request_id`로 보냄/거절을 맞춰 말을 지웁니다. `hided/src/server.rs`는
클라이언트가 보낸 `session_thread_input`을 경계에서 거절합니다.
- **후속(리뷰 사소, 이 PR에서 안 고침)**: hided `handle_thread_input`이 첨부 stage를
commit한 뒤 코어가 거절하면(pane_changed 등) 커밋된 파일이 에이징 정리까지 남습니다(terminal
attachment 선례와 같음). `delivery.rs`가 Herdr 세션 읽기마다 에이전트마다
`ThreadReference` 문자열을 복제합니다(session 필드와 같은 수준).
- **비용 검토**: 스레드가 열려 있고 그 에이전트가 working일 때만 250 ms 틱이 1초마다
`SessionActivity`(크기와 시각) 하나를 띄웁니다. 바뀌면 뒤 페이지 하나(512 KiB 남짓)를 읽고, 끝이
그대로면 snapshot을 바꾸지 않습니다. 동시에 읽기 하나+빚 하나, 이전 페이지 하나, activity 하나, 입력 하나.
지난 페이지는 최대 4장. `docs/PERFORMANCE_TESTING.md` 원장에 적었습니다.
- **원칙**: engineering #4·#10 거절은 이유 코드(`no_record`, `pane_changed` 등)로
화면에, 읽기 실패 세부는 진단 로그로. #5 세션 찾기는 코어(등록 원장), 그리기는 web
adapter(`threadScreen`), 부품은 props만. #7 첨부는 기존 스테이징과
`terminal_attachments`를, 입력은 폰 답장의 permit·sleep gate를, 파일 고르기는 `Input`
부품을 재사용. #14 worker는 runtime을 weak로 잡고 호출 하나로 끝남. #15 페이지·요청·입력에 상한.
design #5 #1907의 부품과 공용 칩을 그대로 씀, #9 읽는 중·못 읽음·막힘을 한 줄로, #13 node 연결 끊김은
`connected` false로 흐리게만, #12 한국어 글을 라이트·다크 캡처로 확인.

## Evidence

- **확인한 것**: 실제 Herdr와 hided(`web/e2e/session-thread.spec.ts`, 4/4,
repeat-each 3) - Pi pane의 기록이 스레드로 읽히고, 세션이 새 줄을 쓰고 Herdr에 working으로
보고하면 그 줄이 스레드에 이어지며, 입력 `계속해 주세요`가 그 pane에만 들어가고 다른 pane에는 안 감.
- **확인한 것**: `bash scripts/verify-web.sh` exit 0 on 0a254f3 - web
2366, desktop 302, typecheck·lint·build; `node
scripts/check-design-contract.mjs` ok. 그 안에 `thread-panel.test.tsx`(열고
닫기, Enter 보내기·IME 안 보냄·받을 때까지 말 유지, 거절 이유·pane 바뀜 막힘),
`threadView.test.ts`(세션 칩 찾기, 계획 한 번, View·미션 부품), `desk.test.ts`(보낸 이별
편지 묶기, 명령 시작 시각, 질문 한 곳).
- **확인한 것**: `cargo nextest` session_thread 12개 - newest 읽기 뒤 앞으로만 읽기,
512 KiB 페이지 보관, `no_record`, 이름 붙은 세션이 지금 등록의 pane으로 찾아짐, FakeHerdr로 입력이
그 pane에 한 번 가고 바뀐 pane에는 안 감, 기기 pane의 입력은 그 기기의 Herdr로. 입력 거절 셋:
`input_to_a_gone_pane_is_refused_as_pane_gone_and_a_closed_pane_is_never_asked`(Herdr
`pane_not_found`면 `pane_gone`, 닫힌 pane은 Herdr 요청 0),
`input_whose_pane_changes_while_it_waits_for_its_permit_is_never_typed`(permit을
잡아 둔 사이 터미널이 바뀌면 Herdr 요청 0, `pane_changed`; 재확인을 빼면 실패함을 확인),
`input_for_a_thread_that_is_no_longer_open_is_answered_as_closed`.
protocol·node contract 16개, clippy `-D warnings`(herdr-core), fmt 통과.
- **확인한 것**: `thread-panel.test.tsx` 5개 - 위 셋에 더해 다른 pane 스레드에 온
`closed` 답으로 말이 돌아옴, 위 끝 스크롤 세 번에 이전 페이지 요청 한 번, 상태가 바뀐 뒤에야 다시 한 번.
- **확인한 것**: 갤러리 `scene=desk-thread` 4장면(live/asking/failed/held) 라이트·다크
캡처, 위 스크린샷.
- **확인하지 못한 것**: 패키지 후보 앱에서 스레드 열기와 입력(화면이 놓일 자리가 lane 노드에서 생김). 기기
pane의 첨부 스테이징은 코드 경로만 있고 테스트 없음. 원격 코어에 node 데몬으로 붙은 화면의 스레드 첨부는
`unknown_stage`로 거절됨(말은 감), 문서에 적은 한계.

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

- head: 0a254f3 (main merged at ecbfa34, origin/main 382b88c)
- verify-web.sh: exit 0 on 0a254f3, web 2366 passed / 3 skipped,
desktop 302 passed / 4 skipped
- e2e: web/e2e/session-thread.spec.ts 4/4 (repeat-each 3) on bf4ef5b
- cargo nextest session_thread: 12 passed (5 repeats); clippy -D
warnings herdr-core; protocol/node_contract/hello filter: 16 passed

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