Repository navigation
test: complete GI full stateful invariant verification - #17
Merged
Merged
Conversation
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.
Summary
Completes GI — Full Stateful Invariant Verification for Standby.
Adds production-path, handler-driven stateful invariant verification over the F8D-complete realization without introducing new protocol semantics or modifying production code.
The campaigns adversarially compose O1, O2, O3, lifecycle, eligibility, liquidity, swap, failure, and relevant external actions while independently verifying global safety properties across persistent histories.
Stateful Verification
Adds:
The generalized campaign reverses the protected direction and uses heterogeneous currency decimals to verify that the realization is not coupled to the canonical token ordering, direction, or six-decimal fixture.
G-I
Independent review result:
Verification
Repository verification:
forge fmt --check— cleanforge build --sizes— successfulforge test— 579 passed, 0 failedFOUNDRY_PROFILE=ci forge test— 579 passed, 0 failedBoth canonical and generalized stateful invariant campaigns pass, together with the directed stateful sequence evidence.
Post-GI Coverage
Refreshed the existing diagnostic coverage baseline after GI:
The newly exercised production surface is the untrusted-perimeter liquidity-removal refusal previously identified as a potential GI input.
Coverage remains diagnostic and is not used as evidence of G-I closure.
Scope
No production semantics were changed.
No production source, frozen artifact, or protocol configuration was modified as part of GI.
The coverage workflow required one behavior-preserving test-side helper extraction to compile under coverage instrumentation; campaign behavior and verification results remained unchanged.
Documentation
Updates Session 15 implementation/audit evidence, post-GI coverage reporting, project status, and the contemporaneous ChatGPT retrospective.
Next
F9 — Canonical Acceptance is the next authorized implementation slice / current blocker.