Skip to content

Required extensions aren't enforced, so ExtensionSupportRequiredError is never raised #1467

Closed

Description

@ConnorMoss02

The spec says that when an extension is marked required: true in the Agent Card and the client doesn't declare it, the agent MUST return ExtensionSupportRequiredError (§3.3.4, and again in §4.6.3). a2a-python defines the error and maps it on every transport, but nothing in src/ raises it, so a request without a required extension goes through.

The requested extensions are already parsed into the call context, so the check would fit next to validate_input_modes (#1269) as an opt-in flag on DefaultRequestHandler, off by default so existing servers don't change. a2a-go already does this check.

I'd like to take this if that shape works for you.

Activity

  1. added
    component: server
    on Nov 15, 2026
  2. added theissue type on Nov 15, 2026
  3. rohityan commented on Nov 15, 2026

    @rohityan

    Hi @ConnorMoss02 , thanks for raising this.
    Your are correct DefaultRequestHandlerV2._setup_active_task does not validate whether required extensions from agent_card are included in call_context.requested_extensions. As a result, ExtensionSupportRequiredError is never triggered when a client omits a required extension.
    We would welcome a pull request introducing this check alongside unit tests.

  4. ConnorMoss02 commented on Nov 16, 2026

    @ConnorMoss02
    ContributorAuthor

    Thanks @rohityan, opened #1482 with the check and tests.

  5. added a commit that references this issue on Nov 18, 2026
    bdef0c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

component: server

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions