Release v3.6 (2026-11-13b) (copy of misc-org/collaborative-intelligence-harbor)
Browse files- README.md +3 -3
- adapter/RUNTIME.md +33 -6
- adapter/VALIDATION.md +6 -5
- adapter/adapter-release.json +4 -4
- adapter/src/collab_harbor/model_gateway.py +29 -3
- adapter/src/collab_harbor/model_gateway_setup.py +3 -1
- adapter/src/collab_harbor/run_benchmark.py +11 -0
- adapter/src/collab_harbor/sweep.py +1 -0
- examples/claude-opus-full-pi.yaml +2 -2
- examples/claude-opus-messages-full-pi.yaml +2 -2
- examples/deepseek-hf-full-pi.yaml +2 -2
- examples/endpoint-full-pi.yaml +2 -2
- examples/gemini-full-pi.yaml +2 -2
- examples/gpt-full-pi.yaml +2 -2
- inventory.json +0 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/docker-compose.yaml +1 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/compatibility.json +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/model_gateway.py +29 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/task.json +20 -20
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/tests/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/tests/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/docker-compose.yaml +1 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/compatibility.json +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/model_gateway.py +29 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/task.json +20 -20
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/tests/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/tests/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/docker-compose.yaml +1 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/compatibility.json +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/model_gateway.py +29 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/task.json +20 -20
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/tests/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/tests/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/docker-compose.yaml +1 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/compatibility.json +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/model_gateway.py +29 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/task.json +20 -20
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/tests/runtime.json +5 -5
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/tests/runtime.tar.gz +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/docker-compose.yaml +1 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/compatibility.json +2 -2
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/model_gateway.py +29 -3
README.md
CHANGED
|
@@ -68,11 +68,11 @@ The run itself reads these variables:
|
|
| 68 |
| `ANTHROPIC_WORKSPACE_ID` | only if your Anthropic key requires a workspace header |
|
| 69 |
|
| 70 |
**3. Get the tasks and the host tools.** Tag `v3.6` is this README; its tasks are identical to the task
|
| 71 |
-
commit `
|
| 72 |
|
| 73 |
```sh
|
| 74 |
git lfs install
|
| 75 |
-
git clone --branch v3.6 https://huggingface.co/datasets/
|
| 76 |
cd ci-harbor/adapter && uv sync --python 3.13 --locked --extra harbor --extra hub
|
| 77 |
uv pip install --python .venv/bin/python \
|
| 78 |
'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3'
|
|
@@ -123,7 +123,7 @@ the Pi session under `agent/pi/sessions/`, the team transcript and checker evide
|
|
| 123 |
- `adapter/README.md`: command reference, optional provider recipes, Podman, re-scoring saved runs.
|
| 124 |
- `adapter/RUNTIME.md`: the team service interface and task configuration.
|
| 125 |
- [CHANGELOG.md](CHANGELOG.md): release history.
|
| 126 |
-
-
|
| 127 |
|
| 128 |
## Licenses and provenance
|
| 129 |
|
|
|
|
| 68 |
| `ANTHROPIC_WORKSPACE_ID` | only if your Anthropic key requires a workspace header |
|
| 69 |
|
| 70 |
**3. Get the tasks and the host tools.** Tag `v3.6` is this README; its tasks are identical to the task
|
| 71 |
+
commit `{{TASK_COMMIT}}`, which the recipes in `examples/` pin.
|
| 72 |
|
| 73 |
```sh
|
| 74 |
git lfs install
|
| 75 |
+
git clone --branch v3.6 https://huggingface.co/datasets/{{REPO}} ci-harbor
|
| 76 |
cd ci-harbor/adapter && uv sync --python 3.13 --locked --extra harbor --extra hub
|
| 77 |
uv pip install --python .venv/bin/python \
|
| 78 |
'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3'
|
|
|
|
| 123 |
- `adapter/README.md`: command reference, optional provider recipes, Podman, re-scoring saved runs.
|
| 124 |
- `adapter/RUNTIME.md`: the team service interface and task configuration.
|
| 125 |
- [CHANGELOG.md](CHANGELOG.md): release history.
|
| 126 |
+
- {{MIRROR}}
|
| 127 |
|
| 128 |
## Licenses and provenance
|
| 129 |
|
adapter/RUNTIME.md
CHANGED
|
@@ -39,7 +39,7 @@ seat's private prompt, checker rubric, or answer key is exposed.
|
|
| 39 |
|
| 40 |
`POST /reply` accepts `request_id`, `kind`, and `text` for a `message` or
|
| 41 |
`final_answer` request. A `tool` reply accepts `name` and an `arguments` object;
|
| 42 |
-
|
| 43 |
`input` for each call. Tool names must belong to the pending request's tools.
|
| 44 |
One accepted reply returns `{"accepted": true, "request_id": ID}`. An identical
|
| 45 |
retry returns the same acknowledgement; conflicting, stale, and out-of-phase
|
|
@@ -69,7 +69,7 @@ process group, with bounded escalation from TERM to KILL.
|
|
| 69 |
|
| 70 |
The envelope retains the complete upstream transcript after completion and
|
| 71 |
partial observations/actions after interruption. It also records identity,
|
| 72 |
-
configuration, lifecycle, and terminal reason. Runtime model
|
| 73 |
configuration is written before the episode starts, so abandonment and completed
|
| 74 |
runs retain the same configuration for aggregation. Per-trial loopback transport
|
| 75 |
ports are normalized in that configuration; the full transcript retains the
|
|
@@ -81,10 +81,11 @@ With `--taking-over-reader`, generated Taking-over manipulation tasks bake a
|
|
| 81 |
required `taking_over_reader_gate` policy into both team and verifier metadata.
|
| 82 |
The private worker runs the released Stanford Opus5.5/high/32000 reader and
|
| 83 |
original application rule before publishing a terminal result. A rejected
|
| 84 |
-
scripted stop
|
| 85 |
publishes the next request to the same still-live Pi session. Reader rationale
|
| 86 |
is never inserted into the public observation. Label-changing or unsupported
|
| 87 |
-
continuations remain held.
|
|
|
|
| 88 |
|
| 89 |
A finished required-reader task cannot fall back to the automatic checker when
|
| 90 |
its reader gate is missing, deferred or malformed. Fresh grading retains the
|
|
@@ -109,8 +110,12 @@ Required task configuration fields are `scenario_path`, `version`, `seed`,
|
|
| 109 |
| `initial_request_timeout_sec` | Optional first-request watchdog; disabled by default, or inherits an explicitly supplied request deadline. |
|
| 110 |
| `episode_timeout_sec` | Optional whole-service watchdog; disabled by default. |
|
| 111 |
| `finalize_timeout_sec` | Optional settling watchdog; disabled by default so final teammate/judge requests can finish. |
|
|
|
|
| 112 |
| `agent_configuration` | Real evaluated scaffold endpoint/settings metadata. |
|
| 113 |
| `execution_url` | Required isolated pytest worker URL for coding episodes. |
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
`CI_EVALUATED_MODEL` records the actual evaluated model name.
|
| 116 |
`CI_AGENT_CONFIGURATION` can supply the agent metadata as a JSON object. Keep
|
|
@@ -121,11 +126,33 @@ When `ANTHROPIC_WORKSPACE_ID` is set, live upstream Anthropic clients attach its
|
|
| 121 |
workspace header without changing model names or judge prompts. The workspace
|
| 122 |
identifier and generated dependency-lock hash are retained in configuration.
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
Coding episodes retain upstream file-tool ownership and history in the episode
|
| 125 |
process. Live pytest execution uses `RemotePytestRunner`; the service requires an
|
| 126 |
-
isolated execution URL. Arbitrary submitted code must
|
| 127 |
never execute in the credential-bearing team service.
|
| 128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
The service executable supports `--public-host`, `--public-port`, `--internal-port`, and
|
| 130 |
-
`--evidence-dir`. The private listener
|
| 131 |
always binds to loopback.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
`POST /reply` accepts `request_id`, `kind`, and `text` for a `message` or
|
| 41 |
`final_answer` request. A `tool` reply accepts `name` and an `arguments` object;
|
| 42 |
+
transport replay can provide a neutral `tool_calls` array with `id`, `name`, and
|
| 43 |
`input` for each call. Tool names must belong to the pending request's tools.
|
| 44 |
One accepted reply returns `{"accepted": true, "request_id": ID}`. An identical
|
| 45 |
retry returns the same acknowledgement; conflicting, stale, and out-of-phase
|
|
|
|
| 69 |
|
| 70 |
The envelope retains the complete upstream transcript after completion and
|
| 71 |
partial observations/actions after interruption. It also records identity,
|
| 72 |
+
configuration, fixture provenance, lifecycle, and terminal reason. Runtime model
|
| 73 |
configuration is written before the episode starts, so abandonment and completed
|
| 74 |
runs retain the same configuration for aggregation. Per-trial loopback transport
|
| 75 |
ports are normalized in that configuration; the full transcript retains the
|
|
|
|
| 81 |
required `taking_over_reader_gate` policy into both team and verifier metadata.
|
| 82 |
The private worker runs the released Stanford Opus5.5/high/32000 reader and
|
| 83 |
original application rule before publishing a terminal result. A rejected
|
| 84 |
+
scripted stop replays the original native prefix through `continue_from` and
|
| 85 |
publishes the next request to the same still-live Pi session. Reader rationale
|
| 86 |
is never inserted into the public observation. Label-changing or unsupported
|
| 87 |
+
continuations remain held. This is a prospective protocol; it does not recover
|
| 88 |
+
lost opaque state from old interrupted sessions.
|
| 89 |
|
| 90 |
A finished required-reader task cannot fall back to the automatic checker when
|
| 91 |
its reader gate is missing, deferred or malformed. Fresh grading retains the
|
|
|
|
| 110 |
| `initial_request_timeout_sec` | Optional first-request watchdog; disabled by default, or inherits an explicitly supplied request deadline. |
|
| 111 |
| `episode_timeout_sec` | Optional whole-service watchdog; disabled by default. |
|
| 112 |
| `finalize_timeout_sec` | Optional settling watchdog; disabled by default so final teammate/judge requests can finish. |
|
| 113 |
+
| `fixture` | Explicit boolean; default false. |
|
| 114 |
| `agent_configuration` | Real evaluated scaffold endpoint/settings metadata. |
|
| 115 |
| `execution_url` | Required isolated pytest worker URL for coding episodes. |
|
| 116 |
+
| `execution_tape` | Strict recorded pytest results, permitted only with `fixture: true`. |
|
| 117 |
+
| `replay_tape` | Private complete call tape for offline replay. |
|
| 118 |
+
| `replay_model` | Native evaluated model name in that tape; default `gemini-3.8-flash`. |
|
| 119 |
|
| 120 |
`CI_EVALUATED_MODEL` records the actual evaluated model name.
|
| 121 |
`CI_AGENT_CONFIGURATION` can supply the agent metadata as a JSON object. Keep
|
|
|
|
| 126 |
workspace header without changing model names or judge prompts. The workspace
|
| 127 |
identifier and generated dependency-lock hash are retained in configuration.
|
| 128 |
|
| 129 |
+
Offline replay validates every neutral model-call request against the tape.
|
| 130 |
+
Partners and judges receive their recorded results; the evaluated action still
|
| 131 |
+
crosses the real loopback SDK bridge and public reply API. Its text and tool
|
| 132 |
+
names/arguments must match before the original recorded result metadata is
|
| 133 |
+
restored for transcript comparison. A fixture tape always forces the exported
|
| 134 |
+
fixture marker, even if configuration incorrectly sets it false. Fixtures must
|
| 135 |
+
never enter evaluation scoring.
|
| 136 |
+
|
| 137 |
Coding episodes retain upstream file-tool ownership and history in the episode
|
| 138 |
process. Live pytest execution uses `RemotePytestRunner`; the service requires an
|
| 139 |
+
isolated execution URL unless running a declared execution-tape fixture. Arbitrary submitted code must
|
| 140 |
never execute in the credential-bearing team service.
|
| 141 |
|
| 142 |
+
For deterministic coding transport replay, a declared fixture can use an
|
| 143 |
+
execution tape previously recorded with the isolated worker. Workspace inputs,
|
| 144 |
+
pytest settings, and resulting workspace changes must match exactly; all entries
|
| 145 |
+
must be consumed. This avoids treating pytest's changing duration text as a
|
| 146 |
+
transport mismatch. Independent verifier execution still requires its sandbox.
|
| 147 |
+
|
| 148 |
The service executable supports `--public-host`, `--public-port`, `--internal-port`, and
|
| 149 |
+
`--evidence-dir` for isolated local fixture validation. The private listener
|
| 150 |
always binds to loopback.
|
| 151 |
+
|
| 152 |
+
Pi 1.5.0 needs the bundled `pi-google.js` extension for Google's compatible
|
| 153 |
+
endpoint. It removes Pi's unsupported `store` request field and carries Google's
|
| 154 |
+
original opaque thought signatures from raw streamed tool calls into later
|
| 155 |
+
assistant history. It neither invents signatures nor changes prompts, tools,
|
| 156 |
+
models or reasoning settings. The generated agent image installs the extension
|
| 157 |
+
in Pi's extension directory. Six Node checks cover chunked calls, existing
|
| 158 |
+
signatures, restart persistence, payload immutability and unrelated models.
|
adapter/VALIDATION.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
| 1 |
+
# Release validation
|
| 2 |
|
| 3 |
+
The release inventory binds every staged task, source lock and curated adapter file. Only explicitly supplied reports are included under the dataset's reports/ directory. Local synthetic-provider checks establish runtime behavior, not model capability.
|
| 4 |
+
|
| 5 |
+
A report validates only its explicitly bound source and runtime. Do not treat a development fixture, this documentation, or a file inventory as proof of model capability or successful execution of a later uploaded revision. Revalidate the actual staged snapshot before publishing.
|
| 6 |
+
|
| 7 |
+
Development tests, research controllers and credentials are deliberately excluded; use the development checkout for the full regression suite.
|
adapter/adapter-release.json
CHANGED
|
@@ -19,8 +19,8 @@
|
|
| 19 |
"src/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 20 |
"src/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 21 |
"src/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 22 |
-
"src/collab_harbor/model_gateway.py": "
|
| 23 |
-
"src/collab_harbor/model_gateway_setup.py": "
|
| 24 |
"src/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 25 |
"src/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 26 |
"src/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -30,13 +30,13 @@
|
|
| 30 |
"src/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 31 |
"src/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 32 |
"src/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 33 |
-
"src/collab_harbor/run_benchmark.py": "
|
| 34 |
"src/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 35 |
"src/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 36 |
"src/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 37 |
"src/collab_harbor/service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
| 38 |
"src/collab_harbor/sources.py": "eb24a9c8271ce298bcd583ecc2bdf54c96df94fea7450d537c208754a5082315",
|
| 39 |
-
"src/collab_harbor/sweep.py": "
|
| 40 |
"src/collab_harbor/takeover_grader.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
| 41 |
"src/collab_harbor/takeover_verdicts.py": "769992e619cb6640e8bb5231f82da178ff016501b6105687bb0397ad80554a17",
|
| 42 |
"src/collab_harbor/vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
|
|
|
| 19 |
"src/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 20 |
"src/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 21 |
"src/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 22 |
+
"src/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 23 |
+
"src/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 24 |
"src/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 25 |
"src/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 26 |
"src/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 30 |
"src/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 31 |
"src/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 32 |
"src/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 33 |
+
"src/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 34 |
"src/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 35 |
"src/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 36 |
"src/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 37 |
"src/collab_harbor/service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
| 38 |
"src/collab_harbor/sources.py": "eb24a9c8271ce298bcd583ecc2bdf54c96df94fea7450d537c208754a5082315",
|
| 39 |
+
"src/collab_harbor/sweep.py": "b8b403cae62d69a6003b1d642e8dfec11627c794cf66b0009097d3a8994b1aa7",
|
| 40 |
"src/collab_harbor/takeover_grader.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
| 41 |
"src/collab_harbor/takeover_verdicts.py": "769992e619cb6640e8bb5231f82da178ff016501b6105687bb0397ad80554a17",
|
| 42 |
"src/collab_harbor/vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
adapter/src/collab_harbor/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|
adapter/src/collab_harbor/model_gateway_setup.py
CHANGED
|
@@ -50,6 +50,7 @@ ENTRYPOINT ["python", "-B", "/app/model_gateway.py"]
|
|
| 50 |
"environment": {
|
| 51 |
"CI_MODEL_UPSTREAM": "${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}",
|
| 52 |
"CI_MODEL_HEADERS": "${CI_MODEL_HEADERS:-}",
|
|
|
|
| 53 |
"CI_MODEL_NAME": "${CI_EVALUATED_MODEL:-}",
|
| 54 |
},
|
| 55 |
"read_only": True,
|
|
@@ -78,7 +79,8 @@ ENTRYPOINT ["python", "-B", "/app/model_gateway.py"]
|
|
| 78 |
"paths": ["/v1/chat/completions", "/v1/responses", "/v1/messages"],
|
| 79 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 80 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 81 |
-
"request_change": "remove only top-level store, and only for Google's endpoint"
|
|
|
|
| 82 |
"provider_library_history_tools_caps_changes": False,
|
| 83 |
"credentials_owned_by_sidecar": False,
|
| 84 |
"agent_phase_allowed_hosts": ["team", "model-compat"],
|
|
|
|
| 50 |
"environment": {
|
| 51 |
"CI_MODEL_UPSTREAM": "${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}",
|
| 52 |
"CI_MODEL_HEADERS": "${CI_MODEL_HEADERS:-}",
|
| 53 |
+
"CI_MODEL_BODY": "${CI_MODEL_BODY:-}",
|
| 54 |
"CI_MODEL_NAME": "${CI_EVALUATED_MODEL:-}",
|
| 55 |
},
|
| 56 |
"read_only": True,
|
|
|
|
| 79 |
"paths": ["/v1/chat/completions", "/v1/responses", "/v1/messages"],
|
| 80 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 81 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 82 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's "
|
| 83 |
+
"CI_MODEL_BODY provider options when set",
|
| 84 |
"provider_library_history_tools_caps_changes": False,
|
| 85 |
"credentials_owned_by_sidecar": False,
|
| 86 |
"agent_phase_allowed_hosts": ["team", "model-compat"],
|
adapter/src/collab_harbor/run_benchmark.py
CHANGED
|
@@ -200,6 +200,14 @@ def gateway_routing_headers(route, environ):
|
|
| 200 |
return headers
|
| 201 |
|
| 202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
def main():
|
| 204 |
from flock.launch import run_experiment
|
| 205 |
|
|
@@ -214,8 +222,10 @@ def main():
|
|
| 214 |
configuration["original_roles"] = original_role_configuration(os.environ)
|
| 215 |
route = model_route(config, evaluated, os.environ)
|
| 216 |
gateway_headers = gateway_routing_headers(route, os.environ)
|
|
|
|
| 217 |
configuration["model_gateway"] = {
|
| 218 |
"routing_headers": gateway_headers,
|
|
|
|
| 219 |
"provider": route["provider"],
|
| 220 |
"upstream": route["upstream"],
|
| 221 |
"private_readout_api": route["readout_api"],
|
|
@@ -232,6 +242,7 @@ def main():
|
|
| 232 |
# Read by docker compose interpolation for model-compat (upstream) and team (readout).
|
| 233 |
os.environ["CI_MODEL_UPSTREAM"] = route["upstream"]
|
| 234 |
os.environ["CI_MODEL_HEADERS"] = json.dumps(gateway_headers)
|
|
|
|
| 235 |
os.environ["CI_PRIVATE_READOUT_API"] = route["readout_api"]
|
| 236 |
os.environ["CI_PRIVATE_READOUT_BASE_URL"] = GATEWAY + "/v1"
|
| 237 |
os.environ["CI_PRIVATE_READOUT_EFFORT"] = route["effort"]
|
|
|
|
| 200 |
return headers
|
| 201 |
|
| 202 |
|
| 203 |
+
def gateway_request_fields(environ):
|
| 204 |
+
"""Operator-chosen provider request options for the evaluated model's calls (CI_MODEL_BODY), validated; e.g.
|
| 205 |
+
{"reasoning": {"enabled": false}} runs a model with thinking off, for Pi and the private final answer alike."""
|
| 206 |
+
from collab_harbor.model_gateway import request_defaults
|
| 207 |
+
|
| 208 |
+
return request_defaults(environ.get("CI_MODEL_BODY"))
|
| 209 |
+
|
| 210 |
+
|
| 211 |
def main():
|
| 212 |
from flock.launch import run_experiment
|
| 213 |
|
|
|
|
| 222 |
configuration["original_roles"] = original_role_configuration(os.environ)
|
| 223 |
route = model_route(config, evaluated, os.environ)
|
| 224 |
gateway_headers = gateway_routing_headers(route, os.environ)
|
| 225 |
+
gateway_fields = gateway_request_fields(os.environ)
|
| 226 |
configuration["model_gateway"] = {
|
| 227 |
"routing_headers": gateway_headers,
|
| 228 |
+
"request_fields": gateway_fields,
|
| 229 |
"provider": route["provider"],
|
| 230 |
"upstream": route["upstream"],
|
| 231 |
"private_readout_api": route["readout_api"],
|
|
|
|
| 242 |
# Read by docker compose interpolation for model-compat (upstream) and team (readout).
|
| 243 |
os.environ["CI_MODEL_UPSTREAM"] = route["upstream"]
|
| 244 |
os.environ["CI_MODEL_HEADERS"] = json.dumps(gateway_headers)
|
| 245 |
+
os.environ["CI_MODEL_BODY"] = json.dumps(gateway_fields)
|
| 246 |
os.environ["CI_PRIVATE_READOUT_API"] = route["readout_api"]
|
| 247 |
os.environ["CI_PRIVATE_READOUT_BASE_URL"] = GATEWAY + "/v1"
|
| 248 |
os.environ["CI_PRIVATE_READOUT_EFFORT"] = route["effort"]
|
adapter/src/collab_harbor/sweep.py
CHANGED
|
@@ -199,6 +199,7 @@ class Sweep:
|
|
| 199 |
"ANTHROPIC_WORKSPACE_ID",
|
| 200 |
"CI_MODEL_PROVIDER",
|
| 201 |
"CI_MODEL_UPSTREAM",
|
|
|
|
| 202 |
)
|
| 203 |
}
|
| 204 |
self.binding = digest(
|
|
|
|
| 199 |
"ANTHROPIC_WORKSPACE_ID",
|
| 200 |
"CI_MODEL_PROVIDER",
|
| 201 |
"CI_MODEL_UPSTREAM",
|
| 202 |
+
"CI_MODEL_BODY",
|
| 203 |
)
|
| 204 |
}
|
| 205 |
self.binding = digest(
|
examples/claude-opus-full-pi.yaml
CHANGED
|
@@ -10,8 +10,8 @@ inference:
|
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
-
repo: https://huggingface.co/datasets/
|
| 14 |
-
revision:
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
|
|
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 14 |
+
revision: {{TASK_COMMIT}}
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
examples/claude-opus-messages-full-pi.yaml
CHANGED
|
@@ -10,8 +10,8 @@ inference:
|
|
| 10 |
api_format: anthropic_messages
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
-
repo: https://huggingface.co/datasets/
|
| 14 |
-
revision:
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
|
|
|
| 10 |
api_format: anthropic_messages
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 14 |
+
revision: {{TASK_COMMIT}}
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
examples/deepseek-hf-full-pi.yaml
CHANGED
|
@@ -10,8 +10,8 @@ inference:
|
|
| 10 |
api_key_env: HF_INFERENCE_TOKEN
|
| 11 |
api_format: openai_chat_completions
|
| 12 |
task:
|
| 13 |
-
repo: https://huggingface.co/datasets/
|
| 14 |
-
revision:
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
|
|
|
| 10 |
api_key_env: HF_INFERENCE_TOKEN
|
| 11 |
api_format: openai_chat_completions
|
| 12 |
task:
|
| 13 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 14 |
+
revision: {{TASK_COMMIT}}
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
examples/endpoint-full-pi.yaml
CHANGED
|
@@ -9,8 +9,8 @@ inference:
|
|
| 9 |
api_key_env: HF_TOKEN
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
task:
|
| 12 |
-
repo: https://huggingface.co/datasets/
|
| 13 |
-
revision:
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
|
|
|
| 9 |
api_key_env: HF_TOKEN
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
task:
|
| 12 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 13 |
+
revision: {{TASK_COMMIT}}
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
examples/gemini-full-pi.yaml
CHANGED
|
@@ -10,8 +10,8 @@ inference:
|
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
-
repo: https://huggingface.co/datasets/
|
| 14 |
-
revision:
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
|
|
|
| 10 |
api_format: openai_chat_completions
|
| 11 |
reasoning_effort: low
|
| 12 |
task:
|
| 13 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 14 |
+
revision: {{TASK_COMMIT}}
|
| 15 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 16 |
agents:
|
| 17 |
count: 1
|
examples/gpt-full-pi.yaml
CHANGED
|
@@ -9,8 +9,8 @@ inference:
|
|
| 9 |
api_format: openai_responses
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
-
repo: https://huggingface.co/datasets/
|
| 13 |
-
revision:
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
|
|
|
| 9 |
api_format: openai_responses
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
+
repo: https://huggingface.co/datasets/{{REPO}}
|
| 13 |
+
revision: {{TASK_COMMIT}}
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
inventory.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/docker-compose.yaml
CHANGED
|
@@ -58,6 +58,7 @@ services:
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
|
|
|
| 61 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 62 |
read_only: true
|
| 63 |
cap_drop:
|
|
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
| 61 |
+
CI_MODEL_BODY: ${CI_MODEL_BODY:-}
|
| 62 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 63 |
read_only: true
|
| 64 |
cap_drop:
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/compatibility.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
-
"request_change": "remove only top-level store, and only for Google's endpoint",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's CI_MODEL_BODY provider options when set",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/task.json
CHANGED
|
@@ -63,8 +63,8 @@
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
-
"model_gateway.py": "
|
| 67 |
-
"model_gateway_setup.py": "
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
-
"run_benchmark.py": "
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
-
"sha256": "
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
@@ -103,8 +103,8 @@
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
-
"model_gateway.py": "
|
| 107 |
-
"model_gateway_setup.py": "
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
-
"run_benchmark.py": "
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -124,7 +124,7 @@
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
-
"sha256": "
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
@@ -250,34 +250,34 @@
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
-
"runtime.json": "
|
| 254 |
-
"runtime.tar.gz": "
|
| 255 |
},
|
| 256 |
-
"sha256": "
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
-
"runtime.json": "
|
| 263 |
-
"runtime.tar.gz": "
|
| 264 |
},
|
| 265 |
-
"sha256": "
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
-
"runtime-distribution.json": "
|
| 271 |
},
|
| 272 |
-
"sha256": "
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
-
"docker-compose.yaml": "
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
-
"sha256": "
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
@@ -315,10 +315,10 @@
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
-
"sha256": "
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
-
"archive_sha256": "
|
| 323 |
}
|
| 324 |
}
|
|
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 67 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 107 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 254 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 255 |
},
|
| 256 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 263 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 264 |
},
|
| 265 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
+
"runtime-distribution.json": "de0dd1a339189ac66b31f4a91d6c6daad51806711098afba23755a895a7140a0"
|
| 271 |
},
|
| 272 |
+
"sha256": "534c3154cb7ee8cbecde2b21190aa39fcdab24c960e187f45b07ae64b9a3612b"
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
+
"docker-compose.yaml": "1b4c8a76361224a8980f2940465f1c58234f1dec11764af07bc218cbaa69ad22",
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
+
"sha256": "47271302f35d45b19da55ea81c4efb20c96969cd54863d0418c4ed28d8c885ba"
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
+
"sha256": "e7bd17cf87235f6feb9861ea769afb831a7b147869202d06722b318b9f77bd63"
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 323 |
}
|
| 324 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/tests/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/tests/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/docker-compose.yaml
CHANGED
|
@@ -58,6 +58,7 @@ services:
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
|
|
|
| 61 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 62 |
read_only: true
|
| 63 |
cap_drop:
|
|
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
| 61 |
+
CI_MODEL_BODY: ${CI_MODEL_BODY:-}
|
| 62 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 63 |
read_only: true
|
| 64 |
cap_drop:
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/compatibility.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
-
"request_change": "remove only top-level store, and only for Google's endpoint",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's CI_MODEL_BODY provider options when set",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/task.json
CHANGED
|
@@ -63,8 +63,8 @@
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
-
"model_gateway.py": "
|
| 67 |
-
"model_gateway_setup.py": "
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
-
"run_benchmark.py": "
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
-
"sha256": "
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
@@ -103,8 +103,8 @@
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
-
"model_gateway.py": "
|
| 107 |
-
"model_gateway_setup.py": "
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
-
"run_benchmark.py": "
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -124,7 +124,7 @@
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
-
"sha256": "
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
@@ -250,34 +250,34 @@
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
-
"runtime.json": "
|
| 254 |
-
"runtime.tar.gz": "
|
| 255 |
},
|
| 256 |
-
"sha256": "
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
-
"runtime.json": "
|
| 263 |
-
"runtime.tar.gz": "
|
| 264 |
},
|
| 265 |
-
"sha256": "
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
-
"runtime-distribution.json": "
|
| 271 |
},
|
| 272 |
-
"sha256": "
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
-
"docker-compose.yaml": "
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
-
"sha256": "
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
@@ -315,10 +315,10 @@
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
-
"sha256": "
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
-
"archive_sha256": "
|
| 323 |
}
|
| 324 |
}
|
|
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 67 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 107 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 254 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 255 |
},
|
| 256 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 263 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 264 |
},
|
| 265 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
+
"runtime-distribution.json": "de0dd1a339189ac66b31f4a91d6c6daad51806711098afba23755a895a7140a0"
|
| 271 |
},
|
| 272 |
+
"sha256": "534c3154cb7ee8cbecde2b21190aa39fcdab24c960e187f45b07ae64b9a3612b"
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
+
"docker-compose.yaml": "b70bda475a427b34cf109af9e17d71b08802ea95a6f44cb7d46b04294241bdce",
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
+
"sha256": "e4db2f72851160e7973a3985a6c96102516587b5d74031cdd6bbefda5b2ec1ec"
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
+
"sha256": "826ed1fbb4efff0ede37f10bf9934d6f30c6f9f72a5d039def03809703be7ebe"
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 323 |
}
|
| 324 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/tests/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/tests/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/docker-compose.yaml
CHANGED
|
@@ -58,6 +58,7 @@ services:
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
|
|
|
| 61 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 62 |
read_only: true
|
| 63 |
cap_drop:
|
|
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
| 61 |
+
CI_MODEL_BODY: ${CI_MODEL_BODY:-}
|
| 62 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 63 |
read_only: true
|
| 64 |
cap_drop:
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/compatibility.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
-
"request_change": "remove only top-level store, and only for Google's endpoint",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's CI_MODEL_BODY provider options when set",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/task.json
CHANGED
|
@@ -63,8 +63,8 @@
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
-
"model_gateway.py": "
|
| 67 |
-
"model_gateway_setup.py": "
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
-
"run_benchmark.py": "
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
-
"sha256": "
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
@@ -103,8 +103,8 @@
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
-
"model_gateway.py": "
|
| 107 |
-
"model_gateway_setup.py": "
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
-
"run_benchmark.py": "
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -124,7 +124,7 @@
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
-
"sha256": "
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
@@ -250,34 +250,34 @@
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
-
"runtime.json": "
|
| 254 |
-
"runtime.tar.gz": "
|
| 255 |
},
|
| 256 |
-
"sha256": "
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
-
"runtime.json": "
|
| 263 |
-
"runtime.tar.gz": "
|
| 264 |
},
|
| 265 |
-
"sha256": "
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
-
"runtime-distribution.json": "
|
| 271 |
},
|
| 272 |
-
"sha256": "
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
-
"docker-compose.yaml": "
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
-
"sha256": "
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
@@ -315,10 +315,10 @@
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
-
"sha256": "
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
-
"archive_sha256": "
|
| 323 |
}
|
| 324 |
}
|
|
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 67 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 107 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 254 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 255 |
},
|
| 256 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 263 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 264 |
},
|
| 265 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
+
"runtime-distribution.json": "de0dd1a339189ac66b31f4a91d6c6daad51806711098afba23755a895a7140a0"
|
| 271 |
},
|
| 272 |
+
"sha256": "534c3154cb7ee8cbecde2b21190aa39fcdab24c960e187f45b07ae64b9a3612b"
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
+
"docker-compose.yaml": "4466bd207adbbca31de2fb6a739c52a52df9a85910abd1269253ff7c47ecf8f9",
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
+
"sha256": "3a8b1e130d37f08729eac9c019388032dadc4dc33df8908a475c244a92b61ee1"
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
+
"sha256": "c78a855d828042055c7a355010abcacc0dff2ad9970dac28f519304a29f45e7e"
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 323 |
}
|
| 324 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/tests/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/tests/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/docker-compose.yaml
CHANGED
|
@@ -58,6 +58,7 @@ services:
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
|
|
|
| 61 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 62 |
read_only: true
|
| 63 |
cap_drop:
|
|
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
| 61 |
+
CI_MODEL_BODY: ${CI_MODEL_BODY:-}
|
| 62 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 63 |
read_only: true
|
| 64 |
cap_drop:
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/compatibility.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
-
"request_change": "remove only top-level store, and only for Google's endpoint",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's CI_MODEL_BODY provider options when set",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/task.json
CHANGED
|
@@ -63,8 +63,8 @@
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
-
"model_gateway.py": "
|
| 67 |
-
"model_gateway_setup.py": "
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -74,7 +74,7 @@
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
-
"run_benchmark.py": "
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -84,7 +84,7 @@
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
-
"sha256": "
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
@@ -103,8 +103,8 @@
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
-
"model_gateway.py": "
|
| 107 |
-
"model_gateway_setup.py": "
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
-
"run_benchmark.py": "
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
@@ -124,7 +124,7 @@
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
-
"sha256": "
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
@@ -250,34 +250,34 @@
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
-
"runtime.json": "
|
| 254 |
-
"runtime.tar.gz": "
|
| 255 |
},
|
| 256 |
-
"sha256": "
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
-
"runtime.json": "
|
| 263 |
-
"runtime.tar.gz": "
|
| 264 |
},
|
| 265 |
-
"sha256": "
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
-
"runtime-distribution.json": "
|
| 271 |
},
|
| 272 |
-
"sha256": "
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
-
"docker-compose.yaml": "
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
-
"sha256": "
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
@@ -315,10 +315,10 @@
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
-
"sha256": "
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
-
"archive_sha256": "
|
| 323 |
}
|
| 324 |
}
|
|
|
|
| 63 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 64 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 65 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 66 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 67 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 68 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 69 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 70 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 74 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 75 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 76 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 77 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 78 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 79 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 80 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 84 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 85 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 86 |
},
|
| 87 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 88 |
},
|
| 89 |
"verifier_adapter": {
|
| 90 |
"schema_version": 1,
|
|
|
|
| 103 |
"flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 104 |
"generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 105 |
"grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 106 |
+
"model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 107 |
+
"model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 108 |
"pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 109 |
"pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 110 |
"pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 114 |
"provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 115 |
"pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 116 |
"replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 117 |
+
"run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 118 |
"runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 119 |
"scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
| 120 |
"service.py": "872a4505aefb71657a2279e33e5facbe8ec85f559a34168c35e269e6d8c69fa3",
|
|
|
|
| 124 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 125 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 126 |
},
|
| 127 |
+
"sha256": "eda9fc7b0707cad16ad8482a1a7a95aaaa49ec8a065731de2072a2a9f8b69c45"
|
| 128 |
},
|
| 129 |
"team_upstream": {
|
| 130 |
"schema_version": 1,
|
|
|
|
| 250 |
"schema_version": 1,
|
| 251 |
"files": {
|
| 252 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 253 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 254 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 255 |
},
|
| 256 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 257 |
},
|
| 258 |
"verifier_runtime_distribution": {
|
| 259 |
"schema_version": 1,
|
| 260 |
"files": {
|
| 261 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 262 |
+
"runtime.json": "23544b9ea144a4019950b176f13861485e99d7a5f660bbeab31c45f87740ec5a",
|
| 263 |
+
"runtime.tar.gz": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 264 |
},
|
| 265 |
+
"sha256": "c024c8c4323a6fcccb7d73a827cf17cab116d0dd24102453fba3dbc15231f45c"
|
| 266 |
},
|
| 267 |
"runtime_distribution": {
|
| 268 |
"schema_version": 1,
|
| 269 |
"files": {
|
| 270 |
+
"runtime-distribution.json": "de0dd1a339189ac66b31f4a91d6c6daad51806711098afba23755a895a7140a0"
|
| 271 |
},
|
| 272 |
+
"sha256": "534c3154cb7ee8cbecde2b21190aa39fcdab24c960e187f45b07ae64b9a3612b"
|
| 273 |
},
|
| 274 |
"environment_policy": {
|
| 275 |
"schema_version": 1,
|
| 276 |
"files": {
|
| 277 |
+
"docker-compose.yaml": "a956ad85d627de20fbaca5c79d30da3b874e12cc93a1ac403f36a3afd15d686d",
|
| 278 |
"task-runtime-policy.json": "d328e7b0680f48afae075f2d7a12fcff99973bc77ceafba160217c8c117fa396"
|
| 279 |
},
|
| 280 |
+
"sha256": "4e4e6544838d803350f6f201cda38b29b8c267cf87ecff32b9a3d5a61e6e48d7"
|
| 281 |
},
|
| 282 |
"team_build": {
|
| 283 |
"schema_version": 1,
|
|
|
|
| 315 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 316 |
}
|
| 317 |
},
|
| 318 |
+
"sha256": "c3d73dad75d8428d362bc4b03cc0029f75123cd4f1ef06005317647c4fc4fa48"
|
| 319 |
},
|
| 320 |
"runtime_distribution": {
|
| 321 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 322 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7"
|
| 323 |
}
|
| 324 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/tests/runtime.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"archive_sha256": "
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
@@ -16,8 +16,8 @@
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
-
"adapter/collab_harbor/model_gateway.py": "
|
| 20 |
-
"adapter/collab_harbor/model_gateway_setup.py": "
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
@@ -27,7 +27,7 @@
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
-
"adapter/collab_harbor/run_benchmark.py": "
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
@@ -100,6 +100,6 @@
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
-
"uncompressed_bytes":
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 16 |
"adapter/collab_harbor/flock_results.py": "ff1b18275c9c98baa2c40ae554c5bc61a0e902061d14066e7dccd82f3f8f0de5",
|
| 17 |
"adapter/collab_harbor/generate.py": "0f5fc0caebdb9273c8332327d98861149bf2bfb24faccb5738d315601eab39b9",
|
| 18 |
"adapter/collab_harbor/grade.py": "6f335e5bea88732ffb99642f9a7f0e070e3ae3ab5cf02f2fad9ef1460e8a1fe3",
|
| 19 |
+
"adapter/collab_harbor/model_gateway.py": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06",
|
| 20 |
+
"adapter/collab_harbor/model_gateway_setup.py": "0ccc3fc521e9b0df97830f874680d63ec9d7bec98f75acf4cbec3f2b862bc2fb",
|
| 21 |
"adapter/collab_harbor/pi-bash-timeout.js": "aeba75d3703c9f1e5be548a7153c3a472cc1210931aa98ddc914310901ba689a",
|
| 22 |
"adapter/collab_harbor/pi-capture.js": "0ed9179bd9d11917f923a186e047812b82ec2d35efa085031fbac64551364be0",
|
| 23 |
"adapter/collab_harbor/pi-google.js": "76bba2d5107bc25062cd5f17a8cb8de8630a35ab3cec6ec395068a3fb5b29159",
|
|
|
|
| 27 |
"adapter/collab_harbor/provenance.py": "784cb670ed8abb950df81a12c71f68c2f88299956b27b0ffd094befa133637ca",
|
| 28 |
"adapter/collab_harbor/pytest_child.py": "7d2cb2abddd752cce2d938f2d8ab1a7bfe0761fa9f9c5490053bc0252ab04f61",
|
| 29 |
"adapter/collab_harbor/replay.py": "537f256b380c46165f486a1f3749a7d9749391c0afe8326e6f3a8b441f45a05c",
|
| 30 |
+
"adapter/collab_harbor/run_benchmark.py": "e856545f83008592f71be9316b3fbee91f1c2d274d286a11af62bb8394c5c340",
|
| 31 |
"adapter/collab_harbor/runtime-files.json": "2c91e60ab99be36ae8b28cd1aaa23a2b3b5be4193287f787507f8b3fa7a40726",
|
| 32 |
"adapter/collab_harbor/runtime-requirements.lock": "dee41783bcc20ef627c1f64df7e1320de9765e67df948079697d206962628fa2",
|
| 33 |
"adapter/collab_harbor/scoring.py": "4ad24fa25313a95f53987c75c4b8aa06a6d88a1dddcdbe02807954bdb04ac630",
|
|
|
|
| 100 |
},
|
| 101 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 102 |
"schema_version": 1,
|
| 103 |
+
"uncompressed_bytes": 1477982,
|
| 104 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 105 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/tests/runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f21cf74150af688884c6f26ed379b402ac1d03fcdaa1ffefca1af6d77a3ccbd7
|
| 3 |
+
size 394580
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/docker-compose.yaml
CHANGED
|
@@ -58,6 +58,7 @@ services:
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
|
|
|
| 61 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 62 |
read_only: true
|
| 63 |
cap_drop:
|
|
|
|
| 58 |
environment:
|
| 59 |
CI_MODEL_UPSTREAM: ${CI_MODEL_UPSTREAM:-https://generativelanguage.googleapis.com/v1beta/openai}
|
| 60 |
CI_MODEL_HEADERS: ${CI_MODEL_HEADERS:-}
|
| 61 |
+
CI_MODEL_BODY: ${CI_MODEL_BODY:-}
|
| 62 |
CI_MODEL_NAME: ${CI_EVALUATED_MODEL:-}
|
| 63 |
read_only: true
|
| 64 |
cap_drop:
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/compatibility.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
-
"request_change": "remove only top-level store, and only for Google's endpoint",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 9 |
],
|
| 10 |
"stock_flock_base_url": "http://model-compat:8003/v1",
|
| 11 |
"upstream": "CI_MODEL_UPSTREAM, default https://generativelanguage.googleapis.com/v1beta/openai",
|
| 12 |
+
"request_change": "remove only top-level store, and only for Google's endpoint; add the operator's CI_MODEL_BODY provider options when set",
|
| 13 |
"provider_library_history_tools_caps_changes": false,
|
| 14 |
"credentials_owned_by_sidecar": false,
|
| 15 |
"agent_phase_allowed_hosts": [
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "4a1ea2eecbe66ad9f882a8174ad56d1d0a283de16d9aede6284a9f487fd06e06"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/model_gateway.py
CHANGED
|
@@ -26,6 +26,10 @@ unchanged except as noted, to one configured upstream:
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 31 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
@@ -163,6 +167,26 @@ def routing_headers(value):
|
|
| 163 |
return {k.lower(): v for k, v in headers.items()}
|
| 164 |
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 167 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 168 |
raise ValueError("A JSON request with a model name is required")
|
|
@@ -182,9 +206,10 @@ def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", mode
|
|
| 182 |
|
| 183 |
|
| 184 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 185 |
-
model=None):
|
| 186 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 187 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
|
|
|
| 188 |
base_path = parsed.path.rstrip("/")
|
| 189 |
lock = threading.Lock()
|
| 190 |
|
|
@@ -218,7 +243,7 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 218 |
if not 0 < length <= MAX_BODY:
|
| 219 |
raise ValueError("Request body size out of bounds")
|
| 220 |
incoming = json.loads(self.rfile.read(length))
|
| 221 |
-
outgoing = compatible_body(incoming, upstream, path=route, model=model)
|
| 222 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 223 |
except (ValueError, TypeError):
|
| 224 |
self.send_error(400, "Unsupported model gateway request")
|
|
@@ -373,7 +398,8 @@ def main():
|
|
| 373 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 374 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 375 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 376 |
-
model=os.environ.get("CI_MODEL_NAME") or None
|
|
|
|
| 377 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 378 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 379 |
owned.serve_forever()
|
|
|
|
| 26 |
``openai-project`` and ``x-hf-bill-to`` are accepted (an unscoped Anthropic key
|
| 27 |
needs the first). ``x-hf-bill-to`` (Hugging Face org billing) is operator-only:
|
| 28 |
a caller's own copy is removed and only the configured value is sent.
|
| 29 |
+
* ``CI_MODEL_BODY`` (JSON object) adds operator-chosen provider request options to
|
| 30 |
+
every evaluated-model call, Pi's and the private final answer's alike, e.g.
|
| 31 |
+
``{"reasoning": {"enabled": false}}`` to run a model with thinking off. Operator
|
| 32 |
+
values win; the model, conversation, tools and streaming cannot be set this way.
|
| 33 |
|
| 34 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 35 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
|
|
|
| 167 |
return {k.lower(): v for k, v in headers.items()}
|
| 168 |
|
| 169 |
|
| 170 |
+
# Fields a CI_MODEL_BODY default may never set: what the agent sends, what it may call, how the reply is delivered,
|
| 171 |
+
# and the output budgets (Pi's and Stanford's private final-answer budgets stay exactly as their callers set them).
|
| 172 |
+
PROTECTED_BODY_FIELDS = {"model", "messages", "input", "system", "instructions", "tools", "tool_choice", "functions",
|
| 173 |
+
"function_call", "stream", "stream_options", "previous_response_id", "conversation",
|
| 174 |
+
"max_tokens", "max_completion_tokens", "max_output_tokens"}
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
def request_defaults(value):
|
| 178 |
+
"""Parse CI_MODEL_BODY: a JSON object of provider request options the operator adds to every evaluated-model call,
|
| 179 |
+
e.g. {"reasoning": {"enabled": false}} to run a model with thinking off. Operator values win over the caller's;
|
| 180 |
+
the conversation, tools, model and streaming are never touched, and nothing here can make the provider fetch
|
| 181 |
+
remote content or run tools."""
|
| 182 |
+
fields = json.loads(value or "{}")
|
| 183 |
+
if (not isinstance(fields, dict) or any(not isinstance(k, str) or not k for k in fields)
|
| 184 |
+
or PROTECTED_BODY_FIELDS & set(fields) or SERVER_SIDE_FIELDS & set(fields) or remote_reference(fields)):
|
| 185 |
+
raise ValueError("CI_MODEL_BODY must be a JSON object of provider options; it cannot set "
|
| 186 |
+
f"{sorted(PROTECTED_BODY_FIELDS | SERVER_SIDE_FIELDS)} or remote references")
|
| 187 |
+
return fields
|
| 188 |
+
|
| 189 |
+
|
| 190 |
def compatible_body(value, upstream=GOOGLE, *, path="/v1/chat/completions", model=None):
|
| 191 |
if not isinstance(value, dict) or not isinstance(value.get("model"), str) or not value["model"]:
|
| 192 |
raise ValueError("A JSON request with a model name is required")
|
|
|
|
| 206 |
|
| 207 |
|
| 208 |
def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=None, extra_headers=None,
|
| 209 |
+
model=None, extra_body=None):
|
| 210 |
parsed = validate_upstream(upstream, fixture=fixture)
|
| 211 |
extra_headers = routing_headers(json.dumps(extra_headers or {}))
|
| 212 |
+
extra_body = request_defaults(json.dumps(extra_body or {}))
|
| 213 |
base_path = parsed.path.rstrip("/")
|
| 214 |
lock = threading.Lock()
|
| 215 |
|
|
|
|
| 243 |
if not 0 < length <= MAX_BODY:
|
| 244 |
raise ValueError("Request body size out of bounds")
|
| 245 |
incoming = json.loads(self.rfile.read(length))
|
| 246 |
+
outgoing = {**compatible_body(incoming, upstream, path=route, model=model), **extra_body}
|
| 247 |
payload = json.dumps(outgoing, ensure_ascii=False, allow_nan=False).encode()
|
| 248 |
except (ValueError, TypeError):
|
| 249 |
self.send_error(400, "Unsupported model gateway request")
|
|
|
|
| 398 |
upstream = args.fixture_upstream or os.environ.get("CI_MODEL_UPSTREAM") or GOOGLE
|
| 399 |
owned = server(upstream, host=args.host, port=args.port, fixture=bool(args.fixture_upstream),
|
| 400 |
extra_headers=routing_headers(os.environ.get("CI_MODEL_HEADERS")),
|
| 401 |
+
model=os.environ.get("CI_MODEL_NAME") or None,
|
| 402 |
+
extra_body=request_defaults(os.environ.get("CI_MODEL_BODY")))
|
| 403 |
print(json.dumps({"ready": True, "port": owned.server_port, "fixture": bool(args.fixture_upstream),
|
| 404 |
"upstream_host": urlsplit(upstream).hostname}), flush=True)
|
| 405 |
owned.serve_forever()
|