# Remote VPC Workers

Run evaluations against proprietary agents hosted inside private enterprise networks or VPCs without opening inbound firewall ports.

---

## Configuration

Define a remote worker in `eval.toml`:

```toml
[[agent]]
name = "internal-billing-agent"
role = "target"
driver = "remote"
plugin = "vpc-agent"

[agent.options]
worker_id = "billing-worker-us-east"
timeout_s = 600
```

### Options Reference

| Option | Type | Required | Description |
|---|---|---|---|
| `worker_id` | string | Yes | Unique identifier of the registered VPC worker to target. |
| `timeout_s` | integer | No | Maximum time in seconds to wait for worker task completion. |

---

## Running the Evaluation

Execute the evaluation targeting the remote agent:

```bash
shipyard run ./billing-eval
```

Override the target agent to use a remote worker via CLI:

```bash
shipyard run ./billing-eval --agent vpc-agent
```

---

## Worker Registration API

Workers in your private network register via outbound HTTP POST:

```http
POST /v1/workers/register
Content-Type: application/json

{
  "worker_id": "billing-worker-us-east",
  "agent_name": "internal-billing-agent",
  "labels": {
    "env": "prod",
    "vpc": "finance-vpc"
  }
}
```

Once registered, the worker polls for assigned evaluation tasks:

```http
GET /v1/workers/billing-worker-us-east/poll
```

Task results are posted back upon completion:

```http
POST /v1/tasks/{task_id}/complete
Content-Type: application/json

{
  "status": "completed",
  "output": "Execution completed successfully",
  "exit_code": 0
}
```
All intermediate outputs and tool calls are automatically captured in `rollouts/` as standard ATIF trajectories.
