Skip to content

Commit f81d5d8

Browse files
committed
fix: address installation review and constrain Rust probes
1 parent e2c7876 commit f81d5d8

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

‎QUICKSTART-USER.adoc‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ git clone https://github.com/hyperpolymath/panic-attack.git
2222
cd panic-attack
2323
cargo build --locked --release
2424
./target/release/panic-attack --help
25-
./target/release/panic-attack assail . --fail-on-incomplete
25+
./target/release/panic-attack assail . --fail-on-incomplete --output panic-report.json
2626
----
2727

2828
A self-scan can return findings or incomplete coverage, including from deliberate
2929
test fixtures. Do not interpret a nonzero scan exit as an installation failure;
30-
inspect the report and coverage outcome.
30+
inspect `panic-report.json` for individual findings and the coverage outcome.
3131

3232
== Optional task runner and installation
3333

@@ -40,6 +40,9 @@ This recipe does not install prerequisites or offer a portable/prefix option.
4040
nonzero for a missing or broken tool. It does not check compiler compatibility,
4141
network connectivity, runtime safety, or prove a build will succeed.
4242
Use the locked build above to check compiler and dependency compatibility.
43+
The probe disables automatic toolchain installation with rustup 1.28.1 and
44+
later. Older rustup versions and external tool-manager shims may still perform
45+
their own setup; the diagnostic is not a sandbox around those programs.
4346

4447
== Troubleshooting
4548

‎docs/ASSURANCE-AUDIT-2026-11-04.adoc‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,13 @@ align developer/maintainer quickstarts; replace broad chmod/cache-deletion heal
7070
with bounded repair plans; integrate canonical provisioning DEED and generated
7171
provider exports; specify opt-in platform disclosure and Bustfile-based diagnosis.
7272
These are pending work, not capabilities supplied by this entrypoint repair.
73+
74+
App-review follow-up: the fixture now includes the checked-in imported
75+
`contractile.just`; the user command saves `panic-report.json`; and probes set
76+
`RUSTUP_AUTO_INSTALL=0`. The expanded 16-control suite passes locally, including
77+
an inherited auto-install setting overridden for the Rust probes. This control
78+
checks environment propagation with stand-ins, not a real Rustup installation.
79+
Rustup documents the opt-out from 1.28.1; earlier versions and external shims
80+
remain outside a guaranteed no-side-effect boundary, now stated explicitly.
81+
See https://blog.rust-lang.org/2025/03/04/Rustup-1.28.1/ and
82+
https://rust-lang.github.io/rustup/environment-variables.html.

‎scripts/ci/test-entrypoints.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ just_bin=$(realpath "$just_bin")
99
tmp=$(mktemp -d)
1010
trap 'rm -rf "$tmp"' EXIT
1111
mkdir -p "$tmp/bin" "$tmp/repo/scripts"
12-
cp "$root/Justfile" "$root/setup.sh" "$tmp/repo/"
12+
cp "$root/Justfile" "$root/contractile.just" "$root/setup.sh" "$tmp/repo/"
1313
cp "$root/scripts/doctor.sh" "$tmp/repo/scripts/"
1414
ln -s /bin/sh "$tmp/bin/sh"
1515
ln -s "$(command -v head)" "$tmp/bin/head"
@@ -33,6 +33,10 @@ expect() {
3333
}
3434
expect 0 "$just_bin" --list
3535
expect 0 env PATH="$tmp/bin" "$just_bin" doctor
36+
for tool in cargo rustc; do
37+
printf '#!/bin/sh\n[ "${RUSTUP_AUTO_INSTALL:-}" = 0 ]\n' > "$tmp/bin/$tool"
38+
done
39+
expect 0 env PATH="$tmp/bin" RUSTUP_AUTO_INSTALL=1 "$just_bin" doctor
3640
for tool in cargo rustc git; do
3741
mv "$tmp/bin/$tool" "$tmp/$tool"
3842
expect 1 env PATH="$tmp/bin" "$just_bin" doctor

‎scripts/doctor.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/bin/sh
22
# SPDX-License-Identifier: MPL-2.0
33
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
4-
# Local, read-only availability probes. No network, repair, or telemetry.
4+
# Local availability probes; no repair or telemetry requested.
5+
# Disable implicit rustup installs on rustup >= 1.28.1. Older/external shims
6+
# may have their own side effects; these probes are not a process sandbox.
57
set -u
68
failed=0
79
for tool in cargo rustc git just; do
8-
if command -v "$tool" >/dev/null 2>&1 && "$tool" --version >/dev/null 2>&1; then
10+
if command -v "$tool" >/dev/null 2>&1 && RUSTUP_AUTO_INSTALL=0 "$tool" --version >/dev/null 2>&1; then
911
printf '[OK] %s responds to --version\n' "$tool"
1012
else
1113
printf '[FAIL] %s missing or unable to run\n' "$tool" >&2

0 commit comments

Comments
 (0)