Skip to content

fix(a2a): serve agent card endpoint-relative + every spelling Copilot probes - #243

Merged
jrosskopf merged 2 commits into
mainfrom
a2a-card-endpoint-relative
Aug 30, 2026
Merged

jrosskopf merged 2 commits into
mainfrom
a2a-card-endpoint-relative

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Why

Copilot Studio registration mechanically succeeds but the first real turn returns a bare SystemError — and nothing reaches our /a2a endpoint (confirmed 2026-08-30 in lab ingress logs: zero POST /a2a during the failing window).

Root cause: Copilot's browser-time discovery probes a spread of card paths and falls back to the origin root, so it finds our /.well-known/agent-card.json (200) and registration completes. But its runtime orchestrator resolves the card relative to the registered endpoint (https://agent-lab.data-zoo.de/a2a) → GET /a2a/.well-known/agent-card.json404SystemError, before it ever POSTs.

The same logs show Copilot probing 5 filename spellings (agent-card.json, agent.json, agentcard.json, agentCard.json, agent_card.json) at both root and /a2a/.well-known/ — 8 of 10 were 404ing.

What

Serve the card at all five spellings at both the origin root (browser discovery) and under /a2a/.well-known/ (runtime, endpoint-relative). Costs nothing; removes every discovery guess and is the likely fix for the runtime SystemError.

  • a2a_spec.rs: CARD_FILENAMES const + loop; new card_router_nested for the /a2a mount.
  • triton-embed: merge the nested card router into the /a2a nest.
  • test: the_agent_card_is_public_and_describes_the_endpoint now asserts all 10 paths return 200.

Verification

cargo test -p triton-tests --test it a2a → 21 passed; clippy clean. Live E2E against lab follows the agent-template vendor bump.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

jrosskopf and others added 2 commits August 30, 2026 18:28
…ilot probes

Copilot Studio auto-discovers the agent card at browser time by trying a
spread of paths and falling back to the origin root — so registration
succeeds off our root `/.well-known/agent-card.json`. But its RUNTIME
orchestrator resolves the card RELATIVE TO THE REGISTERED ENDPOINT
(`https://…/a2a`), i.e. `GET /a2a/.well-known/agent-card.json`, which we
did not serve. That 404 fails Microsoft-side with a bare "SystemError"
before any request reaches us — confirmed 2026-08-30: zero POST /a2a
during the failing window, only 404s on the endpoint-relative card path.

Serve the card at every filename Copilot was observed probing
(agent-card.json, agent.json, agentcard.json, agentCard.json,
agent_card.json) at BOTH the origin root and under `/a2a/.well-known/`.
Removes the registration friction (8 of 10 discovery probes were 404ing)
and is the likely fix for the runtime SystemError.

Verified: the card discovery test now asserts all 10 paths 200.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jrosskopf
jrosskopf merged commit 39bcc10 into main Aug 30, 2026
3 checks passed
@jrosskopf
jrosskopf deleted the a2a-card-endpoint-relative branch August 30, 2026 16:34
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.

1 participant