Skip to content

release(rehearsal): install the packaged crate and exercise the public CLI outside the workspace #2834

Closed

Description

@EffortlessSteven

Parent and consumers

This is the release-sized crate/install child of #1703. It does not own server archive generation or the packaged VSIX journey (#2528).

Problem

cargo package --list, cargo publish --dry-run, workspace tests, and a locally built binary do not prove that the packaged .crate installs and behaves as the public CLI outside the source checkout.

A source-tree command can accidentally use:

  • the workspace binary;
  • sibling files omitted from the package;
  • workspace-relative schemas/fixtures/config;
  • a different lock/toolchain identity;
  • generated command text that fails on Windows;
  • a source checkout path that users do not have.

Required outcome

From one exact candidate identity:

package exact candidate
→ extract packaged .crate into an isolated directory
→ install from the packaged source into an isolated prefix/cache
→ prove installed binary identity differs from workspace binary
→ exercise the public CLI against an independent fixture repository
→ retain one Linux receipt and one Windows receipt

No registry or marketplace publication occurs.

Artifact and environment identity

Retain:

candidate SHA/ref
crate version and package archive digest
Cargo.lock and toolchain identity
package file inventory
isolated Cargo home/target/install prefix
installed binary path/digest/version
host OS/architecture
fixture root/base/head
commands and exit codes
cleanup result
network/offline disposition

A dirty candidate tree, version mismatch, mixed package SHA, or workspace binary resolution fails closed.

Installed command surface

At minimum run the installed binary for:

ripr --version
ripr --help
ripr doctor --root <fixture> --json
ripr check --root <fixture> --base <base> --head <head> --json

Then exercise one bounded first-value path that exists in the release contract, such as pilot or first-pr, and inspect its declared artifacts.

For one selected finding/gap where available:

Do not make this green by using a workspace-local binary or copying private fixtures into the package.

Fixture repository

Use an independent private/disposable two-commit Rust repository with:

  • concrete base/head commits;
  • one bounded behavior change;
  • tracked tests/config only where public setup creates or permits them;
  • no path under the RIPR source checkout;
  • no reliance on sibling worktrees.

The fixture may share infrastructure with #2823 where the contracts align, but package-install proof and readiness-artifact production remain separate receipts.

Negative controls

  • remove a required packaged asset and prove the installed journey fails with a named reason;
  • place a workspace ripr earlier on PATH and prove the harness still invokes the isolated binary;
  • package/binary version mismatch;
  • dirty candidate tree;
  • wrong package digest;
  • Windows root/diff path with spaces and backslashes;
  • generated display text cannot substitute for typed argv;
  • source-checkout access denied or audited;
  • cleanup failure remains explicit.

Platform proof

Linux

  • isolated package/install and public CLI journey;
  • package contents and binary digest retained;
  • no source-tree reads.

Windows

Receipt

Emit JSON and Markdown from one DTO with section states:

qualified
semantic_failure
missing_evidence
stale_or_wrong_head
infrastructure_tempfail
not_run

Include package, install, command, fixture, platform, limitation, cleanup, and non-publication evidence. A partial platform run cannot render as complete.

Implementation slices

PR A — isolated package/install harness

  • extract/install exact packaged source;
  • prove executable identity and source-checkout denial;
  • run version/help/doctor;
  • add negative identity/cleanup fixtures.

PR B — public fixture journey and platform receipts

Non-goals

Closure rule

Close only when the exact packaged crate installs outside the workspace and the installed public CLI completes the bounded Linux and Windows journeys with retained artifact identities.

Claim boundary

Completion proves installability and bounded public CLI behavior for one exact packaged candidate on the exercised hosts. It does not publish the crate, prove every user environment, or establish test adequacy/correctness.

Activity

  1. added
    release-check
    status/needs-work
    on Jul 31, 2026
  2. coderabbitai commented on Jul 31, 2026

    @coderabbitai
    🔗 Related PRs

    #2384 - test(cli): require concrete fixture repository HEADs (#2383) [merged]
    #2433 - security(agent): make advisory command argv round-trip through Bash (#2347) [open]
    #2435 - security(agent): encode advisory command arguments as bash argv tokens (#2347) [merged]
    #2790 - release(denominator): retain deterministic 0.11 candidate ledger (#2768) [merged]
    #2801 - fix(release): bind agent readiness fixtures to current artifacts [open]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. EffortlessSteven commented on Aug 1, 2026

    @EffortlessSteven
    MemberAuthor

    Earnest review (2026-08-01)

    STATUS: Not started — premise verified; gap between cargo publish --dry-run and real installability.
    PLAN QUALITY: High. Excellent negative controls (remove packaged asset, workspace PATH pollution, dirty tree, digest mismatch, Windows spaces/backslashes, display text != typed argv). One-DTO-two-receipts with not_run/infrastructure_tempfail states prevents partial-run-as-complete.
    ASSESSMENT: No existing isolated package-install harness in xtask/. The execution surface to prove (--version, doctor, check, pilot/first-pr, explain/context) is wired through cli/. Non-claim (no verify-execute in 0.11.0) is well-scoped.
    ACTION: Approve. Most independently-startable of the five — recommend unblocking PR A in parallel with #2831 since it has no dependency on the denominator track.

  4. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    PR A is now open as draft #2910: https://github.com/EffortlessMetrics/ripr-swarm/pull/2910\n\nScope is the packaged-crate/install harness only. On committed head cb53699, cargo xtask release-readiness --version 0.10.0 produced package-install: pass with a Cargo archive digest, distinct workspace and installed binary digests, installed
    ipr 0.10.0, external-fixture doctor --json pass, and explicit fixture cleanup. cargo test -p xtask passed 1,427/1,427 and cargo xtask precommit passed. The overall readiness report remains warn only for the existing advisory repo-exposure latency check. The public check journey and Linux/Windows receipts remain PR B scope; #2834 stays open/needs-work until that acceptance is complete.

  5. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Evidence update — #2910 repair head ce3caaec6

    PR #2910 now contains the review repairs and is ready for review; it remains open while its hosted required route completes.

    Repaired and proved:

    • package/install re-checks worktree cleanliness immediately before packaging and fails required on dirty or unverifiable state;
    • identity-digest, installed-version, and external-doctor JSON validators have focused unit coverage;
    • real gzip/tar fixtures reject outside-root, foo/../escape, symlink, and hardlink entries;
    • release fixture-root canonicalization errors are explicit and parent traversal is bounded;
    • cargo test -p xtask: 1,431 passed;
    • cargo check -p xtask --all-targets, strict Clippy, formatting, and cargo xtask precommit: pass;
    • clean-head cargo xtask release-readiness --version 0.10.0: required package-install pass with archive digest, differing workspace/installed binary digests, ripr 0.10.0, and external-fixture doctor --json pass. Overall readiness is warn only for the existing advisory repo-exposure latency check.

    All six actionable review threads were answered with exact-head proof and resolved. #2834 remains status/needs-work until the PR lands and the separate public CLI/Linux/Windows receipt lane is complete. No version, candidate membership, publication, or release-control state changed.

  6. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Exact-head repair update — 4bbe5f980

    The external-doctor portability finding is repaired on the same PR claim. The installed binary is canonicalized before execution, so its path is absolute while the process runs from the external fixture directory.

    Exact-head evidence:

    • cargo test -p xtask: 1,431 passed, 0 failed;
    • cargo fmt --all -- --check, cargo check -p xtask --all-targets, strict Clippy: pass;
    • cargo xtask precommit: pass;
    • clean cargo xtask release-readiness --version 0.10.0: overall warn only for advisory repo-exposure latency; required package-install=pass;
    • package report: installed ripr 0.10.0, external doctor exit 0, fixture cleanup recorded, no missing-executable error.

    The new P1 review thread was answered with this evidence and resolved. #2834 remains open pending hosted landing and the separate public CLI/Linux/Windows receipt work.

  7. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Post-merge state — #2910 landed

    PR #2910 landed as caae18e8cc14cbf707b9e8c06e535442ad28812a from reviewed head 4bbe5f9803b5effbc06b3bb780a194d23b47e5df. The packaged-crate/install implementation, archive safety, absolute external-binary execution, and required hosted proof are complete for that slice.

    #2834 remains status/needs-work: the public CLI journey and Linux/Windows receipt lane are still outstanding. Do not close this issue or treat the release prerequisite as fully complete from the packaged-install slice alone. No 0.11 candidate, version, tag, or publication state changed.

  8. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    PR B is now open as #2911 from exact head 585962fb7 (implementation 33e134eac plus the release-surface receipt wiring). It adds the required packaged-CLI journey: an installed crate binary runs --version, external check --write-artifact, exact diff, typed explain, JSON context, and bounded pilot against an independent Cargo/Git fixture with a space-containing path. It validates base/head/finding identity, retains packet/summary/check artifacts, and writes packaged-cli-journey-<os>.json. Windows packaged-artifact rehearsal passed; cargo test -p xtask passed 1,431 tests, strict xtask Clippy/check, precommit, and package verification passed. The existing CI release surface now invokes cargo xtask release-readiness for release-check/full-ci and uploads the receipts, so hosted Linux evidence can be produced. #2834 remains open/partial until exact-head review, a clean committed readiness run, and both Windows and hosted Linux receipts are available. No version, tag, publication, or candidate membership changed.

  9. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    PR #2911 exact head b11a58a now has a clean committed Windows release-readiness receipt: all required checks pass, including packaged install identity, external Cargo/Git fixture with spaces, check artifact, exact diff, explain/context identity, bounded pilot with packets_total=1, and retained Windows receipt/artifacts. Full xtask suite is 1,431 passed; strict xtask Clippy, precommit, check-workflows, and formatting pass. Overall readiness is warn only from the non-required repo-exposure latency report. Remaining acceptance is hosted Linux packaged-journey evidence plus exact-head review/merge and later landed-main release reconciliation; no candidate membership or publication claim is made.

  10. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Hosted Linux packaged-journey evidence is now verified from run 30972761783 at exact PR head b11a58a. The retained release-readiness artifact contains a qualified Linux receipt, packaged check/packet/summary artifacts, and canonical report: all required checks pass; only non-required repo-exposure latency is warn; six journey commands passed; pilot packets_total=1; fixture cleanup succeeded. Together with the clean Windows receipt already recorded, the platform journey predicate is proven. #2834 remains open until exact-head merge and landed-main acceptance are reconciled.

  11. EffortlessSteven commented on Aug 5, 2026

    @EffortlessSteven
    MemberAuthor

    Closeout — #2911 merged

    • PR head exercised: 85b24c507182f6600b99252ed14921ae96db8ddb
    • squash merge: f57e94e550e567a7cdd1c3df7764dbce70998e8c
    • production delta: packaged installed binary now runs the external two-commit CLI journey for --version, check --write-artifact, exact diff, typed explain, JSON context, and bounded pilot; fixture Git setup is isolated from inherited repository state.
    • evidence delta: qualified Linux and Windows hosted receipts; check, packet, summary, LSP, repo-exposure latency, agent receipt, gap ledger, and start-here subreports are retained/uploaded; receipt cleanup and pilot completion state fail closed.
    • local proof: 89 focused release/control tests, cargo fmt --all -- --check, cargo clippy -p xtask --bin xtask --locked -j 1 -- -D warnings, check-workflows, check-doc-index, and check-output-contracts passed. The full local cargo xtask precommit was not run to completion because the shared Cargo environment timed out; hosted Rust passed.
    • hosted proof: required routed Rust passed, direct Rust passed, coverage/JUnit/UB/MSRV/VSCode/Windows/security/source-of-truth passed. Codecov patch is informational and failed; CodeRabbit was rate-limited, with all substantive review threads replied to and resolved.
    • denominator impact: none; no census refresh and no candidate membership changed.
    • residual acceptance: candidate-bound replay remains owned by release(0.11.0): qualify the exact frozen swarm candidate and retain an evidence-identity bundle #2769; no publication, tag, signing, or release-secret action occurred.

    The packaged CLI child is complete for its stated pre-candidate proof. #2769 must repeat the exact journey on the immutable candidate before qualification.

  12. removed
    status/needs-work
    on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    release-check

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions