Repository navigation
ci(first-run): verify prebuilt install snippets on Linux, macOS and Windows - #8363
Conversation
…nd Windows QUICKSTART gets a Linux/macOS Bash snippet that picks the target from uname and a Windows PowerShell snippet that verifies the SHA-256. An on-demand workflow extracts exactly those snippets, runs them on hosted runners, then walks the first-run path with the released archive (#5311). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 51 minutes. View limit details
Comment |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
Review found inputs.version interpolated into shell source. Route it through an env var, validate it as X.Y.Z, and make the Windows step print and check the ripr --version exit status. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
|
In-session proof on the current head:
Adding Generated by Claude Code |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
|
Generated by Claude Code |
Keep the per-platform snippets; align the unix verify step with the shasum fallback pinned by #8390. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- No duplication of existing first-run-install lane, but the new on-demand lane reuses xtask's first-run --install-archive codepath without a documented contract that distinguishes archive vs published install outputs in target/ripr/first-run/. Minor future-collision risk if both lanes run on the same runner.
- Cross-platform
inputs.versionis now routed throughenv: VERSIONwith an explicitX.Y.Zregex guard in the Bash leg, but the Windows leg only checks the regex and never uses$env:VERSIONfor snippet substitution — the snippet hardcodesv='0.10.0'and the-replace 'v=0.10.0','v=$env:VERSION'path is only exercised if$env:VERSION != '0.10.0'. On the default input the substitution is a no-op, so the documented snippet runs as-written; this is fine but should be flagged so future readers know the env-var path is only validated on non-default invocations.
Verification questions
- Confirm macOS arm64 runner on uname reports Darwin-arm64, mapping to aarch64-apple-darwin; x86_64 under Rosetta on macos-15-intel yields Darwin-x86_64. Hosted arch naming aligns with the case arms in QUICKSTART.
- Confirm awk fenced-code extractor is the brittle single point of failure for QUICKSTART install docs.
- Confirm snippet extraction is a single awk one-liner in workflow step 1 that re-parses docs/QUICKSTART.md markers; no reusable helper in xtask. Acceptable for 5-platform matrix but couples workflow to marker convention.
Refuted
- The awk extractor is too tightly coupled to the QUICKSTART marker convention to be maintainable.; refuted because: Scope is intentionally bounded: only two markers, both introduced in this same PR, only consumed by this workflow. Promoting to xtask would exceed smallest-complete-fix for a single on-demand lane.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Ripr Rust Small / Golden output contracts is red on this branch but the failure is pre-existing on current main (#8351 open). PR changes no output code; golden divergence is from #8275 plain-language verdict change. Out of scope for this PR but blocks merge-until-main-rebased.
- docs/QUICKSTART.md:17 — The PowerShell block immediately follows the Bash block with no blank line, so the closing ``` of the Bash fence becomes fence #2 (n%2==0) for the unix marker — that is correct — but any future maintainer adding a third code fence between the two blocks will silently break the awk extractor. Worth a one-line comment in QUICKSTART or a stricter guard.
- Minor future-collision risk: first-run-archive and first-run-install both write to target/ripr/first-run/ with different stderr logs; no doc distinguishes them. If both lanes dispatch on same runner concurrently they share target/ripr/first-run/install_archive.stderr.log parent. Not exploited today; flag for future hygiene.
Verification questions
- Confirm awk extract relies on prebuilt-snippet:unix / prebuilt-snippet:powershell markers and pairs of ``` fences in QUICKSTART.
- Confirm permissions are correctly minimal (contents:read), concurrency group is scoped (first-run-archive-${{ github.ref }}), cancel-in-progress true, and jobs/strategy fail-fast false — five matrices (ubuntu-latest, ubuntu-24.04-arm, macos-latest, macos-15-intel, windows-latest). No PR trigger, no write/publish/action step, no third-party action other than actions/checkout@v6, dtolnay/rust-toolchain@stable, actions/upload-artifact@v7 — all pinned to major versions only, which is an actionlint concern, not a source-route concern.
- Confirm workflow changelog fragment is silent about the manifest caveat:
commandsin ci-lane-whitelist hardcodes0.10.0whileinputs.versionis templated; version-drift between policy lane and on-demand invocations is not documented. - Confirm powerShell env-var path: -replace v='0.10.0'→v='$env:VERSION' is only exercised on non-default invocations; on the default 0.10.0 input the substitution is dead code, so the documented snippet runs as-written but the env-var substitution branch lacks hosted proof beyond the regex guard.
Refuted
- Possible concern: this PR mutates a public route by adding a new xtask subcommand cargo xtask first-run --install-archive.; refuted because: The command exists already (referenced by the existing first-run-install lane whitelist at lines 177-186); this PR only invokes it from a new on-demand workflow and registers a new artifact_family + lane entry; no public flag, subcommand, env-var contract, or helper signature is added. Pre-existing public route is untouched.
- Architecture boundary leak: workflow should be in a separate docs-lane allowlist, not co-mingled with CI lane policy.; refuted because: policy/ci-lane-whitelist.toml already uses a single file for all workflows including docs-adjacent lanes (e.g. pilot-ranking, dx-scoreboard); the new 'first-run-archive' lane follows the same shape with posture='advisory' and is correctly classified. No boundary leak.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
|
Generated by Claude Code |
|
Diagnostic finding on CI failure: Run 39011554175 failed at Step 26 \Golden output contracts\ due to the 35 unblessed human goldens from #8412. All earlier steps (including 16.7k unit tests, Clippy, doctests) passed. PR #8418 has now merged to \main\ at \d91a25dd9, resolving this failure across the workspace. Updating this branch with \main\ will clear Step 26. |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PLWWCB68iQKMdbDBduEnbv
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- No zizmor sensor installed; workflow hardening packet unavailable. Permissions are minimal (contents: read) and no tokens/secrets are touched, so residual risk is low, but zizmor absence is trust-affecting missing evidence for a new workflow.
- Future-hygiene only: first-run-archive and first-run-install both write target/ripr/first-run/; concurrent same-runner dispatch would share install_.stderr.log parents. No current collision because both are workflow_dispatch and the new workflow sets concurrency cancel-in-progress.
- Minor future-collision risk: first-run-archive and first-run-install both write to target/ripr/first-run/; if dispatched concurrently on same runner they share install_archive.stderr.log parent path with install_published.stderr.log sibling. Not exploitable in CI (lane runs on demand), but worth noting in lane description so future maintainers do not assume orthogonal paths.
Verification questions
- Confirm graphite review surfaced inputs.version shell-injection worry and a pwsh $VERSION walk bug; both fixed in current head per author.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
Requested by Steven · project thread
Summary
Before: only the Linux x86-64 prebuilt install was documented and measured; macOS and Windows users had no snippet and no number.
After: QUICKSTART has a Linux/macOS Bash snippet (target chosen from
uname;sha256sumorshasum) and a Windows PowerShell snippet (SHA-256 check,Expand-Archive). A new on-demand workflowfirst-run-archive.ymlextracts exactly those two snippets from QUICKSTART, runs them on ubuntu x64/arm64, macOS arm64/x64 and Windows hosted runners, then runscargo xtask first-run --install-archive. Times and any platform failure land in artifacts and on #5311.How: workflow plus policy entries (workflow budget, advisory lane, artifact family); docs; one changelog fragment. The Bash snippet was verified locally on Linux x86-64. The PowerShell and macOS snippets are unverified until the hosted run; results will be recorded on #5311 and platform bugs handed to the Windows/macOS thread.
Swarm / Source Boundary
ripr-swarmRead-only workflow (
contents: read), downloads a public release, publishes nothing.Source-of-truth Links
Governing issue: #5311 (stays open). Follows #8321 and #8337.
Acceptance delta (one sentence): per-platform install snippets exist and are exercised on hosted runners.
Scope
docs/QUICKSTART.md,
.github/workflows/first-run-archive.yml,policy/workflow_allowlist.txt,policy/ci-lane-whitelist.toml, one changelog fragment.Scope Classification
Support-tier Impact
Policy Impact
CI Economics
first-run-archive.yml(workflow_dispatch only; never on PR)Proof
Not run yet: the workflow on hosted runners, PowerShell.
Claim Boundary
May claim: snippets exist and the lane can exercise them. Must not claim: macOS/Windows work until the hosted run shows it.
Rollback
Revert this PR.
Generated by Claude Code