Skip to content

Stop resident reads no window waits for, cap their queues, and keep worktree facts across restarts - #1114

Merged
yansfil merged 7 commits into
mainfrom
fix/resident-caps
Oct 15, 2026
Merged

yansfil merged 7 commits into
mainfrom
fix/resident-caps

Conversation

@yansfil

@yansfil yansfil commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Related: #1107 (이 브랜치는 그 위에서 시작했고, #1107은 머지됨)

Summary

데몬이 아무도 기다리지 않는 일에 쓰던 비용을 멈추고, 시간이 지나며 커지던 대기열에 상한을 둡니다. 커밋 하나에 하나씩입니다. 화면은 바뀌지 않습니다.

  • 창이 없을 때 Git 감시: 창이 하나도 없어도 감시가 1초마다 보고를 상한 없는 우편함에 최대 24시간 쌓았습니다. 이제 창이 없으면 감시를 끝내고, 창이 붙으면 다시 시작해 모든 프로젝트를 한 번 읽습니다. 우편함은 256개 상한입니다.
  • 창이 없을 때 History·Explorer: 변경 목록을 250 ms마다, Explorer 감시가 200 ms마다 읽었습니다. 이제 창이 없으면 멈추고, 붙으면 고른 그대로 다시 읽습니다.
  • Memory 훅의 기한: 훅은 1초 뒤 포기하는데, 데몬은 core 스레드 대기에 기한이 없었고 기기 호출은 자리 대기·쓰기·답마다 1초를 새로 받았습니다. 이제 한 기한이 전부를 묶어, 훅이 포기한 뒤 남는 일이 없습니다.
  • 터미널 relay 대기열: 기기로 가는 터미널 출력 4 MiB 상한에 pane마다 마지막 full frame이 빠져 있어 pane 수만큼 커졌습니다. 이제 full frame도 셉니다.
  • 재시작 뒤 worktree 다시 재기: 데몬을 다시 켜면 모든 worktree를 처음부터 쟀습니다. 이제 잰 결과를 상태 폴더에 두고, 입력이 그대로인 worktree는 다시 쓰지 않습니다. 39개 저장소: 45초에 7개 못 잼 → 0.24초에 전부.

Review

  • 판단해 주세요: 재시작 뒤 첫 읽기도 재사용합니다(명시적 읽기가 아직 없을 때, generation 0). 꺼진 사이 입력을 움직이지 않은 편집(스테이징 안 한 수정)은 다음 새로고침이나 Overview 열기에서 보입니다. 실행 중과 같은 규칙입니다.
  • 판단해 주세요: 기기 호출의 쓰기도 같은 기한을 씁니다. 자리 대기로 기한을 거의 쓴 호출이 쓰는 도중 기한을 넘기면, 반쯤 보낸 줄 때문에 링크를 닫습니다. 전에도 writer 대기와 쓰기는 한 기한을 나눠 썼습니다. 쓰기 전에 기한이 지났으면 아무것도 보내지 않고 busy입니다.
  • 판단해 주세요: 상한을 넘는 full frame이 오면 가장 오래 기다린 pane의 대기분부터 버리고, 그 pane은 relay가 다음에 보낼 때 다시 그리기를 묻습니다. 읽지 않는 노드에 다시 그리기를 계속 묻는 루프가 없습니다.
  • 판단해 주세요: 혼자서 4 MiB(base64, 원본 3 MiB)를 넘는 full frame은 보내지 않고 다시 묻지도 않습니다. hub의 4 MiB chunk 규칙과 같은 모양입니다.
  • 판단해 주세요: brief의 item 10(Inputs::of를 잰 뒤에 읽기)은 하지 않았습니다. 측정의 git은 모두 --no-optional-locks라 index를 쓰지 않고, 순서를 바꾸면 측정 중 들어온 실제 변경을 놓칠 창만 생깁니다.
  • 판단해 주세요: worktree-facts/는 그 기계 노드의 캐시라 core와 함께 옮기지 않습니다. core_move 테스트의 "대상 상태 폴더가 그대로" 비교에서 Logs처럼 뺐습니다(hided/tests/it/core_move.rs listing).
  • 판단해 주세요: 창을 그리지 않는 클라이언트(client_kind 없음)에는 Explorer 감시가 돌지 않습니다. 웹 셸과 데스크톱은 항상 이름을 보내므로, 그렇게 접속하지 않던 hided 테스트 하나만 web으로 바꿨습니다.
  • 조심해서 볼 파일: herdr-core/src/session_sync/coordinator.rs window_reads - session-sync 스레드에서 detach 때 감시를 쉬게 합니다.
  • 조심해서 볼 파일: herdr-core/src/worktrees.rs - GitWatch 우편함·스레드 소유와 read_observed의 재사용 판정.
  • 조심해서 볼 파일: herdr-core/src/runtime/projects.rs changes_target, hided/src/server.rs renderers_drawn - runtime mutex 안, renderer 수가 0이 되는 경로.
  • 조심해서 볼 파일: hide-node/src/ssh/host.rs call·Gate::admit·write_line - failure path, 기한이 지난 단계의 답.
  • 조심해서 볼 파일: hided/src/relay.rs RelayTap::output·make_room - 모든 터미널 chunk가 지나는 high-frequency path.
  • 조심해서 볼 파일: hide-host/src/worktrees.rs Measured - 파일 쓰기는 memo lock 밖, 노드 호출 스레드에서.
  • 비용 검토: 창이 없을 때 Git 보고 0건(전에는 1초마다), Changes 호출 0, Explorer stamp 0. 새 스레드·타이머 없음.
  • 비용 검토: relay의 delta chunk에는 일이 늘지 않습니다. 상한을 넘는 full frame만 버릴 pane마다 대기열을 한 번 훑습니다.
  • 비용 검토: worktree 파일은 읽기가 바꾼 것이 있을 때만 통째로 씁니다(39개에 136 KB). 폴더는 64개 상한, 그대로인 읽기는 쓰지 않습니다.

Evidence

  • 확인한 것: 항목마다 호출자가 보는 결과를 묻는 테스트를 더했고, 고치기 전 코드로 되돌리면 실패하는 것을 확인했습니다(아래 목록).
  • 확인한 것: Git 감시는 실제 UiAttached(false)를 dispatch해, 노드의 감시 호출이 끝나고 다시 붙을 때 모든 프로젝트를 읽는 것을 봅니다.
  • 확인한 것: History는 노드의 Changes 호출을 셉니다: 1회, 창 없이 그대로 1회, 다시 붙으면 2회.
  • 확인한 것: 기기 호출은 local stream 링크로: 자리를 1초 잡았다 풀고 기한 2초, 호출이 풀린 시각 + 2초 전에 끝남. writer를 잡아도 같음.
  • 확인한 것: relay는 읽지 않는 노드에 8 pane × 1 MiB full frame: 매번 4 MiB 이하, 읽기를 재개하면 모든 pane이 full frame부터 도착.
  • 확인한 것: 실제 herdr-ide(39 worktree, load 11~36)를 새 memo로 읽음: 빈 폴더 45.08초·7개 못 잼, 파일 있음 0.235초·0개(아래).
  • 확인한 것: CI verify 초록(windows·remote mailbox 포함, 재시도 없음). 첫 CI의 실패 셋은 테스트 쪽이었고 고쳤습니다: Windows에서 링크를 닫아도 가짜 노드의 읽기가 끝나지 않던 A3 테스트, 위 core_move 비교, client_kind 없이 접속하던 hided 테스트.
  • 확인한 것: verify-cargo.sh lint, fmt-check, scoped 테스트(herdr-core, hided, hide-host, hide-node, hide-kit), 정책 검사.
  • 확인하지 못한 것: 설치된 앱에서의 효과. 앱 교체는 operator 몫이라 하지 않았습니다.
  • 확인하지 못한 것: hided의 core 스레드 대기 기한(recv_timeout)은 테스트가 없습니다. owner 스레드를 붙잡아 둘 fixture가 없습니다.
  • 확인하지 못한 것: 실제 SSH 기기에서의 기한, 느린 실제 노드에서의 relay RSS. Windows·Linux는 CI.
추가 증거

재시작 뒤 첫 읽기, 2026-10-14, 이 브랜치의 debug build로 hide_host::worktrees::read를 프로세스마다 새 Measured::kept_in(folder)로 호출(reuse_unchanged = true):

빈 폴더              45.081 s  39개 중 7개 못 잼 (읽기 상한 45 s)
빈 폴더, 캐시 데움   45.073 s  7개 못 잼
첫 읽기가 남긴 파일  24.472 s  0개 (못 잰 7개 + 그사이 움직인 worktree를 잼)
그 읽기가 남긴 파일   0.235 s  0개 (모든 입력이 같음)

첫 읽기 전후 모든 worktree의 index stat은, 그때 에이전트가 일하던 worktree 하나만 달랐습니다.

새 테스트:

  • window_reads_tests (coordinator), a_full_mailbox_keeps_its_cap_and_reads_every_project_once, a_rested_watch_ends_on_the_node_and_its_restart_reads_every_project
  • the_changes_reader_asks_nothing_while_no_renderer_is_attached (runtime), a_watcher_stamps_nothing_while_no_renderer_draws (hided)
  • a_call_s_waits_and_its_answer_share_one_deadline (hide-node)
  • full_frames_of_many_panes_stay_under_the_tap_s_cap_and_every_pane_draws_again, a_full_frame_past_the_tap_s_cap_waits_for_one_that_fits (hided)
  • a_restarted_node_reuses_from_its_folder_only_what_did_not_move, a_file_of_another_version_or_that_does_not_read_keeps_nothing, the_folder_keeps_the_files_of_the_last_repositories_written (hide-host), a_first_read_since_start_reuses_and_one_after_an_explicit_ask_does_not (herdr-core)

With the last window closed the coordinator stopped taking the Git
watch's reports, but the watch kept running on the node and its reports,
a heartbeat every second among them, queued in an unbounded channel for
as long as the window stayed closed. The forwarding thread was never
joined.

- The coordinator ends the watch on any wake with no renderer attached
  (WorktreeReader::rest, git_watch.rested); the first read after one
  attaches starts it again and reads every project once it is watching.
- The core keeps at most 256 reports per watch and no heartbeat; a report
  past that is dropped and kept as one re-read of every project
  (git_watch.mailbox_full). How the watch ended is kept apart, so a full
  mailbox never loses it.
- A stopped watch hands its thread to the reader, which joins it once it
  has ended; the reader's end waits up to 3 s and names any still running
  (git_watch.stop_unconfirmed).
The last window closing parked the coordinator's readers, but the Changes
pump and the Explorer watch decide their demand from the persisted panel
selection, so they kept reading the checkout in front, every two seconds
and every 200 ms, for as long as the daemon ran without a window.

- changes_target is none while no renderer is attached; the selection the
  operator left stays, so the first renderer back reads the same checkout.
- Once the empty projection has landed, the Changes pump reads nothing
  until a request returns, instead of a no-op read every two seconds.
- The Explorer watch keeps the target the snapshot asked for but stamps
  only while a renderer draws (WatchService::set_drawn), set together with
  the core's ui_attached on the first renderer in and the last one out.
The hook's 1 s Memory deadline now bounds the wait for the core owner's
scope, and a device call's timeout is one deadline its slot wait, writer
wait, write and answer share, so a call that waited for admission no
longer gets a fresh timeout for its answer and no daemon work outlives
the hook that gave up on it.
The relay tap's 4 MiB cap now holds full frames too. A full frame that
would pass it drops the waiting output of the panes that waited longest
until it fits, and those panes are drawn again from a full frame asked
when the relay next sends, so a node that reads nothing holds at most
the cap and is asked no redraw meanwhile. A full frame that alone passes
the cap is not relayed.
What a node measured of each repository's worktrees, with the inputs
each measurement was taken from, is now kept in its state folder as
well, one versioned file a repository and the last 64 repositories
written, replaced whole when a read changed it. A restarted daemon, a
device helper and a node that dialed its core read it for a repository
they have not read since starting, and the core's first read of a
project since it started, before any explicit read, may reuse it, so a
restart measures only the worktrees whose inputs moved: a 39-worktree
repository answered whole in 0.24 s instead of running into the 45 s
read bound with 7 worktrees unmeasured.
…ndow

The Git watch test read the watch's start right after the read that
began it, which runs on a thread of its own; it now waits for the node
to say the watch started. The Explorer change test connected as a client
that draws nothing, which no longer runs the Explorer watch; it now
connects as the web shell does.
…ut of a move's target check

The one-deadline test waited for the node's read to end when the link
closed, which on Windows never came; its node now reads the two requests
it expects and lets go of its end when the test is done. The move tests
compare the target's state folder before and after; its worktree facts
are the machine's own cache of its node's reads and never move with a
core, like its log.
@yansfil
yansfil merged commit a827b3d into main Oct 15, 2026
23 checks passed
@yansfil
yansfil deleted the fix/resident-caps branch October 15, 2026 02:41
yansfil added a commit that referenced this pull request Oct 15, 2026
## Summary

프로젝트 행과 Overview에서 연결·작업 방식·기억을 관리하는 별도 설정 창을 엽니다.
기기와 원본 checkout별로 확인된 저장 값을 공유하고, 저장 실패에는 기존 값과 재시도를 유지합니다.
새 작업 위치와 기준 branch를 초기 선택에 적용하고, 기존 이슈·PR·Memory 연결은 원래 저장소를 보존합니다.
프로젝트 기억을 열면 대상 checkout에서 오른쪽 레인의 Memory 도구를 엽니다. 좁은 창에서도 레인이 앞으로 나옵니다.
Windows 세션 경로를 읽은 기기에서 변환해 원래 저장소를 찾고, 재시작 검사는 실제 저장 완료를 기다립니다.
설정 메뉴가 있어도 긴 Overview 제목을 읽을 수 있도록 돌아가기 버튼도 공간에 따라 이름이 있는 아이콘으로 바뀝니다.

**진입 위치: 프로젝트 행의 설정 아이콘**
프로젝트 행에 마우스를 올리거나 키보드로 이동하면 설정 아이콘이 나타납니다.

![전체 앱에서 사이드바 프로젝트 설정 진입
위치](https://github.com/user-attachments/assets/30541f75-0e2b-476e-a644-574896767e42)

**Connections: 저장소와 이슈 출처**
왼쪽 탐색과 설정창 전체를 함께 보여줍니다. Linear는 준비 중입니다.
이 캡처는 main #1107 이전 것이라 원격 없는 저장소가 GitHub 읽기 실패로 보입니다. 지금은 원격 없는 저장소는
`Automatic (Local)`로 보이고, GitHub 저장소의 읽기가 실패할 때만 GitHub에 남아 실패를 알립니다.

![전체 앱과 Connections
설정창](https://github.com/user-attachments/assets/4dab549e-d4ac-4267-93bb-be244e0ddfb1)

**Working style: 새 작업 위치와 기준 branch**
New worktree 저장 상태와 자동 감지한 main을 표시합니다. 보호 기능 두 항목은 미지원입니다.

![전체 앱과 Working style
설정창](https://github.com/user-attachments/assets/4d1e2018-2c24-4599-8ca1-edc900df80a2)

**Memory: 자동 기억 설정과 프로젝트 기억 열기**
좁은 창·일본어·밝은 테마에서 설정창 전체를 보여주고, 이어서 프로젝트 기억을 연 화면을 보여줍니다. 두 번째 캡처는 main
#1112 이전 것이라 Memory가 옛 Tools 열에 보입니다. 지금은 오른쪽 레인의 Memory 도구로 열립니다.

![좁은 앱 창의 Memory 설정과 왼쪽 탐색
전체](https://github.com/user-attachments/assets/2c9cb889-09bf-4f7e-80f8-5d5b26de8b68)

![프로젝트 기억을 연 전체 앱과 Tools
화면](https://github.com/user-attachments/assets/e0a41e58-ed7b-42f9-ac0b-08622e6ccfbf)

## Review

- **판단해 주세요**: 연결·작업 방식·기억의 문구, 좁은 창의 읽기와 Sidebar 진입 동선을 봐주세요.
- **조심해서 볼 파일**: `herdr-core/src/runtime/project_settings.rs`,
`runtime/session_work.rs` - 저장 확정·원격 연결 전달·취소와 잘못된 저장소 생성 거절.
- **조심해서 볼 파일**: `herdr-core/src/links/{worker,store,ledger_store}.rs` -
과거 세션의 원래 저장소·재스캔·기기 읽기 중 연결 변경·마이그레이션.
- **조심해서 볼 파일**: `herdr-core/src/runtime/issues.rs`,
`runtime/memory_promotion.rs`, `hide-memory/src/store.rs` - 대상 검증·기존 링크와
Memory의 원래 저장소.
- **조심해서 볼 파일**: `web/src/ProjectSettingsSheet.tsx`,
`web/src/navigation.ts`, `web/src/App.tsx` - 설정 대상·포커스 복귀·Memory 도착 판정.
- **조심해서 볼 파일**: `herdr-core/src/runtime/project_memory.rs` - main
#1086의 "훅을 처음 읽기 전 Memory 켜기 보류"와 이 PR의 프로젝트별 실패 표시를 합친 곳입니다. 보류 중 다른
프로젝트의 요청과 읽기 실패 거절이 그 프로젝트의 실패로 남습니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/workspace_view.rs` - main
#1112의 오른쪽 레인으로 옮긴 Memory 열기입니다. 레인 도구를 Memory로 두고 lane call로 앞으로 부릅니다.
- **조심해서 볼 파일**: `desktop/e2e/project-settings.spec.ts` - 로그아웃 상태
fixture `gh`로 GitHub 읽기 실패 유지(B15)를, 원격 없는 저장소로 Local(B16)을 확인합니다.
- **조심해서 볼 파일**: `hide-host/src/serve.rs`,
`web/e2e/session-work-ledger.spec.ts` - 기기의 경로 변환과 재시작 전 저장 완료.
- **조심해서 볼 파일**: `web/src/SessionRecord.tsx` - main #1106이 세션 기록을 새로
짰습니다. 이 PR의 변경은 이슈 초안 실패 줄이 원인(저장소 모름·바뀜·그 외)을 말하는 한 줄뿐이라, main 파일에 그 줄만
다시 얹었습니다.
- **조심해서 볼 파일**: `hide-host/src/worktrees.rs`,
`hide-host/tests/it/worktrees.rs`, `.github/workflows/pr.yml` - public
조회의 단일 마감 시간, 자식 정리와 Windows 실제 실행. 같은 파일에 main #1114의 재시작 뒤 측정 결과 보존이
함께 들어와 있습니다. 그쪽은 git을 부르지 않아 마감 시간 밖으로 새는 호출이 없습니다.
- **조심해서 볼 파일**: `hide-host/tests/it/worktrees.rs` - 이 PR의 단일 마감 테스트에서
가짜 git 지연을 14초에서 10초로 줄였습니다. 호출당 15초 제한에 여유가 1초뿐이라 부하가 높으면 첫 호출이 잘려 저장소를
못 찾았습니다. 10초에서는 잘리는 지점이 측정 단계로 옮겨가서, 저장소든 worktree든 끝내지 못한 쪽이 그렇다고 알리는지로
검사합니다. 마감을 새로 시작하는 버그를 일부러 넣으면 55초에 끝나 여전히 실패합니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/tests/project_sessions.rs` - 실패
문구 대신 실패 상태로 기존 4회 요청을 제어하며, 최종 오류 없음·정확한 세션 1개를 유지합니다.
- **조심해서 볼 파일**: `hide-session/tests/it/usage.rs` - 고정 호출 횟수 대신
checkpoint와 완료 상태로 집계하며 정확한 이벤트·유실·EOF와 각 페이지 상한을 유지합니다.
- **조심해서 볼 파일**: `hide-memory/src/store.rs`의 비교 테스트 - 기존 제어 시계로 의미를
검사하며, production 100ms와 별도 99/100ms deadline 검사는 유지합니다.
- **조심해서 볼 파일**: `web/src/OverviewTitleRow.tsx`,
`web/e2e/overview-header.spec.ts` - 돌아가기·설정 진입 유지와 글자형 너비 기준의 안정된 축약 판단.
- **비용 검토**: 기존 worker와 변경 시에만 전달하는 mailbox를 재사용하며 추가 poll·입력당 I/O는
없습니다. 설정256개·receipt512개·세션 생성 대상512개의 상한과 명시적 거절을 유지합니다.

## Evidence

- **확인한 것**: 최종 후보(415391c)의 Rust 전체 46 suite 4726 PASS·0 FAIL·99
ignored와 lint가 통과했습니다. 같은 웹 소스(78ab)의 web 1609개·desktop 185개와 각
type·lint·build, design contract도 통과했습니다.
- **회귀 근거**: 마지막 통합들 뒤 web e2e 22개(세션 작업·Sidebar 메뉴·Overview 제목·오른쪽 레인),
desktop e2e 4개(세션 작업·프로젝트 설정 3)와 브라우저 숨은 페이지 대기 5회 반복이 재시도 없이 통과했습니다.
Memory 진행·정리 desktop e2e는 앞선 통합 후보에서 통과했습니다. 앞선 후보의 브라우저 세션7개와 Electron
세션 결과는 보존했습니다.
- **마감 시간**: 실제 public 호출 회귀가 수정 전70.12초로 실패하고 수정 후45.02초에 unavailable을
반환했습니다. 앞선 후보 Windows에서도 정확한 회귀1개가 실제 실행해 통과했습니다.
- **실제 화면**: 앞선 통합 후보의 연결·작업 방식·기억과 현재 Usage의 한국어 light/dark 7일·30일 전환을
실제 브라우저 gallery에서 확인했습니다. 이 관찰은 합성 상태이며 저장·제공자 성공 증거로 사용하지 않습니다.
- **Windows**: 직전 후보의 실제 web45개·desktop12개·원래 저장소 회귀1개·public 마감 회귀1개는
재시도 없이 통과했습니다. OS contract206개와 IPC2개도 통과했습니다. 이전22개 실패·취소의 공통 원인은 미확정이며
새 후보 CI는 별도로 확인합니다.
- **제목 회귀**: 직전 후보 Linux CI의 900px 말줄임 실패를 보존했습니다. 수정 후 macOS 실제 브라우저와
넓은 글꼴 관측에서 기존720·900·1600 Light/Dark 기대값과 돌아가기·설정 포커스 검사가 통과했습니다. 글꼴 관측을
Linux 실행으로 표시하지 않습니다.
- **이전 CI 실패**: 이전 후보 CI는 두 가지로 실패했습니다. main에서 온 테스트에 epoch 필드가 빠져 컴파일되지
않았고, 원격 없는 저장소를 이제 Local로 읽는데 desktop spec은 GitHub 실패를 기대했습니다. 둘 다 테스트만
고쳤고 제품 동작은 바꾸지 않았습니다. 고치기 전 spec은 로컬에서 같은 실패를 재현했습니다.
- **비교 fixture**: 의미 검사에 실제 시계가 섞였던 테스트를 기존 제어 시계로 교정했습니다. 정확 비교1개·기존
deadline1개·라이브러리116개가 통과했으며, 원본 전체 FAIL의 실제 지연 원인은 미확정입니다.
- **보존한 실패**: 앞선 전체 검사의 kit 초기화 timeout, 진단 전체 검사의 usage 실패와 후속 모듈 실패를
보존했습니다. kit 원인과 당시 usage yield는 미확정이며 집계 fixture 교정을 kit 수정으로 주장하지 않습니다.
- **main 통합**: main을 다섯 번 합쳤습니다(0ba·46bd·edae·8d2f·d484). 충돌 6파일은 양쪽 의도를
모두 남겼고, 그 내용은 위 Review에 적었습니다. 텍스트 병합이 깨끗해도 컴파일은 따로 증명해야 해서, 매번 clippy
전체 target부터 돌렸습니다.
- **main이 빨갰던 때**: main #1106 뒤 데스크톱 세션 기록 spec이 없어진 "닫힘 N"을 눌러 main 자체가
실패했습니다. 이 PR의 같은 spec 실패도 그 때문이었고, main의 수정(#1131)을 합친 뒤 이 브랜치에서 4/4
통과했습니다.
- **flaky**: 중간 후보의 전체 검사에서 이 PR이 건드리지 않은 `node_session_activity` 테스트
1개가 실패했습니다. 기기 부하가 평균 35~39일 때 시작 확인이 5초를 넘긴 것입니다. 같은 head 단독 실행은 5/5
통과했고 기한·재시도는 바꾸지 않았습니다. 다음 전체 검사 두 번은 테스트가 모두 통과했습니다.
- **flaky 2**: 3e8e의 CI macOS 데스크톱에서 브라우저 숨은 페이지 대기 테스트가 두 번 다 실패했습니다.
main에서도 이미 flaky로 잡힌 #1125였고, 같은 SHA 로컬 5회 중 1회 실패했습니다. job 재실행에서 82개가
모두 통과했고, main의 수정 #1137을 합친 뒤 로컬 5/5 통과했습니다.
- **flaky 3**: 78ab의 전체 검사가 두 번 실패했습니다. 한 번은 부하 평균 24~40에서
`remote_spawn` 테스트 1개의 응답 대기 시간 초과(단독 5/5 통과), 한 번은 디스크 여유 897 MiB에서
`connect_build` 2개의 서명용 바이너리 복사 실패입니다. 둘 다 이 PR이 건드리지 않은 테스트이고, 기한·재시도는
바꾸지 않았습니다. 6cd7에서는 이 PR의 worktrees 마감 테스트가 부하 때문에 실패해, 위 Review에 적은 대로
테스트의 고정 지연만 고쳤습니다(부하 평균 38~58에서 3/3 통과).
- **네이티브 한계**: 앞선 OS 창 캡처3개는 이미지 생성 실패로 끝났습니다. Electron 기능 통과를 OS 화면 검증
완료로 표시하지 않습니다.
- **전체 UI 이미지**: 상단5장은 승인된 전체 창 캡처입니다. Sidebar는 이전 브라우저 fixture, 나머지4장은
이전 격리 native 앱으로, main #1106·#1107·#1108·#1112 이전 화면입니다. 현재 후보로 바꾸어 부르지
않습니다.
- **시간 한계**: 단일 Git·측정 예산을 보장하며 임의의 파일시스템 정지·스케줄러 중단까지 hard real-time으로
보장하지 않습니다.
- **미확인 범위**: 외부 GitHub 성공·실제 모델·물리 원격·foreground·Windows/Linux 설정 전체
native·일치 조건 성능은 미실행입니다. Sidebar 전체 시안 자동 비교는 INCOMPLETE입니다.
- **생성물**: 양쪽 library61개 시트를 보존했습니다. Settings 화면과 target을 보존했습니다.
Sidebar는 incoming tab segment와 기존 아이콘 스타일을 함께 보존해 이전 화면과 구분합니다. 전체
화면18개·토큰·target을 유지했고 design contract·design83개·policy340개가 통과했습니다.
- **Pen 한계**: main에서 온 Usage-window 렌더러 경고는 남아 있습니다. 선택 export만 확인했으며
library 전체 렌더 PASS는 아닙니다.


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

- PRD: `agents/prd/project-settings/prd.md` (sha256
1106d497dfa6419a4f34d7f705abcf4e4ce705d8db5797aeb32a195f97a1246e)
- Base d48417d → head 415391c, verified 2026-10-15T05:30:46.416Z: PASS
- Verification report:
`agents/runs/project-settings/verification-report.json` and
`agents/runs/project-settings/verification-report.md`; source
fingerprint
2df4c4990cd48a7ce612ee5c73cf7bcdb69ef21d4fdc5b023aaef9efbd6641f2
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Code: reviewed 415391c (follow-ups on 5da1603, 2b4d6ac, 3e8e6a1,
78abb46, 415391c): no Fix now; follow-ups: assert the Memory open
numbers a lane call, tests for the held-press busy and refusal routes, a
fake gh argv witness, the sidebar issue-source selector cost, a unit
case for issueDraftFailureKey, and for the deadline test a marker count
and a lower elapsed bound instead of relying on the 50 s ceiling, plus
one comment that overstates its load margin.
- Fidelity: reviewed 78abb46: no new code Fix now; F1 (the body
described 3e8e) closed by this refresh; captions now name #1106 and
#1108 as later than the images; B30 incomplete and B31 not PASS remain.
- Security: reviewed 78abb46: no Fix now; the issue-creation guard is
intact under #1106's record, and #1114's kept worktree facts are private
files keyed by a hash of the root that no settings or issue-source code
reads; follow-ups (main's #1114): log a hashed name instead of the
checkout path in kept_record, kept dirty counts can be stale after a
restart (display only).
- Evidence: 408 registered (207 log, 48 screenshot, 145 file, 5 browser,
3 image); paths are local to the run directory
  - agents/runs/project-settings/sidebar-menu-f450.log
  - agents/runs/project-settings/cli-f450.log
  - agents/runs/project-settings/web-60ee.log
  - agents/runs/project-settings/native-f450.log
  - agents/runs/project-settings/web-e2e-f450.log
  - agents/runs/project-settings/desktop-e2e-60ee.log
  - agents/runs/project-settings/remote-mailbox-pin-60ee.log
  - agents/runs/project-settings/hakari-60ee.log
  - agents/runs/project-settings/real-shell-available-60ee.log
  - agents/runs/project-settings/measure-60ee.log
  - agents/runs/project-settings/policy-60ee.log
  - agents/runs/project-settings/fmt-f450.log
  - agents/runs/project-settings/design-helpers-f450.log
  - agents/runs/project-settings/attribution-60ee.log
-
agents/runs/project-settings/native-f450/project-settings-work-native.png
-
agents/runs/project-settings/native-f450/project-settings-work-native.json
-
agents/runs/project-settings/native-f450/project-settings-connections-native.png
-
agents/runs/project-settings/native-f450/project-settings-connections-native.json
-
agents/runs/project-settings/native-f450/project-settings-ja-light-memory-native.png
-
agents/runs/project-settings/native-f450/project-settings-ja-light-memory-native.json
-
agents/runs/project-settings/native-f450/project-settings-narrow-native.png
-
agents/runs/project-settings/native-f450/project-settings-narrow-native.json
-
agents/runs/project-settings/native-f450/project-settings-memory-open-native.png
-
agents/runs/project-settings/native-f450/project-settings-memory-open-native.json
-
agents/runs/project-settings/native-f450/project-settings-overview-focus-native.png
-
agents/runs/project-settings/native-f450/project-settings-overview-focus-native.json
  - agents/runs/project-settings/acceptance-60ee.md
  - agents/runs/project-settings/sidebar-state-f450/comparison.md
  - agents/runs/project-settings/sidebar-state-f450/comparison.html
  - agents/runs/project-settings/sidebar-long-full-f450/geometry.json
  - agents/runs/project-settings/sidebar-long-module-comparison-f450.log
-
agents/runs/project-settings/design/review/20261013-182503-ca3f68/report.md
-
agents/runs/project-settings/design/review/20261013-182605-0eca39/report.md
  - agents/runs/project-settings/review/fidelity-final.md
  - agents/runs/project-settings/review/code-final.md
  - agents/runs/project-settings/review/security-final.md
-
agents/runs/project-settings/public-images-f450/working-style-native.png
- agents/runs/project-settings/public-images-f450/connections-native.png
-
agents/runs/project-settings/public-images-f450/memory-ja-light-native.png
  - agents/runs/project-settings/public-images/provenance.txt
  - agents/runs/project-settings/public-images/attachments.json
  - agents/runs/project-settings/web-e2e-888c.log
  - agents/runs/project-settings/e2e-menu-failure-888c/error-context.md
  - agents/runs/project-settings/merge-tree-60ee.log
  - agents/runs/project-settings/ci-plan-60ee.json
  - agents/runs/project-settings/production-identity-60ee.json
  - agents/runs/project-settings/desktop-e2e-f450.log
  - agents/runs/project-settings/measure/60ee-debug/identity.txt
  - agents/runs/project-settings/measure/60ee-debug/resources-idle.json
- agents/runs/project-settings/measure/60ee-debug/resources-driven.json
  - agents/runs/project-settings/measure/60ee-debug/echo-summary.json
-
agents/runs/project-settings/measure/60ee-debug/echo-driven-summary.json
  - agents/runs/project-settings/measure/60ee-debug/frames-summary.json
-
agents/runs/project-settings/measure/60ee-debug/memory-after-frames.json
- agents/runs/project-settings/measure/60ee-debug/cleanup-processes.txt
  - agents/runs/project-settings/measure/60ee-debug/operator-before.json
  - agents/runs/project-settings/measure/60ee-debug/operator-after.json
  - agents/runs/project-settings/remote-mailbox-60ee.log
  - agents/runs/project-settings/remote-fixture-focused-60ee.log
  - agents/runs/project-settings/nextest-pin-install.log
- agents/runs/project-settings/remote-mailbox-pin-disk-failure-60ee.log
  - agents/runs/project-settings/owned-fixture-copy-cleanup-60ee.json
  - agents/runs/project-settings/cli-7dc9.log
  - agents/runs/project-settings/native-7dc9.log
  - agents/runs/project-settings/rust-affected-7dc9.log
  - agents/runs/project-settings/policy-source-7dc9.log
  - agents/runs/project-settings/policy-identity-7dc9.log
-
agents/runs/project-settings/native-7dc9/project-settings-work-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-work-native.json
-
agents/runs/project-settings/native-7dc9/project-settings-connections-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-connections-native.json
-
agents/runs/project-settings/native-7dc9/project-settings-ja-light-memory-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-ja-light-memory-native.json
-
agents/runs/project-settings/native-7dc9/project-settings-narrow-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-narrow-native.json
-
agents/runs/project-settings/native-7dc9/project-settings-memory-open-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-memory-open-native.json
-
agents/runs/project-settings/native-7dc9/project-settings-overview-focus-native.png
-
agents/runs/project-settings/native-7dc9/project-settings-overview-focus-native.json
  - agents/runs/project-settings/input-impact-7dc9.json
  - agents/runs/project-settings/acceptance-7dc9.md
  - agents/runs/project-settings/verification-report-60ee-failed.json
  - agents/runs/project-settings/verification-report-60ee-failed.md
  - agents/runs/project-settings/public-images-f450/provenance.txt
  - agents/runs/project-settings/public-images-f450/attachments.json
-
agents/runs/project-settings/native-1e8d/project-settings-memory-open-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-ja-light-memory-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-connections-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-ja-light-memory-native.png
-
agents/runs/project-settings/native-1e8d/project-settings-memory-open-native.png
-
agents/runs/project-settings/native-1e8d/project-settings-overview-focus-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-overview-focus-native.png
-
agents/runs/project-settings/native-1e8d/project-settings-work-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-connections-native.png
-
agents/runs/project-settings/native-1e8d/project-settings-narrow-native.json
-
agents/runs/project-settings/native-1e8d/project-settings-narrow-native.png
-
agents/runs/project-settings/native-1e8d/project-settings-work-native.png
  - agents/runs/project-settings/delivery/ci-fix-native-1e8d.log
  - agents/runs/project-settings/delivery/ci-fix-cli.log
  - agents/runs/project-settings/delivery/ci-fix-web-journeys-1e8d.log
  - agents/runs/project-settings/delivery/ci-fix-static.log
  - agents/runs/project-settings/delivery/ci-narrow-unit.log
  - agents/runs/project-settings/delivery/ci-fix-design-1e8d.log
  - agents/runs/project-settings/delivery/aside-memory-1e8d-redacted.log
  - agents/runs/project-settings/delivery/cleanup-1e8d.json
  - agents/runs/project-settings/delivery/ci-final-7dc9.json
  - agents/runs/project-settings/delivery/ci-desktop-job-7dc9.log
  - agents/runs/project-settings/delivery/ci-narrow-reproduction-2.log
  - agents/runs/project-settings/delivery/ci-narrow-fixed.log
  - agents/runs/project-settings/input-impact-1e8d.json
  - agents/runs/project-settings/acceptance-1e8d.md
-
agents/runs/project-settings/delivery/main-integration-20261014/remote-feed-before-fix-valid.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-handoff-fixed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/rust-lint-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cli-build-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/web-typecheck-handoff.log
-
agents/runs/project-settings/delivery/main-integration-20261014/web-lint-handoff.log
-
agents/runs/project-settings/delivery/main-integration-20261014/guards-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/design-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/native-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/electron-functional-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-flow-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-focus-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-c419-connections.png
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-c419-working.png
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-c419-memory.png
-
agents/runs/project-settings/delivery/main-integration-20261014/native-c419/project-settings-connections-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/native-c419/project-settings-ja-light-memory-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/native-c419/project-settings-overview-focus-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/rescan-before-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/links-rescan-fixed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-96c1-resumed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/connect-build-isolated-c419.log
-
agents/runs/project-settings/delivery/main-integration-20261014/watchers-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/hide-kit-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cli-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/links-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-merged-f3-ready.log
-
agents/runs/project-settings/delivery/main-integration-20261014/electron-functional-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/native-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/native-merged-f3-ready.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-flow-merged-f3-locators.log
-
agents/runs/project-settings/delivery/main-integration-20261014/preparation-failures-merged-f3.md
-
agents/runs/project-settings/delivery/main-integration-20261014/design-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/pin-merged-f3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cleanup-merged-f3.json
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-3aaf-connections.png
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-3aaf-memory.png
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-3aaf-working.png
-
agents/runs/project-settings/delivery/main-integration-20261014/native-merged-f3-ready/project-settings-connections-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/native-merged-f3-ready/project-settings-ja-light-memory-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/native-merged-f3-ready/project-settings-overview-focus-native.json
-
agents/runs/project-settings/delivery/main-integration-20261014/perl-locale-reproduction-3aaf.log
-
agents/runs/project-settings/delivery/main-integration-20261014/watchers-locale-before-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/watchers-locale-supported.log
-
agents/runs/project-settings/delivery/main-integration-20261014/sealed-runtime-locale-diagnosis.md
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-desktop-ci-3aaf-job.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-web-ci-3aaf-job.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-ci-3aaf-final.json
-
agents/runs/project-settings/delivery/main-integration-20261014/links-native-origin-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/native-origin-node-nextest-filter.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-native-origin-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/electron-native-origin-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-native-origin-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cli-native-origin-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/native-origin-node-before-fix-macos.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-origin-diagnosis-3e3c.md
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/preservation.json
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/feature-preservation.json
-
agents/runs/project-settings/delivery/main-integration-20261014/design-contract-3e3c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-3e3c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-3e3c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/ci-plan-3e3c-completed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-settings-ready-3e3c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-navigation-3e3c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/owned-cleanup-3e3c.json
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/current-render.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-settings-ready-3e3c.png
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-work-3e3c.png
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-memory-3e3c.png
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/exports/project-row-sheet.png
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/exports/usage-history-popover-rest-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ffcf/exports/usage-history-popover-rest-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/i4-diagnosis-d857.md
-
agents/runs/project-settings/delivery/main-integration-20261014/i4-ci-scope-73cd.md
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-tree-3e3c-ba166.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-ba166-commit.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-9b372.log
-
agents/runs/project-settings/delivery/main-integration-20261014/design-contract-9b372.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-9b372.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-9b372.log
-
agents/runs/project-settings/delivery/main-integration-20261014/public-deadline-red-9b372.log
-
agents/runs/project-settings/delivery/main-integration-20261014/public-deadline-green-i4.log
-
agents/runs/project-settings/delivery/main-integration-20261014/public-deadline-clippy-i4.log
-
agents/runs/project-settings/delivery/main-integration-20261014/worktrees-d857.log
-
agents/runs/project-settings/delivery/main-integration-20261014/public-deadline-nextest-73cd.log
-
agents/runs/project-settings/delivery/main-integration-20261014/ci-gates-73cd.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-check-ci-3e3c-job.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-desktop-ci-3e3c-job.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-web-ci-3e3c-job.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-gate-3e3c-final.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-contract-3e3c-direct-attempt.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-ci-3e3c-final.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-run-3e3c-final.json
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-contract-3e3c-annotations.json
  - agents/runs/project-settings/review/code-public-deadline-73cd.md
  - agents/runs/project-settings/review/fidelity-public-deadline-73cd.md
  - agents/runs/project-settings/review/security-public-deadline-73cd.md
  - agents/runs/project-settings/review/security-public-deadline-d857.md
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-tree-73cd-ad59.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-ad59.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-73cd-input-error.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-73cd-input-error.md
-
agents/runs/project-settings/delivery/main-integration-20261014/full-verify-73cd.json
-
agents/runs/project-settings/delivery/main-integration-20261014/73cd-mechanical-d261a422232258c3.log
-
agents/runs/project-settings/delivery/main-integration-20261014/73cd-mechanical-7f5577fdef5a0528.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-cd20.md
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ad59/preservation.json
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ad59/screens-tokens-targets-preservation.json
-
agents/runs/project-settings/delivery/main-integration-20261014/pen-ad59/generation.log
-
agents/runs/project-settings/delivery/main-integration-20261014/design-ad59.log
-
agents/runs/project-settings/delivery/main-integration-20261014/design-tests-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/ci-plan-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/policy-scripts-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/static-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cli-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/project-settings-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/browser-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/s2-overview-cd20.log
-
agents/runs/project-settings/delivery/main-integration-20261014/aside-usage-cd20-final.log
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-cd20-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-cd20-dark.png
  - agents/runs/project-settings/review/code-main-integration-cd20.md
- agents/runs/project-settings/review/fidelity-main-integration-cd20.md
- agents/runs/project-settings/review/security-main-integration-cd20.md
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-cd20-search-fail.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-cd20-search-fail.md
-
agents/runs/project-settings/delivery/main-integration-20261014/cd20-mechanical-c4f29f1a33de3341.log
-
agents/runs/project-settings/delivery/main-integration-20261014/cd20-mechanical-7eebfb78dd250de6.log
-
agents/runs/project-settings/delivery/main-integration-20261014/search-index-cd20-isolated.log
-
agents/runs/project-settings/delivery/main-integration-20261014/search-index-cd20-semantic-probe.log
-
agents/runs/project-settings/delivery/main-integration-20261014/search-index-cd20-predicate-probe.json
-
agents/runs/project-settings/delivery/main-integration-20261014/search-index-semantic-green.log
-
agents/runs/project-settings/delivery/main-integration-20261014/search-index-diagnosis-31431.md
  - agents/runs/project-settings/review/code-search-31431.md
  - agents/runs/project-settings/review/fidelity-search-31431.md
  - agents/runs/project-settings/review/security-search-31431.md
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-tree-31431-preverify.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-diagnostic-ownership.md
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-31431-refresh-fail.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-31431-refresh-fail.md
-
agents/runs/project-settings/delivery/main-integration-20261014/31431-refresh-mechanical-f872e92323dc1d73.log
-
agents/runs/project-settings/delivery/main-integration-20261014/31431-refresh-mechanical-c29bd1898afa7d6c.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-31431-isolated.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-31431-module-parallel.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-instrumented-library.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-instrumented-parallel28.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-startup-probe.py
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-startup-probe.jsonl
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-diagnostic-final.patch
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-diagnostic-observations.md
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-authorization.md
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-instrumented-workspace-s1.log
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-result.json
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-observations.md
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-canonical-before.sha256
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-canonical-after.sha256
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-refs-before.txt
-
agents/runs/project-settings/delivery/main-integration-20261014/kit-trust-full-context-refs-after.txt
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-ownership-contract.md
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-expanded-ownership.md
-
agents/runs/project-settings/delivery/main-integration-20261014/authorization-provenance-clarification-16584.md
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-exact.log
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-module.log
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-module-corrected.log
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-fixture-module-final.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-web.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-design.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-runtime-build.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-browser.log
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-integration-16584-record.json
-
agents/runs/project-settings/delivery/main-integration-20261014/usage-integration-16584-audit.md
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-policy.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-design-tests.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-16584-format.log
-
agents/runs/project-settings/delivery/main-integration-20261014/integration-format-final.log
-
agents/runs/project-settings/delivery/main-integration-20261014/main-60416-actual-ci.json
-
agents/runs/project-settings/delivery/main-integration-20261014/main-60416-actual-gate.json
-
agents/runs/project-settings/delivery/main-integration-20261014/main-60416-contract-annotation.json
-
agents/runs/project-settings/delivery/main-integration-20261014/final-source-6d9f-record.md
  - agents/runs/project-settings/review/code-usage-integration-16584.md
-
agents/runs/project-settings/review/fidelity-usage-integration-16584.md
-
agents/runs/project-settings/review/security-usage-integration-16584.md
  - agents/runs/project-settings/review/code-usage-final-6d9f.md
  - agents/runs/project-settings/review/fidelity-usage-final-6d9f.md
  - agents/runs/project-settings/review/security-usage-final-6d9f.md
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-diagnostic-ownership.md
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-diagnosis-and-correction.md
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-web-full.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-design.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-settled.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-interaction-current.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-supported-current.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-final2-check.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-complete.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-supported-final.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-linux-font-repro.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-menu-removal-probe.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-diagnostic-preserved.patch
-
agents/runs/project-settings/delivery/main-integration-20261014/linux-web4-6d9f-original.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-run-6d9f-final.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verify-jobs-6d9f-final.json
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-contract-ci-6d9f.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-check-ci-6d9f.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-desktop-ci-6d9f.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-web-ci-6d9f.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-final-main-merge-tree.log
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-1600-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-1600-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-720-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-720-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-900-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-browser/overview-header-900-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-1600-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-1600-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-720-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-720-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-900-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-fix-font-probe/overview-header-900-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-captures/actual-dark.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-captures/actual-light.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-captures/after-settings-immediate.png
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-aside-captures/after-settings-settled.png
  - agents/runs/project-settings/review/code-overview-header-4ca37.md
- agents/runs/project-settings/review/fidelity-overview-header-4ca37.md
- agents/runs/project-settings/review/security-overview-header-4ca37.md
-
agents/runs/project-settings/delivery/main-integration-20261014/overview-header-4ca37-main-merge-tree.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-4ca37-diagnosis.md
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-4ca37-isolated.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-4ca37-module.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-fixture-ownership.md
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-corrected-focused.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-unchanged-deadline.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-corrected-library.log
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-comparison-corrected-fmt.log
  - agents/runs/project-settings/review/code-memory-clock-f93b.md
  - agents/runs/project-settings/review/fidelity-memory-clock-f93b.md
  - agents/runs/project-settings/review/security-memory-clock-f93b.md
-
agents/runs/project-settings/delivery/main-integration-20261014/memory-clock-f93b-main-merge-tree.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-epoch-integration.md
-
agents/runs/project-settings/delivery/main-integration-20261014/rust-workspace-f93b-failed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/windows-os-f93b.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-epoch-focused.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-epoch-exact.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-ledger-module.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-settings-module.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-671-fmt.log
-
agents/runs/project-settings/delivery/main-integration-20261014/final-f93b-current-material.md
  - agents/runs/project-settings/review/code-final-material-f93b.md
  - agents/runs/project-settings/review/fidelity-final-material-f93b.md
  - agents/runs/project-settings/review/security-final-material-f93b.md
-
agents/runs/project-settings/delivery/main-integration-20261014/macos-desktop-f93b-failed.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-project-settings-before-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-project-settings-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-static-fix.log
-
agents/runs/project-settings/delivery/main-integration-20261014/web-static-5da1.log
-
agents/runs/project-settings/delivery/main-integration-20261014/design-contract-5da1.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-project-settings-5da1.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-0ba-desktop-spec.md
-
agents/runs/project-settings/delivery/main-integration-20261014/s1-5da1-fail.log
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-5da1-fail.json
-
agents/runs/project-settings/delivery/main-integration-20261014/verification-report-5da1-fail.md
-
agents/runs/project-settings/delivery/main-integration-20261014/node-session-activity-isolated-5da1.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-static-b16.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-project-settings-b16.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-clippy.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-core-focused.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-web-static.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-design.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-desktop-e2e.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-desktop-project-settings.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-46bd-web-e2e.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-46bd-merge.md
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-edae-clippy.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-edae-core-focused.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-edae-session.log
-
agents/runs/project-settings/delivery/main-integration-20261014/ci-3e8e-desktop-flaky.md
-
agents/runs/project-settings/delivery/main-integration-20261014/macos-desktop-3e8e-full.log
-
agents/runs/project-settings/delivery/main-integration-20261014/macos-desktop-3e8e-attempt2.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-browser-wait-3e8e-repeat.log
-
agents/runs/project-settings/delivery/main-integration-20261014/incoming-8d2f-merge.md
-
agents/runs/project-settings/delivery/main-integration-20261014/lint-8d2f-merge.log
-
agents/runs/project-settings/delivery/main-integration-20261014/web-static-8d2f.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-78ab-web-e2e.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-78ab-desktop-e2e.log
-
agents/runs/project-settings/delivery/main-integration-20261014/main-a827-desktop-macos.log
-
agents/runs/project-settings/delivery/main-integration-20261014/s1-78ab-fail.log
-
agents/runs/project-settings/delivery/main-integration-20261014/remote-spawn-isolated-78ab.log
-
agents/runs/project-settings/delivery/main-integration-20261014/s1-78ab-fail-2.log
-
agents/runs/project-settings/delivery/main-integration-20261014/desktop-static-6cd7.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-6cd7-desktop-e2e.log
-
agents/runs/project-settings/delivery/main-integration-20261014/merge-6cd7-browser-wait.log
- S1 aggregate: 46 suites, 4726 passed, 0 failed, 99 ignored; report
SHA256 3daedc7384ed1393672143781224c8721b5255decaccac386e5d76d4b15a9c35.
- Earlier attempts kept in the run: 78abb46 S1 FAIL twice (remote_spawn
timeout at load 24-40, isolated 5/5 PASS; connect_build codesign copies
at 897 MiB free disk), 6cd74de ERROR (main moved during the run, S1 and
S2 green) and FAIL (this PR's worktrees deadline test, fixed in
415391c), 415391c FAIL once (main's gh tests timed out at load 47) then
PASS at load 15-18.
- Changed paths: 110 (see Files changed)
- Delivery: mode pr, branch `gen-prd/project-settings`, base `main`

</details>
yansfil added a commit that referenced this pull request Oct 15, 2026
Related: #1149

## Summary

충돌을 풀려고 main을 합쳐 push하면, 바뀐 것이 문서뿐이어도 PR이 계획한 레인이 처음부터 다시 돕니다.
이제 그런 push는 이 PR의 마지막 초록 `verify`를 재사용하고 `policy`만 돌립니다. plan 요약에 재사용한
실행 ID가 남습니다.
재사용은 두 조건이 모두 참일 때만입니다.

- **A. PR이 더하는 것이 그대로**: 그 실행의 head를 지금 main에 합친 결과와 이번 merge가 `policy`만
읽는 경로(문서, `design/`, `POLICY_ONLY`)에서만 다릅니다. 코드, 테스트가 읽는 가이드, 계약이 다르면 다시
돕니다.
- **B. main이 PR 파일을 건드리지 않음**: 그 실행이 본 main 이후 main이 바꾼 파일 중, PR이 바꾼
파일이면서 레인이 읽는 것이 없습니다. #1133처럼 겹치면 다시 돕니다.
- **실패는 일반 plan**: 실행이나 기록이 없거나, 기록의 head가 다르거나, API·다운로드·fetch·비교가 실패하면
지금처럼 계획하고, 요약에 이유를 씁니다.

각 PR 실행은 레인이 실제로 확인한 main과 head를 `ci-plan` 아티팩트로 남깁니다. 재사용한 실행은 원래 실행을
가리켜, 비교는 항상 레인이 돈 실행과 합니다.
머지 직전 `premerge-check.py`는 지금처럼 merge 결과에서 돕니다.

## Review

- **판단해 주세요**: 재사용해도 `policy`(리눅스 잡 1개, 약 70초)는 돕니다. 스크립트 테스트와 불변식이 바뀐
문서를 읽기 때문입니다. brief의 "레인을 다시 돌리지 않고"보다 하나 더 돕니다.
- **판단해 주세요**: B는 브리프대로 파일 겹침만 봅니다. main이 PR이 고친 함수를 쓰는 새 파일을 더한 경우는 지금의
"뒤처진 초록 PR 머지" 정책과 같이 premerge-check와 main push 런에 맡깁니다.
- **조심해서 볼 파일**: `scripts/ci-plan.py` `plan` - 재사용 분기는 `NotReused`, git
실패, `OSError`, `ValueError`를 모두 일반 plan으로 돌립니다. 통과로 가는 길은 두 조건이 참일 때
하나뿐입니다.
- **조심해서 볼 파일**: `scripts/ci-plan.py` `still_stands` - 충돌이 난 merge-tree
결과는 충돌 표시가 남은 채 비교되어, 코드 충돌을 다르게 푼 push는 A에서 걸립니다.
- **조심해서 볼 파일**: `.github/workflows/pr.yml` plan 잡 - `actions: read` 권한,
`GH_TOKEN`, 기록 업로드(`continue-on-error`: 업로드 실패는 다음 실행이 일반 plan이 될 뿐).
- **비용 검토**: 재사용을 시도할 때만 commit과 tree를 받습니다(blob 없이, main 전체 이력 약 9 MB).
GitHub에서 받은 depth 2 체크아웃 기준 첫 판정 11.6초(로컬 망).

## Evidence

- **확인한 것**: `python3 -m unittest discover -s scripts/tests -p
'test_*.py'` 360개 통과.
- **확인한 것**: 실제 git 저장소로 만든 테스트 7개: 문서 충돌만 푼 재push는 재사용, main과 겹친
코드(#1133 모양), 코드로 푼 충돌, PR 코드 변경, 테스트가 읽는 가이드 변경은 재실행, 실행 없음·조회 실패·받을 수
없는 커밋은 일반 plan.
- **확인한 것**: 조건 B 제거, 조건 A 제거, READERS를 문서로 취급, 실패를 재사용으로, 다른 fork 실행
포함, 기록 head 미확인의 변조 6개가 각각 테스트를 실패시킵니다.
- **확인한 것**: 실제 이력 재생. PR 39개에서 초록 실행 뒤에 온 실행 52개를 판정했습니다. 재사용 3, PR이 레인
경로를 바꿔 재실행 45, main 겹침으로 재실행 4. 표는 아래.
- **확인한 것**: #1133(브리프의 반드시 재실행 사례)은 재실행입니다. 재병합에서 `persistence.rs` 충돌을
풀어 A가 걸리고, B만 따로 봐도 main과 겹친 레인 경로 6개로 걸립니다.
- **확인한 것**: GitHub에서 depth 2로 받은 #1143 merge 체크아웃에서 fetch, merge-tree,
판정이 끝까지 돌았습니다(재실행 판정, 같은 head 재판정은 재사용). 실제 API 조회는 초록 실행을 찾고 기록이 없어 일반
plan으로 갑니다.
- **확인하지 못한 것**: 머지 전 실행은 기록을 남기지 않았으므로 재사용은 이 PR 머지 뒤의 초록 실행부터 됩니다.
- **확인하지 못한 것**: 이 PR의 첫 실행은 `ci-plan.py`를 바꿔 전체 레인입니다. 문서만 다시 push해
재사용이 실제로 일어나는지는 이 PR에서 따로 확인합니다.

<details><summary>재생 결과 (재사용과 main 겹침 사례)</summary>

재생: 각 실행의 merge commit 첫 부모를 그 실행의 main으로 보고, head를 그 main에 합쳐 다시 만든
merge로 이 PR의 판정을 돌렸습니다.

| PR | 실행 | 그 전 초록 실행 이후 바뀐 것 | 판정 |
| --- | --- | --- | --- |
| #967 | 38137531799 | `docs/VERIFICATION.md` 한 줄 | 재사용 (원래 전체 레인) |
| #966 | 38173834278 | 베이스 브랜치 병합, 베이스가 바꾼 3개 파일은 PR과 안 겹침 | 재사용 |
| #1010 | 38274906653 | 같은 head, 같은 main에서 다시 돈 실행 | 재사용 |
| #1133 | 38689861115 | main 병합, `persistence.rs` 충돌을 코드로 해결 | 재실행 (A, B
모두) |
| #1114 | 38668610949 | main이 PR도 바꾼 `hided/tests/it/core_move.rs`를 바꿈 |
재실행 (B) |
| #991 | 38214789905 | main이 PR도 바꾼 `memory.rs` 등 4개를 바꿈 | 재실행 (B) |
| #969 | 38142050470 | main이 PR도 바꾼 `pr.yml`을 바꿈 | 재실행 (B) |
| #1143 | 38699835291 | main이 PR도 바꾼 `design/tokens.json` 등 10개를 바꿈 |
재실행 (B) |

나머지 44개는 PR이 레인이 읽는 경로를 바꿔 재실행입니다.

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