feat: implement analyzer and symbolic improvements#1341
Merged
Timi16 merged 2 commits intoMay 28, 2026
Conversation
Timi16#1274, Timi16#1277, Timi16#1279) Issue Timi16#1273: Validate min severity with clap value enum - Create MinSeverity ValueEnum with low, medium, high variants - Update AnalyzeArgs to use MinSeverity instead of String - Clap now shows valid values in help and validates input automatically - Preserves existing accepted values Issue Timi16#1274: Analyzer add unknown rule suggestions for enable and disable filters - Add validate_rule_ids function to check enable_rules and disable_rules - Implement suggest_rule_ids using Levenshtein distance for close matches - Handle enable and disable lists separately with actionable error messages - Add get_rules method to SecurityAnalyzer for rule metadata access - Add comprehensive tests for unknown and mixed-valid rules Issue Timi16#1277: Symbolic add JSON schema for replay bundle export - Define symbolic_replay_bundle.json schema with validation rules - Include seed, caps, storage seed metadata, and wasm hash - Add JSON schema format validation tests for replay bundles - Document compatibility expectations and schema versioning Issue Timi16#1279: Symbolic add clear error when seed and replay conflict - Verify clap conflicts_with configuration between --seed and --replay - Add comprehensive CLI tests for flag combinations - Ensure error messages mention both flags when conflict occurs - Document replay token usage in tests
|
@ALIPHATICHYD Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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 four related improvements to the analyzer and symbolic subsystems. All changes are generic, straightforward, and avoid redundancy.
Issue #1273: Validate min severity with clap value enum
Changes:
MinSeverityValueEnum insrc/cli/args.rswithlow,medium, andhighvariantsAnalyzeArgs::min_severitywith the enumsrc/cli/commands.rsto convertMinSeverityto analyzerSeverityenumsrc/cli/args.rsFiles Modified:
src/cli/args.rs- Added MinSeverity enum, updated AnalyzeArgs, added testssrc/cli/commands.rs- Updated min_severity handlingIssue #1274: Analyzer add unknown rule suggestions for enable and disable filters
Changes:
validate_rule_ids()function to validate rule IDs against registered rulessuggest_rule_ids()using Levenshtein distance for close matches (max distance: 2)get_rules()method toSecurityAnalyzerto expose registered rule metadataFiles Modified:
src/analyzer/security.rs- Addedget_rules()methodsrc/cli/commands.rs- Addedvalidate_rule_ids()andsuggest_rule_ids()functions with integrated validationIssue #1277: Symbolic add JSON schema for replay bundle export
Changes:
tests/schemas/symbolic_replay_bundle.jsontests/json_schema_validation.rsFiles Modified:
tests/schemas/symbolic_replay_bundle.json- New schema filetests/json_schema_validation.rs- Added 5 new tests for replay bundle validationIssue #1279: Symbolic add clear error when seed and replay conflict
Changes:
conflicts_withconfiguration between--seedand--replayflagstests/symbolic_input_tests.rscovering:--seedalone (valid)--replayalone (valid)Files Modified:
tests/symbolic_input_tests.rs- Added 4 new CLI argument testsTechnical Details
Testing
Run the test suite to verify all implementations:
Closes #1273
Closes #1274
Closes #1277
Closes #1279