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 }}
Repository navigation
Bug: ACP gets confused when I make a workspace for a repo that has existing specs #210
Bug Triage: ACP Workspace Confusion with Existing Specs ✅
Task: Investigate root cause and plan fix for workspace creation bug with existing specs
Completed Analysis
✅ Searched codebase for workspace creation logic
✅ Searched for spec numbering/detection code
✅ Identified root cause of the bug
✅ Documented root cause analysis
✅ Planned fix approach
✅ Designed regression testing strategy
✅ Provided handoff summary
Root Cause Analysis
The Bug: When creating a new workspace for a repo that already has existing specs (001, 002, etc.), ACP goes directly to "done" state instead of creating a new spec (003).
Root Cause Identified:
The issue is in how vTeam checks if a repository is "seeded". The seeding check (CheckRepoSeeding in components/backend/git/operations.go:158-203) looks for:
.claude/commands/ directory
.claude/agents/ directory
.specify/ directory
The problem: This check is done at the repository level (checking if these directories exist on the branch), NOT at the workspace/spec level. When a repo already has 001-* and 002-* specs from previous work, these directories already exist at the repo root, so the system thinks it's "done seeding" and shows the workspace as ready.
Current Flow:
User creates RFE with repo https://github.com/jwm4/lendyr-red (which already has specs/001-lendyr-red-banking/)
System calls CheckRepoSeeding() on the feature branch
Activity
bobbravo2 commentedon Oct 30, 2025
@claude triage and find the root cause of this bug. Plan a fix and regression testing plan to hand off to another agent.
claude commentedon Oct 30, 2025
Claude finished @bobbravo2's task —— View job
Bug Triage: ACP Workspace Confusion with Existing Specs ✅
Task: Investigate root cause and plan fix for workspace creation bug with existing specs
Completed Analysis
Root Cause Analysis
The Bug: When creating a new workspace for a repo that already has existing specs (001, 002, etc.), ACP goes directly to "done" state instead of creating a new spec (003).
Root Cause Identified:
The issue is in how vTeam checks if a repository is "seeded". The seeding check (
CheckRepoSeedingincomponents/backend/git/operations.go:158-203) looks for:.claude/commands/directory.claude/agents/directory.specify/directoryThe problem: This check is done at the repository level (checking if these directories exist on the branch), NOT at the workspace/spec level. When a repo already has
001-*and002-*specs from previous work, these directories already exist at the repo root, so the system thinks it's "done seeding" and shows the workspace as ready.Current Flow:
https://github.com/jwm4/lendyr-red(which already hasspecs/001-lendyr-red-banking/)CheckRepoSeeding()on the feature branch.claude/commands/,.claude/agents/,.specify/exist (from previous work)isSeeded = truespecs/{branchName}/doesn't exist yet!Expected Flow:
specs/{branchName}/exists specificallyFix Plan
Option 1: Check for Spec Directory Existence (Recommended)
Modify
CheckRepoSeeding()to also verify thatspecs/{branchName}/exists on the target branch:File:
components/backend/git/operations.goChanges needed:
Pros:
Cons:
Option 2: Support Numbered Spec Directories
If vTeam should support the numbered spec pattern (like spec-kit's
001-feature,002-feature), we'd need more extensive changes:specs/directory and find highest number{number}-{feature-name}patternThis is a larger feature addition and may not be the intended behavior.
Recommended Fix: Option 1
Rationale:
specs/{branchName}/where branchName is user-defined (e.g.,ambient-feature-name)specs/{branchName}/at line 597 ofoperations.goRegression Testing Plan
Test Cases to Add
1. Fresh Repo Seeding (baseline - should still work)
.claude/,.specify/, andspecs/{branchName}/2. Repo with Existing Specs (the reported bug)
specs/001-feature/and.claude/,.specify/at rootambient-new-feature)specs/ambient-new-feature/doesn't exist)3. Re-seeding Same Branch
4. Multiple Features in Progress
ambient-feature-a, seed itambient-feature-bon same repoIntegration Tests
File:
components/backend/tests/integration/rfe_seeding_test.go(new file)Manual Testing Checklist
specs/{branchName}/directoryHandoff Summary
For the Implementation Agent:
Primary Fix Location:
components/backend/git/operations.go:158-203CheckRepoSeeding()specs/{branchName}/directory existenceTesting Requirements:
components/backend/tests/integration/Files to Modify:
components/backend/git/operations.go(CheckRepoSeeding function)components/backend/tests/integration/rfe_seeding_test.go(new file for tests)Validation:
Edge Cases to Consider:
Status: Analysis complete. Ready for implementation by another agent.
| Branch: claude/issue-210-20251030-0119
sallyom commentedon Nov 2, 2025
🔍 Bug Review & Assessment Complete
📄 View Full Analysis (detailed assessment and implementation plan)
Session:
210-bug-review-1762118289Generated by vTeam BugFix Workspace
sallyom commentedon Nov 2, 2025
🔧 Implementation Complete
📄 View Implementation Details (full summary and code changes)
📋 Next Steps
Create a Pull Request to merge these changes:
To review locally:
Session:
210-bug-implement-fix-1762119336Generated by vTeam BugFix Workspace
sallyom commentedon Nov 3, 2025
🔄 Jira Task Updated
Jira task RHOAILT-503 has been updated with the latest information.
📄 Latest Analysis
Synchronized by vTeam BugFix Workspace
Gkrumbach07 commentedon Nov 18, 2025
Tracked in Jira: https://issues.redhat.com/browse/RHOAIENG-39101
Gkrumbach07 commentedon Jan 23, 2026
Migrated to Jira: https://issues.redhat.com/browse/RHOAIENG-39101