Skip to content

fix(a2a-server): fix several SHOULD/MAY-level ACTS conformance gaps - #302

Merged
muscariello merged 2 commits into
mainfrom
fix/task-history-accumulation
Sep 28, 2026
Merged

muscariello merged 2 commits into
mainfrom
fix/task-history-accumulation

Conversation

@muscariello

@muscariello muscariello commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Continues the ACTS conformance work from #298/#299: the rust ACTS dashboard flagged several SHOULD/MAY-level failures beyond the MUST-level timestamp bug already fixed.

Fixes six failing tests:

  • CORE-HIST-003/005/006: history wasn't accumulated across multi-turn tasks, and historyLength was only honored on GetTask, not on SendMessage's own response.
  • CARD-CACHE-001: Agent Card responses carried no Cache-Control/ETag (spec §8.6.1).
  • REST-CT-001: REST responses didn't set application/a2a+json / application/problem+json.
  • VER-NEG-002: an absent A2A-Version header was accepted as whatever version the interface serves, instead of defaulting to 0.3.
  • PUSH-ERR-001: get_push_config returned PushNotificationNotSupportedError for a nonexistent config id, instead of TaskNotFoundError (spec §3.1.8 explicitly overloads this error for a missing config).

Each fix has a regression test, verified to fail without the fix. Full workspace just lint, cargo fmt --check, and just check-headers pass.

Not included: CORE-CAP-002 (undeclared capabilities treated as permissive rather than refused) is a deliberate, documented design choice with real blast radius for existing embedders — left for a separate discussion rather than reversed here.

- Accumulate message history across multi-turn tasks and honor
  historyLength on SendMessage's own response, not just on GetTask.
- Send Cache-Control/ETag on Agent Card responses (spec 8.6.1).
- Tag REST responses application/a2a+json and errors
  application/problem+json.
- Treat an absent A2A-Version header as 0.3 instead of accepting it
  as whatever version the interface serves.
- Report a nonexistent push notification config as TaskNotFoundError
  instead of PushNotificationNotSupportedError (spec 3.1.8).

Signed-off-by: Luca Muscariello <[email protected]>
@muscariello
muscariello requested a review from a team as a code owner September 25, 2026 06:57
The absent-header-means-0.3 fix now rejects these calls the same way
it would reject any other 1.0 client that skips the header, since
they call JsonRpcTransport directly instead of going through
A2AClient, which already sets this by default.

Signed-off-by: Luca Muscariello <[email protected]>
@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.63180% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
a2a-server/src/handler.rs 83.47% 20 Missing ⚠️

📢 Thoughts on this report? Let us know!

@muscariello
muscariello added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 18fadd4 Sep 28, 2026
21 of 22 checks passed
@muscariello
muscariello deleted the fix/task-history-accumulation branch September 28, 2026 08:51
@github-actions github-actions Bot mentioned this pull request Sep 30, 2026
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.

3 participants