Commit 15a9a88b
15a9a88b4cbbMergedon mrmrs-a60a8c
mrmrs · 13 days ago · 5 files · +2 added · ~3 modified
Details
- Commit
- 15a9a88b4cbb
- Parent
- bc79bb5d3dad
cloudflare/agent-runner/README.mdmodifiedView file
@@ -55,9 +55,8 @@
5555
```sh5656
# mock (free)5757
python3 scripts/cloud_campaign.py --manifest config/agent-campaign-smoke.json58-
# real (paid): the key is sent in the job request only, never written to disk59-
ANTHROPIC_API_KEY=... python3 scripts/cloud_campaign.py --manifest m.json \60-
--enable-real --secret-env ANTHROPIC_API_KEY58+
# real (paid): the Worker supplies the key; this machine never sees it59+
python3 scripts/cloud_campaign.py --manifest config/agent-campaign-canary-claude.json --enable-real6160
```6261
6362
Results go to `results/cloud-campaigns/<job-id>/` and are never committed:@@ -67,6 +66,19 @@
6766
The runner URL and token live in `~/.config/oak-bench/agent-runner.{url,token}`6867
(mode 600). You can also set `OAK_AGENT_RUNNER_URL` and `OAK_AGENT_RUNNER_TOKEN`.6968
69+
## Credentials70+
71+
`ANTHROPIC_API_KEY` is a Secrets Store binding (`anthropic-api-key` in the72+
oak.space account's `default_secrets_store`, see `wrangler.jsonc`). Nobody can73+
read the value back. The Worker adds it to `enable_real` jobs and rejects any74+
request that carries its own `secrets`. The container then replaces every75+
occurrence of the value in the bundle with `[REDACTED:ANTHROPIC_API_KEY]` and76+
records the counts in `redaction.json`.77+
78+
The runner token in `~/.config/oak-bench/agent-runner.token` can start paid79+
jobs. Revoke it with `wrangler secret delete RUNNER_TOKEN`. Keep a spend limit80+
on the Anthropic key.81+
7082
## Deploy7183
7284
```sh@@ -83,5 +95,7 @@
8395
- Deploys roll out gradually, which takes about 5 minutes. Until then, new jobs8496
can land on the old image. Check with8597
`wrangler containers info <app-id>`: the `version` and `image` fields.98+
- `account_id` is pinned to the oak.space account. Without the pin, wrangler99+
reuses whichever account a previous login cached.86100
- `instance_type` is `standard-1` (0.5 vCPU, 4 GiB, 8 GB disk).87101
- `max_instances` is 4.cloudflare/agent-runner/wrangler.jsoncmodifiedView file
Loading diff…
config/agent-campaign-canary-claude.jsonaddedView file
Loading diff…
scripts/agent_workflow.pymodifiedView file
Loading diff…
tests/test_task_prompt_oracle_parity.pyaddedView file
Loading diff…