Repository navigation
Description
Problem
go.mod pins github.com/inference-gateway/adk v0.29.0, which is the last release with the pre-A2A-v1.0.1 types. ADK v0.30.0 migrated client, server and types to A2A v1.0.1 (adk#337), and agents built on it are already landing - adl-cli #452 bumps the Go scaffold to adk v0.30.0, the TypeScript scaffold to 0.17.0 and the Rust scaffold to 0.15.0, so every freshly generated agent now speaks v1.0.1 on the wire.
Because the gateway CLI still carries the v0.29.0 types, three of these are wire-level (not just compile-level) mismatches against a v1.0.1 agent.
Concrete breakage against a v1.0.1 agent
-
Cancelled tasks are no longer recognised as terminal. The enum value changed:
TASK_STATE_CANCELLED->TASK_STATE_CANCELED(oneL). A v1.0.1 agent reportsTASK_STATE_CANCELED, which matches none ofadk.TaskStateCancelledininternal/protocols/a2a/background_tasks.go:116,internal/protocols/a2a/job.go:224,internal/protocols/a2a/submit_task.go:503, or the status maps ininternal/protocols/a2a/domain/tasks.go:100,112,154. A cancelled background task is polled forever and renders with an unknown status. -
File and data parts no longer deserialize.
Partwas flattened in v1.0.1:part.File.FileWithUri->part.url,part.File.FileWithBytes->part.raw,part.File.Name->part.filename, andpart.Data.Data(a nested object) ->part.data(an arbitrary JSON value). Decoding a v1.0.1{"data": [...]}or{"url": "..."}part into the v0.29.0Part{Data *DataPart, File *FilePart}yields an empty part (or a decode error for a non-objectdata). Text parts are unaffected, so this fails silently on exactly the artifact/structured paths. -
infer a2a query agentrenders a card with no URL. The v1.0.1AgentCardreplacedurl/preferredTransport/protocolVersionwithsupportedInterfaces[](first entry preferred) and renamedsecurity->securityRequirements. Decoded into the v0.29.0 struct,urlandprotocolVersioncome back empty andsupportedInterfacesis dropped entirely, so the card we surface to the model and to the user is missing the endpoint. Connectivity itself is unaffected -adk/clientdials the configured base URL, not the card.
Compile-time work the bump also pulls in: Security -> SecurityRequirement, ListTaskPushNotificationConfigRequest/Response -> ListTaskPushNotificationConfigs*, SetTaskPushNotificationConfigRequest and PushNotificationConfig removed (TaskPushNotificationConfig now carries the params), and DataPart / FilePart deleted.
Suggested scope
- Bump
github.com/inference-gateway/adktov0.30.0. - Fix the
TaskStateCanceledspelling at all six call sites, including the"canceled"key mapping. - Migrate
Partconstruction and reading to the flattened shape (internal/protocols/a2a/submit_task.go,query_task.go, plus their tests, which currently buildadk.FilePart{FileWithURI: ...}andadk.DataPart{...}). - Read the agent endpoint from
card.SupportedInterfaces[0].URL(fall back to the configured base URL) wherever the card URL is surfaced, and follow theSecurityRequirementsrename. - Rename the push-notification config request/response types.
Decide separately whether the CLI should stay tolerant of pre-v1.0.1 agents still in the field (e.g. accept both TASK_STATE_CANCELED and TASK_STATE_CANCELLED on read); the ADK types themselves only carry the new shape.
Context: adl-cli#452, adl-cli#451, adk#329.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Oct 2, 2026
@infer can you work on this? use /ponytail:ponytail /domain-driven-design /clean-architecture /clean-code
inference-gateway-maintainer commentedon Oct 2, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1476
✅ Infer Result: Success
Done. Issue #1474 is fully implemented and delivered via PR #1476 (#1476, ready for review on branch
fix/issue-1474).What changed
Dependency bump
go.mod:github.com/inference-gateway/adkv0.29.0 -> v0.30.0 (A2A v1.0.1 wire types)The three wire-level breakages from the issue
adk.TaskStateCancelled->adk.TaskStateCanceledat every site (domain/tasks.go state list, key map, display map; background_tasks.go terminal guard; job.go retention matcher; submit_task.go cancel case and local-cancel result). The CLI stays tolerant of pre-v1.0.1 agents:NormalizeTaskStatenow maps bothTASK_STATE_CANCELEDand the oldTASK_STATE_CANCELLED(prefixed and bare forms) onto the new constant, so a v0.29-era agent is still recognized as terminal instead of being polled forever.Part.DataMap()(arbitrary JSON*Value) instead of the deleted nestedDataPart(failure.go); file parts resolvepart.urlinstead ofpart.File.FileWithURIin the artifact download path (submit_task.go).a2ainfra.PreferredEndpointURLreadscard.SupportedInterfaces[0].URL(falls back to the configured base URL) and theA2A_QueryAgentresult message surfaces the preferred endpoint.Compile-time migration from the bump
TaskQueryParams->GetTaskRequest,TaskIdParams->CancelTaskRequest,MessageSendParams->SendMessageRequestwithSendMessageConfiguration. The removedBlockingflag is dropped - an unsetReturnImmediatelydefaults to wait-for-terminal, the same behavior the oldblocking: truehad.Task.ContextIDwent optional (*string): switched to the ADK'sTask.GetContextID()accessor across tools, retention rebuild and the task view.tests/mocks/adk/fake_a2aclient.goviatask mocks:generate.Tests: updated all state-spelling and part-shape literals, and added a v1.0.1 wire-shape regression test that decodes a v1.0.1 task JSON (flattened
{"data": ...}error part and{"url": ...}file part) through the same decode path the tools use, asserting the failure reason and artifact download URL survive.Checks: full
go test ./...green,task precommit:rungreen (mod tidy, mocks, fmt, lint:imports, golangci-lint 0 issues).Tracking: added to Roadmap 2026 board (In progress -> QA), docs ticket filed at inference-gateway/docs#904 covering the user-facing notes (state spelling and supportedInterfaces card shape). No other repos affected - the CLI is a leaf consumer of the ADK.
Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 18m 45sTokens: 15,128,248 in · 60,208 out · 15,188,456 total (84 requests)
Tool calls: 138 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Oct 2, 2026
🎉 This issue has been resolved in version 0.222.2 🎉
The release is available on:
Your semantic-release bot 📦🚀