Reversible clean-root candidate rebuilt from oak/benchmarks main@009dead264ca; original repository retained.

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 ```sh
5656 # mock (free)
5757 python3 scripts/cloud_campaign.py --manifest config/agent-campaign-smoke.json
58-# real (paid): the key is sent in the job request only, never written to disk
59-ANTHROPIC_API_KEY=... python3 scripts/cloud_campaign.py --manifest m.json \
60- --enable-real --secret-env ANTHROPIC_API_KEY
58+# real (paid): the Worker supplies the key; this machine never sees it
59+python3 scripts/cloud_campaign.py --manifest config/agent-campaign-canary-claude.json --enable-real
6160 ```
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+## Credentials
70+
71+`ANTHROPIC_API_KEY` is a Secrets Store binding (`anthropic-api-key` in the
72+oak.space account's `default_secrets_store`, see `wrangler.jsonc`). Nobody can
73+read the value back. The Worker adds it to `enable_real` jobs and rejects any
74+request that carries its own `secrets`. The container then replaces every
75+occurrence of the value in the bundle with `[REDACTED:ANTHROPIC_API_KEY]` and
76+records the counts in `redaction.json`.
77+
78+The runner token in `~/.config/oak-bench/agent-runner.token` can start paid
79+jobs. Revoke it with `wrangler secret delete RUNNER_TOKEN`. Keep a spend limit
80+on the Anthropic key.
81+
7082 ## Deploy
7183
7284 ```sh
@@ -83,5 +95,7 @@
8395 - Deploys roll out gradually, which takes about 5 minutes. Until then, new jobs
8496 can land on the old image. Check with
8597 `wrangler containers info <app-id>`: the `version` and `image` fields.
98+- `account_id` is pinned to the oak.space account. Without the pin, wrangler
99+ 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.