Skip to content

fix(knowledge): inject drift findings into coder sessions (fixes #671)#673

Open
mickume wants to merge 1 commit into
mainfrom
fix/issue-671-drift-findings-injection
Open

fix(knowledge): inject drift findings into coder sessions (fixes #671)#673
mickume wants to merge 1 commit into
mainfrom
fix/issue-671-drift-findings-injection

Conversation

@mickume

@mickume mickume commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Drift findings from drift-review sessions were stored but never injected into downstream coder sessions. Coders independently rediscovered issues the drift reviewer had already found.

Closes #671

Changes

File Change
packages/agentfox/agentfox/knowledge/fox_provider.py Added _query_drift(), wired into retrieve() alongside review findings
packages/agentfox/agentfox/knowledge/review_store.py supersede_injected_findings() now UPDATEs both review_findings and drift_findings
packages/agentfox/agentfox/knowledge/formatting.py Added format_drift_finding_parts() for drift-specific fields
packages/agentfox/tests/spec/test_10_fox_provider_cleanup.py Updated log format assertions (3-field → 4-field)

Verification

  • All existing tests pass: ✅
  • Linter / formatter: ✅
  • No regressions: ✅

Auto-generated by af-fix.

Drift findings from drift-review sessions were stored in drift_findings
but never injected into downstream coder sessions via the
FoxKnowledgeProvider. Only review findings were queried and tracked.

Added _query_drift() to FoxKnowledgeProvider that queries
query_active_drift_findings() and merges results into retrieve()
alongside review findings. Both share the same max_items cap and
finding_injections tracking. Updated supersede_injected_findings()
to UPDATE both review_findings and drift_findings tables.
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.

bug: drift findings are never injected into coder sessions

1 participant