Skip to content

feat: A2A notification channel for AI agents - #596

Merged
fclairamb merged 9 commits into
mainfrom
chore/spec-a2a-agent-notification
Oct 18, 2026
Merged

fclairamb merged 9 commits into
mainfrom
chore/spec-a2a-agent-notification

Conversation

@fclairamb

@fclairamb fclairamb commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

What & why

Spec for a new notification channel: SolidPing sends an incident to an AI agent over A2A (Agent2Agent). The agent investigates through the SolidPing MCP server, and its findings come back as a comment on the incident timeline.

Decisions taken in the spec:

  • A2A v1.0.1. v0.3 only if the SDK's compat package makes it cheap.
  • Auth: none, bearer token or API key header. OAuth2 later.
  • Events: incident opened, resolved, acknowledged. No comments, no reminders.
  • One A2A conversation per incident (contextId = incident uid).
  • Replies collected by polling GetTask with a chain of short jobs. No push notifications.

Spec: specs/todos/2026-10-18-02-a2a-agent-notification.md. Labelled autopilot so the implementation lands on this branch.

How to test

Spec only, nothing to run yet. The ## Tests section of the spec lists what the implementation must prove.

Checklist

Spec only, none of these apply until the implementation lands:

  • make fmt && make lint && make test pass locally
  • Tests added or updated for the change
  • Docs updated (web/docs/) if user-visible
  • Schema changes appended to the unreleased migration

🤖 Generated with Claude Code

Implemented by autopilot

The spec is implemented and archived (specs/done/2026/10/). Full gate green: Go build/lint/tests, dash0 e2e typecheck and lint, 2651 unit tests, Playwright 954 passed / 0 failed / 15 skipped (OAuth/OIDC/passkey, skipped by the specs themselves).

Decided by autopilot

No open questions were adopted. Judgment calls to check in review:

  • incident.reopened is also sent to the agent, as a reopen.
  • The poll job stores the incident as a2aIncidentUid so the resolve/ack cancel sweep does not drop it.
  • Idempotency messageId derives from the first job of the notification retry chain.
  • New dependency: a2a-go/v2 v2.6.0 (and a2a-go v0.3.15 for the 0.3 compat codec).

@fclairamb
fclairamb marked this pull request as ready for review October 18, 2026 11:15
@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.68644% with 77 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.30%. Comparing base (3f501a1) to head (d51ed39).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
server/internal/notifications/a2a.go 85.92% 47 Missing ⚠️
server/internal/handlers/integrations/a2a.go 67.39% 15 Missing ⚠️
server/internal/jobs/jobtypes/job_a2a_task_poll.go 74.50% 13 Missing ⚠️
server/internal/jobs/jobtypes/job_notification.go 92.85% 1 Missing ⚠️
server/internal/jobs/jobtypes/registry.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
- Coverage   83.32%   83.30%   -0.03%     
==========================================
  Files        1235     1238       +3     
  Lines      126550   127020     +470     
==========================================
+ Hits       105453   105812     +359     
- Misses      21088    21199     +111     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/app/server.go 81.77% <100.00%> (+0.01%) ⬆️
server/internal/app/services/services.go 100.00% <ø> (ø)
server/internal/crypto/credentials/conn_secrets.go 100.00% <ø> (ø)
server/internal/db/models/integration.go 72.85% <100.00%> (+0.19%) ⬆️
server/internal/handlers/incidents/service.go 83.24% <100.00%> (+0.28%) ⬆️
server/internal/handlers/integrations/service.go 78.96% <100.00%> (+0.05%) ⬆️
server/internal/jobs/jobdef/types.go 100.00% <ø> (ø)
server/internal/notifications/registry.go 94.73% <100.00%> (+0.29%) ⬆️
server/internal/notifications/sender.go 91.66% <ø> (ø)
server/internal/jobs/jobtypes/job_notification.go 78.57% <92.85%> (+1.42%) ⬆️
... and 4 more

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb and others added 7 commits October 18, 2026 13:57
New a2a integration type: SolidPing acts as an A2A client (a2a-go v2,
protocol 1.0, 0.3 through the a2av0 compat codec). One SendMessage per
incident lifecycle event, contextId = incident uid, idempotent messageId,
returnImmediately. Replies land on the incident timeline as comments
authored by the integration; running tasks are polled by a chain of
a2a_task_poll jobs (10s, 20s, 40s, then 60s, 30 min deadline). All A2A
HTTP traffic goes through the egress guard, card interface URL included.
New endpoint POST /orgs/:org/integrations/a2a/resolve-card.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The A2A panel reads the org from the route on the create page, which does
not pass it down.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb changed the title chore(specs): A2A notification channel for AI agents feat: A2A notification channel for AI agents Oct 18, 2026
@fclairamb
fclairamb merged commit 2f55dc3 into main Oct 18, 2026
36 checks passed
@fclairamb
fclairamb deleted the chore/spec-a2a-agent-notification branch October 18, 2026 16:49
fclairamb added a commit that referenced this pull request Oct 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.39.0](v0.38.6...v0.39.0)
(2026-10-18)


### Features

* A2A notification channel for AI agents
([#596](#596))
([2f55dc3](2f55dc3))
* **dash0:** calmer, flatter and phone-friendly dashboard UI
([#582](#582))
([ce933cc](ce933cc))
* vendor status check, SMS/voice quotas, upgrade-path CI and flaky test
fixes ([#591](#591))
([1a392ec](1a392ec))


### Bug Fixes

* **checks:** build the postgres check connection from an explicit
pq.Config ([#584](#584))
([a4b394a](a4b394a))
* **deps:** update github.com/dop251/goja digest to 313b6b6
([#578](#578))
([d068c02](d068c02))
* **deps:** update github.com/dop251/goja digest to d42f16b
([#597](#597))
([3f501a1](3f501a1))
* **deps:** update github.com/dop251/goja digest to e686264
([#590](#590))
([380ed48](380ed48))
* **deps:** update module github.com/knadh/koanf/v2 to v2.4.0
([#586](#586))
([c02a042](c02a042))
* **deps:** update module github.com/knadh/koanf/v2 to v2.4.1
([#594](#594))
([95e8ec3](95e8ec3))
* **deps:** update module github.com/posthog/posthog-go to v1.35.1
([#583](#583))
([efb4819](efb4819))
* **deps:** update module golang.org/x/mod to v0.42.0
([#598](#598))
([62e913d](62e913d))
* **showcase:** film a single region, as a plain docker run shows
([#595](#595))
([a443442](a443442))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
fclairamb added a commit that referenced this pull request Oct 19, 2026
Specs for the open findings of the daily security scan. Specs only, no
code change.

## Specs

| Spec | Severity | Finding | Summary |
|---|---|---|---|
| `specs/todos/2026-10-19-01-a2a-response-size-cap.md` | medium | J1
(2026-10-19) | The A2A client (Agent Card fetch, `SendMessage`,
`GetTask`, through the a2a-go SDK) reads success response bodies with no
size cap. Only the 30 s timeout bounds them. A member pointing an A2A
integration at their own server can exhaust the server's memory. Fix: a
capped reader in `a2aStatusTransport`. |

Scan of 2026-10-19 covered:
- the new A2A notification channel (#596), which held on egress,
tenancy, secrets and comment rendering apart from J1;
- the docs redesign;
- the dash0 changes.

It also verified the plugin-schema `$ref` fix of #593 (I1). No other new
finding.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant