Skip to content

Commit 44eca00

Browse files
fix(ci): supply release-tag version to pinned Idris installer (#257)
The Proven Tests lane passed IDRIS2_VERSION=0.7.0 to its pinned installer, which tried to clone a nonexistent branch. Supply v0.7.0 at that installer step while preserving the framework pin and the numeric version elsewhere. Correct PROOF-NEEDS: the Hexad proptest exercises an in-memory serde_json::Value round-trip on generated samples. It does not call the on-disk write/load functions and is not a universal proof. Validation: 653 default Rust tests passed; the signing/http/sarif run passed 720 with three existing ignored tests. Feature Clippy passed. Strict panic and Pons scans on all four audit repositories returned partial coverage, documented in hyperpolymath/proven-cicd-and-workflows#77. Hosted source failure: run 41390102464. The owner/lock migration experiment at 6addd22 still startup-failed and violated CI Integrity, so it is reverted rather than weakening that gate. Existing governance/Hypatia/Rust reusable startup failures remain unresolved. GUI, real distributed Chapel execution, complete coverage and proof/runtime refinement are not claimed. Details: docs/ASSURANCE-AUDIT-2026-11-04.adoc; upstream installer/contract repair: hyperpolymath/proven-tests-and-benches#103. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent be6ac46 commit 44eca00

11 files changed

Lines changed: 286 additions & 142 deletions

‎.github/CODE_OF_CONDUCT.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2+
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -->
3+
# Code of conduct
4+
5+
See the project’s [Code of Conduct](../CODE_OF_CONDUCT.adoc) for participation
6+
standards, reporting contacts and enforcement procedures.

‎.github/SECURITY.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2+
<!-- SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath) -->
3+
# Security policy
4+
5+
See [SECURITY.adoc](../SECURITY.adoc) for supported versions and private
6+
vulnerability reporting. Do not report suspected vulnerabilities in public
7+
issues.

‎.github/workflows/proven-tests.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ jobs:
181181
- name: Install Idris2 (chez backend)
182182
working-directory: .proven-tests
183183
env:
184-
IDRIS2_VERSION: ${{ env.IDRIS2_VERSION }}
184+
# The pinned older installer passes this verbatim to git --branch.
185+
# Idris2's release ref is v0.7.0, not 0.7.0.
186+
IDRIS2_VERSION: v${{ env.IDRIS2_VERSION }}
185187
run: bash scripts/install-idris2.sh
186188

187189
- name: Build and run the framework's suite

‎.github/workflows/verify.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,29 @@ env:
4747
RUST_BACKTRACE: '1'
4848

4949
jobs:
50+
entrypoints:
51+
name: Installation entrypoint controls
52+
runs-on: ubuntu-latest
53+
timeout-minutes: 5
54+
steps:
55+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
56+
with:
57+
persist-credentials: false
58+
- name: Verify pinned task runner and exercise isolated entrypoints
59+
shell: bash
60+
run: |
61+
set -euo pipefail
62+
tools_dir=$(mktemp -d)
63+
trap 'rm -rf "$tools_dir"' EXIT
64+
archive=just-1.36.0-x86_64-unknown-linux-musl.tar.gz
65+
curl --fail --silent --show-error --location --max-time 60 \
66+
"https://github.com/casey/just/releases/download/1.36.0/$archive" \
67+
--output "$tools_dir/$archive"
68+
(cd "$tools_dir" && printf '%s %s\n' \
69+
bc7c9f377944f8de9cd0418b11d2955adebfa25a488c0b5e3dd2d2c0e9d732da "$archive" | sha256sum --check)
70+
tar --no-same-owner -xzf "$tools_dir/$archive" -C "$tools_dir" just
71+
JUST_BIN="$tools_dir/just" bash scripts/ci/test-entrypoints.sh
72+
5073
fmt:
5174
name: cargo fmt --check
5275
runs-on: ubuntu-latest

‎Justfile‎

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ default: build test
88

99
# Build release binary
1010
build:
11-
cargo build --release
11+
cargo build --locked --release
1212

1313
# Run all tests
1414
test:
@@ -57,8 +57,9 @@ readiness-summary:
5757
clean:
5858
cargo clean
5959

60-
# Install to system
60+
# Install for this user (does not modify PATH)
6161
install: build
62+
mkdir -p ~/.local/bin
6263
cp target/release/panic-attack ~/.local/bin/
6364

6465
# Scan self (dogfood)
@@ -73,15 +74,9 @@ assemblyline:
7374
lint:
7475
cargo clippy --all-targets
7576

76-
# Format check
77+
# Format check (compatibility name)
7778
fmt:
78-
cargo fmt -- --check
79-
80-
# Check formatting without modifying
81-
fmt-check:
82-
cargo fmt --all --check
83-
# Full CI check (fmt + lint + test)
84-
ci: fmt lint test
79+
cargo fmt --all -- --check
8580

8681
# Tag and push a release (usage: just release 2.1.0)
8782
release version:
@@ -204,17 +199,11 @@ chapel-diff:
204199

205200
# Run panic-attacker pre-commit scan
206201
assail:
207-
@command -v panic-attack >/dev/null 2>&1 && panic-attack assail . || echo "panic-attack not found — install from https://github.com/hyperpolymath/panic-attacker"
202+
panic-attack assail .
208203

209-
# Self-diagnostic — checks dependencies, permissions, paths
204+
# Local tool availability only; does not establish build or runtime compatibility
210205
doctor:
211-
@echo "Running diagnostics for panic-attacker..."
212-
@echo "Checking required tools..."
213-
@command -v just >/dev/null 2>&1 && echo " [OK] just" || echo " [FAIL] just not found"
214-
@command -v git >/dev/null 2>&1 && echo " [OK] git" || echo " [FAIL] git not found"
215-
@echo "Checking for hardcoded paths..."
216-
@grep -rn '$HOME\|$ECLIPSE_DIR' --include='*.rs' --include='*.ex' --include='*.res' --include='*.gleam' --include='*.sh' . 2>/dev/null | head -5 || echo " [OK] No hardcoded paths"
217-
@echo "Diagnostics complete."
206+
sh scripts/doctor.sh
218207

219208
# Auto-repair common issues
220209
heal:

‎PROOF-NEEDS.adoc‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ signature correctness.
5858

5959
|Hexad↔Octad persistence round-trip |`+src/storage/mod.rs+` (proptest)
6060
|*PROOF-PROGRAMME §3.1 (2026-06-04, #122)*:
61-
`+hexad_json_roundtrip_is_identity+` proves the on-disk serde round-trip
62-
(`+write_*_hexad+` → `+load_hexad_dir+`) is the identity on the hexad
63-
JSON. The gateway octad projection is lossy by design, so the faithful
64-
integrity property is the persistence round-trip, not the literal
65-
hexad↔octad map.
61+
`+hexad_json_roundtrip_is_identity+` tests an in-memory
62+
`+serde_json::Value+` serialize/deserialize/serialize round-trip on generated
63+
samples, not by a universal theorem. It does not call `+write_*_hexad+` or
64+
`+load_hexad_dir+`; on-disk persistence correspondence remains a separate
65+
obligation. The gateway octad projection is lossy by design, so this property
66+
also does not establish a faithful hexad↔octad map.
6667
|===
6768

6869
=== What Still Needs Proving

‎QUICKSTART-USER.adoc‎

Lines changed: 55 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,66 @@
11
// SPDX-License-Identifier: CC-BY-SA-4.0
22
// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
3-
// Template: QUICKSTART-USER.adoc — 5-minute path to working software
4-
// Replace panic-attack, Panic Attacker — See README.adoc for details., just run, Panic Attacker started successfully. with actuals
53
= panic-attack — Quick Start for Users
6-
:toc:
7-
:toclevels: 2
84

9-
== What is panic-attack?
5+
panic-attack provides static analysis and optional stress testing. A scan result
6+
is evidence within its reported coverage, not a certificate that a project is safe.
107

11-
Panic Attacker — See README.adoc for details.
8+
== Build the default CLI
129

13-
== Prerequisites
10+
Install Rust and Cargo using your preferred tool manager. The default CLI's
11+
minimum Rust version is declared in `Cargo.toml` (`rust-version`, currently 1.90).
12+
Use a compatible compiler rather than updating every language toolchain.
13+
The optional GUI has additional compiler and system-library requirements.
14+
Scanning a language does not require installing that language's compiler.
1415

15-
Before you begin, ensure you have:
16+
The following commands assume a POSIX shell, Git, Zig configured to compile
17+
native C dependencies through `zig cc`, a working native linker, and access
18+
to the pinned dependencies. The default build compiles C sources from
19+
`tree-sitter-php`. Installing Zig alone does not select it for Cargo's native
20+
dependency build scripts; configure their C compiler before building.
21+
These commands do not require just, mise, or Guix.
1622

17-
* **just** — task runner (https://github.com/casey/just[install guide])
18-
* Platform-specific requirements listed below
19-
20-
[cols="1,3"]
21-
|===
22-
| Platform | Additional Requirements
23-
24-
| Linux
25-
| See README.adoc
26-
27-
| macOS
28-
| See README.adoc
29-
30-
| Windows
31-
| See README.adoc
32-
|===
33-
34-
== Install
35-
36-
=== Option 1: Standard Install (recommended)
37-
38-
[source,bash]
23+
[source,shell]
3924
----
40-
# Clone and set up
4125
git clone https://github.com/hyperpolymath/panic-attack.git
4226
cd panic-attack
43-
just setup
44-
----
45-
46-
The setup script will:
47-
48-
* Detect your platform and shell
49-
* Install missing dependencies (with your permission)
50-
* Configure the application
51-
* Offer install location choices
52-
* Run a self-diagnostic to verify everything works
53-
54-
=== Option 2: Container (via Stapeln)
55-
56-
[source,bash]
57-
----
58-
just stapeln-run
59-
----
60-
61-
=== Option 3: Portable (no system changes)
62-
63-
[source,bash]
64-
----
65-
just install --portable --prefix=./panic-attack-portable
66-
----
67-
68-
== First Run
69-
70-
[source,bash]
71-
----
72-
just run
73-
----
74-
75-
Expected output:
76-
77-
[source]
78-
----
79-
Panic Attacker started successfully.
80-
----
81-
82-
== Self-Diagnostic
83-
84-
If something isn't working:
85-
86-
[source,bash]
87-
----
88-
just doctor
89-
----
90-
91-
This checks all dependencies, permissions, paths, and connectivity.
92-
If it finds issues, it will suggest fixes.
93-
94-
To attempt automatic repair:
95-
96-
[source,bash]
97-
----
98-
just heal
99-
----
100-
101-
== Get Help
102-
103-
* **In-app**: `just run --help`
104-
* **Guided tour**: `just tour`
105-
* **Report a problem**: `just help-me` (pre-fills diagnostic context)
106-
* **Wiki**: https://github.com/hyperpolymath/panic-attack/wiki
107-
108-
== Uninstall
109-
110-
[source,bash]
111-
----
112-
just uninstall
113-
----
114-
115-
You will be asked:
116-
117-
1. Which uninstall tier (Bennett reversible, parameter-based, standard, or secure)
118-
2. Whether to include or exclude your data
119-
3. Whether to clear caches and LLM models
120-
121-
== Next Steps
122-
123-
* Read the link:README.adoc[README] for full feature overview
124-
* Read the link:EXPLAINME.adoc[EXPLAINME] for architecture and design decisions
125-
* Try `just tour` for a guided walkthrough
27+
cargo build --locked --release
28+
./target/release/panic-attack --help
29+
./target/release/panic-attack assail . --fail-on-incomplete --output panic-report.json
30+
----
31+
32+
A self-scan can return findings or incomplete coverage, including from deliberate
33+
test fixtures. Do not interpret a nonzero scan exit as an installation failure;
34+
inspect `panic-report.json` for individual findings and the coverage outcome.
35+
36+
== Optional task runner and installation
37+
38+
With just installed, `just --list` lists the actual recipes. `just install`
39+
builds the default release CLI and copies it to `$HOME/.local/bin`, creating
40+
that directory if needed. Add that directory to PATH yourself if desired.
41+
This recipe does not install prerequisites or offer a portable/prefix option.
42+
43+
`just doctor` checks whether Cargo, rustc, Git and just can run. It returns
44+
nonzero for a missing or broken tool. It does not check compiler compatibility,
45+
network connectivity, runtime safety, or prove a build will succeed.
46+
Use the locked build above to check compiler and dependency compatibility.
47+
The probe disables automatic toolchain installation with rustup 1.28.1 and
48+
later. Older rustup versions and external tool-manager shims may still perform
49+
their own setup; the diagnostic is not a sandbox around those programs.
50+
51+
== Troubleshooting
52+
53+
Record the failing command and its exit code before changing toolchains.
54+
Report problems at https://github.com/hyperpolymath/panic-attack/issues with
55+
the relevant error text. Review any local paths or sensitive details before
56+
sharing logs. Platform details are optional.
57+
58+
The legacy `setup.sh` still installs just through platform package managers;
59+
it is not the cross-platform provisioning interface proposed for the estate.
60+
The direct build path above avoids those automatic package-manager changes.
61+
The existing `heal` recipe is not a targeted dependency repair service.
62+
Do not use it as a substitute for diagnosing a failed build.
63+
64+
There are no `stapeln-run`, `run`, or `uninstall` recipes in this checkout.
65+
To remove a user-local installation, remove only the binary you installed.
66+
See link:README.adoc[README] for features and analysis limitations.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell (hyperpolymath)
2+
// SPDX-License-Identifier: CC-BY-SA-4.0
3+
= Assurance audit repair — 2026-11-04
4+
5+
At base `be6ac46`, local default Rust tests pass 653 cases with three ignored;
6+
signing/http/sarif passes 720 with the same three ignored. These overlapping
7+
counts are not additive coverage. Feature-enabled Clippy passes with warnings
8+
as errors. GUI, distributed Chapel and all dynamic stress axes were not run.
9+
10+
Both scanners ran against both suites and themselves. Every strict run reports
11+
partial coverage. panic-attack analysed 64 files in cicd-suite and 102 in
12+
proven-tests-and-benches, reporting four and three heuristic findings
13+
respectively. Those findings require triage, not automatic defect or proof labels.
14+
15+
Scheduled framework run 41390102464 fails cloning Idris2 branch `0.7.0`.
16+
The pinned installer passes IDRIS2_VERSION directly to git; upstream's release
17+
tag is `v0.7.0`. This caller now supplies the prefix. The producer repository
18+
also receives normalisation and malformed-ref controls; its pin is not silently
19+
advanced here. Hosted framework build/test acceptance remains required.
20+
21+
Idris models and conditional cryptographic premises do not prove that every
22+
Rust scanner path refines them. In particular a proptest round-trip is bounded
23+
property testing, not a universal proof. Hypatia ingestion issue #117 and the
24+
shared execution-evidence contract remain the appropriate integration boundary.
25+
26+
Migration experiment `6addd22` changed three reusable callers to the transferred
27+
Standards owner and deonboarded their lock entries. Runs 41816637511, 41816636052
28+
and 41816634641 still startup-failed; CI Integrity run 41816632936 rejected the
29+
changed lock. The experiment was reverted, preserving the integrity gate.
30+
A coordinated caller/callee-lock/Actions-allowlist migration remains blocked;
31+
repository administration is unavailable through this connection.
32+
33+
The Hexad property-test ledger now describes its actual in-memory serde value
34+
round-trip. It does not execute the file write/load path, and therefore cannot
35+
be credited as on-disk persistence coverage.
36+
37+
GitHub-facing Security and Code of Conduct entry points link the existing
38+
canonical AsciiDoc policies, without inventing new response commitments.
39+
40+
== Installation entrypoint follow-up
41+
42+
At `a61696431a31e5810240ea5b102ce9a57bb7d611`, just 1.36.0 rejects the
43+
Justfile because `ci` is duplicated; `fmt-check` is duplicated too. Neither
44+
recipe is suppressed: the fuller CI dependency list and all-target formatting
45+
check remain. `just assail` no longer converts scanner failures into a
46+
successful "not found" message. Installation creates the user-local bin directory
47+
and builds with the lockfile enforced.
48+
49+
The read-only doctor now fails for absent or nonfunctional tools. It checks
50+
availability, not minimum-version compliance or successful compilation.
51+
Bootstrap recipe selection uses `just --show`; a failed fallback doctor stops
52+
setup before its success report. The user quickstart documents actual commands
53+
and separates the default Rust MSRV from optional GUI requirements.
54+
55+
Local evidence: 15 isolated entrypoint controls pass with upstream just 1.36.0
56+
Linux x86_64 musl archive SHA-256
57+
`bc7c9f377944f8de9cd0418b11d2955adebfa25a488c0b5e3dd2d2c0e9d732da`.
58+
The controls reject each of three counterexamples independently: original
59+
Justfile, original setup.sh with the corrected Justfile, and an always-successful
60+
doctor. POSIX/Bash syntax checks and git diff whitespace checks pass. CI runs
61+
the same controls using the checksum-pinned task runner under a five-minute
62+
job deadline. No Rust compilation, native macOS/Windows execution, actual
63+
package installation, or installer privilege escalation was performed in this
64+
follow-up. Action-lock verification could not run locally without GitHub
65+
authentication; existing action references are unchanged and hosted verification
66+
remains required.
67+
68+
Remaining provisioning work: replace generic latest-tool mise boilerplate;
69+
align developer/maintainer quickstarts; replace broad chmod/cache-deletion heal
70+
with bounded repair plans; integrate canonical provisioning DEED and generated
71+
provider exports; specify opt-in platform disclosure and Bustfile-based diagnosis.
72+
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.

0 commit comments

Comments
 (0)