instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a16z__magi__20 | a16z/magi | 20 | defect | 560b28b90bcdd30df9e9bc497e4d7167d9ae4532 | 6bee2d9a82f4ed0a2c80fae78e58bcb482da5e74 | feat: error handling in L1 watcher | Adds proper error handling to the L1 watcher. If any error is encountered, it attempts to fetch the block again. Great care is taken to ensure that channels are not updated unless all channel data is successfully fetched to prevent channels only being partially updated. | diff --git a/src/derive/mod.rs b/src/derive/mod.rs
index 07a66a43..6b37e07f 100644
--- a/src/derive/mod.rs
+++ b/src/derive/mod.rs
@@ -1,6 +1,7 @@
use std::{cell::RefCell, collections::HashMap, rc::Rc, sync::Arc};
use ethers_core::types::{Block, Transaction, H256};
+use eyre::Result;
use crate::{config::Config, ... | 1 | 1 | 1 | [{"id": "G0", "claim": "Gracefully handle the None case of chain_watcher.take_tx_receiver() in Pipeline::new instead of unwrapping it, since the surrounding code uses handled returns.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
a16z__magi__57 | a16z/magi | 57 | defect | bc39b3916c8891b529aecc66f9c3d973e226f4ec | fc2a05da500f84207297a2a26ab26f60831c268b | feat: follow safe head | closes #43 | diff --git a/bin/magi.rs b/bin/magi.rs
index 6a6db843..5d934c46 100644
--- a/bin/magi.rs
+++ b/bin/magi.rs
@@ -1,4 +1,4 @@
-use std::collections::HashMap;
+use std::{collections::HashMap, sync::mpsc::channel};
use clap::Parser;
use dirs::home_dir;
@@ -19,7 +19,6 @@ async fn main() -> Result<()> {
let config = ... | 4 | 2 | 1 | [{"id": "G0", "claim": "Lock acquisitions in the pipeline purge/push paths and the driver's state update should be handled gracefully rather than unwrapped, returning a Result so the Driver can detect a poisoned lock and shut down gracefully.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "i... | null |
a2aproject__a2a-java__624 | a2aproject/a2a-java | 624 | defect | 21c15d647156d14481be538517df21a7a1d78a48 | 7b2d9fb0bc4bb0804b75f74cfd652cf37eec81c7 | refactor: extract shared SSE event handling into SPI module | Create client-transport-spi module with AbstractSSEEventListener to eliminate code duplication between jsonrpc and rest transport implementations.
- Add AbstractSSEEventListener with common event/error handling logic
- Refactor jsonrpc and rest SSEEventListener to extend base class
- Add comprehensive test coverag... | diff --git a/.gitignore b/.gitignore
index c95331d77..143f602c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -52,4 +52,5 @@ nbactions.xml
# Private Claude config
.claude/
.serena/
+.bob/
claudedocs
diff --git a/client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/sse/SSEEventListener.java b/client/... | 1 | 1 | 0 | [{"id": "G0", "claim": "For consistency with the jsonrpc listener and AbstractSSEEventListener, the errorHandler parameter of the rest SSEEventListener constructor should be annotated with @Nullable, since the implementation already handles a null errorHandler.", "category": "maintainability", "verdict": "supported", "... | null |
a2aproject__a2a-java__684 | a2aproject/a2a-java | 684 | defect | e4e844f0049fbcf3f57787711b14f3a58484f7ff | 63e4e4d864c3c64dc0c155c71a905ecc1c78c13e | feat: Add tests for AUTH_REQUIRED | Fixes #504 🦕 | diff --git a/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java b/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java
index 2023fc7ac..d823f9ed4 100644
--- a/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java
+++ b/serv... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the testAuthRequiredWorkflow subscription consumer, tue.getTask().status().state() is likely incorrect because TaskUpdateEvent is a wrapper that probably has no getTask() method; the state should be extracted via getUpdateEvent() and only from a TaskStatusUpdateEvent, ignoring other update ev... | null |
a2aproject__a2a-java__700 | a2aproject/a2a-java | 700 | defect | 719ca9365a9eb1436238a32a02e1479be09119da | 1b9c521b6d878c7211db0bfbcb860b5adbb51527 | fix!: rewrite PartTypeAdapter to use flat JSON format for Part serialization | Replace the nested "file" wrapper with flat fields (raw, url, filename, mediaType) aligned with the proto Part message schema and A2A spec.
Fixes #689 🦕 | diff --git a/jsonrpc-common/src/main/java/io/a2a/jsonrpc/common/json/JsonUtil.java b/jsonrpc-common/src/main/java/io/a2a/jsonrpc/common/json/JsonUtil.java
index b301dc98c..734f3043a 100644
--- a/jsonrpc-common/src/main/java/io/a2a/jsonrpc/common/json/JsonUtil.java
+++ b/jsonrpc-common/src/main/java/io/a2a/jsonrpc/commo... | 3 | 2 | 0 | [{"id": "G0", "claim": "The new private writeMetadata helper in PartTypeAdapter.write is used inconsistently and incorrectly and may lead to serialization errors if metadata contains Part objects, so the PR should consistently use the existing static JsonUtil.writeMetadata method instead.", "category": "correctness", "... | null |
a2aproject__a2a-java__706 | a2aproject/a2a-java | 706 | defect | ebd09217a01c1bcf23ff92fe609127be0f705d9b | 97c18742e67a49726569b8ca1893101b7712a273 | feat: add convenience constructors to FileWithBytes | Add three constructors to FileWithBytes that accept a File, a Path, or a byte[] and handle base64 encoding internally, removing the need for callers to encode content before construction.
Fixes #702 🦕 | diff --git a/spec/src/main/java/io/a2a/spec/FileWithBytes.java b/spec/src/main/java/io/a2a/spec/FileWithBytes.java
index b5aef3813..4f08c286a 100644
--- a/spec/src/main/java/io/a2a/spec/FileWithBytes.java
+++ b/spec/src/main/java/io/a2a/spec/FileWithBytes.java
@@ -1,15 +1,21 @@
package io.a2a.spec;
+import java.io.F... | 3 | 3 | 2 | [{"id": "G0", "claim": "The File and Path convenience constructors read the entire file into memory without size validation and should enforce a reasonable size limit to prevent a DoS via OutOfMemoryError.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
a2aproject__a2a-java__707 | a2aproject/a2a-java | 707 | defect | ebd09217a01c1bcf23ff92fe609127be0f705d9b | 0fdcf3dd19049f2a16abd2357c9ea35aa6d6905f | feat: propagate OTel context in async ops and fix TransportProtocol config injection | - Replace direct TransportProtocol enum injection in AgentCardProducer with String injection + TransportProtocol.fromString() to avoid SmallRye Config's HyphenateEnumConverter failing on "HTTP+JSON" values passed via -D flags
- Add AsyncManagedExecutorProducer to the OpenTelemetry extras module, using MicroProfile Man... | diff --git a/examples/helloworld/server/src/main/java/io/a2a/examples/helloworld/AgentCardProducer.java b/examples/helloworld/server/src/main/java/io/a2a/examples/helloworld/AgentCardProducer.java
index 7ffb4dd09..fb66cc517 100644
--- a/examples/helloworld/server/src/main/java/io/a2a/examples/helloworld/AgentCardProduc... | 3 | 1 | 0 | [{"id": "G0", "claim": "The README's troubleshooting section shows a truncated exception message (`IllegalStateException: ManagedExecutor not injected`), and should show the exact message thrown by AsyncManagedExecutorProducer (`ManagedExecutor not injected - ensure MicroProfile Context Propagation is available`) so us... | null |
a2aproject__a2a-java__715 | a2aproject/a2a-java | 715 | defect | 566978cc794c2bf3cd0557c076a1d3acc35e7e0b | c41100d1174506ae433d706ddbecf68ecafd3b28 | fix(rest): map invalid history length to InvalidParamsError | ## Description
Fixes REST `getTask` error handling when `historyLength` is invalid.
Previously, invalid `historyLength` values could throw `IllegalArgumentException`
and be returned as an internal error (500). This change maps that case to
`InvalidParamsError`, returning the correct client error semantics (422)... | diff --git a/transport/rest/src/main/java/io/a2a/transport/rest/handler/RestHandler.java b/transport/rest/src/main/java/io/a2a/transport/rest/handler/RestHandler.java
index 3e38d00a3..91d91530f 100644
--- a/transport/rest/src/main/java/io/a2a/transport/rest/handler/RestHandler.java
+++ b/transport/rest/src/main/java/io... | 4 | 3 | 2 | [{"id": "G0", "claim": "Catching the generic IllegalArgumentException in getTask may wrongly report server-side exceptions from downstream logic as a 422 client error, so the handling should be narrowed to the expected parameter-validation case.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
a2aproject__a2a-java__720 | a2aproject/a2a-java | 720 | defect | fad1a1513dab33fee5b008c152abd2f6f2c89b9b | e3ae674b4ef12cb2ce1320d684b37682f5e52ccc | fix: Setting the proper content type for errors. | The expected content type is application/problem+json when there is an error and not application/json
Fixes #719 🦕 | diff --git a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java b/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
index ceded1fc4..d7cc14b4c 100644
--- a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
+++ b/reference/jsonrpc/s... | 3 | 2 | 0 | [{"id": "G0", "claim": "The error response body built by manual string concatenation in HTTPRestErrorResponse.toJson() does not escape special characters, so an error message containing user-controlled data could allow JSON injection; a proper JSON serialization library should be used instead.", "category": "security",... | null |
a2aproject__a2a-java__722 | a2aproject/a2a-java | 722 | defect | d11484be406ce2f44c02ea89d509fc72307c2e53 | b92a7454b87b6573ef64378ea790534e00f64c6d | fix!: Rename `blocking` to `returnImmediately` in SendMessageConfiguration | Sync a2a.proto with upstream (dec790a -> 601c408).
The `blocking` field in `SendMessageConfiguration` has been renamed to `return_immediately` with inverted semantics:
- `blocking=true` (wait) -> `returnImmediately=false`
- `blocking=false` (return immediately) -> `returnImmediately=true`
The default behavior c... | diff --git a/client/base/src/main/java/io/a2a/client/Client.java b/client/base/src/main/java/io/a2a/client/Client.java
index 2ca01307b..5c0d3fce2 100644
--- a/client/base/src/main/java/io/a2a/client/Client.java
+++ b/client/base/src/main/java/io/a2a/client/Client.java
@@ -696,7 +696,7 @@ private ClientEvent getClientEv... | 2 | 2 | 1 | [{"id": "G0", "claim": "In the A2ACommonFieldMapperTest JSON payload the conversion from \"blocking\": true to \"returnImmediately\": true inverts the test request's semantics from wait to return immediately, and per the PR description it should read \"returnImmediately\": false.", "category": "correctness", "verdict":... | null |
a2aproject__a2a-java__724 | a2aproject/a2a-java | 724 | defect | 5af2b29f6830bcd4f007e8584d62fa6cce03dfdf | d91c3daa1be8aa87ece126d3a70c674d102514d6 | fix!: Rename `ListTaskPushNotificationConfig` to plural `ListTaskPush… | …NotificationConfigs` for consistency
Fixes #704 🦕 | diff --git a/client/base/src/main/java/io/a2a/client/AbstractClient.java b/client/base/src/main/java/io/a2a/client/AbstractClient.java
index 3ef1747d5..bb43fb67c 100644
--- a/client/base/src/main/java/io/a2a/client/AbstractClient.java
+++ b/client/base/src/main/java/io/a2a/client/AbstractClient.java
@@ -14,8 +14,8 @@
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The gRPC error message should be plural (\"Failed to list task push notification configs: \") for consistency with the rest of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-java__728 | a2aproject/a2a-java | 728 | defect | 3399bd3c67ec03d37c3263b7264be29755bdb1f7 | d37a5e814aa9fe7bfcb1ac184fc4e618e924fa21 | fix: Reject SendMessage with mismatching contextId and taskId | When a message references an existing task but provides a contextId that doesn't match the task's context, reject it with an InvalidParamsError.
This fixes #723 | diff --git a/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java b/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java
index f73c84a72..ab19cc243 100644
--- a/server-common/src/main/java/io/a2a/server/requesthandlers/DefaultRequestHandler.java
+++ b/serv... | 2 | 1 | 0 | [{"id": "G0", "claim": "The check `task.contextId() != null` is redundant because the Task record's contract guarantees a non-null contextId, and it should be removed to align with the data model.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T... | null |
a2aproject__a2a-java__737 | a2aproject/a2a-java | 737 | defect | 56c1960e25449afd737b2c2ab3e71da9025c2bbe | 67dc9a3462305432471b8206e3cc2b094b2cf009 | fix: update RestErrorMapper to handle RFC 7807 Problem Details error format | This covers the core fix: the client's RestErrorMapper now reads the type URI from Problem Details responses (introduced by the server-side changes on this branch) instead of the old error/message fields, with backward compatibility for the legacy format.
Fixes #727
Fixes #730 🦕 | diff --git a/client/transport/rest/src/main/java/io/a2a/client/transport/rest/RestErrorMapper.java b/client/transport/rest/src/main/java/io/a2a/client/transport/rest/RestErrorMapper.java
index 92ce45416..3e2444fed 100644
--- a/client/transport/rest/src/main/java/io/a2a/client/transport/rest/RestErrorMapper.java
+++ b/c... | 4 | 3 | 2 | [{"id": "G0", "claim": "For ContentTypeNotSupportedError and InvalidAgentResponseError the server-provided message (the RFC 7807 title) is passed as the data argument while message is null, so those errors use their default message; for consistency with the other mappings errorMessage should be passed as the message ar... | null |
a2aproject__a2a-java__739 | a2aproject/a2a-java | 739 | defect | 56c1960e25449afd737b2c2ab3e71da9025c2bbe | 1da4049f4fedf7e106ee84600e6411d90fddfc09 | test: add unit tests for DeviceCodeOAuthFlow | Add unit tests for DeviceCodeOAuthFlow record class.
Test cases:
- Construction with all fields populated
- Null refreshUrl (optional field)
- Empty scopes map
- Null validation for required fields (deviceAuthorizationUrl, tokenUrl, scopes)
- Record equality and hashCode consistency
Follows the same testing ... | diff --git a/spec/src/test/java/io/a2a/spec/DeviceCodeOAuthFlowTest.java b/spec/src/test/java/io/a2a/spec/DeviceCodeOAuthFlowTest.java
new file mode 100644
index 000000000..fffde8fa7
--- /dev/null
+++ b/spec/src/test/java/io/a2a/spec/DeviceCodeOAuthFlowTest.java
@@ -0,0 +1,81 @@
+package io.a2a.spec;
+
+import static o... | 4 | 4 | 1 | [{"id": "G0", "claim": "The testConstruction_withEmptyScopes test should assert all fields of the constructed DeviceCodeOAuthFlow (deviceAuthorizationUrl, tokenUrl, refreshUrl) instead of only the scopes field, for consistency with the other construction tests.", "category": "testing", "verdict": "supported", "priority... | null |
a2aproject__a2a-java__740 | a2aproject/a2a-java | 740 | defect | 5be57f0ead6f999da02d28e7e5f0981685e4df42 | f1cd2b5a72441a71bd81f7b2df70189c5837f100 | feat: add Docker/Podman test utilities for conditional test execution | Add new test-utils-docker module with @RequiresDocker annotation for conditional execution of container-based tests.
Features:
- Detects both Docker and Podman availability
- Fails tests when containers unavailable (clear error message)
- Skips tests with -DskipDockerTests=true system property
- Modules always c... | diff --git a/boms/sdk/pom.xml b/boms/sdk/pom.xml
index c89cdc836..4c21b9e05 100644
--- a/boms/sdk/pom.xml
+++ b/boms/sdk/pom.xml
@@ -109,6 +109,12 @@
</dependency>
<!-- Test utilities -->
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artif... | 7 | 7 | 6 | [{"id": "G0", "claim": "The lazy initialization of the cached dockerAvailable flag is not thread-safe and can run checkDockerAvailable() several times under parallel test execution; make the field volatile and use double-checked locking.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
a2aproject__a2a-java__743 | a2aproject/a2a-java | 743 | defect | 26cb3adc0455bab5cb331291e1824cd9e43e762f | ed290be68f59b6dbc0ed53d1560262ed9e82c34c | feat(errors): add structured error codes and details to A2A error types | Replace brittle string-matching error detection in gRPC and REST transports with a structured approach using error codes (A2AErrorCodes) and a details field. The GrpcErrorMapper now extracts ErrorInfo from gRPC status details via a REASON_MAP lookup, and error types carry richer context through a dedicated details fiel... | diff --git a/client/transport/grpc/src/main/java/io/a2a/client/transport/grpc/GrpcErrorMapper.java b/client/transport/grpc/src/main/java/io/a2a/client/transport/grpc/GrpcErrorMapper.java
index b9ad3325b..5f06a4e39 100644
--- a/client/transport/grpc/src/main/java/io/a2a/client/transport/grpc/GrpcErrorMapper.java
+++ b/c... | 7 | 6 | 5 | [{"id": "G0", "claim": "The fallback assignment to `desc` can be null when both the status description and e.getMessage() are null, likely causing a NullPointerException in constructors and breaking the fallback error mapping.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}... | null |
a2aproject__a2a-java__756 | a2aproject/a2a-java | 756 | defect | 03e4458f7c75b405b6f446873ff674a494ebebe3 | 7f11b49af4ad6fb90681aea6807cbe83cfd20afd | fix: Keep stream open on interrupted state changes | Fixes #754 | diff --git a/server-common/src/main/java/io/a2a/server/events/EventConsumer.java b/server-common/src/main/java/io/a2a/server/events/EventConsumer.java
index 6fdfe8ea4..5969016a1 100644
--- a/server-common/src/main/java/io/a2a/server/events/EventConsumer.java
+++ b/server-common/src/main/java/io/a2a/server/events/EventC... | 2 | 1 | 1 | [{"id": "G0", "claim": "With the PR applied, subscribing to a task in TASK_STATE_INPUT_REQUIRED over JSON-RPC still returns immediately instead of keeping the event stream open until the task is completed, so the reproducer still fails.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
a2aproject__a2a-java__761 | a2aproject/a2a-java | 761 | defect | 03e4458f7c75b405b6f446873ff674a494ebebe3 | 35dedf7329df2854cc018dae9f0bd9bab43290c3 | feat: Add HTTP caching headers to Agent Card endpoint | Implements A2A specification section 8.6 caching requirements:
- Cache-Control header with configurable max-age
- ETag header derived from Agent Card content hash
- Last-Modified header with initialization timestamp
**Implementation:**
- Created AgentCardCacheMetadata bean in server-common to compute and cache H... | diff --git a/reference/grpc/src/test/java/io/a2a/server/grpc/quarkus/QuarkusA2AGrpcTest.java b/reference/grpc/src/test/java/io/a2a/server/grpc/quarkus/QuarkusA2AGrpcTest.java
index 24320b94d..7423edda0 100644
--- a/reference/grpc/src/test/java/io/a2a/server/grpc/quarkus/QuarkusA2AGrpcTest.java
+++ b/reference/grpc/src/... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `json.getBytes()` call in calculateETag uses the platform's default charset, which can produce different ETag values on systems with different default encodings and cause cache validation issues; it should explicitly use a standard charset such as UTF-8.", "category": "correctness", "verdict... | null |
a2aproject__a2a-java__769 | a2aproject/a2a-java | 769 | defect | d1578d35987eb7092f89344b3b4db4aba3bc8976 | 944f6b5f75b1d0c71907496614dd6c6dfbf02992 | fix: use application/json Content-Type for HTTP+JSON error responses | The spec is not explicit on that but the error responses should all use `application/json`.
* in JSON-RPC, an error response is a regular JSON-RPC response
* in HTTP+JSON, the error payload was moved from RFC 9457 to AIP-193 so the RFC-9457's `application/problem+json` no longer makes sense.
This fixes #768 | diff --git a/common/src/main/java/io/a2a/common/MediaType.java b/common/src/main/java/io/a2a/common/MediaType.java
index 9c7027f60..9cdc48211 100644
--- a/common/src/main/java/io/a2a/common/MediaType.java
+++ b/common/src/main/java/io/a2a/common/MediaType.java
@@ -2,6 +2,5 @@
public interface MediaType {
- publ... | 2 | 2 | 0 | [{"id": "G0", "claim": "Use the APPLICATION_JSON constant from io.a2a.common.MediaType instead of magic strings in A2AServerRoutesTest.java (lines 449, 467, 485).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the APPLICATION_JSON constant f... | null |
a2aproject__a2a-java__773 | a2aproject/a2a-java | 773 | defect | ed23f55febf5bf5573da58e8754d72be506e3a14 | 7a695e94e9cab3e9e1419a381cd2e0c506a2bcba | fix: preserve tenant and protocolVersion from AgentInterface in ClientBuilder | # Description
`ClientBuilder.findBestClientTransport()` was creating a new AgentInterface with only protocolBinding and url, discarding tenant and protocolVersion from the matched interface. This broke the intended fallback behavior where the AgentCard's default tenant should be used when no request-level tenant is ... | diff --git a/client/base/src/main/java/io/a2a/client/ClientBuilder.java b/client/base/src/main/java/io/a2a/client/ClientBuilder.java
index 81c812c91..946a0371b 100644
--- a/client/base/src/main/java/io/a2a/client/ClientBuilder.java
+++ b/client/base/src/main/java/io/a2a/client/ClientBuilder.java
@@ -328,17 +328,6 @@ pr... | 3 | 3 | 0 | [{"id": "G0", "claim": "The nested loop matching client preferred transports against serverInterfaces has O(M*N) time complexity and should be replaced with a map-based lookup reducing it to O(M+N).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add... | null |
a2aproject__a2a-java__782 | a2aproject/a2a-java | 782 | defect | c12888d97d9640c441e08acb3c949544bee48726 | 8ce196a476c1f10a3e5c7fd390ec3e690b04890f | fix: resolve event stream race conditions in EventConsumer and SSE tr… | …ansport
Fixed multiple race conditions causing intermittent test failures in streaming and subscription scenarios. These fixes reduced the failure rate from ~33% to 0% across 1,500+ test iterations in CI.
Removed executor.execute() wrapper in REST/JSONRPC routes that delayed subscription by 100-600ms, causing ev... | diff --git a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java b/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
index 7ca65cb35..b3d51ea4a 100644
--- a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
+++ b/reference/jsonrpc/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The polling loop condition `!Thread.currentThread().isInterrupted()` is redundant and `while(true)` would be more idiomatic.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
a2aproject__a2a-java__784 | a2aproject/a2a-java | 784 | defect | c12888d97d9640c441e08acb3c949544bee48726 | 5f6021f65d8b4613cbffed94416eb2197ad45950 | fix: return UnsupportedOperationError when subscribing to terminal tasks | Per A2A spec, attempting to subscribe to a task in a terminal state (completed, failed, canceled, rejected) must return UnsupportedOperationError.
The issue had two parts:
1. DefaultRequestHandler checked terminal state AFTER queue operations began, causing errors to be delivered via SSE stream instead of immedia... | diff --git a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java b/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
index 7ca65cb35..917cf8af3 100644
--- a/reference/jsonrpc/src/main/java/io/a2a/server/apps/quarkus/A2AServerRoutes.java
+++ b/reference/jsonrpc/s... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use String.format() for the terminal-state subscription error message, for consistency with other error messages in DefaultRequestHandler.java.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Re-throwing every A2AError fro... | null |
a2aproject__a2a-java__788 | a2aproject/a2a-java | 788 | defect | 5ae111febe8d292e880b32030d4b48252dfdae31 | 31408bed3e82810a055d2988c11081333b0df1db | fix: return TaskNotFoundError when SendMessage references non-existent taskId | Per A2A spec section 3.4.2, when a client includes a taskId in a Message, it MUST reference an existing task. The SDK was creating a new task with that id instead.
Added a guard in DefaultRequestHandler.initMessageSend() that throws TaskNotFoundError when the provided taskId does not reference an existing task.
T... | diff --git a/extras/push-notification-config-store-database-jpa/src/test/java/org/a2aproject/sdk/extras/pushnotificationconfigstore/database/jpa/JpaDatabasePushNotificationConfigStoreIntegrationTest.java b/extras/push-notification-config-store-database-jpa/src/test/java/org/a2aproject/sdk/extras/pushnotificationconfigs... | 2 | 1 | 0 | [{"id": "G0", "claim": "In GitHub Actions run 24245000423 the test QuarkusA2AJSONRPCVertxTest.testAgentToAgentLocalHandling fails with 'Local handling should complete within timeout ==> expected: <true> but was: <false>', suggesting the PR's switch from client-provided taskId/contextId with taskId-based routing to serv... | null |
a2aproject__a2a-java__795 | a2aproject/a2a-java | 795 | defect | 786e5fd49636829755b9d323ea8dbf8d83e6f787 | 20a0ab3bccd25ada5284157b88e106c2b851274a | fix: Fixing last TCK issues | Fixes #791 🦕 | diff --git a/extras/http-client-vertx/src/main/java/org/a2aproject/sdk/client/http/VertxA2AHttpClient.java b/extras/http-client-vertx/src/main/java/org/a2aproject/sdk/client/http/VertxA2AHttpClient.java
index 74a744b51..57ba3e38c 100644
--- a/extras/http-client-vertx/src/main/java/org/a2aproject/sdk/client/http/VertxA2... | 4 | 4 | 2 | [{"id": "G0", "claim": "PlainBodyWriteStream converts Buffer chunks to String one at a time with data.toString(StandardCharsets.UTF_8), which can corrupt multi-byte UTF-8 characters split across buffers; it should accumulate raw bytes and decode into a String only once a full newline-delimited line is identified.", "ca... | null |
a2aproject__a2a-java__798 | a2aproject/a2a-java | 798 | defect | cc272288d27acd470877f46eaadd9ae354fdfb1b | 701ab6652bcb901859ed0ba8a776b6820be58138 | fix: expose HTTP status code in JSONRPCTransport errors | Previously, when the JSONRPC transport received a non-2xx HTTP response, it threw a plain IOException with the status code embedded as a string (e.g. "Request failed 503"). This made it impossible for callers to programmatically distinguish 4xx from 5xx errors without fragile string parsing.
This change makes the st... | diff --git a/client/transport/jsonrpc/src/main/java/org/a2aproject/sdk/client/transport/jsonrpc/JSONRPCTransport.java b/client/transport/jsonrpc/src/main/java/org/a2aproject/sdk/client/transport/jsonrpc/JSONRPCTransport.java
index 070f564e5..708094cd1 100644
--- a/client/transport/jsonrpc/src/main/java/org/a2aproject/s... | 5 | 4 | 1 | [{"id": "G0", "claim": "sendPostRequest now throws A2AClientException (via line 330), which the bot takes to be a checked exception, so the missing entry in the method's throws clause would cause a compilation error.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1... | null |
a2aproject__a2a-java__806 | a2aproject/a2a-java | 806 | defect | d1e47697d0ac7874aa1dac28f5a31aba6a0c1f1f | 59089111b7ab32a96befc788d9db1f7905cecf88 | feat(http-client): add Android support and implement SPI for A2AHttpClient | # Summary of Changes
This PR introduces Android support for the A2A HTTP client, decouples the hardcoded JDK client using the Service Provider Interface (SPI) pattern, and aligns with the upcoming Gson migration by rebasing onto the `0.3-workflows` branch.
## 🌟 Key Highlights
- **Android Support**: Added a dedicate... | diff --git a/README.md b/README.md
index 45c0fa1d9..14289c27b 100644
--- a/README.md
+++ b/README.md
@@ -394,7 +394,7 @@ Different transport protocols can be configured with specific settings using spe
##### JSON-RPC Transport Configuration
-For the JSON-RPC transport, to use the default `JdkA2AHttpClient`, provid... | 8 | 7 | 2 | [{"id": "G0", "claim": "Appending response body lines with sb.append(line) without a newline concatenates all lines into one, potentially corrupting data, and reading the whole response into memory has no size validation to prevent DoS via OutOfMemoryError for large responses.", "category": "correctness", "verdict": "s... | null |
a2aproject__a2a-java__817 | a2aproject/a2a-java | 817 | defect | 215270cf58a68875270d5221b6179fcb4264e6b5 | a6b42b39b851916651d69ae2a2c2e664c8a75794 | fix: Apply historyLength from MessageSendConfiguration in SendMessage response | The onMessageSend() method was not applying the historyLength parameter from MessageSendConfiguration to the returned Task. When historyLength=0, the spec (CORE-HIST-003, Section 3.2.4) requires no history to be returned, but the full history was being included.
The fix reuses the existing limitTaskHistory() method ... | diff --git a/server-common/src/main/java/org/a2aproject/sdk/server/requesthandlers/DefaultRequestHandler.java b/server-common/src/main/java/org/a2aproject/sdk/server/requesthandlers/DefaultRequestHandler.java
index 0e3aab7f4..3cf09abc6 100644
--- a/server-common/src/main/java/org/a2aproject/sdk/server/requesthandlers/D... | 1 | 1 | 0 | [{"id": "G0", "claim": "The test's assertions on resultTask.history() contain redundant null checks that should be removed, since the Task record constructor guarantees history is non-null.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-java__842 | a2aproject/a2a-java | 842 | defect | 1d369683e257416d2cca62132caa912f5e90ad28 | 59604c18fee730120b6638c3ab30d634d027be5b | fix: replace raw SSE string handling with SSEEvent model and SSEParser | Introduce SSEEvent (data, id, event type, retry) and a spec-compliant SSEParser with buffer and line-length guards. Update postAsyncSSE and all SSE listeners across JDK, Android, JSONRPC, and REST transports to consume SSEEvent instead of raw strings. Using proper SSE Events
Fixes #841 🦕 | diff --git a/client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/JSONRPCTransport.java b/client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/JSONRPCTransport.java
index b1c38afcc..3a12cf8a5 100644
--- a/client/transport/jsonrpc/src/main/java/io/a2a/client/transport/jsonrpc/JSONRPCT... | 8 | 8 | 4 | [{"id": "G0", "claim": "dispatchEvent should update lastEventId and reset the event state even when the data buffer is empty (e.g. an id-only heartbeat event) instead of returning early before any of that happens.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
a2aproject__a2a-java__846 | a2aproject/a2a-java | 846 | defect | b93048290a0199eb22defb6ab7be55b136a6025e | 7ee0430331005c465ef455df453b3cca83db4fe1 | feat(client): add Android HTTP client and remove fallback in factory | - Port changes from PR 806 to main branch
- Add AndroidA2AHttpClient using HttpURLConnection in a new extras module
- Update A2AHttpClientFactory to fail fast if no provider is found
- Add abstract test classes in http-client and concrete implementations in android module
# Description
Thank you for opening a ... | diff --git a/extras/http-client-android/pom.xml b/extras/http-client-android/pom.xml
new file mode 100644
index 000000000..71dba7237
--- /dev/null
+++ b/extras/http-client-android/pom.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd... | 7 | 4 | 3 | [{"id": "G0", "claim": "If an exception occurs during connection.getOutputStream() or os.write() in postAsyncSSE, processSSEResponse is never called and the connection is never disconnected, so the connection leaks on write errors.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu... | null |
a2aproject__a2a-java__851 | a2aproject/a2a-java | 851 | defect | 6ba8e6f26b7d5b161dd8121470fa49ab1b6fd359 | 9cfcd306ee469195ab634513d7435a611bcd66f5 | feat: support authentication field in push notification webhooks | I found this wasn't getting propagated when working on https://github.com/a2aproject/a2a-tck/pull/178 | diff --git a/server-common/src/main/java/io/a2a/server/tasks/BasePushNotificationSender.java b/server-common/src/main/java/io/a2a/server/tasks/BasePushNotificationSender.java
index ca9092890..0e135c281 100644
--- a/server-common/src/main/java/io/a2a/server/tasks/BasePushNotificationSender.java
+++ b/server-common/src/m... | 2 | 2 | 1 | [{"id": "G0", "claim": "The null check for auth.schemes() is redundant as it is guaranteed to be non-null by the PushNotificationAuthenticationInfo constructor, so it should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "auth.credent... | null |
a2aproject__a2a-java__857 | a2aproject/a2a-java | 857 | defect | 8d50b3bd4b1330e1ff9b750420ae3b90cc4bdf6d | 6e5b36b53652e531351305cda54b9a681c5fca6b | feat: add version-aware push notification support | The protocol version used when creating a TaskPushNotificationConfig dictates the wire format of subsequent push notifications. v0.3 configs receive plain Task payloads; v1.0 configs receive StreamResponse-wrapped events.
Key changes:
- PushNotificationPayloadFormatter SPI for version-specific serialization
- Prot... | diff --git a/compat-0.3/reference/jsonrpc/src/main/java/org/a2aproject/sdk/compat03/server/apps/quarkus/A2AServerRoutes_v0_3.java b/compat-0.3/reference/jsonrpc/src/main/java/org/a2aproject/sdk/compat03/server/apps/quarkus/A2AServerRoutes_v0_3.java
index 5e268ca9c..06a2bb4b6 100644
--- a/compat-0.3/reference/jsonrpc/sr... | 10 | 9 | 3 | [{"id": "G0", "claim": "Push notifications are currently dispatched even if the task store update (Step 1) fails, which can notify external systems of an event that was never successfully persisted; Step 2 should only proceed if Step 1 succeeded, verifiable by checking that eventToDistribute still matches the original ... | null |
a2aproject__a2a-java__859 | a2aproject/a2a-java | 859 | defect | 8d50b3bd4b1330e1ff9b750420ae3b90cc4bdf6d | fee97c2804dcaf557baf15e94c4f4f5e8d336549 | docs: document v0.3 compatibility layer and standardize terminology | - Update architecture doc (compatibility_0.3.md) to reflect current state: multi-version deployment is implemented, remove historical planning artifacts, add VersionRouter and multi-version module docs
- Add README sections for serving v0.3 clients (standalone and multi-version) and communicating with v0.3 agents usin... | diff --git a/.claude/architecture/compatibility_0.3.md b/.claude/architecture/compatibility_0.3.md
index 5316027f9..c05f0643d 100644
--- a/.claude/architecture/compatibility_0.3.md
+++ b/.claude/architecture/compatibility_0.3.md
@@ -1,6 +1,6 @@
-# PRD: A2A Protocol 0.3 Backward Compatibility Layer
+# A2A Protocol 0.3 B... | 2 | 2 | 0 | [{"id": "G0", "claim": "The README example should use the `.withTransport(Class, Config)` pattern instead of `.transport(\"JSONRPC\")` to match the SDK's integration tests and the v1.0 API style.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ... | null |
a2aproject__a2a-java__871 | a2aproject/a2a-java | 871 | defect | e69300575884a08c0c63d07f3d90960a8a1480c5 | 7c505ce10afc08fa9178f6bfc8e4a753e47ed65a | fix: unify HTTP clients | The compat-0.3 modules can use the main HTTP clients.
| diff --git a/boms/sdk/pom.xml b/boms/sdk/pom.xml
index 149ebd6d3..e85d715e2 100644
--- a/boms/sdk/pom.xml
+++ b/boms/sdk/pom.xml
@@ -120,13 +120,6 @@
<version>${project.version}</version>
</dependency>
- <!-- Compat 0.3 HTTP Client -->
- <dependency>
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The create method will throw a NullPointerException if clientTransportConfig is null, because the null guard only reassigns a local transportConfig while the return statement still calls getHttpClient() on the original null parameter; the reviewer asks to reassign the clientTransportConfig param... | null |
a2aproject__a2a-python__1004 | a2aproject/a2a-python | 1,004 | defect | 24db37ee24c927df936289ad6ffbc8c746a44db8 | d44e706d794fb1bae18ffd6bc9e3b31387df94ad | feat(helpers): add non-text Part, Message, and Artifact helpers | ## Description
- [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md).
- [x] Make your Pull Request title in the <https://www.conventionalcommits.org/> specification.
- [x] Ensure the tests and linter pass (Run `bash scripts/format.sh` from the repository root t... | diff --git a/src/a2a/helpers/proto_helpers.py b/src/a2a/helpers/proto_helpers.py
index 79e1f739d..57909fc6a 100644
--- a/src/a2a/helpers/proto_helpers.py
+++ b/src/a2a/helpers/proto_helpers.py
@@ -3,6 +3,10 @@
import uuid
from collections.abc import Sequence
+from typing import Any
+
+from google.protobuf import st... | 3 | 3 | 1 | [{"id": "G0", "claim": "The type hint of new_data_part should be broadened from dict[str, Any] to Any and the docstring updated, since google.protobuf.Value can represent any JSON-serializable value, not just dictionaries.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
a2aproject__a2a-python__1016 | a2aproject/a2a-python | 1,016 | defect | a470bae7f1892054476703818a4a3be9b124cb84 | f865bf19b1934dedaeaaf8475e73900626b6f8c8 | fix(server): deliver push notifications across all owners | # Description
Fix a silent multi-tenant bug where push notifications were dropped for any deployment using authenticated users, and split the `PushNotificationConfigStore` read API into a user-callable owner-scoped read (`get_info`) and an internal cross-owner read for dispatch (`get_info_for_dispatch`).
## The bug... | diff --git a/itk/main.py b/itk/main.py
index cc761d081..76c72e1c2 100644
--- a/itk/main.py
+++ b/itk/main.py
@@ -31,7 +31,6 @@
InMemoryPushNotificationConfigStore,
)
from a2a.server.tasks.inmemory_task_store import InMemoryTaskStore
-from a2a.server.context import ServerCallContext
from a2a.types import a2a_pb2... | 2 | 1 | 0 | [{"id": "G0", "claim": "The loop in InMemoryPushNotificationConfigStore.get_info_for_dispatch can be simplified into a more concise and Pythonic nested list comprehension.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The database store's owner... | null |
a2aproject__a2a-python__1024 | a2aproject/a2a-python | 1,024 | defect | 7af60502532a44f440885157aaae36c024416b85 | 697db0d26235709b91273af43a1b76197b2d1f33 | feat(server): restore FastAPI /docs visibility for A2A routes | ## Summary
- Introduces `src/a2a/server/routes/helpers/` — a new subpackage of transport-specific route helpers mirroring the layout of `client/transports/`
- `add_a2a_routes_to_fastapi()` re-registers A2A Starlette routes as `APIRoute` instances so FastAPI's OpenAPI generator picks them up and they appear in `/doc... | diff --git a/docs/migrations/v1_0/README.md b/docs/migrations/v1_0/README.md
index da3d6ba79..0de221aca 100644
--- a/docs/migrations/v1_0/README.md
+++ b/docs/migrations/v1_0/README.md
@@ -465,6 +465,30 @@ app = FastAPI(routes=routes)
uvicorn.run(app, host=host, port=port)
```
+`FastAPI(routes=routes)` mounts the A... | 4 | 3 | 2 | [{"id": "G0", "claim": "The oneOf generation logic builds a Cartesian product of fields across all oneofs, which could lead to an exponential explosion of variants for messages with multiple oneofs; consider a more flattened or nested approach for scalability.", "category": "design", "verdict": "supported", "priority":... | null |
a2aproject__a2a-python__1025 | a2aproject/a2a-python | 1,025 | defect | 7af60502532a44f440885157aaae36c024416b85 | 6aa30d04b04e908278d77c8f11f26e2d0af6ca94 | test: extend install smoke test with runtime checks | This is a follow-up for #1019 to prevent similar regressions. Existing install smoke tests are updated to actually run some code with the dependencies listed in the profile. This is different from the unit tests which are executed with dev deps and all extras.
In addition this PR restructures this test harness and m... | diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml
index ace3ff072..faa19f701 100644
--- a/.github/workflows/install-smoke.yml
+++ b/.github/workflows/install-smoke.yml
@@ -8,7 +8,7 @@ on:
- 'src/**'
- 'pyproject.toml'
- 'uv.lock'
- - 'scripts/test_install_s... | 5 | 5 | 3 | [{"id": "G0", "claim": "Importing runtime check modules at the top level of tests/install_smoke/__main__.py will make the smoke test fail for profiles whose required extras are not installed; the import should be removed and replaced with lazy loading in main().", "category": "correctness", "verdict": "supported", "pri... | null |
a2aproject__a2a-python__1033 | a2aproject/a2a-python | 1,033 | defect | c0c6c08bcf84a4ef3642dfc0087028812c4ccd51 | ec09c2f109b9f7b2eb12b7088628532b65966e8b | test: Add integration tests for context id preservation. | Verify that work related to context_id in new architecture is completed.
Fixes #1032 🦕
| diff --git a/src/a2a/server/request_handlers/default_request_handler_v2.py b/src/a2a/server/request_handlers/default_request_handler_v2.py
index ecdc0cfef..dbc196fc2 100644
--- a/src/a2a/server/request_handlers/default_request_handler_v2.py
+++ b/src/a2a/server/request_handlers/default_request_handler_v2.py
@@ -71,9 +7... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo \"visiable\" to \"visible\" in the test comments for task1 and task2 in tests/integration/test_scenarios.py.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
a2aproject__a2a-python__1047 | a2aproject/a2a-python | 1,047 | defect | 6b3b0d878f2cc87b11989ad6c5bd3177a5d16a3e | d6278a979058a2a64bdfa95368dbbee8db3b00c9 | fix: Improve task_push_notification_config presence check. | Call _push_config_store.set_info only when task_push_notification_config is set.
Due to proto3 semantic bool(params.configuration.task_push_notification_config) was always True.
Fixes #1045 🦕
| diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index e803b567f..65a3172a0 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -303,8 +303,7 @@ asy... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test's name says set_info is called, but the test actually asserts it is not called (push_store.set_info.assert_not_called()), so the test should be renamed to accurately reflect the behavior being verified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop... | null |
a2aproject__a2a-python__1053 | a2aproject/a2a-python | 1,053 | defect | 94ad59435649a6bd56efd2d260bf5193d7e991b4 | 73712cb9d97c13c6a037ad388be68f0347d5eed1 | refactor: Enqueue exceptions in ActiveTask | # Description
Remove ActiveTask._exception. Make exception handling fully synchronized in the queues.
Fixes #1032 🦕
| diff --git a/src/a2a/server/agent_execution/active_task.py b/src/a2a/server/agent_execution/active_task.py
index 6498bc772..3c206b8cd 100644
--- a/src/a2a/server/agent_execution/active_task.py
+++ b/src/a2a/server/agent_execution/active_task.py
@@ -104,36 +104,60 @@ async def run(self) -> None:
)
... | 4 | 2 | 0 | [{"id": "G0", "claim": "The consumer's failure path in run() is missing the terminal state logic: without calling _update_task_state there, the reference count incremented in start() is not decremented and push notifications are skipped, potentially leading to delayed cleanup of the ActiveTask instance.", "category": "... | null |
a2aproject__a2a-python__264 | a2aproject/a2a-python | 264 | defect | f1b576e061e7a3ab891d8368ade56c7046684c5e | 08cdcdf8b341158e53994b4f21413230702bfd88 | fix: client should not specify `taskId` if it doesn't exist | # Description
I'm submitting this PR as a proposal based off of https://github.com/a2aproject/a2a-python/issues/218#issuecomment-3005858571.
If the taskId doesn't exist, I was thinking that an exception should be thrown to prevent the client from specifying the id. The reason I think this change is required becau... | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index f3b584d42..3f32d700a 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -214,6 +214,12 @@ as... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new task-id validation should raise TaskNotFoundError instead of InvalidParamsError, for consistency with on_get_task and on_cancel_task handling of invalid task ids.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Regardl... | null |
a2aproject__a2a-python__324 | a2aproject/a2a-python | 324 | defect | 365f158f87166838b55bdadd48778cb313a453e1 | 27acba1e0b48aa79d7356e6d359a370d0772500b | fix: openapi working in sub-app | The `A2AFastAPIApplication` is very useful, but currently can not be used as a [Sub Application](https://fastapi.tiangolo.com/advanced/sub-applications/) without breaking the openapi specification.
[Lifespan does not work for Sub Applications](https://fastapi.tiangolo.com/advanced/events/#sub-applications), which make... | diff --git a/src/a2a/server/apps/jsonrpc/fastapi_app.py b/src/a2a/server/apps/jsonrpc/fastapi_app.py
index 74060688d..212810b7a 100644
--- a/src/a2a/server/apps/jsonrpc/fastapi_app.py
+++ b/src/a2a/server/apps/jsonrpc/fastapi_app.py
@@ -1,11 +1,16 @@
import logging
+import sys
-from collections.abc import AsyncItera... | 2 | 2 | 1 | [{"id": "G0", "claim": "Make `a2a_components_added` a private attribute by prefixing it with an underscore for better encapsulation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests for the change to show that it works with sub-applicati... | null |
a2aproject__a2a-python__333 | a2aproject/a2a-python | 333 | defect | a3e60717ee2c99613bb0d698aed692dba8dce1f1 | a941547a7d3a8d0903cbed5885a7d3b25861c091 | feat: Add server-side support for plumbing requested and activated extensions | # Description
This adds PR adds support for reading requested extensions from a client, via the `X-A2A-Extensions` header, and plumbing that through the ServerCallContext.
Here's my rough thinking on the design choices:
1. Requests to activate extensions are specified in a transport-specific manner. For HTTP, ... | diff --git a/src/a2a/extensions/common.py b/src/a2a/extensions/common.py
new file mode 100644
index 000000000..009cab8a3
--- /dev/null
+++ b/src/a2a/extensions/common.py
@@ -0,0 +1,13 @@
+from a2a.types import AgentCard, AgentExtension
+
+
+HTTP_EXTENSION_HEADER = 'X-A2A-Extensions'
+
+
+def find_extension_by_uri(card:... | 15 | 13 | 5 | [{"id": "G0", "claim": "Using `set()` as the Pydantic field default for `requested_extensions` and `activated_extensions` risks the same object being shared across all ServerCallContext instances, so extensions could leak between server calls; use `default_factory=set` instead.", "category": "correctness", "verdict": "... | null |
a2aproject__a2a-python__365 | a2aproject/a2a-python | 365 | defect | 2444034b7aa1d1af12bedecf40f27dafc4efec95 | fe7234692e5ddca0fcc11a6590da4a97d86fce9e | feat: Allow agent cards (default and extended) to be dynamic | Adds support for dynamic agent card serving for default and extended-authenticated cards. Also fix some build errors. Add tests. | diff --git a/src/a2a/server/apps/jsonrpc/fastapi_app.py b/src/a2a/server/apps/jsonrpc/fastapi_app.py
index 6d258cc97..24f16f289 100644
--- a/src/a2a/server/apps/jsonrpc/fastapi_app.py
+++ b/src/a2a/server/apps/jsonrpc/fastapi_app.py
@@ -1,6 +1,6 @@
import logging
-from collections.abc import AsyncIterator
+from coll... | 6 | 5 | 2 | [{"id": "G0", "claim": "The route for the deprecated agent card path was removed from A2AFastAPIApplication while A2AStarletteApplication still registers it, which is a regression, and it should be added back for FastAPI apps along with the PREV_AGENT_CARD_WELL_KNOWN_PATH import.", "category": "correctness", "verdict":... | null |
a2aproject__a2a-python__379 | a2aproject/a2a-python | 379 | defect | 760697f61eb8c646b89cd60f3c70ba921e6a7cde | 516e4d287ca43396dc338c9f46b0f5c1bc6b43f4 | fix: Client hangs when implementing `AgentExecutor` and `await`ing twice in execute method | Fixes #367
- Add clear_events method for immediate queue cleanup
- Integrate with event_consumer to prevent hanging
- Support child queue clearing for complete cleanup
| diff --git a/src/a2a/server/events/event_consumer.py b/src/a2a/server/events/event_consumer.py
index 6745847c0..b7a9e4eac 100644
--- a/src/a2a/server/events/event_consumer.py
+++ b/src/a2a/server/events/event_consumer.py
@@ -125,6 +125,7 @@ async def consume_all(self) -> AsyncGenerator[Event]:
# other ... | 4 | 4 | 2 | [{"id": "G0", "claim": "Holding the parent queue's lock while clearing all child queues in clear_events is a performance bottleneck blocking operations like enqueue_event; the lock should be released before awaiting the child tasks and the children should be cleared concurrently with asyncio.gather.", "category": "perf... | null |
a2aproject__a2a-python__380 | a2aproject/a2a-python | 380 | defect | 760697f61eb8c646b89cd60f3c70ba921e6a7cde | 85bcf6fe19beac09bf027e659fbbc9ee5fc031eb | fix: Use HasField for simple message retrieval for grpc transport | Using `response.task` will reset the oneof field if the `msg` field was set. Properly check return value. | diff --git a/src/a2a/client/transports/grpc.py b/src/a2a/client/transports/grpc.py
index e64c15342..d13f1510f 100644
--- a/src/a2a/client/transports/grpc.py
+++ b/src/a2a/client/transports/grpc.py
@@ -87,7 +87,7 @@ async def send_message(
metadata=proto_utils.ToProto.metadata(request.metadata),
... | 1 | 1 | 0 | [{"id": "G0", "claim": "A new test case should be added to tests/client/test_grpc_client.py validating the scenario where a Message is returned (the else branch of the HasField('task') conditional).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-python__394 | a2aproject/a2a-python | 394 | defect | 1d8f92e6cf75ff949073284bc97ef081a133254c | a17ad34050f0d688fcd8866b88dacd187c298c1c | fix: non-blocking `send_message` server handler not invoke push notification | - Problem: When client use `send_message` with `MessageSendConfiguration.blocking=False`, the `result_aggregator` will enter the logic of `_continue_consuming`. But it's not push notification to client. The client can't get notification for long-running task(non-blocking invoke) at this situation.
- Solution: Simply a... | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index 2549d087a..cabca526c 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -231,7 +231,10 @@ as... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new `_send_push_notification_if_needed` in `ResultAggregator` duplicates the identical method in `DefaultRequestHandler`, which makes future maintenance harder; centralize the logic (e.g. have `DefaultRequestHandler` call the aggregator's method and drop its own copy), possibly in a follow-u... | null |
a2aproject__a2a-python__440 | a2aproject/a2a-python | 440 | defect | 598d8a10e61be83bcb7bc9377365f7c42bc6af41 | 49c758f63a2ec128b40b3625cf79a7ac4efec82c | fix: Prevent client disconnect from stopping task execution | # Issue
* Client disconnect triggered synchronous cleanup.
* That awaited the producer task, effectively tying producer lifetime to the client connection.
* Reconnecting with `tasks/resubscribe` would not receive further events because the producer had already been forced to finish.
This behaviour no longer rai... | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index fd378cf47..a0e5c8474 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -385,7 +385,7 @@ asy... | 2 | 2 | 1 | [{"id": "G0", "claim": "Exceptions raised by the fire-and-forget `_cleanup_producer` background task would go unhandled, so a done-callback should be added to log them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `create_task_spy` test helper... | null |
a2aproject__a2a-python__443 | a2aproject/a2a-python | 443 | defect | 9193208aabac2655a197732ff826e3c2d76f11b5 | d7f3ffd896d094ee438c885736a82bea6c90627f | feat: Add `ServerCallContext` into task store operations | In production systems the persistence of the task should be protected based on the credentials of the creator of the task (e.g. a user id or email). Additionally, applications may have other criteria to use for task persistence (like application name, or region task runs in).
---
Providing the `ServerCallContext... | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index fd378cf47..0e059c682 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -109,7 +109,7 @@ asy... | 4 | 4 | 3 | [{"id": "G0", "claim": "The context attribute is initialized as `_call_context` but used as `_context` in `get_task`, `ensure_task` and `_save_task`, which will cause an `AttributeError` at runtime; use a consistent name.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"i... | null |
a2aproject__a2a-python__498 | a2aproject/a2a-python | 498 | defect | 051ab20c395daa2807b0233cf1c53493e41b60c2 | bc2ec77c4257fe6c827ef51bec1fecf972ce035b | fix: apply `history_length` for `message/send` requests | # Description
changes to honor `historyLength` param passed for `message/send` requests
Fixes #497 🦕
Release-As: 0.3.9 | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index 5e21fe8b0..30d1ee891 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -44,6 +44,7 @@
... | 2 | 1 | 0 | [{"id": "G0", "claim": "Instead of manually reconstructing the Task object by copying all its fields in apply_history_length, use Pydantic's task.model_copy(update={'history': limited_history}) so the copy stays concise and automatically handles any new fields added to the Task model.", "category": "maintainability", "... | null |
a2aproject__a2a-python__500 | a2aproject/a2a-python | 500 | defect | 051ab20c395daa2807b0233cf1c53493e41b60c2 | 41f4456c1565f5b2fbd4bb23d3bcbf7828ebdd84 | feat(client): allow specifying `history_length` via call-site `MessageSendConfiguration` in `BaseClient.send_message` | ## Description
This PR implements the client-side enhancement described in #499.
It allows callers to specify `history_length` (and other message configuration options)
directly via the optional configuration parameter in `BaseClient.send_message`,
complementing the server-side support added in #497.
### Summary... | diff --git a/src/a2a/client/base_client.py b/src/a2a/client/base_client.py
index f4a8d03de..cae6cdd96 100644
--- a/src/a2a/client/base_client.py
+++ b/src/a2a/client/base_client.py
@@ -46,6 +46,7 @@ async def send_message(
self,
request: Message,
*,
+ configuration: MessageSendConfigur... | 10 | 7 | 2 | [{"id": "G0", "claim": "The chained assertion and direct indexing `events[0][0].id` in the new tests is dense and hard to read; the event tuple should be unpacked into named variables before asserting (the reviewer supplied a suggestion block for the streaming test).", "category": "maintainability", "verdict": "support... | null |
a2aproject__a2a-python__509 | a2aproject/a2a-python | 509 | defect | 317df0a2a4b4e405da6af57eaf5edd9f0df7eec2 | 08f9341f1a56e493dd7fb08c1297744666967b8a | feat: Add a `ClientFactory.connect()` method for easy client creation | # Description
This PR adds a convenience method for constructing a Client from either an AgentCard URL or an AgentCard directly. The goal is to reduce the number of lines of code required for simple client creation, but still enabling more advanced handled of client construction.
Usage example:
```python
my_a... | diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py
index 3e98c9f5e..5417a86aa 100644
--- a/src/a2a/client/client_factory.py
+++ b/src/a2a/client/client_factory.py
@@ -3,10 +3,12 @@
import logging
from collections.abc import Callable
+from typing import Any
import httpx
from a2a.c... | 2 | 2 | 1 | [{"id": "G0", "claim": "The parameters `relative_card_path` and `resolver_http_kwargs` are ignored when resolving a URL without a pre-configured `httpx_client`, contradicting the docstring, and the test `test_client_factory_connect_resolver_args_ignored_without_client` enshrines that behavior; the resolver args should ... | null |
a2aproject__a2a-python__518 | a2aproject/a2a-python | 518 | defect | d5856359034f4d3d1e4578804727f47a3cd7c322 | 1bf61b2f973945024b13813a3e737145c32eb981 | fix: change `MAX_CONTENT_LENGTH` (for file attachment) in json-rpc to be larger size (10mb) | # Description
The current max content length for file attachment in an A2A request is only 1mb which is too small for most files. Change MAX_CONTENT_LENGTH to be larger size (10mb). (Note currently we only have this limit for json-rpc)
Thank you for opening a Pull Request!
Before submitting your PR, there are a fe... | diff --git a/src/a2a/server/apps/jsonrpc/jsonrpc_app.py b/src/a2a/server/apps/jsonrpc/jsonrpc_app.py
index ea73ff592..d258916cb 100644
--- a/src/a2a/server/apps/jsonrpc/jsonrpc_app.py
+++ b/src/a2a/server/apps/jsonrpc/jsonrpc_app.py
@@ -91,7 +91,7 @@
Response = Any
HTTP_413_REQUEST_ENTITY_TOO_LARGE = ... | 3 | 2 | 1 | [{"id": "G0", "claim": "Express the new MAX_CONTENT_LENGTH value as a calculation (10 * 1_000_000) instead of the magic number 10_000_000 so the 10MB size is immediately clear.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Revert the constant bac... | null |
a2aproject__a2a-python__552 | a2aproject/a2a-python | 552 | defect | 051ab20c395daa2807b0233cf1c53493e41b60c2 | 1fb5b91433670d58e970a4c2718b9f76ff905617 | fix: return updated `agent_card` in `JsonRpcTransport.get_card()` | ## Fixes #551
### Changes
- Fixed `JsonRpcTransport.get_card()` to return the newly fetched authenticated extended card instead of the stale card
### Details
Changed line from `return card` to `return self.agent_card` to ensure the method returns the updated card after fetching the authenticated extended versi... | diff --git a/src/a2a/client/transports/jsonrpc.py b/src/a2a/client/transports/jsonrpc.py
index bfba09d71..fa024c713 100644
--- a/src/a2a/client/transports/jsonrpc.py
+++ b/src/a2a/client/transports/jsonrpc.py
@@ -374,7 +374,7 @@ async def get_card(
raise A2AClientJSONRPCError(response.root)
self.a... | 3 | 1 | 1 | [{"id": "G0", "claim": "Consider refactoring `get_card` to operate directly on `self.agent_card` instead of tracking it with a local `card` variable, to make state management explicit and prevent similar staleness bugs.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {... | null |
a2aproject__a2a-python__611 | a2aproject/a2a-python | 611 | defect | cb7cdb34ad11dd4006305ad008953ddd7b4e27f5 | d94a0be3afcb13abe2989340267556104b33548f | feat: support disabling OTel instrumentation via env var | # Description
Support disabling OTEL instrumentation via the a2a-sdk using an environment variable `OTEL_A2A_SDK_INSTRUMENTATION_ENABLED`
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Follow the [`CONTRIBUTING` Guide](ht... | diff --git a/pyproject.toml b/pyproject.toml
index 561a5a45c..1935ed724 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -72,9 +72,10 @@ exclude = ["tests/"]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
-addopts = "-ra --strict-markers"
+addopts = "-ra --strict-markers --dist loadg... | 5 | 1 | 0 | [{"id": "G0", "claim": "The check of the OTEL_A2A_SDK_INSTRUMENTATION_ENABLED environment variable treats only case-insensitive 'true' as enabling; common truthy values like '1' or 'yes' should also enable tracing (with the documentation updated to match).", "category": "correctness", "verdict": "uncertain", "priority"... | null |
a2aproject__a2a-python__636 | a2aproject/a2a-python | 636 | defect | fdbf22f2e6c585b3b51712676aaf2bcd9e9fb720 | 8eae2a3e1b0de3370f9ffeed0599e6f17702dd13 | fix: do not crash on SSE comment line | # Description
The cause is https://github.com/florimondmanca/httpx-sse/issues/35: using comments among events with `id` field causes `httpx-sse` to emit an event with empty data.
Although according to [the standard (item 2)](https://html.spec.whatwg.org/multipage/server-sent-events.html#dispatchMessage) empty `bu... | diff --git a/src/a2a/client/transports/jsonrpc.py b/src/a2a/client/transports/jsonrpc.py
index a565e6404..a58a7cab7 100644
--- a/src/a2a/client/transports/jsonrpc.py
+++ b/src/a2a/client/transports/jsonrpc.py
@@ -176,6 +176,8 @@ async def send_message_streaming(
try:
event_source.response.... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `print(sse_content)` statement in test_send_message_streaming_comment_success is leftover debugging and should be removed to keep the test code clean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-python__676 | a2aproject/a2a-python | 676 | defect | 957e92b9059792c44a40bbab18160996f5512145 | eb93a179b765021e382dcae244acd5f7912adb06 | fix: gRPC metadata header casing and invocation_metadata() call | This PR fixes two issues related to the grpc support:
1. The extension headers key in the metadata are supposed to be lower key ([ref](https://github.com/grpc/grpc/blob/ce463633548e47c05343bc1243f9ea95b700a908/src/core/lib/surface/validate_metadata.cc#L99))
2. Invokes correctly the `servicer_context.invocation_meta... | diff --git a/src/a2a/client/transports/grpc.py b/src/a2a/client/transports/grpc.py
index 6a8b16f92..e28bab99e 100644
--- a/src/a2a/client/transports/grpc.py
+++ b/src/a2a/client/transports/grpc.py
@@ -64,10 +64,9 @@ def _get_grpc_metadata(
extensions: list[str] | None = None,
) -> list[tuple[str, str]] | ... | 2 | 2 | 0 | [{"id": "G0", "claim": "_get_grpc_metadata should simplify the extensions selection to extensions_to_use = extensions or self.extensions, which handles the same cases unless [] should be handled differently.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
a2aproject__a2a-python__724 | a2aproject/a2a-python | 724 | defect | 427a75b90f449e5c98890796f0cae715c288745c | 3ca8b02ce586319b04cd88da7b1a262fc8687bf5 | feat: use StreamResponse as push notifications payload | ## Description
As per the 1.0 spec update (see [4.3.3. Push Notification Payload](https://a2a-protocol.org/latest/specification/#433-push-notification-payload)) use `StreamResponse` as push notifications payload.
Fixes #678
| diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index 63d0fdc74..11cc9bf75 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -21,6 +21,7 @@
from... | 5 | 2 | 0 | [{"id": "G0", "claim": "The e2e test test_notification_triggering_after_config_change_e2e is fragile because it assumes the notification event is always a 'status_update' and will raise a KeyError if a 'task' update is received; it should handle both cases.", "category": "maintainability", "verdict": "uncertain", "prio... | null |
a2aproject__a2a-python__726 | a2aproject/a2a-python | 726 | defect | 1d328e12415f2c0d62231fc5db522b125f8a2061 | bd3b240cf7d1d465a4d941c9dfb50719f6fa496d | fix: add history length and page size validations | # Description
See [here](https://a2a-protocol.org/latest/specification/#validation-error-example) and [3.1.4. List Tasks](https://a2a-protocol.org/latest/specification/#314-list-tasks).
Re #515
| diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index 41425457f..69759943d 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -52,7 +52,11 @@
... | 1 | 1 | 1 | [{"id": "G0", "claim": "validate_history_length is typed to accept None but dereferences config without a None check, so passing None would raise AttributeError; add the same None guard apply_history_length already uses.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
a2aproject__a2a-python__728 | a2aproject/a2a-python | 728 | defect | a149a0923c14480888c48156710413967dfebc36 | 2f12712c39e3e5dcb0aeaa53212ab3de1e78ed5b | refactor: unify transport name constants usage | Use enum everywhere, data model uses `str` for protocol names, so custom protocols won't be constrained with the enum.
Fixes #705
| diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py
index d56910fcd..e7dd48689 100644
--- a/src/a2a/client/client_factory.py
+++ b/src/a2a/client/client_factory.py
@@ -20,9 +20,7 @@
AgentInterface,
)
from a2a.utils.constants import (
- TRANSPORT_GRPC,
- TRANSPORT_HTTP_JSON,
- ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The type hint passed to typing.cast in the custom-transports test need not be a string literal, since TransportProducer is defined in the same file and is not a forward reference; use the direct type to improve readability and IDE type navigation.", "category": "maintainability", "verdict": "sup... | null |
a2aproject__a2a-python__758 | a2aproject/a2a-python | 758 | defect | 26835ad3f6d256ff6b84858d690204da66854eb9 | 4b520d75092606f610317a0f184f282ee0d7f9ea | feat: handle tenant in Client | ## Changes
- Rest client transport prepends path with tenant if provided.
- added `TenantTransportDecorator` to `client/transports/base.py` which adds default tenant to requests in for provided
- updated `client_factory` to create `TenantTransportDecorator` if tenant is provided in `AgentInterface`
## Contribut... | diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py
index e7dd48689..0177cba9e 100644
--- a/src/a2a/client/client_factory.py
+++ b/src/a2a/client/client_factory.py
@@ -11,7 +11,7 @@
from a2a.client.card_resolver import A2ACardResolver
from a2a.client.client import Client, ClientConfig, Co... | 3 | 3 | 1 | [{"id": "G0", "claim": "Do not export TenantTransportDecorator from a2a.client.transports for now — each new export is a public-API contract that must be maintained in non-major versions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the tenant pat... | null |
a2aproject__a2a-python__760 | a2aproject/a2a-python | 760 | defect | 26835ad3f6d256ff6b84858d690204da66854eb9 | 03b5e5e9f1cd79f3596917515ed367c3e5de2183 | feat(compat): AgentCard backward compatibility helpers and tests | This commit implements the backwards compatibility helpers for exchanging legacy v0.3 Agent Cards across the v1.0 protocol bounds.
Also resolves linting and validation constraints.
# Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it ... | diff --git a/src/a2a/client/card_resolver.py b/src/a2a/client/card_resolver.py
index ed6c57417..b956920d2 100644
--- a/src/a2a/client/card_resolver.py
+++ b/src/a2a/client/card_resolver.py
@@ -6,12 +6,13 @@
import httpx
-from google.protobuf.json_format import ParseDict, ParseError
+from google.protobuf.json_forma... | 5 | 3 | 0 | [{"id": "G0", "claim": "The sec_list parameter of _map_legacy_security should carry a specific type hint (list[dict[str, list[str]]]) instead of Any, as the repository style guide mandates types for Python code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G... | null |
a2aproject__a2a-python__764 | a2aproject/a2a-python | 764 | defect | 4cf5a15c15c82df2ab54d9ec44cb79121f639701 | 96c1a04e74dca1ffc44c20948c1d63ac3f39fa97 | feat(compat): set a2a-version header to 1.0.0 | # Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [X] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md).
- [X] Make your Pull Request title in the <https://www.conv... | diff --git a/src/a2a/client/client_factory.py b/src/a2a/client/client_factory.py
index e7dd48689..f57c001e3 100644
--- a/src/a2a/client/client_factory.py
+++ b/src/a2a/client/client_factory.py
@@ -20,6 +20,8 @@
AgentInterface,
)
from a2a.utils.constants import (
+ PROTOCOL_VERSION_CURRENT,
+ VERSION_HEADER... | 5 | 5 | 1 | [{"id": "G0", "claim": "The return type hint of _get_grpc_metadata should drop '| None' since the function now always returns a list of metadata.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The version header is set redundantly in __init__ and ag... | null |
a2aproject__a2a-python__767 | a2aproject/a2a-python | 767 | defect | 627ae0bc9e7da2b4dd133fc37c0ae194307d9f8b | 5f76f1ec5952b3c7f9eae6b9939d92694878ddc3 | feat: add GetExtendedAgentCardRequest as input parameter to GetExtendedAgentCard method | [Spec](https://a2a-protocol.org/latest/specification/#103-service-definition) defines `rpc GetExtendedAgentCard(GetExtendedAgentCardRequest) returns (AgentCard)`. Currently `GetExtendedAgentCard` does not take `GetExtendedAgentCardRequest` as input parameter.
Fixes #766 🦕
| diff --git a/src/a2a/client/base_client.py b/src/a2a/client/base_client.py
index 947e7f1c7..6bb16427f 100644
--- a/src/a2a/client/base_client.py
+++ b/src/a2a/client/base_client.py
@@ -16,6 +16,7 @@
CancelTaskRequest,
CreateTaskPushNotificationConfigRequest,
DeleteTaskPushNotificationConfigRequest,
+ ... | 3 | 1 | 1 | [{"id": "G0", "claim": "The newly added test file tests/client/transports/test_tenant_decorator.py uses GetExtendedAgentCardRequest without importing it; the import should be added to its a2a.types.a2a_pb2 import block in alphabetical order.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope"... | null |
a2aproject__a2a-python__773 | a2aproject/a2a-python | 773 | defect | 5b354e403a717c3c6bf47a291bef028c8c6a9d94 | fa2863b515b260e1c079be63d74880900701f574 | feat(rest): add tenant support to rest | ## Changes
- add tenant to ServerCallContext
- add tenant-prefixed routes for REST endpoints
- introduce tenant extraction from REST API paths
## Contribution guide
- [x] Follow the [`CONTRIBUTING` Guide](https://github.com/a2aproject/a2a-python/blob/main/CONTRIBUTING.md).
- [x] Make your Pull Request title ... | diff --git a/src/a2a/server/agent_execution/context.py b/src/a2a/server/agent_execution/context.py
index ebbf74a91..73a4a9f4e 100644
--- a/src/a2a/server/agent_execution/context.py
+++ b/src/a2a/server/agent_execution/context.py
@@ -160,6 +160,11 @@ def add_activated_extension(self, uri: str) -> None:
if self.... | 4 | 3 | 1 | [{"id": "G0", "claim": "The extendedAgentCard route handler should be defined only once and reused for both the plain and the tenant-prefixed route.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tenant-prefixed routes duplicated for every m... | null |
a2aproject__a2a-python__775 | a2aproject/a2a-python | 775 | defect | 8b647bdc8ad38551a19ba6bdd566ac9f9c714ef8 | 7b15660878620aa5f23b9cc1af9f7abc3c9600e3 | fix: return background task from consume_and_break_on_interrupt to prevent GC | # Description
ResultAggregator.consume_and_break_on_interrupt creates a background asyncio.Task to continue consuming events after an interruption (non-blocking or auth_required), but discards the task reference. On Python 3.12+ the event loop only holds weak references to tasks, so the garbage collector can silentl... | diff --git a/src/a2a/server/request_handlers/default_request_handler.py b/src/a2a/server/request_handlers/default_request_handler.py
index cb002569e..b8bc00dce 100644
--- a/src/a2a/server/request_handlers/default_request_handler.py
+++ b/src/a2a/server/request_handlers/default_request_handler.py
@@ -322,12 +322,19 @@ a... | 2 | 1 | 0 | [{"id": "G0", "claim": "The `mock_create_task.return_value = sentinel_task` assignment (and the `sentinel_task` setup with it) is redundant because a mock's `return_value` is ignored when a `side_effect` callable is provided, so it can be removed for clarity.", "category": "maintainability", "verdict": "supported", "pr... | null |
a2aproject__a2a-python__783 | a2aproject/a2a-python | 783 | defect | 164f9197f101e3db5c487c4dede45b8729475a8c | 61c81069b5b8aaee325c72a6a49b352d0e2f6761 | feat(server): add v0.3 legacy compatibility for database models | ## Description
Implements a mechanism to handle legacy v0.3 data stored in the database. When a `Task` or a `TaskPushNotificationConfig` does not have a `protocol_version` set to `0.1`, it validates and converts the data using v0.3 Pydantic models and conversion utilities. This ensures backward compatibility for exist... | diff --git a/src/a2a/server/models.py b/src/a2a/server/models.py
index bba12e901..f64fb642a 100644
--- a/src/a2a/server/models.py
+++ b/src/a2a/server/models.py
@@ -1,3 +1,4 @@
+from collections.abc import Callable
from datetime import datetime
from typing import TYPE_CHECKING, Any, Generic, TypeVar
@@ -11,10 +12,1... | 3 | 1 | 1 | [{"id": "G0", "claim": "The new test function is missing necessary imports (timezone, TaskState, Role, and possibly datetime) and they must be added at the top of the file.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Provide a more specific type hi... | null |
a2aproject__a2a-python__784 | a2aproject/a2a-python | 784 | defect | 80d827ae4ebb6515bf8dcb10e50ba27be8b6b41b | eae38e976854a73ab61a9e7819ca54dcd847a52b | refactor(client)!: introduce ServiceParameters for extensions and include it in ClientCallContext | # Description
This PR refactors the client API definitions to streamline extension handling and unify transport logic:
- A new class to store extensions, integrated into the ClientCallContext. This reduces the need for having separate extension fields across the API definition.
- Extracted common HTTP argument p... | diff --git a/src/a2a/client/base_client.py b/src/a2a/client/base_client.py
index 258fb140f..307932df5 100644
--- a/src/a2a/client/base_client.py
+++ b/src/a2a/client/base_client.py
@@ -1,15 +1,13 @@
from collections.abc import AsyncGenerator, AsyncIterator, Callable
-from typing import Any
from a2a.client.client im... | 6 | 1 | 0 | [{"id": "G0", "claim": "Removing `_apply_interceptors` from the JsonRpc (and REST) transport drops support for `ClientCallInterceptor` — a significant breaking change not mentioned in the PR description — and it should either be restored or, if intentional, explicitly documented.", "category": "design", "verdict": "unc... | null |
a2aproject__a2a-python__796 | a2aproject/a2a-python | 796 | defect | 2e2d43190930612495720c372dd2d9921c0311f9 | f3796792d9daec2197edd297a6b61d1baf8a0451 | feat(client): transport agnostic interceptors | # Description
This PR refactors the client interceptors architecture, centralizing their execution within the BaseClient rather than delegating them to the underlying transport implementations.
These interceptors allow to modify request before being sent to the server, and server responses before are sent back to t... | diff --git a/src/a2a/client/__init__.py b/src/a2a/client/__init__.py
index 90237d8e5..98555f909 100644
--- a/src/a2a/client/__init__.py
+++ b/src/a2a/client/__init__.py
@@ -9,7 +9,13 @@
)
from a2a.client.base_client import BaseClient
from a2a.client.card_resolver import A2ACardResolver
-from a2a.client.client import... | 8 | 8 | 3 | [{"id": "G0", "claim": "AuthInterceptor no longer inherits from ClientCallInterceptor and was not ported to the new before/after interface, so using it with the refactored BaseClient raises an AttributeError and breaks the SDK's authentication mechanism.", "category": "correctness", "verdict": "supported", "priority": ... | null |
a2aproject__a2a-python__821 | a2aproject/a2a-python | 821 | defect | a102d31abe8d72d18ec706f083855b7aad8bbbd4 | bb76c23751293f96c18d7b803672d719ee56dcec | fix(server): handle unwrapped legacy push notification configurations | # Description
Fix the database PushNotificationConfig store when reading legacy data from version 0.3. The store now correctly handles cases when legacy PushNotificationConfig was stored rather than the full wrapped model.
| diff --git a/src/a2a/server/tasks/database_push_notification_config_store.py b/src/a2a/server/tasks/database_push_notification_config_store.py
index 26d5cb21d..9e78b9fc8 100644
--- a/src/a2a/server/tasks/database_push_notification_config_store.py
+++ b/src/a2a/server/tasks/database_push_notification_config_store.py
@@ ... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new legacy parsing might fail if it encounters legacy data that was correctly stored as a wrapped TaskPushNotificationConfig; parse the payload as the wrapped model first and fall back to the unwrapped PushNotificationConfig form for backward compatibility.", "category": "correctness", "verd... | null |
a2aproject__a2a-python__838 | a2aproject/a2a-python | 838 | defect | a910cbcd48f6017c19bb4c87be3c62b7d7e9810d | 243883224fed00c755518238062d19f107eafaff | feat(rest): update REST error handling to use `google.rpc.Status` | # Description
This PR refactors the REST transport error handling to adhere to the `google.rpc.Status` JSON format. Both the server-side exception handlers and the client-side REST transport have been updated to utilize the new standard error envelope, ensuring consistency across A2A REST APIs.
## Summary of Change... | diff --git a/src/a2a/client/transports/rest.py b/src/a2a/client/transports/rest.py
index 27c0b6a0a..82e963142 100644
--- a/src/a2a/client/transports/rest.py
+++ b/src/a2a/client/transports/rest.py
@@ -34,16 +34,12 @@
Task,
TaskPushNotificationConfig,
)
-from a2a.utils.errors import JSON_RPC_ERROR_CODE_MAP, M... | 3 | 3 | 0 | [{"id": "G0", "claim": "The `hasattr(error, 'data')` check is always true because `data` is an attribute on the `A2AError` base class, which can log `Data=None`; the logging should check the truthiness of `error.data` instead.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
a2aproject__a2a-python__843 | a2aproject/a2a-python | 843 | defect | cac6f5898ef498788e15ec99028931a969088623 | d06b7c264b17b11e8e171d77c3940e94bebc195c | fix: Use POST method for REST endpoint /tasks/{id}:subscribe | POST should be always use for /tasks/{id}:subscribe.
Decisions for backward compatibility with invalid protocol implementations:
1.0 server: Accept both POST and GET
1.0 client: Always use POST
0.3 server: Accept both POST and GET
0.3 client: Try POST first, on HTTP 405 error retry with GET. Cache the retry state ... | diff --git a/src/a2a/client/transports/rest.py b/src/a2a/client/transports/rest.py
index 27c0b6a0a..9484d604e 100644
--- a/src/a2a/client/transports/rest.py
+++ b/src/a2a/client/transports/rest.py
@@ -262,10 +262,11 @@ async def subscribe(
) -> AsyncGenerator[StreamResponse]:
"""Reconnects to get task upd... | 5 | 5 | 3 | [{"id": "G0", "claim": "The v0.3 client's subscribe method should send an appropriate request body when using POST (and no body for GET), since the v0.3 server now expects a body for POST requests to this endpoint.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
a2aproject__a2a-python__882 | a2aproject/a2a-python | 882 | defect | c18fb605786206f522d1d3c14b9b856c950e265d | 72a8a7fb181e8a4b1333ee8cc7bd700ecec0d8c2 | refactor: Enforce ServerCallContext in request handling | # Description
- Make `ServerCallContext` a mandatory parameter across all `TaskStore` implementations (`TaskStore` interface, `DatabaseTaskStore`, and `InMemoryTaskStore`) and update tests.
- Make `ServerCallContext` a mandatory parameter in `RequestContext`.
Previously, context defaulted to None, which could allo... | diff --git a/src/a2a/server/owner_resolver.py b/src/a2a/server/owner_resolver.py
index 798eb8c9b..4fca42d24 100644
--- a/src/a2a/server/owner_resolver.py
+++ b/src/a2a/server/owner_resolver.py
@@ -4,13 +4,10 @@
# Definition
-OwnerResolver = Callable[[ServerCallContext | None], str]
+OwnerResolver = Callable[[Serve... | 2 | 2 | 1 | [{"id": "G2", "claim": "VertexTaskStore under the contrib folder also requires the same ServerCallContext-mandatory changes as the other TaskStore implementations.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G5", "claim": "The test test_resolve_user should keep... | null |
a2aproject__a2a-python__887 | a2aproject/a2a-python | 887 | defect | c18fb605786206f522d1d3c14b9b856c950e265d | e21b550263137c0dd025158857728dd85bbd7092 | feat: InMemoryTaskStore creates a copy of Task by default to make it consistent with database task stores | Sharing the Task object instance in InMemoryTaskStore leads to unexpected behaviour (from differences of in-place update Task in AgentExecutor to non-trivial concurrency reporting issues on task state reporting).
Fixes #869
| diff --git a/src/a2a/server/tasks/copying_task_store.py b/src/a2a/server/tasks/copying_task_store.py
new file mode 100644
index 000000000..6bfda5e74
--- /dev/null
+++ b/src/a2a/server/tasks/copying_task_store.py
@@ -0,0 +1,61 @@
+from __future__ import annotations
+
+import logging
+
+from typing import TYPE_CHECKING
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "The `MagicMock` import in tests/server/tasks/test_copying_task_store.py is unused and should be removed to keep the imports clean.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `events_2` variable in tests/integratio... | null |
a2aproject__a2a-python__889 | a2aproject/a2a-python | 889 | defect | 4ebbb2eb8078593ccbd4697416a0ba833ae00e3e | 123e36e1d03487da3910b74c4f1ccf0ca84ce6e3 | chore: remove the use of deprecated types from VertexTaskStore | * vertexai.Part & co. will be replaced soon by genai.Part & co.
* It's better to use the more specifically named variants of `Task` and `Status`: `A2aTask` and `A2aTaskStatus`.
For #751
BEGIN_COMMIT_OVERRIDE
fix: remove the use of deprecated types from VertexTaskStore (#889)
END_COMMIT_OVERRIDE | diff --git a/src/a2a/contrib/tasks/vertex_task_converter.py b/src/a2a/contrib/tasks/vertex_task_converter.py
index eac15e2c6..9c6b4643f 100644
--- a/src/a2a/contrib/tasks/vertex_task_converter.py
+++ b/src/a2a/contrib/tasks/vertex_task_converter.py
@@ -1,4 +1,5 @@
try:
+ from google.genai import types as genai_type... | 1 | 1 | 0 | [{"id": "G0", "claim": "The `genai_types` import in src/a2a/contrib/tasks/vertex_task_store.py is unused in that file and can be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-python__894 | a2aproject/a2a-python | 894 | defect | 8c65e84fb844251ce1d8f04d26dbf465a89b9a29 | 075a7b72c7bfcaf479fff5c81c3faae34a02122f | fix: handle SSE errors occurred after stream started | The spec doesn't defined this behavior: https://github.com/a2aproject/A2A/issues/1262, but currently it'd close the connection.
| diff --git a/src/a2a/client/transports/http_helpers.py b/src/a2a/client/transports/http_helpers.py
index 301782e36..119dce41f 100644
--- a/src/a2a/client/transports/http_helpers.py
+++ b/src/a2a/client/transports/http_helpers.py
@@ -12,6 +12,10 @@
from a2a.client.errors import A2AClientError, A2AClientTimeoutError
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `_send_stream_request` call in JsonRpcTransport passes `None` for the `status_error_handler` argument, which this PR made mandatory, so a TypeError will be raised at runtime; a valid error handler such as a new `JsonRpcTransport._handle_http_error` should be passed instead.", "category": "co... | null |
a2aproject__a2a-python__898 | a2aproject/a2a-python | 898 | defect | 3d7309a3ae8265f35bf393df7affc3f63e231999 | 8a46f5dec2e1f3dd89f3c1c8dd6f53ad4e3f4278 | fix: Remove unconditional SQLAlchemy dependency from SDK core | ## Description
This PR addresses issue #883 where importing components under `a2a.server.request_handlers` (such as `RequestHandler`) inadvertently introduces a hard dependency on `sqlalchemy`.
Previously, `a2a.server.request_handlers.response_helpers` imported `a2a.compat.v0_3.conversions`, which brought in `TaskMo... | diff --git a/src/a2a/compat/v0_3/conversions.py b/src/a2a/compat/v0_3/conversions.py
index 3f5420198..5945380e9 100644
--- a/src/a2a/compat/v0_3/conversions.py
+++ b/src/a2a/compat/v0_3/conversions.py
@@ -1,16 +1,11 @@
import base64
-from typing import TYPE_CHECKING, Any
-
-
-if TYPE_CHECKING:
- from cryptography... | 1 | 1 | 1 | [{"id": "G0", "claim": "The code examples for the zero_downtime approach in docs/migrations/v1_0/database/zero_downtime.md should also be updated, changing the import route to the moved conversion functions.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
a2aproject__a2a-python__899 | a2aproject/a2a-python | 899 | defect | 4be2064b5d511e0b4617507ed0c376662688ebeb | f7f26c9932fa282099b5bfc166652fc04576ac1f | ci: add a smoke test running outside of the default virtual env | - Adds a CI workflow that builds and installs `a2a-sdk` with only base dependencies (no extras or `dev` group) and verifies all core public API modules import successfully.
- Prevents regressions like #865 (fixed in #897) where `packaging` was used in core modules but missing from `[project.dependencies]`. Since `pack... | diff --git a/.github/workflows/minimal-install.yml b/.github/workflows/minimal-install.yml
new file mode 100644
index 000000000..00782ae79
--- /dev/null
+++ b/.github/workflows/minimal-install.yml
@@ -0,0 +1,38 @@
+---
+name: Minimal Install Smoke Test
+on:
+ push:
+ branches: [main, 1.0-dev]
+ pull_request:
+perm... | 1 | 1 | 0 | [{"id": "G0", "claim": "The CORE_MODULES list in scripts/test_minimal_install.py should be sorted alphabetically to make it easier to check for existing entries and add new ones.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
a2aproject__a2a-python__908 | a2aproject/a2a-python | 908 | defect | 6d49122238a5e7d497c5d002792732446071dcb2 | dcf5e55010401009628d9e03037d55c9b7c49d01 | feat: Add support for more Task Message and Artifact fields in the Vertex Task Store | Add support for the following fields:
* Part metadata
* Artifact extensions, display_name, description
* Message extensions, reference_task_ids
* Parts of DataPart are now restored to their original type when read back
* Add support for status detail messages in task updates
For #751
BEGIN_COMMIT_OVERRIDE
f... | diff --git a/src/a2a/contrib/tasks/vertex_task_converter.py b/src/a2a/contrib/tasks/vertex_task_converter.py
index 5015211c7..4c0591c5d 100644
--- a/src/a2a/contrib/tasks/vertex_task_converter.py
+++ b/src/a2a/contrib/tasks/vertex_task_converter.py
@@ -11,13 +11,17 @@
import base64
import json
+from typing import A... | 2 | 2 | 1 | [{"id": "G0", "claim": "Converting a stored message whose role is invalid, missing or empty yields role=None and hides the resulting pydantic.ValidationError behind `# type: ignore`; the converter should fail explicitly by raising a ValueError when a valid Role cannot be determined.", "category": "correctness", "verdic... | null |
a2aproject__a2a-python__931 | a2aproject/a2a-python | 931 | defect | 418a4331cc7421bc7d11257fb3c9976676a7f654 | 0c8cc7f2dc9244103588a79cea91d93383968870 | fix: wrong method name for ExtendedAgentCard endpoint in JsonRpc compat version | # Description
The correct method name for the ExtendedAgentCard endpoint in JsonRpc v.0.3.0 is `agent/getAuthenticatedExtendedCard`.
https://a2a-protocol.org/v0.3.0/specification/#710-agentgetauthenticatedextendedcard
| diff --git a/src/a2a/compat/v0_3/jsonrpc_adapter.py b/src/a2a/compat/v0_3/jsonrpc_adapter.py
index 073c7854b..d9d698411 100644
--- a/src/a2a/compat/v0_3/jsonrpc_adapter.py
+++ b/src/a2a/compat/v0_3/jsonrpc_adapter.py
@@ -59,7 +59,7 @@ class JSONRPC03Adapter:
'tasks/pushNotificationConfig/list': types_v03.ListT... | 2 | 1 | 1 | [{"id": "G0", "claim": "In src/a2a/server/events/event_queue.py (line 221), exception classes must be raised directly without instantiation and the message removed, per the repository rule 'Raise exception classes directly, without instantiating them'.", "category": "maintainability", "verdict": "uncertain", "priority"... | null |
a2aproject__a2a-python__932 | a2aproject/a2a-python | 932 | defect | 418a4331cc7421bc7d11257fb3c9976676a7f654 | 1ce4368aae99483699077da7a0fbbb98d502b015 | refactor: use method names for JSON-RPC dispatching | # Description
This PR changes the routing logic in the JsonRpcDispatcher, enforcing it on the method name, rather that the object type.
| diff --git a/src/a2a/server/routes/jsonrpc_dispatcher.py b/src/a2a/server/routes/jsonrpc_dispatcher.py
index 6bd326c8e..1cdf6a25d 100644
--- a/src/a2a/server/routes/jsonrpc_dispatcher.py
+++ b/src/a2a/server/routes/jsonrpc_dispatcher.py
@@ -6,7 +6,7 @@
from abc import ABC, abstractmethod
from collections.abc import... | 4 | 4 | 0 | [{"id": "G0", "claim": "Use the imported class objects directly in the cast calls in _process_streaming_request instead of string literals for better IDE support and type safety.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the imported cl... | null |
a2aproject__a2a-python__936 | a2aproject/a2a-python | 936 | defect | 677bb712615fd2a731c0b875e133e3a6054aef04 | 0aa10a192da6c6ad7ca0f70dc5cdc671f19a5e81 | feat: Add support for more Task Message and Artifact fields in the Vertex Task Store | Add support for the following fields:
* Part metadata
* Artifact extensions, display_name, description
* Message extensions, reference_task_ids
* Parts of DataPart are now restored to their original type when read back
* Add support for status detail messages in task updates
For #802 (for the 1.0 branch) | diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt
new file mode 100644
index 000000000..abf7a6f71
--- /dev/null
+++ b/.github/actions/spelling/expect.txt
@@ -0,0 +1 @@
+datapart
diff --git a/src/a2a/contrib/tasks/vertex_task_converter.py b/src/a2a/contrib/tasks/vertex_task_converter... | 4 | 3 | 1 | [{"id": "G0", "claim": "The type hints for `previous_task` and `task` in `_get_status_details_change_event` should be `CompatTask` instead of `Task`, since `_update` passes `CompatTask` objects, which can lead to type checking errors and potential runtime issues if the models differ.", "category": "correctness", "verdi... | null |
a2aproject__a2a-python__943 | a2aproject/a2a-python | 943 | defect | a61f6d4e2e7ce1616a35c3a2ede64a4c9067048a | a5447683e76b401f2a45eadf1bd5d693f0562df3 | feat: Unhandled exception in AgentExecutor marks task as failed | Fixes #869 🦕
| diff --git a/src/a2a/server/agent_execution/active_task.py b/src/a2a/server/agent_execution/active_task.py
index f313ca11e..c71e7e96d 100644
--- a/src/a2a/server/agent_execution/active_task.py
+++ b/src/a2a/server/agent_execution/active_task.py
@@ -32,6 +32,8 @@
Message,
Task,
TaskState,
+ TaskStatus,... | 4 | 2 | 0 | [{"id": "G0", "claim": "The per-request synchronization and setup logic (acquiring the lock, updating the task manager, saving the task event) sits outside the inner try...finally, so if any of these operations fail or are cancelled the finally block is skipped, leaking the _request_lock and skipping task_done(), which... | null |
a2aproject__a2a-python__956 | a2aproject/a2a-python | 956 | defect | a6695211d92d3dc476e18932c4a778a6ab1b9fbf | bd8917fa4164395b856d0192fe54052fe1361ad2 | feat: Support Message-only simplified execution without creating Task | Fixes #869 🦕
| diff --git a/src/a2a/server/agent_execution/active_task.py b/src/a2a/server/agent_execution/active_task.py
index defdd5244..45694e1ce 100644
--- a/src/a2a/server/agent_execution/active_task.py
+++ b/src/a2a/server/agent_execution/active_task.py
@@ -5,7 +5,7 @@
import logging
import uuid
-from typing import TYPE_CHE... | 2 | 1 | 1 | [{"id": "G0", "claim": "The `if isinstance(event, Message): break` in on_message_send_stream handles an invalid state (wrong agent executor implementation) — subscribe can happen only against an already running task, so a Message should not be encountered there.", "category": "correctness", "verdict": "uncertain", "pri... | null |
a2aproject__a2a-python__957 | a2aproject/a2a-python | 957 | defect | be4c5ff17a2f58e20d5d333a5e8e7bfcaa58c6c0 | ad04a3bf5835fe3a66a0c3cfdc05238af8418d63 | fix: fix JSONRPC error handling | # Description
Do one iteration to catch exceptions occurred beforehand to return an error instead of sending headers for SSE.
| diff --git a/src/a2a/server/routes/jsonrpc_dispatcher.py b/src/a2a/server/routes/jsonrpc_dispatcher.py
index d9ea4ff1a..e494bf0cd 100644
--- a/src/a2a/server/routes/jsonrpc_dispatcher.py
+++ b/src/a2a/server/routes/jsonrpc_dispatcher.py
@@ -376,20 +376,32 @@ async def _process_streaming_request(
if stream is N... | 2 | 1 | 0 | [{"id": "G0", "claim": "Type `first_evt` and `_map_event`'s `evt` with a specific type (Protobuf `Message` or equivalent) instead of `Any` for stronger type checking.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new integration test for HT... | null |
a2aproject__a2a-python__960 | a2aproject/a2a-python | 960 | defect | 62e5e59a30b11b9b493f7bf969aa13173ce51b9c | b85c2f165904c1e3f0e5e8bade48d0a064720d66 | feat: Support AgentExectuor enqueue of a Task object. | Fixes Task object handling when using new DefaultRequestHandlerV2.
Fixes #869🦕
| diff --git a/src/a2a/server/agent_execution/active_task.py b/src/a2a/server/agent_execution/active_task.py
index 71e38768f..dfacd2e7a 100644
--- a/src/a2a/server/agent_execution/active_task.py
+++ b/src/a2a/server/agent_execution/active_task.py
@@ -391,11 +391,22 @@ async def _run_consumer(self) -> None: # noqa: PLR09... | 3 | 1 | 0 | [{"id": "G0", "claim": "Unconditionally clearing message_to_save without incorporating it into the enqueued Task loses the initial user message from the task history if the agent enqueues a Task object as its first event, a regression compared to how other events are handled.", "category": "correctness", "verdict": "op... | null |
a2aproject__a2a-python__976 | a2aproject/a2a-python | 976 | defect | 3468180ac7396d453d99ce3e74cdd7f5a0afb5ab | 041bbe13df4fc7e5c3059d204080b89dc3a2656d | docs: AgentExecutor interface documentation | Fixes #869 🦕
| diff --git a/src/a2a/server/agent_execution/agent_executor.py b/src/a2a/server/agent_execution/agent_executor.py
index 2da8ddfd7..22c71331b 100644
--- a/src/a2a/server/agent_execution/agent_executor.py
+++ b/src/a2a/server/agent_execution/agent_executor.py
@@ -23,20 +23,42 @@ async def execute(
return once the... | 4 | 3 | 1 | [{"id": "G0", "claim": "The new test assumes every returned event has a status_update field, so for the streaming=False (blocking) scenarios, where the client returns a Task object instead of a stream of updates, accessing events1[0].status_update would raise an AttributeError during test execution; it asks to access t... | null |
a2aproject__a2a-python__985 | a2aproject/a2a-python | 985 | defect | 934b59536756641076dc9ad407da4b891d774074 | 185c0efd23bfc6227f9edc2fb6e7447c061f8245 | fix: update `with_a2a_extensions` to append instead of overwriting | Existing extensions are kept, enables better modularity of service parameters updates by (for instance) multiple interceptors. | diff --git a/src/a2a/client/service_parameters.py b/src/a2a/client/service_parameters.py
index cef250807..f880082ea 100644
--- a/src/a2a/client/service_parameters.py
+++ b/src/a2a/client/service_parameters.py
@@ -1,7 +1,10 @@
from collections.abc import Callable
from typing import TypeAlias
-from a2a.extensions.com... | 1 | 1 | 1 | [{"id": "G0", "claim": "The merging logic should apply `get_requested_extensions` to the new extensions as well, not just the existing header value, so comma-separated or whitespace-padded input strings are handled consistently, and can be simplified with a default empty string: `merged = sorted(get_requested_extension... | null |
a2aproject__a2a-python__988 | a2aproject/a2a-python | 988 | defect | 25e2a7d620524a2325744b7a559662b6c6d24c48 | c7a29a9d6340b136e70b8ecbfdc5d612099d2b6e | fix: rely on agent executor implementation for stream termination | `active_task.py` already contains agent executor behavior validation, do not terminate the stream so that those errors can be raised, tests are updated to cover invalid behavior conditions. | diff --git a/src/a2a/server/request_handlers/default_request_handler_v2.py b/src/a2a/server/request_handlers/default_request_handler_v2.py
index c0c6b5445..4d199f197 100644
--- a/src/a2a/server/request_handlers/default_request_handler_v2.py
+++ b/src/a2a/server/request_handlers/default_request_handler_v2.py
@@ -271,11 ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Not breaking on a Message event could cause the request to hang if a buggy agent sends a Message but fails to return from execute(); consider breaking immediately when return_immediately is set to respect the caller's request for an immediate response.", "category": "correctness", "verdict": "un... | null |
a8m__envsubst__11 | a8m/envsubst | 11 | defect | 9163442b305190688516360068fd8b9ccaec11d6 | 2a62ee456883671ece392f76a69fad068f4b75ff | [issue #9] moving restriction validation to VariableNode fixes issue | Realized that restriction validation belongs to `VariableNode`, not `SubstitutionNode`. Moving it there fixes the issue. | diff --git a/parse/node.go b/parse/node.go
index 256476c..4fde7bf 100644
--- a/parse/node.go
+++ b/parse/node.go
@@ -39,28 +39,50 @@ func (t *TextNode) String() (string, error) {
type VariableNode struct {
NodeType
- Ident string
- Env Env
+ Ident string
+ Env Env
+ Restrict *Restrictions
}
-func NewV... | 1 | 1 | 0 | [{"id": "G0", "claim": "Remove the stray empty `//` comment line above the SubstitutionNode struct in parse/node.go.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
a8m__envsubst__21 | a8m/envsubst | 21 | defect | 56cc99012faca2561292dc506c7cf0e4ccbfd15d | 00b1154b3b1dfcfa4e2f87ca750b98aa49d4443b | feat: add default behaviour of running through all the errors | #22
Added a flag to override the defualt - `fail-fast` will enable users to fail fast if required otherwise all errors are displayed in non relaxed modes

| diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f81ba26
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with Li... | 4 | 4 | 3 | [{"id": "G0", "claim": "Changing Parse's signature to take a failOnfirst bool breaks the existing API; instead add a Mode field to the parser, something like go/parser.Mode.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the .gitignore file this P... | null |
a8m__envsubst__3 | a8m/envsubst | 3 | defect | de1f237918b5935914667cdee93129d5aed87eaa | 6cbf2b04334d6e1cd9ce8071064283194d066e47 | support for restriction flags -no-unset and -no-empty | I added two flags `-no-unset` and `-no-empty` to the `envsubst` command, with which you can cause the substitution to stop with an error code, should the restriction associated with the flag not be met. This can be handy if you want to avoid creating e.g. configuration files with unset or empty parameters. The flags an... | diff --git a/README.md b/README.md
index 89dbbdf..571dc3f 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,16 @@ $ echo 'welcome $HOME ${USER:=a8m}' | envsubst
$ envsubst -help
```
+#### Imposing restrictions
+There are two command line flags with which you can cause the substitution to stop with an error code, ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The doc comment on StringRestricted should be retitled to say \"StringRestricted returns...\" instead of the copied \"String returns...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on BytesRestricted sh... | null |
a8m__envsubst__39 | a8m/envsubst | 39 | defect | cbd14438db7c9bf65f636015ae700f1e09e3bc36 | 69659c09f4bd11bff929466b64fb541030225b49 | New flag -d to not replace variables that start with a digit. | This code solves #38. It leaves variables untouched which start with a digit. This is the same behavior that the original gnu envsubst has.
This change is fully backward compatible. The new functionality get's only enabled when the flag -d is given on the command line or when the new functions are used programaticall... | diff --git a/cmd/envsubst/main.go b/cmd/envsubst/main.go
index add36f6..1ebeb1d 100644
--- a/cmd/envsubst/main.go
+++ b/cmd/envsubst/main.go
@@ -14,6 +14,7 @@ import (
var (
input = flag.String("i", "", "")
output = flag.String("o", "", "")
+ noDigit = flag.Bool("d", false, "")
noUnset = flag.Bool("no-uns... | 2 | 2 | 1 | [{"id": "G0", "claim": "The four-line noDigit initialisation in collect() should be replaced by a single `noDigit := strings.HasPrefix(t.name, \"no digit\")` line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new flag should be named `-no-... | null |
aaif-goose__goose__5027 | aaif-goose/goose | 5,027 | defect | a741a42ea438fea272fd684a40aba523c87d11f1 | fd6e6c44b5462d2068758acfd964803403516f96 | Platform Extension MOIM (Minus One Info Message) | Implements ephemeral context injection at the agent boundary to automatically include timestamp and TODO content in LLM context without modifying conversation history.
## Problem
Previously, accessing TODO content required explicit `todo__read` tool calls, cluttering conversation history and consuming tokens. Tim... | diff --git a/Cargo.lock b/Cargo.lock
index cf3088070085..8eacb2e42cea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2712,6 +2712,7 @@ dependencies = [
"serde",
"serde_json",
"serde_yaml",
+ "serial_test",
"shlex",
"tar",
"temp-env",
diff --git a/crates/goose-cli/Cargo.toml b/crates/goose-cli/Cargo.toml
index... | 20 | 15 | 5 | [{"id": "G0", "claim": "Delete crates/goose/tests/moim_tests.rs: the first test can only break if the way time is represented changes, and the second test tests the same thing as the first.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The change to th... | null |
aaif-goose__goose__5398 | aaif-goose/goose | 5,398 | defect | 9afaedcc6a3a166b31b97d109a896ffa6c58b9c7 | 6638cd077213271f24c0fe4aa1e4d40bd2c3252b | Use session IDs as task IDs for subagents instead of UUIDs | Replace UUID task IDs with session IDs to reduce LLM transcription errors.
## The Problem
LLMs can mistype UUIDs when referencing tasks:
- `a1b2c3d4-e5f6-7890-abcd-ef1234567890` → easy to corrupt
- 36 characters of random hex → higher error probability
## The Solution
Session IDs are more LLM-friendly:
- `... | diff --git a/crates/goose/src/agents/recipe_tools/dynamic_task_tools.rs b/crates/goose/src/agents/recipe_tools/dynamic_task_tools.rs
index f87cda290337..0f5e4a5da52d 100644
--- a/crates/goose/src/agents/recipe_tools/dynamic_task_tools.rs
+++ b/crates/goose/src/agents/recipe_tools/dynamic_task_tools.rs
@@ -10,6 +10,7 @@... | 3 | 3 | 2 | [{"id": "G0", "claim": "The session_id parameter of run_complete_subagent_task/get_agent_messages should not be optional, and the fallback session creation inside get_agent_messages should be dropped.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The co... | null |
aaif-goose__goose__7126 | aaif-goose/goose | 7,126 | defect | fd6a27003abd1607eb7a7ac4d54cdb555a7d3f3f | 7d280f155846cbfa8ccdcdcd73135391fc6da09e | feat: self-signed HTTPS for goosed server | ## Summary
Generate an ephemeral self-signed TLS certificate at startup so goosed serves over HTTPS. This gives MCP app iframes a **secure context**, enabling browser APIs (`crypto.subtle`, `clipboard`, etc.) and making 3rd-party iframe injection viable.
## Changes
### Rust (`goose-server`)
- **`tls.rs`** *(new)* — ... | diff --git a/Cargo.lock b/Cargo.lock
index f0b8e53445c4..75aeaf825399 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -178,6 +178,15 @@ dependencies = [
"derive_arbitrary",
]
+[[package]]
+name = "arc-swap"
+version = "1.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ded5f9a03ac8f... | 10 | 8 | 6 | [{"id": "G0", "claim": "Setting NODE_TLS_REJECT_UNAUTHORIZED=0 process-wide could let the app accept self-signed certificates from things outside localhost, which would be bad.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tunnel proxy forwards re... | null |
aaif-goose__goose__7420 | aaif-goose/goose | 7,420 | defect | 94567dc9eed2c3e6072f328feeee1af00bf5142d | 6e30265be1cb6e0e8625a3959a1d23875fb4005a | feat(claude-code): add permission prompt routing for approve mode | ## Summary
This adds `GooseMode::Approve` support to the claude-code provider. Previously only `Auto` and `SmartApprove` worked. `Approve` was silently unsupported.
When `GOOSE_MODE=approve`, the provider passes `--permission-prompt-tool stdio` to the CLI, which routes tool permission checks through the stream-js... | diff --git a/crates/goose-cli/src/session/mod.rs b/crates/goose-cli/src/session/mod.rs
index fcc22dc4b0b4..67081b6369a4 100644
--- a/crates/goose-cli/src/session/mod.rs
+++ b/crates/goose-cli/src/session/mod.rs
@@ -981,6 +981,10 @@ impl CliSession {
if permission == Permission::Cancel... | 6 | 5 | 4 | [{"id": "G0", "claim": "The cli-providers.md guide still says `approve` mode is \"Not supported\" while this PR implements it, so the documentation should be updated to reflect the change (per project conventions in a separate PR).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
aaif-goose__goose__7490 | aaif-goose/goose | 7,490 | defect | 20166906a5b19fec373123f8352cc92cc9b8ec52 | 581bef4980db1080fb02896fab51e0b9d9e9e716 | feat(otel): propagate session.id to spans and log records | ## Summary
OTel spans and log records have no `session.id`, making it impossible to query all telemetry for a single session. This adds `session.id` to `reply`, `reply_stream`, `dispatch_tool_call`, `complete`, and `stream_response_from_provider` spans, and propagates it to log records via upstream `with_span_attribut... | diff --git a/Cargo.lock b/Cargo.lock
index c5409c4e14a0..ead52459c501 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2052,6 +2052,18 @@ dependencies = [
"windows-sys 0.61.2",
]
+[[package]]
+name = "const-hex"
+version = "1.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3bb320ca... | 3 | 2 | 2 | [{"id": "G0", "claim": "The imported `LogRecord` is never used, which will fail the build under `-D warnings`; remove the unused import (or use it if intended).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "`gen_ai.request.model` on the new `stream... | null |
aaif-goose__goose__7668 | aaif-goose/goose | 7,668 | defect | 42fc5152bf981a8bd62db218a1b656482bb05ed2 | 90c3dabc8f5d441aaca769aded7198c3ce6adb40 | feat(acp): add read tool and delegate filesystem I/O to ACP clients | ## Summary
[ACP file system methods](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/docs/protocol/file-system.mdx) (`fs/read_text_file` and `fs/write_text_file`) let agents delegate file I/O to the editor instead of hitting disk directly. Reads can return unsaved editor state, and writes let ... | diff --git a/Cargo.lock b/Cargo.lock
index 9d36d96570fa..7fa6977499ad 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4294,6 +4294,7 @@ dependencies = [
"encoding_rs",
"env-lock",
"etcetera 0.11.0",
+ "fs-err",
"fs2",
"futures",
"goose-test-support",
diff --git a/Cargo.toml b/Cargo.toml
index c571412c98e1..719... | 9 | 7 | 4 | [{"id": "G0", "claim": "The edit path should be intercepted only when both fs capabilities are present, because with only one cap acp_edit mixes data sources (editor buffer vs local disk) and can apply replacements against stale content.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i... | null |
aaif-goose__goose__7690 | aaif-goose/goose | 7,690 | defect | 6b6018c207379df8b1e5a924708096f85bba6ae1 | 0f487dfde1cb7f75da2f5cd853c17a7b81b2fceb | fix: restore smart-approve mode | ## Summary
Users who pick SmartApprove get prompted for every tool call, same as Approve since #4237. This is due to features supporting SmartApprove being orphaned.
- The inspector now checks `PermissionManager.is_readonly_annotated_tool()` and the smart_approve permission cache before prompting, gated to Smart... | diff --git a/crates/goose-test-support/src/mcp.rs b/crates/goose-test-support/src/mcp.rs
index 8ccba5c52597..519f57ac051d 100644
--- a/crates/goose-test-support/src/mcp.rs
+++ b/crates/goose-test-support/src/mcp.rs
@@ -105,7 +105,7 @@ impl McpFixtureServer {
}
}
- #[tool(description = "Get the code")... | 6 | 3 | 1 | [{"id": "G0", "claim": "Read-only classification and caching work on tool names only — the judge is sent no arguments and the SmartApprove cache is keyed per tool name — so argument-dependent read/write variants of a tool may be misclassified and later auto-approved for write operations without a prompt; include tool a... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.