Repository navigation
Fix the v0.48.0 second review's findings: outdated call site, Rosetta install, fork-guard scan - #397
Conversation
The v0.48.0 second review found two gaps. - Putting `varve outdated` back to its old sentence left every test green: `nothing_newer` was unit-tested, but nothing tested that `outdated()` calls it. outdated_never_calls_a_pin_the_newest_layer_when_the_served_index_does_not_list_it serves a signed index with no entries and checks the CLI output, with the listed case as its control. It passes on main and went red with the call site reverted. - install.sh refuses a shell under Rosetta 2 on Apple silicon as an Intel Mac, because `uname -m` reports x86_64 there. a_shell_under_rosetta_on_apple_silicon_gets_the_arm64_build fails until install.sh asks `sysctl.proc_translated`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEjmjcUidFmgQyRtHcse3e
… silicon Under Rosetta 2, `uname -m` reports x86_64, so install.sh told an Apple silicon user that Intel macOS is no longer published. On Darwin/x86_64 it now asks `sysctl -n sysctl.proc_translated`. If the answer is 1, it selects aarch64-apple-darwin, which that machine runs natively. A native x86_64 process, the Intel Mac, is still refused by name. concept-install.md says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEjmjcUidFmgQyRtHcse3e
The v0.48.0 second review showed the line scan missed a block-list `runs-on:` (planted in gate-probe.yml, everything stayed green), a runner supplied by the job matrix, a `group`/`labels` map, and the `on: pull_request` and `on: [push, pull_request]` triggers. no_pull_request_job_reaches_the_pool_without_the_fork_guard now parses each workflow with yaml-rust2, already a dev-dependency for the PR-gate scan. A job reaches the pool when its runs-on names self-hosted in any spelling, or names `matrix.` while its matrix names self-hosted. It counts as guarded only when runs-on is one expression string carrying the head-repository guard. the_fork_guard_scan_flags_every_spelling_of_the_pool holds 5 flagged spellings and 3 accepted cases. The reviewer's block-list control turns the real scan red. The guard sits in a file a fork PR can edit. The boundary against a hostile fork is the org's runner policy (pulseengine/warte#35); this scan only stops our own edits from dropping the guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEjmjcUidFmgQyRtHcse3e
|
Second-review findings not fixed here: #398 (no-key-on-disk denylist, five shapes), #399 (outdated pin_listed by id; unparseable entry), #400 (ETXTBSY flake), #401 (Intel macOS leftovers: self-update message, legacy deposit platforms, docs example), and the run --with pre-create ordering, added to #380. |
|
Tests-only head dee5b0c went red as predicted: in run 45504435135 (ubuntu test job), only |
|
Required check |
Fixes the findings of the v0.48.0 second clean-room review (part B, at 47ba601) that are cheap and real before the tag. The rest are filed (below).
Changes
varve outdatedcall site. The reviewer put the call site back to the old sentence, and every test stayed green:nothing_newerwas unit-tested, but nothing checked thatoutdated()calls it.outdated_never_calls_a_pin_the_newest_layer_when_the_served_index_does_not_list_it(mirror_failover.rs) serves a root-signed index with no entries and checks the CLI's stdout, with the listed case as its control. The test server gainsindex_lists_layer(default true). Locally the test passes on main and went red with the call site reverted.uname -msays x86_64, so install.sh told an Apple silicon user that Intel macOS is no longer published. It now askssysctl -n sysctl.proc_translated; on1it selects aarch64-apple-darwin. A native x86_64 process, the Intel Mac, is still refused by name.a_shell_under_rosetta_on_apple_silicon_gets_the_arm64_buildfakessysctlin the existing detect harness. concept-install.md says so.runs-on:(the reviewer's control), a matrix-supplied runner, agroup/labelsmap, and theon: pull_requestandon: [push, pull_request]triggers. It now uses yaml-rust2, already a dev-dependency for the PR-gate scan. A job reaches the pool when runs-on namesself-hostedin any spelling, or namesmatrix.while the matrix does. It is guarded only as one expression string carrying the head-repository guard.the_fork_guard_scan_flags_every_spelling_of_the_poolchecks 5 flagged spellings and 3 accepted cases. Locally, the block-list control turns the real scan red.Gate. The first head,
dee5b0cb, carries only the two new tests. Predicted:a_shell_under_rosetta_on_apple_silicon_gets_the_arm64_buildred in the test step (release_targets). The outdated test passes there by design: it guards the call site, which main already has right. The fix (6927d896) and the scan rewrite (f5f63ade) follow once that red is seen.Not fixed here, filed: see the issues linked in the comments.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KEjmjcUidFmgQyRtHcse3e