Skip to content

chore(verify-gate): revert TEST-PROOF-* steps to lake build (ELAN_HOME now on runners)#227

Merged
avrabe merged 1 commit into
mainfrom
chore/v0.10.x-revert-lake-build
May 18, 2026
Merged

chore(verify-gate): revert TEST-PROOF-* steps to lake build (ELAN_HOME now on runners)#227
avrabe merged 1 commit into
mainfrom
chore/v0.10.x-revert-lake-build

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented May 18, 2026

Summary

Reverts the sorry-grep workaround introduced in #223 now that smithy runners have Lean toolchain access.

Background

PR #223 introduced two Lean proofs (Latency.lean, Arinc653Isolation.lean) with verification artifacts that intended to run `cd proofs && lake build`. But the rivet verification gate runs on `[self-hosted, linux, x64, rust-cpu]` runners which did not have Lean on PATH, so the gate failed.

The workaround was to substitute:
```yaml
steps:

  • run: "test -f proofs/Proofs/Scheduling/Latency.lean"
  • run: "! grep -E '^[[:space:]]sorry[[:space:]](--.*)?$' proofs/Proofs/Scheduling/Latency.lean"
    ```

— a file-exists + sorry-free smoke check. Functional but not full type-checking.

Smithy fix landed

Smithy commit `dfb0eed`: `ELAN_HOME=/home/ralf/.elan` set in runner env, `ProtectHome=read-only` keeps ralf's shared elan state safe, all 12 runners verified with `lake --version` → Lake 5.0.0-src + Lean 4.29.0-rc6.

What this PR does

Restores the two TEST-PROOF-* artifacts to use `cd proofs && lake build` as their verification step:

```yaml
steps:

  • run: cd proofs && lake build
    ```

The rivet verification gate now runs full Lean typechecking inline, not just a sorry-free smoke. The dedicated "Lean proof typecheck (lake build)" CI workflow remains as defense-in-depth.

Test plan

  • `rivet validate` clean
  • Verification gate runs `cd proofs && lake build` against TEST-PROOF-LATENCY + TEST-PROOF-ARINC653 successfully on this PR

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com

…runners have ELAN_HOME

PR #223 landed a sorry-grep + file-exists workaround for TEST-PROOF-LATENCY
and TEST-PROOF-ARINC653 because the smithy runners didn't have Lean on
PATH for the rivet verification gate.

Smithy's been since fixed (commit dfb0eed): `ELAN_HOME=/home/ralf/.elan`
is now in every runner's env, ProtectHome=read-only protects ralf's
shared elan state, and `lake --version` confirmed working on all 12
runners with Lean 4.29.0-rc6 + Lake 5.0.0-src.

Reverts the workaround to the proper `cd proofs && lake build` step.
The full Lean typecheck now runs inside the verification gate, not
just as a sorry-free smoke. The dedicated "Lean proof typecheck (lake
build)" CI workflow remains as defense-in-depth.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@avrabe avrabe enabled auto-merge (squash) May 18, 2026 05:06
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 211bd51 into main May 18, 2026
16 of 18 checks passed
@avrabe avrabe deleted the chore/v0.10.x-revert-lake-build branch May 18, 2026 11:48
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.

1 participant