You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Fix: reconciler conflict error prevents linkedSkills status update #422
The Skill Discovery E2E test intermittently fails because the controller's status update for linkedSkills hits a Kubernetes optimistic concurrency conflict and does not retry. This causes the linkedSkills field to never be populated, and the test times out after 180s.
Affected: main branch — all recent CI runs fail on this test. Impact: 1 test fails, 5 skip (cascading from same Describe block).
Root Cause
During reconciliation of an AgentRuntime with skill annotations, the controller attempts to update .status.linkedSkills. If another reconciliation loop modifies the same AgentRuntime object concurrently (e.g., adding labels, updating config-hash), the status update fails with:
Operation cannot be fulfilled on agentruntimes.agent.kagenti.dev "skill-discovery-agent":
the object has been modified; please apply your changes to the latest version and try again
The controller does not retry the status update after this conflict error. The reconciler returns the error, gets requeued, but the next reconciliation may take a different code path (object already has labels/hash), skipping the linkedSkills update.
Evidence
From CI run 27253451563 (branch fix/webhook-readiness-420, June 10 2026):
Test polls for linkedSkills from 04:57:42 to 05:01:20 (4+ minutes)
Controller logs show conflict error at 04:58:20Z
The linkedSkills field is never populated after the conflict
Same failure on main branch: runs 27249800636, 27249348694, 27249047484 all fail.
Activity
fix: wrap status update with RetryOnConflict to prevent linkedSkills …