Agent Sandbox Registry

agent-sandbox

{

无中文版

docs/design/fixtures/migration-vectors.json

{
  "schema_version": 1,
  "vectors": [
    {
      "name": "nothing stored",
      "toml": {},
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "legacy api_url in transport",
      "toml": {
        "transport": {
          "api_url": "https://t.example",
          "http_timeout": 9
        }
      },
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "transport": {
          "api_url": "https://t.example",
          "http_timeout": 9
        },
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "api_base_url alias in transport",
      "toml": {
        "transport": {
          "api_base_url": "https://t.example"
        }
      },
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "transport": {
          "api_base_url": "https://t.example"
        },
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "canonical already present: legacy dropped",
      "toml": {
        "transport": {
          "api_url": "https://old",
          "sandbox_base_url": "https://new"
        }
      },
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "transport": {
          "api_url": "https://old",
          "sandbox_base_url": "https://new"
        },
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "region moves to the provider table",
      "toml": {
        "transport": {
          "region": "cn-beijing"
        }
      },
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "rename",
          "from": "transport.region",
          "to": "providers.alicloud-express.region"
        },
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "providers": {
          "alicloud-express": {
            "region": "cn-beijing"
          }
        },
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "region already scoped",
      "toml": {
        "transport": {
          "region": "a"
        },
        "providers": {
          "alicloud-express": {
            "region": "b"
          }
        }
      },
      "env": "",
      "plan": [
        {
          "file": "toml",
          "action": "drop",
          "from": "transport.region",
          "to": "providers.alicloud-express.region"
        },
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "providers": {
          "alicloud-express": {
            "region": "b"
          }
        },
        "core": {
          "config_format": 2
        }
      },
      "env_after": ""
    },
    {
      "name": "env: phase-1 names renamed, comments kept",
      "toml": {},
      "env": "# keep me\nE2B_API_KEY=abc\nSANDBOX_REGION=cn-shanghai\nOPENAI_API_KEY=k\n",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": "# keep me\nE2B_API_KEY=abc\nSANDBOX_REGION=cn-shanghai\nOPENAI_API_KEY=k\n"
    },
    {
      "name": "env: shadowed legacy dropped",
      "toml": {},
      "env": "E2B_API_KEY=abc\nSANDBOX_API_KEY=old\n",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": "E2B_API_KEY=abc\nSANDBOX_API_KEY=old\n"
    },
    {
      "name": "env: canonical present wins",
      "toml": {},
      "env": "ABX_SANDBOX_API_KEY=new\nE2B_API_KEY=old\n",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": "ABX_SANDBOX_API_KEY=new\nE2B_API_KEY=old\n"
    },
    {
      "name": "env: acr and ak legacy names",
      "toml": {},
      "env": "ACR_REGISTRY=r\nACR_PASSWORD=p\nAccessKey=ak\nAccessSecret=sk\nTEAM_ID=7\n",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": "ACR_REGISTRY=r\nACR_PASSWORD=p\nAccessKey=ak\nAccessSecret=sk\nTEAM_ID=7\n"
    },
    {
      "name": "env: export prefix and blank values",
      "toml": {},
      "env": "export SANDBOX_REGION=cn-beijing\nSANDBOX_API_KEY=\n",
      "plan": [
        {
          "file": "toml",
          "action": "set",
          "from": null,
          "to": "core.config_format",
          "value": 2
        }
      ],
      "toml_after": {
        "core": {
          "config_format": 2
        }
      },
      "env_after": "export SANDBOX_REGION=cn-beijing\nSANDBOX_API_KEY=\n"
    }
  ]
}