Skip to content

wave-13: toolchain & compilation gate (Dockerfile.rust + rings-rust CI matrix) #713

Closed

Description

@gHashTag

Why

Wave 11 sealed 12 Rust crates (ring-088..ring-099, ≈ 9 930 LOC, uncompiled) and Wave 12 / Track C added 5 more (ring-100..ring-104, 822 LOC, uncompiled). The repo currently carries 17 Rust crates that have never been compiled in CI — recorded honestly in README.md and docs/NOW.md.

Wave 13 closes that gap: bring a Rust toolchain into CI, run cargo check / cargo test for every rings/ring-*-rust crate, and publish per-crate status to rings/COMPILE_STATUS.md. This was originally scoped as Wave 12 / Track D in #710; promoting it to its own wave to keep the deliverable atomic.

Deliverables

  1. Dockerfile.rust — based on rust:1.83-bookworm, pins toolchain via rust-toolchain.toml (already in repo). Used by CI and reproducible locally.
  2. .github/workflows/rings-rust.yml — discovers rings/ring-*-rust/ via a matrix generator, runs cargo check + cargo test per crate inside the image. Continues on per-crate failure so the matrix surfaces all failing crates in a single CI run (exit 0 — status is published, not enforced, until exit criteria below are met).
  3. scripts/ci/rings_matrix.py — pure-Python (no deps); outputs GitHub Actions matrix JSON for the workflow.
  4. rings/COMPILE_STATUS.md — living per-crate cargo check / cargo test status table. Regenerated by Wave 14 once the matrix CI is green.

Honest scope

  • This PR ships infrastructure only. It does not fix cargo check errors in the 17 existing crates — that's Track A of Wave 12 (still open).
  • The new workflow is non-blocking (uses continue-on-error: true per matrix entry) to surface the real state of every crate without bricking PRs.
  • The 17 crates are still NOT added to root [workspace].members — they are built standalone (cargo check --manifest-path …) so the bootstrap workspace stays intact.

Exit criteria for Wave 13

  • Dockerfile.rust exists, builds (locally or in CI), and contains rustc 1.83.
  • rings-rust.yml runs and produces a job per rings/ring-*-rust/ crate.
  • rings/COMPILE_STATUS.md exists with placeholder rows that the workflow can refresh later.
  • All existing CI gates (Issue Gate, L1, NOW-Sync, PHI Loop, schema, seal coverage) stay green.

Compliance

  • L1 TRACEABILITY — PR will cite Closes #<this>.
  • L2 GENERATION — zero edits under gen/, coq/, trios-coq/, proofs/, bootstrap/, specs/, conformance/.
  • L3 PURITY — ASCII source, English text in CI files.
  • L4 TESTABILITY — new workflow exercises #[test] blocks across all rings crates.
  • L5 IDENTITY — every existing ring crate already contains identity_witness() asserting φ² + 1/φ² = 3; the matrix CI exercises it.
  • L6 CEILING — no numeric kernel changes.
  • L7 UNITY — one new *.sh-free Python helper under scripts/ci/ (consistent with the only existing precedent there, now-sync-gate-diff.sh is pre-existing; new entry is .py to honor L7's preference for non-shell).
  • NOW Sync Gate — docs/NOW.md will be updated in the same PR.

Activity

  1. added a commit that references this issue on May 22, 2026
    082f658
  2. added 2 commits that reference this issue on Jun 1, 2026
    951679a
    2c6db10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions