Skip to content

ci: probe lowercase rust-cache spelling for the startup failure (diagnostic) - #533

Open
hyperpolymath wants to merge 1 commit into
mainfrom
fix/sha-pin-failing-workflows
Open

hyperpolymath wants to merge 1 commit into
mainfrom
fix/sha-pin-failing-workflows

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Rust CI, Chapel CI, Live Provers, MVP Smoke, Proof Safety and Server Boot Gate end in startup_failure on every pull_request run, so the required CI/gate check never reports.

This PR is a diagnostic attempt, not a confirmed fix. Two theories were tested here and both failed:

  1. SHA-pinning every action (earlier commit, since replaced). It made no difference, and the lock gate warns that direct SHA refs can themselves cause startup rejection.
  2. Spelling swatinem/rust-cache in lowercase to match actions.lock (current commit). The six workflows still fail at startup.

The real error text is only in the run's annotations on GitHub. Recommend closing this PR once the cause is found.

Changes

  • Swatinem/rust-cache becomes swatinem/rust-cache in the six workflows (10 lines).

Checklist

  • No secrets, credentials or .env files included

Generated by Claude Code

@gitnotebooks

gitnotebooks Bot commented Nov 27, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/echidna/pull/533

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Pinned actions used in the CI workflows to specific commits, improving consistency in workflow execution. Existing toolchain versions and workflow behaviour remain unchanged.

Six GitHub Actions workflows now reference actions by commit SHA instead of version tag. Existing version comments, configured toolchain versions and action inputs remain unchanged.

Changes: Workflow action pinning

Layer / File(s) Summary
Pin action references across workflows
.github/workflows/chapel-ci.yml, .github/workflows/live-provers.yml, .github/workflows/mvp-smoke.yml, .github/workflows/proof-safety.yml, .github/workflows/rust-ci.yml, .github/workflows/server-boot-gate.yml
Action references use commit SHAs instead of version tags. Existing version comments, toolchain versions and action inputs remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • hyperpolymath/echidna issue 401: The PR updates action references in Rust CI and MVP Smoke, but it does not change the lock file or address the other check failures described in the issue.
Merge Risk: Minimal · up to cf01e

This PR pins GitHub Actions references to commit SHAs in six workflows without changing their behavior. It is low risk, and any failure would be limited to CI. Whether it resolves the startup failures will be shown when the workflows run.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names a diagnostic CI change (lowercase rust-cache spelling) aimed at a startup failure. The changeset does change the rust-cache action reference in the six workflows, but the raw summary d…
Description check Passed The description follows the template sections: Summary, Changes, Checklist. It explains the purpose, names the two theories tested, and states the status of the diagnostic. It omits the Testing sectio…
Full details: Title check

Explanation

The title names a diagnostic CI change (lowercase rust-cache spelling) aimed at a startup failure. The changeset does change the rust-cache action reference in the six workflows, but the raw summary describes SHA-pinning, and the title does not mention that. The title is specific and relates to a real part of the change, so it is partially related. It is a diagnostic probe, not the main intended outcome, and it does not describe the SHA-pinning that the summary describes.

Full details: Description check

Explanation

The description follows the template sections: Summary, Changes, Checklist. It explains the purpose, names the two theories tested, and states the status of the diagnostic. It omits the Testing section, the Screenshots section, and most Required checklist items, which the template expects. The author marks no Required items except the secrets check. The description is mostly complete on purpose, because the PR is a diagnostic. It does not list the template's Testing section, so a reviewer cannot see how the change was verified.

Resolution

Add a Testing section that states what was run and what the workflow runs showed. Tick the Required checklist items that apply, or state why they do not apply to this diagnostic PR. Note that the lowercase spelling change also appears in the summary as a fix attempt, so the Changes section should match the raw summary, which describes SHA-pinning.

Finishing Touches

Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 27, 2026
@linear-code
linear-code Bot marked this pull request as ready for review November 27, 2026 21:30
…ailing workflows

Rust CI, Chapel CI, Live Provers, MVP Smoke, Proof Safety and Server Boot
Gate end in startup_failure on every pull_request run. They are the
workflows that write Swatinem/rust-cache, while actions.lock records the
action as swatinem/rust-cache. Use the locked spelling.
@hyperpolymath
hyperpolymath force-pushed the fix/sha-pin-failing-workflows branch from cf01ebc to 8aa6584 Compare November 27, 2026 21:31
@hyperpolymath hyperpolymath changed the title ci: SHA-pin actions in the six workflows that fail at startup ci: probe lowercase rust-cache spelling for the startup failure (diagnostic) Nov 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

Copy link
Copy Markdown
Owner Author

Dependency audit failing here is not caused by this PR. It reports the url advisory (RUSTSEC-2026-0592) already present in main's Cargo.lock, and the same check is red on main. #532 fixes it, but #532 cannot merge until the required CI/gate check reports, which is the startup failure this PR is probing.


Generated by Claude Code

@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 28, 2026 19:39
Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Nothing to fix from this PR. All 1 failing check(s) are already failing on main, so they aren't caused by your changes.

⏭️ Checks skipped: 1 · already failing on `main` (not caused by this PR)

  • GitHub Actions: Cargo Audit / 0_Dependency audit.txt

These need to be addressed on main (or by whoever owns them), not in this PR.

Repository owner deleted a comment from chatgpt-codex-connector Bot Nov 28, 2026
@hyperpolymath
hyperpolymath enabled auto-merge (squash) November 30, 2026 02:24
hyperpolymath added a commit that referenced this pull request Dec 1, 2026
## Summary

Stacked on #536. Owner decision D9 (2026-11-30): the dispatch integrity
gate accepts `Verified` only. This PR closes the first of the three
remaining fail-open paths: an `Uninitialized` report no longer passes.
An `Uninitialized` report comes from a placeholder manifest hash, and a
placeholder pins nothing.

## Changes

- `src/rust/integrity/solver_integrity.rs`: `integrity_gate` requires
every matching report to be `Verified`. New test
`uninitialized_entry_fails`.
- `docs/PROOF-STATUS.adoc` R1: records D9 and this step.

**Effect today:** none on a production path. All 17 entries in
`config/solver-manifest.toml` are placeholders, and no code in `src/`
calls `with_integrity_checker`, so no dispatch reaches the gate with
reports. Once a checker is wired in, an unpinned binary lowers the trust
level until its hash is pinned.

Still passing, each with its own PR to follow: a prover with no manifest
entry, and no checker configured.

## RSR Quality Checklist

### Required

- [x] Tests pass (`cargo test --lib`: 1339 passed, 0 failed, 3 ignored)
- [x] Code is formatted (`cargo fmt`)
- [x] Linter is clean (`cargo clippy --lib --tests -- -D warnings`: 0
warnings)
- [x] No banned language patterns
- [x] No `unsafe` blocks
- [x] No banned functions
- [x] SPDX headers present (no new files)
- [x] No secrets

### As Applicable

- [x] Documentation updated (`docs/PROOF-STATUS.adoc` R1)

## Testing

Test-first: `uninitialized_entry_fails` was added and failed against
#536's gate (`7 passed; 1 failed`), then passed after the change
(`gate_tests`: 8 passed).

CI note: Rust CI ends in `startup_failure` on `main` too (#533 is
investigating), so `CI/gate` will not report until that is fixed. The
results above are local runs on this commit.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath added a commit that referenced this pull request Dec 1, 2026
…anifest (#539)

## Summary

Stacked on #538 (← #537 ← #536). This is step 1 of three for the last
fail-open path in the dispatch integrity gate, "no checker configured".
On 2026-11-30 the owner chose to wire a checker in before closing that
path.

A checker is useless today: all 17 entries in
`config/solver-manifest.toml` hold `PLACEHOLDER_COMPUTE_ON_FIRST_RUN`,
and nothing ever computes a hash. Under D9 an unpinned binary fails the
gate, so a pinning step must exist first. This PR adds it.

## Changes

- `echidna integrity pin [--manifest PATH] [--solver NAME]... [--force]
[--dry-run]`. An explicit operator step; dispatch never pins, so there
is no trust on first use.
- It replaces a placeholder with the SHAKE3-512 of the binary found now.
- It refuses, writing nothing, when a real hash differs from the binary,
which may mean tampering. `--force` overrides.
- It refuses when a binary cannot be read, or when a solver named with
`--solver` is not found.
- It rewrites the file through `toml_edit`, so comments, order and every
other field are kept.
- `echidna integrity check [--manifest PATH]` prints each binary's
status and exits non-zero on `Tampered`.
- `src/rust/integrity/solver_integrity.rs` gains:
- `PinOutcome` and `IntegrityChecker::pin_entries`, which computes and
writes nothing.
  - `apply_pins`, which rejects an unknown solver.
- `default_manifest_path` (`$ECHIDNA_SOLVER_MANIFEST`, else
`config/solver-manifest.toml`).
  - `PLACEHOLDER_PREFIX`.
- `docs/ENV-VARS.adoc` documents `ECHIDNA_SOLVER_MANIFEST`.
- `toml_edit = "0.25"` becomes a direct dependency; it was already in
`Cargo.lock`.

Next in the stack: load the manifest at startup and attach the checker
(failing loudly when it is unreadable), then close the no-checker path.

## RSR Quality Checklist

### Required

- [x] Tests pass (`cargo test --lib`: 1348 passed, 0 failed, 3 ignored)
- [x] Code is formatted (`cargo fmt --check`)
- [x] Linter is clean (`cargo clippy --all-targets -- -D warnings`: exit
0)
- [x] No banned language patterns
- [x] No `unsafe` blocks
- [x] No banned functions
- [x] SPDX license headers present (new `src/rust/cli/integrity.rs`:
MPL-2.0)
- [x] No secrets

### As Applicable

- [x] Documentation updated (`docs/ENV-VARS.adoc`)
- [x] New dependencies reviewed for licence compatibility (`toml_edit`:
MIT OR Apache-2.0)

## Testing

`pin_tests` (8 tests) cover:

- a placeholder is pinned;
- a matching hash is left unchanged;
- a differing hash is refused without `--force` and replaced with it;
- an absent binary is reported as not found;
- an unknown `--solver` is an error;
- only the named solvers are pinned;
- `apply_pins` keeps the rest of the file byte for byte and rejects an
unknown solver.

The last test caught a real bug: `toml_edit`'s `Item::get_mut` creates a
missing table, so an unknown solver was silently added.

I also ran the built binary end to end against a scratch manifest (a
copy of `/bin/true` as `z3`, plus an absent `cvc5`):

| Step | Result |
|---|---|
| `pin --dry-run` | reports `z3: pinned`, writes nothing, exit 0 |
| `pin` | writes the hash; comments kept; exit 0 |
| `check` | `z3: Verified`, `cvc5: Missing`, exit 0 |
| append a byte to the binary, `check` | `z3: Tampered`, exit 1 |
| `pin` | `REFUSED`, manifest byte-identical, exit 1 |
| `pin --solver cvc5` | `no binary found`, exit 1 |
| `pin --force` | `REPINNED`, exit 0 |

CI note: Rust CI ends in `startup_failure` on `main` too (#533 is
investigating), so `CI/gate` will not report until that is fixed. The
results above are local runs on this commit.

---
_Generated by [Claude Code](https://claude.ai/code)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 2, 2026 08:54
@hyperpolymath
hyperpolymath enabled auto-merge (squash) December 2, 2026 09:04

This branch has not been deployed

No deployments
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.

3 participants