Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

chore(deps): bump sigs.k8s.io/agent-sandbox from 0.5.3 to 0.5.4 - #54

Merged
yuluo-yx merged 2 commits into
mainfrom
dependabot/go_modules/sigs.k8s.io/agent-sandbox-0.5.4
Aug 5, 2026
Merged

yuluo-yx merged 2 commits into
mainfrom
dependabot/go_modules/sigs.k8s.io/agent-sandbox-0.5.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 5, 2026

Copy link
Copy Markdown
Contributor

Bumps sigs.k8s.io/agent-sandbox from 0.5.3 to 0.5.4.

Release notes

Sourced from sigs.k8s.io/agent-sandbox's releases.

v0.5.4

🚀 Announcing Agent Sandbox v0.5.4!

We're excited to announce the release of Agent Sandbox v0.5.4! This release brings significant improvements in core stability, performance, and introduces powerful new features for the Python SDK and router. Key areas of focus include hardening sandbox lifecycle management, optimizing API server interactions, and expanding integration capabilities.

⚠️ Breaking Changes / Action Required

  • Sandbox Suspended condition changed to comply with Kubernetes convention (#1150):
    • The Suspended status condition is now always present on Sandbox resources after initial reconciliation. Clients should inspect its boolean status value (e.g., status: "False") rather than checking for its presence or absence.
    • The legacy PodNotTerminated reason string is deprecated in favor of PodTerminating. Update any client-side logic that explicitly checks for PodNotTerminated.

Key Highlights

Core Stability & Lifecycle Management

  • Persistent Suspended Conditions for Sandbox (#1150): The Sandbox Suspended status condition is now consistently present and transitions its status (True or False) instead of appearing or disappearing, enabling standard kubectl wait commands and preserving history.
  • Robust Adoption Assignment & Optimistic Locks (#1277): Prevents assignment flips, orphaned sandboxes, and duplicate adoptions under load by applying optimistic locks on adoption patches and resolving conflicts against authoritative reads. Benign adoption contention now surfaces as an AdoptionConflict Ready reason.
  • Optimistic-Locked Status Writes (#1256): Eliminates duplicate startup-latency histogram observations and stale status overwrites by using optimistic-locked status patches, ensuring metrics are recorded exactly once and status reflects the authoritative state.
  • Reduced Redundant Reconciles & Status Patching (#1254): Improves controller efficiency by using non-optimistic merge patches for Sandbox status writes (eliminating 409 conflicts) and adding predicates to only reconcile owning SandboxClaim on relevant Sandbox field changes.
  • Warm Pool Over-Creation Mitigations (#1266): Prevents SandboxWarmPool from over-creating replicas due to informer-cache lag. Sandbox creations are now gated by a ReplicaSet-style expectations tracker, and terminating sandboxes count against the target. Introduces WarmPoolNotProgressing events for capacity shortfalls.
  • Efficient Pod Cache Transformation (#1272): Strips Pod finalizers from the informer cache, reducing memory usage and event decoding costs as they are not used by Agent Sandbox controllers.
  • Semantic Comparison for K8s API Objects (#1278): Replaces reflect.DeepEqual with apiequality.Semantic.DeepEqual for Kubernetes API object comparisons, preventing unnecessary status updates and reconciliation due to non-semantic differences.
  • Stricter API Group Verification (#945): Enhances warm-pool and sandbox ownership/identity validation by consistently verifying API Group in addition to Kind for controller and owner references.
  • Improved RBAC for Events (#1080): Grants core API group ("") events permission for the leader election event recorder, fixing events is forbidden errors.
  • Exposed Sandbox Service Ports (#1258): Generated headless Sandbox Services now automatically include ports derived from declared container ports, improving compatibility with service meshes like Istio.
  • Accurate Startup Latency Metrics (#1087): Fixes SandboxClaim controller startup latency histograms to record exactly once per claim lifetime, preventing overcounts due to readiness probe flapping.
  • Go Client Handle Registry Race Fix (#998): Prevents leaking orphaned sandbox handles in the Go client by making GetSandbox/CreateSandbox race-safe and ensuring proper disconnection of redundant handles.
  • Enhanced Adoption Conflict Resolution (#1304): Improves adoption handling for optimistic-lock contention and refines user-facing conflict messaging to avoid exposing low-level internal errors.

Performance & Scalability

  • API Connection Sharding (#1240): Introduces opt-in controller flags (--separate-watch-connection and --api-connections) to use dedicated HTTP/2 connections for informer watches and shard non-watch traffic, significantly improving API concurrency and reducing watch starvation.
  • Optimized Metadata Writes (#1250): Implements direct merge patches for hot-path metadata writes on SandboxClaim controllers, reducing CPU and memory allocations by building targeted patch payloads instead of full-object diffs.
  • Stress Test Configuration Improvements (#1283): Increases Kubelet API QPS limits and caps Kubelet event spam during stress tests, allowing for higher churn rates and reducing API server load.
  • KWOK Scalability Presubmit Test (#1269): Adds a fast, lightweight presubmit test using KWOK (Kubernetes WithOut Kubelet) to automatically benchmark performance and catch scalability regressions on every Pull Request.
  • Optimized Pod Counting for Circuit Breaker (#1232): The circuit breaker now efficiently counts pods using limit=1 and remainingItemCount to reduce API server and memory load at large scales.
  • Infrastructure Tuning for Stress Tests (#1275): Configures benchmark worker node root volumes on pd-ssd and control plane nodes on c3-standard-22, addressing disk I/O and control plane CPU bottlenecks for improved stress test performance.
  • Beta API Serving Optimization (#1234): Stress tests now serve only the beta Sandbox APIs to reduce conversion traffic and improve API server efficiency.

Router Enhancements

  • Scoped-Token Authorizer (#1243): Introduces a new --authz-mode=scoped-token for sandbox-router, allowing local verification of signed tokens bound to a single (namespace, name) without requiring a kube-apiserver round-trip.
  • Improved Warm-Pool Routing (#1239): sandbox-router now routes requests carrying X-Sandbox-Id via the Pod-IP cache's namespace/name index, fixing 502 (NXDOMAIN) errors for warm-pool sandboxes without a dedicated Service.

SDK & Integrations

  • Agent Sandbox Recycling (Python SDK) (#1232): Introduces sandbox recycling (reuse_git_restore_sandbox) in the agent-sandbox-rl SDK, allowing reuse of claimed sandboxes across tasks (e.g., RL rollouts) to reduce claim latency and API load. Includes contamination guards, persistent exec sessions, and warm-pool over-creation mitigations.
  • Optimized Python SDK wait_for_claim_ready (#1241): The Python SDK's wait_for_claim_ready() now uses a single, watch-based approach on the claim itself, significantly reducing latency compared to the previous two-sequential-watch method. Also, faster dev port-forward polling.
  • AsyncSandbox Functionality Alignment (#999): Aligns AsyncSandbox functionality with Sandbox in the Python SDK, ensuring consistent behavior and expanding API capabilities.
  • Langchain-Deepagents Integration (#1144): Adds a new Python package for integrating with Langchain-Deepagents, enabling sandbox lifecycle management, command execution, and file transfer.
  • MCP Server Introduction (#1141): Adds an Agent Sandbox MCP (Multi-Cluster Proxy) server with basic implementation for listing sandboxes and tools for create/delete, command execution, and file operations.

Documentation & Examples

  • Expanded Security Threat Model (#1299): The security threat model documentation has been expanded to include architectural overview, trust boundaries, threat analysis with mitigations, and SandboxTemplate enforcement capabilities.

... (truncated)

Commits
  • 945016a sandbox-router: add scoped-token authorizer (#1243)
  • b9d2a10 feat: implement persistent Suspended conditions for Sandbox (#1150)
  • cb0ca89 fix(sandbox-router): route by sandbox name from the Pod-IP cache to avoid war...
  • 2b68984 agent-sandbox-rl: sandbox recycling (reset-and-reuse) + warm-pool over-creati...
  • e3d15b6 test(sandboxclaim): adoption-conflict follow-ups — composed-conflict coverage...
  • c180b29 docs: expand security threat model (#1299)
  • 9af2886 perf(controllers): direct merge patches for hot-path metadata writes; optiona...
  • 2c3c03e Add langchain-deepagents integration package (#1144)
  • 8fa9662 Fix RBAC: grant core API group events permission for leader election event re...
  • 8d22e30 Add MCP server (#1141)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sigs.k8s.io/agent-sandbox](https://github.com/kubernetes-sigs/agent-sandbox) from 0.5.3 to 0.5.4.
- [Release notes](https://github.com/kubernetes-sigs/agent-sandbox/releases)
- [Changelog](https://github.com/kubernetes-sigs/agent-sandbox/blob/main/docs/release.md)
- [Commits](kubernetes-sigs/agent-sandbox@v0.5.3...v0.5.4)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/agent-sandbox
  dependency-version: 0.5.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot
dependabot Bot requested a review from yuluo-yx as a code owner August 5, 2026 02:14
@yuluo-yx
yuluo-yx merged commit a0e20cf into main Aug 5, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/go_modules/sigs.k8s.io/agent-sandbox-0.5.4 branch August 5, 2026 14:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant