Skip to content

[TASK] Refactor remove the legacy tools.sandbox deprecation warning #1478

Closed as not planned

Description

@inference-gateway-maintainer

Summary

PR #1473 moved the sandbox policy into the userspace sandbox.yaml. A legacy tools.sandbox block in config.yaml is no longer read, and while landing that change commit b52d5da made its presence print a deprecation warning pointing at the new file (the v.IsSet("tools.sandbox") block in loadConfigFromViper, cmd/runtime/config.go):

if v.IsSet("tools.sandbox") {
    logger.Warn("config.yaml tools.sandbox is ignored, the sandbox policy lives in the userspace sandbox.yaml")
}

The notice is a migration aid, not a permanent fixture: remove it once users have had roughly ten releases to migrate (v0.222.1 was current when filing on 2026-10-02, so target a version around ten releases out and pin the exact one when scheduling). Nothing else needs cleanup in the same pass: config.yaml never carries the policy since the move, infer config set already refuses the key, and nothing migrates. ToolsConfig.Sandbox stays as is; it is the in-memory carrier of the userspace policy, not a legacy surface.

Acceptance Criteria

  • The v.IsSet("tools.sandbox") warning block is removed from cmd/runtime/config.go
  • A legacy tools.sandbox block in config.yaml is still silently ignored, with no log output and no functional change
  • The cmd/runtime tests keep passing, including the userspace-first ones pinning that config.yaml never carries the policy
  • task precommit:run passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions