Repository navigation
Description
Context & Rationale
A MITIGATED finding (src/devops_cli/ai/review_schema.py:370-371), set by the verifier (ai/review/verification.py:1134-1149) or devops review verify --status MITIGATED (commands/review.py:896-908), is reportable=False and dropped from the merge recommendation (review_schema.py:793). Nothing records what mitigates it: the updates dict at verification.py:1171-1181 discards the verifier's reason, and no field names the mechanism or its file. The only file-keyed cross-session store (ai/review/common_hallucinations.py:966 auto_record_invalidated_finding) writes only on INVALIDATED. Neither devops review (ai/review/runner.py:1583-1645, :1646-1680) nor devops pr check-readiness (commands/pr.py:1304-1393) intersects the diff with mitigations. vibes patterns/kinetic-exploit-probes-and-invariant-leashing.md calls this mitigation perimeter decay; observations/systems/30-kinetic-falsification-and-the-ephemeral-exploit-harness.md §2.3: a gateway 10MB ceiling bypassed by a later streaming endpoint while the finding sat mitigated.
Scope & Deliverables
- Context & Rationale*: A MITIGATED finding (
src/devops_cli/ai/review_schema.py:370-371), set by the verifier (ai/review/verification.py:1134-1149) ordevops review verify --status MITIGATED(commands/review.py:896-908), isreportable=Falseand dropped from the merge recommendation (review_schema.py:793). Nothing records what mitigates it: the updates dict atverification.py:1171-1181discards the verifier'sreason, and no field names the mechanism or its file. The only file-keyed cross-session store (ai/review/common_hallucinations.py:966auto_record_invalidated_finding) writes only on INVALIDATED. Neitherdevops review(ai/review/runner.py:1583-1645,:1646-1680) nordevops pr check-readiness(commands/pr.py:1304-1393) intersects the diff with mitigations. vibespatterns/kinetic-exploit-probes-and-invariant-leashing.mdcalls this mitigation perimeter decay;observations/systems/30-kinetic-falsification-and-the-ephemeral-exploit-harness.md§2.3: a gateway 10MB ceiling bypassed by a later streaming endpoint while the finding sat mitigated. - Deliverable*: In order. First, record the mitigation: add
mitigating_mechanism: str | None(vibespatterns/epistemic-seam-and-mitigated-defect-auditing.md) andperimeter_files: list[str]toFinding; make the verifier prompt (ai/tasks/verify_finding_system.md) name both formitigated: true, else degrade to UNVERIFIED (alsoreportable=False,verification.py:1154-1155); stop settingmitigated=Trueon INVALIDATED (verification.py:1136-1138). Givedevops review verify --status MITIGATEDrepeatable--perimeter <path>, a mitigation reason field replacinginvalidation_reason, and optional--regression-test <path>, whichcore/coverage_index.py:187andcore/test_selection.py:112(viacommands/ci.py:665-667) already re-select on perimeter change. Human-accepted mitigations go to a tracked ledger likeai/review/common_hallucinations.json; model-only verdicts stay session-local. Second, measure before enforcing:devops review branch|prand_evaluate_pr_blockersintersect the diff with ledgerperimeter_filesand warn 'N mitigated findings whose perimeter changed', naming each, no exit-code change; noInvariantLeashRegistryport. Executable leash probes (pytest per finding,pytest-timeoutas new pinned dev dependency, untrusted-repo probes only insidedocker/sandbox.py:135WorkloadSandboxRunner) follow Executable Verification Criteria separately. - Constraint*: Locality:
.gitignore:63ignores.data/*and_get_reviews_base_dir(ai/review/review_environment.py) resolves sessions locally, so CI has nothing to intersect; the warning reads only the tracked ledger, separate from the hallucination catalog (glob-keyed, suppression polarity). Polarity: vibestools/kinetic_probe.pymaps exit 0 to 'confirmed' and non-zero to 'refuted', so an import failure reads as 'mitigation holds'; collection/import errors must re-open the finding, and an unresolvable perimeter path is reported, not dropped. Until the flag is repaired (verification.py:1138True on INVALIDATED,commands/review.py:904False), consumers key onstatus == MITIGATED. The 'Executable Verification Criteria' item's 'bounded subprocess sandbox (review_environment)' does not exist (no subprocess call there, nosetrlimitinsrc/; onlyWorkloadSandboxRunnercaps resources); correct that entry. A model-written probe is registered only after human acceptance viadevops review verify-- the epistemic-seam ruleverification.py:1142-1144already breaks, writing the hallucination catalog from the model'sinvalidated_criteria_matchedunguarded though the 'Model-in-the-Loop Prompt Benchmarking' item treats only human-verified records as trustworthy. - Measured*:
grep -rIl -ifor leash, InvariantLeashRegistry, perimeter_files and mitigating_mechanism across src, tests, .github, scripts and pyproject.toml: 0 files each.wc -l src/devops_cli/ai/review/review_environment.py: 51.grep -rn 'setrlimit\|RLIMIT' src/ | wc -l: 0.find .data/reviews -name findings.json | wc -l: 0 in this checkout (onlysample-validationsexists), so local MITIGATED incidence could not be measured; the second deliverable is what measures it. - Source*: vibes
patterns/kinetic-exploit-probes-and-invariant-leashing.md,tools/kinetic_probe.py,observations/systems/30-kinetic-falsification-and-the-ephemeral-exploit-harness.md,patterns/epistemic-seam-and-mitigated-defect-auditing.md
Strategic Alignment
- Milestone:
v0.2.23(devops ai Review Quality, LLM Routing & Multi-Language Validation) - Roadmap Reference:
docs/ROADMAP.md
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(review): mitigated findings re-verified when their perimeter cha…
dan-petty commentedon Sep 27, 2026
Closed by #639, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.