Skip to content

fix(multitenancy): support @PublicAgentCard on tenant-specific cards - #1176

Merged
kabir merged 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1175
Sep 25, 2026
Merged

kabir merged 1 commit into
a2aproject:mainfrom
ehsavoie:issue_1175

Conversation

@ehsavoie

Copy link
Copy Markdown
Collaborator
  • @tenant + @PublicAgentCard takes precedence over bare @tenant cards
  • Reject duplicate tenant card registrations
  • Throw when no default AgentExecutor bean exists
  • Widen A2AServerRoutes catch to handle all server errors

Fixes #1175 🦕

@ehsavoie
ehsavoie requested a review from kabir September 24, 2026 16:53
…uity

Move the @tenant qualifier from extras/multitenancy to server-common so
CdiUtils.resolveDefault() can filter tenant-qualified beans at all
@PublicAgentCard/@ExtendedAgentCard injection points. This makes
@tenant("x") @PublicAgentCard safe on tenant cards — previously it made
the default card injection ambiguous, causing 404 on the default endpoint.

- @PublicAgentCard tenant cards take precedence over bare @tenant cards
- Reject duplicate tenant @ExtendedAgentCard registrations
- Throw when no default AgentExecutor bean exists
- Widen A2AServerRoutes catch to handle all server errors

Fixes a2aproject#1175

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
@kabir
kabir merged commit d6068f5 into a2aproject:main Sep 25, 2026
19 of 20 checks passed
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.

[Bug]: Multitenancy fails if the AgentCard producer is @PublicAgentCard annotated

2 participants