← Back to Pull requests

feat(install): bootstrap authenticated releases in user and system scopes #184

Closed
unknown closed this pull request without merging on Oct 04, 2026 00:12 UTC
View on GitHub
unknown unknown commented on Oct 03, 2026 21:36 UTC
Author

<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/packslip/trails/61
<!-- entire-trail-link-end -->

Package-manager bootstraps can install an authenticated release with packslip install owner/repo, preserving its complete runtime tree while exporting only the declared commands. User and system scopes keep persistent trust and ownership state on Unix and Windows; output-directory overrides retain that state. Windows exports use native launchers without Developer Mode.

The command combines forge or host discovery, authenticated list freshness, repository-ID continuity, independent administrator/caller constraints, exact trust-change approvals, host checks, bounded extraction, and recoverable replacement. --force can replace conflicting commands and unmarked trees while enforcing trust and protected-path checks. Root uses fixed system state and ignores user configuration. --offline requires cached authenticated metadata; a failed artifact install still preserves accepted list history.

Distribution builds use --no-default-features --features install-cli, including installation and verification without publishing or schema generation. The bootstrap guide documents scope defaults, recovery, offline behavior, and the remaining publisher adoption checks. Bootstrap forge discovery currently supports GitHub; resources remain metadata and are not executed or separately exported.

Validated with the full feature and library-only suites, installer Clippy, generated documentation checks and visual inspection, and native installer fixtures on macOS ARM64, Linux x64, and Windows x64. Fixtures cover complete-tree execution, arguments/exit status, relocation, rollback/withdrawal protection, digest/version rejection, key rotation, and administrator constraints. CI runs the installation layers on all five target platforms. Real mise/rustup/uv/pnpm setup and self-update adoption remains unverified.

Stacked on #177.

AI-assisted — Tool: Codex; model: unavailable; version: unavailable.

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

High Risk

Introduces a network-facing bootstrap that mutates filesystem layout and trust state under Sigstore/TUF policy; mistakes in verification, continuity, or replacement logic could affect security-sensitive installs.

> Overview

Adds packslip install, a bootstrap path that discovers GitHub or host releases, verifies signed lists and bundles under persistent user/system scope, downloads the chosen artifact, extracts the full tree, and exports declared commands (symlinks on Unix, launchers on Windows) without running installer scripts or editing shell config.

> The orchestration lives in new install::run, wiring discovery, TUF/trust-root refresh, admin and caller pins, list/release continuity with --accept-trust-change, host checks, bounded extraction, and journaled --force replacement. install_policy::release_listed_host authorizes CDN bundle URLs bound by a host-signed list; install history now remembers key-signed pubkeys.

> Cargo gains feature install-cli (verify + launcher + host); default cli includes it. CI, usage/man pages, and a bootstrap doc page cover the command and --no-default-features --features install-cli distro builds.

> <sup>Reviewed by Cursor Bugbot for commit 9dd04c52fa0c65e4add5d32051cc4f260a415008. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

New Features
Added a packslip install command to install authenticated upstream releases, with options for version, installation scope and location, variants, offline use, trust controls, and archive limits.
Installation preserves the complete release tree and exports declared commands without running downloaded code or changing shell configuration.
The default CLI build now includes installation support.
Documentation
Added installation guidance covering supported sources, trust and recovery behavior, paths, and configuration.
Quality
Expanded automated checks for installation behavior and CLI documentation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 548 lines (+411 / -137) across 6 files Reviewer: jdx Review duration: 156m
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.71) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 548 lines diff across 6 files
0.71
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
57%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.377
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #184"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 58.0% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 71.2% (HIGH) · Higher = larger blast radius
71.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 58.0% · Lower = rushed or shallow review
58.0%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 29.9% · Safe to merge
29.9%
Repository