Skip to content

ci: make CI genuinely green — rust-ci toolchain pin + canonical Julia ABI-FFI gate + fmt/clippy#46

Merged
hyperpolymath merged 9 commits into
mainfrom
claude/new-session-znxgm7
Jun 28, 2026
Merged

ci: make CI genuinely green — rust-ci toolchain pin + canonical Julia ABI-FFI gate + fmt/clippy#46
hyperpolymath merged 9 commits into
mainfrom
claude/new-session-znxgm7

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Make CI genuinely green. The shared rust-ci pin on main predates standards#439, so the SHA-pinned dtolnay/rust-toolchain step errors out before the job runs. This bumps the pin so rust-ci actually runs, replaces the estate-banned Python ABI-FFI gate with the canonical Julia gate (matches verisimiser), and brings the Rust sources to fmt + clippy(-D warnings) clean.

Changes

  • rust-ci: bump rust-ci-reusable.yml pin d135b058dc2bf0 (current standards HEAD; includes #439 toolchain fix + #441/#442).
  • ABI-FFI gate: remove scripts/abi-ffi-gate.py (Python banned estate-wide); add scripts/abi-ffi-gate.jl (behaviour-identical Julia port); workflow installs Julia 1.11.5. Matches verisimiser's canonical gate.
  • demo input: the bundled examples/data-pipeline/pipeline.py is the Python pipeline julianiser wraps into Julia — kept, with a hypatia:ignore pragma marking it a demo input fixture (not estate code).
  • Rust hygiene: cargo fmt + clippy --fix where the repo had pre-existing drift, so cargo fmt --all -- --check and cargo clippy --locked --all-targets -- -D warnings pass.

RSR Quality Checklist

Required

  • Tests pass (cargo test --locked --all-targets)
  • Code is formatted (cargo fmt --all -- --check)
  • Linter is clean (cargo clippy --locked --all-targets -- -D warnings)
  • No banned language patterns (removes the Python gate; demo input pragma'd)
  • SPDX license headers present on new/modified files
  • No secrets, credentials, or .env files included

As Applicable

  • ABI/FFI changes validated (gate logic preserved; conformance OK)

Testing

Verified locally with the toolchain CI uses (cargo 1.94.1, rustfmt 1.8.0): cargo fmt --check, clippy -D warnings, cargo check --locked, cargo test --locked all pass.

🤖 Generated with Claude Code


Generated by Claude Code

claude and others added 8 commits June 27, 2026 19:32
Add the flagship Layer-2 semantic proof for julianiser. Models a shared
arithmetic + array-indexing expression AST with two evaluators: evalSrc
(Python/R, 0-based indexing) and evalJulia (translated Julia, 1-based
indexing). Proves the headline correctness property:

    translatePreserves : (env) -> (e) ->
      evalSrc env e = evalJulia env (translate e)

as a genuine propositional equality by structural induction, with the
index case discharged by the 0-to-1 re-basing round-trip lemma
(juliaRoundTrip), mirroring IndexRemapCorrect in Types.idr.

Includes a sound certifier (certifyEquiv/certifyEquivSound), a positive
control (sampleAgrees, fully evaluated 10*2+30=50), and a negative
control: a deliberately unshifted "buggy" Julia evaluator together with
buggyDivergesWitness proving it genuinely diverges (30 /= 20). The
property is non-vacuous: an adversarial Refl claiming the buggy
translation preserves results is rejected by idris2 (Mismatch 20 vs 30).

No believe_me/postulate/assert_total. Builds clean, zero warnings.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
…ss checker

Raises the julianiser Idris2 ABI from Layer 2 to Layer 3 with a new
Julianiser.ABI.Invariants module built over the existing Semantics model
(no datatypes redefined). Proves three deeper, distinct properties:

- Compositionality: translate is a homomorphism over syntactic linking
  (translateHom) and correctness is closed under composition
  (preserveCompose) — a modular argument, not the Layer-2 induction.
- Determinism: evalJulia congruence + pipeline determinism, plus
  translate injectivity (deterministic, information-preserving codegen).
- A second sound+complete Dec checker for faithful (source,julia) pairs
  (decFaithful + soundness + completeness), with DecEq for JExpr/JuliaIdx.

Includes positive controls (composite round-trip via preserveCompose,
homomorphism Refl, faithful acceptance) and negative/non-vacuity controls
(translate injectivity disequality, checker rejection). %default total,
no believe_me/postulate/assert. Clean build, zero warnings; adversarial
false-equality check rejected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
Prove the FFI result-code wire encoding is sound for Julianiser:
- intToResult decoder + resultRoundTrip: faithful/lossless round-trip
- resultToIntInjective: derived from round-trip via cong + justInj
- positive controls (decode 0/6/7) and negative non-vacuity controls
  (distinct codes have distinct ints, machine-checked)

Genuine proof only; no believe_me/postulate/etc. %default total, zero
warnings. Julianiser has only Result/resultToInt as an FFI enum encoder
(no ProofStatus/statusToInt), so clause (c) is vacuous.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
Assemble the existing per-layer proofs into one inhabited value
`abiContractDischarged : ABISound`, wiring the flagship semantic
preservation (Semantics.sampleAgreesGeneric), the Layer-3 invariants
(Invariants.compositeAgrees compositionality + translateInjective
deterministic codegen), and the Layer-4 FFI seam injectivity
(FfiSeam.resultToIntInjective) into a single end-to-end soundness
statement. No new domain theorem; genuine composition only. Builds with
zero warnings; a false-certificate adversarial probe is rejected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
…ble fix); port ABI-FFI gate Python->Bash (Python is estate-banned); exempt demo Python pipeline input via hypatia:ignore pragma

Resolves the standing baseline CI reds (rust-ci toolchain error, governance
Language/anti-pattern, governance workflow-lint) without altering the proven
ABI. The Bash gate reproduces the former Python gate's verdict verbatim
(validated across all -iser repos) and catches the same drift classes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A6PSzJWpRxtzGDjUCEh7Mx
@hyperpolymath hyperpolymath marked this pull request as ready for review June 28, 2026 09:24
@hyperpolymath hyperpolymath merged commit f4551d4 into main Jun 28, 2026
4 checks passed
@hyperpolymath hyperpolymath deleted the claude/new-session-znxgm7 branch June 28, 2026 09:24
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.

2 participants