Skip to content

[Certora] Use a restart strategy to fix LiquidationBoundedByLIF flakiness - #1228

Merged
MathisGD merged 2 commits into
mainfrom
certora-fix-LiquidationBoundedByLIF
Oct 8, 2026
Merged

MathisGD merged 2 commits into
mainfrom
certora-fix-LiquidationBoundedByLIF

Conversation

@aehyvari

@aehyvari aehyvari commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Related slack thread

The job LiquidationBoundedByLIF fails in CI with ~3% probability. There are two rules which both have to succeed for the job to pass. Both rules have a flaky distribution on z3 4.12.5: there's a steep initial solving probability and a heavy tail.

The current strategy of not splitting and using many z3 seeds in parallel is successful for these types of distributions, but with extreme cases such as this one it is not sufficient to keep the success probability high.

We analysed the distributions locally, and the results show that a strategy which restarts the solving portfolio every 150 seconds with fresh seeds should push the failure probability to $10^{-6}$, compared to the current experimental 3%. See the attached plot for an idea.

z3-4 12 5-3600s-all

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T08:00:50.654455Z 06c5fde PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 06c5fded13

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread certora/confs/LiquidationBoundedByLIF.conf Outdated
@aehyvari aehyvari changed the title [Certora] Use a restart strategy adapted for the solving distributions [Certora] Use a restart strategy to fix LiquidationBoundedByLIF flakiness Oct 8, 2026
@MathisGD
MathisGD merged commit 2d22210 into main Oct 8, 2026
65 checks passed
@MathisGD
MathisGD deleted the certora-fix-LiquidationBoundedByLIF branch October 8, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants