Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 15 additions & 1 deletion formal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion formal/run_tlc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading