πͺ’ 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: give the runtime analyst a DB test stack and readable charts (#14884)
Tobias Wochinger410059bf495e
diff --git a/.github/aw/actions-lock.json b/.github/aw/actions-lock.jsonindex 6aabbeafb7..c219e8f397 100644--- a/.github/aw/actions-lock.json+++ b/.github/aw/actions-lock.json@@ -4,6 +4,11 @@"repo": "github/gh-aw-actions/setup","version": "v0.82.0","sha": "2ad2a516e432f0a0000cfaed33d262a380f9e58f"+ },+ "pnpm/[email protected]": {+ "repo": "pnpm/action-setup",+ "version": "v6.0.9",+ "sha": "0ebf47130e4866e96fce0953f49152a61190b271"}}}diff --git a/.github/workflows/ci-runtime-analyst.lock.yml b/.github/workflows/ci-runtime-analyst.lock.ymlindex 6158e1b45c..2f660aedfc 100644--- a/.github/workflows/ci-runtime-analyst.lock.yml+++ b/.github/workflows/ci-runtime-analyst.lock.yml@@ -1,5 +1,5 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"64afed6944cca8e6da5cfce2f95bf703eff324f66562b0d0f7e2f78bd6faad5c","body_hash":"d89c8ccc081d6d65263fd8179ceb3ec1b47414bd636af69a68a4b6e6819f8546","compiler_version":"v0.82.0","strict":true,"agent_id":"claude","agent_model":"claude-opus-4-8","engine_versions":{"claude":"2.1.195"}}-# gh-aw-manifest: {"version":1,"secrets":["CLAUDE_API_KEY","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":"github/gh-aw-actions/setup","sha":"2ad2a516e432f0a0000cfaed33d262a380f9e58f","version":"v0.82.0"}],"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"}]}+# 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-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## ___ _ _@@ -27,6 +27,8 @@## Secrets used:# - 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@@ -42,7 +44,9 @@# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)# - actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+# - docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0# - github/gh-aw-actions/setup@2ad2a516e432f0a0000cfaed33d262a380f9e58f # v0.82.0+# - pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9## Container images used:# - ghcr.io/github/gh-aw-firewall/agent:0.27.13@sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b@@ -153,12 +157,12 @@ jobs:GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"- GH_AW_INFO_ALLOWED_DOMAINS: '["defaults","node","binaries.prisma.sh"]'+ GH_AW_INFO_ALLOWED_DOMAINS: '["defaults","node","binaries.prisma.sh","local"]'GH_AW_INFO_FIREWALL_ENABLED: "true"GH_AW_INFO_AWF_VERSION: "v0.27.13"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"- GH_AW_COMPILED_STRICT: "true"+ GH_AW_COMPILED_STRICT: "false"uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:script: |@@ -166,6 +170,11 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require('${{ runner.temp }}/gh-aw/actions/generate_aw_info.cjs');await main(core, context);+ - name: Enforce strict mode policy+ if: ${{ vars.GH_AW_POLICY_STRICT == 'true' }}+ run: |+ echo "::error::GH_AW_POLICY_STRICT=true but this workflow was not compiled in strict mode. Recompile with --strict or strict: true."+ exit 1- name: Restore daily AIC usage cacheid: restore-daily-aic-cacheif: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}@@ -507,12 +516,34 @@ jobs:run: |header=$(printf "x-access-token:%s" "${GH_AW_FETCH_TOKEN}" | base64 -w 0)git -c "http.extraheader=Authorization: Basic ${header}" fetch origin '+refs/heads/ci-perf/*:refs/remotes/origin/ci-perf/*'+ - name: Setup Node.js+ uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0+ with:+ node-version: '24'+ package-manager-cache: false- name: Create gh-aw temp directoryrun: bash "${RUNNER_TEMP}/gh-aw/actions/create_gh_aw_tmp_dir.sh"- name: Configure gh CLI for GitHub Enterpriserun: bash "${RUNNER_TEMP}/gh-aw/actions/configure_gh_for_ghe.sh"env:GH_TOKEN: ${{ github.token }}+ - name: Setup pnpm (mirrors pipeline.yml)+ uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9+ with:+ version: 11.10.0+ - continue-on-error: true+ name: Login to Docker Hub (avoids anonymous pull rate limits; mirrors pipeline.yml)+ uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0+ with:+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ - continue-on-error: true+ name: 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"+ - if: always()+ name: Docker logout (drop registry credentials before the agent starts)+ run: docker logout || true+# Repo memory git-based storage configuration from frontmatter processed below- name: Clone repo-memory branch (default)env:@@ -938,7 +969,11 @@ jobs:await main();- name: Clean credentialscontinue-on-error: true- run: bash "${RUNNER_TEMP}/gh-aw/actions/clean_git_credentials.sh"+ env:+ GH_AW_CLEAN_DOCKER: "true"+ run: |+ bash "${RUNNER_TEMP}/gh-aw/actions/clean_git_credentials.sh"+ bash "${RUNNER_TEMP}/gh-aw/actions/clean_known_action_credentials.sh"- name: Audit pre-agent workspaceid: pre_agent_auditcontinue-on-error: true@@ -968,8 +1003,10 @@ jobs:# - Bash(printf)# - Bash(pwd)# - Bash(safeoutputs:*)+ # - Bash(sleep)# - Bash(sort)# - Bash(tail)+ # - Bash(timeout)# - Bash(uniq)# - Bash(wc)# - Bash(yq)@@ -1049,7 +1086,7 @@ jobs:touch /tmp/gh-aw/agent-step-summary.md(umask 177 && touch /tmp/gh-aw/agent-stdio.log)GH_AW_MAX_AI_CREDITS="${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.13/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"*.githubusercontent.com\",\"anthropic.com\",\"api.anthropic.com\",\"api.github.com\",\"api.npms.io\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"binaries.prisma.sh\",\"bun.sh\",\"cdn.jsdelivr.net\",\"cdn.playwright.dev\",\"codeload.github.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"deb.nodesource.com\",\"deno.land\",\"esm.sh\",\"files.pythonhosted.org\",\"get.pnpm.io\",\"ghcr.io\",\"github-cloud.githubusercontent.com\",\"github-cloud.s3.amazonaws.com\",\"github.com\",\"googleapis.deno.dev\",\"googlechromelabs.github.io\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"jsr.io\",\"keyserver.ubuntu.com\",\"lfs.github.com\",\"nodejs.org\",\"npm.pkg.github.com\",\"npmjs.com\",\"npmjs.org\",\"objects.githubusercontent.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"playwright.download.prss.microsoft.com\",\"ppa.launchpad.net\",\"pypi.org\",\"raw.githubusercontent.com\",\"registry.bower.io\",\"registry.npmjs.com\",\"registry.npmjs.org\",\"registry.yarnpkg.com\",\"repo.yarnpkg.com\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"sentry.io\",\"skimdb.npmjs.com\",\"statsig.anthropic.com\",\"storage.googleapis.com\",\"telemetry.vercel.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\",\"www.npmjs.com\",\"www.npmjs.org\",\"yarnpkg.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.5\",\"gpt-5.4\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.13,squid=sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed,agent=sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b,agent-act=sha256:676de58a0abad8054cd9d4fc45b861715856819f083a268372d60bca0090018c,api-proxy=sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e,cli-proxy=sha256:79dfd3a5d139bd1956ba6d7d1782b831a07175cf5afa29c45cb20bb0140f23c5\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.13/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"*.githubusercontent.com\",\"127.0.0.1\",\"::1\",\"anthropic.com\",\"api.anthropic.com\",\"api.github.com\",\"api.npms.io\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"binaries.prisma.sh\",\"bun.sh\",\"cdn.jsdelivr.net\",\"cdn.playwright.dev\",\"codeload.github.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"deb.nodesource.com\",\"deno.land\",\"esm.sh\",\"files.pythonhosted.org\",\"get.pnpm.io\",\"ghcr.io\",\"github-cloud.githubusercontent.com\",\"github-cloud.s3.amazonaws.com\",\"github.com\",\"googleapis.deno.dev\",\"googlechromelabs.github.io\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"jsr.io\",\"keyserver.ubuntu.com\",\"lfs.github.com\",\"localhost\",\"nodejs.org\",\"npm.pkg.github.com\",\"npmjs.com\",\"npmjs.org\",\"objects.githubusercontent.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"playwright.download.prss.microsoft.com\",\"ppa.launchpad.net\",\"pypi.org\",\"raw.githubusercontent.com\",\"registry.bower.io\",\"registry.npmjs.com\",\"registry.npmjs.org\",\"registry.yarnpkg.com\",\"repo.yarnpkg.com\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"sentry.io\",\"skimdb.npmjs.com\",\"statsig.anthropic.com\",\"storage.googleapis.com\",\"telemetry.vercel.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\",\"www.npmjs.com\",\"www.npmjs.org\",\"yarnpkg.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.5\",\"gpt-5.4\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.13,squid=sha256:700b1b5a73098373b04fb684f291e95d9be0124ab559717b04f27acaf8b41bed,agent=sha256:691a06b64961b5b35aac117eaace202fa721e91da19d1d2e22dcdd6663cd571b,agent-act=sha256:676de58a0abad8054cd9d4fc45b861715856819f083a268372d60bca0090018c,api-proxy=sha256:c57febf4aeeefbb4fd96f5b12c07f4279ca55edca6a700032debf9dd0787286e,cli-proxy=sha256:79dfd3a5d139bd1956ba6d7d1782b831a07175cf5afa29c45cb20bb0140f23c5\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.jsonexport GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"GH_AW_DOCKER_HOST=""@@ -1069,8 +1106,8 @@ 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 \- -- /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(sort),Bash(tail),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.log+ 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 \+ -- /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 }}ANTHROPIC_MODEL: claude-opus-4-8@@ -1128,8 +1165,10 @@ jobs:const { main } = require('${{ runner.temp }}/gh-aw/actions/redact_secrets.cjs');await main();env:- GH_AW_SECRET_NAMES: 'CLAUDE_API_KEY,GH_AW_CI_ANALYST_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN'+ GH_AW_SECRET_NAMES: 'CLAUDE_API_KEY,DOCKERHUB_TOKEN_READ,DOCKERHUB_USERNAME_READ,GH_AW_CI_ANALYST_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN'SECRET_CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }}+ SECRET_DOCKERHUB_TOKEN_READ: ${{ secrets.DOCKERHUB_TOKEN_READ }}+ SECRET_DOCKERHUB_USERNAME_READ: ${{ secrets.DOCKERHUB_USERNAME_READ }}SECRET_GH_AW_CI_ANALYST_TOKEN: ${{ secrets.GH_AW_CI_ANALYST_TOKEN }}SECRET_GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}SECRET_GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}@@ -1150,7 +1189,7 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}- GH_AW_ALLOWED_DOMAINS: "*.githubusercontent.com,anthropic.com,api.anthropic.com,api.github.com,api.npms.io,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,binaries.prisma.sh,bun.sh,cdn.jsdelivr.net,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,deb.nodesource.com,deno.land,esm.sh,files.pythonhosted.org,get.pnpm.io,ghcr.io,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.com,googleapis.deno.dev,googlechromelabs.github.io,host.docker.internal,json-schema.org,json.schemastore.org,jsr.io,keyserver.ubuntu.com,lfs.github.com,nodejs.org,npm.pkg.github.com,npmjs.com,npmjs.org,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,pypi.org,raw.githubusercontent.com,registry.bower.io,registry.npmjs.com,registry.npmjs.org,registry.yarnpkg.com,repo.yarnpkg.com,s.symcb.com,s.symcd.com,security.ubuntu.com,sentry.io,skimdb.npmjs.com,statsig.anthropic.com,storage.googleapis.com,telemetry.vercel.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com,www.npmjs.com,www.npmjs.org,yarnpkg.com"+ GH_AW_ALLOWED_DOMAINS: "*.githubusercontent.com,127.0.0.1,::1,anthropic.com,api.anthropic.com,api.github.com,api.npms.io,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,binaries.prisma.sh,bun.sh,cdn.jsdelivr.net,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,deb.nodesource.com,deno.land,esm.sh,files.pythonhosted.org,get.pnpm.io,ghcr.io,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.com,googleapis.deno.dev,googlechromelabs.github.io,host.docker.internal,json-schema.org,json.schemastore.org,jsr.io,keyserver.ubuntu.com,lfs.github.com,localhost,nodejs.org,npm.pkg.github.com,npmjs.com,npmjs.org,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,pypi.org,raw.githubusercontent.com,registry.bower.io,registry.npmjs.com,registry.npmjs.org,registry.yarnpkg.com,repo.yarnpkg.com,s.symcb.com,s.symcd.com,security.ubuntu.com,sentry.io,skimdb.npmjs.com,statsig.anthropic.com,storage.googleapis.com,telemetry.vercel.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com,www.npmjs.com,www.npmjs.org,yarnpkg.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}with:@@ -2010,7 +2049,7 @@ jobs:env:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}- GH_AW_ALLOWED_DOMAINS: "*.githubusercontent.com,anthropic.com,api.anthropic.com,api.github.com,api.npms.io,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,binaries.prisma.sh,bun.sh,cdn.jsdelivr.net,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,deb.nodesource.com,deno.land,esm.sh,files.pythonhosted.org,get.pnpm.io,ghcr.io,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.com,googleapis.deno.dev,googlechromelabs.github.io,host.docker.internal,json-schema.org,json.schemastore.org,jsr.io,keyserver.ubuntu.com,lfs.github.com,nodejs.org,npm.pkg.github.com,npmjs.com,npmjs.org,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,pypi.org,raw.githubusercontent.com,registry.bower.io,registry.npmjs.com,registry.npmjs.org,registry.yarnpkg.com,repo.yarnpkg.com,s.symcb.com,s.symcd.com,security.ubuntu.com,sentry.io,skimdb.npmjs.com,statsig.anthropic.com,storage.googleapis.com,telemetry.vercel.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com,www.npmjs.com,www.npmjs.org,yarnpkg.com"+ GH_AW_ALLOWED_DOMAINS: "*.githubusercontent.com,127.0.0.1,::1,anthropic.com,api.anthropic.com,api.github.com,api.npms.io,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,binaries.prisma.sh,bun.sh,cdn.jsdelivr.net,cdn.playwright.dev,codeload.github.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,deb.nodesource.com,deno.land,esm.sh,files.pythonhosted.org,get.pnpm.io,ghcr.io,github-cloud.githubusercontent.com,github-cloud.s3.amazonaws.com,github.com,googleapis.deno.dev,googlechromelabs.github.io,host.docker.internal,json-schema.org,json.schemastore.org,jsr.io,keyserver.ubuntu.com,lfs.github.com,localhost,nodejs.org,npm.pkg.github.com,npmjs.com,npmjs.org,objects.githubusercontent.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,playwright.download.prss.microsoft.com,ppa.launchpad.net,pypi.org,raw.githubusercontent.com,registry.bower.io,registry.npmjs.com,registry.npmjs.org,registry.yarnpkg.com,repo.yarnpkg.com,s.symcb.com,s.symcd.com,security.ubuntu.com,sentry.io,skimdb.npmjs.com,statsig.anthropic.com,storage.googleapis.com,telemetry.vercel.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com,www.npmjs.com,www.npmjs.org,yarnpkg.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":3,\"required_labels\":[\"ci-performance\"],\"required_title_prefix\":\"ci(perf): \",\"target\":\"*\"},\"close_pull_request\":{\"max\":1,\"required_labels\":[\"ci-performance\"],\"required_title_prefix\":\"ci(perf): \",\"target\":\"*\"},\"create_issue\":{\"assignees\":[\"wochinge\"],\"labels\":[\"ci-performance\"],\"max\":1,\"title_prefix\":\"ci(perf): \"},\"create_pull_request\":{\"allowed_branches\":[\"ci-perf/**\"],\"allowed_files\":[\"web/vitest.config.mts\",\"worker/vitest.config.ts\",\"scripts/vitest/**\",\"turbo.json\",\"docker-compose.dev*.yml\",\"web/**/*.test.ts\",\"web/**/*.test.tsx\",\"web/**/*.servertest.ts\",\"web/**/*.servertest.tsx\",\"web/**/*.clienttest.ts\",\"web/**/*.clienttest.tsx\",\"worker/**/*.test.ts\",\"packages/shared/**/*.test.ts\"],\"assignees\":[\"wochinge\"],\"draft\":false,\"labels\":[\"ci-performance\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"CLAUDE.md\",\"AGENTS.md\"],\"protected_files_policy\":\"request_review\",\"reviewers\":[\"wochinge\"],\"title_prefix\":\"ci(perf): \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"push_to_pull_request_branch\":{\"allowed_files\":[\"web/vitest.config.mts\",\"worker/vitest.config.ts\",\"scripts/vitest/**\",\"turbo.json\",\"docker-compose.dev*.yml\",\"web/**/*.test.ts\",\"web/**/*.test.tsx\",\"web/**/*.servertest.ts\",\"web/**/*.servertest.tsx\",\"web/**/*.clienttest.ts\",\"web/**/*.clienttest.tsx\",\"worker/**/*.test.ts\",\"packages/shared/**/*.test.ts\"],\"if_no_changes\":\"warn\",\"max\":1,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"CHANGELOG.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"CLAUDE.md\",\"AGENTS.md\"],\"required_labels\":[\"ci-performance\"],\"target\":\"*\",\"title_prefix\":\"ci(perf): \"},\"report_incomplete\":{}}"diff --git a/.github/workflows/ci-runtime-analyst.md b/.github/workflows/ci-runtime-analyst.mdindex 4790abd3bb..8e9a59d63c 100644--- a/.github/workflows/ci-runtime-analyst.md+++ b/.github/workflows/ci-runtime-analyst.md@@ -70,6 +70,26 @@ engine:timeout-minutes: 60+# strict: false is required ONLY because sandbox.agent.args below is an+# internal field. Strict mode is compile-time linting, not runtime+# protection β everything it checks we keep manually: permissions stay+# read-only, network stays explicit (no wildcards), the sandbox stays+# enabled, no deprecated/XPIA fields. Re-verify that list when editing+# 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.+sandbox:+ agent:+ id: awf+ args: ["--allow-host-ports", "80,443,8080,4566,5432,6379,8123,9000,9090"]+network:allowed:- defaults@@ -77,6 +97,106 @@ network:# prisma postinstall/generate downloads query engines from here; needed# so `pnpm install` + shared-package tests work inside the sandbox.- "binaries.prisma.sh"+ # Loopback (localhost/127.0.0.1): the dev docker-compose stack is started+ # on the host by the custom step below; the sandboxed agent reaches it on+ # its published localhost ports to run DB-backed test suites.+ - local++# Custom steps run in the agent job on the HOST, before the AWF sandbox+# starts β docker/sudo are available here but not inside the sandbox (the+# socket is hidden, system paths read-only). They provision the same test+# environment as pipeline.yml's tests-web/tests-worker jobs so the agent+# can run DB-backed suites against 127.0.0.1 without any setup of its own.+# Runs for assessment mode too: diagnosing a failing DB-backed test on a+# PR branch is exactly when the stack is needed.+# KEEP IN SYNC with pipeline.yml (env recipe, migrate version, commands).+# No setup-node here: gh-aw's built-in "Setup Node.js" step already+# installs node 24, and adding one with `cache: pnpm` gets merged BEFORE+# pnpm/action-setup runs, where only the runner-image pnpm exists β a+# wrong-store-path trap. Uncached pnpm install costs ~1 min on this+# weekly job; determinism wins.+steps:+ - name: Setup pnpm (mirrors pipeline.yml)+ uses: pnpm/[email protected]+ with:+ version: 11.10.0+ - name: Login to Docker Hub (avoids anonymous pull rate limits; mirrors pipeline.yml)+ # continue-on-error: if the secrets are unavailable in this environment,+ # degrade to anonymous pulls instead of failing the run.+ continue-on-error: true+ uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME_READ }}+ password: ${{ secrets.DOCKERHUB_TOKEN_READ }}+ - name: Provision DB test stack (best effort, mirrors pipeline.yml test jobs)+ # continue-on-error: an infra flake degrades the run to DB-less+ # verification instead of killing the whole analysis. The agent must+ # check for /tmp/gh-aw/db-stack-ready before relying on DB suites.+ continue-on-error: true+ run: |+ set -euo pipefail+ # Overlap the two slow downloads with pnpm install (like pipeline.yml).+ # worker-tests profile adds floci (lambda endpoint for awsLambda tests).+ # HOST_IP=0.0.0.0: publish beyond host-loopback so the sandboxed agent+ # can reach the services through the AWF host gateway as well.+ (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) &+ (+ set -e+ curl --fail --location --retry 5 --retry-delay 2 --retry-all-errors \+ --output /tmp/migrate.linux-amd64.tar.gz \+ https://github.com/golang-migrate/migrate/releases/download/v4.19.1/migrate.linux-amd64.tar.gz+ echo "2ac648fbd1b127b69ab5a7b33cf96212178f71e22379fc50573630c6f4c7ce18 /tmp/migrate.linux-amd64.tar.gz" | sha256sum -c -+ tar xzf /tmp/migrate.linux-amd64.tar.gz -C /tmp+ sudo mv /tmp/migrate /usr/bin/migrate+ ) > /tmp/migrate-install.log 2>&1 &+ migrate_pid=$!+ pnpm install+ # tests-web "Load default env" recipe (default deploy mode), then+ # copies for worker-job parity (tests-worker reads worker/.env).+ grep -v -e '^LANGFUSE_S3_BATCH_EXPORT_ENABLED=' -e '^NEXT_PUBLIC_LANGFUSE_RUN_NEXT_INIT=' .env.dev.example > .env+ {+ echo "LANGFUSE_INGESTION_QUEUE_DELAY_MS=1"+ echo "LANGFUSE_CACHE_PROMPT_ENABLED=false"+ echo "LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=1"+ echo "LANGFUSE_TRACE_DELETE_DELAY_MS=1"+ echo "LANGFUSE_TRACE_DELETE_CONCURRENCY=100"+ echo "ADMIN_API_KEY=admin-api-key"+ echo "LANGFUSE_EE_LICENSE_KEY=langfuse_ee_test"+ echo "LANGFUSE_SKIP_EVALUATOR_MODEL_CALL_VALIDATION=true"+ echo "LANGFUSE_ENABLE_SCORES_V3_API=true"+ } >> .env+ # pipeline.yml passes this as a step env var; baked into the ROOT .env+ # (which worker/vitest.config.ts loads via ../.env β worker/.env is+ # never read by vitest) so the agent needs no env prefixes.+ echo "LANGFUSE_CODE_EVAL_AWS_LAMBDA_ENDPOINT=http://localhost:4566" >> .env+ cp .env web/.env+ cp .env worker/.env+ pnpm --filter=shared run db:generate+ # @langfuse/shared exports point at dist/ β web and worker vitest+ # import the BUILT package, so this build is load-bearing.+ pnpm --filter=worker... run build+ timeout 300 bash -c 'until [ -f /tmp/compose-up.exit ]; do sleep 1; done'+ cat /tmp/compose-up.log+ [ "$(cat /tmp/compose-up.exit)" = "0" ]+ wait "$migrate_pid"+ pnpm run db:migrate+ pnpm --filter=shared run db:seed+ pnpm --filter=shared ch:up+ # ClickHouse client shim via the dev container (pipeline.yml trick,+ # avoids the ~300MB client download) for dev-tables setup.+ sudo tee /usr/local/bin/clickhouse > /dev/null <<'CLICKHOUSE_SHIM'+ #!/bin/bash+ exec docker exec -i langfuse-clickhouse clickhouse "$@"+ CLICKHOUSE_SHIM+ sudo chmod +x /usr/local/bin/clickhouse+ pnpm --filter=shared ch:dev-tables+ mkdir -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+ # sandbox mounts read-write into the agent container. Nothing after+ # provisioning pulls images, so drop the credentials unconditionally.+ if: always()+ run: docker logout || truetools:github:@@ -97,6 +217,9 @@ tools:"cat","ls","cp",+ # Waiting on migrations/app startup when exercising DB-backed suites.+ "sleep",+ "timeout",]edit:repo-memory:@@ -382,20 +505,46 @@ this layout:## Verify changes before requesting a PR-You are working in a full checkout of the repository and may run `pnpm`,-`npx`, and `node` to test your changes before proposing them. Docker is NOT-available in your sandbox, so anything needing the docker-compose dev stack-(Postgres/ClickHouse/Redis/Minio) β the web `server`/`server-isolated`-projects, worker tests, e2e tests β cannot be run here; everything else can.--Standard setup (mirrors `pipeline.yml`):--1. `pnpm install`-2. `cp .env.dev.example .env`-3. For anything importing `@langfuse/shared`: `pnpm --filter=shared run db:generate`- (schema-only; needs no database).--Then run the narrowest check that actually exercises your change, e.g.:+You are working in a full checkout of the repository, provisioned on the+host before your sandbox started to mirror `pipeline.yml`'s test jobs:+dependencies are installed (`pnpm install` already ran), `.env` (plus+`web/.env`, `worker/.env`) carries the CI env recipe, the prisma client is+generated, `@langfuse/shared` and `worker` are built, and the dev+docker-compose stack (Postgres, ClickHouse, Redis, Minio, plus floci for+the worker awsLambda tests) is up on its usual localhost ports β migrated,+seeded, ClickHouse dev tables included. DB-backed suites (the web+`server`/`server-isolated` projects, worker tests) are therefore runnable+directly, with no setup of your own.++Three boundaries:++- Provisioning is best-effort: it succeeded if and only if+ `/tmp/gh-aw/db-stack-ready` exists. Check it once before relying on+ DB-backed suites; if absent, say so in the report and fall back to+ DB-less verification (the DB-less commands below still work β deps and+ builds 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.+- You cannot control docker itself (the socket is hidden): no restarting+ or inspecting containers, nothing beyond the dev-stack services. The+ e2e-tests job (Playwright browsers against the built app) stays out of+ scope β the PR's own CI run covers it.++CRITICAL rebuild rule: web and worker vitest import `@langfuse/shared`+(and worker code paths) from `dist/`, not source. After editing any file+under `packages/shared/` or `worker/src/`, run+`pnpm --filter=worker... run build` before re-running tests β otherwise+you are measuring the OLD code.++Run the narrowest check that actually exercises your change, e.g.:- vitest config changes (`web/vitest.config.mts`, `worker/vitest.config.ts`,`scripts/vitest/**`): run a DB-less project against the new config, e.g.@@ -407,8 +556,23 @@ Then run the narrowest check that actually exercises your change, e.g.:`pnpm --filter @repo/eslint-plugin run test`.- `turbo.json` changes: `npx turbo run build --dry-run` (or the affectedtask) to prove the pipeline graph still resolves as intended.-- targeted flaky-test fixes: run that test file's project if it is DB-less;- if it needs the dev stack, say so and rely on the PR's CI run.+- targeted slow/flaky-test fixes and other DB-backed checks: run exactly+ that test file, with the same invocation CI uses, e.g.+ `cd web && npx dotenv -e ../.env.test -e ../.env -- vitest run --project server <file>`+ (pipeline.yml's exact flags) or `pnpm --filter worker run test <file>`.+ Prefer single files over full DB suites β the latter take tens of+ minutes for little extra signal. Time the file before and after your+ change (the vitest summary prints durations); a claimed speedup needs+ both numbers, and the after-run needs the rebuild rule above.+- exception: some web servertests call the running app over HTTP+ (localhost:3000). Starting it costs a full `pnpm run build` ++ `pnpm run start` (~10 min) β do this only when the change under+ verification genuinely requires it; otherwise state that this specific+ file is covered by the PR's CI run.++Optimization candidates that earlier weeks deferred as "DB-backed β not+sandbox-verifiable" (check `notes.md`) are now verifiable; re-evaluate them+before hunting for new ones.Rules:@@ -420,7 +584,8 @@ Rules:proving check could not run in the sandbox β mark it"not verifiable in sandbox; validated by this PR's CI run" instead. Thepull request itself triggers the full CI/CD pipeline, which is the- authoritative verification for DB-backed suites.+ authoritative verification for what still cannot run here (e2e, tests+ needing the running app).## Assessment loop (assess CI results, iterate or close)@@ -504,46 +669,65 @@ A PR body additionally contains:quoted summary line) and, separately, what could not run in the sandboxand is covered by this PR's own CI run.-Chart template (GitHub renders `mermaid` fenced blocks natively). Copy it+Chart templates (GitHub renders `mermaid` fenced blocks natively). Copy themverbatim and only fill in the data: the x-axis days (every day that has-merge-group runs), the six value lists (daily merge-group medians in-seconds, same day order), and the y-axis maximum (largest value rounded up-to the next 100). Do not change the structure or the series order, and do-not move the legend into the chart title β long xychart titles get clipped-when rendered, so the legend line above the chart is the readable one.+merge-group runs), the value lists (daily merge-group medians in seconds,+same day order), and each y-axis maximum (largest value in that chart+rounded up to the next 100). Everything else is load-bearing β do NOT+change it: the `init` line pins the series colors so that the emoji legend+line above each chart identifies the lines (xychart has no built-in legend,+and colors are otherwise theme-dependent). Palette order = series order =+legend order: π΅ `#3987e5`, π `#de5a20`, π£ `#8875e0`. Never put more than+three series in one chart, and never move the legend into the chart title+(long titles get clipped).- Lines: 1 run tests Β· 2 Build Β· 3 e2e-tests Β· 4 runner wait Β· 5 overall incl. wait Β· 6 overall excl. wait+**Chart 1 β pipeline totals:**++ π΅ overall incl. wait Β· π overall excl. wait Β· π£ runner wait```mermaid+ %%{init: {"themeVariables": {"xyChart": {"plotColorPalette": "#3987e5,#de5a20,#8875e0"}}}}%%xychart-beta- title "Daily merge-group medians (seconds), lines 1-6"+ title "Daily merge-group medians: pipeline totals (seconds)"x-axis [MM-DD, MM-DD, MM-DD]y-axis "seconds" 0 --> 600line [0, 0, 0]line [0, 0, 0]line [0, 0, 0]+ ```++ The gap between π΅ and π is the runner-wait share, plotted directly+ as π£.++**Chart 2 β critical-path segments:**++ π΅ run tests Β· π Build Β· π£ e2e-tests++ ```mermaid+ %%{init: {"themeVariables": {"xyChart": {"plotColorPalette": "#3987e5,#de5a20,#8875e0"}}}}%%+ xychart-beta+ title "Daily merge-group medians: segments (seconds)"+ x-axis [MM-DD, MM-DD, MM-DD]+ y-axis "seconds" 0 --> 600line [0, 0, 0]line [0, 0, 0]line [0, 0, 0]```- Line 5 is the perceived/wall time (includes runner wait), line 6 the- execution time (excludes it); their gap visualizes the wait share. Since- xychart has no legend, follow the chart with this table carrying the same- numbers:+ Follow the charts with one table carrying the same numbers:- | Day | run tests | Build | e2e-tests | runner wait | overall incl. wait | overall excl. wait |+ | Day | overall incl. wait | overall excl. wait | runner wait | run tests | Build | e2e-tests ||---|---|---|---|---|---|---|| MM-DD | β¦ | β¦ | β¦ | β¦ | β¦ | β¦ |- Once `history/*.json` holds at least two weeks, add a second chart using- the same template shape with ISO weeks on the x-axis (weekly medians,- same six series).+ Once `history/*.json` holds at least two weeks, add the same two charts+ with ISO weeks on the x-axis (weekly medians, same series and legends).Additionally, render the same weekly data as a standalone SVG chart(hand-write the SVG: time on x, seconds on y, one polyline per series with-axis labels β similar to a typical CI timings explorer) and save it to-`charts/<ISO-week>.svg` in repo memory. Link to it from the PR body as a+axis labels, using the same palette as the mermaid charts, and an in-SVG+legend β a colored swatch plus series name per line, placed in a corner+clear of the data) and save it to `charts/<ISO-week>.svg` in repo memory. Link to it from the PR body as a`https://github.com/langfuse/langfuse/blob/memory/ci-runtime-analysis/...`URL; determine the exact in-branch path by listing the branch contents viathe GitHub API (previous weeks' charts show the layout). On the very first