Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
ab3ebed
R3: RB-20, RB-19, BS-09, the types of the std runtime as source: regi…
claude Oct 23, 2026
33eec1a
WIP H5a: the types of the std runtime as source (RuntimeStd), the ass…
claude Oct 23, 2026
67cee20
H5a: the VERIFICATION entry for RuntimeStd, the associated-call rule,…
claude Oct 23, 2026
81cf916
H5a: rustfmt
claude Oct 23, 2026
5668466
H5b: the number text in RuntimeStd, and the transcripts: every harnes…
claude Oct 23, 2026
ded425e
Restore the lock files (relocked locally for the measurements; regene…
claude Oct 23, 2026
04ffd59
R3: RB-21, the runtime text is printed and never held: the register r…
claude Oct 23, 2026
62e9b78
H5b: the handwritten runtime is gone: tests/rust-runtime-oracle remov…
claude Oct 23, 2026
f6c8411
H5b: the VERIFICATION entry for the golden transcripts and RB-21, CHA…
claude Oct 23, 2026
e374c50
H5b: rustfmt
claude Oct 23, 2026
39f9e5f
H5b: clippy (while let in the literal reader)
claude Oct 23, 2026
3cd9dbb
Merge remote-tracking branch 'origin/claude/issue-91-stage4-heap-h4b'…
claude Oct 23, 2026
ceb5d6d
H5b: one content-addressed golden transcript written by check-golden …
claude Oct 23, 2026
ed187d2
VERIFICATION: the oracle and the differential run behind the golden t…
claude Oct 23, 2026
99f9556
VERIFICATION: say what was observed
claude Oct 23, 2026
aeca369
VERIFICATION: the certificate of RuntimeValidate against the limit
claude Oct 23, 2026
b493772
VERIFICATION: four definitions
claude Oct 23, 2026
9f79c0f
Review of #298: the 44 crates, the first failing lines of the H5b pla…
claude Oct 23, 2026
befb1a0
WIP H6: machine primitives formatDecimal, parseDecimal, parseDecimalI…
claude Oct 23, 2026
fc276d2
WIP H6: drop a stray generator output
claude Oct 23, 2026
45f2f07
lexlean fmt: bootstrap/src/RustValidate.lex.tex in canonical layout
claude Oct 23, 2026
1e32dc3
Merge remote-tracking branch 'origin/claude/issue-91-stage4-heap-h5' …
claude Oct 23, 2026
1130706
R3: SP-30, every runtime item has its refinement statement (register …
claude Oct 23, 2026
accde14
R3: SP-29 and RB-20 name format_int and the machine primitive formatD…
claude Oct 23, 2026
0f38e4a
Tests first: format_int in the laws and the harness of the std runtime
claude Oct 23, 2026
a9415a7
H6: format_int, the integers decimal text, is a machine call with its…
claude Oct 23, 2026
a09ad68
H6: the RB-20 plant of format_int, the free-function lookup, the BS-0…
claude Oct 23, 2026
503e15a
SPEC 17.17 and CHANGELOG: format_int, families 26 to 43, and SP-30
claude Oct 23, 2026
b736ca1
H6: one definitions list of 63 of the 73 names for the 32 refines_ th…
claude Oct 23, 2026
0ba2ddf
VERIFICATION: H6, the number functions, format_int, the pruned list, …
claude Oct 24, 2026
5c6c990
README: the preservation range is SP-01..SP-30
claude Oct 24, 2026
d42f55f
RB-20: the plant 'an index that finds the next position' without the …
claude Oct 24, 2026
624d1f7
Merge remote-tracking branch 'origin/claude/issue-91-stage4-heap-h5' …
claude Oct 24, 2026
65d4e16
bootstrap/RustValidate: one ) too many at the end of machineName and …
claude Oct 24, 2026
609968e
rustfmt: the format_int plant of RB-20
claude Oct 24, 2026
df5eb15
Merge heap-h4b into heap-h5
claude Oct 24, 2026
1c00164
BS-09 after the merge of heap-h4b: 103 named crates, 564 of 703 refus…
claude Oct 24, 2026
5536429
Merge heap-h5 into heap-h6
claude Oct 24, 2026
c9a1d16
BS-06 on heap-h6: the twin follows the decimal machine families 40 to…
claude Oct 24, 2026
9706366
CHANGELOG: the validator runs of the committed corpus are 470 and 333…
claude Oct 24, 2026
c7b5e25
README: the RB range ends at RB-21 (conformance_rp_11)
claude Oct 24, 2026
317bdf6
Merge heap-h5 into heap-h6
claude Oct 24, 2026
4faf018
README: the SP range ends at SP-30 (conformance_rp_11)
claude Oct 24, 2026
8fe97c3
Merge heap-h4b into heap-h5; the register is 457
claude Oct 24, 2026
b58fe0f
Merge heap-h5 into heap-h6; the register is 458
claude Oct 24, 2026
8f166c0
Merge heap-h4b into heap-h5
claude Oct 24, 2026
f41a9d3
Merge heap-h5 into heap-h6
claude Oct 24, 2026
99bafaa
Merge heap-h4b into heap-h5
claude Oct 25, 2026
20b23c0
Merge heap-h5 into heap-h6
claude Oct 25, 2026
b2b37c6
Merge origin/release/v0.4 (201519a1b, #297) into heap-h5
claude Oct 25, 2026
3aa03f5
Merge heap-h5 into heap-h6
claude Oct 25, 2026
bb0994f
Merge origin/release/v0.4 (71c6bd8db, 0.4.0) into heap-h5
claude Oct 25, 2026
15e7ad9
Merge heap-h5 into heap-h6
claude Oct 25, 2026
c5bf74b
Landing #91 H5: the renderer and runtime records move the compiler-se…
claude Oct 25, 2026
4dbe749
Landing #91 H5: the normalized verification records of every project …
claude Oct 26, 2026
ca43132
Landing #91 H5: the Atlas verification records, joined from the thirt…
claude Oct 26, 2026
55be50a
Merge origin/release/v0.4 (93fbe7df9, the 0.4.0 tag commit) into heap-h5
claude Oct 26, 2026
93e39cf
RB-21: the scan's repo-relative paths use forward slashes on every host
claude Oct 26, 2026
9d05c19
release.yml: the release's evidence is the gate run of the tagged com…
claude Oct 26, 2026
660e793
RP-18: the planted failed job is a host, so that only the reading of …
claude Oct 26, 2026
cb2afca
RP-18: a planted run missing one leg, so that only the reading of eve…
claude Oct 26, 2026
8662522
VERIFICATION: the release gate reads the gate run of the tagged commi…
claude Oct 26, 2026
5c5d76e
Merge pull request #298 from UOR-Foundation/claude/issue-91-stage4-he…
afflom Oct 26, 2026
865ab59
Merge origin/release/v0.4 (5c5d76e64, #298 landed) into the release-g…
claude Oct 26, 2026
4fd1430
Merge origin/release/v0.4 (5c5d76e64, #298) into heap-h6
claude Oct 26, 2026
8f57903
Merge pull request #320 from UOR-Foundation/claude/release-gate-evidence
afflom Oct 26, 2026
e8065b7
CHANGELOG: the 0.4.0 cut carries H5 (#298) and the release-workflow f…
claude Oct 26, 2026
d985f95
CHANGELOG: H6 is the number functions as machine calls with their ref…
claude Oct 26, 2026
aa6593e
Merge pull request #321 from UOR-Foundation/claude/release-notes-h5
afflom Oct 26, 2026
ee43a55
Landing #91 H6: the renderer and runtime records move the compiler-se…
claude Oct 26, 2026
e06c20e
release-gate.sh ends the evidence with the line the release criterion…
claude Oct 26, 2026
9819af4
Landing #91 H6: the normalized verification records of every project …
claude Oct 26, 2026
9132e96
Merge origin/release/v0.4 (aa6593e02, the v0.4.0 tag commit) into hea…
claude Oct 26, 2026
e0b74b8
Merge pull request #323 from UOR-Foundation/claude/release-evidence-line
afflom Oct 26, 2026
836d2a3
Landing #91 H6: the fixtures again, written from this tree
claude Oct 26, 2026
6a6bb02
Landing #91 H6: the Atlas verification records, joined from the thirt…
claude Oct 26, 2026
7778e1a
Merge origin/release/v0.4 (e0b74b81e, the v0.4.0 tag commit) into hea…
claude Oct 26, 2026
a1b925d
Merge pull request #304 from UOR-Foundation/claude/issue-91-stage4-he…
afflom Oct 26, 2026
d2a564b
Merge release/v0.4 (a1b925dc6: H5, the release-workflow fixes, H6) in…
claude Oct 26, 2026
8ca2286
Forward merge: the locks, records, goldens, packages, fixtures, and p…
claude Oct 27, 2026
809c852
Forward merge: the normalized verification records of every project b…
claude Oct 27, 2026
83f9b26
RP-14, RP-18: the decision cases hold the environment reader lock
claude Oct 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
124 changes: 124 additions & 0 deletions .github/release-gate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#!/usr/bin/env bash
# The release's CI evidence (SPEC.md §30.3): the run of `ci.yml` that was the
# whole gate on the tree of the tagged commit and passed every job, written
# with its jobs and the transcripts of its legs as `vv-evidence.txt`.
#
# The release workflow runs no recipe of the gate itself. Run whole on one
# hosted runner, `just vv` exceeds the six-hour job limit: the `bdd` recipe
# alone took over four hours in a rehearsal, and Atlas follows it. The gate
# of the line (§9.4) has already verified the tree as the parts of one run,
# and this script finds that run under the rule `.github/ci-plan.sh` applies
# to a push: a run on the commit itself, or, when the commit is a merge whose
# tree is the tree of its second parent, a run on that parent. A run counts
# when every job of it concluded `success` and it holds the join of Atlas,
# every host of the matrix, and every leg of `.github/vv-rows.json`; a
# draft run, which has only the `rest` leg, never does. A tag on a commit no
# such run verified is refused, naming what was looked for.
#
# Inputs, all from the environment: REPO (owner/name), SHA (the tagged
# commit), OUT (the evidence file to write), and the lines of the header:
# REF and RELEASE_RUN. `LEXLEAN_CI_ROWS` and `LEXLEAN_CI_WORKFLOW` name the
# legs file and the workflow when a test runs the script elsewhere. `gh`
# reads the runs, the jobs, and the artifacts (`actions: read`).
set -euo pipefail

rows_file=${LEXLEAN_CI_ROWS:-.github/vv-rows.json}
workflow=${LEXLEAN_CI_WORKFLOW:-.github/workflows/ci.yml}
repo=${REPO:?REPO names owner/name}
sha=${SHA:?SHA names the tagged commit}
out=${OUT:?OUT names the evidence file}
ref=${REF:-}
release_run=${RELEASE_RUN:-}

hosts=$(grep -c '^ - { os: ' "$workflow")
parts=$(jq -r '.[].part' "$rows_file")

# The jobs of a run as `name<TAB>conclusion<TAB>started<TAB>completed`, or
# nothing when the run cannot be read.
jobs_of() {
gh api "repos/$repo/actions/runs/$1/jobs?per_page=100" --paginate \
--jq '.jobs[] | "\(.name)\t\(.conclusion)\t\(.started_at)\t\(.completed_at)"' 2>/dev/null || true
}

# Whether a jobs listing is the whole gate, passed.
whole_gate_passed() {
local jobs=$1 part
[ -n "$jobs" ] || return 1
printf '%s\n' "$jobs" | awk -F'\t' '$2 != "success" { bad = 1 } END { exit bad }' || return 1
printf '%s\n' "$jobs" | grep -qxP 'atlas \(join\)\tsuccess\t.*' || return 1
[ "$(printf '%s\n' "$jobs" | grep -c '^build and non-Lean tests (')" -eq "$hosts" ] || return 1
for part in $parts; do
printf '%s\n' "$jobs" | grep -qP "^just vv \(\Q$part\E\)\tsuccess\t" || return 1
done
}

# The commits whose runs are evidence for this one: the commit, and its second
# parent when the commit is a merge that lands that parent's tree unchanged.
candidates="$sha"
if parent=$(git rev-parse --verify --quiet "$sha^2") \
&& [ "$(git rev-parse "$sha^{tree}")" = "$(git rev-parse "$parent^{tree}")" ]; then
candidates="$sha $parent"
fi

found=
for commit in $candidates; do
runs=$(gh api "repos/$repo/actions/workflows/ci.yml/runs?head_sha=$commit&status=success&per_page=30" \
--jq ".workflow_runs[] | select(.head_repository.full_name == \"$repo\") | \"\(.id)\t\(.event)\t\(.created_at)\t\(.updated_at)\t\(.html_url)\"" 2>/dev/null) || runs=
while IFS=$'\t' read -r id event created updated url; do
[ -n "$id" ] || continue
jobs=$(jobs_of "$id")
if whole_gate_passed "$jobs"; then
found=$id
break 2
fi
done <<< "$runs"
done

if [ -z "$found" ]; then
echo "release-gate: no run of ci.yml was the whole gate and passed every job on $candidates of $repo" >&2
echo "release-gate: the gate runs on every push to the line (SPEC.md §9.4); a tag is made from a commit it has verified" >&2
exit 1
fi

{
echo "repository $repo"
echo "commit $sha"
[ -z "$ref" ] || echo "ref $ref"
[ -z "$release_run" ] || echo "run $release_run"
echo
echo "gate run $url"
echo "gate run id $found, event $event, created $created, updated $updated"
if [ "$commit" = "$sha" ]; then
echo "gate run commit $commit (the tagged commit)"
else
echo "gate run commit $commit (the second parent of the tagged commit, whose tree $(git rev-parse "$sha^{tree}") the tagged commit carries unchanged)"
fi
echo
echo "jobs (name, conclusion, started, completed):"
printf '%s\n' "$jobs"
echo
} > "$out"

# The legs' transcripts, while GitHub retains the run's artifacts.
parts_dir=$(mktemp -d)
if gh run download "$found" -R "$repo" -p 'acceptance-gate-evidence-*' -D "$parts_dir" >/dev/null 2>&1 \
&& [ -n "$(find "$parts_dir" -name vv.txt -print -quit)" ]; then
find "$parts_dir" -name vv.txt | sort | while read -r transcript; do
echo "--- $(basename "$(dirname "$transcript")")/vv.txt"
cat "$transcript"
echo
done >> "$out"
else
echo "the run's artifacts are no longer retained; the job records above are the evidence" >> "$out"
fi
rm -rf "$parts_dir"

# The line `just vv` prints when the whole gate passes, which the release
# criterion reads (§30.3, `release-check`): here it summarises the run, every
# leg, every Atlas shard and the join, and every host of which passed.
{
echo "gate: every job of run $found passed on $commit"
echo "vv: the acceptance gate passed"
} >> "$out"

echo "release-gate: run $found ($url) was the whole gate on $commit and passed every job"
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
# to `main` runs none: a merge whose tree is the tree of its second parent, a
# pull request head that already contained `main`, when the whole gate passed
# on that head as a pull request run; the tree is the one that run verified,
# and the plan records the run. `release.yml` runs `just vv` whole regardless.
# and the plan records the run. `release.yml` runs no recipe: its evidence is
# the run of this workflow that verified the tagged commit's tree (§30.3).
#
# The gate runs on the standard GitHub-hosted runner (SPEC.md §9.4); no larger
# runner is part of it. The `examples` leg and every Atlas shard verify at the
Expand Down
62 changes: 25 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,52 +107,40 @@ jobs:
with:
prerelease: false

# §30.3 CI evidence: the normative acceptance gate on the normative host,
# from a clean checkout, naming the tagged commit.
# §30.3 CI evidence: the run of `ci.yml` that was the whole gate on the tree
# of the tagged commit and passed every job, found by `.github/release-gate.sh`
# under the rule `ci.yml`'s `plan` applies to a push (§9.4) and recorded with
# its jobs and the transcripts of its legs. The gate is not run here: run
# whole on one hosted runner it exceeds the six-hour job limit (the `bdd`
# recipe alone took over four hours in a rehearsal, with Atlas still to
# come), so a release gate that re-ran it would never conclude, while the
# sharded run of the line has already verified the tree.
gate:
name: just vv (release evidence)
name: release evidence (the gate run of the tagged commit)
needs: identity
runs-on: ubuntu-24.04
timeout-minutes: 360
env:
CARGO_INCREMENTAL: "0"
timeout-minutes: 15
permissions:
contents: read
actions: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install the pinned Rust toolchain
run: rustup toolchain install
- uses: taiki-e/install-action@b6b84cf49ebfe0176417bdce007c624f0db37f20 # v2.86.2
with:
tool: just,cargo-deny
- name: Install elan and the pinned Lean toolchain
run: |
set -euo pipefail
curl https://elan.lean-lang.org/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
"$HOME/.elan/bin/elan" toolchain install "$(cat lean-toolchain)"
- name: Reserve bounded overflow memory for native Atlas
run: |
set -euo pipefail
sudo fallocate -l 4G "$RUNNER_TEMP/lexlean-atlas.swap"
sudo chmod 600 "$RUNNER_TEMP/lexlean-atlas.swap"
sudo mkswap "$RUNNER_TEMP/lexlean-atlas.swap"
sudo swapon "$RUNNER_TEMP/lexlean-atlas.swap"
sudo sysctl vm.swappiness=10
swapon --show
- name: just vv
# The second parent of a merge, for the tree comparison.
fetch-depth: 2
- name: Locate the gate run of this commit and record it
shell: bash
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
SHA: ${{ github.sha }}
REF: ${{ github.ref }}
RELEASE_RUN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
OUT: release/vv-evidence.txt
run: |
set -euo pipefail
mkdir -p release
{
echo "repository ${GITHUB_REPOSITORY}"
echo "commit ${GITHUB_SHA}"
echo "ref ${GITHUB_REF}"
echo "run ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
echo "host $(uname -srm)"
echo "rustc $(rustc --version)"
echo "lean $(lean --version)"
echo
} > release/vv-evidence.txt
just vv 2>&1 | tee -a release/vv-evidence.txt
.github/release-gate.sh
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vv-evidence
Expand Down
Loading