feat(augment): auto-create chatAgents entry on Kagenti agent deploy#3206
Conversation
When a Kagenti agent is successfully created via POST /kagenti/agents, the handler now auto-creates a corresponding chatAgents config entry with lifecycle stage "draft". This bridges the gap between Kagenti infrastructure deployment and the lifecycle governance system, enabling newly created agents to immediately appear in the lifecycle stepper and support submit-for-review flow. Changes: - Add adminConfig and getUserRef to KagentiRouteRegistrarContext - POST /kagenti/agents now auto-creates chatAgents entry with createdBy field on successful deploy - DELETE /kagenti/agents/:ns/:name now cleans up chatAgents entry - Add createdBy field to ChatAgentConfig type (augment-common)
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3206 +/- ##
==========================================
- Coverage 53.41% 53.40% -0.02%
==========================================
Files 2373 2373
Lines 84895 84924 +29
Branches 23568 23581 +13
==========================================
+ Hits 45349 45352 +3
+ Misses 39200 38023 -1177
- Partials 346 1549 +1203
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|



Summary
POST /kagenti/agents, the handler now auto-creates achatAgentsconfig entry withlifecycleStage: "draft"andcreatedByset to the current userDELETE /kagenti/agents/:ns/:name, the handler also cleans up the correspondingchatAgentsconfig entrycreatedByfield toChatAgentConfigtype in augment-commonThis bridges the gap between Kagenti infrastructure deployment and the lifecycle governance system, unblocking the "submit for review" flow for newly deployed agents.
Part of the Agent Lifecycle Governance Epic.
Test plan