audit: implement LEP-6 heal-op lifecycle and recheck handlers#120
Open
j-rafique wants to merge 3 commits intoLEP-6-shadow-scoringfrom
Open
audit: implement LEP-6 heal-op lifecycle and recheck handlers#120j-rafique wants to merge 3 commits intoLEP-6-shadow-scoringfrom
j-rafique wants to merge 3 commits intoLEP-6-shadow-scoringfrom
Conversation
- Implement storage-truth heal-op lifecycle and recheck handlers - Scope LEP-6 heal op lifecycle to PR4
All 3 previously flagged issues have been addressed in aead156. No new issues found.
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
51ea7b0 to
c86ef0e
Compare
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
This PR implements LEP-6 PR4 (
heal-op lifecycle) inlumera: on-chain heal operation transitions, verifier-driven finalization, and epoch-end expiration/scheduling for self-heal ops.The rollout remains non-breaking and keeps deferred LEP-6 enforcement behavior out of scope.
What’s Implemented
1) Heal-op tx lifecycle
Added/implemented keeper logic for:
MsgClaimHealCompleteMsgSubmitHealVerificationMsgSubmitStorageRecheckEvidence(validated + wired, intentionally gated as not active in this milestone)Behavior:
SCHEDULED/IN_PROGRESS->HEALER_REPORTEDHEALER_REPORTED->VERIFIED(all required positives) orFAILED(any negative)active_heal_op_idcleared; verified path updates probation/last-heal fields)2) Epoch-end heal-op processing
Implemented epoch-end lifecycle execution:
deadline_epoch_id <= current_epoch)3) State model integration
Integrated with existing LEP-6 storage-truth state surfaces:
HealOp+ status/ticket indexes(heal_op_id, verifier)Out of Scope (Deferred)
Key Files
x/audit/v1/keeper/msg_storage_truth.gox/audit/v1/keeper/storage_truth_heal_ops.gox/audit/v1/keeper/abci.gox/audit/v1/keeper/msg_storage_truth_test.gox/audit/v1/keeper/storage_truth_heal_ops_test.goTesting
Added/updated tests for:
Validation run:
go test ./x/audit/v1/... -count=1