Repository navigation
feat(review): mitigated findings re-verified when their perimeter changes (#587) - #639
Merged
dan-petty merged 3 commits intoSep 27, 2026
Conversation
dan-petty
deleted the
feat/587-mitigated-findings-perimeter-re-verification
branch
September 27, 2026 13:13
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.
Context & Rationale
Resolves #587.
A MITIGATED finding is reportable=False and excluded from merge blockers. Previously, nothing recorded what mitigated it, nor were perimeter files tracked in cross-session storage. When future commits altered the perimeter code defending a mitigated vulnerability, no warning was emitted.
Summary of Changes
mitigating_mechanism: str | None,perimeter_files: list[str], and optionalregression_test: str | NonetoFindingandSavedFindingmodels inreview_schema.py.src/devops_cli/ai/review/mitigated_findings.jsonand helper modulesrc/devops_cli/ai/review/mitigations.py(MitigatedFindingEntry,load_mitigated_findings,save_mitigated_findings,record_mitigated_finding,find_perimeter_changes,format_perimeter_warning).resolve_ledger_pathso pytest executions do not dirty repository ledger files.src/devops_cli/ai/tasks/verify_finding_system.mdto instruct the verifier thatmitigated: truerequires namingmitigating_mechanismand non-emptyperimeter_files, degrading toUNVERIFIED(reportable=False) if omitted.src/devops_cli/ai/review/verification.pyto reconcile and preserve mitigation metadata, defaulting unprovided mechanism/perimeter toUNVERIFIED(reportable=False).mitigated=TrueonINVALIDATEDfindings acrossverdicts.py.devops review verify --status MITIGATEDwith repeatable--perimeter <path>and optional--regression-test <path>options.devops review branch|pr(runner.py) and_evaluate_pr_blockers(commands/pr.py) intersect changed diffs against tracked perimeter files and warnN mitigated finding(s) whose perimeter changed, naming each finding, without altering exit codes.Executable Verification Criteriasandbox reference indocs/ROADMAP.mdtoHostSandbox/WorkloadSandboxRunner.task-587-mitigated-findings-re-verified-when-their-perimeter-changes.mdto Done.tests/test_mitigated_perimeter.pywith structural tuple equality assertions.Verification
uv run devops ci) passing 100% across all 10 quality gates.