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] Route CI Doctor rerun patterns through human-reviewed PRs to `errors_to_look_for.json` (#39282)
Andrei Kashchikhind1dbbeca657e
diff --git a/.claude/skills/ov-agentic-workflows/SKILL.md b/.claude/skills/ov-agentic-workflows/SKILL.mdindex 353651a6666..e400f08e0ea 100644--- a/.claude/skills/ov-agentic-workflows/SKILL.md+++ b/.claude/skills/ov-agentic-workflows/SKILL.md@@ -147,6 +147,29 @@ them — see below):- **Read-only knowledge base** (`ci-doctor`) — must never write under `/tmp/gh-aw/repo-memory/default/`;only `ci-doctor-mq` (branch `memory/ci-doctor-mq`) and `ci-doctor-post-commit` (branch`memory/ci-doctor-post-commit`) write to their own memory branches.+- **Rerun strings are human-approved only** (`ci-doctor-mq`, `workflow_rerunner.yml`) — the rerunner+ restarts every failed pipeline whose log matches a string, so it reads only+ `.github/scripts/workflow_rerun/errors_to_look_for.json` (never the memory branch). The agent must never+ edit that file: the `rerun_search_string` in `mq/patterns/` is a candidate, submitted via+ `propose_rerun_pattern` (`propose-rerun-pattern.md`), which opens a review PR against `master` appending+ it with ticket `9999999`. The job authenticates with the `RERUNNER_DB_UPDATE` secret (not+ `GITHUB_TOKEN`, whose PRs would not trigger CI).+ Candidate and sample evidence must be single-line: normalization otherwise joins CR/LF boundaries+ into matches the line-by-line rerunner cannot reproduce. Bare test names also match passing logs.+- **Compiler version drift** — before compiling, compare `gh aw version` with the setup-cli `version`+ in [agentic_workflows_check.yml](../../../.github/workflows/agentic_workflows_check.yml).+ If they differ, resolve the latest stable release with+ `gh release view --repo github/gh-aw --json tagName --jq .tagName`, update the workflow's version,+ and install that same release locally (`gh extension upgrade gh-aw --force --pin <version>`, or+ `gh extension install github/gh-aw --pin <version>` if not installed). Verify both versions match+ before running `gh aw compile`. A compiler upgrade can regenerate every lock file; include all+ affected generated files, since the CI check recompiles every workflow and rejects any diff.+ Do not keep an older compiler just to match existing lock-file metadata. Review action-pin changes:+ recompilation may revert Dependabot updates, and any pin correction must also be reproducible by+ the CI compilation check.+- **`workflow_run` branch scope** (`CTR-021`, gh-aw ≥ v0.93) — `on.workflow_run.branches` must be a+ non-empty positive list. For merge-queue triggers use `gh-readonly-queue/**`: merge-queue runs always+ execute on those base-repo branches, even for PRs from forks.- **Teams source badge** (`notify-teams.md`) — the shared Teams job is used by both `ci-doctor-mq` and`ci-doctor-post-commit`; each must pass the `source` input (`merge_queue` / `post_commit`) so thecard shows the right `[MQ]` / `[PC]` badge and uploads the correctly-named statistics artifact.diff --git a/.claude/skills/ov-github-actions-ci/SKILL.md b/.claude/skills/ov-github-actions-ci/SKILL.mdindex 029111309d1..1cda55310e1 100644--- a/.claude/skills/ov-github-actions-ci/SKILL.md+++ b/.claude/skills/ov-github-actions-ci/SKILL.md@@ -177,6 +177,10 @@ volumes/options (shared drive, sccache) consistent with sibling jobs. GPU → Doroute through `env:`.* **Over-broad `permissions:`** — especially `write` scopes at workflow level.* **Job that ignores Smart CI** — burns limited self-hosted/GPU capacity on unaffected PRs.+* **Automation-only PR runs product CI** — the shared allowlist in `smart-ci/smart_ci.py` must cover+ agentic workflow support files as well as sources/locks. A single uncovered schema, script or config+ defeats file-based skipping; `CI`/`github_actions` labels then request full scope. Keep exceptions+ narrow and test mixed product/build-workflow changes still run.* **Smart CI condition mismatch across a dependency chain** — a step skipped by a Smart CI `if:` whosedependent step/job lacks the same condition runs against missing outputs/artifacts. Gate the wholechain consistently.diff --git a/.github/actions/smart-ci/smart_ci.py b/.github/actions/smart-ci/smart_ci.pyindex 068b746e139..c19acb1bb3f 100644--- a/.github/actions/smart-ci/smart_ci.py+++ b/.github/actions/smart-ci/smart_ci.py@@ -15,12 +15,20 @@ from ghapi.all import GhApifrom fnmatch import fnmatch-# Changes limited to agentic (gh-aw) workflow files carry no signal for product CI, so a PR or+# Changes limited to agentic workflows and rerunner automation carry no signal for product CI, so a PR or# merge-queue entry that touches only these always skips the pipeline.ALWAYS_SKIPPABLE_FILE_PATTERNS = ('.github/workflows/*.md', # agentic workflow sources'.github/workflows/*.lock.yml', # their compiled workflows'.github/workflows/shared/agentic-workflows/*', # shared fragments they import+ '.github/aw/*', # gh-aw action lock and configuration+ '.github/ci-doctor*/schemas/*', # persisted investigation schemas+ '.github/scripts/agentic-workflows/*', # safe-output job scripts+ '.github/scripts/workflow_rerun/*', # rerunner code, tests and reviewed error list+ '.github/workflows/workflow_rerunner.yml',+ '.github/workflows/agentic_workflows_check.yml',+ '.claude/skills/ov-agentic-workflows/*', # agentic workflow guidance+ '.agents/skills/ov-agentic-workflows/*',)diff --git a/.github/actions/smart-ci/smart_ci_test.py b/.github/actions/smart-ci/smart_ci_test.pyindex c52b0f52dd0..eecfa75188f 100644--- a/.github/actions/smart-ci/smart_ci_test.py+++ b/.github/actions/smart-ci/smart_ci_test.py@@ -4,7 +4,11 @@import loggingimport sysimport unittest-from smart_ci import ComponentConfig+from pathlib import Path+from types import SimpleNamespace+from unittest.mock import patch++from smart_ci import ComponentConfig, mainlog = logging.getLogger()log.level = logging.DEBUG@@ -213,5 +217,89 @@ class TestComponentConfig(unittest.TestCase):self.validate(config_data, changed_components, expected_result)+class TestAutomationOnlyChanges(unittest.TestCase):+ # Non-Markdown paths from the rerunner proposal PR, alongside agentic sources and documentation.+ automation_files = [+ '.claude/skills/ov-agentic-workflows/SKILL.md',+ '.github/aw/actions-lock.json',+ '.github/ci-doctor-mq/schemas/pattern.schema.json',+ '.github/scripts/agentic-workflows/propose_rerun_pattern.py',+ '.github/scripts/workflow_rerun/argument_parser.py',+ '.github/scripts/workflow_rerun/errors_to_look_for.json',+ '.github/scripts/workflow_rerun/log_analyzer.py',+ '.github/scripts/workflow_rerun/rerunner.py',+ '.github/scripts/workflow_rerun/tests/data/empty_errors.json',+ '.github/scripts/workflow_rerun/tests/data/patterns/aaaa1111bbbb2222.json',+ '.github/scripts/workflow_rerun/tests/data/patterns/cccc3333dddd4444.json',+ '.github/scripts/workflow_rerun/tests/integration_test.py',+ '.github/scripts/workflow_rerun/tests/log_analyzer_test.py',+ '.github/workflows/ci-doctor-mq.md',+ '.github/workflows/ci-doctor-mq.lock.yml',+ '.github/workflows/ci-doctor-post-commit.lock.yml',+ '.github/workflows/ci-doctor-remediation.lock.yml',+ '.github/workflows/ci-doctor.lock.yml',+ '.github/workflows/shared/agentic-workflows/propose-rerun-pattern.md',+ '.github/workflows/workflow_rerunner.yml',+ '.github/workflows/agentic_workflows_check.yml',+ 'docs/dev/ci/github_actions/agentic_workflows.md',+ ]++ def run_smart_ci(self, files, event='pull_request', labels=('category: CI', 'github_actions', 'category: docs'),+ skip_patterns='*.md,*.rst,*.png,*.jpg,*.svg'):+ root = Path(__file__).resolve().parents[3]+ argv = [+ 'smart_ci.py', '-r', 'openvinotoolkit/openvino', '-p', 'category: (.*)',+ '-c', str(root / '.github/components.yml'),+ '-m', str(root / '.github/actions/smart-ci/components_schema.yml'),+ '-l', str(root / '.github/labeler.yml'),+ '--skip-when-only-listed-files-changed', skip_patterns,+ '-f', 'gh-readonly-queue/master/pr-39282-abc' if event == 'merge_group' else 'master',+ ]+ if event == 'pull_request':+ argv.extend(['--pr', '39282'])+ outputs = {}+ pr = SimpleNamespace(labels=[SimpleNamespace(name=name) for name in labels])+ changed_files = [SimpleNamespace(filename=name) for name in files]+ with patch.object(sys, 'argv', argv), \+ patch('smart_ci.GhApi') as api, \+ patch('smart_ci.get_changeset', return_value=changed_files), \+ patch('smart_ci.set_github_output', side_effect=outputs.__setitem__):+ api.return_value.pulls.get.return_value = pr+ main()+ return outputs.get('skip_workflow') == 'True'++ def test_automation_only_pr_and_merge_queue_skip(self):+ for event in ('pull_request', 'merge_group'):+ with self.subTest(event=event):+ self.assertTrue(self.run_smart_ci(self.automation_files, event))++ def test_no_match_label_does_not_prevent_file_based_skip(self):+ self.assertTrue(self.run_smart_ci(self.automation_files, labels=('no-match-files',)))++ def test_each_automation_path_skips_without_workflow_specific_patterns(self):+ for path in self.automation_files[:-1]:+ with self.subTest(path=path):+ self.assertTrue(self.run_smart_ci([path], skip_patterns=''))++ def test_mixed_product_or_ci_changes_do_not_skip(self):+ for path in (+ 'src/core/src/model.cpp',+ '.github/workflows/ubuntu_22.yml',+ '.github/workflows/job_cxx_unit_tests.yml',+ '.github/actions/smart-ci/smart_ci.py',+ '.github/labeler.yml',+ 'unclassified-file',+ ):+ for event in ('pull_request', 'merge_group'):+ with self.subTest(path=path, event=event):+ self.assertFalse(self.run_smart_ci(self.automation_files + [path], event))++ def test_empty_changeset_does_not_skip(self):+ self.assertFalse(self.run_smart_ci([]))++ def test_postcommit_does_not_skip(self):+ self.assertFalse(self.run_smart_ci(self.automation_files, 'push'))++if __name__ == '__main__':unittest.main(verbosity=2)diff --git a/.github/aw/actions-lock.json b/.github/aw/actions-lock.jsonindex 002e0082f5d..4113738e15b 100644--- a/.github/aw/actions-lock.json+++ b/.github/aw/actions-lock.json@@ -1,9 +1,9 @@{"entries": {- "github/gh-aw-actions/[email protected]": {+ "github/gh-aw-actions/[email protected]": {"repo": "github/gh-aw-actions/setup",- "version": "v0.92.0",- "sha": "458b269006dcf88e3b5496b6fbecabe4b9a0f954"+ "version": "v0.93.5",+ "sha": "de9d416cac8ccea1a2d582cb07c4b7db96946792"}},"containers": {diff --git a/.github/ci-doctor-mq/schemas/pattern.schema.json b/.github/ci-doctor-mq/schemas/pattern.schema.jsonindex 00caafb9b9b..8083e77bde8 100644--- a/.github/ci-doctor-mq/schemas/pattern.schema.json+++ b/.github/ci-doctor-mq/schemas/pattern.schema.json@@ -102,7 +102,7 @@"null"],"minLength": 1,- "description": "Stable, job-agnostic substring of the raw error (with absolute paths, line/column numbers, hex addresses, PIDs, timestamps, run IDs, commit SHAs, tmp dirs, and UUIDs stripped) that uniquely identifies this failure in run logs. Consumed by the workflow_rerunner (.github/scripts/workflow_rerun) to auto-rerun transient failures, similar to entries in errors_to_look_for.json. Populated only for transient, rerunnable categories (Flaky Test, Infrastructure, Network, External Service); null for all other categories where a plain rerun cannot fix the failure."+ "description": "Stable, job-agnostic substring of the raw error (with absolute paths, line/column numbers, hex addresses, PIDs, timestamps, run IDs, commit SHAs, tmp dirs, and UUIDs stripped) that uniquely identifies this failure in run logs. CANDIDATE ONLY: the workflow_rerunner (.github/scripts/workflow_rerun) does not read this field; a candidate takes effect only after the propose_rerun_pattern safe-output job opens a pull request adding it to .github/scripts/workflow_rerun/errors_to_look_for.json and a maintainer merges it. Populated only for transient, rerunnable categories (Flaky Test, Infrastructure, Network, External Service); null for all other categories where a plain rerun cannot fix the failure."}}}\ No newline at end of filediff --git a/.github/scripts/agentic-workflows/propose_rerun_pattern.py b/.github/scripts/agentic-workflows/propose_rerun_pattern.pynew file mode 100644index 00000000000..a9f7754e2be--- /dev/null+++ b/.github/scripts/agentic-workflows/propose_rerun_pattern.py@@ -0,0 +1,315 @@+# Copyright (C) 2018-2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0++"""Propose a new workflow-rerunner search string for human review.++Custom safe-output job for the CI Doctor MQ workflow+(.github/workflows/shared/agentic-workflows/propose-rerun-pattern.md).++The workflow rerunner (.github/scripts/workflow_rerun) only reads+``errors_to_look_for.json`` from the default branch. The CI Doctor agent never+edits it: it calls ``propose_rerun_pattern`` with a candidate; this job validates+the candidate deterministically and, if it passes, opens a pull request against+the default branch that appends one entry to ``errors_to_look_for.json``. The+string becomes active only after a maintainer merges the PR.++A rejected or duplicate candidate is not an error: the job logs the reason (also+to the step summary) and exits successfully.+"""++from __future__ import annotations++import json+import os+import re+from typing import Any, Iterable++from common import github_client, read_agent_item, require_env, resolve_repository++TRANSIENT_CATEGORIES = ("Flaky Test", "Infrastructure", "Network", "External Service")+SIGNATURE_HASH_RE = re.compile(r"[0-9a-f]{8,64}")+BRANCH_PREFIX = "ci-doctor/rerun-pattern/"+TITLE_PREFIX = "[ci-doctor] "++MIN_WORDS = 3+MIN_CHARS = 15++# "##[group]Run ..." / "##[endgroup]" markers delimit steps in every job log.+STEP_HEADER_RE = re.compile(r"^\s*(\S+\s+)?##\[(group|endgroup)\]")++# A URL (and the versioned file name it carries) ties a string to one dependency release,+# so it never matches the same failure for another URL or after a version bump.+URL_RE = re.compile(r"[A-Za-z][A-Za-z0-9+.-]*://\S")++# Words that, on their own, appear in almost every failing (and many passing) log.+# A candidate made up only of these (and numbers) is too generic to auto-rerun on.+GENERIC_WORDS = frozenset(+ """+ a an and are as at be by can cannot canceled cancelled command completed could counter crash+ crashed did do does error errors exception exit code exited fail failed failing failure failures+ fatal for from has have in is it job jobs not of on operation or process returned run running+ status step steps test tests the this timeout timed out to unexpected unknown was warning+ warnings were with+ """.split()+)++# Runner/tooling boilerplate printed by many unrelated failures (normalized form).+GENERIC_PHRASES = (+ "process completed with exit code",+ "the operation was canceled",+ "no files were found with the provided path",+ "no artifacts will be uploaded",+)++# Ticket recorded for CI Doctor-proposed entries, which are not tied to a JIRA/GitHub+# ticket (same sentinel as the entries migrated from the CI Doctor knowledge base).+CI_DOCTOR_TICKET = 9999999+++def normalize(text: str) -> str:+ """Same normalization as ``workflow_rerun/log_analyzer.py::_clean_up_string``."""+ return re.sub(r"[^A-Za-z0-9]+", " ", text).lower().strip()+++def _only_boilerplate(normalized: str) -> bool:+ """True when the string is (part of) generic boilerplate plus only generic words/numbers."""+ if any(normalized in phrase for phrase in GENERIC_PHRASES):+ return True+ remainder = normalized+ for phrase in GENERIC_PHRASES:+ remainder = remainder.replace(phrase, " ")+ if remainder == normalized:+ return False+ return all(word in GENERIC_WORDS or word.isdigit() for word in remainder.split())+++def validate_candidate(search_string: str, category: str, signature_hash: str, sample_log_line: str) -> list[str]:+ """Return the list of reasons the candidate is rejected (empty when it is acceptable)."""+ problems: list[str] = []+ if not SIGNATURE_HASH_RE.fullmatch(signature_hash):+ problems.append(f"signature_hash must match {SIGNATURE_HASH_RE.pattern}, got '{signature_hash}'")+ if category not in TRANSIENT_CATEGORIES:+ problems.append(f"category '{category}' is not transient ({', '.join(TRANSIENT_CATEGORIES)})")+ if "|" in search_string or "\n" in search_string or "\r" in search_string:+ problems.append("search string must be a substring of a single log line (no '|' or newlines)")+ if "\n" in sample_log_line or "\r" in sample_log_line:+ problems.append("sample_log_line must be a single log line (no CR or LF)")+ if URL_RE.search(search_string):+ problems.append(+ "search string contains a URL, which pins it to one dependency/version; use the stable "+ "message around it instead (e.g. CMake's 'Each download failed!')"+ )++ normalized = normalize(search_string)+ words = normalized.split()+ if len(words) < MIN_WORDS or len(normalized) < MIN_CHARS:+ problems.append(+ f"normalized string '{normalized}' is too short "+ f"(needs >= {MIN_WORDS} words and >= {MIN_CHARS} characters)"+ )+ if words and all(word in GENERIC_WORDS or word.isdigit() for word in words):+ problems.append(f"normalized string '{normalized}' consists only of generic words")+ elif _only_boilerplate(normalized):+ problems.append(f"normalized string '{normalized}' is runner boilerplate shared by unrelated failures")+ if re.fullmatch(r"[0-9a-f]{8,}", normalized.replace(" ", "")):+ problems.append(f"normalized string '{normalized}' looks like a hash/identifier")++ normalized_line = normalize(sample_log_line)+ if not normalized_line:+ problems.append("sample_log_line is required (verbatim raw log line containing the string)")+ elif normalized and normalized not in normalized_line:+ problems.append("normalized search string is not a substring of the normalized sample_log_line")+ if STEP_HEADER_RE.search(sample_log_line):+ problems.append("sample_log_line is a GitHub Actions step/group header, which appears in every run")+ return problems+++def find_overlap(candidate: str, known: Iterable[tuple[str, str]]) -> str | None:+ """Return a description of the first known string overlapping ``candidate``.++ Overlap means either normalized string contains the other: an existing broader+ string already covers the candidate, or the candidate would widen an existing one.+ """+ normalized = normalize(candidate)+ for origin, text in known:+ other = normalize(text)+ if other and (other in normalized or normalized in other):+ return f"overlaps with '{text}' ({origin})"+ return None+++def read_errors_file(repo: Any, path: str, ref: str) -> tuple[list[dict[str, Any]], str, str]:+ """Return ``(entries, raw_text, blob_sha)`` of ``errors_to_look_for.json`` at ``ref``."""+ content = repo.get_contents(path, ref=ref)+ text = content.decoded_content.decode("utf-8")+ return json.loads(text), text, content.sha+++def as_known(entries: Iterable[dict[str, Any]], origin: str) -> list[tuple[str, str]]:+ return [(origin, entry.get("error_text", "")) for entry in entries if entry.get("error_text")]+++def load_open_proposals(repo: Any, base: str, path: str, base_texts: set[str]) -> list[tuple[str, str]]:+ """Search strings added by still-open CI Doctor proposal PRs against ``base``."""+ known = []+ for pull in repo.get_pulls(state="open", base=base):+ if not pull.head.ref.startswith(BRANCH_PREFIX):+ continue+ entries, _, _ = read_errors_file(repo, path, pull.head.sha)+ added = [entry for entry in entries if entry.get("error_text") not in base_texts]+ known.extend(as_known(added, f"open PR #{pull.number}"))+ return known+++def previous_proposal(repo: Any, base: str, head_branch: str) -> Any | None:+ """Return any earlier (open, merged or rejected) proposal PR for this signature."""+ owner = repo.full_name.split("/")[0]+ for pull in repo.get_pulls(state="all", base=base, head=f"{owner}:{head_branch}"):+ return pull+ return None+++def build_entry(search_string: str, category: str) -> dict[str, Any]:+ """Entry in the ``errors_to_look_for.json`` format."""+ return {"error_text": search_string, "ticket": CI_DOCTOR_TICKET, "category": category}+++def render_errors_file(entries: list[dict[str, Any]], original_text: str) -> str:+ """Serialize like the committed file (4-space indent, original trailing whitespace)."""+ trailing = original_text[len(original_text.rstrip()):]+ return json.dumps(entries, indent=4, ensure_ascii=False) + trailing+++def build_pr_body(item: dict[str, Any], entry: dict[str, Any], signature_hash: str, path: str, run_url: str) -> str:+ sample = (item.get("sample_log_line") or "").replace("```", "'''")+ title = (item.get("title") or "").strip() or entry["error_text"]+ return (+ "### CI Doctor — proposed workflow-rerunner pattern\n\n"+ "CI Doctor (Merge Queue) classified a failure as **transient** and proposes adding the search "+ f"string below to `{path}`. Once merged, **every failed monitored pipeline whose log contains "+ "this string (after normalization) is re-run automatically**, so please make sure it is specific "+ "to this transient failure.\n\n"+ f"- **Search string**: `{entry['error_text']}`\n"+ f"- **Normalized (what is matched)**: `{normalize(entry['error_text'])}`\n"+ f"- **Category**: {entry['category']}\n"+ f"- **Title**: {title}\n"+ f"- **Signature hash**: `{signature_hash}`\n"+ f"- **Evidence run**: {(item.get('pipeline_url') or '').strip() or 'n/a'}\n"+ f"- **Reason**: {(item.get('reason') or '').strip() or 'n/a'}\n"+ f"- **Proposed by**: {run_url or 'CI Doctor MQ'}\n\n"+ "**Sample log line**\n\n"+ f"```text\n{sample}\n```\n\n"+ "#### Review checklist\n\n"+ "- [ ] The string identifies this transient failure only; it is not a step name, a generic "+ "phrase, or text that also appears in healthy or deterministically failing runs.\n"+ "- [ ] A plain rerun is expected to fix this failure.\n"+ f"- [ ] Optionally replace the placeholder ticket `{CI_DOCTOR_TICKET}` with a real ticket number.\n"+ "- [ ] Edit the string in this PR if it should be narrower; close the PR to reject it "+ "(CI Doctor will not re-propose the same signature).\n"+ )+++def write_summary(lines: list[str]) -> None:+ summary = os.environ.get("GITHUB_STEP_SUMMARY")+ if summary:+ with open(summary, "a", encoding="utf-8") as handle:+ handle.write("\n".join(lines) + "\n")+++def skip(message: str) -> None:+ print(message)+ write_summary(["### CI Doctor — rerun pattern proposal skipped", "", message])+++def parse_list(value: str) -> list[str]:+ return [part.strip() for part in value.split(",") if part.strip()]+++def open_proposal(repo: Any, base: str, head_branch: str, path: str, entry: dict[str, Any],+ title: str, body: str) -> Any:+ from github import GithubException++ base_sha = repo.get_branch(base).commit.sha+ try:+ repo.create_git_ref(ref=f"refs/heads/{head_branch}", sha=base_sha)+ except GithubException as error:+ if error.status != 422:+ raise+ # Leftover branch without a PR (e.g. an aborted earlier run): reset it to the base.+ repo.get_git_ref(f"heads/{head_branch}").edit(sha=base_sha, force=True)++ entries, text, blob_sha = read_errors_file(repo, path, head_branch)+ content = render_errors_file(entries + [entry], text)+ message = f"[CI] Add rerunner pattern: {title}"[:250]+ repo.update_file(path=path, message=message, content=content, sha=blob_sha, branch=head_branch)+ pr_title = f"{TITLE_PREFIX}Rerun pattern: {title}"[:250]+ return repo.create_pull(title=pr_title, body=body, base=base, head=head_branch, draft=False)+++def decorate(pull: Any, labels: list[str], reviewers: list[str]) -> None:+ """Best-effort labels/reviewers: a missing label or reviewer must not lose the PR."""+ if labels:+ try:+ pull.add_to_labels(*labels)+ except Exception as error:+ print(f"Could not add labels {labels}: {error}")+ if reviewers:+ try:+ pull.create_review_request(reviewers=reviewers)+ except Exception as error:+ print(f"Could not request reviewers {reviewers}: {error}")+++def main() -> None:+ item = read_agent_item("propose_rerun_pattern")+ search_string = (item.get("rerun_search_string") or "").strip()+ signature_hash = (item.get("signature_hash") or "").strip().lower()+ category = (item.get("category") or "").strip()+ sample_log_line = (item.get("sample_log_line") or "").strip()++ print(f"Rerun pattern candidate: '{search_string}' [{category}] for signature {signature_hash}")+ problems = validate_candidate(search_string, category, signature_hash, sample_log_line)+ if problems:+ skip("Candidate rejected by guardrails:\n" + "\n".join(f"- {p}" for p in problems))+ return++ repository = resolve_repository(os.environ.get("GITHUB_REPOSITORY", ""))+ path = require_env("ERRORS_TO_LOOK_FOR_PATH").strip("/")+ head_branch = f"{BRANCH_PREFIX}{signature_hash}"++ repo = github_client(require_env("GH_TOKEN")).get_repo(repository)+ base = os.environ.get("BASE_BRANCH", "").strip() or repo.default_branch++ base_entries, _, _ = read_errors_file(repo, path, base)+ overlap = find_overlap(search_string, as_known(base_entries, f"{path}@{base}"))+ if overlap:+ skip(f"Candidate already covered by the rerunner list: {overlap}.")+ return++ earlier = previous_proposal(repo, base, head_branch)+ if earlier is not None:+ state = "merged" if earlier.merged else earlier.state+ skip(f"Signature {signature_hash} was already proposed in {earlier.html_url} ({state}); not re-proposing.")+ return++ base_texts = {entry.get("error_text") for entry in base_entries}+ overlap = find_overlap(search_string, load_open_proposals(repo, base, path, base_texts))+ if overlap:+ skip(f"Candidate duplicates a pending rerun pattern proposal: {overlap}.")+ return++ entry = build_entry(search_string, category)+ title = (item.get("title") or "").strip() or search_string+ run_url = ""+ if os.environ.get("GITHUB_RUN_ID"):+ run_url = f"{os.environ.get('GITHUB_SERVER_URL', 'https://github.com')}/{repository}/actions/runs/{os.environ['GITHUB_RUN_ID']}"+ body = build_pr_body(item, entry, signature_hash, path, run_url)+ pull = open_proposal(repo, base, head_branch, path, entry, title, body)+ decorate(pull, parse_list(os.environ.get("PR_LABELS", "")), parse_list(os.environ.get("PR_REVIEWERS", "")))++ print(f"Opened rerun pattern proposal {pull.html_url}")+ write_summary(["### CI Doctor — rerun pattern proposal opened", "", f"{pull.html_url}"])+++if __name__ == "__main__":+ main()diff --git a/.github/scripts/agentic-workflows/test_propose_rerun_pattern.py b/.github/scripts/agentic-workflows/test_propose_rerun_pattern.pynew file mode 100644index 00000000000..3f825f55bdb--- /dev/null+++ b/.github/scripts/agentic-workflows/test_propose_rerun_pattern.py@@ -0,0 +1,78 @@+# Copyright (C) 2018-2026 Intel Corporation+# SPDX-License-Identifier: Apache-2.0++import json+import unittest+from types import SimpleNamespace+from unittest.mock import Mock++from propose_rerun_pattern import load_open_proposals, validate_candidate+++class ValidateCandidateTest(unittest.TestCase):+ def test_single_line_evidence_is_accepted(self):+ self.assertEqual(+ validate_candidate(+ "Each download failed!", "Network", "abcdef12",+ "CMake Error: Each download failed!",+ ),+ [],+ )++ def test_multiline_evidence_is_rejected(self):+ for separator in ("\n", "\r", "\r\n"):+ with self.subTest(separator=repr(separator)):+ problems = validate_candidate(+ "Each download failed!", "Network", "abcdef12",+ f"Each download{separator}failed!",+ )+ self.assertIn("sample_log_line must be a single log line (no CR or LF)", problems)++ def test_multiline_candidate_is_rejected(self):+ for separator in ("\n", "\r", "\r\n"):+ with self.subTest(separator=repr(separator)):+ problems = validate_candidate(+ f"Each download{separator}failed!", "Network", "abcdef12",+ "Each download failed!",+ )+ self.assertTrue(any("search string must be" in problem for problem in problems))+++class LoadOpenProposalsTest(unittest.TestCase):+ def setUp(self):+ self.repo = Mock()+ self.repo.get_pulls.return_value = [+ SimpleNamespace(head=SimpleNamespace(+ ref="ci-doctor/rerun-pattern/abcdef12", sha="headsha",+ ), number=1),+ ]+ self.path = ".github/scripts/workflow_rerun/errors_to_look_for.json"++ def test_read_error_propagates(self):+ self.repo.get_contents.side_effect = OSError("Unable to read proposal file")+ with self.assertRaisesRegex(OSError, "Unable to read proposal file"):+ load_open_proposals(self.repo, "master", self.path, set())++ def test_invalid_json_propagates(self):+ self.repo.get_contents.return_value = SimpleNamespace(+ decoded_content=b"invalid JSON", sha="blobsha",+ )+ with self.assertRaises(json.JSONDecodeError):+ load_open_proposals(self.repo, "master", self.path, set())++ def test_only_new_proposal_patterns_are_collected(self):+ self.repo.get_contents.return_value = SimpleNamespace(+ decoded_content=json.dumps([+ {"error_text": "existing pattern"},+ {"error_text": "new proposed pattern"},+ ]).encode("utf-8"),+ sha="blobsha",+ )+ self.assertEqual(+ load_open_proposals(self.repo, "master", self.path, {"existing pattern"}),+ [("open PR #1", "new proposed pattern")],+ )+++if __name__ == "__main__":+ unittest.main()diff --git a/.github/scripts/workflow_rerun/argument_parser.py b/.github/scripts/workflow_rerun/argument_parser.pyindex ccac9cbadaf..f62d9dffc4b 100644--- a/.github/scripts/workflow_rerun/argument_parser.py+++ b/.github/scripts/workflow_rerun/argument_parser.py@@ -24,13 +24,6 @@ def get_arguments() -> argparse.Namespace:required=False,help='.json file with the errors to look for in logs',default=Path(__file__).resolve().parent.joinpath('errors_to_look_for.json'))- parser.add_argument('--patterns-dir',- type=Path,- required=False,- help='Directory with CI Doctor MQ pattern .json files (fetched from the '- 'memory/ci-doctor-mq branch). Their "rerun_search_string" values are '- 'used as additional errors to look for in logs',- default=None)parser.add_argument('--dry-run',required=False,action='store_true',diff --git a/.github/scripts/workflow_rerun/errors_to_look_for.json b/.github/scripts/workflow_rerun/errors_to_look_for.jsonindex 159726b5ed5..97f290524c2 100644--- a/.github/scripts/workflow_rerun/errors_to_look_for.json+++ b/.github/scripts/workflow_rerun/errors_to_look_for.json@@ -228,5 +228,285 @@"error_text": "SSL connect error","ticket": 182850,"category": "Network"+ },+ {+ "error_text": "was killed with a signal 3221225477",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Actual function call count doesnt match EXPECT_CALL import_model Expected called times Actual called times unsatisfied and active",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "primType is unexpected",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "rm cannot remove electron dist Permission denied",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "CachingTest LoadMulti_race Expected import_model call count mismatch",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Couldn't get TorchScript module by scripting",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "remove_all: The process cannot access the file because it is being used by another process",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Error response from daemon: No such image",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Failed to resolve action download info",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "failed to fetch oauth token docker registry connection refused",+ "ticket": 9999999,+ "category": "External Service"+ },+ {+ "error_text": "RPC failed; curl 56 Connection died, tried 5 times before giving up",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "Each download failed!",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "Could not resolve proxy: proxy-dmz.intel.com",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "test_benchmark_app_no_warmup_with_api_modes async-CPU-Python exit status 3221225477",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "not found in decomp table",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "429 Too Many Requests",+ "ticket": 9999999,+ "category": "External Service"+ },+ {+ "error_text": "runner has received a shutdown signal",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "No files were found with the provided path openvino_node_npm_package.zip No artifacts will be uploaded",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Failed to resolve proxy-dmz.intel.com",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "cannot grow ilk file; error code 487",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "not a PCH file [-Werror=invalid-pch]",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Actual function call count doesnt match EXPECT_CALL import_model Expected called times Actual called twice unsatisfied and active",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Failed to FinalizeArtifact: Received non-retryable error: Failed request: (403) Forbidden",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "worker crashed while running tests/smoke_tests/test_classification_sample_async.py",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Inconsistency detected by ld.so",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Could not connect to azure.archive.ubuntu.com",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "The requested URL returned error: 502",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "Windows fatal exception: access violation",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "electron.exe': Permission denied",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "artifact upload fails silently no error message before beginning blob upload after file validation",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Exception of type System OutOfMemoryException was thrown",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Unexpected HTTP response from blob storage: 403 Server failed to authenticate the request",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "docker buildx builder boot fails no such image buildkit",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "HTTP Error 500: Internal Server Error",+ "ticket": 9999999,+ "category": "External Service"+ },+ {+ "error_text": "Unable to connect to azure.archive.ubuntu.com",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "CoreThreadingTests.ReadModel process exit code 1 Windows crash",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "Skipping page pypi simple wheel Content-Type Unknown Cannot install wheel no matching distributions available",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "HTTPError: HTTP Error 504: Gateway Time-out",+ "ticket": 9999999,+ "category": "External Service"+ },+ {+ "error_text": "failed to resolve source metadata for openvinogithubactions.azurecr.io",+ "ticket": 9999999,+ "category": "External Service"+ },+ {+ "error_text": "SSL certificate problem: self-signed certificate",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "rm cannot remove electron dist dll Permission denied",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "server certificate verification failed",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "Timeout reached: Blob storage chunk did not respond in 30000ms",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "npm: command not found",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Can't get PERFORMANCE_HINT property as no supported devices found or an error happened during devices query",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "ci_gha_overall_status job cancelled before runner assignment",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Not enough CPU resources",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Electron failed to install correctly",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "certificate verify failed self-signed certificate",+ "ticket": 9999999,+ "category": "Network"+ },+ {+ "error_text": "iGPU runner did not expose GPU",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "returned non-zero exit status 3221225477",+ "ticket": 9999999,+ "category": "Flaky Test"+ },+ {+ "error_text": "CMake configure step failed on Windows VS2022 build runner",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "debian packages artifact upload step fails sub-second Build job",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Artifact download failed after 5 retries",+ "ticket": 9999999,+ "category": "Infrastructure"+ },+ {+ "error_text": "Server returned status code 503",+ "ticket": 9999999,+ "category": "External Service"}]\ No newline at end of filediff --git a/.github/scripts/workflow_rerun/log_analyzer.py b/.github/scripts/workflow_rerun/log_analyzer.pyindex ab6e96832ce..a89e1cdb3e3 100644--- a/.github/scripts/workflow_rerun/log_analyzer.py+++ b/.github/scripts/workflow_rerun/log_analyzer.py@@ -5,15 +5,11 @@ import jsonimport reimport tempfilefrom pathlib import Path-from typing import Optional, TypedDict+from typing import TypedDictfrom zipfile import ZipFilefrom workflow_rerun.constants import LOGGER-# Sentinel ticket number used for errors sourced from CI Doctor MQ pattern files,-# which are not tied to a specific JIRA/GitHub ticket.-CI_DOCTOR_PATTERN_TICKET = 9999999-# Fallback category recorded when an error entry or pattern has no category.NO_CATEGORY = 'NO CATEGORY'@@ -32,14 +28,11 @@ class ErrorData(TypedDict):class LogAnalyzer:def __init__(self,path_to_logs: Path,- path_to_errors_file: Path,- patterns_dir: Optional[Path] = None) -> None:+ path_to_errors_file: Path) -> None:self._path_to_errors_file = path_to_errors_file- self._patterns_dir = patterns_dirself._errors_to_look_for: list[ErrorData] = []self._collect_errors_to_look_for()- self._collect_errors_from_patterns()self._log_dir = path_to_logs@@ -65,48 +58,6 @@ class LogAnalyzer:category=error_data.get('category', NO_CATEGORY)))- def _collect_errors_from_patterns(self) -> None:- """- Collects additional errors to look for from CI Doctor MQ pattern files.-- Each pattern .json file (fetched from the memory/ci-doctor-mq branch) may- contain a "rerun_search_string" field: a stable, searchable substring of a- transient failure's log output. When present and non-empty, it is used as an- additional error to look for, analogous to entries in errors_to_look_for.json.- Pattern-derived errors are not tied to a specific ticket, so they are recorded- with the CI_DOCTOR_PATTERN_TICKET sentinel ticket number.- """- if self._patterns_dir is None:- return-- if not self._patterns_dir.is_dir():- LOGGER.info(f'PATTERNS DIR {self._patterns_dir} DOES NOT EXIST, SKIPPING PATTERNS')- return-- for pattern_file in sorted(self._patterns_dir.glob('*.json')):- try:- with open(file=pattern_file,- mode='r',- encoding='utf-8') as _pattern_file:- pattern_data = json.load(_pattern_file)- except (json.JSONDecodeError, OSError) as error:- LOGGER.warning(f'COULD NOT READ PATTERN FILE {pattern_file}: {error}')- continue-- rerun_search_string = pattern_data.get('rerun_search_string')- if not isinstance(rerun_search_string, str) or not rerun_search_string.strip():- continue-- category = pattern_data.get('category') or NO_CATEGORY-- LOGGER.info(f'ADDING RERUN SEARCH STRING FROM PATTERN {pattern_file.name}: '- f'"{rerun_search_string}" (CATEGORY: {category})')- self._errors_to_look_for.append(- ErrorData(error_text=rerun_search_string,- ticket=CI_DOCTOR_PATTERN_TICKET,- category=category)- )-def _collect_log_files(self) -> None:"""Collects the .txt log files from the log archivediff --git a/.github/scripts/workflow_rerun/rerunner.py b/.github/scripts/workflow_rerun/rerunner.pyindex 2ff187e9dc4..4105ebee5cf 100644--- a/.github/scripts/workflow_rerun/rerunner.py+++ b/.github/scripts/workflow_rerun/rerunner.py@@ -16,7 +16,6 @@ from requests.packages.urllib3.util.retry import Retryfrom workflow_rerun.argument_parser import get_argumentsfrom workflow_rerun.constants import GITHUB_TOKEN, LOGGERfrom workflow_rerun.log_analyzer import LogAnalyzer, NO_CATEGORY-from typing import Optionalfrom workflow_rerun.log_collector import collect_logs_for_rundef record_rerun_to_db(repository_full_name: str, run_id: int, ticket_number: int, rerunner_run_id: int, error_text: str, category: str):@@ -73,7 +72,7 @@ def rerun_failed_jobs(repository_name: str, run_id: int, session: requests.SessiLOGGER.info(f'RUN RETRIGGERED SUCCESSFULLY: {run.html_url}')def analyze_and_rerun(run, repository_name: str, run_id: int, rerunner_run_id: int,- errors_file: Path, patterns_dir: Optional[Path], is_dry_run: bool, session: requests.Session):+ errors_file: Path, is_dry_run: bool, session: requests.Session):with tempfile.TemporaryDirectory() as temp_dir:logs_dir = Path(temp_dir)collect_logs_for_run(@@ -84,8 +83,7 @@ def analyze_and_rerun(run, repository_name: str, run_id: int, rerunner_run_id: ilog_analyzer = LogAnalyzer(path_to_logs=logs_dir,- path_to_errors_file=errors_file,- patterns_dir=patterns_dir+ path_to_errors_file=errors_file)log_analyzer.analyze()@@ -115,7 +113,6 @@ if __name__ == '__main__':rerunner_run_id = args.rerunner_run_idrepository_name = args.repository_nameerrors_file = args.errors_to_look_for_file- patterns_dir = args.patterns_diris_dry_run = args.dry_runif is_dry_run:LOGGER.info('RUNNING IN DRY RUN MODE. IF ERROR WILL BE FOUND, WILL NOT RETRIGGER')@@ -141,4 +138,4 @@ if __name__ == '__main__':LOGGER.info(f'THERE ARE {run.run_attempt} ATTEMPTS ALREADY. NOT CHECKING LOGS AND NOT RETRIGGERING. EXITING')sys.exit(0)- analyze_and_rerun(run, repository_name, run_id, rerunner_run_id, errors_file, patterns_dir, is_dry_run, session)+ analyze_and_rerun(run, repository_name, run_id, rerunner_run_id, errors_file, is_dry_run, session)diff --git a/.github/scripts/workflow_rerun/tests/data/empty_errors.json b/.github/scripts/workflow_rerun/tests/data/empty_errors.jsondeleted file mode 100644index 0637a088a01..00000000000--- a/.github/scripts/workflow_rerun/tests/data/empty_errors.json+++ /dev/null@@ -1 +0,0 @@-[]\ No newline at end of filediff --git a/.github/scripts/workflow_rerun/tests/data/patterns/aaaa1111bbbb2222.json b/.github/scripts/workflow_rerun/tests/data/patterns/aaaa1111bbbb2222.jsondeleted file mode 100644index 9f89b3d5283..00000000000--- a/.github/scripts/workflow_rerun/tests/data/patterns/aaaa1111bbbb2222.json+++ /dev/null@@ -1,18 +0,0 @@-{- "schema_version": "1.0",- "signature": "label empty or too long|Flaky Test",- "signature_hash": "aaaa1111bbbb2222",- "title": "Sample transient failure used for rerunner pattern tests",- "category": "Flaky Test",- "count": 2,- "first_seen": "2026-07-01T10:00:00Z",- "last_seen": "2026-07-13T10:00:00Z",- "recent_run_urls": [- "https://github.com/openvinotoolkit/openvino/actions/runs/29268143021"- ],- "affected_prs": [],- "recent_timestamps": [- "2026-07-13T10:00:00Z"- ],- "rerun_search_string": "label empty or too long"-}\ No newline at end of filediff --git a/.github/scripts/workflow_rerun/tests/data/patterns/cccc3333dddd4444.json b/.github/scripts/workflow_rerun/tests/data/patterns/cccc3333dddd4444.jsondeleted file mode 100644index b135e6c434f..00000000000--- a/.github/scripts/workflow_rerun/tests/data/patterns/cccc3333dddd4444.json+++ /dev/null@@ -1,18 +0,0 @@-{- "schema_version": "1.0",- "signature": "assertion failed in unit test|Code Issue",- "signature_hash": "cccc3333dddd4444",- "title": "Deterministic failure that must never trigger a rerun",- "category": "Code Issue",- "count": 1,- "first_seen": "2026-07-10T10:00:00Z",- "last_seen": "2026-07-10T10:00:00Z",- "recent_run_urls": [- "https://github.com/openvinotoolkit/openvino/actions/runs/29268143022"- ],- "affected_prs": [],- "recent_timestamps": [- "2026-07-10T10:00:00Z"- ],- "rerun_search_string": null-}\ No newline at end of filediff --git a/.github/scripts/workflow_rerun/tests/integration_test.py b/.github/scripts/workflow_rerun/tests/integration_test.pyindex 3d904dbf299..b1a33225e3b 100644--- a/.github/scripts/workflow_rerun/tests/integration_test.py+++ b/.github/scripts/workflow_rerun/tests/integration_test.py@@ -117,7 +117,6 @@ class IntegrationTest(unittest.TestCase):run_id=run_id,rerunner_run_id=rerunner_run_id,errors_file=self.errors_to_look_for_file,- patterns_dir=None,is_dry_run=False,session=mock_session)diff --git a/.github/scripts/workflow_rerun/tests/log_analyzer_test.py b/.github/scripts/workflow_rerun/tests/log_analyzer_test.pyindex 60ae132a8b4..fe50ad90520 100644--- a/.github/scripts/workflow_rerun/tests/log_analyzer_test.py+++ b/.github/scripts/workflow_rerun/tests/log_analyzer_test.py@@ -6,10 +6,12 @@ LogAnalyzer tests"""import unittest+import jsonfrom pathlib import Path+from tempfile import TemporaryDirectory-from workflow_rerun.log_analyzer import CI_DOCTOR_PATTERN_TICKET, NO_CATEGORY, LogAnalyzer+from workflow_rerun.log_analyzer import NO_CATEGORY, LogAnalyzerclass LogAnalyzerTest(unittest.TestCase):@@ -29,10 +31,6 @@ class LogAnalyzerTest(unittest.TestCase):self.errors_to_look_for_file = self._cwd.parent.joinpath('errors_to_look_for.json')- self.empty_errors_file = self._cwd.joinpath('data').joinpath(- 'empty_errors.json'- )- self.patterns_dir = self._cwd.joinpath('data').joinpath('patterns')def test_log_analyzer_instantiation(self) -> None:"""@@ -112,62 +110,37 @@ class LogAnalyzerTest(unittest.TestCase):analyzer.analyze()self.assertFalse(analyzer.found_matching_error)- def test_patterns_loaded_from_directory(self) -> None:- """- Ensure LogAnalyzer loads rerun_search_string values from CI Doctor MQ- pattern files (tagged with the CI_DOCTOR_PATTERN_TICKET sentinel ticket)- and skips patterns whose rerun_search_string is null.- """- analyzer = LogAnalyzer(- path_to_logs=self.logs_dir_wo_error,- path_to_errors_file=self.empty_errors_file,- patterns_dir=self.patterns_dir,- )-- pattern_errors = analyzer._errors_to_look_for- self.assertEqual(- len(pattern_errors),- 1,- 'Only the pattern with a non-null rerun_search_string should be loaded',- )- self.assertEqual(pattern_errors[0]['error_text'], 'label empty or too long')- self.assertEqual(- pattern_errors[0]['ticket'],- CI_DOCTOR_PATTERN_TICKET,- 'Pattern-derived errors must carry the CI_DOCTOR_PATTERN_TICKET sentinel',- )- self.assertEqual(- pattern_errors[0]['category'],- 'Flaky Test',- 'Pattern-derived errors must carry the pattern category',- )-- def test_analyzer_matches_pattern_search_string(self) -> None:- """- Ensure LogAnalyzer can find an error using a rerun_search_string coming- from a CI Doctor MQ pattern file, reporting the sentinel ticket for it.- """- analyzer = LogAnalyzer(- path_to_logs=self.logs_dir_with_error,- path_to_errors_file=self.empty_errors_file,- patterns_dir=self.patterns_dir,- )- analyzer.analyze()- self.assertTrue(analyzer.found_matching_error)- self.assertEqual(analyzer.found_error_ticket, CI_DOCTOR_PATTERN_TICKET)- self.assertEqual(analyzer.matched_error_text, 'label empty or too long')- self.assertEqual(analyzer.matched_category, 'Flaky Test')-- def test_missing_patterns_dir_is_ignored(self) -> None:- """- Ensure a non-existent patterns_dir does not break analysis and simply- adds no pattern-derived errors.- """- analyzer = LogAnalyzer(- path_to_logs=self.logs_dir_wo_error,- path_to_errors_file=self.empty_errors_file,- patterns_dir=self._cwd.joinpath('data').joinpath('does_not_exist'),- )- self.assertEqual(analyzer._errors_to_look_for, [])- analyzer.analyze()- self.assertFalse(analyzer.found_matching_error)+ def test_passing_test_name_does_not_trigger_rerun(self) -> None:+ with TemporaryDirectory() as logs_dir:+ Path(logs_dir, 'pytest.txt').write_text(+ 'test_keras_lstm_flags_float32 PASSED\n'+ 'TestMatrixBandPart::test_matrix_band_part_basic[param] PASSED\n'+ 'test_unrelated FAILED\n',+ encoding='utf-8',+ )+ analyzer = LogAnalyzer(+ path_to_logs=Path(logs_dir),+ path_to_errors_file=self.errors_to_look_for_file,+ )+ analyzer.analyze()+ self.assertFalse(analyzer.found_matching_error)++ def test_generic_accuracy_failure_does_not_trigger_rerun(self) -> None:+ with TemporaryDirectory() as logs_dir:+ Path(logs_dir, 'accuracy.txt').write_text(+ 'AssertionError: Comparing with Framework failed: ie_res=[1.0]; framework_res=[2.0].\n'+ '[ COMPARATION ] COMPARATION FAILED! abs_threshold: 0.0001 rel_threshold: 0.0001\n',+ encoding='utf-8',+ )+ analyzer = LogAnalyzer(+ path_to_logs=Path(logs_dir),+ path_to_errors_file=self.errors_to_look_for_file,+ )+ analyzer.analyze()+ self.assertFalse(analyzer.found_matching_error)++ def test_unmatchable_placeholder_patterns_are_not_in_database(self) -> None:+ entries = json.loads(self.errors_to_look_for_file.read_text(encoding='utf-8'))+ error_texts = {entry['error_text'] for entry in entries}+ self.assertNotIn('AssertionError: Comparing with Framework failed ie_res framework_res', error_texts)+ self.assertNotIn('Failed: Timeout (>Xs) from pytest-timeout', error_texts)diff --git a/.github/workflows/agentic_workflows_check.yml b/.github/workflows/agentic_workflows_check.ymlindex 72e9e030a2e..1dacdeb3333 100644--- a/.github/workflows/agentic_workflows_check.yml+++ b/.github/workflows/agentic_workflows_check.yml@@ -29,7 +29,7 @@ jobs:- name: Install gh-awuses: github/gh-aw/actions/setup-cli@57c8c22d3eefb88d996ec6e49a461944adfee625with:- version: v0.92.0+ version: v0.93.5- name: Compile and verify agentic workflowsenv:diff --git a/.github/workflows/ci-doctor-mq.lock.yml b/.github/workflows/ci-doctor-mq.lock.ymlindex ce37efd2540..c433e0bef41 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":"39f46bca35495e5f41d7179ab70d4c94fccda813354725a32eca4dafc6021907","body_hash":"f35fc45ca86f36a255f1514fd0cf4c36b896dd50f04bd00be0e6d939c5109420","compiler_version":"v0.92.0","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.96"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"458b269006dcf88e3b5496b6fbecabe4b9a0f954","version":"v0.92.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57","digest":"sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57","digest":"sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57","digest":"sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.31","digest":"sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.2","digest":"sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","missing_data","missing_tool","noop","notify_teams","notify_teams_recurring","remediate_transient_failure","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}-# This file was automatically generated by gh-aw (v0.92.0). 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":"77cf523e159a0a34b681bcd1276236832278505e91f3cb524a1ba34e65a945a9","body_hash":"64fb6e03b8981113e71767cc5e6409284693b53e7a8c8e2969e853eb0592f46d","compiler_version":"v0.93.5","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.101"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","MERGE_QUEUE_TOKEN","RERUNNER_DB_UPDATE","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"de9d416cac8ccea1a2d582cb07c4b7db96946792","version":"v0.93.5"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70","digest":"sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70","digest":"sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70","digest":"sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.37","digest":"sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.3","digest":"sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","noop","notify_teams","notify_teams_recurring","propose_rerun_pattern","remediate_transient_failure","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false}+# This file was automatically generated by gh-aw (v0.93.5). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -39,6 +39,7 @@# - shared/agentic-workflows/notify-teams.md# - shared/agentic-workflows/notify-teams-recurring.md# - shared/agentic-workflows/remediate-transient-failure.md+# - shared/agentic-workflows/propose-rerun-pattern.md# - shared/agentic-workflows/ci-doctor-investigation-protocol.md# - shared/agentic-workflows/ci-doctor-knowledge-base.md# - shared/agentic-workflows/ci-doctor-reporting.md@@ -51,6 +52,7 @@# - GH_AW_GITHUB_TOKEN# - GITHUB_TOKEN# - MERGE_QUEUE_TOKEN+# - RERUNNER_DB_UPDATE# - TEAMS_WEBHOOK_URL## Custom actions used:@@ -61,15 +63,15 @@# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2-# - github/gh-aw-actions/setup@458b269006dcf88e3b5496b6fbecabe4b9a0f954 # v0.92.0+# - github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc-# - ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac-# - ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf+# - ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a+# - ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917+# - ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e-# - ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+# - ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132name: "CI Failure Doctor — Merge Queue"on:@@ -88,6 +90,8 @@ on:required: falseworkflow_run:# zizmor: ignore[dangerous-triggers] - workflow_run trigger is secured with role and fork validation+ branches:+ - gh-readonly-queue/**types:- completedworkflows:@@ -162,7 +166,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -172,8 +176,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -184,19 +188,23 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-5"- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AGENT_VERSION: "1.0.96"- GH_AW_INFO_CLI_VERSION: "v0.92.0"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AGENT_VERSION: "1.0.101"+ GH_AW_INFO_CLI_VERSION: "v0.93.5"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"+ GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}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.28.57"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_INFO_AGENT_RUNTIME: ""+ GH_AW_INFO_ENGINE_HARNESS: "copilot-cli"+ GH_AW_INFO_MODEL_CONFIG: '{"routing":{"enabled":false},"models":{"allowed":[],"blocked":[]},"max_ai_credits_source":"default"}'+ GH_AW_INFO_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}GH_AW_COMPILED_STRICT: "true"GH_AW_INFO_MODEL_COSTS: '{"providers":{"github-copilot":{"models":{"claude-sonnet-5":{"cost":{"cache_read":"2e-07","cache_write":"2.5e-06","input":"2e-06","output":"1e-05"}}}}}}'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -210,7 +218,7 @@ jobs:await main(core, context);- name: Restore daily AIC scan observationsid: restore-daily-aic-cache-fallback- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_HAS_SLASH_COMMAND: "false"@@ -226,7 +234,7 @@ jobs:await main();- name: Check daily workflow token guardrailid: daily-ai-credits-workflow-guardrail- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"@@ -248,7 +256,7 @@ jobs:const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Publish daily AIC scan observations- if: always() && env.GH_AW_MAX_DAILY_AI_CREDITS != ''+ if: always() && env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != ''continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -305,7 +313,8 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.92.0"+ GH_AW_COMPILED_VERSION: "v0.93.5"+ GH_AW_HAS_SAFE_OUTPUTS: "true"GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"with:@@ -325,7 +334,7 @@ jobs:GH_AW_ACTIONS_DIR: ${{ runner.temp }}/gh-aw/actionsGH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txtGH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl- GH_AW_PROMPT_CONFIG: "{\"items\":[{\"content_env\":\"GH_AW_PROMPT_CONTENT_0000\"},{\"file\":\"xpia.md\"},{\"file\":\"temp_folder_prompt.md\"},{\"file\":\"markdown.md\"},{\"file\":\"repo_memory_prompt.md\"},{\"file\":\"safe_outputs_mcp_transport_prompt.md\"},{\"file\":\"safe_outputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0001\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0002\"},{\"file\":\"mcp_cli_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0003\"},{\"file\":\"github_mcp_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0004\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0005\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0006\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0007\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0008\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0009\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0010\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0011\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0012\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0013\"}],\"system_item_count\":13}"+ GH_AW_PROMPT_CONFIG: "{\"items\":[{\"content_env\":\"GH_AW_PROMPT_CONTENT_0000\"},{\"file\":\"xpia.md\"},{\"file\":\"temp_folder_prompt.md\"},{\"file\":\"markdown.md\"},{\"file\":\"repo_memory_prompt.md\"},{\"file\":\"safe_outputs_mcp_transport_prompt.md\"},{\"file\":\"safe_outputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0001\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0002\"},{\"file\":\"mcp_cli_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0003\"},{\"file\":\"github_mcp_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0004\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0005\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0006\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0007\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0008\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0009\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0010\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0011\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0012\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0013\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0014\"}],\"system_item_count\":13}"GH_AW_EXPR_76DF9333: ${{ github.event.pull_request.number || (fromJSON(steps.generate_aw_info.outputs.aw_context || '{}').item_type == 'pull_request' && fromJSON(steps.generate_aw_info.outputs.aw_context || '{}').item_number) }}GH_AW_EXPR_77C1A4D2: ${{ github.event.comment.id || fromJSON(steps.generate_aw_info.outputs.aw_context || '{}').comment_id }}GH_AW_EXPR_7C248226: ${{ github.event.issue.number || (fromJSON(steps.generate_aw_info.outputs.aw_context || '{}').item_type == 'issue' && fromJSON(steps.generate_aw_info.outputs.aw_context || '{}').item_number) }}@@ -341,9 +350,8 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}- GH_AW_WIKI_NOTE: ${{ '' }}GH_AW_PROMPT_CONTENT_0000: "<system>\n"- GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, missing_tool, missing_data, noop(max:2), notify_teams, notify_teams_recurring, remediate_transient_failure\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, report_missing_tool, report_missing_data, noop(max:2), notify_teams, notify_teams_recurring, propose_rerun_pattern, remediate_transient_failure\n"GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_7C248226__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_C19C384F__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_76DF9333__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_77C1A4D2__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"GH_AW_PROMPT_CONTENT_0004: "</system>\n"@@ -352,10 +360,11 @@ jobs:GH_AW_PROMPT_CONTENT_0007: "{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams.md}}\n"GH_AW_PROMPT_CONTENT_0008: "{{#runtime-import .github/workflows/shared/agentic-workflows/notify-teams-recurring.md}}\n"GH_AW_PROMPT_CONTENT_0009: "{{#runtime-import .github/workflows/shared/agentic-workflows/remediate-transient-failure.md}}\n"- GH_AW_PROMPT_CONTENT_0010: "# CI Failure Doctor — Merge Queue\n\nYou are the CI Failure Doctor for merge-queue CI, an expert investigative agent that analyzes failed GitHub Actions workflows **triggered by `merge_group` events** (merge-queue runs) to identify root causes and patterns. Your mission is to conduct a deep investigation when a merge-queue CI workflow fails, record the problem in a persistent knowledge base, and report it via Microsoft Teams.\n\nThis prompt is assembled from a shared CI Doctor protocol followed by a **workflow-specific instructions** section at the very end (`# CI Failure Doctor — Merge Queue: Workflow-Specific Instructions`). Read that section before you start: it extends the phases below (extra data sources, extra fields, extra safe-output tools) and takes precedence wherever it conflicts with the shared protocol.\n\n## Current Context\n\n- **Repository**: __GH_AW_GITHUB_REPOSITORY__\n- **Workflow Run**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_ID__\n- **Conclusion**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__\n- **Run URL**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__\n- **Head SHA**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__\n- **Trigger Event**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__\n\n## Pre-Analysis Data\n\nLogs have been pre-downloaded before this session started:\n\n- **Summary**: `/tmp/gh-aw/agent/ci-doctor/summary.txt` — failed jobs, failed steps, all file locations, and pre-located error hints\n- **Job metadata**: `/tmp/gh-aw/agent/ci-doctor/logs/failed-jobs.json` — structured list of failed jobs and their failed steps\n- **Log files**: `/tmp/gh-aw/agent/ci-doctor/logs/job-<job-id>.log` — full job logs downloaded from GitHub Actions\n- **Hint files**: `/tmp/gh-aw/agent/ci-doctor/filtered/*-hints.txt` — pre-located error lines (from logs) via generic grep heuristics\n\nThe workflow-specific instructions may list additional pre-collected files (for example pull-request metadata).\n\n**Start here**: Read `/tmp/gh-aw/agent/ci-doctor/summary.txt` first — it lists every file location and the first few hint matches. Then examine the relevant hint files to jump directly to error locations (read ~50 lines around each hinted line number before loading the full log).\n\n## Investigation Protocol\n\n**Trigger detection:**\n\n- If triggered by `workflow_run` event: ONLY proceed if **all** of the following are true:\n 1. `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__` is `failure` or `cancelled`.\n 2. `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__` is `merge_group`.\n If either condition fails, call the `noop` tool and exit immediately. This workflow is exclusively for merge-queue (`merge_group`) failures — do **not** investigate runs triggered by any other event (e.g. `pull_request`).\n- If triggered by `workflow_dispatch` event: check if `__GH_AW_GITHUB_EVENT_INPUTS_RUN_ID__` is provided, use that run ID to fetch the workflow run details. If no `run_id` is provided, check if `__GH_AW_GITHUB_EVENT_INPUTS_LINK__` is provided, use that workflow link to fetch the workflow run details. If neither is provided, exit immediately.\n\n### Phase 1: Initial Triage\n\n1. **Verify Failure**: Check that `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__` is `failure` or `cancelled`\n - **If the workflow was successful**: Call the `noop` tool with message \"Merge Queue workflow completed successfully - no investigation needed\" and **stop immediately**. Do not proceed with any further analysis.\n - **If the workflow failed or was cancelled**: Proceed with the investigation steps below.\n2. **Verify Trigger Event**: Confirm that `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__` is `merge_group`. If it is not, call the `noop` tool with message \"Not a merge-queue run - skipping\" and **stop immediately**.\n3. **Get Workflow Details**: Use `get_workflow_run` to get full details of the failed run\n4. **List Jobs**: Use `list_workflow_jobs` to identify which specific jobs failed\n5. **Quick Assessment**: Determine if this is a new type of failure or a recurring pattern\n\n### Phase 2: Deep Log Analysis\n\n1. **Use Pre-Downloaded Logs**: Start with the files in `/tmp/gh-aw/agent/ci-doctor/`:\n - Read `/tmp/gh-aw/agent/ci-doctor/summary.txt` and the hint files first (minimal context load).\n - Read ~50 lines around each hinted line number in the full log file.\n - Only load the full log content if the hints are insufficient.\n2. **Fallback Log Retrieval**: If the pre-downloaded files are unavailable, use `get_job_logs` with `failed_only=true` to get logs from all failed jobs. **This step is mandatory — do not skip it or substitute with source code analysis.**\n3. **Pattern Recognition**: Analyze logs for:\n - Error messages and stack traces\n - Dependency installation failures\n - Test failures with specific patterns\n - Infrastructure or runner issues\n - Timeout patterns\n - Memory or resource constraints\n4. **Extract Key Information**:\n - Primary error messages\n - File paths and line numbers where failures occurred\n - Test names that failed\n - Dependency versions involved\n - Timing patterns\n\n### Phase 3: Historical Context Analysis\n\n1. **Search Investigation History**: Use file-based storage to search for similar failures:\n - Read from investigation files in `/tmp/gh-aw/repo-memory/default/mq/investigations/` (this is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch `memory/ci-doctor-mq`; files written elsewhere are not persisted across runs)\n - Parse previous failure patterns and solutions\n - Look for recurring error signatures\n2. **Issue History**: Search existing issues for related problems\n3. **Commit Analysis**: Examine the commit (`__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__`) that triggered the failure\n4. **PR Context**: If the failure can be associated with a pull request (the workflow-specific instructions describe how PR context is resolved for this doctor), note its number/author for the report and use its changed files to scope the source inspection in Phase 4; otherwise treat the failure as commit-scoped.\n\n### Phase 4: Root Cause Investigation\n\n1. **Categorize Failure Type**:\n - **Code Issue**: Syntax errors, logic bugs, test failures\n - **Infrastructure**: Runner issues, network problems, resource constraints\n - **Dependencies**: Version conflicts, missing packages, outdated libraries\n - **Configuration**: Workflow configuration, environment variables\n - **Flaky Test**: Intermittent failures, timing issues\n - **External Service**: Third-party API failures, downstream dependencies\n - **Network**: unreachable network/services, exceeded max retries\n\n2. **Deep Dive Analysis**:\n - For test failures: Identify specific test methods and assertions\n - For build failures: Analyze compilation errors and missing dependencies\n - For infrastructure issues: Check runner logs and resource usage\n - For timeout issues: Identify slow operations and bottlenecks\n\n3. **Source Code Inspection Safeguards**:\n The investigation must stay narrowly scoped. Do **not** attempt to analyze the\n whole codebase or browse files unrelated to the failure signal extracted from\n the logs. Apply the following hard limits:\n\n - **Log-first, code-second**: Only inspect source files after you have\n extracted concrete file paths, symbols, or component names from the failed\n job logs. If the logs do not point to a specific area, do **not** start\n opening source files at random — proceed to reporting with the log-derived\n findings instead.\n - **Component scoping**: Identify the affected component (e.g., a single\n plugin under `src/plugins/<name>/`, a frontend under `src/frontends/<name>/`,\n a binding under `src/bindings/<lang>/`, or a specific test suite directory).\n Restrict all source code reads to that component's directory and the exact\n files referenced in the logs or in the PR diff (when a PR is known).\n - **File budget**: Read at most **10 source files** total per investigation,\n and at most **400 lines** per file. Prefer targeted reads of the lines\n surrounding the error (±50 lines) over reading entire files. Never iterate\n over a directory's contents file-by-file.\n - **No bulk traversal**: Do not list, enumerate, or sequentially read the\n contents of test directories, suite folders, or component trees. Do not\n attempt to \"read every test file\" to understand a failure — use the failing\n test name from the logs to jump directly to the one relevant file.\n - **Repository search discipline**: Use repository search (grep/code search)\n with **specific** error strings, symbol names, or file fragments taken from\n the logs. Do not run broad searches (e.g., single common words, wildcards\n across the whole repo). Cap searches at **5 queries** per investigation.\n - **PR-scoped diffs**: When the failure can be associated with a PR, prefer\n reading only the files changed in that PR plus files explicitly named in\n the error output.\n - **Stop conditions**: As soon as you have a plausible root cause supported\n by the logs and at most a handful of code references, stop investigating\n and proceed to Phase 5. Additional code reading beyond that point is\n out of scope for this agent.\n - **When in doubt, report and stop**: If the failure cannot be localized to\n a component within the limits above, report it as \"needs human triage\"\n with the log evidence collected so far. Do **not** expand the search to\n compensate.\n"- GH_AW_PROMPT_CONTENT_0011: "### Phase 5: Pattern Storage and Knowledge Building\n\n**Artefact schemas (MANDATORY — read before writing anything):**\nEvery JSON artefact this phase writes MUST conform to a fixed JSON Schema committed in the repository. The repository is sparse-checked-out at the path reported as **workspace** in the Current Context (environment variable `GITHUB_WORKSPACE`). The schemas are:\n\n- **Investigation records** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/investigation.schema.json`\n Applies to every `<timestamp>-<run-id>.json` file under `investigations/` **except** the aggregate `index.json`.\n- **Pattern records** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/pattern.schema.json`\n Applies to every `<signature-hash>.json` file under `patterns/`.\n- **Investigations index** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/index.schema.json`\n Applies to the single aggregate `investigations/index.json` file.\n\nRules that apply to all artefact types:\n\n- Read the relevant schema file **before** composing an artefact so the structure and field names match exactly. Do not invent your own field names or layout.\n- Set `\"schema_version\": \"1.0\"` on every artefact you write.\n- These schemas declare `\"additionalProperties\": false`. Do **not** add fields that are not defined in the schema — extra fields make the artefact invalid.\n- Use the exact field names, types, and `enum` values from the schema. `category` must be one of the seven categories; `confidence` must be `High`/`Medium`/`Low`.\n- Timestamp **values** inside JSON use full ISO 8601 with colons (e.g., `2026-05-12T14:30:00Z`); only **file names** use the colon-free `YYYY-MM-DD-HH-MM-SS-sss` form.\n- The workflow-specific instructions may require additional schema fields (for example a rerun hook) — apply them on top of the procedures below.\n\n**Validation procedure (run immediately after writing each artefact — MANDATORY):**\n\n1. Read the artefact back from disk and parse it as JSON (this also confirms it is well-formed).\n2. Read the matching schema file.\n3. Validate the parsed object against the schema. If a JSON Schema validator is available in the run environment (e.g., Python with the `jsonschema` package — `python3 -c \"import jsonschema, json, sys; jsonschema.validate(json.load(open(sys.argv[1])), json.load(open(sys.argv[2])))\" <artefact> <schema>`), use it. Otherwise perform an explicit conformance check covering: every `required` field present; each field's `type`/`enum`/`format` honoured; **no** field outside the schema's `properties` (because `additionalProperties` is `false`); and array `minItems`/`maxItems` limits respected.\n4. If validation fails, fix the artefact and repeat until it validates. **Never leave an invalid artefact on disk**, and do not proceed to the next phase with an unvalidated artefact.\n\n1. **Store Investigation**: Save structured investigation data to files in the persistent repo-memory directory:\n - **Persistent path**: `/tmp/gh-aw/repo-memory/default/` is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch (`memory/ci-doctor-mq`). Files written here survive across runs permanently. Files written elsewhere are **not** persisted and will be lost.\n - **Workflow-specific subdirectory**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` to keep its investigations isolated from any other workflows using repo-memory.\n - Create the subdirectory if needed: `mkdir -p /tmp/gh-aw/repo-memory/default/mq/investigations /tmp/gh-aw/repo-memory/default/mq/patterns`.\n - Write the investigation report to `/tmp/gh-aw/repo-memory/default/mq/investigations/<timestamp>-<run-id>.json`\n - The file content MUST conform to the **investigation schema** (`investigation.schema.json`) described in the \"Artefact schemas\" block above, and MUST be validated with the validation procedure right after writing.\n - **Important**: Use filesystem-safe timestamp format `YYYY-MM-DD-HH-MM-SS-sss` (e.g., `2026-02-12-11-20-45-458`)\n - **Do NOT use** ISO 8601 format with colons (e.g., `2026-02-12T11:20:45.458Z`) - colons are not safe in filenames\n - Store error patterns in `/tmp/gh-aw/repo-memory/default/mq/patterns/` as `.json` files (one file per failure signature, e.g., `<signature-hash>.json`), each conforming to the **pattern schema** (`pattern.schema.json`)\n - Update the investigations index at `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json` following the **MANDATORY read-modify-write procedure** in step 1a below (it appends the current run and preserves existing entries; the only sanctioned place the index ever shrinks is the retention prune in step 5). Never recreate this file from scratch.\n\n1a. **Update Investigations Index — MANDATORY read-modify-write procedure**:\n\n The index at `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json` is a single rolling-retention aggregate that references the most recent `INDEX_RETENTION_MAX` investigations (older references are trimmed by the retention step, step 5 — the *permanent* recurrence signal lives in the per-signature pattern records, not here). It MUST conform to the **index schema** (`index.schema.json`). Accidentally losing or overwriting entries **during this read-modify-write** is a **critical data-loss bug** — the following procedure exists specifically to prevent it, and you MUST follow it exactly. Deliberate trimming of the oldest entries happens ONLY in step 5, never here.\n\n **Step A — Read the existing index (never skip):**\n - Attempt to read `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json`.\n - If it exists, parse it as JSON into `existing`. If it exists but fails to parse (corrupted/truncated), **do NOT overwrite it**: copy it aside to `index.corrupt-<timestamp>.json`, then reconstruct `existing.entries` by scanning every `*.json` investigation record already present under `investigations/` (excluding `index.json` itself) so no prior investigation is dropped.\n - If the file does NOT exist, set `existing = { \"schema_version\": \"1.0\", \"total\": 0, \"entries\": [] }`.\n - Normalize legacy shapes: if `existing` has a deprecated `investigations` array, merge its elements into `existing.entries` (deduplicating by `investigation_id`+`run_id`) and drop the `investigations` key. Map any legacy `id` field to `investigation_id`.\n - Record `PREV_COUNT = length(existing.entries)`.\n\n **Step B — Append the current investigation (never remove or replace prior entries):**\n - Build the new entry from the investigation you just wrote, using the fields defined in `index.schema.json`: `investigation_id`, `run_id` (string), `timestamp`, `title`, `category`, `signature_hash`, and `pr_number` (string or null).\n - If an entry with the same `investigation_id` already exists, update that one entry in place; otherwise **append** the new entry to the end of `existing.entries`.\n - Under no circumstances truncate, replace wholesale, reorder-destructively, or shrink `existing.entries` **in this step**. The only allowed mutations here are: appending a new entry, or updating a single matching existing entry in place. (Bounded pruning of the oldest entries happens later, in the retention step 5.)\n\n **Step C — Recompute and write:**\n - Set `total = length(entries)`.\n - Assert the **in-run never-shrink invariant**: `total >= PREV_COUNT` (this step only appends/updates; it must not drop entries). If this assertion fails, you have a bug — stop, re-read the existing file, and redo from Step A. Do NOT write a smaller index **here** — the retention step 5 is the only place the index is deliberately trimmed.\n - Write the object `{ schema_version: \"1.0\", total, entries }` back to `index.json`, overwriting the file with the **superset** you just computed.\n\n **Step D — MANDATORY verification (read-back check):**\n - Read `index.json` back, parse it, and validate against `index.schema.json` (see the validation procedure in the \"Artefact schemas\" block).\n - Verify `total == length(entries)` and `total >= PREV_COUNT`.\n - Verify the current investigation's `investigation_id` is present in `entries` exactly once.\n - Verify every entry that was in the pre-write `existing.entries` is still present (no prior entry was dropped).\n - If any check fails, **do not leave the shrunken/invalid index on disk** — restore from the pre-write copy and redo from Step A.\n\n **Common failure modes to avoid:**\n - Recreating `index.json` from scratch (e.g., writing only the current entry) — this destroys all history.\n - Skipping Step A and overwriting instead of appending.\n - Writing a `total` smaller than the `PREV_COUNT` you read in Step A of **this** step (deliberate retention trimming happens only in step 5, never during the append).\n - Dropping the deprecated `investigations` array's contents instead of merging them into `entries`.\n\n2. **Update Pattern Database — MANDATORY read-modify-write procedure**:\n\n Each failure signature gets exactly one JSON file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.\n\n **Schema:** the authoritative definition is `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/pattern.schema.json`. Read that file for the exact field list, types, and constraints, and validate the record against it (see the validation procedure in the \"Artefact schemas\" block above).\n\n **Step-by-step procedure (follow EXACTLY in this order):**\n\n **Step A — Compute signature hash:**\n Derive a stable `<signature-hash>` from ONLY inputs that do NOT change between reruns of the same failure **and that do NOT depend on which job the error occurred in** — the same underlying error frequently surfaces in several different jobs (e.g., the same test failing on Linux and Windows, or across shards), and those MUST collapse into a single pattern:\n - Normalized primary error message: strip absolute paths, line/column numbers, hex addresses, PIDs, timestamps, run IDs, commit SHAs, tmp dirs, UUIDs, and any embedded job / runner / OS / shard names or indices\n - Failure category — MUST be exactly one of the values from the `category` `enum` defined in `pattern.schema.json` (identical to the `category` enum in `investigation.schema.json`). Use the schema's spelling verbatim (e.g., `Code Issue`, `Flaky Test`, `External Service`, `Network`); do **not** invent a category or use the looser prose labels from Phase 4.\n\n Do **NOT** include the failed job name in the hash. Keying on the job name would split one underlying error into a separate pattern for every job that hits it, inflating the database and breaking recurrence counting. Treat the job name(s) as descriptive metadata only (record them in `title` / the investigation, not in the hash).\n\n Concatenate the two inputs as `<normalized-error>|<category>`, then compute a hash (e.g., first 16 chars of SHA-256). The same normalized error in the same category MUST always produce the same hash regardless of which job(s) it occurred in, and two reruns of the same failure MUST produce the same hash.\n\n **Step B — Read existing file:**\n Attempt to read `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.\n - If the file exists, parse it as JSON into a variable called `existing`.\n - If the file does NOT exist, set `existing = null`.\n\n **Step C — Compute the updated record:**\n\n ~~~pseudocode\n NOW = current UTC time in ISO 8601 format (e.g., \"2026-05-12T14:30:00Z\")\n CURRENT_RUN_URL = the URL of the current workflow run\n SCOPE_REF = the PR URL (or null if no PR)\n\n IF existing != null:\n record.schema_version = \"1.0\"\n record.signature = existing.signature\n record.signature_hash = existing.signature_hash\n record.title = title from investigation (refresh always)\n record.category = category from investigation (refresh always)\n record.count = existing.count + 1 ← MUST increment\n record.first_seen = existing.first_seen ← NEVER change\n record.last_seen = NOW\n record.recent_run_urls = [CURRENT_RUN_URL] + existing.recent_run_urls\n → deduplicate by URL, then truncate to first 10 entries\n record.affected_prs = (if SCOPE_REF: [SCOPE_REF] + existing.affected_prs else existing.affected_prs)\n → deduplicate, then truncate to first 10 entries\n record.recent_timestamps = [NOW] + existing.recent_timestamps\n → keep only entries where timestamp >= (NOW - 24 hours)\n ELSE:\n record.schema_version = \"1.0\"\n record.signature = the <normalized-error>|<category> signature string from Step A\n record.signature_hash = <signature-hash>\n record.title = title from investigation\n record.category = category from investigation\n record.count = 1\n record.first_seen = NOW\n record.last_seen = NOW\n record.recent_run_urls = [CURRENT_RUN_URL]\n record.affected_prs = (if SCOPE_REF: [SCOPE_REF] else [])\n record.recent_timestamps = [NOW]\n\n Additionally set every workflow-specific pattern field required by the\n workflow-specific instructions (if any), in both branches.\n ~~~\n\n **Step D — Write the file:**\n Write `record` as JSON to `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`. Overwrite the file completely with the new content.\n\n **Step E — MANDATORY verification (read-back check):**\n Immediately after writing, read the file back and verify:\n - the record validates against `pattern.schema.json` (run the validation procedure from the \"Artefact schemas\" block)\n - `schema_version` equals `\"1.0\"` and `signature_hash` matches the file name\n - `count` equals the value you just computed (NOT 1 unless this is genuinely the first occurrence)\n - `recent_timestamps` contains the current timestamp `NOW` as the first entry\n - `last_seen` equals `NOW`\n - `first_seen` has NOT changed from `existing.first_seen` (if file existed before)\n - every additional check listed in the workflow-specific instructions passes\n\n If any check fails, you have a bug in your write logic. Fix it before proceeding.\n\n **Common failure modes to avoid:**\n - Writing `count: 1` because you forgot to read the existing file first\n - Writing `count: 1` because you recomputed the signature hash differently (different normalization) and created a new file instead of updating the old one\n - Omitting `recent_timestamps` entirely (this breaks recurrence detection)\n - Setting `first_seen` to NOW when the file already existed\n - Forgetting to include the current timestamp in `recent_timestamps`\n\n3. **Build Statistics Snapshot**: After step 2, aggregate all `.json` files under `/tmp/gh-aw/repo-memory/default/mq/patterns/` into the statistics fields for `notify_teams`. For each file:\n - Read and parse the JSON\n - Use the `count`, `first_seen`, `last_seen`, `title`, `category` values AS-IS from the file (do NOT recompute them)\n - The current failure's pattern MUST report `count == notify_teams.occurrence_count`\n\n Sort patterns by `count` descending (ties broken by most recent `last_seen`). Format as the markdown table and JSON described in the Output Requirements section.\n\n **Validation before calling notify_teams:** Read back the current pattern file one more time. The `count` field in the file MUST equal the `occurrence_count` value you are about to pass to `notify_teams`. If they differ, go back to Step B and redo the update.\n\n4. **Save Artifacts**: Store detailed logs and analysis in the cached directories.\n\n5. **Retention & Compaction (MANDATORY — keeps the knowledge base under the repo-memory caps)**:\n\n The repo-memory branch enforces hard `max-file-count` (1000) and `max-file-size` (1 MiB) caps on every push; once either is exceeded, **the entire push is rejected** and this run's investigation — and all future ones — silently fail to persist. To stay under them, prune the two unbounded, low-value-over-time datasets down to rolling windows **after** writing this run's artefacts (steps 1–3). No permanent signal is lost: long-term recurrence lives in the per-signature `patterns/*.json` `count`/`first_seen`/`last_seen` fields, which are **never** pruned.\n\n Constants:\n - `INVESTIGATION_RETENTION_MAX = 300` — max per-run investigation record files to keep under `investigations/`.\n - `INDEX_RETENTION_MAX = 2000` — max entries to keep in `index.json` (≈600 KiB, comfortably under the 1 MiB file cap).\n\n **Step A — Prune raw investigation records:**\n - List every `*.json` file under `/tmp/gh-aw/repo-memory/default/mq/investigations/` **except** `index.json`.\n - If the count exceeds `INVESTIGATION_RETENTION_MAX`, delete the oldest files (order by the `YYYY-MM-DD-HH-MM-SS-sss` timestamp in the filename, oldest first) until exactly `INVESTIGATION_RETENTION_MAX` remain. **Never** delete the record you wrote in this run.\n - Deleting a raw record does not erase the failure from history: its lightweight reference stays in `index.json` (until the index prune below) and its recurrence is already folded into the pattern record.\n\n **Step B — Compact the index to its rolling window:**\n - Re-read `index.json` (the superset written in step 1a).\n - If `length(entries) > INDEX_RETENTION_MAX`, keep only the newest `INDEX_RETENTION_MAX` entries (sort by `timestamp` descending, take the first `INDEX_RETENTION_MAX`). This is the ONLY sanctioned place the index shrinks.\n - Set `total = length(entries)`, write the object back, then validate against `index.schema.json` and confirm this run's `investigation_id` is still present (it is one of the newest, so it must survive the trim).\n\n **Step C — Verify headroom (monitoring):**\n - Count all persisted files under `/tmp/gh-aw/repo-memory/default/mq/` and confirm the total is `< max-file-count` (1000).\n - Confirm `index.json` on disk is `< max-file-size` (1 MiB). If it is within ~10% of the cap despite the entry trim, lower the effective `INDEX_RETENTION_MAX` for this write and note it in the investigation.\n - Never leave the branch over any cap — an over-cap push is rejected wholesale and this run's investigation is lost. If pattern records alone approach `max-file-count`, flag it in the Teams report so a maintainer can raise the cap or archive old signatures.\n"- GH_AW_PROMPT_CONTENT_0012: "### Phase 6: Reporting and Recommendations\n\n1. **Create Investigation Report**: Generate a comprehensive analysis including:\n - **Executive Summary**: Quick overview of the failure\n - **Root Cause Analysis**: Single, consolidated section covering category, failed jobs, key error excerpts, the actual root-cause explanation, and your confidence level. Do **not** add a separate \"Investigation Findings\" or \"Deep Analysis\" section — it would duplicate this one.\n - **Reproduction Steps**: How to reproduce the issue locally\n - **Recommended Actions**: Specific steps to fix the issue\n - **Prevention Strategies**: How to avoid similar failures\n - **AI Team Self-Improvement**: Give a short set of additional prompting instructions to copy-and-paste into instructions.md for AI coding agents to help prevent this type of failure in future\n - **Historical Context**: Similar past failures and their resolutions\n\n2. **Actionable Deliverables**:\n - Send a Microsoft Teams notification with the investigation results (see Output Requirements below)\n - Provide specific file locations and line numbers for fixes\n - Suggest code changes or configuration updates\n - Produce every additional deliverable listed in the workflow-specific instructions (and none that they forbid)\n\n### Phase 7: Output Format Validation (MANDATORY before any safe-output call)\n\nYou MUST validate and normalise the payload before calling `notify_teams` or any other safe-output tool listed in the workflow-specific instructions.\n\n**Every numeric-looking field in these tools is declared as `type: string` and\nMUST be passed as a JSON string, not a JSON number.** Wrap the value in quotes.\n\n1. **Build the payload object first**, then run the checklist below against it.\n Do not call the safe-output tool until every check passes.\n\n2. **String-encoding checklist** — for each field, confirm the value is a string\n (quoted), never a bare number, boolean, null, or object:\n\n For `notify_teams`:\n - `source` — the string `\"merge_queue\"` (MANDATORY for this workflow, so the Teams card shows the matching source badge and states the failure is a Merge Queue one)\n - `title` — non-empty string\n - `failed_workflow` — non-empty string\n - `pipeline_url` — non-empty string (a valid URL)\n - `description` — non-empty string\n - `db_entries` — string-encoded non-negative integer, e.g. `\"42\"` (NOT `42`)\n - `occurrence_count` — string-encoded positive integer, e.g. `\"4\"` (NOT `4`)\n - `statistics` — non-empty string\n - `statistics_json` — string (a JSON document serialized into a string; the\n value itself must be a string, even though its contents are JSON)\n - `pr_number` — when provided, string-encoded integer, e.g. `\"27618\"`\n (NOT `27618`). This is the field most commonly rejected — double-check it.\n - `pr_url` — when provided, string\n - `author` — when provided, string\n\n The workflow-specific instructions add the checklist for any further safe-output tools.\n\n3. **Normalization rule**: if you computed any of the numeric fields as an\n integer (e.g., `count` read from a pattern file, a file count, or a PR number\n parsed from the API), explicitly convert it to its string form before placing\n it in the payload. For example, treat `pr_number` derived as `27618` as\n `\"27618\"`.\n\n4. **Optional-field rule**: for optional fields (`pr_number`, `pr_url`,\n `author`), either provide a correctly-typed string value OR an explicit string \"not_found\". Never pass `null`, an empty object, or a bare number.\n\n5. **Final self-check**: re-read the assembled payload one last time and verify\n that no value that should be a string is an unquoted number, and that `source`\n is set to `\"merge_queue\"`. Only after this check passes may you call the\n safe-output tool. If you are unsure whether a field is correctly typed, coerce\n it to a string — string is always the safe choice for these tools.\n\n## Output Requirements\n\nReport the investigation as a Microsoft Teams notification by calling the `notify_teams` safe-output tool exactly once.\n\nThe workflow-specific instructions may require additional safe-output calls (for example a PR comment or an escalation alert); follow them in addition to the guidance below.\n\n### `notify_teams` field guidance\n\nProvide all required fields and include the optional PR-related fields whenever the failure can be associated with a pull request.\n\n- **`source`** (required) — Always pass the string `\"merge_queue\"`. This makes the Teams card render the matching badge and a \"Source: Merge Queue\" fact so readers can immediately tell a merge-queue failure apart from the other CI Doctor's failures.\n\n- **`title`** (required) — Short, searchable description of the failure. **Do not** include PR, commit or run numbers. Examples:\n * iGPU tests fail with incorrect input argument\n * SmartCI fails to fetch GenAI repo after actions/checkout update\n * smoke_Bucketize tests fail on comparison\n * smoke_ConvertCPULayerTest - Value of: primTypeCheck(primType) is unexpected\n * smoke/LoraPatternMatmul returned/aborted with exit code -9\n\n Use a phrasing that could be reused verbatim as a summary in a tracking system like JIRA.\n\n- **`pipeline_url`** (required) — `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__` for `workflow_run` triggers, or the `link` input / resolved run URL when triggered manually.\n\n- **`failed_workflow`** (required) — Name of the workflow whose run is being investigated, taken from `get_workflow_run` (field `name`). For example: `Linux (Ubuntu 22.04, Python 3.11)`. Never pass the name of this CI Failure Doctor Merge Queue workflow itself.\n\n- **`pr_number`** / **`pr_url`** / **`author`** (optional) — Provide these only when the failure can be associated with a pull request / author. The workflow-specific instructions define where these values come from for this doctor. Omit or pass `\"not_found\"` when they cannot be determined.\n\n- **`db_entries`** (required) — Current total number of unique entries in the CI Doctor Merge Queue investigation database. Compute it during Phase 5 by counting distinct files under `/tmp/gh-aw/repo-memory/default/mq/investigations/` (including the one this run just wrote, excluding `index.json`) and pass the resulting non-negative integer as a string (e.g., `\"42\"`). If the directory does not yet exist, report `\"0\"` (or `\"1\"` if you just created the first entry). Note: counting files under any path other than `/tmp/gh-aw/repo-memory/default/mq/investigations/` will give a wrong result.\n\n- **`occurrence_count`** (required) — How many times **this same issue** has been recorded in the CI Doctor Merge Queue database, including the current investigation. This value MUST be read directly from the `count` field of the pattern file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` AFTER you have completed the Phase 5 step 2 write and verification. Do NOT compute this independently — read it from the file. Pass as a positive integer encoded as a string (e.g., `\"1\"`, `\"4\"`).\n- **`statistics`** (required) — Markdown snapshot of the pattern database, saved to the `ci-doctor-mq-statistics` workflow artifact.\n\n- **`statistics_json`** (required) — Full pattern database serialized as a compact JSON string (single line, no surrounding code fence). Must include **every** pattern currently tracked, not just the top 20. Schema is documented on the input field. This payload is uploaded as the `ci-doctor-mq-statistics` workflow artifact (alongside the rendered Markdown) and is intended for offline analysis or dashboarding. Keep `recent_run_urls` capped at 10 entries per pattern.\n\n **Count consistency (mandatory):** the `count` value for every pattern in `statistics_json` (and in the rendered `statistics` table) MUST be the persisted `count` read from the corresponding `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` file *after* Phase 5 step 2 has updated it. In particular, the current failure's pattern MUST report `count == occurrence_count`. Do NOT emit `count: 1` for every pattern — that is a symptom of either (a) overwriting the persisted record instead of read-modify-write, or (b) generating a fresh signature hash on each run. Validate this invariant before calling `notify_teams`; if it fails, fix the persistence step rather than the reported numbers.\n\n- **`description`** (required) — Thorough Markdown body. Microsoft Teams Adaptive Cards render only a **limited subset of Markdown** — specifically: headings (`#`/`##`/`###`), bold/italic, inline code, fenced code blocks, ordered/unordered lists, and links. **Do not** use raw HTML tags such as `<details>`, `<summary>`, `<br>`, `<b>`, `<table>`, etc. — they appear as literal text in Teams. Use `###` headings for every section (no collapsibles). Use this structure (the workflow-specific instructions may insert additional `###` sections):\n\n```markdown\n### Summary\n\n[Brief description of the merge-queue failure]\n\n### Failure Details\n\n- **Run**: [__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_ID__](__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__)\n- **Commit**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__\n- **Trigger**: merge_group (merge-queue)\n\n### Root Cause Analysis\n\nWrite this as a single, consolidated section. Do NOT add a separate \"Investigation Findings\", \"Deep Analysis\", or standalone \"Failed Jobs and Errors\" section — they duplicate this one. Use the following fixed sub-structure with `####` headings, in this order; omit a sub-heading only if there is genuinely nothing to say.\n\n#### Category\n\nOne of: Code Issue / Infrastructure / Dependencies / Configuration / Flaky Test / External Service / Network. Add a half-sentence justification.\n\n#### Failed Jobs\n\nBulleted list of `job-name` — short symptom (one line each).\n\n#### Key Errors\n\nOne or more fenced code blocks with the most relevant raw log excerpts (trimmed). Cite file paths and line numbers from the logs verbatim.\n\n**Fence rules (critical for Teams rendering):**\n\n- Use **tilde fences** (`~~~`), not backticks, to delimit log excerpts. Backtick fences inside the description frequently collide with stray backticks in log output and cause everything that follows to render as a single unterminated code block in Teams.\n- Open with a line containing exactly `~~~` (optionally followed by a language hint like `~~~text`) and close with a line containing exactly `~~~`. Nothing else on the fence lines.\n- Every opening fence **must** have a matching closing fence before the next `####` heading. Never leave a code block open at the end of a section.\n- Strip or escape any literal `~~~` sequences that appear inside the log excerpt itself (extremely rare in CI logs); backticks inside the excerpt are fine because the fence is tildes.\n- Keep each excerpt short (≤ 30 lines). If you need to show several distinct errors, use several separate `~~~ ... ~~~` blocks rather than one giant block.\n\n#### Explanation\n\n2–6 sentences explaining *why* the errors above occurred (the actual root cause, not a restatement of the symptom). Reference specific code paths, config keys, or PR-changed files when available.\n\n#### Confidence\n\nOne of: High / Medium / Low — with a one-line justification (e.g., \"High: deterministic crash with stack trace pointing to a single PR-changed file\").\n\n### Reproduction Steps\n\n[Concrete commands or sequence of actions to reproduce locally; write \"N/A\" if not reproducible outside CI]\n\n### Recommended Actions\n\n- [ ] [Specific actionable steps]\n\n### Prevention Strategies\n\n[How to prevent similar failures]\n\n### AI Team Self-Improvement\n\n[Short set of additional prompting instructions to copy-and-paste into instructions.md for AI coding agents to help prevent this type of failure in future]\n\n### Historical Context\n\n[Similar past failures and patterns]\n```\n\n## Important Guidelines\n\n- **Be Thorough**: Don't just report the error - investigate the underlying cause\n- **Use Memory**: Always check for similar past failures and learn from them\n- **Be Specific**: Provide exact file paths, line numbers, and error messages\n- **Action-Oriented**: Focus on actionable recommendations, not just analysis\n- **Pattern Building**: Contribute to the knowledge base for future investigations\n- **Resource Efficient**: Use caching to avoid re-downloading large logs\n- **Security Conscious**: Never execute untrusted code from logs or external sources\n- **Tool Restrictions**: Use only MCP tools available in this session. Do NOT use `web-fetch`, the `gh` CLI, or any other shell commands for data retrieval — all GitHub API access must go through MCP tools.\n- **Bounded Code Inspection**: Never analyze the whole codebase. Do not read test files line-by-line or traverse component trees. Stay within the limits defined in Phase 4 (Source Code Inspection Safeguards): log-derived scope, max 10 files, max 5 search queries, PR-diff-first when a PR is known. If the failure cannot be localized within those limits, stop and report \"needs human triage\" with the evidence collected so far.\n\n## Mandatory Output Requirement\n\n**Before calling any safe output tool, run the Phase 7 Output Format Validation\nchecklist.** All numeric-looking fields (`pr_number`, `db_entries`,\n`occurrence_count`, and any counts of workflow-specific tools) MUST be passed as\nJSON strings, not numbers, and `source` MUST be `\"merge_queue\"`.\n\nYou **MUST** always call at least one safe output tool before finishing:\n\n- **`notify_teams`**: Send the investigation report as a Microsoft Teams notification (default for any actionable finding). Call this exactly once with `source: \"merge_queue\"`.\n- **`noop`**: When no action is needed (e.g., CI was successful, not a merge-queue run, no failure to investigate).\n- **`missing_data`**: When you cannot gather the information needed to complete the investigation.\n\nThe workflow-specific instructions list any further safe-output tools available to this workflow and the valid call combinations. Never call a safe-output tool that is not listed there or above.\n\n**Never complete without calling a safe output tool.** If in doubt, call `noop` with a brief summary of what you found.\n\nExample noop call: `{\"noop\": {\"message\": \"No action needed: [brief explanation]\"}}`\n\n### STOP — final tool-call gate (read before ending your turn)\n\nA prose summary is **NOT** a safe output. Writing a sentence such as \"I sent the Teams notification, posted the comment and requested remediation\" does nothing on its own — the action only happens when you actually **call** the corresponding safe-output tool (`notify_teams`, `add_comment`, `remediate_transient_failure`, `noop`, ...) so that it is emitted to the output file. A run that finishes with a written summary but no tool call is silently discarded as an empty no-op, and all of your work is lost.\n\nBefore you end your turn, verify:\n\n1. Every action you described in your summary has a matching safe-output **tool call** you actually made this session — not just narration.\n2. At minimum, `notify_teams` (or `noop` / `missing_data`) has been called.\n\nIf you have written such a summary but have not yet called the tools it describes, **call them now** before finishing. Do not end your turn until the required tool calls have been emitted.\n\n## Memory Strategy\n\n- **Persistent location**: `tools.repo-memory` mounts a dedicated Git branch (`memory/ci-doctor-mq`) at `/tmp/gh-aw/repo-memory/default/`. This directory persists **indefinitely** across workflow runs with no expiry. Anything written elsewhere (e.g., `/tmp/memory/`, `/tmp/investigation/`) is discarded when the runner is torn down.\n- Store the investigation database and knowledge patterns in `/tmp/gh-aw/repo-memory/default/mq/investigations/` and `/tmp/gh-aw/repo-memory/default/mq/patterns/`.\n- Build cumulative knowledge about failure patterns and solutions using structured JSON files.\n- **Filename Requirements**: Use filesystem-safe characters only (no colons, quotes, or special characters)\n - ✅ Good: `2026-02-12-11-20-45-458-12345.json`\n - ❌ Bad: `2026-02-12T11:20:45.458Z-12345.json` (contains colons)\n- **Allowed file extensions**: Only save artifacts as `.json`, `.md`, or `.jsonl` files. These are the only extensions tracked by `tools.repo-memory`. Files with any other extension (e.g., `.txt`, `.log`, `.yaml`) will **not** be persisted to the `memory/ci-doctor-mq` branch and will be lost when the runner is torn down. If there are any files with not-allowed extensions present in the `/tmp/gh-aw/repo-memory/default/mq` folder, remove them safely before finishing.\n- **Isolated branch**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` as its own subdirectory within the dedicated `memory/ci-doctor-mq` branch. This keeps merge-queue failure patterns isolated from every other workflow's knowledge base, so recurrence counting only counts merge-queue occurrences.\n"- GH_AW_PROMPT_CONTENT_0013: "{{#runtime-import .github/workflows/ci-doctor-mq.md}}\n"+ GH_AW_PROMPT_CONTENT_0010: "{{#runtime-import .github/workflows/shared/agentic-workflows/propose-rerun-pattern.md}}\n"+ GH_AW_PROMPT_CONTENT_0011: "# CI Failure Doctor — Merge Queue\n\nYou are the CI Failure Doctor for merge-queue CI, an expert investigative agent that analyzes failed GitHub Actions workflows **triggered by `merge_group` events** (merge-queue runs) to identify root causes and patterns. Your mission is to conduct a deep investigation when a merge-queue CI workflow fails, record the problem in a persistent knowledge base, and report it via Microsoft Teams.\n\nThis prompt is assembled from a shared CI Doctor protocol followed by a **workflow-specific instructions** section at the very end (`# CI Failure Doctor — Merge Queue: Workflow-Specific Instructions`). Read that section before you start: it extends the phases below (extra data sources, extra fields, extra safe-output tools) and takes precedence wherever it conflicts with the shared protocol.\n\n## Current Context\n\n- **Repository**: __GH_AW_GITHUB_REPOSITORY__\n- **Workflow Run**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_ID__\n- **Conclusion**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__\n- **Run URL**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__\n- **Head SHA**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__\n- **Trigger Event**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__\n\n## Pre-Analysis Data\n\nLogs have been pre-downloaded before this session started:\n\n- **Summary**: `/tmp/gh-aw/agent/ci-doctor/summary.txt` — failed jobs, failed steps, all file locations, and pre-located error hints\n- **Job metadata**: `/tmp/gh-aw/agent/ci-doctor/logs/failed-jobs.json` — structured list of failed jobs and their failed steps\n- **Log files**: `/tmp/gh-aw/agent/ci-doctor/logs/job-<job-id>.log` — full job logs downloaded from GitHub Actions\n- **Hint files**: `/tmp/gh-aw/agent/ci-doctor/filtered/*-hints.txt` — pre-located error lines (from logs) via generic grep heuristics\n\nThe workflow-specific instructions may list additional pre-collected files (for example pull-request metadata).\n\n**Start here**: Read `/tmp/gh-aw/agent/ci-doctor/summary.txt` first — it lists every file location and the first few hint matches. Then examine the relevant hint files to jump directly to error locations (read ~50 lines around each hinted line number before loading the full log).\n\n## Investigation Protocol\n\n**Trigger detection:**\n\n- If triggered by `workflow_run` event: ONLY proceed if **all** of the following are true:\n 1. `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__` is `failure` or `cancelled`.\n 2. `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__` is `merge_group`.\n If either condition fails, call the `noop` tool and exit immediately. This workflow is exclusively for merge-queue (`merge_group`) failures — do **not** investigate runs triggered by any other event (e.g. `pull_request`).\n- If triggered by `workflow_dispatch` event: check if `__GH_AW_GITHUB_EVENT_INPUTS_RUN_ID__` is provided, use that run ID to fetch the workflow run details. If no `run_id` is provided, check if `__GH_AW_GITHUB_EVENT_INPUTS_LINK__` is provided, use that workflow link to fetch the workflow run details. If neither is provided, exit immediately.\n\n### Phase 1: Initial Triage\n\n1. **Verify Failure**: Check that `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_CONCLUSION__` is `failure` or `cancelled`\n - **If the workflow was successful**: Call the `noop` tool with message \"Merge Queue workflow completed successfully - no investigation needed\" and **stop immediately**. Do not proceed with any further analysis.\n - **If the workflow failed or was cancelled**: Proceed with the investigation steps below.\n2. **Verify Trigger Event**: Confirm that `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_EVENT__` is `merge_group`. If it is not, call the `noop` tool with message \"Not a merge-queue run - skipping\" and **stop immediately**.\n3. **Get Workflow Details**: Use `get_workflow_run` to get full details of the failed run\n4. **List Jobs**: Use `list_workflow_jobs` to identify which specific jobs failed\n5. **Quick Assessment**: Determine if this is a new type of failure or a recurring pattern\n\n### Phase 2: Deep Log Analysis\n\n1. **Use Pre-Downloaded Logs**: Start with the files in `/tmp/gh-aw/agent/ci-doctor/`:\n - Read `/tmp/gh-aw/agent/ci-doctor/summary.txt` and the hint files first (minimal context load).\n - Read ~50 lines around each hinted line number in the full log file.\n - Only load the full log content if the hints are insufficient.\n2. **Fallback Log Retrieval**: If the pre-downloaded files are unavailable, use `get_job_logs` with `failed_only=true` to get logs from all failed jobs. **This step is mandatory — do not skip it or substitute with source code analysis.**\n3. **Pattern Recognition**: Analyze logs for:\n - Error messages and stack traces\n - Dependency installation failures\n - Test failures with specific patterns\n - Infrastructure or runner issues\n - Timeout patterns\n - Memory or resource constraints\n4. **Extract Key Information**:\n - Primary error messages\n - File paths and line numbers where failures occurred\n - Test names that failed\n - Dependency versions involved\n - Timing patterns\n\n### Phase 3: Historical Context Analysis\n\n1. **Search Investigation History**: Use file-based storage to search for similar failures:\n - Read from investigation files in `/tmp/gh-aw/repo-memory/default/mq/investigations/` (this is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch `memory/ci-doctor-mq`; files written elsewhere are not persisted across runs)\n - Parse previous failure patterns and solutions\n - Look for recurring error signatures\n2. **Issue History**: Search existing issues for related problems\n3. **Commit Analysis**: Examine the commit (`__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__`) that triggered the failure\n4. **PR Context**: If the failure can be associated with a pull request (the workflow-specific instructions describe how PR context is resolved for this doctor), note its number/author for the report and use its changed files to scope the source inspection in Phase 4; otherwise treat the failure as commit-scoped.\n\n### Phase 4: Root Cause Investigation\n\n1. **Categorize Failure Type**:\n - **Code Issue**: Syntax errors, logic bugs, test failures\n - **Infrastructure**: Runner issues, network problems, resource constraints\n - **Dependencies**: Version conflicts, missing packages, outdated libraries\n - **Configuration**: Workflow configuration, environment variables\n - **Flaky Test**: Intermittent failures, timing issues\n - **External Service**: Third-party API failures, downstream dependencies\n - **Network**: unreachable network/services, exceeded max retries\n\n2. **Deep Dive Analysis**:\n - For test failures: Identify specific test methods and assertions\n - For build failures: Analyze compilation errors and missing dependencies\n - For infrastructure issues: Check runner logs and resource usage\n - For timeout issues: Identify slow operations and bottlenecks\n\n3. **Source Code Inspection Safeguards**:\n The investigation must stay narrowly scoped. Do **not** attempt to analyze the\n whole codebase or browse files unrelated to the failure signal extracted from\n the logs. Apply the following hard limits:\n\n - **Log-first, code-second**: Only inspect source files after you have\n extracted concrete file paths, symbols, or component names from the failed\n job logs. If the logs do not point to a specific area, do **not** start\n opening source files at random — proceed to reporting with the log-derived\n findings instead.\n - **Component scoping**: Identify the affected component (e.g., a single\n plugin under `src/plugins/<name>/`, a frontend under `src/frontends/<name>/`,\n a binding under `src/bindings/<lang>/`, or a specific test suite directory).\n Restrict all source code reads to that component's directory and the exact\n files referenced in the logs or in the PR diff (when a PR is known).\n - **File budget**: Read at most **10 source files** total per investigation,\n and at most **400 lines** per file. Prefer targeted reads of the lines\n surrounding the error (±50 lines) over reading entire files. Never iterate\n over a directory's contents file-by-file.\n - **No bulk traversal**: Do not list, enumerate, or sequentially read the\n contents of test directories, suite folders, or component trees. Do not\n attempt to \"read every test file\" to understand a failure — use the failing\n test name from the logs to jump directly to the one relevant file.\n - **Repository search discipline**: Use repository search (grep/code search)\n with **specific** error strings, symbol names, or file fragments taken from\n the logs. Do not run broad searches (e.g., single common words, wildcards\n across the whole repo). Cap searches at **5 queries** per investigation.\n - **PR-scoped diffs**: When the failure can be associated with a PR, prefer\n reading only the files changed in that PR plus files explicitly named in\n the error output.\n - **Stop conditions**: As soon as you have a plausible root cause supported\n by the logs and at most a handful of code references, stop investigating\n and proceed to Phase 5. Additional code reading beyond that point is\n out of scope for this agent.\n - **When in doubt, report and stop**: If the failure cannot be localized to\n a component within the limits above, report it as \"needs human triage\"\n with the log evidence collected so far. Do **not** expand the search to\n compensate.\n"+ GH_AW_PROMPT_CONTENT_0012: "### Phase 5: Pattern Storage and Knowledge Building\n\n**Artefact schemas (MANDATORY — read before writing anything):**\nEvery JSON artefact this phase writes MUST conform to a fixed JSON Schema committed in the repository. The repository is sparse-checked-out at the path reported as **workspace** in the Current Context (environment variable `GITHUB_WORKSPACE`). The schemas are:\n\n- **Investigation records** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/investigation.schema.json`\n Applies to every `<timestamp>-<run-id>.json` file under `investigations/` **except** the aggregate `index.json`.\n- **Pattern records** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/pattern.schema.json`\n Applies to every `<signature-hash>.json` file under `patterns/`.\n- **Investigations index** → `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/index.schema.json`\n Applies to the single aggregate `investigations/index.json` file.\n\nRules that apply to all artefact types:\n\n- Read the relevant schema file **before** composing an artefact so the structure and field names match exactly. Do not invent your own field names or layout.\n- Set `\"schema_version\": \"1.0\"` on every artefact you write.\n- These schemas declare `\"additionalProperties\": false`. Do **not** add fields that are not defined in the schema — extra fields make the artefact invalid.\n- Use the exact field names, types, and `enum` values from the schema. `category` must be one of the seven categories; `confidence` must be `High`/`Medium`/`Low`.\n- Timestamp **values** inside JSON use full ISO 8601 with colons (e.g., `2026-05-12T14:30:00Z`); only **file names** use the colon-free `YYYY-MM-DD-HH-MM-SS-sss` form.\n- The workflow-specific instructions may require additional schema fields (for example a rerun hook) — apply them on top of the procedures below.\n\n**Validation procedure (run immediately after writing each artefact — MANDATORY):**\n\n1. Read the artefact back from disk and parse it as JSON (this also confirms it is well-formed).\n2. Read the matching schema file.\n3. Validate the parsed object against the schema. If a JSON Schema validator is available in the run environment (e.g., Python with the `jsonschema` package — `python3 -c \"import jsonschema, json, sys; jsonschema.validate(json.load(open(sys.argv[1])), json.load(open(sys.argv[2])))\" <artefact> <schema>`), use it. Otherwise perform an explicit conformance check covering: every `required` field present; each field's `type`/`enum`/`format` honoured; **no** field outside the schema's `properties` (because `additionalProperties` is `false`); and array `minItems`/`maxItems` limits respected.\n4. If validation fails, fix the artefact and repeat until it validates. **Never leave an invalid artefact on disk**, and do not proceed to the next phase with an unvalidated artefact.\n\n1. **Store Investigation**: Save structured investigation data to files in the persistent repo-memory directory:\n - **Persistent path**: `/tmp/gh-aw/repo-memory/default/` is the directory mounted by `tools.repo-memory` and persisted indefinitely via a dedicated Git branch (`memory/ci-doctor-mq`). Files written here survive across runs permanently. Files written elsewhere are **not** persisted and will be lost.\n - **Workflow-specific subdirectory**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` to keep its investigations isolated from any other workflows using repo-memory.\n - Create the subdirectory if needed: `mkdir -p /tmp/gh-aw/repo-memory/default/mq/investigations /tmp/gh-aw/repo-memory/default/mq/patterns`.\n - Write the investigation report to `/tmp/gh-aw/repo-memory/default/mq/investigations/<timestamp>-<run-id>.json`\n - The file content MUST conform to the **investigation schema** (`investigation.schema.json`) described in the \"Artefact schemas\" block above, and MUST be validated with the validation procedure right after writing.\n - **Important**: Use filesystem-safe timestamp format `YYYY-MM-DD-HH-MM-SS-sss` (e.g., `2026-02-12-11-20-45-458`)\n - **Do NOT use** ISO 8601 format with colons (e.g., `2026-02-12T11:20:45.458Z`) - colons are not safe in filenames\n - Store error patterns in `/tmp/gh-aw/repo-memory/default/mq/patterns/` as `.json` files (one file per failure signature, e.g., `<signature-hash>.json`), each conforming to the **pattern schema** (`pattern.schema.json`)\n - Update the investigations index at `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json` following the **MANDATORY read-modify-write procedure** in step 1a below (it appends the current run and preserves existing entries; the only sanctioned place the index ever shrinks is the retention prune in step 5). Never recreate this file from scratch.\n\n1a. **Update Investigations Index — MANDATORY read-modify-write procedure**:\n\n The index at `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json` is a single rolling-retention aggregate that references the most recent `INDEX_RETENTION_MAX` investigations (older references are trimmed by the retention step, step 5 — the *permanent* recurrence signal lives in the per-signature pattern records, not here). It MUST conform to the **index schema** (`index.schema.json`). Accidentally losing or overwriting entries **during this read-modify-write** is a **critical data-loss bug** — the following procedure exists specifically to prevent it, and you MUST follow it exactly. Deliberate trimming of the oldest entries happens ONLY in step 5, never here.\n\n **Step A — Read the existing index (never skip):**\n - Attempt to read `/tmp/gh-aw/repo-memory/default/mq/investigations/index.json`.\n - If it exists, parse it as JSON into `existing`. If it exists but fails to parse (corrupted/truncated), **do NOT overwrite it**: copy it aside to `index.corrupt-<timestamp>.json`, then reconstruct `existing.entries` by scanning every `*.json` investigation record already present under `investigations/` (excluding `index.json` itself) so no prior investigation is dropped.\n - If the file does NOT exist, set `existing = { \"schema_version\": \"1.0\", \"total\": 0, \"entries\": [] }`.\n - Normalize legacy shapes: if `existing` has a deprecated `investigations` array, merge its elements into `existing.entries` (deduplicating by `investigation_id`+`run_id`) and drop the `investigations` key. Map any legacy `id` field to `investigation_id`.\n - Record `PREV_COUNT = length(existing.entries)`.\n\n **Step B — Append the current investigation (never remove or replace prior entries):**\n - Build the new entry from the investigation you just wrote, using the fields defined in `index.schema.json`: `investigation_id`, `run_id` (string), `timestamp`, `title`, `category`, `signature_hash`, and `pr_number` (string or null).\n - If an entry with the same `investigation_id` already exists, update that one entry in place; otherwise **append** the new entry to the end of `existing.entries`.\n - Under no circumstances truncate, replace wholesale, reorder-destructively, or shrink `existing.entries` **in this step**. The only allowed mutations here are: appending a new entry, or updating a single matching existing entry in place. (Bounded pruning of the oldest entries happens later, in the retention step 5.)\n\n **Step C — Recompute and write:**\n - Set `total = length(entries)`.\n - Assert the **in-run never-shrink invariant**: `total >= PREV_COUNT` (this step only appends/updates; it must not drop entries). If this assertion fails, you have a bug — stop, re-read the existing file, and redo from Step A. Do NOT write a smaller index **here** — the retention step 5 is the only place the index is deliberately trimmed.\n - Write the object `{ schema_version: \"1.0\", total, entries }` back to `index.json`, overwriting the file with the **superset** you just computed.\n\n **Step D — MANDATORY verification (read-back check):**\n - Read `index.json` back, parse it, and validate against `index.schema.json` (see the validation procedure in the \"Artefact schemas\" block).\n - Verify `total == length(entries)` and `total >= PREV_COUNT`.\n - Verify the current investigation's `investigation_id` is present in `entries` exactly once.\n - Verify every entry that was in the pre-write `existing.entries` is still present (no prior entry was dropped).\n - If any check fails, **do not leave the shrunken/invalid index on disk** — restore from the pre-write copy and redo from Step A.\n\n **Common failure modes to avoid:**\n - Recreating `index.json` from scratch (e.g., writing only the current entry) — this destroys all history.\n - Skipping Step A and overwriting instead of appending.\n - Writing a `total` smaller than the `PREV_COUNT` you read in Step A of **this** step (deliberate retention trimming happens only in step 5, never during the append).\n - Dropping the deprecated `investigations` array's contents instead of merging them into `entries`.\n\n2. **Update Pattern Database — MANDATORY read-modify-write procedure**:\n\n Each failure signature gets exactly one JSON file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.\n\n **Schema:** the authoritative definition is `${GITHUB_WORKSPACE}/.github/ci-doctor-mq/schemas/pattern.schema.json`. Read that file for the exact field list, types, and constraints, and validate the record against it (see the validation procedure in the \"Artefact schemas\" block above).\n\n **Step-by-step procedure (follow EXACTLY in this order):**\n\n **Step A — Compute signature hash:**\n Derive a stable `<signature-hash>` from ONLY inputs that do NOT change between reruns of the same failure **and that do NOT depend on which job the error occurred in** — the same underlying error frequently surfaces in several different jobs (e.g., the same test failing on Linux and Windows, or across shards), and those MUST collapse into a single pattern:\n - Normalized primary error message: strip absolute paths, line/column numbers, hex addresses, PIDs, timestamps, run IDs, commit SHAs, tmp dirs, UUIDs, and any embedded job / runner / OS / shard names or indices\n - Failure category — MUST be exactly one of the values from the `category` `enum` defined in `pattern.schema.json` (identical to the `category` enum in `investigation.schema.json`). Use the schema's spelling verbatim (e.g., `Code Issue`, `Flaky Test`, `External Service`, `Network`); do **not** invent a category or use the looser prose labels from Phase 4.\n\n Do **NOT** include the failed job name in the hash. Keying on the job name would split one underlying error into a separate pattern for every job that hits it, inflating the database and breaking recurrence counting. Treat the job name(s) as descriptive metadata only (record them in `title` / the investigation, not in the hash).\n\n Concatenate the two inputs as `<normalized-error>|<category>`, then compute a hash (e.g., first 16 chars of SHA-256). The same normalized error in the same category MUST always produce the same hash regardless of which job(s) it occurred in, and two reruns of the same failure MUST produce the same hash.\n\n **Step B — Read existing file:**\n Attempt to read `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`.\n - If the file exists, parse it as JSON into a variable called `existing`.\n - If the file does NOT exist, set `existing = null`.\n\n **Step C — Compute the updated record:**\n\n ~~~pseudocode\n NOW = current UTC time in ISO 8601 format (e.g., \"2026-05-12T14:30:00Z\")\n CURRENT_RUN_URL = the URL of the current workflow run\n SCOPE_REF = the PR URL (or null if no PR)\n\n IF existing != null:\n record.schema_version = \"1.0\"\n record.signature = existing.signature\n record.signature_hash = existing.signature_hash\n record.title = title from investigation (refresh always)\n record.category = category from investigation (refresh always)\n record.count = existing.count + 1 ← MUST increment\n record.first_seen = existing.first_seen ← NEVER change\n record.last_seen = NOW\n record.recent_run_urls = [CURRENT_RUN_URL] + existing.recent_run_urls\n → deduplicate by URL, then truncate to first 10 entries\n record.affected_prs = (if SCOPE_REF: [SCOPE_REF] + existing.affected_prs else existing.affected_prs)\n → deduplicate, then truncate to first 10 entries\n record.recent_timestamps = [NOW] + existing.recent_timestamps\n → keep only entries where timestamp >= (NOW - 24 hours)\n ELSE:\n record.schema_version = \"1.0\"\n record.signature = the <normalized-error>|<category> signature string from Step A\n record.signature_hash = <signature-hash>\n record.title = title from investigation\n record.category = category from investigation\n record.count = 1\n record.first_seen = NOW\n record.last_seen = NOW\n record.recent_run_urls = [CURRENT_RUN_URL]\n record.affected_prs = (if SCOPE_REF: [SCOPE_REF] else [])\n record.recent_timestamps = [NOW]\n\n Additionally set every workflow-specific pattern field required by the\n workflow-specific instructions (if any), in both branches.\n ~~~\n\n **Step D — Write the file:**\n Write `record` as JSON to `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json`. Overwrite the file completely with the new content.\n\n **Step E — MANDATORY verification (read-back check):**\n Immediately after writing, read the file back and verify:\n - the record validates against `pattern.schema.json` (run the validation procedure from the \"Artefact schemas\" block)\n - `schema_version` equals `\"1.0\"` and `signature_hash` matches the file name\n - `count` equals the value you just computed (NOT 1 unless this is genuinely the first occurrence)\n - `recent_timestamps` contains the current timestamp `NOW` as the first entry\n - `last_seen` equals `NOW`\n - `first_seen` has NOT changed from `existing.first_seen` (if file existed before)\n - every additional check listed in the workflow-specific instructions passes\n\n If any check fails, you have a bug in your write logic. Fix it before proceeding.\n\n **Common failure modes to avoid:**\n - Writing `count: 1` because you forgot to read the existing file first\n - Writing `count: 1` because you recomputed the signature hash differently (different normalization) and created a new file instead of updating the old one\n - Omitting `recent_timestamps` entirely (this breaks recurrence detection)\n - Setting `first_seen` to NOW when the file already existed\n - Forgetting to include the current timestamp in `recent_timestamps`\n\n3. **Build Statistics Snapshot**: After step 2, aggregate all `.json` files under `/tmp/gh-aw/repo-memory/default/mq/patterns/` into the statistics fields for `notify_teams`. For each file:\n - Read and parse the JSON\n - Use the `count`, `first_seen`, `last_seen`, `title`, `category` values AS-IS from the file (do NOT recompute them)\n - The current failure's pattern MUST report `count == notify_teams.occurrence_count`\n\n Sort patterns by `count` descending (ties broken by most recent `last_seen`). Format as the markdown table and JSON described in the Output Requirements section.\n\n **Validation before calling notify_teams:** Read back the current pattern file one more time. The `count` field in the file MUST equal the `occurrence_count` value you are about to pass to `notify_teams`. If they differ, go back to Step B and redo the update.\n\n4. **Save Artifacts**: Store detailed logs and analysis in the cached directories.\n\n5. **Retention & Compaction (MANDATORY — keeps the knowledge base under the repo-memory caps)**:\n\n The repo-memory branch enforces hard `max-file-count` (1000) and `max-file-size` (1 MiB) caps on every push; once either is exceeded, **the entire push is rejected** and this run's investigation — and all future ones — silently fail to persist. To stay under them, prune the two unbounded, low-value-over-time datasets down to rolling windows **after** writing this run's artefacts (steps 1–3). No permanent signal is lost: long-term recurrence lives in the per-signature `patterns/*.json` `count`/`first_seen`/`last_seen` fields, which are **never** pruned.\n\n Constants:\n - `INVESTIGATION_RETENTION_MAX = 300` — max per-run investigation record files to keep under `investigations/`.\n - `INDEX_RETENTION_MAX = 2000` — max entries to keep in `index.json` (≈600 KiB, comfortably under the 1 MiB file cap).\n\n **Step A — Prune raw investigation records:**\n - List every `*.json` file under `/tmp/gh-aw/repo-memory/default/mq/investigations/` **except** `index.json`.\n - If the count exceeds `INVESTIGATION_RETENTION_MAX`, delete the oldest files (order by the `YYYY-MM-DD-HH-MM-SS-sss` timestamp in the filename, oldest first) until exactly `INVESTIGATION_RETENTION_MAX` remain. **Never** delete the record you wrote in this run.\n - Deleting a raw record does not erase the failure from history: its lightweight reference stays in `index.json` (until the index prune below) and its recurrence is already folded into the pattern record.\n\n **Step B — Compact the index to its rolling window:**\n - Re-read `index.json` (the superset written in step 1a).\n - If `length(entries) > INDEX_RETENTION_MAX`, keep only the newest `INDEX_RETENTION_MAX` entries (sort by `timestamp` descending, take the first `INDEX_RETENTION_MAX`). This is the ONLY sanctioned place the index shrinks.\n - Set `total = length(entries)`, write the object back, then validate against `index.schema.json` and confirm this run's `investigation_id` is still present (it is one of the newest, so it must survive the trim).\n\n **Step C — Verify headroom (monitoring):**\n - Count all persisted files under `/tmp/gh-aw/repo-memory/default/mq/` and confirm the total is `< max-file-count` (1000).\n - Confirm `index.json` on disk is `< max-file-size` (1 MiB). If it is within ~10% of the cap despite the entry trim, lower the effective `INDEX_RETENTION_MAX` for this write and note it in the investigation.\n - Never leave the branch over any cap — an over-cap push is rejected wholesale and this run's investigation is lost. If pattern records alone approach `max-file-count`, flag it in the Teams report so a maintainer can raise the cap or archive old signatures.\n"+ GH_AW_PROMPT_CONTENT_0013: "### Phase 6: Reporting and Recommendations\n\n1. **Create Investigation Report**: Generate a comprehensive analysis including:\n - **Executive Summary**: Quick overview of the failure\n - **Root Cause Analysis**: Single, consolidated section covering category, failed jobs, key error excerpts, the actual root-cause explanation, and your confidence level. Do **not** add a separate \"Investigation Findings\" or \"Deep Analysis\" section — it would duplicate this one.\n - **Reproduction Steps**: How to reproduce the issue locally\n - **Recommended Actions**: Specific steps to fix the issue\n - **Prevention Strategies**: How to avoid similar failures\n - **AI Team Self-Improvement**: Give a short set of additional prompting instructions to copy-and-paste into instructions.md for AI coding agents to help prevent this type of failure in future\n - **Historical Context**: Similar past failures and their resolutions\n\n2. **Actionable Deliverables**:\n - Send a Microsoft Teams notification with the investigation results (see Output Requirements below)\n - Provide specific file locations and line numbers for fixes\n - Suggest code changes or configuration updates\n - Produce every additional deliverable listed in the workflow-specific instructions (and none that they forbid)\n\n### Phase 7: Output Format Validation (MANDATORY before any safe-output call)\n\nYou MUST validate and normalise the payload before calling `notify_teams` or any other safe-output tool listed in the workflow-specific instructions.\n\n**Every numeric-looking field in these tools is declared as `type: string` and\nMUST be passed as a JSON string, not a JSON number.** Wrap the value in quotes.\n\n1. **Build the payload object first**, then run the checklist below against it.\n Do not call the safe-output tool until every check passes.\n\n2. **String-encoding checklist** — for each field, confirm the value is a string\n (quoted), never a bare number, boolean, null, or object:\n\n For `notify_teams`:\n - `source` — the string `\"merge_queue\"` (MANDATORY for this workflow, so the Teams card shows the matching source badge and states the failure is a Merge Queue one)\n - `title` — non-empty string\n - `failed_workflow` — non-empty string\n - `pipeline_url` — non-empty string (a valid URL)\n - `description` — non-empty string\n - `db_entries` — string-encoded non-negative integer, e.g. `\"42\"` (NOT `42`)\n - `occurrence_count` — string-encoded positive integer, e.g. `\"4\"` (NOT `4`)\n - `statistics` — non-empty string\n - `statistics_json` — string (a JSON document serialized into a string; the\n value itself must be a string, even though its contents are JSON)\n - `pr_number` — when provided, string-encoded integer, e.g. `\"27618\"`\n (NOT `27618`). This is the field most commonly rejected — double-check it.\n - `pr_url` — when provided, string\n - `author` — when provided, string\n\n The workflow-specific instructions add the checklist for any further safe-output tools.\n\n3. **Normalization rule**: if you computed any of the numeric fields as an\n integer (e.g., `count` read from a pattern file, a file count, or a PR number\n parsed from the API), explicitly convert it to its string form before placing\n it in the payload. For example, treat `pr_number` derived as `27618` as\n `\"27618\"`.\n\n4. **Optional-field rule**: for optional fields (`pr_number`, `pr_url`,\n `author`), either provide a correctly-typed string value OR an explicit string \"not_found\". Never pass `null`, an empty object, or a bare number.\n\n5. **Final self-check**: re-read the assembled payload one last time and verify\n that no value that should be a string is an unquoted number, and that `source`\n is set to `\"merge_queue\"`. Only after this check passes may you call the\n safe-output tool. If you are unsure whether a field is correctly typed, coerce\n it to a string — string is always the safe choice for these tools.\n\n## Output Requirements\n\nReport the investigation as a Microsoft Teams notification by calling the `notify_teams` safe-output tool exactly once.\n\nThe workflow-specific instructions may require additional safe-output calls (for example a PR comment or an escalation alert); follow them in addition to the guidance below.\n\n### `notify_teams` field guidance\n\nProvide all required fields and include the optional PR-related fields whenever the failure can be associated with a pull request.\n\n- **`source`** (required) — Always pass the string `\"merge_queue\"`. This makes the Teams card render the matching badge and a \"Source: Merge Queue\" fact so readers can immediately tell a merge-queue failure apart from the other CI Doctor's failures.\n\n- **`title`** (required) — Short, searchable description of the failure. **Do not** include PR, commit or run numbers. Examples:\n * iGPU tests fail with incorrect input argument\n * SmartCI fails to fetch GenAI repo after actions/checkout update\n * smoke_Bucketize tests fail on comparison\n * smoke_ConvertCPULayerTest - Value of: primTypeCheck(primType) is unexpected\n * smoke/LoraPatternMatmul returned/aborted with exit code -9\n\n Use a phrasing that could be reused verbatim as a summary in a tracking system like JIRA.\n\n- **`pipeline_url`** (required) — `__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__` for `workflow_run` triggers, or the `link` input / resolved run URL when triggered manually.\n\n- **`failed_workflow`** (required) — Name of the workflow whose run is being investigated, taken from `get_workflow_run` (field `name`). For example: `Linux (Ubuntu 22.04, Python 3.11)`. Never pass the name of this CI Failure Doctor Merge Queue workflow itself.\n\n- **`pr_number`** / **`pr_url`** / **`author`** (optional) — Provide these only when the failure can be associated with a pull request / author. The workflow-specific instructions define where these values come from for this doctor. Omit or pass `\"not_found\"` when they cannot be determined.\n\n- **`db_entries`** (required) — Current total number of unique entries in the CI Doctor Merge Queue investigation database. Compute it during Phase 5 by counting distinct files under `/tmp/gh-aw/repo-memory/default/mq/investigations/` (including the one this run just wrote, excluding `index.json`) and pass the resulting non-negative integer as a string (e.g., `\"42\"`). If the directory does not yet exist, report `\"0\"` (or `\"1\"` if you just created the first entry). Note: counting files under any path other than `/tmp/gh-aw/repo-memory/default/mq/investigations/` will give a wrong result.\n\n- **`occurrence_count`** (required) — How many times **this same issue** has been recorded in the CI Doctor Merge Queue database, including the current investigation. This value MUST be read directly from the `count` field of the pattern file at `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` AFTER you have completed the Phase 5 step 2 write and verification. Do NOT compute this independently — read it from the file. Pass as a positive integer encoded as a string (e.g., `\"1\"`, `\"4\"`).\n- **`statistics`** (required) — Markdown snapshot of the pattern database, saved to the `ci-doctor-mq-statistics` workflow artifact.\n\n- **`statistics_json`** (required) — Full pattern database serialized as a compact JSON string (single line, no surrounding code fence). Must include **every** pattern currently tracked, not just the top 20. Schema is documented on the input field. This payload is uploaded as the `ci-doctor-mq-statistics` workflow artifact (alongside the rendered Markdown) and is intended for offline analysis or dashboarding. Keep `recent_run_urls` capped at 10 entries per pattern.\n\n **Count consistency (mandatory):** the `count` value for every pattern in `statistics_json` (and in the rendered `statistics` table) MUST be the persisted `count` read from the corresponding `/tmp/gh-aw/repo-memory/default/mq/patterns/<signature-hash>.json` file *after* Phase 5 step 2 has updated it. In particular, the current failure's pattern MUST report `count == occurrence_count`. Do NOT emit `count: 1` for every pattern — that is a symptom of either (a) overwriting the persisted record instead of read-modify-write, or (b) generating a fresh signature hash on each run. Validate this invariant before calling `notify_teams`; if it fails, fix the persistence step rather than the reported numbers.\n\n- **`description`** (required) — Thorough Markdown body. Microsoft Teams Adaptive Cards render only a **limited subset of Markdown** — specifically: headings (`#`/`##`/`###`), bold/italic, inline code, fenced code blocks, ordered/unordered lists, and links. **Do not** use raw HTML tags such as `<details>`, `<summary>`, `<br>`, `<b>`, `<table>`, etc. — they appear as literal text in Teams. Use `###` headings for every section (no collapsibles). Use this structure (the workflow-specific instructions may insert additional `###` sections):\n\n```markdown\n### Summary\n\n[Brief description of the merge-queue failure]\n\n### Failure Details\n\n- **Run**: [__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_ID__](__GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HTML_URL__)\n- **Commit**: __GH_AW_GITHUB_EVENT_WORKFLOW_RUN_HEAD_SHA__\n- **Trigger**: merge_group (merge-queue)\n\n### Root Cause Analysis\n\nWrite this as a single, consolidated section. Do NOT add a separate \"Investigation Findings\", \"Deep Analysis\", or standalone \"Failed Jobs and Errors\" section — they duplicate this one. Use the following fixed sub-structure with `####` headings, in this order; omit a sub-heading only if there is genuinely nothing to say.\n\n#### Category\n\nOne of: Code Issue / Infrastructure / Dependencies / Configuration / Flaky Test / External Service / Network. Add a half-sentence justification.\n\n#### Failed Jobs\n\nBulleted list of `job-name` — short symptom (one line each).\n\n#### Key Errors\n\nOne or more fenced code blocks with the most relevant raw log excerpts (trimmed). Cite file paths and line numbers from the logs verbatim.\n\n**Fence rules (critical for Teams rendering):**\n\n- Use **tilde fences** (`~~~`), not backticks, to delimit log excerpts. Backtick fences inside the description frequently collide with stray backticks in log output and cause everything that follows to render as a single unterminated code block in Teams.\n- Open with a line containing exactly `~~~` (optionally followed by a language hint like `~~~text`) and close with a line containing exactly `~~~`. Nothing else on the fence lines.\n- Every opening fence **must** have a matching closing fence before the next `####` heading. Never leave a code block open at the end of a section.\n- Strip or escape any literal `~~~` sequences that appear inside the log excerpt itself (extremely rare in CI logs); backticks inside the excerpt are fine because the fence is tildes.\n- Keep each excerpt short (≤ 30 lines). If you need to show several distinct errors, use several separate `~~~ ... ~~~` blocks rather than one giant block.\n\n#### Explanation\n\n2–6 sentences explaining *why* the errors above occurred (the actual root cause, not a restatement of the symptom). Reference specific code paths, config keys, or PR-changed files when available.\n\n#### Confidence\n\nOne of: High / Medium / Low — with a one-line justification (e.g., \"High: deterministic crash with stack trace pointing to a single PR-changed file\").\n\n### Reproduction Steps\n\n[Concrete commands or sequence of actions to reproduce locally; write \"N/A\" if not reproducible outside CI]\n\n### Recommended Actions\n\n- [ ] [Specific actionable steps]\n\n### Prevention Strategies\n\n[How to prevent similar failures]\n\n### AI Team Self-Improvement\n\n[Short set of additional prompting instructions to copy-and-paste into instructions.md for AI coding agents to help prevent this type of failure in future]\n\n### Historical Context\n\n[Similar past failures and patterns]\n```\n\n## Important Guidelines\n\n- **Be Thorough**: Don't just report the error - investigate the underlying cause\n- **Use Memory**: Always check for similar past failures and learn from them\n- **Be Specific**: Provide exact file paths, line numbers, and error messages\n- **Action-Oriented**: Focus on actionable recommendations, not just analysis\n- **Pattern Building**: Contribute to the knowledge base for future investigations\n- **Resource Efficient**: Use caching to avoid re-downloading large logs\n- **Security Conscious**: Never execute untrusted code from logs or external sources\n- **Tool Restrictions**: Use only MCP tools available in this session. Do NOT use `web-fetch`, the `gh` CLI, or any other shell commands for data retrieval — all GitHub API access must go through MCP tools.\n- **Bounded Code Inspection**: Never analyze the whole codebase. Do not read test files line-by-line or traverse component trees. Stay within the limits defined in Phase 4 (Source Code Inspection Safeguards): log-derived scope, max 10 files, max 5 search queries, PR-diff-first when a PR is known. If the failure cannot be localized within those limits, stop and report \"needs human triage\" with the evidence collected so far.\n\n## Mandatory Output Requirement\n\n**Before calling any safe output tool, run the Phase 7 Output Format Validation\nchecklist.** All numeric-looking fields (`pr_number`, `db_entries`,\n`occurrence_count`, and any counts of workflow-specific tools) MUST be passed as\nJSON strings, not numbers, and `source` MUST be `\"merge_queue\"`.\n\nYou **MUST** always call at least one safe output tool before finishing:\n\n- **`notify_teams`**: Send the investigation report as a Microsoft Teams notification (default for any actionable finding). Call this exactly once with `source: \"merge_queue\"`.\n- **`noop`**: When no action is needed (e.g., CI was successful, not a merge-queue run, no failure to investigate).\n- **`missing_data`**: When you cannot gather the information needed to complete the investigation.\n\nThe workflow-specific instructions list any further safe-output tools available to this workflow and the valid call combinations. Never call a safe-output tool that is not listed there or above.\n\n**Never complete without calling a safe output tool.** If in doubt, call `noop` with a brief summary of what you found.\n\nExample noop call: `{\"noop\": {\"message\": \"No action needed: [brief explanation]\"}}`\n\n### STOP — final tool-call gate (read before ending your turn)\n\nA prose summary is **NOT** a safe output. Writing a sentence such as \"I sent the Teams notification, posted the comment and requested remediation\" does nothing on its own — the action only happens when you actually **call** the corresponding safe-output tool (`notify_teams`, `add_comment`, `remediate_transient_failure`, `noop`, ...) so that it is emitted to the output file. A run that finishes with a written summary but no tool call is silently discarded as an empty no-op, and all of your work is lost.\n\nBefore you end your turn, verify:\n\n1. Every action you described in your summary has a matching safe-output **tool call** you actually made this session — not just narration.\n2. At minimum, `notify_teams` (or `noop` / `missing_data`) has been called.\n\nIf you have written such a summary but have not yet called the tools it describes, **call them now** before finishing. Do not end your turn until the required tool calls have been emitted.\n\n## Memory Strategy\n\n- **Persistent location**: `tools.repo-memory` mounts a dedicated Git branch (`memory/ci-doctor-mq`) at `/tmp/gh-aw/repo-memory/default/`. This directory persists **indefinitely** across workflow runs with no expiry. Anything written elsewhere (e.g., `/tmp/memory/`, `/tmp/investigation/`) is discarded when the runner is torn down.\n- Store the investigation database and knowledge patterns in `/tmp/gh-aw/repo-memory/default/mq/investigations/` and `/tmp/gh-aw/repo-memory/default/mq/patterns/`.\n- Build cumulative knowledge about failure patterns and solutions using structured JSON files.\n- **Filename Requirements**: Use filesystem-safe characters only (no colons, quotes, or special characters)\n - ✅ Good: `2026-02-12-11-20-45-458-12345.json`\n - ❌ Bad: `2026-02-12T11:20:45.458Z-12345.json` (contains colons)\n- **Allowed file extensions**: Only save artifacts as `.json`, `.md`, or `.jsonl` files. These are the only extensions tracked by `tools.repo-memory`. Files with any other extension (e.g., `.txt`, `.log`, `.yaml`) will **not** be persisted to the `memory/ci-doctor-mq` branch and will be lost when the runner is torn down. If there are any files with not-allowed extensions present in the `/tmp/gh-aw/repo-memory/default/mq` folder, remove them safely before finishing.\n- **Isolated branch**: This workflow uses `/tmp/gh-aw/repo-memory/default/mq/` as its own subdirectory within the dedicated `memory/ci-doctor-mq` branch. This keeps merge-queue failure patterns isolated from every other workflow's knowledge base, so recurrence counting only counts merge-queue occurrences.\n"+ GH_AW_PROMPT_CONTENT_0014: "{{#runtime-import .github/workflows/ci-doctor-mq.md}}\n"with:script: |const { setupGlobals } = require(process.env.GH_AW_ACTIONS_DIR + '/setup_globals.cjs');@@ -540,6 +549,7 @@ jobs:ai_credits_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.ai_credits_rate_limit_error || 'false' }}aic: ${{ steps.parse-token-usage.outputs.aic }}ambient_context: ${{ steps.parse-token-usage.outputs.ambient_context }}+ checkout_pr_invalidated: ${{ steps.checkout-pr.outputs.checkout_pr_invalidated || 'false' }}checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }}has_patch: ${{ steps.collect_output.outputs.has_patch }}http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}@@ -562,7 +572,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -571,8 +581,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Set runtime paths@@ -624,7 +634,7 @@ jobs:CREATE_ORPHAN: truerun: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -639,7 +649,7 @@ jobs:export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}python .github/scripts/agentic-workflows/download_failure_logs.py- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -677,12 +687,12 @@ jobs:const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -711,7 +721,7 @@ 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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917 ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132- name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"@@ -722,7 +732,7 @@ jobs:env:GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"- GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"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 this CI Doctor's investigation database (count of distinct investigation files under the doctor's own investigations directory, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` where `<slug>` is `mq` for Merge Queue or `post-commit` for Post-Commit, 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 workflow's own name.\",\"required\":true,\"type\":\"string\"},\"occurrence_count\":{\"default\":null,\"description\":\"How many times this same issue has been recorded in this CI Doctor's 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/` (`<slug>` = `mq` or `post-commit`). Must be >= 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 (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"pr_url\":{\"default\":\"not_found\",\"description\":\"Pull request URL if the failure is associated with a PR (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"source\":{\"default\":null,\"description\":\"Which CI Doctor produced this notification: 'merge_queue' for the Merge Queue investigator or 'post_commit' for the Post-Commit investigator. Controls the badge shown in the Teams card ([MQ] / [PC]) and the uploaded statistics artifact name.\",\"required\":true,\"type\":\"string\"},\"statistics\":{\"default\":null,\"description\":\"Markdown-formatted statistics summary of this CI Doctor's pattern database, uploaded as the statistics workflow artifact (NOT rendered in the Teams card). 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` and `/tmp/gh-aw/repo-memory/default/<slug>/patterns/` (`<slug>` = `mq` or `post-commit`). Keep concise (top 20 patterns max).\",\"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\\\": <ISO8601 UTC>, \\\"total_patterns\\\": <int>, \\\"total_investigations\\\": <int>, \\\"patterns\\\": [{\\\"signature\\\": <str>, \\\"title\\\": <str>, \\\"category\\\": <str>, \\\"count\\\": <int>, \\\"first_seen\\\": <ISO8601 UTC>, \\\"last_seen\\\": <ISO8601 UTC>, \\\"recent_run_urls\\\": [<str>, ...]}]}. 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\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":1000,\"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: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"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 this CI Doctor's investigation database (count of distinct investigation files under the doctor's own investigations directory, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` where `<slug>` is `mq` for Merge Queue or `post-commit` for Post-Commit, 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 workflow's own name.\",\"required\":true,\"type\":\"string\"},\"occurrence_count\":{\"default\":null,\"description\":\"How many times this same issue has been recorded in this CI Doctor's 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/` (`<slug>` = `mq` or `post-commit`). Must be >= 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 (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"pr_url\":{\"default\":\"not_found\",\"description\":\"Pull request URL if the failure is associated with a PR (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"source\":{\"default\":null,\"description\":\"Which CI Doctor produced this notification: 'merge_queue' for the Merge Queue investigator or 'post_commit' for the Post-Commit investigator. Controls the badge shown in the Teams card ([MQ] / [PC]) and the uploaded statistics artifact name.\",\"required\":true,\"type\":\"string\"},\"statistics\":{\"default\":null,\"description\":\"Markdown-formatted statistics summary of this CI Doctor's pattern database, uploaded as the statistics workflow artifact (NOT rendered in the Teams card). 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` and `/tmp/gh-aw/repo-memory/default/<slug>/patterns/` (`<slug>` = `mq` or `post-commit`). Keep concise (top 20 patterns max).\",\"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\\\": <ISO8601 UTC>, \\\"total_patterns\\\": <int>, \\\"total_investigations\\\": <int>, \\\"patterns\\\": [{\\\"signature\\\": <str>, \\\"title\\\": <str>, \\\"category\\\": <str>, \\\"count\\\": <int>, \\\"first_seen\\\": <ISO8601 UTC>, \\\"last_seen\\\": <ISO8601 UTC>, \\\"recent_run_urls\\\": [<str>, ...]}]}. 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.\"},\"propose-rerun-pattern\":{\"description\":\"Propose a workflow-rerunner search string for human review. Call at most once, and ONLY for a transient failure (Flaky Test, Infrastructure, Network, External Service) whose verified rerun_search_string candidate is non-null and not already approved. The job validates the candidate and opens a pull request adding it to .github/scripts/workflow_rerun/errors_to_look_for.json; nothing is re-run until a maintainer merges it. Rejected or duplicate candidates are skipped silently.\",\"inputs\":{\"category\":{\"default\":null,\"description\":\"Failure category; must be one of Flaky Test, Infrastructure, Network, External Service.\",\"required\":true,\"type\":\"string\"},\"pipeline_url\":{\"default\":null,\"description\":\"URL of the analysed failed workflow run (evidence run).\",\"required\":true,\"type\":\"string\"},\"reason\":{\"default\":null,\"description\":\"One-line justification of why a plain rerun fixes this failure.\",\"required\":true,\"type\":\"string\"},\"rerun_search_string\":{\"default\":null,\"description\":\"The verified rerun_search_string candidate: a short, stable substring copied from a single raw failure log line, specific to this transient failure (not a step name or generic phrase).\",\"required\":true,\"type\":\"string\"},\"sample_log_line\":{\"default\":null,\"description\":\"The verbatim raw log line (from the pre-downloaded logs) that contains rerun_search_string. Used as review evidence and re-verified by the job.\",\"required\":true,\"type\":\"string\"},\"signature_hash\":{\"default\":null,\"description\":\"The <signature-hash> of the current failure's pattern record (file name of mq/patterns/<signature-hash>.json).\",\"required\":true,\"type\":\"string\"},\"title\":{\"default\":null,\"description\":\"Short human-readable failure title (same as notify_teams.title).\",\"required\":true,\"type\":\"string\"}},\"output\":\"Rerun pattern proposal submitted for review.\"},\"push_repo_memory\":{\"memories\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":1000,\"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\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"with:script: |const path = require('path');@@ -859,6 +869,53 @@ jobs:},"name": "notify_teams_recurring"},+ {+ "description": "Propose a workflow-rerunner search string for human review. Call at most once, and ONLY for a transient failure (Flaky Test, Infrastructure, Network, External Service) whose verified rerun_search_string candidate is non-null and not already approved. The job validates the candidate and opens a pull request adding it to .github/scripts/workflow_rerun/errors_to_look_for.json; nothing is re-run until a maintainer merges it. Rejected or duplicate candidates are skipped silently.",+ "inputSchema": {+ "additionalProperties": false,+ "properties": {+ "category": {+ "description": "Failure category; must be one of Flaky Test, Infrastructure, Network, External Service.",+ "type": "string"+ },+ "pipeline_url": {+ "description": "URL of the analysed failed workflow run (evidence run).",+ "type": "string"+ },+ "reason": {+ "description": "One-line justification of why a plain rerun fixes this failure.",+ "type": "string"+ },+ "rerun_search_string": {+ "description": "The verified rerun_search_string candidate: a short, stable substring copied from a single raw failure log line, specific to this transient failure (not a step name or generic phrase).",+ "type": "string"+ },+ "sample_log_line": {+ "description": "The verbatim raw log line (from the pre-downloaded logs) that contains rerun_search_string. Used as review evidence and re-verified by the job.",+ "type": "string"+ },+ "signature_hash": {+ "description": "The \u003csignature-hash\u003e of the current failure's pattern record (file name of mq/patterns/\u003csignature-hash\u003e.json).",+ "type": "string"+ },+ "title": {+ "description": "Short human-readable failure title (same as notify_teams.title).",+ "type": "string"+ }+ },+ "required": [+ "category",+ "pipeline_url",+ "reason",+ "rerun_search_string",+ "sample_log_line",+ "signature_hash",+ "title"+ ],+ "type": "object"+ },+ "name": "propose_rerun_pattern"+ },{"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": {@@ -931,7 +988,44 @@ jobs:}}},- "missing_data": {+ "noop": {+ "defaultMax": 2,+ "fields": {+ "message": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ }+ }+ },+ "push_repo_memory": {+ "defaultMax": 1,+ "fields": {+ "memory_id": {+ "type": "string",+ "sanitize": true,+ "maxLength": 128+ }+ }+ },+ "report_incomplete": {+ "defaultMax": 5,+ "fields": {+ "details": {+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ },+ "reason": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 1024+ }+ }+ },+ "report_missing_data": {"defaultMax": 20,"fields": {"alternatives": {@@ -956,7 +1050,7 @@ jobs:}}},- "missing_tool": {+ "report_missing_tool": {"defaultMax": 20,"fields": {"alternatives": {@@ -976,43 +1070,6 @@ jobs:"maxLength": 128}}- },- "noop": {- "defaultMax": 2,- "fields": {- "message": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 65000- }- }- },- "push_repo_memory": {- "defaultMax": 1,- "fields": {- "memory_id": {- "type": "string",- "sanitize": true,- "maxLength": 128- }- }- },- "report_incomplete": {- "defaultMax": 5,- "fields": {- "details": {- "type": "string",- "sanitize": true,- "maxLength": 65000- },- "reason": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 1024- }- }}}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -1027,6 +1084,7 @@ jobs:- name: Start MCP Gatewayid: start-mcp-gatewayenv:+ DEBUG: ${{ env.DEBUG || runner.debug == '1' && '*' || '' }}GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST: ${{ vars.GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST || 'true' }}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 }}@@ -1063,22 +1121,20 @@ jobs:export GH_AW_PR_HEAD_BASE_REF="${GH_AW_PR_HEAD_BASE_REF:-}"export GH_AW_PR_HEAD_REPO="${GH_AW_PR_HEAD_REPO:-}"export GH_AW_TARGET_REPO_SLUG="${GH_AW_TARGET_REPO_SLUG:-}"- export DEBUG="*"-export GH_AW_ENGINE="copilot"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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf'+ 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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442'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_ae7149b7fbe29884_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v2.0.2",+ "container": "ghcr.io/github/github-mcp-server:v2.0.3","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -1095,13 +1151,13 @@ jobs:},"safeoutputs": {"type": "stdio",- "container": "ghcr.io/github/gh-aw-node",+ "container": "ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],"args": ["-w", "\${GITHUB_WORKSPACE}"],"entrypoint": "sh","entrypointArgs": ["-c", "sh ${RUNNER_TEMP}/gh-aw/safeoutputs/start_safe_outputs_mcp.sh"],"env": {- "DEBUG": "*",+ "DEBUG": "\${DEBUG}","DEFAULT_BRANCH": "\${DEFAULT_BRANCH}","GH_AW_ASSETS_ALLOWED_EXTS": "\${GH_AW_ASSETS_ALLOWED_EXTS}","GH_AW_ASSETS_BRANCH": "\${GH_AW_ASSETS_BRANCH}",@@ -1149,7 +1205,7 @@ jobs:}}}- GH_AW_MCP_CONFIG_ae7149b7fbe29884_EOF+ GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1220,7 +1276,23 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="1000"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":20},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -z "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ echo "ERR_ADMISSION: Missing required runtime admission allowance." >&2+ exit 1+ fi++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":20},\"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=""@@ -1264,7 +1336,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.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1330,6 +1402,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID"- name: Redact secrets in logs+ id: redact_secretsif: always()uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:@@ -1479,7 +1552,7 @@ jobs:if-no-files-found: ignore- if: always()name: Upload CI Doctor investigations and patterns (mq)- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:if-no-files-found: ignorename: ci-doctor-mq-investigations@@ -1491,7 +1564,7 @@ jobs:# Small dedicated copy of the agent output so safe-output processing# survives a failed or timed-out upload of the larger agent artifact- name: Upload agent output fallback artifact- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1510,10 +1583,11 @@ jobs:/tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/model-routing.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/model-routing.jsonl+ /tmp/gh-aw/awf-resolved-config.jsonif-no-files-found: ignoreretention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Upload agent artifacts- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1534,6 +1608,7 @@ jobs:/tmp/gh-aw/runtime/aw_info.json/tmp/gh-aw/agent_usage.jsonl/tmp/gh-aw/agent/model-endpoint-mismatch.json+ /tmp/gh-aw/agent/model-resolution.json/tmp/gh-aw/agent-stdio.log/tmp/gh-aw/pre-agent-audit.txt/tmp/gh-aw/github_rate_limits.jsonl@@ -1544,6 +1619,7 @@ jobs:/tmp/gh-aw/aw-*.patch/tmp/gh-aw/aw-*.bundle/tmp/gh-aw/awf-config.json+ /tmp/gh-aw/awf-resolved-config.json/tmp/gh-aw/sandbox/firewall/logs//tmp/gh-aw/sandbox/firewall/audit//tmp/gh-aw/sandbox/firewall/awf-reflect.json@@ -1558,6 +1634,7 @@ jobs:- detection- notify_teams- notify_teams_recurring+ - propose_rerun_pattern- push_repo_memory- remediate_transient_failure- safe_outputs@@ -1577,6 +1654,9 @@ jobs:cancel-in-progress: falsequeue: maxenv:+ GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"activation\",\"agent\":\"agent\",\"conclusion\":\"conclusion\",\"detection\":\"detection\",\"notify_teams\":\"notify_teams\",\"notify_teams_recurring\":\"notify_teams_recurring\",\"pre_activation\":\"pre_activation\",\"propose_rerun_pattern\":\"propose_rerun_pattern\",\"push_repo_memory\":\"push_repo_memory\",\"remediate_transient_failure\":\"remediate_transient_failure\",\"safe_outputs\":\"safe_outputs\"}"+ GH_AW_JOB_RESULTS: "{\"activation\":{\"result\":\"${{ needs.activation.result }}\"},\"agent\":{\"result\":\"${{ needs.agent.result }}\"},\"detection\":{\"result\":\"${{ needs.detection.result }}\"},\"notify_teams\":{\"result\":\"${{ needs.notify_teams.result }}\"},\"notify_teams_recurring\":{\"result\":\"${{ needs.notify_teams_recurring.result }}\"},\"propose_rerun_pattern\":{\"result\":\"${{ needs.propose_rerun_pattern.result }}\"},\"push_repo_memory\":{\"result\":\"${{ needs.push_repo_memory.result }}\"},\"remediate_transient_failure\":{\"result\":\"${{ needs.remediate_transient_failure.result }}\"},\"safe_outputs\":{\"result\":\"${{ needs.safe_outputs.result }}\"}}"+ GH_AW_JOB_TIMING_ELIGIBLE: "{\"activation\":true,\"agent\":true,\"conclusion\":true,\"detection\":true,\"notify_teams\":true,\"notify_teams_recurring\":true,\"pre_activation\":true,\"propose_rerun_pattern\":true,\"push_repo_memory\":true,\"remediate_transient_failure\":true,\"safe_outputs\":true}"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}outputs:incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }}@@ -1587,7 +1667,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1596,8 +1676,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download agent output artifact@@ -1739,6 +1819,7 @@ jobs:GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }}GH_AW_ENGINE_SECRET_FAILURE_MESSAGE: "**Alternative**: If your organization has a Copilot subscription, you can avoid the need for a personal access token by adding a top-level `permissions` block to your workflow file. This enables Copilot inference through the org using the built-in GitHub Actions token.\n\n```yaml\npermissions:\n copilot-requests: write\n```\n\nSee: https://github.github.com/gh-aw/reference/engines/#github-copilot-default"GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }}+ GH_AW_CHECKOUT_PR_INVALIDATED: ${{ needs.agent.outputs.checkout_pr_invalidated }}GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}GH_AW_UNKNOWN_MODEL_AI_CREDITS: ${{ needs.agent.outputs.unknown_model_ai_credits || 'false' }}GH_AW_AIC: ${{ needs.agent.outputs.aic }}@@ -1795,8 +1876,6 @@ jobs: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_JOB_RESULTS: ${{ toJSON(needs) }}- GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"Activation\",\"agent\":\"Agent\",\"check_token_telemetry\":\"Check token telemetry\",\"conclusion\":\"Conclusion\",\"detection\":\"Detection\",\"evals\":\"Evaluations\",\"pre_activation\":\"Pre-activation\",\"push_evals_state\":\"Push evaluations state\",\"push_experiments_state\":\"Push experiments state\",\"push_ledger_changes\":\"Push ledger changes\",\"push_repo_memory\":\"Push repository memory\",\"safe_outputs\":\"Safe outputs\",\"send_slack_message\":\"Send Slack message\",\"unlock\":\"Unlock\",\"update_cache_memory\":\"Update cache memory\",\"update_drive_memory\":\"Update drive memory\",\"upload_assets\":\"Upload assets\",\"upload_code_coverage\":\"Upload code coverage\",\"upload_code_scanning_sarif\":\"Upload code scanning results\"}"GH_AW_REPORT_FAILED_JOBS: "true"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -1820,6 +1899,9 @@ jobs:continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:+ GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'+ GH_AW_GRADER_MANIFEST_CHUNKS: '1'+ GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}@@ -1920,10 +2002,11 @@ jobs:detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }}detection_reason: ${{ steps.detection_conclusion.outputs.reason }}detection_success: ${{ steps.detection_conclusion.outputs.success }}+ run_detection: ${{ steps.detection_guard.outputs.run_detection }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1932,8 +2015,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download activation artifact@@ -1978,7 +2061,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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917- name: Check if detection neededid: detection_guardif: always()@@ -2004,6 +2087,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detection+ id: detection_setupif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -2026,26 +2110,26 @@ jobs:mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Setup Node.jsuses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install threat-detect binaryid: threat_detect_installif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: truerun: |- bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.2 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 b4ecda6a8f1ee09913c40b58e5e9d3337d2173618d41b1bfdef9207e4e7959b9 --sha256-arm64 f6260a0f9ad72bcb67c7af19c4ce262ca34e2c3d5ccbf912832a8bd277200904+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.3 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 7cfab3bd02717968a0584ddd3790cff22550059e36d6f656c4f35e9d27851009 --sha256-arm64 6f355949af98e7b5527a958ac11431bd7867db45c0191b94c3a205c662181cc6- name: Execute threat detection with AWFid: detection_agentic_execution- if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.threat_detect_install.outcome == 'success'+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_setup.outcome == 'success' && steps.detection_setup.outputs.ready == 'true' && steps.threat_detect_install.outcome == 'success'continue-on-error: truetimeout-minutes: 10env:@@ -2061,7 +2145,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 10- GH_AW_VERSION: v0.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -2107,7 +2191,19 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="400"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":10},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":10},\"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=""@@ -2128,28 +2224,34 @@ jobs:# shellcheck disable=SC1003,SC2016,SC2086awf --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 GH_AW_OTLP_ALL_HEADERS --exclude-env GH_AW_OTLP_ENDPOINTS --exclude-env OTEL_EXPORTER_OTLP_ENDPOINT --exclude-env OTEL_EXPORTER_OTLP_HEADERS --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --session-state-dir /tmp/gh-aw/sandbox/agent/session-state --skip-pull \-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr "\n" ":")"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log- - name: Render detection log+ - name: Copy detection firewall logsif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi+ if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ - name: Redact secrets in detection logs+ id: redact_detection_logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}with:script: |const path = require('path');const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));- await main();- - name: Copy detection firewall logs- if: always() && steps.detection_guard.outputs.run_detection == 'true'- continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall- if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi- if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });- name: Parse threat detection token usage for step summaryid: parse_detection_token_usage- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -2166,8 +2268,38 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();+ - name: Redact secrets in detection artifacts+ id: redact_detection_artifacts+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'+ continue-on-error: true+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));+ await main();- name: Upload threat detection artifact- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:name: detection@@ -2182,7 +2314,7 @@ jobs:retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Conclude threat detectionid: detection_conclusion- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}@@ -2191,13 +2323,23 @@ jobs:GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"run: |bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.json+ - name: Upload skipped detection execution evidence+ if: always() && steps.detection_guard.outputs.run_detection == 'false'+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/execution.json+ if-no-files-found: ignore+ retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}notify_teams:name: notify_teamsneeds:- agent- detection- if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams')+ if: >+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams') &&+ needs.detection.result == 'success'runs-on: ubuntu-latest# Permissions for the notify_teams job (workflow permissions default to none).permissions:@@ -2212,6 +2354,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"@@ -2228,14 +2371,16 @@ jobs:uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:python-version: "3.13"@@ -2246,14 +2391,16 @@ jobs:python .github/scripts/agentic-workflows/notify_teams.pyenv:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}RUN_URL: ${{ github.event.workflow_run.html_url || github.event.inputs.link || '' }}TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}- name: Upload statistics artifactif: always()- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:if-no-files-found: ignore@@ -2267,7 +2414,8 @@ jobs:- agent- detectionif: >- (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams_recurring')+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams_recurring') &&+ needs.detection.result == 'success'runs-on: ubuntu-latest# Permissions for the notify_teams_recurring job (workflow permissions default to none).permissions:@@ -2282,6 +2430,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"@@ -2298,14 +2447,16 @@ jobs:uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:python-version: "3.13"@@ -2315,6 +2466,7 @@ jobs:python .github/scripts/agentic-workflows/notify_teams_recurring.pyenv:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}@@ -2334,15 +2486,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with: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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Check team membership for workflow@@ -2360,6 +2512,77 @@ jobs:const { main } = require(path.join(actionsDir, 'check_membership.cjs'));await main();+ propose_rerun_pattern:+ name: propose_rerun_pattern+ needs:+ - agent+ - detection+ if: >+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'propose_rerun_pattern') &&+ needs.detection.result == 'success'+ runs-on: ubuntu-latest+ # Permissions for the propose_rerun_pattern job (workflow permissions default to none).+ permissions:+ contents: read+ env:+ GH_AW_AGENT_AIC: ${{ needs.agent.outputs.aic }}+ GH_AW_AIC: ${{ needs.agent.outputs.aic }}+ GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }}+ GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/ci-doctor-mq"+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}+ GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }}+ GH_AW_ENGINE_ID: "copilot"+ GH_AW_ENGINE_MODEL: "claude-sonnet-5"+ GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}+ GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}+ GH_AW_WORKFLOW_ID: "ci-doctor-mq"+ 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"+ steps:+ - name: Download agent output artifact+ continue-on-error: true+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2+ with:+ pattern: "{agent,agent-output-fallback}"+ merge-multiple: true+ path: ${{ runner.temp }}/gh-aw/safe-jobs/+ - name: Checkout agentic-workflow scripts+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ env:+ GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}+ GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}+ with:+ persist-credentials: false+ sparse-checkout: .github/scripts/agentic-workflows+ - name: Set up Python+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0+ env:+ GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}+ GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}+ with:+ python-version: "3.13"+ - name: Install PyGithub+ run: python -m pip install --quiet PyGithub==2.9.1+ env:+ GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}+ GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}+ - name: Propose rerun pattern+ run: |+ export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}+ python .github/scripts/agentic-workflows/propose_rerun_pattern.py+ env:+ ERRORS_TO_LOOK_FOR_PATH: .github/scripts/workflow_rerun/errors_to_look_for.json+ GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}+ GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}+ GH_TOKEN: ${{ secrets.RERUNNER_DB_UPDATE }}+ PR_LABELS: "category: CI,github_actions,agentic-workflows"+ PR_REVIEWERS: akashchi+push_repo_memory:name: push_repo_memoryneeds:@@ -2384,7 +2607,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2393,8 +2616,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Checkout repository@@ -2452,7 +2675,8 @@ jobs:- agent- detectionif: >- (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'remediate_transient_failure')+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'remediate_transient_failure') &&+ needs.detection.result == 'success'runs-on: ubuntu-latest# Permissions for the remediate_transient_failure job (workflow permissions default to none).permissions:@@ -2469,6 +2693,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"@@ -2485,14 +2710,16 @@ jobs:uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:python-version: "3.13"@@ -2500,6 +2727,7 @@ jobs:run: python -m pip install --quiet PyGithub==2.9.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}- name: Remediate transient failurerun: |@@ -2507,6 +2735,7 @@ jobs:python .github/scripts/agentic-workflows/remediate_transient_failure.pyenv:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}MERGE_QUEUE_TOKEN: ${{ secrets.MERGE_QUEUE_TOKEN }}@@ -2515,12 +2744,14 @@ jobs: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+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}- name: Re-add to merge queue was triggeredif: ${{ 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_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}safe_outputs:@@ -2547,6 +2778,7 @@ jobs:GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-mq"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Merge Queue"@@ -2570,7 +2802,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2579,8 +2811,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -2622,8 +2854,8 @@ jobs:GH_AW_ALLOWED_DOMAINS: "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,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,s.symcb.com,s.symcd.com,security.ubuntu.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\":\"\",\"remediate_transient_failure\":\"\"}"- GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUT_JOBS: "{\"notify_teams\":\"\",\"notify_teams_recurring\":\"\",\"propose_rerun_pattern\":\"\",\"remediate_transient_failure\":\"\"}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"GH_AW_GITHUB_TOKEN_SOURCE: ${{ secrets.GH_AW_GITHUB_TOKEN != '' && 'pat' || 'github_actions' }}with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/ci-doctor-mq.md b/.github/workflows/ci-doctor-mq.mdindex dd45339b816..140b35b45a9 100644--- a/.github/workflows/ci-doctor-mq.md+++ b/.github/workflows/ci-doctor-mq.md@@ -36,6 +36,10 @@ on:- "Clang-tidy static analysis (Ubuntu 24.04, Python 3.12, Clang-18, Clang-tidy-18)"types:- completed+ # Merge-queue runs always execute on GitHub-created `gh-readonly-queue/<base>/pr-<N>-<sha>`+ # branches in this repository, even for PRs from forks, so this covers every merge-queue failure.+ branches:+ - "gh-readonly-queue/**"concurrency:group: gh-aw-${{ github.workflow }}@@ -57,6 +61,7 @@ imports:- shared/agentic-workflows/notify-teams.md- shared/agentic-workflows/notify-teams-recurring.md- shared/agentic-workflows/remediate-transient-failure.md+ - shared/agentic-workflows/propose-rerun-pattern.md# Shared CI Doctor prompt (inlined before this file's body, in this order).# Also wires tools.github, tools.repo-memory (memory/ci-doctor-mq) and the# investigations/patterns artifact upload.@@ -100,7 +105,7 @@ The shared CI Doctor protocol above applies in full. The sections below extend i- escalates to Microsoft Teams when the same failure pattern recurs **3 or more times within a 12-hour window** (Phase 5.5 / `notify_teams_recurring`),- posts a remediation comment on the pull request behind the failed merge-queue run (`add_comment`),- requests automated remediation of **transient** failures (`remediate_transient_failure`),-- maintains the `rerun_search_string` hook consumed by the workflow re-runner.+- computes a `rerun_search_string` candidate for transient failures and proposes it for **human review** (`propose_rerun_pattern`) — it never publishes rerunner search strings itself.## Pre-Analysis Data — Pull Request Context@@ -122,9 +127,9 @@ In both branches of the Step C pseudocode additionally set:record.rerun_search_string = RERUN_SEARCH_STRING ← compute per Step C.1 below (recompute on every update)~~~-### Step C.1 — Compute and verify `RERUN_SEARCH_STRING` (the workflow_rerunner hook)+### Step C.1 — Compute and verify the `RERUN_SEARCH_STRING` candidate-This field feeds the automated rerunner (`.github/scripts/workflow_rerun`), which greps the failed run's logs for this string and, on a match, re-runs the failed jobs — exactly like the static entries in `.github/scripts/workflow_rerun/errors_to_look_for.json`. A rerun only helps for **transient** failures, and a string that never matches is useless:+This field is a **candidate only**. The automated rerunner (`.github/scripts/workflow_rerun`) does **not** read it from `mq/patterns/`; it only reads `.github/scripts/workflow_rerun/errors_to_look_for.json` on `master`, which changes exclusively through reviewed pull requests. Once approved, the rerunner greps every failed monitored run's logs for the string and re-runs the failed jobs on a match — so an over-generic string would restart almost every failing pipeline. A rerun only helps for **transient** failures, and a string that never matches is useless:- IF `category` is NOT one of `Flaky Test`, `Infrastructure`, `Network`, or `External Service` (i.e. a deterministic `Code Issue`/`Dependencies`/`Configuration` failure a restart cannot fix): set `RERUN_SEARCH_STRING = null`. A search string here would make the rerunner loop on an unfixable failure.- ELSE: set `RERUN_SEARCH_STRING` to a **short, stable substring taken verbatim from a single raw log line** that uniquely identifies this failure (e.g., `Could not resolve host`, `Connection reset by peer`, `runner has received a shutdown signal`). Strip everything volatile that changes between runs or across jobs: absolute paths, line/column numbers, hex addresses, PIDs, timestamps, run IDs, commit SHAs, tmp dirs, UUIDs, and embedded job/runner/OS/shard names.@@ -132,26 +137,16 @@ This field feeds the automated rerunner (`.github/scripts/workflow_rerun`), whic**Verify a non-null value against the rerunner's exact matcher** ([`log_analyzer.py`](../scripts/workflow_rerun/log_analyzer.py)): it normalizes a string by replacing each run of non-alphanumeric chars (`[^A-Za-z0-9]+`) with one space, lower-casing, and stripping (so `Could not resolve host: github.com` → `could not resolve host github com`), then checks whether the normalized string is a plain substring of a **single** normalized log line (matches never span line breaks). Confirm the normalized `RERUN_SEARCH_STRING` is a substring of a normalized real log line from the pre-downloaded logs, is non-empty after normalization, and is specific enough to avoid matching benign lines (no bare `error`/`failed`/`warning`). If you cannot satisfy this, set `RERUN_SEARCH_STRING = null` rather than store an unverified guess.+Additionally keep the candidate **specific**: at least 3 words and 15 characters after normalization; never a GitHub Actions step name, a `##[group]` header, a test-suite/job name, a hash/ID, or runner boilerplate shared by unrelated failures (e.g. `Process completed with exit code`, `The operation was canceled`, `No artifacts will be uploaded`). Keep it **general** across instances of the same failure class: never include a URL, a versioned file/package name, or a dependency name that only identifies one occurrence — prefer the stable tool message on a neighbouring line (e.g. for CMake download failures use `Each download failed!` rather than `downloading 'https://…/sentencepiece-0.2.1.tar.gz' failed`). Remember the **verbatim raw log line** you verified it against as `SAMPLE_LOG_LINE` — you need it for `propose_rerun_pattern`.+### Step E (addendum) — extra read-back checks- `rerun_search_string` is present and is either a non-empty string (only for the transient categories `Flaky Test`/`Infrastructure`/`Network`/`External Service`) or `null` (for every other category)- if `rerun_search_string` is non-null, it still satisfies the Step C.1 verification (normalized substring of a single actual failure-log line, non-empty after normalization); otherwise set it to `null`-### Step 5 — Backfill Missing `rerun_search_string` Fields (MANDATORY sweep, every run)--Some pattern files were written before `rerun_search_string` existed and are missing the field entirely (as opposed to having it explicitly set to `null`). Every time you run Phase 5, after step 2 has written/updated the current failure's pattern file, sweep **all** other files in `/tmp/gh-aw/repo-memory/default/mq/patterns/` and backfill any that lack the key:--- For each `<signature-hash>.json` file in the patterns directory (including ones untouched by this run):- 1. Read and parse the file.- 2. If the `rerun_search_string` key is **already present** (even if its value is `null`), skip it — do not touch a file that already conforms to the schema.- 3. If the key is **missing**, derive it from the file's own `signature` field (`<normalized-error>|<category>`) using the same rules as Step C.1, without needing the original failure logs:- - Split `signature` on the last `|` to recover `<normalized-error>` and `<category>`.- - IF `<category>` is NOT one of `Flaky Test`, `Infrastructure`, `Network`, or `External Service`: set `rerun_search_string = null`.- - ELSE: set `rerun_search_string = <normalized-error>` verbatim (the signature's error component was already stripped of volatile tokens per Step A, so no further normalization is needed). Since the original raw logs are unlikely to still be available for a backfill, you do NOT need to re-verify it against a live log line as Step C.1 otherwise requires — only confirm it is non-empty and not just generic noise (e.g., not solely `error`, `failed`, or `warning`). If it fails that minimal check, set it to `null` instead of guessing.- 4. Write the updated object back to the same file, changing only the `rerun_search_string` key — do not alter `count`, timestamps, `signature`, `signature_hash`, or any other field.- 5. Validate the rewritten file against `pattern.schema.json` (see the validation procedure in the "Artefact schemas" block) and confirm `rerun_search_string` is now present as either a non-empty string or `null`.+### No backfill of other pattern records-This step must never modify a file's `count`, `first_seen`, `last_seen`, or timestamp arrays — its only job is adding the missing key.+Only the current failure's pattern record gets a `rerun_search_string`, computed and verified against real log lines per Step C.1. Do **not** derive or backfill `rerun_search_string` for other pattern files (e.g. from their `signature` field) — unverified, signature-derived strings were the main source of over-generic rerun patterns. Leave other records untouched.## Phase 5.5 — Recurring Failure Escalation Check@@ -189,6 +184,7 @@ ELSE:- 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** (Infrastructure / Flaky Test / Network / External Service), request automated remediation by calling `remediate_transient_failure` (see its decision guidance below).+- When the current pattern record has a verified, non-null `rerun_search_string` candidate, submit it for human review by calling `propose_rerun_pattern` (see its decision guidance below). This is the **only** way a new string can reach the workflow rerunner.## Phase 7 — Additional String-Encoding Checklist@@ -196,6 +192,10 @@ For `notify_teams_recurring`:- `title`, `failed_workflow`, `pipeline_url`, `description`, `affected_prs`, `recent_run_urls` — non-empty strings- `recent_count` — string-encoded positive integer, e.g. `"3"` (NOT `3`)+For `propose_rerun_pattern`:+- `signature_hash`, `rerun_search_string`, `category`, `title`, `sample_log_line`, `pipeline_url`, `reason` — non-empty strings+- `rerun_search_string` and `sample_log_line` copied exactly (no paraphrasing) from the pattern record / verified log line+## Output Requirements — Merge-Queue Additions### `notify_teams` — merge-queue specifics@@ -209,6 +209,7 @@ For `notify_teams_recurring`:- 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).+- Then one line `Rerun pattern:` with either `📝 Proposed for review` followed by the candidate in backticks (when you called `propose_rerun_pattern`), or `— not proposed` followed by a short reason (non-transient, no verified candidate, already approved).```Additionally, if Phase 5.5 determines the same failure has occurred 3 or more times in the last 12 hours, call the `notify_teams_recurring` safe-output tool exactly once with the escalation details.@@ -286,6 +287,25 @@ This tool is independent of the notifications: still call `notify_teams` (and `aWhenever 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.+### `propose_rerun_pattern` decision guidance++The workflow rerunner re-runs **every** failed monitored pipeline whose log contains an approved search string, so new strings must be reviewed by a human before they take effect. `propose_rerun_pattern` submits your Step C.1 candidate for that review: the job re-validates it and opens a pull request against `master` appending the string to `.github/scripts/workflow_rerun/errors_to_look_for.json`. Nothing changes for the rerunner until a maintainer merges that PR.++Call it **at most once** per investigation, and only when **all** of the following hold:+- the category is transient (`Flaky Test`, `Infrastructure`, `Network`, `External Service`);+- the current pattern record's `rerun_search_string` is non-null and passed the Step C.1 verification in **this** run (never propose a string you did not verify against the pre-downloaded logs);+- the normalized candidate is not already covered by `${GITHUB_WORKSPACE}/.github/scripts/workflow_rerun/errors_to_look_for.json` (read-only check using the Step C.1 normalization; a match in either direction means it is already covered).++Provide:+- **`signature_hash`** — the current pattern's `<signature-hash>`.+- **`rerun_search_string`** — exactly the value stored in the pattern record.+- **`category`** / **`title`** — the pattern's category and `notify_teams.title`.+- **`sample_log_line`** — the verbatim raw log line (`SAMPLE_LOG_LINE`) the candidate was verified against.+- **`pipeline_url`** — URL of the analysed failed run.+- **`reason`** — one line on why a plain rerun fixes this failure.++The job may still skip the proposal (too generic, duplicate, previously rejected); that is expected and not an error. `propose_rerun_pattern` is independent of `remediate_transient_failure`: the current run is remediated (or not) regardless of the proposal.+## Mandatory Output Requirement — Merge-Queue Safe OutputsIn addition to `notify_teams`, `noop` and `missing_data` from the shared protocol, this workflow may call (all numeric-looking fields, including `recent_count`, as JSON strings):@@ -293,11 +313,13 @@ In addition to `notify_teams`, `noop` and `missing_data` from the shared protoco- **`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.- **`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.+- **`propose_rerun_pattern`**: Open a human-review PR against `master` that would add the verified rerun search string candidate to `.github/scripts/workflow_rerun/errors_to_look_for.json`. Call this **only** under the conditions in its decision guidance above. Call at most once per run.**Valid call combinations:**- `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 **+ `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.+- Any of the transient combinations above **+ `propose_rerun_pattern`** — additionally, a verified rerun search string candidate that is not yet approved is submitted for human review.- `noop` alone — no investigation needed.- `missing_data` alone — investigation blocked by missing data.diff --git a/.github/workflows/ci-doctor-post-commit.lock.yml b/.github/workflows/ci-doctor-post-commit.lock.ymlindex c8779114fa6..d12aa3f9de5 100644--- a/.github/workflows/ci-doctor-post-commit.lock.yml+++ b/.github/workflows/ci-doctor-post-commit.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d3274b0334828b127d39ce5be3784002c2b5fd4f9de23024f1bce9e469f8da5d","body_hash":"7b4799f4b9af348b6bfc82aa88ddf26cc886f240e2a324d07bcda162a1de7c71","compiler_version":"v0.92.0","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.96"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"458b269006dcf88e3b5496b6fbecabe4b9a0f954","version":"v0.92.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57","digest":"sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57","digest":"sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57","digest":"sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.31","digest":"sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.2","digest":"sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["missing_data","missing_tool","noop","notify_teams","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}-# This file was automatically generated by gh-aw (v0.92.0). 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":"d3274b0334828b127d39ce5be3784002c2b5fd4f9de23024f1bce9e469f8da5d","body_hash":"7b4799f4b9af348b6bfc82aa88ddf26cc886f240e2a324d07bcda162a1de7c71","compiler_version":"v0.93.5","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.101"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN","TEAMS_WEBHOOK_URL"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"de9d416cac8ccea1a2d582cb07c4b7db96946792","version":"v0.93.5"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70","digest":"sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70","digest":"sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70","digest":"sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.37","digest":"sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.3","digest":"sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["noop","notify_teams","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false}+# This file was automatically generated by gh-aw (v0.93.5). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -59,15 +59,15 @@# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2-# - github/gh-aw-actions/setup@458b269006dcf88e3b5496b6fbecabe4b9a0f954 # v0.92.0+# - github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc-# - ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac-# - ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf+# - ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a+# - ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917+# - ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e-# - ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+# - ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132name: "CI Failure Doctor — Post-Commit"on:@@ -164,7 +164,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -174,8 +174,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -186,19 +186,23 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-5"- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AGENT_VERSION: "1.0.96"- GH_AW_INFO_CLI_VERSION: "v0.92.0"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AGENT_VERSION: "1.0.101"+ GH_AW_INFO_CLI_VERSION: "v0.93.5"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"+ GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}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.28.57"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_INFO_AGENT_RUNTIME: ""+ GH_AW_INFO_ENGINE_HARNESS: "copilot-cli"+ GH_AW_INFO_MODEL_CONFIG: '{"routing":{"enabled":false},"models":{"allowed":[],"blocked":[]},"max_ai_credits_source":"default"}'+ GH_AW_INFO_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}GH_AW_COMPILED_STRICT: "true"GH_AW_INFO_MODEL_COSTS: '{"providers":{"github-copilot":{"models":{"claude-sonnet-5":{"cost":{"cache_read":"2e-07","cache_write":"2.5e-06","input":"2e-06","output":"1e-05"}}}}}}'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -212,7 +216,7 @@ jobs:await main(core, context);- name: Restore daily AIC scan observationsid: restore-daily-aic-cache-fallback- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_HAS_SLASH_COMMAND: "false"@@ -228,7 +232,7 @@ jobs:await main();- name: Check daily workflow token guardrailid: daily-ai-credits-workflow-guardrail- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"@@ -250,7 +254,7 @@ jobs:const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Publish daily AIC scan observations- if: always() && env.GH_AW_MAX_DAILY_AI_CREDITS != ''+ if: always() && env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != ''continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -307,7 +311,8 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.92.0"+ GH_AW_COMPILED_VERSION: "v0.93.5"+ GH_AW_HAS_SAFE_OUTPUTS: "true"GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"with:@@ -343,9 +348,8 @@ jobs:GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}- GH_AW_WIKI_NOTE: ${{ '' }}GH_AW_PROMPT_CONTENT_0000: "<system>\n"- GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: missing_tool, missing_data, noop(max:2), notify_teams\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: report_missing_tool, report_missing_data, noop(max:2), notify_teams\n"GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_7C248226__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_C19C384F__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_76DF9333__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_77C1A4D2__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"GH_AW_PROMPT_CONTENT_0004: "</system>\n"@@ -539,6 +543,7 @@ jobs:ai_credits_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.ai_credits_rate_limit_error || 'false' }}aic: ${{ steps.parse-token-usage.outputs.aic }}ambient_context: ${{ steps.parse-token-usage.outputs.ambient_context }}+ checkout_pr_invalidated: ${{ steps.checkout-pr.outputs.checkout_pr_invalidated || 'false' }}checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }}has_patch: ${{ steps.collect_output.outputs.has_patch }}http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}@@ -561,7 +566,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -570,8 +575,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Set runtime paths@@ -623,7 +628,7 @@ jobs:CREATE_ORPHAN: truerun: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -662,12 +667,12 @@ jobs:const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -696,7 +701,7 @@ 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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917 ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132- name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"@@ -707,7 +712,7 @@ jobs:env:GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"- GH_AW_SAFE_OUTPUTS_CONFIG: "{\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"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 this CI Doctor's investigation database (count of distinct investigation files under the doctor's own investigations directory, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` where `<slug>` is `mq` for Merge Queue or `post-commit` for Post-Commit, 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 workflow's own name.\",\"required\":true,\"type\":\"string\"},\"occurrence_count\":{\"default\":null,\"description\":\"How many times this same issue has been recorded in this CI Doctor's 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/` (`<slug>` = `mq` or `post-commit`). Must be >= 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 (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"pr_url\":{\"default\":\"not_found\",\"description\":\"Pull request URL if the failure is associated with a PR (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"source\":{\"default\":null,\"description\":\"Which CI Doctor produced this notification: 'merge_queue' for the Merge Queue investigator or 'post_commit' for the Post-Commit investigator. Controls the badge shown in the Teams card ([MQ] / [PC]) and the uploaded statistics artifact name.\",\"required\":true,\"type\":\"string\"},\"statistics\":{\"default\":null,\"description\":\"Markdown-formatted statistics summary of this CI Doctor's pattern database, uploaded as the statistics workflow artifact (NOT rendered in the Teams card). 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` and `/tmp/gh-aw/repo-memory/default/<slug>/patterns/` (`<slug>` = `mq` or `post-commit`). Keep concise (top 20 patterns max).\",\"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\\\": <ISO8601 UTC>, \\\"total_patterns\\\": <int>, \\\"total_investigations\\\": <int>, \\\"patterns\\\": [{\\\"signature\\\": <str>, \\\"title\\\": <str>, \\\"category\\\": <str>, \\\"count\\\": <int>, \\\"first_seen\\\": <ISO8601 UTC>, \\\"last_seen\\\": <ISO8601 UTC>, \\\"recent_run_urls\\\": [<str>, ...]}]}. 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.\"},\"push_repo_memory\":{\"memories\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":1000,\"max_file_size\":1048576,\"max_patch_size\":1048576}]},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_CONFIG: "{\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"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 this CI Doctor's investigation database (count of distinct investigation files under the doctor's own investigations directory, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` where `<slug>` is `mq` for Merge Queue or `post-commit` for Post-Commit, 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 workflow's own name.\",\"required\":true,\"type\":\"string\"},\"occurrence_count\":{\"default\":null,\"description\":\"How many times this same issue has been recorded in this CI Doctor's 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/` (`<slug>` = `mq` or `post-commit`). Must be >= 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 (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"pr_url\":{\"default\":\"not_found\",\"description\":\"Pull request URL if the failure is associated with a PR (e.g. a merge-queue PR). Omit otherwise.\",\"required\":false,\"type\":\"string\"},\"source\":{\"default\":null,\"description\":\"Which CI Doctor produced this notification: 'merge_queue' for the Merge Queue investigator or 'post_commit' for the Post-Commit investigator. Controls the badge shown in the Teams card ([MQ] / [PC]) and the uploaded statistics artifact name.\",\"required\":true,\"type\":\"string\"},\"statistics\":{\"default\":null,\"description\":\"Markdown-formatted statistics summary of this CI Doctor's pattern database, uploaded as the statistics workflow artifact (NOT rendered in the Teams card). 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 the doctor's own store, `/tmp/gh-aw/repo-memory/default/<slug>/investigations/` and `/tmp/gh-aw/repo-memory/default/<slug>/patterns/` (`<slug>` = `mq` or `post-commit`). Keep concise (top 20 patterns max).\",\"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\\\": <ISO8601 UTC>, \\\"total_patterns\\\": <int>, \\\"total_investigations\\\": <int>, \\\"patterns\\\": [{\\\"signature\\\": <str>, \\\"title\\\": <str>, \\\"category\\\": <str>, \\\"count\\\": <int>, \\\"first_seen\\\": <ISO8601 UTC>, \\\"last_seen\\\": <ISO8601 UTC>, \\\"recent_run_urls\\\": [<str>, ...]}]}. 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.\"},\"push_repo_memory\":{\"memories\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":1000,\"max_file_size\":1048576,\"max_patch_size\":1048576}]},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"with:script: |const path = require('path');@@ -799,7 +804,44 @@ jobs:}GH_AW_VALIDATION_JSON: |{- "missing_data": {+ "noop": {+ "defaultMax": 2,+ "fields": {+ "message": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ }+ }+ },+ "push_repo_memory": {+ "defaultMax": 1,+ "fields": {+ "memory_id": {+ "type": "string",+ "sanitize": true,+ "maxLength": 128+ }+ }+ },+ "report_incomplete": {+ "defaultMax": 5,+ "fields": {+ "details": {+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ },+ "reason": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 1024+ }+ }+ },+ "report_missing_data": {"defaultMax": 20,"fields": {"alternatives": {@@ -824,7 +866,7 @@ jobs:}}},- "missing_tool": {+ "report_missing_tool": {"defaultMax": 20,"fields": {"alternatives": {@@ -844,43 +886,6 @@ jobs:"maxLength": 128}}- },- "noop": {- "defaultMax": 2,- "fields": {- "message": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 65000- }- }- },- "push_repo_memory": {- "defaultMax": 1,- "fields": {- "memory_id": {- "type": "string",- "sanitize": true,- "maxLength": 128- }- }- },- "report_incomplete": {- "defaultMax": 5,- "fields": {- "details": {- "type": "string",- "sanitize": true,- "maxLength": 65000- },- "reason": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 1024- }- }}}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -895,6 +900,7 @@ jobs:- name: Start MCP Gatewayid: start-mcp-gatewayenv:+ DEBUG: ${{ env.DEBUG || runner.debug == '1' && '*' || '' }}GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST: ${{ vars.GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST || 'true' }}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 }}@@ -931,22 +937,20 @@ jobs:export GH_AW_PR_HEAD_BASE_REF="${GH_AW_PR_HEAD_BASE_REF:-}"export GH_AW_PR_HEAD_REPO="${GH_AW_PR_HEAD_REPO:-}"export GH_AW_TARGET_REPO_SLUG="${GH_AW_TARGET_REPO_SLUG:-}"- export DEBUG="*"-export GH_AW_ENGINE="copilot"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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf'+ 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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442'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_ae7149b7fbe29884_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v2.0.2",+ "container": "ghcr.io/github/github-mcp-server:v2.0.3","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -963,13 +967,13 @@ jobs:},"safeoutputs": {"type": "stdio",- "container": "ghcr.io/github/gh-aw-node",+ "container": "ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],"args": ["-w", "\${GITHUB_WORKSPACE}"],"entrypoint": "sh","entrypointArgs": ["-c", "sh ${RUNNER_TEMP}/gh-aw/safeoutputs/start_safe_outputs_mcp.sh"],"env": {- "DEBUG": "*",+ "DEBUG": "\${DEBUG}","DEFAULT_BRANCH": "\${DEFAULT_BRANCH}","GH_AW_ASSETS_ALLOWED_EXTS": "\${GH_AW_ASSETS_ALLOWED_EXTS}","GH_AW_ASSETS_BRANCH": "\${GH_AW_ASSETS_BRANCH}",@@ -1017,7 +1021,7 @@ jobs:}}}- GH_AW_MCP_CONFIG_ae7149b7fbe29884_EOF+ GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1088,7 +1092,23 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="1000"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":20},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -z "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ echo "ERR_ADMISSION: Missing required runtime admission allowance." >&2+ exit 1+ fi++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":20},\"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=""@@ -1132,7 +1152,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.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1198,6 +1218,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID"- name: Redact secrets in logs+ id: redact_secretsif: always()uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:@@ -1347,7 +1368,7 @@ jobs:if-no-files-found: ignore- if: always()name: Upload CI Doctor investigations and patterns (post-commit)- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1with:if-no-files-found: ignorename: ci-doctor-post-commit-investigations@@ -1359,7 +1380,7 @@ jobs:# Small dedicated copy of the agent output so safe-output processing# survives a failed or timed-out upload of the larger agent artifact- name: Upload agent output fallback artifact- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1378,10 +1399,11 @@ jobs:/tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/model-routing.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/model-routing.jsonl+ /tmp/gh-aw/awf-resolved-config.jsonif-no-files-found: ignoreretention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Upload agent artifacts- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1402,6 +1424,7 @@ jobs:/tmp/gh-aw/runtime/aw_info.json/tmp/gh-aw/agent_usage.jsonl/tmp/gh-aw/agent/model-endpoint-mismatch.json+ /tmp/gh-aw/agent/model-resolution.json/tmp/gh-aw/agent-stdio.log/tmp/gh-aw/pre-agent-audit.txt/tmp/gh-aw/github_rate_limits.jsonl@@ -1412,6 +1435,7 @@ jobs:/tmp/gh-aw/aw-*.patch/tmp/gh-aw/aw-*.bundle/tmp/gh-aw/awf-config.json+ /tmp/gh-aw/awf-resolved-config.json/tmp/gh-aw/sandbox/firewall/logs//tmp/gh-aw/sandbox/firewall/audit//tmp/gh-aw/sandbox/firewall/awf-reflect.json@@ -1443,6 +1467,9 @@ jobs:cancel-in-progress: falsequeue: maxenv:+ GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"activation\",\"agent\":\"agent\",\"conclusion\":\"conclusion\",\"detection\":\"detection\",\"notify_teams\":\"notify_teams\",\"pre_activation\":\"pre_activation\",\"push_repo_memory\":\"push_repo_memory\",\"safe_outputs\":\"safe_outputs\"}"+ GH_AW_JOB_RESULTS: "{\"activation\":{\"result\":\"${{ needs.activation.result }}\"},\"agent\":{\"result\":\"${{ needs.agent.result }}\"},\"detection\":{\"result\":\"${{ needs.detection.result }}\"},\"notify_teams\":{\"result\":\"${{ needs.notify_teams.result }}\"},\"push_repo_memory\":{\"result\":\"${{ needs.push_repo_memory.result }}\"},\"safe_outputs\":{\"result\":\"${{ needs.safe_outputs.result }}\"}}"+ GH_AW_JOB_TIMING_ELIGIBLE: "{\"activation\":true,\"agent\":true,\"conclusion\":true,\"detection\":true,\"notify_teams\":true,\"pre_activation\":true,\"push_repo_memory\":true,\"safe_outputs\":true}"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}outputs:incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }}@@ -1453,7 +1480,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1462,8 +1489,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download agent output artifact@@ -1605,6 +1632,7 @@ jobs:GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }}GH_AW_ENGINE_SECRET_FAILURE_MESSAGE: "**Alternative**: If your organization has a Copilot subscription, you can avoid the need for a personal access token by adding a top-level `permissions` block to your workflow file. This enables Copilot inference through the org using the built-in GitHub Actions token.\n\n```yaml\npermissions:\n copilot-requests: write\n```\n\nSee: https://github.github.com/gh-aw/reference/engines/#github-copilot-default"GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }}+ GH_AW_CHECKOUT_PR_INVALIDATED: ${{ needs.agent.outputs.checkout_pr_invalidated }}GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}GH_AW_UNKNOWN_MODEL_AI_CREDITS: ${{ needs.agent.outputs.unknown_model_ai_credits || 'false' }}GH_AW_AIC: ${{ needs.agent.outputs.aic }}@@ -1661,8 +1689,6 @@ jobs:GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-post-commit.md"GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}- GH_AW_JOB_RESULTS: ${{ toJSON(needs) }}- GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"Activation\",\"agent\":\"Agent\",\"check_token_telemetry\":\"Check token telemetry\",\"conclusion\":\"Conclusion\",\"detection\":\"Detection\",\"evals\":\"Evaluations\",\"pre_activation\":\"Pre-activation\",\"push_evals_state\":\"Push evaluations state\",\"push_experiments_state\":\"Push experiments state\",\"push_ledger_changes\":\"Push ledger changes\",\"push_repo_memory\":\"Push repository memory\",\"safe_outputs\":\"Safe outputs\",\"send_slack_message\":\"Send Slack message\",\"unlock\":\"Unlock\",\"update_cache_memory\":\"Update cache memory\",\"update_drive_memory\":\"Update drive memory\",\"upload_assets\":\"Upload assets\",\"upload_code_coverage\":\"Upload code coverage\",\"upload_code_scanning_sarif\":\"Upload code scanning results\"}"GH_AW_REPORT_FAILED_JOBS: "true"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -1686,6 +1712,9 @@ jobs:continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:+ GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'+ GH_AW_GRADER_MANIFEST_CHUNKS: '1'+ GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}@@ -1786,10 +1815,11 @@ jobs:detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }}detection_reason: ${{ steps.detection_conclusion.outputs.reason }}detection_success: ${{ steps.detection_conclusion.outputs.success }}+ run_detection: ${{ steps.detection_guard.outputs.run_detection }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1798,8 +1828,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download activation artifact@@ -1844,7 +1874,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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917- name: Check if detection neededid: detection_guardif: always()@@ -1870,6 +1900,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detection+ id: detection_setupif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -1892,26 +1923,26 @@ jobs:mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Setup Node.jsuses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install threat-detect binaryid: threat_detect_installif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: truerun: |- bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.2 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 b4ecda6a8f1ee09913c40b58e5e9d3337d2173618d41b1bfdef9207e4e7959b9 --sha256-arm64 f6260a0f9ad72bcb67c7af19c4ce262ca34e2c3d5ccbf912832a8bd277200904+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.3 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 7cfab3bd02717968a0584ddd3790cff22550059e36d6f656c4f35e9d27851009 --sha256-arm64 6f355949af98e7b5527a958ac11431bd7867db45c0191b94c3a205c662181cc6- name: Execute threat detection with AWFid: detection_agentic_execution- if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.threat_detect_install.outcome == 'success'+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_setup.outcome == 'success' && steps.detection_setup.outputs.ready == 'true' && steps.threat_detect_install.outcome == 'success'continue-on-error: truetimeout-minutes: 10env:@@ -1927,7 +1958,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 10- GH_AW_VERSION: v0.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1973,7 +2004,19 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="400"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":10},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":10},\"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=""@@ -1994,28 +2037,34 @@ jobs:# shellcheck disable=SC1003,SC2016,SC2086awf --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 GH_AW_OTLP_ALL_HEADERS --exclude-env GH_AW_OTLP_ENDPOINTS --exclude-env OTEL_EXPORTER_OTLP_ENDPOINT --exclude-env OTEL_EXPORTER_OTLP_HEADERS --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --session-state-dir /tmp/gh-aw/sandbox/agent/session-state --skip-pull \-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr "\n" ":")"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log- - name: Render detection log+ - name: Copy detection firewall logsif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi+ if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ - name: Redact secrets in detection logs+ id: redact_detection_logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}with:script: |const path = require('path');const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));- await main();- - name: Copy detection firewall logs- if: always() && steps.detection_guard.outputs.run_detection == 'true'- continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall- if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi- if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });- name: Parse threat detection token usage for step summaryid: parse_detection_token_usage- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -2032,8 +2081,38 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();+ - name: Redact secrets in detection artifacts+ id: redact_detection_artifacts+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'+ continue-on-error: true+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));+ await main();- name: Upload threat detection artifact- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:name: detection@@ -2048,7 +2127,7 @@ jobs:retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Conclude threat detectionid: detection_conclusion- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}@@ -2057,13 +2136,23 @@ jobs:GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"run: |bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.json+ - name: Upload skipped detection execution evidence+ if: always() && steps.detection_guard.outputs.run_detection == 'false'+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/execution.json+ if-no-files-found: ignore+ retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}notify_teams:name: notify_teamsneeds:- agent- detection- if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams')+ if: >+ (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'notify_teams') &&+ needs.detection.result == 'success'runs-on: ubuntu-latest# Permissions for the notify_teams job (workflow permissions default to none).permissions:@@ -2078,6 +2167,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-post-commit"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"@@ -2094,14 +2184,16 @@ jobs:uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:persist-credentials: falsesparse-checkout: .github/scripts/agentic-workflows- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:python-version: "3.13"@@ -2112,14 +2204,16 @@ jobs:python .github/scripts/agentic-workflows/notify_teams.pyenv:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}RUN_URL: ${{ github.event.workflow_run.html_url || github.event.inputs.link || '' }}TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }}- name: Upload statistics artifactif: always()- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1env:GH_AW_AGENT_OUTPUT: ${{ runner.temp }}/gh-aw/safe-jobs/agent_output.json+ GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}GH_AW_JOB_CHECK_RUN_ID: ${{ job.check_run_id }}with:if-no-files-found: ignore@@ -2143,15 +2237,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Check team membership for workflow@@ -2194,7 +2288,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2203,8 +2297,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Checkout repository@@ -2279,6 +2373,7 @@ jobs:GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-post-commit"GH_AW_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"@@ -2300,7 +2395,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2309,8 +2404,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Failure Doctor — Post-Commit"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-post-commit.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -2353,7 +2448,7 @@ jobs:GITHUB_SERVER_URL: ${{ github.server_url }}GITHUB_API_URL: ${{ github.api_url }}GH_AW_SAFE_OUTPUT_JOBS: "{\"notify_teams\":\"\"}"- GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"GH_AW_GITHUB_TOKEN_SOURCE: ${{ secrets.GH_AW_GITHUB_TOKEN != '' && 'pat' || 'github_actions' }}with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/ci-doctor-remediation.lock.yml b/.github/workflows/ci-doctor-remediation.lock.ymlindex 07b40b4db67..bf02c84c6ca 100644--- a/.github/workflows/ci-doctor-remediation.lock.yml+++ b/.github/workflows/ci-doctor-remediation.lock.yml@@ -1,6 +1,6 @@-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"8f7e620b5c3858b4a2d32fa4d566c968b3a626ed0342c51601ed5e04c6aa5ed8","body_hash":"f53e537811b9a2191e8a20fbfa6cd2a520769ecf27b206a9fbe86eb90cd0465c","compiler_version":"v0.92.0","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.96"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"458b269006dcf88e3b5496b6fbecabe4b9a0f954","version":"v0.92.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57","digest":"sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57","digest":"sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57","digest":"sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.31","digest":"sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.2","digest":"sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","create_issue","create_pull_request","missing_data","missing_tool","noop","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}-# This file was automatically generated by gh-aw (v0.92.0). 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":"8f7e620b5c3858b4a2d32fa4d566c968b3a626ed0342c51601ed5e04c6aa5ed8","body_hash":"f53e537811b9a2191e8a20fbfa6cd2a520769ecf27b206a9fbe86eb90cd0465c","compiler_version":"v0.93.5","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.101"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"de9d416cac8ccea1a2d582cb07c4b7db96946792","version":"v0.93.5"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70","digest":"sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70","digest":"sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70","digest":"sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.37","digest":"sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.3","digest":"sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","create_issue","create_pull_request","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false}+# This file was automatically generated by gh-aw (v0.93.5). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -53,15 +53,15 @@# - actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2-# - github/gh-aw-actions/setup@458b269006dcf88e3b5496b6fbecabe4b9a0f954 # v0.92.0+# - github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc-# - ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac-# - ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf+# - ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a+# - ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917+# - ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e-# - ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+# - ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132name: "CI Doctor — Weekly Remediation"on:@@ -129,7 +129,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -137,8 +137,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-remediation.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -149,19 +149,23 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-5"- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AGENT_VERSION: "1.0.96"- GH_AW_INFO_CLI_VERSION: "v0.92.0"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AGENT_VERSION: "1.0.101"+ GH_AW_INFO_CLI_VERSION: "v0.93.5"GH_AW_INFO_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"+ GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}GH_AW_INFO_EXPERIMENTAL: "false"GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"GH_AW_INFO_STAGED: "false"GH_AW_INFO_ALLOWED_DOMAINS: '["defaults","github.com","python"]'GH_AW_INFO_FIREWALL_ENABLED: "true"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_INFO_AGENT_RUNTIME: ""+ GH_AW_INFO_ENGINE_HARNESS: "copilot-cli"+ GH_AW_INFO_MODEL_CONFIG: '{"routing":{"enabled":false},"models":{"allowed":[],"blocked":[]},"max_ai_credits_source":"default"}'+ GH_AW_INFO_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}GH_AW_COMPILED_STRICT: "true"GH_AW_INFO_MODEL_COSTS: '{"providers":{"github-copilot":{"models":{"claude-sonnet-5":{"cost":{"cache_read":"2e-07","cache_write":"2.5e-06","input":"2e-06","output":"1e-05"}}}}}}'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -175,7 +179,7 @@ jobs:await main(core, context);- name: Restore daily AIC scan observationsid: restore-daily-aic-cache-fallback- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_HAS_SLASH_COMMAND: "false"@@ -191,7 +195,7 @@ jobs:await main();- name: Check daily workflow token guardrailid: daily-ai-credits-workflow-guardrail- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"@@ -213,7 +217,7 @@ jobs:const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Publish daily AIC scan observations- if: always() && env.GH_AW_MAX_DAILY_AI_CREDITS != ''+ if: always() && env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != ''continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -270,7 +274,8 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.92.0"+ GH_AW_COMPILED_VERSION: "v0.93.5"+ GH_AW_HAS_SAFE_OUTPUTS: "true"GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"with:@@ -301,7 +306,7 @@ jobs:GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}GH_AW_PROMPT_CONTENT_0000: "<system>\n"- GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, create_issue, create_pull_request(max:3), missing_tool, missing_data, noop(max:2)\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, create_issue, create_pull_request(max:3), report_missing_tool, report_missing_data, noop(max:2)\n"GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_7C248226__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_C19C384F__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_76DF9333__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_77C1A4D2__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"GH_AW_PROMPT_CONTENT_0004: "</system>\n"@@ -460,6 +465,7 @@ jobs:ai_credits_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.ai_credits_rate_limit_error || 'false' }}aic: ${{ steps.parse-token-usage.outputs.aic }}ambient_context: ${{ steps.parse-token-usage.outputs.ambient_context }}+ checkout_pr_invalidated: ${{ steps.checkout-pr.outputs.checkout_pr_invalidated || 'false' }}checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }}has_patch: ${{ steps.collect_output.outputs.has_patch }}http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}@@ -482,7 +488,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -491,8 +497,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-remediation.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Set runtime paths@@ -534,7 +540,7 @@ jobs:name: activationpath: /tmp/gh-aw- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -576,12 +582,12 @@ jobs:const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -610,7 +616,7 @@ 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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917 ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132- name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"@@ -621,7 +627,7 @@ jobs:env:GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"- GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_issue\":{\"assignees\":[\"akashchi\"],\"deduplicate_by_title\":true,\"labels\":[\"github_actions\"],\"max\":1,\"title_prefix\":\"[ci-doctor] \"},\"create_pull_request\":{\"assignees\":[\"akashchi\"],\"branch_prefix\":\"ci-doctor/\",\"draft\":true,\"labels\":[\"agentic-workflows\",\"automated-fix\"],\"max\":3,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"allowed\",\"reviewers\":[\"akashchi\"],\"title_prefix\":\"[ci-doctor] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_issue\":{\"assignees\":[\"akashchi\"],\"deduplicate_by_title\":true,\"labels\":[\"github_actions\"],\"max\":1,\"title_prefix\":\"[ci-doctor] \"},\"create_pull_request\":{\"assignees\":[\"akashchi\"],\"branch_prefix\":\"ci-doctor/\",\"draft\":true,\"labels\":[\"agentic-workflows\",\"automated-fix\"],\"max\":3,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"allowed\",\"reviewers\":[\"akashchi\"],\"title_prefix\":\"[ci-doctor] \"},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"with:script: |const path = require('path');@@ -783,7 +789,34 @@ jobs:}}},- "missing_data": {+ "noop": {+ "defaultMax": 2,+ "fields": {+ "message": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ }+ }+ },+ "report_incomplete": {+ "defaultMax": 5,+ "fields": {+ "details": {+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ },+ "reason": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 1024+ }+ }+ },+ "report_missing_data": {"defaultMax": 20,"fields": {"alternatives": {@@ -808,7 +841,7 @@ jobs:}}},- "missing_tool": {+ "report_missing_tool": {"defaultMax": 20,"fields": {"alternatives": {@@ -828,33 +861,6 @@ jobs:"maxLength": 128}}- },- "noop": {- "defaultMax": 2,- "fields": {- "message": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 65000- }- }- },- "report_incomplete": {- "defaultMax": 5,- "fields": {- "details": {- "type": "string",- "sanitize": true,- "maxLength": 65000- },- "reason": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 1024- }- }}}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -869,6 +875,7 @@ jobs:- name: Start MCP Gatewayid: start-mcp-gatewayenv:+ DEBUG: ${{ env.DEBUG || runner.debug == '1' && '*' || '' }}GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST: ${{ vars.GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST || 'true' }}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 }}@@ -905,22 +912,20 @@ jobs:export GH_AW_PR_HEAD_BASE_REF="${GH_AW_PR_HEAD_BASE_REF:-}"export GH_AW_PR_HEAD_REPO="${GH_AW_PR_HEAD_REPO:-}"export GH_AW_TARGET_REPO_SLUG="${GH_AW_TARGET_REPO_SLUG:-}"- export DEBUG="*"-export GH_AW_ENGINE="copilot"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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf'+ 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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442'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_ae7149b7fbe29884_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v2.0.2",+ "container": "ghcr.io/github/github-mcp-server:v2.0.3","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -937,13 +942,13 @@ jobs:},"safeoutputs": {"type": "stdio",- "container": "ghcr.io/github/gh-aw-node",+ "container": "ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],"args": ["-w", "\${GITHUB_WORKSPACE}"],"entrypoint": "sh","entrypointArgs": ["-c", "sh ${RUNNER_TEMP}/gh-aw/safeoutputs/start_safe_outputs_mcp.sh"],"env": {- "DEBUG": "*",+ "DEBUG": "\${DEBUG}","DEFAULT_BRANCH": "\${DEFAULT_BRANCH}","GH_AW_ASSETS_ALLOWED_EXTS": "\${GH_AW_ASSETS_ALLOWED_EXTS}","GH_AW_ASSETS_BRANCH": "\${GH_AW_ASSETS_BRANCH}",@@ -991,7 +996,7 @@ jobs:}}}- GH_AW_MCP_CONFIG_ae7149b7fbe29884_EOF+ GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1066,7 +1071,23 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="1000"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"*.pythonhosted.org\",\"anaconda.org\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"binstar.org\",\"bootstrap.pypa.io\",\"conda.anaconda.org\",\"conda.binstar.org\",\"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\",\"files.pythonhosted.org\",\"github.com\",\"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\",\"pip.pypa.io\",\"ppa.launchpad.net\",\"pypi.org\",\"pypi.python.org\",\"repo.anaconda.com\",\"repo.continuum.io\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":60},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -z "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ echo "ERR_ADMISSION: Missing required runtime admission allowance." >&2+ exit 1+ fi++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"*.pythonhosted.org\",\"anaconda.org\",\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"binstar.org\",\"bootstrap.pypa.io\",\"conda.anaconda.org\",\"conda.binstar.org\",\"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\",\"files.pythonhosted.org\",\"github.com\",\"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\",\"pip.pypa.io\",\"ppa.launchpad.net\",\"pypi.org\",\"pypi.python.org\",\"repo.anaconda.com\",\"repo.continuum.io\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":60},\"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=""@@ -1110,7 +1131,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: 60- GH_AW_VERSION: v0.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1176,6 +1197,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID"- name: Redact secrets in logs+ id: redact_secretsif: always()uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:@@ -1296,7 +1318,7 @@ jobs:# Small dedicated copy of the agent output so safe-output processing# survives a failed or timed-out upload of the larger agent artifact- name: Upload agent output fallback artifact- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1315,10 +1337,11 @@ jobs:/tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/model-routing.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/model-routing.jsonl+ /tmp/gh-aw/awf-resolved-config.jsonif-no-files-found: ignoreretention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Upload agent artifacts- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1339,6 +1362,7 @@ jobs:/tmp/gh-aw/runtime/aw_info.json/tmp/gh-aw/agent_usage.jsonl/tmp/gh-aw/agent/model-endpoint-mismatch.json+ /tmp/gh-aw/agent/model-resolution.json/tmp/gh-aw/agent-stdio.log/tmp/gh-aw/pre-agent-audit.txt/tmp/gh-aw/github_rate_limits.jsonl@@ -1349,6 +1373,7 @@ jobs:/tmp/gh-aw/aw-*.patch/tmp/gh-aw/aw-*.bundle/tmp/gh-aw/awf-config.json+ /tmp/gh-aw/awf-resolved-config.json/tmp/gh-aw/sandbox/firewall/logs//tmp/gh-aw/sandbox/firewall/audit//tmp/gh-aw/sandbox/firewall/awf-reflect.json@@ -1379,6 +1404,9 @@ jobs:cancel-in-progress: falsequeue: maxenv:+ GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"activation\",\"agent\":\"agent\",\"conclusion\":\"conclusion\",\"detection\":\"detection\",\"safe_outputs\":\"safe_outputs\"}"+ GH_AW_JOB_RESULTS: "{\"activation\":{\"result\":\"${{ needs.activation.result }}\"},\"agent\":{\"result\":\"${{ needs.agent.result }}\"},\"detection\":{\"result\":\"${{ needs.detection.result }}\"},\"safe_outputs\":{\"result\":\"${{ needs.safe_outputs.result }}\"}}"+ GH_AW_JOB_TIMING_ELIGIBLE: "{\"activation\":true,\"agent\":true,\"conclusion\":true,\"detection\":true,\"safe_outputs\":true}"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}outputs:incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }}@@ -1389,7 +1417,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1398,8 +1426,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-remediation.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download agent output artifact@@ -1541,6 +1569,7 @@ jobs:GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }}GH_AW_ENGINE_SECRET_FAILURE_MESSAGE: "**Alternative**: If your organization has a Copilot subscription, you can avoid the need for a personal access token by adding a top-level `permissions` block to your workflow file. This enables Copilot inference through the org using the built-in GitHub Actions token.\n\n```yaml\npermissions:\n copilot-requests: write\n```\n\nSee: https://github.github.com/gh-aw/reference/engines/#github-copilot-default"GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }}+ GH_AW_CHECKOUT_PR_INVALIDATED: ${{ needs.agent.outputs.checkout_pr_invalidated }}GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}GH_AW_UNKNOWN_MODEL_AI_CREDITS: ${{ needs.agent.outputs.unknown_model_ai_credits || 'false' }}GH_AW_AIC: ${{ needs.agent.outputs.aic }}@@ -1596,8 +1625,6 @@ jobs:GH_AW_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/ci-doctor-remediation.md"GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}- GH_AW_JOB_RESULTS: ${{ toJSON(needs) }}- GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"Activation\",\"agent\":\"Agent\",\"check_token_telemetry\":\"Check token telemetry\",\"conclusion\":\"Conclusion\",\"detection\":\"Detection\",\"evals\":\"Evaluations\",\"pre_activation\":\"Pre-activation\",\"push_evals_state\":\"Push evaluations state\",\"push_experiments_state\":\"Push experiments state\",\"push_ledger_changes\":\"Push ledger changes\",\"push_repo_memory\":\"Push repository memory\",\"safe_outputs\":\"Safe outputs\",\"send_slack_message\":\"Send Slack message\",\"unlock\":\"Unlock\",\"update_cache_memory\":\"Update cache memory\",\"update_drive_memory\":\"Update drive memory\",\"upload_assets\":\"Upload assets\",\"upload_code_coverage\":\"Upload code coverage\",\"upload_code_scanning_sarif\":\"Upload code scanning results\"}"GH_AW_REPORT_FAILED_JOBS: "true"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -1621,6 +1648,9 @@ jobs:continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:+ GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'+ GH_AW_GRADER_MANIFEST_CHUNKS: '1'+ GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}@@ -1721,10 +1751,11 @@ jobs:detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }}detection_reason: ${{ steps.detection_conclusion.outputs.reason }}detection_success: ${{ steps.detection_conclusion.outputs.success }}+ run_detection: ${{ steps.detection_guard.outputs.run_detection }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1733,8 +1764,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-remediation.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Download activation artifact@@ -1779,7 +1810,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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917- name: Check if detection neededid: detection_guardif: always()@@ -1805,6 +1836,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detection+ id: detection_setupif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -1827,26 +1859,26 @@ jobs:mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Setup Node.jsuses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install threat-detect binaryid: threat_detect_installif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: truerun: |- bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.2 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 b4ecda6a8f1ee09913c40b58e5e9d3337d2173618d41b1bfdef9207e4e7959b9 --sha256-arm64 f6260a0f9ad72bcb67c7af19c4ce262ca34e2c3d5ccbf912832a8bd277200904+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.3 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 7cfab3bd02717968a0584ddd3790cff22550059e36d6f656c4f35e9d27851009 --sha256-arm64 6f355949af98e7b5527a958ac11431bd7867db45c0191b94c3a205c662181cc6- name: Execute threat detection with AWFid: detection_agentic_execution- if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.threat_detect_install.outcome == 'success'+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_setup.outcome == 'success' && steps.detection_setup.outputs.ready == 'true' && steps.threat_detect_install.outcome == 'success'continue-on-error: truetimeout-minutes: 10env:@@ -1862,7 +1894,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 10- GH_AW_VERSION: v0.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1908,7 +1940,19 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="400"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":10},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":10},\"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=""@@ -1929,28 +1973,34 @@ jobs:# shellcheck disable=SC1003,SC2016,SC2086awf --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 GH_AW_OTLP_ALL_HEADERS --exclude-env GH_AW_OTLP_ENDPOINTS --exclude-env OTEL_EXPORTER_OTLP_ENDPOINT --exclude-env OTEL_EXPORTER_OTLP_HEADERS --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --session-state-dir /tmp/gh-aw/sandbox/agent/session-state --skip-pull \-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr "\n" ":")"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log- - name: Render detection log+ - name: Copy detection firewall logsif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi+ if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ - name: Redact secrets in detection logs+ id: redact_detection_logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}with:script: |const path = require('path');const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));- await main();- - name: Copy detection firewall logs- if: always() && steps.detection_guard.outputs.run_detection == 'true'- continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall- if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi- if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });- name: Parse threat detection token usage for step summaryid: parse_detection_token_usage- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -1967,8 +2017,38 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();+ - name: Redact secrets in detection artifacts+ id: redact_detection_artifacts+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'+ continue-on-error: true+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));+ await main();- name: Upload threat detection artifact- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:name: detection@@ -1983,7 +2063,7 @@ jobs:retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Conclude threat detectionid: detection_conclusion- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}@@ -1992,6 +2072,14 @@ jobs:GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"run: |bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.json+ - name: Upload skipped detection execution evidence+ if: always() && steps.detection_guard.outputs.run_detection == 'false'+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/execution.json+ if-no-files-found: ignore+ retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}safe_outputs:name: safe_outputs@@ -2017,6 +2105,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_SAFE_OUTPUT_MESSAGES: "{\"footer\":\"\\u003e Generated by [{workflow_name}]({run_url}) · [workflow definition]({agentic_workflow_url}){ai_credits_suffix}\"}"GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor-remediation"@@ -2046,7 +2135,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2055,8 +2144,8 @@ jobs:env:GH_AW_SETUP_WORKFLOW_NAME: "CI Doctor — Weekly Remediation"GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/ci-doctor-remediation.lock.yml@${{ github.ref }}- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_SETUP_AW_CONTEXT: ${{ inputs.aw_context }}- name: Mask OTLP telemetry headers@@ -2117,7 +2206,7 @@ jobs:GH_AW_ALLOWED_DOMAINS: "*.pythonhosted.org,anaconda.org,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,binstar.org,bootstrap.pypa.io,conda.anaconda.org,conda.binstar.org,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,files.pythonhosted.org,github.com,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,pip.pypa.io,ppa.launchpad.net,pypi.org,pypi.python.org,repo.anaconda.com,repo.continuum.io,s.symcb.com,s.symcd.com,security.ubuntu.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,\"target\":\"*\"},\"create_issue\":{\"assignees\":[\"akashchi\"],\"deduplicate_by_title\":true,\"labels\":[\"github_actions\"],\"max\":1,\"title_prefix\":\"[ci-doctor] \"},\"create_pull_request\":{\"assignees\":[\"akashchi\"],\"branch_prefix\":\"ci-doctor/\",\"draft\":true,\"labels\":[\"agentic-workflows\",\"automated-fix\"],\"max\":3,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"allowed\",\"reviewers\":[\"akashchi\"],\"title_prefix\":\"[ci-doctor] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1,\"target\":\"*\"},\"create_issue\":{\"assignees\":[\"akashchi\"],\"deduplicate_by_title\":true,\"labels\":[\"github_actions\"],\"max\":1,\"title_prefix\":\"[ci-doctor] \"},\"create_pull_request\":{\"assignees\":[\"akashchi\"],\"branch_prefix\":\"ci-doctor/\",\"draft\":true,\"labels\":[\"agentic-workflows\",\"automated-fix\"],\"max\":3,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"README.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"allowed\",\"reviewers\":[\"akashchi\"],\"title_prefix\":\"[ci-doctor] \"},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"GH_AW_CI_TRIGGER_TOKEN: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }}GH_AW_GITHUB_TOKEN_SOURCE: ${{ secrets.GH_AW_GITHUB_TOKEN != '' && 'pat' || 'github_actions' }}with:diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.ymlindex 3620fa85723..28ed3a237ba 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":"09d452810eeac331888feb0381a2126b5b6834a3eb2d66621010c40e043f162a","body_hash":"e84c9f12b75ec28444c6c676acb5c3e7ac7de92d4bcf7b7d62dcfc1dc3a3ac8e","compiler_version":"v0.92.0","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.96"}}-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"458b269006dcf88e3b5496b6fbecabe4b9a0f954","version":"v0.92.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57","digest":"sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57","digest":"sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57","digest":"sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.31","digest":"sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.2","digest":"sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","missing_data","missing_tool","noop","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}-# This file was automatically generated by gh-aw (v0.92.0). 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":"09d452810eeac331888feb0381a2126b5b6834a3eb2d66621010c40e043f162a","body_hash":"e84c9f12b75ec28444c6c676acb5c3e7ac7de92d4bcf7b7d62dcfc1dc3a3ac8e","compiler_version":"v0.93.5","strict":true,"agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.101"}}+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_DEFAULT_OTLP_ENDPOINT","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/setup-python","sha":"5fda3b95a4ea91299a34e894583c3862153e4b97","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"github/gh-aw-actions/setup","sha":"de9d416cac8ccea1a2d582cb07c4b7db96946792","version":"v0.93.5"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70","digest":"sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70","digest":"sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70","digest":"sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.37","digest":"sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v2.0.3","digest":"sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132","pinned_image":"ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"enabled"},"admission":false}+# This file was automatically generated by gh-aw (v0.93.5). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md## ___ _ _# / _ \ | | (_)@@ -49,15 +49,15 @@# - actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0# - actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0# - actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2-# - github/gh-aw-actions/setup@458b269006dcf88e3b5496b6fbecabe4b9a0f954 # v0.92.0+# - github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5## Container images used:-# - ghcr.io/github/gh-aw-firewall/agent:0.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a-# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc-# - ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac-# - ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf+# - ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34+# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a+# - ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917+# - ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442# - ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e-# - ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+# - ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132name: "CI Failure Doctor"on:@@ -124,7 +124,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -134,8 +134,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Mask OTLP telemetry headersrun: bash "${RUNNER_TEMP}/gh-aw/actions/mask_otlp_headers.sh"@@ -145,19 +145,23 @@ jobs:GH_AW_INFO_ENGINE_ID: "copilot"GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"GH_AW_INFO_MODEL: "claude-sonnet-5"- GH_AW_INFO_VERSION: "1.0.96"- GH_AW_INFO_AGENT_VERSION: "1.0.96"- GH_AW_INFO_CLI_VERSION: "v0.92.0"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AGENT_VERSION: "1.0.101"+ GH_AW_INFO_CLI_VERSION: "v0.93.5"GH_AW_INFO_WORKFLOW_NAME: "CI Failure Doctor"+ GH_AW_INFO_WORKFLOW_ID: ${{ job.workflow_ref }}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.28.57"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_AWMG_VERSION: ""GH_AW_INFO_FIREWALL_TYPE: "squid"GH_AW_INFO_AGENT_RUNTIME: ""+ GH_AW_INFO_ENGINE_HARNESS: "copilot-cli"+ GH_AW_INFO_MODEL_CONFIG: '{"routing":{"enabled":false},"models":{"allowed":[],"blocked":[]},"max_ai_credits_source":"default"}'+ GH_AW_INFO_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}GH_AW_COMPILED_STRICT: "true"GH_AW_INFO_MODEL_COSTS: '{"providers":{"github-copilot":{"models":{"claude-sonnet-5":{"cost":{"cache_read":"2e-07","cache_write":"2.5e-06","input":"2e-06","output":"1e-05"}}}}}}'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -171,7 +175,7 @@ jobs:await main(core, context);- name: Restore daily AIC scan observationsid: restore-daily-aic-cache-fallback- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_HAS_SLASH_COMMAND: "true"@@ -187,7 +191,7 @@ jobs:await main();- name: Check daily workflow token guardrailid: daily-ai-credits-workflow-guardrail- if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}+ if: ${{ env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:GH_AW_WORKFLOW_NAME: "CI Failure Doctor"@@ -209,7 +213,7 @@ jobs:const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));await main();- name: Publish daily AIC scan observations- if: always() && env.GH_AW_MAX_DAILY_AI_CREDITS != ''+ if: always() && env.GH_AW_ADMISSION_RESULT != 'admitted' && env.GH_AW_MAX_DAILY_AI_CREDITS != ''continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -281,7 +285,8 @@ jobs:- name: Check compile-agentic versionuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:- GH_AW_COMPILED_VERSION: "v0.92.0"+ GH_AW_COMPILED_VERSION: "v0.93.5"+ GH_AW_HAS_SAFE_OUTPUTS: "true"GH_AW_BLOCKED_VERSION_REPORT_AS_ISSUE: "true"GH_AW_WORKFLOW_NAME: "CI Failure Doctor"with:@@ -341,9 +346,8 @@ jobs:GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}GH_AW_INCLUDE_PR_CONTEXT: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request != null) || github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_review' }}GH_AW_STEPS_SANITIZED_OUTPUTS_TEXT: ${{ steps.sanitized.outputs.text }}- GH_AW_WIKI_NOTE: ${{ '' }}GH_AW_PROMPT_CONTENT_0000: "<system>\n"- GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, missing_tool, missing_data, noop(max:2)\n"+ GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment, report_missing_tool, report_missing_data, noop(max:2)\n"GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_7C248226__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_C19C384F__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_76DF9333__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_77C1A4D2__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n</github-context>\n\n"GH_AW_PROMPT_CONTENT_0004: "</system>\n"@@ -521,6 +525,7 @@ jobs:ai_credits_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.ai_credits_rate_limit_error || 'false' }}aic: ${{ steps.parse-token-usage.outputs.aic }}ambient_context: ${{ steps.parse-token-usage.outputs.ambient_context }}+ checkout_pr_invalidated: ${{ steps.checkout-pr.outputs.checkout_pr_invalidated || 'false' }}checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }}has_patch: ${{ steps.collect_output.outputs.has_patch }}http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}@@ -543,7 +548,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -552,8 +557,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Set runtime pathsid: set-runtime-paths@@ -604,7 +609,7 @@ jobs:CREATE_ORPHAN: truerun: bash "${RUNNER_TEMP}/gh-aw/actions/clone_repo_memory_branch.sh"- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -619,7 +624,7 @@ jobs:export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}python .github/scripts/agentic-workflows/download_failure_logs.py- name: Set up Python- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0with:python-version: "3.13"- name: Install PyGithub@@ -657,12 +662,12 @@ jobs:const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));await main();- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Determine automatic lockdown mode for GitHub MCP Serverid: determine-automatic-lockdownuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -691,7 +696,7 @@ 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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac ghcr.io/github/gh-aw-mcpg:v0.4.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.2@sha256:ffced0d76e77428532a2ced185516992d77fd146d69eec2f244e6237d1a97796+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917 ghcr.io/github/gh-aw-mcpg:v0.4.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442 ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e ghcr.io/github/github-mcp-server:v2.0.3@sha256:250bc6ce70788207608ef74cef4397230ff2e8481218da74d6093e4bd9101132- name: Prepare Safe Outputs Directoriesrun: |mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"@@ -702,7 +707,7 @@ jobs:env:GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"- GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"push_repo_memory\":{\"memories\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"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: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"push_repo_memory\":{\"memories\":[{\"allowed_extensions\":[\".md\",\".json\",\".jsonl\"],\"dir\":\"/tmp/gh-aw/repo-memory/default\",\"id\":\"default\",\"max_file_count\":100,\"max_file_size\":102400,\"max_patch_size\":10240}]},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"with:script: |const path = require('path');@@ -764,7 +769,44 @@ jobs:}}},- "missing_data": {+ "noop": {+ "defaultMax": 2,+ "fields": {+ "message": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ }+ }+ },+ "push_repo_memory": {+ "defaultMax": 1,+ "fields": {+ "memory_id": {+ "type": "string",+ "sanitize": true,+ "maxLength": 128+ }+ }+ },+ "report_incomplete": {+ "defaultMax": 5,+ "fields": {+ "details": {+ "type": "string",+ "sanitize": true,+ "maxLength": 65000+ },+ "reason": {+ "required": true,+ "type": "string",+ "sanitize": true,+ "maxLength": 1024+ }+ }+ },+ "report_missing_data": {"defaultMax": 20,"fields": {"alternatives": {@@ -789,7 +831,7 @@ jobs:}}},- "missing_tool": {+ "report_missing_tool": {"defaultMax": 20,"fields": {"alternatives": {@@ -809,43 +851,6 @@ jobs:"maxLength": 128}}- },- "noop": {- "defaultMax": 2,- "fields": {- "message": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 65000- }- }- },- "push_repo_memory": {- "defaultMax": 1,- "fields": {- "memory_id": {- "type": "string",- "sanitize": true,- "maxLength": 128- }- }- },- "report_incomplete": {- "defaultMax": 5,- "fields": {- "details": {- "type": "string",- "sanitize": true,- "maxLength": 65000- },- "reason": {- "required": true,- "type": "string",- "sanitize": true,- "maxLength": 1024- }- }}}uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0@@ -860,6 +865,7 @@ jobs:- name: Start MCP Gatewayid: start-mcp-gatewayenv:+ DEBUG: ${{ env.DEBUG || runner.debug == '1' && '*' || '' }}GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST: ${{ vars.GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST || 'true' }}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 }}@@ -896,22 +902,20 @@ jobs:export GH_AW_PR_HEAD_BASE_REF="${GH_AW_PR_HEAD_BASE_REF:-}"export GH_AW_PR_HEAD_REPO="${GH_AW_PR_HEAD_REPO:-}"export GH_AW_TARGET_REPO_SLUG="${GH_AW_TARGET_REPO_SLUG:-}"- export DEBUG="*"-export GH_AW_ENGINE="copilot"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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.31@sha256:dbec0f2ddef6adf83b7764019323096e3e5cc0f3886255f6320555b7fe2a7caf'+ 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_AGENT_ID -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_TARGET_REPO_SLUG -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -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 -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -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.37@sha256:9c7f242f6dec2d7d7b55d4c9e07872d59b85377c6cb3de46c915a5d1ffb91442'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_ae7149b7fbe29884_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"+ cat << GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"{"mcpServers": {"github": {"type": "stdio",- "container": "ghcr.io/github/github-mcp-server:v2.0.2",+ "container": "ghcr.io/github/github-mcp-server:v2.0.3","env": {"GITHUB_FEATURES": "fields_param","GITHUB_HOST": "${GITHUB_SERVER_URL}",@@ -928,13 +932,13 @@ jobs:},"safeoutputs": {"type": "stdio",- "container": "ghcr.io/github/gh-aw-node",+ "container": "ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],"args": ["-w", "\${GITHUB_WORKSPACE}"],"entrypoint": "sh","entrypointArgs": ["-c", "sh ${RUNNER_TEMP}/gh-aw/safeoutputs/start_safe_outputs_mcp.sh"],"env": {- "DEBUG": "*",+ "DEBUG": "\${DEBUG}","DEFAULT_BRANCH": "\${DEFAULT_BRANCH}","GH_AW_ASSETS_ALLOWED_EXTS": "\${GH_AW_ASSETS_ALLOWED_EXTS}","GH_AW_ASSETS_BRANCH": "\${GH_AW_ASSETS_BRANCH}",@@ -982,7 +986,7 @@ jobs:}}}- GH_AW_MCP_CONFIG_ae7149b7fbe29884_EOF+ GH_AW_MCP_CONFIG_e9c0d80371289ba3_EOF- name: Mount MCP servers as CLIsid: mount-mcp-cliscontinue-on-error: true@@ -1053,7 +1057,23 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="1000"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":20},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"+ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -z "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ echo "ERR_ADMISSION: Missing required runtime admission allowance." >&2+ exit 1+ fi++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"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\",\"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\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.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,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":20},\"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=""@@ -1097,7 +1117,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.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1163,6 +1183,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID"- name: Redact secrets in logs+ id: redact_secretsif: always()uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0with:@@ -1314,7 +1335,7 @@ jobs:# Small dedicated copy of the agent output so safe-output processing# survives a failed or timed-out upload of the larger agent artifact- name: Upload agent output fallback artifact- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1333,10 +1354,11 @@ jobs:/tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs/model-routing.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/token-usage.jsonl/tmp/gh-aw/sandbox/firewall/audit/api-proxy-logs/model-routing.jsonl+ /tmp/gh-aw/awf-resolved-config.jsonif-no-files-found: ignoreretention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Upload agent artifacts- if: always()+ if: always() && steps.redact_secrets.outcome == 'success'continue-on-error: trueuses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:@@ -1357,6 +1379,7 @@ jobs:/tmp/gh-aw/runtime/aw_info.json/tmp/gh-aw/agent_usage.jsonl/tmp/gh-aw/agent/model-endpoint-mismatch.json+ /tmp/gh-aw/agent/model-resolution.json/tmp/gh-aw/agent-stdio.log/tmp/gh-aw/pre-agent-audit.txt/tmp/gh-aw/github_rate_limits.jsonl@@ -1367,6 +1390,7 @@ jobs:/tmp/gh-aw/aw-*.patch/tmp/gh-aw/aw-*.bundle/tmp/gh-aw/awf-config.json+ /tmp/gh-aw/awf-resolved-config.json/tmp/gh-aw/sandbox/firewall/logs//tmp/gh-aw/sandbox/firewall/audit//tmp/gh-aw/sandbox/firewall/awf-reflect.json@@ -1397,6 +1421,9 @@ jobs:cancel-in-progress: falsequeue: maxenv:+ GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"activation\",\"agent\":\"agent\",\"conclusion\":\"conclusion\",\"detection\":\"detection\",\"pre_activation\":\"pre_activation\",\"push_repo_memory\":\"push_repo_memory\",\"safe_outputs\":\"safe_outputs\"}"+ GH_AW_JOB_RESULTS: "{\"activation\":{\"result\":\"${{ needs.activation.result }}\"},\"agent\":{\"result\":\"${{ needs.agent.result }}\"},\"detection\":{\"result\":\"${{ needs.detection.result }}\"},\"push_repo_memory\":{\"result\":\"${{ needs.push_repo_memory.result }}\"},\"safe_outputs\":{\"result\":\"${{ needs.safe_outputs.result }}\"}}"+ GH_AW_JOB_TIMING_ELIGIBLE: "{\"activation\":true,\"agent\":true,\"conclusion\":true,\"detection\":true,\"pre_activation\":true,\"push_repo_memory\":true,\"safe_outputs\":true}"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}outputs:incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }}@@ -1407,7 +1434,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1416,8 +1443,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download agent output artifactid: download-agent-output@@ -1558,6 +1585,7 @@ jobs:GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }}GH_AW_ENGINE_SECRET_FAILURE_MESSAGE: "**Alternative**: If your organization has a Copilot subscription, you can avoid the need for a personal access token by adding a top-level `permissions` block to your workflow file. This enables Copilot inference through the org using the built-in GitHub Actions token.\n\n```yaml\npermissions:\n copilot-requests: write\n```\n\nSee: https://github.github.com/gh-aw/reference/engines/#github-copilot-default"GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }}+ GH_AW_CHECKOUT_PR_INVALIDATED: ${{ needs.agent.outputs.checkout_pr_invalidated }}GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}GH_AW_UNKNOWN_MODEL_AI_CREDITS: ${{ needs.agent.outputs.unknown_model_ai_credits || 'false' }}GH_AW_AIC: ${{ needs.agent.outputs.aic }}@@ -1614,8 +1642,6 @@ jobs: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_JOB_RESULTS: ${{ toJSON(needs) }}- GH_AW_JOB_DISPLAY_NAMES: "{\"activation\":\"Activation\",\"agent\":\"Agent\",\"check_token_telemetry\":\"Check token telemetry\",\"conclusion\":\"Conclusion\",\"detection\":\"Detection\",\"evals\":\"Evaluations\",\"pre_activation\":\"Pre-activation\",\"push_evals_state\":\"Push evaluations state\",\"push_experiments_state\":\"Push experiments state\",\"push_ledger_changes\":\"Push ledger changes\",\"push_repo_memory\":\"Push repository memory\",\"safe_outputs\":\"Safe outputs\",\"send_slack_message\":\"Send Slack message\",\"unlock\":\"Unlock\",\"update_cache_memory\":\"Update cache memory\",\"update_drive_memory\":\"Update drive memory\",\"upload_assets\":\"Upload assets\",\"upload_code_coverage\":\"Upload code coverage\",\"upload_code_scanning_sarif\":\"Upload code scanning results\"}"GH_AW_REPORT_FAILED_JOBS: "true"with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}@@ -1663,6 +1689,9 @@ jobs:continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:+ GH_AW_GRADER_MANIFEST_0: '{"version":2,"graders":[]}'+ GH_AW_GRADER_MANIFEST_CHUNKS: '1'+ GH_AW_JOB_DURATIONS: ${{ steps.report_failed_jobs.outputs.job_durations }}GH_AW_DAILY_AI_CREDITS_GUARDRAIL_STATUS: ${{ needs.activation.outputs.daily_ai_credits_guardrail_status }}GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}GH_AW_DAILY_AI_CREDITS_TOTAL: ${{ needs.activation.outputs.daily_ai_credits_total }}@@ -1763,10 +1792,11 @@ jobs:detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }}detection_reason: ${{ steps.detection_conclusion.outputs.reason }}detection_success: ${{ steps.detection_conclusion.outputs.success }}+ run_detection: ${{ steps.detection_guard.outputs.run_detection }}steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -1775,8 +1805,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Download activation artifactcontinue-on-error: true@@ -1820,7 +1850,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.28.57@sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a ghcr.io/github/gh-aw-firewall/api-proxy:0.28.57@sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc ghcr.io/github/gh-aw-firewall/squid:0.28.57@sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac+ run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.70@sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.70@sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a ghcr.io/github/gh-aw-firewall/squid:0.28.70@sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917- name: Check if detection neededid: detection_guardif: always()@@ -1846,6 +1876,7 @@ jobs:run: |bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"- name: Setup threat detection+ id: detection_setupif: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -1868,26 +1899,26 @@ jobs:mkdir -p /tmp/gh-aw/threat-detectiontouch /tmp/gh-aw/threat-detection/detection.log- name: Install AWF binary- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.57 --rootless+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.70 --rootless- name: Setup Node.jsuses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0with:node-version: '24'package-manager-cache: false- name: Install GitHub Copilot CLI- run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"+ run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh" 1.0.101 --checksums-sha256 018625eac68670d66ede904b9b82cdcd6ab8f87ba20e6e1fbdf0b62c8295d5be --prefer-toolcacheenv:GH_HOST: github.com- GH_AW_COMPILED_VERSION: v0.92.0+ GH_AW_COPILOT_MIN_VERSION: 1.0.35- name: Install threat-detect binaryid: threat_detect_installif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: truerun: |- bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.2 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 b4ecda6a8f1ee09913c40b58e5e9d3337d2173618d41b1bfdef9207e4e7959b9 --sha256-arm64 f6260a0f9ad72bcb67c7af19c4ce262ca34e2c3d5ccbf912832a8bd277200904+ bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.3 --artifact-base-url https://github.com/github/gh-aw-threat-detection/releases/download --sha256-amd64 7cfab3bd02717968a0584ddd3790cff22550059e36d6f656c4f35e9d27851009 --sha256-arm64 6f355949af98e7b5527a958ac11431bd7867db45c0191b94c3a205c662181cc6- name: Execute threat detection with AWFid: detection_agentic_execution- if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.threat_detect_install.outcome == 'success'+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.detection_setup.outcome == 'success' && steps.detection_setup.outputs.ready == 'true' && steps.threat_detect_install.outcome == 'success'continue-on-error: truetimeout-minutes: 10env:@@ -1903,7 +1934,7 @@ jobs:GH_AW_PHASE: detectionGH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txtGH_AW_TIMEOUT_MINUTES: 10- GH_AW_VERSION: v0.92.0+ GH_AW_VERSION: v0.93.5GITHUB_API_URL: ${{ github.api_url }}GITHUB_AW: trueGITHUB_COPILOT_INTEGRATION_ID: agentic-workflows@@ -1949,7 +1980,19 @@ jobs:if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; thenGH_AW_MAX_AI_CREDITS="400"fi- printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.57/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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.28.57,squid=sha256:be808c16b535ebabd070eebe086fe6bffd5bb86b2e5fe8e5cdad30068eb9c0ac,agent=sha256:a9861b2fad1d29c586bbbf98840a61056e30e2720d8d9ec2c0def9049566bd8a,api-proxy=sha256:f2925ff32dc972a5d8b90a7785b6ca68052efd2575fe896556ac457e22e86dcc,cli-proxy=sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641\",\"agentTimeout\":10},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"++ if [[ "${GH_AW_ADMISSION_RESULT:-}" == "admitted" && -n "${GH_AW_ADMISSION_MAX_AI_CREDITS:-}" ]]; then+ if [[ ! "$GH_AW_ADMISSION_MAX_AI_CREDITS" =~ ^[1-9][0-9]{0,9}$ ]] || (( GH_AW_ADMISSION_MAX_AI_CREDITS > 2147483647 )); then+ echo "ERR_ADMISSION: Invalid runtime admission allowance." >&2+ exit 1+ fi+ GH_AW_MAX_AI_CREDITS="$GH_AW_ADMISSION_MAX_AI_CREDITS"+ echo "Admission allowance applied (value withheld)."+ else+ echo "No component admission allowance; retaining existing budget policy (value withheld)."+ fi+ unset GH_AW_ADMISSION_RESULT GH_AW_ADMISSION_MAX_AI_CREDITS+ printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.70/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"providers\":{\"github-copilot\":{\"models\":{\"claude-sonnet-5\":{\"cost\":{\"cache_read\":\"2e-07\",\"cache_write\":\"2.5e-06\",\"input\":\"2e-06\",\"output\":\"1e-05\"}}}}},\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-6\",\"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-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-3.8-flash\":[\"copilot/gemini-3.8*flash*\",\"google/gemini-3.8*flash*\",\"gemini/gemini-3.8*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*\"],\"gpt-6\":[\"copilot/gpt-6*\",\"openai/gpt-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-6\",\"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*\"],\"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.28.70,squid=sha256:b5bc53f4becfd96e926e63c83831f1b3c9512f713c83161d2b8c9b7204b3e917,agent=sha256:b15ab48cbbab02904eb9bbd359a398db59690eebbea1e6934d47ed2bb407dd34,api-proxy=sha256:9ac8f9c7294e892c916de3da9d2588dfd8cd4931e5c39b00143266d7ed9fd52a,cli-proxy=sha256:372ac51a5cccffdfe484f3f7be427d2d1c566e8ae550d55bd45d9fd166a154b4\",\"agentTimeout\":10},\"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=""@@ -1970,28 +2013,34 @@ jobs:# shellcheck disable=SC1003,SC2016,SC2086awf --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 GH_AW_OTLP_ALL_HEADERS --exclude-env GH_AW_OTLP_ENDPOINTS --exclude-env OTEL_EXPORTER_OTLP_ENDPOINT --exclude-env OTEL_EXPORTER_OTLP_HEADERS --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --session-state-dir /tmp/gh-aw/sandbox/agent/session-state --skip-pull \-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr "\n" ":")"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log- - name: Render detection log+ - name: Copy detection firewall logsif: always() && steps.detection_guard.outputs.run_detection == 'true'continue-on-error: true+ run: |+ mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall+ if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi+ if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ - name: Redact secrets in detection logs+ id: redact_detection_logs+ if: always() && steps.detection_guard.outputs.run_detection == 'true'uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}with:script: |const path = require('path');const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));setupGlobals(core, github, context, exec, io, getOctokit);- const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));- await main();- - name: Copy detection firewall logs- if: always() && steps.detection_guard.outputs.run_detection == 'true'- continue-on-error: true- run: |- mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall- if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi- if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });- name: Parse threat detection token usage for step summaryid: parse_detection_token_usage- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success'continue-on-error: trueuses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0env:@@ -2008,8 +2057,38 @@ jobs:setupGlobals(core, github, context, exec, io, getOctokit);const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));await main();+ - name: Redact secrets in detection artifacts+ id: redact_detection_artifacts+ if: always() && steps.detection_guard.outputs.run_detection == 'true'+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_DEFAULT_OTLP_ENDPOINT,GH_AW_DEFAULT_OTLP_HEADERS'+ SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}+ SECRET_GH_AW_DEFAULT_OTLP_ENDPOINT: ${{ secrets.GH_AW_DEFAULT_OTLP_ENDPOINT }}+ SECRET_GH_AW_DEFAULT_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));+ const { persistDetectionMasks } = require(path.join(actionsDir, 'detection_mask_state.cjs'));+ await main({ additionalDirectories: ["/tmp/gh-aw/threat-detection/sandbox/firewall"], persistDetectionMasks });+ - name: Render detection log+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'+ continue-on-error: true+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const path = require('path');+ const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');+ const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));+ setupGlobals(core, github, context, exec, io, getOctokit);+ const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));+ await main();- name: Upload threat detection artifact- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success'uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2with:name: detection@@ -2024,7 +2103,7 @@ jobs:retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}- name: Conclude threat detectionid: detection_conclusion- if: always()+ if: always() && steps.detection_guard.outputs.run_detection == 'false' || (always() && steps.detection_guard.outputs.run_detection == 'true' && steps.redact_detection_logs.outcome == 'success' && steps.redact_detection_artifacts.outcome == 'success')continue-on-error: trueenv:RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}@@ -2033,6 +2112,14 @@ jobs:GH_AW_DETECTION_CONTINUE_ON_ERROR: "true"run: |bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.json+ - name: Upload skipped detection execution evidence+ if: always() && steps.detection_guard.outputs.run_detection == 'false'+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2+ with:+ name: detection+ path: /tmp/gh-aw/threat-detection/execution.json+ if-no-files-found: ignore+ retention-days: ${{ vars.GH_AW_DEFAULT_ARTIFACT_RETENTION_DAYS || '0' }}pre_activation:name: pre_activation@@ -2049,15 +2136,15 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with: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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Check command positionid: check_command_position@@ -2112,7 +2199,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2121,8 +2208,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Checkout repositoryuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1@@ -2197,6 +2284,7 @@ jobs:GH_AW_ENGINE_ID: "copilot"GH_AW_ENGINE_MODEL: "claude-sonnet-5"GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}+ GH_AW_RUN_DETECTION: ${{ needs.detection.outputs.run_detection }}GH_AW_SAFE_OUTPUT_MESSAGES: "{\"footer\":\"\\u003e Generated by [{workflow_name}]({run_url})\"}"GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}GH_AW_WORKFLOW_ID: "ci-doctor"@@ -2221,7 +2309,7 @@ jobs:steps:- name: Setup Scriptsid: setup- uses: github/gh-aw-actions/setup@d9128eb3ea40c18b77c76184eda03c0ff2608d79 # v0.93.2+ uses: github/gh-aw-actions/setup@de9d416cac8ccea1a2d582cb07c4b7db96946792 # v0.93.5with:destination: ${{ runner.temp }}/gh-aw/actionsjob-name: ${{ github.job }}@@ -2230,8 +2318,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.96"- GH_AW_INFO_AWF_VERSION: "v0.28.57"+ GH_AW_INFO_VERSION: "1.0.101"+ GH_AW_INFO_AWF_VERSION: "v0.28.70"GH_AW_INFO_ENGINE_ID: "copilot"- name: Mask OTLP telemetry headersrun: bash "${RUNNER_TEMP}/gh-aw/actions/mask_otlp_headers.sh"@@ -2272,7 +2360,7 @@ jobs:GH_AW_ALLOWED_DOMAINS: "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,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,s.symcb.com,s.symcd.com,security.ubuntu.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\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{}}"+ GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":1},\"create_report_incomplete_issue\":{},\"noop\":{\"max\":2,\"report-as-issue\":\"false\"},\"report_incomplete\":{},\"report_missing_data\":{},\"report_missing_tool\":{}}"GH_AW_GITHUB_TOKEN_SOURCE: ${{ secrets.GH_AW_GITHUB_TOKEN != '' && 'pat' || 'github_actions' }}with:github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/shared/agentic-workflows/propose-rerun-pattern.md b/.github/workflows/shared/agentic-workflows/propose-rerun-pattern.mdnew file mode 100644index 00000000000..757988c3143--- /dev/null+++ b/.github/workflows/shared/agentic-workflows/propose-rerun-pattern.md@@ -0,0 +1,104 @@+---+description: |+ Shared custom safe-output job for the CI Doctor MQ workflow.+ Proposes a new workflow-rerunner search string for HUMAN REVIEW. The agent+ never writes rerunner-consumed strings itself: this job validates the+ candidate deterministically (transient category, specificity, verbatim log+ evidence, no overlap with errors_to_look_for.json or open proposals, no+ previously proposed signature) and, if it passes, opens a pull request against+ the default branch appending one entry to+ .github/scripts/workflow_rerun/errors_to_look_for.json. The string becomes+ active only once a maintainer merges the PR.+safe-outputs:+ jobs:+ propose-rerun-pattern:+ description: "Propose a workflow-rerunner search string for human review. Call at most once, and ONLY for a transient failure (Flaky Test, Infrastructure, Network, External Service) whose verified rerun_search_string candidate is non-null and not already approved. The job validates the candidate and opens a pull request adding it to .github/scripts/workflow_rerun/errors_to_look_for.json; nothing is re-run until a maintainer merges it. Rejected or duplicate candidates are skipped silently."+ runs-on: ubuntu-latest+ output: "Rerun pattern proposal submitted for review."+ permissions:+ contents: read # sparse-checkout of the job script; all writes use RERUNNER_DB_UPDATE+ inputs:+ signature_hash:+ description: "The <signature-hash> of the current failure's pattern record (file name of mq/patterns/<signature-hash>.json)."+ required: true+ type: string+ rerun_search_string:+ description: "The verified rerun_search_string candidate: a short, stable substring copied from a single raw failure log line, specific to this transient failure (not a step name or generic phrase)."+ required: true+ type: string+ category:+ description: "Failure category; must be one of Flaky Test, Infrastructure, Network, External Service."+ required: true+ type: string+ title:+ description: "Short human-readable failure title (same as notify_teams.title)."+ required: true+ type: string+ sample_log_line:+ description: "The verbatim raw log line (from the pre-downloaded logs) that contains rerun_search_string. Used as review evidence and re-verified by the job."+ required: true+ type: string+ pipeline_url:+ description: "URL of the analysed failed workflow run (evidence run)."+ required: true+ type: string+ reason:+ description: "One-line justification of why a plain rerun fixes this failure."+ required: true+ type: string+ steps:+ - name: Checkout agentic-workflow scripts+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ sparse-checkout: .github/scripts/agentic-workflows+ persist-credentials: false+ - name: Set up Python+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0+ with:+ python-version: '3.13'+ - name: Install PyGithub+ run: python -m pip install --quiet PyGithub==2.9.1+ - name: Propose rerun pattern+ env:+ GH_TOKEN: ${{ secrets.RERUNNER_DB_UPDATE }}+ ERRORS_TO_LOOK_FOR_PATH: .github/scripts/workflow_rerun/errors_to_look_for.json+ PR_LABELS: "category: CI,github_actions,agentic-workflows"+ PR_REVIEWERS: akashchi+ run: |+ export PYTHONPATH=.github/scripts/agentic-workflows/:${PYTHONPATH}+ python .github/scripts/agentic-workflows/propose_rerun_pattern.py+---++# CI Doctor MQ — Propose Rerun Pattern++Shared definition of the `propose-rerun-pattern` custom safe-output job used by+the CI Doctor Merge Queue workflow.++The workflow rerunner (`.github/workflows/workflow_rerunner.yml`) re-runs every+failed monitored pipeline whose log contains a search string from+`.github/scripts/workflow_rerun/errors_to_look_for.json`. A string that is too+generic makes it restart almost every failing pipeline, so new strings are never+added by the agent directly. Instead:++1. The agent computes and verifies a `rerun_search_string` candidate (stored+ only as informational metadata on its `mq/patterns/<hash>.json` record) and+ calls `propose_rerun_pattern`.+2. This job (`.github/scripts/agentic-workflows/propose_rerun_pattern.py`)+ re-validates it:+ - transient category only;+ - at least 3 words / 15 characters after normalization, not made up only of+ generic words or runner boilerplate, not a hash, no URL;+ - a substring of the supplied verbatim `sample_log_line`, which must not be a+ `##[group]` step header;+ - no overlap with `errors_to_look_for.json` on the default branch or with+ entries added by other open proposal PRs;+ - the signature has never been proposed before (a closed PR counts as a+ rejection and is not re-proposed).+3. If it passes, the job creates branch `ci-doctor/rerun-pattern/<hash>` off the+ default branch, appends `{"error_text", "ticket": 9999999, "category"}` to+ `errors_to_look_for.json`, and opens a PR with the configured labels and+ reviewers.++Merging the PR activates the string; closing it rejects it permanently. The+branch, commit and PR are created with the `RERUNNER_DB_UPDATE` token (not the+workflow `GITHUB_TOKEN`), so the PR triggers CI like any other PR.diff --git a/.github/workflows/workflow_rerunner.yml b/.github/workflows/workflow_rerunner.ymlindex cf667160ac3..66c02fdec8c 100644--- a/.github/workflows/workflow_rerunner.yml+++ b/.github/workflows/workflow_rerunner.yml@@ -47,15 +47,6 @@ jobs:with:sparse-checkout: '.github/scripts/workflow_rerun'- - name: Checkout CI Doctor MQ patterns- uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries- timeout-minutes: 15- continue-on-error: true- with:- ref: memory/ci-doctor-mq- sparse-checkout: 'mq/patterns'- path: ci-doctor-patterns-- name: Setup Pythonuses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0with:@@ -83,8 +74,7 @@ jobs:python3 ${{ github.workspace }}/.github/scripts/workflow_rerun/rerunner.py \--run-id ${{ github.event.workflow_run.id }} \--rerunner-run-id ${{ github.run_id }} \- --repository-name ${GITHUB_REPOSITORY} \- --patterns-dir ${{ github.workspace }}/ci-doctor-patterns/mq/patterns+ --repository-name ${GITHUB_REPOSITORY}rerunner_tests:name: Rerunner Tests@@ -98,16 +88,6 @@ jobs:sparse-checkout: '.github/scripts/workflow_rerun'lfs: false- - name: Checkout CI Doctor MQ patterns- uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries- timeout-minutes: 15- continue-on-error: true- with:- repository: openvinotoolkit/openvino- ref: memory/ci-doctor-mq- sparse-checkout: 'mq/patterns'- path: ci-doctor-patterns-- name: Setup Pythonuses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0with:@@ -137,6 +117,3 @@ jobs:run_id=$(python3 -c "from github import Github, Auth; import os; from datetime import datetime, timedelta, timezone; github=Github(auth=Auth.Token(token=os.environ.get('GITHUB_TOKEN'))); repo = github.get_repo('${GITHUB_REPOSITORY}'); cutoff_date=(datetime.now(timezone.utc)-timedelta(days=14)).date().isoformat(); runs=repo.get_workflow_runs(status='success', created=f'>={cutoff_date}'); print(runs[0].id)")python3 rerunner.py --repository-name ${GITHUB_REPOSITORY} --run-id $run_id --rerunner-run-id ${{ github.run_id }} --dry-run-- # Same as above, but additionally exercising the CI Doctor MQ patterns integration- python3 rerunner.py --repository-name ${GITHUB_REPOSITORY} --run-id $run_id --rerunner-run-id ${{ github.run_id }} --patterns-dir ${{ github.workspace }}/ci-doctor-patterns/mq/patterns --dry-rundiff --git a/docs/dev/ci/github_actions/agentic_workflows.md b/docs/dev/ci/github_actions/agentic_workflows.mdindex 6e140308e50..11e0ca9bea9 100644--- a/docs/dev/ci/github_actions/agentic_workflows.md+++ b/docs/dev/ci/github_actions/agentic_workflows.md@@ -165,10 +165,15 @@ on:workflow_run:workflows: ["Linux (Ubuntu 22.04, Python 3.11)", "Windows (VS 2022, Python 3.11, Release)", ...]types: [completed]+ branches: ["gh-readonly-queue/**"]if: ${{ github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'merge_group') }}```+`gh aw compile` requires a positive `workflow_run.branches` scope (check `CTR-021`). Merge-queue runs+always execute on GitHub-created `gh-readonly-queue/<base>/pr-<N>-<sha>` branches in this repository,+including for PRs from forks, so `gh-readonly-queue/**` still covers every merge-queue failure.+A `workflow_dispatch` entry (with `run_id` or `link` inputs) is also provided for manual testing.**What it does / benefits**@@ -183,6 +188,10 @@ A `workflow_dispatch` entry (with `run_id` or `link` inputs) is also provided fo`remediate_transient_failure` safe output; that job resolves the PR's live merge-queue status anddecides on its own whether to re-run only the failed jobs (PR still queued) or re-add the PR to themerge queue (PR dropped). The agent never reasons about queue status.+* **Rerun-pattern proposals**: for a transient failure with a verified `rerun_search_string`+ candidate, the agent calls `propose_rerun_pattern`, which opens a **human-review pull request** against+ `master` adding it to `errors_to_look_for.json`. The workflow rerunner only uses a string after that PR is merged — see+ [Automated re-run integration](#automated-re-run-integration).**Algorithm** The body defines a seven-phase protocol:@@ -200,7 +209,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`, `remediate_transient_failure`, `noop`, or+`notify_teams_recurring`, `add_comment`, `remediate_transient_failure`, `propose_rerun_pattern`, `noop`, or`missing_data`.## CI Doctor — Post-Commit (automatic)@@ -331,6 +340,7 @@ inputs, permissions, or step wiring, edit the shared `.md` and recompile.| [`notify-teams.md`](../../../../.github/workflows/shared/agentic-workflows/notify-teams.md) | Safe-output job | MQ, Post-Commit | Send the investigation summary to Microsoft Teams; upload the statistics artifact. A `source` input selects the `[MQ]` / `[PC]` badge and the artifact name. || [`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. || [`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). |+| [`propose-rerun-pattern.md`](../../../../.github/workflows/shared/agentic-workflows/propose-rerun-pattern.md) | Safe-output job | MQ | Re-validate a `rerun_search_string` candidate and open a human-review PR against `master` appending it to `errors_to_look_for.json`. |**`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)@@ -359,6 +369,25 @@ already carry the CI Doctor re-add marker comment). It uses the default `GITHUB_`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).+**`propose-rerun-pattern.md`** defines the `propose-rerun-pattern` job+([`propose_rerun_pattern.py`](../../../../.github/scripts/agentic-workflows/propose_rerun_pattern.py)),+the only path by which a new rerun search string can reach the workflow rerunner. It re-validates the+agent's candidate (transient category only; at least 3 words / 15 characters after normalization; not+just generic words, step boilerplate, or a hash; no URLs, which would pin it to one dependency release;+must occur in the supplied verbatim log line, which must contain no CR/LF characters and must+not be a step `##[group]` header) and de-duplicates it against+[`errors_to_look_for.json`](../../../../.github/scripts/workflow_rerun/errors_to_look_for.json) on the+default branch, entries added by other open proposal PRs, and any earlier PR for the same signature (a+closed, unmerged PR counts as a rejection and is never re-proposed). If the candidate passes, it creates+branch `ci-doctor/rerun-pattern/<signature-hash>` from the default branch, appends+`{"error_text": ..., "ticket": 9999999, "category": ...}` to `errors_to_look_for.json`, and opens a PR+with a review checklist, labels, and requested reviewers. Concurrent proposals all+append to the end of the file, so after one is merged the others need a trivial rebase. Skipped proposals are reported in the job summary and do not fail the run. All writes (branch,+commit, PR, labels, reviewers) use the `RERUNNER_DB_UPDATE` secret, so the PR triggers CI normally; the+job's own `GITHUB_TOKEN` is limited to `contents: read`.+If an open proposal's error database cannot be read or parsed, the job fails instead of opening a new+PR with an incomplete overlap check.+### Shared prompt fragmentsThe Merge Queue and Post-Commit doctors run the *same* investigation protocol; they differ only in the@@ -399,8 +428,9 @@ The shared fragments explicitly point the agent at the trailingand takes precedence on conflict. The workflow `.md` bodies hold only those additions:* [`ci-doctor-mq.md`](../../../../.github/workflows/ci-doctor-mq.md): the pre-collected PR context, the- `rerun_search_string` pattern field (compute, verify, backfill), Phase 5.5 recurrence escalation, and- the `add_comment` / `notify_teams_recurring` / `remediate_transient_failure` safe-output guidance and+ `rerun_search_string` pattern field (compute and verify a candidate; no backfill of other records),+ Phase 5.5 recurrence escalation, and the `add_comment` / `notify_teams_recurring` /+ `remediate_transient_failure` / `propose_rerun_pattern` safe-output guidance andvalid call combinations.* [`ci-doctor-post-commit.md`](../../../../.github/workflows/ci-doctor-post-commit.md): the`master`-only scope, the report-only rule, how PR context may be inferred from the commit, and the@@ -479,14 +509,25 @@ Teams escalation.### Automated re-run integration-Pattern records also carry a `rerun_search_string` that feeds the static-[`workflow_rerun`](../../../../.github/scripts/workflow_rerun) tooling. For **transient** categories-(`Flaky Test`, `Infrastructure`, `Network`, `External Service`) the agent stores a short, stable-substring taken verbatim from a real failure log line; for deterministic categories it stores `null` so-the re-runner never loops on an unfixable failure. The string is verified against the exact matcher in-[`log_analyzer.py`](../../../../.github/scripts/workflow_rerun/log_analyzer.py) — the same mechanism that-backs the static entries in-[`errors_to_look_for.json`](../../../../.github/scripts/workflow_rerun/errors_to_look_for.json).+The [`workflow_rerun`](../../../../.github/scripts/workflow_rerun) tooling re-runs **every** failed+monitored pipeline whose logs contain a known transient error string, so each string it uses must be+specific. It reads a single, **human-reviewed** source:+[`errors_to_look_for.json`](../../../../.github/scripts/workflow_rerun/errors_to_look_for.json), which only+changes through reviewed PRs to `master`. It never reads the CI Doctor memory branch.++Pattern records in `mq/patterns/` still carry a `rerun_search_string`, but it is only a **candidate**:+for **transient** categories (`Flaky Test`, `Infrastructure`, `Network`, `External Service`) the agent+stores a short, stable substring taken verbatim from a real failure log line, verified against the exact+`log_analyzer.py` matcher; for deterministic categories it stores `null`. The rerunner does not read this+field. Instead the agent calls `propose_rerun_pattern`, and the+[`propose-rerun-pattern`](#shared-jobs-and-steps) job opens a PR against `master` appending the candidate to+`errors_to_look_for.json` with ticket `9999999` (the reviewer may replace it with a real ticket). A maintainer reviews the string for specificity (it must not match unrelated+failures) and merges or closes the PR; closing it permanently rejects that signature's proposal.++The `rerun_search_string` values that the doctor had written to `mq/patterns/` before this review flow+existed were migrated into `errors_to_look_for.json` (ticket `9999999`), except clearly over-generic ones+(for example step titles, artifact-upload notices, or bare `Unexpected failures`), so no previously+approved behaviour was lost.### Secrets and permissions@@ -497,6 +538,7 @@ only the narrow permission it needs. The workflows rely on the following secrets| --- | --- | --- || `TEAMS_WEBHOOK_URL` | `notify-teams` (MQ + Post-Commit), `notify-teams-recurring` | Microsoft Teams incoming webhook. || `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). |+| `RERUNNER_DB_UPDATE` | `propose-rerun-pattern` | PAT / App token with `contents: write` + `pull_requests: write` to push `ci-doctor/rerun-pattern/*` branches and open review PRs against `master` that edit `errors_to_look_for.json` (unlike `GITHUB_TOKEN`, PRs it opens trigger CI). || `GITHUB_TOKEN` | log download, `remediate-transient-failure` | Standard GitHub API access (re-run failed jobs, read live merge-queue status). |## Maintaining the workflowsdiff --git a/docs/dev/ci/github_actions/smart_ci.md b/docs/dev/ci/github_actions/smart_ci.mdindex 22d6b34cbec..84419671733 100644--- a/docs/dev/ci/github_actions/smart_ci.md+++ b/docs/dev/ci/github_actions/smart_ci.md@@ -336,6 +336,20 @@ Build:This approach works because skipped checks are processed as successful by GitHub. They do not blockthe merge, unlike required workflows skipped by path filtering.+Smart CI also has a shared file allowlist for agentic workflow and rerunner automation in+[`smart_ci.py`](../../../../.github/actions/smart-ci/smart_ci.py). It covers gh-aw sources, generated+locks, shared fragments, action configuration, CI Doctor schemas, safe-output scripts, the rerunner+scripts/error database/tests, their compilation-check and rerunner workflows, and the agentic workflow+skill. These paths are combined with each workflow's file skip patterns. A PR or merge-queue changeset+containing only matching files skips expensive product validation even when `category: CI`,+`github_actions`, or `no-match-files` would otherwise request full scope. Any nonmatching file preserves+normal validation; post-commit runs are not skipped. Do not exempt `.github/**` generally: build/test+workflows, shared actions and Smart CI configuration must still receive normal validation.++The workflow runs themselves (including required status aggregation) still start; Smart CI skips+their expensive jobs. Dedicated compilation, workflow scans and other independently triggered checks+continue to run.+### Adding Smart CI for Components Outside the OpenVINO RepositorySome components, like the NVIDIA plugin or ONNX Runtime, are stored in their own repositories.