redhat-developer / redhat-developer/rhdh-plugins

Epic: Agent Lifecycle Governance

Open
#3,208 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement stale
Dominant language
TypeScript
Stars
48
Forks
120
Avg merge
2d 6h
Merged PRs (30d)
337

Description

Overview

Comprehensive overhaul of agent creation, lifecycle management, and registry in the augment plugin. Ensures all agents follow a governed lifecycle pipeline (draft → review → staging → production → retired) regardless of creation method.

Research Findings

See agent-lifecycle-research.md for full details including:

  • Complete Kagenti API surface map (35+ endpoints)
  • Live cluster exploration results
  • As-is vs to-be user journey maps
  • 7 identified bugs with priority rankings

PRs

P0 (Critical)
  • PR #3205 - Add DELETE route + UI button for draft agents
  • PR #3206 - Auto-create chatAgents entry on Kagenti agent deploy
  • PR 3 - Fix non-clickable agents in registry (deprioritized, partially addressed by PR #3206)
P1 (Important)
  • PR #3207 - Enforce lifecycle validation on publish/unpublish routes
  • PR 5 - Add createdBy field and scope My Agents tab to current user
  • PR 7 - Wire syncWorkflowToChatAgents on workflow publish
P2 (Nice-to-have)
  • PR 8 - Update docsContent.ts from 3-stage to 5-stage lifecycle model
  • PR 9 - Research RHDH orchestrator workflows for approval automation
  • PR 10 - Remove or wire orphan AgentCreationWizard component

Key Findings from Cluster Exploration

  1. Kagenti API has DELETE endpoint (DELETE /api/v1/agents/{ns}/{name}) - was not wired to chatAgents cleanup
  2. Two types of agents: API-managed (via backend) and K8s-native (via Helm/kubectl) - only API-managed show in backend list
  3. Auth: Keycloak OIDC with 60s token TTL, both public and confidential clients
  4. RHDH Orchestrator (SonataFlow) is deployed on cluster - potential for approval workflow automation

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read workspaces/augment/docs/agent-lifecycle-research.md first, then review the checked and unchecked PR items in this epic and the augment plugin's agent registry and lifecycle routes. Done means the selected lifecycle gaps are addressed across the listed creation methods, registry behavior, validation, synchronization, and documentation, with the relevant checks passing.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes, typescript
Domain
backend-api-design, devtools, full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.