Repository navigation
fix: integrate FixVerifier after successful remediation - #56
Merged
OkiriGabriel merged 5 commits intoAug 31, 2026
Conversation
…-devops-agent#7) Assert the agent loop awaits FixVerifier.verify_fix exactly once after a successful remediation with the incident-derived expected_state and a bounded monitoring duration, that the structured result reaches the completed result, the incident audit trail, and the Slack completion payload, and that a suggestions-only run never invokes the verifier. Co-Authored-By: Kimi K3 <[email protected]>
…n-devops-agent#7) When the agent loop completes with a successful remediation tool call, await the existing FixVerifier.verify_fix() once with an incident-type-specific expected_state and a bounded monitoring window (FIX_VERIFICATION_MONITORING_SECONDS = 0, immediate checks only, never the verifier's 300s default). Persist the structured result to the incident audit trail (verification.json) and send it to the Slack completion surface, and expose it as result["verification"]. Suggestions-only runs never invoke the verifier, and the remediation action sequence and fix_applied semantics are unchanged. Co-Authored-By: Kimi K3 <[email protected]>
…-devops-agent#7) Co-Authored-By: Kimi K3 <[email protected]>
…y stage (open-devops-agent#7) - Assert the queue completion mapper places result['verification'] into the canonical org-scoped audit entry returned by GET /audit. - Assert the agent's configured stability window makes at least one post-immediate observation (controlled clock, no wall-clock sleep). - Pin the documented 300-second monitoring duration in the verifier kwargs. Co-Authored-By: Kimi K3 <[email protected]>
…s-agent#7) - api/server.py: include the structured result['verification'] value in the canonical org-scoped audit entry so GET /audit and MCP list_audit return it for completed incidents (JSON null when verification is absent). - agent/core.py: use the documented 300-second stability-monitoring window instead of a hard-coded zero, so a reported-stable result reflects real post-immediate observations. Co-Authored-By: Kimi K3 <[email protected]>
Collaborator
|
Reviewed — CI is green across all checks. FixVerifier integration after successful remediation is solid. Merging to |
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
Integrates the existing
FixVerifierinto the agent completion path after a successful remediation. Verification results are retained in the incident log, canonical audit entry, and Slack notification while unsuccessful and suggestion-only runs remain unverified.Fixes #7
Type of Change
Platform/Component
Testing
Test Configuration
Fork CI run 32230503294 checked out exact head
9b14d8d1eaa7d61a598acf7e37eeb337b1d77b62and completed all 10 jobs successfully. Separate runner mutations confirmed the canonical-audit assertion fails when verification is omitted and the stability assertion fails when monitoring performs no observations.Checklist
Screenshots (if applicable)
N/A
Breaking Changes
None.
Additional Notes
The existing README and security documentation already describe post-remediation verification and a five-minute stability stage; this change makes the agent behavior match those documented guarantees.
Bugs discovered during verification:
Reviewer Checklist
Generated by Kimi K3 (implementation, testing, verification), GPT-5.6 Sol (brief, review)