Add remediation priority summaries to reports#9
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
remediation_planin JSON reports for CI/dashboards.Rationale
PMs and AI builders are asking for workflows that preserve human judgment while turning scattered agent/security evidence into clear next actions. This keeps agentwise useful for both technical reviewers and PM/security owners who need a prioritized cleanup view.
Telemetry used:
projects/last-tiktok-trends.md, with AI tools, authenticity, and platform-native agent automation showing up as repeated clusters.Validation
python3 skills/tiktok-trends/scripts/research.pysavedprojects/last-tiktok-trends.mdwith 43 signals.cargo fmt --check.cargo test report::ran 19 report unit tests.cargo test remediation_priorityran 2 CLI integration tests for Markdown/HTML remediation output.cargo test test_json_outputran JSON renderer + CLI JSON tests.cargo testran 225 unit tests + 42 integration tests.cargo clippy --all-targets -- -D warnings.cargo build --release.target/release/agentwise scan testdata/vulnerable-mcp.json | rg 'Remediation priority|fix now'.target/release/agentwise scan testdata/vulnerable-mcp.json --format json | jq -e '.remediation_plan.fix_now > 0 and (.remediation_plan.top_actions | length > 0)'.target/release/agentwise scan testdata/vulnerable-mcp.json --format markdown | rg '## Remediation priority|\| Fix now \|'.target/release/agentwise scan testdata/vulnerable-mcp.json --format html | rg 'Remediation priority|priority-lane|action-row'.node /Users/bwise/.openclaw/workspace/projects/humanizer/src/cli.js score README.mdreturned41/100.git diff --check.Rollback
Squash-revert this PR. The change is limited to report rendering/docs/tests and does not alter scanner rules, scoring, or finding generation.