πͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
ci: route analyst DB access through --allow-host-service-ports (#14896)
Tobias Wochinger8ddc3bfa70f2
diff --git a/.github/workflows/ci-runtime-analyst.lock.yml b/.github/workflows/ci-runtime-analyst.lock.ymlindex 2f660aedfc..7d24e87623 100644--- a/.github/workflows/ci-runtime-analyst.lock.yml+++ b/.github/workflows/ci-runtime-analyst.lock.yml@@ -1,4 +1,4 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"82cbfa0d48b4e5dfc7089c6ebfb70ea692e2069c575fdf0650c78cef0d7965b9","body_hash":"d3828430e4ed8145e3e89e15a79c3fc854b3799518899f6131cb13886deb850e","compiler_version":"v0.82.0","agent_id":"claude","agent_model":"claude-opus-4-8","engine_versions":{"claude":"2.1.195"}}+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"c6c68d0b4c6aeab2b8ca1ac77f7f1b8f16f3458d5c4d8702d67a5d2a0bd09880","body_hash":"babe53d3a3d528f6b4d52b528f2b6f739ca403914eace0f41eb3fa3fa134cca8","compiler_version":"v0.82.0","agent_id":"claude","agent_model":"claude-opus-4-8","engine_versions":{"claude":"2.1.195"}}# gh-aw-manifest: {"version":1,"secrets":["CLAUDE_API_KEY","DOCKERHUB_TOKEN_READ","DOCKERHUB_USERNAME_READ","GH_AW_CI_ANALYST_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"v7.0.0"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"docker/login-action","sha":"650006c6eb7dba73a995cc03b0b2d7f5ca915bee","version":"v4.2.0"},{"repo":"github/gh-aw-actions/setup","sha":"2ad2a516e432f0a0000cfaed33d262a380f9e58f","version":"v0.82.0"},{"repo":"pnpm/action-setup","sha":"0ebf47130e4866e96fce0953f49152a61190b271","version":"v6.0.9"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.13","digest":"sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.13@sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.13","digest":"sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.13@sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.13","digest":"sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.13@sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.32","digest":"sha256:63e46b56dfd70895a701b6fc6dd0189e11e2d875f327f1781e81b31848735477","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.32@sha256:63e46b56dfd70895a701b6fc6dd0189e11e2d875f327f1781e81b31848735477"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.5.0","digest":"sha256:e25564dccc9110a70a77b9df560cbde11aa392fcb5f08b9abe5c4ebc6d146ea4","pinned_image":"ghcr.io/github/github-mcp-server:v1.5.0@sha256:e25564dccc9110a70a77b9df560cbde11aa392fcb5f08b9abe5c4ebc6d146ea4"}]}# This file was automatically generated by gh-aw (v0.82.0). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md#@@ -539,7 +539,7 @@ jobs:username: ${{ secrets.DOCKERHUB_USERNAME_READ }}- continue-on-error: truename: Provision DB test stack (best effort, mirrors pipeline.yml test jobs)- run: "set -euo pipefail\n# Overlap the two slow downloads with pnpm install (like pipeline.yml).\n# worker-tests profile adds floci (lambda endpoint for awsLambda tests).\n# HOST_IP=0.0.0.0: publish beyond host-loopback so the sandboxed agent\n# can reach the services through the AWF host gateway as well.\n(set +e; COMPOSE_PROFILES=worker-tests HOST_IP=0.0.0.0 docker compose -f docker-compose.dev.yml up -d --wait --wait-timeout 180 > /tmp/compose-up.log 2>&1; echo $? > /tmp/compose-up.exit) &\n(\n set -e\n curl --fail --location --retry 5 --retry-delay 2 --retry-all-errors \\\n --output /tmp/migrate.linux-amd64.tar.gz \\\n https://github.com/golang-migrate/migrate/releases/download/v4.19.1/migrate.linux-amd64.tar.gz\n echo \"2ac648fbd1b127b69ab5a7b33cf96212178f71e22379fc50573630c6f4c7ce18 /tmp/migrate.linux-amd64.tar.gz\" | sha256sum -c -\n tar xzf /tmp/migrate.linux-amd64.tar.gz -C /tmp\n sudo mv /tmp/migrate /usr/bin/migrate\n) > /tmp/migrate-install.log 2>&1 &\nmigrate_pid=$!\npnpm install\n# tests-web \"Load default env\" recipe (default deploy mode), then\n# copies for worker-job parity (tests-worker reads worker/.env).\ngrep -v -e '^LANGFUSE_S3_BATCH_EXPORT_ENABLED=' -e '^NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT=' .env.dev.example > .env\n{\n echo \"LANGFUSE_INGESTION_QUEUE_DELAY_MS=1\"\n echo \"LANGFUSE_CACHE_PROMPT_ENABLED=false\"\n echo \"LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=1\"\n echo \"LANGFUSE_TRACE_DELETE_DELAY_MS=1\"\n echo \"LANGFUSE_TRACE_DELETE_CONCURRENCY=100\"\n echo \"ADMIN_API_KEY=admin-api-key\"\n echo \"LANGFUSE_EE_LICENSE_KEY=langfuse_ee_test\"\n echo \"LANGFUSE_SKIP_EVALUATOR_MODEL_CALL_VALIDATION=true\"\n echo \"LANGFUSE_ENABLE_SCORES_V3_API=true\"\n} >> .env\n# pipeline.yml passes this as a step env var; baked into the ROOT .env\n# (which worker/vitest.config.ts loads via ../.env β worker/.env is\n# never read by vitest) so the agent needs no env prefixes.\necho \"LANGFUSE_CODE_EVAL_AWS_LAMBDA_ENDPOINT=http://localhost:4566\" >> .env\ncp .env web/.env\ncp .env worker/.env\npnpm --filter=shared run db:generate\n# @langfuse/shared exports point at dist/ β web and worker vitest\n# import the BUILT package, so this build is load-bearing.\npnpm --filter=worker... run build\ntimeout 300 bash -c 'until [ -f /tmp/compose-up.exit ]; do sleep 1; done'\ncat /tmp/compose-up.log\n[ \"$(cat /tmp/compose-up.exit)\" = \"0\" ]\nwait \"$migrate_pid\"\npnpm run db:migrate\npnpm --filter=shared run db:seed\npnpm --filter=shared ch:up\n# ClickHouse client shim via the dev container (pipeline.yml trick,\n# avoids the ~300MB client download) for dev-tables setup.\nsudo tee /usr/local/bin/clickhouse > /dev/null <<'CLICKHOUSE_SHIM'\n#!/bin/bash\nexec docker exec -i langfuse-clickhouse clickhouse \"$@\"\nCLICKHOUSE_SHIM\nsudo chmod +x /usr/local/bin/clickhouse\npnpm --filter=shared ch:dev-tables\nmkdir -p /tmp/gh-aw && touch /tmp/gh-aw/db-stack-ready\n"+ run: "set -euo pipefail\n# Overlap the two slow downloads with pnpm install (like pipeline.yml).\n# worker-tests profile adds floci (lambda endpoint for awsLambda tests).\n# HOST_IP=0.0.0.0: publish beyond host-loopback so the sandboxed agent\n# can reach the services through the AWF host gateway as well.\n(set +e; COMPOSE_PROFILES=worker-tests HOST_IP=0.0.0.0 docker compose -f docker-compose.dev.yml up -d --wait --wait-timeout 180 > /tmp/compose-up.log 2>&1; echo $? > /tmp/compose-up.exit) &\n(\n set -e\n curl --fail --location --retry 5 --retry-delay 2 --retry-all-errors \\\n --output /tmp/migrate.linux-amd64.tar.gz \\\n https://github.com/golang-migrate/migrate/releases/download/v4.19.1/migrate.linux-amd64.tar.gz\n echo \"2ac648fbd1b127b69ab5a7b33cf96212178f71e22379fc50573630c6f4c7ce18 /tmp/migrate.linux-amd64.tar.gz\" | sha256sum -c -\n tar xzf /tmp/migrate.linux-amd64.tar.gz -C /tmp\n sudo mv /tmp/migrate /usr/bin/migrate\n) > /tmp/migrate-install.log 2>&1 &\nmigrate_pid=$!\npnpm install\n# tests-web \"Load default env\" recipe (default deploy mode), then\n# copies for worker-job parity (tests-worker reads worker/.env).\ngrep -v -e '^LANGFUSE_S3_BATCH_EXPORT_ENABLED=' -e '^NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT=' .env.dev.example > .env\n{\n echo \"LANGFUSE_INGESTION_QUEUE_DELAY_MS=1\"\n echo \"LANGFUSE_CACHE_PROMPT_ENABLED=false\"\n echo \"LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=1\"\n echo \"LANGFUSE_TRACE_DELETE_DELAY_MS=1\"\n echo \"LANGFUSE_TRACE_DELETE_CONCURRENCY=100\"\n echo \"ADMIN_API_KEY=admin-api-key\"\n echo \"LANGFUSE_EE_LICENSE_KEY=langfuse_ee_test\"\n echo \"LANGFUSE_SKIP_EVALUATOR_MODEL_CALL_VALIDATION=true\"\n echo \"LANGFUSE_ENABLE_SCORES_V3_API=true\"\n} >> .env\n# pipeline.yml passes this as a step env var; baked into the ROOT .env\n# (which worker/vitest.config.ts loads via ../.env β worker/.env is\n# never read by vitest) so the agent needs no env prefixes.\necho \"LANGFUSE_CODE_EVAL_AWS_LAMBDA_ENDPOINT=http://localhost:4566\" >> .env\ncp .env web/.env\ncp .env worker/.env\npnpm --filter=shared run db:generate\n# @langfuse/shared exports point at dist/ β web and worker vitest\n# import the BUILT package, so this build is load-bearing.\npnpm --filter=worker... run build\ntimeout 300 bash -c 'until [ -f /tmp/compose-up.exit ]; do sleep 1; done'\ncat /tmp/compose-up.log\n[ \"$(cat /tmp/compose-up.exit)\" = \"0\" ]\nwait \"$migrate_pid\"\npnpm run db:migrate\npnpm --filter=shared run db:seed\npnpm --filter=shared ch:up\n# ClickHouse client shim via the dev container (pipeline.yml trick,\n# avoids the ~300MB client download) for dev-tables setup.\nsudo tee /usr/local/bin/clickhouse > /dev/null <<'CLICKHOUSE_SHIM'\n#!/bin/bash\nexec docker exec -i langfuse-clickhouse clickhouse \"$@\"\nCLICKHOUSE_SHIM\nsudo chmod +x /usr/local/bin/clickhouse\npnpm --filter=shared ch:dev-tables\n# The sandbox reaches these services only via the host gateway\n# (host.docker.internal) β see the sandbox.agent.args comment. The\n# host-side steps above needed localhost, so rewrite the service\n# endpoints (port-scoped: app URLs like :3000 must stay localhost)\n# as the LAST provisioning action.\nsed -E -i 's#(localhost|127\\.0\\.0\\.1):(4566|5432|6379|8123|9000|9090)#host.docker.internal:\\2#g; s#^REDIS_HOST=.*#REDIS_HOST=\"host.docker.internal\"#' .env web/.env worker/.env\nmkdir -p /tmp/gh-aw && touch /tmp/gh-aw/db-stack-ready\n"- if: always()name: Docker logout (drop registry credentials before the agent starts)run: docker logout || true@@ -1106,7 +1106,7 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --tty --env-all --exclude-env ANTHROPIC_API_KEY --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull --allow-host-ports 80,443,8080,4566,5432,6379,8123,9000,9090 \+ sudo -E awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} ${GH_AW_DOCKER_HOST_PATH_PREFIX_ARGS} --tty --env-all --exclude-env ANTHROPIC_API_KEY --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --proxy-logs-dir /tmp/gh-aw/sandbox/firewall/logs --audit-dir /tmp/gh-aw/sandbox/firewall/audit --enable-host-access --allow-host-ports 80,443,8080 --skip-pull --allow-host-service-ports 4566,5432,6379,8123,9000,9090 \-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; export PATH="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')$PATH"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner β check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/claude_harness.cjs claude --print --no-chrome --max-turns 120 --allowed-tools '\''Bash(cat),Bash(cp),Bash(date),Bash(echo),Bash(git add:*),Bash(git branch:*),Bash(git checkout:*),Bash(git commit:*),Bash(git merge:*),Bash(git rm:*),Bash(git status),Bash(git switch:*),Bash(grep),Bash(head),Bash(jq),Bash(ls),Bash(node:*),Bash(npx:*),Bash(pnpm:*),Bash(printf),Bash(pwd),Bash(safeoutputs:*),Bash(sleep),Bash(sort),Bash(tail),Bash(timeout),Bash(uniq),Bash(wc),Bash(yq),BashOutput,Edit,Edit(/tmp/*),Edit(/tmp/gh-aw/agent/*),ExitPlanMode,Glob,Grep,KillBash,LS,MultiEdit,MultiEdit(/tmp/*),MultiEdit(/tmp/gh-aw/agent/*),NotebookEdit,NotebookRead,Read,Read(/tmp/*),Read(/tmp/gh-aw/agent/*),Task,TodoWrite,Write,Write(/tmp/*),Write(/tmp/gh-aw/agent/*),mcp__github__actions_get,mcp__github__actions_list,mcp__github__get_code_scanning_alert,mcp__github__get_commit,mcp__github__get_dependabot_alert,mcp__github__get_discussion,mcp__github__get_discussion_comments,mcp__github__get_file_contents,mcp__github__get_job_logs,mcp__github__get_label,mcp__github__get_latest_release,mcp__github__get_me,mcp__github__get_notification_details,mcp__github__get_pull_request,mcp__github__get_pull_request_comments,mcp__github__get_pull_request_diff,mcp__github__get_pull_request_files,mcp__github__get_pull_request_review_comments,mcp__github__get_pull_request_reviews,mcp__github__get_pull_request_status,mcp__github__get_release_by_tag,mcp__github__get_secret_scanning_alert,mcp__github__get_tag,mcp__github__issue_read,mcp__github__list_branches,mcp__github__list_code_scanning_alerts,mcp__github__list_commits,mcp__github__list_dependabot_alerts,mcp__github__list_discussion_categories,mcp__github__list_discussions,mcp__github__list_issue_types,mcp__github__list_issues,mcp__github__list_label,mcp__github__list_notifications,mcp__github__list_pull_requests,mcp__github__list_releases,mcp__github__list_secret_scanning_alerts,mcp__github__list_starred_repositories,mcp__github__list_tags,mcp__github__pull_request_read,mcp__github__search_code,mcp__github__search_issues,mcp__github__search_orgs,mcp__github__search_pull_requests,mcp__github__search_repositories,mcp__github__search_users,mcp__safeoutputs'\'' --debug-file /tmp/gh-aw/agent-stdio.log --verbose --permission-mode acceptEdits --output-format stream-json --mcp-config "${RUNNER_TEMP}/gh-aw/mcp-config/mcp-servers.json" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.logenv:ANTHROPIC_API_KEY: ${{ secrets.CLAUDE_API_KEY }}diff --git a/.github/workflows/ci-runtime-analyst.md b/.github/workflows/ci-runtime-analyst.mdindex 8e9a59d63c..e03c20e2a7 100644--- a/.github/workflows/ci-runtime-analyst.md+++ b/.github/workflows/ci-runtime-analyst.md@@ -78,17 +78,21 @@ timeout-minutes: 60# this frontmatter, since the compiler no longer enforces it.strict: false-# The compiler hardcodes AWF's `--allow-host-ports 80,443,8080` (80/443-# web, 8080 MCP gateway); there is no declarative knob for extra ports.-# This x-internal args passthrough appends a second --allow-host-ports,-# and AWF's CLI parser takes the last occurrence β so this REPLACES the-# list and must re-include 80,443,8080. Extra ports are the dev stack:-# floci 4566, postgres 5432, redis 6379, clickhouse 8123+9000, minio 9090.-# Schema-validated at compile; a gh-aw upgrade that drops it fails loudly.+# Open the dev-stack ports to the sandbox via this x-internal args+# passthrough β gh-aw has no declarative knob for extra host ports (it+# only auto-generates this flag from Actions `services:`, which our+# compose services can't be expressed as). --allow-host-service-ports is+# the right flag for databases: unlike --allow-host-ports it permits+# "dangerous" ports (5432 etc.) BY DESIGN because it routes them to the+# host gateway ONLY β so the agent must connect via host.docker.internal,+# never localhost (provisioning rewrites the .env endpoints accordingly).+# Ports: floci 4566, postgres 5432, redis 6379, clickhouse 8123+9000,+# minio 9090. Schema-validated at compile; a gh-aw upgrade that drops the+# passthrough fails loudly.sandbox:agent:id: awf- args: ["--allow-host-ports", "80,443,8080,4566,5432,6379,8123,9000,9090"]+ args: ["--allow-host-service-ports", "4566,5432,6379,8123,9000,9090"]network:allowed:@@ -190,6 +194,12 @@ steps:CLICKHOUSE_SHIMsudo chmod +x /usr/local/bin/clickhousepnpm --filter=shared ch:dev-tables+ # The sandbox reaches these services only via the host gateway+ # (host.docker.internal) β see the sandbox.agent.args comment. The+ # host-side steps above needed localhost, so rewrite the service+ # endpoints (port-scoped: app URLs like :3000 must stay localhost)+ # as the LAST provisioning action.+ sed -E -i 's#(localhost|127\.0\.0\.1):(4566|5432|6379|8123|9000|9090)#host.docker.internal:\2#g; s#^REDIS_HOST=.*#REDIS_HOST="host.docker.internal"#' .env web/.env worker/.envmkdir -p /tmp/gh-aw && touch /tmp/gh-aw/db-stack-ready- name: Docker logout (drop registry credentials before the agent starts)# docker login stores the token in ~/.docker/config.json, which the AWF@@ -524,15 +534,16 @@ Three boundaries:DB-less verification (the DB-less commands below still work β deps andbuilds may then be missing too, so run `pnpm install` +`pnpm --filter=shared run db:generate` yourself first).-- Connectivity: the services run on the host; your sandbox reaches them- because their ports are explicitly firewall-allowed. Use the `localhost`- endpoints from `.env` as-is. If a connection to a provisioned service is- refused, retry once against `host.docker.internal:<same port>` (copy- `.env` and swap only the DB/Redis/ClickHouse/S3 hostnames). If that also- fails, this run's infrastructure is broken: report it in the job summary- and fall back to DB-less verification. NEVER interpret- connection-refused errors against provisioned services as a test- regression or flaky test β they are an infra signal, not a code signal.+- Connectivity: the services run on the host, and your sandbox reaches+ them ONLY via `host.docker.internal` β the `.env` files are already+ rewritten to those endpoints, so use them as-is and never "fix" them+ back to `localhost` (in-sandbox localhost has no services; only an app+ you start yourself listens there, e.g. localhost:3000). If a connection+ to a provisioned `host.docker.internal` endpoint fails, this run's+ infrastructure is broken: report it in the job summary and fall back to+ DB-less verification. NEVER interpret connection-refused errors against+ provisioned services as a test regression or flaky test β they are an+ infra signal, not a code signal.- You cannot control docker itself (the socket is hidden): no restartingor inspecting containers, nothing beyond the dev-stack services. Thee2e-tests job (Playwright browsers against the built app) stays out of