Skip to content

Link real paths in Korean prose after closing punctuation and particles - #277

Merged
yansfil merged 11 commits into
mainfrom
prd/korean-terminal-path-links
Oct 1, 2026
Merged

yansfil merged 11 commits into
mainfrom
prd/korean-terminal-path-links

Conversation

@yansfil

@yansfil yansfil commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Related: Fixes #271 · PRD agents/prd/korean-terminal-path-links/prd.md

Summary

  • 터미널에 보드 보기 (docs/README.md)에 ...처럼 경로 뒤에 닫는 괄호와 조사가 붙으면 docs/README.md)에를 파일명으로 검사해 링크가 사라졌다.
  • parser가 토큰마다 최대 6개의 유한한 해석(원문, 기호 정리, 조사만 제거, literal 위치, 위치 해석)을 만들고, hover provider가 실제로 있는 가장 긴 경로를 고른다.
  • 조사는 닫는 괄호·대괄호·중괄호·인용부호 바로 뒤의 정해진 목록만 인정하고, 임의의 한글을 한 글자씩 잘라 보지 않는다.
  • 링크 범위는 UTF-16 길이가 아니라 실제 cell로 계산해 wide 한글과 줄바꿈된 경로에서도 경로만 밑줄이 그어진다.
  • 한 hover의 새 파일 확인은 512개, batch는 64개로 제한하고, 넘친 후보와 검사 실패는 링크로 인정하지 않는다.

Before: hovering the path in Korean prose draws no link, because ')에' was checked as part of the file name

After: only docs/README.md is underlined; the parenthesis and the particle stay plain text

Review

  • 판단해 주세요: 지원 조사 목록(에, 에서, 에게, 께, 으로, 로, 와, 과, 을, 를, 은, 는, 이, 가, 의, 도, 만, 부터, 까지 + 도/만/는/은)은 위임받아 정한 가정이다.
  • 판단해 주세요: 512 새 lookup 예산은 위임 가정이다. 넘으면 일부 추론 링크가 안 뜨고 진단 로그에 개수만 남는다.
  • 조심해서 볼 파일: web/src/terminalLinkProvider.ts - high-frequency path(hover). 원문 우선 admission과 "검사 못 한 긴 후보가 있으면 짧은 후보를 고르지 않는" 규칙.
  • 조심해서 볼 파일: desktop/src/main/localPath.ts - failure path. 이제 ENOENT/ENOTDIR만 "없음"이고, 다른 오류는 경로 없이 코드만 담아 batch를 reject한다.
  • 조심해서 볼 파일: web/src/terminalLinks.ts - trimSpans를 cell 기준으로 다시 썼다. wide glyph, surrogate, combining cell 경계.
  • 범위 밖 테스트 변경: desktop/e2e/digit-shortcuts.spec.ts는 socket이 열린 뒤에 frame 관찰을 붙여 tab_select 0회로 실패하던 harness race를 reload로 고쳤다. assertion은 그대로다.
  • 알려진 미해결(이 PR 원인 아님): 이전 실행(96e3c47)에서 agent-tab-groups.spec.ts:44 Meta 키캡이 한 번 안 떴다. b502 4회와 main 3회에서는 재현되지 않았다.
    이 PR은 keyboard.ts/hints.ts를 건드리지 않는다. 원인은 미확정이며, 소스상 #269의 early-timer rearm(d38e63f)이 다루는 경로와 같을 가능성이 있다. 수정은 Ctrl+Tab을 포커스된 Agent·View 영역 안에서 순환하고 활성 영역을 표시 #269 소유이고 여기서 복제하지 않았다.

Evidence

  • 확인한 것: sasu implement verify PASS(7152f86, 최신 main 병합 후): verify-cargo.sh test, verify-cargo.sh lint.
  • 확인한 것: 병합 전 b502에서 cli와 web을 다시 빌드한 뒤 background desktop lane 30개 중 25 passed, 5 skipped(SSH/packaged 앱 필요), 0 failed. 다른 worktree의 web e2e와 동시에 돌린 부하 상태였다.
  • 확인한 것: 위 lane의 terminal-links.spec.ts 3개 case가 격리된 Electron에서 실제 hover 범위와 Workspace 파일 열기, 원문 파일 우선, wrapped 한글 경로를 확인한다.
  • 확인한 것: agent-tab-groups ×3을 main, b502, main + d38e63f(로컬 적용만)에서 각각 돌려 모두 3/3 통과.
  • 확인한 것: unit 테스트는 web parser/provider 57개, desktop localPath 9개다. 6단계 해석 상한, 16 spelling × 6 = 192 lookup 상한, 512/64 budget, cache, 실패 시 fail-closed를 다룬다.
  • 확인한 것: 12개 토큰, 302열 dense 줄(cold/warm 각 5회)에서 원래 코드는 logical lookup 6개, 후보는 42개였다. 후보 native stat은 12회였고, warm에서는 양쪽 모두 native 검사 0회였다.
    hover-to-pointer 중앙값은 원래 cold 11.2 / warm 11.2 ms, 후보 cold 8.9 / warm 13.1 ms이다. 다른 작업이 함께 돌던 환경이라 개선이나 동등성은 주장하지 않는다.
  • 확인하지 못한 것: 이번 HEAD에서 full web e2e는 로컬에서 다시 돌리지 않았다(CI 3 shard에 맡김). 마지막 로컬 110개 통과는 main 병합 전 HEAD 기준이다.
  • 확인하지 못한 것: SSH 기기·원격 Workspace·packaged 앱 case 5개는 이 환경에서 skip됐다. 원격 context에서 새 파일 검사를 하지 않는다는 것(B14)은 unit으로만 확인했다.
  • 확인하지 못한 것: 실제 OS 권한 거부(EACCES)는 주입한 오류로만 확인했다. column 5 위치 열기는 metadata와 unit으로만 확인했고 화면에서는 line 12까지 확인했다.
  • 확인하지 못한 것: 위 스크린샷은 병합 전 리비전의 격리 후보에서 캡처했다. parser, provider, localPath 소스는 그 뒤로 바뀌지 않았다.
Verification record
  • PRD: agents/prd/korean-terminal-path-links/prd.md (sha256 baa4be45368864c9364c27e4046a18b943c2f1cc2d19b1dbeea5567392d01f00)
  • Base 8d9919f → head 7152f86, verified 2026-10-01T08:28:47.695Z: PASS
  • Verification report: agents/runs/korean-terminal-path-links/verification-report.json and agents/runs/korean-terminal-path-links/verification-report.md; source fingerprint 2a0601d5bf906bf68c7b6f7ef43430f8fe82c3ff3bcb2da78b09c1ea8c7233c1
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
  • Evidence: 100 registered (27 log, 57 file, 12 screenshot, 2 browser, 2 image); paths are local to the run directory
    • agents/runs/korean-terminal-path-links/evidence/focused.log
    • agents/runs/korean-terminal-path-links/evidence/candidate-native.log
    • agents/runs/korean-terminal-path-links/evidence/baseline-native.log
    • agents/runs/korean-terminal-path-links/evidence/baseline-dense--dense-hover-metrics.json
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--dense-hover-metrics.json
    • agents/runs/korean-terminal-path-links/evidence/dense-comparison.json
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-prose-hover.png
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-prose-open.png
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-prose-open.json
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-original-file.png
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-wrapped-open.png
    • agents/runs/korean-terminal-path-links/evidence/candidate-native--korean-wrapped-open.json
    • agents/runs/korean-terminal-path-links/evidence/browser-no-host.png
    • agents/runs/korean-terminal-path-links/evidence/before-link.png
    • agents/runs/korean-terminal-path-links/evidence/after-link.png
    • agents/runs/korean-terminal-path-links/evidence/native-error-unit.log
    • agents/runs/korean-terminal-path-links/evidence/native-error-typecheck.log
    • agents/runs/korean-terminal-path-links/evidence/native-error-lint.log
    • agents/runs/korean-terminal-path-links/evidence/native-error-focused.log
    • agents/runs/korean-terminal-path-links/evidence/current-final-web-unit.log
    • agents/runs/korean-terminal-path-links/evidence/current-final-web-e2e.log
    • agents/runs/korean-terminal-path-links/evidence/current-native-print-target-typecheck.log
    • agents/runs/korean-terminal-path-links/evidence/current-native-print-target-lint.log
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native-suite.log
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--build-source-hashes.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--composite-click-observations.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-prose-hover.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-prose-hover.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-prose-open.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-prose-open.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-composite-stage-2-open.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-composite-stage-2-open.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-probe-retry-open.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-probe-retry-open.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-wrapped-hover.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-wrapped-hover.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-wrapped-open.png
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native--korean-wrapped-open.json
    • agents/runs/korean-terminal-path-links/evidence/current-matched-baseline-six-stage--dense-hover-metrics.json
    • agents/runs/korean-terminal-path-links/evidence/current-matched-baseline-six-stage--build-source-hashes.json
    • agents/runs/korean-terminal-path-links/evidence/current-matched-baseline-six-stage--native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/current-matched-baseline-six-stage.log
    • agents/runs/korean-terminal-path-links/evidence/current-matched-candidate-six-stage--dense-hover-metrics.json
    • agents/runs/korean-terminal-path-links/evidence/current-matched-candidate-six-stage--build-source-hashes.json
    • agents/runs/korean-terminal-path-links/evidence/current-matched-candidate-six-stage--native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/current-matched-candidate-six-stage.log
    • agents/runs/korean-terminal-path-links/evidence/current-matched-three-module-comparison.json
    • agents/runs/korean-terminal-path-links/evidence/current-browser-amended-observations.json
    • agents/runs/korean-terminal-path-links/evidence/current-browser-amended-no-host.png
    • agents/runs/korean-terminal-path-links/evidence/current-qa-slot-receipt.md
    • agents/runs/korean-terminal-path-links/evidence/current-fresh-slot-cleanup-proof.json
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native-rerun-suite.log
    • agents/runs/korean-terminal-path-links/evidence/current-complete-native-rerun-results--desktop-attach-the-app-sta-ce119--native-chords-and-the-menu-background--error-context.md
    • agents/runs/korean-terminal-path-links/evidence/functional-diagnose-keycap-suite.log
    • agents/runs/korean-terminal-path-links/evidence/functional-diagnose-keycap-exact-suite.log
    • agents/runs/korean-terminal-path-links/evidence/functional-diagnose-keycap-exact--native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/functional-functional-slot-cleanup-proof.json
    • agents/runs/korean-terminal-path-links/evidence/functional-functional-native-preflight.json
    • agents/runs/korean-terminal-path-links/evidence/slot-final-functional-full-suite.log
    • agents/runs/korean-terminal-path-links/evidence/slot-final-functional-full--native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/slot-final-functional-full-relative-suite.log
    • agents/runs/korean-terminal-path-links/evidence/slot-final-functional-final-cleanup-proof.json
    • agents/runs/korean-terminal-path-links/evidence/slot-final-functional-superseded-stop.json
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-functional-lane-runner.py
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-native-slot-guard.cjs
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-test-functional-lane-runner.py
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-runner-process-tests.json
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-runner-ready-receipt.json
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-runner-ready.md
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-code-review-runner-followup.md
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-fidelity-review-runner-followup.md
    • agents/runs/korean-terminal-path-links/evidence/runner-recovery-review-dispositions.md
    • agents/runs/korean-terminal-path-links/evidence/resumed96-targeted.log
    • agents/runs/korean-terminal-path-links/evidence/resumed96-targeted-corrected.log
    • agents/runs/korean-terminal-path-links/evidence/resumed96-cleanup-proof.json
    • agents/runs/korean-terminal-path-links/evidence/resumed96-active-grant.json
    • agents/runs/korean-terminal-path-links/evidence/resumed96-resources.jsonl
    • agents/runs/korean-terminal-path-links/evidence/resumed96-native-slot-guard.loaded.cjs
    • agents/runs/korean-terminal-path-links/evidence/resumed96-artifacts-native-targets.jsonl
    • agents/runs/korean-terminal-path-links/evidence/resumed96-artifacts-final-86759-probe.json
    • agents/runs/korean-terminal-path-links/evidence/resumed96-artifacts-final-86759-native.png
    • agents/runs/korean-terminal-path-links/evidence/resume96-code-review-digit-observer-current.md
    • agents/runs/korean-terminal-path-links/evidence/resume96-fidelity-review-digit-observer-current.md
    • agents/runs/korean-terminal-path-links/evidence/resume96-retained-binary-equivalence-96.json
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-suite.log
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-done.json
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-cleanup-proof.json
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-failure1.md
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-failure2.md
    • agents/runs/korean-terminal-path-links/evidence/resume96-closed9a-failure3.md
    • agents/runs/korean-terminal-path-links/evidence/b502-code-review-resumed-native-followup.md
    • agents/runs/korean-terminal-path-links/evidence/b502-fidelity-review-resumed-native.md
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/branch-desktop-background.log
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/base-main-keycap.log
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/branch-keycap.log
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/base-patched-keycap.log
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/bundle1.log
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/fidelity-review-b502-followup.md
    • agents/runs/korean-terminal-path-links/handover-2026-10-01/code-review-b502-followup.md
  • Changed paths: 106 (see Files changed)

yansfil added a commit that referenced this pull request Oct 1, 2026
…s test (#279)

Related: Refs #278

## Summary


`eight_actual_failed_controls_and_queue_rejection_preserve_other_scope_and_query`
failed the `rust workspace` job on main (`ac1cc979`) and on #277.
The test queued `superseded` and `latest ninth` back to back while the
search worker was idle.
The worker reads its mailbox without the runtime lock, so on a busy
runner it took `superseded` between the two calls and the test read that
answer first (`left: "superseded", right: "latest ninth"`).
The test now holds a real worker answer (`barrier`) while both requests
are queued, as the test's later "held" step already does, so the worker
cannot read the mailbox between them.
No expected value changed, and no test was removed.

## Review

- **판단해 주세요**: 제품 코드는 바꾸지 않았습니다. 워커가 먼저 가져간 `superseded`의 답은
`ingest_search`의 generation 비교가 버리므로, 경쟁은 테스트의 순서 가정에만 있다고 판단했습니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/session_search.rs` - 테스트 모듈만
바뀌었고, `barrier` 답은 p8 scope에서 days 변경 없이 끝납니다.

## Evidence

- **확인한 것**: 원본 테스트의 두 요청 사이에 50 ms sleep을 넣어 CI와 같은 assertion
실패(`"superseded"` vs `"latest ninth"`)를 결정적으로 재현했습니다.
- **확인한 것**: 같은 50 ms sleep을 넣어도 수정본은 통과합니다.
- **확인한 것**: 수정본 단독 50회 반복(`scripts/verify-cargo.sh test -p herdr-core
--lib eight_actual_failed_controls`), 50/50 통과.
- **확인한 것**: `scripts/verify-cargo.sh lint`(fmt + clippy) 통과,
session_search 테스트 3개 통과.
- **확인하지 못한 것**: 수정 전 원본은 sleep 없이 로컬에서 50/50 통과해, 자연 발생 경쟁은 로컬에서 재현하지
못했습니다(CI 부하에서만 발생).
- **확인하지 못한 것**: #278의 web e2e 1/3 실패(`agent-sleep.spec.ts:23`,
`agent-tab-groups.spec.ts:203`)는 이 PR 범위가 아니며 #278에서 계속 다룹니다.
@yansfil
yansfil merged commit e246d00 into main Oct 1, 2026
13 of 15 checks passed
@yansfil
yansfil deleted the prd/korean-terminal-path-links branch October 1, 2026 10:17
yansfil added a commit that referenced this pull request Oct 29, 2026
Closes with-hide/hide-private#180
Closes with-hide/hide-private#277
Closes with-hide/hide-private#202
Closes with-hide/hide-private#198
Closes with-hide/hide-private#199
Closes with-hide/hide-private#48
Closes with-hide/hide-private#114

## Summary

Windows에서만 가끔 실패하던 테스트 묶음을 원인별로 고칩니다. 재시도는 늘리지 않았고, 각 실행의 10초 제한은 그대로
두었으며, 프로세스 정리에 쓸 시간만 더했습니다.
테스트가 같은 파일에 같이 쓰던 것, 처음 실행하는 PowerShell과 node의 비용을 제한 시간 안에서 내던 것,
vitest worker를 동기 컴파일로 막던 것, 화면 테스트마다 반복하던 무거운 작업을 없앴습니다.
제품 동작은 바뀌지 않습니다. 설치된 hook이 처음 실행될 때 PowerShell 모듈을 불러오는 비용은
hide-private#318로 남겼습니다.
#124는 그 lane이 #1719로 이미 삭제되어 근거 코멘트를 남기고 닫았습니다.

스크린샷 없음: 화면 동작은 바뀌지 않음(`web/src/i18n/instance.ts`는 같은 검증을 하는 시점만 앞당김).

<details><summary>이슈별 원인과 처리</summary>

- **#198 #199 agy hook 테스트**: 테스트 준비가 PowerShell을 `exit 0`으로만 미리 띄웠습니다.
그래서 hook 명령이 쓰는 `Test-Path`가 모듈을 처음 불러오는 비용(새 runner에서는 설치된 모든 모듈의 캐시를
먼저 만듦)이 15초 제한 안에 들어갔습니다. 미리 띄울 때 `Test-Path`까지 실행합니다. 이것은 warm 상태의 기능
테스트를 위한 준비입니다. 제품 hook 명령의 cold 경로는 그대로이고, 고치려면 설치된 명령 문자열과
HOOK_VERSION이 바뀌어야 해서 hide-private#318로 남겼습니다.
- **#202 hide-kit node 테스트**: job에서 처음 실행하는 `node.exe`가 2.5-40초 걸렸습니다(다음
node는 0.1초). 테스트의 제한 시간이 시작되기 전에 `node --version`으로 첫 실행을
냅니다(`stand_ins`, hided 테스트가 이미 쓰는 방식). 바뀌는 것은 테스트 준비뿐입니다.
- **#180 #277 herdr-core PowerShell 시작 질문 테스트**: 두 pane이 한 파일에
`Add-Content`로 쓰면서 모든 오류를 잡고 5초 동안 재시도했고, 실패 화면에는 "stayed locked"만
남았습니다. 기록마다 자기 파일에 .NET으로 쓰고 재시도는 없앴습니다. 오류가 나면 그 오류가 그대로 보입니다.
- **#48 platform-program.unit.ts**: `beforeAll`이 C 프로그램 6개를
`execFileSync`로 동기 컴파일해서 worker가 81초 동안 막혔습니다. 컴파일과 프로그램 실행을 await하는
자식으로 바꿨습니다(`web/e2e/bounded-child.ts`). 호출마다 동기 호출 때와 같은 제한(컴파일 60초와 1
MiB, 실행 10초)이 있습니다. 어떻게 끝나든(스스로 종료, 제한 초과, 시작 실패, 테스트의 `signal`) 기존
fixture 도구로 자식 트리 전체를 끝냅니다. 첫 프로세스의 종료는 그것이 띄운 자손에 대해 아무것도 말해 주지 않고,
Windows에서는 자손이 출력을 쥐고 있어도 그 종료와 함께 `close`가 오기 때문입니다. Unix는 process
group 종료를 확인하고, Windows는 `hide-processes`가 identity로 자손을 따라갑니다. 이 도구들은
의존이 없는 `web/e2e/process-tree.ts`로 옮겨 shim 빌드도 함께 씁니다. 종료를 확인하지 못하면 즉시
그렇게 알리고, 호출자는 임시 파일을 지우지 않습니다. 그때까지 트리는 worker 종료
정리(`ownUntilWorkerExit`)에 등록되어 있습니다. Windows에서는 `hide-processes`를 먼저
빌드하고, 이후 컴파일을 따라갑니다. 그 자신의 컴파일이 실패하면 partial 파일을 남깁니다.
- **#114 Windows web unit 5초 타임아웃**: Windows runner는 jsdom 테스트가 이 Mac보다
약 7배 느려서, 로컬에서 0.5초를 넘는 테스트가 5초 한도에 붙습니다. 무거운 동기 작업 두 개를 없앴습니다.
- 화면 테스트마다 mount할 때 번역 카탈로그(약 4,000키 x 4개 언어)를 다시 검증 -> 정적 카탈로그라 모듈을 불러올
때 한 번만 검증.
- `practice/worlds.test.ts`가 입력마다 출발 상태의 snapshot과 화면을 다시 계산(테스트 시간의
87%) -> 상태마다 한 번만 그리고 store에는 매번 다시 넣음. world가 상태를 제자리에서 바꾸지 않는다는 것은 모든
모델을 deep-freeze한 상태로 18개 테스트가 통과하는 것으로 확인했습니다.
- **#124 nightly agent journey signed in (windows)**: 이 lane은
#1719(c88d028, 10-27 운영자 결정)로 CI에서 빠졌습니다. 코드 수정 없이 근거 코멘트를 남기고 not
planned로 닫았습니다.

</details>

## Review

- **판단해 주세요**: #198 #199와 #202는 테스트 준비만 바꿉니다. 제품 hook의 cold 첫
실행(hide-private#318)은 이 PR의 범위 밖입니다.
- **조심해서 볼 파일**: `web/src/i18n/instance.ts` - 카탈로그 검증이 import 시점으로
옮겨졌습니다. 잘못된 카탈로그는 이제 첫 instance를 만들 때가 아니라 모듈을 불러올 때 throw합니다.
- **조심해서 볼 파일**: `web/e2e/bounded-child.ts`, `web/e2e/process-tree.ts`,
`web/e2e/shims/build.ts` - 실패 경로의 트리 종료, 종료를 확인하지 못했을 때 파일을 남기는 것,
worker 종료 정리. `endStartGroup`, `windowsProcessTree`,
`endWindowsProcesses`의 본문이 `process-tree.ts`로 옮겨졌습니다(기존 이름은 그대로 위임).
`buildFixtureShims`는 async가 되어, Playwright `globalSetup` 두 곳과 vitest 파일
세 곳이 await합니다.
- **남은 한계**: with-hide/hide-private#324

## Evidence

- **확인한 것 (원인)**: run 40449782460에서 PowerShell 테스트 4개가 같은 순간에 시작해 38-48초
걸렸고, 제한 없이 `Test-Path`를 먼저 실행한 `every_windows_command`만 통과했습니다. run
40679837812에서는 node 테스트가 1차에 30초로 시간 초과되고 재시도에 12초 걸렸습니다. run
40679854397의 pane 화면에는 `claude-args stayed locked`가 남았습니다.
- **확인한 것 (Windows)**: head 997877724의 `windows check`(run 40723179805)에
TRY 2/FLAKY/onTaskUpdate 줄이 없습니다. herdr-core PowerShell 테스트 10.7초, agy
hook 테스트 2.8-5.6초, hide-kit node 테스트 2.4초입니다. web unit에서 가장 느린 테스트는
OverviewGraph overflow 3.9초이고, worlds는 최대 1.5초입니다(main run
40706855580에서는 5.8초). Windows agent journey dispatch run 40719259611 통과.
- **확인한 것 (로컬 macOS)**: `verify-web.sh web/desktop typecheck/lint`,
`desktop test` 통과. `web test`는 260 files 중 `src/mobile/sleep.test.tsx`
2개만 5초 타임아웃으로 실패했습니다(측정 중 load 98). 단독으로 돌리면 통과하고, 이 PR이 건드리지 않은 파일입니다.
`bounded-child.unit.ts`의 세 회귀 테스트(종료 실패를 즉시 알림, 부모가 먼저 끝나고 자손이 stdout을 쥔
경우, worker 종료)는 각 수정을 되돌리면(Unix group 대신 첫 프로세스만 kill, worker 등록 제거, 종료
실패를 close까지 대기) 실패하고, 복원하면 통과합니다.
- **확인한 것 (Windows 트리 종료)**: head e2179be05의 `windows check`에서
`bounded-child.unit.ts` 4개(종료 실패, 부모 선종료, 제한 시간 초과 때 출력을 쥔 자손, worker
종료)와 `windows-processes.unit.ts`가 통과했습니다. 한 번의 green은 flaky가 해소됐다는 증명이
아니므로, 이후 main run에서 같은 이슈 코멘트가 다시 붙지 않는지 봐야 합니다. OverviewGraph
overflow(3.9초)가 여전히 5초 한도에 가장 가깝습니다.
- **확인하지 못한 것**: #180 #277에서 원래 삼켜진 오류가 무엇이었는지는 로그로 복원할 수 없었습니다. 공유 파일과
cmdlet 의존을 둘 다 없애 두 후보를 모두 제거했고, 남는 실패는 자기 메시지를 보입니다.

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

- head: e2179be (fix/flaky-windows-lane, origin/main 877ec01 merge
포함)
- 이 head의 CI: verify run 40829385062 전체 pass (windows check job
123299939776: TRY 2/FLAKY/onTaskUpdate 줄 없음, web unit 260 files, desktop
unit 28 files; windows e2e, windows desktop, package windows, os/agy
contract windows pass)
- 거쳐 온 head: 5823db114는 Windows에서 부모 종료와 함께 `close`가 와서
`bounded-child.unit.ts`가 실패(run 40823405169). 0bde0ea2b는
`hide-processes` 자신의 컴파일에 아직 없는 경로를 넘겨 Windows 빌드가 실패(run 40826389313).
둘 다 e2179be05에서 고침
- Windows agent journey dispatch: run 40719259611 (systems windows, fake
model) pass

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