Skip to content
metadatasticianPublic

About

idris2x materializes an exact Idris 2 + Chez Scheme toolchain from a lockfile and runs it.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

idris2x

Code licence: MPL-2.0 Docs licence: CC-BY-SA-4.0 Quantum-Safe Provenance

Rhodium Standard Repository K9 conformance OpenSSF Scorecard SonarQube Quality Gate Archived in Software Heritage

Green Web

One command, exactly the compiler you pinned, or a loud error that tells you how to fix it.

idris2x materializes an exact Idris 2 + Chez Scheme toolchain from a lockfile and runs it. It downloads an immutable, signed, self-testing capsule, verifies it, unpacks it atomically into a content-addressed cache, runs canaries, and execs the real compiler. It needs no system Chez, no sudo, no Nix and no mise. It works offline and air-gapped, and it is designed so that existing pins keep working even if this project is abandoned.

Important

Status: Phase 0 complete, Phase 1 not started. The design is pinned in nine ADRs (0004–0012, two still proposed) and was tested on real builds: 121 chaos checks and 11 of 12 canaries pass against a prototype launcher (bash) and a real Linux x86_64 capsule. The Rust launcher, the capsule factory CI and published capsules do not exist yet. Nothing below the "Planned" line is usable today. Unofficial; not affiliated with the Idris 2 or Chez Scheme projects.

Why

Installing Idris 2 today means building it from source against whichever Chez Scheme your system happens to have (pack, distro packages, Homebrew), and the compiler bakes absolute paths into everything it produces. idris2x treats a compiler toolchain as an artifact with a digest, not a package: the same lockfile gives the same compiler on a laptop, in CI, on a server and in an air-gapped lab, years apart.

Five invariants

ID Invariant Meaning

I1

No silent drift

What executes is exactly the pinned digest, or nothing.

I2

Atomic or absent

The store never contains half-state. Interrupted installs are garbage by definition.

I3

Loud by default

Every failure is a typed error with a stable ID, an exit code, a runbook and the exact fix command.

I4

The past never breaks

Old digests run under new launchers. A lockfile plus capsule bytes is sufficient forever.

I5

Verify before trust

Signature, digest and probes before first execution.

Planned usage (Phase 1)

idris2x init                          # scaffold idris2x.toml
idris2x pin 0.8.0                     # verify the signed channel, write idris2x.lock
idris2x exec --locked -- idris2 --check src/Proof.idr
idris2x doctor --json                 # fingerprint, probes, exact fix commands
idris2x fetch -o bundle.tar.gz        # air-gap prefetch; then: idris2x install --from bundle.tar.gz
idris2x gc --keep-last 3              # reclaim the store

Today the same surface exists as a tested prototype for Linux: scripts/proto/idris2x.sh.

What Phase 0 established

  • Upstream ships no Linux or macOS binaries of either project, so capsules are built from pinned sources: Chez 10.4.1 in 164 s, Idris 2 v0.8.0 in 604 s on four cores.

  • Relocation works without patching: Chez 10 finds its boot files relative to the executable, and Idris 2 honours IDRIS2_PREFIX at runtime. The launcher execs scheme --program idris2.so directly with an environment it resets (ADR 0005).

  • A Linux x86_64 capsule is 137 MB unpacked and 35 MB gzip; a cold install from a mirror takes 3.3 s.

  • Nine assumptions of the original plan were refuted or corrected with primary sources; the launcher is Rust, per the estate language policy (ADR 0011).

Full evidence: Phase 0 report.

Documentation

You are Start at

A user (developer, student, researcher)

Wiki → Getting started, Install, Uninstall, Troubleshooting

A platform maintainer (CI fleets, mirrors, air-gapped labs)

Wiki → Platform maintainers; threat model

A contributor

CONTRIBUTING; ADRs; prototype

A theorist

Wiki → Theory: the formal model; proof status

Maintaining this project

MAINTAINERS (the abandonment contract)

An AI agent

CLAUDE.md, then the deed idris2x_chora.deed

The wiki is generated from docs/wikis/ so it is reviewed like code.

Governance badges

The K9 conformance badge in the row at the top becomes live after just repo-init replaces the owner and repository placeholders in its URL, GitHub Pages is enabled with source "GitHub Actions", and an eligible push to main publishes it. .github/workflows/dogfood-gate.yml stages it and .github/workflows/pages.yml deploys it with the repository’s GitHub Pages site; it is read back through the shields endpoint.

Badge What it means

green success

The K9 lane ran for that commit on main and passed.

red failure

The K9 lane ran for that commit on main and failed.

grey skipped, cancelled, unavailable, unknown

That commit produced no trustworthy K9 result. Grey is not "pending" and not a stale green: a skipped, cancelled or unavailable lane replaces an earlier green badge with grey.

  • The badge is generated output, served from the Pages site. It is not written to a branch because the estate’s branch ruleset requires a pull request for every branch write; a Pages deployment is not one.

  • Nothing in the badge pipeline can turn a failing validation green: only a lane that ran and passed, with its artifact present, renders brightgreen.

The full operational contract - the exact state table, how API errors are classified, how concurrent publications are serialised, and how to repair a bad file - is in .github/workflows/README.adoc.

Repository map

The authoritative map is generated, so it cannot drift from the tree: docs/architecture/REPOSITORY-MAP.adoc (regenerate with just repo-map; CI fails if it is stale).

Path What lives there

src/

The Rust launcher (Phase 1); src/errors/errors.toml (error taxonomy), src/definitions/targets.toml (support matrix), src/contracts/channel-v1.schema.json (signed channel schema).

tests/canaries/

The twelve atomic canaries every capsule must pass.

scripts/proto/

The Phase 0 prototype launcher, capsule factory and chaos suite.

docs/decisions/, docs/status/, docs/runbooks/

ADRs; evidence and tracking; one runbook per error ID (generated).

docs/wikis/

Source of the GitHub wiki.

.machine_readable/, idris2x_chora.deed

Machine-readable identity, contractiles and policies.

build/, Justfile, .github/

Every task runs through just; CI.

Licence

Code, configuration and scripts are Mozilla Public License 2.0 (MPL-2.0); prose documentation is CC-BY-SA-4.0. Capsules redistribute Chez Scheme (Apache-2.0 with NOTICE, plus LZ4 BSD-2, Nanopass MIT, zlib) and Idris 2 (BSD-3-Clause) under their own licences, shipped verbatim inside each capsule. Long-term attribution uses Quantum-Safe Provenance — see the Quantum-Safe Provenance exhibit.

About

idris2x materializes an exact Idris 2 + Chez Scheme toolchain from a lockfile and runs it.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages