Skip to content

docs: disclose authentication and add bounded session timing diagnostics - #369

Merged
yansfil merged 6 commits into
mainfrom
docs/data-disclosures
Oct 3, 2026
Merged

yansfil merged 6 commits into
mainfrom
docs/data-disclosures

Conversation

@yansfil

@yansfil yansfil commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Related: #341

Summary

  • README·SECURITY에 기존 CLI 인증 파일 읽기, 로컬 인증 자료와 백그라운드 콘텐츠 전송 범위를 설명합니다.
  • Node 최소 버전·로컬 빌드 버전과 공개 다운로드·패키징 대상을 구분합니다.
  • Windows timeout을 조사하도록 기존 session 시간 테스트에 8개 수치 sample과 1개 진단 record를 추가합니다.

Review

  • 판단해 주세요: 설치 전 인증·콘텐츠 전송 안내와 진단 sample의 범위·측정 한계를 검토해 주세요.
  • 조심해서 볼 파일: README.md, SECURITY.md - 인증 자료 소유·전송 범위와 공개·로컬 빌드 구분.
  • 조심해서 볼 파일: web/src/sessions.test.ts - 기존 3개 assertion·5초 한도와 제한된 진단 출력 보존.

Evidence

  • 확인한 것: 인증·저장·provider 입력 source 대조와 문서 독립 검토, 최종 진단 callback 독립 검토를 통과했습니다.
  • 확인한 것: 최종 source syntax·whitespace와 정확한 3파일 범위, callback 밖 source 불변을 확인했습니다.
  • 실패한 것: 이전 head의 필수 verify는 Windows session 테스트의 5000ms timeout으로 FAIL입니다.
  • 확인한 것: 현재 head의 canonical WEB gate는 PASS이며, 종료·소유 프로세스 정리까지 확인했습니다.
  • 확인한 것: 현재 head의 자동 Windows job 한 번과 필수 verify는 SUCCESS입니다.
  • 확인하지 못한 것: 기존 timeout의 원인·진단 overhead·인과적 수정은 검증하지 않았습니다.
  • 확인하지 못한 것: timeout 원인은 미확정입니다. 진단 추가는 수정·성능 개선·Windows 성공의 증거가 아닙니다.
  • 확인하지 못한 것: 제품 설치·provider 통신·네이티브 동작·성능, 개인정보 전체 정리와 agents/ 전환은 미검증입니다.
Verification record

현재 검토 source는 23a6b0b2b6b8fa60a9f3143cbefb24889a0db0bc이며 protected-main base는 7a52cd48d91d9fb6201f781dcfb1a757fe29c0a3입니다.
기존 문서 branch에 main을 일반 merge commit 786b51532e0b5d0e4006bf3d02a096f9b4546785으로 반영했습니다.
전체 차이는 README.md, SECURITY.md, web/src/sessions.test.ts의 3파일입니다.
테스트 파일은 기존 gives no time a session did not carry callback만 바뀌었으며 나머지 바이트는 base와 같습니다.
문서 내용은 기존 검토 완료 head b8db66f7cccae48d54fccc4c0cb35ac78ec051c3와 같습니다.

진단은 callback entry·exit와 기존 3개 assertion 전·후에 고정된 8개 sample을 기록합니다.
각 sample은 performance.now(), Date.now(), process.cpuUsage()의 수치이며 고정 correlation·subject ID와 한 번의 structured record로 출력합니다.
입력·결과·경로·개인 콘텐츠·credential·error 문자열을 출력하지 않습니다.
기존 assertion의 호출·인자·순서와 기본 5000ms 한도를 그대로 유지합니다.
production sessions.ts, Vite 설정, lockfile과 CI workflow는 base와 같습니다.
retry·skip·quarantine·timeout 변경, Date 대체, Intl warmup·cache는 추가하지 않았습니다.

독립 초기 검토는 entry array indexing이 기존 strict 설정에서 undefined가 될 수 있어 BLOCK했습니다.
최종 commit은 entry object를 직접 보관하는 2줄 수정으로 해결했고 정확한 최종 head의 독립 source 재검토는 PASS입니다.
이 source PASS는 compiler·test·runtime·CI PASS를 대신하지 않습니다.
수집·출력 오류가 assertion 오류를 가릴 수 있고 entry 수집은 try 밖이므로 반드시 record가 남는다는 보장은 없습니다.
worker 종료 시 finally도 실행되지 않을 수 있습니다.
세 clock은 순차 측정되며 matcher·probe overhead를 포함합니다.
entry 이전 import·setup·scheduling과 exit 이후 JSON·logging 시간은 포함하지 않습니다.
probe overhead와 timeout의 원인·개선은 측정하지 않았습니다.

현재 local canonical bash scripts/verify-web.sh는 최종 head에서 EXIT 0으로 완료했습니다.
frozen-lock offline install은 437개 패키지를 재사용하고 다운로드는 0건이었습니다.
기존 machine Node 24.12.0·pnpm 10.14.0, private HOME·HCOORD·XDG와 worktree 소유 출력으로 실행했습니다.
hcoord typecheck·build, 52 unit·36 e2e가 PASS입니다.
web typecheck·lint·build와 90 files·864 tests가 PASS입니다.
desktop typecheck·lint·build와 13 files·99 tests가 PASS이며 기존 skip 3개는 유지했습니다.
Vite chunk-size 경고도 그대로 남겼습니다.
해당 local suite에서 고정된 8개 stage를 가진 진단 record 한 개가 출력되었습니다.
이것은 Windows 원인·수정이나 제품 latency의 증거가 아닙니다.
첫 launcher 사전 검사 호출에서는 실행 결과를 보존하지 못했고 canonical phase manifest·PID도 생성되지 않았습니다.
후속 확인에서 PATH의 Node가 26.5.0이었으므로 이미 설치된 승인 Node 24.12.0을 명시적으로 선택했습니다.
새 설치·버전 변경 없이 최초 canonical gate 한 번만 실행했으며 preflight 미완료 기록은 별도로 보존했습니다.

실제 canonical phase는 2026-10-03 22:09:34 UTC에 시작해 22:11:45.165753 UTC에 끝났으며 130.7362초가 걸렸습니다.
supervisor PID 18005·job 91223과 phase PID/PGID 18308은 EXIT 0으로 종료했습니다.
guard PID 18309와 해당 group의 부재를 실제 process table로 확인했고, 추적한 401개 kernel identity의 생존자는 0개였습니다.
peak descendants 24, RSS 1,796,128,768 bytes, log 21,432 bytes, minimum disk available 8,316,682,240 bytes였습니다.
승인된 한도는 20분·RSS 8GiB·descendants 64·log 64MiB·disk floor 3GiB였고 SLOT2를 해제했습니다.
추가 local heavy·native·browser·package·provider phase는 실행하지 않았습니다.
현재 head의 정상 push가 만든 verify run 37157762152은 SUCCESS로 완료했습니다.
필수 verify job 111306028370도 SUCCESS입니다.
허용된 Windows check job 111304646966 한 번을 관찰했으며 SUCCESS입니다.
Windows는 Node 22.23.3·runner image windows-2025-vs2026 20260925.250.1에서 실행됐습니다.
실제 checkout은 PR head를 main base에 합친 91a012d2022f9f48a8224f43fefbc9379c84c51b입니다.
Windows web은 90 files·864 tests PASS이고 sessions.test.ts의 11개 test file은 29ms였습니다.
Windows desktop은 13 files·99 tests PASS, 기존 skip 3개 유지입니다.
고정 stage 8개를 가진 진단 record 한 개를 실제 Windows 로그에서 확인했습니다.
callback entry→exit는 monotonic 20.3063ms·wall 20ms, process CPU user 15,000µs·system 0µs였습니다.
positive call·matcher·probe를 함께 포함한 before→after 구간은 monotonic 20.1003ms였습니다.
이 수치는 한 번의 instrumented 실행에 관한 것으로, 기존 timeout의 원인·수정이나 제품 성능 개선을 증명하지 않습니다.
원격 Rust·unit/checks·Linux 6 shards·macOS web·desktop E2E·OS contracts도 SUCCESS입니다.
중복 macOS fetch/build 2 jobs는 기존 실행 계획에 따라 SKIPPED였습니다.
Design contract run 37157761960도 SUCCESS입니다.
수동 rerun, 추가 sample 실행, workflow·timeout·skip 변경 없이 정상 push가 만든 결과만 기록했습니다.
현재 required CI 성공은 native 설치·provider 통신·최종 개인정보 정리·성능 비교·publication의 증거가 아닙니다.

이전 head b8db66f7cccae48d54fccc4c0cb35ac78ec051c3의 실제 verify run 37151491585은 완료되었고 필수 verify job 111287849199은 FAILURE입니다.
Windows job 111286142094의 웹 단위 테스트 src/sessions.test.ts:69에서 기존 gives no time a session did not carry가 5000ms timeout으로 실패했습니다.
해당 case는 7125ms, suite는 863 PASS/1 FAIL 및 89 test files PASS/1 FAIL이었습니다.
그 실행의 test·production source는 당시 base와 byte-equal이었고 현재 진단은 그 실패를 없애거나 원인으로 단정하지 않습니다.
당시 Rust workspace, checks/unit suites, Linux 6 shards, macOS web, desktop E2E와 양쪽 OS contract는 SUCCESS였습니다.
중복 macOS fetch/build 2 jobs는 실행 계획에 따라 SKIPPED였습니다.
Design contract run 37151491307의 static-design도 SUCCESS였습니다.
이전 결과를 현재 head의 결과로 재사용하지 않습니다.

보존한 증거 SHA-256
문서 독립 전체 검토 86230948ebf85700d9f24f98fd798997958143802cad5395543b9f0b38ad7e83
문서 최종 독립 검토 93b100f86992295962187c9c50ad18f515da926148a578ea015407ba2c1c328a
진단 최종 독립 source 검토 1e933fda2d9ce1fc581b340750ea00f18ae0f6e3b4c52105e6f290615f673c0d
최종 테스트 source 885decaf5b90a8dc881f259d353668140f51e1a28c0184b48b91feb8ec4eff09
전체 diagnostic diff 37de02cd6e9e6687b904a024cb5b2a607928453cad17e95ec9536f2e8b91309d
현재 canonical WEB 실행 로그 cf8ae70ea2de61c71c5e66a42df3d67f38305a902d4e7ff6721d1fb1a23e3a18
현재 canonical WEB 결과 db660b05e55dbf9ce5afd95ac0492991f86cf5415a5d4fdd0db43133ffda5b88
현재 Windows 실행 로그 250d09416dfc26040b3361bbcd1770228e7ae8ab72df723da73201169eb905a3
기존 Windows 실패 작업 로그 ccf029a432daaa2a99a79bb36fed9d65253711a1084959b24b1b62a5e13a557a

증거는 로컬에 보존하고 커밋하지 않았습니다.
전체 개인정보 부재, #341 완료, 공개 release 가용성, native 설치·성능과 publication은 이 검토로 증명되지 않습니다.
merge와 issue 종료는 coordinator의 후속 단계입니다.

@yansfil yansfil changed the title 인증·콘텐츠 전송 경계와 로컬 빌드 안내 정리 docs: disclose authentication and add bounded session timing diagnostics Oct 3, 2026
@yansfil
yansfil merged commit af15ad6 into main Oct 3, 2026
21 checks passed
@yansfil
yansfil deleted the docs/data-disclosures branch October 3, 2026 22:31
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