Repository navigation
fix: fail closed in FixVerifier when target identifiers are missing - #81
Merged
OkiriGabriel merged 1 commit intoOct 15, 2026
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.
Description
FixVerifierreportedpassed: Truewithout observing the target in three places. They now fail closed with a reason, following the #53 pattern used for CI/CD, cloud and ArgoCD:pod_name/namespaceservice_nameFixes #69
Type of Change
Platform/Component
Testing
New
TestFailClosedVerificationclass intests/test_fix_verifier.py(12 tests):service_name, helm/terraform/unknown types, andverify_fixfor an unsupported type). Before the fix, all 10 fail; after it, they pass.subprocess.runcall is mocked, so nothing touches real infrastructure. The helmverify_fixtest also stubs_monitor_stability, so a regression fails fast instead of sleeping for 300 seconds.Full suite after the change: 290 passed, 2 skipped (278 passed, 2 skipped before).
Manual check: ran the repro script from #69, and all four calls now return
False(they returnedTruebefore). Also ran the incident types throughagent.core._verification_expected_stateinto the verifier: helm and terraform report "not implemented", and k8s and server with missing identifiers report which identifier is required.Test Configuration
Checklist
Screenshots (if applicable)
N/A
Breaking Changes
None to the API. See the behavior change under Additional Notes.
Additional Notes
status: "failed"and no 300s stability monitoring, instead of a false success. That could read as "the fix failed" rather than "couldn't verify". I keptpassed: Falseas the issue asks. If you'd prefer a distinct"unverified"status, I can add one._verification_expected_stateinagent/core.pyis unchanged; it no longer needs to change once the verifier fails closed.helm status/ terraform observation.Reviewer Checklist