Repository navigation
docs(scripts): put back the notes the comment pass dropped (#4051) - #4085
Conversation
Restores, word for word, the comments #4051 deleted that the owner's rule keeps: security notes (test isolation from the user's herdr and core, pairing codes, held and observe-only input, clipboard and permission consent, sign-in and account boundaries, CSP, workflow secrets and archive refusals), platform facts (browsers, Chromium and Playwright, xterm and libghostty, herdr, git, Vite, Pages, Apple and the agents' skill menus), measured values, and traps that name a concrete breakage. Altered comments get their original wording back. Only comments change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
…y 2,000 digests (#4097) ## What `src/lib/relay/shell.test.tsx` waits for signed pairing steps with `untilSigned`, which gave up after 2,000 SHA-256 digests. Digests are not time: on a loaded runner the WebCrypto work behind a signed pairing can take longer than those turns. The Fast checks of #4085 failed that way on `herdr-ci-ovis-parts-2` ("gave up waiting for …" at lines 571 and 778); #4085 does not touch `src/lib/relay/`. Same fix as #4078 for `shellEnrollment.test.tsx`: the wait now also lasts at least 3 s of real time (`process.hrtime`, which fake timers do not move), so it never gives up sooner than before and stays under Bun's 5 s test timeout. Test-only: no app code changes. ## Validation - `bun run check fast`: passed (18,593 unit tests, typecheck, build, generated themes and types). - `bun test src/lib/relay/shell.test.tsx`: 35 pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
What
#4051 (
scripts/, part 5 of 5) was part of the repo-wide comment pass and merged before the owner's rule for comment-removal PRs: security notes, platform facts, measured values, third-party attribution, Rust SAFETY notes and traps that name a concrete breakage stay. This PR puts back what it dropped of those, word for word where the code is unchanged, on today'smain.How the notes were picked: a Codex adversarial review (gpt-6.2-sol, reasoning high) of the merged commit against its parent listed every deleted comment it took for a kept kind; each finding was checked against the code before the pass and today's file, and put back only when it is one of those kinds. A trap came back only when it names what the obvious change would break. Notes whose code has since moved sit on that code now; notes whose code is gone, or that are no longer true, stay out.
Comments only: no code changes. The refactor-merge kit's
proof.shchecks that every file is identical once comments are removed; lint directives (which it counts as code) stay out.Details
Lines restored per kind (approximate; a mixed block is counted under its main kind)
Mixed blocks were trimmed to the kept sentences, which were reflowed where a sentence began mid-line (the loopback/fixture-isolation sentences, sheets-settled, source-scan, sidebar-filter
pressClear, touch-burst's contract and boundaries, theme-first-paint's header, thecheckStatuslineSwitchandcheckUpdateNoticedocs). The settings-rows account-PC note sat in a misplaced stack of docs at P; it now sits onaccountPcList, and shell-build'sindex.html as the shelldoc onshellIndexHtml.Declined, rejected, skipped
loneHostWatching), sidebar-heads header ("never a live herdr session", the fixture-only note at line 23 restored).Security notes put back (file, a few words)
ssh -G; an old test server with the user's agents on PATH is restarted. test-hc: no inherited HC_/HOME/XDG_; stops only its own core. test-hc.test: no real core started or stopped. ui-regression / update-browser-qa: "a herdr session of its own"_headerscarries the PC server's policy; account service only over https, none when off;/build.jsonCORS as Pages answers it; the shell's and render host's policies and caching. shell-build.test: anything butscripts: trueruns no scripts||does not hold alone; workflow files GitHub loads under other spellings or symlinks; expression interpolation and env/PATH handoff; background processes past their step; where the Cloudflare secrets reach; install scripts with a cache save; what the unpack step must refuse, each with its right SHA-256script-src 'self'Validation
bun run check fast: passed (18,593 unit tests, typecheck, build, generated themes and types).proof.sh(comments only),ready.sh(required checks, threads, CodeRabbit, main) before the merge.🤖 Generated with Claude Code