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. 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))