Skip to content

fix(a2a): the agent's A2A tab no longer registers endpoints call_a2a_agent can't read (ent#898) - #3701

Merged
vybe merged 3 commits into
devfrom
fix/ent898-a2a-panel-endpoints
Oct 14, 2026
Merged

vybe merged 3 commits into
devfrom
fix/ent898-a2a-panel-endpoints

Conversation

@dolho

@dolho dolho commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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_agent never reads that table. It resolves only the platform-wide registry behind /api/settings/a2a-endpoints (#736). So every endpoint registered from the tab came back endpoint_not_found, and the form gave no sign of it.

The fix removes the form and keeps one registry:

  • A2aPanel.vue: the register form is gone. The section now links to Settings › Integrations, where A2AEndpointsPanel writes 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.
  • stores/agents.js: drops registerA2aEndpoint. removeA2aEndpoint stays for the cleanup.
  • User doc (a2a-protocol.md): describes the Settings panel. It no longer describes the per-agent form, and the stale "no settings panel" line is gone.
  • raw-color-baseline.json: lowers only the A2aPanel entry (raw_gray 104 → 87). Edited by hand, so no unrelated drift is absorbed.

Companion: Abilityai/trinity-enterprise#899 makes the per-agent POST answer 410 with a pointer to the registry. The two PRs merge independently: this one sends no POST, and the GET/DELETE it uses stay.

Fixes Abilityai/trinity-enterprise#898

Test plan

  • New tests/unit/a2aPanelOutboundEndpoints.spec.js (6 tests): no register form, no POST to 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.
  • Covers the issue's AC "an endpoint registered from the UI is resolvable by call_a2a_agent" together with two existing tests: a2aEndpointsPanel.mount.spec.js (the UI writes PUT /api/settings/a2a-endpoints) and test_ent761_outbound_control_oss.py::test_register_list_resolve_remove_with_no_provider_registered (that PUT resolves via a2a_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.png still shows the old form. Recapture with /capture-screenshots after merge.

Live-instance test (2026-10-14, local stack, PostgreSQL, a2a entitled; this branch + trinity-enterprise#899 mounted)

API

  • Per-agent 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.
  • Seeded legacy rows: GET lists them, has_credentials only, no secret in the body. /config carries them. Settings registry untouched. DELETE works. A cross-agent id gets 404 and the other agent's row survives; an unknown id gets 404.
  • Core bug, end to end (outbound enabled temporarily): call with 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)

  • No form, no credential input. The legacy rows are marked "not callable", and Remove sends DELETE only 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

  • The outbound section was inside the inbound-exposure guard, so an agent not exposed over A2A hid its legacy rows and the pointer. It now renders either way.
  • Settings › Integrations is admin-only, so non-admin owners now get the place named as text instead of a link that silently lands them on their default tab.
  • Legacy rows stack on narrow screens (the name and URL were truncated to "legacy-…" at 390px).

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

…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]>
@dolho dolho added the ui PR touches the frontend UI — triggers Playwright e2e tests label Oct 14, 2026
…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]>
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]>
@vybe

vybe commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

merge-train note (mechanical fix pushed to your branch, commit a4b77ac):

  • A2aPanel.vue: the legacy-rows status paragraph used dark:text-status-warning-300 on a plain surface; the design-system contract puts status text at the 400 tier in dark. The badge keeps its text-on-tint 300. One token, nothing else.

Validated at 663b7d1. Reminder for after merge: the closing keyword is cross-tracker, so ent#898 closes but will need status-in-dev set by hand; docs/memory/feature-flows/a2a-inbound-server.md:28 still says A2aPanel owns outbound endpoints.

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train: batch validated on train/20261014-1750 (train PR #3729 green)

@vybe
vybe merged commit a093f24 into dev Oct 14, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants