Skip to content

test(spec): quint models for id pools, placement and the image store - #206

Draft
markovejnovic wants to merge 13 commits into
mainfrom
feat/slop-formal-verify
Draft

markovejnovic wants to merge 13 commits into
mainfrom
feat/slop-formal-verify

Conversation

@markovejnovic

Copy link
Copy Markdown
Contributor

complete slop

quint verify exits 0 when the main module exposes no invariant
definition, so a holds line could pass having checked nothing.

- holds compiles the scenario first and requires an invariant, then
  prints TLC's state count.
- violates requires TLC to name the invariant, not any violation.
- Run the pinned quint from node_modules; npx falls back to a global
  one.
- A malformed line exits 2 instead of aborting on an unbound variable,
  which bash 3.2 turns into exit 0 through the EXIT trap.
- placement_vm_respawn: a VM supervisor restarting under a new pid
  drops its reservation and keeps running, so admitted VMs exceed
  capacity with no Hard crash.
- placement_trusting: a planted bug where admit trusts the advertised
  snapshot instead of the live count. Until now the snapshot changed no
  verdict.
- unreachableLeavesNothingAdmitted replaces failedLeavesNothingBehind,
  which tripped on a call still in flight, before anything booted.
A drop_blob transaction that dies after File.rm leaves a row with no
file. The model had no such step, so image_store_fork_vs_delete passed
on a race the code plans for.

- image_store_failed_drop: with DROPS_MAY_FAIL a fork published during
  its parent's delete links to the file-less base row.
- image_store_recreate: an image re-created while it is deleted, with
  failing drops and the GC running. It is the only holds scenario where
  the GC prunes and where backed/2 contends with a drop.
- A fork starts only while its parent image exists (DERIVED_FROM), and
  two inserts of one uncommitted blob row no longer overlap.
- prune no longer re-checks the file, matching prune_rows.
- exclusive accumulates holders, so writersExcludeReaders can fail.
- A failing step now names its trace, step and action and keeps
  ExUnit's left/right diff; before, three of four failure modes named
  nothing.
- traces.sh takes QUINT_SEED, picks one otherwise, and prints it, so a
  failing batch can be regenerated. It clears old traces first.
- Traces come from id_pool_replay (4 ids, 8 attempts, 2 restarts): the
  2-id instance revisited the same 34 transitions.
- A VM that exits now exits normally and only a respawn is a kill, so
  DOWN reasons normal, killed and noproc are all replayed.
Quint printed about 1,100 lines per run. The seed line is now the only
output; errors still reach stderr with a non-zero exit.
- Generate traces with Quint's TypeScript backend. The Rust evaluator
  is fetched from api.github.com unauthenticated with no retry, which
  would rate-limit the Elixir job; now nothing is downloaded there and
  that job caches nothing of Quint's.
- Pin Temurin 21 for the spec job: Apalache 0.62.4 is built for Java 21
  and the runner's default JDK has only just moved past 17.
- Key the Apalache cache per OS and purpose, cap the spec job at 15
  minutes, and upload the traces when the Elixir job fails.
A trace generator narrowed to fewer actions (no respawns, say) left the
replay green while it checked less. The test now requires every action
the model has to appear in the batch.

traces.sh prints its seed before generating, so a failed generation
still logs it.
@codecov

codecov Bot commented Nov 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

Test Results

    4 files  ±0    366 suites  +2   6m 1s ⏱️ +19s
1 741 tests +2  1 741 ✅ +2    0 💤 ±0  0 ❌ ±0 
2 425 runs  +4  1 741 ✅ +2  684 💤 +2  0 ❌ ±0 

Results for commit cad2450. ± Comparison against base commit e281a48.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant