add testing vs production execution model documentation (GTM-2310)#177
Merged
add testing vs production execution model documentation (GTM-2310)#177
Conversation
Contributor
czepluch
commented
Dec 24, 2025
- Add credible/execution-model.mdx explaining how cl.assertion() differs from production behavior (reverts vs dropped transactions, trigger evaluation)
- Add "Trigger Behavior in Production" section to triggers.mdx clarifying all matching assertions run
- Add "Gas Limits" section to testing-assertions.mdx covering the happy path problem
- Enhance troubleshooting.mdx gas limit section with happy path insight
- Update phylax-assertions-rules.mdx snippet with testing vs production context
- Update docs.json navigation
odyslam
approved these changes
Dec 25, 2025
Contributor
odyslam
left a comment
There was a problem hiding this comment.
Very good improvements. Added some comments for some nits, we can address them in this PR on in a following.
snippets/phylax-assertions-rules.mdx
Outdated
|
|
||
| - Use `cl.assertion()` for testing | ||
| - State changes from non-reverting transactions are persisted | ||
| When an assertion **fails** (reverts), the transaction is rolled back as with any Solidity revert. |
Contributor
There was a problem hiding this comment.
You probably mean the call or perhaps the mocked transaction as I name it in phoundry
credible/testing-assertions.mdx
Outdated
|
|
||
| ## Gas Limits | ||
|
|
||
| Assertions have a 300k gas limit per assertion function. This limit exists to ensure assertion validation doesn't slow down block production. |
Contributor
There was a problem hiding this comment.
Is it clear here that Assertions here mean individual Assertion functions?
Co-authored-by: odysseas.eth <odyslam@gmail.com> Signed-off-by: jstcz <j.czepluch@proton.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.