From 5be2d58f1e467fa09f53c5ee12bbfa170d87b95a Mon Sep 17 00:00:00 2001 From: Lukasz Stocki Date: Mon, 16 Nov 2026 18:41:16 +0100 Subject: [PATCH 1/2] docs: clarify shared Oracle queue setup --- formal/README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/formal/README.md b/formal/README.md index 3506d34..5991bec 100644 --- a/formal/README.md +++ b/formal/README.md @@ -44,10 +44,24 @@ the invariant that must catch it (`\* EXPECT_VIOLATION: ...`): ## Running +Local runs and CI use the shared Oracle queue through `formal/run_tlc.sh`. +They require an installed, authorized `tla-queue` client and configured access to +the maintainer-operated Oracle backend. Ask the maintainer for client setup and +access; public repository access does not provide queue access. + +Run from the repository root after that setup: + ```sh -TLA_JAR=/path/to/tla2tools-1.7.4.jar formal/run_tlc.sh # needs Java 11+ +TLA_JAR=/path/to/tla2tools-1.7.4.jar formal/run_tlc.sh # needs Java 11+ on Oracle ``` +`TLA_JAR` and optional `JAVA` overrides refer to **Oracle-side tools**. The example +JAR path must already exist on Oracle; leave the overrides unset to use the remote +defaults. For this check, do not run Java/TLC locally, install or download a local +toolchain (including with `mise`), or use direct SSH as a fallback. A missing +client, unavailable queue, incomplete run, or nonzero wrapper exit is not a +verification pass. + The script checks the jar's SHA-256 against the pinned tla2tools 1.7.4. CI runs it on a self-hosted Oracle ARM64 runner, only on pushes to the default branch or by manual dispatch (`.github/workflows/oracle-tla.yml`). The Swift build and tests stay on hosted macOS. From 89d296d46d351b9f5b837594ffed1fff8b6cebab Mon Sep 17 00:00:00 2001 From: Lukasz Stocki Date: Mon, 16 Nov 2026 19:41:23 +0100 Subject: [PATCH 2/2] fix: reject unexpected TLC native failures --- formal/run_tlc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formal/run_tlc.sh b/formal/run_tlc.sh index b60649a..c2db50c 100755 --- a/formal/run_tlc.sh +++ b/formal/run_tlc.sh @@ -125,7 +125,7 @@ for cfg in "${cfgs[@]}"; do echo "FAIL $cfg (expected no error)"; echo "$out" | tail -30; fail=$((fail+1)) fi else - if [[ $rc -ne 0 ]] && grep -q "Invariant $expect is violated" <<<"$out"; then + if [[ $rc -eq 12 ]] && grep -q "Invariant $expect is violated" <<<"$out"; then echo "PASS $cfg (mutant caught by $expect)"; pass=$((pass+1)) else echo "FAIL $cfg (mutant expected to violate $expect)"; echo "$out" | tail -30; fail=$((fail+1))