Release v3.5 (copy of misc-org/collaborative-intelligence-harbor)
Browse files- CHANGELOG.md +11 -1
- README.md +6 -7
- adapter/README.md +7 -2
- adapter/RUNTIME.md +1 -1
- adapter/adapter-release.json +1 -1
- adapter/src/collab_harbor/google_compat.py +17 -3
- examples/claude-opus-full-pi.yaml +1 -1
- examples/endpoint-full-pi.yaml +1 -1
- examples/gemini-full-pi.yaml +1 -1
- examples/gpt-full-pi.yaml +1 -1
- inventory.json +0 -0
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/compatibility.json +1 -1
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/google_compat.py +17 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/runtime.json +3 -3
- 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 +14 -14
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/tests/runtime.json +3 -3
- 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/model-compat/compatibility.json +1 -1
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/google_compat.py +17 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/runtime.json +3 -3
- 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 +14 -14
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/tests/runtime.json +3 -3
- 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/model-compat/compatibility.json +1 -1
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/google_compat.py +17 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/runtime.json +3 -3
- 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 +14 -14
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/tests/runtime.json +3 -3
- 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/model-compat/compatibility.json +1 -1
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/google_compat.py +17 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/runtime.json +3 -3
- 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 +14 -14
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/tests/runtime.json +3 -3
- 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/model-compat/compatibility.json +1 -1
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/google_compat.py +17 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/team/runtime.json +3 -3
- tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/team/runtime.tar.gz +2 -2
CHANGELOG.md
CHANGED
|
@@ -3,13 +3,23 @@
|
|
| 3 |
Recipes must pin the task commit named in the README. Revisions older than v3 let the agent
|
| 4 |
browse the web and routed final answers through Pi; do not use them for new measurements.
|
| 5 |
|
| 6 |
-
## v3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
- The model gateway also closes the provider request when the caller hangs up after the provider
|
| 9 |
has started answering (previously only while waiting for the first byte).
|
| 10 |
- `relay.py`, used only by research launchers, is no longer shipped in agent images or the wheel.
|
| 11 |
- New README as a quickstart; release history moved here; example recipes pin the task commit.
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## v3.3 (not used for results)
|
| 14 |
|
| 15 |
- **Slow model replies are no longer cut at 15 s.** Harbor's agent egress guard (a gost proxy)
|
|
|
|
| 3 |
Recipes must pin the task commit named in the README. Revisions older than v3 let the agent
|
| 4 |
browse the web and routed final answers through Pi; do not use them for new measurements.
|
| 5 |
|
| 6 |
+
## v3.5
|
| 7 |
+
|
| 8 |
+
- The model gateway asks the provider for uncompressed bytes (`Accept-Encoding: identity`) and fails
|
| 9 |
+
visibly if a provider still returns another encoding on a slow stream.
|
| 10 |
+
|
| 11 |
+
## v3.4 (withdrawn; not used for results)
|
| 12 |
|
| 13 |
- The model gateway also closes the provider request when the caller hangs up after the provider
|
| 14 |
has started answering (previously only while waiting for the first byte).
|
| 15 |
- `relay.py`, used only by research launchers, is no longer shipped in agent images or the wheel.
|
| 16 |
- New README as a quickstart; release history moved here; example recipes pin the task commit.
|
| 17 |
|
| 18 |
+
**Known issue:** Google compresses streamed replies when the client accepts gzip. When a reply took
|
| 19 |
+
more than 3 s to start, the gateway had already sent its own headers, so the compressed bytes reached
|
| 20 |
+
Pi without `Content-Encoding`; Pi reported "Stream ended without finish_reason" and retried. A
|
| 21 |
+
Gemini sweep on v3.4 was stopped after a few minutes; its partial runs are kept but not scored.
|
| 22 |
+
|
| 23 |
## v3.3 (not used for results)
|
| 24 |
|
| 25 |
- **Slow model replies are no longer cut at 15 s.** Harbor's agent egress guard (a gost proxy)
|
README.md
CHANGED
|
@@ -8,7 +8,7 @@ language: [en]
|
|
| 8 |
size_categories: [n<1K]
|
| 9 |
---
|
| 10 |
|
| 11 |
-
# Collaborative Intelligence on Pi and Harbor (release v3.
|
| 12 |
|
| 13 |
Four dimensions of Stanford's Collaborative Intelligence benchmark (arXiv 2611.02633, source
|
| 14 |
pinned at `f704b963`) as Harbor tasks, run by a Pi agent
|
|
@@ -53,12 +53,12 @@ The run itself reads these variables:
|
|
| 53 |
| `ANTHROPIC_WORKSPACE_ID` | only if your Anthropic key requires a workspace header |
|
| 54 |
| `HF_TOKEN`, `GIT_ASKPASS`, `GIT_TERMINAL_PROMPT=0` | git access to this dataset (above) |
|
| 55 |
|
| 56 |
-
**3. Get the tasks and the host tools.** Tag `v3.
|
| 57 |
-
the task commit `
|
| 58 |
|
| 59 |
```sh
|
| 60 |
git lfs install
|
| 61 |
-
git clone --branch v3.
|
| 62 |
cd ci-harbor/adapter && uv sync --python 3.13 --locked --extra harbor --extra hub
|
| 63 |
uv pip install --python .venv/bin/python \
|
| 64 |
'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3'
|
|
@@ -106,9 +106,8 @@ to the scorer, e.g. `collab-intel-harbor-score --upstream-root tasks/<task>/test
|
|
| 106 |
|
| 107 |
## Results and limitations
|
| 108 |
|
| 109 |
-
A full Gemini sweep on this release is pending. Numbers from earlier releases
|
| 110 |
-
|
| 111 |
-
[CHANGELOG.md](CHANGELOG.md). Taking-over percentages depend strongly on which scenarios each
|
| 112 |
model passes solo, so compare models on the scenarios all of them scored.
|
| 113 |
|
| 114 |
## More
|
|
|
|
| 8 |
size_categories: [n<1K]
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Collaborative Intelligence on Pi and Harbor (release v3.5)
|
| 12 |
|
| 13 |
Four dimensions of Stanford's Collaborative Intelligence benchmark (arXiv 2611.02633, source
|
| 14 |
pinned at `f704b963`) as Harbor tasks, run by a Pi agent
|
|
|
|
| 53 |
| `ANTHROPIC_WORKSPACE_ID` | only if your Anthropic key requires a workspace header |
|
| 54 |
| `HF_TOKEN`, `GIT_ASKPASS`, `GIT_TERMINAL_PROMPT=0` | git access to this dataset (above) |
|
| 55 |
|
| 56 |
+
**3. Get the tasks and the host tools.** Tag `v3.5` is this README; its tasks are identical to
|
| 57 |
+
the task commit `TASK_REVISION`, which every recipe in `examples/` pins.
|
| 58 |
|
| 59 |
```sh
|
| 60 |
git lfs install
|
| 61 |
+
git clone --branch v3.5 https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor ci-harbor
|
| 62 |
cd ci-harbor/adapter && uv sync --python 3.13 --locked --extra harbor --extra hub
|
| 63 |
uv pip install --python .venv/bin/python \
|
| 64 |
'flock @ git+https://github.com/huggingface/flock.git@f3970bc5e7be2e9d533e33d457e82c41082a7cd3'
|
|
|
|
| 106 |
|
| 107 |
## Results and limitations
|
| 108 |
|
| 109 |
+
A full Gemini sweep on this release is pending. Numbers from earlier releases are provisional: in v3.1 and v3.2 a network-proxy
|
| 110 |
+
cutoff replaced model replies slower than 15 s with new samples; see [CHANGELOG.md](CHANGELOG.md). Taking-over percentages depend strongly on which scenarios each
|
|
|
|
| 111 |
model passes solo, so compare models on the scenarios all of them scored.
|
| 112 |
|
| 113 |
## More
|
adapter/README.md
CHANGED
|
@@ -101,6 +101,10 @@ chmod 700 ~/bin/podman-compose-shim && export PODMAN_COMPOSE_PROVIDER=~/bin/podm
|
|
| 101 |
|
| 102 |
and, if Docker Hub rate-limits you, a `[[registry.mirror]]` with `location = "mirror.gcr.io"`
|
| 103 |
for `docker.io` in the same registries file (images are pinned by digest).
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
The team container also receives `GEMINI_API_KEY` (as `CI_PRIVATE_READOUT_API_KEY`)
|
| 105 |
for the private final-answer call; the agent never sees that request.
|
| 106 |
|
|
@@ -123,8 +127,9 @@ configured provider, except that it drops Google's unsupported top-level `store`
|
|
| 123 |
field, pins the evaluated model, and rejects provider-side tools and remote content.
|
| 124 |
When a streamed reply is slow, it answers at once and sends SSE keepalive comments
|
| 125 |
until the provider responds, because Harbor's egress guard drops a connection that
|
| 126 |
-
gets no response headers within 15 s;
|
| 127 |
-
|
|
|
|
| 128 |
no host gateway or Flock fork. Normal provider keys and the original Stanford episode budget still
|
| 129 |
apply; the research financial broker is not part of this recipe.
|
| 130 |
|
|
|
|
| 101 |
|
| 102 |
and, if Docker Hub rate-limits you, a `[[registry.mirror]]` with `location = "mirror.gcr.io"`
|
| 103 |
for `docker.io` in the same registries file (images are pinned by digest).
|
| 104 |
+
Without a user systemd session (e.g. inside batch jobs), Podman does not run container
|
| 105 |
+
health checks on its own, and each task starts the agent only once `team` and
|
| 106 |
+
`model-compat` report healthy: run the checks periodically, e.g. with
|
| 107 |
+
`scripts/podman_healthchecks.py` from the Flock repository.
|
| 108 |
The team container also receives `GEMINI_API_KEY` (as `CI_PRIVATE_READOUT_API_KEY`)
|
| 109 |
for the private final-answer call; the agent never sees that request.
|
| 110 |
|
|
|
|
| 127 |
field, pins the evaluated model, and rejects provider-side tools and remote content.
|
| 128 |
When a streamed reply is slow, it answers at once and sends SSE keepalive comments
|
| 129 |
until the provider responds, because Harbor's egress guard drops a connection that
|
| 130 |
+
gets no response headers within 15 s; it always asks the provider for uncompressed bytes,
|
| 131 |
+
because those keepalive headers cannot carry a provider's `Content-Encoding`. If the caller
|
| 132 |
+
hangs up, the provider request is closed. Staged Pi extensions preserve real opaque tool-call signatures. This requires
|
| 133 |
no host gateway or Flock fork. Normal provider keys and the original Stanford episode budget still
|
| 134 |
apply; the research financial broker is not part of this recipe.
|
| 135 |
|
adapter/RUNTIME.md
CHANGED
|
@@ -11,7 +11,7 @@ Generated task images carry an explicit runtime allowlist. Task-local
|
|
| 11 |
`model-compat` forwards requests unchanged except for dropping Google's top-level
|
| 12 |
`store` field (ordinary calls and internal Pi compaction), pinning the evaluated
|
| 13 |
model, rejecting provider-side tools and remote content, and keeping slow streamed
|
| 14 |
-
replies alive through Harbor's 15 s egress-proxy header deadline; staged extensions preserve provider-issued
|
| 15 |
opaque signatures and private capture. The evaluated credential is provided by
|
| 16 |
stock Flock. Original partner/referee credentials and Qwen3-14B endpoint settings
|
| 17 |
are supplied only to the trusted team service; the submitted-code worker has
|
|
|
|
| 11 |
`model-compat` forwards requests unchanged except for dropping Google's top-level
|
| 12 |
`store` field (ordinary calls and internal Pi compaction), pinning the evaluated
|
| 13 |
model, rejecting provider-side tools and remote content, and keeping slow streamed
|
| 14 |
+
replies alive through Harbor's 15 s egress-proxy header deadline (requesting uncompressed bytes); staged extensions preserve provider-issued
|
| 15 |
opaque signatures and private capture. The evaluated credential is provided by
|
| 16 |
stock Flock. Original partner/referee credentials and Qwen3-14B endpoint settings
|
| 17 |
are supplied only to the trusted team service; the submitted-code worker has
|
adapter/adapter-release.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"src/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 17 |
"src/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 18 |
"src/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 19 |
-
"src/collab_harbor/google_compat.py": "
|
| 20 |
"src/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 21 |
"src/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 22 |
"src/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 16 |
"src/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 17 |
"src/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 18 |
"src/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 19 |
+
"src/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 20 |
"src/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 21 |
"src/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 22 |
"src/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
adapter/src/collab_harbor/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
examples/claude-opus-full-pi.yaml
CHANGED
|
@@ -10,7 +10,7 @@ inference:
|
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 13 |
-
revision:
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
|
|
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 13 |
+
revision: TASK_REVISION # replaced with the task commit at publication
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
examples/endpoint-full-pi.yaml
CHANGED
|
@@ -9,7 +9,7 @@ inference:
|
|
| 9 |
api_format: openai_chat_completions
|
| 10 |
task:
|
| 11 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 12 |
-
revision:
|
| 13 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 14 |
agents:
|
| 15 |
count: 1
|
|
|
|
| 9 |
api_format: openai_chat_completions
|
| 10 |
task:
|
| 11 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 12 |
+
revision: TASK_REVISION # replaced with the task commit at publication
|
| 13 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 14 |
agents:
|
| 15 |
count: 1
|
examples/gemini-full-pi.yaml
CHANGED
|
@@ -9,7 +9,7 @@ inference:
|
|
| 9 |
reasoning_effort: low
|
| 10 |
task:
|
| 11 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 12 |
-
revision:
|
| 13 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 14 |
agents:
|
| 15 |
count: 1
|
|
|
|
| 9 |
reasoning_effort: low
|
| 10 |
task:
|
| 11 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 12 |
+
revision: TASK_REVISION # replaced with the task commit at publication
|
| 13 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 14 |
agents:
|
| 15 |
count: 1
|
examples/gpt-full-pi.yaml
CHANGED
|
@@ -10,7 +10,7 @@ inference:
|
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 13 |
-
revision:
|
| 14 |
selector: ci-sharing-h2-r-choosing-the-safe-field-station-solo-s0
|
| 15 |
agents:
|
| 16 |
count: 1
|
|
|
|
| 10 |
reasoning_effort: low
|
| 11 |
task:
|
| 12 |
repo: https://huggingface.co/datasets/misc-org/collaborative-intelligence-harbor
|
| 13 |
+
revision: TASK_REVISION # replaced with the task commit at publication
|
| 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/model-compat/compatibility.json
CHANGED
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/model-compat/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-baseline-s0/environment/team/task.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
-
"google_compat.py": "
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
-
"sha256": "
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
-
"google_compat.py": "
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
-
"sha256": "
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
@@ -248,26 +248,26 @@
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
-
"runtime.json": "
|
| 252 |
-
"runtime.tar.gz": "
|
| 253 |
},
|
| 254 |
-
"sha256": "
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
-
"runtime.json": "
|
| 261 |
-
"runtime.tar.gz": "
|
| 262 |
},
|
| 263 |
-
"sha256": "
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
-
"runtime-distribution.json": "
|
| 269 |
},
|
| 270 |
-
"sha256": "
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
@@ -313,10 +313,10 @@
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
-
"sha256": "
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
-
"archive_sha256": "
|
| 321 |
}
|
| 322 |
}
|
|
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 252 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 253 |
},
|
| 254 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 261 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 262 |
},
|
| 263 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
+
"runtime-distribution.json": "b034c8c68099644734630c3f82827b6b0c766710470813abe276ab8fd1cb33dc"
|
| 269 |
},
|
| 270 |
+
"sha256": "647f9f26b95f41216eb62a66c28c2ae92669bfd0fd138fa96f34def7fd6ca816"
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
+
"sha256": "95a12412077f460509e0f63560ee1acc14b8271670bfa3832f64c896211dc226"
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 321 |
}
|
| 322 |
}
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/compatibility.json
CHANGED
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/model-compat/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-solo-s0/environment/team/task.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
-
"google_compat.py": "
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
-
"sha256": "
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
-
"google_compat.py": "
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
-
"sha256": "
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
@@ -248,26 +248,26 @@
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
-
"runtime.json": "
|
| 252 |
-
"runtime.tar.gz": "
|
| 253 |
},
|
| 254 |
-
"sha256": "
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
-
"runtime.json": "
|
| 261 |
-
"runtime.tar.gz": "
|
| 262 |
},
|
| 263 |
-
"sha256": "
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
-
"runtime-distribution.json": "
|
| 269 |
},
|
| 270 |
-
"sha256": "
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
@@ -313,10 +313,10 @@
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
-
"sha256": "
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
-
"archive_sha256": "
|
| 321 |
}
|
| 322 |
}
|
|
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 252 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 253 |
},
|
| 254 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 261 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 262 |
},
|
| 263 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
+
"runtime-distribution.json": "b034c8c68099644734630c3f82827b6b0c766710470813abe276ab8fd1cb33dc"
|
| 269 |
},
|
| 270 |
+
"sha256": "647f9f26b95f41216eb62a66c28c2ae92669bfd0fd138fa96f34def7fd6ca816"
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
+
"sha256": "12a14e2cea4a6d99c405f99d0a6ea8c822b5d68b07721d9de51e41ef37e793bb"
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 321 |
}
|
| 322 |
}
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/compatibility.json
CHANGED
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/model-compat/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s0/environment/team/task.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
-
"google_compat.py": "
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
-
"sha256": "
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
-
"google_compat.py": "
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
-
"sha256": "
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
@@ -248,26 +248,26 @@
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
-
"runtime.json": "
|
| 252 |
-
"runtime.tar.gz": "
|
| 253 |
},
|
| 254 |
-
"sha256": "
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
-
"runtime.json": "
|
| 261 |
-
"runtime.tar.gz": "
|
| 262 |
},
|
| 263 |
-
"sha256": "
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
-
"runtime-distribution.json": "
|
| 269 |
},
|
| 270 |
-
"sha256": "
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
@@ -313,10 +313,10 @@
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
-
"sha256": "
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
-
"archive_sha256": "
|
| 321 |
}
|
| 322 |
}
|
|
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 252 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 253 |
},
|
| 254 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 261 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 262 |
},
|
| 263 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
+
"runtime-distribution.json": "b034c8c68099644734630c3f82827b6b0c766710470813abe276ab8fd1cb33dc"
|
| 269 |
},
|
| 270 |
+
"sha256": "647f9f26b95f41216eb62a66c28c2ae92669bfd0fd138fa96f34def7fd6ca816"
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
+
"sha256": "d9fd005b68ac6b5642ead0e28e9412ba52def1ee152a645bf5e3a68dafb6df5a"
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 321 |
}
|
| 322 |
}
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/compatibility.json
CHANGED
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/model-compat/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s1/environment/team/task.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
-
"google_compat.py": "
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -83,7 +83,7 @@
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
-
"sha256": "
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
-
"google_compat.py": "
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -122,7 +122,7 @@
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
-
"sha256": "
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
@@ -248,26 +248,26 @@
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
-
"runtime.json": "
|
| 252 |
-
"runtime.tar.gz": "
|
| 253 |
},
|
| 254 |
-
"sha256": "
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
-
"runtime.json": "
|
| 261 |
-
"runtime.tar.gz": "
|
| 262 |
},
|
| 263 |
-
"sha256": "
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
-
"runtime-distribution.json": "
|
| 269 |
},
|
| 270 |
-
"sha256": "
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
@@ -313,10 +313,10 @@
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
-
"sha256": "
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
-
"archive_sha256": "
|
| 321 |
}
|
| 322 |
}
|
|
|
|
| 60 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 61 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 62 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 63 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 64 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 65 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 66 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 83 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 84 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 85 |
},
|
| 86 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 87 |
},
|
| 88 |
"verifier_adapter": {
|
| 89 |
"schema_version": 1,
|
|
|
|
| 99 |
"export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 100 |
"file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 101 |
"generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 102 |
+
"google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 103 |
"google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 104 |
"grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 105 |
"live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 122 |
"vendor.py": "ae5ac88b824bb4775c0ce278f4003f3a036def9d5049caf27290ff0d52b71e51",
|
| 123 |
"workspace_evidence.py": "b1abf1b142440c9e213668c8feb690b89446777de8de12d51fb7e9479e3ee8d8"
|
| 124 |
},
|
| 125 |
+
"sha256": "d6b14553e55252661525fd8cf54f69c9c1ea861e875562df49ee733da3b99cad"
|
| 126 |
},
|
| 127 |
"team_upstream": {
|
| 128 |
"schema_version": 1,
|
|
|
|
| 248 |
"schema_version": 1,
|
| 249 |
"files": {
|
| 250 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 251 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 252 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 253 |
},
|
| 254 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 255 |
},
|
| 256 |
"verifier_runtime_distribution": {
|
| 257 |
"schema_version": 1,
|
| 258 |
"files": {
|
| 259 |
"runtime-unpack.py": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0",
|
| 260 |
+
"runtime.json": "c15f441c83064d98c4a067c74bced302f4355753f24e0ca28503189c11b38501",
|
| 261 |
+
"runtime.tar.gz": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 262 |
},
|
| 263 |
+
"sha256": "7c426f5615fab5bc2a8cf9c84952c9cdbbf37e67bb6cf33749ed821d48d108aa"
|
| 264 |
},
|
| 265 |
"runtime_distribution": {
|
| 266 |
"schema_version": 1,
|
| 267 |
"files": {
|
| 268 |
+
"runtime-distribution.json": "b034c8c68099644734630c3f82827b6b0c766710470813abe276ab8fd1cb33dc"
|
| 269 |
},
|
| 270 |
+
"sha256": "647f9f26b95f41216eb62a66c28c2ae92669bfd0fd138fa96f34def7fd6ca816"
|
| 271 |
},
|
| 272 |
"environment_policy": {
|
| 273 |
"schema_version": 1,
|
|
|
|
| 313 |
"sha256": "33b10cc4a7d760c70a490b186618d63dd730389503da1396eec47afc8b436d60"
|
| 314 |
}
|
| 315 |
},
|
| 316 |
+
"sha256": "15350057cb0108f988e5f58b0891eee5d6f4cd1486fe4b5e4fb4e44b3c8e135a"
|
| 317 |
},
|
| 318 |
"runtime_distribution": {
|
| 319 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 320 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe"
|
| 321 |
}
|
| 322 |
}
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/compatibility.json
CHANGED
|
@@ -17,5 +17,5 @@
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
-
"source_sha256": "
|
| 21 |
}
|
|
|
|
| 17 |
"model-compat"
|
| 18 |
],
|
| 19 |
"agent_main_explicit_networks": false,
|
| 20 |
+
"source_sha256": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b"
|
| 21 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/environment/model-compat/google_compat.py
CHANGED
|
@@ -27,7 +27,8 @@ unchanged except as noted, to one configured upstream:
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
-
Harbor's agent egress proxy otherwise drops it after ~15 s of silence.
|
|
|
|
| 31 |
|
| 32 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 33 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
@@ -119,7 +120,7 @@ def stream_error(path, message, status=None):
|
|
| 119 |
|
| 120 |
|
| 121 |
HOP_BY_HOP = {
|
| 122 |
-
"host", "content-length", "connection", "transfer-encoding", "keep-alive",
|
| 123 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 124 |
}
|
| 125 |
|
|
@@ -223,7 +224,11 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 223 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 224 |
sent = {key.lower() for key in headers}
|
| 225 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 226 |
-
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 228 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 229 |
result = {}
|
|
@@ -315,6 +320,15 @@ def server(upstream=GOOGLE, *, host="0.0.0.0", port=8003, fixture=False, audit=N
|
|
| 315 |
self.wfile.write(b": keepalive\n\n")
|
| 316 |
self.wfile.flush()
|
| 317 |
response = result.get("response")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
if response is None or response.status != 200:
|
| 319 |
status = getattr(response, "status", None)
|
| 320 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
|
|
|
| 27 |
|
| 28 |
* A streamed request whose provider is slow (more than 3 s) is answered with a 200 event
|
| 29 |
stream and keepalive comments until the provider responds (see ``STREAM_KEEPALIVE``):
|
| 30 |
+
Harbor's agent egress proxy otherwise drops it after ~15 s of silence. The gateway
|
| 31 |
+
always asks the provider for uncompressed bytes (``Accept-Encoding: identity``).
|
| 32 |
|
| 33 |
No credentials are owned or stored (the caller's auth headers pass through), no
|
| 34 |
content is logged, and nothing is retried: an ambiguous upstream attempt stays
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
HOP_BY_HOP = {
|
| 123 |
+
"host", "content-length", "connection", "transfer-encoding", "keep-alive", "accept-encoding",
|
| 124 |
"proxy-authorization", "proxy-connection", "upgrade", "te", "trailer",
|
| 125 |
}
|
| 126 |
|
|
|
|
| 224 |
headers = {key: value for key, value in self.headers.items() if key.lower() not in HOP_BY_HOP}
|
| 225 |
sent = {key.lower() for key in headers}
|
| 226 |
headers.update({key: value for key, value in extra_headers.items() if key not in sent})
|
| 227 |
+
headers.update({"Content-Length": str(len(payload)), "Content-Type": "application/json",
|
| 228 |
+
# Plain bytes from the provider (the caller's Accept-Encoding is dropped above): a
|
| 229 |
+
# slow stream is answered with the gateway's own headers, so a provider
|
| 230 |
+
# Content-Encoding (Google gzips streams on request) could not be passed on.
|
| 231 |
+
"Accept-Encoding": "identity"})
|
| 232 |
# The upstream call runs in a worker so a slow streamed answer can be kept alive (see
|
| 233 |
# STREAM_KEEPALIVE): Harbor's agent egress proxy drops a connection that stays silent ~15 s.
|
| 234 |
result = {}
|
|
|
|
| 320 |
self.wfile.write(b": keepalive\n\n")
|
| 321 |
self.wfile.flush()
|
| 322 |
response = result.get("response")
|
| 323 |
+
encoding = (response.getheader("Content-Encoding") or "identity").strip().lower() if response else ""
|
| 324 |
+
if response is not None and response.status == 200 and encoding != "identity":
|
| 325 |
+
# Our headers are already sent without Content-Encoding: never relay bytes the caller
|
| 326 |
+
# cannot decode; fail visibly instead.
|
| 327 |
+
self.wfile.write(stream_error(self.path, f"Upstream sent Content-Encoding {encoding!r} "
|
| 328 |
+
"despite Accept-Encoding: identity", 502))
|
| 329 |
+
self.wfile.flush()
|
| 330 |
+
self.close_connection = True
|
| 331 |
+
return
|
| 332 |
if response is None or response.status != 200:
|
| 333 |
status = getattr(response, "status", None)
|
| 334 |
detail = response.read(4096).decode("utf-8", "replace") if response is not None else ""
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/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",
|
|
@@ -13,7 +13,7 @@
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
-
"adapter/collab_harbor/google_compat.py": "
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
@@ -99,6 +99,6 @@
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
-
"uncompressed_bytes":
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"archive_sha256": "4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe",
|
| 3 |
"files": {
|
| 4 |
"adapter/collab_harbor/LICENSE.adapter": "c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4",
|
| 5 |
"adapter/collab_harbor/__init__.py": "3b4ee476f940b1d71ce30ea8024133a316db9def990e4050c258c994a34b968e",
|
|
|
|
| 13 |
"adapter/collab_harbor/export.py": "a8c9feb1a8e66d473fd871edc83753a779d1951f7dd3525a2bce9550f4739726",
|
| 14 |
"adapter/collab_harbor/file_integrity.py": "2d3d87971c12dce95ecc1747cd365dccdda37331d19296a0e6d011b0f51cf4e0",
|
| 15 |
"adapter/collab_harbor/generate.py": "08f78596dd666f5b34244519d7976853f30a8cc4639a1af81f49d40651c1eba0",
|
| 16 |
+
"adapter/collab_harbor/google_compat.py": "de93a1b41a5e9488620092ced37f75976068a7921a8e01fab79190d718fed28b",
|
| 17 |
"adapter/collab_harbor/google_compat_task.py": "8b48e61b1eafd878e41b57f63c04735381b375fdd9e532a15f5e9e395ac6884c",
|
| 18 |
"adapter/collab_harbor/grade.py": "e9852a96db808d41c0d1ab16ac98d54c5c5e17cd75c94ba8c53c81ba76eaf9f2",
|
| 19 |
"adapter/collab_harbor/live_reader_gate.py": "7c7daf586ed0735d18a724886bd450e42cf3f619afcd88dc69189ba9298145c7",
|
|
|
|
| 99 |
},
|
| 100 |
"format": "ci-private-runtime-tar-gzip-v1",
|
| 101 |
"schema_version": 1,
|
| 102 |
+
"uncompressed_bytes": 1471734,
|
| 103 |
"unpacker_sha256": "55afb6f2af4a81089f57643fc8eb46ba355925a73abaedc91c7670010094ada0"
|
| 104 |
}
|
tasks/ci-keeping-the-team-on-track-h-l-db-restore-source-test-s2/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:4d0b4728f63a863d262a7b55ea7542f451d439504705139b78a20873319601fe
|
| 3 |
+
size 392596
|