Repository navigation
feat: harden served-agent safety controls - #4000
Merged
Merged
Conversation
aheritier
marked this pull request as ready for review
August 18, 2026 15:08
melmennaoui
approved these changes
Aug 18, 2026
pull Bot
pushed a commit
to TheTechOddBug/cagent
that referenced
this pull request
Aug 19, 2026
Add missing safety-related flags (--auth-token, --cors-origin, --insecure-no-auth, --safety) to the serve a2a section in the CLI reference. These flags were added in PR docker#4000 and are already documented in the detailed A2A feature page, but were omitted from the CLI index when the MCP and chat serve commands were updated. Reflects changes from docker#4000. Source PR: docker#4000
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
docker-agent 1.126.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>This release adds evaluation regression gating, session comparison for replay, and significant hardening of served-agent safety controls across A2A, MCP HTTP, and chat surfaces. ## What's New - Adds `--baseline` and `--regression-tolerance` flags to `docker agent eval`, enabling CI-style regression detection by comparing a run against a previously saved baseline and failing on quality regression - Adds `docker agent sessions diff` command to compare the behavior of two recorded sessions, reporting the first point of divergence between runs - Adds unattended tool execution restrictions for A2A, requiring explicit security configuration for network listeners - Adds centralized unattended safety resolution for served agents, with ordered concrete safety policies and hardened HTTP serving for MCP and chat surfaces - Adds session-origin isolation for A2A session resumes ## Bug Fixes - Fixes the baseline gate to be grounded on the file that eval writes, and fails closed on error - Fixes replay comparison to handle sub-agent turns, compare arguments semantically, and sanitize output - Fixes A2A session resumes to be isolated by origin ## Technical Changes - Refactors `sessions diff` CLI command to resolve session references - Refactors safety flag validation to be shared across CLI surfaces - Refactors HTTP auth and origin matchers into a shared `httpsec` package - Refactors A2A server assembly, extracting it from `Run` - Replaces `CAGENT_MODELS_GATEWAY` with `DOCKER_AGENT_MODELS_GATEWAY` in docs and samples - Documents the evaluation regression gate and its two flags, the `docker agent sessions diff` command, and served-agent safety controls --- ## What's Changed * docs: update CHANGELOG.md for v1.125.0 by @docker-read-write[bot] in docker/docker-agent#3995 * feat(replay): compare the behaviour of two recorded sessions by @dwin-gharibi in docker/docker-agent#3948 * feat(eval): compare a run against a saved baseline and fail on regression by @dwin-gharibi in docker/docker-agent#3946 * docs: replace CAGENT_MODELS_GATEWAY with DOCKER_AGENT_MODELS_GATEWAY in docs and samples by @aheritier in docker/docker-agent#3997 * feat: harden served-agent safety controls by @aheritier in docker/docker-agent#4000 **Full Changelog**: docker/docker-agent@v1.125.0...v1.126.0 </pre> <p>View the full release notes at <a href="https://github.com/docker/docker-agent/releases/tag/v1.126.0">https://github.com/docker/docker-agent/releases/tag/v1.126.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!17034
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Harden served-agent safety controls across A2A, MCP HTTP, and chat surfaces. The change applies restricted safety defaults, isolates session origins, gates unsafe bindings, and keeps startup behavior explicit for autonomous configurations.
Commit-by-commit review guide
da7844c0— establish served-agent safety policy foundations.f6b85569— add session-origin isolation and persistence safeguards.dd5abea7— add per-surface bind and transport controls.6d5d317e— cover safety behavior with focused tests.9df38cd0— document configuration and operational behavior.64d543c8— add endpoint collision coverage.008fb5ac— refine policy handling and compatibility paths.6af32590— add autonomous startup validation.11d5f983— align migration and rollback guidance.db377acb— clarify troubleshooting and feature documentation.1c58df4a— correct flag and behavior documentation.0413770f— complete final review-driven hardening and test coverage.Validation
task build— greentask test— greentask lint— greenReview verdicts
Migration and compatibility