OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CI] [GHA] Use `repo-memory` to store CI Doctor MQ investigations (#36297)
Andrei Kashchikhin18ebd097698e
diff --git a/.github/workflows/ci-doctor-mq.lock.yml b/.github/workflows/ci-doctor-mq.lock.ymlindex 570401dd608..ebb723bf01f 100644--- a/.github/workflows/ci-doctor-mq.lock.yml+++ b/.github/workflows/ci-doctor-mq.lock.yml@@ -1,5 +1,5 @@-# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"59269af30feac095a27e17463ad448c7540b05837a127ffb7efa9618f3b295db","compiler_version":"v0.76.1","strict":true,"agent_id":"copilot","agent_model":"gpt-5-mini"}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"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":"actions/upload-artifact","sha":"b7c566a772e6b6bfb58ed0dc250532a479d7789f","version":"b7c566a772e6b6bfb58ed0dc250532a479d7789f"},{"repo":"github/gh-aw-actions/setup","sha":"46d564922b082d0db93244972e8005ea6904ee5f","version":"v0.76.1"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.55"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.55"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.55"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.19"},{"image":"ghcr.io/github/github-mcp-server:v1.0.4","digest":"sha256:e3816a476a977cfb836e7d221510011436c654d11861db66ecfd826601aba6a4","pinned_image":"ghcr.io/github/github-mcp-server:v1.0.4@sha256:e3816a476a977cfb836e7d221510011436c654d11861db66ecfd826601aba6a4"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]}+# gh-aw-metadata: {"schema_version":"v3","frontmatter_hash":"cca7b69192b589988ca7b952b28d93ea61a0d638ed5bee6579e5bdf19384cafa","compiler_version":"v0.76.1","strict":true,"agent_id":"copilot","agent_model":"gpt-5-mini"}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/checkout","sha":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"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":"actions/upload-artifact","sha":"b7c566a772e6b6bfb58ed0dc250532a479d7789f","version":"b7c566a772e6b6bfb58ed0dc250532a479d7789f"},{"repo":"github/gh-aw-actions/setup","sha":"46d564922b082d0db93244972e8005ea6904ee5f","version":"v0.76.1"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.55"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.55"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.55"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.19"},{"image":"ghcr.io/github/github-mcp-server:v1.0.4","digest":"sha256:e3816a476a977cfb836e7d221510011436c654d11861db66ecfd826601aba6a4","pinned_image":"ghcr.io/github/github-mcp-server:v1.0.4@sha256:e3816a476a977cfb836e7d221510011436c654d11861db66ecfd826601aba6a4"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]}# ___ _ _# / _ \ | | (_)# | |_| | __ _ ___ _ __ | |_ _ ___@@ -16,7 +16,7 @@## This file was automatically generated by gh-aw (v0.76.1). DO NOT EDIT.#-# To update this file, edit githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147 and run:+# To update this file, edit the corresponding .md file and run:# gh aw compile# Not all edits will cause changes to this file.#@@ -27,8 +27,6 @@# and sends a second escalation alert to Microsoft Teams when the same failure pattern# has 3 or more occurrences within the last 12 hours.#-# Source: githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147-## Secrets used:# - COPILOT_GITHUB_TOKEN# - GH_AW_GITHUB_MCP_SERVER_TOKEN@@ -37,8 +35,6 @@# - TEAMS_WEBHOOK_URL## Custom actions used:-# - actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5-# - actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5# - actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -123,7 +119,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Generate agentic run infoid: generate_aw_info@@ -143,8 +138,6 @@ jobs:GH_AW_INFO_AWF_VERSION: "v0.25.55"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"- GH_AW_INFO_FRONTMATTER_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_COMPILED_STRICT: "true"uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:@@ -221,25 +214,26 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}+ GH_AW_WIKI_NOTE: ${{ '' }}# poutine:ignore untrusted_checkout_execrun: |bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh"{- cat << 'GH_AW_PROMPT_55146fbc4e1c2bdf_EOF'+ cat << 'GH_AW_PROMPT_90a930d7c8249820_EOF'<system>- GH_AW_PROMPT_55146fbc4e1c2bdf_EOF+ GH_AW_PROMPT_90a930d7c8249820_EOFcat "${RUNNER_TEMP}/gh-aw/prompts/xpia.md"cat "${RUNNER_TEMP}/gh-aw/prompts/temp_folder_prompt.md"cat "${RUNNER_TEMP}/gh-aw/prompts/markdown.md"- cat "${RUNNER_TEMP}/gh-aw/prompts/cache_memory_prompt.md"+ cat "${RUNNER_TEMP}/gh-aw/prompts/repo_memory_prompt.md"cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md"- cat << 'GH_AW_PROMPT_55146fbc4e1c2bdf_EOF'+ cat << 'GH_AW_PROMPT_90a930d7c8249820_EOF'<safe-output-tools>Tools: missing_tool, missing_data, noop, notify_teams, notify_teams_recurring</safe-output-tools>- GH_AW_PROMPT_55146fbc4e1c2bdf_EOF+ GH_AW_PROMPT_90a930d7c8249820_EOFcat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md"- cat << 'GH_AW_PROMPT_55146fbc4e1c2bdf_EOF'+ cat << 'GH_AW_PROMPT_90a930d7c8249820_EOF'<github-context>The following GitHub context information is available for this workflow:{{#if github.actor}}@@ -268,12 +262,12 @@ jobs:{{/if}}</github-context>- GH_AW_PROMPT_55146fbc4e1c2bdf_EOF+ GH_AW_PROMPT_90a930d7c8249820_EOFcat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md"- cat << 'GH_AW_PROMPT_55146fbc4e1c2bdf_EOF'+ cat << 'GH_AW_PROMPT_90a930d7c8249820_EOF'</system>{{#runtime-import .github/workflows/ci-doctor-mq.md}}- GH_AW_PROMPT_55146fbc4e1c2bdf_EOF+ GH_AW_PROMPT_90a930d7c8249820_EOF} > "$GH_AW_PROMPT"- name: Interpolate variables and render templatesuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -298,9 +292,6 @@ jobs:uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt- GH_AW_ALLOWED_EXTENSIONS: ''- GH_AW_CACHE_DESCRIPTION: ''- GH_AW_CACHE_DIR: '/tmp/gh-aw/cache-memory/'GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}@@ -317,7 +308,13 @@ jobs:GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}GH_AW_MCP_CLI_SERVERS_LIST: '- `safeoutputs` — run `safeoutputs --help` to see available tools'+ GH_AW_MEMORY_BRANCH_NAME: 'memory/ci-doctor-mq'+ GH_AW_MEMORY_CONSTRAINTS: "\n\n**Constraints:**\n- **Max File Size**: 102400 bytes (0.10 MB) per file\n- **Max File Count**: 500 files per commit\n- **Max Patch Size**: 10240 bytes (10 KB) total per push (max: 1024 KB)\n"+ GH_AW_MEMORY_DESCRIPTION: ''+ GH_AW_MEMORY_DIR: '/tmp/gh-aw/repo-memory/default/'+ GH_AW_MEMORY_TARGET_REPO: ' of the current repository'GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }}+ GH_AW_WIKI_NOTE: ''with:script: |const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');@@ -329,9 +326,6 @@ jobs:return await substitutePlaceholders({file: process.env.GH_AW_PROMPT,substitutions: {- GH_AW_ALLOWED_EXTENSIONS: process.env.GH_AW_ALLOWED_EXTENSIONS,- GH_AW_CACHE_DESCRIPTION: process.env.GH_AW_CACHE_DESCRIPTION,- GH_AW_CACHE_DIR: process.env.GH_AW_CACHE_DIR,GH_AW_EXPR_1A3A194A: process.env.GH_AW_EXPR_1A3A194A,GH_AW_EXPR_463A214A: process.env.GH_AW_EXPR_463A214A,GH_AW_EXPR_802A9F6A: process.env.GH_AW_EXPR_802A9F6A,@@ -348,7 +342,13 @@ jobs:GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID,GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE,GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST,- GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED+ GH_AW_MEMORY_BRANCH_NAME: process.env.GH_AW_MEMORY_BRANCH_NAME,+ GH_AW_MEMORY_CONSTRAINTS: process.env.GH_AW_MEMORY_CONSTRAINTS,+ GH_AW_MEMORY_DESCRIPTION: process.env.GH_AW_MEMORY_DESCRIPTION,+ GH_AW_MEMORY_DIR: process.env.GH_AW_MEMORY_DIR,+ GH_AW_MEMORY_TARGET_REPO: process.env.GH_AW_MEMORY_TARGET_REPO,+ GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED,+ GH_AW_WIKI_NOTE: process.env.GH_AW_WIKI_NOTE}});- name: Validate prompt placeholders@@ -421,7 +421,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -441,21 +440,16 @@ jobs:run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_gh_for_ghe.sh"env:GH_TOKEN: ${{ github.token }}- # Cache memory file share configuration from frontmatter processed below- - name: Create cache-memory directory- run: bash "${RUNNER_TEMP}/gh-aw/actions/create_cache_memory_dir.sh"- - name: Restore cache-memory file share data- uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5- with:- key: memory-none-nopolicy-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}- path: /tmp/gh-aw/cache-memory- restore-keys: |- memory-none-nopolicy-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-- - name: Setup cache-memory git repository+ # Repo memory git-based storage configuration from frontmatter processed below+ - name: Clone repo-memory branch (default)env:- GH_AW_CACHE_DIR: /tmp/gh-aw/cache-memory- GH_AW_MIN_INTEGRITY: none- run: bash "${RUNNER_TEMP}/gh-aw/actions/setup_cache_memory_git.sh"+ GH_TOKEN: ${{ github.token }}+ GITHUB_SERVER_URL: ${{ github.server_url }}+ BRANCH_NAME: memory/ci-doctor-mq+ TARGET_REPO: ${{ github.repository }}+ MEMORY_DIR: /tmp/gh-aw/repo-memory/default+ CREATE_ORPHAN: true+ run: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Configure Git credentialsenv:REPO_NAME: ${{ github.repository }}@@ -526,9 +520,9 @@ jobs:mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"mkdir -p /tmp/gh-aw/safeoutputsmkdir -p /tmp/gh-aw/mcp-logs/safeoutputs- cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_fa858bc323b00800_EOF'- {"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"notify-teams":{"description":"Send a CI failure investigation summary to Microsoft Teams. Call this exactly once at the end of the investigation with a concise title and a thorough description of the failure.","inputs":{"author":{"default":null,"description":"GitHub login of the PR author or commit author, if known. Omit otherwise.","required":false,"type":"string"},"db_entries":{"default":null,"description":"Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/cache-memory/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.","required":true,"type":"string"},"description":{"default":null,"description":"Thorough markdown description of the problem: root cause, failed jobs, key error messages, and recommended actions.","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow that failed (as reported by `get_workflow_run`, e.g. 'Linux (Ubuntu 22.04, Python 3.11)'). Do NOT pass the CI Doctor MQ workflow name.","required":true,"type":"string"},"occurrence_count":{"default":null,"description":"How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/cache-memory/mq/. Must be \u003e= 1. Report as a positive integer encoded as a string.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the failed GitHub Actions workflow run.","required":true,"type":"string"},"pr_number":{"default":null,"description":"Pull request number if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"pr_url":{"default":null,"description":"Pull request URL if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"statistics":{"default":null,"description":"Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/cache-memory/mq/investigations/ and /tmp/gh-aw/cache-memory/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).","required":true,"type":"string"},"statistics_json":{"default":null,"description":"Full statistics database serialized as a compact JSON string. Must be a JSON object of the form {\"generated_at\": \u003cISO8601 UTC\u003e, \"total_patterns\": \u003cint\u003e, \"total_investigations\": \u003cint\u003e, \"patterns\": [{\"signature\": \u003cstr\u003e, \"title\": \u003cstr\u003e, \"category\": \u003cstr\u003e, \"count\": \u003cint\u003e, \"first_seen\": \u003cISO8601 UTC\u003e, \"last_seen\": \u003cISO8601 UTC\u003e, \"recent_run_urls\": [\u003cstr\u003e, ...]}]}. Include ALL known patterns, not just the top N. This payload is uploaded as a workflow artifact for offline analysis.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the failure (e.g. 'smoke_Bucketize tests fail on comparison'). No PR/run numbers.","required":true,"type":"string"}},"output":"Notification sent to Microsoft Teams."},"notify-teams-recurring":{"description":"Send a recurring merge-queue failure escalation alert to Microsoft Teams. Call this ONLY when the same failure pattern has 3 or more occurrences in the last 12 hours. Do NOT call this for every failure.","inputs":{"affected_prs":{"default":null,"description":"Markdown-formatted list of affected PR numbers/links from the merge queue that hit this failure in the last 12 hours. One PR per line, e.g. '- [#1234](https://github.com/org/repo/pull/1234)'. Include up to 10 most recent PRs.","required":true,"type":"string"},"description":{"default":null,"description":"Concise markdown gist of the recurring problem: what keeps failing, suspected root cause, and recommended escalation actions. Use Teams-safe markdown only (no raw HTML).","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow with the recurring failure.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the current (latest) failed workflow run.","required":true,"type":"string"},"recent_count":{"default":null,"description":"Number of times this failure pattern has occurred in the last 12 hours, including the current run. Report as a positive integer encoded as a string (e.g., '3', '5').","required":true,"type":"string"},"recent_run_urls":{"default":null,"description":"Markdown-formatted list of workflow run URLs that exhibited this failure in the last 12 hours. One URL per line, e.g. '- [Run 12345](https://github.com/org/repo/actions/runs/12345)'. Include up to 10 most recent runs.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the recurring failure pattern (same as notify_teams.title).","required":true,"type":"string"}},"output":"Recurring failure escalation sent to Microsoft Teams."},"report_incomplete":{}}- GH_AW_SAFE_OUTPUTS_CONFIG_fa858bc323b00800_EOF+ cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_521846c76599439c_EOF'+ {"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"notify-teams":{"description":"Send a CI failure investigation summary to Microsoft Teams. Call this exactly once at the end of the investigation with a concise title and a thorough description of the failure.","inputs":{"author":{"default":null,"description":"GitHub login of the PR author or commit author, if known. Omit otherwise.","required":false,"type":"string"},"db_entries":{"default":null,"description":"Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/repo-memory/default/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.","required":true,"type":"string"},"description":{"default":null,"description":"Thorough markdown description of the problem: root cause, failed jobs, key error messages, and recommended actions.","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow that failed (as reported by `get_workflow_run`, e.g. 'Linux (Ubuntu 22.04, Python 3.11)'). Do NOT pass the CI Doctor MQ workflow name.","required":true,"type":"string"},"occurrence_count":{"default":null,"description":"How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/repo-memory/default/mq/. Must be \u003e= 1. Report as a positive integer encoded as a string.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the failed GitHub Actions workflow run.","required":true,"type":"string"},"pr_number":{"default":null,"description":"Pull request number if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"pr_url":{"default":null,"description":"Pull request URL if the failure is associated with a PR in the merge queue. Omit otherwise.","required":false,"type":"string"},"statistics":{"default":null,"description":"Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/repo-memory/default/mq/investigations/ and /tmp/gh-aw/repo-memory/default/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).","required":true,"type":"string"},"statistics_json":{"default":null,"description":"Full statistics database serialized as a compact JSON string. Must be a JSON object of the form {\"generated_at\": \u003cISO8601 UTC\u003e, \"total_patterns\": \u003cint\u003e, \"total_investigations\": \u003cint\u003e, \"patterns\": [{\"signature\": \u003cstr\u003e, \"title\": \u003cstr\u003e, \"category\": \u003cstr\u003e, \"count\": \u003cint\u003e, \"first_seen\": \u003cISO8601 UTC\u003e, \"last_seen\": \u003cISO8601 UTC\u003e, \"recent_run_urls\": [\u003cstr\u003e, ...]}]}. Include ALL known patterns, not just the top N. This payload is uploaded as a workflow artifact for offline analysis.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the failure (e.g. 'smoke_Bucketize tests fail on comparison'). No PR/run numbers.","required":true,"type":"string"}},"output":"Notification sent to Microsoft Teams."},"notify-teams-recurring":{"description":"Send a recurring merge-queue failure escalation alert to Microsoft Teams. Call this ONLY when the same failure pattern has 3 or more occurrences in the last 12 hours. Do NOT call this for every failure.","inputs":{"affected_prs":{"default":null,"description":"Markdown-formatted list of affected PR numbers/links from the merge queue that hit this failure in the last 12 hours. One PR per line, e.g. '- [#1234](https://github.com/org/repo/pull/1234)'. Include up to 10 most recent PRs.","required":true,"type":"string"},"description":{"default":null,"description":"Concise markdown gist of the recurring problem: what keeps failing, suspected root cause, and recommended escalation actions. Use Teams-safe markdown only (no raw HTML).","required":true,"type":"string"},"failed_workflow":{"default":null,"description":"Name of the GitHub Actions workflow with the recurring failure.","required":true,"type":"string"},"pipeline_url":{"default":null,"description":"URL of the current (latest) failed workflow run.","required":true,"type":"string"},"recent_count":{"default":null,"description":"Number of times this failure pattern has occurred in the last 12 hours, including the current run. Report as a positive integer encoded as a string (e.g., '3', '5').","required":true,"type":"string"},"recent_run_urls":{"default":null,"description":"Markdown-formatted list of workflow run URLs that exhibited this failure in the last 12 hours. One URL per line, e.g. '- [Run 12345](https://github.com/org/repo/actions/runs/12345)'. Include up to 10 most recent runs.","required":true,"type":"string"},"title":{"default":null,"description":"Short, searchable description of the recurring failure pattern (same as notify_teams.title).","required":true,"type":"string"}},"output":"Recurring failure escalation sent to Microsoft Teams."},"push_repo_memory":{"memories":[{"dir":"/tmp/gh-aw/repo-memory/default","id":"default","max_file_count":500,"max_file_size":102400,"max_patch_size":10240}]},"report_incomplete":{}}+ GH_AW_SAFE_OUTPUTS_CONFIG_521846c76599439c_EOF- name: Generate Safe Outputs Toolsenv:GH_AW_TOOLS_META_JSON: |@@ -546,7 +540,7 @@ jobs:"type": "string"},"db_entries": {- "description": "Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/cache-memory/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.",+ "description": "Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/repo-memory/default/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string.","type": "string"},"description": {@@ -558,7 +552,7 @@ jobs:"type": "string"},"occurrence_count": {- "description": "How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/cache-memory/mq/. Must be \u003e= 1. Report as a positive integer encoded as a string.",+ "description": "How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/repo-memory/default/mq/. Must be \u003e= 1. Report as a positive integer encoded as a string.","type": "string"},"pipeline_url": {@@ -574,7 +568,7 @@ jobs:"type": "string"},"statistics": {- "description": "Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/cache-memory/mq/investigations/ and /tmp/gh-aw/cache-memory/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).",+ "description": "Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/repo-memory/default/mq/investigations/ and /tmp/gh-aw/repo-memory/default/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML).","type": "string"},"statistics_json": {@@ -810,7 +804,7 @@ jobs:mkdir -p /home/runner/.copilotGH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)- cat << GH_AW_MCP_CONFIG_b4412de17f68e3be_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_ab5ab952dc94bdb5_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {@@ -851,7 +845,7 @@ jobs:"payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}"}}- GH_AW_MCP_CONFIG_b4412de17f68e3be_EOF+ GH_AW_MCP_CONFIG_ab5ab952dc94bdb5_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -893,7 +887,7 @@ jobs:fi# shellcheck disable=SC1003sudo -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_DOCKER_HOST_PATH_PREFIX_ARGS} --env-all --exclude-env COPILOT_GITHUB_TOKEN --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 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -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_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --add-dir /tmp/gh-aw/cache-memory/ --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.log+ -- /bin/bash -c 'export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && export PATH="$(find /opt/hostedtoolcache /home/runner/work/_tool -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_NODE_EXEC" ${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs /usr/local/bin/copilot --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --disable-builtin-mcps --no-ask-user --allow-all-tools --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/agent-stdio.logenv:AWF_REFLECT_ENABLED: 1COPILOT_AGENT_RUNNER_TYPE: STANDALONE@@ -1052,19 +1046,21 @@ jobs:if [ ! -f /tmp/gh-aw/agent_output.json ]; thenecho '{"items":[]}' > /tmp/gh-aw/agent_output.jsonfi- - name: Commit cache-memory changes+ # Upload repo memory as artifacts for push job+ - name: Sanitize repo-memory filenames (default)if: always()+ continue-on-error: trueenv:- GH_AW_CACHE_DIR: /tmp/gh-aw/cache-memory- run: bash "${RUNNER_TEMP}/gh-aw/actions/commit_cache_memory_git.sh"- - name: Upload cache-memory data as artifact- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1+ MEMORY_DIR: /tmp/gh-aw/repo-memory/default+ run: bash "${RUNNER_TEMP}/gh-aw/actions/sanitize_repo_memory_filenames.sh"+ - name: Upload repo-memory artifact (default)if: always()+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:- name: cache-memory- include-hidden-files: true- path: /tmp/gh-aw/cache-memory- retention-days: 90+ name: repo-memory-default+ path: /tmp/gh-aw/repo-memory/default+ retention-days: 1+ if-no-files-found: ignore- if: always()name: Upload CI Doctor MQ investigations and patternsuses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # b7c566a772e6b6bfb58ed0dc250532a479d7789f@@ -1072,8 +1068,8 @@ jobs:if-no-files-found: ignorename: ci-doctor-mq-investigationspath: |- /tmp/gh-aw/cache-memory/mq/investigations- /tmp/gh-aw/cache-memory/mq/patterns+ /tmp/gh-aw/repo-memory/default/mq/investigations+ /tmp/gh-aw/repo-memory/default/mq/patternsretention-days: 90- name: Upload agent artifacts@@ -1109,8 +1105,8 @@ jobs:- detection- notify_teams- notify_teams_recurring+ - push_repo_memory- safe_outputs- - update_cache_memoryif: >always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' ||needs.activation.outputs.stale_lock_file_failed == 'true')@@ -1139,7 +1135,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1162,8 +1157,7 @@ jobs:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_NOOP_MAX: "1"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }}GH_AW_NOOP_REPORT_AS_ISSUE: "true"@@ -1180,8 +1174,7 @@ jobs:env:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }}@@ -1199,8 +1192,7 @@ jobs:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_MISSING_TOOL_CREATE_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |@@ -1215,8 +1207,7 @@ jobs:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_REPORT_INCOMPLETE_CREATE_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |@@ -1231,8 +1222,7 @@ jobs:env:GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"@@ -1249,13 +1239,16 @@ jobs:GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com"GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }}GH_AW_STALE_LOCK_FILE_FAILED: ${{ needs.activation.outputs.stale_lock_file_failed }}+ GH_AW_PUSH_REPO_MEMORY_RESULT: ${{ needs.push_repo_memory.result }}+ GH_AW_REPO_MEMORY_VALIDATION_FAILED_default: ${{ needs.push_repo_memory.outputs.validation_failed_default }}+ GH_AW_REPO_MEMORY_VALIDATION_ERROR_default: ${{ needs.push_repo_memory.outputs.validation_error_default }}+ GH_AW_REPO_MEMORY_PATCH_SIZE_EXCEEDED_default: ${{ needs.push_repo_memory.outputs.patch_size_exceeded_default }}GH_AW_GROUP_REPORTS: "false"GH_AW_FAILURE_REPORT_AS_ISSUE: "true"GH_AW_MISSING_TOOL_REPORT_AS_FAILURE: "true"GH_AW_MISSING_DATA_REPORT_AS_FAILURE: "true"GH_AW_TIMEOUT_MINUTES: "20"GH_AW_MAX_EFFECTIVE_TOKENS: "25000000"- GH_AW_CACHE_MEMORY_ENABLED: "true"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |@@ -1291,7 +1284,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1706,7 +1698,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Check team membership for workflowid: check_membership@@ -1736,6 +1727,86 @@ jobs:const { main } = require('${{ runner.temp }}/gh-aw/actions/check_rate_limit.cjs');await main();+ push_repo_memory:+ needs:+ - activation+ - agent+ - detection+ if: >+ always() && (!cancelled()) && (needs.detection.result == 'success' || needs.detection.result == 'skipped') &&+ needs.agent.result == 'success'+ runs-on: ubuntu-slim+ permissions:+ contents: write+ concurrency:+ group: "push-repo-memory-${{ github.repository }}|memory/ci-doctor-mq"+ cancel-in-progress: false+ outputs:+ patch_size_exceeded_default: ${{ steps.push_repo_memory_default.outputs.patch_size_exceeded }}+ validation_error_default: ${{ steps.push_repo_memory_default.outputs.validation_error }}+ validation_failed_default: ${{ steps.push_repo_memory_default.outputs.validation_failed }}+ steps:+ - name: Setup Scripts+ id: setup+ uses: github/gh-aw-actions/setup@46d564922b082d0db93244972e8005ea6904ee5f # v0.76.1+ with:+ destination: ${{ runner.temp }}/gh-aw/actions+ job-name: ${{ github.job }}+ trace-id: ${{ needs.activation.outputs.setup-trace-id }}+ parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}+ env:+ GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"+ GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}+ GH_AW_INFO_VERSION: "1.0.52"+ GH_AW_INFO_AWF_VERSION: "v0.25.55"+ GH_AW_INFO_ENGINE_ID: "copilot"+ - name: Checkout repository+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false+ sparse-checkout: .+ - name: Configure Git credentials+ env:+ REPO_NAME: ${{ github.repository }}+ SERVER_URL: ${{ github.server_url }}+ GITHUB_TOKEN: ${{ github.token }}+ run: |+ git config --global user.email "github-actions[bot]@users.noreply.github.com"+ git config --global user.name "github-actions[bot]"+ git config --global am.keepcr true+ # Re-authenticate git with GitHub token+ SERVER_URL_STRIPPED="${SERVER_URL#https://}"+ git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@${SERVER_URL_STRIPPED}/${REPO_NAME}.git"+ echo "Git configured with standard GitHub Actions identity"+ - name: Download repo-memory artifact (default)+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1+ continue-on-error: true+ with:+ name: repo-memory-default+ path: /tmp/gh-aw/repo-memory/default+ - name: Push repo-memory changes (default)+ id: push_repo_memory_default+ if: always()+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_TOKEN: ${{ github.token }}+ GITHUB_RUN_ID: ${{ github.run_id }}+ GITHUB_SERVER_URL: ${{ github.server_url }}+ ARTIFACT_DIR: /tmp/gh-aw/repo-memory/default+ MEMORY_ID: default+ TARGET_REPO: ${{ github.repository }}+ BRANCH_NAME: memory/ci-doctor-mq+ MAX_FILE_SIZE: 102400+ MAX_FILE_COUNT: 500+ MAX_PATCH_SIZE: 10240+ ALLOWED_EXTENSIONS: '[".json"]'+ with:+ script: |+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require('${{ runner.temp }}/gh-aw/actions/push_repo_memory.cjs');+ await main();+safe_outputs:needs:- activation@@ -1755,8 +1826,7 @@ jobs:GH_AW_ENGINE_VERSION: "1.0.52"GH_AW_WORKFLOW_ID: "ci-doctor-mq"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_WORKFLOW_SOURCE: "githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147"- GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/githubnext/agentics/blob/0aa94a6e40aeaf131118476bc6a07e55c4ceb147/workflows/ci-doctor.md"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-mq.md"outputs:code_push_failure_count: ${{ steps.process_safe_outputs.outputs.code_push_failure_count }}code_push_failure_errors: ${{ steps.process_safe_outputs.outputs.code_push_failure_errors }}@@ -1778,7 +1848,6 @@ jobs:GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}GH_AW_INFO_VERSION: "1.0.52"GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1831,52 +1900,3 @@ jobs:/tmp/gh-aw/temporary-id-map.jsonif-no-files-found: ignore- update_cache_memory:- needs:- - activation- - agent- - detection- if: always() && needs.detection.result == 'success' && needs.agent.result == 'success'- runs-on: ubuntu-slim- permissions: {}- env:- GH_AW_WORKFLOW_ID_SANITIZED: cidoctormq- steps:- - name: Setup Scripts- id: setup- uses: github/gh-aw-actions/setup@46d564922b082d0db93244972e8005ea6904ee5f # v0.76.1- with:- destination: ${{ runner.temp }}/gh-aw/actions- job-name: ${{ github.job }}- trace-id: ${{ needs.activation.outputs.setup-trace-id }}- parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}- env:- GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"- GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-mq.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.52"- GH_AW_INFO_AWF_VERSION: "v0.25.55"- GH_AW_INFO_BODY_MODIFIED: "false"- GH_AW_INFO_ENGINE_ID: "copilot"- - name: Download cache-memory artifact (default)- id: download_cache_default- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1- continue-on-error: true- with:- name: cache-memory- path: /tmp/gh-aw/cache-memory- - name: Check if cache-memory folder has content (default)- id: check_cache_default- shell: bash- run: |- if [ -d "/tmp/gh-aw/cache-memory" ] && [ "$(ls -A /tmp/gh-aw/cache-memory 2>/dev/null)" ]; then- echo "has_content=true" >> "$GITHUB_OUTPUT"- else- echo "has_content=false" >> "$GITHUB_OUTPUT"- fi- - name: Save cache-memory to cache (default)- if: steps.check_cache_default.outputs.has_content == 'true'- uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5- with:- key: memory-none-nopolicy-${{ env.GH_AW_WORKFLOW_ID_SANITIZED }}-${{ github.run_id }}- path: /tmp/gh-aw/cache-memory-diff --git a/.github/workflows/ci-doctor-mq.md b/.github/workflows/ci-doctor-mq.mdindex 33cb9c3a375..d2f3952c991 100644--- a/.github/workflows/ci-doctor-mq.md+++ b/.github/workflows/ci-doctor-mq.md@@ -74,15 +74,15 @@ safe-outputs:required: falsetype: stringdb_entries:- description: "Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/cache-memory/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string."+ description: "Total number of unique entries currently in the CI Doctor MQ investigation database (count of distinct investigation files under /tmp/gh-aw/repo-memory/default/mq/investigations/, including the one created by this run). Report as a non-negative integer encoded as a string."required: truetype: stringoccurrence_count:- description: "How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/cache-memory/mq/. Must be >= 1. Report as a positive integer encoded as a string."+ description: "How many times this same issue has been recorded in the CI Doctor MQ database, including the current investigation. Compute by matching the current failure signature (e.g., normalized error message, failed job name, failure category) against prior investigation/pattern files under /tmp/gh-aw/repo-memory/default/mq/. Must be >= 1. Report as a positive integer encoded as a string."required: truetype: stringstatistics:- description: "Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/cache-memory/mq/investigations/ and /tmp/gh-aw/cache-memory/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML)."+ description: "Markdown-formatted statistics summary of the CI Doctor MQ pattern database. Must include a table (or list) of every known failure pattern with: pattern signature/title, total reproduction count, first-seen timestamp (UTC, ISO 8601), and last-seen timestamp (UTC, ISO 8601). Sort patterns by reproduction count descending. Compute from files under /tmp/gh-aw/repo-memory/default/mq/investigations/ and /tmp/gh-aw/repo-memory/default/mq/patterns/. Keep concise (top 20 patterns max). Use the rendering rules from the description field (tilde fences, no raw HTML)."required: truetype: stringstatistics_json:@@ -310,8 +310,11 @@ safe-outputs:tools:github:toolsets: [default, actions] # default: context, repos, issues, pull_requests; actions: workflow logs- cache-memory:- retention-days: 90+ repo-memory:+ branch-name: memory/ci-doctor-mq+ allowed-extensions: [".json"]+ max-file-size: 102400+ max-file-count: 500post-steps:- name: Upload CI Doctor MQ investigations and patterns@@ -320,14 +323,13 @@ post-steps:with:name: ci-doctor-mq-investigationspath: |- /tmp/gh-aw/cache-memory/mq/investigations- /tmp/gh-aw/cache-memory/mq/patterns+ /tmp/gh-aw/repo-memory/default/mq/investigations+ /tmp/gh-aw/repo-memory/default/mq/patternsif-no-files-found: ignoreretention-days: 90timeout-minutes: 20-source: githubnext/agentics/workflows/ci-doctor.md@0aa94a6e40aeaf131118476bc6a07e55c4ceb147---# CI Failure Doctor — Merge Queue@@ -383,7 +385,7 @@ You are the CI Failure Doctor for the Merge Queue, an expert investigative agent### Phase 3: Historical Context Analysis1. **Search Investigation History**: Use file-based storage to search for similar failures:- - Read from cached investigation files in `/tmp/gh-aw/cache-memory/mq/investigations/` (this is the directory mounted by `tools.cache-memory: true` and persisted across runs via the GitHub Actions cache; do NOT use `/tmp/memory/`, which is not persistent)+ - Read from investigation files in `/tmp/gh-aw/repo-memory/default/mq/investigations/` (this is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch `memory/ci-doctor-mq`; files written elsewhere are not persisted across runs)- Parse previous failure patterns and solutions- Look for recurring error signatures2. **Issue History**: Search existing issues for related problems@@ -447,18 +449,18 @@ You are the CI Failure Doctor for the Merge Queue, an expert investigative agent### Phase 5: Pattern Storage and Knowledge Building-1. **Store Investigation**: Save structured investigation data to files in the persistent cache-memory directory:- - **Persistent path**: `/tmp/gh-aw/cache-memory/` is the only directory mounted from the GitHub Actions cache by `tools.cache-memory: true`. Files written here survive across runs. Files written to `/tmp/memory/` (or anywhere else) are **not** persisted and will be lost.- - **MQ-specific subdirectory**: This workflow uses `/tmp/gh-aw/cache-memory/mq/` to keep merge-queue investigations isolated from the main CI Doctor's data.- - Create the subdirectory if needed: `mkdir -p /tmp/gh-aw/cache-memory/mq/investigations /tmp/gh-aw/cache-memory/mq/patterns`.- - Write the investigation report to `/tmp/gh-aw/cache-memory/mq/investigations/<timestamp>-<run-id>.json`+1. **Store Investigation**: Save structured investigation data to files in the persistent repo-memory directory:+ - **Persistent path**: `/tmp/gh-aw/repo-memory/default/` is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch (`memory/ci-doctor-mq`). Files written here survive across runs permanently. Files written elsewhere are **not** persisted and will be lost.+ - **MQ-specific subdirectory**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` to keep merge-queue investigations isolated from any other workflows using repo-memory.+ - Create the subdirectory if needed: `mkdir -p /tmp/gh-aw/repo-memory/default/mq/investigations /tmp/gh-aw/repo-memory/default/mq/patterns`.+ - Write the investigation report to `/tmp/gh-aw/repo-memory/default/mq/investigations/<timestamp>-<run-id>.json`- **Important**: Use filesystem-safe timestamp format `YYYY-MM-DD-HH-MM-SS-sss` (e.g., `2026-02-12-11-20-45-458`)- - **Do NOT use** ISO 8601 format with colons (e.g., `2026-02-12T11:20:45.458Z`) - colons are not allowed in artifact filenames- - Store error patterns in `/tmp/gh-aw/cache-memory/mq/patterns/`+ - **Do NOT use** ISO 8601 format with colons (e.g., `2026-02-12T11:20:45.458Z`) - colons are not safe in filenames+ - Store error patterns in `/tmp/gh-aw/repo-memory/default/mq/patterns/`- Maintain an index file of all investigations for fast searching2. **Update Pattern Database — MANDATORY read-modify-write procedure**:- Each failure signature gets exactly one JSON file at `/tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json`.+ Each failure signature gets exactly one JSON file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.**Schema:**@@ -487,7 +489,7 @@ You are the CI Failure Doctor for the Merge Queue, an expert investigative agentConcatenate these three strings with `|` separator, then compute a hash (e.g., first 16 chars of SHA-256). Two reruns of the same failure MUST produce the same hash.**Step B — Read existing file:**- Attempt to read `/tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json`.+ Attempt to read `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.- If the file exists, parse it as JSON into a variable called `existing`.- If the file does NOT exist, set `existing = null`.@@ -524,7 +526,7 @@ You are the CI Failure Doctor for the Merge Queue, an expert investigative agent~~~**Step D — Write the file:**- Write `record` as JSON to `/tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json`. Overwrite the file completely with the new content.+ Write `record` as JSON to `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`. Overwrite the file completely with the new content.**Step E — MANDATORY verification (read-back check):**Immediately after writing, read the file back and verify:@@ -542,7 +544,7 @@ You are the CI Failure Doctor for the Merge Queue, an expert investigative agent- Setting `first_seen` to NOW when the file already existed- Forgetting to include the current timestamp in `recent_timestamps`-3. **Build Statistics Snapshot**: After step 2, aggregate all `.json` files under `/tmp/gh-aw/cache-memory/mq/patterns/` into the statistics fields for `notify_teams`. For each file:+3. **Build Statistics Snapshot**: After step 2, aggregate all `.json` files under `/tmp/gh-aw/repo-memory/default/mq/patterns/` into the statistics fields for `notify_teams`. For each file:- Read and parse the JSON- Use the `count`, `first_seen`, `last_seen`, `title`, `category` values AS-IS from the file (do NOT recompute them)- The current failure's pattern MUST report `count == notify_teams.occurrence_count`@@ -560,7 +562,7 @@ After updating the pattern database (Phase 5 step 2), check whether the current**Recurrence detection procedure (follow EXACTLY):**~~~pseudocode-1. FILE_PATH = /tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json+1. FILE_PATH = /tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json2. Read FILE_PATH → parse as JSON into `pattern`3. NOW = current UTC time4. CUTOFF = NOW - 12 hours@@ -628,9 +630,9 @@ Provide all required fields and include the optional PR-related fields whenever- **`author`** (optional) — GitHub login of the PR author or commit author when known. Omit if it cannot be determined from the workflow run / PR metadata.-- **`db_entries`** (required) — Current total number of unique entries in the CI Doctor MQ investigation database. Compute it during Phase 5 by counting distinct files under `/tmp/gh-aw/cache-memory/mq/investigations/` (including the one this run just wrote) and pass the resulting non-negative integer as a string (e.g., `"42"`). If the directory does not yet exist, report `"0"` (or `"1"` if you just created the first entry). Note: counting files under `/tmp/memory/investigations/` or `/tmp/gh-aw/cache-memory/investigations/` will give a wrong result — those paths belong to the main CI Doctor, not the MQ variant.+- **`db_entries`** (required) — Current total number of unique entries in the CI Doctor MQ investigation database. Compute it during Phase 5 by counting distinct files under `/tmp/gh-aw/repo-memory/default/mq/investigations/` (including the one this run just wrote) and pass the resulting non-negative integer as a string (e.g., `"42"`). If the directory does not yet exist, report `"0"` (or `"1"` if you just created the first entry). Note: counting files under any path other than `/tmp/gh-aw/repo-memory/default/mq/investigations/` will give a wrong result.-- **`occurrence_count`** (required) — How many times **this same issue** has been recorded in the CI Doctor MQ database, including the current investigation. This value MUST be read directly from the `count` field of the pattern file at `/tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json` AFTER you have completed the Phase 5 step 2 write and verification. Do NOT compute this independently — read it from the file. Pass as a positive integer encoded as a string (e.g., `"1"`, `"4"`).+- **`occurrence_count`** (required) — How many times **this same issue** has been recorded in the CI Doctor MQ database, including the current investigation. This value MUST be read directly from the `count` field of the pattern file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` AFTER you have completed the Phase 5 step 2 write and verification. Do NOT compute this independently — read it from the file. Pass as a positive integer encoded as a string (e.g., `"1"`, `"4"`).- **`statistics`** (required) — Markdown snapshot of the pattern database, rendered inline in the Teams card. Build it from the per-pattern files maintained in Phase 5. Show the top **20** patterns sorted by reproduction count descending (ties broken by most recent `last_seen`). Use a Markdown table with columns: `Pattern`, `Category`, `Count`, `First seen (UTC)`, `Last seen (UTC)`. Highlight the current failure's row with a leading `▶` marker in the `Pattern` column. Apply the same Teams rendering rules as `description` (no raw HTML, use tilde fences if you need code blocks). Keep total length under ~3 KB so the Adaptive Card renders cleanly. Example:@@ -643,7 +645,7 @@ Provide all required fields and include the optional PR-related fields whenever- **`statistics_json`** (required) — Full pattern database serialized as a compact JSON string (single line, no surrounding code fence). Must include **every** pattern currently tracked, not just the top 20. Schema is documented on the input field. This payload is uploaded as the `ci-doctor-mq-statistics` workflow artifact (alongside the rendered Markdown) and is intended for offline analysis or dashboarding. Keep `recent_run_urls` capped at 10 entries per pattern.- **Count consistency (mandatory):** the `count` value for every pattern in `statistics_json` (and in the rendered `statistics` table) MUST be the persisted `count` read from the corresponding `/tmp/gh-aw/cache-memory/mq/patterns/<signature-hash>.json` file *after* Phase 5 step 2 has updated it. In particular, the current failure's pattern MUST report `count == occurrence_count`. Do NOT emit `count: 1` for every pattern — that is a symptom of either (a) overwriting the persisted record instead of read-modify-write, or (b) generating a fresh signature hash on each run. Validate this invariant before calling `notify_teams`; if it fails, fix the persistence step rather than the reported numbers.+ **Count consistency (mandatory):** the `count` value for every pattern in `statistics_json` (and in the rendered `statistics` table) MUST be the persisted `count` read from the corresponding `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` file *after* Phase 5 step 2 has updated it. In particular, the current failure's pattern MUST report `count == occurrence_count`. Do NOT emit `count: 1` for every pattern — that is a symptom of either (a) overwriting the persisted record instead of read-modify-write, or (b) generating a fresh signature hash on each run. Validate this invariant before calling `notify_teams`; if it fails, fix the persistence step rather than the reported numbers.- **`description`** (required) — Thorough Markdown body. Microsoft Teams Adaptive Cards render only a **limited subset of Markdown** — specifically: headings (`#`/`##`/`###`), bold/italic, inline code, fenced code blocks, ordered/unordered lists, and links. **Do not** use raw HTML tags such as `<details>`, `<summary>`, `<br>`, `<b>`, `<table>`, etc. — they appear as literal text in Teams. Use `###` headings for every section (no collapsibles). Use this structure:@@ -754,14 +756,14 @@ You **MUST** always call at least one safe output tool before finishing:Example noop call: `{"noop": {"message": "No action needed: [brief explanation]"}}`-## Cache Usage Strategy+## Memory Strategy-- **Persistent location**: `tools.cache-memory: true` mounts the GitHub Actions cache at `/tmp/gh-aw/cache-memory/`. This is the **only** path that persists across workflow runs. Anything written elsewhere (e.g., `/tmp/memory/`, `/tmp/investigation/`) is discarded when the runner is torn down.-- Store the investigation database and knowledge patterns in `/tmp/gh-aw/cache-memory/mq/investigations/` and `/tmp/gh-aw/cache-memory/mq/patterns/`.-- Cache detailed log analysis and artifacts in `/tmp/gh-aw/cache-memory/mq/logs/` and `/tmp/gh-aw/cache-memory/mq/reports/`.+- **Persistent location**: `tools.repo-memory` mounts a dedicated Git branch (`memory/ci-doctor-mq`) at `/tmp/gh-aw/repo-memory/default/`. This directory persists **indefinitely** across workflow runs with no expiry. Anything written elsewhere (e.g., `/tmp/memory/`, `/tmp/investigation/`) is discarded when the runner is torn down.+- Store the investigation database and knowledge patterns in `/tmp/gh-aw/repo-memory/default/mq/investigations/` and `/tmp/gh-aw/repo-memory/default/mq/patterns/`.+- Store detailed log analysis and artifacts in `/tmp/gh-aw/repo-memory/default/mq/logs/` and `/tmp/gh-aw/repo-memory/default/mq/reports/`.- Build cumulative knowledge about failure patterns and solutions using structured JSON files.- Use file-based indexing for fast pattern matching and similarity detection.- **Filename Requirements**: Use filesystem-safe characters only (no colons, quotes, or special characters)- ✅ Good: `2026-02-12-11-20-45-458-12345.json`- ❌ Bad: `2026-02-12T11:20:45.458Z-12345.json` (contains colons)-- **Isolated cache**: This workflow uses `/tmp/gh-aw/cache-memory/mq/` as its own subdirectory, separate from the main CI Doctor's `/tmp/gh-aw/cache-memory/investigations/` and `/tmp/gh-aw/cache-memory/patterns/`. This keeps merge-queue failure patterns isolated so that threshold-crossing logic only counts merge-queue occurrences, not all CI failures.+- **Isolated branch**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` as its own subdirectory within the dedicated `memory/ci-doctor-mq` branch. This keeps merge-queue failure patterns isolated from any other workflows, ensuring threshold-crossing logic only counts merge-queue occurrences.