Skip to content

Record pane lifecycle facts when the terminal echo contract fails - #370

Merged
yansfil merged 7 commits into
mainfrom
fix/windows-stream-lifecycle
Oct 4, 2026
Merged

yansfil merged 7 commits into
mainfrom
fix/windows-stream-lifecycle

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Capture bounded pane state and failure-only upstream facts when the terminal echo contract fails.
  • Run three independent private fixtures; the first failure ends the original named test.
  • Destroy each daemon runtime, reap its Herdr child and remove its fixture before the next starts.
  • The production retirement cause remains unresolved.

Review

  • Judge whether the facts distinguish an upstream pane disappearing from its checkout being retired.
  • Watch hided/tests/real_herdr.rs: private child/core ownership and the pinned failure-path socket contract.
  • Cost: metadata comparison per state frame, at most eight states and three fixtures; no added API call or notifier fan-out.
  • Input bytes, assertions, observation deadlines and first-failure termination are preserved.
  • The failure snapshot excludes agent rows and tokens; its 64 KiB cap and five-second read limit exclude connect/write.

Evidence

  • Current source ef9089d1 ordinarily merges main 31123442; only the reviewed test file differs from that main.
  • Confirmed: whitespace, identity and attribution checks pass; the previously cleared test blob is byte-identical.
  • Confirmed: independent current-union source review is clear, with no new actionable finding.
  • Confirmed: fresh required CI and static design pass on this exact current-main union.
  • Retained on 689547e9: local format/Clippy pass, and all three isolated macOS fixtures pass in 8.60 seconds.
  • Retained: Windows pane/input passes three fixtures in 9.68 seconds.
  • Retained: the complete prior required workflow passes.
  • Unconfirmed: the original retirement cause and failure-only snapshot path; native app QA remains unrun.
Preserved failures and verification boundaries

The same pane/input test fails in main and release preparation.
Both logs retire the selected pane after control-session readiness.
Only the main log later records Windows error 232, so an IPC cause is unproved.
A subsequent direct-control probe was explicitly killed after ten seconds; its exit does not establish autonomous shutdown.
The first candidate Windows job passed one fixture in 3.49 seconds.
The three-fixture candidate on 97adafb passed in 9.89 seconds without retirement or BrokenPipe records.
Its separate desktop input failure remains retained and is owned by PR372.
The prior 689547e9 Windows runner checkout fe16af5d had the exact reviewed source tree; its desktop suite passed 42 cases with five existing skips.
These passing observations establish diagnostic fixture execution, while preserving the original failures and unresolved cause.

Prior local verification used the canonical wrapper, jobs=2, machine toolchain, private HOME/HCOORD home and default build profile.
The original named ignored test retained all three instances and unchanged assertions/deadlines.
An earlier build stopped before test execution when disk crossed 3 GiB; its cleanup error left the child exit unrecorded.
That incomplete record remains distinct from the subsequent passing execution and confirmed empty owned process groups.
The local pinned binary matched the canonical protocol 22 schema.
This current-main refresh adds no local build, native sampling, product-source edit or failure retry.

@yansfil

yansfil commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

PR370 finalization: source is fully pushed at ef9089d1253ae0c3e147092e48f0252c1f4234cd, ordinarily merged with current main 31123442224037662d1b0f6f26e21730fbfa184e.
Only hided/tests/real_herdr.rs differs from that main, with the exact previously reviewed blob 86e05fa88d901b95586ac8b01ea58006b3132a81 and unchanged assertions/deadlines.
The worktree is clean and has zero unpublished commits.
Whitespace, workstation-identity and attribution checks pass.
All original red evidence and original source commits remain preserved; no production retirement or IPC repair is claimed.

Remaining gates: the existing reviewer's current-union equivalence supplement and required CI run37170303498.
The prior native/CI proof remains explicitly tied to 689547e9; the current-main refresh started no local Rust, build or native sampling phase.
Next action: finalize the current-union review, record the fresh required result, and hand the green/clear candidate to the protected-main merge owner after checking latest main.
Resource priority does not impose a merge hold; assertions and required gates remain in force.

@yansfil
yansfil marked this pull request as ready for review October 4, 2026 02:19
@yansfil
yansfil merged commit cab8625 into main Oct 4, 2026
21 checks passed
@yansfil
yansfil deleted the fix/windows-stream-lifecycle branch October 4, 2026 02:45
yansfil added a commit that referenced this pull request Oct 4, 2026
Related: `agents/prd/overview-request-view/prd.md` · yansfil/sasu#15

## Summary

- Overview의 첫 화면을 요청 보기로 열고 요청·결과·현재 동사·PR/이슈·자손 상태를 한 행에 표시합니다.
- 요약 v5, Background AI 스위치, 세 런타임의 bounded 세션 어댑터와 helper protocol14를
통합합니다.
- 원격 시작 전 대상 capability probe, OpenCode allocation 전 1MiB 예산, 자손 세션 poll
전 2MiB 예산을 적용합니다.
- 자식 프로세스 종료·pipe 읽기를 제한하고, 오래된 닫힌 이슈·Reopen 관측·기본 보기 가이드를 고쳤습니다.
- 같은 요청에서 pane cwd/root만 바뀌어도 경로 칩을 다시 확인하며, 이전 응답이 현재 경로를 덮어쓰지 않습니다.

![요청 보기와 동사별
묶음](https://github.com/yansfil/pr-assets/blob/main/hide/overview-request-view/b8a7fd9/request-view.png?raw=true)

위 이미지는 이전 b8a7fd9의 e2e fixture 캡처입니다.
최종 HEAD의 native 시각 검증은 미완료입니다.

## Review

- **판단해 주세요**: 실제 light/narrow 요청·결과 가독성, 칩·펼침·키보드 경계와 Request row
Component 계약은 미검증입니다.
- **조심해서 볼 파일**: `request_view`, `labels`, `codex_launch`, `herdr.ts` -
mutex 밖 작업·snapshot 소유권·대상 probe 실패 경로.
- **조심해서 볼 파일**: `hide-session/src/` - 보유 전 예산·resume·read-only·root
identity·privacy 경계.
- **조심해서 볼 파일**: `hide-platform/src/process.rs`, `RequestView.tsx` - 종료
소유권과 늦은 응답의 무효화.
- **비용 검토**: R7은 관련 workspace/remote 변경마다 행의 기존 context 탐색을 한 번 수행하고 입력
한 쌍을 보유합니다.
- **비용 검토**: 새 timer·provider 호출·core 알림은 없습니다. R6 poll 2MiB, 파일
1MiB/16개를 실제 읽기 전에 제한합니다.
- **비용 검토**: 기존 경로 probe는 호출 512개·batch64·cache512/10초입니다. 이전 IPC는 끝날 수
있으며 전체 in-flight cap은 없습니다.

## Evidence

- **확인한 것**: 이전21d에서 hcoord59+36, web896, desktop99통과/3기존skip 및
typecheck/lint/build가 통과했습니다.
- **확인한 것**: 이전21d의 session/platform 전체213통과에 R5 process25와 R6 실제 파일
회귀3건이 포함됩니다. fmt/Clippy도 통과했습니다.
- **확인한 것**: R7 회귀3건은 기존 소스에서 실패하고 수정 후 통과했습니다. 실제 Aside 클릭 경로와 늦은 응답
차단도 확인했습니다.
- **확인한 것**: 원본48ec·R5ae016·main cab8625 조상을 일반 merge로 보존했고 최종8ec88b0b를
정상 push했습니다. protocol14입니다.
- **확인하지 못한 것**: 로컬 전체 Rust는 1.5GiB 출력 증가 상한 초과로 미완료입니다. 이전21d CI Rust는
통과했으나 최종 검사는 대기 중입니다.
- **실패 기록**: 이전21d desktop 격리 검사가 `browser.spec.ts:886` blur/refocus에서
실패했습니다. job green은 이를 가린 결과입니다.
- **확인하지 못한 것**: 최종 required CI, deterministic receipt와 정확한 HEAD의
Code/Fidelity/Security 리뷰가 완료되지 않았습니다.
- **확인하지 못한 것**: B24 실제 세 provider 첫 읽기, B29/B32 전체 원격/helper 등록 경로, B30
전체 byte/work 관측이 남았습니다.
- **확인하지 못한 것**: B43 동일20실제에이전트 idle CPU, B49 실제 native chip, 최종
snapshot/UI/Component 계약이 남았습니다.
- **다음 조치**: 기존 native-focus 담당자가 실패를 처리하고, 최종 CI·receipt·독립 리뷰·남은 수용 검증
후 root가 merge 여부를 판단합니다.

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

- Final head: `8ec88b0b1bec6b1dc9898b6f7b2749ebb8a4ca6b`; current-main
ancestor: `cab8625fa0cc9f35db3434e231cdf74728118319`.
- Previous tested head: `21d3a30d5c3fcbcabd92f408ceadf8f11c3d1dad`; the
final normal merge changes only `hided/tests/real_herdr.rs` (+105/-12)
from already reviewed #370.
- Final required verify:
[37172450260](https://github.com/modakbul-gongbang/hide/actions/runs/37172450260),
pending at publication; Design
[37172450135](https://github.com/modakbul-gongbang/hide/actions/runs/37172450135),
queued.
- Previous21d verify:
[37171126956](https://github.com/modakbul-gongbang/hide/actions/runs/37171126956),
web E2E still queued; no aggregate required PASS claimed.
- Previous21d CI Rust job: 59 completed natural suite summaries, 1930
PASS / 0 FAIL / 13 ignored. Raw SHA256
`9b5d65ebb67012e06852ebb9549714a529a252d03d5d47c4f6f3e66cee074a52`.
- Previous21d CI Design
[37171126902](https://github.com/modakbul-gongbang/hide/actions/runs/37171126902)
and package
[37171126796](https://github.com/modakbul-gongbang/hide/actions/runs/37171126796)
succeeded.
- Previous21d desktop raw: normal 42 PASS / 5 skipped, quarantine 1 FAIL
/ exit1 at line886, expected focused=true but received=false after
unchanged5000ms. The step uses continue-on-error.
- Desktop raw SHA256
`380f9816d719312b33fc064db8a0d89828147708f0115512664a08ad3b664f0a`,
71428 bytes; existing native-focus owner and root notified. No retry,
timeout inflation or quarantine change.
- Local full Rust21d: actual peak output growth1930711040 bytes
exceeded1610612736. Completed42 suite summaries1897 PASS / 0 FAIL / 11
ignored, then guard terminated; Cargo natural exit was not observed.
This is INCOMPLETE, not PASS.
- Local full Rust raw SHA256
`0dee8f33acaf679e1c5e8a59b2fe09bc0a20b18130239d52fb8218b561e5dee7`,
524110 bytes. All62 owned identities absent twice and private root
removed.
- Owning213 tests18.630330s, whole workspace fmt/Clippy25.047883s,
canonical web139.754648s; strict source HEAD/file hashes unchanged
before/after at21d.
- R7 actual Aside u0 browser: same row/request/reply, cwd one→two, root
old→current, late old response; dispatched paths
one/two/current/current, unrelated probe count2→2, stale path hidden
while URL retained.
- Browser screenshot SHA256
`9fa2698b31ee1edffcbf298b597d7f98b9c449763b2cf31d9ebbab7c737dcb17`;
actual renderer/store/actions, synthetic OS answers and row fixture.
This is not native filesystem, hook, provider or full UI proof.
- Browser setup route/API/capture errors remain in the run record.
Corrected private server exited0; all3 owned identities absent twice,
private root removed and only the newly opened QA tabs closed.
- Process lifecycle R5 uses existing command deadline,64KiB per stream
and20ms cleanup bound; unconfirmed cleanup retains the owned child and
original outcome. Escaped descendants and universal kernel cancellation
remain unproved limits.
- R6 real-file fixtures prove cumulative admission, oversized tool
resumption and failed-row byte accounting. R7 does not cancel an already
admitted OS IPC; it rejects stale results.
- Earlier4ef1948 Rust PASS, old native dark/light/narrow captures,
real0.160 session reads and helper14 subset are historical, not exact
final-head acceptance.
- Prior native20 used synthetic PTYs and a deterministic provider.
Mismatched idle workloads do not qualify B43; no fixture identities are
presented as live registration.
- Original Rust18 failures/du failure, locale and disk-floor
interruptions, previous Linux Reopen and native quarantine failures
remain retained, without attributing all failures to environment.
- Original48ec ancestry, concurrent main/platform changes, read-only
original worktree and operator services remain preserved. PRD
human_approval is approved under explicit operator authorization.
- The deterministic report remains STALE; 57 requirements remain in the
contract and are not declared complete. All coherent local commits are
pushed; no protected merge or issue closure occurred.
- Operator finalization permits this honest incomplete handoff and
excludes new provider/mini/native/Pen/shared UI/helper/durability
phases. Existing owners retain their files and gates.

</details>
yansfil added a commit that referenced this pull request Oct 4, 2026
Related: #303, #370. Depends on #368.

## Summary

- Preserve bounded input evidence when the desktop drag test loses
terminal-command characters.
- Announce Windows interactive fixture readiness after console setup,
before reading input.
- Integrate the original Windows S2 command and Explorer wire-path
fixture corrections.
- The four-file diagnostic unit remains unchanged; inherited fixtures
and workflows retain their source owners.

## Review

- `terminal-input-observation.ts`: canonical key fields, exact-once
sends, caps and owned cleanup.
- Capture assumes private panes and synthetic input; the alphabet filter
is not general secret redaction.
- `agent-tab-groups.spec.ts`: original drag, typing, Enter and both
five-second polls are preserved.
- `herdr-fixture.ts`: provider/auth replies bypass readiness; short or
failed readiness writes return failure.
- S2/S3/S7 retain their original committed corrections; shell input
assertions and compiler deadlines are unchanged.
- Cost: each observed send adds bounded synchronous decoding/recording
after the original send; timing may change.
- No extra notifier fan-out or input queue; caps are 1,024 records, 64
KiB retained input and 2 MiB JSON.
- The test owns passive listeners and its send wrapper, restores them on
finish and exports once during teardown.
- Mode 0600 does not establish Windows ACL privacy; judge the
private-fixture boundary and timing limitation.

## Evidence

- Independent source-only review cleared the exact four-file unit; all
four blobs match in the pushed union.
- Separate source-only review cleared the original single-command S2
change; native output remains unproven.
- Retained web/desktop typecheck and lint passed before integration;
original S2 light checks also passed.
- The bounded VM probe passed canonical keys, exact-once return/throw,
filtering, schema markers and cleanup.
- The first VM setup failure remains recorded; the corrected probe
passed and all owned processes ended.
- Previous desktop CI passed 42 required cases, with five existing
skips; the optional case also passed.
- Previous Linux shards passed; unchanged Windows shell input/echo
passed with exact ASCII/Korean received bytes.
- Previous Windows CI remains RED: 8 failed/4 passed, including
compiler, S2, disk and file-path failures.
- [Fresh required CI][fresh-ci] is pending for the pushed integration;
its results are not yet acceptance evidence.
- [Retained Windows artifacts][windows-artifact] contain the screenshot
and received-byte logs.
- Earlier pre-input launch failures, original missing-character failures
and local CLI INCOMPLETE remain unclosed.
- Green required CI against current main and the existing final
integration review remain merge prerequisites.

[fresh-ci]:
https://github.com/modakbul-gongbang/hide/actions/runs/37173363587
[windows-artifact]:
https://github.com/modakbul-gongbang/hide/actions/runs/37170103627/artifacts/11291506525
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