Skip to content

Prevent duplicate team creation from informational queries - #1102

Open
RerankerGuo wants to merge 1 commit into
agentscope-ai:mainfrom
RerankerGuo:fix/issue-987-prevent-duplicate-team-creation
Open

Prevent duplicate team creation from informational queries#1102
RerankerGuo wants to merge 1 commit into
agentscope-ai:mainfrom
RerankerGuo:fix/issue-987-prevent-duplicate-team-creation

Conversation

@RerankerGuo

Copy link
Copy Markdown
Contributor

Summary

  • Bug fix: Manager incorrectly created duplicate teams when asked about team relationships
  • Root cause: No guardrail in team-management skill to distinguish informational queries from explicit creation requests
  • Fix: Added guardrails in SKILL.md + duplicate name detection in create-team.sh

Changes

  • manager/agent/skills/team-management/SKILL.md: Added ⚠️ Informational Queries section with explicit rules against creating/modifying teams in response to questions. Added pre-flight check example. Added duplicate creation reminder in Gotchas.
  • manager/agent/skills/team-management/scripts/create-team.sh: Added duplicate name detection that fails fast with a clear error message if a team with the same name already exists
  • changelog/current.md: Added changelog entry

Test plan

  • Shell syntax validation (bash -n)
  • CI run on GitHub
  • Manual: ask Manager about team relationships, verify no duplicate creation

Closes #987

When the admin asks about team relationships (e.g. 'what's the relationship
between Team X, Leader Y, and Worker Z?'), the Manager was incorrectly
interpreting the question as a creation request and spinning up duplicate
teams.

Fix:
- Added explicit guardrails in team-management SKILL.md distinguishing
  informational queries from creation requests
- Added pre-flight duplicate name detection in create-team.sh to fail-fast
  if a team with the same name already exists
- Updated Gotchas section with explicit anti-duplicate reminder

Closes agentscope-ai#987
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@RerankerGuo
RerankerGuo force-pushed the fix/issue-987-prevent-duplicate-team-creation branch from d0f6d16 to 797cb05 Compare July 30, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

manager给我建了2套一样的团队 || The manager created 2 sets of the same team for me.

1 participant