Skip to content

릴리스 초안의 자산과 정책 검증 강화 - #366

Merged
yansfil merged 4 commits into
mainfrom
docs/release-preparation
Oct 4, 2026
Merged

yansfil merged 4 commits into
mainfrom
docs/release-preparation

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: with-hide/hide-private#102

Summary

  • 세 플랫폼 아카이브와 SHA-256 sidecar 여섯 개가 완전하고 일치해야 릴리스 draft를 준비합니다.
  • owner-enforced immutable 정책과 태그의 검증된 커밋을 확인하고, 정확한 draft ID에 누락된 파일만 추가합니다.
  • 기존 파일은 수정·삭제하지 않고, 실패나 응답 유실 후 재시도는 확인한 동일 바이트를 재사용합니다.

Review

  • 판단해 주세요: 공개 전 정책·토큰 설정과 수동 태그·draft 변경 금지 계약을 릴리스 운영 절차로 채택할지 봐 주세요.
  • 조심해서 볼 파일: scripts/release-draft.mjs, .github/workflows/release.yml - API 실패·경합, 정확한 draft와 자산 일치.
  • 조심해서 볼 파일: scripts/check-release-assets.mjs - 파일·크기·이름·checksum 검증과 출력의 개인정보 경계.

Evidence

  • 확인한 것: 이전 head의 스크립트 43개·구조 검사 PASS를 보존합니다. 8개 소유 파일은 byte 동일하여 로컬 반복 실행은 하지 않았습니다.
  • 확인한 것: 새 main 대비 기존 소유 8파일만 변경됩니다. 8개 mode/blob과 전체 diff가 이전 검토 대상과 같습니다.
  • 확인한 것: 충돌 없는 새 main 병합·범위 검증으로 기존 SOURCE PASS를 유지합니다. 새 head의 필수 CI·design은 대기 중입니다.
  • 확인한 것: 이전 452428 Desktop은 42 PASS·5 기존 skip, 별도 focus 1 PASS입니다. 새 head의 Desktop 결과는 아직 없습니다.
  • 보존한 실패: 이전 CI의 label·Windows 필수 실패와 6d41 Desktop nonblocking focus 실패를 유지합니다. 원인 해결을 주장하지 않습니다.
  • 확인하지 못한 것: 실제 GitHub 업로드, 공개 릴리스·태그 생성, 세 OS 네이티브 실행·설치. 공개는 별도 승인 범위입니다.
  • 운영 미확인: 2026-10-03 22:57 UTC read-only 기록에서 immutable 정책·RELEASE_POLICY_TOKEN 전제가 충족되지 않았습니다. 이후 설정 상태와 공개 실행은 미검증입니다.
  • 확인하지 못한 것: 정책 확인과 쓰기는 원자적이지 않습니다. 준비·공개 중 수동 정책·draft·태그 변경을 금지해야 합니다.
  • 검토 범위: 정해진 CI 산출물 여섯 개를 처리하는 계약입니다. 임의의 로컬 입력에서 모든 경로·내용을 가린다는 보장이나 별도의 아카이브 크기 제한은 없습니다.

Breaking change

릴리스 준비에는 저장소 쓰기 토큰과 별도의 Administration-read 정책 토큰, owner-enforced immutable 설정이 필요합니다.
기존 provenance marker가 없는 draft는 자동 변경하지 않으며, 운영자가 새 릴리스 준비 절차를 검토해야 합니다.

Verification record
  • Current pushed candidate: c58abe4129392b616fc4b91d6ea53130353300c5; exact current main base: cab8625fa0cc9f35db3434e231cdf74728118319.
    Ordinary merge parents are 45242842667c19a95ba3eee74ae3704caaa2d44c and that exact main; all original commits remain ancestors, with no history rewrite.
  • Source freeze: exactly the original eight owned paths differ from main; all eight whole-file modes and blobs equal the reviewed 452428 candidate.
    Every other tracked path equals main, including main's newly merged hided/tests/real_herdr.rs; the refresh had no conflicts and added no source changes.
  • The complete source diff is byte-identical to the reviewed 452428 diff: 39,339 bytes, SHA-256 4417f19ef5252d152d82c6bcde54609a3454754b9d8751d74d82a2937cdc78cc.
    Cheap ancestry, exact scope, mode/blob equivalence, union and whitespace checks PASS; working tree and remote branch tip were verified clean/equal.
    GitHub merge ref 840fdbf39966aed50d5fa690b50d6fb0f073c320 has exact parents main/candidate and tree 340e450c62a1c0f464f07825a9a4129007e27f13, equal to the local candidate tree.
  • The previous 452428 changed-lane 43-test PASS and independent SOURCE PASS, Fix now None, carry by exact affected-source equivalence.
    Independent report remains 9,230 bytes, SHA-256 4ebee691f2db490733fb962f8e930c8575ed1cdeb844dabd13b226fb694d45a1.
    No new independent review or local 43-test run is claimed for this refresh; the matched original receipts and failure logs remain preserved.
  • Current required verify run 37172407549 is incomplete: Rust job 111349144261 and both OS-contract jobs succeeded; Windows, Desktop and web lanes remain running or queued.
    Current design run 37172407419 is SUCCESS, static-design job 111347885267.
    Current package run 37172407455 is SUCCESS, Windows job 111347885660 and Linux job 111347885747.
    Separate package success does not establish native installation, first launch, terminal input/output or stable-release asset readiness.
    Previous-head CI results below do not satisfy this new current-main gate.
  • No local test/build/server/native/release phase was started for this refresh; the completed push handle has ended and no owned local check process remains.
    Code/source readiness is separate from operational prerequisites, actual native checks and publication, all still unverified.

Previous 452428 candidate record, retained without replacing its original results:

  • Previously pushed candidate: 45242842667c19a95ba3eee74ae3704caaa2d44c; that main base: 31123442224037662d1b0f6f26e21730fbfa184e.
    Ordinary merge parents are 6d41f14321fb5f450fe40385f20e62c3482be906 and that exact main; no history rewrite.
  • Exactly eight owned paths differ from main; every other tracked blob equals main.
    Seven whole-file blobs equal the previous head; CONTRIBUTING retains both main's cost review and the existing Releases hunk.
  • Previous 452428 changed lane PASS: Python discovery 43 tests in 10.764 seconds; all ten unchanged lane commands passed in 16.701904 seconds on Node 24.12.0.
  • Syntax, whitespace, harness anchor, committed agent asset, off-lock readers, workstation identity, worktree removal and Herdr single-pin gates PASS.
  • Local log SHA-256: 09db477ed4431def84263d749748c3b4c344b1b2155e0e533c5248021125d887; result SHA-256: 0f8d7032cc4525dea4e67fe9532c3ff3e05b30ae6fc3659129ba67acd56d069d.
  • Supervisor PID 86647 and all owned command groups ended; zero survivors and zero forced cleanup. Source remained clean.
  • Previous 452428 source diff SHA-256: 4417f19ef5252d152d82c6bcde54609a3454754b9d8751d74d82a2937cdc78cc.
  • Independent exact-main union review: SOURCE PASS, Fix now None; the entire eight-path source and merge union were checked.
    Inline report SHA-256: 4ebee691f2db490733fb962f8e930c8575ed1cdeb844dabd13b226fb694d45a1; 9,230 UTF-8 bytes.
    This source review read matched local test receipts and did not independently rerun tests or establish 452428-head CI/native/operational readiness.
  • Previous 452428 required verify run 37170803665 is CANCELLED under the unchanged workflow concurrency policy, including four Linux shards (1, 2, 4, 5); no complete required PASS is claimed; design run 37170803448 is SUCCESS; package run 37170803453 is SUCCESS.
  • Previous 452428 Desktop job 111343194651 is SUCCESS: required Electron tests 42 PASS and five existing skips; the separate existing quarantined focus case is one PASS in 13.3 seconds.
    Raw log SHA-256: 2b91d67ddccadecca16f0b5ed9579fc8a915ce375021e3e31118f2ca4c4e90a9; 65,497 bytes.
    This result preserves the previous focus RED below and establishes no causal focus/runtime repair.
    Previous green runs below are historical and do not satisfy the current-head gate.
  • No local Rust/web/native/release execution was started for this refresh; operational publishing and its prerequisites remain unverified.

Previous 6d41 candidate record, retained without replacing its original results:

  • Prepared local candidate: 6d41f14321fb5f450fe40385f20e62c3482be906; main base: af15ad6026f2ebd4d694eb846588b3c4bafe9633.
    Ordinary merge retains the original remote head aa9a33a232b7d9425f61e816a224d6eb8732a529 and all original failure records.

  • This candidate was ordinarily pushed after its changed-lane local checks passed; the remote branch tip was verified byte-for-byte as the same Git SHA.

  • The diff against main contains the same owned eight paths; every blob outside those paths equals main.

  • git diff --check passes.

  • Independent full eight-file review of this exact local candidate: SOURCE PASS, Fix now: None.

  • Source report SHA-256: f7e587d0c602e6f5a7900f8f1f4433093f2a0d2bd1383e593f0bedfda96ce50c; 16,614 bytes.

  • Previous 6d41-head changed lane PASS: Python discovery 43 tests in 11.119 seconds, including ten archive cases and the eight-case Node HTTP writer suite.

  • Node syntax for both production scripts, whitespace, harness anchor, committed agent asset, off-lock readers, workstation identity, worktree removal and Herdr single-pin checks PASS.

  • Complete local lane wall time: 16.127032 seconds; Node 24.12.0.

  • Local log SHA-256: d097113bbd79144374a4df52405852d51fbf3215b87e14afddfe88cef31a9751; result SHA-256: 7c1727d0383d3cc6e644425c1694f35d5ab83d9f7e5faaf72ae1a96af7e21c01.

  • All owned process groups ended with zero survivors; no check/server/session handle remains.

  • Local Rust/web/native and direct Node 22 checks were not run on this head; operational readiness remains unproven.

  • Previous 6d41-head required verify run 37162663251 is SUCCESS.
    Rust, checks/unit suites, Windows, Desktop, six Linux web shards, macOS platform web and both OS-contract legs all succeeded; the two unchanged macOS reusable-workflow planning skips remain planned.
    The aggregate verify job is 111320557009; Windows job 111319146677; Desktop job 111319146694.

  • Previous 6d41 separate package run 37162663071 is SUCCESS for Linux job 111319146114 and Windows job 111319146220.
    Package completion does not prove three-OS native installation, first launch, terminal I/O or six actual stable-release assets.

  • Previous 6d41 Desktop job raw log also preserves one FAILED test in the existing nonblocking quarantined focus step (browser.spec.ts:886, expected focused=true, actual false).
    Its continue-on-error disposition leaves required verify green; this remains a runtime RED and is not a focus-repair claim.
    Previous 6d41 Desktop raw log SHA-256: d86d41a696e7a944ba828b7ec355d5e87c06d3ffadb2a06843269d522f87efab.

  • Earlier PASS and FAILURE records below remain scoped to their original heads.

  • Previous 6d41 required CI succeeded on that exact pushed head; CI/focus source ownership remains separate and no causal runtime repair is claimed.

  • Protected merge is owned by the coordinator, one current-main CI-green and independently clear PR at a time; 사이드 패널을 Agent Views, File Views, Tools 세 컬럼으로 나눈다 #321/Overview 요청 보기: 에이전트마다 시킨 일, 나온 것, 지금 할 일 #362 affects resource scheduling only.

  • The latest operator policy permits changed-lane checks followed immediately by ordinary push; protected merge still requires required CI success and independent review.

  • Previous 6d41 source diff SHA-256: dc308c004fa7e2a377390ffbffd0585626e0ec94930c7d07d0a710f22572197f.

  • Historical CI snapshot - original base: 7c974f350865978515ce39cf8b18d520d90c730a; original remote head: aa9a33a232b7d9425f61e816a224d6eb8732a529.

  • 변경 파일 8개: .github/workflows/release.yml, CONTRIBUTING.md, docs/BUILD.md, scripts/check-release-assets.mjs, scripts/release-draft.mjs, scripts/tests/test_release_assets.py, scripts/tests/release-draft.test.mjs, scripts/tests/test_release_draft.py.

  • 정확한 head의 독립 검토 PASS for bounded source contract, 즉시 수정 사항 없음.
    workflow·code·test 6개는 검토된 18b7d49009a85b2159890296b49485ce1ddfb943와 바이트가 같고, 두 문서는 부분 append 실패와 태그 경합 한계를 반영했습니다.

  • 로컬 기록: Python discovery 43개 PASS, 실제 synthetic ZIP/TAR CLI completeness 사례 10개와 실제 loopback HTTP writer 사례 8개 PASS.
    독립 재검증: Python asset·CI portability 13개와 Node HTTP 8개 PASS, Node syntax·YAML·whitespace PASS.
    로컬 Node는 24.12.0이며, native 실행·설치 또는 직접 Node 22 실행 증거는 아닙니다.

  • 실제 verify run 37148467614: 필수 verify FAILURE.
    Rust job 111277157582는 labels/generator.rs:213의 두 번째 worker 검사에서 false,false 대신 true,true 기대가 실패했습니다.
    Windows job 111277157319는 hided/tests/real_herdr.rs:388에서 typed=false, terminal control exit 1로 100.89초 후 실패했습니다.
    두 소스는 이 PR의 base와 바이트가 같으며, 실패 원인·flake 판정이나 재시도로 대체하지 않았습니다.

  • 별도 package run 37148467284의 Windows·Linux package job은 SUCCESS입니다.
    package 결과가 필수 verify 실패나 지원 OS의 네이티브 설치·첫 실행·terminal I/O 증거를 대신하지 않습니다.

  • 운영 전제 read-only 재확인: 2026-10-03T22:57:03.197570+00:00에 immutable-release policy는 enabled=false/enforced_by_owner=false이며 RELEASE_POLICY_TOKEN은 없습니다.
    이 설정·credential의 변경은 수행하지 않았으며, 실제 release writer는 전제 조건 없이 쓰기를 시작하지 않습니다.

증거 SHA-256
이전6d41 head의 독립 소스 검토 f7e587d0c602e6f5a7900f8f1f4433093f2a0d2bd1383e593f0bedfda96ce50c
이전aa9 head의 독립 검토 aad9ab4c2ee9bfb2292db44244cbd7cbabf99e9b5ae9325f3852415a63a06380
실제 Rust 실패 로그 6659c22b3b705d30f6813531d015e26104c3356513660d2595375d5500326693
실제 Windows 실패 로그 9d18248d91349208f31bf8fc36dafbd4705adb1a246239e43440d4891ad77462

실제 GitHub writer 업로드, 태그·release 공개, 세 OS 네이티브 설치·첫 실행·terminal I/O, signing·notarization은 실행하지 않았습니다.
정책 확인과 append는 원자적이지 않으며 준비·공개 중 수동 policy·draft·tag 변경 금지와 공개 직전 검증된 commit 재확인이 필요합니다.
origin marker는 편집 가능한 출처 정보이며 정책 이력의 암호학적 증명이 아닙니다.
로컬 HTTP·test child는 모두 종료됐고, 현재 이 검증의 실행 중인 로컬 handle은 없습니다.
증거는 로컬에 보존하고 커밋하지 않았으며, 소스 PASS와 operational publish pending을 구분합니다.

@yansfil

yansfil commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

c58abe41의 필수 verify PASS; 실제 릴리스 업로드·세 OS 네이티브 설치/첫 실행은 미실행이며 머지 조건에 추가하지 않습니다. 추가 push 없이 머지는 리드가 진행합니다.

@yansfil
yansfil merged commit 05a7530 into main Oct 4, 2026
23 checks passed
@yansfil
yansfil deleted the docs/release-preparation branch October 4, 2026 03:51
yansfil added a commit that referenced this pull request Oct 4, 2026
Related: #359; `agents/prd/hcoord-delivery-v2/prd.md`.

## Summary

- Add a bounded durable mailbox, local `request`/`inbox` commands,
guarded doorbells and prompt hooks that confirm only after output flush.
- Add explicit parent inactivity watches with separate 10-minute
delivery, 20-minute inactivity and first-warning +60-minute clocks.
- Add confined session activity reads, metadata-only helper dispatch and
fallback while preserving existing coordination and lineage.
- The local mailbox, hook and watch engine form the implemented merge
unit; helper lifetime ownership and executable dispatch coverage are
tracked in #379.

## Review

- **판단해 주세요**: confirmation ordering, draft protection, durable intent
deduplication and the distinct delivery/watch clocks.
- **조심해서 볼 파일**: `herdr-core/src/delivery/` - persistence, recipient
identity and bounded retries.
- **조심해서 볼 파일**: `herdr-core/src/runtime/delivery.rs` - caller authority
and memory-only runtime-lock work.
- **조심해서 볼 파일**: `hide-agent-hooks/` - output-before-confirm behavior
and the two-second submission boundary.
- **조심해서 볼 파일**: `hide-platform/` - inherited process ownership and
durability; Windows directory bootstrap currently reports Unsupported.
- **조심해서 볼 파일**: `hide-host/src/protocol.rs` - protocol 15 retains
#362's protocol 14 kit fields; helper lifetime ownership and executable
coverage are separate in #379.

## Evidence

- Merged main `05a7530a` (#362 and #366), resolved nine conflicting
files, and retained both delivery and request-view contracts.
- Current pushed head `18fc11c8`: affected-file formatting and
four-crate all-target Clippy passed; related tests passed 156/156 in
84.91 seconds total.
- Counts: platform process 32, session library 47, session adapters 15,
host library 32, core delivery 26 and existing launch policy 4.
- Merge integration failures were limited to duplicate process adapters
and two non-exhaustive test-fixture matches; only those failures were
corrected, and original logs were retained.
- Current-head required
[`verify`](https://github.com/modakbul-gongbang/hide/actions/runs/37175986409)
is queued; the preceding head's green result is not verification of this
merge.
- Helper lifetime ownership, real SessionActivity executable coverage
and compatibility regressions are tracked in #379, with no follow-up
implementation added here.
- Windows directory durability, native delivery/watch clocks, matched
latency, provider/mini operation and full contract revalidation remain
unconfirmed follow-ups.
- Per the current operator policy, the sole merge condition is the
required `verify` check succeeding; these follow-ups do not add merge
gates.

## Breaking change

- Helper protocol 15 requires compatible helper replacement; the
preceding protocol 14 APIs from #362 are preserved in this merge.
- No installed app/helper replacement, live coordination retirement or
operator hook change was performed.
yansfil added a commit that referenced this pull request Oct 4, 2026
## Summary

Every PR ran Rust, the unit suites on three OSes and the full E2E, even
a docs-only PR.
The median time for the required checks to finish was 32.45 min (Orca
16.22, Paseo 20.65).
Now a `plan` job reads the changed paths (`HEAD^1..HEAD` of the PR merge
commit) and plans only the lanes the change needs.
The same plan sets each job's `if:` and is what `verify` checks the
results against.

- `verify` passes only when every **planned** lane is `success` and
every **unplanned** lane is `skipped`. A planned lane that was skipped,
failed or cancelled fails `verify`, and so does a `needs` entry the plan
doesn't know or a failed plan.
- The Windows browser `@platform` smoke moves out of `windows check`
into its own `windows e2e` lane, which calls `web-e2e.yml` the same way
nightly does. Compile, unit tests and the OS contract stay in `windows
check`.
- `checks` is split into `policy` (on every plan), `web checks`,
`desktop checks` and `hcoord`.
- A main push, a comparison that fails (base missing, not a merge
commit, diff parse failure, `cargo metadata` failure) and any
unclassified path all run **every** lane.
- Main pushes no longer cancel each other (`cancel-in-progress` is now
PR-only). `design-contract.yml` also cancels only the same PR's previous
run.
- The rules live in one place, `scripts/ci-plan.py`; the table in
`docs/TESTING.md`, "Which lanes a pull request runs", explains them.

## Review

- **판단해 주세요**: whether it is acceptable that **main's full run is the
safety net** for a lane wrongly left out. A wrongly skipped lane
surfaces as a failure on main after the merge, not on the PR.
- **판단해 주세요**: whether to keep the Windows smoke now skipping `@flaky`
tests, as macOS already did. No `@platform` test is tagged `@flaky`
today, so the behavior is the same for now.
- **판단해 주세요**: web code shared with the desktop host (`SHARED_WEB`) also
runs the desktop lanes and the macOS/Windows `@platform` lanes. That is
broader than the brief's "desktop 연결까지"; I chose it because terminal,
input and shortcut changes are Windows-impacting.
- **조심해서 볼 파일**: `scripts/ci-plan.py` `READERS` and `SHARED_WEB`. These
two hand-kept lists are where a lane can be dropped wrongly (the failure
path). Review found five omissions from tests reading files across
folders and they are fixed (below).
- **조심해서 볼 파일**: the `verify` job in `.github/workflows/pr.yml` and
`aggregate()`. This is the merge gate itself.
- **질문**: `site/`, `tools/`, `spikes/`, `.github/*.md` and `agents/prd`
currently fall under "unknown path → everything". Should a follow-up
narrow them?

## Evidence

**Plan replay over the last 20 merged PRs.** Each row runs the
classifier on the merge commit's `^1..` diff:

| PR | 경로 수 | 계획 | 생략되는 lane | Rust crate |
| --- | ---: | --- | --- | --- |
| #389 | 7 | 전체 (`scripts/web-shell-measure/run.sh`) | - | 전체 |
| #388 | 6 | 부분 | desktop-checks, hcoord, os-contract, windows-check,
windows-e2e, macOS-e2e, desktop-e2e | herdr-core |
| #385 | 125 | 전체 (`.github/pull_request_template.md`) | - | 전체 |
| #387 | 70 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #386 | 61 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #368 | 2 | 전체 (`.github/workflows/pr.yml`) | - | 전체 |
| #372 | 23 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #382 | 3 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-host, hided |
| #383 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #384 | 8 | 부분 | web-checks, desktop-checks, hcoord, os-contract,
windows-check, windows-e2e, web-e2e, macOS-e2e, desktop-e2e | herdr-core
|
| #380 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hided
|
| #381 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #378 | 58 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #377 | 11 | 부분 | hcoord | herdr-core, hided |
| #361 | 91 | 전체 (`agents/prd/three-column-panel/prd.md`) | - | 전체 |
| #376 | 7 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-ai, hide-herdr-client, hide-host, hide-kit,
hide-memory, hide-platform, hide-session, hided |
| #367 | 27 | 부분 | hcoord | herdr-core, hide-host, hided |
| #375 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-host, hide-kit, hide-memory, hided |
| #366 | 8 | 전체 (`.github/workflows/release.yml`) | - | 전체 |
| #362 | 153 | 전체 (`agents/prd/overview-request-view/prd.md`) | - | 전체 |

- **줄어드는 lane**:
- 11 of 20 PRs would run a partial plan; 9 run everything because they
touch `.github/`, `contracts/`, `scripts/` or `agents/`.
- A docs-only PR (#384) runs no E2E, Windows or macOS lane. It still
runs `rust -p herdr-core`, because a herdr-core test reads the root
`AGENTS.md`.
- A web display change (#388) runs no Windows, macOS, desktop or
OS-contract lane.
- A Rust crate change tests only that crate and its reverse
dependencies, from `cargo metadata`. For example #380 tests `herdr-core`
and `hided` only.
- **확인한 것**:
  - `scripts/tests/test_ci_plan.py` passes 19 cases. They cover:
    - Docs-only, which excludes Rust and E2E.
    - A pure web display change, which excludes the Windows smoke.
    - `hide-platform`, which includes Windows and the OS contract.
- Shared web, a `@platform` spec, `desktop/src/main` and leaf-crate
reverse dependencies.
    - Every `READERS` entry.
- Unknown paths, lockfiles and workflows, a type change, an empty diff,
a missing base, a non-merge HEAD and a missing crate graph, which all
run everything.
- The aggregate rejecting a skipped, failed or cancelled planned lane,
an unplanned lane that ran, a missing or extra `needs` entry, a failed
plan and an empty plan.
- The full `python3 -m unittest discover -s scripts/tests` suite passes
(108). That includes the check that every gate a workflow runs is a
tracked script.
- actionlint passes on every workflow. `check-herdr-pin-single-source`,
`check-hide-design-enforcement`, `check-no-workstation-identity`,
`check-harness-ignore-anchor` and `verify-cargo.sh fmt-check` all pass.
- Running `plan` on #388 produced the expected `GITHUB_OUTPUT` (`lanes`,
`full`, `rust-packages`) and the job-summary table.
- Running `aggregate` with a fake `needs` passed when the results
matched the plan and failed when a planned lane was skipped.
- **리뷰 반영**: a code review and a fidelity review against the brief found
these, now fixed:
- Tests read files across folders, so these changes now plan the lanes
that read them: the root `AGENTS.md` (herdr-core test), `web/src` and
`hided/src` (herdr-core structure tests), `wirePath.ts` (imported by web
e2e) and `design/tokens.json` (read by web tests).
  - Every crate change now runs `windows check`.
  - Main pushes no longer cancel each other.
  - `docs/PERFORMANCE_TESTING.md` no longer describes the old lanes.
- **CI ([run
37214808511](https://github.com/modakbul-gongbang/hide/actions/runs/37214808511))**:
- The plan was full (the change touches `.github/` and `scripts/`), and
every lane ran, including the separate `windows e2e`. All passed.
- The first attempt failed in Linux web e2e shard 2/6 on
`home.spec.ts:82` (the location bar read `Home/hde-…` instead of
`Home/~/hide`). This PR touches no web or test code. `verify` reported
exactly `web-e2e: planned, expected success, got failure`.
  - One rerun of the failed jobs passed, and `verify` is green.
- The `home.spec` failure is a flaky-test candidate; it belongs to the
main-green work, not this PR.
- **확인하지 못한 것**:
- Partial plans have never run on Actions. A docs-only or web-only PR
has not been tried; the first one after the merge will show it.
- The cold-cache time of the `windows e2e` lane is unmeasured. It uses
the same path as the nightly Windows lane.
- Main runs now queue instead of cancelling, but GitHub keeps only one
pending run per group. If three merges land in a row, the middle merge's
full run can be dropped.
- **안전망과 위험**: a lane that should have run but was skipped is the risk.
Main's full run catches it after the merge; the fix is then a rule in
`scripts/ci-plan.py` plus a test case.

Does not include: a failure ledger or history, a quarantine registry,
cache changes, a `max-parallel` experiment, or the `package.yml` `paths`
trigger (all out of scope).
If this and the main-green PR overlap in `pr.yml`, whichever merges
later rebases.
yansfil added a commit that referenced this pull request Oct 5, 2026
…ult (#490)

Related: the unclassified-paths table (reviewer decision), #486
(separate branch; both touch `ci-plan.py`'s neighbours, the second to
merge resolves a small conflict in `test_ci_plan.py` and `TESTING.md`)

## Summary

`ci-plan.py` sent every path no rule claimed to every lane, so 42 of the
last 80 merged pull requests (52%) ran all ten.
This names the paths whose readers are known and leaves every other path
on "every lane": `POLICY_ONLY` (no lane reads it: `agents/`, `site/`,
`tools/`, `spikes/`, `.gitignore` files, PR template, workflows `pr.yml`
does not call, `scripts/tests/`, the policy, design, release and
measurement scripts, Markdown below an unclaimed folder) plans `policy`
alone, and `NAMED_LANES` (fixtures, Playwright, eslint and vitest
configs, `web/scripts`, `desktop/scripts`) plans the lanes that read it.
A path that is not named, including any new one, still plans every lane.

## Review

- **판단해 주세요**: `web/e2e` files that are not specs plan `web-checks`,
`web-e2e`, `web-e2e-platform`, `windows-e2e`, `desktop-checks`,
`desktop-e2e`, `windows-check` (desktop suites import them,
`desktop/e2e` unit tests run in `windows-check`); they drop `rust` and
`os-contract` only.
- **판단해 주세요**: `scripts/ci-plan.py` stays on every lane although the
table listed it as `policy`: it decides the plan for every later pull
request, and `policy` runs its tests but not what a wrong rule would
skip.
- **판단해 주세요**: lockfiles, `package.json`, `Cargo.lock`, `contracts/`,
`verify-*.sh`, `ci-flaky-report.py` and the three workflows lanes use
stay full (the table's class where full is right).
- **조심해서 볼 파일**: `scripts/ci-plan.py` (`POLICY_ONLY`, `NAMED_LANES`,
`named_lanes`) and `scripts/tests/test_ci_plan.py` (`NamedPaths`,
including a check that no `POLICY_ONLY` script is named by a lane's
workflow job or the scripts those jobs run).

## Evidence

- **확인한 것**: `scripts/tests` suite passes (27 plan tests; a case per
named path, one that every unnamed and shared path is still full, one
that a named path does not narrow a plan with another reason, and the
reader check).
- **확인한 것**: the changed plan run on the file lists of the last 80
merged pull requests (#355-#483) against main's plan:

| | before | after |
| --- | --- | --- |
| pull requests planning every lane | 42 | 19 |
| pull requests whose plan changed | | 20 |
| lane runs (sum over the 80) | 683 | 585 (-14%) |

| lane | PRs running it before -> after |
| --- | --- |
| policy | 80 -> 80 |
| rust | 76 -> 59 |
| web-checks | 63 -> 51 |
| desktop-checks | 47 -> 39 |
| os-contract | 65 -> 48 |
| windows-check | 65 -> 58 |
| windows-e2e | 71 -> 61 |
| web-e2e | 78 -> 68 |
| web-e2e-platform | 71 -> 61 |
| desktop-e2e | 67 -> 60 |

No pull request gained a lane.

- **확인한 것**: lanes that caught a failure keep it. Of the 300 most recent
`pr.yml` pull-request runs, 73 failed; 72 had a failing lane (the other
failed in `verify` only).
Each run's failing lane was checked against the new plan for that pull
request's file list (the run's own diff where the pull request is still
open, the final file list for merged ones, so earlier pushes can
differ).
The lane stays planned in 68 of 72. The four that would not run it, and
why they are not catches:
- #466 (2 runs): `windows-e2e` failed on `s2.spec.ts:55` and `less`, a
main failure (#475, #424) that the pull request, which touched four
`desktop/e2e` files, did not cause. The new plan runs `desktop-checks`,
`desktop-e2e`, `windows-check`.
- #366: `rust` and `windows-check` failed in `hided` and disk tests
before nextest retries (#463) on a pull request that changed release
scripts and docs only.
- #369: README and SECURITY only; `windows-check` failed before path
selection existed, and the current plan does not run it for those files
either.
The failures that were this pull request's own (#474 desktop-e2e, #436
windows-e2e, #439 web-e2e-platform, #385, #364) keep their lane.
- **확인하지 못한 것**: the narrowing is judged on file lists, not by
re-running CI; a pull request that changes a named file in a way that
needs a lane left out is caught by main's full run, as before.

<details><summary>CI 크기 (D3)</summary>

`ci-plan.py` +77 lines (two tables and `named_lanes`), `test_ci_plan.py`
+97, `TESTING.md` +5; no workflow changed.

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