Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
6b1904c
sdg(liaison): write SEED.md for the config-import improvement
claude Oct 28, 2026
1de03bb
sdg(phase-2): draft IP 0002-config-import-specifier; consume seed
claude Oct 28, 2026
d89fac2
sdg(phase-3): review round
claude Oct 28, 2026
693025f
sdg(phase-3): refine IP 0002 - scope the type contract, define instal…
claude Oct 28, 2026
689f9d0
sdg(phase-3): review round
claude Oct 28, 2026
6ad3b07
sdg(phase-3): refine IP 0002 - cover tsc --init projects, Node.js 22+…
claude Oct 28, 2026
e6fd194
sdg(phase-3): review round
claude Oct 28, 2026
f0e1aa1
sdg(phase-3): refine IP 0002 - lib-replacement names, resolution cond…
claude Oct 28, 2026
9f1aaad
sdg(phase-3): review round
claude Oct 28, 2026
4716c18
sdg(phase-3): refine IP 0002 - stem and @types lookups in Reach, Node…
claude Oct 28, 2026
97d2fd1
sdg(phase-3): review round
claude Oct 28, 2026
a51436e
sdg(phase-3): refine IP 0002 - self-name names, nearer-directory rang…
claude Oct 28, 2026
178ec3b
sdg(phase-3): review round
claude Oct 28, 2026
10a37f7
sdg(phase-3): close iteration 6 (critical 0, important 0 - HALT); acc…
claude Oct 28, 2026
07409f7
sdg(phase-4): review round
claude Oct 28, 2026
393ad0a
sdg(phase-4): apply IP 0002 - any config import specifier, the define…
claude Oct 28, 2026
1c57940
sdg(phase-4): review round
claude Oct 29, 2026
a0b0ecd
sdg(phase-4): refine 7.6 - program content a covered-setup condition …
claude Oct 29, 2026
3c66cad
sdg(phase-4): review round
claude Oct 29, 2026
7615f48
sdg(phase-4): refine 7.6 - well-formed manifests a Reach condition, d…
claude Oct 29, 2026
2071bc2
sdg(phase-4): review round
claude Oct 29, 2026
29a9e0a
sdg(phase-4): close iteration 4 of IP 0002's SPEC refinement (critica…
claude Oct 29, 2026
8770c00
sdg(phase-6): review round
claude Oct 29, 2026
dbf8aff
sdg(phase-6): test SPEC 7.6's defineConfig module and 7's free import…
claude Oct 29, 2026
317ed08
sdg(phase-6): review round
claude Oct 29, 2026
bed3176
sdg(phase-6): test the configuration as a spec source, unprivileged i…
claude Oct 29, 2026
1fa6a26
sdg(phase-6): review round
claude Oct 29, 2026
2e05b76
sdg(phase-6): tighten 7.6's runtime output oracle and export listing,…
claude Oct 29, 2026
b41e435
sdg(phase-6): review round
claude Oct 29, 2026
77e9d10
sdg(phase-6): stage empty glob lists and repeated set elements, refus…
claude Oct 29, 2026
4f50276
sdg(phase-6): review round
claude Oct 29, 2026
9e0e004
sdg(phase-6): refuse export and import assignments, admit either stat…
claude Oct 29, 2026
f6da19b
sdg(phase-6): review round
claude Oct 29, 2026
d045f85
sdg(phase-6): close iteration 6 of IP 0002's TEST-SPEC refinement (cr…
claude Oct 29, 2026
df822fa
sdg(phase-7): certify P-19's reach of escape-spelled import specifier…
claude Oct 29, 2026
47812d6
sdg(phase-7): review round
claude Oct 29, 2026
d0f9cdb
sdg(phase-7): keep spec globs off the configuration file, ride T7-9's…
claude Oct 29, 2026
6589705
sdg(phase-7): review round
claude Oct 29, 2026
7d0809f
sdg(phase-7): bound VIOL-IMPORT-BRACED to grammar-begun braced escape…
claude Oct 29, 2026
ba40a47
sdg(phase-7): review round
claude Oct 29, 2026
eb2401a
sdg(liaison): update PHILOSOPHY.md
claude Oct 29, 2026
bc26abb
sdg(phase-7): close iteration 3 of IP 0002's CERTIFICATIONS refinemen…
claude Oct 29, 2026
7e7119b
sdg(phase-8): wire the defineConfig module's dual entry and the modul…
claude Oct 29, 2026
e57210b
sdg(phase-8): record the module channel's first CI run and the releas…
claude Oct 29, 2026
b5bbd65
sdg(phase-9): plan the e57210b determination's 37 gaps and its red VE…
claude Oct 29, 2026
cc74272
sdg(phase-9): withdraw T7-2's arms refusing a specifier other than "x…
claude Oct 29, 2026
a1c8198
sdg(phase-9): record harness-self on Task 1's push and remove the fin…
claude Oct 29, 2026
88e07d0
sdg(phase-9): pin SPEC.md's H-7 key universe at 82 keys (FIX_PLAN Tas…
claude Oct 29, 2026
73bd222
sdg(phase-9): record harness-self on Task 2's push and remove the fin…
claude Oct 29, 2026
8b54875
sdg(phase-9): pin S-9's TypeScript verdicts on T7-2's newly named for…
claude Oct 29, 2026
6a95e24
sdg(phase-9): record harness-self on Task 3's push and remove the fin…
claude Oct 29, 2026
540bfbc
sdg(phase-9): read the configuration's import as SPEC 7 states in eve…
claude Oct 29, 2026
922f2ff
sdg(phase-9): record harness-self on Task 4's push and remove the fin…
claude Oct 29, 2026
ffa5d88
sdg(phase-9): register P-19, configuration import spellings, with its…
claude Oct 29, 2026
c41db85
sdg(phase-9): record harness-self on Task 5's push and remove the fin…
claude Oct 29, 2026
aa909c4
sdg(phase-9): add the CONF-IMPORT conformer (FIX_PLAN Task 6)
claude Oct 29, 2026
468f67d
sdg(phase-9): record harness-self on Task 6's push and remove the fin…
claude Oct 29, 2026
052adb2
sdg(phase-9): add the CONF-IMPORT violators and wire the family into …
claude Oct 29, 2026
2ba672c
sdg(phase-9): record harness-self on Task 7's push and remove the fin…
claude Oct 29, 2026
ab666da
sdg(phase-9): verify consumer programs against what TypeScript and No…
claude Oct 29, 2026
82ec96d
sdg(phase-9): record harness-self on Task 8's push and remove the fin…
claude Oct 29, 2026
cb4a04c
sdg(phase-9): read E-1's release list and the provisioned releases on…
claude Oct 29, 2026
d67a99d
sdg(phase-9): record harness-self on Task 9's push and remove the fin…
claude Oct 29, 2026
03abb7d
sdg(phase-9): give the product binding the package directory XSPEC_PA…
claude Oct 29, 2026
32b6872
sdg(phase-9): record harness-self on Task 10's push and remove the fi…
claude Oct 29, 2026
0d6ab1f
sdg(phase-9): add the empty stub package and sweep S-7 beside it and …
claude Oct 29, 2026
9e46bef
sdg(phase-9): record harness-self on Task 11's push and remove the fi…
claude Oct 29, 2026
7e68362
sdg(phase-9): stage the module channel's placements and check Reach o…
claude Oct 29, 2026
12eb504
sdg(phase-9): record harness-self on Task 12's push and remove the fi…
claude Oct 29, 2026
f019ff4
sdg(phase-9): add 7.6's TypeScript driver over the covered setups, wi…
claude Oct 29, 2026
9e79118
sdg(phase-9): record harness-self on Task 13's push and remove the fi…
claude Oct 29, 2026
399e9df
sdg(phase-9): detect each moduleResolution and module value of 7.6's …
claude Oct 29, 2026
469f41a
sdg(phase-9): record harness-self on Task 14's push and remove the fi…
claude Oct 30, 2026
632c1d9
sdg(phase-9): detect 7.6's initialized-set options, strict, module fo…
claude Oct 30, 2026
4d58593
sdg(phase-9): record harness-self on Task 15's push and remove the fi…
claude Oct 30, 2026
ff116f5
sdg(phase-9): register T7.6-2, valid configurations, over the module …
claude Oct 30, 2026
be3e49a
sdg(phase-9): record harness-self on Task 16's push and remove the fi…
claude Oct 30, 2026
e78dc19
sdg(phase-9): register T7.6-3, shape violations, over the module chan…
claude Oct 30, 2026
040e37e
sdg(phase-9): record harness-self on Task 17's push and remove the fi…
claude Oct 30, 2026
e3deafb
sdg(phase-9): add T7.6-1's export listing to the module channel's Typ…
claude Oct 30, 2026
da6ca63
sdg(phase-9): record harness-self on Task 18's push and remove the fi…
claude Oct 30, 2026
f6dd4be
sdg(phase-9): register T7.6-1, declared exports, over the module chan…
claude Oct 30, 2026
e239f4d
sdg(phase-9): record harness-self on Task 19's push and remove the fi…
claude Oct 30, 2026
f6458df
sdg(phase-9): add the module channel's Node.js release driver, its bo…
claude Oct 30, 2026
c6628ee
sdg(phase-9): record harness-self on Task 20's push and remove the fi…
claude Oct 30, 2026
14a508f
sdg(phase-9): add T7.6-6's runtime observations and T7.6-7(a)'s outpu…
claude Oct 30, 2026
11b8bf1
sdg(phase-9): record harness-self on Task 21's push and remove the fi…
claude Oct 30, 2026
13c4290
sdg(phase-9): add T7.6-7(b), (c), and (e)'s observations to the relea…
claude Oct 30, 2026
3dae555
sdg(phase-9): record harness-self on Task 22's push and remove the fi…
claude Oct 30, 2026
52bad4f
sdg(phase-9): add S-10's check of the release driver's releases, run …
claude Oct 30, 2026
290966f
sdg(phase-9): record harness-self on Task 23's push and remove the fi…
claude Oct 30, 2026
18eccd1
sdg(phase-9): add S-10's catches, one test per effect, each observati…
claude Oct 30, 2026
dc09b64
sdg(phase-9): record harness-self on Task 24's push and remove the fi…
claude Oct 30, 2026
f2ca54c
sdg(phase-9): register T7.6-6, runtime exports and identity, over the…
claude Oct 30, 2026
cd09f1a
sdg(phase-9): record harness-self on Task 25's push and remove the fi…
claude Oct 30, 2026
bd1ae05
sdg(phase-9): register T7.6-7, runtime: no effect, in runs of T7.6-6'…
claude Oct 30, 2026
3b8dce4
sdg(phase-9): record harness-self on Task 26's push and remove the fi…
claude Oct 30, 2026
e67e20c
sdg(phase-9): register T7.6-4, placements, over the type-checking and…
claude Oct 30, 2026
7852fbb
sdg(phase-9): record harness-self on Task 27's push and remove the fi…
claude Oct 30, 2026
86e3c7f
sdg(phase-9): register T7.6-5, Reach's open cases, over T7.6-4's runs…
claude Oct 30, 2026
08b9a12
sdg(phase-9): record harness-self on Task 28's push and remove the fi…
claude Oct 30, 2026
b98cc46
sdg(phase-9): register P-17, installation names, over the module chan…
claude Oct 30, 2026
00486ec
sdg(phase-9): record harness-self on Task 29's push and remove the fi…
claude Oct 30, 2026
ac3accd
sdg(phase-9): register P-18, the type contract over generated configu…
claude Oct 30, 2026
b6336f5
sdg(phase-9): record harness-self on Task 30's push and remove the fi…
claude Oct 30, 2026
1fa5331
sdg(phase-9): register T7-9's spelling and scanner-rejected-escape ar…
claude Oct 30, 2026
edc3c51
sdg(phase-9): record harness-self on Task 31's push and remove the fi…
claude Oct 30, 2026
e19c1f5
sdg(phase-9): add T7-9's designation arms, each staging verified on t…
claude Oct 30, 2026
6643182
sdg(phase-9): record harness-self on Task 32's push and remove the fi…
claude Oct 30, 2026
a14e726
sdg(phase-9): add T7-9's install arms, a trap package and a FIFO mani…
claude Oct 30, 2026
af4da92
sdg(phase-9): record harness-self on Task 33's push and remove the fi…
claude Oct 30, 2026
cf0d19e
sdg(phase-9): register T7-10, the configuration file as a source, wit…
claude Oct 30, 2026
7da0f8c
sdg(phase-9): record harness-self on Task 34's push and remove the fi…
claude Oct 30, 2026
52bc8dc
sdg(phase-9): add T7-10(c), the configuration's consequences as a sou…
claude Oct 30, 2026
c385f58
sdg(phase-9): record harness-self on Task 35's push and remove the fi…
claude Oct 30, 2026
dcbee2f
sdg(phase-9): add T7-10(d), baselines read alike, beside the twin com…
claude Oct 30, 2026
45c127e
sdg(phase-9): record harness-self on Task 36's push and remove the fi…
claude Oct 30, 2026
320eaa1
sdg(phase-9): add T7-10(e), the configuration discovered by a spec gr…
claude Oct 30, 2026
8de604b
sdg(phase-9): record harness-self on Task 37's push and remove the fi…
claude Oct 30, 2026
0f76f57
sdg(phase-9): add T7-11, Object members and __proto__ as configured n…
claude Oct 30, 2026
31e9c71
sdg(phase-9): record harness-self on Task 38's push and remove the fi…
claude Oct 30, 2026
17b7291
sdg(phase-9): add T7-2's wrapped forms and call variants (FIX_PLAN Ta…
claude Oct 30, 2026
3e4a2ae
sdg(phase-9): record harness-self on Task 39's push and remove the fi…
claude Oct 30, 2026
4427d00
sdg(phase-9): add T7-2's binding forms (FIX_PLAN Task 40)
claude Oct 30, 2026
9d9795a
sdg(phase-9): record harness-self on Task 40's push and remove the fi…
claude Oct 30, 2026
a9e4d8f
sdg(phase-9): add T7-2's statement forms and statement order (FIX_PLA…
claude Oct 30, 2026
8924ec0
sdg(phase-9): record harness-self on Task 41's push and remove the fi…
claude Oct 30, 2026
0acc780
sdg(phase-9): add T7-2's keys and enumerated values read as spelled (…
claude Oct 30, 2026
7d3988d
sdg(phase-9): record harness-self on Task 42's push and remove the fi…
claude Oct 30, 2026
2d2aa55
sdg(phase-9): add T7-2's comments inside the import declaration (FIX_…
claude Oct 31, 2026
433f8b9
sdg(phase-9): record harness-self on Task 43's push and remove the fi…
claude Oct 31, 2026
b2f8c23
sdg(phase-9): add T7-1's configuration file names (FIX_PLAN Task 44)
claude Oct 31, 2026
0125d9a
sdg(phase-9): record harness-self on Task 44's push and remove the fi…
claude Oct 31, 2026
6eb10ba
sdg(phase-9): add T7-3's empty glob lists (FIX_PLAN Task 45)
claude Oct 31, 2026
8d9c85f
sdg(phase-9): record harness-self on Task 45's push and remove the fi…
claude Oct 31, 2026
22afaec
sdg(phase-9): add T7.5-1's kind-without-group selector arms (FIX_PLAN…
claude Oct 31, 2026
d0ccc8f
sdg(phase-9): record harness-self on Task 46's push and remove the fi…
claude Oct 31, 2026
21af7d9
sdg(phase-9): record the CI jobs' measured times; the suite needs no …
claude Oct 31, 2026
d18ad36
sdg(phase-9): record CI on Task 47's push and remove the finished pla…
claude Oct 31, 2026
b63b527
sdg(phase-9): flip IP 0002 to Tested; code review triage clean
claude Oct 31, 2026
d0cc9dd
sdg(phase-10): plan the b63b527 determination's gaps and red VERIFY (…
claude Oct 31, 2026
1ef5005
sdg(phase-10): take any static string literal as the configuration im…
claude Oct 31, 2026
ec6e7d3
sdg(phase-10): record CI on Task 167's push and remove the finished t…
claude Oct 31, 2026
aba0d72
sdg(phase-10): report every value-level use of a spec-module binding …
claude Oct 31, 2026
470cfcb
sdg(phase-10): record CI on Task 168's push and remove the finished t…
claude Oct 31, 2026
ad60726
sdg(phase-10): give the defineConfig module's import entry one export…
claude Oct 31, 2026
76e8e57
sdg(phase-10): record the defineConfig module's .mjs import entry and…
claude Oct 31, 2026
f2aec57
sdg(phase-10): record CI on Task 169's push and remove the finished t…
claude Oct 31, 2026
809a932
sdg(phase-10): add the defineConfig module's CommonJS entry, src/inde…
claude Oct 31, 2026
cfc142e
sdg(phase-10): record the defineConfig module's CommonJS entry and it…
claude Oct 31, 2026
6acaf6e
sdg(phase-10): record CI on Task 170's push and remove the finished t…
claude Oct 31, 2026
0e39783
sdg(phase-10): record the plan's green state in AGENTS.md and delete …
claude Oct 31, 2026
2dbe6d3
sdg(phase-10): flip IP 0002 to Implemented after a clean code review …
claude Oct 31, 2026
b6884d0
sdg(phase-11): prepare IP 0002's 0.3.0 release and mark the patch Com…
claude Oct 31, 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
69 changes: 69 additions & 0 deletions .github/scripts/pack-package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#!/usr/bin/env bash
# Pack the product's package directory exactly as distributed, the module
# channel's input (TEST-SPEC H-2 and C-2; SPEC 7.6: the defineConfig module is
# distributed as a package, and the package directory, exactly as distributed,
# is given to the harness beside the executable).
#
# Usage: pack-package.sh <directory>
#
# <directory> must be absent or an empty directory. The script packs the
# repository's built product with `npm pack`, which makes the tarball
# `npm publish` uploads (.github/workflows/release.yml), into <directory>,
# extracts that tarball there, and prints the package directory,
# <directory>/package, on standard output: exactly what the distribution
# carries, with nothing installed into it, and never the development tree,
# whose own node_modules would resolve inside a placed copy (H-2). The tarball
# stays beside it. Build the product first (npm run build): the package
# carries dist/.
#
# The harness reads the package directory from the XSPEC_PACKAGE_DIR
# environment variable: CI sets it from this script's output. Unset, no
# package directory is given, and every test of 7.6 fails as the missing
# product does (H-8).
set -euo pipefail

me=pack-package.sh

fail() {
echo "$me: $*" >&2
exit 1
}

[ $# -eq 1 ] || fail "usage: $me <directory that is absent or empty>"
out=$1
if [ -e "$out" ] || [ -L "$out" ]; then
if [ -L "$out" ] || [ ! -d "$out" ] || [ -n "$(ls -A "$out")" ]; then
fail "$out exists and is not an empty directory"
fi
else
mkdir -p "$out"
fi
out=$(cd "$out" && pwd -P)

root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd -P)
[ -f "$root/dist/cli/bin.js" ] ||
fail "no built product at $root/dist (run npm run build first)"

report=$(cd "$root" && npm pack --json --pack-destination "$out") ||
fail "npm pack failed"
tarball=$(node -e '
const report = JSON.parse(process.argv[1]);
if (!Array.isArray(report) || report.length !== 1 || typeof report[0].filename !== "string") {
throw new Error("unexpected npm pack report");
}
console.log(report[0].filename);
' "$report") || fail "cannot read npm pack's report"
[ -f "$out/$tarball" ] || fail "npm pack wrote no $out/$tarball"

tar -xzf "$out/$tarball" -C "$out" --no-same-owner
package="$out/package"
[ -f "$package/package.json" ] || fail "$tarball holds no package/package.json"
node -e '
const fs = require("node:fs");
const packed = JSON.parse(fs.readFileSync(process.argv[1], "utf8"));
const source = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
if (packed.name !== source.name) {
throw new Error("the packed manifest names " + packed.name + " where the repository manifest names " + source.name);
}
' "$package/package.json" "$root/package.json" || fail "the packed manifest does not match the repository's"
echo "$package"
98 changes: 98 additions & 0 deletions .github/scripts/provision-node-releases.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
#!/usr/bin/env bash
# Provision the Node.js releases on which the module channel loads the
# defineConfig module (TEST-SPEC E-1 and H-2's module channel; T7.6-6, T7.6-7,
# P-17, S-10; SPEC 7.6), at setup, while the network is still available.
#
# Usage: provision-node-releases.sh <directory>
#
# <directory> must be absent or an empty directory. The releases are the ones
# test/node-releases.json lists: E-1's list, pinned by exact version. Each is
# installed exactly as nodejs.org distributes it for this platform, at
# <directory>/v<version>/, so its executable is <directory>/v<version>/bin/node.
# Each archive is checked against the release's published SHA-256 sum, and each
# executable against the version it reports, before the next release is
# fetched. The archives and the sums files stay in <directory>/archives/.
#
# The harness finds the releases through the XSPEC_NODE_RELEASES_DIR
# environment variable, naming <directory>: CI sets it right after this step.
# No test downloads a runtime, so the runs that need these releases stay
# network-denied (E-1), and a listed release left unprovisioned is a harness
# error for every run needing it (E-1, H-11), never a skip or a product
# failure. Failures here are loud for the same reason.
#
# Linux only: E-1 exercises these releases on the Linux leg alone.
set -euo pipefail

me=provision-node-releases.sh

fail() {
echo "$me: $*" >&2
exit 1
}

[ $# -eq 1 ] || fail "usage: $me <directory that is absent or empty>"
out=$1
if [ -e "$out" ] || [ -L "$out" ]; then
if [ -L "$out" ] || [ ! -d "$out" ] || [ -n "$(ls -A "$out")" ]; then
fail "$out exists and is not an empty directory"
fi
else
mkdir -p "$out"
fi
out=$(cd "$out" && pwd -P)

here=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)
list="$here/../../test/node-releases.json"
[ -f "$list" ] || fail "no release list at $list"

case "$(uname -s)-$(uname -m)" in
Linux-x86_64) platform=linux-x64 ;;
Linux-aarch64) platform=linux-arm64 ;;
*) fail "no Node.js release archive for $(uname -s) $(uname -m): E-1 provisions these releases on Linux alone" ;;
esac

# The list's releases, one per line, each an exact version listed once.
releases_text=$(node -e '
const fs = require("node:fs");
const list = JSON.parse(fs.readFileSync(process.argv[1], "utf8"));
const releases = list.releases;
if (!Array.isArray(releases) || releases.length === 0) {
throw new Error("no releases listed");
}
for (const release of releases) {
if (typeof release !== "string" || !/^[0-9]+[.][0-9]+[.][0-9]+$/.test(release)) {
throw new Error("not an exact version: " + JSON.stringify(release));
}
}
if (new Set(releases).size !== releases.length) {
throw new Error("a release is listed twice");
}
for (const release of releases) console.log(release);
' "$list") || fail "cannot read the release list $list"
mapfile -t releases <<<"$releases_text"

fetch() {
curl -fsSL --retry 5 --retry-all-errors --connect-timeout 30 -o "$2" "$1" ||
fail "cannot download $1"
}

mkdir "$out/archives"
for version in "${releases[@]}"; do
archive="node-v$version-$platform.tar.xz"
base="https://nodejs.org/dist/v$version"
sums="$out/archives/SHASUMS256-v$version.txt"
fetch "$base/$archive" "$out/archives/$archive"
fetch "$base/SHASUMS256.txt" "$sums"
expected=$(awk -v name="$archive" '$2 == name { print $1 }' "$sums")
[ -n "$expected" ] || fail "$base/SHASUMS256.txt publishes no SHA-256 sum for $archive"
actual=$(sha256sum "$out/archives/$archive" | awk '{ print $1 }')
[ "$actual" = "$expected" ] ||
fail "$archive has SHA-256 $actual where $base/SHASUMS256.txt publishes $expected"
mkdir "$out/v$version"
tar -xJf "$out/archives/$archive" -C "$out/v$version" --strip-components=1 --no-same-owner
node="$out/v$version/bin/node"
[ -x "$node" ] || fail "$archive holds no executable bin/node"
reported=$(env -u NODE_OPTIONS -u NODE_PATH "$node" --version)
[ "$reported" = "v$version" ] || fail "$node reports $reported, expected v$version"
echo "$me: v$version at $node" >&2
done
93 changes: 74 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
# harness-self Linux. Harness self-tests and certification only (TEST-SPEC
# 17, C-1: certification results are part of the harness's CI
# output), run through the same wrapper as suite-linux, with
# no product installed: the job builds nothing and confirms
# dist/ absent before they run, so a self-test or
# certification that needs the built product fails here
# (H-8: they must pass before the product exists). This is
# the signal that must be green before the product exists
# (red-green): product-facing tests may still fail while this
# job passes. suite-linux runs the self project again, within
# its full suite, with the product built.
# no product installed: the job builds nothing and packs no
# package directory, and confirms dist/ absent and
# XSPEC_PACKAGE_DIR unset before they run, so a self-test or
# certification that needs the built product or its package
# fails here (H-8: they must pass before the product exists,
# and the module channel counts as part of the product). E-1's
# Node.js releases are provisioned here too (below), for S-10,
# which checks the release driver on each of them before any
# product exists. This is the signal that must be green
# before the product exists (red-green): product-facing tests
# may still fail while this job passes. suite-linux runs the
# self project again, within its full suite, with the product
# built.
#
# suite-linux Linux. The full suite — sections 1–17, certification
# included (E-1) — run through
Expand All @@ -30,8 +35,10 @@
# outside every product invocation (E-1, H-2). Workspaces
# land in /tmp on the image's ext4 root filesystem (TMPDIR
# stays unset), whose name-hash listing order T13.5-10(c)'s
# bracketing arm needs. Expected red until the product
# conforms to SPEC.md; green is required from then on.
# bracketing arm needs. The module channel's two inputs are
# set up before the run (below). Expected red until the
# product conforms to SPEC.md; green is required from then
# on.
#
# suite-windows Windows. The E-6 platform-sensitive subset, the
# representative fixture's exclusion probe (13.5's busy
Expand All @@ -41,6 +48,27 @@
# artifact, exchanged through XSPEC_E6_EXCHANGE_DIR (written
# by the harness on the Linux leg, read on the Windows leg).
#
# The module channel (TEST-SPEC H-2, C-2, E-1; SPEC 7.6) runs on the Linux leg
# alone. Its inputs are made at setup, while the network is still available,
# and reach the wrapped run unchanged (run-without-network.sh restores the
# caller's environment exactly):
#
# Package directory suite-linux alone. After the build,
# .github/scripts/pack-package.sh packs the product with
# npm pack, the tarball release.yml's npm publish
# uploads, and extracts it under RUNNER_TEMP;
# XSPEC_PACKAGE_DIR names the extracted package
# directory: exactly what the distribution carries, never
# the development tree (H-2).
# Node.js releases Both Linux jobs. .github/scripts/provision-node-releases.sh
# installs each release test/node-releases.json pins (E-1's
# list) under RUNNER_TEMP, each archive checked against
# its published SHA-256 sum, beside the release the suite
# runs on; XSPEC_NODE_RELEASES_DIR names the directory,
# each release's executable at v<version>/bin/node. No
# test downloads a runtime, so those runs stay
# network-denied (E-1).
#
# Local-only tests (E-2) form a separately invocable local suite
# (`npm run test:local`) and are deliberately excluded here — never silently
# skipped (H-9). That set is currently empty.
Expand Down Expand Up @@ -68,14 +96,22 @@ jobs:
harness-self:
name: Harness self-tests + certification (Linux)
runs-on: ubuntu-24.04
timeout-minutes: 20
# A limit of the CI service, not a harness guard (TEST-SPEC S-3). The job
# took 6.5 minutes at 3d8e7ad, before S-10's checks on E-1's six Node.js
# releases and S-4's checks of 7.6's covered setups, and 9.4 at d0ccc8f
# with them, its setup provisioning those releases: 31% of this limit.
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Provision E-1's Node.js releases (S-10; at setup, before the network is disabled)
run: |
bash .github/scripts/provision-node-releases.sh "$RUNNER_TEMP/node-releases"
echo "XSPEC_NODE_RELEASES_DIR=$RUNNER_TEMP/node-releases" >> "$GITHUB_ENV"
- name: Typecheck both programs (product and harness)
run: npm run typecheck
- name: Confirm no product is installed (H-8; self-tests and certification run before the product exists)
Expand All @@ -84,29 +120,48 @@ jobs:
echo "::error::dist/ exists, but this job runs the harness self-tests and certification with no product installed (TEST-SPEC H-8)"
exit 1
fi
if [ -n "${XSPEC_PACKAGE_DIR+set}" ]; then
echo "::error::XSPEC_PACKAGE_DIR is set, but this job gives the harness no package directory: the module channel counts as part of the product (TEST-SPEC H-8)"
exit 1
fi
- name: Run harness self-tests and certification (network disabled, unprivileged, administrative access kept)
run: bash .github/scripts/run-without-network.sh npm run test:self

suite-linux:
name: Full suite (Linux, E-1)
runs-on: ubuntu-24.04
# A limit of the CI service, not a harness guard (TEST-SPEC S-3). The
# suite's Vitest run took 1099.5 s at 3bb3df8 on one hosted-runner class
# and 1951.3-2015.5 s at 80b83aa and f22cc77 on another (transform and
# import times scaling alike; the job up to 34 minutes), before the
# refined TEST-SPEC's twenty new tests, P-16, and the new arms of
# existing tests (T13.3-5(a)'s seeded tampering trials among them) are
# implemented; 90 minutes leaves room for both classes.
timeout-minutes: 90
# A limit of the CI service, not a harness guard (TEST-SPEC S-3): the job
# is held to GitHub's own per-job limit for hosted runners, 6 hours, and
# to nothing shorter. It took up to 34 minutes at f22cc77 and 46.5 at
# 3d8e7ad, before IP 0002's tests of SPEC 7.6, and 51.4 at d0ccc8f with
# them (14% of this limit), against a product not yet meeting 7.6, each
# of those tests stopping at its first failing setup or run. Against a
# conforming product they type-check every arm in all 173 of 7.6's
# covered setups, a fresh TypeScript 5.9.3 program over a covered file
# taking about 1 s where the scaffold measured it, and load the module on
# each of E-1's six Node.js releases: about 9 minutes more of test time,
# measured locally against a conforming stand-in package. A shorter limit
# could stop a conforming run. Where the suite outgrows the service's
# limit, E-1 splits it across parallel jobs whose union is the whole
# suite, every verdict reported, never trimming it.
timeout-minutes: 360
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Provision E-1's Node.js releases (the module channel's; at setup, before the network is disabled)
run: |
bash .github/scripts/provision-node-releases.sh "$RUNNER_TEMP/node-releases"
echo "XSPEC_NODE_RELEASES_DIR=$RUNNER_TEMP/node-releases" >> "$GITHUB_ENV"
- name: Build the product
run: npm run build
- name: Pack the product's package directory exactly as distributed (H-2's module channel, C-2)
run: |
package=$(bash .github/scripts/pack-package.sh "$RUNNER_TEMP/xspec-package")
echo "XSPEC_PACKAGE_DIR=$package" >> "$GITHUB_ENV"
- name: Run the full suite (network disabled after setup, unprivileged, administrative access kept; E-1)
run: bash .github/scripts/run-without-network.sh npm test
env:
Expand Down
Loading
Loading