luigidemasi opened a new pull request, #28501: URL: https://github.com/apache/camel/pull/28501
# Description Fix [CAMEL-25931](https://issues.apache.org/jira/browse/CAMEL-25931): an A2A consumer calling another agent can make the producer run the incoming operation instead of its configured operation, then use the downstream agent's task identity and response controls for the outer reply. Separate consumer metadata into `CamelA2ARequest*` headers and exchange properties, and add `CamelA2AReplyTaskState` / `CamelA2AReplyType` for deliberate reply control. Existing producer controls and results retain their roles. Replies, progress and streaming completion use the outer consumer context even after header removal. Forwarding the original POJO message strips its incoming task/context IDs; a newly supplied message retains explicit downstream IDs. Include regression coverage for nested REST/JSON-RPC calls and synchronous, asynchronous and streaming consumers, component documentation, the 4.24 header migration guide, and regenerated catalog and endpoint DSL artifacts. # Validation - On the rebased commit: full root build passed with `mvnd -B -ntp -T 4 clean install -DskipTests` (707 modules, 4m24s). Tests were skipped as requested; the working tree remained clean after generation and formatting. - Before rebase: all 554 `camel-a2a` tests passed, including 23 nested-agent scenarios, with no retries. The rebase preserved the patch unchanged (`git range-diff`); the intervening upstream commits do not change A2A. - The pre-push Antora documentation check passed for the exact rebased commit. # Target - [x] Targets `main` (Camel 4). # Tracking - [x] Tracked by CAMEL-25931. # Apache Camel coding standards and style - [x] The commit has a meaningful subject and body, a verified signature, and a sign-off. - [x] Ran the full root build with `mvnd clean install -DskipTests`; all generated changes are committed. # AI-assisted contributions - [x] The commit includes a `Co-authored-by` trailer. _Generated by OpenAI Codex on behalf of @luigidemasi via /oss-fix-issue._ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
