Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e1d7779
feat: mint idris2x from the RSR template and land Phase 0
claude Nov 16, 2026
087a772
fix: satisfy Hypatia findings and make prototype scripts shellcheck-c…
claude Nov 16, 2026
0dc08b6
fix(ci): least-privilege wiki publishing, archetype-aware proven self…
claude Nov 16, 2026
8596974
fix(ci): archetype-aware mint preflight test; drop dangling seam refe…
claude Nov 16, 2026
e4b13d8
docs: record the mint preflight-test defect for rsr-template-repo
claude Nov 16, 2026
e40d9d9
fix(ci): classify structural_drift in the Hypatia rule-order policy
claude Nov 16, 2026
93a2adc
fix(test): hypatia-ignore fixture mirrors the paths the shipped file …
claude Nov 16, 2026
011891c
feat(dx): data-driven error messages in the prototype, wording as a t…
claude Nov 16, 2026
777d022
proof(dx): Idris 2 model of provenance-typed diagnostic text
claude Nov 16, 2026
ef81a15
docs(dx): DX principles and the error catalogue; correct two legacy f…
claude Nov 16, 2026
dda6d6b
docs(dx): journeys, adoption plan, ADR 0012 (proposed) and proof-stat…
claude Nov 16, 2026
fce2e87
feat(dx): both message styles for all 17 ids; advice that reviews itself
claude Nov 16, 2026
5cfb1f1
fix(dx): restore the archive link check; drills that catch it; docs f…
claude Nov 16, 2026
04a382c
Merge claude/mint-phase0 into claude/dx-design
claude Nov 16, 2026
05a7b71
docs(wiki): regenerate Error-Reference from errors.toml
claude Nov 16, 2026
5fceb3a
docs(dx): remove stray pipe characters from two table cells
claude Nov 16, 2026
8c95550
fix(dx): shell-quote values placed in fix commands; reword a note Hyp…
claude Nov 16, 2026
30b31a7
DX design: two tested message styles for all 17 error IDs, journeys, …
hyperpolymath Nov 16, 2026
cdce9cc
fix(proof,dx): close the review's three should-fix items and wire the…
claude Nov 17, 2026
52f3320
docs: chaos suite counts now 121 checks (121 of 121 passing, 2026-11-17)
claude Nov 17, 2026
2cf3504
docs: point the Coaptation.idr template defect at its upstream fix (r…
claude Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .clinerules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>
# Copyright (c) 2026 Jonathan D.A. Jewell (metadatastician) <j.d.a.jewell@open.ac.uk>
# Authoritative source: docs/practice/AI-CONVENTIONS.adoc

# STARTUP: Read the repo deed (*_chora.deed at the repo root) first, then docs/status/ROADMAP.adoc.
Expand All @@ -8,7 +8,7 @@
# All original code: MPL-2.0.
# Never AGPL-3.0. MPL-2.0 only as platform-required fallback.
# SPDX header required on every source file.
# Copyright: {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>
# Copyright: Jonathan D.A. Jewell (metadatastician) <j.d.a.jewell@open.ac.uk>

# STATE FILES
# No .a2ml file may exist anywhere: the format is retired. State, metadata,
Expand Down
16 changes: 16 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ reviews:
project's approved language and runtime. Pre-existing third-party
code is not permission to author new Python. Do not demand language
migrations of unrelated upstream dependencies as cosmetic PR work.
- path: "src/**"
instructions: >-
idris2x launcher. Flag any silent fallback, untyped error, network
access on the exec path, inherited IDRIS2_/LD_LIBRARY_PATH/DYLD_ values,
resumed download of a mutable document, or archive extraction without
a containment check. Every failure must map to an ID in
src/errors/errors.toml. Exit codes are append-only.
- path: "src/errors/errors.toml"
instructions: >-
Exit codes must never be renumbered or reused. Each entry needs a
one-line meaning and an exact, copy-pasteable fix. Remind the author to
run scripts/gen-runbooks.sh and scripts/gen-issue-forms.sh.
- path: "docs/wikis/**"
instructions: >-
Wiki source. Check that planned behaviour is labelled as planned, that
commands are copy-pasteable, and that pages stay within their persona.
pre_merge_checks:
docstrings:
mode: warning
Expand Down
8 changes: 4 additions & 4 deletions .devcontainer/Containerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>
# Copyright (c) 2026 Jonathan D.A. Jewell (metadatastician) <j.d.a.jewell@open.ac.uk>
#
# Dev Container image for {{PROJECT_NAME}}
# Dev Container image for idris2x
# Base: Chainguard Wolfi (minimal, supply-chain-secure)
# Build: podman build -t {{PROJECT_NAME}}-dev -f .devcontainer/Containerfile .
# Build: podman build -t idris2x-dev -f .devcontainer/Containerfile .
# `:latest` suits a dev container (rebuilt daily); pin by digest
# (...@sha256:<digest>) if you need a reproducible dev environment.
#
Expand Down Expand Up @@ -44,7 +44,7 @@ RUN set -eu; \
# devcontainer.json maps your host user onto it with --userns=keep-id.

# Set workspace directory
WORKDIR /workspaces/{{PROJECT_NAME}}
WORKDIR /workspaces/idris2x

# Default shell
ENV SHELL=/bin/bash
Expand Down
8 changes: 4 additions & 4 deletions .devcontainer/README.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: CC-BY-SA-4.0
// Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
= Dev Container Usage
:author: {{AUTHOR}} <{{AUTHOR_EMAIL}}>
:author: Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>

== Overview

Expand Down Expand Up @@ -35,7 +35,7 @@ There are two configurations for the same image:
. Install the *Dev Containers* extension (`ms-vscode-remote.remote-containers`).
. Set `dev.containers.dockerPath` to `podman` in VS Code settings.
. Open the repo folder, then choose **Reopen in Container** and pick
**{{PROJECT_NAME}} (Podman)**.
**idris2x (Podman)**.

== devcontainer CLI (Podman)

Expand All @@ -47,7 +47,7 @@ bunx @devcontainers/cli up --workspace-folder . --docker-path podman
== GitHub Codespaces

. From the repository on GitHub, click **Code > Codespaces > ... > New with options**.
. Choose the **{{PROJECT_NAME}} (Docker / Codespaces)** configuration.
. Choose the **idris2x (Docker / Codespaces)** configuration.

== Gitpod

Expand All @@ -56,6 +56,6 @@ bunx @devcontainers/cli up --workspace-folder . --docker-path podman

== Customization

Replace the `{{PROJECT_NAME}}` placeholders in both `devcontainer.json` files and
Replace the `idris2x` placeholders in both `devcontainer.json` files and
the `Containerfile` with your actual project name. `just deps` runs automatically
after the container is created. Run it again to check the environment.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>
// Copyright (c) 2026 Jonathan D.A. Jewell (metadatastician) <j.d.a.jewell@open.ac.uk>
//
// Dev Container configuration for {{PROJECT_NAME}} — rootless Podman (default).
// Dev Container configuration for idris2x — rootless Podman (default).
// Works with: VS Code Dev Containers with `dev.containers.dockerPath` = podman,
// and the devcontainer CLI (`devcontainer up --docker-path podman`).
// Docker, GitHub Codespaces and Gitpod: use .devcontainer/docker/devcontainer.json
Expand Down Expand Up @@ -44,7 +44,7 @@
}
}
},
"name": "{{PROJECT_NAME}} (Podman)",
"name": "idris2x (Podman)",
"postCreateCommand": "just deps",
"remoteUser": "nonroot",
// Rootless Podman maps your host user to root inside the container, so the
Expand Down
6 changes: 3 additions & 3 deletions .devcontainer/docker/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) {{CURRENT_YEAR}} {{AUTHOR}} ({{OWNER}}) <{{AUTHOR_EMAIL}}>
// Copyright (c) 2026 Jonathan D.A. Jewell (metadatastician) <j.d.a.jewell@open.ac.uk>
//
// Dev Container configuration for {{PROJECT_NAME}} — Docker engines.
// Dev Container configuration for idris2x — Docker engines.
// Works with: GitHub Codespaces, Gitpod, and VS Code Dev Containers on Docker.
// The estate default is rootless Podman: .devcontainer/devcontainer.json.
// Same image (../Containerfile); only the user-namespace settings differ.
{
"name": "{{PROJECT_NAME}} (Docker / Codespaces)",
"name": "idris2x (Docker / Codespaces)",

"build": {
"dockerfile": "../Containerfile",
Expand Down
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MPL-2.0
# Hyperpolymath estate canonical .editorconfig (standards#343 phase 1)
# Canon lives in rsr-template-repo; do not add a per-repo name to this header.
# Canon lives in idris2x; do not add a per-repo name to this header.
# https://editorconfig.org

root = true
Expand Down
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if has guix && [ -f build/manifest.scm ]; then
fi

# Project environment variables
export PROJECT_NAME="{{PROJECT_NAME}}"
export PROJECT_NAME="idris2x"
export RSR_TIER="infrastructure"
# Add non-secret project env vars above (e.g. DATABASE_URL, service endpoints).
# Real secrets belong in .env (gitignored) — never commit them to .envrc.
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MPL-2.0 (code)
# SPDX-License-Identifier: CC-SA-BY-4.0 (prose)
# Hyperpolymath estate canonical .gitattributes (standards#343 phase 1)
# Canon lives in rsr-template-repo; do not add a per-repo name to this header.
# Canon lives in idris2x; do not add a per-repo name to this header.
#
# Only diff drivers that git actually ships are used here. MEASURED on git
# 2.47.3: diff=go and diff=zig are NOT drivers (git silently falls back to the
Expand Down
14 changes: 7 additions & 7 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# CODEOWNERS - Define code review assignments
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
#
# Replace {{OWNER}} with your GitHub username or team
# Replace metadatastician with your GitHub username or team

# Default owners for everything
* @{{OWNER}}
* @metadatastician

# Security-sensitive files require explicit review
SECURITY.md @{{OWNER}}
.github/workflows/ @{{OWNER}}
.machine_readable/contractiles/trust/ @{{OWNER}}
*_chora.deed @{{OWNER}}
.machine_readable/ @{{OWNER}}
SECURITY.md @metadatastician
.github/workflows/ @metadatastician
.machine_readable/contractiles/trust/ @metadatastician
*_chora.deed @metadatastician
.machine_readable/ @metadatastician
6 changes: 3 additions & 3 deletions .github/GOVERNANCE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
-->
# Project Governance

This document describes the governance model for **{{PROJECT_NAME}}**.
This document describes the governance model for **idris2x**.

---

## Project Governance Model

{{PROJECT_NAME}} follows a **Benevolent Dictator For Life (BDFL)** governance model.
idris2x follows a **Benevolent Dictator For Life (BDFL)** governance model.
This model is well-suited for solo maintainers and small project teams where rapid,
consistent decision-making is more valuable than formal consensus processes.

Expand Down Expand Up @@ -157,4 +157,4 @@ with the community before adoption, even though the BDFL retains final authority

---

<sub>Copyright (c) {{CURRENT_YEAR}} {{OWNER}}. Licensed under MPL-2.0.</sub>
<sub>Copyright (c) 2026 metadatastician. Licensed under MPL-2.0.</sub>
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/canary_failure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-License-Identifier: CC-BY-SA-4.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
name: Canary or churn-drill failure
description: A canary failed on a capsule, or an upstream asset changed. Used by humans and by the maintenance agent.
title: "[canary] <canary-name> on <target> (idris2@<v>, chez@<v>)"
labels: ["area:canary", "needs-triage"]
body:
- type: markdown
attributes:
value: |
Keep the title format exactly: the maintenance loop de-duplicates on it. One issue per canary and target.
- type: dropdown
id: canary
attributes:
label: Canary
options: [pure_eval, chez_codegen, refc_codegen, c_ffi_support, ipkg_multi_module, relocatable_artifact, prelude_base, concurrent_build, unicode_paths, large_module, chez_threads, version_match, "churn drill (upstream asset changed)"]
validations:
required: true
- type: input
id: digest
attributes:
label: Capsule digest
placeholder: "sha256:0dc9ae68..."
validations:
required: true
- type: textarea
id: record
attributes:
label: Failure record
description: Stage, triple, versions, log excerpt, host fingerprint (the JSON the canary runner emits).
render: json
validations:
required: true
- type: dropdown
id: class
attributes:
label: First classification
options: ["data fix (channel patch)", "engine fix (launcher)", "upstream outage or regression", "flaky / infrastructure", "unknown"]
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/capsule_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: CC-BY-SA-4.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
name: Request a capsule (new Idris 2 version or target)
description: Ask for an Idris 2 release, a Chez Scheme pairing or a platform that has no capsule yet.
title: "[capsule] idris2@<version> on <target>"
labels: ["enhancement", "area:capsule", "needs-triage"]
body:
- type: markdown
attributes:
value: |
Capsules are built from pinned upstream sources and are immutable once published. Adding one is a
Class B change (one human approval) after the full canary matrix passes. New *targets* change the
support matrix (`src/definitions/targets.toml`) and are Class C: they need an ADR.
- type: input
id: version
attributes:
label: Idris 2 version or tag
placeholder: "0.8.0"
validations:
required: true
- type: dropdown
id: target
attributes:
label: Target
options: ["x86_64-unknown-linux-gnu", "aarch64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-pc-windows-msvc (Tier 2)", "Other (describe below)"]
multiple: true
validations:
required: true
- type: textarea
id: why
attributes:
label: What do you need it for?
description: CI, teaching, a paper, a production service... It decides priority and tier.
validations:
required: true
- type: textarea
id: host
attributes:
label: Host details for unusual targets
description: OS release, libc and version (`ldd --version`), CPU, container base image.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
blank_issues_enabled: true
contact_links:
- name: Security vulnerability
url: https://{{FORGE}}/{{OWNER}}/{{REPO}}/security/advisories/new
url: https://github.com/metadatastician/idris2x/security/advisories/new
about: Report privately via a security advisory. Do NOT open a public issue.
- name: Question or support request
url: https://{{FORGE}}/{{OWNER}}/{{REPO}}/discussions
url: https://github.com/metadatastician/idris2x/discussions
about: Ask a question. See .github/SUPPORT.md for what to expect.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/dx_feedback.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-License-Identifier: CC-BY-SA-4.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
name: Developer experience feedback
description: An error message, prompt, output or flow that confused you, slowed you down, or could be clearer.
title: "[dx] <the moment that went wrong>"
labels: ["area:dx", "needs-triage"]
body:
- type: markdown
attributes:
value: |
We treat confusing output as a bug. Tell us what you saw, what you thought it meant, and what you did next.
Installation, uninstallation, CI setup, offline use and debugging are all in scope.
- type: dropdown
id: moment
attributes:
label: Which moment?
options: ["First install", "Uninstall / cleanup", "Pinning or upgrading a version", "Running the compiler", "CI setup", "Offline or air-gapped use", "An error message", "doctor / selftest output", "Documentation or wiki", "Other"]
validations:
required: true
- type: textarea
id: saw
attributes:
label: What you saw (verbatim)
render: shell
validations:
required: true
- type: textarea
id: understood
attributes:
label: What you understood it to mean, and what you did next
validations:
required: true
- type: textarea
id: wished
attributes:
label: What would have helped (optional)
- type: dropdown
id: env
attributes:
label: Terminal / environment
options: ["Interactive terminal", "CI log", "Screen reader", "NO_COLOR or monochrome", "Narrow terminal (< 80 columns)", "Non-English locale", "Other"]
multiple: true
Loading
Loading