Skip to content

Fix the v0.48.0 second review's findings: outdated call site, Rosetta install, fork-guard scan - #397

Merged
avrabe merged 3 commits into
mainfrom
fix/v0.48.0-review-b
Nov 25, 2026
Merged

avrabe merged 3 commits into
mainfrom
fix/v0.48.0-review-b

Conversation

@avrabe

@avrabe avrabe commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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 outdated call site. The reviewer put the call site back to the old sentence, and every test stayed green: nothing_newer was unit-tested, but nothing checked that outdated() 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 gains index_lists_layer (default true). Locally the test passes on main and went red with the call site reverted.
  • Rosetta on Apple silicon. Under Rosetta 2, uname -m says x86_64, so install.sh told an Apple silicon user that Intel macOS is no longer published. It now asks sysctl -n sysctl.proc_translated; on 1 it 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_build fakes sysctl in the existing detect harness. concept-install.md says so.
  • Fork-guard scan parsed as YAML. The line scan missed a block-list runs-on: (the reviewer's control), a matrix-supplied runner, a group/labels map, and the on: pull_request and on: [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 names self-hosted in any spelling, or names matrix. 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_pool checks 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_build red 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

avrabe and others added 3 commits November 24, 2026 23:44
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
@avrabe

avrabe commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

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.

@avrabe

avrabe commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Tests-only head dee5b0c went red as predicted: in run 45504435135 (ubuntu test job), only a_shell_under_rosetta_on_apple_silicon_gets_the_arm64_build failed (3 passed, 1 failed in release_targets). outdated_never_calls_a_pin_the_newest_layer_when_the_served_index_does_not_list_it passed there, by design. Real head f5f63ad pushed.

@avrabe

avrabe commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Required check coverage (advisory evidence) failed in run 45509218726 with every test passing. Attempt 1: download-artifact returned "No artifacts found for ID: 14976894305" right after the upload finalized (GitHub storage lag). Attempt 2 (re-ran only that job): the rehearsal downloaded by name, got attempt 1's artifact, and cmp differed at byte 51458, because coverage output is not byte-identical across runs. A job re-run can never pass that step, so I'm closing and reopening to get a fresh run on the same head f5f63ad. All 24 mutation shards on that head printed 0 missed. I'll file the re-run defect separately.

@avrabe avrabe closed this Nov 25, 2026
@avrabe avrabe reopened this Nov 25, 2026
@avrabe
avrabe merged commit 886c299 into main Nov 25, 2026
143 of 145 checks passed
@avrabe
avrabe deleted the fix/v0.48.0-review-b branch November 25, 2026 07:29
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