Skip to content

ci(first-run): verify prebuilt install snippets on Linux, macOS and Windows - #8363

Merged
EffortlessSteven merged 9 commits into
mainfrom
claude/prebuilt-platforms
Oct 17, 2026
Merged

EffortlessSteven merged 9 commits into
mainfrom
claude/prebuilt-platforms

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

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; sha256sum or shasum) and a Windows PowerShell snippet (SHA-256 check, Expand-Archive). A new on-demand workflow first-run-archive.yml extracts exactly those two snippets from QUICKSTART, runs them on ubuntu x64/arm64, macOS arm64/x64 and Windows hosted runners, then runs cargo 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

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Read-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

  • Docs/spec/test-only evidence package

Support-tier Impact

  • changes a README, release, docs, CLI, JSON, editor, CI, or package claim: documents macOS/Windows archives; no support promise until the hosted run passes.

Policy Impact

  • CI lane

CI Economics

  • LEM impact: 10, on demand only
  • Workflows touched: new first-run-archive.yml (workflow_dispatch only; never on PR)
  • Branch protection impact: none
  • Failure mode caught: a documented install snippet that does not work on a platform
  • Cheaper signal considered: Linux-only local run; cannot cover macOS/Windows
  • Advisory lanes affected: new advisory lane

Proof

cargo xtask check-workflows   # pass
cargo xtask precommit         # exit 0
cargo test -p xtask --test ripr_public_guide_contract   # 19 passed
# unix snippet extracted by the workflow's awk and run in a clean dir: checksum OK, ripr 0.10.0

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

…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
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 66 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: ddd29feb-fefd-46c8-a5cc-475066fff1a3
📥 Commits

Reviewing files that changed from the base of the PR and between b855f69 and 6986876.

📒 Files selected for processing: 5
  • .github/workflows/first-run-archive.yml
  • changelog.d/prebuilt-install-platforms.md
  • docs/QUICKSTART.md
  • policy/ci-lane-whitelist.toml
  • policy/workflow_allowlist.txt
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Comment thread .github/workflows/first-run-archive.yml Resolved
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
Comment thread .github/workflows/first-run-archive.yml Resolved

Copy link
Copy Markdown
Member Author

In-session proof on the current head:

  • cargo xtask check-workflows: pass.
  • Hosted dispatch run 39005518798 (this head): all five platforms pass (ubuntu x86-64, ubuntu arm64, macos-latest arm64, macos-15-intel, windows-latest). Documented snippet step: 0 to 2 s on every runner (Windows PowerShell 2 s), followed by the full cargo xtask first-run --install-archive 0.10.0 walk.
  • Independent Sonnet subagent review: one real finding (inputs.version interpolated into shell), fixed by routing it through env with an X.Y.Z guard. Graphite's two comments (YAML scalar, walk step shell on Windows) fixed and resolved.
  • Docs text unchanged since the earlier precommit pass and guide contract run (19 passed).

Adding merge-ready for hosted CI.


Generated by Claude Code

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 05:25
@gemini-code-assist

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member Author

Ripr Rust Small / Golden output contracts is red here but not caused by this PR: this PR changes no output code, and cargo xtask goldens check fails identically on a tree with current main merged (human.txt Summary: lines for fixtures such as rust_map_overwrite_count, seeded_push_after_early_return). Main's goldens were left stale by the plain-language verdict change (#8275). The fix is #8351 ("bless 8 goldens missed by plain-language verdict"), which is open. I have not duplicated those blessings here, because it would conflict with #8351. Plan: merge main into this branch once #8351 lands, then re-admit CI and merge.


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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.version is now routed through env: VERSION with an explicit X.Y.Z regex guard in the Bash leg, but the Windows leg only checks the regex and never uses $env:VERSION for snippet substitution — the snippet hardcodes v='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
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 06:50
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 06:50
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 06:52
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 06:53
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: commands in ci-lane-whitelist hardcodes 0.10.0 while inputs.version is 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.

@settings settings Bot removed the merge-ready label Oct 17, 2026

Copy link
Copy Markdown
Member Author

Golden output contracts is red again on head 6877dc0, still not from this PR: the earlier drift cleared when #8351 landed, and a new one arrived with #8412 (35 human goldens are missing the new "No test stub here" line, e.g. collection_argument_alias). The fix is #8418 (open). This PR touches no output code, so I am not duplicating those blessings. Plan: once #8418 merges, merge main here, re-admit CI and merge. Everything specific to this PR is green (hosted archive run on all five platforms, guide contract 20 passed, check-workflows pass, review findings fixed).


Generated by Claude Code

@EffortlessSteven

Copy link
Copy Markdown
Member Author

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
@EffortlessSteven
EffortlessSteven marked this pull request as draft October 17, 2026 11:10
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 11:10
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@EffortlessSteven
EffortlessSteven merged commit 324a1b8 into main Oct 17, 2026
31 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/prebuilt-platforms branch October 17, 2026 11:56
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.

2 participants