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] [AW] Deterministically decide what to do after CI Doctor analysis (#37302)
Andrei Kashchikhin1c0f13859ce1
diff --git a/.claude/skills/ov-agentic-workflows/SKILL.md b/.claude/skills/ov-agentic-workflows/SKILL.mdindex 3e79a056b05..19be624181c 100644--- a/.claude/skills/ov-agentic-workflows/SKILL.md+++ b/.claude/skills/ov-agentic-workflows/SKILL.md@@ -37,20 +37,21 @@ keys, `imports`, `safe-outputs`, tools, and the `gh aw compile` workflow.## Golden rules1. **Never edit a `.lock.yml` by hand.** It is generated. Edit the `.md` source (or an imported shared- file), then recompile. If a user skips recompilation, tell them to recompile themselves before committing.-2. **Always recompile after editing** any `.md` source or imported file:+ file), then recompile. If a user skips recompilation, tell them to recompile themselves before committing.+2. **Never read `.lock.yml` file directly.** It is a generated artifact; the source `.md` is the authoritative description of the workflow.+3. **Always recompile after editing** any `.md` source or imported file:```bashgh aw compile```Commit the `.md` **and** the regenerated `.lock.yml` together in the same change.-3. **Keep trigger guards intact.** Agentic workflows commonly gate execution with an `if:` condition+4. **Keep trigger guards intact.** Agentic workflows commonly gate execution with an `if:` condition(an actor allow-list, a specific event/conclusion combination, a slash command, etc.). Do not loosena guard without explicit intent — re-read the workflow's own description of how it isinvoked/triggered first.-4. **Preserve source-inspection safeguards.** Investigative workflows typically cap how much of the+5. **Preserve source-inspection safeguards.** Investigative workflows typically cap how much of thecodebase the agent may read (file/search budgets, PR-diff-first, "stop and report" conditions). Keepthese bounds when editing a prompt — they bound cost and blast radius.-5. **Respect `safe-outputs` as the only side-effect boundary.** The agent itself must never be granted+6. **Respect `safe-outputs` as the only side-effect boundary.** The agent itself must never be grantedpermission to directly comment, notify, merge, or otherwise mutate shared state — that must gothrough a `safe-outputs` job with its own narrowly-scoped `permissions:`.diff --git a/.github/aw/actions-lock.json b/.github/aw/actions-lock.jsonindex 7dfd04e8206..d8bcc87e2bc 100644--- a/.github/aw/actions-lock.json+++ b/.github/aw/actions-lock.json@@ -1,14 +1,9 @@{"entries": {- "github/gh-aw-actions/[email protected]": {- "repo": "github/gh-aw-actions/setup-cli",- "version": "v0.83.4",- "sha": "e89c65e17eb281bbd5ff2ff9e9199a03e96654c7"- },- "github/gh-aw-actions/[email protected]": {+ "github/gh-aw-actions/[email protected]": {"repo": "github/gh-aw-actions/setup",- "version": "v0.83.4",- "sha": "e89c65e17eb281bbd5ff2ff9e9199a03e96654c7"+ "version": "v0.85.4",+ "sha": "2709137ea6c5b0e19aa621454dc643ea8dc526b1"}}}diff --git a/.github/scripts/agentic-workflows/collect_pr_info.py b/.github/scripts/agentic-workflows/collect_pr_info.pyindex 4b3986dbf81..d1cf1f5757b 100644--- a/.github/scripts/agentic-workflows/collect_pr_info.py+++ b/.github/scripts/agentic-workflows/collect_pr_info.py@@ -23,10 +23,9 @@ from __future__ import annotationsimport jsonimport os-import refrom typing import TYPE_CHECKING, Any-from common import github_client+from common import MERGE_QUEUE_PR_RE, github_clientif TYPE_CHECKING:from github.PullRequest import PullRequest@@ -37,9 +36,6 @@ OUTPUT_DIR = "/tmp/gh-aw/agent/ci-doctor"PR_INFO_JSON = os.path.join(OUTPUT_DIR, "pr-info.json")PR_INFO_TXT = os.path.join(OUTPUT_DIR, "pr-info.txt")-# Merge-queue branches look like: gh-readonly-queue/<base_branch>/pr-<number>-<sha>-MERGE_QUEUE_PR_RE = re.compile(r"/pr-(\d+)-[0-9a-f]+$")-# Cap the number of changed files and the PR body length written to disk so the# artifact stays small and the agent context is not flooded.MAX_CHANGED_FILES = 100@@ -190,7 +186,8 @@ def main() -> None:write_outputs(None)return- repo = github_client(token).get_repo(repo_name)+ gh = github_client(token)+ repo = gh.get_repo(repo_name)if run_id:run_mode(repo, run_id)diff --git a/.github/scripts/agentic-workflows/common.py b/.github/scripts/agentic-workflows/common.pyindex 94d3d107c8a..2330d74b4eb 100644--- a/.github/scripts/agentic-workflows/common.py+++ b/.github/scripts/agentic-workflows/common.py@@ -20,14 +20,40 @@ import reimport sysimport urllib.errorimport urllib.request-from typing import TYPE_CHECKING, Any+from typing import TYPE_CHECKING, Any, Literalif TYPE_CHECKING:from github import Github+ from github.PullRequest import PullRequest+ from github.Repository import Repository_NUMERIC_RE = re.compile(r"[0-9]+")_REPOSITORY_RE = re.compile(r"[A-Za-z0-9._-]+/[A-Za-z0-9._-]+")+# Merge-queue branches look like: gh-readonly-queue/<base_branch>/pr-<number>-<sha>+MERGE_QUEUE_PR_RE = re.compile(r"/pr-(\d+)-[0-9a-f]+$")++# Live merge-queue membership for a base branch. `mergeQueue` is null when the+# branch has no queue configured, which we treat as indeterminate.+_MERGE_QUEUE_QUERY = """+query($owner: String!, $repo: String!, $branch: String!) {+ repository(owner: $owner, name: $repo) {+ mergeQueue(branch: $branch) {+ entries(first: 100) { nodes { pullRequest { number } } }+ }+ }+}+"""++# Timeline events that flip merge-queue membership; latest one wins.+_MERGE_QUEUE_TIMELINE_EVENTS = {+ "added_to_merge_queue": True,+ "removed_from_merge_queue": False,+}++MergeQueueStatus = Literal["in_queue", "not_in_queue", "merged", "unknown"]++def read_agent_item(item_type: str) -> dict[str, Any]:"""Return the last agent-output item of ``item_type`` (exits if absent).@@ -78,6 +104,80 @@ def github_client(token: str) -> "Github":return Github(auth=Auth.Token(token))+def _merge_queue_via_graphql(gh: "Github", owner: str, repo: str, branch: str, pr_number: int) -> bool | None:+ """Return whether the PR is a live merge-queue entry, or None if indeterminate."""+ if not branch:+ return None+ try:+ _, data = gh.requester.requestJsonAndCheck(+ "POST",+ "/graphql",+ input={"query": _MERGE_QUEUE_QUERY, "variables": {"owner": owner, "repo": repo, "branch": branch}},+ )+ except Exception as error:+ print(f"GraphQL merge-queue lookup failed: {error}")+ return None+ if data.get("errors"):+ print(f"GraphQL merge-queue lookup returned errors: {data['errors']}")+ return None+ merge_queue = data.get("data", {}).get("repository", {}).get("mergeQueue")+ if merge_queue is None:+ return None+ nodes = (merge_queue.get("entries") or {}).get("nodes") or []+ return any((node.get("pullRequest") or {}).get("number") == pr_number for node in nodes)+++def _merge_queue_via_timeline(pull: "PullRequest") -> bool | None:+ """Return membership from the latest add/remove timeline event, or None if unknown."""+ latest_state: bool | None = None+ latest_time = None+ try:+ for event in pull.as_issue().get_timeline():+ state = _MERGE_QUEUE_TIMELINE_EVENTS.get(getattr(event, "event", None))+ created = getattr(event, "created_at", None)+ if state is None or created is None:+ continue+ if latest_time is None or created >= latest_time:+ latest_time, latest_state = created, state+ except Exception as error:+ print(f"Timeline merge-queue lookup failed: {error}")+ return None+ return latest_state+++def merge_queue_status(gh: "Github", repo: "Repository", pull: "PullRequest") -> MergeQueueStatus:+ """Resolve a PR's **current** merge-queue membership deterministically.++ Returns one of ``in_queue`` / ``not_in_queue`` / ``merged`` / ``unknown``.+ Prefers the live GraphQL ``mergeQueue`` entries; falls back to the PR's+ add/remove timeline events; reports ``unknown`` only when both are+ indeterminate so callers can fail safe. Because it queries live state, call+ it at the moment a decision is made (e.g. inside a safe-output job right+ before mutating), not from a stale earlier snapshot.+ """+ if pull.merged:+ return "merged"+ if (pull.state or "").lower() == "closed":+ return "not_in_queue"++ owner, _, name = repo.full_name.partition("/")+ branch = pull.base.ref if pull.base else ""++ membership = _merge_queue_via_graphql(gh, owner, name, branch, pull.number)+ if membership is None:+ membership = _merge_queue_via_timeline(pull)+ if membership is None:+ return "unknown"+ return "in_queue" if membership else "not_in_queue"+++def pr_number_from_merge_queue_branch(head_branch: str) -> str:+ """Extract the PR number from a ``gh-readonly-queue/...`` head branch, or ''."""+ match = MERGE_QUEUE_PR_RE.search(head_branch or "")+ return match.group(1) if match else ""+++def post_adaptive_card(webhook_url: str, body: list[dict[str, Any]]) -> None:"""POST an Adaptive Card ``body`` to a Microsoft Teams incoming webhook."""payload = {diff --git a/.github/scripts/agentic-workflows/readd_to_merge_queue.py b/.github/scripts/agentic-workflows/readd_to_merge_queue.pydeleted file mode 100644index 61da47e0794..00000000000--- a/.github/scripts/agentic-workflows/readd_to_merge_queue.py+++ /dev/null@@ -1,95 +0,0 @@-# Copyright (C) 2018-2026 Intel Corporation-# SPDX-License-Identifier: Apache-2.0--"""Re-add a pull request dropped from the merge queue back into the queue.--Used by the `readd-to-merge-queue` custom safe-output job of the CI Doctor MQ-workflow (.github/workflows/shared/agentic-workflows/readd-to-merge-queue.md).-Reads the agent output referenced by GH_AW_AGENT_OUTPUT, and re-adds the PR via-`gh pr merge` (which enqueues on a merge-queue branch). It is idempotent: it-skips merged/closed/draft PRs and PRs already carrying a re-add marker comment.-"""--from __future__ import annotations--import subprocess-from typing import TYPE_CHECKING--from common import github_client, handle_numeric_id, read_agent_item, require_env, resolve_repository--if TYPE_CHECKING:- from github.PullRequest import PullRequest--MARKER = "<!-- ci-doctor-mq-readd -->"---def already_readded(pull: "PullRequest") -> bool:- """Return True if a previous CI Doctor re-add marker comment is present."""- return any(MARKER in (comment.body or "") for comment in pull.get_issue_comments())---def skip_reason(pull: "PullRequest", pr_number: str) -> str | None:- """Return a human-readable reason to skip re-adding, or None to proceed."""- if pull.merged:- return f"PR #{pr_number} is already merged; nothing to re-add."- if pull.state != "open":- return f"PR #{pr_number} is not open (state={pull.state}); not re-adding."- if pull.draft:- return f"PR #{pr_number} is a draft; not re-adding."- return None---def enqueue(pull: "PullRequest", pr_number: str, repository: str) -> None:- """Re-add the PR to the merge queue via ``gh pr merge``.-- On a branch that requires a merge queue, ``gh pr merge`` adds the PR to the- queue (using the queue's own configured merge method) instead of merging- directly. ``--squash`` keeps the CLI non-interactive; ``--match-head-commit``- guards against the head moving under us.- """- merge_command = ["gh", "pr", "merge", pr_number, "--repo", repository, "--squash"]- if pull.head.sha:- merge_command += ["--match-head-commit", pull.head.sha]- result = subprocess.run(merge_command, capture_output=True, text=True)- if result.returncode != 0:- raise SystemExit(f"Merge-queue enqueue failed: {result.stderr.strip()}")---def record_marker(pull: "PullRequest", reason: str) -> None:- """Comment a marker so subsequent CI Doctor runs do not re-add again."""- comment_body = (- f"{MARKER}\n\n_CI Doctor re-added this pull request to the merge queue "- f"after a transient failure (reason: {reason})._"- )- pull.create_issue_comment(comment_body)---def main() -> None:- token = require_env("GH_TOKEN", "MERGE_QUEUE_TOKEN secret is not configured; cannot re-add to merge queue.")- item = read_agent_item("readd_to_merge_queue")- pr_number = handle_numeric_id(item.get("pr_number") or "", "pr_number")- repository = resolve_repository(item.get("repository") or "")- reason = item.get("reason") or ""-- print(f"Requested re-add of PR #{pr_number} in {repository} to merge queue (reason: {reason})")-- pull = github_client(token).get_repo(repository).get_pull(int(pr_number))-- if already_readded(pull):- print(f"PR #{pr_number} already re-added by CI Doctor (marker comment found); skipping.")- return-- reason_to_skip = skip_reason(pull, pr_number)- if reason_to_skip:- print(reason_to_skip)- return-- enqueue(pull, pr_number, repository)- print(f"Successfully requested re-add of PR #{pr_number} to the merge queue.")-- record_marker(pull, reason)- print(f"Recorded re-add marker comment on PR #{pr_number}.")---if __name__ == "__main__":- main()diff --git a/.github/scripts/agentic-workflows/remediate_transient_failure.py b/.github/scripts/agentic-workflows/remediate_transient_failure.pynew file mode 100644index 00000000000..eaad7807857--- /dev/null+++ b/.github/scripts/agentic-workflows/remediate_transient_failure.py@@ -0,0 +1,193 @@+# Copyright (C) 2018-2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0++"""Remediate a transient merge-queue pipeline failure.++Single custom safe-output job for the CI Doctor MQ workflow+(.github/workflows/shared/agentic-workflows/remediate-transient-failure.md). The+agent calls it whenever the failure is transient (Infrastructure / Flaky Test /+Network / External Service).++This job resolves that status live (``common.merge_queue_status``) and picks the+remedy itself:+ - PR still ``in_queue`` -> re-run only the failed jobs (a re-run keeps it moving).+ - PR ``not_in_queue`` -> re-add the PR to the merge queue (it was dropped).+ - PR ``merged``/``unknown`` or no PR that must be re-added -> no-op.++In both the re-run and re-add cases it posts an outcome comment on the PR so the+author sees what CI Doctor did and why.++Re-running uses the default ``GITHUB_TOKEN`` (needs ``actions: write`` and+``pull-requests: write`` for the comment); re-adding uses ``MERGE_QUEUE_TOKEN``+because the default token cannot re-trigger ``merge_group`` check runs.+"""++from __future__ import annotations++import os+import subprocess++from common import (+ github_client,+ handle_numeric_id,+ merge_queue_status,+ pr_number_from_merge_queue_branch,+ read_agent_item,+ require_env,+ resolve_repository,+)++from github.PullRequest import PullRequest+from github.WorkflowRun import WorkflowRun+++READD_MARKER = "<!-- ci-doctor-mq-readd -->"+++def _rerun_comment(run: "WorkflowRun", reason: str) -> str:+ """Comment body announcing that the PR's failed jobs were re-run."""+ return (+ "### CI Doctor — Merge Queue remediation\n\n"+ "This PR's merge-queue pipeline failed transiently, so CI Doctor **re-ran its failed jobs** "+ "(the PR is still in the merge queue).\n\n"+ f"- **Failed run**: {run.html_url}\n"+ f"- **Reason**: {reason or 'transient failure'}\n"+ )+++def _readd_comment(run: "WorkflowRun", reason: str) -> str:+ """Comment body announcing that the PR was re-added to the merge queue."""+ return (+ f"{READD_MARKER}\n\n"+ "### CI Doctor — Merge Queue remediation\n\n"+ "This PR was dropped from the merge queue by a transient pipeline failure, so CI Doctor "+ "**re-added it to the merge queue**.\n\n"+ f"- **Failed run**: {run.html_url}\n"+ f"- **Reason**: {reason or 'transient failure'}\n"+ )+++def resolve_pr_number(run: "WorkflowRun") -> str:+ """Best-effort PR number behind a merge-queue run, or '' when none applies."""+ number = pr_number_from_merge_queue_branch(run.head_branch or "")+ if number:+ return number+ try:+ pulls = run.pull_requests or []+ except Exception:+ pulls = []+ return str(pulls[0].number) if pulls else ""+++def rerun_failed_jobs(run: "WorkflowRun", run_id: str, repository: str, pull: "PullRequest", reason: str) -> None:+ """Re-run only the failed jobs of ``run`` (loop-guarded) and comment on the PR."""+ attempt = run.run_attempt or 1+ if attempt > 1:+ print(f"Run {run_id} already has {attempt} attempts; not re-running to avoid loops.")+ return+ if not run.rerun_failed_jobs():+ raise SystemExit(f"GitHub API rejected the re-run request for {repository} run {run_id}.")+ print(f"Successfully requested re-run of failed jobs for {repository} run {run_id}.")+ _set_github_env("RERUN_FAILED_JOBS", "true")+ pull.create_issue_comment(_rerun_comment(run, reason))+ print(f"Recorded re-run comment on PR #{pull.number}.")+++def _already_readded(pull: "PullRequest") -> bool:+ """Return True if a previous CI Doctor re-add marker comment is present."""+ return any(READD_MARKER in (comment.body or "") for comment in pull.get_issue_comments())+++def _set_github_env(key: str, value: str) -> None:+ """Append ``key=value`` to ``$GITHUB_ENV`` so later workflow steps can react."""+ github_env = os.environ.get("GITHUB_ENV")+ if not github_env:+ return+ with open(github_env, "a", encoding="utf-8") as handle:+ handle.write(f"{key}={value}\n")+++def _readd_skip_reason(pull: "PullRequest", pr_number: str) -> str | None:+ """Return a reason to skip re-adding, or None to proceed."""+ if pull.merged:+ return f"PR #{pr_number} is already merged; nothing to re-add."+ if pull.state != "open":+ return f"PR #{pr_number} is not open (state={pull.state}); not re-adding."+ if pull.draft:+ return f"PR #{pr_number} is a draft; not re-adding."+ return None+++def readd_to_queue(pr_number: str, repository: str, reason: str, merge_queue_token: str, run: "WorkflowRun") -> None:+ """Re-add a dropped PR to the merge queue via ``gh pr merge`` (idempotent).++ Uses ``MERGE_QUEUE_TOKEN`` for the enqueue and the outcome comment because the+ default ``GITHUB_TOKEN`` cannot re-trigger ``merge_group`` check runs.+ """+ mq_pull = github_client(merge_queue_token).get_repo(repository).get_pull(int(pr_number))++ if _already_readded(mq_pull):+ print(f"PR #{pr_number} already re-added by CI Doctor (marker comment found); skipping.")+ return++ reason_to_skip = _readd_skip_reason(mq_pull, pr_number)+ if reason_to_skip:+ print(reason_to_skip)+ return++ # ``--squash`` keeps the CLI non-interactive; on a merge-queue branch the+ # server ignores it in favour of the queue's configured method.+ merge_command = ["gh", "pr", "merge", pr_number, "--repo", repository, "--squash"]+ if mq_pull.head.sha:+ merge_command += ["--match-head-commit", mq_pull.head.sha]+ result = subprocess.run(+ merge_command, capture_output=True, text=True, env={**os.environ, "GH_TOKEN": merge_queue_token}+ )+ if result.returncode != 0:+ raise SystemExit(f"Merge-queue enqueue failed: {result.stderr.strip()}")+ print(f"Successfully requested re-add of PR #{pr_number} to the merge queue.")+ _set_github_env("READDED_TO_MQ", "true")++ mq_pull.create_issue_comment(_readd_comment(run, reason))+ print(f"Recorded re-add comment on PR #{pr_number}.")+++def main() -> None:+ item = read_agent_item("remediate_transient_failure")+ run_id = handle_numeric_id(item.get("run_id") or "", "run_id")+ repository = resolve_repository(item.get("repository") or "")+ reason = item.get("reason") or ""++ print(f"Remediating transient failure for {repository} run {run_id} (reason: {reason})")++ token = require_env("GH_TOKEN", "GITHUB_TOKEN is not configured; cannot remediate.")+ gh = github_client(token)+ repo = gh.get_repo(repository)+ run = repo.get_workflow_run(int(run_id))++ pr_number = resolve_pr_number(run)+ if not pr_number:+ print("No pull request associated with this run; cannot remediate.")+ return++ pull = repo.get_pull(int(pr_number))+ status = merge_queue_status(gh, repo, pull)+ print(f"Live merge-queue status for PR #{pr_number}: {status}")++ if status == "in_queue":+ print(f"PR #{pr_number} is still in the merge queue; re-running failed jobs.")+ rerun_failed_jobs(run, run_id, repository, pull, reason)+ elif status == "not_in_queue":+ print(f"PR #{pr_number} was dropped from the merge queue; re-adding it.")+ merge_queue_token = require_env(+ "MERGE_QUEUE_TOKEN", "MERGE_QUEUE_TOKEN secret is not configured; cannot re-add to merge queue."+ )+ readd_to_queue(pr_number, repository, reason, merge_queue_token, run)+ elif status == "merged":+ print(f"PR #{pr_number} is already merged; no remediation needed.")+ else:+ print(f"PR #{pr_number} merge-queue status is '{status}'; cannot safely remediate. Skipping.")+++if __name__ == "__main__":+ main()diff --git a/.github/scripts/agentic-workflows/rerun_failed_jobs.py b/.github/scripts/agentic-workflows/rerun_failed_jobs.pydeleted file mode 100644index c53033eefb0..00000000000--- a/.github/scripts/agentic-workflows/rerun_failed_jobs.py+++ /dev/null@@ -1,51 +0,0 @@-# Copyright (C) 2018-2026 Intel Corporation-# SPDX-License-Identifier: Apache-2.0--"""Re-run ONLY the failed jobs of an analysed GitHub Actions workflow run.--Used by the `rerun-failed-jobs` custom safe-output job of the CI Doctor MQ-workflow (.github/workflows/shared/agentic-workflows/rerun-failed-jobs.md).-Reads the agent output referenced by GH_AW_AGENT_OUTPUT and calls the GitHub-Actions rerun-failed-jobs endpoint via PyGithub.-"""--from __future__ import annotations--from typing import TYPE_CHECKING--from common import github_client, handle_numeric_id, read_agent_item, require_env, resolve_repository--if TYPE_CHECKING:- from github.WorkflowRun import WorkflowRun---def trigger_rerun(run: "WorkflowRun", run_id: str, repository: str) -> None:- """Re-run only the failed jobs of ``run``, guarding against restart loops."""- # If the run has already been attempted more than once, do not re-run it- # again (mirrors rerunner.py).- attempt = run.run_attempt or 1- if attempt > 1:- print(f"Run {run_id} already has {attempt} attempts; not re-running to avoid loops.")- return-- if not run.rerun_failed_jobs():- raise SystemExit(f"GitHub API rejected the re-run request for {repository} run {run_id}.")-- print(f"Successfully requested re-run of failed jobs for {repository} run {run_id}.")---def main() -> None:- item = read_agent_item("rerun_failed_jobs")- run_id = handle_numeric_id(item.get("run_id") or "", "run_id")- repository = resolve_repository(item.get("repository") or "")- reason = item.get("reason") or ""-- print(f"Requested re-run of failed jobs for {repository} run {run_id} (reason: {reason})")-- token = require_env("GH_TOKEN", "GITHUB_TOKEN is not configured; cannot re-run failed jobs.")- run = github_client(token).get_repo(repository).get_workflow_run(int(run_id))- trigger_rerun(run, run_id, repository)---if __name__ == "__main__":- main()diff --git a/.github/workflows/ci-doctor-mq.lock.yml b/.github/workflows/ci-doctor-mq.lock.ymlindex 6f3e37e4b91..b2bfb0845dd 100644--- a/.github/workflows/ci-doctor-mq.lock.yml+++ b/.github/workflows/ci-doctor-mq.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"79269a3e320777227e3dcac4c9a79d80fea35620def7389e18c274ccb4e76855","body_hash":"d095ba411012ec8f903cad9fc79c9fffc14a64b18f7813d06c120c97ef0bca31","compiler_version":"v0.83.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.75"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","TEAMS_WEBHOOK_URL"],"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":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"},{"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":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"e89c65e17eb281bbd5ff2ff9e9199a03e96654c7","version":"v0.83.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.42","digest":"sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42","digest":"sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.42","digest":"sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.6","digest":"sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748","pinned_image":"ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748"},{"image":"ghcr.io/github/github-mcp-server:v1.7.0","digest":"sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308","pinned_image":"ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308"}]}-# This file was automatically generated by gh-aw (v0.83.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"02aef3108182e7ebd2fe8d5e64f4030431be39005215a1a887130026fd1064ff","body_hash":"0ed1f4fe9d6014054c62cd1abeea3e368dc1e1790a4dd101771eeed8afe691c5","compiler_version":"v0.85.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.78"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","TEAMS_WEBHOOK_URL"],"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":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/checkout","sha":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0","version":"9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"},{"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":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"2709137ea6c5b0e19aa621454dc643ea8dc526b1","version":"v0.85.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44","digest":"sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44","digest":"sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44","digest":"sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.8","digest":"sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196"},{"image":"ghcr.io/github/github-mcp-server:v1.8.0","digest":"sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520","pinned_image":"ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520"}]}+# This file was automatically generated by gh-aw (v0.85.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -34,8 +34,7 @@# - shared/agentic-workflows/download-failure-logs.md# - shared/agentic-workflows/notify-teams-recurring.md# - shared/agentic-workflows/notify-teams.md-# - shared/agentic-workflows/readd-to-merge-queue.md-# - shared/agentic-workflows/rerun-failed-jobs.md+# - shared/agentic-workflows/remediate-transient-failure.md## Secrets used:# - COPILOT_GITHUB_TOKEN@@ -56,15 +55,15 @@# - actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0# - actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1-# - github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+# - github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607-# - ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0-# - ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c-# - ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748-# - ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308+# - ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7+# - ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627+# - ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8+# - ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196+# - ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520name: "CI Failure Doctor — Merge Queue"on:@@ -126,6 +125,7 @@ jobs:comment_id: ""comment_repo: ""daily_ai_credits_exceeded: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_exceeded == 'true' }}+ daily_ai_credits_guardrail_status: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_guardrail_status || '' }}daily_ai_credits_threshold: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_threshold || '' }}daily_ai_credits_total_effective_tokens: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_total_effective_tokens || '' }}engine_id: ${{ steps.generate_aw_info.outputs.engine_id }}@@ -140,7 +140,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -150,8 +150,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Generate agentic run infoid: generate_aw_info@@ -159,16 +159,16 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-4.6"- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AGENT_VERSION: "1.0.75"- GH_AW_INFO_CLI_VERSION: "v0.83.4"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AGENT_VERSION: "1.0.78"+ GH_AW_INFO_CLI_VERSION: "v0.85.4"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]'GH_AW_INFO_FIREWALL_ENABLED: "true"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_COMPILED_STRICT: "true"@@ -242,18 +242,16 @@ jobs:sparse-checkout: |.github.agents- .antigravity.claude.codex.gemini- .opencode.pisparse-checkout-cone-mode: truefetch-depth: 1- name: Save agent config folders for base branch restorationenv:- GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"- GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"+ GH_AW_AGENT_FOLDERS: ".agents .github"+ GH_AW_AGENT_FILES: "AGENTS.md"# poutine:ignore untrusted_checkout_execrun: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"- name: Check workflow lock file@@ -271,7 +269,7 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.83.4"+ GH_AW_COMPILED_VERSION: "v0.85.4"with:script: |const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');@@ -305,21 +303,21 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/create_prompt_first.sh"{- cat << 'GH_AW_PROMPT_80adda4f0469ae64_EOF'+ cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'<system>- GH_AW_PROMPT_80adda4f0469ae64_EOF+ GH_AW_PROMPT_0d4bf9761af0f0b8_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/repo_memory_prompt.md"cat "${RUNNER_TEMP}/gh-aw/prompts/safe_outputs_prompt.md"- cat << 'GH_AW_PROMPT_80adda4f0469ae64_EOF'+ cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'<safe-output-tools>- Tools: add_comment, missing_tool, missing_data, noop, notify_teams, notify_teams_recurring, readd_to_merge_queue, rerun_failed_jobs+ Tools: add_comment, missing_tool, missing_data, noop, notify_teams, notify_teams_recurring, remediate_transient_failure</safe-output-tools>- GH_AW_PROMPT_80adda4f0469ae64_EOF+ GH_AW_PROMPT_0d4bf9761af0f0b8_EOFcat "${RUNNER_TEMP}/gh-aw/prompts/mcp_cli_tools_prompt.md"- cat << 'GH_AW_PROMPT_80adda4f0469ae64_EOF'+ cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'<github-context>The following GitHub context information is available for this workflow:{{#if github.actor}}@@ -348,18 +346,17 @@ jobs:{{/if}}</github-context>- GH_AW_PROMPT_80adda4f0469ae64_EOF+ GH_AW_PROMPT_0d4bf9761af0f0b8_EOFcat "${RUNNER_TEMP}/gh-aw/prompts/github_mcp_tools_with_safeoutputs_prompt.md"- cat << 'GH_AW_PROMPT_80adda4f0469ae64_EOF'+ cat << 'GH_AW_PROMPT_0d4bf9761af0f0b8_EOF'</system>{{#runtime-import .github/workflows/shared/agentic-workflows/download-failure-logs.md}}{{#runtime-import .github/workflows/shared/agentic-workflows/collect-pr-info.md}}{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams.md}}{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams-recurring.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/rerun-failed-jobs.md}}- {{#runtime-import .github/workflows/shared/agentic-workflows/readd-to-merge-queue.md}}+ {{#runtime-import .github/workflows/shared/agentic-workflows/remediate-transient-failure.md}}{{#runtime-import .github/workflows/ci-doctor-mq.md}}- GH_AW_PROMPT_80adda4f0469ae64_EOF+ GH_AW_PROMPT_0d4bf9761af0f0b8_EOF} > "$GH_AW_PROMPT"- name: Interpolate variables and render templatesuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -499,7 +496,10 @@ jobs:http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}inference_access_error: ${{ steps.detect-agent-errors.outputs.inference_access_error || 'false' }}invocation_cap_exceeded: ${{ steps.detect-agent-errors.outputs.invocation_cap_exceeded || 'false' }}+ max_cache_misses_exceeded: ${{ steps.detect-agent-errors.outputs.max_cache_misses_exceeded || 'false' }}mcp_policy_error: ${{ steps.detect-agent-errors.outputs.mcp_policy_error || 'false' }}+ missing_model_pricing_error: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_error || 'false' }}+ missing_model_pricing_model_name: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_model_name || '' }}model: ${{ needs.activation.outputs.model }}model_not_supported_error: ${{ steps.detect-agent-errors.outputs.model_not_supported_error || 'false' }}output: ${{ steps.collect_output.outputs.output }}@@ -511,7 +511,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -520,8 +520,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -608,11 +608,12 @@ jobs:const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs');await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.75+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com+ GH_AW_COMPILED_VERSION: v0.85.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.42 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)@@ -626,8 +627,8 @@ jobs:- name: Restore agent config folders from base branchif: steps.checkout-pr.outcome == 'success'env:- GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"- GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"+ GH_AW_AGENT_FOLDERS: ".agents .github"+ GH_AW_AGENT_FILES: "AGENTS.md"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh"- name: Restore inline sub-agents from activation artifactenv:@@ -639,15 +640,15 @@ jobs:GH_AW_SKILL_DIR: ".github/skills"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607 ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0 ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748 ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627 ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8 ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196 ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520- name: Generate Safe Outputs Configrun: |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_0441a1c5981b0acb_EOF'- {"add_comment":{"max":1,"target":"*"},"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":"not_found","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 (normalized error message + failure category, job-agnostic) 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":"not_found","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":"not_found","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":1048576,"max_patch_size":1048576}]},"readd-to-merge-queue":{"description":"Re-add a pull request that was removed from the merge queue because of the analysed pipeline failure back into the merge queue. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain re-queue is likely to let the PR merge (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that re-queuing cannot fix.","inputs":{"pr_number":{"default":null,"description":"Number of the pull request that was dropped from the merge queue and should be re-added. Report as a numeric string.","required":true,"type":"string"},"reason":{"default":null,"description":"Short justification for why re-queuing is expected to let the PR merge (e.g. 'network timeout while downloading dependencies').","required":true,"type":"string"},"repository":{"default":"not_found","description":"The owner/repo of the repository that owns the pull request (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.","required":false,"type":"string"}},"output":"Re-add to merge queue requested for the affected pull request."},"report_incomplete":{},"rerun-failed-jobs":{"description":"Re-run ONLY the failed jobs of the analysed workflow run. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain restart is likely to fix it (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart cannot fix.","inputs":{"reason":{"default":null,"description":"Short justification for why a restart is expected to remedy the failure (e.g. 'network timeout while downloading dependencies').","required":true,"type":"string"},"repository":{"default":"not_found","description":"The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.","required":false,"type":"string"},"run_id":{"default":null,"description":"Numeric ID of the GitHub Actions workflow run whose failed jobs should be re-run. This is the run that was investigated (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.","required":true,"type":"string"}},"output":"Failed jobs re-run requested for the analysed workflow run."}}- GH_AW_SAFE_OUTPUTS_CONFIG_0441a1c5981b0acb_EOF+ cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_3667922a9eb92fde_EOF'+ {"add_comment":{"max":1,"target":"*"},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"false"},"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":"not_found","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 (normalized error message + failure category, job-agnostic) 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":"not_found","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":"not_found","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":1048576,"max_patch_size":1048576}]},"remediate-transient-failure":{"description":"Remediate a TRANSIENT merge-queue pipeline failure. Call this at most once and ONLY when the investigation concludes the failure is transient (Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). The job resolves the PR's live merge-queue status itself and decides whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR was dropped) — you do NOT know or provide the queue status. Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart or re-queue cannot fix.","inputs":{"reason":{"default":null,"description":"Short justification for why the failure is transient and remediation is expected to help (e.g. 'network timeout while downloading dependencies').","required":true,"type":"string"},"repository":{"default":"not_found","description":"The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.","required":false,"type":"string"},"run_id":{"default":null,"description":"Numeric ID of the analysed GitHub Actions workflow run (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.","required":true,"type":"string"}},"output":"Transient-failure remediation requested for the analysed workflow run."},"report_incomplete":{}}+ GH_AW_SAFE_OUTPUTS_CONFIG_3667922a9eb92fde_EOF- name: Generate Safe Outputs Toolsenv:GH_AW_TOOLS_META_JSON: |@@ -772,39 +773,12 @@ jobs:"name": "notify_teams_recurring"},{- "description": "Re-add a pull request that was removed from the merge queue because of the analysed pipeline failure back into the merge queue. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain re-queue is likely to let the PR merge (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that re-queuing cannot fix.",- "inputSchema": {- "additionalProperties": false,- "properties": {- "pr_number": {- "description": "Number of the pull request that was dropped from the merge queue and should be re-added. Report as a numeric string.",- "type": "string"- },- "reason": {- "description": "Short justification for why re-queuing is expected to let the PR merge (e.g. 'network timeout while downloading dependencies').",- "type": "string"- },- "repository": {- "default": "not_found",- "description": "The owner/repo of the repository that owns the pull request (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted.",- "type": "string"- }- },- "required": [- "pr_number",- "reason"- ],- "type": "object"- },- "name": "readd_to_merge_queue"- },- {- "description": "Re-run ONLY the failed jobs of the analysed workflow run. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain restart is likely to fix it (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart cannot fix.",+ "description": "Remediate a TRANSIENT merge-queue pipeline failure. Call this at most once and ONLY when the investigation concludes the failure is transient (Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). The job resolves the PR's live merge-queue status itself and decides whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR was dropped) — you do NOT know or provide the queue status. Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart or re-queue cannot fix.","inputSchema": {"additionalProperties": false,"properties": {"reason": {- "description": "Short justification for why a restart is expected to remedy the failure (e.g. 'network timeout while downloading dependencies').",+ "description": "Short justification for why the failure is transient and remediation is expected to help (e.g. 'network timeout while downloading dependencies').","type": "string"},"repository": {@@ -813,7 +787,7 @@ jobs:"type": "string"},"run_id": {- "description": "Numeric ID of the GitHub Actions workflow run whose failed jobs should be re-run. This is the run that was investigated (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.",+ "description": "Numeric ID of the analysed GitHub Actions workflow run (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string.","type": "string"}},@@ -823,7 +797,7 @@ jobs:],"type": "object"},- "name": "rerun_failed_jobs"+ "name": "remediate_transient_failure"}]}@@ -939,6 +913,7 @@ jobs:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_SAFE_OUTPUTS_CONFIG_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_CONFIG_PATH }}GH_AW_SAFE_OUTPUTS_TOOLS_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_TOOLS_PATH }}+ GH_AW_SINK_VISIBILITY: ${{ steps.determine-automatic-lockdown.outputs.visibility }}GITHUB_MCP_GUARD_MIN_INTEGRITY: ${{ steps.determine-automatic-lockdown.outputs.min_integrity }}GITHUB_MCP_GUARD_REPOS: ${{ steps.determine-automatic-lockdown.outputs.repos }}GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -963,16 +938,16 @@ jobs:MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0')MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0')source "${RUNNER_TEMP}/gh-aw/actions/resolve_docker_socket_gid.sh"- export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e RUNNER_TEMP -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.6'+ export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GH_AW_SINK_VISIBILITY -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e RUNNER_TEMP -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.8'mkdir -p "$HOME/.copilot"GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)- cat << GH_AW_MCP_CONFIG_bcbb445f12830b86_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v1.7.0",+ "container": "ghcr.io/github/github-mcp-server:v1.8.0","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -1016,7 +991,7 @@ jobs:"accept": ["*"],- "sink-visibility": ${{ toJSON(steps.determine-automatic-lockdown.outputs.visibility) }}+ "sink-visibility": "${GH_AW_SINK_VISIBILITY}"}}}@@ -1029,7 +1004,7 @@ jobs:"startupTimeout": 120}}- GH_AW_MCP_CONFIG_bcbb445f12830b86_EOF+ GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1069,7 +1044,7 @@ jobs:export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/agent-stdio.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-1000}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.42/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.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\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.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\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"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\",\"kimi\"],\"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*\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"fable\",\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.42,squid=sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0,agent=sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b,agent-act=sha256:a14ad974484aa518aab83d40f3f141175dfd171d3745e01c092375b970f73a20,api-proxy=sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607,cli-proxy=sha256:da006bf96d2d246dd269d57b233c1798d2ad63d6cd64ca02f7bf71045028781f\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.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\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.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\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"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*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${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=""@@ -1087,7 +1062,7 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- 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"} --env-all --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --skip-pull \+ 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"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --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; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/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/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: 1@@ -1102,7 +1077,7 @@ jobs:GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.83.4+ GH_AW_VERSION: v0.85.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1296,8 +1271,7 @@ jobs:- notify_teams- notify_teams_recurring- push_repo_memory- - readd_to_merge_queue- - rerun_failed_jobs+ - remediate_transient_failure- safe_outputsif: >always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' ||@@ -1305,7 +1279,7 @@ jobs:needs.activation.outputs.secret_verification_result == 'failed' || needs.activation.outputs.daily_ai_credits_exceeded == 'true')runs-on: ubuntu-slimpermissions:- contents: read+ actions: readissues: writepull-requests: writeconcurrency:@@ -1322,7 +1296,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1331,8 +1305,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1348,7 +1322,7 @@ jobs:mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -printecho "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"- - name: Download safe outputs items manifest+ - name: Download Safe Outputs Items Manifestid: download-safe-outputs-manifestif: always()continue-on-error: true@@ -1359,30 +1333,7 @@ jobs:- name: Collect usage artifact filesif: always()continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/usage/agent /tmp/gh-aw/usage/detection- echo "Usage artifact source file status:"- for file in /tmp/gh-aw/aw_info.json /tmp/gh-aw/aw-info.jsonl /tmp/gh-aw/agent_usage.json /tmp/gh-aw/agent_usage.jsonl /tmp/gh-aw/detection_usage.jsonl /tmp/gh-aw/evals/evals.jsonl /tmp/gh-aw/github_rate_limits.jsonl /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl; do- [ -f "$file" ] && echo "FOUND: $file" || echo "MISSING: $file"- done- [ -f /tmp/gh-aw/aw_info.json ] && cp /tmp/gh-aw/aw_info.json /tmp/gh-aw/usage/aw_info.json || true- [ -f /tmp/gh-aw/aw-info.jsonl ] && cp /tmp/gh-aw/aw-info.jsonl /tmp/gh-aw/usage/aw-info.jsonl || true- [ -f /tmp/gh-aw/agent_usage.json ] && cp /tmp/gh-aw/agent_usage.json /tmp/gh-aw/usage/agent_usage.json || true- [ -f /tmp/gh-aw/agent_usage.jsonl ] && cp /tmp/gh-aw/agent_usage.jsonl /tmp/gh-aw/usage/agent_usage.jsonl || true- [ -f /tmp/gh-aw/detection_usage.jsonl ] && cp /tmp/gh-aw/detection_usage.jsonl /tmp/gh-aw/usage/detection_usage.jsonl || true- [ -f /tmp/gh-aw/evals/evals.jsonl ] && cp /tmp/gh-aw/evals/evals.jsonl /tmp/gh-aw/usage/evals.jsonl || true- [ -f /tmp/gh-aw/github_rate_limits.jsonl ] && cp /tmp/gh-aw/github_rate_limits.jsonl /tmp/gh-aw/usage/github_rate_limits.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -f /tmp/gh-aw/usage/agent/token_usage.jsonl ] || : > /tmp/gh-aw/usage/agent/token_usage.jsonl- [ -f /tmp/gh-aw/usage/detection/token_usage.jsonl ] || : > /tmp/gh-aw/usage/detection/token_usage.jsonl- mkdir -p /tmp/gh-aw/usage/activity- node "${RUNNER_TEMP}/gh-aw/actions/generate_usage_activity_summary.cjs"- find /tmp/gh-aw/usage -type f -print | sort+ run: bash "${RUNNER_TEMP}/gh-aw/actions/collect_usage_artifact_files.sh"- name: Upload usage artifactif: always()continue-on-error: true@@ -1450,7 +1401,7 @@ jobs: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"+ GH_AW_NOOP_REPORT_AS_ISSUE: "false"GH_AW_AIC: ${{ needs.agent.outputs.aic }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }}@@ -1536,6 +1487,9 @@ jobs:GH_AW_AGENTIC_ENGINE_TIMEOUT: ${{ needs.agent.outputs.agentic_engine_timeout }}GH_AW_MODEL_NOT_SUPPORTED_ERROR: ${{ needs.agent.outputs.model_not_supported_error }}GH_AW_HTTP_400_RESPONSE_ERROR: ${{ needs.agent.outputs.http_400_response_error }}+ GH_AW_MAX_CACHE_MISSES_EXCEEDED: ${{ needs.agent.outputs.max_cache_misses_exceeded }}+ GH_AW_MISSING_MODEL_PRICING_ERROR: ${{ needs.agent.outputs.missing_model_pricing_error }}+ GH_AW_MISSING_MODEL_PRICING_MODEL_NAME: ${{ needs.agent.outputs.missing_model_pricing_model_name }}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_OAUTH_TOKEN_CHECK_FAILED: ${{ needs.activation.outputs.oauth_token_check_failed }}@@ -1559,6 +1513,23 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs');await main();+ - name: Report failed jobs+ id: report_failed_jobs+ if: always()+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ 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_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_REPORT_FAILED_JOBS: "true"+ with:+ github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}+ 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/report_failed_jobs.cjs');+ await main();detection:needs:@@ -1578,7 +1549,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1587,8 +1558,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1615,7 +1586,7 @@ jobs:rm -rf /tmp/gh-aw/sandbox/firewall/logsrm -rf /tmp/gh-aw/sandbox/firewall/audit- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607 ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627- name: Check if detection neededid: detection_guardif: always()@@ -1647,10 +1618,14 @@ jobs:ficp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || truefor f in /tmp/gh-aw/aw-*.patch; do- [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ if [ -f "$f" ]; then+ cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ fidonefor f in /tmp/gh-aw/aw-*.bundle; do- [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ if [ -f "$f" ]; then+ cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ fidoneecho "Prepared threat detection files:"ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true@@ -1661,6 +1636,7 @@ jobs:WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"WORKFLOW_DESCRIPTION: "This workflow is an automated CI failure investigator for the GitHub Actions Merge Queue.\nIt triggers when monitored merge-queue workflows fail, performs deep analysis of the failure,\nand sends a second escalation alert to Microsoft Teams when the same failure pattern\nhas 3 or more occurrences within the last 12 hours."HAS_PATCH: ${{ needs.agent.outputs.has_patch }}+ GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"with:script: |const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');@@ -1672,17 +1648,20 @@ jobs:run: |mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log+ rm -f /tmp/gh-aw/threat-detection/step-summary.md+ touch /tmp/gh-aw/threat-detection/step-summary.md- name: Setup Node.jsuses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.75+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com+ GH_AW_COMPILED_VERSION: v0.85.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.42+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44- name: Execute GitHub Copilot CLIif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true@@ -1702,7 +1681,7 @@ jobs:export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-400}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.42/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"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\",\"kimi\"],\"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*\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"fable\",\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.42,squid=sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0,agent=sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b,agent-act=sha256:a14ad974484aa518aab83d40f3f141175dfd171d3745e01c092375b970f73a20,api-proxy=sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607,cli-proxy=sha256:da006bf96d2d246dd269d57b233c1798d2ad63d6cd64ca02f7bf71045028781f\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"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*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${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=""@@ -1722,7 +1701,7 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- 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"} --env-all --exclude-env COPILOT_GITHUB_TOKEN --log-level info --skip-pull \+ 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"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --log-level info --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; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/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/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 "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.logenv:AWF_REFLECT_ENABLED: 1@@ -1736,7 +1715,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.83.4+ GH_AW_VERSION: v0.85.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1903,15 +1882,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Check team membership for workflowid: check_membership@@ -1949,7 +1928,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1958,8 +1937,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -2001,15 +1980,17 @@ jobs:const { main } = require('${{ runner.temp }}/gh-aw/actions/push_repo_memory.cjs');await main();- readd_to_merge_queue:+ remediate_transient_failure:needs:- agent- detection- if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'readd_to_merge_queue')+ if: >+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'remediate_transient_failure')runs-on: ubuntu-latestpermissions:+ actions: writecontents: read- pull-requests: read+ pull-requests: writesteps:- name: Download agent output artifactcontinue-on-error: true@@ -2034,54 +2015,24 @@ jobs:run: python -m pip install --quiet PyGithub==2.9.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- - name: Re-add pull request to merge queue+ - name: Remediate transient failurerun: |export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}- python .github/scripts/agentic-workflows/readd_to_merge_queue.py+ python .github/scripts/agentic-workflows/remediate_transient_failure.pyenv:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- GH_TOKEN: ${{ secrets.MERGE_QUEUE_TOKEN }}-- rerun_failed_jobs:- needs:- - agent- - detection- if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'rerun_failed_jobs')- runs-on: ubuntu-latest- permissions:- actions: write- contents: read- steps:- - name: Download agent output artifact- continue-on-error: true- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1- with:- name: agent- path: ${{ runner.temp }}/gh-aw/safe-jobs/- - name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0- env:- GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- with:- persist-credentials: false- sparse-checkout: .github/scripts/agentic-workflows- - name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405- env:- GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- with:- python-version: "3.13"- - name: Install PyGithub- run: python -m pip install --quiet PyGithub==2.9.1+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ MERGE_QUEUE_TOKEN: ${{ secrets.MERGE_QUEUE_TOKEN }}+ - name: Re-run of failed jobs was triggered+ if: ${{ env.RERUN_FAILED_JOBS == 'true' }}+ run: echo "CI Doctor re-ran the failed jobs for the analysed run (PR still in the merge queue)."env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- - name: Re-run failed jobs- run: |- export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}- python .github/scripts/agentic-workflows/rerun_failed_jobs.py+ - name: Re-add to merge queue was triggered+ if: ${{ env.READDED_TO_MQ == 'true' }}+ run: echo "CI Doctor re-added the pull request to the merge queue (it had been dropped)."env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}safe_outputs:needs:@@ -2091,7 +2042,6 @@ jobs:if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success'runs-on: ubuntu-slimpermissions:- contents: readissues: writepull-requests: writetimeout-minutes: 45@@ -2105,7 +2055,7 @@ jobs:GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }}GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-4.6"- GH_AW_ENGINE_VERSION: "1.0.75"+ GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"@@ -2118,12 +2068,15 @@ jobs:comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }}create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }}create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }}+ process_safe_outputs_items_failed: ${{ steps.process_safe_outputs.outputs.items_failed }}+ process_safe_outputs_items_succeeded: ${{ steps.process_safe_outputs.outputs.items_succeeded }}process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }}+ process_safe_outputs_status: ${{ steps.process_safe_outputs.outputs.status }}process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2132,8 +2085,8 @@ jobs: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.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -2167,8 +2120,8 @@ jobs:GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.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,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.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,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}- GH_AW_SAFE_OUTPUT_JOBS: "{\"notify_teams\":\"\",\"notify_teams_recurring\":\"\",\"readd_to_merge_queue\":\"\",\"rerun_failed_jobs\":\"\"}"- GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUT_JOBS: "{\"notify_teams\":\"\",\"notify_teams_recurring\":\"\",\"remediate_transient_failure\":\"\"}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |@@ -2184,6 +2137,4 @@ jobs:path: |/tmp/gh-aw/safe-output-items.jsonl/tmp/gh-aw/temporary-id-map.json- /tmp/gh-aw/process-safe-outputs.stdout.log- /tmp/gh-aw/process-safe-outputs.stderr.logif-no-files-found: ignorediff --git a/.github/workflows/ci-doctor-mq.md b/.github/workflows/ci-doctor-mq.mdindex 3b9a65337f8..51f93cad1e4 100644--- a/.github/workflows/ci-doctor-mq.md+++ b/.github/workflows/ci-doctor-mq.md@@ -49,8 +49,7 @@ imports:- shared/agentic-workflows/collect-pr-info.md- shared/agentic-workflows/notify-teams.md- shared/agentic-workflows/notify-teams-recurring.md- - shared/agentic-workflows/rerun-failed-jobs.md- - shared/agentic-workflows/readd-to-merge-queue.md+ - shared/agentic-workflows/remediate-transient-failure.mdsafe-outputs:add-comment:@@ -450,7 +449,7 @@ ELSE:2. **Actionable Deliverables**:- Send a Microsoft Teams notification with the investigation results (see Output Requirements below)- When the failure is associated with a PR in the merge queue, post a remediation comment on that PR with the failed pipeline name/link, a short failure description, and a short possible remedy (see `add_comment` field guidance below)- - When the investigation concludes the failure is transient, decide between two mutually exclusive remedies based on whether the PR is still in the merge queue: if the PR is **still in the queue** (or there is no associated PR), request a re-run of only the failed jobs (see `rerun_failed_jobs` decision guidance below); if the PR has been **dropped from the queue**, a re-run would not help it merge, so request that the PR be re-added to the merge queue instead (see `readd_to_merge_queue` decision guidance below)+ - When the investigation concludes the failure is **transient** (Infrastructure / Flaky Test / Network / External Service), request automated remediation by calling `remediate_transient_failure` (see its decision guidance below).- Provide specific file locations and line numbers for fixes- Suggest code changes or configuration updates@@ -524,8 +523,7 @@ Post a concise, actionable remediation comment on the affected merge-queue PR so**Pipeline**: [<failed_workflow name>](<pipeline_url>)**Failure**: <one-line summary, same as notify_teams.title>-**Automatic restart**: <one of: `✅ Re-run of failed jobs requested (reason: <reason>)` when you called `rerun_failed_jobs`; `❌ Not triggered — <short reason, e.g. deterministic code failure>` otherwise>-**Merge queue re-add**: <one of: `✅ Re-added PR to the merge queue (reason: <reason>)` when you called `readd_to_merge_queue`; `❌ Not triggered — <short reason, e.g. PR still in queue / deterministic failure>` otherwise>+**Automatic remediation**: <one of: `✅ Requested (reason: <reason>)` when you called `remediate_transient_failure` — the job re-runs the failed jobs if the PR is still queued, or re-adds the PR to the merge queue if it was dropped; `❌ Not triggered — <short reason, e.g. deterministic code failure>` otherwise>#### Possible remedy@@ -599,17 +597,11 @@ Provide all required fields and include the optional PR-related fields whenever- **Commit**: ${{ github.event.workflow_run.head_sha }}- **Trigger**: merge_group-### Automatic Restart+### Automatic Remediation-State whether an automatic re-run of the failed jobs was triggered:-- If you called `rerun_failed_jobs`: `✅ Re-run of failed jobs requested` followed by the one-line `reason` you passed.-- Otherwise: `❌ Not triggered` followed by a short justification (e.g. deterministic code failure that a restart cannot fix, or the PR was no longer in the merge queue).--### Automatic Merge Queue Re-add--State whether the affected PR was automatically re-added to the merge queue:-- If you called `readd_to_merge_queue`: `✅ PR re-added to the merge queue` followed by the one-line `reason` you passed.-- Otherwise: `❌ Not triggered` followed by a short justification (e.g. the PR was still in the queue and `rerun_failed_jobs` was used instead, no PR was identified, or the failure was deterministic).+State whether automated remediation of a transient failure was requested:+- If you called `remediate_transient_failure`: `✅ Remediation requested` followed by the one-line `reason` you passed. Note that the job itself decides at run time whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR dropped) — you do not choose or report which.+- Otherwise: `❌ Not triggered` followed by a short justification (e.g. deterministic code failure that neither a restart nor a re-queue can fix).### Root Cause Analysis@@ -676,51 +668,28 @@ This notification is **only** sent when the same failure has occurred 3 or more- **`affected_prs`** — Markdown bullet list of PRs affected by this failure in the last 12 hours (up to 10, e.g., `- [#1234](url)`). If no PRs can be identified, write "No PR information available."- **`recent_run_urls`** — Markdown bullet list of failure run URLs from the last 12 hours (up to 10, e.g., `- [Run 56789](url)`).-### `rerun_failed_jobs` decision guidance+### `remediate_transient_failure` decision guidance-Call the `rerun_failed_jobs` safe-output tool **only** when your Root Cause Analysis concludes the failure is transient and a plain restart is likely to clear it — typically the `Infrastructure`, `Flaky Test`, `Network`, or `External Service` categories (runner hiccups, network timeouts, cancelled jobs, transient download/registry errors, downstream service outages).+Call the `remediate_transient_failure` safe-output tool **only** when your Root Cause Analysis concludes the failure is transient and a plain retry is likely to clear it — the `Infrastructure`, `Flaky Test`, `Network`, or `External Service` categories.-**Do NOT** request a re-run for deterministic failures a restart cannot fix — `Code Issue`, `Dependencies`, or `Configuration` categories (compilation errors, assertion failures, missing symbols, bad workflow config). When in doubt, do not re-run.+**Do NOT** call it for deterministic failures a retry cannot fix — `Code Issue`, `Dependencies`, or `Configuration` categories (compilation errors, assertion failures, missing symbols, bad workflow config). When in doubt, do not call it.-**Merge-queue branch (mutually exclusive with `readd_to_merge_queue`):** A re-run only helps the PR merge if the PR is **still in the merge queue**. Before calling `rerun_failed_jobs`, determine the PR's current queue membership (query the associated PR and check whether it is still in the merge queue). Then:-- **PR still in the queue**, or **no PR is associated** with the run → call `rerun_failed_jobs`.-- **PR no longer in the queue** (GitHub dropped it on the failure) → do **NOT** call `rerun_failed_jobs`; a re-run would not re-enter it into the queue. Call `readd_to_merge_queue` instead (see its guidance below).+When you call `remediate_transient_failure`, the job resolves the PR behind the analysed run, reads its **live** merge-queue status at action time, and picks the remedy itself:+- **PR still in the queue** (or no PR is associated) → it re-runs only the failed jobs.+- **PR dropped from the queue** → it re-adds the PR to the merge queue (idempotent: it skips PRs that are already merged, closed, draft, or previously re-added).+- **PR already merged, or status indeterminate** → it takes no action (fail safe).-Never call both `rerun_failed_jobs` and `readd_to_merge_queue` in the same investigation.--Only the **failed** jobs of the analysed run are restarted; passing jobs are untouched. The job also refuses to re-run a run that already has more than one attempt, to avoid restart loops.+Call it **at most once** per investigation. It re-runs only the **failed** jobs (passing jobs are untouched) and refuses to re-run a run already on its second attempt, to avoid restart loops.Provide:- **`run_id`** (required) — Numeric ID of the analysed run: `${{ github.event.workflow_run.id }}` for merge-queue triggers, or the `run_id` input for `workflow_dispatch`. Pass as a numeric string.- **`repository`** (optional) — `owner/repo` of the analysed run. Omit to default to the current repository.-- **`reason`** (required) — One-line justification for the restart, matching the transient cause identified in the investigation.--This tool is independent of the notifications: still call `notify_teams` (and `add_comment` / `notify_teams_recurring` when applicable) as usual. A re-run request does not replace the investigation report.--Whenever you decide about a restart (whether or not you trigger one), you MUST record the outcome in both the Teams message (the `### Automatic Restart` section of `notify_teams.description`) and, when a PR comment is posted, the `**Automatic restart**` line of the `add_comment` body. Keep both consistent with the actual `rerun_failed_jobs` call.--### `readd_to_merge_queue` decision guidance--When a merge-queue pipeline fails, GitHub drops the affected pull request from the merge queue. Call the `readd_to_merge_queue` safe-output tool **only** when all of the following hold:--1. The failure is **associated with a PR** (you have its number), and-2. The PR is **no longer in the merge queue** (it was dropped as a result of the failure) — if it is still in the queue, use `rerun_failed_jobs` instead, and-3. Your Root Cause Analysis concludes the failure is **transient** and a plain re-queue is likely to let the PR merge — the same `Infrastructure`, `Flaky Test`, `Network`, or `External Service` categories that justify `rerun_failed_jobs`.--**Do NOT** re-add the PR for deterministic failures a re-queue cannot fix — `Code Issue`, `Dependencies`, or `Configuration` categories (compilation errors, assertion failures, missing symbols, bad workflow config). When in doubt, do not re-add.--The job is idempotent and loop-safe: it skips the PR when it is already merged, closed, a draft, or when a previous CI Doctor re-add marker comment is present. It re-adds via the `gh pr merge` command using the `MERGE_QUEUE_TOKEN` secret (a PAT or GitHub App token with `contents: write` + `pull_requests: write`).--Provide:--- **`pr_number`** (required) — Number of the dropped PR (the same value reported as `notify_teams.pr_number`). Pass as a numeric string.-- **`repository`** (optional) — `owner/repo` of the PR. Omit to default to the current repository.-- **`reason`** (required) — One-line justification for the re-queue, matching the transient cause identified in the investigation.+- **`reason`** (required) — One-line justification for why the failure is transient, matching the cause identified in the investigation.-This tool is independent of the notifications: still call `notify_teams` (and `add_comment` / `notify_teams_recurring` when applicable) as usual. It is **mutually exclusive** with `rerun_failed_jobs` — call at most one of the two per investigation (re-run when the PR is still queued, re-add when it was dropped). A re-add request does not replace the investigation report.+This tool is independent of the notifications: still call `notify_teams` (and `add_comment` / `notify_teams_recurring` when applicable) as usual. A remediation request does not replace the investigation report.-Whenever you decide about a re-add (whether or not you trigger one), you MUST record the outcome in both the Teams message (the `### Automatic Merge Queue Re-add` section of `notify_teams.description`) and, when a PR comment is posted, the `**Merge queue re-add**` line of the `add_comment` body. Keep both consistent with the actual `readd_to_merge_queue` call.+Whenever you decide about remediation (whether or not you trigger it), you MUST record the outcome in both the Teams message (the `### Automatic Remediation` section of `notify_teams.description`) and, when a PR comment is posted, the `**Automatic remediation**` line of the `add_comment` body. Keep both consistent with the actual `remediate_transient_failure` call.## Important Guidelines@@ -745,8 +714,7 @@ You **MUST** always call at least one safe output tool before finishing:- **`notify_teams`**: Send the investigation report as a Microsoft Teams notification (default for any actionable finding). Call this exactly once.- **`notify_teams_recurring`**: Send a recurring-failure escalation alert. Call this **only** if Phase 5.5 determines that there are 3+ occurrences in the last 12 hours. Call at most once per run.- **`add_comment`**: Post a remediation comment on the affected merge-queue PR. Call this **only** when the failure is associated with a PR (provide `item_number` and `body`). Call at most once per run.-- **`rerun_failed_jobs`**: Re-run only the failed jobs of the analysed run. Call this **only** when the failure is transient AND the PR is still in the merge queue (or no PR is associated). Mutually exclusive with `readd_to_merge_queue` (see `rerun_failed_jobs` decision guidance). Call at most once per run.-- **`readd_to_merge_queue`**: Re-add the affected PR to the merge queue. Call this **only** when the failure is transient AND the PR was dropped from the queue. Mutually exclusive with `rerun_failed_jobs` (see `readd_to_merge_queue` decision guidance). Call at most once per run.+- **`remediate_transient_failure`**: Remediate a transient merge-queue failure. Call this **only** when the failure is transient (Infrastructure / Flaky Test / Network / External Service). The job resolves the PR's live merge-queue status and decides whether to re-run the failed jobs or re-add the PR to the queue — you do not choose. Call at most once per run.- **`noop`**: When no action is needed (e.g., CI was successful, not a merge-queue run, no failure to investigate).- **`missing_data`**: When you cannot gather the information needed to complete the investigation.@@ -754,8 +722,7 @@ You **MUST** always call at least one safe output tool before finishing:- `notify_teams` alone — standard investigation with no identifiable PR, fewer than 3 occurrences in the last 12 hours.- `notify_teams` + `add_comment` — standard investigation where the failure is tied to a PR in the merge queue.- `notify_teams` + `notify_teams_recurring` (+ `add_comment` when a PR is identified) — standard investigation AND 3+ occurrences in the last 12 hours.-- Any of the `notify_teams` combinations above **+ `rerun_failed_jobs`** — transient failure where the PR is still in the merge queue (or no PR is associated).-- Any of the `notify_teams` combinations above **+ `readd_to_merge_queue`** — transient failure that dropped an identifiable PR from the merge queue. Do not combine with `rerun_failed_jobs`; the two are mutually exclusive.+- Any of the `notify_teams` combinations above **+ `remediate_transient_failure`** — a transient failure; the job decides at run time whether to re-run the failed jobs or re-add the PR to the merge queue.- `noop` alone — no investigation needed.- `missing_data` alone — investigation blocked by missing data.diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.ymlindex 03ca115e860..2b5f445f31d 100644--- a/.github/workflows/ci-doctor.lock.yml+++ b/.github/workflows/ci-doctor.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"f5c472697e086d84786a7f9158f04eb08fecab68f36a85814bf083f8f755fa2d","body_hash":"771cef4e62ce41f2c011349a6bf4f2c3f5f2ce7f7786414e180ab94f3e5c6d2e","compiler_version":"v0.83.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.75"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_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":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"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":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"e89c65e17eb281bbd5ff2ff9e9199a03e96654c7","version":"v0.83.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.42","digest":"sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42","digest":"sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.42","digest":"sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.6","digest":"sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748","pinned_image":"ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748"},{"image":"ghcr.io/github/github-mcp-server:v1.7.0","digest":"sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308","pinned_image":"ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308"}]}-# This file was automatically generated by gh-aw (v0.83.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"f5c472697e086d84786a7f9158f04eb08fecab68f36a85814bf083f8f755fa2d","body_hash":"771cef4e62ce41f2c011349a6bf4f2c3f5f2ce7f7786414e180ab94f3e5c6d2e","compiler_version":"v0.85.4","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-4.6","engine_versions":{"copilot":"1.0.78"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_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":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"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":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/setup-python","sha":"a309ff8b426b58ec0e2a45f0f869d46889d02405","version":"a309ff8b426b58ec0e2a45f0f869d46889d02405"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"2709137ea6c5b0e19aa621454dc643ea8dc526b1","version":"v0.85.4"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44","digest":"sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44","digest":"sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44","digest":"sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.8","digest":"sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196"},{"image":"ghcr.io/github/github-mcp-server:v1.8.0","digest":"sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520","pinned_image":"ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520"}]}+# This file was automatically generated by gh-aw (v0.85.4). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -50,15 +50,15 @@# - actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0# - actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # a309ff8b426b58ec0e2a45f0f869d46889d02405# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1-# - github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+# - github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607-# - ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0-# - ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c-# - ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748-# - ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308+# - ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7+# - ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627+# - ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8+# - ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196+# - ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520name: "CI Failure Doctor"on:@@ -93,6 +93,7 @@ jobs:comment_repo: ${{ steps.add-comment.outputs.comment-repo }}comment_url: ${{ steps.add-comment.outputs.comment-url }}daily_ai_credits_exceeded: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_exceeded == 'true' }}+ daily_ai_credits_guardrail_status: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_guardrail_status || '' }}daily_ai_credits_threshold: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_threshold || '' }}daily_ai_credits_total_effective_tokens: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_total_effective_tokens || '' }}engine_id: ${{ steps.generate_aw_info.outputs.engine_id }}@@ -110,7 +111,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -120,8 +121,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Generate agentic run infoid: generate_aw_info@@ -129,16 +130,16 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-4.6"- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AGENT_VERSION: "1.0.75"- GH_AW_INFO_CLI_VERSION: "v0.83.4"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AGENT_VERSION: "1.0.78"+ GH_AW_INFO_CLI_VERSION: "v0.85.4"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"GH_AW_INFO_ALLOWED_DOMAINS: '["defaults"]'GH_AW_INFO_FIREWALL_ENABLED: "true"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_COMPILED_STRICT: "true"@@ -225,18 +226,16 @@ jobs:sparse-checkout: |.github.agents- .antigravity.claude.codex.gemini- .opencode.pisparse-checkout-cone-mode: truefetch-depth: 1- name: Save agent config folders for base branch restorationenv:- GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"- GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"+ GH_AW_AGENT_FOLDERS: ".agents .github"+ GH_AW_AGENT_FILES: "AGENTS.md"# poutine:ignore untrusted_checkout_execrun: bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"- name: Check workflow lock file@@ -254,7 +253,7 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.83.4"+ GH_AW_COMPILED_VERSION: "v0.85.4"with:script: |const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');@@ -488,7 +487,10 @@ jobs:http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}inference_access_error: ${{ steps.detect-agent-errors.outputs.inference_access_error || 'false' }}invocation_cap_exceeded: ${{ steps.detect-agent-errors.outputs.invocation_cap_exceeded || 'false' }}+ max_cache_misses_exceeded: ${{ steps.detect-agent-errors.outputs.max_cache_misses_exceeded || 'false' }}mcp_policy_error: ${{ steps.detect-agent-errors.outputs.mcp_policy_error || 'false' }}+ missing_model_pricing_error: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_error || 'false' }}+ missing_model_pricing_model_name: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_model_name || '' }}model: ${{ needs.activation.outputs.model }}model_not_supported_error: ${{ steps.detect-agent-errors.outputs.model_not_supported_error || 'false' }}output: ${{ steps.collect_output.outputs.output }}@@ -500,7 +502,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -509,8 +511,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -597,11 +599,12 @@ jobs:const { main } = require('${{ runner.temp }}/gh-aw/actions/checkout_pr_branch.cjs');await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.75+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com+ GH_AW_COMPILED_VERSION: v0.85.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.42 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)@@ -615,8 +618,8 @@ jobs:- name: Restore agent config folders from base branchif: steps.checkout-pr.outcome == 'success'env:- GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"- GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"+ GH_AW_AGENT_FOLDERS: ".agents .github"+ GH_AW_AGENT_FILES: "AGENTS.md"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh"- name: Restore inline sub-agents from activation artifactenv:@@ -628,15 +631,15 @@ jobs:GH_AW_SKILL_DIR: ".github/skills"run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607 ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0 ghcr.io/github/gh-aw-mcpg:v0.4.6@sha256:fecabec51bbc41f2ad61076d6bcd9a36ef23b142e672a444e054d37fc29de93c ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748 ghcr.io/github/github-mcp-server:v1.7.0@sha256:c491ffdf6f4c85cb5397021bc655edb8ab825c6f5f568e7597d77a1bd7c4d308+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627 ghcr.io/github/gh-aw-mcpg:v0.4.8@sha256:38bbea36cdb46a3c9d04d1db05e672966f5239b431a2022eb35881688e5721d8 ghcr.io/github/gh-aw-node@sha256:0d9f1fb5fd6610c0ac1f5194a38e45a8a1e81f8a390d5142d8e4e6f26a4b3196 ghcr.io/github/github-mcp-server:v1.8.0@sha256:d5a18c04b92714c309eb46a2305087e91a4dbd80420f6e462656699f95093520- name: Generate Safe Outputs Configrun: |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_e22403e7468f2b0a_EOF'- {"add_comment":{"max":1},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"true"},"push_repo_memory":{"memories":[{"dir":"/tmp/gh-aw/repo-memory/default","id":"default","max_file_count":100,"max_file_size":102400,"max_patch_size":10240}]},"report_incomplete":{}}- GH_AW_SAFE_OUTPUTS_CONFIG_e22403e7468f2b0a_EOF+ cat > "${RUNNER_TEMP}/gh-aw/safeoutputs/config.json" << 'GH_AW_SAFE_OUTPUTS_CONFIG_3fc66f1d800ddb9f_EOF'+ {"add_comment":{"max":1},"create_report_incomplete_issue":{},"missing_data":{},"missing_tool":{},"noop":{"max":1,"report-as-issue":"false"},"push_repo_memory":{"memories":[{"dir":"/tmp/gh-aw/repo-memory/default","id":"default","max_file_count":100,"max_file_size":102400,"max_patch_size":10240}]},"report_incomplete":{}}+ GH_AW_SAFE_OUTPUTS_CONFIG_3fc66f1d800ddb9f_EOF- name: Generate Safe Outputs Toolsenv:GH_AW_TOOLS_META_JSON: |@@ -759,6 +762,7 @@ jobs:GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_SAFE_OUTPUTS_CONFIG_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_CONFIG_PATH }}GH_AW_SAFE_OUTPUTS_TOOLS_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_TOOLS_PATH }}+ GH_AW_SINK_VISIBILITY: ${{ steps.determine-automatic-lockdown.outputs.visibility }}GITHUB_MCP_GUARD_MIN_INTEGRITY: ${{ steps.determine-automatic-lockdown.outputs.min_integrity }}GITHUB_MCP_GUARD_REPOS: ${{ steps.determine-automatic-lockdown.outputs.repos }}GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -783,16 +787,16 @@ jobs:MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0')MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0')source "${RUNNER_TEMP}/gh-aw/actions/resolve_docker_socket_gid.sh"- export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e RUNNER_TEMP -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.6'+ export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GH_AW_SINK_VISIBILITY -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e RUNNER_TEMP -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.8'mkdir -p "$HOME/.copilot"GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)- cat << GH_AW_MCP_CONFIG_bcbb445f12830b86_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v1.7.0",+ "container": "ghcr.io/github/github-mcp-server:v1.8.0","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -836,7 +840,7 @@ jobs:"accept": ["*"],- "sink-visibility": ${{ toJSON(steps.determine-automatic-lockdown.outputs.visibility) }}+ "sink-visibility": "${GH_AW_SINK_VISIBILITY}"}}}@@ -849,7 +853,7 @@ jobs:"startupTimeout": 120}}- GH_AW_MCP_CONFIG_bcbb445f12830b86_EOF+ GH_AW_MCP_CONFIG_81cc4c61546f2054_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -889,7 +893,7 @@ jobs:export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/agent-stdio.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-1000}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.42/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.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\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.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\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"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\",\"kimi\"],\"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*\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"fable\",\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.42,squid=sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0,agent=sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b,agent-act=sha256:a14ad974484aa518aab83d40f3f141175dfd171d3745e01c092375b970f73a20,api-proxy=sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607,cli-proxy=sha256:da006bf96d2d246dd269d57b233c1798d2ad63d6cd64ca02f7bf71045028781f\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.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\",\"github.com\",\"host.docker.internal\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.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\",\"ppa.launchpad.net\",\"raw.githubusercontent.com\",\"registry.npmjs.org\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"telemetry.enterprise.githubcopilot.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"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*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${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=""@@ -907,7 +911,7 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- 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"} --env-all --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --skip-pull \+ 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"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_API_KEY --log-level info --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; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/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/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: 1@@ -922,7 +926,7 @@ jobs:GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}GH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.83.4+ GH_AW_VERSION: v0.85.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1111,7 +1115,7 @@ jobs:needs.activation.outputs.secret_verification_result == 'failed' || needs.activation.outputs.daily_ai_credits_exceeded == 'true')runs-on: ubuntu-slimpermissions:- contents: read+ actions: readissues: writepull-requests: writeconcurrency:@@ -1128,7 +1132,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1137,8 +1141,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1154,7 +1158,7 @@ jobs:mkdir -p /tmp/gh-aw/find "/tmp/gh-aw/" -type f -printecho "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"- - name: Download safe outputs items manifest+ - name: Download Safe Outputs Items Manifestid: download-safe-outputs-manifestif: always()continue-on-error: true@@ -1165,30 +1169,7 @@ jobs:- name: Collect usage artifact filesif: always()continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/usage/agent /tmp/gh-aw/usage/detection- echo "Usage artifact source file status:"- for file in /tmp/gh-aw/aw_info.json /tmp/gh-aw/aw-info.jsonl /tmp/gh-aw/agent_usage.json /tmp/gh-aw/agent_usage.jsonl /tmp/gh-aw/detection_usage.jsonl /tmp/gh-aw/evals/evals.jsonl /tmp/gh-aw/github_rate_limits.jsonl /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl; do- [ -f "$file" ] && echo "FOUND: $file" || echo "MISSING: $file"- done- [ -f /tmp/gh-aw/aw_info.json ] && cp /tmp/gh-aw/aw_info.json /tmp/gh-aw/usage/aw_info.json || true- [ -f /tmp/gh-aw/aw-info.jsonl ] && cp /tmp/gh-aw/aw-info.jsonl /tmp/gh-aw/usage/aw-info.jsonl || true- [ -f /tmp/gh-aw/agent_usage.json ] && cp /tmp/gh-aw/agent_usage.json /tmp/gh-aw/usage/agent_usage.json || true- [ -f /tmp/gh-aw/agent_usage.jsonl ] && cp /tmp/gh-aw/agent_usage.jsonl /tmp/gh-aw/usage/agent_usage.jsonl || true- [ -f /tmp/gh-aw/detection_usage.jsonl ] && cp /tmp/gh-aw/detection_usage.jsonl /tmp/gh-aw/usage/detection_usage.jsonl || true- [ -f /tmp/gh-aw/evals/evals.jsonl ] && cp /tmp/gh-aw/evals/evals.jsonl /tmp/gh-aw/usage/evals.jsonl || true- [ -f /tmp/gh-aw/github_rate_limits.jsonl ] && cp /tmp/gh-aw/github_rate_limits.jsonl /tmp/gh-aw/usage/github_rate_limits.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/agent/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall-audit-logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -s /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl ] && cp /tmp/gh-aw/threat-detection/sandbox/firewall/logs/api-proxy-logs/token-usage.jsonl /tmp/gh-aw/usage/detection/token_usage.jsonl || true- [ -f /tmp/gh-aw/usage/agent/token_usage.jsonl ] || : > /tmp/gh-aw/usage/agent/token_usage.jsonl- [ -f /tmp/gh-aw/usage/detection/token_usage.jsonl ] || : > /tmp/gh-aw/usage/detection/token_usage.jsonl- mkdir -p /tmp/gh-aw/usage/activity- node "${RUNNER_TEMP}/gh-aw/actions/generate_usage_activity_summary.cjs"- find /tmp/gh-aw/usage -type f -print | sort+ run: bash "${RUNNER_TEMP}/gh-aw/actions/collect_usage_artifact_files.sh"- name: Upload usage artifactif: always()continue-on-error: true@@ -1256,7 +1237,7 @@ jobs:GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor.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"+ GH_AW_NOOP_REPORT_AS_ISSUE: "false"GH_AW_AIC: ${{ needs.agent.outputs.aic }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }}@@ -1342,6 +1323,9 @@ jobs:GH_AW_AGENTIC_ENGINE_TIMEOUT: ${{ needs.agent.outputs.agentic_engine_timeout }}GH_AW_MODEL_NOT_SUPPORTED_ERROR: ${{ needs.agent.outputs.model_not_supported_error }}GH_AW_HTTP_400_RESPONSE_ERROR: ${{ needs.agent.outputs.http_400_response_error }}+ GH_AW_MAX_CACHE_MISSES_EXCEEDED: ${{ needs.agent.outputs.max_cache_misses_exceeded }}+ GH_AW_MISSING_MODEL_PRICING_ERROR: ${{ needs.agent.outputs.missing_model_pricing_error }}+ GH_AW_MISSING_MODEL_PRICING_MODEL_NAME: ${{ needs.agent.outputs.missing_model_pricing_model_name }}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_OAUTH_TOKEN_CHECK_FAILED: ${{ needs.activation.outputs.oauth_token_check_failed }}@@ -1366,6 +1350,23 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require('${{ runner.temp }}/gh-aw/actions/handle_agent_failure.cjs');await main();+ - name: Report failed jobs+ id: report_failed_jobs+ if: always()+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}+ GH_AW_WORKFLOW_NAME: "CI Failure Doctor"+ GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor.md"+ GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}+ GH_AW_REPORT_FAILED_JOBS: "true"+ with:+ github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}+ 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/report_failed_jobs.cjs');+ await main();- name: Update reaction comment with completion statusid: conclusionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -1406,7 +1407,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1415,8 +1416,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1443,7 +1444,7 @@ jobs:rm -rf /tmp/gh-aw/sandbox/firewall/logsrm -rf /tmp/gh-aw/sandbox/firewall/audit- name: Download container images- run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.42@sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b ghcr.io/github/gh-aw-firewall/api-proxy:0.27.42@sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607 ghcr.io/github/gh-aw-firewall/squid:0.27.42@sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.27.44@sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4 ghcr.io/github/gh-aw-firewall/api-proxy:0.27.44@sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7 ghcr.io/github/gh-aw-firewall/squid:0.27.44@sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627- name: Check if detection neededid: detection_guardif: always()@@ -1475,10 +1476,14 @@ jobs:ficp /tmp/gh-aw/agent_output.json /tmp/gh-aw/threat-detection/agent_output.json 2>/dev/null || truefor f in /tmp/gh-aw/aw-*.patch; do- [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ if [ -f "$f" ]; then+ cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ fidonefor f in /tmp/gh-aw/aw-*.bundle; do- [ -f "$f" ] && cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ if [ -f "$f" ]; then+ cp "$f" /tmp/gh-aw/threat-detection/ 2>/dev/null || true+ fidoneecho "Prepared threat detection files:"ls -la /tmp/gh-aw/threat-detection/ 2>/dev/null || true@@ -1489,6 +1494,7 @@ jobs:WORKFLOW_NAME: "CI Failure Doctor"WORKFLOW_DESCRIPTION: "On-demand CI failure investigator for pull requests. Triggered by the `/ci-doctor`\nslash command posted in a pull request comment. Analyzes every failed CI pipeline on\nthe pull request, identifies root causes and patterns, and posts a single consolidated\nsummary comment with actionable remedies. Reads the CI Doctor (Merge Queue) knowledge\nbase (read-only) to flag known recurring failures."HAS_PATCH: ${{ needs.agent.outputs.has_patch }}+ GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"with:script: |const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');@@ -1500,17 +1506,20 @@ jobs:run: |mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log+ rm -f /tmp/gh-aw/threat-detection/step-summary.md+ touch /tmp/gh-aw/threat-detection/step-summary.md- name: Setup Node.jsuses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.75+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"env:GH_HOST: github.com+ GH_AW_COMPILED_VERSION: v0.85.4- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.42+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.27.44- name: Execute GitHub Copilot CLIif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true@@ -1530,7 +1539,7 @@ jobs:export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"(umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-400}"- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.42/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"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\",\"kimi\"],\"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*\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"fable\",\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.42,squid=sha256:42dfeb649c680a8558cd5423dbc530b653a69413e35ffbe5e71da5d48c94bdf0,agent=sha256:26a8af4e5566485b02f52af59ee03803ae798271a9619d4767e94d07806deb9b,agent-act=sha256:a14ad974484aa518aab83d40f3f141175dfd171d3745e01c092375b970f73a20,api-proxy=sha256:944f2686c9ab9bec338fd14b662461662f77cd12cd0ea8a3e7cb8c0987cd1607,cli-proxy=sha256:da006bf96d2d246dd269d57b233c1798d2ad63d6cd64ca02f7bf71045028781f\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.27.44/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.business.githubcopilot.com\",\"api.enterprise.githubcopilot.com\",\"api.github.com\",\"api.githubcopilot.com\",\"api.individual.githubcopilot.com\",\"github.com\",\"host.docker.internal\",\"registry.npmjs.org\",\"telemetry.enterprise.githubcopilot.com\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"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*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"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-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*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-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"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*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"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*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"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\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"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-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.27.44,squid=sha256:83e48bbe12c634be8c228a576832fe45f66c529ac3659db92bddbcf2eeb6d627,agent=sha256:0d727725c737b58c7bdf51f640cffb928385ec46517e0917c7f1a02f1bada8b4,api-proxy=sha256:b50fbadba138f6e9aba94aca09711335c489bb3b15861220cb66f6092e042dc7,cli-proxy=sha256:c064d15974f7c933ec7d3f7b4038f4fd203547b3154bdc821afd379144887eff\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${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=""@@ -1550,7 +1559,7 @@ jobs:fifi# shellcheck disable=SC1003,SC2016,SC2086- 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"} --env-all --exclude-env COPILOT_GITHUB_TOKEN --log-level info --skip-pull \+ 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"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --log-level info --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; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/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/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 "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.logenv:AWF_REFLECT_ENABLED: 1@@ -1564,7 +1573,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 20- GH_AW_VERSION: v0.83.4+ GH_AW_VERSION: v0.85.4GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1646,38 +1655,39 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- - name: Check team membership for command workflow- id: check_membership+ - name: Check command position+ id: check_command_positionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_REQUIRED_ROLES: "admin,maintainer,write"+ GH_AW_COMMANDS: "[\"ci-doctor\"]"with:- github-token: ${{ secrets.GITHUB_TOKEN }}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/check_membership.cjs');+ const { main } = require('${{ runner.temp }}/gh-aw/actions/check_command_position.cjs');await main();- - name: Check command position- id: check_command_position+ - name: Check team membership for command workflow+ id: check_membership+ if: steps.check_command_position.outputs.command_position_ok == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMMANDS: "[\"ci-doctor\"]"+ GH_AW_REQUIRED_ROLES: "admin,maintainer,write"with:+ github-token: ${{ secrets.GITHUB_TOKEN }}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/check_command_position.cjs');+ const { main } = require('${{ runner.temp }}/gh-aw/actions/check_membership.cjs');await main();push_repo_memory:@@ -1703,7 +1713,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1712,8 +1722,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -1763,7 +1773,6 @@ jobs:if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success'runs-on: ubuntu-slimpermissions:- contents: readissues: writepull-requests: writetimeout-minutes: 45@@ -1778,7 +1787,6 @@ jobs:GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }}GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-4.6"- GH_AW_ENGINE_VERSION: "1.0.75"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}GH_AW_SAFE_OUTPUT_MESSAGES: "{\"footer\":\"\\u003e Generated by [{workflow_name}]({run_url})\"}"GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}@@ -1792,12 +1800,15 @@ jobs:comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }}create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }}create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }}+ process_safe_outputs_items_failed: ${{ steps.process_safe_outputs.outputs.items_failed }}+ process_safe_outputs_items_succeeded: ${{ steps.process_safe_outputs.outputs.items_succeeded }}process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }}+ process_safe_outputs_status: ${{ steps.process_safe_outputs.outputs.status }}process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@e89c65e17eb281bbd5ff2ff9e9199a03e96654c7 # v0.83.4+ uses: github/gh-aw-actions/setup@2709137ea6c5b0e19aa621454dc643ea8dc526b1 # v0.85.4with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1806,8 +1817,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.75"- GH_AW_INFO_AWF_VERSION: "v0.27.42"+ GH_AW_INFO_VERSION: "1.0.78"+ GH_AW_INFO_AWF_VERSION: "v0.27.44"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1841,7 +1852,7 @@ jobs:GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.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,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.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,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}- GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"true\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}script: |@@ -1857,6 +1868,4 @@ jobs:path: |/tmp/gh-aw/safe-output-items.jsonl/tmp/gh-aw/temporary-id-map.json- /tmp/gh-aw/process-safe-outputs.stdout.log- /tmp/gh-aw/process-safe-outputs.stderr.logif-no-files-found: ignorediff --git a/.github/workflows/shared/agentic-workflows/readd-to-merge-queue.md b/.github/workflows/shared/agentic-workflows/readd-to-merge-queue.mddeleted file mode 100644index eed2b12b409..00000000000--- a/.github/workflows/shared/agentic-workflows/readd-to-merge-queue.md+++ /dev/null@@ -1,74 +0,0 @@-----description: |- Shared custom safe-output job for the CI Doctor MQ workflow.- Re-adds a pull request that was dropped from the GitHub merge queue as a result- of a transient pipeline failure back into the merge queue via the `gh pr merge`- command.-safe-outputs:- jobs:- readd-to-merge-queue:- description: "Re-add a pull request that was removed from the merge queue because of the analysed pipeline failure back into the merge queue. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain re-queue is likely to let the PR merge (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that re-queuing cannot fix."- runs-on: ubuntu-latest- output: "Re-add to merge queue requested for the affected pull request."- permissions:- pull-requests: read- contents: read- inputs:- pr_number:- description: "Number of the pull request that was dropped from the merge queue and should be re-added. Report as a numeric string."- required: true- type: string- repository:- description: "The owner/repo of the repository that owns the pull request (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted."- required: false- type: string- default: "not_found"- reason:- description: "Short justification for why re-queuing is expected to let the PR merge (e.g. 'network timeout while downloading dependencies')."- required: true- type: string- steps:- - name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0- with:- sparse-checkout: .github/scripts/agentic-workflows- persist-credentials: false- - name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0- with:- python-version: '3.13'- - name: Install PyGithub- run: python -m pip install --quiet PyGithub==2.9.1- - name: Re-add pull request to merge queue- env:- # A PAT or GitHub App token with `contents: write` and- # `pull_requests: write` scope is required: the default GITHUB_TOKEN- # cannot re-trigger merge_group check runs (events it creates do not- # start new workflow runs), so the re-queued PR would stall.- GH_TOKEN: ${{ secrets.MERGE_QUEUE_TOKEN }}- run: |- export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}- python .github/scripts/agentic-workflows/readd_to_merge_queue.py------# CI Doctor MQ — Re-add Pull Request to Merge Queue--Shared definition of the `readd-to-merge-queue` custom safe-output job used by-the CI Doctor Merge Queue workflow. When a merge-queue pipeline fails, GitHub-drops the affected pull request from the merge queue. If the CI Doctor concludes-the failure was transient, this job re-adds the PR to the queue via the-`gh pr merge` command (on a branch that requires a merge queue, `gh pr merge`-enqueues the PR instead of merging it directly, using the queue's own configured-merge method). A `--squash` flag is passed so the command runs non-interactively;-on a merge-queue branch the server ignores it in favour of the queue's method.--It requires a `MERGE_QUEUE_TOKEN` secret holding a PAT or GitHub App token with-`contents: write` and `pull_requests: write` scope — the default `GITHUB_TOKEN`-cannot re-trigger `merge_group` check runs, so a re-queue performed with it would-stall.--The job is idempotent and loop-safe: it skips the PR when it is already merged,-closed, or a draft, or when a previous CI Doctor re-add marker comment is-present. Import it via `imports:` in the consuming workflow's frontmatter, and-instruct the agent to call `readd_to_merge_queue` only when a re-queue is likely-to let the PR merge.diff --git a/.github/workflows/shared/agentic-workflows/remediate-transient-failure.md b/.github/workflows/shared/agentic-workflows/remediate-transient-failure.mdnew file mode 100644index 00000000000..107e03f434b--- /dev/null+++ b/.github/workflows/shared/agentic-workflows/remediate-transient-failure.md@@ -0,0 +1,101 @@+---+description: |+ Shared custom safe-output job for the CI Doctor MQ workflow.+ Remediates a *transient* merge-queue pipeline failure. The agent calls it+ whenever the failure is transient and knows nothing about the PR's merge-queue+ status; this job resolves that status live and decides on its own whether to+ re-run only the failed jobs (PR still queued) or re-add the PR to the merge+ queue (PR was dropped on the failure).+safe-outputs:+ jobs:+ remediate-transient-failure:+ description: "Remediate a TRANSIENT merge-queue pipeline failure. Call this at most once and ONLY when the investigation concludes the failure is transient (Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, cancelled jobs, or downstream outages). The job resolves the PR's live merge-queue status itself and decides whether to re-run the failed jobs (PR still in the queue) or re-add the PR to the merge queue (PR was dropped) — you do NOT know or provide the queue status. Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart or re-queue cannot fix."+ runs-on: ubuntu-latest+ output: "Transient-failure remediation requested for the analysed workflow run."+ permissions:+ actions: write # re-run the failed jobs+ contents: read+ pull-requests: write # read live merge-queue status; post the re-run outcome comment+ inputs:+ run_id:+ description: "Numeric ID of the analysed GitHub Actions workflow run (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string."+ required: true+ type: string+ repository:+ description: "The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted."+ required: false+ type: string+ default: "not_found"+ reason:+ description: "Short justification for why the failure is transient and remediation is expected to help (e.g. 'network timeout while downloading dependencies')."+ required: true+ type: string+ steps:+ - name: Checkout agentic-workflow scripts+ uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0+ with:+ sparse-checkout: .github/scripts/agentic-workflows+ persist-credentials: false+ - name: Set up Python+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0+ with:+ python-version: '3.13'+ - name: Install PyGithub+ run: python -m pip install --quiet PyGithub==2.9.1+ - name: Remediate transient failure+ env:+ # GITHUB_TOKEN (with actions: write) re-runs the failed jobs and reads+ # the live merge-queue status. MERGE_QUEUE_TOKEN (a PAT or GitHub App+ # token with contents: write + pull_requests: write) is required to+ # re-add a dropped PR: the default GITHUB_TOKEN cannot re-trigger+ # merge_group check runs, so a re-queue performed with it would stall.+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ MERGE_QUEUE_TOKEN: ${{ secrets.MERGE_QUEUE_TOKEN }}+ run: |+ export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}+ python .github/scripts/agentic-workflows/remediate_transient_failure.py+ # The `echo` steps are for collecting and aggregating statistics in Grafana+ - name: Re-run of failed jobs was triggered+ if: ${{ env.RERUN_FAILED_JOBS == 'true' }}+ run: echo "CI Doctor re-ran the failed jobs for the analysed run (PR still in the merge queue)."+ - name: Re-add to merge queue was triggered+ if: ${{ env.READDED_TO_MQ == 'true' }}+ run: echo "CI Doctor re-added the pull request to the merge queue (it had been dropped)."+---++# CI Doctor MQ — Remediate Transient Failure++Shared definition of the `remediate-transient-failure` custom safe-output job+used by the CI Doctor Merge Queue workflow. It merges the former+`rerun-failed-jobs` and `readd-to-merge-queue` jobs into a single remediation+entry point so the agent only has to decide *whether the failure is transient*,+not *which* remedy applies.++When invoked, the job:++1. Resolves the PR behind the analysed run (from the+ `gh-readonly-queue/<base>/pr-<number>-<sha>` head branch, falling back to the+ run's associated pull requests).+2. Reads the PR's **live** merge-queue status (`common.merge_queue_status`, which+ prefers the GraphQL `mergeQueue` entries and falls back to the PR's add/remove+ timeline events). Doing this at action time avoids acting on a stale snapshot.+3. Picks the remedy:+ - **`in_queue`** — re-runs only the failed jobs via+ `POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs`+ (refuses a run already on its second attempt, to avoid restart loops) and+ posts an outcome comment on the PR.+ - **`not_in_queue`** — re-adds the PR via `gh pr merge` (which enqueues on a+ merge-queue branch) and posts an outcome comment carrying the re-add marker.+ Idempotent and loop-safe: it skips the PR when it is already merged, closed,+ a draft, or when a previous CI Doctor re-add marker comment is present.+ - **`merged`** / **`unknown`** — takes no action (fail safe).++It uses two tokens: the default `GITHUB_TOKEN` (with `actions: write`) re-runs the+failed jobs and reads queue status, and a `MERGE_QUEUE_TOKEN` secret (a PAT or+GitHub App token with `contents: write` + `pull_requests: write`) performs the+re-queue — the default `GITHUB_TOKEN` cannot re-trigger `merge_group` check runs,+so a re-queue performed with it would stall.++Import it via `imports:` in the consuming workflow's frontmatter, and instruct+the agent to call `remediate_transient_failure` only when the failure is+transient.diff --git a/.github/workflows/shared/agentic-workflows/rerun-failed-jobs.md b/.github/workflows/shared/agentic-workflows/rerun-failed-jobs.mddeleted file mode 100644index 78a2162335f..00000000000--- a/.github/workflows/shared/agentic-workflows/rerun-failed-jobs.md+++ /dev/null@@ -1,56 +0,0 @@-----description: |- Shared custom safe-output job for the CI Doctor MQ workflow.- Re-runs ONLY the failed jobs of an analysed GitHub Actions workflow run,- when the CI Doctor concludes a plain restart is likely to remedy the failure.-safe-outputs:- jobs:- rerun-failed-jobs:- description: "Re-run ONLY the failed jobs of the analysed workflow run. Call this at most once and ONLY when the investigation concludes the failure is transient and a plain restart is likely to fix it (e.g. Infrastructure, Flaky Test, Network, or External Service categories such as runner hiccups, network timeouts, or downstream outages). Do NOT call for deterministic Code Issue / Dependencies / Configuration failures that a restart cannot fix."- runs-on: ubuntu-latest- output: "Failed jobs re-run requested for the analysed workflow run."- permissions:- actions: write- contents: read- inputs:- run_id:- description: "Numeric ID of the GitHub Actions workflow run whose failed jobs should be re-run. This is the run that was investigated (github.event.workflow_run.id for merge-queue triggers, or the run_id input for workflow_dispatch). Report as a numeric string."- required: true- type: string- repository:- description: "The owner/repo of the repository that owns the analysed run (e.g. 'openvinotoolkit/openvino'). Defaults to the current repository when omitted."- required: false- type: string- default: "not_found"- reason:- description: "Short justification for why a restart is expected to remedy the failure (e.g. 'network timeout while downloading dependencies')."- required: true- type: string- steps:- - name: Checkout agentic-workflow scripts- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0- with:- sparse-checkout: .github/scripts/agentic-workflows- persist-credentials: false- - name: Set up Python- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0- with:- python-version: '3.13'- - name: Install PyGithub- run: python -m pip install --quiet PyGithub==2.9.1- - name: Re-run failed jobs- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: |- export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}- python .github/scripts/agentic-workflows/rerun_failed_jobs.py------# CI Doctor MQ — Re-run Failed Jobs--Shared definition of the `rerun-failed-jobs` custom safe-output job used by the-CI Doctor Merge Queue workflow. It calls the GitHub Actions-`POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs` endpoint to-restart only the failed jobs of the analysed run. Import it via `imports:` in the-consuming workflow's frontmatter, and instruct the agent to call-`rerun_failed_jobs` only when a restart is likely to remedy the failure.diff --git a/docs/dev/ci/github_actions/agentic_workflows.md b/docs/dev/ci/github_actions/agentic_workflows.mdindex 44e81e88208..343d45b5dba 100644--- a/docs/dev/ci/github_actions/agentic_workflows.md+++ b/docs/dev/ci/github_actions/agentic_workflows.md@@ -163,9 +163,10 @@ A `workflow_dispatch` entry (with `run_id` or `link` inputs) is also provided forecurring failures accumulate statistics (`count`, `first_seen`, `last_seen`) over time.* **Escalation**: when the same failure signature is seen **3 or more times within 12 hours**, it sendsa second, higher-visibility Teams alert.-* **Automated remediation**: when a failure is transient it can either re-run only the failed jobs, or —- if GitHub already dropped the PR from the queue — re-add the PR to the merge queue. These two actions- are mutually exclusive.+* **Automated remediation**: when a failure is transient the agent calls a single+ `remediate_transient_failure` safe output; that job resolves the PR's live merge-queue status and+ decides on its own whether to re-run only the failed jobs (PR still queued) or re-add the PR to the+ merge queue (PR dropped). The agent never reasons about queue status.**Algorithm** The body defines a seven-phase protocol:@@ -183,7 +184,7 @@ A `workflow_dispatch` entry (with `run_id` or `link` inputs) is also provided fostrings) before emitting it.The run always ends by calling exactly one (or a valid combination) of the safe outputs: `notify_teams`,-`notify_teams_recurring`, `add_comment`, `rerun_failed_jobs`, `readd_to_merge_queue`, `noop`, or+`notify_teams_recurring`, `add_comment`, `remediate_transient_failure`, `noop`, or`missing_data`.## Shared reusable jobs@@ -221,8 +222,7 @@ inputs, permissions, or step wiring, edit the shared `.md` and recompile.| [`download-failure-logs.md`](../../../../.github/workflows/shared/agentic-workflows/download-failure-logs.md) | Pre-agent step | both | Pre-download failed logs and pre-locate error hints before the agent starts. || [`notify-teams.md`](../../../../.github/workflows/shared/agentic-workflows/notify-teams.md) | Safe-output job | MQ | Send the investigation summary to Microsoft Teams; upload the statistics artifact. || [`notify-teams-recurring.md`](../../../../.github/workflows/shared/agentic-workflows/notify-teams-recurring.md) | Safe-output job | MQ | Send a recurring-failure escalation alert to Teams. |-| [`rerun-failed-jobs.md`](../../../../.github/workflows/shared/agentic-workflows/rerun-failed-jobs.md) | Safe-output job | MQ | Re-run only the failed jobs of the analysed run (transient failures). |-| [`readd-to-merge-queue.md`](../../../../.github/workflows/shared/agentic-workflows/readd-to-merge-queue.md) | Safe-output job | MQ | Re-add a dropped PR to the merge queue (transient failures). |+| [`remediate-transient-failure.md`](../../../../.github/workflows/shared/agentic-workflows/remediate-transient-failure.md) | Safe-output job | MQ | Remediate a transient failure: the job resolves the PR's live merge-queue status and either re-runs the failed jobs (still queued) or re-adds the dropped PR (dropped). |**`download-failure-logs.md`** is a *step* fragment (it has no `on:` trigger). It auto-detects its modefrom the environment: **run mode** (`RUN_ID` set) analyses a single run; **PR mode** (`PR_NUMBER` set)@@ -239,14 +239,15 @@ POSTs it to the `TEAMS_WEBHOOK_URL`, and uploads the full statistics JSON/Markdorecurred ≥ 3 times in 12 hours. It renders a condensed escalation card listing the affected PRs and therecent failure runs.-**`rerun-failed-jobs.md`** defines the `rerun-failed-jobs` job (`permissions: actions: write`). It calls-the GitHub `rerun-failed-jobs` API for the analysed run, with a loop guard that refuses to re-run a run-that already has more than one attempt.--**`readd-to-merge-queue.md`** defines the `readd-to-merge-queue` job. It re-adds a dropped PR to the-queue via `gh pr merge` using the `MERGE_QUEUE_TOKEN` secret (the default `GITHUB_TOKEN` cannot-re-trigger `merge_group` check runs). It is idempotent and loop-safe: it skips PRs that are merged,-closed, draft, or already carry the CI Doctor re-add marker comment.+**`remediate-transient-failure.md`** defines the `remediate-transient-failure` job, the single+remediation entry point for transient failures. The agent calls it only when the failure is transient+and knows nothing about the PR's merge-queue status; the job resolves that status live+(`common.merge_queue_status`) and decides itself whether to **re-run the failed jobs** (PR still in the+queue, via the GitHub `rerun-failed-jobs` API with a loop guard against a second attempt) or **re-add the+dropped PR** to the queue (via `gh pr merge`, idempotent: it skips PRs that are merged, closed, draft, or+already carry the CI Doctor re-add marker comment). It uses the default `GITHUB_TOKEN` (with+`actions: write`) for the re-run and status reads, and the `MERGE_QUEUE_TOKEN` secret for the re-queue+(the default `GITHUB_TOKEN` cannot re-trigger `merge_group` check runs).## Setup and infrastructure@@ -326,8 +327,8 @@ only the narrow permission it needs. The workflows rely on the following secrets| Secret | Used by | Purpose || --- | --- | --- || `TEAMS_WEBHOOK_URL` | `notify-teams`, `notify-teams-recurring` | Microsoft Teams incoming webhook. |-| `MERGE_QUEUE_TOKEN` | `readd-to-merge-queue` | PAT / App token with `contents: write` + `pull_requests: write` to re-queue a PR (the default token cannot re-trigger `merge_group` runs). |-| `GITHUB_TOKEN` | log download, `rerun-failed-jobs` | Standard GitHub API access. |+| `MERGE_QUEUE_TOKEN` | `remediate-transient-failure` | PAT / App token with `contents: write` + `pull_requests: write` to re-queue a PR (the default token cannot re-trigger `merge_group` runs). |+| `GITHUB_TOKEN` | log download, `remediate-transient-failure` | Standard GitHub API access (re-run failed jobs, read live merge-queue status). |## Maintaining the workflows