Skip to content

Ship hide's own Herdr runtime and pin the app to it - #4

Merged
yansfil merged 17 commits into
mainfrom
prd/herdr-runtime-release
Sep 6, 2026
Merged

yansfil merged 17 commits into
mainfrom
prd/herdr-runtime-release

Conversation

@yansfil

@yansfil yansfil commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bundle a tested Herdr fork preview that supplies the host scope, ordered events, and agent lineage required by hide's runtime contract.
  • Pin the download repository, tag, version, and SHA256 in one manifest and derive the protocol-21 contract from that exact binary.
  • Add isolated startup, protocol-mismatch, and recovery checks; keep weekly updates pointed at upstream stable and refresh provenance when switching sources.

Result

hide starts its bundled runtime when its socket is free, joins a compatible server, and refuses an incompatible server with the expected protocol revisions and recovery instructions.
This supersedes #3 and includes its bundled-runtime policy.
The fork prerelease and upstream-proposal branch are published.
The upstream Discussion remains a local draft; nothing was submitted upstream.

Screenshots / Demo

No visual layout changed in this release work.
Native verification observed a connected dev bundle with a selected checkout and terminal pane, using a temporary HOME, state file, and explicit private socket.
The screenshot remains in the local run record under the repository's evidence policy; it is not presented as a GitHub-visible image.

Human Review Focus

  • Confirm the fork's maintenance and upstream-return policy is appropriate.
  • Review scripts/bump-herdr.sh: selecting a repository downloads and executes its release binary, so the source must be trusted.
  • Review the local Discussion draft before any future upstream submission.
  • The native screenshot supports connection and pane rendering; it is not a broader UX or performance review.

Product And Scope Result

  • Contract: agents/prd/herdr-runtime-release/prd.md.
  • Receipt: agents/runs/herdr-runtime-release/receipt.json, complete, with 12/12 acceptance criteria PASS and 3/3 required suites GREEN.
  • Receipt and run artifacts are local-only by repository policy.
  • The original Herdr checkout and live server were preserved.

Implementation Notes

The runtime is 0.8.2-preview.2026-09-06-13d8d0b99033, built from 13d8d0b99033e6855ce66bc0f96654615c8a17a6 with Rust 1.96.1 and Zig 0.15.2.
The asset SHA256 is 55ea8b80c9f1a172539b9aa082773968b1a2e9a332a21a0a5a1ca24609fc9df1.
The release contains the original working-tree snapshot plus two approved test fixes: one stale error expectation and a macOS-observable fake-process fixture with the original handoff assertion preserved.
Rebasing the proposal onto current upstream conflicted; the tested release tip was retained as the contract permits.

Acceptance Result

ID Status Evidence
AC1 PASS Public fork branch matches the complete working-tree snapshot plus two test-named fixes
AC2 PASS Public asset digest, version, and tag match the manifest
AC3 PASS Binary schema matches the checked-in contract and installed runtime schema, protocol 21
AC4 PASS Core, FFI, Swift, pin, and schema checks exit 0
AC5 PASS Same-pin update is unchanged; upstream dry run is planned; provenance round trip passes
AC6 PASS Weekly updater explicitly uses upstream stable repository
AC7 PASS Isolated bundle starts its runtime, connects, and exposes a pane
AC8 PASS Foreign protocol is refused; restarting the isolated runtime restores connection
AC9 PASS Proposal branch published; rebase fallback recorded
AC10 PASS Problem, impact, and proposal link in local Discussion draft
AC11 PASS All five source and license documents agree on provenance and upstream return
AC12 PASS Release and commit metadata checks pass; PR prose reviewed

Evidence And Checks

Result area Outcome Evidence
V1: Build and contract PASS Rust release and Swift builds, dev bundle assembly, pin and schema gates exit 0
V2: Application tests PASS 276 core tests, 30 FFI tests, and 222 Swift tests passed; five existing core ignores preserved
V3: Published runtime PASS Public asset downloaded and checked against manifest; both fork branches verified
V4: Native runtime PASS python3 scripts/check-herdr-e2e.py exercises isolated startup, protocol mismatch, and recovery, exit 0
V5: Herdr tests PASS All 3,366 discovered tests run in isolated processes: 3,365 passed, one existing ignore, no failures
V6: Documentation PASS Five-document review, local draft check, and metadata checks
Existing invariant PASS 25 read-record/axes tests passed

Herdr test binaries were built with cargo test --locked --no-run and each discovered test ran separately to avoid shared-process signal and counter interference.
No test exclusion was added.

Review And Delivery Evidence

  • Requirements fidelity: PASS.
  • Acceptance and residual-risk review: PASS, with advisory risks below.
  • Provenance-update review finding fixed and verified by a fork/upstream round trip.
  • Original-checkout comparison retained with an explicit review disposition because it intentionally verifies the user's uncommitted snapshot.
  • Delivery: PR mode from prd/herdr-runtime-release against origin/main; CI is checked during delivery.

Risks, Rollback, And Human Review

  • Build/source/asset records exist, but no independent reproducible-build attestation is supplied.
  • Preview provenance assumes the final tag component identifies the source commit; arbitrary future tags need review.
  • The acceptance ledger summarizes some command results with zero-duration entries; actual runs have captured logs and timings. Frozen native evidence is retained separately from subsequent run output.
  • Only trusted release repositories should be passed to the bump command.
  • Revert the manifest, contract, and matching documents together to roll back; do not replace the runtime alone.
  • Upstream return requires compatible contract fields and passing runtime checks, followed by review of the generated update PR.

The app now starts the Herdr it ships and nothing else. HerdrRuntimeResolver
verifies the bundled binary against the manifest digest and starts it on the
Herdr socket when no server is running there; a server that is already
running is joined when its protocol matches and refused with both revisions
and the `herdr server stop` remedy when it does not. The installed-CLI
candidate list, the version floor and the dead Rust selection code go with
this: the pin is exact, so there is nothing to compare.

The shell reads HERDR_SOCKET_PATH by the core's rule (absolute path or the
default), so the socket it starts a server on is the one the core reads.
While Herdr is disconnected the status bar keeps naming the connection
failure instead of the last action's error, which is what to fix.

contracts/herdr-api.schema.json is what the pinned binary answers to
`api schema --json`: scripts/bump-herdr.sh writes it in the same run that
moves the pin, accepts a release tag (stable or preview), takes the version
from the binary, and refuses to write when the asset does not verify.
scripts/sync-herdr-contract.sh, which copied the file from a Herdr checkout,
is gone. scripts/fetch-herdr-runtime.sh downloads the asset once per digest
for both build scripts, so the development bundle carries the same runtime
the release does. The weekly update workflow compares the numeric prefix of
the pin against the latest stable release so a preview pin is not proposed
back to the stable it was cut after.
The stable v0.8.2 asset speaks protocol 20 while the core requires 21, so
the shipped app could never use its own runtime. The preview build is the
only published asset at protocol 21; the contract is now what that binary
reports, so the schema gate holds by construction.

This does not make the shipped app work. The core also requires snapshot
fields (host, event_sequence, lineage) and methods that no published Herdr
carries; against this runtime it stops at "snapshot is missing lineage".
Those definitions exist only in an unreleased local Herdr working tree.
Which runtime to ship is a separate decision; reverting this commit returns
the pin to stable.
…ned snapshot carries the replica's fields

The shell forwarded HERDR_SOCKET_PATH only when the launch environment
carried one, so with XDG_CONFIG_HOME set the bundled server bound under
the XDG directory while the core watched ~/.config/herdr/herdr.sock.
childEnvironment now always sets the socket to the path the core reads.

The schema gate compares a protocol number, which is green for a Herdr
whose session.snapshot still lacks host, event_sequence and lineage. A
contract test now lists every top-level snapshot field the replica reads
and asserts the pinned Herdr declares each one required. It fails on
this branch on purpose: no published Herdr carries those fields.
@yansfil
yansfil merged commit 2c7caf0 into main Sep 6, 2026
@yansfil
yansfil deleted the prd/herdr-runtime-release branch September 6, 2026 04:23
yansfil added a commit that referenced this pull request Oct 3, 2026
Related: #293 (batch 7, 항목 4)

## Summary

`pnpm --dir desktop package`가 macOS `hide.app`만 만들던 것을, 실행한 시스템의 패키지를
만들도록 넓혔습니다.
Windows x64는 폴더를 zip으로, Linux x64는 폴더를 tar.gz로 묶고 각각 `.sha256`을 붙입니다. 둘
다 서명하지 않습니다(운영자 결정 2026-10-03). macOS는 지금처럼 ad-hoc 서명입니다.
새 `package.yml`이 windows-latest와 ubuntu-latest에서 각 패키지를 만들고, 압축을 풀어 창 없이
띄워 봅니다(`smoke-package.mjs`). release는 이 워크플로를 불러 세 패키지를 한 draft에 올립니다.
smoke를 준비하다 Windows에서 `hide connect`가 성공할 수 없던 원인 세 가지를 고쳤습니다:
`hided.exe`가 아니라 `hided`를 찾았고, `/health`를 `/usr/bin/curl`로 물었고, detach한
`hided`가 CLI의 stdout 파이프를 상속해 호출자(데스크톱 앱)가 출력 끝을 영영 못 보게 됩니다.

```
ok checksum / unpack / bundled files / herdr --version / hide-host-helper-<os>-x86_64 --version
ok hide-agent-hooks doctor --json / Electron runs the bundled hcoord as Node
ok hide connect starts the bundled daemon / the daemon answers /health / serves the web shell it embeds / hide stop ends it
```

## Review

- **판단해 주세요**: 형식은 같은 도구(@electron/packager) 그대로 zip(Windows)과
tar.gz(Linux)입니다. 설치 프로그램(NSIS/MSIX)이나 AppImage/deb는 다른 도구가 필요하고, 서명 없이
얻는 것이 없어 뒤로 미뤘습니다. tar.gz는 실행 비트를 보존합니다.
- **판단해 주세요**: `package.yml`은 PR에서는 패키지에 들어가는 경로(`desktop/scripts/**`,
`desktop/package.json`, `desktop/resources/**`, Herdr pin과 fetch 스크립트,
`verify-cargo.sh`, 워크플로 자신)를 바꿀 때만 돌고 `verify`에 넣지 않았습니다. 콜드 release 빌드라
`windows check`의 몇 배가 들고, 일부 PR에서만 도는 검사는 required가 될 수 없습니다. 패키지는 7일간
artifact로 남아 실기 확인에 쓸 수 있습니다.
- **판단해 주세요**: Linux에서 마지막 창을 닫으면 앱이 종료됩니다(macOS만 창 없이 남음). 관례대로 두고
INSTALL과 ARCHITECTURE에 적었습니다. `hided`는 어느 쪽이든 계속 돕니다.
- **조심해서 볼 파일**: `hided/src/cli.rs` - failure path. `hide
connect`/`status`의 health 확인이 curl fork에서 이미 링크된 `ureq`(프록시 없음, 1초)로
바뀌었습니다.
- **조심해서 볼 파일**: `hide-platform/src/process.rs` - ownership. Windows
`detach`가 이 프로세스의 표준 핸들 상속 플래그를 끕니다(프로세스 전역 상태). 이후 `Stdio::inherit` 자식은
std가 상속 가능한 사본을 넘기므로 영향 없습니다. 실패는 `io::Result`로 올라가 `start_failed`가 됩니다.
- **조심해서 볼 파일**: `hide-kit/src/local.rs` - 화면 문구. macOS 밖에서는 This
machine 행이 "Hide installs its kit only from its macOS app, so it
installs nothing on this machine"을 보여 줍니다(이전 문구는 "설치된 앱으로 열라"는 거짓 안내).
- **조심해서 볼 파일**: `desktop/scripts/package.mjs` - macOS 경로를 공유합니다. 로컬에서
macOS 패키지를 한 번 만들어 서명, RunAsNode 확인, 아이콘, Resources 목록이 그대로인 것을 봤습니다.
- **조심해서 볼 파일**: `.github/workflows/release.yml` - 태그 없이는 돌릴 수 없습니다. 각
패키지가 artifact가 되고 `draft` 잡 하나가 체크섬 3개를 확인한 뒤 draft를 하나 만듭니다.
- **질문**: Windows/Linux 패키지는 kit(`hide` 링크, 훅, hcoord)을 설치하지 않습니다.
`hide_kit::bundled_kit_dir`가 `hide.app/Contents/Resources`만 알아보기 때문입니다.
같은 이유로 새 버전이 이전 버전의 `hided`를 교체하지 않고 거절하므로, INSTALL에 업데이트 전
`resources/hide stop`을 적었습니다. Electron 폴더 구조를 알아보게 할지는 #3(Windows 훅 명령)이
들어온 뒤 정하는 게 맞아 보입니다. 어떻게 할까요?
- **원칙**: #2 가장 단순한 형식(새 도구 없음). #3 창 없이 시작까지 증명된 패키지를 먼저, kit/설치기/서명은 그
위에. #4 다른 아키텍처는 거절, 빠진 파일은 이름으로 실패. #7 기존 packager, 시스템 tar, 이미 있는
`ureq`. #12 새 테스트와 smoke 모두 심은 버그로 수익을 확인. #14 smoke와 테스트는 시작한 데몬을 모든
경로에서 멈춤.
- hcoord는 macOS와 같은 `resources/hcoord/dist`로 넣었습니다. #3이
`hide-kit/src/hcoord.rs`에 Windows 런처를 넣어도 패키지 내용은 바뀌지 않고, kit이 Windows
패키지에서 켜질 때 런처가 쓰입니다.

## Evidence

- **확인한 것**: 새 `connect_stop` 테스트가 macOS에서 통과. `hided` 이름에 `.exe`를 붙이는
버그를 심으면 `start_failed`, health 확인을 깨면 `no_response`로 실패.
- **확인한 것**: 새 OS contract 테스트(detach한 자식이 부모 출력을 붙잡지 않음)가 macOS에서 통과.
자식에 stdout을 상속시키는 버그를 심으면 15초 뒤 실패. Windows에서의 결과는 아래 CI.
- **확인한 것**: smoke 스크립트를 로컬 debug 바이너리로 만든 Linux 구조의 가짜 tar.gz에 돌려 11개
확인 모두 통과. `hided`를 시작 못 하는 파일로 바꾸면 `hide connect` 단계에서 이름을 달고 실패.
- **확인한 것**: `HIDE_VERSION=0.0.0-local.1 pnpm --dir desktop package`로
macOS 패키지 생성(서명 검증 통과), 확인 후 출력과 `target/release` 삭제.
`/Applications/hide.app`은 건드리지 않음.
- **확인한 것**: `verify-cargo.sh lint`, 워크스페이스 테스트 57 suite, desktop
lint/typecheck/test, script suite, pin single-source 검사.
- **확인한 것**: 첫 push(head `5ff03f0d`)에서 `verify` run 37123328975 전부
green. `windows check`에서 `connect_stop` 통과(0.4초), `os contract
(windows)`에서 새 detach contract 통과.
- **확인한 것**: `package` run 37123328851 green. Windows: release 빌드
14m51s, 잡 17분, zip artifact 약 200 MB. Linux: 빌드 7m28s, 잡 9분, tar.gz 약
164 MB. 두 runner 모두 smoke 11개 확인 통과(`hide connect` -> `/health` -> 내장 셸
-> `hide stop` 포함).
- **리뷰(별도 subagent)**: Fix now 4건 모두 반영 - Windows 핸들 상속(위), smoke가
timeout으로 죽인 `hide`의 출력을 받아들이던 것, 사실과 다른 kit 안내 문구, Windows에서 WSL
`bash`가 잡힐 수 있는 소스 빌드(문서에 Git Bash 명시). 경로 필터 보강, `CARGO_BIN_EXE_hide`,
stop 실패가 원래 오류를 가리던 것도 반영.
- **확인하지 못한 것**: #344, #345 위로 rebase한 head `ff1730f5`에서 `verify`의 `web
e2e linux 2/6`이 두 번(재실행 포함) 실패. `cmdk.spec.ts:394`(프로젝트 3개,
`catalog.root_unresolved`)와 재실행 때 `new-tab.spec.ts:71`. 둘 다 main
`39000d6a`와 직전 head에서는 통과했고, 이 PR이 닿지 않는 경로라 #288에 기록. `package`는 이
head에서도 green(run 37125618484).
- **확인하지 못한 것**: 실제 Windows/Linux 기기에서 창을 띄운 적 없음(SmartScreen 화면,
chrome-sandbox 메시지, Herdr 서버 자동 시작 포함). release 워크플로는 태그가 없어 실행하지 않음.
- **확인하지 못한 것**: Windows 데스크톱 호스트의 경로/PATH 처리는 #2(별도 PR) 몫이라 이 패키지에 반영되지
않음.

Refs #293
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