Skip to content

feat: harden served-agent safety controls - #4000

Open
aheritier wants to merge 12 commits into
mainfrom
serve-hardening
Open

feat: harden served-agent safety controls#4000
aheritier wants to merge 12 commits into
mainfrom
serve-hardening

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

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 — green
  • task test — green
  • task lint — green

Review verdicts

  • Local implementation review: approved.
  • Focused delta review: approved.

Migration and compatibility

  • New served-agent safety defaults are restricted by design; deployments that rely on broader access should explicitly configure the required allowances.
  • Existing sessions retain their established behavior while new origin mismatches are rejected and session origin state is not silently replaced.
  • Startup validation makes autonomous configurations fail clearly when required safety settings are missing or incompatible.

@aheritier aheritier added area/core Core agent runtime, session management area/docs Documentation changes area/mcp MCP protocol, MCP tool servers, integration area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Aug 18, 2026
@aheritier
aheritier requested a review from docker-agent August 18, 2026 15:08
@aheritier
aheritier marked this pull request as ready for review August 18, 2026 15:08
@aheritier
aheritier requested a review from a team as a code owner August 18, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core Core agent runtime, session management area/docs Documentation changes area/mcp MCP protocol, MCP tool servers, integration area/runtime Runtime engine, agent loop execution, tool dispatch, loop detection area/sessions For features/issues/fixes related to session lifecycle (resume, persistence, export) kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants