πͺ’ 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: analyst follow-ups β fable model, chart series, analysis population (#14862)
Tobias Wochingerbc0786b6f0ea
diff --git a/.github/workflows/ci-runtime-analyst.lock.yml b/.github/workflows/ci-runtime-analyst.lock.ymlindex 8e4b7e986a..f5f595a182 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":"2e677b1d55c01caf78bed86ebaeecdc3a00cdd79fd92ae92df4b142839e5da24","body_hash":"2b8a040d4b5da9f5c9e73936e46b9446a6ca23cc31499b5e8f774b4ce3cb325c","compiler_version":"v0.82.0","strict":true,"agent_id":"claude","engine_versions":{"claude":"2.1.195"}}+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"7e3e8a92ad9184cf8ce9640d8ce9b4c8048c5d019895784cee72e1a430626702","body_hash":"e3673a17a2617987321d23719a920a571182c7e489f6559bdf54906467238bb3","compiler_version":"v0.82.0","strict":true,"agent_id":"claude","agent_model":"claude-fable-5","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"}]}# 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#@@ -55,7 +55,8 @@name: "Weekly CI runtime analyst"on:schedule:- - cron: "0 6 * * 1"+ - cron: "25 5 * * 1"+ # Friendly format: weekly on monday around 06:00 (scattered)# steps: # Steps injected into pre-activation job# - env:# GH_TOKEN: ${{ github.token }}@@ -144,7 +145,7 @@ jobs:env:GH_AW_INFO_ENGINE_ID: "claude"GH_AW_INFO_ENGINE_NAME: "Claude Code"- GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_CLAUDE || vars.GH_AW_DEFAULT_MODEL_CLAUDE || 'agent' }}+ GH_AW_INFO_MODEL: "claude-fable-5"GH_AW_INFO_VERSION: "2.1.195"GH_AW_INFO_AGENT_VERSION: "2.1.195"GH_AW_INFO_CLI_VERSION: "v0.82.0"@@ -1069,9 +1070,10 @@ jobs:fi# shellcheck disable=SC1003,SC2016,SC2086sudo -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${GH_AW_MODEL_AGENT_CLAUDE:+ --model "$GH_AW_MODEL_AGENT_CLAUDE"}' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log+ -- /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.logenv:ANTHROPIC_API_KEY: ${{ secrets.CLAUDE_API_KEY }}+ ANTHROPIC_MODEL: claude-fable-5BASH_DEFAULT_TIMEOUT_MS: 60000BASH_MAX_TIMEOUT_MS: 60000CLAUDE_CODE_DISABLE_FAST_MODE: 1@@ -1081,7 +1083,6 @@ jobs:GH_AW_LLM_PROVIDER: anthropicGH_AW_MAX_TURNS: 120GH_AW_MCP_CONFIG: ${{ runner.temp }}/gh-aw/mcp-config/mcp-servers.json- GH_AW_MODEL_AGENT_CLAUDE: ${{ vars.GH_AW_MODEL_AGENT_CLAUDE || vars.GH_AW_DEFAULT_MODEL_CLAUDE || '' }}GH_AW_PHASE: agentGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}@@ -1688,9 +1689,10 @@ jobs:fi# shellcheck disable=SC1003,SC2016,SC2086sudo -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 --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; : "${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 --allowed-tools '\''Bash,BashOutput,Edit(/tmp/*),ExitPlanMode,Glob,Grep,KillBash,LS,MultiEdit(/tmp/*),NotebookRead,Read,Read(/tmp/*),Task,TodoWrite,Write(/tmp/*)'\'' --debug-file /tmp/gh-aw/threat-detection/detection.log --verbose --permission-mode acceptEdits --output-format stream-json --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt${GH_AW_MODEL_DETECTION_CLAUDE:+ --model "$GH_AW_MODEL_DETECTION_CLAUDE"}' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log+ -- /bin/bash -c 'set +o histexpand; : "${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 --allowed-tools '\''Bash,BashOutput,Edit(/tmp/*),ExitPlanMode,Glob,Grep,KillBash,LS,MultiEdit(/tmp/*),NotebookRead,Read,Read(/tmp/*),Task,TodoWrite,Write(/tmp/*)'\'' --debug-file /tmp/gh-aw/threat-detection/detection.log --verbose --permission-mode acceptEdits --output-format stream-json --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.logenv:ANTHROPIC_API_KEY: ${{ secrets.CLAUDE_API_KEY }}+ ANTHROPIC_MODEL: claude-fable-5BASH_DEFAULT_TIMEOUT_MS: 60000BASH_MAX_TIMEOUT_MS: 60000CLAUDE_CODE_DISABLE_FAST_MODE: 1@@ -1699,7 +1701,6 @@ jobs:DISABLE_TELEMETRY: 1GH_AW_LLM_PROVIDER: anthropicGH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}- GH_AW_MODEL_DETECTION_CLAUDE: ${{ vars.GH_AW_MODEL_DETECTION_CLAUDE || vars.GH_AW_DEFAULT_MODEL_CLAUDE || '' }}GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_VERSION: v0.82.0@@ -1917,7 +1918,7 @@ jobs:GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }}GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }}GH_AW_ENGINE_ID: "claude"- GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }}+ GH_AW_ENGINE_MODEL: "claude-fable-5"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-runtime-analyst"diff --git a/.github/workflows/ci-runtime-analyst.md b/.github/workflows/ci-runtime-analyst.mdindex 3ca53ed1dd..f3787da1b7 100644--- a/.github/workflows/ci-runtime-analyst.md+++ b/.github/workflows/ci-runtime-analyst.md@@ -2,8 +2,9 @@description: Weekly CI runtime analysis for pipeline.yml (merge-group focused) with trend memoryon:schedule:- # Monday: full weekly analysis (may open a PR).- - cron: "0 6 * * 1"+ # Monday morning: full weekly analysis (may open a PR). Fuzzy syntax so+ # gh-aw scatters the exact minute deterministically (avoids load spikes).+ - cron: "weekly on monday around 06:00"# Fires the moment CI/CD finishes on one of this agent's own PR branches# (all agent PRs use the ci-perf/ branch prefix): assess the measured# impact, then push a fix, comment the results, or close the PR.@@ -58,6 +59,7 @@ checkout:engine:id: claude+ model: claude-fable-5max-turns: 120env:ANTHROPIC_API_KEY: ${{ secrets.CLAUDE_API_KEY }}@@ -181,6 +183,52 @@ This run was triggered by the `${{ github.event_name }}` event.loop" section for the matching PR. If no open ledger PR matches, emitnoop and finish immediately.+## Run checklists++Work through the checklist matching this run's trigger, top to bottom. Each+item names the section holding the full rules β follow those, the checklist+is only the spine.++**Weekly analysis run** (`schedule` or `workflow_dispatch` β may create a PR):++- [ ] Read memory first: history, `prs.json` ledger, `notes.md` ("Memory").+ If memory is empty this is the baseline week: still do everything+ below, but plan for noop instead of a PR.+- [ ] Refresh every non-closed ledger entry; run the "Assessment loop" for+ any open agent PR whose CI has completed; judge merged entries against+ post-merge numbers.+- [ ] Compute this week's timing metrics (merge-group only) and compare+ against history ("Metric definitions", "Judging and acting").+- [ ] Parse vitest logs; update week-over-week flaky-test tracking+ ("Vitest output analysis").+- [ ] Decide the outcome: verified in-surface improvement β PR on a+ `ci-perf/` branch with `expectedImpact` recorded in the ledger+ ("Judging and acting", "Verify changes before requesting a PR");+ pipeline.yml-only proposal β comment on this run's PR or a single+ issue; nothing actionable β noop.+- [ ] Update all memory files, including `charts/<week>.svg` and pruned+ `notes.md`.+- [ ] Write the report with the filled-in chart template to the job summary+ and into any PR/issue body ("Report and graph").++**Assessment run** (`workflow_run` β CI/CD just finished on one of your PRs):++- [ ] Match the completed CI run to an open ledger PR via the ledger and+ the actions API. No match β noop and stop.+- [ ] CI failed β diagnose from the failing job's logs; clear in-surface+ fix β verify it, push it (one commit), comment the explanation; wrong+ approach β close the PR with what was learned, record it in+ `notes.md` ("Assessment loop" step 2).+- [ ] CI green β extract the PR run's timing metrics and compare against+ the ledger's `expectedImpact` baseline ("Assessment loop" step 3).+- [ ] Verdict: impact confirmed β comment measured before/after numbers;+ inconclusive β comment and leave open for post-merge confirmation;+ no impact/regression β iterate (max 2 per PR) or close with the+ numbers.+- [ ] Update the ledger entry (`ciStatus`, `followUps`) and summarize the+ action in the job summary.+- [ ] Never touch PRs that are not in the ledger, and never merge.+## Metric definitions (use these exactly)For every completed run, using the GitHub Actions API@@ -201,23 +249,42 @@ with `created=<from>..<to>`, then `GET /repos/{owner}/{repo}/actions/runs/{id}/j`run tests` step. Also record the total duration of the `e2e-tests` job,which is typically on the critical path.-Primary population: runs with `event == "merge_group"` β these actually carry-code changes into main and are the population that matters. Compute the same-aggregates for `pull_request` and `push` runs only as a comparison baseline.-Analyze successful runs for timing statistics; count failed/cancelled runs-separately as context (do not mix their timings into medians).+Population rules:++- **Timing statistics** (perceived/wall, execution, runner wait, segment+ medians) come exclusively from successful `merge_group` runs β they carry+ the code changes into main and are directly comparable. Do not mix+ `pull_request` or `push` timings into these aggregates.+- **Everything else** (vitest output analysis, slowest tests,+ retried/flaky tests) draws on all successful runs of the week regardless+ of event, EXCEPT runs on `main` (`push` events) β i.e. `merge_group` plus+ `pull_request` runs.+- Exclude failed and cancelled runs from every analysis; count them+ separately as context only.## Vitest output analysis-For a sample of merge-group runs spread across the week (at least 5 runs, or-all runs if fewer), download the log of the `run tests` step of the+For a sample of successful runs spread across the week β `merge_group` and+`pull_request` events, never `push`/main runs (at least 5 runs, or all runs+if fewer), download the log of the `run tests` step of the`tests-web (β¦)` matrix jobs and of the `tests-worker (β¦)` matrix jobs (joblogs API / `get_job_logs`; the interesting part is the end of the step). Our-CI reporter (`scripts/vitest/ci-reporter.ts`) prints at the end of every run:--- `Slowest tests (top 10):` β ranked list with durations, and per-test- markers `[retries=N]` and `[flaky]` for tests that needed vitest retries.-- A slowest-files section aggregating per-file durations.+CI reporter (`scripts/vitest/ci-reporter.ts`) prints up to three blocks at+the end of every run:++- `Slowest tests (top 10):` β ranked list with durations; a test that+ needed vitest retries additionally carries ` [retries=N]` and possibly+ ` [flaky]` suffixes.+- `Slowest test files (top 10, summed test durations):` β per-file+ aggregation.+- `Retried tests (N):` β the authoritative, complete list of every test+ that retried in the run (lines look like+ `1. retries=2 <file> > <name> [flaky]` β note: no brackets around+ `retries=` here). This block is printed ONLY when at least one test+ retried, so its absence means zero retries in that run. Use this block,+ not the slowest-tests markers, as the source of truth for flaky+ tracking β a flaky test that isn't among the 10 slowest appears only+ here.Aggregate across the sampled runs:@@ -233,9 +300,10 @@ Read the memory folder before analyzing; update it before finishing. Keepthis layout:- `history/<ISO-week, e.g. 2026-W28>.json` β one file per analyzed week:- per-event-type aggregates (run count, p50/p90 perceived, p50/p90- execution, p50/p90 runner wait, median Build step, median `run tests`- step, median e2e-tests job), plus the week's flaky-test list.+ merge-group timing aggregates (run count, p50/p90 perceived, p50/p90+ execution, p50/p90 runner wait, daily and weekly medians for the Build+ step, `run tests` step, and e2e-tests job), plus the week's slowest and+ flaky tests (from merge-group + pull-request runs).- `prs.json` β ledger of every PR and issue this workflow has opened, oldestfirst, entries: `{number, url, openedAt, title, branch, proposals: [..],expectedImpact: {metric, baseline, expected}, baselineStats: {..},@@ -383,12 +451,38 @@ Every PR (or issue) body must contain:- A "Verification" section listing every check you ran (exact command +quoted summary line) and, separately, what could not run in the sandboxand is covered by this PR's own CI run.-- A **Mermaid chart** (GitHub renders `mermaid` fenced blocks natively) β- use `xychart-beta` with the days of the week on the x-axis and two line- series: daily median perceived time and daily median execution time- (merge-group runs, seconds). State in the title which line is which, since- xychart has no legend. Add a second `xychart-beta` with the week-over-week- trend from `history/*.json` once at least two weeks of history exist.+- The **weekly chart** (GitHub renders `mermaid` fenced blocks natively).+ Copy this template verbatim and only fill in the data: the x-axis days+ (every day that has merge-group runs), the four 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.++ ```mermaid+ xychart-beta+ title "Daily merge-group medians (s) β 1: run tests, 2: Build, 3: e2e-tests, 4: runner wait, 5: overall incl. wait, 6: overall excl. wait"+ x-axis [MM-DD, MM-DD, MM-DD]+ y-axis "seconds" 0 --> 600+ line [0, 0, 0]+ line [0, 0, 0]+ line [0, 0, 0]+ line [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:++ | Day | run tests | Build | e2e-tests | runner wait | overall incl. wait | overall excl. wait |+ |---|---|---|---|---|---|---|+ | 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 four series).- A markdown table of the top slow tests and the retried/flaky tests.- A "Previously opened PRs" section from `prs.json`, oldest first: statusand whether the change moved the following week's numbers.