-
Notifications
You must be signed in to change notification settings - Fork 46
Migrate to namespace-scoped RBAC and improve AI assessment workflow #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ead9b4f
689db29
2ff3bd0
acd74b9
24d48eb
212ccea
70b4dc5
79e39bf
58c822f
968f22c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,65 +1,11 @@ | ||
| name: Bug Assessment | ||
| description: Assess bug reports for priority, severity, and component classification | ||
|
|
||
| system_prompt: | | ||
| You are an expert software engineer analyzing bug reports for the vTeam project. | ||
|
|
||
| vTeam is a comprehensive AI automation platform containing: | ||
| - RAT (Refinement Agent Team) System: AI-powered automation for engineering refinement | ||
| - Ambient Agentic Runner: Kubernetes-native platform for automated agentic sessions | ||
| - vTeam Tools: Supporting tools and MCP client integration | ||
|
|
||
| Analyze the bug report and provide: | ||
| 1. Severity assessment (Critical, High, Medium, Low) | ||
| 2. Component identification (RAT System, Ambient Runner, vTeam Tools, Infrastructure) | ||
| 3. Priority recommendation based on impact and urgency | ||
| 4. Suggested labels for proper categorization | ||
|
|
||
| user_prompt: | | ||
| Please analyze this bug report: | ||
|
|
||
| {{ issue_body }} | ||
|
|
||
| Provide your assessment in this format: | ||
|
|
||
| ## Bug Assessment | ||
|
|
||
| **Severity:** [Critical/High/Medium/Low] | ||
| **Component:** [RAT System/Ambient Runner/vTeam Tools/Infrastructure] | ||
| **Priority:** [P0/P1/P2/P3] | ||
| **Impact:** [Brief description of user/system impact] | ||
|
|
||
| **Recommended Labels:** | ||
| - severity-[level] | ||
| - component-[name] | ||
| - priority-[level] | ||
| - [any additional relevant labels] | ||
|
|
||
| **Analysis:** | ||
| [Brief explanation of your assessment reasoning] | ||
|
|
||
| labels: | ||
| - name: "severity-critical" | ||
| description: "Critical severity bug" | ||
| color: "B60205" | ||
| - name: "severity-high" | ||
| description: "High severity bug" | ||
| color: "D93F0B" | ||
| - name: "severity-medium" | ||
| description: "Medium severity bug" | ||
| color: "FBCA04" | ||
| - name: "severity-low" | ||
| description: "Low severity bug" | ||
| color: "0E8A16" | ||
| - name: "component-rat" | ||
| description: "RAT System component" | ||
| color: "1D76DB" | ||
| - name: "component-ambient" | ||
| description: "Ambient Agentic Runner component" | ||
| color: "0052CC" | ||
| - name: "component-tools" | ||
| description: "vTeam Tools component" | ||
| color: "5319E7" | ||
| - name: "component-infrastructure" | ||
| description: "Infrastructure/DevOps component" | ||
| color: "000000" | ||
| messages: | ||
| - role: system | ||
| content: >+ | ||
| You are an expert software engineer analyzing bug reports for the vTeam project. vTeam is a comprehensive AI automation platform containing RAT System, Ambient Agentic Runner, and vTeam Tools. Analyze the bug report and provide: 1. Severity assessment (Critical, High, Medium, Low) 2. Component identification (RAT System, Ambient Runner, vTeam Tools, Infrastructure) 3. Priority recommendation based on impact and urgency 4. Suggested labels for proper categorization. The title of the response should be: "### Bug Assessment: Critical" for critical bugs, "### Bug Assessment: Ready for Work" for complete bug reports, or "### Bug Assessment: Needs Details" for incomplete reports. | ||
| - role: user | ||
| content: '{{input}}' | ||
| model: openai/gpt-4o-mini | ||
| modelParameters: | ||
| max_tokens: 100 | ||
| testData: [] | ||
| evaluators: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,91 +1,10 @@ | ||
| name: Feature Assessment | ||
| description: Assess feature requests for feasibility, priority, and strategic alignment | ||
|
|
||
| system_prompt: | | ||
| You are a product strategy expert analyzing feature requests for the vTeam project. | ||
|
|
||
| vTeam is a comprehensive AI automation platform with these strategic goals: | ||
| - Enable AI-assisted development workflows for Red Hat engineering | ||
| - Reduce engineering refinement time through intelligent automation | ||
| - Provide Kubernetes-native agentic task execution capabilities | ||
| - Support browser automation and data processing workflows | ||
|
|
||
| Key components: | ||
| - RAT (Refinement Agent Team) System: Streamlit-based RFE creation with 7-step council process | ||
| - Ambient Agentic Runner: Kubernetes platform with Go backend, NextJS frontend, Python AI service | ||
| - vTeam Tools: Configuration management and MCP client integration | ||
|
|
||
| Analyze the feature request considering: | ||
| 1. Strategic alignment with AI-assisted development goals | ||
| 2. Technical feasibility within existing architecture | ||
| 3. Business value and user impact | ||
| 4. Implementation complexity and effort estimation | ||
|
|
||
| user_prompt: | | ||
| Please analyze this feature request: | ||
|
|
||
| {{ issue_body }} | ||
|
|
||
| Provide your assessment in this format: | ||
|
|
||
| ## Feature Assessment | ||
|
|
||
| **Strategic Alignment:** [High/Medium/Low] | ||
| **Technical Feasibility:** [High/Medium/Low/Needs Research] | ||
| **Business Value:** [High/Medium/Low] | ||
| **Implementation Effort:** [Small/Medium/Large/Epic] | ||
| **Target Component:** [RAT System/Ambient Runner/vTeam Tools/New Component] | ||
|
|
||
| **Recommended Labels:** | ||
| - type-enhancement | ||
| - alignment-[level] | ||
| - effort-[size] | ||
| - component-[name] | ||
| - [any additional relevant labels] | ||
|
|
||
| **Analysis:** | ||
| [Brief explanation of strategic fit, technical considerations, and implementation approach] | ||
|
|
||
| **Acceptance Criteria Suggestions:** | ||
| [Key criteria that should be defined for this feature] | ||
|
|
||
| labels: | ||
| - name: "alignment-high" | ||
| description: "High strategic alignment" | ||
| color: "0E8A16" | ||
| - name: "alignment-medium" | ||
| description: "Medium strategic alignment" | ||
| color: "FBCA04" | ||
| - name: "alignment-low" | ||
| description: "Low strategic alignment" | ||
| color: "D93F0B" | ||
| - name: "effort-small" | ||
| description: "Small implementation effort" | ||
| color: "C2E0C6" | ||
| - name: "effort-medium" | ||
| description: "Medium implementation effort" | ||
| color: "FEF2C0" | ||
| - name: "effort-large" | ||
| description: "Large implementation effort" | ||
| color: "F9D0C4" | ||
| - name: "effort-epic" | ||
| description: "Epic-sized implementation effort" | ||
| color: "D73A49" | ||
| - name: "feasibility-high" | ||
| description: "High technical feasibility" | ||
| color: "28A745" | ||
| - name: "feasibility-medium" | ||
| description: "Medium technical feasibility" | ||
| color: "FFC107" | ||
| - name: "feasibility-low" | ||
| description: "Low technical feasibility" | ||
| color: "DC3545" | ||
| - name: "value-high" | ||
| description: "High business value" | ||
| color: "0366D6" | ||
| - name: "value-medium" | ||
| description: "Medium business value" | ||
| color: "6F42C1" | ||
| - name: "value-low" | ||
| description: "Low business value" | ||
| color: "6A737D" | ||
| messages: | ||
| - role: system | ||
| content: You are a helpful assistant. Analyze the feature request and provide assessment. | ||
| - role: user | ||
| content: '{{input}}' | ||
| model: openai/gpt-4o-mini | ||
| modelParameters: | ||
| max_tokens: 100 | ||
| testData: [] | ||
| evaluators: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,84 +1,11 @@ | ||
| name: General Assessment | ||
| description: Assess general issues, questions, and documentation requests | ||
|
|
||
| system_prompt: | | ||
| You are an expert technical analyst for the vTeam project, helping categorize and assess various types of issues. | ||
|
|
||
| vTeam project context: | ||
| - AI automation platform for engineering workflows | ||
| - Includes RAT System, Ambient Agentic Runner, and vTeam Tools | ||
| - Focus on AI-assisted development and automation capabilities | ||
| - Open source project with enterprise applications | ||
|
|
||
| For general issues, provide appropriate categorization and guidance based on the issue type: | ||
| - Questions: Provide classification and suggest appropriate resources | ||
| - Documentation: Assess scope and priority for documentation improvements | ||
| - Tasks: Evaluate complexity and categorize by type | ||
| - Discussions: Identify key stakeholders and decision points | ||
|
|
||
| user_prompt: | | ||
| Please analyze this issue: | ||
|
|
||
| {{ issue_body }} | ||
|
|
||
| Provide your assessment in this format: | ||
|
|
||
| ## Issue Assessment | ||
|
|
||
| **Issue Type:** [Question/Documentation/Task/Discussion/Other] | ||
| **Complexity:** [Simple/Moderate/Complex] | ||
| **Priority:** [High/Medium/Low] | ||
| **Target Audience:** [Developers/Users/Contributors/Maintainers] | ||
|
|
||
| **Recommended Labels:** | ||
| - type-[category] | ||
| - complexity-[level] | ||
| - audience-[group] | ||
| - [any additional relevant labels] | ||
|
|
||
| **Analysis:** | ||
| [Brief assessment of the issue and recommended approach] | ||
|
|
||
| **Suggested Actions:** | ||
| [What steps should be taken to address this issue] | ||
|
|
||
| labels: | ||
| - name: "type-question" | ||
| description: "General question or support request" | ||
| color: "CC317C" | ||
| - name: "type-documentation" | ||
| description: "Documentation improvement or request" | ||
| color: "0075CA" | ||
| - name: "type-task" | ||
| description: "General task or maintenance work" | ||
| color: "A2EEEF" | ||
| - name: "type-discussion" | ||
| description: "Discussion or RFC" | ||
| color: "D4C5F9" | ||
| - name: "complexity-simple" | ||
| description: "Simple issue, quick to resolve" | ||
| color: "C2E0C6" | ||
| - name: "complexity-moderate" | ||
| description: "Moderate complexity issue" | ||
| color: "FEF2C0" | ||
| - name: "complexity-complex" | ||
| description: "Complex issue requiring significant effort" | ||
| color: "F9D0C4" | ||
| - name: "audience-developers" | ||
| description: "Relevant to developers" | ||
| color: "7057FF" | ||
| - name: "audience-users" | ||
| description: "Relevant to end users" | ||
| color: "008672" | ||
| - name: "audience-contributors" | ||
| description: "Relevant to project contributors" | ||
| color: "E99695" | ||
| - name: "audience-maintainers" | ||
| description: "Relevant to project maintainers" | ||
| color: "F6BDD1" | ||
| - name: "needs-triage" | ||
| description: "Requires further triage" | ||
| color: "EDEDED" | ||
| - name: "good-first-issue" | ||
| description: "Good for newcomers" | ||
| color: "7057FF" | ||
| messages: | ||
| - role: system | ||
| content: >+ | ||
| You are an expert technical analyst for the vTeam project helping categorize and assess various types of issues. vTeam is an AI automation platform for engineering workflows including RAT System, Ambient Agentic Runner, and vTeam Tools. For general issues provide appropriate categorization and guidance: Questions (provide classification and suggest resources), Documentation (assess scope and priority), Tasks (evaluate complexity and categorize), Discussions (identify key stakeholders). The title of the response should be: "### Issue Assessment: High Priority" for urgent issues, "### Issue Assessment: Standard" for normal issues, or "### Issue Assessment: Low Priority" for minor issues. | ||
| - role: user | ||
| content: '{{input}}' | ||
| model: openai/gpt-4o-mini | ||
| modelParameters: | ||
| max_tokens: 100 | ||
| testData: [] | ||
| evaluators: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| kind: Role | ||
| metadata: | ||
| name: backend-api | ||
| rules: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,13 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: backend-api | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| kind: Role | ||
| name: backend-api | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: backend-api | ||
| namespace: ambient-code | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,13 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| kind: RoleBinding | ||
| metadata: | ||
| name: agentic-operator | ||
| roleRef: | ||
|
Comment on lines
1
to
5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P0] Operator RoleBinding is no longer namespaced The operator RBAC resources were also converted to Useful? React with 👍 / 👎. |
||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| kind: Role | ||
| name: agentic-operator | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: agentic-operator | ||
| namespace: ambient-code | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P0] Namespace omitted after converting backend RBAC to Role/RoleBinding
The backend RBAC was changed from cluster-scoped objects to
Role/RoleBinding, but neither the role manifest nor this binding specifiesmetadata.namespace. When these manifests are applied, Kubernetes will create them in whichever namespace is active (usuallydefault) while thebackend-apiServiceAccount remains hard-coded toambient-code(backend-sa.yaml). As a result, the binding never attaches to the service account and the backend pod loses all permissions to operate onrfeworkflows, leading to immediate authorization failures. Addmetadata.namespace: ambient-code(and ensure the Role lives in the same namespace) so the binding can grant the intended permissions.Useful? React with 👍 / 👎.