Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/imdb/solution/site/README.md +3 -0
- tasks/imdb/solution/site/implementation/backend/runtime.json +106 -0
- tasks/imdb/solution/site/implementation/clone/__init__.py +0 -0
- tasks/imdb/solution/site/implementation/clone/app.py +0 -0
- tasks/imdb/solution/site/implementation/clone/catalog.json +0 -0
- tasks/imdb/solution/site/implementation/clone/harbor_entry.py +59 -0
- tasks/imdb/solution/site/implementation/clone/media_catalog.json +55 -0
- tasks/imdb/solution/site/implementation/compile.sh +53 -0
- tasks/imdb/solution/site/implementation/oracle/README.md +4 -0
- tasks/imdb/solution/site/implementation/run.sh +11 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-01.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-02.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-03.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-04.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-05.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-06.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-07.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-08.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-09.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-10.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-11.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-12.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-13.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-14.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-15.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-16.vtt +10 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0012349-gallery-130.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0022100-gallery-097.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0027977-gallery-046.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0031381-gallery-158.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0032553-gallery-063.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0038650-gallery-021.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0040897-gallery-147.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0043014-gallery-060.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0044741-gallery-107.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0045152-gallery-086.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047296-gallery-178.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047396-gallery-050.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047478-gallery-020.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0050825-gallery-061.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0052357-gallery-099.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0053125-gallery-098.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0053291-gallery-131.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0054215-gallery-032.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0055031-gallery-136.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0055630-gallery-146.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0056058-gallery-047.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0057012-gallery-068.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0057115-gallery-149.svg +8 -0
- tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0059578-gallery-127.svg +8 -0
tasks/imdb/solution/site/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Private oracle implementation
|
| 2 |
+
|
| 3 |
+
The implementation is a deterministic projection of the current material clone and is copied only into the privileged oracle solution.
|
tasks/imdb/solution/site/implementation/backend/runtime.json
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"database": {
|
| 3 |
+
"data_dir": "data",
|
| 4 |
+
"engine": "sqlite",
|
| 5 |
+
"filename": "imdb.sqlite3",
|
| 6 |
+
"legacy_unbound_migration": false,
|
| 7 |
+
"migration_hook": "backend.db:apply_site_backend_migrations",
|
| 8 |
+
"seed_hook": "backend.db:seed_site_backend",
|
| 9 |
+
"volume_identity": "websitebench-imdb-data"
|
| 10 |
+
},
|
| 11 |
+
"deployment": {
|
| 12 |
+
"profiles": {
|
| 13 |
+
"cloudflare-review": {
|
| 14 |
+
"mail_adapter": "redis-resend",
|
| 15 |
+
"payment_adapter": "local-sandbox",
|
| 16 |
+
"persistence": "ephemeral-reset"
|
| 17 |
+
},
|
| 18 |
+
"docker-volume": {
|
| 19 |
+
"mail_adapter": "effects-gateway",
|
| 20 |
+
"payment_adapter": "local-sandbox",
|
| 21 |
+
"persistence": "persistent-volume"
|
| 22 |
+
},
|
| 23 |
+
"offline-harbor": {
|
| 24 |
+
"mail_adapter": "local-outbox",
|
| 25 |
+
"payment_adapter": "local-sandbox",
|
| 26 |
+
"persistence": "persistent"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"mail": {
|
| 31 |
+
"enabled": true,
|
| 32 |
+
"purposes": {
|
| 33 |
+
"password-reset": {
|
| 34 |
+
"body": "Your password reset code is ${code}.",
|
| 35 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 36 |
+
"footer": "Ignore this message if you did not contact IMDb offline clone.",
|
| 37 |
+
"lead": "A password reset was requested for IMDb offline clone.",
|
| 38 |
+
"required_variables": [
|
| 39 |
+
"code",
|
| 40 |
+
"minutes"
|
| 41 |
+
],
|
| 42 |
+
"secret_variables": [
|
| 43 |
+
"code"
|
| 44 |
+
],
|
| 45 |
+
"subject": "Reset your IMDb offline clone password",
|
| 46 |
+
"template_id": "imdb.password-reset.v1"
|
| 47 |
+
},
|
| 48 |
+
"registration": {
|
| 49 |
+
"body": "Your verification code is ${code}.",
|
| 50 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 51 |
+
"footer": "This code is only for IMDb offline clone.",
|
| 52 |
+
"lead": "Finish creating your IMDb offline clone account.",
|
| 53 |
+
"required_variables": [
|
| 54 |
+
"code",
|
| 55 |
+
"minutes"
|
| 56 |
+
],
|
| 57 |
+
"secret_variables": [
|
| 58 |
+
"code"
|
| 59 |
+
],
|
| 60 |
+
"subject": "Verify your IMDb offline clone account",
|
| 61 |
+
"template_id": "imdb.registration.v1"
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"sender": {
|
| 65 |
+
"address_env": "RESEND_FROM_EMAIL",
|
| 66 |
+
"display_name": "IMDb offline clone"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"payments": {
|
| 70 |
+
"currency": "USD",
|
| 71 |
+
"default_adapter": "local-sandbox",
|
| 72 |
+
"enabled": false,
|
| 73 |
+
"local_sandbox": {
|
| 74 |
+
"scenarios": [
|
| 75 |
+
{
|
| 76 |
+
"display_label": "Simulated approval",
|
| 77 |
+
"id": "sandbox-approved",
|
| 78 |
+
"outcome": "approved"
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"display_label": "Simulated decline",
|
| 82 |
+
"id": "sandbox-declined",
|
| 83 |
+
"outcome": "declined"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"display_label": "Simulated retry",
|
| 87 |
+
"id": "sandbox-retry",
|
| 88 |
+
"outcome": "retryable"
|
| 89 |
+
}
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
"stripe_test": null
|
| 93 |
+
},
|
| 94 |
+
"schema_version": "websitebench.site-backend-runtime.v1",
|
| 95 |
+
"session": {
|
| 96 |
+
"host_only": true,
|
| 97 |
+
"http_only": true,
|
| 98 |
+
"same_site": "Lax",
|
| 99 |
+
"secure": true
|
| 100 |
+
},
|
| 101 |
+
"site": {
|
| 102 |
+
"id": "imdb",
|
| 103 |
+
"label": "IMDb offline clone",
|
| 104 |
+
"public_origin": "https://imdb.website-bench.com"
|
| 105 |
+
}
|
| 106 |
+
}
|
tasks/imdb/solution/site/implementation/clone/__init__.py
ADDED
|
File without changes
|
tasks/imdb/solution/site/implementation/clone/app.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/imdb/solution/site/implementation/clone/catalog.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/imdb/solution/site/implementation/clone/harbor_entry.py
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""WebsiteBench Harbor foreground entrypoint for the frozen clone."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
import os
|
| 7 |
+
from pathlib import Path
|
| 8 |
+
|
| 9 |
+
import uvicorn
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
ROOT = Path(__file__).resolve().parent
|
| 13 |
+
SITE_ROOT = ROOT.parent
|
| 14 |
+
RUNTIME = json.loads((SITE_ROOT / "backend" / "runtime.json").read_text(encoding="utf-8"))
|
| 15 |
+
SITE_ID = str(RUNTIME["site"]["id"])
|
| 16 |
+
DATA_DIR = Path(os.environ["DATA_DIR"])
|
| 17 |
+
if not DATA_DIR.is_absolute():
|
| 18 |
+
raise RuntimeError("DATA_DIR must be absolute")
|
| 19 |
+
DATA_DIR = DATA_DIR.resolve()
|
| 20 |
+
DATA_DIR.mkdir(parents=True, exist_ok=True)
|
| 21 |
+
os.environ["WEBSITEBENCH_DATA_DIR"] = str(DATA_DIR)
|
| 22 |
+
os.environ["WEBSITEBENCH_SITE_BACKEND_RUNTIME"] = str(SITE_ROOT / "backend" / "runtime.json")
|
| 23 |
+
os.environ["WEBSITEBENCH_SITE_BACKEND_DATABASE"] = str(DATA_DIR / RUNTIME["database"]["filename"])
|
| 24 |
+
if os.environ.get("WEBSITEBENCH_MAILBOX_BOOTSTRAP_URL", "").strip():
|
| 25 |
+
os.environ["WEBSITEBENCH_DEPLOYMENT_PROFILE"] = "offline-harbor"
|
| 26 |
+
os.environ["WEBSITEBENCH_PAYMENT_PROFILE"] = "local-sandbox"
|
| 27 |
+
|
| 28 |
+
from app import app as clone_app # noqa: E402
|
| 29 |
+
|
| 30 |
+
HEALTH_BODY = b'{"status":"ok"}'
|
| 31 |
+
# /healthz is the contract (ADR-0010); the private path stays mounted
|
| 32 |
+
# so bundles frozen before the migration keep answering.
|
| 33 |
+
HEALTH_PATHS = ("/healthz", "/__websitebench/health")
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
async def application(scope, receive, send):
|
| 37 |
+
if scope.get("type") == "http" and scope.get("path") in HEALTH_PATHS:
|
| 38 |
+
await send({
|
| 39 |
+
"type": "http.response.start",
|
| 40 |
+
"status": 200,
|
| 41 |
+
"headers": [
|
| 42 |
+
(b"content-type", b"application/json"),
|
| 43 |
+
(b"content-length", str(len(HEALTH_BODY)).encode("ascii")),
|
| 44 |
+
(b"cache-control", b"no-store"),
|
| 45 |
+
],
|
| 46 |
+
})
|
| 47 |
+
await send({"type": "http.response.body", "body": HEALTH_BODY})
|
| 48 |
+
return
|
| 49 |
+
await clone_app(scope, receive, send)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
if __name__ == "__main__":
|
| 53 |
+
uvicorn.run(
|
| 54 |
+
application,
|
| 55 |
+
host=os.environ["HOST"],
|
| 56 |
+
port=int(os.environ["PORT"]),
|
| 57 |
+
access_log=False,
|
| 58 |
+
timeout_graceful_shutdown=2,
|
| 59 |
+
)
|
tasks/imdb/solution/site/implementation/clone/media_catalog.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "websitebench.imdb.media-catalog.v1",
|
| 3 |
+
"round": "2026-08-14-r7",
|
| 4 |
+
"classification": "generated-local-clone-media-not-source-evidence",
|
| 5 |
+
"asset_manifest": "../source-assets/2026-08-14-r7/manifest.json",
|
| 6 |
+
"gallery_manifest_prefix": "gallery/",
|
| 7 |
+
"poster_policy": "one-local-catalog-poster-per-title",
|
| 8 |
+
"portrait_person_ids": [
|
| 9 |
+
"nm0000384",
|
| 10 |
+
"nm0634240",
|
| 11 |
+
"nm0000288",
|
| 12 |
+
"nm0005132",
|
| 13 |
+
"nm0000190",
|
| 14 |
+
"nm0004266",
|
| 15 |
+
"nm0000354",
|
| 16 |
+
"nm0000233",
|
| 17 |
+
"nm0000237",
|
| 18 |
+
"nm0000235",
|
| 19 |
+
"nm0000168",
|
| 20 |
+
"nm0000151",
|
| 21 |
+
"nm0000209",
|
| 22 |
+
"nm0000199",
|
| 23 |
+
"nm0186505",
|
| 24 |
+
"nm3592338",
|
| 25 |
+
"nm0614165",
|
| 26 |
+
"nm0898288",
|
| 27 |
+
"nm3918035",
|
| 28 |
+
"nm6073955"
|
| 29 |
+
],
|
| 30 |
+
"focus_minimum_items": 5,
|
| 31 |
+
"flagship_minimum_items": 10,
|
| 32 |
+
"flagship_title_ids": [
|
| 33 |
+
"tt0468569",
|
| 34 |
+
"tt0816692",
|
| 35 |
+
"tt0110912"
|
| 36 |
+
],
|
| 37 |
+
"video_title_ids": [
|
| 38 |
+
"tt0468569",
|
| 39 |
+
"tt0816692",
|
| 40 |
+
"tt0110912",
|
| 41 |
+
"tt0111161",
|
| 42 |
+
"tt0068646",
|
| 43 |
+
"tt0137523",
|
| 44 |
+
"tt0109830",
|
| 45 |
+
"tt1375666",
|
| 46 |
+
"tt0133093",
|
| 47 |
+
"tt0099685",
|
| 48 |
+
"tt0114369",
|
| 49 |
+
"tt0102926",
|
| 50 |
+
"tt0120815",
|
| 51 |
+
"tt0245429",
|
| 52 |
+
"tt0120689",
|
| 53 |
+
"tt6751668"
|
| 54 |
+
]
|
| 55 |
+
}
|
tasks/imdb/solution/site/implementation/compile.sh
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -Eeuo pipefail
|
| 3 |
+
root="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
| 4 |
+
cat > "$root/executable" <<'EOF'
|
| 5 |
+
#!/usr/bin/env python3
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import random
|
| 10 |
+
import runpy
|
| 11 |
+
import sys
|
| 12 |
+
import time
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
ROOT = Path(__file__).resolve().parent
|
| 17 |
+
for name in ("HOST", "PORT", "DATA_DIR", "SEED", "TZ"):
|
| 18 |
+
if not os.environ.get(name):
|
| 19 |
+
raise SystemExit(f"{name} is required")
|
| 20 |
+
data_dir = Path(os.environ["DATA_DIR"])
|
| 21 |
+
if not data_dir.is_absolute():
|
| 22 |
+
raise SystemExit("DATA_DIR must be absolute")
|
| 23 |
+
data_dir.mkdir(parents=True, exist_ok=True)
|
| 24 |
+
try:
|
| 25 |
+
random.seed(int(os.environ["SEED"]))
|
| 26 |
+
except ValueError:
|
| 27 |
+
raise SystemExit("SEED must be an integer") from None
|
| 28 |
+
if hasattr(time, "tzset"):
|
| 29 |
+
time.tzset()
|
| 30 |
+
os.environ["WEBSITEBENCH_DATA_DIR"] = str(data_dir)
|
| 31 |
+
os.environ["WEBSITEBENCH_SITE_BACKEND_RUNTIME"] = str(
|
| 32 |
+
ROOT / "backend" / "runtime.json"
|
| 33 |
+
)
|
| 34 |
+
if os.environ.get("WEBSITEBENCH_MAILBOX_BOOTSTRAP_URL") or os.environ.get("WEBSITEBENCH_MAIL_API_URL"):
|
| 35 |
+
os.environ["WEBSITEBENCH_DEPLOYMENT_PROFILE"] = "offline-harbor"
|
| 36 |
+
else:
|
| 37 |
+
os.environ.pop("WEBSITEBENCH_DEPLOYMENT_PROFILE", None)
|
| 38 |
+
os.environ["WEBSITEBENCH_PAYMENT_PROFILE"] = "local-sandbox"
|
| 39 |
+
for name in (
|
| 40 |
+
"STRIPE_SECRET_KEY",
|
| 41 |
+
"STRIPE_WEBHOOK_SECRET",
|
| 42 |
+
"STRIPE_TEST_SECRET_KEY",
|
| 43 |
+
"STRIPE_TEST_WEBHOOK_SECRET",
|
| 44 |
+
"PETFINDER_STRIPE_TEST_SECRET_KEY",
|
| 45 |
+
"PETFINDER_STRIPE_TEST_WEBHOOK_SECRET",
|
| 46 |
+
):
|
| 47 |
+
os.environ.pop(name, None)
|
| 48 |
+
os.environ["PYTHONDONTWRITEBYTECODE"] = "1"
|
| 49 |
+
os.environ["PYTHONUNBUFFERED"] = "1"
|
| 50 |
+
os.environ["PYTHONPATH"] = str(ROOT / "vendor")
|
| 51 |
+
os.execvp("python3", ["python3", str(ROOT / "clone" / "harbor_entry.py")])
|
| 52 |
+
EOF
|
| 53 |
+
chmod 755 "$root/executable"
|
tasks/imdb/solution/site/implementation/oracle/README.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle support
|
| 2 |
+
|
| 3 |
+
The materializer assembles the frozen clone, backend, and reference adapter as
|
| 4 |
+
the private implementation. No additional oracle-only behavior is required.
|
tasks/imdb/solution/site/implementation/run.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
root="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
| 4 |
+
cd "$root"
|
| 5 |
+
: "${HOST:=127.0.0.1}"
|
| 6 |
+
: "${PORT:=8080}"
|
| 7 |
+
: "${DATA_DIR:=/tmp/websitebench-reference-data}"
|
| 8 |
+
: "${SEED:=0}"
|
| 9 |
+
: "${TZ:=UTC}"
|
| 10 |
+
export HOST PORT DATA_DIR SEED TZ
|
| 11 |
+
exec ./executable
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-01.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 01.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-02.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 02.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-03.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 03.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-04.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 04.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-05.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 05.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-06.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 06.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-07.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 07.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-08.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 08.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-09.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 09.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-10.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 10.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-11.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 11.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-12.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 12.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-13.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 13.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-14.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 14.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-15.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 15.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/captions/local-feature-16.vtt
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WEBVTT
|
| 2 |
+
|
| 3 |
+
00:00:00.000 --> 00:00:10.000
|
| 4 |
+
WebsiteBench local feature 16.
|
| 5 |
+
|
| 6 |
+
00:00:10.000 --> 00:00:20.000
|
| 7 |
+
Generated media fixture; not captured source footage.
|
| 8 |
+
|
| 9 |
+
00:00:20.000 --> 00:00:30.000
|
| 10 |
+
End of local feature.
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0012349-gallery-130.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0022100-gallery-097.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0027977-gallery-046.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0031381-gallery-158.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0032553-gallery-063.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0038650-gallery-021.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0040897-gallery-147.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0043014-gallery-060.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0044741-gallery-107.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0045152-gallery-086.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047296-gallery-178.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047396-gallery-050.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0047478-gallery-020.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0050825-gallery-061.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0052357-gallery-099.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0053125-gallery-098.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0053291-gallery-131.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0054215-gallery-032.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0055031-gallery-136.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0055630-gallery-146.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0056058-gallery-047.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0057012-gallery-068.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0057115-gallery-149.svg
ADDED
|
|
tasks/imdb/solution/site/implementation/source-assets/2026-08-14-r7/gallery/tt0059578-gallery-127.svg
ADDED
|
|