Skip to content

fix: integrate FixVerifier after successful remediation - #56

Merged
OkiriGabriel merged 5 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:candidate/open-devops-agent-7-fix1-20260819
Aug 31, 2026
Merged

OkiriGabriel merged 5 commits into
open-devops-agent:mainfrom
Nitjsefnie-OSC:candidate/open-devops-agent-7-fix1-20260819

Conversation

@Nitjsefnie

Copy link
Copy Markdown
Contributor

Description

Integrates the existing FixVerifier into 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring
  • New platform/collector support

Platform/Component

  • Core Agent
  • Kubernetes
  • CI/CD (specify: ____________)
  • Cloud Provider (specify: ____________)
  • ArgoCD
  • Docker
  • API Server
  • Tools/Executor
  • Documentation
  • Tests

Testing

  • Unit tests added/updated
  • Integration tests pass
  • Manual testing performed
  • Tested with dummy data
  • Tested in production-like environment

Test Configuration

OS: GitHub-hosted Ubuntu runners
Python Version: 3.10, 3.11, 3.12
Kubernetes Version: N/A
Cloud Provider: N/A

Fork CI run 32230503294 checked out exact head 9b14d8d1eaa7d61a598acf7e37eeb337b1d77b62 and 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

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

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

  • Code quality is acceptable
  • Tests are comprehensive
  • Documentation is updated
  • No security concerns
  • Performance impact is acceptable

Generated by Kimi K3 (implementation, testing, verification), GPT-5.6 Sol (brief, review)

Nitjsefnie and others added 5 commits August 19, 2026 08:51
…-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]>
…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]>
@Nitjsefnie Nitjsefnie changed the title feat: integrate FixVerifier after successful remediation fix: integrate FixVerifier after successful remediation Aug 24, 2026
@OkiriGabriel

Copy link
Copy Markdown
Collaborator

Reviewed — CI is green across all checks. FixVerifier integration after successful remediation is solid. Merging to main.

@OkiriGabriel
OkiriGabriel merged commit 8ad8ba3 into open-devops-agent:main Aug 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate FixVerifier post-remediation verification into agent loop

2 participants