Skip to content

docs(install): lead with the prebuilt archive; pin failed archive install report - #8337

Merged
EffortlessSteven merged 4 commits into
mainfrom
claude/prebuilt-first-docs
Oct 17, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
claude/prebuilt-first-docs

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Requested by Steven · project thread

Summary

Before: the README and quickstart led with cargo install ripr (a compile, about two minutes for 0.10.0 and about 12 for the development build) and showed the prebuilt archive as a side note.

After: both lead with the checksummed prebuilt 0.10.0 archive (no Rust toolchain, about a second) and keep cargo install ripr as the compile-from-source alternative. The README's first fenced block still ends in ripr check, so the README/Quickstart parity test in #8332 (first ripr line of the first block after the heading must be ripr check) still holds. A new first-run test pins the report of a failed archive install: unavailable, no archive/executable identity, install_archive.stderr.log named.

I ran the documented snippet verbatim in a clean directory against the published asset: checksum OK, ./ripr --version prints ripr 0.10.0. The 0.11 development features still need the development build, which the docs still say.

Swarm / Source Boundary

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

Source-of-truth Links

Governing issue or accepted claim: #5311 (stays open). Follows #8321. Wording coordinated with #8332.
Acceptance delta (one sentence): a new reader's first install route is the verified prebuilt one.

Scope

README.md, docs/QUICKSTART.md, one test in xtask/src/first_run.rs, 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: install route ordering only; no new platform promise (example is Linux x86-64, other archives linked).

Policy Impact

  • none

Proof

cargo test -p xtask --bin xtask -- failed_archive   # 1 passed
cargo xtask precommit                               # exit 0
# README snippet run in a clean dir: sha256sum OK, ./ripr --version -> ripr 0.10.0

Not run: the snippet on macOS/Windows.

Claim Boundary

May claim: the documented archive route works for 0.10.0 on Linux x86-64.
Must not claim: any 0.11 archive exists, or other platforms were exercised.

Rollback

Revert this PR.


Generated by Claude Code

…test failed archive install

The checksummed 0.10.0 archive installs in about a second with no Rust
toolchain, so README and the quickstart show it first and keep cargo install
as the compile-from-source alternative. The first README block still ends in
`ripr check`. A new first-run test pins the report shape of a failed archive
install (unavailable, no executable identity, stderr log named).

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 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 60 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: f98e2509-573f-4238-a26a-27bbf20ce437
📥 Commits

Reviewing files that changed from the base of the PR and between e86ddf8 and 224205f.

📒 Files selected for processing: 5
  • README.md
  • changelog.d/prebuilt-first-install-docs.md
  • docs/QUICKSTART.md
  • xtask/src/first_run.rs
  • xtask/tests/ripr_public_guide_contract.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Copy link
Copy Markdown
Member Author

In-session proof on head a7943b5: cargo xtask precommit exit 0; the new failed-install test passes; the README snippet run verbatim in a clean directory gives sha256sum OK and ripr 0.10.0. A separate Sonnet reviewer found no stale wording. It flagged the README block for #8332's parity test, but that test (see its first_run_command) takes the first line that starts with ripr , and I checked with the same logic that this is ripr check, so it holds. Adding merge-ready.


Generated by Claude Code

Comment thread README.md Resolved
The README snippet ran `ripr check` without making the extracted binary
resolvable, so it failed or ran an older ripr already on PATH. The block now
prepends the download directory to PATH and still ends in `ripr check`.

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

@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

  • README/QUICKSTART claims the archive route works on Linux x86-64 only; macOS/Windows snippet not exercised in this PR (PR body itself disclaims). Acceptable per claim boundary but worth noting for cross-platform parity.
  • The new failed-archive test does not cover the partial-success case where tar succeeds but the extracted binary is wrong architecture (e.g., asset downloads but is macOS on Linux); in that path identity keys could plausibly still leak if finish() populates them after a successful extract. Without inspecting the released_archive step body beyond the test, the deny-list assertion guarantees only this fixture shape; broader integration coverage is absent.

Refuted

  • New test names a new stderr log path or new JSON field beyond what a failed archive install should expose, expanding public surface.; refuted because: Test only asserts existing fields (ripr='unavailable', install.route='released_archive', install.failed=true) and explicitly forbids archive_sha256/asset/executable/target leaking; uses the pre-existing ARCHIVE_STDERR_LOG constant.
  • The new first-run test is a tautology that only re-asserts what finish() already documents, and is not real coverage of the failed-archive contract.; refuted because: Rejected as false premise: the test pins a concrete report shape (ripr == "unavailable", deny-list of identity keys, setup[0].stderr_log == ARCHIVE_STDERR_LOG) that guards against regressions where partial decode could leak archive_sha256/executable into a failed: true report. It is targeted unit coverage of the contract finish() is responsible for, not a tautology.

Test proof

  • Focused HEAD proof failed (exit 101): cargo test --locked --package xtask --test ripr_help_process_contract. This is a current failure, not a red/green witness.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

…install

The public-guide contract pinned the README's first block to
cargo install; it now requires a checksum-verified install that ends in
ripr check, matching the prebuilt-first README.

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.

Confirmed findings

  • Partial-success path (tar extracts but binary is wrong architecture or non-executable) is not covered by the new deny-list test; without inspecting the released_archive step body the assertion guarantees only the fixture shape, broader integration coverage is absent.
  • Helper step() used by the new test at xtask/src/first_run.rs (line ~1547) is the existing test helper; the StepResult::default() style via struct update is consistent with surrounding tests and avoids leaking new public surface, keeping xtask's helper-shape scope unchanged. No architectural boundary issue.

Verification questions

  • Confirm no red/green failure observed for PR's stated claims (archive-first ordering, README/Quickstart parity holds, failed-install report shape pinned). cargo-test receipt still scheduled-late in late evidence phase per packet.
  • Confirm contract test ends_with(" ripr check") allows many non-canonical snippets to pass; a leading prebuilt download could vanish or be reordered and the test would still green as long as the block ends with ripr check.
  • Confirm partial-success branch (tar extracts but binary is wrong arch) not covered: identity fields could leak if finish() populates them after a successful extract on a cross-arch asset; current test only proves the deny-list holds for the supplied failed StepResult.
  • Confirm cross-platform parity beyond Linux x86-64 is documented but unexercised; PR body disclaims macOS/Windows. Acceptable per claim boundary but a residual source-route gap.

Refuted

  • Identity keys (archive_sha256/asset/executable/target) could leak on partial-success (tar ok, wrong arch) because the new test only exercises a hand-crafted failed StepResult, not the real released_archive step.; refuted because: Test assertion is on the deny-list invariant under install.failed=true; if the real step populates fields after extract succeeds, install.failed would not be true. Refuted under stated deny-list policy.
  • PATH-update line is separate from ripr check, so a failed tar xzf would still attempt ripr check and could resolve to a stale on-PATH ripr, hiding the failure.; refuted because: The && tar xzf $f && export PATH=... chain short-circuits on extract failure; once successful, the next shell line sees the updated PATH. Author's clean-dir run produced ripr 0.10.0, confirming the chain behaves correctly.
  • New failed-archive test expands public surface by introducing new stderr log path or JSON field beyond what a failed archive install should expose.; refuted because: Test only asserts pre-existing fields (ripr, install.route, install.failed) and uses the pre-existing ARCHIVE_STDERR_LOG constant; deny-list forbids archive_sha256/asset/executable/target from leaking.
  • Moving the archive-first install out of xtask and into a dedicated cli module would be a cleaner boundary change worth proposing.; refuted because: Out of scope for this PR: PR body and scope classification explicitly mark this as a docs/spec/test-only evidence package, and production ripr code is not touched. A refactor proposal belongs in a parked follow-up, not a candidate finding on a docs PR.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Parked follow-ups

  • Minor duplication: the curl/checksum/tar/PATH snippet is now maintained in two doc files. A single shared include or xtask fixture invoked by docs build would prevent drift, but the existing ripr_public_guide_contract.rs already cross-checks both blocks, mitigating drift risk at acceptable cost for two locations.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 17, 2026 04:44
@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 merged commit 51acaab into main Oct 17, 2026
24 checks passed
@EffortlessSteven
EffortlessSteven deleted the claude/prebuilt-first-docs branch October 17, 2026 04:45
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