Repository navigation
fix(a2a): the agent's A2A tab no longer registers endpoints call_a2a_agent can't read (ent#898) - #3701
Merged
Conversation
…agent can't read (ent#898) The A2A tab's outbound form wrote the per-agent enterprise table, but call_a2a_agent resolves only the platform-wide registry behind /api/settings/a2a-endpoints (#736), so every endpoint registered there was uncallable with no sign of it. The tab now links to Settings › Integrations, where A2AEndpointsPanel writes the registry the call path reads. Rows left in the per-agent table are listed as not callable with a Remove button. The agents store drops registerA2aEndpoint. A2aPanel's raw-gray ratchet entry drops 104 -> 87 (the form's inputs). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r admins (ent#898) Found by testing against a live instance: - The outbound section sat inside the inbound-exposure v-else, so an agent not exposed over A2A hid its legacy per-agent rows and the pointer to the registry. Outbound has nothing to do with inbound exposure; the section now renders either way. - Settings › Integrations is adminOnly, so a non-admin owner's link silently landed on their default Settings tab. Only admins get the link (the LibrarySkillsSection idiom); others see the place named. - Legacy rows stack below sm so the name and URL stay readable at phone width. Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks done
merge-train: mechanical, per the merge-train note on the PR. The design system contract puts status/state text on a plain surface at the 700 tier in light and the 400 tier in dark; the badge keeps its text-on-tint 300. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
|
merge-train note (mechanical fix pushed to your branch, commit a4b77ac):
Validated at 663b7d1. Reminder for after merge: the closing keyword is cross-tracker, so ent#898 closes but will need |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The outbound endpoint form on an agent's A2A tab wrote the per-agent enterprise table (
POST /api/enterprise/a2a/{name}/endpoints).call_a2a_agentnever reads that table. It resolves only the platform-wide registry behind/api/settings/a2a-endpoints(#736). So every endpoint registered from the tab came backendpoint_not_found, and the form gave no sign of it.The fix removes the form and keeps one registry:
A2AEndpointsPanelwrites the registry the call path reads. Rows left over in the per-agent table are listed as not callable, each with a Remove button, so they can be cleared. Rows are reported, not migrated: moving them into the platform-wide list would widen each one from a single agent to every agent on the instance.registerA2aEndpoint.removeA2aEndpointstays for the cleanup.a2a-protocol.md): describes the Settings panel. It no longer describes the per-agent form, and the stale "no settings panel" line is gone.Companion: Abilityai/trinity-enterprise#899 makes the per-agent
POSTanswer 410 with a pointer to the registry. The two PRs merge independently: this one sends noPOST, and theGET/DELETEit uses stay.Fixes Abilityai/trinity-enterprise#898
Test plan
tests/unit/a2aPanelOutboundEndpoints.spec.js(6 tests): no register form, noPOSTto the per-agent route from any UI source, the Settings link target, the legacy list + Remove →DELETE, the store has no writer. Failed before the fix (5/6), passes after.call_a2a_agent" together with two existing tests:a2aEndpointsPanel.mount.spec.js(the UI writesPUT /api/settings/a2a-endpoints) andtest_ent761_outbound_control_oss.py::test_register_list_resolve_remove_with_no_provider_registered(that PUT resolves viaa2a_outbound.resolve_endpoint). That test passes, 20/20 in the file.npm run test:unit: all pass, including the raw-color and loading-gate ratchets.docs/screenshots/a2a-config-panel.pngstill shows the old form. Recapture with/capture-screenshotsafter merge.Live-instance test (2026-10-14, local stack, PostgreSQL,
a2aentitled; this branch + trinity-enterprise#899 mounted)API
POST→ 410 with the registry pointer. The same holds for an empty body and no body. Nothing is stored and no audit row is written. A nonexistent agent gets the uniform 404; no auth gets 401.GETlists them,has_credentialsonly, no secret in the body./configcarries them. Settings registry untouched.DELETEworks. A cross-agent id gets 404 and the other agent's row survives; an unknown id gets 404.callwith the legacy name and with the legacy id →endpoint_not_found. The same target registered via Settings resolves for two different agents. Their 502 is example.com's own 404, i.e. past lookup.UI (Playwright, 17/17, light + dark + 390px)
DELETEonly and persists across reload. The Settings link lands on Settings › Integrations, which lists the registry entry and not the legacy rows. No legacy block on an agent with none. Zero console errors or warnings. No horizontal scroll at 390px.Found by the live run and fixed in 663b7d1
Not covered live: a non-admin session (pinned by the unit spec instead), and the MCP tools (unchanged here, covered by
test_ent761_*). All test data removed and the outbound switch restored afterwards.🤖 Generated with Claude Code