diff --git a/.github/aw/work-queue.md b/.github/aw/work-queue.md
index f6defffc399..68b0315c1be 100644
--- a/.github/aw/work-queue.md
+++ b/.github/aw/work-queue.md
@@ -91,6 +91,7 @@ Unassigned dispatchers cannot emit `noop` or `report_incomplete`.
invalid with cancellation). Preserve both choices on retries. Verified delivery
permits another fair Claim without releasing successors or closing backing
Issues. Pending/failed delivery blocks Claims; never rerun uncertain effects.
+ `work_queue_continue` aliases keep-open finish.
- Default to one Claim; batch compatible Work with reusable setup. Native
batch conclusions are not per-Work Results.
- Treat finish as an intent: trusted processing publishes Completion before
diff --git a/.github/workflows/artifacts-summary.lock.yml b/.github/workflows/artifacts-summary.lock.yml
index 831e7beac00..77599136586 100644
--- a/.github/workflows/artifacts-summary.lock.yml
+++ b/.github/workflows/artifacts-summary.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"b9fd281736a4a71be0e2e4e9e2ae4cd46564e181fc20872177b678bec81150d1","body_hash":"1601de2addf59a53b608246081a6377d0cdbf84cdf919f44c4de768160cbafa6","strict":true,"agent_id":"codex","agent_model":"openai/gpt-6-luna","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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_release_by_tag","get_tag","list_branches","list_commits","list_releases","list_starred_repositories","list_tags","search_code","search_repositories"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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_release_by_tag","get_tag","list_branches","list_commits","list_releases","list_starred_repositories","list_tags","search_code","search_repositories"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-code-debt-aider.lock.yml b/.github/workflows/daily-code-debt-aider.lock.yml
index eedd2137722..295ce10f7ff 100644
--- a/.github/workflows/daily-code-debt-aider.lock.yml
+++ b/.github/workflows/daily-code-debt-aider.lock.yml
@@ -1,4 +1,4 @@
-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"2d8ca11d2257e4d4d8d366322d8ebd7b7051368e29ab5ce87b92d3354d079e21","body_hash":"df63908f0dda6e2433011a17e912a553619197f422583d59078eb009c425d290","strict":true,"agent_id":"aider","agent_model":"copilot/auto","engine_versions":{"aider":"0.86.2"}}
+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"a30b8f8bc2baee2ccee3b0b86047a94b30611bc67c4a3d3807f0ddeb5a90767d","body_hash":"df63908f0dda6e2433011a17e912a553619197f422583d59078eb009c425d290","strict":true,"agent_id":"aider","agent_model":"copilot/auto","engine_versions":{"aider":"0.86.2"}}
# gh-aw-manifest: {"version":1,"secrets":["GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_pull_request","missing_data","missing_tool","noop","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
@@ -1062,7 +1062,7 @@ jobs:
"mcp.guard.blocked", "mcp.tool_call", "mcp.event", "mcp.configuration",
"firewall.http_access", "firewall.token_usage", "firewall.model_routing",
"firewall.steering", "firewall.event", "model_routing.outcome",
- "model_endpoint.mismatch",
+ "model_endpoint.mismatch", "model.inventory",
"safe_output.request", "safe_output.result", "safe_output.error",
"experiment.state", "experiment.assignment", "grader.manifest", "grader.result",
"eval.result", "github_api.rate_limit", "usage.report", "execution.result",
diff --git a/.github/workflows/daily-compiler-quality.lock.yml b/.github/workflows/daily-compiler-quality.lock.yml
index 1951d2c0e31..8ffc661193e 100644
--- a/.github/workflows/daily-compiler-quality.lock.yml
+++ b/.github/workflows/daily-compiler-quality.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"e2d57798b0b11585f95df2f6f07bab8a67dc0bb928d9ec0dd7f2aa2f417c8207","body_hash":"15b08bd29294c93512c36d73e999b0d689aa0cae95f805f6e89ed2e8bae9eda2","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96","copilot-sdk":"1.0.16"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"ghcr.io/oraios/serena:1.7.0","digest":"sha256:6c9459e4246a39c9deaa4f23fb05a526ac6e237b24c8e84a927a098fa1ab6730","pinned_image":"ghcr.io/oraios/serena:1.7.0@sha256:6c9459e4246a39c9deaa4f23fb05a526ac6e237b24c8e84a927a098fa1ab6730"}],"mcp_servers":[{"name":"github","tools":["get_discussion","get_discussion_comments","list_discussion_categories","list_discussions"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"serena","tools":["*"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"ghcr.io/oraios/serena:1.7.0","digest":"sha256:6c9459e4246a39c9deaa4f23fb05a526ac6e237b24c8e84a927a098fa1ab6730","pinned_image":"ghcr.io/oraios/serena:1.7.0@sha256:6c9459e4246a39c9deaa4f23fb05a526ac6e237b24c8e84a927a098fa1ab6730"}],"mcp_servers":[{"name":"github","tools":["get_discussion","get_discussion_comments","list_discussion_categories","list_discussions"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"serena","tools":["*"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -898,7 +898,7 @@ jobs:
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_e491a49234234943_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_49df04f2c37b7358_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"github": {
@@ -997,7 +997,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -1021,7 +1021,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_e491a49234234943_EOF
+ GH_AW_MCP_CONFIG_49df04f2c37b7358_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/daily-evals-report.lock.yml b/.github/workflows/daily-evals-report.lock.yml
index dab22bff0c5..725d9aec70c 100644
--- a/.github/workflows/daily-evals-report.lock.yml
+++ b/.github/workflows/daily-evals-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4b2fc392baf969e0e3cc4e6f3ff0d228c11f1cd1cb82b18e46c63579082e4772","body_hash":"6f9884f8960249fced35e03d14fb41f9e83e8fd634d38754b691394523c391a0","strict":true,"agent_id":"codex","agent_model":"copilot/gpt-5.6-sol","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-firewall-report.lock.yml b/.github/workflows/daily-firewall-report.lock.yml
index c516c5b209d..61bfe1cc9d3 100644
--- a/.github/workflows/daily-firewall-report.lock.yml
+++ b/.github/workflows/daily-firewall-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"3fc426047f348e0dd8895d13822057a1d808f11fe992e53fef834e9cfefd04aa","body_hash":"54520dc8c17f1f6d18972633ba0cb36a3759d9ab3927989aaf1805016ba42938","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -905,7 +905,7 @@ jobs:
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_e031a118f2c06eb1_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_e64dba5bf9b76faa_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"agenticworkflows": {
@@ -973,7 +973,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -997,7 +997,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_e031a118f2c06eb1_EOF
+ GH_AW_MCP_CONFIG_e64dba5bf9b76faa_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/daily-go-test-stubs-aider.lock.yml b/.github/workflows/daily-go-test-stubs-aider.lock.yml
index d76d4592378..b7fdd38f8c9 100644
--- a/.github/workflows/daily-go-test-stubs-aider.lock.yml
+++ b/.github/workflows/daily-go-test-stubs-aider.lock.yml
@@ -1,4 +1,4 @@
-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"709f5387ad98e0839e8588d22a1909017beee5968d7913ef0d7bb2fc5c28d2fe","body_hash":"c27e3a30ae42d6f2bb99ab1d90d0f1ebcd9d2beb4d40e31f4ecd1d626343e1d9","strict":true,"agent_id":"aider","agent_model":"copilot/auto","engine_versions":{"aider":"0.86.2"}}
+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"6d6a8189080517567204d125cd89c39577a54b7b90e27e6e3aed73fa0c64b20d","body_hash":"c27e3a30ae42d6f2bb99ab1d90d0f1ebcd9d2beb4d40e31f4ecd1d626343e1d9","strict":true,"agent_id":"aider","agent_model":"copilot/auto","engine_versions":{"aider":"0.86.2"}}
# gh-aw-manifest: {"version":1,"secrets":["GH_AW_CI_TRIGGER_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_pull_request","missing_data","missing_tool","noop","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
@@ -1062,7 +1062,7 @@ jobs:
"mcp.guard.blocked", "mcp.tool_call", "mcp.event", "mcp.configuration",
"firewall.http_access", "firewall.token_usage", "firewall.model_routing",
"firewall.steering", "firewall.event", "model_routing.outcome",
- "model_endpoint.mismatch",
+ "model_endpoint.mismatch", "model.inventory",
"safe_output.request", "safe_output.result", "safe_output.error",
"experiment.state", "experiment.assignment", "grader.manifest", "grader.result",
"eval.result", "github_api.rate_limit", "usage.report", "execution.result",
diff --git a/.github/workflows/daily-issues-report.lock.yml b/.github/workflows/daily-issues-report.lock.yml
index 90377e81c50..b9473ca2396 100644
--- a/.github/workflows/daily-issues-report.lock.yml
+++ b/.github/workflows/daily-issues-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"b01bd4c504f9a05abe3c81bba035ed964b020ef6ecbbcfdb464fad46dad86919","body_hash":"5e25477499010dfa1b1786445023db153c3d83b7bde58ebbd9422ba333ef43bc","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96","copilot-sdk":"1.0.16"},"agent_image_runner":"aw-gpu-runner-T4"}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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":"astral-sh/setup-uv","sha":"1c37ad07a6a961277cf70c0d37d6f313000f5884","version":"v10.3.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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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":"astral-sh/setup-uv","sha":"1c37ad07a6a961277cf70c0d37d6f313000f5884","version":"v10.3.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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -1120,7 +1120,7 @@ jobs:
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_c556a81336848669_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
@@ -1168,7 +1168,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -1192,7 +1192,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_c556a81336848669_EOF
+ GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/daily-observability-report.lock.yml b/.github/workflows/daily-observability-report.lock.yml
index 18df0106034..f718ac5886e 100644
--- a/.github/workflows/daily-observability-report.lock.yml
+++ b/.github/workflows/daily-observability-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"9e40767f5a49a5397a51d2f3118e040e7c20f4f43f7f87441df660ae6d61a095","body_hash":"b373c2cdbacfb3788da2acd7d3fa67a56ff83e9b3b251e0ae3cf434bb161e8b8","strict":true,"agent_id":"codex","agent_model":"gpt-5.3-codex","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","OPENAI_API_KEY"],"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-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","OPENAI_API_KEY"],"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-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"agenticworkflows","tools":["*"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-regulatory.lock.yml b/.github/workflows/daily-regulatory.lock.yml
index 2b93f0ae892..67d8b388e85 100644
--- a/.github/workflows/daily-regulatory.lock.yml
+++ b/.github/workflows/daily-regulatory.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"600a172716212679efbe5fe284a0106d3e223d06f7e133c9b6857801c38fb6ff","body_hash":"adecd8c7dc1338f369716cd42016513041baba1d4b25ef567b4fb60fae68f4de","strict":true,"agent_id":"codex","agent_model":"copilot/gpt-5.6-luna","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","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_discussion_categories","list_discussions","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":"mcpscripts","tools":["github-discussion-query","github-issue-query","github-pr-query"]},{"name":"safeoutputs","tools":["close_discussion","create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","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_discussion_categories","list_discussions","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":"mcpscripts","tools":["github-discussion-query","github-issue-query","github-pr-query"]},{"name":"safeoutputs","tools":["close_discussion","create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-repo-chronicle.lock.yml b/.github/workflows/daily-repo-chronicle.lock.yml
index b88a89c08f2..89dceee881d 100644
--- a/.github/workflows/daily-repo-chronicle.lock.yml
+++ b/.github/workflows/daily-repo-chronicle.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"db5f682eb5f8468bbcf87c421e53f230d4a017638732b0810152c85d339d335c","body_hash":"d858908351e83528b1302a7fc655c2e1469bda53213252a721187aeed5f7d374","strict":true,"agent_id":"pi","agent_model":"copilot/grok-4.7","engine_versions":{"pi":"1.2.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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":"astral-sh/setup-uv","sha":"1c37ad07a6a961277cf70c0d37d6f313000f5884","version":"v10.3.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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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":"astral-sh/setup-uv","sha":"1c37ad07a6a961277cf70c0d37d6f313000f5884","version":"v10.3.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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete","upload_asset"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-secrets-analysis.lock.yml b/.github/workflows/daily-secrets-analysis.lock.yml
index 50bfc1317ff..7df60df5242 100644
--- a/.github/workflows/daily-secrets-analysis.lock.yml
+++ b/.github/workflows/daily-secrets-analysis.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"498509c379c5762c2792bbbf6829f3f5d4f71ba8abd71d6a4f239630b20a0c54","body_hash":"885d7cab80014183fbb0afbb2b83547caf983752485394d2014b61cfdccb1e1b","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96","copilot-sdk":"1.0.16"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -834,7 +834,7 @@ jobs:
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_c556a81336848669_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
@@ -882,7 +882,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -906,7 +906,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_c556a81336848669_EOF
+ GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/daily-team-evolution-insights.lock.yml b/.github/workflows/daily-team-evolution-insights.lock.yml
index a41d1e7bd79..e99940a9b66 100644
--- a/.github/workflows/daily-team-evolution-insights.lock.yml
+++ b/.github/workflows/daily-team-evolution-insights.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"89e73d3eac95f4e008e10409b19d99d32705f0c7158a11ca8a6b00a307a4a57e","body_hash":"bb8f20c79374a8994950dcb72956a1a2a809e3fa06d85832ec93a5b05d64a5f8","agent_id":"goose","agent_model":"copilot/auto","engine_versions":{"goose":"1.53.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","get_latest_release","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_discussion_categories","list_discussions","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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","get_latest_release","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_discussion_categories","list_discussions","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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/daily-token-consumption-report.lock.yml b/.github/workflows/daily-token-consumption-report.lock.yml
index eacb3061f33..19c90711fc4 100644
--- a/.github/workflows/daily-token-consumption-report.lock.yml
+++ b/.github/workflows/daily-token-consumption-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"084dbfe8ae2479cb892c06f0a7ab8da34c47a7ff8e62ef0ef09661afc47962ef","body_hash":"cdcd8a26b395200ee8b1b94ebeada1043c8dc466a40992d1b53cb2aa4301cc14","strict":true,"agent_id":"goose","agent_model":"copilot/claude-sonnet-5","engine_versions":{"goose":"1.53.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","GRAFANA_SERVICE_ACCOUNT_TOKEN","GRAFANA_URL","SENTRY_ACCESS_TOKEN","SENTRY_OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"grafana/mcp-grafana:1.1.0-alpine","digest":"sha256:e0eb29cdf8effbbebf115ea99a5f654a44681dfd293661b0991498d651ca6cb4","pinned_image":"grafana/mcp-grafana:1.1.0-alpine@sha256:e0eb29cdf8effbbebf115ea99a5f654a44681dfd293661b0991498d651ca6cb4"},{"image":"node:lts-alpine","digest":"sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1","pinned_image":"node:lts-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","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":"grafana","tools":["get_datasource","list_datasources","tempo_docs-traceql","tempo_get-attribute-names","tempo_get-attribute-values","tempo_get-trace","tempo_traceql-search"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"sentry","tools":["analyze_issue_with_seer","find_dsns","find_organizations","find_projects","find_releases","find_teams","get_doc","get_event_attachment","get_issue_details","get_trace_details","list_events","list_issue_events","search_docs","search_events","search_issues","whoami"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","GRAFANA_SERVICE_ACCOUNT_TOKEN","GRAFANA_URL","SENTRY_ACCESS_TOKEN","SENTRY_OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"grafana/mcp-grafana:1.1.0-alpine","digest":"sha256:e0eb29cdf8effbbebf115ea99a5f654a44681dfd293661b0991498d651ca6cb4","pinned_image":"grafana/mcp-grafana:1.1.0-alpine@sha256:e0eb29cdf8effbbebf115ea99a5f654a44681dfd293661b0991498d651ca6cb4"},{"image":"node:lts-alpine","digest":"sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1","pinned_image":"node:lts-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","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":"grafana","tools":["get_datasource","list_datasources","tempo_docs-traceql","tempo_get-attribute-names","tempo_get-attribute-values","tempo_get-trace","tempo_traceql-search"]},{"name":"safeoutputs","tools":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"sentry","tools":["analyze_issue_with_seer","find_dsns","find_organizations","find_projects","find_releases","find_teams","get_doc","get_event_attachment","get_issue_details","get_trace_details","list_events","list_issue_events","search_docs","search_events","search_issues","whoami"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/deep-report.lock.yml b/.github/workflows/deep-report.lock.yml
index 667b300cfce..e4139354b82 100644
--- a/.github/workflows/deep-report.lock.yml
+++ b/.github/workflows/deep-report.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"5207b4165009cc88e43e627350a69e491800ec8a389de34ba53483281de4484e","body_hash":"d3c1091ab9e377c26dd6de8a89190ea662addaf4c7b5099942511cd5eb010b6d","strict":true,"agent_id":"claude","engine_versions":{"claude":"2.1.296"}}
-# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"node:lts-alpine","digest":"sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1","pinned_image":"node:lts-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1"}],"mcp_servers":[{"name":"agentdb","tools":["*"]},{"name":"agenticworkflows","tools":["*"]},{"name":"github","tools":["actions_get","actions_list","get_commit","get_discussion","get_discussion_comments","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_discussion_categories","list_discussions","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":"mcpscripts","tools":["list_label","list_workflows"]},{"name":"safeoutputs","tools":["add_comment","create_discussion","create_issue","missing_data","missing_tool","noop","report_incomplete","upload_artifact"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"9000827ccba6bdab643e8b6fd33ac0654aef8333","version":"v8.0.2"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-go","sha":"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e","version":"v7.0.0"},{"repo":"actions/setup-node","sha":"949feb2413d6458794dcd2491c4babbbce0c15c1","version":"v7.1.0"},{"repo":"actions/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"},{"repo":"docker/build-push-action","sha":"c3c9e263c25d99ce0380d002d59b67737d91b0dc","version":"v7.4.0"},{"repo":"docker/setup-buildx-action","sha":"f87e5991a6d7451dcb8d9637bfbc97413f497069","version":"v4.4.1"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"},{"image":"node:lts-alpine","digest":"sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1","pinned_image":"node:lts-alpine@sha256:ebfe2f90462722a7a4de65e91990e97fe0d401c70e0e762c5b53302f905ec1c1"}],"mcp_servers":[{"name":"agentdb","tools":["*"]},{"name":"agenticworkflows","tools":["*"]},{"name":"github","tools":["actions_get","actions_list","get_commit","get_discussion","get_discussion_comments","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_discussion_categories","list_discussions","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":"mcpscripts","tools":["list_label","list_workflows"]},{"name":"safeoutputs","tools":["add_comment","create_discussion","create_issue","missing_data","missing_tool","noop","report_incomplete","upload_artifact"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-agy.lock.yml b/.github/workflows/engine-conformance-agy.lock.yml
index 85bfcef8038..9374c28f1ec 100644
--- a/.github/workflows/engine-conformance-agy.lock.yml
+++ b/.github/workflows/engine-conformance-agy.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"897ac885ad93306bb8425cfdc99e936a507dd6636cc137babd06ce380357d284","body_hash":"f2584351afda1dfb431018da1d9231c04af8b4049e421f24c54d7878fb93e782","strict":true,"agent_id":"agy","agent_model":"gemini-3.8-flash-medium","engine_versions":{"agy":"1.3.3"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GEMINI_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"agy-native","tools":["native_challenge"]},{"name":"mcpscripts","tools":["conformance-challenge","native-challenge","native-infrastructure-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GEMINI_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"agy-native","tools":["native_challenge"]},{"name":"mcpscripts","tools":["conformance-challenge","native-challenge","native-infrastructure-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-aider.lock.yml b/.github/workflows/engine-conformance-aider.lock.yml
index 26dc2af7a43..7e00db170ed 100644
--- a/.github/workflows/engine-conformance-aider.lock.yml
+++ b/.github/workflows/engine-conformance-aider.lock.yml
@@ -1,5 +1,5 @@
-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"45da538c62002e62e4d0beddae0f4bb75037cfe59fea98c96002da72f244b4ce","body_hash":"f04c1b053e785949319d3362add1ef9825f852a449d3ecb0170f4a5ac5206194","strict":true,"agent_id":"aider","agent_model":"copilot/gpt-5.4","engine_versions":{"aider":"0.86.2"}}
-# gh-aw-manifest: {"version":1,"secrets":["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"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"ffda2930c4550b748ff82b7ef9aef148cd891e83abcc685c895c1988226756b4","body_hash":"f04c1b053e785949319d3362add1ef9825f852a449d3ecb0170f4a5ac5206194","strict":true,"agent_id":"aider","agent_model":"copilot/gpt-5.4","engine_versions":{"aider":"0.86.2"}}
+# gh-aw-manifest: {"version":1,"secrets":["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"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -1200,7 +1200,7 @@ jobs:
"mcp.guard.blocked", "mcp.tool_call", "mcp.event", "mcp.configuration",
"firewall.http_access", "firewall.token_usage", "firewall.model_routing",
"firewall.steering", "firewall.event", "model_routing.outcome",
- "model_endpoint.mismatch",
+ "model_endpoint.mismatch", "model.inventory",
"safe_output.request", "safe_output.result", "safe_output.error",
"experiment.state", "experiment.assignment", "grader.manifest", "grader.result",
"eval.result", "github_api.rate_limit", "usage.report", "execution.result",
diff --git a/.github/workflows/engine-conformance-claude.lock.yml b/.github/workflows/engine-conformance-claude.lock.yml
index 4f457a902ea..604171453b7 100644
--- a/.github/workflows/engine-conformance-claude.lock.yml
+++ b/.github/workflows/engine-conformance-claude.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"35494c8aa4fdc5ddf38474d780b6c6a09aa6efcd0b0f27b12bb8c62ace3a0c34","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"claude","engine_versions":{"claude":"2.1.296"}}
-# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-codex.lock.yml b/.github/workflows/engine-conformance-codex.lock.yml
index 4dec5a70a0d..1c43611bfa0 100644
--- a/.github/workflows/engine-conformance-codex.lock.yml
+++ b/.github/workflows/engine-conformance-codex.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"a77f019b6a8e5a130daff56709f7a24e45fd7219702490ae4c2dff4439da48bd","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"codex","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","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","OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","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","OPENAI_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-copilot.lock.yml b/.github/workflows/engine-conformance-copilot.lock.yml
index 83690e9265e..898c0ddf13e 100644
--- a/.github/workflows/engine-conformance-copilot.lock.yml
+++ b/.github/workflows/engine-conformance-copilot.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"7d6ae3b0b40e4929c934eeb8972870be91a0ebd735ed81389f0054866d075a08","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -875,7 +875,7 @@ jobs:
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_3065628f4eeba5df_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_c2b37e0aa74e18a4_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"mcpscripts": {
@@ -922,7 +922,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -946,7 +946,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_3065628f4eeba5df_EOF
+ GH_AW_MCP_CONFIG_c2b37e0aa74e18a4_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/engine-conformance-crush.lock.yml b/.github/workflows/engine-conformance-crush.lock.yml
index 3551b9ba082..dfd1a6e2e87 100644
--- a/.github/workflows/engine-conformance-crush.lock.yml
+++ b/.github/workflows/engine-conformance-crush.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"db375422bcd372a32ba18be27ab82b332fc4f3be8e91af9e912ffa89890b9d57","body_hash":"7eff9e77f40b03dfe72d0078b69ce850e90735e503d37c1e6c7d0caee67d303a","strict":true,"agent_id":"crush","agent_model":"copilot/gpt-5.4","engine_versions":{"crush":"0.88.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-cursor.lock.yml b/.github/workflows/engine-conformance-cursor.lock.yml
index 2ff412d70c1..575df7b0795 100644
--- a/.github/workflows/engine-conformance-cursor.lock.yml
+++ b/.github/workflows/engine-conformance-cursor.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"241445c41e8f6ea0fd6ea7e85e70ed57e50cfe660370cd8276400c529a207349","body_hash":"8940f8a0cbd6603f3cf65ffdf394928ed07cb364659fc8c14f08887483f8df41","strict":true,"agent_id":"cursor","agent_model":"cursor/auto"}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","CURSOR_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","CURSOR_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-deepseek-harness.lock.yml b/.github/workflows/engine-conformance-deepseek-harness.lock.yml
index ac63aa121d3..b6cd2b48ed5 100644
--- a/.github/workflows/engine-conformance-deepseek-harness.lock.yml
+++ b/.github/workflows/engine-conformance-deepseek-harness.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"bb2ddad3effd55f872f5b0e4d3baa823a3399438086be8e7c4e37da31710592d","body_hash":"0d64a1247caea6c11b12e9582c66a7420b94414f103e7aa5d880065b42f3a2c0","strict":true,"agent_id":"deepseek-harness","agent_model":"copilot/gpt-5.4","engine_versions":{"deepseek-harness":"0.2.0-rc.2"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-gemini.lock.yml b/.github/workflows/engine-conformance-gemini.lock.yml
index e6063a5d9b8..dea3ce6bdef 100644
--- a/.github/workflows/engine-conformance-gemini.lock.yml
+++ b/.github/workflows/engine-conformance-gemini.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"f10d0e01594a6533e4a9d006b5d5467b69edfe7bc98bd21e9c47699e8ed8fda7","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"gemini","engine_versions":{"gemini":"0.62.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GEMINI_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GEMINI_API_KEY","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-goose.lock.yml b/.github/workflows/engine-conformance-goose.lock.yml
index 6f3a47ea393..0403e6cdf8e 100644
--- a/.github/workflows/engine-conformance-goose.lock.yml
+++ b/.github/workflows/engine-conformance-goose.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"68b18b8924a1b1b59c2590431c8aa93e0016373896a30173fc5081be7437d3c9","body_hash":"8350a41d87b9f9894aa872eb0d8027a374470b9e7b51337b81eb546985825f03","strict":true,"agent_id":"goose","agent_model":"copilot/gpt-5.4","engine_versions":{"goose":"1.53.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-kiro.lock.yml b/.github/workflows/engine-conformance-kiro.lock.yml
index 0f7abeb2846..490f5cd895e 100644
--- a/.github/workflows/engine-conformance-kiro.lock.yml
+++ b/.github/workflows/engine-conformance-kiro.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"71fe38050dbed60f04c620e2791e61f6c4caaf7f6bea0be5fb1ba7c8954375c2","body_hash":"3f365cee34568e82faabb04106e7b1991d80b5a0de52d65bbfc043c725214b50","strict":true,"agent_id":"kiro","agent_model":"kiro/auto","engine_versions":{"kiro":"2.27.1"}}
-# 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","KIRO_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# 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","KIRO_API_KEY"],"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-opencode.lock.yml b/.github/workflows/engine-conformance-opencode.lock.yml
index 794e26aec1a..0c5288b57c6 100644
--- a/.github/workflows/engine-conformance-opencode.lock.yml
+++ b/.github/workflows/engine-conformance-opencode.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"d9c7fc6b198196823e885f4d1753c17f9a304b74b1f82c098a62633318e0a872","body_hash":"65c5607d1da2c8db9492b58a74302f9c95931ab82f919c7c98be9b1a6da2ef20","strict":true,"agent_id":"opencode","agent_model":"copilot/gpt-5.4","engine_versions":{"opencode":"1.18.33"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-pi.lock.yml b/.github/workflows/engine-conformance-pi.lock.yml
index b5ba66a84eb..f0fdb7a8d85 100644
--- a/.github/workflows/engine-conformance-pi.lock.yml
+++ b/.github/workflows/engine-conformance-pi.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4dacfd8eb1c060f526e46e6681af7ae226650c7ba28705c4bdda965a031916a7","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"pi","agent_model":"copilot/gpt-5.4","engine_versions":{"pi":"1.2.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"}],"mcp_servers":[{"name":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/engine-conformance-pydantic-ai.lock.yml b/.github/workflows/engine-conformance-pydantic-ai.lock.yml
index 940b5a3ef45..5301b39ed74 100644
--- a/.github/workflows/engine-conformance-pydantic-ai.lock.yml
+++ b/.github/workflows/engine-conformance-pydantic-ai.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"6dff160d2cca54ddae0b91e8df4d4d1f2fc83a7d9d8bcf5c536581973d7a3157","body_hash":"d5268eb6863a28e46c613044837477e5a640507fef715aeff2346a8169ae26e4","strict":true,"agent_id":"pydantic-ai","agent_model":"copilot/gpt-5.4","engine_versions":{"pydantic-ai":"0.35.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["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"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":"mcpscripts","tools":["conformance-challenge"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"disabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/eslint-miner.lock.yml b/.github/workflows/eslint-miner.lock.yml
index ab381a92a50..565e5d9f31b 100644
--- a/.github/workflows/eslint-miner.lock.yml
+++ b/.github/workflows/eslint-miner.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4cdb95ceb7b606f637ba5f23d80f36ccfcc3a6ca5f5ee0da0d4c775ff3783bfe","body_hash":"3afb19bfa3430a0ffca84b088f4cbb7f5695fac9f97e5448b36735d4beb75054","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.96","copilot-sdk":"1.0.16"}}
-# gh-aw-manifest: {"version":1,"secrets":["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/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_pull_request","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["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/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_pull_request","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
@@ -893,7 +893,7 @@ jobs:
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_c556a81336848669_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
+ cat << GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
{
"mcpServers": {
"safeoutputs": {
@@ -941,7 +941,7 @@ jobs:
},
"work-queue": {
"type": "stdio",
- "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"],
+ "tools": ["work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue"],
"container": "ghcr.io/github/gh-aw-node",
"mounts": ["${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro", "/tmp/gh-aw/work-queue.snapshot.json:/tmp/gh-aw/work-queue.snapshot.json:ro", "${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:${RUNNER_TEMP}/gh-aw/safeoutputs/work-queue:rw"],
"env": {
@@ -965,7 +965,7 @@ jobs:
}
}
}
- GH_AW_MCP_CONFIG_c556a81336848669_EOF
+ GH_AW_MCP_CONFIG_f0a58976d6eb0a22_EOF
- name: Mount MCP servers as CLIs
id: mount-mcp-clis
continue-on-error: true
diff --git a/.github/workflows/eslint-monster.lock.yml b/.github/workflows/eslint-monster.lock.yml
index 5fbfd777d39..bbd80d8ea05 100644
--- a/.github/workflows/eslint-monster.lock.yml
+++ b/.github/workflows/eslint-monster.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"5a640b82b08def76f136f33198075aed0466cbb4b10a5464fa1f92bf825f13af","body_hash":"f06751d65246607ae6e1d1811fb901f99717dae7ea97957a053f7020890a482d","strict":true,"agent_id":"codex","agent_model":"copilot/gpt-6-astra","engine_versions":{"codex":"0.162.1"}}
-# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_AGENT_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","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_discussion_categories","list_discussions","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":["assign_to_agent","close_issue","create_discussion","create_issue","missing_data","missing_tool","noop","report_incomplete","update_issue"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_AGENT_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_discussion","get_discussion_comments","get_file_contents","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_discussion_categories","list_discussions","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":["assign_to_agent","close_issue","create_discussion","create_issue","missing_data","missing_tool","noop","report_incomplete","update_issue"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/eslint-refiner.lock.yml b/.github/workflows/eslint-refiner.lock.yml
index a6a6ecbb199..a6caffbb49a 100644
--- a/.github/workflows/eslint-refiner.lock.yml
+++ b/.github/workflows/eslint-refiner.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"eee09f81d34d2f840dd88dff7f2151293633e9fbfe4a25bdbae43746f464e69d","body_hash":"91d37643e329b8cb9be956ead2ea1d26c2cd6313415ec12c2f7bbed6f5589ae6","strict":true,"agent_id":"claude","engine_versions":{"claude":"2.1.296"}}
-# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","create_issue","missing_data","missing_tool","noop","persist_eslint_memory","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["ANTHROPIC_API_KEY","COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":"safeoutputs","tools":["create_discussion","create_issue","missing_data","missing_tool","noop","persist_eslint_memory","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/pr-sous-chef.lock.yml b/.github/workflows/pr-sous-chef.lock.yml
index 9cba470a234..1d2df9bdc6e 100644
--- a/.github/workflows/pr-sous-chef.lock.yml
+++ b/.github/workflows/pr-sous-chef.lock.yml
@@ -1159,6 +1159,28 @@ jobs:
}
}
},
+ "continue_workflow": {
+ "defaultMax": 1,
+ "fields": {
+ "branch": {
+ "required": true,
+ "type": "string",
+ "sanitize": true,
+ "maxLength": 256
+ },
+ "next_steps": {
+ "type": "string",
+ "sanitize": true,
+ "maxLength": 2000
+ },
+ "reason": {
+ "required": true,
+ "type": "string",
+ "sanitize": true,
+ "maxLength": 2000
+ }
+ }
+ },
"create_agent_session": {
"defaultMax": 1,
"fields": {
diff --git a/.github/workflows/repo-tree-map.lock.yml b/.github/workflows/repo-tree-map.lock.yml
index 8c39519cdd2..9358b6f4456 100644
--- a/.github/workflows/repo-tree-map.lock.yml
+++ b/.github/workflows/repo-tree-map.lock.yml
@@ -1,5 +1,5 @@
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"2d4e5b50b4f2dd41a0ca6e39afdb5476c09749e0100ff342e1b025724cf70230","body_hash":"b694dae5937295a55d4fb4d3889d9516e4394d07829ba6585bbe45fcbf8e9391","strict":true,"agent_id":"pi","agent_model":"copilot/gpt-5.4-mini","engine_versions":{"pi":"1.2.0"}}
-# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
+# gh-aw-manifest: {"version":1,"secrets":["GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","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/upload-artifact","sha":"cf430e030ddbb5b0abf93d22962f4752f3646cd9","version":"v7.0.2"}],"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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":["get_commit","get_file_contents","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":["create_discussion","missing_data","missing_tool","noop","report_incomplete"]},{"name":"work-queue","tools":["work_queue_claim_finish","work_queue_continue","work_queue_dispatch_next","work_queue_explain","work_queue_read","work_queue_submit"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
# ___ _ _
diff --git a/.github/workflows/shared/aider.md b/.github/workflows/shared/aider.md
index e9ab1409c34..26c99d65e8d 100644
--- a/.github/workflows/shared/aider.md
+++ b/.github/workflows/shared/aider.md
@@ -430,7 +430,7 @@ engine:
"mcp.guard.blocked", "mcp.tool_call", "mcp.event", "mcp.configuration",
"firewall.http_access", "firewall.token_usage", "firewall.model_routing",
"firewall.steering", "firewall.event", "model_routing.outcome",
- "model_endpoint.mismatch",
+ "model_endpoint.mismatch", "model.inventory",
"safe_output.request", "safe_output.result", "safe_output.error",
"experiment.state", "experiment.assignment", "grader.manifest", "grader.result",
"eval.result", "github_api.rate_limit", "usage.report", "execution.result",
diff --git a/.github/workflows/smoke-aider.lock.yml b/.github/workflows/smoke-aider.lock.yml
index e7119a54f52..b132049453a 100644
--- a/.github/workflows/smoke-aider.lock.yml
+++ b/.github/workflows/smoke-aider.lock.yml
@@ -1,4 +1,4 @@
-# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"09bb82d77ba6a37012b646dbf809353a1210bf8f15e24edfc8836e8a5e749f73","body_hash":"7ab46b8b3e51c3a1ee9c9285ae8ace538e7fe705bd4c47fac6c07a4818961d01","strict":true,"agent_id":"aider","agent_model":"copilot/gpt-5.4","engine_versions":{"aider":"0.86.2"}}
+# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"4ad4b3aa6c3bbf9843c27f03b265cf24254c96ef0de74737c6989f4854a3526d","body_hash":"7ab46b8b3e51c3a1ee9c9285ae8ace538e7fe705bd4c47fac6c07a4818961d01","strict":true,"agent_id":"aider","agent_model":"copilot/gpt-5.4","engine_versions":{"aider":"0.86.2"}}
# gh-aw-manifest: {"version":1,"secrets":["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"}],"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/cli-proxy:0.28.57","digest":"sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.28.57@sha256:4584f030659ee51958223a3c6156e8119c6a94affbfcd92ce75f204702c52641"},{"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:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f","pinned_image":"ghcr.io/github/gh-aw-node@sha256:11c2c544876cdbaffefe0f7f1283b74838c209654b4934a78e23ed11f750490f"},{"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"}],"has_pull_request":true,"mcp_servers":[{"name":"safeoutputs","tools":["add_comment","add_labels","create_issue","missing_data","missing_tool","noop","report_incomplete"]}],"threat_detection":{"mode":"enabled"}}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
#
@@ -1147,7 +1147,7 @@ jobs:
"mcp.guard.blocked", "mcp.tool_call", "mcp.event", "mcp.configuration",
"firewall.http_access", "firewall.token_usage", "firewall.model_routing",
"firewall.steering", "firewall.event", "model_routing.outcome",
- "model_endpoint.mismatch",
+ "model_endpoint.mismatch", "model.inventory",
"safe_output.request", "safe_output.result", "safe_output.error",
"experiment.state", "experiment.assignment", "grader.manifest", "grader.result",
"eval.result", "github_api.rate_limit", "usage.report", "execution.result",
diff --git a/actions/setup/js/check_membership.cjs b/actions/setup/js/check_membership.cjs
index fec8034e1a4..ee20c5a911b 100644
--- a/actions/setup/js/check_membership.cjs
+++ b/actions/setup/js/check_membership.cjs
@@ -104,6 +104,17 @@ async function main() {
const commandName = typeof awContext?.command_name === "string" ? awContext.command_name.trim() : "";
const triggerLabel = typeof awContext?.trigger_label === "string" ? awContext.trigger_label.trim() : "";
const propagatedActor = typeof awContext?.actor === "string" ? awContext.actor.trim() : "";
+ const isContinuation = awContext?.continuation !== undefined && awContext?.continuation !== null;
+
+ if (isContinuation && !commandName && !triggerLabel && actor === "github-actions[bot]") {
+ const errorMessage = "Access denied: continuation workflow_dispatch cannot use an unverified aw_context.actor.";
+ core.warning(errorMessage);
+ core.setOutput("is_team_member", "false");
+ core.setOutput("result", "config_error");
+ core.setOutput("error_message", errorMessage);
+ await writeDenialSummary(errorMessage, "Run continuations only with independently verified actor provenance.");
+ return;
+ }
if ((commandName || triggerLabel) && actor === "github-actions[bot]") {
if (!propagatedActor) {
diff --git a/actions/setup/js/check_membership.test.cjs b/actions/setup/js/check_membership.test.cjs
index 5ab2c16ddf3..0a1d89a8beb 100644
--- a/actions/setup/js/check_membership.test.cjs
+++ b/actions/setup/js/check_membership.test.cjs
@@ -217,6 +217,28 @@ describe("check_membership.cjs", () => {
expect(mockCore.setOutput).toHaveBeenCalledWith("result", "authorized");
});
+ it("should deny continuation workflow_dispatches from trusting an unverified chain initiator", async () => {
+ mockContext.eventName = "workflow_dispatch";
+ mockContext.actor = "github-actions[bot]";
+ mockContext.payload = {
+ inputs: {
+ aw_context: JSON.stringify({
+ actor: "octocat",
+ origin_event: "continue_workflow",
+ continuation: { chain_id: "wf-1", hop: 1, dispatch_id: "dispatch-0001" },
+ }),
+ },
+ };
+
+ await runScript();
+
+ expect(mockGithub.rest.repos.getCollaboratorPermissionLevel).not.toHaveBeenCalled();
+ expect(mockCore.setOutput).toHaveBeenCalledWith("is_team_member", "false");
+ expect(mockCore.setOutput).toHaveBeenCalledWith("result", "config_error");
+ expect(mockCore.setOutput).toHaveBeenCalledWith("error_message", "Access denied: continuation workflow_dispatch cannot use an unverified aw_context.actor.");
+ expect(mockCore.summary.addRaw).toHaveBeenCalledWith(expect.stringContaining("continuation workflow_dispatch cannot use an unverified aw_context.actor"));
+ });
+
it("should deny centralized workflow_dispatch from fork-based pull requests", async () => {
mockContext.eventName = "workflow_dispatch";
mockContext.actor = "github-actions[bot]";
diff --git a/actions/setup/js/checkout_continue_workflow_branch.cjs b/actions/setup/js/checkout_continue_workflow_branch.cjs
new file mode 100644
index 00000000000..760c5bedf9a
--- /dev/null
+++ b/actions/setup/js/checkout_continue_workflow_branch.cjs
@@ -0,0 +1,97 @@
+// @ts-check
+///
+"use strict";
+
+/**
+ * Agent-job step for continue_workflow runs.
+ *
+ * When this run was dispatched as a continuation hop (aw_context.continuation), check out the
+ * chain's stable work branch at exactly the head recorded in the continuation ledger and
+ * write a read-only context file for the agent and the safe-outputs MCP server. Any mismatch
+ * between the dispatch and the ledger fails the run: a continuation never silently restarts
+ * from scratch or from an unexpected branch state.
+ */
+
+const fs = require("fs");
+const path = require("path");
+const { getErrorMessage } = require("./error_helpers.cjs");
+const { ERR_VALIDATION } = require("./error_codes.cjs");
+const { buildGitAuthEnv } = require("./git_auth_env.cjs");
+const { parseContinuationRequest, readChain } = require("./continue_workflow_ledger.cjs");
+
+const CONTEXT_DIR = "/tmp/gh-aw/continue-workflow";
+const CONTEXT_FILE = path.join(CONTEXT_DIR, "context.json");
+
+/** @param {string} branch */
+function isSafeBranchName(branch) {
+ return typeof branch === "string" && /^[A-Za-z0-9._/-]+$/.test(branch) && !branch.includes("..") && !branch.startsWith("-") && !branch.endsWith("/");
+}
+
+async function isShallowRepository() {
+ const result = await exec.getExecOutput("git", ["rev-parse", "--is-shallow-repository"], { ignoreReturnCode: true, silent: true });
+ return result.exitCode === 0 && result.stdout.trim() === "true";
+}
+
+async function main() {
+ let request;
+ try {
+ request = parseContinuationRequest(context.payload);
+ } catch (error) {
+ core.setFailed(getErrorMessage(error));
+ return;
+ }
+ if (!request) {
+ core.info("Not a continue_workflow hop; skipping continuation checkout");
+ return;
+ }
+
+ try {
+ const chain = await readChain(github, { owner: context.repo.owner, repo: context.repo.repo }, request.chain_id);
+ if (!chain) throw new Error(`${ERR_VALIDATION}: continuation chain ${request.chain_id} does not exist`);
+ if (chain.status !== "active") throw new Error(`${ERR_VALIDATION}: continuation chain ${request.chain_id} is ${chain.status}`);
+ const next = chain.next;
+ // A re-run of this same run may find the hop already bound to it by its safe-outputs job.
+ const boundToThisRun = next?.state === "running" && next.run_id === String(context.runId);
+ if (!next || next.hop !== request.hop || next.dispatch_id !== request.dispatch_id || (next.state !== "dispatched" && !boundToThisRun)) {
+ throw new Error(`${ERR_VALIDATION}: this run is not the dispatched continuation hop ${request.hop} of chain ${request.chain_id}`);
+ }
+ if (!isSafeBranchName(chain.branch)) throw new Error(`${ERR_VALIDATION}: continuation chain ${request.chain_id} has an invalid work branch`);
+
+ const branch = chain.branch;
+ const baseSha = next.base_sha;
+ const depthArgs = (await isShallowRepository()) ? ["--depth=50"] : [];
+ const checkoutToken = core.getInput("github-token");
+ if (!checkoutToken) throw new Error(`${ERR_VALIDATION}: continuation checkout requires the root checkout token`);
+ const gitAuthEnv = buildGitAuthEnv(checkoutToken, core.setSecret);
+ const gitOptions = { env: { ...process.env, ...gitAuthEnv }, silent: true };
+ core.info(`Fetching continuation branch ${branch}`);
+ await exec.exec("git", ["fetch", "--no-tags", ...depthArgs, "origin", `+refs/heads/${branch}:refs/remotes/origin/${branch}`], gitOptions);
+ const { stdout } = await exec.getExecOutput("git", ["rev-parse", `refs/remotes/origin/${branch}^{commit}`], { silent: true });
+ const fetched = stdout.trim();
+ if (fetched !== baseSha) {
+ throw new Error(`${ERR_VALIDATION}: continuation branch ${branch} is at ${fetched}, expected ${baseSha}; refusing to resume from an unexpected state`);
+ }
+ await exec.exec("git", ["checkout", "-B", branch, baseSha], gitOptions);
+
+ const continuationContext = {
+ chain_id: chain.chain_id,
+ hop: request.hop,
+ max_hops: chain.max_hops,
+ remaining_hops: Math.max(0, chain.max_hops - request.hop),
+ branch,
+ base_sha: baseSha,
+ base_branch: chain.base_branch,
+ plan_file: "plan.md",
+ history: chain.hops.map(/** @param {any} hop */ hop => ({ hop: hop.hop, outcome: hop.outcome, reason: hop.reason, next_steps: hop.next_steps })),
+ };
+ fs.mkdirSync(CONTEXT_DIR, { recursive: true });
+ fs.writeFileSync(CONTEXT_FILE, `${JSON.stringify(continuationContext, null, 2)}\n`, "utf8");
+ core.setOutput("branch", branch);
+ core.setOutput("hop", String(request.hop));
+ core.info(`Resumed continuation hop ${request.hop}/${chain.max_hops} on ${branch} at ${baseSha}`);
+ } catch (error) {
+ core.setFailed(`Continuation checkout failed: ${getErrorMessage(error)}`);
+ }
+}
+
+module.exports = { main, CONTEXT_FILE };
diff --git a/actions/setup/js/checkout_continue_workflow_branch.test.cjs b/actions/setup/js/checkout_continue_workflow_branch.test.cjs
new file mode 100644
index 00000000000..7eea4f82ffb
--- /dev/null
+++ b/actions/setup/js/checkout_continue_workflow_branch.test.cjs
@@ -0,0 +1,178 @@
+import { describe, it, expect, beforeEach, afterEach, vi } from "vitest";
+import { createRequire } from "module";
+import fs from "fs";
+
+const require = createRequire(import.meta.url);
+
+global.core = { info: vi.fn(), warning: vi.fn(), error: vi.fn(), debug: vi.fn(), setFailed: vi.fn(), setOutput: vi.fn(), getInput: vi.fn(() => "checkout-token"), setSecret: vi.fn() };
+global.context = { repo: { owner: "o", repo: "r" }, runId: 101, payload: {} };
+
+const ledger = require("./continue_workflow_ledger.cjs");
+const { createLedgerFake } = require("./continue_workflow.test_helpers.cjs");
+const { main, CONTEXT_FILE } = require("./checkout_continue_workflow_branch.cjs");
+
+const REPO = { owner: "o", repo: "r" };
+const NOW = "2026-01-01T00:00:00.000Z";
+const CHAIN_ID = "my-workflow-100";
+const WORK_BRANCH = "continue-workflow/my-workflow/100";
+const HEAD = "b".repeat(40);
+
+function payload(hop = 1, dispatchId = "dispatch-0001") {
+ return { inputs: { aw_context: JSON.stringify({ continuation: { chain_id: CHAIN_ID, hop, dispatch_id: dispatchId } }) } };
+}
+
+async function seed(github) {
+ await ledger.mutateChain(
+ github,
+ REPO,
+ CHAIN_ID,
+ current => {
+ let { chain } = ledger.startChain(current, {
+ chainId: CHAIN_ID,
+ runId: "100",
+ workflowId: "my-workflow",
+ workflowFile: "my-workflow.lock.yml",
+ ref: "refs/heads/main",
+ repository: "o/r",
+ initiator: "octocat",
+ baseBranch: "main",
+ baseCommit: "a".repeat(40),
+ branch: WORK_BRANCH,
+ maxHops: 3,
+ now: NOW,
+ });
+ chain = ledger.recordContinuation(chain, { hop: 0, runId: "100", headSha: HEAD, reason: "more", nextSteps: "tests", now: NOW }).chain;
+ return ledger.claimDispatch(chain, { dispatchId: "dispatch-0001", now: NOW });
+ },
+ "Seed"
+ );
+}
+
+function mockExec(fetchedSha = HEAD) {
+ global.exec = {
+ exec: vi.fn().mockResolvedValue(0),
+ getExecOutput: vi.fn(async (_cmd, args) => (args[0] === "rev-parse" && args[1] === "--is-shallow-repository" ? { exitCode: 0, stdout: "false\n", stderr: "" } : { exitCode: 0, stdout: `${fetchedSha}\n`, stderr: "" })),
+ };
+}
+
+describe("checkout_continue_workflow_branch", () => {
+ let writeSpy;
+ beforeEach(() => {
+ vi.clearAllMocks();
+ global.context.runId = 101;
+ global.context.payload = {};
+ global.core.getInput.mockReturnValue("checkout-token");
+ writeSpy = vi.spyOn(fs, "writeFileSync").mockImplementation(() => {});
+ vi.spyOn(fs, "mkdirSync").mockImplementation(() => undefined);
+ });
+ afterEach(() => {
+ vi.restoreAllMocks();
+ vi.unstubAllEnvs();
+ });
+
+ it("skips runs that are not continuation hops", async () => {
+ mockExec();
+ global.github = createLedgerFake().github;
+ await main();
+ expect(global.exec.exec).not.toHaveBeenCalled();
+ expect(global.core.setFailed).not.toHaveBeenCalled();
+ });
+
+ it("checks out the work branch at the recorded head and writes the context", async () => {
+ const { github } = createLedgerFake();
+ await seed(github);
+ global.github = github;
+ global.context.payload = payload();
+ mockExec();
+ await main();
+ expect(global.core.setFailed).not.toHaveBeenCalled();
+ const auth = {
+ env: expect.objectContaining({
+ GIT_CONFIG_COUNT: "1",
+ GIT_CONFIG_KEY_0: `http.${(process.env.GITHUB_SERVER_URL || "https://github.com").replace(/\/$/, "")}/.extraheader`,
+ GIT_CONFIG_VALUE_0: `Authorization: basic ${Buffer.from("x-access-token:checkout-token").toString("base64")}`,
+ }),
+ silent: true,
+ };
+ expect(global.exec.exec).toHaveBeenCalledWith("git", ["fetch", "--no-tags", "origin", `+refs/heads/${WORK_BRANCH}:refs/remotes/origin/${WORK_BRANCH}`], auth);
+ expect(global.exec.exec).toHaveBeenCalledWith("git", ["checkout", "-B", WORK_BRANCH, HEAD], auth);
+ expect(global.core.setSecret).toHaveBeenCalledWith(Buffer.from("x-access-token:checkout-token").toString("base64"));
+ expect(global.exec.exec).not.toHaveBeenCalledWith("git", expect.arrayContaining(["config"]), expect.anything());
+ const [file, content] = writeSpy.mock.calls[0];
+ expect(file).toBe(CONTEXT_FILE);
+ expect(JSON.parse(content)).toMatchObject({
+ chain_id: CHAIN_ID,
+ hop: 1,
+ max_hops: 3,
+ remaining_hops: 2,
+ branch: WORK_BRANCH,
+ base_sha: HEAD,
+ base_branch: "main",
+ plan_file: "plan.md",
+ history: [{ hop: 0, outcome: "continued", next_steps: "tests" }],
+ });
+ });
+
+ it("fails explicitly rather than attempting an unauthenticated fetch", async () => {
+ const { github } = createLedgerFake();
+ await seed(github);
+ global.github = github;
+ global.context.payload = payload();
+ global.core.getInput.mockReturnValue("");
+ mockExec();
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining("requires the root checkout token"));
+ expect(global.exec.exec).not.toHaveBeenCalled();
+ });
+
+ it("refuses to resume when the work branch moved", async () => {
+ const { github } = createLedgerFake();
+ await seed(github);
+ global.github = github;
+ global.context.payload = payload();
+ mockExec("c".repeat(40));
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining("refusing to resume"));
+ expect(global.exec.exec).not.toHaveBeenCalledWith("git", expect.arrayContaining(["checkout"]));
+ });
+
+ it("rejects a dispatch that does not match the ledger", async () => {
+ const { github } = createLedgerFake();
+ await seed(github);
+ global.github = github;
+ mockExec();
+ global.context.payload = payload(1, "dispatch-forged");
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining("not the dispatched continuation hop"));
+ global.context.payload = payload(2);
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledTimes(2);
+ });
+
+ it("accepts a re-run of the run already bound to the hop, but not another run", async () => {
+ const { github } = createLedgerFake();
+ await seed(github);
+ await ledger.mutateChain(github, REPO, CHAIN_ID, current => ledger.bindHop(current, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW }), "Bind");
+ global.github = github;
+ global.context.payload = payload();
+ mockExec();
+ await main();
+ expect(global.core.setFailed).not.toHaveBeenCalled();
+ global.context.runId = 102;
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining("not the dispatched continuation hop"));
+ });
+
+ it("fails for settled or missing chains", async () => {
+ const { github } = createLedgerFake();
+ global.github = github;
+ global.context.payload = payload();
+ mockExec();
+ await main();
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining("does not exist"));
+ await seed(github);
+ await ledger.mutateChain(github, REPO, CHAIN_ID, current => ledger.failChain(current, { reason: "stop", now: NOW }), "Fail");
+ await main();
+ expect(global.core.setFailed).toHaveBeenLastCalledWith(expect.stringContaining("is failed"));
+ });
+});
diff --git a/actions/setup/js/continue_workflow.cjs b/actions/setup/js/continue_workflow.cjs
new file mode 100644
index 00000000000..8c7732c9a89
--- /dev/null
+++ b/actions/setup/js/continue_workflow.cjs
@@ -0,0 +1,541 @@
+// @ts-check
+///
+// @safe-outputs-exempt SEC-005: continuation work branches and the continuation ledger live only in the current GitHub Actions repository.
+"use strict";
+
+/**
+ * @typedef {import('./types/handler-factory').HandlerFactoryFunction} HandlerFactoryFunction
+ */
+
+/**
+ * continue_workflow: persist the agent's progress to one stable work branch and schedule
+ * another run of the same workflow that resumes from that branch.
+ *
+ * Trust model:
+ * - The agent only supplies commits (as a bundle), a reason and optional next steps.
+ * - The work branch, the expected branch head, the hop number and the hop budget come from
+ * the continuation ledger, never from the agent or from files the agent can write.
+ * - Every branch update is a compare-and-swap against the ledger's expected head, and every
+ * ledger transition is a compare-and-swap against the ledger head, so duplicate delivery
+ * can never create a duplicate hop or overwrite unrelated work.
+ * - Exactly one pull request is created, by create_pull_request in the final hop, with the
+ * work branch as its head.
+ */
+
+const { getErrorMessage } = require("./error_helpers.cjs");
+const { ERR_API, ERR_VALIDATION } = require("./error_codes.cjs");
+const { isStagedMode } = require("./safe_output_helpers.cjs");
+const { logStagedPreviewInfo } = require("./staged_preview.cjs");
+const { createAuthenticatedGitHubClient } = require("./handler_auth.cjs");
+const { normalizeBranchName } = require("./normalize_branch_name.cjs");
+const { resolveTransportPaths } = require("./resolve_transport_paths.cjs");
+const { pushSignedCommits } = require("./push_signed_commits.cjs");
+const { checkFileProtection, checkFileProtectionPostApply } = require("./manifest_file_helpers.cjs");
+const ledger = require("./continue_workflow_ledger.cjs");
+
+/** @type {string} Safe output type handled by this module */
+const HANDLER_TYPE = "continue_workflow";
+const MAINTENANCE_WORKFLOW = "agentics-maintenance.yml";
+const DISPATCH_OPERATION = "dispatch_continuations";
+const DEFAULT_MAX_PATCH_KB = 4096;
+const DEFAULT_MAX_PATCH_FILES = 100;
+
+/**
+ * Continuation bound to the current run (hop >= 1), resolved from aw_context and the ledger.
+ * @type {any}
+ */
+let activeContinuation = null;
+/** @type {string | null} */
+let finalHeadSha = null;
+
+function resetContinueWorkflowState() {
+ activeContinuation = null;
+ finalHeadSha = null;
+}
+
+/** @returns {any} */
+function getActiveContinuation() {
+ return activeContinuation;
+}
+
+/** @param {string} sha */
+function noteFinalHead(sha) {
+ finalHeadSha = sha;
+}
+
+function nowIso() {
+ return new Date().toISOString();
+}
+
+function currentRunId() {
+ return String(context.runId || process.env.GITHUB_RUN_ID || "");
+}
+
+function repoRef() {
+ return { owner: context.repo.owner, repo: context.repo.repo };
+}
+
+/** @param {any} value */
+function parsePositive(value, fallback) {
+ const parsed = typeof value === "number" ? value : typeof value === "string" ? Number.parseInt(value, 10) : NaN;
+ return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : fallback;
+}
+
+/**
+ * Resolves the continuation for this run from aw_context and binds the dispatched hop to it.
+ * Must run before any safe output message is processed.
+ * @param {any} config - continue_workflow handler configuration
+ * @param {any} [githubClient]
+ */
+async function prepareContinueWorkflow(config, githubClient) {
+ activeContinuation = null;
+ finalHeadSha = null;
+ const request = ledger.parseContinuationRequest(context.payload);
+ if (!request) return null;
+ if (context.eventName !== "workflow_dispatch") {
+ throw new Error(`${ERR_VALIDATION}: continuation context is only accepted on workflow_dispatch runs`);
+ }
+ const client = githubClient || (await createAuthenticatedGitHubClient(config || {}));
+ const runId = currentRunId();
+ let chain;
+ if (isStagedMode(config || {})) {
+ chain = await ledger.readChain(client, repoRef(), request.chain_id);
+ if (!chain) throw new Error(`${ERR_VALIDATION}: continuation chain ${request.chain_id} does not exist`);
+ } else {
+ ({ chain } = await ledger.mutateChain(client, repoRef(), request.chain_id, current => ledger.bindHop(current, { hop: request.hop, dispatchId: request.dispatch_id, runId, now: nowIso() }), "Bind continuation hop"));
+ }
+ const recorded = chain.hops.find(/** @param {any} h */ h => h.hop === request.hop && h.run_id === runId);
+ const running = chain.status === "active" && chain.next?.hop === request.hop;
+ activeContinuation = {
+ chain_id: chain.chain_id,
+ hop: request.hop,
+ dispatch_id: request.dispatch_id,
+ branch: chain.branch,
+ base_branch: chain.base_branch,
+ base_sha: running ? chain.next.base_sha : null,
+ max_hops: chain.max_hops,
+ protected_files: Array.isArray(chain.protected_files) ? chain.protected_files : [],
+ protected_action: chain.protected_action || null,
+ settled: Boolean(recorded) || !running,
+ status: chain.status,
+ pull_request: chain.pull_request || null,
+ };
+ core.info(`Continuation run: chain ${chain.chain_id}, hop ${request.hop}/${chain.max_hops}, branch ${chain.branch}${activeContinuation.settled ? " (already settled)" : ""}`);
+ return activeContinuation;
+}
+
+/**
+ * @param {string[]} args
+ * @param {{ignoreReturnCode?: boolean}} [options]
+ */
+async function git(args, options = {}) {
+ return exec.getExecOutput("git", args, { ignoreReturnCode: options.ignoreReturnCode === true, silent: true });
+}
+
+/** @param {string} sha */
+async function ensureCommitAvailable(sha) {
+ const present = await git(["cat-file", "-e", `${sha}^{commit}`], { ignoreReturnCode: true });
+ if (present.exitCode === 0) return;
+ const shallow = await git(["rev-parse", "--is-shallow-repository"], { ignoreReturnCode: true });
+ const depthArgs = shallow.exitCode === 0 && shallow.stdout.trim() === "true" ? ["--depth=1"] : [];
+ await exec.exec("git", ["fetch", "--no-tags", ...depthArgs, "origin", sha]);
+}
+
+/**
+ * @param {any} githubClient
+ * @param {string} branch
+ * @returns {Promise}
+ */
+async function readRemoteHead(githubClient, branch) {
+ try {
+ const { data } = await githubClient.rest.git.getRef({ ...repoRef(), ref: `heads/${branch}` });
+ return data?.object?.sha || null;
+ } catch (error) {
+ if (error instanceof Error && "status" in error && error.status === 404) return null;
+ throw error;
+ }
+}
+
+/**
+ * @param {any} githubClient
+ * @param {string} expectedBase
+ * @param {string} headSha
+ * @param {string} remoteHead
+ * @param {boolean} signedCommits
+ */
+async function isVerifiedContinuationReplay(githubClient, expectedBase, headSha, remoteHead, signedCommits) {
+ if (!signedCommits) return remoteHead === headSha;
+ const { stdout } = await git(["rev-list", "--reverse", "--parents", `${expectedBase}..${headSha}`]);
+ const commits = stdout
+ .trim()
+ .split("\n")
+ .map(line => line.split(" "));
+ let remoteSha = remoteHead;
+ for (let index = commits.length - 1; index >= 0; index--) {
+ const [localSha, parent, ...otherParents] = commits[index];
+ const expectedParent = index === 0 ? expectedBase : commits[index - 1][0];
+ if (!ledger.isSha(localSha) || parent !== expectedParent || otherParents.length !== 0) return false;
+ const { data } = await githubClient.rest.git.getCommit({ ...repoRef(), commit_sha: remoteSha });
+ if (data?.sha !== remoteSha || data.parents?.length !== 1 || !ledger.isSha(data.parents[0].sha)) return false;
+ if (data.verification?.verified !== true || data.verification.reason !== "valid") return false;
+ const { stdout: tree } = await git(["rev-parse", `${localSha}^{tree}`]);
+ if (data.tree?.sha !== tree.trim()) return false;
+ const { stdout: message } = await git(["log", "-1", "--format=%B", localSha]);
+ const [headline, ...bodyLines] = message.trim().split("\n");
+ const body = bodyLines.join("\n").trim();
+ const replayedMessage = headline + (body ? `\n\n${body}` : "");
+ if (typeof data.message !== "string" || data.message.trim() !== replayedMessage) return false;
+ remoteSha = data.parents[0].sha;
+ }
+ return remoteSha === expectedBase;
+}
+
+/**
+ * Applies trusted policy to the exact commit range that will be persisted. The range is
+ * computed here from the ledger's expected base, not from the agent-side patch, so the agent
+ * cannot narrow it.
+ * @param {string} baseSha
+ * @param {string} headSha
+ * @param {any} config
+ */
+async function checkContinuationPolicy(baseSha, headSha, config) {
+ const { stdout: diff } = await git(["diff", "--binary", "--no-renames", baseSha, headSha]);
+ const { enforcePullRequestLimits } = require("./create_pull_request.cjs");
+ enforcePullRequestLimits(diff, parsePositive(config.max_patch_files, DEFAULT_MAX_PATCH_FILES));
+ const sizeKb = Math.ceil(Buffer.byteLength(diff, "utf8") / 1024);
+ const maxKb = parsePositive(config.max_patch_size, DEFAULT_MAX_PATCH_KB);
+ if (sizeKb > maxKb) throw new Error(`${ERR_VALIDATION}: continuation changes (${sizeKb} KB) exceed the maximum allowed patch size (${maxKb} KB)`);
+ const policyConfig = { ...config, protected_files_policy: config.protected_files_policy ?? "request_review" };
+ const parsedProtection = checkFileProtection(diff, policyConfig);
+ const { stdout: changedFileOutput } = await git(["diff", "--name-only", "-z", "--no-renames", baseSha, headSha]);
+ const postApplyProtection = checkFileProtectionPostApply(changedFileOutput.split("\0").filter(Boolean), policyConfig);
+ /** @type {ReturnType | ReturnType} */
+ let protection = parsedProtection;
+ if (postApplyProtection.action === "deny" || parsedProtection.action === "allow") {
+ protection = postApplyProtection.action === "allow" ? parsedProtection : postApplyProtection;
+ } else if (postApplyProtection.action !== "allow") {
+ protection = { ...parsedProtection, files: [...new Set([...parsedProtection.files, ...postApplyProtection.files])] };
+ }
+ if (protection.action === "deny") {
+ const files = protection.files.join(", ");
+ throw new Error(
+ protection.source === "allowlist" || protection.source === "post-apply"
+ ? `${ERR_VALIDATION}: continuation modifies files outside the allowed-files list (${files})`
+ : `${ERR_VALIDATION}: continuation modifies protected files (${files})`
+ );
+ }
+ if (protection.action === "fallback" || protection.action === "request_review") {
+ return { protectedFiles: protection.files, protectedAction: protection.action };
+ }
+ return { protectedFiles: [], protectedAction: null };
+}
+
+/**
+ * Persists one hop of commits to the stable work branch.
+ *
+ * The bundle is applied locally, the commits must descend from the expected base recorded in
+ * the ledger, trusted policy is applied to base..head, and the branch is advanced only if it
+ * still points at the expected base (signed commits: expectedHeadOid; unsigned: non-forced
+ * fast-forward push). A retry requires the exact unsigned commit or a verified signed replay
+ * of the same commits, trees, messages and parent chain rooted at the expected base.
+ *
+ * @param {{bundlePath: string, agentBranch: string, workBranch: string, baseBranch: string, expectedBase: string, isInitial: boolean, config: any, githubClient: any}} options
+ * @returns {Promise<{headSha: string, protectedFiles: string[], protectedAction: string|null, alreadyPersisted: boolean}>}
+ */
+async function persistContinuationHop(options) {
+ const { bundlePath, agentBranch, workBranch, baseBranch, expectedBase, isInitial, config, githubClient } = options;
+ if (!ledger.isSha(expectedBase)) throw new Error(`${ERR_VALIDATION}: continuation base is not a commit SHA`);
+ const { applyBundleToBranch } = require("./create_pull_request.cjs");
+ await ensureCommitAvailable(expectedBase);
+ await applyBundleToBranch(bundlePath, workBranch, agentBranch, exec, baseBranch);
+ const headSha = (await git(["rev-parse", "HEAD^{commit}"])).stdout.trim();
+ if (headSha === expectedBase) throw new Error(`${ERR_VALIDATION}: continuation contains no new commits; commit the plan.md update before calling continue_workflow`);
+ const ancestry = await git(["merge-base", "--is-ancestor", expectedBase, headSha], { ignoreReturnCode: true });
+ if (ancestry.exitCode !== 0) throw new Error(`${ERR_VALIDATION}: continuation commits do not build on the work branch head ${expectedBase}`);
+ const policy = await checkContinuationPolicy(expectedBase, headSha, config);
+
+ const signedCommits = config.signed_commits !== false;
+ const remoteHead = await readRemoteHead(githubClient, workBranch);
+ const expectedRemote = isInitial ? null : expectedBase;
+ if (remoteHead !== expectedRemote) {
+ if (remoteHead && (await isVerifiedContinuationReplay(githubClient, expectedBase, headSha, remoteHead, signedCommits))) {
+ core.info(`Work branch ${workBranch} already contains this verified hop (${remoteHead}); treating as already persisted`);
+ return { headSha: remoteHead, ...policy, alreadyPersisted: true };
+ }
+ throw new Error(`${ERR_VALIDATION}: work branch ${workBranch} moved unexpectedly (expected ${expectedRemote || "no branch"}, found ${remoteHead || "no branch"}); the branch was preserved`);
+ }
+
+ const pushedHead = await pushSignedCommits({
+ githubClient,
+ ...repoRef(),
+ branch: workBranch,
+ baseRef: expectedBase,
+ cwd: process.cwd(),
+ signedCommits,
+ allowGitPushFallback: false,
+ requireBaseRefMatch: signedCommits,
+ validationConfig: config,
+ });
+ const persistedHead = await readRemoteHead(githubClient, workBranch);
+ if (!persistedHead || !ledger.isSha(persistedHead)) throw new Error(`${ERR_API}: work branch ${workBranch} could not be resolved after push`);
+ if (persistedHead !== pushedHead) throw new Error(`${ERR_VALIDATION}: work branch ${workBranch} moved after push (expected ${pushedHead}, found ${persistedHead}); the branch was preserved`);
+ core.info(`Persisted continuation commits to ${workBranch} at ${persistedHead}`);
+ return { headSha: persistedHead, ...policy, alreadyPersisted: false };
+}
+
+/**
+ * Verifies that the hop-0 base commit is reachable from the base branch so the work branch
+ * never carries unrelated history into the final pull request.
+ * @param {any} githubClient
+ * @param {string} baseCommit
+ * @param {string} baseBranch
+ */
+async function assertBaseOnBranch(githubClient, baseCommit, baseBranch) {
+ const { data } = await githubClient.rest.repos.compareCommitsWithBasehead({ ...repoRef(), basehead: `${baseCommit}...${baseBranch}`, per_page: 1 });
+ if (data?.status !== "ahead" && data?.status !== "identical") {
+ throw new Error(`${ERR_VALIDATION}: continuation base commit ${baseCommit} is not part of ${baseBranch}`);
+ }
+}
+
+/**
+ * Base branch of a new chain: the configured base branch, else the branch this run was
+ * triggered on, else the repository default branch.
+ * @param {string} configuredBaseBranch
+ */
+function resolveInitialBaseBranch(configuredBaseBranch) {
+ if (configuredBaseBranch) return configuredBaseBranch;
+ const ref = String(process.env.GITHUB_REF || context.ref || "");
+ if (ref.startsWith("refs/heads/")) return ref.slice("refs/heads/".length);
+ return String(context.payload?.repository?.default_branch || "");
+}
+
+/** Resolves the workflow file name and dispatch ref of the current run. */
+function resolveDispatchTarget() {
+ const workflowRef = process.env.GITHUB_WORKFLOW_REF || "";
+ const [workflowPath, ref] = workflowRef.split("@");
+ const workflowFile = (workflowPath || "").split("/").pop() || "";
+ if (!ledger.WORKFLOW_FILE_PATTERN.test(workflowFile)) throw new Error(`${ERR_VALIDATION}: cannot resolve the workflow file for continuation from GITHUB_WORKFLOW_REF`);
+ const dispatchRef = ref && /^refs\/(heads|tags)\/[A-Za-z0-9._/-]+$/.test(ref) ? ref : "";
+ return { workflowFile, ref: dispatchRef };
+}
+
+/** Initiator of the chain, used by pre-activation to authorize maintenance dispatches. */
+function resolveInitiator() {
+ const raw = context.payload?.inputs?.aw_context;
+ if (context.eventName === "workflow_dispatch" && context.actor === "github-actions[bot]" && typeof raw === "string") {
+ try {
+ const actor = JSON.parse(raw)?.actor;
+ if (typeof actor === "string" && actor.trim()) return actor.trim();
+ } catch {
+ // fall through to the run actor
+ }
+ }
+ return String(context.actor || "");
+}
+
+/**
+ * Asks Agentic Maintenance to dispatch queued continuations now. The schedule is the
+ * fallback, so failures here are warnings only.
+ * @param {any} githubClient
+ */
+async function requestContinuationDispatch(githubClient) {
+ try {
+ const defaultBranch = context.payload?.repository?.default_branch;
+ let ref = defaultBranch ? `refs/heads/${defaultBranch}` : "";
+ if (!ref) {
+ const { data } = await githubClient.rest.repos.get(repoRef());
+ ref = `refs/heads/${data.default_branch}`;
+ }
+ await githubClient.rest.actions.createWorkflowDispatch({ ...repoRef(), workflow_id: MAINTENANCE_WORKFLOW, ref, inputs: { operation: DISPATCH_OPERATION } });
+ core.info(`Requested Agentic Maintenance to dispatch the next continuation hop`);
+ return true;
+ } catch (error) {
+ core.warning(`Could not request immediate continuation dispatch (${getErrorMessage(error)}); scheduled Agentic Maintenance will dispatch it`);
+ return false;
+ }
+}
+
+/** @type {HandlerFactoryFunction} */
+async function main(config = {}) {
+ const maxCount = 1;
+ const isStaged = isStagedMode(config);
+ const maxHops = ledger.parseMaxHops(config.max_hops);
+ const branchPrefix = normalizeBranchName(config.branch_prefix || "") || "";
+ const configuredBaseBranch = typeof config.base_branch === "string" ? config.base_branch.trim() : "";
+ const githubClient = await createAuthenticatedGitHubClient(config);
+ let processedCount = 0;
+
+ return async function handleContinueWorkflow(message) {
+ if (processedCount >= maxCount) {
+ core.warning(`Skipping ${HANDLER_TYPE}: max count of ${maxCount} reached`);
+ return { success: false, error: `Max count of ${maxCount} reached` };
+ }
+ processedCount++;
+
+ const reason = typeof message?.reason === "string" ? message.reason.trim() : "";
+ const nextSteps = typeof message?.next_steps === "string" ? message.next_steps.trim() : "";
+ const agentBranch = typeof message?.branch === "string" ? message.branch.trim() : "";
+ if (!reason) return { success: false, error: "continue_workflow requires a reason" };
+ if (!agentBranch) return { success: false, error: "continue_workflow requires the branch that holds the committed progress" };
+
+ const active = activeContinuation;
+ if (active?.settled) {
+ return { success: true, skipped: true, reason: `continuation hop ${active.hop} of chain ${active.chain_id} was already settled` };
+ }
+
+ const runId = currentRunId();
+ const workflowId = process.env.GH_AW_WORKFLOW_ID || "";
+ if (!workflowId) return { success: false, error: "GH_AW_WORKFLOW_ID is required for continue_workflow" };
+ const hop = active ? active.hop : 0;
+ const isInitial = !active;
+ const chainId = active ? active.chain_id : ledger.buildChainId(workflowId, runId);
+ const workBranch = active ? active.branch : ledger.buildWorkBranch(workflowId, runId, branchPrefix);
+ // Hop 0 starts from the commit this run checked out; later hops from the ledger's recorded head.
+ const baseBranch = active ? active.base_branch : resolveInitialBaseBranch(configuredBaseBranch);
+ const expectedBase = active ? active.base_sha : String(process.env.GITHUB_SHA || context.sha || "").trim();
+
+ if (active && agentBranch !== active.branch) {
+ return { success: false, error: `continue_workflow must be called on the continuation branch ${active.branch}, not ${agentBranch}` };
+ }
+ if (!baseBranch || normalizeBranchName(baseBranch) !== baseBranch) return { success: false, error: "continue_workflow could not resolve a valid base branch" };
+ if (!ledger.isSha(expectedBase)) return { success: false, error: "continue_workflow could not resolve the base commit of the work branch" };
+
+ const { bundlePath } = resolveTransportPaths(message, `${context.repo.owner}/${context.repo.repo}`);
+ if (!bundlePath) return { success: false, error: "continue_workflow requires a git bundle with the committed progress" };
+
+ if (isStaged) {
+ logStagedPreviewInfo(`Would persist hop ${hop} to ${workBranch} and schedule hop ${hop + 1} of at most ${active ? active.max_hops : maxHops}`);
+ return { success: true, staged: true, branch: workBranch, hop };
+ }
+
+ const failHop = async (/** @type {string} */ error) => {
+ if (active) {
+ try {
+ await ledger.mutateChain(githubClient, repoRef(), chainId, current => ledger.failChain(current, { hop, runId, reason: error, now: nowIso() }), "Fail continuation hop");
+ } catch (ledgerError) {
+ core.warning(`Could not record continuation failure in the ledger: ${getErrorMessage(ledgerError)}`);
+ }
+ }
+ return { success: false, error: `${error}. Work branch ${workBranch} was preserved.` };
+ };
+
+ try {
+ if (isInitial) {
+ const existing = await ledger.readChain(githubClient, repoRef(), chainId);
+ if (existing && existing.hops.some(/** @param {any} h */ h => h.hop === 0 && h.run_id === runId)) {
+ await requestContinuationDispatch(githubClient);
+ return { success: true, skipped: true, reason: `continuation chain ${chainId} already recorded hop 0` };
+ }
+ await assertBaseOnBranch(githubClient, expectedBase, baseBranch);
+ }
+
+ const persisted = await persistContinuationHop({ bundlePath, agentBranch, workBranch, baseBranch, expectedBase, isInitial, config, githubClient });
+ const now = nowIso();
+ const recordInput = { hop, runId, headSha: persisted.headSha, reason, nextSteps, protectedFiles: persisted.protectedFiles, protectedAction: persisted.protectedAction || undefined, now };
+ let initialChain;
+ if (isInitial) {
+ const target = resolveDispatchTarget();
+ initialChain = {
+ chainId,
+ runId,
+ workflowId,
+ workflowFile: target.workflowFile,
+ ref: target.ref,
+ repository: `${context.repo.owner}/${context.repo.repo}`,
+ initiator: resolveInitiator(),
+ baseBranch,
+ baseCommit: expectedBase,
+ branch: workBranch,
+ maxHops,
+ now,
+ };
+ }
+ const { chain } = await ledger.mutateChain(
+ githubClient,
+ repoRef(),
+ chainId,
+ current => {
+ const started = initialChain ? ledger.startChain(current, initialChain) : { chain: current, changed: false };
+ const recorded = ledger.recordContinuation(started.chain, recordInput);
+ return { chain: recorded.chain, changed: started.changed || recorded.changed };
+ },
+ `Record continuation hop ${hop}`
+ );
+
+ if (chain.status === "exhausted") {
+ core.warning(chain.error);
+ await core.summary.addRaw(`\n## Continuation budget exhausted\n\n- **Chain**: \`${chainId}\`\n- **Work branch**: \`${workBranch}\` (preserved)\n- **Hops used**: ${chain.max_hops}\n`).write();
+ return { success: false, error: chain.error };
+ }
+
+ await requestContinuationDispatch(githubClient);
+ await core.summary.addRaw(`\n## Workflow continuation scheduled\n\n- **Chain**: \`${chainId}\`\n- **Work branch**: \`${workBranch}\` at \`${persisted.headSha}\`\n- **Next hop**: ${chain.next.hop} of ${chain.max_hops}\n`).write();
+ return { success: true, chain_id: chainId, branch: workBranch, head_sha: persisted.headSha, hop, next_hop: chain.next.hop, max_hops: chain.max_hops };
+ } catch (error) {
+ const errorMessage = getErrorMessage(error);
+ core.error(`continue_workflow failed: ${errorMessage}`);
+ return failHop(errorMessage);
+ }
+ };
+}
+
+/**
+ * Settles a continuation run after all safe outputs were processed:
+ * - continue_workflow already recorded its own outcome;
+ * - a successful create_pull_request completes the chain with the single final pull request;
+ * - anything else fails the chain and preserves the work branch.
+ * @param {any} config
+ * @param {Array} results - processMessages results
+ * @param {any} [githubClient]
+ */
+async function finalizeContinueWorkflow(config, results, githubClient) {
+ const active = activeContinuation;
+ if (!active || active.settled || isStagedMode(config || {})) return;
+ const list = Array.isArray(results) ? results : [];
+ // A successful continue_workflow already recorded the hop; a failed one may have left the
+ // hop running (for example on input validation), so it is settled as failed below.
+ const continuation = list.find(r => r?.type === HANDLER_TYPE);
+ if (continuation?.success === true) return;
+ const client = githubClient || (await createAuthenticatedGitHubClient(config || {}));
+ const runId = currentRunId();
+ const prResult = list.find(r => r?.type === "create_pull_request" && r.success === true && !r.skipped);
+ const pr = prResult?.result;
+ try {
+ if (pr && pr.number && pr.url && !pr.fallback_used) {
+ await ledger.mutateChain(
+ client,
+ repoRef(),
+ active.chain_id,
+ current => ledger.completeChain(current, { hop: active.hop, runId, headSha: finalHeadSha || undefined, pullRequest: { number: pr.number, url: pr.url }, now: nowIso() }),
+ "Complete continuation chain"
+ );
+ core.info(`Continuation chain ${active.chain_id} completed with pull request #${pr.number}`);
+ return;
+ }
+ const reason = continuation
+ ? `continue_workflow failed in continuation hop ${active.hop}: ${continuation.error || continuation.result?.error || "unknown error"}`
+ : pr?.fallback_used
+ ? `final hop produced fallback issue ${pr.issue_url || ""} instead of a pull request`.trim()
+ : `continuation hop ${active.hop} ended without continue_workflow or a created pull request`;
+ await ledger.mutateChain(client, repoRef(), active.chain_id, current => ledger.failChain(current, { hop: active.hop, runId, reason, now: nowIso() }), "Fail continuation chain");
+ const message = `Continuation chain ${active.chain_id} stopped: ${reason}. Work branch ${active.branch} was preserved.`;
+ await core.summary.addRaw(`\n## Workflow continuation stopped\n\n${message}\n`).write();
+ if (pr?.fallback_used) core.warning(message);
+ else core.setFailed(`${ERR_VALIDATION}: ${message}`);
+ } catch (error) {
+ core.setFailed(`${ERR_API}: failed to settle continuation chain ${active.chain_id}: ${getErrorMessage(error)}`);
+ }
+}
+
+module.exports = {
+ main,
+ HANDLER_TYPE,
+ DISPATCH_OPERATION,
+ MAINTENANCE_WORKFLOW,
+ prepareContinueWorkflow,
+ finalizeContinueWorkflow,
+ getActiveContinuation,
+ noteFinalHead,
+ persistContinuationHop,
+ resetContinueWorkflowState,
+};
diff --git a/actions/setup/js/continue_workflow.test.cjs b/actions/setup/js/continue_workflow.test.cjs
new file mode 100644
index 00000000000..3994f6a6ab4
--- /dev/null
+++ b/actions/setup/js/continue_workflow.test.cjs
@@ -0,0 +1,500 @@
+import { describe, it, expect, beforeEach, afterAll, vi } from "vitest";
+import { createRequire } from "module";
+import crypto from "crypto";
+import fs from "fs";
+import path from "path";
+import { spawnSync } from "child_process";
+
+const require = createRequire(import.meta.url);
+
+const summary = { addRaw: vi.fn(), write: vi.fn() };
+global.core = { info: vi.fn(), warning: vi.fn(), error: vi.fn(), debug: vi.fn(), notice: vi.fn(), setFailed: vi.fn(), setOutput: vi.fn(), summary };
+global.context = { repo: { owner: "o", repo: "r" }, runId: 101, eventName: "workflow_dispatch", actor: "github-actions[bot]", payload: {} };
+
+const ledger = require("./continue_workflow_ledger.cjs");
+const continueWorkflow = require("./continue_workflow.cjs");
+const { suppressPullRequestWhenContinuing } = require("./safe_output_handler_manager.cjs");
+const { createLedgerFake } = require("./continue_workflow.test_helpers.cjs");
+
+const REPO = { owner: "o", repo: "r" };
+const NOW = "2026-01-01T00:00:00.000Z";
+const CHAIN_ID = "my-workflow-100";
+const WORK_BRANCH = "continue-workflow/my-workflow/100";
+const SHA_A = "a".repeat(40);
+const SHA_B = "b".repeat(40);
+
+function dispatchPayload(hop = 1, dispatchId = "dispatch-0001") {
+ return { inputs: { aw_context: JSON.stringify({ actor: "octocat", continuation: { chain_id: CHAIN_ID, hop, dispatch_id: dispatchId } }) } };
+}
+
+/** Seeds a chain whose hop 1 is dispatched with `dispatch-0001`. */
+async function seedDispatchedChain(github, maxHops = 3) {
+ await ledger.mutateChain(
+ github,
+ REPO,
+ CHAIN_ID,
+ current => {
+ let { chain } = ledger.startChain(current, {
+ chainId: CHAIN_ID,
+ runId: "100",
+ workflowId: "my-workflow",
+ workflowFile: "my-workflow.lock.yml",
+ ref: "refs/heads/main",
+ repository: "o/r",
+ initiator: "octocat",
+ baseBranch: "main",
+ baseCommit: SHA_A,
+ branch: WORK_BRANCH,
+ maxHops,
+ now: NOW,
+ });
+ chain = ledger.recordContinuation(chain, { hop: 0, runId: "100", headSha: SHA_B, reason: "more", now: NOW }).chain;
+ return ledger.claimDispatch(chain, { dispatchId: "dispatch-0001", now: NOW });
+ },
+ "Seed"
+ );
+}
+
+describe("continue_workflow", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ summary.addRaw.mockReturnValue(summary);
+ summary.write.mockResolvedValue(undefined);
+ global.context.eventName = "workflow_dispatch";
+ global.context.runId = 101;
+ global.context.payload = {};
+ continueWorkflow.resetContinueWorkflowState();
+ });
+
+ describe("prepareContinueWorkflow", () => {
+ it("is a no-op for runs that are not continuation hops", async () => {
+ const { github } = createLedgerFake();
+ expect(await continueWorkflow.prepareContinueWorkflow({}, github)).toBeNull();
+ expect(continueWorkflow.getActiveContinuation()).toBeNull();
+ });
+
+ it("rejects continuation context outside workflow_dispatch", async () => {
+ const { github } = createLedgerFake();
+ global.context.eventName = "issues";
+ global.context.payload = dispatchPayload();
+ await expect(continueWorkflow.prepareContinueWorkflow({}, github)).rejects.toThrow(/only accepted on workflow_dispatch/);
+ });
+
+ it("binds the dispatched hop to this run and exposes trusted ledger values", async () => {
+ const { github } = createLedgerFake();
+ await seedDispatchedChain(github);
+ global.context.payload = dispatchPayload();
+ const active = await continueWorkflow.prepareContinueWorkflow({}, github);
+ expect(active).toMatchObject({ chain_id: CHAIN_ID, hop: 1, branch: WORK_BRANCH, base_branch: "main", base_sha: SHA_B, max_hops: 3, settled: false });
+ const chain = await ledger.readChain(github, REPO, CHAIN_ID);
+ expect(chain.next).toMatchObject({ state: "running", run_id: "101" });
+ // A job re-run of the same run binds idempotently.
+ await expect(continueWorkflow.prepareContinueWorkflow({}, github)).resolves.toMatchObject({ settled: false });
+ });
+
+ it("rejects a forged dispatch id", async () => {
+ const { github } = createLedgerFake();
+ await seedDispatchedChain(github);
+ global.context.payload = dispatchPayload(1, "dispatch-forged");
+ await expect(continueWorkflow.prepareContinueWorkflow({}, github)).rejects.toThrow(/dispatch id/);
+ });
+
+ it("rejects a second run for an already bound hop", async () => {
+ const { github } = createLedgerFake();
+ await seedDispatchedChain(github);
+ global.context.payload = dispatchPayload();
+ await continueWorkflow.prepareContinueWorkflow({}, github);
+ global.context.runId = 102;
+ await expect(continueWorkflow.prepareContinueWorkflow({}, github)).rejects.toThrow(/already bound to run 101/);
+ });
+
+ it("does not write the ledger in staged mode", async () => {
+ const { github, store } = createLedgerFake();
+ await seedDispatchedChain(github);
+ const head = store.refs.get(ledger.LEDGER_BRANCH);
+ global.context.payload = dispatchPayload();
+ const active = await continueWorkflow.prepareContinueWorkflow({ staged: true }, github);
+ expect(active.chain_id).toBe(CHAIN_ID);
+ expect(store.refs.get(ledger.LEDGER_BRANCH)).toBe(head);
+ });
+ });
+
+ describe("finalizeContinueWorkflow", () => {
+ async function bound() {
+ const fake = createLedgerFake();
+ await seedDispatchedChain(fake.github);
+ global.context.payload = dispatchPayload();
+ await continueWorkflow.prepareContinueWorkflow({}, fake.github);
+ return fake;
+ }
+
+ it("completes the chain with the single final pull request", async () => {
+ const { github } = await bound();
+ continueWorkflow.noteFinalHead("c".repeat(40));
+ await continueWorkflow.finalizeContinueWorkflow({}, [{ type: "create_pull_request", success: true, result: { number: 7, url: "https://github.com/o/r/pull/7" } }], github);
+ const chain = await ledger.readChain(github, REPO, CHAIN_ID);
+ expect(chain.status).toBe("completed");
+ expect(chain.pull_request).toEqual({ number: 7, url: "https://github.com/o/r/pull/7" });
+ expect(chain.hops.at(-1)).toMatchObject({ hop: 1, outcome: "completed", head_sha: "c".repeat(40) });
+ expect(global.core.setFailed).not.toHaveBeenCalled();
+ });
+
+ it("leaves a successful continue_workflow hop as recorded", async () => {
+ const { github, store } = await bound();
+ const head = store.refs.get(ledger.LEDGER_BRANCH);
+ await continueWorkflow.finalizeContinueWorkflow({}, [{ type: "continue_workflow", success: true }], github);
+ expect(store.refs.get(ledger.LEDGER_BRANCH)).toBe(head);
+ });
+
+ it("fails the chain and preserves the branch when continue_workflow fails", async () => {
+ const { github } = await bound();
+ await continueWorkflow.finalizeContinueWorkflow({}, [{ type: "continue_workflow", success: false, error: "patch too large" }], github);
+ const chain = await ledger.readChain(github, REPO, CHAIN_ID);
+ expect(chain.status).toBe("failed");
+ expect(chain.error).toContain("patch too large");
+ expect(chain.branch).toBe(WORK_BRANCH);
+ expect(global.core.setFailed).toHaveBeenCalledWith(expect.stringContaining(`Work branch ${WORK_BRANCH} was preserved`));
+ });
+
+ it("fails the chain when the hop produced neither output", async () => {
+ const { github } = await bound();
+ await continueWorkflow.finalizeContinueWorkflow({}, [], github);
+ expect((await ledger.readChain(github, REPO, CHAIN_ID)).error).toContain("ended without continue_workflow or a created pull request");
+ expect(global.core.setFailed).toHaveBeenCalled();
+ });
+
+ it("reports a fallback issue instead of completing the chain", async () => {
+ const { github } = await bound();
+ await continueWorkflow.finalizeContinueWorkflow({}, [{ type: "create_pull_request", success: true, result: { fallback_used: true, issue_url: "https://github.com/o/r/issues/9" } }], github);
+ expect((await ledger.readChain(github, REPO, CHAIN_ID)).status).toBe("failed");
+ expect(global.core.warning).toHaveBeenCalledWith(expect.stringContaining("fallback issue"));
+ expect(global.core.setFailed).not.toHaveBeenCalled();
+ });
+ });
+
+ describe("handler", () => {
+ beforeEach(() => {
+ global.github = createLedgerFake().github;
+ process.env.GH_AW_WORKFLOW_ID = "my-workflow";
+ });
+
+ it("requires a reason and a branch", async () => {
+ const handler = await continueWorkflow.main({});
+ expect(await handler({ branch: "x" })).toMatchObject({ success: false, error: expect.stringContaining("requires a reason") });
+ const second = await continueWorkflow.main({});
+ expect(await second({ reason: "more" })).toMatchObject({ success: false, error: expect.stringContaining("requires the branch") });
+ });
+
+ it("processes at most one continuation per run", async () => {
+ const handler = await continueWorkflow.main({});
+ await handler({ reason: "x" });
+ expect(await handler({ reason: "x", branch: "b" })).toMatchObject({ success: false, error: expect.stringContaining("Max count") });
+ });
+
+ it("requires the bundle produced by the safe-outputs server", async () => {
+ process.env.GITHUB_SHA = SHA_A;
+ process.env.GITHUB_REF = "refs/heads/main";
+ const handler = await continueWorkflow.main({});
+ expect(await handler({ reason: "more", branch: `missing-bundle-${crypto.randomUUID()}` })).toMatchObject({ success: false, error: expect.stringContaining("requires a git bundle") });
+ });
+
+ it("rejects progress committed to a branch other than the continuation branch", async () => {
+ const { github } = createLedgerFake();
+ await seedDispatchedChain(github);
+ global.context.payload = dispatchPayload();
+ await continueWorkflow.prepareContinueWorkflow({}, github);
+ const handler = await continueWorkflow.main({});
+ expect(await handler({ reason: "more", branch: "other" })).toMatchObject({ success: false, error: expect.stringContaining(`continuation branch ${WORK_BRANCH}`) });
+ });
+
+ it("skips an already settled hop", async () => {
+ const { github } = createLedgerFake();
+ await seedDispatchedChain(github);
+ global.context.payload = dispatchPayload();
+ await continueWorkflow.prepareContinueWorkflow({}, github);
+ await ledger.mutateChain(github, REPO, CHAIN_ID, current => ledger.recordContinuation(current, { hop: 1, runId: "101", headSha: "c".repeat(40), reason: "x", now: NOW }), "Record");
+ await continueWorkflow.prepareContinueWorkflow({}, github);
+ const handler = await continueWorkflow.main({});
+ expect(await handler({ reason: "more", branch: WORK_BRANCH })).toMatchObject({ success: true, skipped: true });
+ });
+ });
+
+ describe("suppressPullRequestWhenContinuing", () => {
+ it("skips create_pull_request when the run continues the workflow", async () => {
+ const cpr = vi.fn();
+ const handlers = new Map([
+ ["continue_workflow", vi.fn()],
+ ["create_pull_request", cpr],
+ ]);
+ suppressPullRequestWhenContinuing(handlers, [{ type: "create_pull_request" }, { type: "continue_workflow" }]);
+ const result = await handlers.get("create_pull_request")({});
+ expect(result).toMatchObject({ success: true, skipped: true });
+ expect(cpr).not.toHaveBeenCalled();
+ });
+
+ it("keeps create_pull_request for the final hop", () => {
+ const cpr = vi.fn();
+ const handlers = new Map([
+ ["continue_workflow", vi.fn()],
+ ["create_pull_request", cpr],
+ ]);
+ suppressPullRequestWhenContinuing(handlers, [{ type: "create_pull_request" }]);
+ expect(handlers.get("create_pull_request")).toBe(cpr);
+ });
+ });
+});
+
+describe("persistContinuationHop (real git)", () => {
+ const scratch = path.resolve(`.continue-workflow-test-${crypto.randomUUID()}`);
+ const originDir = path.join(scratch, "origin.git");
+ const agentDir = path.join(scratch, "agent");
+ const jobDir = path.join(scratch, "job");
+ const gitEnv = { ...process.env, GIT_CONFIG_NOSYSTEM: "1", GIT_CONFIG_GLOBAL: path.join(scratch, "gitconfig"), GIT_CEILING_DIRECTORIES: scratch };
+
+ function git(cwd, args, allowFailure = false) {
+ // The bare origin is addressed explicitly (safe.bareRepository may be "explicit").
+ const fullArgs = cwd === originDir ? ["--git-dir", originDir, ...args] : args;
+ const result = spawnSync("git", fullArgs, { cwd: cwd === originDir ? scratch : cwd, encoding: "utf8", env: gitEnv });
+ if (result.status !== 0 && !allowFailure) throw new Error(`git ${args.join(" ")} failed: ${result.stderr}`);
+ return result;
+ }
+
+ function commitFile(cwd, file, content, message) {
+ fs.writeFileSync(path.join(cwd, file), content);
+ git(cwd, ["add", file]);
+ git(cwd, ["commit", "-q", "-m", message]);
+ return git(cwd, ["rev-parse", "HEAD"]).stdout.trim();
+ }
+
+ function bundle(name, ref, exclude) {
+ const file = path.join(scratch, `${name}.bundle`);
+ git(agentDir, ["bundle", "create", file, ref, `^${exclude}`]);
+ return file;
+ }
+
+ // Remote branch reads go to the bare origin; everything else to the ledger fake.
+ function githubFor(verified = false) {
+ const { github } = createLedgerFake();
+ github.rest.git.getRef = async ({ ref }) => {
+ const result = git(originDir, ["rev-parse", "--verify", "-q", `refs/${ref}^{commit}`], true);
+ if (result.status !== 0) throw Object.assign(new Error("Not Found"), { status: 404 });
+ return { data: { object: { sha: result.stdout.trim() } } };
+ };
+ github.rest.git.getCommit = async ({ commit_sha }) => ({
+ data: {
+ sha: commit_sha,
+ tree: { sha: git(originDir, ["rev-parse", `${commit_sha}^{tree}`]).stdout.trim() },
+ parents: git(originDir, ["rev-list", "--parents", "-1", commit_sha])
+ .stdout.trim()
+ .split(" ")
+ .slice(1)
+ .map(sha => ({ sha })),
+ message: git(originDir, ["log", "-1", "--format=%B", commit_sha]).stdout.trim(),
+ verification: { verified, reason: verified ? "valid" : "unsigned" },
+ },
+ });
+ return github;
+ }
+
+ function replayCommit(localSha, parent, message = git(agentDir, ["log", "-1", "--format=%B", localSha]).stdout.trim()) {
+ return git(agentDir, ["-c", "user.name=Replay", "-c", "user.email=replay@example.com", "commit-tree", `${localSha}^{tree}`, ...(parent ? ["-p", parent] : []), "-m", message]).stdout.trim();
+ }
+
+ function pushReplay(sha) {
+ git(agentDir, ["push", "-q", "--force", "origin", `${sha}:refs/heads/${WORK_BRANCH}`]);
+ }
+
+ function execIn(cwd) {
+ const run = (args, opts = {}) => spawnSync("git", args, { cwd, encoding: "utf8", env: { ...gitEnv, ...(opts.env || {}) } });
+ return {
+ getExecOutput: async (program, args, opts = {}) => {
+ if (program !== "git") throw new Error(`unexpected command ${program}`);
+ const result = run(args, opts);
+ if (result.status !== 0 && !opts.ignoreReturnCode) throw new Error(result.stderr);
+ return { exitCode: result.status ?? 0, stdout: result.stdout ?? "", stderr: result.stderr ?? "" };
+ },
+ exec: async (program, args, opts = {}) => {
+ if (program !== "git") throw new Error(`unexpected command ${program}`);
+ const result = run(args, opts);
+ if (result.status !== 0 && !opts.ignoreReturnCode) throw new Error(result.stderr);
+ return result.status ?? 0;
+ },
+ };
+ }
+
+ let baseSha;
+ const config = { signed_commits: false };
+
+ function persist(options) {
+ return continueWorkflow.persistContinuationHop({ agentBranch: "agent", workBranch: WORK_BRANCH, baseBranch: "main", config, githubClient: githubFor(), ...options });
+ }
+
+ beforeEach(() => {
+ fs.rmSync(scratch, { recursive: true, force: true });
+ fs.mkdirSync(scratch, { recursive: true });
+ fs.writeFileSync(path.join(scratch, "gitconfig"), "[user]\n\tname = Test\n\temail = test@example.com\n[init]\n\tdefaultBranch = main\n");
+ git(scratch, ["init", "-q", "--bare", originDir]);
+ git(scratch, ["init", "-q", agentDir]);
+ baseSha = commitFile(agentDir, "README.md", "base\n", "base");
+ git(agentDir, ["remote", "add", "origin", originDir]);
+ git(agentDir, ["push", "-q", "origin", "main"]);
+ git(scratch, ["clone", "-q", originDir, jobDir]);
+ global.exec = execIn(jobDir);
+ });
+
+ afterAll(() => fs.rmSync(scratch, { recursive: true, force: true }));
+
+ it("creates the work branch, then advances it hop by hop with compare-and-swap", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop0 = commitFile(agentDir, "plan.md", "# Plan\n- [x] step 1\n", "hop 0");
+ const first = await persist({ bundlePath: bundle("hop0", "agent", baseSha), expectedBase: baseSha, isInitial: true });
+ expect(first).toMatchObject({ headSha: hop0, alreadyPersisted: false });
+ expect(git(originDir, ["rev-parse", WORK_BRANCH]).stdout.trim()).toBe(hop0);
+
+ // Duplicate delivery of the same hop is recognized instead of pushed twice.
+ const duplicate = await persist({ bundlePath: bundle("hop0-again", "agent", baseSha), expectedBase: baseSha, isInitial: true });
+ expect(duplicate).toMatchObject({ headSha: hop0, alreadyPersisted: true });
+
+ const hop1 = commitFile(agentDir, "plan.md", "# Plan\n- [x] step 1\n- [x] step 2\n", "hop 1");
+ const second = await persist({ bundlePath: bundle("hop1", "agent", hop0), expectedBase: hop0, isInitial: false });
+ expect(second).toMatchObject({ headSha: hop1, alreadyPersisted: false });
+ expect(git(originDir, ["rev-parse", WORK_BRANCH]).stdout.trim()).toBe(hop1);
+ });
+
+ it.each([
+ {
+ name: "protected-files policy",
+ config: { protected_files: ["package.json"], protected_files_policy: "deny" },
+ error: /continuation modifies protected files \(package\.json\)/,
+ },
+ {
+ name: "allowed-files policy",
+ config: { allowed_files: ["README.md"], protected_files_policy: "deny" },
+ error: /continuation modifies files outside the allowed-files list \(package\.json\)/,
+ },
+ ])("enforces $name against Git's changed-path list", async ({ config, error }) => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop = commitFile(agentDir, "package.json", '{"private":true}\n', "hop");
+ const realExec = global.exec;
+ global.exec = {
+ ...realExec,
+ getExecOutput: async (program, args, options = {}) => {
+ if (program === "git" && args[0] === "diff" && args[1] === "--binary") {
+ return { exitCode: 0, stdout: "", stderr: "" };
+ }
+ return realExec.getExecOutput(program, args, options);
+ },
+ };
+
+ await expect(
+ persist({
+ bundlePath: bundle("protected", "agent", baseSha),
+ expectedBase: baseSha,
+ isInitial: true,
+ config: { signed_commits: false, ...config },
+ })
+ ).rejects.toThrow(error);
+ expect(git(originDir, ["rev-parse", WORK_BRANCH], true).status).not.toBe(0);
+ expect(hop).not.toBe(baseSha);
+ });
+
+ it("refuses to overwrite a work branch that moved unexpectedly", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop0 = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ await persist({ bundlePath: bundle("hop0", "agent", baseSha), expectedBase: baseSha, isInitial: true });
+ // Someone else pushes to the work branch.
+ git(agentDir, ["checkout", "-q", "-b", "intruder", hop0]);
+ commitFile(agentDir, "other.txt", "x\n", "intruder");
+ git(agentDir, ["push", "-q", "origin", `intruder:${WORK_BRANCH}`]);
+ git(agentDir, ["checkout", "-q", "agent"]);
+ commitFile(agentDir, "plan.md", "# Plan\n- step 2\n", "hop 1");
+ await expect(persist({ bundlePath: bundle("hop1", "agent", hop0), expectedBase: hop0, isInitial: false })).rejects.toThrow(/moved unexpectedly/);
+ });
+
+ it("rejects an unsigned same-tree commit that is not the original delivery", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ const replacement = replayCommit(hop, baseSha);
+ pushReplay(replacement);
+ await expect(persist({ bundlePath: bundle("retry", "agent", baseSha), expectedBase: baseSha, isInitial: true })).rejects.toThrow(/moved unexpectedly/);
+ expect(git(originDir, ["rev-parse", WORK_BRANCH]).stdout.trim()).toBe(replacement);
+ });
+
+ it("recovers a verified signed replay of every commit rooted at the expected base", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const first = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0\n\nDetailed handoff");
+ const second = commitFile(agentDir, "plan.md", "# Plan\n- step 2\n", "hop 1");
+ const signedFirst = replayCommit(first, baseSha);
+ const signedSecond = replayCommit(second, signedFirst);
+ pushReplay(signedSecond);
+ const result = await persist({ bundlePath: bundle("signed-retry", "agent", baseSha), expectedBase: baseSha, isInitial: true, config: { signed_commits: true }, githubClient: githubFor(true) });
+ expect(result).toMatchObject({ headSha: signedSecond, alreadyPersisted: true });
+ });
+
+ it("rejects a signed same-tree replay with unrelated parentage", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ const foreignBase = replayCommit(baseSha, null);
+ const foreignHead = replayCommit(hop, foreignBase);
+ pushReplay(foreignHead);
+ await expect(persist({ bundlePath: bundle("foreign-retry", "agent", baseSha), expectedBase: baseSha, isInitial: true, config: { signed_commits: true }, githubClient: githubFor(true) })).rejects.toThrow(/moved unexpectedly/);
+ expect(git(originDir, ["rev-parse", WORK_BRANCH]).stdout.trim()).toBe(foreignHead);
+ });
+
+ it("rejects an unsigned intermediate commit even when the replay head is verified", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const first = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ const second = commitFile(agentDir, "plan.md", "# Plan\n- step 2\n", "hop 1");
+ const unsignedFirst = replayCommit(first, baseSha);
+ const signedSecond = replayCommit(second, unsignedFirst);
+ pushReplay(signedSecond);
+ const github = githubFor(true);
+ const getCommit = github.rest.git.getCommit;
+ github.rest.git.getCommit = async params => {
+ const response = await getCommit(params);
+ if (params.commit_sha === unsignedFirst) response.data.verification = { verified: false, reason: "unsigned" };
+ return response;
+ };
+ await expect(persist({ bundlePath: bundle("unsigned-retry", "agent", baseSha), expectedBase: baseSha, isInitial: true, config: { signed_commits: true }, githubClient: github })).rejects.toThrow(/moved unexpectedly/);
+ });
+
+ it("rejects a signed same-tree commit with a different message", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ pushReplay(replayCommit(hop, baseSha, "unrelated commit"));
+ await expect(persist({ bundlePath: bundle("message-retry", "agent", baseSha), expectedBase: baseSha, isInitial: true, config: { signed_commits: true }, githubClient: githubFor(true) })).rejects.toThrow(/moved unexpectedly/);
+ });
+
+ it("does not record a branch that moved between push and readback", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ const github = githubFor();
+ const getRef = github.rest.git.getRef;
+ let reads = 0;
+ github.rest.git.getRef = async params => {
+ if (++reads === 2) pushReplay(replayCommit(hop, baseSha, "changed after push"));
+ return getRef(params);
+ };
+ await expect(persist({ bundlePath: bundle("raced-push", "agent", baseSha), expectedBase: baseSha, isInitial: true, githubClient: github })).rejects.toThrow(/moved after push/);
+ });
+
+ it("rejects commits that do not build on the recorded head", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop0 = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ await persist({ bundlePath: bundle("hop0", "agent", baseSha), expectedBase: baseSha, isInitial: true });
+ // The agent restarts from main instead of resuming the work branch.
+ git(agentDir, ["checkout", "-q", "-B", "agent", baseSha]);
+ commitFile(agentDir, "plan.md", "# Restarted\n", "restart");
+ await expect(persist({ bundlePath: bundle("restart", "agent", baseSha), expectedBase: hop0, isInitial: false })).rejects.toThrow(/do not build on the work branch head/);
+ });
+
+ it("rejects a hop without new commits", async () => {
+ git(agentDir, ["checkout", "-q", "-b", "agent"]);
+ const hop0 = commitFile(agentDir, "plan.md", "# Plan\n", "hop 0");
+ await persist({ bundlePath: bundle("hop0", "agent", baseSha), expectedBase: baseSha, isInitial: true });
+ git(jobDir, ["fetch", "-q", "origin", WORK_BRANCH]);
+ git(jobDir, ["checkout", "-q", "main"]);
+ git(jobDir, ["branch", "-D", WORK_BRANCH], true);
+ await expect(persist({ bundlePath: bundle("hop0-again", "agent", baseSha), expectedBase: hop0, isInitial: false })).rejects.toThrow(/no new commits/);
+ });
+});
diff --git a/actions/setup/js/continue_workflow.test_helpers.cjs b/actions/setup/js/continue_workflow.test_helpers.cjs
new file mode 100644
index 00000000000..12ec193a220
--- /dev/null
+++ b/actions/setup/js/continue_workflow.test_helpers.cjs
@@ -0,0 +1,151 @@
+// @ts-check
+"use strict";
+
+const crypto = require("crypto");
+
+/**
+ * In-memory fake of the GitHub git data API used by the continue_workflow ledger.
+ * Implements fast-forward-only `updateRef` (force: false) so compare-and-swap conflicts
+ * behave like the real API.
+ * @param {{onBeforeUpdateRef?: (store: any) => Promise | void}} [options]
+ */
+function createLedgerFake(options = {}) {
+ /** @type {Map} */
+ const blobs = new Map();
+ /** @type {Map>} */
+ const trees = new Map();
+ /** @type {Map} */
+ const commits = new Map();
+ /** @type {Map} */
+ const refs = new Map();
+ /** @type {{updateRef: number, createRef: number, createWorkflowDispatch: object[]}} */
+ const calls = { updateRef: 0, createRef: 0, createWorkflowDispatch: [] };
+ /** @type {unknown} */
+ let dispatchError = null;
+
+ const sha = () => crypto.randomBytes(20).toString("hex");
+ const notFound = () => Object.assign(new Error("Not Found"), { status: 404 });
+ const unprocessable = (/** @type {string} */ message) => Object.assign(new Error(message), { status: 422 });
+
+ /** @param {string} from @param {string} to */
+ function isAncestor(from, to) {
+ const queue = [to];
+ const seen = new Set();
+ while (queue.length > 0) {
+ const current = queue.shift();
+ if (current === undefined) throw new Error("Missing queued commit");
+ if (current === from) return true;
+ if (seen.has(current)) continue;
+ seen.add(current);
+ queue.push(...(commits.get(current)?.parents || []));
+ }
+ return false;
+ }
+
+ const store = {
+ blobs,
+ trees,
+ commits,
+ refs,
+ calls,
+ /** @param {any} error */
+ failNextDispatch(error) {
+ dispatchError = error;
+ },
+ /** Reads a chain document from the current ledger head. */
+ readFile(/** @type {string} */ branch, /** @type {string} */ filePath) {
+ const head = refs.get(branch);
+ if (!head) return null;
+ const commit = commits.get(head);
+ if (!commit) throw notFound();
+ const tree = trees.get(commit.tree);
+ const blobSha = tree?.get(filePath);
+ if (!blobSha) return null;
+ const content = blobs.get(blobSha);
+ if (content === undefined) throw notFound();
+ return JSON.parse(content);
+ },
+ };
+
+ const github = {
+ rest: {
+ git: {
+ getRef: async (/** @type {any} */ { ref }) => {
+ const name = ref.replace(/^heads\//, "");
+ if (!refs.has(name)) throw notFound();
+ return { data: { object: { sha: refs.get(name) } } };
+ },
+ getCommit: async (/** @type {any} */ { commit_sha }) => {
+ const commit = commits.get(commit_sha);
+ if (!commit) throw notFound();
+ return { data: { sha: commit_sha, tree: { sha: commit.tree } } };
+ },
+ getTree: async (/** @type {any} */ { tree_sha }) => {
+ const tree = trees.get(tree_sha);
+ if (!tree) throw notFound();
+ return { data: { tree: [...tree.keys()].map(path => ({ path, type: "blob" })) } };
+ },
+ createBlob: async (/** @type {any} */ { content }) => {
+ const blobSha = sha();
+ blobs.set(blobSha, content);
+ return { data: { sha: blobSha } };
+ },
+ createTree: async (/** @type {any} */ { base_tree, tree }) => {
+ const entries = new Map(base_tree ? trees.get(base_tree) : []);
+ for (const entry of tree) entries.set(entry.path, entry.sha);
+ const treeSha = sha();
+ trees.set(treeSha, entries);
+ return { data: { sha: treeSha } };
+ },
+ createCommit: async (/** @type {any} */ { tree, parents, message }) => {
+ const commitSha = sha();
+ commits.set(commitSha, { tree, parents, message });
+ return { data: { sha: commitSha } };
+ },
+ updateRef: async (/** @type {any} */ { ref, sha: target, force }) => {
+ calls.updateRef++;
+ if (options.onBeforeUpdateRef) await options.onBeforeUpdateRef(store);
+ const name = ref.replace(/^heads\//, "");
+ const current = refs.get(name);
+ if (!current) throw unprocessable("Reference does not exist");
+ if (!force && !isAncestor(current, target)) throw unprocessable("Update is not a fast forward");
+ refs.set(name, target);
+ return { data: {} };
+ },
+ createRef: async (/** @type {any} */ { ref, sha: target }) => {
+ calls.createRef++;
+ const name = ref.replace(/^refs\/heads\//, "");
+ if (refs.has(name)) throw unprocessable("Reference already exists");
+ refs.set(name, target);
+ return { data: {} };
+ },
+ },
+ repos: {
+ getContent: async (/** @type {any} */ { path: filePath, ref }) => {
+ const commit = commits.get(ref);
+ const blobSha = commit ? trees.get(commit.tree)?.get(filePath) : undefined;
+ if (!blobSha) throw notFound();
+ const content = blobs.get(blobSha);
+ if (content === undefined) throw notFound();
+ return { data: { content: Buffer.from(content).toString("base64"), encoding: "base64" } };
+ },
+ get: async () => ({ data: { default_branch: "main" } }),
+ },
+ actions: {
+ createWorkflowDispatch: async (/** @type {any} */ params) => {
+ if (dispatchError) {
+ const error = dispatchError;
+ dispatchError = null;
+ throw error;
+ }
+ calls.createWorkflowDispatch.push(params);
+ return { data: {} };
+ },
+ },
+ },
+ };
+
+ return { github, store };
+}
+
+module.exports = { createLedgerFake };
diff --git a/actions/setup/js/continue_workflow_ledger.cjs b/actions/setup/js/continue_workflow_ledger.cjs
new file mode 100644
index 00000000000..14f659cfea0
--- /dev/null
+++ b/actions/setup/js/continue_workflow_ledger.cjs
@@ -0,0 +1,612 @@
+// @ts-check
+///
+// @safe-outputs-exempt SEC-005: the continuation ledger is stored only in the current GitHub Actions repository.
+"use strict";
+
+/**
+ * Continuation ledger for the continue_workflow safe output.
+ *
+ * Each continuation chain is stored as one JSON document (`chains/.json`) on a
+ * dedicated branch. Every transition is a pure function over the chain document and every
+ * write is a compare-and-swap: the new commit's only parent is the ledger head that was read,
+ * and the ref is advanced with a non-forced update. Concurrent writers therefore observe a
+ * 422 and re-run their transition against the fresh state, which makes duplicate deliveries
+ * (re-run jobs, repeated maintenance ticks) idempotent instead of creating duplicate hops.
+ */
+
+const { getErrorMessage } = require("./error_helpers.cjs");
+const { ERR_API, ERR_VALIDATION } = require("./error_codes.cjs");
+
+const LEDGER_BRANCH = "continue-workflow-ledger";
+const LEDGER_VERSION = 1;
+const DEFAULT_MAX_HOPS = 3;
+const MAX_HOPS_LIMIT = 10;
+const MAX_DISPATCH_ATTEMPTS = 3;
+const STALE_AFTER_MS = 24 * 60 * 60 * 1000;
+const MAX_CAS_ATTEMPTS = 5;
+const MAX_TEXT_LENGTH = 2000;
+const DISPATCH_CURSOR_PATH = "dispatch-cursor.json";
+const CHAIN_ID_PATTERN = /^[a-z0-9][a-z0-9._-]{0,127}$/;
+const SHA_PATTERN = /^[0-9a-f]{40}$/;
+const DISPATCH_ID_PATTERN = /^[A-Za-z0-9_-]{8,64}$/;
+const WORKFLOW_FILE_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._-]{0,99}\.ya?ml$/;
+const ACTIVE = "active";
+const TERMINAL_STATUSES = new Set(["completed", "exhausted", "failed"]);
+
+class ContinueWorkflowError extends Error {
+ /**
+ * @param {string} code
+ * @param {string} message
+ */
+ constructor(code, message) {
+ super(`${ERR_VALIDATION}: ${message}`);
+ this.code = code;
+ }
+}
+
+/**
+ * @param {string} code
+ * @param {string} message
+ * @returns {never}
+ */
+function fail(code, message) {
+ throw new ContinueWorkflowError(code, message);
+}
+
+/** @param {unknown} value */
+function clip(value) {
+ if (typeof value !== "string") return "";
+ const trimmed = value.trim();
+ return trimmed.length > MAX_TEXT_LENGTH ? `${trimmed.slice(0, MAX_TEXT_LENGTH)}…` : trimmed;
+}
+
+/**
+ * Normalizes a workflow identifier into a branch- and path-safe segment.
+ * @param {string} workflowId
+ */
+function workflowSegment(workflowId) {
+ const segment = String(workflowId || "")
+ .toLowerCase()
+ .replace(/[^a-z0-9._-]+/g, "-")
+ .replace(/\.{2,}/g, ".")
+ .replace(/^[-._]+|[-._]+$/g, "")
+ .slice(0, 64)
+ .replace(/[-._]+$/g, "");
+ return segment || "workflow";
+}
+
+/**
+ * @param {string} workflowId
+ * @param {string|number} runId
+ */
+function buildChainId(workflowId, runId) {
+ const id = `${workflowSegment(workflowId)}-${String(runId)}`;
+ if (!isValidChainId(id)) fail("invalid_chain", `cannot derive a continuation chain id from workflow '${workflowId}' and run '${runId}'`);
+ return id;
+}
+
+/**
+ * @param {string} workflowId
+ * @param {string|number} runId
+ * @param {string} [branchPrefix]
+ */
+function buildWorkBranch(workflowId, runId, branchPrefix = "") {
+ return `${branchPrefix || ""}continue-workflow/${workflowSegment(workflowId)}/${String(runId)}`;
+}
+
+/** @param {unknown} id */
+function isValidChainId(id) {
+ return typeof id === "string" && CHAIN_ID_PATTERN.test(id) && !id.includes("..");
+}
+
+/** @param {unknown} sha */
+function isSha(sha) {
+ return typeof sha === "string" && SHA_PATTERN.test(sha);
+}
+
+/** @param {unknown} value */
+function isSafeBranchName(value) {
+ if (typeof value !== "string" || !/^[A-Za-z0-9._/-]+$/.test(value) || value.includes("..") || value.includes("//") || value.startsWith("-") || value.startsWith("/") || value.endsWith("/") || value.endsWith(".")) {
+ return false;
+ }
+ return value.split("/").every(segment => !segment.startsWith(".") && !segment.toLowerCase().endsWith(".lock"));
+}
+
+/** @param {string} branch */
+function isContinueWorkflowBranch(branch) {
+ const segments = branch.split("/");
+ const namespaceIndex = segments.lastIndexOf("continue-workflow");
+ return namespaceIndex >= 0 && namespaceIndex + 2 < segments.length;
+}
+
+/** @param {unknown} value */
+function parseMaxHops(value) {
+ const parsed = typeof value === "number" ? value : typeof value === "string" && /^\d+$/.test(value.trim()) ? Number(value.trim()) : NaN;
+ if (Number.isSafeInteger(parsed) && parsed >= 1 && parsed <= MAX_HOPS_LIMIT) return parsed;
+ return DEFAULT_MAX_HOPS;
+}
+
+/**
+ * Validates a ledger document read from storage.
+ * @param {any} chain
+ * @param {string} chainId
+ */
+function validateChain(chain, chainId) {
+ if (!chain || typeof chain !== "object" || Array.isArray(chain)) fail("ledger_invalid", `continuation chain ${chainId} is not an object`);
+ if (chain.version !== LEDGER_VERSION) fail("ledger_invalid", `continuation chain ${chainId} has unsupported version ${String(chain.version)}`);
+ if (chain.chain_id !== chainId) fail("ledger_invalid", `continuation chain document does not match id ${chainId}`);
+ if (!isSafeBranchName(chain.branch) || !isContinueWorkflowBranch(chain.branch)) fail("ledger_invalid", `continuation chain ${chainId} has an invalid work branch`);
+ if (!isSafeBranchName(chain.base_branch)) fail("ledger_invalid", `continuation chain ${chainId} has an invalid base branch`);
+ if (typeof chain.workflow_file !== "string" || !WORKFLOW_FILE_PATTERN.test(chain.workflow_file)) fail("ledger_invalid", `continuation chain ${chainId} has an invalid workflow file`);
+ if (!Number.isSafeInteger(chain.max_hops) || chain.max_hops < 1 || chain.max_hops > MAX_HOPS_LIMIT) fail("ledger_invalid", `continuation chain ${chainId} has an invalid max_hops`);
+ if (chain.status !== ACTIVE && !TERMINAL_STATUSES.has(chain.status)) fail("ledger_invalid", `continuation chain ${chainId} has an invalid status`);
+ if (!Array.isArray(chain.hops)) fail("ledger_invalid", `continuation chain ${chainId} has no hop history`);
+ if (chain.status === ACTIVE && (!chain.next || typeof chain.next !== "object")) fail("ledger_invalid", `active continuation chain ${chainId} has no next hop`);
+ return chain;
+}
+
+/**
+ * Parses the continuation request carried inside the workflow_dispatch aw_context input.
+ * Returns null when the run is not a continuation.
+ * @param {any} payload
+ * @returns {{chain_id: string, hop: number, dispatch_id: string} | null}
+ */
+function parseContinuationRequest(payload) {
+ const raw = payload?.inputs?.aw_context;
+ if (typeof raw !== "string" || !raw.trim()) return null;
+ let parsed;
+ try {
+ parsed = JSON.parse(raw);
+ } catch {
+ return null;
+ }
+ const continuation = parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed.continuation : undefined;
+ if (continuation === undefined || continuation === null) return null;
+ if (typeof continuation !== "object" || Array.isArray(continuation)) fail("invalid_request", "aw_context.continuation must be an object");
+ const { chain_id: chainId, hop, dispatch_id: dispatchId } = continuation;
+ if (!isValidChainId(chainId)) fail("invalid_request", "aw_context.continuation.chain_id is invalid");
+ if (!Number.isSafeInteger(hop) || hop < 1 || hop > MAX_HOPS_LIMIT) fail("invalid_request", "aw_context.continuation.hop is invalid");
+ if (typeof dispatchId !== "string" || !DISPATCH_ID_PATTERN.test(dispatchId)) fail("invalid_request", "aw_context.continuation.dispatch_id is invalid");
+ return { chain_id: chainId, hop, dispatch_id: dispatchId };
+}
+
+// ---------------------------------------------------------------------------
+// Pure transitions. Each returns `{ chain, changed }` and never mutates its input.
+// ---------------------------------------------------------------------------
+
+/** @param {any} chain */
+function clone(chain) {
+ return chain ? JSON.parse(JSON.stringify(chain)) : chain;
+}
+
+/**
+ * Creates a chain for the initial run (hop 0). Re-delivery of the same run is idempotent.
+ * @param {any} current
+ * @param {{chainId: string, runId: string, workflowId: string, workflowFile: string, ref: string, repository: string, initiator: string, baseBranch: string, baseCommit: string, branch: string, maxHops: number, now: string}} input
+ */
+function startChain(current, input) {
+ if (current) {
+ const first = current.hops?.[0];
+ if (first && first.hop === 0 && first.run_id === input.runId) return { chain: current, changed: false };
+ if (current.next?.hop === 0 && current.next.run_id === input.runId) return { chain: current, changed: false };
+ fail("chain_conflict", `continuation chain ${input.chainId} already exists for another run`);
+ }
+ if (!WORKFLOW_FILE_PATTERN.test(input.workflowFile)) fail("invalid_workflow", `cannot dispatch continuation for workflow file '${input.workflowFile}'`);
+ if (!isSha(input.baseCommit)) fail("invalid_base", "initial continuation base commit is not a commit SHA");
+ return {
+ changed: true,
+ chain: {
+ version: LEDGER_VERSION,
+ chain_id: input.chainId,
+ repository: input.repository,
+ workflow_id: input.workflowId,
+ workflow_file: input.workflowFile,
+ ref: input.ref,
+ initiator: input.initiator,
+ base_branch: input.baseBranch,
+ base_commit: input.baseCommit,
+ branch: input.branch,
+ max_hops: input.maxHops,
+ status: ACTIVE,
+ created_at: input.now,
+ updated_at: input.now,
+ hops: [],
+ next: { hop: 0, state: "running", run_id: input.runId, base_sha: input.baseCommit, dispatch_attempts: 0, updated_at: input.now },
+ protected_files: [],
+ pull_request: null,
+ error: null,
+ },
+ };
+}
+
+/**
+ * Binds a dispatched continuation hop to the run that received it.
+ * @param {any} current
+ * @param {{hop: number, dispatchId: string, runId: string, now: string}} input
+ */
+function bindHop(current, input) {
+ if (!current) fail("chain_missing", "continuation chain does not exist");
+ const chain = clone(current);
+ if (chain.hops.some(/** @param {any} h */ h => h.hop === input.hop && h.run_id === input.runId)) return { chain: current, changed: false };
+ if (chain.status !== ACTIVE) fail("chain_closed", `continuation chain ${chain.chain_id} is ${chain.status}`);
+ const next = chain.next;
+ if (next.hop !== input.hop) fail("hop_mismatch", `continuation chain ${chain.chain_id} expects hop ${next.hop}, not hop ${input.hop}`);
+ if (next.dispatch_id !== input.dispatchId) fail("dispatch_mismatch", `continuation hop ${input.hop} was not dispatched with this dispatch id`);
+ if (next.state === "running") {
+ if (next.run_id === input.runId) return { chain: current, changed: false };
+ fail("hop_claimed", `continuation hop ${input.hop} is already bound to run ${next.run_id}`);
+ }
+ if (next.state !== "dispatched") fail("hop_not_dispatched", `continuation hop ${input.hop} is ${next.state}, not dispatched`);
+ chain.next = { ...next, state: "running", run_id: input.runId, updated_at: input.now };
+ chain.updated_at = input.now;
+ return { chain, changed: true };
+}
+
+/**
+ * @param {any} chain
+ * @param {{hop: number, runId: string}} input
+ */
+function requireRunningHop(chain, input) {
+ if (chain.status !== ACTIVE) fail("chain_closed", `continuation chain ${chain.chain_id} is ${chain.status}`);
+ if (chain.next.hop !== input.hop || chain.next.state !== "running" || chain.next.run_id !== input.runId) {
+ fail("hop_not_bound", `continuation hop ${input.hop} is not bound to run ${input.runId}`);
+ }
+}
+
+/**
+ * @param {any} chain
+ * @param {number} hop
+ * @param {string} runId
+ */
+function findRecordedHop(chain, hop, runId) {
+ return chain.hops.find(/** @param {any} h */ h => h.hop === hop && h.run_id === runId);
+}
+
+/** @param {string[]} existing @param {string[]} added */
+function unionFiles(existing, added) {
+ return [...new Set([...(Array.isArray(existing) ? existing : []), ...(Array.isArray(added) ? added : [])])].sort();
+}
+
+/**
+ * Records a persisted hop and queues the next one, or exhausts the chain when the hop budget is spent.
+ * @param {any} current
+ * @param {{hop: number, runId: string, headSha: string, reason: string, nextSteps?: string, protectedFiles?: string[], protectedAction?: string, now: string}} input
+ */
+function recordContinuation(current, input) {
+ if (!current) fail("chain_missing", "continuation chain does not exist");
+ if (findRecordedHop(current, input.hop, input.runId)) return { chain: current, changed: false };
+ const chain = clone(current);
+ requireRunningHop(chain, input);
+ if (!isSha(input.headSha)) fail("invalid_head", "continuation head is not a commit SHA");
+ const exhausted = input.hop + 1 > chain.max_hops;
+ chain.hops.push({ hop: input.hop, run_id: input.runId, outcome: exhausted ? "exhausted" : "continued", head_sha: input.headSha, reason: clip(input.reason), next_steps: clip(input.nextSteps), at: input.now });
+ chain.protected_files = unionFiles(chain.protected_files, input.protectedFiles || []);
+ if (input.protectedAction) chain.protected_action = input.protectedAction;
+ chain.updated_at = input.now;
+ if (exhausted) {
+ chain.status = "exhausted";
+ chain.error = `continuation budget of ${chain.max_hops} hop(s) is exhausted; work branch ${chain.branch} was preserved`;
+ chain.next = null;
+ } else {
+ chain.next = { hop: input.hop + 1, state: "queued", base_sha: input.headSha, dispatch_attempts: 0, last_error: null, updated_at: input.now };
+ }
+ return { chain, changed: true };
+}
+
+/**
+ * Completes the chain with the single final pull request.
+ * @param {any} current
+ * @param {{hop: number, runId: string, headSha?: string, pullRequest: {number?: number, url?: string}, now: string}} input
+ */
+function completeChain(current, input) {
+ if (!current) fail("chain_missing", "continuation chain does not exist");
+ const recorded = findRecordedHop(current, input.hop, input.runId);
+ if (recorded && recorded.outcome === "completed") return { chain: current, changed: false };
+ const chain = clone(current);
+ requireRunningHop(chain, input);
+ chain.hops.push({ hop: input.hop, run_id: input.runId, outcome: "completed", head_sha: isSha(input.headSha) ? input.headSha : null, reason: "", next_steps: "", at: input.now });
+ chain.status = "completed";
+ chain.pull_request = { number: input.pullRequest.number ?? null, url: input.pullRequest.url ?? null };
+ chain.next = null;
+ chain.error = null;
+ chain.updated_at = input.now;
+ return { chain, changed: true };
+}
+
+/**
+ * Fails the chain while preserving its work branch. A run may only fail its own bound hop.
+ * @param {any} current
+ * @param {{hop?: number, runId?: string, reason: string, now: string}} input
+ */
+function failChain(current, input) {
+ if (!current) fail("chain_missing", "continuation chain does not exist");
+ if (current.status !== ACTIVE) return { chain: current, changed: false };
+ const chain = clone(current);
+ if (input.runId !== undefined) {
+ requireRunningHop(chain, { hop: Number(input.hop), runId: input.runId });
+ chain.hops.push({ hop: input.hop, run_id: input.runId, outcome: "failed", head_sha: null, reason: clip(input.reason), next_steps: "", at: input.now });
+ }
+ chain.status = "failed";
+ chain.error = clip(input.reason);
+ chain.failed_next = chain.next;
+ chain.next = null;
+ chain.updated_at = input.now;
+ return { chain, changed: true };
+}
+
+/**
+ * Moves a queued hop to dispatched with a fresh dispatch id (one attempt).
+ * @param {any} current
+ * @param {{dispatchId: string, now: string}} input
+ */
+function claimDispatch(current, input) {
+ if (!current || current.status !== ACTIVE || current.next?.state !== "queued") return { chain: current, changed: false };
+ if (!DISPATCH_ID_PATTERN.test(input.dispatchId)) fail("invalid_dispatch", "dispatch id is invalid");
+ const chain = clone(current);
+ chain.next = { ...chain.next, state: "dispatched", dispatch_id: input.dispatchId, dispatch_attempts: (chain.next.dispatch_attempts || 0) + 1, dispatched_at: input.now, updated_at: input.now };
+ chain.updated_at = input.now;
+ return { chain, changed: true };
+}
+
+/**
+ * Records a failed dispatch attempt: re-queue while attempts remain, otherwise fail the chain.
+ * @param {any} current
+ * @param {{dispatchId: string, error: string, now: string, maxAttempts?: number}} input
+ */
+function recordDispatchFailure(current, input) {
+ if (!current || current.status !== ACTIVE || current.next?.state !== "dispatched" || current.next.dispatch_id !== input.dispatchId) return { chain: current, changed: false };
+ const chain = clone(current);
+ const maxAttempts = input.maxAttempts || MAX_DISPATCH_ATTEMPTS;
+ if ((chain.next.dispatch_attempts || 0) >= maxAttempts) {
+ return failChain(current, { reason: `continuation hop ${chain.next.hop} could not be dispatched after ${chain.next.dispatch_attempts} attempt(s): ${clip(input.error)}`, now: input.now });
+ }
+ chain.next = { ...chain.next, state: "queued", dispatch_id: undefined, last_error: clip(input.error), updated_at: input.now };
+ delete chain.next.dispatch_id;
+ chain.updated_at = input.now;
+ return { chain, changed: true };
+}
+
+/**
+ * Fails chains whose dispatched or running hop never settled (agent failure, detection block,
+ * cancelled run), so they are reported instead of silently hanging.
+ * @param {any} current
+ * @param {{now: string, staleAfterMs?: number}} input
+ */
+function expireStale(current, input) {
+ if (!current || current.status !== ACTIVE) return { chain: current, changed: false };
+ const state = current.next?.state;
+ if (state !== "dispatched" && state !== "running") return { chain: current, changed: false };
+ const since = Date.parse(current.next.updated_at || current.updated_at || "");
+ const now = Date.parse(input.now);
+ if (!Number.isFinite(since) || !Number.isFinite(now) || now - since <= (input.staleAfterMs ?? STALE_AFTER_MS)) return { chain: current, changed: false };
+ const runNote = current.next.run_id ? ` (run ${current.next.run_id})` : "";
+ return failChain(current, { reason: `continuation hop ${current.next.hop}${runNote} did not settle; work branch ${current.branch} was preserved`, now: input.now });
+}
+
+// ---------------------------------------------------------------------------
+// Storage
+// ---------------------------------------------------------------------------
+
+/** @param {any} error */
+function httpStatus(error) {
+ return error?.status ?? error?.response?.status;
+}
+
+/** @param {string} chainId */
+function chainPath(chainId) {
+ if (!isValidChainId(chainId)) fail("invalid_chain", `invalid continuation chain id '${chainId}'`);
+ return `chains/${chainId}.json`;
+}
+
+/**
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string}} repoRef
+ * @param {string} branch
+ */
+async function readLedgerHead(githubClient, { owner, repo }, branch) {
+ try {
+ const { data } = await githubClient.rest.git.getRef({ owner, repo, ref: `heads/${branch}` });
+ const sha = data?.object?.sha;
+ if (!isSha(sha)) throw new Error(`${ERR_API}: continuation ledger ref returned no commit`);
+ const commit = await githubClient.rest.git.getCommit({ owner, repo, commit_sha: sha });
+ return { sha, treeSha: commit.data.tree.sha };
+ } catch (error) {
+ if (httpStatus(error) === 404) return null;
+ throw error;
+ }
+}
+
+/**
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string}} repoRef
+ * @param {string} commitSha
+ * @param {string} path
+ */
+async function readLedgerDocumentAt(githubClient, { owner, repo }, commitSha, path) {
+ try {
+ const { data } = await githubClient.rest.repos.getContent({ owner, repo, path, ref: commitSha });
+ if (!data || Array.isArray(data) || typeof data.content !== "string") fail("ledger_invalid", `continuation ledger document ${path} is not a file`);
+ const text = Buffer.from(data.content, data.encoding === "base64" ? "base64" : "utf8").toString("utf8");
+ const document = JSON.parse(text);
+ if (!document || typeof document !== "object" || Array.isArray(document)) fail("ledger_invalid", `continuation ledger document ${path} is not an object`);
+ return document;
+ } catch (error) {
+ if (httpStatus(error) === 404) return null;
+ if (error instanceof SyntaxError) fail("ledger_invalid", `continuation ledger document ${path} is not valid JSON`);
+ throw error;
+ }
+}
+
+/**
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string}} repoRef
+ * @param {string} commitSha
+ * @param {string} chainId
+ */
+async function readChainAt(githubClient, repoRef, commitSha, chainId) {
+ const document = await readLedgerDocumentAt(githubClient, repoRef, commitSha, chainPath(chainId));
+ return document === null ? null : validateChain(document, chainId);
+}
+
+/**
+ * Reads one chain from the ledger head.
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string, branch?: string}} options
+ * @param {string} chainId
+ */
+async function readChain(githubClient, options, chainId) {
+ const head = await readLedgerHead(githubClient, options, options.branch || LEDGER_BRANCH);
+ if (!head) return null;
+ return readChainAt(githubClient, options, head.sha, chainId);
+}
+
+/**
+ * Applies a pure transition to one chain with compare-and-swap semantics.
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string, branch?: string, maxAttempts?: number}} options
+ * @param {string} chainId
+ * @param {(current: any) => {chain: any, changed: boolean}} transition
+ * @param {string} message
+ * @returns {Promise<{chain: any, changed: boolean}>}
+ */
+async function mutateChain(githubClient, options, chainId, transition, message) {
+ const result = await mutateLedgerDocument(
+ githubClient,
+ options,
+ chainPath(chainId),
+ current => {
+ const next = transition(current === null ? null : validateChain(current, chainId));
+ if (next.changed) validateChain(next.chain, chainId);
+ return { document: next.chain, changed: next.changed };
+ },
+ `${message} (${chainId})`
+ );
+ return { chain: result.document, changed: result.changed };
+}
+
+/**
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string, branch?: string, maxAttempts?: number}} options
+ * @param {string} path
+ * @param {(current: any) => {document: any, changed: boolean}} transition
+ * @param {string} message
+ */
+async function mutateLedgerDocument(githubClient, options, path, transition, message) {
+ const { owner, repo } = options;
+ const branch = options.branch || LEDGER_BRANCH;
+ const maxAttempts = options.maxAttempts || MAX_CAS_ATTEMPTS;
+ let lastError;
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
+ const head = await readLedgerHead(githubClient, { owner, repo }, branch);
+ const current = head ? await readLedgerDocumentAt(githubClient, { owner, repo }, head.sha, path) : null;
+ const result = transition(current);
+ if (!result.changed) return result;
+ try {
+ const content = `${JSON.stringify(result.document, null, 2)}\n`;
+ const blob = await githubClient.rest.git.createBlob({ owner, repo, content, encoding: "utf-8" });
+ const tree = await githubClient.rest.git.createTree({ owner, repo, ...(head ? { base_tree: head.treeSha } : {}), tree: [{ path, mode: "100644", type: "blob", sha: blob.data.sha }] });
+ const commit = await githubClient.rest.git.createCommit({ owner, repo, message, tree: tree.data.sha, parents: head ? [head.sha] : [] });
+ if (head) await githubClient.rest.git.updateRef({ owner, repo, ref: `heads/${branch}`, sha: commit.data.sha, force: false });
+ else await githubClient.rest.git.createRef({ owner, repo, ref: `refs/heads/${branch}`, sha: commit.data.sha });
+ core.info(`Continuation ledger updated: ${message}`);
+ return result;
+ } catch (error) {
+ lastError = error;
+ const status = httpStatus(error);
+ if (status !== 409 && status !== 422) throw error;
+ core.info(`Continuation ledger write conflicted (attempt ${attempt}/${maxAttempts}); re-reading ledger`);
+ }
+ }
+ throw new Error(`${ERR_API}: continuation ledger write did not converge after ${maxAttempts} attempt(s): ${getErrorMessage(lastError)}`);
+}
+
+/** @param {any} document @returns {string|null} */
+function dispatchCursor(document) {
+ if (document === null) return null;
+ if (!document || document.version !== LEDGER_VERSION || !isValidChainId(document.after_chain_id)) {
+ fail("ledger_invalid", "continuation dispatch cursor is invalid");
+ }
+ return document.after_chain_id;
+}
+
+/**
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string}} repoRef
+ * @param {string} commitSha
+ */
+async function readDispatchCursorAt(githubClient, repoRef, commitSha) {
+ return dispatchCursor(await readLedgerDocumentAt(githubClient, repoRef, commitSha, DISPATCH_CURSOR_PATH));
+}
+
+/**
+ * Advances only the cursor this maintenance run read; an overlapping run cannot rewind it.
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string}} repoRef
+ * @param {string|null} expected
+ * @param {string} next
+ */
+async function advanceDispatchCursor(githubClient, repoRef, expected, next) {
+ if (!isValidChainId(next) || (expected !== null && !isValidChainId(expected))) fail("invalid_cursor", "continuation dispatch cursor must name a valid chain");
+ return mutateLedgerDocument(
+ githubClient,
+ repoRef,
+ DISPATCH_CURSOR_PATH,
+ current => {
+ const previous = dispatchCursor(current);
+ if (previous !== expected || previous === next) return { document: current, changed: false };
+ return { document: { version: LEDGER_VERSION, after_chain_id: next }, changed: true };
+ },
+ "Advance continuation dispatch cursor"
+ );
+}
+
+/**
+ * Lists all chain ids recorded on the ledger branch.
+ * @param {any} githubClient
+ * @param {{owner: string, repo: string, branch?: string}} options
+ * @param {{sha: string, treeSha: string}} [snapshot]
+ * @returns {Promise}
+ */
+async function listChainIds(githubClient, options, snapshot) {
+ const head = snapshot || (await readLedgerHead(githubClient, options, options.branch || LEDGER_BRANCH));
+ if (!head) return [];
+ const { data } = await githubClient.rest.git.getTree({ owner: options.owner, repo: options.repo, tree_sha: head.treeSha, recursive: "true" });
+ if (data.truncated) throw new Error(`${ERR_API}: continuation ledger tree is truncated; refusing to skip undiscovered chains`);
+ return (data.tree || [])
+ .map(/** @param {any} entry */ entry => (entry.type === "blob" && typeof entry.path === "string" ? /^chains\/([^/]+)\.json$/.exec(entry.path)?.[1] : undefined))
+ .filter(/** @param {any} id */ id => isValidChainId(id));
+}
+
+module.exports = {
+ LEDGER_BRANCH,
+ LEDGER_VERSION,
+ DEFAULT_MAX_HOPS,
+ MAX_HOPS_LIMIT,
+ MAX_DISPATCH_ATTEMPTS,
+ STALE_AFTER_MS,
+ WORKFLOW_FILE_PATTERN,
+ ContinueWorkflowError,
+ workflowSegment,
+ buildChainId,
+ buildWorkBranch,
+ isValidChainId,
+ isSha,
+ parseMaxHops,
+ parseContinuationRequest,
+ validateChain,
+ readLedgerHead,
+ readChainAt,
+ startChain,
+ bindHop,
+ recordContinuation,
+ completeChain,
+ failChain,
+ claimDispatch,
+ recordDispatchFailure,
+ expireStale,
+ readChain,
+ mutateChain,
+ listChainIds,
+ readDispatchCursorAt,
+ advanceDispatchCursor,
+};
diff --git a/actions/setup/js/continue_workflow_ledger.test.cjs b/actions/setup/js/continue_workflow_ledger.test.cjs
new file mode 100644
index 00000000000..4ce0ced85d8
--- /dev/null
+++ b/actions/setup/js/continue_workflow_ledger.test.cjs
@@ -0,0 +1,320 @@
+import { describe, it, expect, beforeEach, vi } from "vitest";
+import { createRequire } from "module";
+
+const require = createRequire(import.meta.url);
+
+global.core = { info: vi.fn(), warning: vi.fn(), error: vi.fn(), debug: vi.fn() };
+
+const ledger = require("./continue_workflow_ledger.cjs");
+const { createLedgerFake } = require("./continue_workflow.test_helpers.cjs");
+
+const SHA_A = "a".repeat(40);
+const SHA_B = "b".repeat(40);
+const SHA_C = "c".repeat(40);
+const NOW = "2026-01-01T00:00:00.000Z";
+const REPO = { owner: "o", repo: "r" };
+
+function startInput(overrides = {}) {
+ return {
+ chainId: "my-workflow-100",
+ runId: "100",
+ workflowId: "my-workflow",
+ workflowFile: "my-workflow.lock.yml",
+ ref: "refs/heads/main",
+ repository: "o/r",
+ initiator: "octocat",
+ baseBranch: "main",
+ baseCommit: SHA_A,
+ branch: "continue-workflow/my-workflow/100",
+ maxHops: 3,
+ now: NOW,
+ ...overrides,
+ };
+}
+
+function recordInput(overrides = {}) {
+ return { hop: 0, runId: "100", headSha: SHA_B, reason: "more work", nextSteps: "finish tests", now: NOW, ...overrides };
+}
+
+/** Builds an active chain whose hop `hop` is queued with base `base`. */
+function queuedChain(maxHops = 3) {
+ const { chain } = ledger.startChain(null, startInput({ maxHops }));
+ return ledger.recordContinuation(chain, recordInput()).chain;
+}
+
+describe("continue_workflow_ledger", () => {
+ beforeEach(() => vi.clearAllMocks());
+
+ describe("helpers", () => {
+ it("defaults max hops to 3 and rejects out-of-range values", () => {
+ expect(ledger.DEFAULT_MAX_HOPS).toBe(3);
+ expect(ledger.parseMaxHops(undefined)).toBe(3);
+ expect(ledger.parseMaxHops(0)).toBe(3);
+ expect(ledger.parseMaxHops(11)).toBe(3);
+ expect(ledger.parseMaxHops("abc")).toBe(3);
+ expect(ledger.parseMaxHops(5)).toBe(5);
+ expect(ledger.parseMaxHops("10")).toBe(10);
+ });
+
+ it("derives stable, path-safe chain ids and work branches", () => {
+ expect(ledger.buildChainId("My Workflow!", 42)).toBe("my-workflow-42");
+ expect(ledger.buildWorkBranch("My Workflow!", 42, "agent/")).toBe("agent/continue-workflow/my-workflow/42");
+ expect(ledger.isValidChainId("../evil")).toBe(false);
+ expect(ledger.isValidChainId("ok-1")).toBe(true);
+ });
+
+ it("parses continuation requests from aw_context", () => {
+ const awContext = { continuation: { chain_id: "wf-1", hop: 2, dispatch_id: "abcdef0123456789" } };
+ expect(ledger.parseContinuationRequest({ inputs: { aw_context: JSON.stringify(awContext) } })).toEqual({ chain_id: "wf-1", hop: 2, dispatch_id: "abcdef0123456789" });
+ expect(ledger.parseContinuationRequest({ inputs: { aw_context: JSON.stringify({ actor: "x" }) } })).toBeNull();
+ expect(ledger.parseContinuationRequest({})).toBeNull();
+ expect(() => ledger.parseContinuationRequest({ inputs: { aw_context: JSON.stringify({ continuation: { chain_id: "wf-1", hop: 0, dispatch_id: "abcdef0123456789" } }) } })).toThrow(/hop is invalid/);
+ expect(() => ledger.parseContinuationRequest({ inputs: { aw_context: JSON.stringify({ continuation: { chain_id: "../x", hop: 1, dispatch_id: "abcdef0123456789" } }) } })).toThrow(/chain_id is invalid/);
+ expect(() => ledger.parseContinuationRequest({ inputs: { aw_context: JSON.stringify({ continuation: { chain_id: "wf-1", hop: 1, dispatch_id: "short" } }) } })).toThrow(/dispatch_id is invalid/);
+ });
+ });
+
+ describe("transitions", () => {
+ it("starts a chain once per run and rejects a different run", () => {
+ const first = ledger.startChain(null, startInput());
+ expect(first.changed).toBe(true);
+ expect(first.chain.next).toMatchObject({ hop: 0, state: "running", run_id: "100", base_sha: SHA_A });
+ const withHop = ledger.recordContinuation(first.chain, recordInput()).chain;
+ expect(ledger.startChain(withHop, startInput()).changed).toBe(false);
+ expect(() => ledger.startChain(withHop, startInput({ runId: "200" }))).toThrow(/already exists/);
+ expect(() => ledger.startChain(null, startInput({ workflowFile: "../x.yml" }))).toThrow(/cannot dispatch/);
+ expect(() => ledger.startChain(null, startInput({ baseCommit: "main" }))).toThrow(/not a commit SHA/);
+ });
+
+ it("records a continuation and queues the next hop exactly once", () => {
+ const { chain } = ledger.startChain(null, startInput());
+ const recorded = ledger.recordContinuation(chain, recordInput());
+ expect(recorded.changed).toBe(true);
+ expect(recorded.chain.status).toBe("active");
+ expect(recorded.chain.next).toMatchObject({ hop: 1, state: "queued", base_sha: SHA_B });
+ expect(recorded.chain.hops).toHaveLength(1);
+ // Duplicate delivery of the same hop is a no-op.
+ const again = ledger.recordContinuation(recorded.chain, recordInput());
+ expect(again.changed).toBe(false);
+ expect(again.chain.hops).toHaveLength(1);
+ // Recording from a run that does not own the hop is rejected.
+ expect(() => ledger.recordContinuation(recorded.chain, recordInput({ hop: 1, runId: "999" }))).toThrow(/not bound/);
+ });
+
+ it("exhausts the chain when the hop budget is spent and preserves the branch", () => {
+ let chain = ledger.startChain(null, startInput({ maxHops: 1 })).chain;
+ chain = ledger.recordContinuation(chain, recordInput()).chain;
+ chain = ledger.claimDispatch(chain, { dispatchId: "dispatch-0001", now: NOW }).chain;
+ chain = ledger.bindHop(chain, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW }).chain;
+ const result = ledger.recordContinuation(chain, recordInput({ hop: 1, runId: "101", headSha: SHA_C }));
+ expect(result.chain.status).toBe("exhausted");
+ expect(result.chain.next).toBeNull();
+ expect(result.chain.error).toContain("continue-workflow/my-workflow/100");
+ });
+
+ it("binds a dispatched hop only for the matching dispatch id and run", () => {
+ const queued = queuedChain();
+ expect(() => ledger.bindHop(queued, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW })).toThrow(/dispatch id|not dispatched/);
+ const dispatched = ledger.claimDispatch(queued, { dispatchId: "dispatch-0001", now: NOW }).chain;
+ expect(() => ledger.bindHop(dispatched, { hop: 2, dispatchId: "dispatch-0001", runId: "101", now: NOW })).toThrow(/expects hop 1/);
+ expect(() => ledger.bindHop(dispatched, { hop: 1, dispatchId: "dispatch-9999", runId: "101", now: NOW })).toThrow(/not dispatched with this dispatch id/);
+ const bound = ledger.bindHop(dispatched, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW });
+ expect(bound.chain.next).toMatchObject({ state: "running", run_id: "101" });
+ // Same run re-binding is idempotent; another run cannot steal the hop.
+ expect(ledger.bindHop(bound.chain, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW }).changed).toBe(false);
+ expect(() => ledger.bindHop(bound.chain, { hop: 1, dispatchId: "dispatch-0001", runId: "102", now: NOW })).toThrow(/already bound/);
+ });
+
+ it("completes the chain with the single final pull request", () => {
+ let chain = ledger.claimDispatch(queuedChain(), { dispatchId: "dispatch-0001", now: NOW }).chain;
+ chain = ledger.bindHop(chain, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW }).chain;
+ const completed = ledger.completeChain(chain, { hop: 1, runId: "101", headSha: SHA_C, pullRequest: { number: 7, url: "https://github.com/o/r/pull/7" }, now: NOW });
+ expect(completed.chain.status).toBe("completed");
+ expect(completed.chain.pull_request).toEqual({ number: 7, url: "https://github.com/o/r/pull/7" });
+ expect(ledger.completeChain(completed.chain, { hop: 1, runId: "101", pullRequest: {}, now: NOW }).changed).toBe(false);
+ });
+
+ it("fails the chain only for the bound run and is a no-op once settled", () => {
+ let chain = ledger.claimDispatch(queuedChain(), { dispatchId: "dispatch-0001", now: NOW }).chain;
+ chain = ledger.bindHop(chain, { hop: 1, dispatchId: "dispatch-0001", runId: "101", now: NOW }).chain;
+ expect(() => ledger.failChain(chain, { hop: 1, runId: "102", reason: "x", now: NOW })).toThrow(/not bound/);
+ const failed = ledger.failChain(chain, { hop: 1, runId: "101", reason: "boom", now: NOW });
+ expect(failed.chain.status).toBe("failed");
+ expect(failed.chain.error).toBe("boom");
+ expect(failed.chain.branch).toBe("continue-workflow/my-workflow/100");
+ expect(ledger.failChain(failed.chain, { reason: "again", now: NOW }).changed).toBe(false);
+ });
+
+ it("re-queues failed dispatches and fails the chain after the attempt limit", () => {
+ let chain = queuedChain();
+ for (let attempt = 1; attempt < ledger.MAX_DISPATCH_ATTEMPTS; attempt++) {
+ const id = `dispatch-000${attempt}`;
+ chain = ledger.claimDispatch(chain, { dispatchId: id, now: NOW }).chain;
+ // A stale dispatch id cannot record a failure for a newer attempt.
+ expect(ledger.recordDispatchFailure(chain, { dispatchId: "dispatch-other", error: "x", now: NOW }).changed).toBe(false);
+ chain = ledger.recordDispatchFailure(chain, { dispatchId: id, error: "rate limited", now: NOW }).chain;
+ expect(chain.next).toMatchObject({ state: "queued", dispatch_attempts: attempt, last_error: "rate limited" });
+ expect(chain.next.dispatch_id).toBeUndefined();
+ }
+ chain = ledger.claimDispatch(chain, { dispatchId: "dispatch-last", now: NOW }).chain;
+ chain = ledger.recordDispatchFailure(chain, { dispatchId: "dispatch-last", error: "still failing", now: NOW }).chain;
+ expect(chain.status).toBe("failed");
+ expect(chain.error).toContain("could not be dispatched");
+ });
+
+ it("only claims queued hops", () => {
+ const dispatched = ledger.claimDispatch(queuedChain(), { dispatchId: "dispatch-0001", now: NOW }).chain;
+ expect(ledger.claimDispatch(dispatched, { dispatchId: "dispatch-0002", now: NOW }).changed).toBe(false);
+ expect(() => ledger.claimDispatch(queuedChain(), { dispatchId: "bad id!", now: NOW })).toThrow(/dispatch id is invalid/);
+ });
+
+ it("expires hops that never settle", () => {
+ const dispatched = ledger.claimDispatch(queuedChain(), { dispatchId: "dispatch-0001", now: NOW }).chain;
+ expect(ledger.expireStale(dispatched, { now: "2026-01-01T12:00:00.000Z" }).changed).toBe(false);
+ const expired = ledger.expireStale(dispatched, { now: "2026-01-02T00:00:01.000Z" });
+ expect(expired.chain.status).toBe("failed");
+ expect(expired.chain.error).toContain("did not settle");
+ // Queued hops are waiting for dispatch, not stale.
+ expect(ledger.expireStale(queuedChain(), { now: "2027-01-01T00:00:00.000Z" }).changed).toBe(false);
+ });
+ });
+
+ describe("ledger validation", () => {
+ it.each([
+ [{ branch: "main" }, /invalid work branch/],
+ [{ branch: "continue-workflow/../main" }, /invalid work branch/],
+ [{ branch: "continue-workflow//workflow/100" }, /invalid work branch/],
+ [{ base_branch: "main.." }, /invalid base branch/],
+ [{ base_branch: "main/.hidden" }, /invalid base branch/],
+ [{ workflow_file: "../workflow.yml" }, /invalid workflow file/],
+ [{ workflow_file: "workflow.yaml.exe" }, /invalid workflow file/],
+ [{ max_hops: 0 }, /invalid max_hops/],
+ [{ max_hops: 11 }, /invalid max_hops/],
+ [{ max_hops: 1.5 }, /invalid max_hops/],
+ ])("rejects unsafe ledger fields %#", (overrides, error) => {
+ const chain = queuedChain();
+ expect(() => ledger.validateChain({ ...chain, ...overrides }, chain.chain_id)).toThrow(error);
+ });
+
+ it("accepts a namespaced branch with a configured prefix", () => {
+ const chain = queuedChain();
+ const prefixedChain = { ...chain, branch: "agent/continue-workflow/my-workflow/100" };
+ expect(ledger.validateChain(prefixedChain, chain.chain_id)).toBe(prefixedChain);
+ });
+ });
+
+ describe("storage", () => {
+ it("creates the ledger branch and reads chains back", async () => {
+ const { github, store } = createLedgerFake();
+ expect(await ledger.readChain(github, REPO, "my-workflow-100")).toBeNull();
+ expect(await ledger.listChainIds(github, REPO)).toEqual([]);
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ expect(store.calls.createRef).toBe(1);
+ const chain = await ledger.readChain(github, REPO, "my-workflow-100");
+ expect(chain.status).toBe("active");
+ expect(await ledger.listChainIds(github, REPO)).toEqual(["my-workflow-100"]);
+ });
+
+ it("does not write when a transition is a no-op", async () => {
+ const { github, store } = createLedgerFake();
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ const before = store.refs.get(ledger.LEDGER_BRANCH);
+ const result = await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start again");
+ expect(result.changed).toBe(false);
+ expect(store.refs.get(ledger.LEDGER_BRANCH)).toBe(before);
+ });
+
+ it("retries on a concurrent ledger write and keeps both chains", async () => {
+ let injected = false;
+ const fake = createLedgerFake({
+ onBeforeUpdateRef: async () => {
+ if (injected) return;
+ injected = true;
+ // Another workflow records its own chain between our read and our ref update.
+ await ledger.mutateChain(fake.github, REPO, "other-200", current => ledger.startChain(current, startInput({ chainId: "other-200", runId: "200", branch: "continue-workflow/other/200" })), "Concurrent start");
+ },
+ });
+ const { github, store } = fake;
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ const result = await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.recordContinuation(current, recordInput()), "Record");
+ expect(result.changed).toBe(true);
+ expect(store.calls.updateRef).toBeGreaterThanOrEqual(3);
+ expect((await ledger.listChainIds(github, REPO)).sort()).toEqual(["my-workflow-100", "other-200"]);
+ expect((await ledger.readChain(github, REPO, "my-workflow-100")).next).toMatchObject({ hop: 1, state: "queued" });
+ expect((await ledger.readChain(github, REPO, "other-200")).status).toBe("active");
+ });
+
+ it("loses the race cleanly when a concurrent writer wins between read and update", async () => {
+ const fake = createLedgerFake();
+ const { github, store } = fake;
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.recordContinuation(current, recordInput()), "Record");
+ const originalUpdate = github.rest.git.updateRef;
+ let raced = false;
+ github.rest.git.updateRef = async params => {
+ if (!raced) {
+ raced = true;
+ github.rest.git.updateRef = originalUpdate;
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.claimDispatch(current, { dispatchId: "dispatch-winner", now: NOW }), "Winner");
+ }
+ return originalUpdate(params);
+ };
+ const loser = await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.claimDispatch(current, { dispatchId: "dispatch-loser", now: NOW }), "Loser");
+ expect(loser.changed).toBe(false);
+ expect(store.readFile(ledger.LEDGER_BRANCH, "chains/my-workflow-100.json").next.dispatch_id).toBe("dispatch-winner");
+ });
+
+ it("gives up after the CAS attempt limit", async () => {
+ const { github } = createLedgerFake();
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ github.rest.git.updateRef = async () => {
+ throw Object.assign(new Error("Update is not a fast forward"), { status: 422 });
+ };
+ await expect(ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.recordContinuation(current, recordInput()), "Record")).rejects.toThrow(/did not converge/);
+ });
+
+ it("rejects corrupted chain documents", async () => {
+ const { github } = createLedgerFake();
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ github.rest.repos.getContent = async () => ({ data: { content: Buffer.from("{not json").toString("base64"), encoding: "base64" } });
+ await expect(ledger.readChain(github, REPO, "my-workflow-100")).rejects.toThrow(/not valid JSON/);
+ github.rest.repos.getContent = async () => ({ data: { content: Buffer.from(JSON.stringify({ version: 1, chain_id: "other" })).toString("base64"), encoding: "base64" } });
+ await expect(ledger.readChain(github, REPO, "my-workflow-100")).rejects.toThrow(/does not match/);
+ github.rest.repos.getContent = async () => ({ data: { content: Buffer.from("null").toString("base64"), encoding: "base64" } });
+ await expect(ledger.readChain(github, REPO, "my-workflow-100")).rejects.toThrow(/not an object/);
+ });
+
+ it("persists the dispatch cursor without overwriting a concurrent scan", async () => {
+ const { github, store } = createLedgerFake();
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ const initial = await ledger.readLedgerHead(github, REPO, ledger.LEDGER_BRANCH);
+ expect(await ledger.readDispatchCursorAt(github, REPO, initial.sha)).toBeNull();
+ await ledger.advanceDispatchCursor(github, REPO, null, "my-workflow-100");
+ expect((await ledger.advanceDispatchCursor(github, REPO, null, "other-200")).changed).toBe(false);
+ expect(store.readFile(ledger.LEDGER_BRANCH, "dispatch-cursor.json").after_chain_id).toBe("my-workflow-100");
+ expect((await ledger.advanceDispatchCursor(github, REPO, "my-workflow-100", "other-200")).changed).toBe(true);
+ expect((await ledger.readChain(github, REPO, "my-workflow-100")).status).toBe("active");
+ });
+
+ it("does not rewind the dispatch cursor after a compare-and-swap conflict", async () => {
+ let raced = false;
+ const fake = createLedgerFake({
+ onBeforeUpdateRef: async () => {
+ if (raced) return;
+ raced = true;
+ await ledger.advanceDispatchCursor(fake.github, REPO, null, "winner-200");
+ },
+ });
+ await ledger.mutateChain(fake.github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ expect((await ledger.advanceDispatchCursor(fake.github, REPO, null, "loser-100")).changed).toBe(false);
+ expect(fake.store.readFile(ledger.LEDGER_BRANCH, "dispatch-cursor.json").after_chain_id).toBe("winner-200");
+ });
+
+ it("fails explicitly when GitHub truncates the chain inventory", async () => {
+ const { github } = createLedgerFake();
+ await ledger.mutateChain(github, REPO, "my-workflow-100", current => ledger.startChain(current, startInput()), "Start");
+ github.rest.git.getTree = async () => ({ data: { tree: [], truncated: true } });
+ await expect(ledger.listChainIds(github, REPO)).rejects.toThrow(/ledger tree is truncated/);
+ });
+ });
+});
diff --git a/actions/setup/js/create_pull_request.cjs b/actions/setup/js/create_pull_request.cjs
index 067234a8a67..c73c6fdf45c 100644
--- a/actions/setup/js/create_pull_request.cjs
+++ b/actions/setup/js/create_pull_request.cjs
@@ -43,6 +43,7 @@ const { ensureFullHistoryForBundle, extractBundlePrerequisiteCommits, getBundleP
const { parseDiffGitHeader: parseDiffGitHeaderPaths, extractDiffGitHeaderEntries } = require("./patch_path_helpers.cjs");
const { resolveTransportPaths } = require("./resolve_transport_paths.cjs");
const { resolveDefaultMentions, resolveMentionsForItem } = require("./resolve_mentions_from_payload.cjs");
+const { getActiveContinuation, persistContinuationHop, noteFinalHead } = require("./continue_workflow.cjs");
const {
MANAGED_FALLBACK_ISSUE_LABEL,
LABEL_MAX_RETRIES,
@@ -1053,6 +1054,30 @@ async function main(config = {}) {
// is not available in GitHub Actions expressions and requires an API call
// NOTE: Must be resolved before checkout so cross-repo checkout uses the correct branch
let baseBranch = configBaseBranch || (await getBaseBranch(repoParts));
+
+ // In a continue_workflow run, the single final pull request is opened from the chain's
+ // stable work branch into the chain's base branch, both taken from the trusted ledger.
+ const activeContinuation = getActiveContinuation();
+ if (activeContinuation) {
+ const currentRepo = `${context.repo.owner}/${context.repo.repo}`.toLowerCase();
+ if (itemRepo.toLowerCase() !== currentRepo || pushRepo.toLowerCase() !== currentRepo) {
+ return { success: false, error: "A continued workflow can only create its pull request in the current repository" };
+ }
+ if (activeContinuation.settled) {
+ const recordedPullRequest = activeContinuation.pull_request;
+ if (activeContinuation.status === "completed" && recordedPullRequest?.url) {
+ return { success: true, skipped: true, reason: `continuation chain ${activeContinuation.chain_id} already created ${recordedPullRequest.url}`, number: recordedPullRequest.number, url: recordedPullRequest.url };
+ }
+ return { success: false, error: `continuation hop ${activeContinuation.hop} of chain ${activeContinuation.chain_id} was already settled` };
+ }
+ if (typeof pullRequestItem.base === "string" && pullRequestItem.base.trim() && pullRequestItem.base.trim() !== activeContinuation.base_branch) {
+ return { success: false, error: `A continued workflow must target its original base branch ${activeContinuation.base_branch}` };
+ }
+ if (pullRequestItem.branch !== activeContinuation.branch) {
+ return { success: false, error: `A continued workflow must create its pull request from the continuation branch ${activeContinuation.branch}` };
+ }
+ baseBranch = activeContinuation.base_branch;
+ }
const defaultBaseBranch = baseBranch;
// Stacked pull request metadata declared by the agent (position/root/dependencies).
@@ -1770,6 +1795,10 @@ async function main(config = {}) {
core.info(`Applied branch prefix: ${branchName}`);
}
+ if (activeContinuation) {
+ branchName = activeContinuation.branch;
+ }
+
core.info(`Generated branch name: ${branchName}`);
core.info(`Base branch: ${baseBranch}`);
@@ -1806,7 +1835,40 @@ async function main(config = {}) {
// to branches with exactly one new commit (security: prevents use of CI trigger
// token on multi-commit branches where workflow files may have been modified).
let newCommitCount = 0;
- if (hasBundleFile) {
+ if (activeContinuation) {
+ // Final hop of a continued workflow: append the last commits to the stable work branch
+ // with the same compare-and-swap persistence as continue_workflow, then open the single
+ // pull request from that branch below.
+ if (!hasBundleFile) {
+ return { success: false, error: "A continued workflow requires bundle transport for its final commits" };
+ }
+ try {
+ const persisted = await persistContinuationHop({
+ bundlePath: bundleFilePath,
+ agentBranch: originalAgentBranch || activeContinuation.branch,
+ workBranch: activeContinuation.branch,
+ baseBranch,
+ expectedBase: activeContinuation.base_sha,
+ isInitial: false,
+ config,
+ githubClient: pushGithubClient,
+ });
+ noteFinalHead(persisted.headSha);
+ // Protected files touched by earlier hops still apply to the single final pull request.
+ const priorProtectedFiles = Array.isArray(activeContinuation.protected_files) ? activeContinuation.protected_files : [];
+ const protectedFiles = [...new Set([...priorProtectedFiles, ...persisted.protectedFiles])];
+ const protectedAction = persisted.protectedAction || activeContinuation.protected_action;
+ if (protectedFiles.length > 0 && protectedAction === "fallback") {
+ manifestProtectionFallback = [...new Set([...(manifestProtectionFallback || []), ...protectedFiles])];
+ } else if (protectedFiles.length > 0 && protectedAction === "request_review") {
+ manifestProtectionRequestReview = [...new Set([...(manifestProtectionRequestReview || []), ...protectedFiles])];
+ }
+ } catch (continuationError) {
+ const error = `Failed to persist the final continuation hop to ${activeContinuation.branch}: ${getErrorMessage(continuationError)}`;
+ core.error(error);
+ return { success: false, error };
+ }
+ } else if (hasBundleFile) {
// Bundle transport: fetch commits directly from the bundle file.
// This preserves merge commit topology and per-commit metadata (messages, authorship)
// unlike git format-patch which flattens history and drops merge resolution content.
diff --git a/actions/setup/js/dispatch_continue_workflow.cjs b/actions/setup/js/dispatch_continue_workflow.cjs
new file mode 100644
index 00000000000..56f5c6f6c23
--- /dev/null
+++ b/actions/setup/js/dispatch_continue_workflow.cjs
@@ -0,0 +1,123 @@
+// @ts-check
+///
+// @safe-outputs-exempt SEC-005: continuations are dispatched only to workflows in the current GitHub Actions repository.
+"use strict";
+
+/**
+ * Agentic Maintenance step that dispatches queued continue_workflow hops.
+ *
+ * For every active chain whose next hop is queued, the hop is first moved to `dispatched`
+ * with a fresh dispatch id (compare-and-swap), and only then is the workflow dispatched.
+ * The dispatched run must present that dispatch id, so concurrent or repeated maintenance
+ * runs can never start two runs for the same hop. Failed dispatches are re-queued a bounded
+ * number of times; hops that never settle are failed so the chain is reported, not lost.
+ */
+
+const crypto = require("crypto");
+const { getErrorMessage } = require("./error_helpers.cjs");
+const { ERR_API } = require("./error_codes.cjs");
+const ledger = require("./continue_workflow_ledger.cjs");
+
+const MAX_CHAINS_PER_RUN = 50;
+
+/** @param {any} chain */
+function buildAwContext(chain, dispatchId) {
+ return JSON.stringify({
+ repo: chain.repository,
+ actor: chain.initiator,
+ origin_event: "continue_workflow",
+ episode_id: chain.chain_id,
+ root_run_id: chain.hops.find(/** @param {any} h */ h => h.hop === 0)?.run_id || "",
+ continuation: { chain_id: chain.chain_id, hop: chain.next.hop, dispatch_id: dispatchId },
+ });
+}
+
+/**
+ * @param {any} githubClient
+ * @param {any} chain
+ */
+async function resolveDispatchRef(githubClient, chain) {
+ if (typeof chain.ref === "string" && /^refs\/(heads|tags)\/[A-Za-z0-9._/-]+$/.test(chain.ref)) return chain.ref;
+ const { data } = await githubClient.rest.repos.get({ owner: context.repo.owner, repo: context.repo.repo });
+ return `refs/heads/${data.default_branch}`;
+}
+
+/**
+ * @param {{githubClient?: any, now?: () => string, newDispatchId?: () => string}} [options]
+ */
+async function main(options = {}) {
+ const githubClient = options.githubClient || github;
+ const now = options.now || (() => new Date().toISOString());
+ const newDispatchId = options.newDispatchId || (() => crypto.randomBytes(12).toString("hex"));
+ const repo = { owner: context.repo.owner, repo: context.repo.repo };
+ /** @type {{dispatched: string[], requeued: string[], failed: string[], errors: string[]}} */
+ const report = { dispatched: [], requeued: [], failed: [], errors: [] };
+
+ const head = await ledger.readLedgerHead(githubClient, repo, ledger.LEDGER_BRANCH);
+ const chainIds = head ? (await ledger.listChainIds(githubClient, repo, head)).sort() : [];
+ if (!head || chainIds.length === 0) {
+ core.info("No continuation chains recorded");
+ return report;
+ }
+
+ const boundedScan = chainIds.length > MAX_CHAINS_PER_RUN;
+ const cursor = boundedScan ? await ledger.readDispatchCursorAt(githubClient, repo, head.sha) : null;
+ const ordered = cursor ? [...chainIds.filter(id => id > cursor), ...chainIds.filter(id => id <= cursor)] : chainIds;
+ const selected = ordered.slice(0, MAX_CHAINS_PER_RUN);
+ for (const chainId of selected) {
+ try {
+ // Settled chains are skipped from one snapshot read; only active chains are mutated.
+ const snapshot = await ledger.readChainAt(githubClient, repo, head.sha, chainId);
+ if (!snapshot || snapshot.status !== "active") continue;
+ const expired = await ledger.mutateChain(githubClient, repo, chainId, current => ledger.expireStale(current, { now: now() }), "Expire stale continuation hop");
+ if (expired.changed) {
+ report.failed.push(`${chainId}: ${expired.chain.error}`);
+ continue;
+ }
+ const dispatchId = newDispatchId();
+ const claimed = await ledger.mutateChain(githubClient, repo, chainId, current => ledger.claimDispatch(current, { dispatchId, now: now() }), "Dispatch continuation hop");
+ if (!claimed.changed) continue;
+ const chain = claimed.chain;
+ try {
+ const ref = await resolveDispatchRef(githubClient, chain);
+ await githubClient.rest.actions.createWorkflowDispatch({ ...repo, workflow_id: chain.workflow_file, ref, inputs: { aw_context: buildAwContext(chain, dispatchId) } });
+ report.dispatched.push(`${chainId}: hop ${chain.next.hop}/${chain.max_hops} of ${chain.workflow_file} on ${chain.branch}`);
+ core.info(`Dispatched continuation hop ${chain.next.hop} of chain ${chainId}`);
+ } catch (dispatchError) {
+ const errorMessage = getErrorMessage(dispatchError);
+ core.warning(`Failed to dispatch continuation hop for chain ${chainId}: ${errorMessage}`);
+ const result = await ledger.mutateChain(githubClient, repo, chainId, current => ledger.recordDispatchFailure(current, { dispatchId, error: errorMessage, now: now() }), "Record failed continuation dispatch");
+ if (result.chain?.status === "failed") report.failed.push(`${chainId}: ${result.chain.error}`);
+ else report.requeued.push(`${chainId}: ${errorMessage}`);
+ }
+ } catch (error) {
+ report.errors.push(`${chainId}: ${getErrorMessage(error)}`);
+ }
+ }
+ core.info(`Scanned ${selected.length} of ${chainIds.length} continuation chains`);
+
+ if (boundedScan) {
+ const last = selected[selected.length - 1];
+ if (!last) throw new Error(`${ERR_API}: continuation dispatch scan selected no chains`);
+ await ledger.advanceDispatchCursor(githubClient, repo, cursor, last);
+ core.info(`Inspected ${selected.length} of ${chainIds.length} continuation chains; the next maintenance scan resumes after ${last}`);
+ }
+
+ const lines = ["## Continue-workflow dispatch", ""];
+ if (selected.length < chainIds.length) lines.push(`Scanned ${selected.length} of ${chainIds.length} chains; the next maintenance run continues at the next bounded window.`, "");
+ const section = (/** @type {string} */ title, /** @type {string[]} */ items) => {
+ if (items.length === 0) return;
+ lines.push(`### ${title}`, "", ...items.map(item => `- ${item}`), "");
+ };
+ section("Dispatched", report.dispatched);
+ section("Re-queued after a failed dispatch", report.requeued);
+ section("Failed (work branch preserved)", report.failed);
+ section("Errors", report.errors);
+ if (lines.length === 2) lines.push("No continuation hops were waiting to be dispatched.");
+ await core.summary.addRaw(lines.join("\n")).write();
+ for (const failure of report.failed) core.warning(`Continuation chain failed: ${failure}`);
+ if (report.errors.length > 0) core.setFailed(`${ERR_API}: ${report.errors.length} continuation chain(s) could not be processed`);
+ return report;
+}
+
+module.exports = { MAX_CHAINS_PER_RUN, main, buildAwContext };
diff --git a/actions/setup/js/dispatch_continue_workflow.test.cjs b/actions/setup/js/dispatch_continue_workflow.test.cjs
new file mode 100644
index 00000000000..1dc5200a423
--- /dev/null
+++ b/actions/setup/js/dispatch_continue_workflow.test.cjs
@@ -0,0 +1,187 @@
+import { describe, it, expect, beforeEach, vi } from "vitest";
+import { createRequire } from "module";
+
+const require = createRequire(import.meta.url);
+
+const summary = { addRaw: vi.fn(), write: vi.fn() };
+summary.addRaw.mockReturnValue(summary);
+summary.write.mockResolvedValue(undefined);
+global.core = { info: vi.fn(), warning: vi.fn(), error: vi.fn(), debug: vi.fn(), setFailed: vi.fn(), summary };
+global.context = { repo: { owner: "o", repo: "r" } };
+
+const ledger = require("./continue_workflow_ledger.cjs");
+const { MAX_CHAINS_PER_RUN, main, buildAwContext } = require("./dispatch_continue_workflow.cjs");
+const { createLedgerFake } = require("./continue_workflow.test_helpers.cjs");
+
+const REPO = { owner: "o", repo: "r" };
+const NOW = "2026-01-01T00:00:00.000Z";
+const CHAIN_ID = "my-workflow-100";
+
+async function seedQueuedChain(github, overrides = {}) {
+ const chainId = overrides.chainId || CHAIN_ID;
+ await ledger.mutateChain(
+ github,
+ REPO,
+ chainId,
+ current => {
+ const started = ledger.startChain(current, {
+ chainId,
+ runId: "100",
+ workflowId: "my-workflow",
+ workflowFile: "my-workflow.lock.yml",
+ ref: "refs/heads/main",
+ repository: "o/r",
+ initiator: "octocat",
+ baseBranch: "main",
+ baseCommit: "a".repeat(40),
+ branch: "continue-workflow/my-workflow/100",
+ maxHops: 3,
+ now: NOW,
+ ...overrides,
+ });
+ return ledger.recordContinuation(started.chain, { hop: 0, runId: "100", headSha: "b".repeat(40), reason: "more", now: NOW });
+ },
+ "Seed"
+ );
+}
+
+describe("dispatch_continue_workflow", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ summary.addRaw.mockReturnValue(summary);
+ });
+
+ it("does nothing when no ledger exists", async () => {
+ const { github, store } = createLedgerFake();
+ const report = await main({ githubClient: github });
+ expect(report.dispatched).toEqual([]);
+ expect(store.calls.createWorkflowDispatch).toHaveLength(0);
+ });
+
+ it("claims the queued hop before dispatching it with a bound aw_context", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github);
+ const report = await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+
+ expect(report.dispatched).toHaveLength(1);
+ expect(store.calls.createWorkflowDispatch).toHaveLength(1);
+ const [dispatch] = store.calls.createWorkflowDispatch;
+ expect(dispatch).toMatchObject({ owner: "o", repo: "r", workflow_id: "my-workflow.lock.yml", ref: "refs/heads/main" });
+ const awContext = JSON.parse(dispatch.inputs.aw_context);
+ expect(awContext).toMatchObject({ actor: "octocat", origin_event: "continue_workflow", root_run_id: "100", continuation: { chain_id: CHAIN_ID, hop: 1, dispatch_id: "dispatch-0001" } });
+ // The dispatched input round-trips through the agent-side parser.
+ expect(ledger.parseContinuationRequest({ inputs: { aw_context: dispatch.inputs.aw_context } })).toEqual({ chain_id: CHAIN_ID, hop: 1, dispatch_id: "dispatch-0001" });
+
+ const chain = await ledger.readChain(github, REPO, CHAIN_ID);
+ expect(chain.next).toMatchObject({ hop: 1, state: "dispatched", dispatch_id: "dispatch-0001", dispatch_attempts: 1 });
+ });
+
+ it("never dispatches the same hop twice across maintenance runs", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github);
+ await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0002" });
+ expect(store.calls.createWorkflowDispatch).toHaveLength(1);
+ });
+
+ it("falls back to the default branch when the chain has no dispatch ref", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github, { ref: "" });
+ await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ expect(store.calls.createWorkflowDispatch[0].ref).toBe("refs/heads/main");
+ });
+
+ it("re-queues a failed dispatch so a later run retries it", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github);
+ store.failNextDispatch(Object.assign(new Error("Server Error"), { status: 500 }));
+ const failedRun = await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ expect(failedRun.requeued).toHaveLength(1);
+ const requeued = await ledger.readChain(github, REPO, CHAIN_ID);
+ expect(requeued.next).toMatchObject({ state: "queued", dispatch_attempts: 1, last_error: "Server Error" });
+
+ const retry = await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0002" });
+ expect(retry.dispatched).toHaveLength(1);
+ expect(JSON.parse(store.calls.createWorkflowDispatch[0].inputs.aw_context).continuation.dispatch_id).toBe("dispatch-0002");
+ });
+
+ it("fails a hop that never settled and reports the preserved branch", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github);
+ await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ const report = await main({ githubClient: github, now: () => "2026-01-03T00:00:00.000Z", newDispatchId: () => "dispatch-0002" });
+ expect(report.failed).toHaveLength(1);
+ expect(report.failed[0]).toContain("continue-workflow/my-workflow/100");
+ expect((await ledger.readChain(github, REPO, CHAIN_ID)).status).toBe("failed");
+ expect(store.calls.createWorkflowDispatch).toHaveLength(1);
+ expect(global.core.warning).toHaveBeenCalledWith(expect.stringContaining("Continuation chain failed"));
+ });
+
+ it("skips settled chains without writing to the ledger", async () => {
+ const { github, store } = createLedgerFake();
+ await seedQueuedChain(github);
+ await ledger.mutateChain(github, REPO, CHAIN_ID, current => ledger.failChain(current, { reason: "stopped", now: NOW }), "Fail");
+ const head = store.refs.get(ledger.LEDGER_BRANCH);
+ const report = await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ expect(report.dispatched).toEqual([]);
+ expect(store.refs.get(ledger.LEDGER_BRANCH)).toBe(head);
+ });
+
+ it("bounds historical reads and resumes later pages without starving queued chains", async () => {
+ const { github, store } = createLedgerFake();
+ for (let index = 0; index < 120; index++) {
+ const chainId = `history-${String(index).padStart(3, "0")}`;
+ await seedQueuedChain(github, { chainId });
+ await ledger.mutateChain(github, REPO, chainId, current => ledger.failChain(current, { reason: "settled", now: NOW }), "Settle");
+ }
+ await seedQueuedChain(github, { chainId: "z-queued" });
+ const snapshots = vi.spyOn(ledger, "readChainAt");
+ const contents = vi.spyOn(github.rest.repos, "getContent");
+ for (let pass = 0; pass < 3; pass++) {
+ snapshots.mockClear();
+ contents.mockClear();
+ await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ expect(snapshots).toHaveBeenCalledTimes(MAX_CHAINS_PER_RUN);
+ expect(contents.mock.calls.filter(([params]) => params.path.startsWith("chains/")).length).toBeLessThanOrEqual(52);
+ }
+ expect(store.calls.createWorkflowDispatch).toHaveLength(1);
+ expect(JSON.parse(store.calls.createWorkflowDispatch[0].inputs.aw_context).continuation.chain_id).toBe("z-queued");
+ expect(store.readFile(ledger.LEDGER_BRANCH, "dispatch-cursor.json").after_chain_id).toBe("history-028");
+ snapshots.mockRestore();
+ contents.mockRestore();
+ });
+
+ it("counts running chains against the scan budget, even when no dispatch is claimed", async () => {
+ const { github } = createLedgerFake();
+ for (let index = 0; index < 55; index++) {
+ const chainId = `running-${String(index).padStart(3, "0")}`;
+ await seedQueuedChain(github, { chainId });
+ await ledger.mutateChain(github, REPO, chainId, current => ledger.claimDispatch(current, { dispatchId: "dispatch-0001", now: NOW }), "Claim");
+ }
+ const snapshots = vi.spyOn(ledger, "readChainAt");
+ const report = await main({ githubClient: github, now: () => NOW });
+ expect(snapshots).toHaveBeenCalledTimes(50);
+ expect(report.dispatched).toEqual([]);
+ const head = await ledger.readLedgerHead(github, REPO, ledger.LEDGER_BRANCH);
+ expect(await ledger.readDispatchCursorAt(github, REPO, head.sha)).toBe("running-049");
+ snapshots.mockRestore();
+ });
+
+ it("reports chains that cannot be processed", async () => {
+ const { github } = createLedgerFake();
+ await seedQueuedChain(github);
+ const getContent = github.rest.repos.getContent;
+ github.rest.repos.getContent = async params => {
+ const response = await getContent(params);
+ return { data: { ...response.data, content: Buffer.from("{bad").toString("base64") } };
+ };
+ const report = await main({ githubClient: github, now: () => NOW, newDispatchId: () => "dispatch-0001" });
+ expect(report.errors).toHaveLength(1);
+ expect(global.core.setFailed).toHaveBeenCalled();
+ });
+
+ it("builds aw_context from the chain initiator", () => {
+ const awContext = JSON.parse(buildAwContext({ repository: "o/r", initiator: "alice", chain_id: "c-1", hops: [{ hop: 0, run_id: "9" }], next: { hop: 1 } }, "dispatch-0001"));
+ expect(awContext).toEqual({ repo: "o/r", actor: "alice", origin_event: "continue_workflow", episode_id: "c-1", root_run_id: "9", continuation: { chain_id: "c-1", hop: 1, dispatch_id: "dispatch-0001" } });
+ });
+});
diff --git a/actions/setup/js/safe_output_handler_manager.cjs b/actions/setup/js/safe_output_handler_manager.cjs
index d92a41767eb..dd86722e1af 100644
--- a/actions/setup/js/safe_output_handler_manager.cjs
+++ b/actions/setup/js/safe_output_handler_manager.cjs
@@ -50,6 +50,7 @@ const { withClaimEffectClients, wrapClaimEffectClient } = require("./work_queue_
const { readClaimControlMessages } = require("./work_queue_control_delivery.cjs");
const { readDeliveryControlInventory, inspectClaimDelivery, createClaimDeliveryVerifier, verifyBuiltinDeliveryOutput } = require("./work_queue_delivery.cjs");
const { createClaimAdapterHandler, verifyClaimAdapterOutput, preparedAdapterPath, createDeclaredAdapterVerifier, wrapDeclaredBuiltinHandler } = require("./work_queue_claim_adapters.cjs");
+const { prepareContinueWorkflow, finalizeContinueWorkflow } = require("./continue_workflow.cjs");
const GITHUB_TOKEN_CONFIG_KEY = "github-token";
/**
@@ -83,6 +84,7 @@ const HANDLER_MAP = {
reply_to_pull_request_review_comment: "./reply_to_pr_review_comment.cjs",
resolve_pull_request_review_thread: "./resolve_pr_review_thread.cjs",
create_pull_request: "./create_pull_request.cjs",
+ continue_workflow: "./continue_workflow.cjs",
push_to_pull_request_branch: "./push_to_pull_request_branch.cjs",
update_pull_request: "./update_pull_request.cjs",
merge_pull_request: "./merge_pull_request.cjs",
@@ -141,7 +143,7 @@ const STANDALONE_STEP_TYPES = new Set(["upload_asset", "noop"]);
* Code-push safe output types that must succeed before remaining outputs are processed.
* If any of these fail, the remaining non-code-push messages are cancelled with a clear reason.
*/
-const CODE_PUSH_TYPES = new Set(["push_to_pull_request_branch", "create_pull_request"]);
+const CODE_PUSH_TYPES = new Set(["push_to_pull_request_branch", "create_pull_request", "continue_workflow"]);
/** @type {Set} Project-safe-output handlers that should default to GH_AW_PROJECT_GITHUB_TOKEN when no per-handler github-token is configured. */
const PROJECT_HANDLER_TYPES = new Set(["create_project", "create_project_status_update", "update_project"]);
@@ -244,6 +246,7 @@ const THREAT_WARNING_ABORT_TYPES = new Set([
"dispatch_workflow",
"dispatch_repository",
"ledger_request_compaction",
+ "continue_workflow",
"call_workflow",
"autofix_code_scanning_alert",
"create_agent_session",
@@ -388,6 +391,23 @@ function wrapWithClientRebinding(type, messageHandler, handlerGithubClient) {
};
}
+/**
+ * A run that continues the workflow must not also open a pull request: exactly one pull
+ * request is created, by the final hop of the chain. When both are emitted, the pull request
+ * is skipped (not deferred) and continue_workflow persists the progress instead.
+ * @param {Map} messageHandlers
+ * @param {Array} messages
+ */
+function suppressPullRequestWhenContinuing(messageHandlers, messages) {
+ if (!messageHandlers.has("continue_workflow") || !messageHandlers.has("create_pull_request")) return;
+ if (!messages.some(message => message?.type === "continue_workflow")) return;
+ messageHandlers.set("create_pull_request", async () => ({
+ success: true,
+ skipped: true,
+ reason: "create_pull_request is skipped because this run continues the workflow; the final hop creates the single pull request",
+ }));
+}
+
async function finalizeLedgerAppend(config, messageHandlers) {
let ledgerAppendHandler = messageHandlers.get("ledger_append");
if (!ledgerAppendHandler && config.ledger_append) {
@@ -2067,9 +2087,14 @@ async function main(options = {}) {
const fileBackedCommentMemoryMessages = currentClaimHandle() ? [] : buildCommentMemoryMessagesFromFiles(agentOutputItems, config);
const allMessages = [...agentOutputItems, ...fileBackedCommentMemoryMessages];
if (currentClaimHandle()) setCollectedMissings({ missingTools: [], missingData: [], noopMessages: [], reportIncomplete: [] });
+ // Bind a dispatched continue_workflow hop to this run before anything is processed.
+ if (config.continue_workflow && !currentClaimHandle()) {
+ await prepareContinueWorkflow(config.continue_workflow);
+ }
if (allMessages.length === 0) {
core.info("No safe-output messages available - nothing to process");
await finalizeLedgerAppend(config, new Map());
+ if (config.continue_workflow && !currentClaimHandle()) await finalizeContinueWorkflow(config.continue_workflow, []);
if (!isStaged) ensureManifestExists();
core.setOutput("processed_count", "0");
setSafeOutputsStatusOutputs({ itemsSucceeded: 0, itemsFailed: 0, status: "success" });
@@ -2098,6 +2123,7 @@ async function main(options = {}) {
// Load and initialize handlers based on configuration (factory pattern)
const messageHandlers = await loadHandlers(config, prReviewBufferRegistry, undefined, activationCommentLinks);
+ suppressPullRequestWhenContinuing(messageHandlers, allMessages);
if (messageHandlers.size === 0) {
core.info("No handlers loaded - nothing to process");
@@ -2122,6 +2148,9 @@ async function main(options = {}) {
// Process all messages in order of appearance
const processingResult = await processMessages(messageHandlers, allMessages, logCreatedItem);
await finalizeLedgerAppend(config, messageHandlers);
+ if (config.continue_workflow && !currentClaimHandle()) {
+ await finalizeContinueWorkflow(config.continue_workflow, processingResult.results);
+ }
// Finalize buffered PR reviews — one review submission per distinct PR
const registryEntries = prReviewBufferRegistry.getAllEntries();
@@ -2400,4 +2429,5 @@ module.exports = {
processSyntheticUpdates,
rejectCrossClaimTemporaryReferences,
settleClaimDelivery,
+ suppressPullRequestWhenContinuing,
};
diff --git a/actions/setup/js/safe_outputs_handlers.cjs b/actions/setup/js/safe_outputs_handlers.cjs
index 92e2e219a6a..569a4a219a5 100644
--- a/actions/setup/js/safe_outputs_handlers.cjs
+++ b/actions/setup/js/safe_outputs_handlers.cjs
@@ -419,6 +419,29 @@ function resolvePatchWorkspacePath(workspacePath) {
return { success: true, absolutePath: resolved };
}
+/** Context written by the continue_workflow checkout step of a continuation hop. */
+const CONTINUE_WORKFLOW_CONTEXT_FILE = "/tmp/gh-aw/continue-workflow/context.json";
+
+/**
+ * Reads the continuation context of this run, if any. The file is only a convenience for
+ * computing the incremental range: the safe-outputs job re-derives every trusted value from
+ * the continuation ledger.
+ * @returns {{branch: string, base_sha: string, base_branch: string, hop: number, max_hops: number, remaining_hops: number} | null}
+ */
+function readContinueWorkflowContext() {
+ if (!fs.existsSync(CONTINUE_WORKFLOW_CONTEXT_FILE)) return null;
+ let parsed;
+ try {
+ parsed = JSON.parse(fs.readFileSync(CONTINUE_WORKFLOW_CONTEXT_FILE, "utf8"));
+ } catch (error) {
+ throw new Error(`${ERR_PARSE}: continuation context is not valid JSON: ${getErrorMessage(error)}`);
+ }
+ if (!parsed || typeof parsed.branch !== "string" || !/^[0-9a-f]{40}$/.test(String(parsed.base_sha)) || typeof parsed.base_branch !== "string") {
+ throw new Error(`${ERR_VALIDATION}: continuation context is incomplete`);
+ }
+ return parsed;
+}
+
/**
* Create handlers for safe output tools
* @param {Object} server - The MCP server instance for logging
@@ -523,6 +546,15 @@ function createHandlers(server, appendSafeOutput, config = {}) {
if (type) operationCounts.set(scopedKey(type), (operationCounts.get(scopedKey(type)) || 0) + 1);
};
+ // continue_workflow and create_pull_request are mutually exclusive within one run: a run
+ // either hands its progress to the next hop or opens the chain's single pull request.
+ /** @type {{continueWorkflow: boolean, createPullRequest: boolean}} */
+ const continuationOutputs = { continueWorkflow: false, createPullRequest: false };
+ const continuationExclusionError = (/** @type {string} */ message) => ({
+ content: [{ type: "text", text: JSON.stringify({ result: "error", error: message }) }],
+ isError: true,
+ });
+
/**
* Validate schema-declared explicit target parameters for wildcard-target tools.
* @param {Record} entry
@@ -846,6 +878,18 @@ function createHandlers(server, appendSafeOutput, config = {}) {
const normalizedArgs = normalizeCombinedTitleBodyArgs(args);
/** @type {any} */
const entry = { ...normalizedArgs, type: "create_pull_request" };
+ if (continuationOutputs.continueWorkflow) {
+ return continuationExclusionError("continue_workflow was already called in this run. A run either continues the workflow or creates the final pull request, never both.");
+ }
+ /** @type {ReturnType} */
+ let continuationContext = null;
+ if (config.continue_workflow) {
+ try {
+ continuationContext = readContinueWorkflowContext();
+ } catch (error) {
+ return continuationExclusionError(getErrorMessage(error));
+ }
+ }
if (config.create_pull_request?.require_temporary_id === true && !entry.temporary_id) {
return buildIntentErrorResponse(buildMissingTemporaryIdError("create_pull_request", "create-pull-request"));
}
@@ -961,6 +1005,9 @@ function createHandlers(server, appendSafeOutput, config = {}) {
});
}
}
+ if (continuationContext) {
+ baseBranch = continuationContext.base_branch;
+ }
// Store the resolved base branch in the entry so the apply-time checkout step
// can use it directly instead of inferring from event context.
@@ -1018,18 +1065,24 @@ function createHandlers(server, appendSafeOutput, config = {}) {
};
}
+ // The final hop of a continued workflow opens its pull request from the continuation branch.
+ if (continuationContext && entry.branch !== continuationContext.branch) {
+ return continuationExclusionError(`This run continues workflow branch '${continuationContext.branch}'. Commit the final changes on that branch and call create_pull_request with branch '${continuationContext.branch}'.`);
+ }
+
const intentValidationError = validateCreatePullRequestIntent(entry);
if (intentValidationError) {
return buildIntentErrorResponse(intentValidationError);
}
// Check if allow-empty is enabled in configuration
- const allowEmpty = config.create_pull_request?.allow_empty === true;
+ const allowEmpty = config.create_pull_request?.allow_empty === true && !continuationContext;
if (allowEmpty) {
server.debug(`allow-empty is enabled for create_pull_request - skipping patch generation`);
// Append the safe output entry without generating a patch
appendSafeOutputCounted(entry);
+ continuationOutputs.createPullRequest = true;
return {
content: [
{
@@ -1117,6 +1170,13 @@ function createHandlers(server, appendSafeOutput, config = {}) {
if (pinnedSha) {
patchOptions.pinnedSha = pinnedSha;
}
+ // In a continuation hop only the commits made since the recorded work-branch head are new.
+ if (continuationContext) {
+ patchOptions.mode = "incremental";
+ patchOptions.incrementalBaseSha = continuationContext.base_sha;
+ transportOptions.mode = "incremental";
+ transportOptions.incrementalBaseSha = continuationContext.base_sha;
+ }
const patchResult = await generateGitPatch(entry.branch, baseBranch, patchOptions);
if (!patchResult.success) {
@@ -1236,6 +1296,7 @@ function createHandlers(server, appendSafeOutput, config = {}) {
}
appendSafeOutputCounted(entry);
+ continuationOutputs.createPullRequest = true;
return {
content: [
{
@@ -1258,6 +1319,7 @@ function createHandlers(server, appendSafeOutput, config = {}) {
}
appendSafeOutputCounted(entry);
+ continuationOutputs.createPullRequest = true;
return {
content: [
{
@@ -1290,6 +1352,129 @@ function createHandlers(server, appendSafeOutput, config = {}) {
* contributor forks that cannot be written are rejected before persisting an
* output. The apply-time handler still validates full PR data independently.
*/
+ /**
+ * Handler for continue_workflow: hands the committed progress of this run to a fresh
+ * workflow run on the same work branch. The commits must update plan.md so the next run
+ * knows where to resume; the safe-outputs job pushes the commits and schedules the hop.
+ */
+ const continueWorkflowHandler = async args => {
+ const toolError = (/** @type {string} */ message, /** @type {string} */ details = "") => continuationExclusionError(details ? `${message} ${details}` : message);
+ if (continuationOutputs.createPullRequest) {
+ return toolError("create_pull_request was already called in this run. A run either continues the workflow or creates the final pull request, never both.");
+ }
+ if (continuationOutputs.continueWorkflow) {
+ return toolError("continue_workflow may be called only once per run.");
+ }
+ const prConfig = config.create_pull_request || {};
+ const reason = typeof args?.reason === "string" ? args.reason.trim() : "";
+ if (!reason) {
+ return toolError("continue_workflow requires a 'reason' describing why another run is needed.");
+ }
+
+ let continuationContext;
+ try {
+ continuationContext = readContinueWorkflowContext();
+ } catch (error) {
+ return toolError(getErrorMessage(error));
+ }
+ if (continuationContext && Number(continuationContext.remaining_hops) <= 0) {
+ return toolError(`The continuation budget of ${continuationContext.max_hops} hops is exhausted. Finish the work, commit it on '${continuationContext.branch}', and call create_pull_request.`);
+ }
+
+ const gitCwd = process.env.GITHUB_WORKSPACE || process.cwd();
+ ensureSafeDirectoryTrust(gitCwd, server);
+ let baseBranch;
+ if (continuationContext) {
+ baseBranch = continuationContext.base_branch;
+ } else if (typeof prConfig.base_branch === "string" && prConfig.base_branch.trim()) {
+ baseBranch = prConfig.base_branch.trim();
+ } else {
+ const repoSlug = `${process.env.GITHUB_REPOSITORY || ""}`;
+ const manifestEntry = repoSlug ? lookupCheckout(repoSlug) : null;
+ const [owner = "", repo = ""] = repoSlug.split("/");
+ baseBranch = manifestEntry?.default_branch || (await getBaseBranch({ owner, repo }, { preferLocalDefaultBranchMetadata: true, cwd: gitCwd }));
+ }
+
+ let branch = typeof args?.branch === "string" ? args.branch.trim() : "";
+ if (!branch || branch === baseBranch) branch = getCurrentBranch(undefined);
+ if (continuationContext && branch !== continuationContext.branch) {
+ return toolError(`This run continues workflow branch '${continuationContext.branch}'. Commit your progress on that branch and call continue_workflow with branch '${continuationContext.branch}'.`);
+ }
+ if (!branch || branch === baseBranch) {
+ return toolError(`Commit your progress on a work branch other than the base branch '${baseBranch}' before calling continue_workflow.`);
+ }
+
+ let pinnedSha;
+ try {
+ pinnedSha = execGitSync(["rev-parse", "--verify", `refs/heads/${branch}^{commit}`], { cwd: gitCwd })
+ .toString()
+ .trim();
+ } catch (error) {
+ return toolError(`Branch '${branch}' does not exist locally: ${getErrorMessage(error)}`);
+ }
+
+ /** @type {Record} */
+ const transportOptions = { pinnedSha };
+ if (prConfig["github-token"]) transportOptions.token = prConfig["github-token"];
+ if (Array.isArray(prConfig.excluded_files) && prConfig.excluded_files.length > 0) transportOptions.excludedFiles = prConfig.excluded_files;
+ if (continuationContext) {
+ transportOptions.mode = "incremental";
+ transportOptions.incrementalBaseSha = continuationContext.base_sha;
+ }
+ const noCommitsDetails = "Commit your progress (including an updated plan.md) with git add and git commit before calling continue_workflow.";
+ const patchResult = await generateGitPatch(branch, baseBranch, { ...transportOptions });
+ if (!patchResult.success) {
+ return toolError(patchResult.error || "Failed to generate patch.", noCommitsDetails);
+ }
+
+ const rangeBase = continuationContext ? continuationContext.base_sha : patchResult.baseCommit;
+ if (rangeBase) {
+ let changedPlan = "";
+ try {
+ changedPlan = execGitSync(["diff", "--name-only", rangeBase, pinnedSha, "--", "plan.md"], { cwd: gitCwd }).toString().trim();
+ } catch (error) {
+ return toolError(`Failed to inspect the committed changes: ${getErrorMessage(error)}`);
+ }
+ if (!changedPlan) {
+ return toolError("The commits of this run do not update plan.md.", "Record completed work and the remaining steps in plan.md at the repository root, commit it, and call continue_workflow again.");
+ }
+ }
+
+ const bundleResult = await generateGitBundle(branch, baseBranch, transportOptions);
+ if (!bundleResult.success) {
+ return toolError(bundleResult.error || "Failed to generate bundle.", noCommitsDetails);
+ }
+ let currentSha;
+ try {
+ currentSha = execGitSync(["rev-parse", "--verify", `refs/heads/${branch}^{commit}`], { cwd: gitCwd })
+ .toString()
+ .trim();
+ } catch (error) {
+ return toolError(`Failed to verify branch integrity after bundle generation: ${getErrorMessage(error)}`);
+ }
+ if (currentSha !== pinnedSha) {
+ return toolError("Branch ref changed during transport artifact generation. Please retry.");
+ }
+
+ /** @type {Record} */
+ const entry = { type: "continue_workflow", branch, reason };
+ if (typeof args?.next_steps === "string" && args.next_steps.trim()) entry.next_steps = args.next_steps.trim();
+ appendSafeOutputCounted(entry);
+ continuationOutputs.continueWorkflow = true;
+ const nextHop = continuationContext ? Number(continuationContext.hop) + 1 : 1;
+ return {
+ content: [
+ {
+ type: "text",
+ text: JSON.stringify({
+ result: "success",
+ message: `Progress on '${branch}' will be pushed and run ${nextHop} of this workflow will be scheduled to resume from plan.md. Do not call create_pull_request in this run.`,
+ }),
+ },
+ ],
+ };
+ };
+
const pushToPullRequestBranchHandler = async args => {
const entry = { ...(args || {}), type: "push_to_pull_request_branch" };
const wildcardTargetValidationError = validateWildcardTargetRequirement(entry);
@@ -3409,6 +3594,7 @@ function createHandlers(server, appendSafeOutput, config = {}) {
uploadArtifactHandler,
uploadCodeCoverageHandler,
createPullRequestHandler,
+ continueWorkflowHandler,
pushToPullRequestBranchHandler,
pushRepoMemoryHandler,
createIssueHandler,
diff --git a/actions/setup/js/safe_outputs_handlers_continue_workflow.test.cjs b/actions/setup/js/safe_outputs_handlers_continue_workflow.test.cjs
new file mode 100644
index 00000000000..abbb74b42e0
--- /dev/null
+++ b/actions/setup/js/safe_outputs_handlers_continue_workflow.test.cjs
@@ -0,0 +1,92 @@
+import { describe, it, expect, beforeEach, afterEach, afterAll, vi } from "vitest";
+import { createRequire } from "module";
+import crypto from "crypto";
+import fs from "fs";
+import path from "path";
+import { execSync } from "child_process";
+
+const require = createRequire(import.meta.url);
+
+global.core = { debug: vi.fn(), info: vi.fn(), notice: vi.fn(), warning: vi.fn(), error: vi.fn(), setFailed: vi.fn(), setOutput: vi.fn() };
+global.context = { repo: { owner: "owner", repo: "repo" }, eventName: "workflow_dispatch", payload: {} };
+
+const { createHandlers } = require("./safe_outputs_handlers.cjs");
+const { CONTEXT_FILE } = require("./checkout_continue_workflow_branch.cjs");
+
+const scratch = path.resolve(`.safe-outputs-continue-workflow-${crypto.randomUUID()}`);
+const BASE_SHA = "b".repeat(40);
+
+function parse(result) {
+ return { isError: result.isError === true, body: JSON.parse(result.content[0].text) };
+}
+
+describe("safe_outputs_handlers continue_workflow", () => {
+ let appendSafeOutput;
+ let handlers;
+ let workspace;
+ let continuationContext;
+
+ beforeEach(() => {
+ vi.clearAllMocks();
+ workspace = path.join(scratch, crypto.randomUUID());
+ fs.mkdirSync(workspace, { recursive: true });
+ process.env.GIT_CEILING_DIRECTORIES = fs.realpathSync(scratch);
+ process.env.GITHUB_WORKSPACE = workspace;
+ process.env.GITHUB_REPOSITORY = "owner/repo";
+ execSync("git init -q -b main && git config user.email t@example.com && git config user.name Test && git commit -q --allow-empty -m base", { cwd: workspace });
+
+ continuationContext = null;
+ const existsSync = fs.existsSync;
+ const readFileSync = fs.readFileSync;
+ vi.spyOn(fs, "existsSync").mockImplementation(file => (file === CONTEXT_FILE ? continuationContext !== null : existsSync(file)));
+ vi.spyOn(fs, "readFileSync").mockImplementation((file, ...rest) => (file === CONTEXT_FILE ? continuationContext : readFileSync(file, ...rest)));
+
+ appendSafeOutput = vi.fn();
+ handlers = createHandlers({ debug: vi.fn() }, appendSafeOutput, { create_pull_request: { base_branch: "main" }, continue_workflow: { max: 1 } });
+ });
+
+ afterEach(() => vi.restoreAllMocks());
+ afterAll(() => fs.rmSync(scratch, { recursive: true, force: true }));
+
+ it("requires a reason", async () => {
+ const result = parse(await handlers.continueWorkflowHandler({ branch: "work" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("requires a 'reason'");
+ expect(appendSafeOutput).not.toHaveBeenCalled();
+ });
+
+ it("refuses to continue once the hop budget is exhausted", async () => {
+ continuationContext = JSON.stringify({ branch: "continue-workflow/wf/1", base_sha: BASE_SHA, base_branch: "main", hop: 3, max_hops: 3, remaining_hops: 0 });
+ const result = parse(await handlers.continueWorkflowHandler({ reason: "more" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("budget of 3 hops is exhausted");
+ expect(result.body.error).toContain("create_pull_request");
+ });
+
+ it("requires continuation hops to commit on the continuation branch", async () => {
+ continuationContext = JSON.stringify({ branch: "continue-workflow/wf/1", base_sha: BASE_SHA, base_branch: "main", hop: 1, max_hops: 3, remaining_hops: 2 });
+ const result = parse(await handlers.continueWorkflowHandler({ reason: "more", branch: "elsewhere" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("continue_workflow with branch 'continue-workflow/wf/1'");
+ });
+
+ it("rejects a corrupted continuation context", async () => {
+ continuationContext = "{not json";
+ const result = parse(await handlers.continueWorkflowHandler({ reason: "more" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("not valid JSON");
+ });
+
+ it("requires a work branch other than the base branch", async () => {
+ const result = parse(await handlers.continueWorkflowHandler({ reason: "more" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("other than the base branch 'main'");
+ });
+
+ it("makes the final hop open its pull request from the continuation branch", async () => {
+ continuationContext = JSON.stringify({ branch: "continue-workflow/wf/1", base_sha: BASE_SHA, base_branch: "main", hop: 1, max_hops: 3, remaining_hops: 2 });
+ const result = parse(await handlers.createPullRequestHandler({ title: "Done", body: "Done", branch: "elsewhere" }));
+ expect(result.isError).toBe(true);
+ expect(result.body.error).toContain("create_pull_request with branch 'continue-workflow/wf/1'");
+ });
+});
diff --git a/actions/setup/js/safe_outputs_tools.json b/actions/setup/js/safe_outputs_tools.json
index 60b63c9f0ab..388a7fbd177 100644
--- a/actions/setup/js/safe_outputs_tools.json
+++ b/actions/setup/js/safe_outputs_tools.json
@@ -585,6 +585,31 @@
}
}
},
+ {
+ "name": "continue_workflow",
+ "description": "Hand the committed progress of this run to a fresh run of the same workflow on the same work branch, when the task cannot be finished within this run. Before calling it, commit your work on the work branch, including plan.md at the repository root recording completed work and the remaining steps. Do not call create_pull_request in the same run: the final run of the chain creates the single pull request. Calls are limited by the configured number of continuation hops.",
+ "inputSchema": {
+ "type": "object",
+ "required": ["reason"],
+ "properties": {
+ "reason": {
+ "type": "string",
+ "description": "Why another run is needed to finish the task (for example, the remaining work does not fit in this run).",
+ "maxLength": 2000
+ },
+ "branch": {
+ "type": "string",
+ "description": "Work branch containing the committed progress. If omitted, uses the current working branch. In a continued run it must be the branch this run resumed."
+ },
+ "next_steps": {
+ "type": "string",
+ "description": "Short summary of the next steps the following run should take; the full plan belongs in plan.md.",
+ "maxLength": 2000
+ }
+ },
+ "additionalProperties": false
+ }
+ },
{
"name": "create_pull_request",
"description": "Create a new GitHub pull request to propose code changes. Use this after making file edits to submit them for review and merging. The PR will be created from the current branch with your committed changes. This is a write-once declaration for a real intended PR, not a sandbox or probe: do not call it with placeholder content, test titles/bodies, or auth experiments. If you are not ready to open the real PR, use noop or report_incomplete instead. For code review comments on an existing PR, use create_pull_request_review_comment instead.",
diff --git a/actions/setup/js/safe_outputs_tools_loader.cjs b/actions/setup/js/safe_outputs_tools_loader.cjs
index 44bd5033c2f..d3cc3ef5acd 100644
--- a/actions/setup/js/safe_outputs_tools_loader.cjs
+++ b/actions/setup/js/safe_outputs_tools_loader.cjs
@@ -178,6 +178,7 @@ function attachHandlers(tools, handlers, logger) {
jira_add_comment: handlers.jiraAddCommentHandler,
jira_add_label: handlers.jiraAddLabelHandler,
create_pull_request: handlers.createPullRequestHandler,
+ continue_workflow: handlers.continueWorkflowHandler,
push_to_pull_request_branch: handlers.pushToPullRequestBranchHandler,
push_repo_memory: handlers.pushRepoMemoryHandler,
upload_asset: handlers.uploadAssetHandler,
diff --git a/actions/setup/js/types/safe-outputs-config.d.ts b/actions/setup/js/types/safe-outputs-config.d.ts
index 017ff8cdb7f..7d60328e980 100644
--- a/actions/setup/js/types/safe-outputs-config.d.ts
+++ b/actions/setup/js/types/safe-outputs-config.d.ts
@@ -282,6 +282,14 @@ interface SetIssueTypeConfig extends SafeOutputConfig {
target?: string;
}
+/**
+ * Configuration for continuing long-running work in fresh runs on one work branch
+ */
+interface ContinueWorkflowConfig extends SafeOutputConfig {
+ /** Maximum number of continuation runs after the first run (default: 3) */
+ max_hops?: number;
+}
+
/**
* Configuration for assigning agents to issues
*/
@@ -392,6 +400,7 @@ type SpecificSafeOutputConfig =
| UploadAssetConfig
| AssignMilestoneConfig
| SetIssueTypeConfig
+ | ContinueWorkflowConfig
| AssignToAgentConfig
| UpdateReleaseConfig
| NoOpConfig
@@ -431,6 +440,7 @@ export {
UploadAssetConfig,
AssignMilestoneConfig,
SetIssueTypeConfig,
+ ContinueWorkflowConfig,
AssignToAgentConfig,
UpdateReleaseConfig,
NoOpConfig,
diff --git a/actions/setup/js/types/safe-outputs.d.ts b/actions/setup/js/types/safe-outputs.d.ts
index d9a3e39f213..138bfd67dde 100644
--- a/actions/setup/js/types/safe-outputs.d.ts
+++ b/actions/setup/js/types/safe-outputs.d.ts
@@ -361,6 +361,19 @@ interface AssignMilestoneItem extends BaseSafeOutputItem {
milestone_title?: string;
}
+/**
+ * JSONL item for continuing long-running work in a fresh run on the same work branch
+ */
+interface ContinueWorkflowItem extends BaseSafeOutputItem {
+ type: "continue_workflow";
+ /** Why another run is needed */
+ reason: string;
+ /** Work branch holding the committed progress (including plan.md) */
+ branch: string;
+ /** Optional summary of the next steps */
+ next_steps?: string;
+}
+
/**
* JSONL item for setting the type of a GitHub issue
*/
@@ -535,6 +548,7 @@ type SafeOutputItem =
| UploadAssetItem
| AssignMilestoneItem
| SetIssueTypeItem
+ | ContinueWorkflowItem
| SetIssueFieldItem
| AssignToAgentItem
| UpdateReleaseItem
@@ -582,6 +596,7 @@ export {
UploadAssetItem,
AssignMilestoneItem,
SetIssueTypeItem,
+ ContinueWorkflowItem,
SetIssueFieldItem,
AssignToAgentItem,
UpdateReleaseItem,
diff --git a/actions/setup/js/work_queue_continuation.cjs b/actions/setup/js/work_queue_continuation.cjs
new file mode 100644
index 00000000000..3c74f736614
--- /dev/null
+++ b/actions/setup/js/work_queue_continuation.cjs
@@ -0,0 +1,24 @@
+// @ts-check
+"use strict";
+
+const { closed } = require("./work_queue_codec.cjs");
+
+function createWorkQueueContinuationTool(snapshot, options = {}) {
+ return {
+ name: "work_queue_continue",
+ description:
+ "Experimental: finish this original Claim with outcome completed and keep_open true, retaining the same Work and its backing Issue for another run after independently verified delivery. Persist progress and handoff notes through the Claim's declared outputs before calling this tool. No child Work or workflow dispatch is created; normal queue policy selects the next Claim.",
+ inputSchema: {
+ type: "object",
+ properties: { claim_handle: { type: "string", minLength: 1, maxLength: 256 } },
+ additionalProperties: false,
+ },
+ handler: args => {
+ closed(args, [], ["claim_handle"], "work_queue_continue");
+ const { createWorkQueueFinishTool } = require("./work_queue_mcp_server.cjs");
+ return createWorkQueueFinishTool({ ...options, snapshot }).handler({ ...args, outcome: "completed", keep_open: true });
+ },
+ };
+}
+
+module.exports = { createWorkQueueContinuationTool };
diff --git a/actions/setup/js/work_queue_continuation.test.cjs b/actions/setup/js/work_queue_continuation.test.cjs
new file mode 100644
index 00000000000..61ade76605d
--- /dev/null
+++ b/actions/setup/js/work_queue_continuation.test.cjs
@@ -0,0 +1,127 @@
+// @ts-check
+import { afterEach, describe, expect, it } from "vitest";
+import fs from "node:fs";
+import os from "node:os";
+import path from "node:path";
+import { canonical } from "./work_queue_codec.cjs";
+import { readStagedIntents } from "./work_queue_intents.cjs";
+import { createWorkQueueFinishTool, createWorkQueueTools } from "./work_queue_mcp_server.cjs";
+import { createWorkQueueContinuationTool } from "./work_queue_continuation.cjs";
+import { authorizeWorkerClaim, finalizeWorkerResults, readFinishIntent, reconcileWorkerClaim } from "./finish_work_queue_claim.cjs";
+import { queueFixture, noWriteClaimVerifier, REF, REPOSITORY, WORKFLOW } from "./work_queue_lifecycle.test_helpers.cjs";
+import { planNext } from "./work_queue_replay.cjs";
+import { dependencyStatus } from "./work_queue_graph.cjs";
+import { workIssueStatus } from "./work_queue_issues.cjs";
+
+const directories = [];
+function setup(options = {}) {
+ const fixture = queueFixture({ started: true, bound: true, count: 1, ...options });
+ const snapshot = { worker: fixture.assignment, projection: fixture.state, role: "worker" };
+ const directory = fs.mkdtempSync(path.join(fs.realpathSync(os.tmpdir()), "gh-aw-queue-continuation-"));
+ directories.push(directory);
+ return { fixture, snapshot, intentPath: path.join(directory, "intents.jsonl"), finishIntentPath: path.join(directory, "finish.jsonl") };
+}
+afterEach(() => {
+ for (const directory of directories.splice(0)) fs.rmSync(directory, { recursive: true, force: true });
+});
+
+describe("native keep-open Work continuation", () => {
+ it("retains the same Work and open Issue status, gates a new Claim on verified delivery, and blocks successors", async () => {
+ const test = setup();
+ const { fixture } = test;
+ const member = fixture.assignment.claims[0];
+ const options = {
+ assignment: fixture.assignment,
+ githubClient: fixture.githubClient,
+ context: fixture.workerContext,
+ workflowRef: `${REPOSITORY}/${WORKFLOW}@${REF}`,
+ finishIntentPath: test.finishIntentPath,
+ readWorkQueueLog: fixture.readWorkQueueLog,
+ publishWorkQueueRequest: fixture.publishWorkQueueRequest,
+ now: fixture.at,
+ sleepFn: async () => {},
+ };
+ const original = fixture.state.works.get(member.work_id);
+ const successor = { ...original, work_id: "successor", depends_on: [{ kind: "work", work_id: member.work_id }] };
+ createWorkQueueContinuationTool(test.snapshot, test).handler({});
+ expect((await reconcileWorkerClaim(options)).claims.h1).toMatchObject({ state: "completed", authorized: true });
+ expect(fixture.state.works.size).toBe(1);
+ expect(fixture.state.works.get(member.work_id)).toMatchObject({ state: "available", barrier: "pending" });
+ expect(planNext(fixture.state, "default", fixture.at).work_id).toBeUndefined();
+ expect(workIssueStatus(fixture.state, fixture.state.works.get(member.work_id), fixture.at)).toBe("Verifying");
+ expect((await finalizeWorkerResults({ ...options, verifyEffects: noWriteClaimVerifier(options) })).claims.h1.state).toBe("result");
+ expect(fixture.state.works.get(member.work_id)).toMatchObject({ state: "available", barrier: "none" });
+ expect(workIssueStatus(fixture.state, fixture.state.works.get(member.work_id), fixture.at)).toBe("Queued");
+ expect(dependencyStatus(fixture.state, successor, fixture.at).reason).toBe("dependency_result_unavailable");
+ fixture.append("dispatch_next", { pool: "default", max_claims: 1, max_dispatches: 1, max_bytes: 49152 }, fixture.dispatcher, "continuation-regrant");
+ const retained = fixture.state.works.get(member.work_id);
+ expect(retained.claim_id).not.toBe(member.claim_id);
+ expect(retained.payload).toEqual(original.payload);
+ expect(fixture.state.works.size).toBe(1);
+ expect(await authorizeWorkerClaim({ ...options, claim_handle: member.handle })).toMatchObject({ authorized: false, suppressed: true, state: "result" });
+ });
+
+ it("stages the existing keep-open finish without submitting child Work or mutating the assignment", () => {
+ const test = setup();
+ const before = canonical(test.snapshot.worker);
+ const tool = createWorkQueueContinuationTool(test.snapshot, test);
+ const first = tool.handler({});
+ expect(tool.handler({})).toEqual(first);
+ const intents = readStagedIntents(test.finishIntentPath);
+ expect(intents).toHaveLength(1);
+ expect(intents[0]).toMatchObject({ version: 3, kind: "finish", claim_handle: "h1", parameters: { outcome: "completed", keep_open: true } });
+ expect(fs.existsSync(test.intentPath)).toBe(false);
+ expect(canonical(test.snapshot.worker)).toBe(before);
+ const finish = readFinishIntent(test.finishIntentPath, test.snapshot.worker);
+ expect(finish.errors).toEqual([]);
+ expect(finish.intents.get("h1")).toMatchObject({ outcome: "completed", keep_open: true });
+ });
+
+ it("reuses an identical direct native finish and rejects conflicting terminal or cancelled finishes", () => {
+ for (const outcome of ["completed", "cancelled"]) {
+ const test = setup();
+ const finish = createWorkQueueFinishTool({ ...test, snapshot: test.snapshot });
+ finish.handler({ outcome });
+ const before = readStagedIntents(test.finishIntentPath);
+ expect(() => createWorkQueueContinuationTool(test.snapshot, test).handler({})).toThrow(/finish_conflict/);
+ expect(readStagedIntents(test.finishIntentPath)).toEqual(before);
+ }
+ const test = setup();
+ const finish = createWorkQueueFinishTool({ ...test, snapshot: test.snapshot });
+ const first = finish.handler({ outcome: "completed", keep_open: true });
+ expect(createWorkQueueContinuationTool(test.snapshot, test).handler({})).toEqual(first);
+ expect(readStagedIntents(test.finishIntentPath)).toHaveLength(1);
+ expect(() => finish.handler({ outcome: "completed" })).toThrow(/finish_conflict/);
+ });
+
+ it("requires an original multi-Claim selector and preserves independent sibling outcomes", () => {
+ const test = setup({ count: 2 });
+ const tool = createWorkQueueContinuationTool(test.snapshot, test);
+ expect(() => tool.handler({})).toThrow(/claim_handle is required/);
+ expect(() => tool.handler({ claim_handle: "foreign" })).toThrow(/foreign/);
+ tool.handler({ claim_handle: "h2" });
+ createWorkQueueFinishTool({ ...test, snapshot: test.snapshot }).handler({ claim_handle: "h1", outcome: "completed" });
+ const finish = readFinishIntent(test.finishIntentPath, test.snapshot.worker);
+ expect(finish.errors).toEqual([]);
+ expect(finish.intents.get("h2")).toMatchObject({ outcome: "completed", keep_open: true });
+ expect(finish.intents.get("h1")).toMatchObject({ outcome: "completed", keep_open: false });
+ });
+
+ it("rejects missing assignments and obsolete handoff or scheduling overrides before writing", () => {
+ const test = setup();
+ expect(() => createWorkQueueContinuationTool({ ...test.snapshot, worker: null }, test).handler({})).toThrow(/assignment_required/);
+ for (const field of ["handoff", "pool", "priority", "fairness_key", "worker_profile", "max_hops", "outcome", "keep_open"]) {
+ expect(() => createWorkQueueContinuationTool(test.snapshot, test).handler({ [field]: "forged" })).toThrow();
+ }
+ expect(fs.existsSync(test.finishIntentPath)).toBe(false);
+ expect(fs.existsSync(test.intentPath)).toBe(false);
+ });
+
+ it("registers the helper only for authenticated worker-role snapshots", () => {
+ const test = setup();
+ expect(createWorkQueueTools(test.snapshot).map(tool => tool.name)).toContain("work_queue_continue");
+ for (const role of ["dispatcher", "observer"]) {
+ expect(createWorkQueueTools({ ...test.snapshot, worker: null, role }).map(tool => tool.name)).not.toContain("work_queue_continue");
+ }
+ });
+});
diff --git a/actions/setup/js/work_queue_git_tree_adapter.cjs b/actions/setup/js/work_queue_git_tree_adapter.cjs
index 4cfb7cfb4be..6d0ccd944b1 100644
--- a/actions/setup/js/work_queue_git_tree_adapter.cjs
+++ b/actions/setup/js/work_queue_git_tree_adapter.cjs
@@ -5,11 +5,12 @@ const { SAFE_OUTPUT_E001 } = require("./error_codes.cjs");
const crypto = require("crypto");
const path = require("path");
-const { canonical, closed, digest, utf8Compare } = require("./work_queue_codec.cjs");
+const { canonical, closed, digest, identity: validateIdentity, integer, utf8Compare } = require("./work_queue_codec.cjs");
const {
assertClaimAuthorized,
currentClaimHandle,
claimIdentity,
+ currentClaimAssignment,
assertClaimIdentity,
receiptMatchesClaim,
claimArtifactPath,
@@ -25,11 +26,13 @@ const privateReceipts = new WeakMap();
const REVISION = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
function validateGitTreeAdapter(adapter) {
- closed(adapter["git-tree"], ["base-revision", "branch-prefix"], ["pull-request", "base-branch"], "trusted code adapter");
+ closed(adapter["git-tree"], ["base-revision", "branch-prefix"], ["pull-request", "base-branch", "checkpoint-output"], "trusted code adapter");
const config = adapter["git-tree"];
if (!REVISION.test(config["base-revision"]) || typeof config["branch-prefix"] !== "string" || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(config["branch-prefix"]) || config["branch-prefix"].length > 128)
throw new Error(`${SAFE_OUTPUT_E001}: Trusted code adapter requires an immutable base revision and fixed branch namespace`);
if (config["pull-request"] !== undefined && typeof config["pull-request"] !== "boolean") throw new Error("Trusted code adapter pull-request must be boolean");
+ if (config["checkpoint-output"] !== undefined && (typeof config["checkpoint-output"] !== "string" || !/^[a-z][a-z0-9_]{0,127}$/.test(config["checkpoint-output"])))
+ throw new Error("Trusted code adapter checkpoint-output requires a fixed output name");
if (config["pull-request"] === true && (typeof config["base-branch"] !== "string" || !/^[A-Za-z0-9_-]+(?:\/[A-Za-z0-9_-]+)*$/.test(config["base-branch"]) || config["base-branch"].length > 128))
throw new Error("Trusted code adapter pull request requires a fixed base branch");
const fields = new Set([...Object.keys(adapter["field-map"] || {}), ...Object.keys(adapter.expected || {})]);
@@ -38,6 +41,40 @@ function validateGitTreeAdapter(adapter) {
return adapter;
}
+function continuationCheckpoint(adapter, member) {
+ const outputName = adapter["git-tree"]["checkpoint-output"];
+ if (outputName === undefined || !Object.hasOwn(member.work, "work_queue_continuation")) return null;
+ const continuation = member.work.work_queue_continuation;
+ closed(continuation, ["root_work_id", "previous_work_id", "hop", "handoff"], [], "Work continuation");
+ validateIdentity(continuation.root_work_id, "continuation root Work");
+ validateIdentity(continuation.previous_work_id, "continuation predecessor Work");
+ integer(continuation.hop, 1, 10, "continuation hop");
+ const references = member.result_refs.filter(reference => reference.work_id === continuation.previous_work_id);
+ if (references.length !== 1) throw new Error("Code continuation requires its predecessor's verified Result");
+ const descriptor = references[0].descriptor;
+ if (descriptor.version !== 1 || !Array.isArray(descriptor.outputs) || descriptor.outputs.some(output => !output || typeof output !== "object" || Array.isArray(output)))
+ throw new Error("Code continuation requires a supported verified Result descriptor");
+ const outputs = descriptor.outputs.filter(output => output.type === outputName);
+ if (outputs.length !== 1) throw new Error("Code continuation requires exactly one declared checkpoint output");
+ const { resource, evidence } = outputs[0];
+ const prefix = `heads/${adapter["git-tree"]["branch-prefix"]}/claims/`;
+ if (
+ resource?.kind !== "git_commit" ||
+ resource.repository !== adapter["target-repo"] ||
+ !REVISION.test(resource.id) ||
+ typeof resource.ref !== "string" ||
+ !resource.ref.startsWith(prefix) ||
+ !/^[a-f0-9]{64}$/.test(resource.ref.slice(prefix.length)) ||
+ evidence?.source !== "independent_git_tree_readback" ||
+ evidence.commit !== resource.id ||
+ !REVISION.test(evidence.tree) ||
+ !REVISION.test(evidence.parent)
+ ) {
+ throw new Error("Code continuation checkpoint lacks exact repository, branch, commit and tree evidence");
+ }
+ return { revision: resource.id, tree: evidence.tree, parent: evidence.parent };
+}
+
function treeLeaves(data, sha) {
if (!data || data.sha !== sha || data.truncated !== false || !Array.isArray(data.tree) || data.tree.length > 4096) throw new Error("Code delivery requires a complete immutable native tree");
const leaves = new Map();
@@ -125,6 +162,8 @@ function nativeId(value) {
function createGitTreeEffectHandler(adapter, suppliedClient) {
adapter = validateGitTreeAdapter(structuredClone(adapter));
const identity = claimIdentity(currentClaimHandle());
+ const member = currentClaimAssignment()?.claims.find(claim => claim.handle === identity.claim_handle);
+ if (!member) throw new Error("Code adapter requires its original assigned Claim");
const github = wrapClaimEffectClient(suppliedClient, { claim_handle: identity.claim_handle });
const config = adapter["git-tree"];
const repository = adapter["target-repo"];
@@ -137,9 +176,12 @@ function createGitTreeEffectHandler(adapter, suppliedClient) {
await assertClaimAuthorized(message, { requireCompletion: !stagedMode });
if (stagedMode) return { success: true, staged: true, claim_handle: identity.claim_handle };
if (attempted) throw new Error("Code adapter allows only one immutable delivery per Claim");
+ const checkpoint = continuationCheckpoint(adapter, member);
+ const baseRevision = checkpoint?.revision || config["base-revision"];
const declaredFields = require("./work_queue_declared_verification.cjs").adapterEffectFields(adapter, message);
- const { data: base } = await github.rest.git.getCommit({ owner, repo, commit_sha: config["base-revision"] });
- if (base?.sha !== config["base-revision"] || !REVISION.test(base.tree?.sha)) throw new Error("Code adapter base commit does not match its trusted immutable revision");
+ const { data: base } = await github.rest.git.getCommit({ owner, repo, commit_sha: baseRevision });
+ if (base?.sha !== baseRevision || !REVISION.test(base.tree?.sha) || (checkpoint && (base.tree.sha !== checkpoint.tree || base.parents?.length !== 1 || base.parents[0].sha !== checkpoint.parent)))
+ throw new Error("Code adapter base commit does not match its trusted immutable revision or verified checkpoint");
const { data: original } = await github.rest.git.getTree({ owner, repo, tree_sha: base.tree.sha, recursive: "1" });
const baseLeaves = treeLeaves(original, base.tree.sha);
const files = normalizeFiles(message.files, baseLeaves);
@@ -164,7 +206,7 @@ function createGitTreeEffectHandler(adapter, suppliedClient) {
continue;
}
const response = await github.rest.git.createBlob({ owner, repo, encoding: "base64", content: Buffer.from(file.content).toString("base64") });
- const sha = blobIdentity(file.content, config["base-revision"]);
+ const sha = blobIdentity(file.content, baseRevision);
if (response.data?.sha !== sha) throw new Error("Native code blob differs from its exact prepared content");
const entry = { path: file.path, mode: file.mode, type: "blob", sha };
expected.set(file.path, entry);
diff --git a/actions/setup/js/work_queue_git_tree_adapter_checks.cjs b/actions/setup/js/work_queue_git_tree_adapter_checks.cjs
index 9544fe0fbbe..bef3cddf070 100644
--- a/actions/setup/js/work_queue_git_tree_adapter_checks.cjs
+++ b/actions/setup/js/work_queue_git_tree_adapter_checks.cjs
@@ -16,6 +16,8 @@ const hash = value => crypto.createHash("sha1").update(value).digest("hex");
const blobHash = value => hash(Buffer.concat([Buffer.from(`blob ${Buffer.byteLength(value)}\0`), Buffer.from(value)]));
function assigned(dispatch = "dispatch", count = 2) {
+ /** @type {Array<{work_id: string, result_commit_id: string, descriptor: Record}>} */
+ const resultRefs = [];
return {
version: 3,
dispatch_id: dispatch,
@@ -29,7 +31,7 @@ function assigned(dispatch = "dispatch", count = 2) {
claim_id: `${dispatch}:claim:${handle}`,
work_id: `${dispatch}:work:${handle}`,
work: { effect_contract: { version: 1, outputs: [{ type: "code", min: 1, max: 1 }] } },
- result_refs: [],
+ result_refs: [...resultRefs],
})),
};
}
@@ -89,7 +91,6 @@ function native() {
},
createTree: async ({ base_tree, tree }) => {
writes.push("tree");
- assert.equal(base_tree, BASE_TREE);
const base = trees.get(base_tree);
assert.ok(base);
const leaves = new Map(base.filter(entry => entry.type !== "tree").map(entry => [entry.path, entry]));
@@ -107,7 +108,8 @@ function native() {
},
createCommit: async ({ tree, parents, message }) => {
writes.push("commit");
- assert.deepEqual(parents, [BASE]);
+ assert.equal(parents.length, 1);
+ assert.ok(commits.has(parents[0]));
const sha = hash(canonical({ tree, parents, message }));
commits.set(sha, { sha, tree: { sha: tree }, parents: parents.map(parent => ({ sha: parent })), message });
return { data: { sha } };
@@ -143,6 +145,175 @@ async function prepare(root, assignment, handle, adapter, message, github) {
function registerTests({ describe, it }) {
describe("immutable per-Claim prepared code delivery", () => {
+ for (const finalPullRequest of [false, true]) {
+ it(`continues from verified checkpoints and verifies the cumulative tree${finalPullRequest ? " and final pull request" : ""}`, async () => {
+ const root = require("./work_queue_effect_test_helpers.cjs").temporaryDirectory("claim-code-continuation");
+ const adapter = configured(false);
+ adapter["git-tree"]["checkpoint-output"] = "code";
+ const host = native();
+ const authorize = async request => ({ claim_handle: request.claim_handle, authorized: true });
+ let assignment = assigned("initial", 1);
+ let parentCommit = BASE;
+ let parentWork;
+ let descriptor;
+ try {
+ for (let hop = 0; hop < 3; hop++) {
+ if (hop > 0) {
+ assignment = assigned(`continuation-${hop}`, 1);
+ assignment.claims[0].work.work_queue_continuation = { root_work_id: "initial:work:h1", previous_work_id: parentWork, hop, handoff: "Resume checkpoint." };
+ assignment.claims[0].result_refs = [{ work_id: parentWork, result_commit_id: `result-${hop}`, descriptor }];
+ }
+ const member = assignment.claims[0];
+ const deliverPullRequest = finalPullRequest && hop === 2;
+ const currentAdapter = deliverPullRequest ? configured(true) : adapter;
+ currentAdapter["git-tree"]["checkpoint-output"] = "code";
+ const message = {
+ type: "code",
+ claim_handle: member.handle,
+ files: [{ path: `hop-${hop}.txt`, content: `checkpoint ${hop}` }],
+ ...(deliverPullRequest ? { title: "Completed cumulative task", body: "Three verified checkpoints." } : {}),
+ };
+ await withClaimExecution({ assignment, claim_handle: member.handle, authorize, effects: [] }, async () => {
+ const handler = await prepare(root, assignment, member.handle, currentAdapter, message, host.github);
+ const result = await handler(message);
+ const commit = host.commits.get(result.commit);
+ assert.ok(commit);
+ assert.equal(commit.parents[0].sha, parentCommit);
+ const delivery = await verifyClaimDelivery({
+ assignment,
+ claim_handle: member.handle,
+ messages: [message],
+ results: [{ messageIndex: 0, success: true, result }],
+ github: host.github,
+ authorize,
+ verifyOutput: input => verifyClaimAdapterOutput({ ...input, adapter: currentAdapter }),
+ });
+ assert.equal(delivery.verification, "verified", JSON.stringify(delivery));
+ descriptor = delivery.descriptor;
+ const tree = host.trees.get(commit.tree.sha);
+ assert.ok(tree);
+ for (let previous = 0; previous <= hop; previous++) {
+ assert.ok(tree.some(entry => entry.path === `hop-${previous}.txt` && entry.sha === blobHash(`checkpoint ${previous}`)));
+ }
+ parentCommit = result.commit;
+ if (hop < 2) host.refs.delete(`heads/${result.branch}`);
+ });
+ parentWork = member.work_id;
+ }
+ assert.equal(host.refs.size, 1);
+ assert.equal(host.pulls.size, finalPullRequest ? 1 : 0);
+ if (finalPullRequest) {
+ const pull = [...host.pulls.values()][0];
+ assert.equal(pull.head.sha, parentCommit);
+ assert.equal(pull.base.ref, "main");
+ assert.equal(descriptor.outputs[0].resource.kind, "pull_request");
+ }
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+ });
+ }
+
+ it("rejects missing, ambiguous, foreign and tampered predecessor checkpoint evidence before native mutation", async () => {
+ const root = require("./work_queue_effect_test_helpers.cjs").temporaryDirectory("claim-code-checkpoint-invalid");
+ const adapter = configured(false);
+ adapter["git-tree"]["checkpoint-output"] = "code";
+ const proof = {
+ type: "code",
+ resource: { kind: "git_commit", repository: "owner/repo", id: BASE, ref: `heads/automation/code/claims/${"c".repeat(64)}` },
+ evidence: { source: "independent_git_tree_readback", commit: BASE, tree: BASE_TREE, parent: "d".repeat(40) },
+ };
+ const mutations = [
+ member => {
+ member.result_refs = [];
+ },
+ member => {
+ member.result_refs[0].work_id = "another-work";
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs = [];
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs = [null];
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs.push(structuredClone(proof));
+ },
+ member => {
+ member.result_refs[0].descriptor.version = 2;
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].resource.repository = "foreign/repo";
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].resource.kind = "pull_request";
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].resource.ref = "heads/main";
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].evidence.source = "agent_report";
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].evidence.commit = "e".repeat(40);
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].evidence.tree = "e".repeat(40);
+ },
+ member => {
+ member.result_refs[0].descriptor.outputs[0].evidence.parent = "main";
+ },
+ () => {},
+ ];
+ try {
+ for (const mutate of mutations) {
+ const assignment = assigned("invalid", 1);
+ const member = assignment.claims[0];
+ member.work.work_queue_continuation = { root_work_id: "parent", previous_work_id: "parent", hop: 1, handoff: "Resume." };
+ member.result_refs = [{ work_id: "parent", result_commit_id: "verified-result", descriptor: { version: 1, outputs: [structuredClone(proof)] } }];
+ mutate(member);
+ const host = native();
+ const message = { type: "code", claim_handle: member.handle, files: [{ path: "child.txt", content: "must not write" }] };
+ const authorize = async request => ({ claim_handle: request.claim_handle, authorized: true });
+ await withClaimExecution({ assignment, claim_handle: member.handle, authorize, effects: [] }, async () => {
+ const handler = await prepare(root, assignment, member.handle, adapter, message, host.github);
+ await assert.rejects(handler(message), /checkpoint|verified Result|base commit/);
+ });
+ assert.deepEqual(host.writes, []);
+ }
+ for (const value of ["", "Code", "../code", "a".repeat(129), 1, null]) {
+ const invalid = structuredClone(adapter);
+ invalid["git-tree"]["checkpoint-output"] = value;
+ assert.throws(() => validateAdapter(invalid), /checkpoint-output/);
+ }
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+ });
+
+ it("retains fixed-base delivery when checkpoint reuse is not configured", async () => {
+ const root = require("./work_queue_effect_test_helpers.cjs").temporaryDirectory("claim-code-fixed-base");
+ const assignment = assigned("fixed", 1);
+ const member = assignment.claims[0];
+ member.work.work_queue_continuation = { root_work_id: "parent", previous_work_id: "parent", hop: 1, handoff: "Resume." };
+ const adapter = configured(false);
+ const host = native();
+ const message = { type: "code", claim_handle: member.handle, files: [{ path: "fixed.txt", content: "fixed base" }] };
+ const authorize = async request => ({ claim_handle: request.claim_handle, authorized: true });
+ try {
+ await withClaimExecution({ assignment, claim_handle: member.handle, authorize, effects: [] }, async () => {
+ const handler = await prepare(root, assignment, member.handle, adapter, message, host.github);
+ const result = await handler(message);
+ const commit = host.commits.get(result.commit);
+ assert.ok(commit);
+ assert.equal(commit.parents[0].sha, BASE);
+ assert.equal((await verifyClaimAdapterOutput({ claim: member, result, github: host.github, adapter })).verified, true);
+ });
+ } finally {
+ fs.rmSync(root, { recursive: true, force: true });
+ }
+ });
+
for (const count of [1, 2]) {
it(`prepares and independently settles every member of an original ${count}-Claim assignment`, async () => {
const root = require("./work_queue_effect_test_helpers.cjs").temporaryDirectory("claim-code-matrix");
diff --git a/actions/setup/js/work_queue_mcp_server.cjs b/actions/setup/js/work_queue_mcp_server.cjs
index de01a43bd40..c34c20e4f09 100644
--- a/actions/setup/js/work_queue_mcp_server.cjs
+++ b/actions/setup/js/work_queue_mcp_server.cjs
@@ -12,6 +12,7 @@ const { MAX_PARSE_BYTES, MAX_SNAPSHOT_PARSE_BYTES, closed, identity, integer, pa
const { normalizeAssignment, normalizeClaimScope } = require("./work_queue_claim_scope.cjs");
const { readStagedIntents, stageIntent } = require("./work_queue_intents.cjs");
const { resolveWorkQueueRuntime } = require("./aw_context.cjs");
+const { createWorkQueueContinuationTool } = require("./work_queue_continuation.cjs");
const DEFAULT_SNAPSHOT_PATH = "/tmp/gh-aw/work-queue.snapshot.json";
const DEFAULT_FINISH_INTENT_PATH = path.join(process.env.RUNNER_TEMP || "/tmp", "gh-aw", "safeoutputs", "work-queue", "work-queue.finish.jsonl");
@@ -276,9 +277,11 @@ function createWorkQueueSubmitTool(snapshot, options = {}) {
}
function createWorkQueueTools(snapshot, options = {}) {
+ const role = snapshotRuntimeRole(snapshot);
/** @type {import("./mcp_server_core.cjs").Tool[]} */
const tools = [createWorkQueueStateTool(snapshot), createWorkQueueExplainTool(snapshot)];
- if (snapshotRuntimeRole(snapshot) !== "observer") tools.push(createWorkQueueSubmitTool(snapshot, options), createWorkQueueDispatchTool(snapshot, options), createWorkQueueFinishTool({ ...options, snapshot }));
+ if (role !== "observer") tools.push(createWorkQueueSubmitTool(snapshot, options), createWorkQueueDispatchTool(snapshot, options), createWorkQueueFinishTool({ ...options, snapshot }));
+ if (role === "worker") tools.push(createWorkQueueContinuationTool(snapshot, options));
return tools;
}
diff --git a/actions/setup/js/work_queue_worker_child_lifecycle_checks.cjs b/actions/setup/js/work_queue_worker_child_lifecycle_checks.cjs
index c306c2a5532..8345a5c4c5a 100644
--- a/actions/setup/js/work_queue_worker_child_lifecycle_checks.cjs
+++ b/actions/setup/js/work_queue_worker_child_lifecycle_checks.cjs
@@ -28,6 +28,7 @@ function sourceHashes() {
"work_queue_worker_child_lifecycle.test",
"write_work_queue_snapshot",
"work_queue_mcp_server",
+ "work_queue_continuation",
"finish_work_queue_claim",
"work_queue_dispatch",
"work_queue_binding",
@@ -57,210 +58,219 @@ function sourceHashes() {
function registerTests({ describe, it }) {
describe("integrated original-worker child capability", () => {
- it("case192 publishes worker22 children before Result, rejects fresh controls after Result, and recovers accepted requests with only producer11 registered", async () => {
- const hashes = sourceHashes();
- console.log(`case192_source_sha256=${JSON.stringify(hashes)}`);
- const fixture = queueFixture({
- started: true,
- count: 1,
- workerPrincipal: "22",
- workDefaults: { priority: 1, fairness_key: "tenant", payload: { effect_contract: { version: 1, outputs: [{ type: "work_queue_submit", min: 1, max: 2 }] } } },
- configurePolicy: policy => {
- policy.accounting_weights.tenant = 7;
- policy.producers["11"].priorities = [1];
- policy.producers["11"].fairness_keys = ["tenant"];
- },
- });
- const fake = fakeGitHub(fixture.transactions);
- let nativePrincipal = "22";
- let dispatchPosts = 0;
- const githubClient = {
- rest: {
- repos: fixture.githubClient.rest.repos,
- git: fake.githubClient.rest.git,
- actions: {
- ...fixture.githubClient.rest.actions,
- getWorkflowRun: async () => ({ status: 200, data: { ...fixture.nativeRun(), actor: { id: nativePrincipal }, triggering_actor: { id: nativePrincipal } } }),
- createWorkflowDispatch: async () => {
- dispatchPosts++;
- throw new Error("Child admission must not launch a native workflow");
- },
+ for (const mode of ["submit", "legacy-continuation-submit"]) {
+ it(`case192 ${mode} publishes worker22 children before Result, rejects fresh controls after Result, and recovers accepted requests with only producer11 registered`, async () => {
+ const hashes = sourceHashes();
+ console.log(`case192_source_sha256=${JSON.stringify(hashes)}`);
+ const fixture = queueFixture({
+ started: true,
+ count: 1,
+ workerPrincipal: "22",
+ workDefaults: { priority: 1, fairness_key: "tenant", payload: { effect_contract: { version: 1, outputs: [{ type: "work_queue_submit", min: 1, max: 2 }] } } },
+ configurePolicy: policy => {
+ policy.accounting_weights.tenant = 7;
+ policy.producers["11"].priorities = [1];
+ policy.producers["11"].fairness_keys = ["tenant"];
},
- },
- };
- const directory = fs.mkdtempSync(path.join(fs.realpathSync(os.tmpdir()), "gh-aw-queue-case192-"));
- /** @type {string | undefined} */
- let originOutput;
- const options = {
- githubClient,
- context: fixture.workerContext,
- workflowRef: `${REPOSITORY}/${WORKFLOW}@${REF}`,
- role: "worker",
- requireAssignment: true,
- policyProposal: undefined,
- snapshotPath: path.join(directory, "snapshot.json"),
- finishIntentPath: path.join(directory, "finish.jsonl"),
- intentPath: path.join(directory, "intents.jsonl"),
- core: {
- info: () => {},
- setOutput: (name, value) => {
- assert.equal(name, "work_queue_origin");
- originOutput = value;
+ });
+ const fake = fakeGitHub(fixture.transactions);
+ let nativePrincipal = "22";
+ let dispatchPosts = 0;
+ const githubClient = {
+ rest: {
+ repos: fixture.githubClient.rest.repos,
+ git: fake.githubClient.rest.git,
+ actions: {
+ ...fixture.githubClient.rest.actions,
+ getWorkflowRun: async () => ({ status: 200, data: { ...fixture.nativeRun(), actor: { id: nativePrincipal }, triggering_actor: { id: nativePrincipal } } }),
+ createWorkflowDispatch: async () => {
+ dispatchPosts++;
+ throw new Error("Child admission must not launch a native workflow");
+ },
+ },
},
- },
- sleepFn: async () => {},
- };
- try {
- assert.deepEqual(Object.keys(fixture.policy.producers), ["11"]);
- const snapshot = await writeSnapshot(options);
- assert.equal(snapshot.origin.principal, "22");
- assert.equal(snapshot.origin.role, "worker");
- assert.equal(snapshot.origin.run_attempt, 1);
- assert.deepEqual(snapshot.worker, fixture.assignment);
- assert.ok(typeof originOutput === "string");
- assert.equal(JSON.parse(originOutput).principal, "22");
- assert.equal(fake.log().at(-1).operations[0].run.principal, "22");
- assert.equal(fake.log().at(-1).actor.principal, "22");
- const assignment = snapshot.worker;
- assert.ok(assignment);
- const member = assignment.claims[0];
- const loaded = loadWorkQueueSnapshot(options.snapshotPath);
- const runtime = { ...options, assignment, intentOrigin: originOutput };
- const parameters = {
- nodes: [{ graph_id: "g1", node_key: "case192-child", payload: { task: "inherited child", effect_contract: { kind: "none" } }, depends_on: [{ kind: "work", work_id: member.work_id }] }],
};
- const staged = JSON.parse(createWorkQueueSubmitTool(loaded, { ...options, createIntentId: () => "case192-child" }).handler(parameters).content[0].text);
- assert.equal(staged.status, "staged");
- assert.equal(staged.claim_handle, member.handle);
- assert.equal(fake.log().length, fixture.transactions.length + 1);
- const beforeOpen = canonical(fake.log());
- assert.equal((await processWorkQueueIntents(runtime)).receipts[0].status, "blocked");
- assert.equal(canonical(fake.log()), beforeOpen);
- createWorkQueueFinishTool({ ...options, snapshot: loaded, createIntentId: () => "case192-finish" }).handler({ outcome: "completed" });
- const closure = await reconcileWorkerClaim(runtime);
- assert.equal(closure.claims[member.handle].state, "completed");
- assert.equal(closure.claims[member.handle].authorized, true);
- assert.equal(fake.log().at(-1).operations[0].kind, "Completion");
- assert.equal(fake.log().at(-1).actor.principal, "22");
- const completedPrefix = canonical(fake.log());
- nativePrincipal = "11";
- assert.equal((await processWorkQueueIntents(runtime)).receipts[0].status, "blocked");
- assert.equal(canonical(fake.log()), completedPrefix);
- nativePrincipal = "22";
- const trusted = await intentContext(runtime, { intent_id: staged.intent_id, claim_handle: member.handle });
- const completedState = replayTransactions(fake.log());
- const normalized = normalizeSubmitParameters(inheritWorkerSubmission(completedState, trusted, parameters), completedState.policy, trusted.created_at, completedState);
- const expectedRequest = requestForIntent(trusted, staged.intent_id, "submit", normalized);
- validateRequestContext(completedState, expectedRequest, actorFromContext(trusted));
- validateWorkerContinuation(completedState, trusted);
- const publication = await processWorkQueueIntents(runtime);
- assert.equal(publication.receipts[0].status, "durable", JSON.stringify(publication));
- const childCommit = fake.log().at(-1);
- assert.equal(canonical(childCommit.actor), canonical({ ...snapshot.origin, claim_handle: member.handle }));
- assert.equal(childCommit.request.kind, "submit");
- assert.equal(childCommit.operations.length, 1);
- assert.equal(canonical(childCommit.operations[0].payload), canonical(parameters.nodes[0].payload));
- assert.equal(childCommit.operations[0].pool, "default");
- assert.equal(childCommit.operations[0].priority, 1);
- assert.equal(childCommit.operations[0].fairness_key, "tenant");
- const childId = nodeId("g1", "case192-child");
- assert.equal(childCommit.operations[0].work_id, childId);
- let state = replayTransactions(fake.log());
- assert.deepEqual(Object.keys(state.policy.producers), ["11"]);
- assert.equal(state.works.get(childId).state, "available");
- assert.equal(explainWork(state, childId, Date.now()).readiness.ready, false);
- const unscoped = await authenticatePublisher({ ...options, role: "producer" });
- const root = { ...childCommit.operations[0], graph_id: "unscoped-worker22", node_key: "root", work_id: nodeId("unscoped-worker22", "root"), depends_on: [] };
- const rootRequest = requestForIntent(unscoped, "case192-root-escalation", "submit", { nodes: [root] });
- const beforeRoot = canonical(fake.log());
- await assert.rejects(publishWorkQueueRequest({ githubClient, owner: "owner", repo: "repo", context: unscoped, request: rootRequest, sleepFn: async () => {} }), /entitlement|producer/);
- assert.equal(canonical(fake.log()), beforeRoot);
- const message = { type: "work_queue_submit", intent_id: staged.intent_id, claim_handle: member.handle, parameters: readStagedIntents(options.intentPath)[0].parameters };
- const authorize = request => authorizeWorkerClaim({ ...runtime, ...request });
- const protectedVerifier = createClaimDeliveryVerifier({
- assignment,
- recheck: async () => {
- const inventory = await readDeliveryControlInventory({ ...runtime, claim_handle: member.handle });
- assert.equal(inventory.controls.length, 1);
- assert.equal(inventory.controls[0].commit_id, childCommit.id);
- assert.equal(inventory.controls[0].work_id, member.work_id);
- assert.equal(inventory.controls[0].claim_id, member.claim_id);
- const effects = [];
- return withClaimExecution({ assignment, claim_handle: member.handle, authorize, effects }, async () => {
- const effectChannel = closeClaimEffectChannel();
- const delivery = await verifyClaimDelivery({
- ...runtime,
- claim_handle: member.handle,
- messages: [message],
- results: [{ messageIndex: 0, success: true, claim_handle: member.handle }],
- authorize,
- effects,
- effectChannel,
- requireControlInventory: true,
- readControlInventory: async () => inventory,
- verifyOutput: input => verifyClaimQueueControl({ ...runtime, message: input.message, inventory }),
- });
- assert.equal(delivery.verification, "verified", JSON.stringify(delivery));
- return delivery;
- });
+ const directory = fs.mkdtempSync(path.join(fs.realpathSync(os.tmpdir()), "gh-aw-queue-case192-"));
+ /** @type {string | undefined} */
+ let originOutput;
+ const options = {
+ githubClient,
+ context: fixture.workerContext,
+ workflowRef: `${REPOSITORY}/${WORKFLOW}@${REF}`,
+ role: "worker",
+ requireAssignment: true,
+ policyProposal: undefined,
+ snapshotPath: path.join(directory, "snapshot.json"),
+ finishIntentPath: path.join(directory, "finish.jsonl"),
+ intentPath: path.join(directory, "intents.jsonl"),
+ core: {
+ info: () => {},
+ setOutput: (name, value) => {
+ assert.equal(name, "work_queue_origin");
+ originOutput = value;
+ },
},
- });
- let verifierError;
- const verifyEffects = async (...args) => {
- try {
- return await protectedVerifier(...args);
- } catch (error) {
- verifierError = error;
- throw error;
- }
+ sleepFn: async () => {},
};
- const finalized = await finalizeWorkerResults({ ...runtime, verifyEffects });
- assert.ifError(verifierError);
- assert.equal(finalized.claims[member.handle].state, "result", JSON.stringify(finalized));
- state = replayTransactions(fake.log());
- assert.equal(state.works.get(member.work_id).barrier, "verified");
- assert.equal(explainWork(state, childId, Date.now()).readiness.ready, true);
- assert.equal(state.dispatches.get(assignment.dispatch_id).released, false);
- assert.deepEqual(Object.keys(state.policy.producers), ["11"]);
- const beforeRecovery = canonical(fake.log());
- const recovered = await processWorkQueueIntents(runtime);
- assert.equal(recovered.receipts[0].status, "durable");
- assert.equal(recovered.receipts[0].request_id, publication.receipts[0].request_id);
- assert.equal(canonical(fake.log()), beforeRecovery);
- assert.equal(fake.log().filter(commit => commit.request.id === childCommit.request.id).length, 1);
- assert.equal((await authorizeWorkerClaim({ ...runtime, claim_handle: member.handle })).authorized, false);
- const followupParameters = { nodes: [{ node_key: "verified-parent-followup", payload: { task: "fresh continuation after Result", effect_contract: { kind: "none" } }, depends_on: [{ kind: "work", work_id: member.work_id }] }] };
- const followup = JSON.parse(createWorkQueueSubmitTool(loaded, { ...options, createIntentId: () => "case192-verified-continuation" }).handler(followupParameters).content[0].text);
- assert.equal(followup.status, "staged");
- nativePrincipal = "11";
- assert.equal((await processWorkQueueIntents(runtime)).receipts[1].status, "blocked");
- assert.equal(canonical(fake.log()), beforeRecovery);
- nativePrincipal = "22";
- const rejected = await processWorkQueueIntents(runtime);
- assert.equal(rejected.receipts[0].status, "durable", JSON.stringify(rejected));
- assert.equal(rejected.receipts[0].request_id, publication.receipts[0].request_id);
- assert.equal(rejected.receipts[1].status, "blocked", JSON.stringify(rejected));
- assert.equal(canonical(fake.log()), beforeRecovery);
- assert.equal(replayTransactions(fake.log()).works.has(nodeId("g1", "verified-parent-followup")), false);
- assert.equal((await authorizeWorkerClaim({ ...runtime, claim_handle: member.handle })).authorized, false);
- assert.equal(
- fake
- .log()
- .flatMap(commit => commit.operations)
- .filter(operation => operation.kind === "Result").length,
- 1
- );
- const retry = await processWorkQueueIntents(runtime);
- assert.equal(retry.receipts[0].request_id, publication.receipts[0].request_id);
- assert.equal(retry.receipts[1].status, "blocked");
- assert.equal(canonical(fake.log()), beforeRecovery);
- assert.equal(dispatchPosts, 0);
- assert.deepEqual(sourceHashes(), hashes, "Integrated route sources changed during execution");
- } finally {
- fs.rmSync(directory, { recursive: true, force: true });
- assert.deepEqual(sourceHashes(), hashes, "Integrated route sources changed during execution");
- }
- });
+ try {
+ assert.deepEqual(Object.keys(fixture.policy.producers), ["11"]);
+ const snapshot = await writeSnapshot(options);
+ assert.equal(snapshot.origin.principal, "22");
+ assert.equal(snapshot.origin.role, "worker");
+ assert.equal(snapshot.origin.run_attempt, 1);
+ assert.deepEqual(snapshot.worker, fixture.assignment);
+ assert.ok(typeof originOutput === "string");
+ assert.equal(JSON.parse(originOutput).principal, "22");
+ assert.equal(fake.log().at(-1).operations[0].run.principal, "22");
+ assert.equal(fake.log().at(-1).actor.principal, "22");
+ const assignment = snapshot.worker;
+ assert.ok(assignment);
+ const member = assignment.claims[0];
+ const loaded = loadWorkQueueSnapshot(options.snapshotPath);
+ const runtime = { ...options, assignment, intentOrigin: originOutput };
+ const parameters = {
+ nodes: [{ graph_id: "g1", node_key: "case192-child", payload: { task: "inherited child", effect_contract: { kind: "none" } }, depends_on: [{ kind: "work", work_id: member.work_id }] }],
+ };
+ if (mode === "legacy-continuation-submit") {
+ parameters.nodes[0].payload = {
+ ...parameters.nodes[0].payload,
+ work_queue_continuation: { root_work_id: member.work_id, previous_work_id: member.work_id, hop: 1, handoff: "Legacy dependent checkpoint." },
+ };
+ }
+ const staged = JSON.parse(createWorkQueueSubmitTool(loaded, { ...options, createIntentId: () => "case192-child" }).handler(parameters).content[0].text);
+ assert.equal(staged.status, "staged");
+ assert.equal(staged.claim_handle, member.handle);
+ assert.equal(fake.log().length, fixture.transactions.length + 1);
+ const beforeOpen = canonical(fake.log());
+ assert.equal((await processWorkQueueIntents(runtime)).receipts[0].status, "blocked");
+ assert.equal(canonical(fake.log()), beforeOpen);
+ createWorkQueueFinishTool({ ...options, snapshot: loaded, createIntentId: () => "case192-finish" }).handler({ outcome: "completed" });
+ const closure = await reconcileWorkerClaim(runtime);
+ assert.equal(closure.claims[member.handle].state, "completed");
+ assert.equal(closure.claims[member.handle].authorized, true);
+ assert.equal(fake.log().at(-1).operations[0].kind, "Completion");
+ assert.equal(fake.log().at(-1).actor.principal, "22");
+ const completedPrefix = canonical(fake.log());
+ nativePrincipal = "11";
+ assert.equal((await processWorkQueueIntents(runtime)).receipts[0].status, "blocked");
+ assert.equal(canonical(fake.log()), completedPrefix);
+ nativePrincipal = "22";
+ const trusted = await intentContext(runtime, { intent_id: staged.intent_id, claim_handle: member.handle });
+ const completedState = replayTransactions(fake.log());
+ const normalized = normalizeSubmitParameters(inheritWorkerSubmission(completedState, trusted, parameters), completedState.policy, trusted.created_at, completedState);
+ const expectedRequest = requestForIntent(trusted, staged.intent_id, "submit", normalized);
+ validateRequestContext(completedState, expectedRequest, actorFromContext(trusted));
+ validateWorkerContinuation(completedState, trusted);
+ const publication = await processWorkQueueIntents(runtime);
+ assert.equal(publication.receipts[0].status, "durable", JSON.stringify(publication));
+ const childCommit = fake.log().at(-1);
+ assert.equal(canonical(childCommit.actor), canonical({ ...snapshot.origin, claim_handle: member.handle }));
+ assert.equal(childCommit.request.kind, "submit");
+ assert.equal(childCommit.operations.length, 1);
+ assert.equal(canonical(childCommit.operations[0].payload), canonical(parameters.nodes[0].payload));
+ assert.equal(childCommit.operations[0].pool, "default");
+ assert.equal(childCommit.operations[0].priority, 1);
+ assert.equal(childCommit.operations[0].fairness_key, "tenant");
+ const childId = nodeId("g1", parameters.nodes[0].node_key);
+ assert.equal(childCommit.operations[0].work_id, childId);
+ let state = replayTransactions(fake.log());
+ assert.deepEqual(Object.keys(state.policy.producers), ["11"]);
+ assert.equal(state.works.get(childId).state, "available");
+ assert.equal(explainWork(state, childId, Date.now()).readiness.ready, false);
+ const unscoped = await authenticatePublisher({ ...options, role: "producer" });
+ const root = { ...childCommit.operations[0], graph_id: "unscoped-worker22", node_key: "root", work_id: nodeId("unscoped-worker22", "root"), depends_on: [] };
+ const rootRequest = requestForIntent(unscoped, "case192-root-escalation", "submit", { nodes: [root] });
+ const beforeRoot = canonical(fake.log());
+ await assert.rejects(publishWorkQueueRequest({ githubClient, owner: "owner", repo: "repo", context: unscoped, request: rootRequest, sleepFn: async () => {} }), /entitlement|producer/);
+ assert.equal(canonical(fake.log()), beforeRoot);
+ const message = { type: "work_queue_submit", intent_id: staged.intent_id, claim_handle: member.handle, parameters: readStagedIntents(options.intentPath)[0].parameters };
+ const authorize = request => authorizeWorkerClaim({ ...runtime, ...request });
+ const protectedVerifier = createClaimDeliveryVerifier({
+ assignment,
+ recheck: async () => {
+ const inventory = await readDeliveryControlInventory({ ...runtime, claim_handle: member.handle });
+ assert.equal(inventory.controls.length, 1);
+ assert.equal(inventory.controls[0].commit_id, childCommit.id);
+ assert.equal(inventory.controls[0].work_id, member.work_id);
+ assert.equal(inventory.controls[0].claim_id, member.claim_id);
+ const effects = [];
+ return withClaimExecution({ assignment, claim_handle: member.handle, authorize, effects }, async () => {
+ const effectChannel = closeClaimEffectChannel();
+ const delivery = await verifyClaimDelivery({
+ ...runtime,
+ claim_handle: member.handle,
+ messages: [message],
+ results: [{ messageIndex: 0, success: true, claim_handle: member.handle }],
+ authorize,
+ effects,
+ effectChannel,
+ requireControlInventory: true,
+ readControlInventory: async () => inventory,
+ verifyOutput: input => verifyClaimQueueControl({ ...runtime, message: input.message, inventory }),
+ });
+ assert.equal(delivery.verification, "verified", JSON.stringify(delivery));
+ return delivery;
+ });
+ },
+ });
+ let verifierError;
+ const verifyEffects = async (...args) => {
+ try {
+ return await protectedVerifier(...args);
+ } catch (error) {
+ verifierError = error;
+ throw error;
+ }
+ };
+ const finalized = await finalizeWorkerResults({ ...runtime, verifyEffects });
+ assert.ifError(verifierError);
+ assert.equal(finalized.claims[member.handle].state, "result", JSON.stringify(finalized));
+ state = replayTransactions(fake.log());
+ assert.equal(state.works.get(member.work_id).barrier, "verified");
+ assert.equal(explainWork(state, childId, Date.now()).readiness.ready, true);
+ if (mode === "legacy-continuation-submit") assert.equal(state.works.get(childId).payload.work_queue_continuation.previous_work_id, member.work_id);
+ assert.equal(state.dispatches.get(assignment.dispatch_id).released, false);
+ assert.deepEqual(Object.keys(state.policy.producers), ["11"]);
+ const beforeRecovery = canonical(fake.log());
+ const recovered = await processWorkQueueIntents(runtime);
+ assert.equal(recovered.receipts[0].status, "durable");
+ assert.equal(recovered.receipts[0].request_id, publication.receipts[0].request_id);
+ assert.equal(canonical(fake.log()), beforeRecovery);
+ assert.equal(fake.log().filter(commit => commit.request.id === childCommit.request.id).length, 1);
+ assert.equal((await authorizeWorkerClaim({ ...runtime, claim_handle: member.handle })).authorized, false);
+ const followupParameters = { nodes: [{ node_key: "verified-parent-followup", payload: { task: "fresh continuation after Result", effect_contract: { kind: "none" } }, depends_on: [{ kind: "work", work_id: member.work_id }] }] };
+ const followup = JSON.parse(createWorkQueueSubmitTool(loaded, { ...options, createIntentId: () => "case192-verified-continuation" }).handler(followupParameters).content[0].text);
+ assert.equal(followup.status, "staged");
+ nativePrincipal = "11";
+ assert.equal((await processWorkQueueIntents(runtime)).receipts[1].status, "blocked");
+ assert.equal(canonical(fake.log()), beforeRecovery);
+ nativePrincipal = "22";
+ const rejected = await processWorkQueueIntents(runtime);
+ assert.equal(rejected.receipts[0].status, "durable", JSON.stringify(rejected));
+ assert.equal(rejected.receipts[0].request_id, publication.receipts[0].request_id);
+ assert.equal(rejected.receipts[1].status, "blocked", JSON.stringify(rejected));
+ assert.equal(canonical(fake.log()), beforeRecovery);
+ assert.equal(replayTransactions(fake.log()).works.has(nodeId("g1", "verified-parent-followup")), false);
+ assert.equal((await authorizeWorkerClaim({ ...runtime, claim_handle: member.handle })).authorized, false);
+ assert.equal(
+ fake
+ .log()
+ .flatMap(commit => commit.operations)
+ .filter(operation => operation.kind === "Result").length,
+ 1
+ );
+ const retry = await processWorkQueueIntents(runtime);
+ assert.equal(retry.receipts[0].request_id, publication.receipts[0].request_id);
+ assert.equal(retry.receipts[1].status, "blocked");
+ assert.equal(canonical(fake.log()), beforeRecovery);
+ assert.equal(dispatchPosts, 0);
+ assert.deepEqual(sourceHashes(), hashes, "Integrated route sources changed during execution");
+ } finally {
+ fs.rmSync(directory, { recursive: true, force: true });
+ assert.deepEqual(sourceHashes(), hashes, "Integrated route sources changed during execution");
+ }
+ });
+ }
});
}
diff --git a/actions/setup/md/safe_outputs_continue_workflow.md b/actions/setup/md/safe_outputs_continue_workflow.md
new file mode 100644
index 00000000000..d0209f32017
--- /dev/null
+++ b/actions/setup/md/safe_outputs_continue_workflow.md
@@ -0,0 +1,11 @@
+**Continuing Long-Running Work Across Runs (Experimental)**
+
+This workflow can hand unfinished work to a fresh run with the `continue_workflow` tool. All runs of one task share a single work branch and finish with one pull request.
+
+1. If `/tmp/gh-aw/continue-workflow/context.json` exists, this run resumes earlier work: the work branch is already checked out. Read `plan.md` at the repository root and continue from it. The context file reports the branch, the run number (`hop`), and `remaining_hops`.
+2. Keep `plan.md` at the repository root up to date: what is done, what remains, and any decisions the next run needs.
+3. If the task cannot be finished in this run, commit your progress, including the updated `plan.md`, on the work branch and call `continue_workflow` with a `reason`. Do not call `create_pull_request` in the same run.
+4. When the task is complete, delete `plan.md` (or finalize it), commit on the work branch, and call `create_pull_request` with that branch. This creates the single pull request for the whole task. Do not call `continue_workflow` in the same run.
+5. If `remaining_hops` is 0, this is the last allowed run: finish the work and call `create_pull_request`.
+- Every run must add at least one commit before calling either tool.
+- Do not rewrite or force-push history on the work branch; only add commits on top of it.
diff --git a/actions/setup/session_parsers.go b/actions/setup/session_parsers.go
index 03c76f8e4d3..0dbb5e11d39 100644
--- a/actions/setup/session_parsers.go
+++ b/actions/setup/session_parsers.go
@@ -9,8 +9,7 @@ import "embed"
//go:embed js/steering_helpers.cjs js/jsonl_helpers.cjs
//go:embed js/skill_inventory.cjs
//go:embed js/unified_session_order.cjs js/unified_session_otel.cjs
-//go:embed js/mcp_configuration.cjs js/symlink_guard.cjs
-//go:embed js/mcp_rate_limit.cjs
+//go:embed js/mcp_configuration.cjs js/mcp_rate_limit.cjs js/symlink_guard.cjs js/work_queue_auth_cache.cjs
//go:embed js/parse_claude_log.cjs js/parse_codex_log.cjs js/parse_copilot_log.cjs js/parse_gemini_log.cjs
//go:embed js/parse_custom_log.cjs js/parse_pi_log.cjs js/parse_opencode_log.cjs js/parse_goose_log.cjs
//go:embed js/parse_agy_log.cjs
@@ -23,13 +22,13 @@ import "embed"
//go:embed js/pi_session.cjs js/pi_session_redaction.cjs js/session_artifact.cjs
//go:embed js/log_parser_bootstrap.cjs js/log_parser_format.cjs js/log_parser_shared.cjs
//go:embed js/log_parser_step_summary_builder.cjs js/markdown_unfencing.cjs
-//go:embed js/add_mask_redaction.cjs js/redact_secrets.cjs js/safe_output_manifest.cjs
+//go:embed js/add_mask_redaction.cjs js/otlp_header_helpers.cjs js/redact_secrets.cjs js/safe_output_manifest.cjs
//go:embed js/work_queue_claim_scope.cjs js/work_queue_codec.cjs js/work_queue_resource_scope.cjs
//go:embed js/aw_context.cjs js/experiment_helpers.cjs js/finish_work_queue_claim.cjs
//go:embed js/work_queue_mcp_server.cjs js/work_queue_replay.cjs js/work_queue_intents.cjs
+//go:embed js/work_queue_continuation.cjs
//go:embed js/work_queue_issue_contract.cjs
//go:embed js/work_queue_binding.cjs js/work_queue_policy.cjs js/work_queue_store.cjs
-//go:embed js/work_queue_auth_cache.cjs
//go:embed js/work_queue_policy_config.cjs
//go:embed js/work_queue_checked_transport.cjs
//go:embed js/work_queue_summary_renderer.cjs
diff --git a/actions/setup/setup.sh b/actions/setup/setup.sh
index 13793b841f5..4a7c8e74f08 100755
--- a/actions/setup/setup.sh
+++ b/actions/setup/setup.sh
@@ -290,6 +290,7 @@ MCP_SCRIPTS_FILES=(
"work_queue_claim_scope.cjs"
"work_queue_codec.cjs"
"work_queue_control_receipts.cjs"
+ "work_queue_continuation.cjs"
"work_queue_declared_verification.cjs"
"work_queue_delivery.cjs"
"work_queue_deployment.cjs"
@@ -463,6 +464,7 @@ SAFE_OUTPUTS_FILES=(
"work_queue_claim_scope.cjs"
"work_queue_codec.cjs"
"work_queue_control_receipts.cjs"
+ "work_queue_continuation.cjs"
"work_queue_declared_verification.cjs"
"work_queue_delivery.cjs"
"work_queue_dependency_resolver.cjs"
diff --git a/docs/src/content/docs/reference/safe-outputs-pull-requests.md b/docs/src/content/docs/reference/safe-outputs-pull-requests.md
index e64e63cf1d2..863c09a8fdb 100644
--- a/docs/src/content/docs/reference/safe-outputs-pull-requests.md
+++ b/docs/src/content/docs/reference/safe-outputs-pull-requests.md
@@ -170,6 +170,34 @@ The `safe_outputs` job always mirrors the agent job's checkout layout. When a `c
When `head-repo` is set, the preferred model is an ephemeral upstream-based branch: the safe output job resolves the upstream base SHA from `target-repo`, creates or refreshes a temporary branch in `head-repo` from that SHA, pushes the agent's commits there, and opens the PR back to the upstream base. Supported synchronization is limited to that configured upstream/head pairing; arbitrary reuse of unrelated fork branches is not supported. See [Cross-Repository Operations](/gh-aw/reference/cross-repository/) for the matching checkout, allowlist, and fork-credential rules.
+## Continuing tasks across runs
+
+**Experimental:** Cross-run continuation and checkpoint chaining are under
+development; their configuration and behavior may change.
+
+Use [keep-open Claim completion](/gh-aw/reference/work-queue/#continuing-a-task-across-runs)
+to retain the same Work for another run. `work_queue_continue` delegates to
+`work_queue_claim_finish` with `outcome: "completed"` and `keep_open: true`.
+Verified delivery gates the next Claim; the backing Issue stays open and
+successor Work remains blocked. Save progress and handoff notes through the
+Claim's declared outputs; keeping Work open does not itself persist code or
+authorize a PR write.
+
+End-to-end integration of code checkpoints and final `create_pull_request` or
+`push_to_pull_request_branch` delivery with this helper is still under development.
+
+The earlier experimental `safe-outputs.continue-workflow` scaffold is separate
+from the queue helper. Its resume checkout runs before runtime and project setup,
+including after workspace-root checkouts in custom steps, using command-scoped
+checkout credentials. Continuation staging is independent of the final PR's
+`staged` setting; global staged mode still applies to both.
+
+The standalone maintenance dispatcher inspects at most 50 chain snapshots per
+run and persists a compare-and-swap cursor to visit later chains. Retry recovery
+requires the exact unsigned commit, or a verified signed replay of every commit,
+tree, message, and parent link rooted at the recorded base. Matching file trees
+alone do not authorize recovery.
+
## Pull Request Updates (`update-pull-request:`)
Updates PR title or body. Both fields are enabled by default. The `operation` field controls how body updates are applied: `replace` (default), `append`, `prepend`, or `replace-island` (updates a run-specific section delimited by HTML comments).
diff --git a/docs/src/content/docs/reference/work-queue.md b/docs/src/content/docs/reference/work-queue.md
index 0a0d88ac189..af6fb856812 100644
--- a/docs/src/content/docs/reference/work-queue.md
+++ b/docs/src/content/docs/reference/work-queue.md
@@ -389,6 +389,7 @@ only within its authority; this does not authorize arbitrary resource writes.
| --- | --- |
| `work_queue_read`, `work_queue_explain` | Inspect the immutable snapshot. Predictions may be stale; sorting changes only the display order. |
| `work_queue_submit` | Stage immutable task or graph plans within size and installed scheduling limits. |
+| `work_queue_continue` | Worker-only shorthand for finishing the current Claim with `outcome: "completed"` and `keep_open: true`. |
| `work_queue_dispatch_next` | Request the next assignments from a pool, within a specified limit. The scheduler selects the Work and target. |
| `work_queue_claim_finish` | Stage a `completed` or `cancelled` finish intent for an original Claim, optionally retaining Work with `keep_open: true`. |
@@ -396,6 +397,75 @@ When `` lists the runtime wrapper, the invocation is
`work-queue work_queue_read '{}'`. These subcommands are Model Context Protocol
(MCP) tools available to the agent, not `gh aw work-queue` operator commands.
+### Continuing a task across runs
+
+**Experimental:** Cross-run continuation and verified checkpoint reuse are under
+development; their configuration and behavior may change. Queue workers expose
+`work_queue_continue`, so enabling a worker emits an experimental-feature notice.
+
+When another run is needed, persist progress and handoff notes through the
+current Claim's declared outputs, then call
+`work_queue_claim_finish` with `{"outcome":"completed","keep_open":true}`.
+`work_queue_continue` is a worker-only shorthand for the same finish intent.
+It accepts only `claim_handle`, required for an originally multi-Claim
+assignment; it does not accept a handoff, scheduling overrides, or a hop budget.
+
+The same Work and backing Issue remain open. Its immutable task, effect contract,
+resource scope, scheduling entitlement, and worker profile are preserved without
+creating a dependent child Work. Trusted processing completes this Claim and
+verifies its delivery before normal queue policy can grant another Claim.
+Successor Work stays blocked until a later Claim finishes the Work without
+`keep_open`. A failed or uncertain delivery prevents another grant; it never
+reopens the settled Claim's effect authority.
+
+Repeating the helper or an identical direct keep-open finish reuses the staged
+intent. A conflicting terminal or cancelled finish fails. No `work_queue_submit`
+control permission is needed to retain Work, and no workflow is dispatched by
+the helper. The native queue does not impose the former helper's three-child
+hop limit; successful retained rounds do not consume the failure-retry budget.
+Finish with `keep_open` omitted or false when the task is complete.
+
+#### Reusing a verified code checkpoint
+
+Previously admitted dependent continuation Work remains readable. For that
+legacy path, a `git_tree` Claim adapter can set `git-tree.checkpoint-output` to the fixed
+output name that publishes code checkpoints. Initial Work uses the configured
+`base-revision`. Continuation Work instead uses that output from its immediate
+predecessor's verified Result as the base for the next immutable Claim branch.
+
+```yaml wrap
+safe-outputs:
+ claim-adapters:
+ checkpoint:
+ mode: prepared
+ effect-type: git_tree
+ target-repo: owner/repo
+ field-map:
+ files: prepared_files
+ git-tree:
+ base-revision: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+ branch-prefix: automation/checkpoints
+ checkpoint-output: checkpoint
+```
+
+The excerpt configures the adapter; the workflow must also declare its matching
+preparation job or script and the immutable Work's output contract.
+The predecessor must deliver exactly one matching `git_commit` output, with
+independent tree-readback evidence in the configured repository and Claim
+branch namespace. Missing, ambiguous, foreign, or inconsistent checkpoints
+fail before any writes; continuation Work never silently falls back to the
+initial revision. The runtime reads the exact immutable commit, tree, and
+parent before applying the new file declaration, preserving prior hops' files.
+It uses the verified commit SHA even if the predecessor's branch is later removed.
+
+Each hop still writes a new Claim-specific branch and independently verifies
+the full cumulative tree. A final `git_tree` adapter with `pull-request: true`
+can use the same checkpoint selector and namespace to deliver that cumulative
+tree as a PR. The keep-open helper does not create these legacy child records.
+Automatic reuse of a retained Claim's checkpoint and checkout in
+the agent workspace are not yet implemented; built-in `create_pull_request` /
+`push_to_pull_request_branch` integration remains separate work.
+
### Claim-scoped effects and delivery
The compiler supplies the reserved `work_queue_assignment` input and caller
diff --git a/pkg/parser/schema_work_queue_policy_test.go b/pkg/parser/schema_work_queue_policy_test.go
index 1134831db8f..3c13d1e137f 100644
--- a/pkg/parser/schema_work_queue_policy_test.go
+++ b/pkg/parser/schema_work_queue_policy_test.go
@@ -156,6 +156,16 @@ func TestWorkQueueClaimAdapterSchema(t *testing.T) {
"git-tree": map[string]any{"base-revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "branch-prefix": "automation/code", "pull-request": true, "base-branch": "main"},
}
require.NoError(t, validate(code))
+ checkpoint := code["git-tree"].(map[string]any)
+ for _, name := range []string{"code", "checkpoint_1", strings.Repeat("a", 128)} {
+ checkpoint["checkpoint-output"] = name
+ require.NoError(t, validate(code))
+ }
+ for _, name := range []any{"", "Code", "../code", "checkpoint-output", strings.Repeat("a", 129), nil, 1} {
+ checkpoint["checkpoint-output"] = name
+ require.Error(t, validate(code))
+ }
+ delete(checkpoint, "checkpoint-output")
code["git-tree"] = map[string]any{"base-revision": "main", "branch-prefix": "automation/code"}
require.Error(t, validate(code))
code["git-tree"] = map[string]any{"base-revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "branch-prefix": "automation/code", "pull-request": true}
diff --git a/pkg/parser/schemas/main_workflow_schema.json b/pkg/parser/schemas/main_workflow_schema.json
index beea1d57de1..837a7c27241 100644
--- a/pkg/parser/schemas/main_workflow_schema.json
+++ b/pkg/parser/schemas/main_workflow_schema.json
@@ -6475,7 +6475,7 @@
},
"safe-outputs": {
"type": "object",
- "$comment": "Required if workflow creates or modifies GitHub resources. Operations requiring safe-outputs: approve-workflow-run, autofix-code-scanning-alert, add-comment, add-labels, add-reviewer, assign-milestone, assign-to-agent, assign-to-user, close-discussion, close-issue, close-pull-request, create-agent-session, create-agent-task (deprecated, use create-agent-session), create-check-run, create-code-scanning-alert, create-discussion, create-issue, create-project, create-project-status-update, create-pull-request, create-pull-request-review-comment, dispatch-workflow, hide-comment, link-sub-issue, mark-pull-request-as-ready-for-review, merge-pull-request, missing-data, missing-tool, noop, push-to-pull-request-branch, remove-labels, reply-to-pull-request-review-comment, resolve-pull-request-review-thread, set-issue-field, set-issue-type, submit-pull-request-review, threat-detection, unassign-from-user, update-discussion, update-issue, update-project, update-pull-request, update-release, upload-artifact, upload-asset, upload-code-coverage. See documentation for complete details.",
+ "$comment": "Required if workflow creates or modifies GitHub resources. Operations requiring safe-outputs: approve-workflow-run, autofix-code-scanning-alert, add-comment, add-labels, add-reviewer, assign-milestone, assign-to-agent, assign-to-user, close-discussion, close-issue, close-pull-request, continue-workflow, create-agent-session, create-agent-task (deprecated, use create-agent-session), create-check-run, create-code-scanning-alert, create-discussion, create-issue, create-project, create-project-status-update, create-pull-request, create-pull-request-review-comment, dispatch-workflow, hide-comment, link-sub-issue, mark-pull-request-as-ready-for-review, merge-pull-request, missing-data, missing-tool, noop, push-to-pull-request-branch, remove-labels, reply-to-pull-request-review-comment, resolve-pull-request-review-thread, set-issue-field, set-issue-type, submit-pull-request-review, threat-detection, unassign-from-user, update-discussion, update-issue, update-project, update-pull-request, update-release, upload-artifact, upload-asset, upload-code-coverage. See documentation for complete details.",
"description": "Safe output processing configuration that automatically creates GitHub issues, comments, and pull requests from AI workflow output without requiring write permissions in the main job",
"examples": [
{
@@ -8538,6 +8538,41 @@
],
"description": "Enable AI agents to add comments to GitHub issues, pull requests, or discussions. Supports templating, cross-repository commenting, and automatic mentions."
},
+ "continue-workflow": {
+ "oneOf": [
+ {
+ "type": "null",
+ "description": "Enable continue-workflow with the default budget of 3 continuation hops"
+ },
+ {
+ "type": "boolean",
+ "description": "Set to true to enable continue-workflow with the default budget of 3 continuation hops, or false to disable it"
+ },
+ {
+ "type": "object",
+ "description": "Configuration for continuing long-running work in fresh workflow runs on one stable work branch",
+ "properties": {
+ "max-hops": {
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10,
+ "default": 3,
+ "description": "Maximum number of continuation runs after the first run (default: 3). When the budget is exhausted the work branch is preserved and reported instead of scheduling another run."
+ },
+ "github-token": {
+ "$ref": "#/$defs/github_token_same_job",
+ "description": "GitHub token used to push the work branch and record the continuation. Defaults to the create-pull-request token."
+ },
+ "staged": {
+ "$ref": "#/$defs/templatable_boolean",
+ "description": "If true, preview the continuation without pushing the work branch or scheduling another run"
+ }
+ },
+ "additionalProperties": false
+ }
+ ],
+ "description": "Opt-in: let the agent hand its committed progress (including plan.md) to a fresh run of the same workflow on the same work branch. Requires create-pull-request and a workflow_dispatch trigger; the final run creates the single pull request. Separate from the Copilot engine's max-continuations."
+ },
"create-pull-request": {
"oneOf": [
{
@@ -12763,6 +12798,11 @@
"properties": {
"base-revision": { "type": "string", "pattern": "^([a-f0-9]{40}|[a-f0-9]{64})$" },
"branch-prefix": { "type": "string", "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$" },
+ "checkpoint-output": {
+ "type": "string",
+ "pattern": "^[a-z][a-z0-9_]{0,127}$",
+ "description": "For continuation Work, use exactly one git_commit checkpoint from this output in the predecessor's verified Result as the immutable base. Initial Work uses base-revision."
+ },
"pull-request": { "type": "boolean" },
"base-branch": { "type": "string", "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$" }
},
diff --git a/pkg/workflow/aider_log_parser_test.go b/pkg/workflow/aider_log_parser_test.go
index 2f3f4bd3f7c..b14157565e3 100644
--- a/pkg/workflow/aider_log_parser_test.go
+++ b/pkg/workflow/aider_log_parser_test.go
@@ -319,6 +319,7 @@ const known = [
{type:"tool.execution_complete", data:{toolCallId:"tool", success:false, output:0}},
{type:"session.result", data:{numTurns:0, totalCostUsd:0, usage:{input_tokens:0}, errors:[]}},
{type:"session.error", data:{errorType:"RateLimitError", content:"provider failure"}},
+ {type:"model.inventory", data:{endpoints:[{provider:"openai", models:["openai/auto"]}]}},
{type:"agent.execution", data:{categories:[], errorCodes:[], errorTypes:[]}},
{type:"detection.result", data:{promptInjection:false}},
{type:"session.format", data:{version:1}},
diff --git a/pkg/workflow/compiler_safe_outputs.go b/pkg/workflow/compiler_safe_outputs.go
index 1cdd475104f..0a7e3bbd470 100644
--- a/pkg/workflow/compiler_safe_outputs.go
+++ b/pkg/workflow/compiler_safe_outputs.go
@@ -53,5 +53,5 @@ func needsGitCommands(safeOutputs *SafeOutputsConfig) bool {
if safeOutputs == nil {
return false
}
- return safeOutputs.CreatePullRequests != nil || safeOutputs.PushToPullRequestBranch != nil
+ return safeOutputs.CreatePullRequests != nil || safeOutputs.PushToPullRequestBranch != nil || safeOutputs.ContinueWorkflow != nil
}
diff --git a/pkg/workflow/compiler_safe_outputs_job.go b/pkg/workflow/compiler_safe_outputs_job.go
index acb47d890f3..92895d6fa77 100644
--- a/pkg/workflow/compiler_safe_outputs_job.go
+++ b/pkg/workflow/compiler_safe_outputs_job.go
@@ -540,6 +540,7 @@ func hasHandlerManagerTypes(data *WorkflowData) bool {
data.SafeOutputs.ReplyToPullRequestReviewComment != nil ||
data.SafeOutputs.ResolvePullRequestReviewThread != nil ||
data.SafeOutputs.CreatePullRequests != nil ||
+ data.SafeOutputs.ContinueWorkflow != nil ||
data.SafeOutputs.PushToPullRequestBranch != nil ||
data.SafeOutputs.UpdatePullRequests != nil ||
data.SafeOutputs.ClosePullRequests != nil ||
diff --git a/pkg/workflow/compiler_validators.go b/pkg/workflow/compiler_validators.go
index 54da22e104e..ff0297fc4c9 100644
--- a/pkg/workflow/compiler_validators.go
+++ b/pkg/workflow/compiler_validators.go
@@ -191,6 +191,10 @@ func (c *Compiler) validateToolConfiguration(workflowData *WorkflowData, markdow
if err := c.validateAgentFile(workflowData, markdownPath); err != nil {
return err
}
+ workflowLog.Printf("Validating safe-outputs continue-workflow")
+ if err := validateContinueWorkflow(workflowData); err != nil {
+ return formatCompilerError(markdownPath, "error", err.Error(), err)
+ }
if err := c.validateCoreToolConfiguration(workflowData, markdownPath); err != nil {
return err
}
@@ -567,6 +571,7 @@ func (c *Compiler) emitExperimentalFeatureWarningsTo(workflowData *WorkflowData,
{enabled: workflowData.RepoMemoryConfig != nil && slices.ContainsFunc(workflowData.RepoMemoryConfig.Memories, func(memory RepoMemoryEntry) bool { return memory.Ledger != nil }), message: "Using experimental feature: repo-memory ledger"},
{enabled: hasContinualExperiment(workflowData.ExperimentConfigs), message: "Using experimental feature: continual experiments"},
{enabled: workflowData.SafeOutputs != nil && workflowData.SafeOutputs.Steer, message: "Using experimental feature: safe-outputs steer"},
+ {enabled: isWorkQueueWorker(workflowData) || hasContinueWorkflow(workflowData), message: "Using experimental feature: cross-run continuation"},
}
for _, warning := range warnings {
if warning.enabled {
diff --git a/pkg/workflow/compiler_yaml_main_job.go b/pkg/workflow/compiler_yaml_main_job.go
index fd2fc481758..53fc377303e 100644
--- a/pkg/workflow/compiler_yaml_main_job.go
+++ b/pkg/workflow/compiler_yaml_main_job.go
@@ -14,6 +14,9 @@ func (c *Compiler) generateMainJobSteps(yaml *strings.Builder, data *WorkflowDat
if err != nil {
return err
}
+ if needsCheckout {
+ c.generateContinueWorkflowCheckout(yaml, data)
+ }
if err := c.generateLedgerProjectionStep(yaml, data); err != nil {
return err
}
@@ -40,7 +43,7 @@ func (c *Compiler) generateMainJobSteps(yaml *strings.Builder, data *WorkflowDat
// can reuse the pre-computed value instead of re-running the expensive map+sort
// operation inside each engine's domain helper. The result is stored on WorkflowData
// and is also used later by generateOutputCollectionStep.
- _, _ = c.computeAllowedDomainsForSanitization(data)
+ c.computeAllowedDomainsForSanitization(data)
// Phase 4: Agent execution and immediate post-agent steps
artifactPaths, logFileFull, err := c.generateAgentRunSteps(yaml, data, engine, needsGitConfig)
diff --git a/pkg/workflow/compiler_yaml_main_job_test.go b/pkg/workflow/compiler_yaml_main_job_test.go
index 5e294a91806..d6038cde481 100644
--- a/pkg/workflow/compiler_yaml_main_job_test.go
+++ b/pkg/workflow/compiler_yaml_main_job_test.go
@@ -505,7 +505,7 @@ func TestAddCustomStepsWithRuntimeInsertion(t *testing.T) {
compiler := NewCompiler()
var yaml strings.Builder
- compiler.addCustomStepsWithRuntimeInsertion(&yaml, tt.customSteps, tt.runtimeSetupSteps, nil, tt.tools, tt.ensureArcNodePath)
+ compiler.addCustomStepsWithRuntimeInsertion(&yaml, tt.customSteps, tt.runtimeSetupSteps, nil, nil, tt.tools, tt.ensureArcNodePath)
result := yaml.String()
for _, expected := range tt.expectInOutput {
diff --git a/pkg/workflow/compiler_yaml_runtime_setup.go b/pkg/workflow/compiler_yaml_runtime_setup.go
index aabe8d5a312..ccae1a30acf 100644
--- a/pkg/workflow/compiler_yaml_runtime_setup.go
+++ b/pkg/workflow/compiler_yaml_runtime_setup.go
@@ -27,7 +27,6 @@ func (c *Compiler) generateRuntimeAndWorkspaceSetupSteps(yaml *strings.Builder,
return false, err
}
- compilerYamlLog.Printf("Custom steps contain checkout: %t (len(customSteps)=%d)", customStepsContainCheckout, len(data.CustomSteps))
c.emitRuntimeSetupPrelude(yaml, data, needsCheckout, customStepsContainCheckout, runtimeSetupSteps)
// Create /tmp/gh-aw/ base directory for all temporary files
@@ -74,11 +73,12 @@ func (c *Compiler) generateRuntimeAndWorkspaceSetupSteps(yaml *strings.Builder,
compilerYamlLog.Printf("Generating repo-memory steps for workflow")
generateRepoMemoryStepsForAgent(yaml, data)
- c.emitCustomSteps(yaml, data, customStepsContainCheckout, runtimeSetupSteps)
+ if err := c.emitCustomSteps(yaml, data, customStepsContainCheckout, runtimeSetupSteps); err != nil {
+ return false, err
+ }
// Add cache steps if cache configuration is present. Keep workspace caches after user
// steps so a user-provided checkout step cannot wipe restored repository paths.
- compilerYamlLog.Printf("Generating cache steps for workflow")
generateCacheSteps(yaml, data, c.verbose)
return customStepsContainCheckout, nil
@@ -248,10 +248,10 @@ func extractStepIfCondition(step GitHubActionStep) string {
return ""
}
-func (c *Compiler) emitCustomSteps(yaml *strings.Builder, data *WorkflowData, customStepsContainCheckout bool, runtimeSetupSteps []GitHubActionStep) {
+func (c *Compiler) emitCustomSteps(yaml *strings.Builder, data *WorkflowData, customStepsContainCheckout bool, runtimeSetupSteps []GitHubActionStep) error {
// Add custom steps if present
if data.CustomSteps == "" {
- return
+ return nil
}
// When the DIFC proxy is active, inject proxy routing env vars as step-level env
@@ -262,22 +262,31 @@ func (c *Compiler) emitCustomSteps(yaml *strings.Builder, data *WorkflowData, cu
customStepsToEmit = injectProxyEnvIntoCustomSteps(customStepsToEmit)
}
var postLastCheckoutSteps []GitHubActionStep
+ var checkoutInsertions map[int]GitHubActionStep
+ if customStepsContainCheckout {
+ var err error
+ checkoutInsertions, err = c.continueWorkflowCustomCheckoutSteps(data)
+ if err != nil {
+ return err
+ }
+ }
if ambientRestoreStep := restoreAmbientFoldersSteps(data); len(ambientRestoreStep) > 0 {
postLastCheckoutSteps = append(postLastCheckoutSteps, ambientRestoreStep)
}
- if customStepsContainCheckout && (len(runtimeSetupSteps) > 0 || len(postLastCheckoutSteps) > 0) {
+ if customStepsContainCheckout && (len(runtimeSetupSteps) > 0 || len(postLastCheckoutSteps) > 0 || len(checkoutInsertions) > 0) {
// Custom steps contain checkout: insert runtime steps after the first checkout and
// workspace restore steps after the last checkout. Inserting restore steps after the
// last checkout ensures that a multi-checkout custom steps block (where a later root
// checkout would wipe .github/aw/logs or ambient folders) leaves restored content in
// place for later custom steps and the agent.
compilerYamlLog.Printf("Calling addCustomStepsWithRuntimeInsertion: %d runtime steps after first checkout, %d post-checkout steps after last checkout", len(runtimeSetupSteps), len(postLastCheckoutSteps))
- c.addCustomStepsWithRuntimeInsertion(yaml, customStepsToEmit, runtimeSetupSteps, postLastCheckoutSteps, data.ParsedTools, isArcDindTopology(data))
+ c.addCustomStepsWithRuntimeInsertion(yaml, customStepsToEmit, runtimeSetupSteps, postLastCheckoutSteps, checkoutInsertions, data.ParsedTools, isArcDindTopology(data))
} else {
// No checkout in custom steps or no steps to insert, just add custom steps as-is
compilerYamlLog.Printf("Calling addCustomStepsAsIs (customStepsContainCheckout=%t, runtimeStepsCount=%d)", customStepsContainCheckout, len(runtimeSetupSteps))
c.addCustomStepsAsIs(yaml, customStepsToEmit)
}
+ return nil
}
// generateActivationArtifactAndCommentMemorySteps emits the activation artifact download and,
@@ -419,18 +428,18 @@ func (c *Compiler) addCustomStepsAsIs(yaml *strings.Builder, customSteps string)
// the post-last-checkout steps are deferred until after the final checkout so the path remains
// intact when the subsequent command runs.
// Like addCustomStepsAsIs it sanitizes any ${{ ... }} expressions found in run: fields before writing.
-func (c *Compiler) addCustomStepsWithRuntimeInsertion(yaml *strings.Builder, customSteps string, runtimeSetupSteps []GitHubActionStep, postLastCheckoutSteps []GitHubActionStep, tools *ToolsConfig, ensureArcDindNodePath bool) {
+func (c *Compiler) addCustomStepsWithRuntimeInsertion(yaml *strings.Builder, customSteps string, runtimeSetupSteps []GitHubActionStep, postLastCheckoutSteps []GitHubActionStep, checkoutInsertions map[int]GitHubActionStep, tools *ToolsConfig, ensureArcDindNodePath bool) {
customSteps = c.sanitizeAndWarnCustomSteps(customSteps)
firstCheckoutIndex, hasCheckoutStep := findFirstCheckoutStepIndex(customSteps)
lastCheckoutIndex, _ := findLastCheckoutStepIndex(customSteps)
+ firstCheckoutIndex = firstContinuationCheckoutIndex(checkoutInsertions, firstCheckoutIndex)
// Remove "steps:" line and adjust indentation
lines := strings.Split(customSteps, "\n")
if len(lines) <= 1 {
return
}
- insertedRuntime := false
- insertedPostLast := false
+ insertedRuntime, insertedPostLast := false, false
i := 1 // Start from index 1 to skip "steps:" line
currentStepIndex := -1
stepIndent := -1
@@ -466,11 +475,11 @@ func (c *Compiler) addCustomStepsWithRuntimeInsertion(yaml *strings.Builder, cus
isFirstCheckout := hasCheckoutStep && currentStepIndex == firstCheckoutIndex && !insertedRuntime
isLastCheckout := len(postLastCheckoutSteps) > 0 && hasCheckoutStep && currentStepIndex == lastCheckoutIndex && !insertedPostLast
- if isFirstCheckout || isLastCheckout {
+ if isFirstCheckout || isLastCheckout || len(checkoutInsertions[currentStepIndex]) > 0 {
// This is a checkout step (first, last, or both): copy all its lines until the next step
i = appendCustomCheckoutLines(yaml, lines, i+1, stepIndent, &blockScalarState)
insertPostLast := isLastCheckout || (isFirstCheckout && firstCheckoutIndex == lastCheckoutIndex)
- c.emitCustomCheckoutInsertions(yaml, runtimeSetupSteps, postLastCheckoutSteps, ensureArcDindNodePath, isFirstCheckout, insertPostLast)
+ c.emitCustomCheckoutInsertions(yaml, runtimeSetupSteps, postLastCheckoutSteps, checkoutInsertions[currentStepIndex], ensureArcDindNodePath, isFirstCheckout, insertPostLast)
insertedRuntime = insertedRuntime || isFirstCheckout
insertedPostLast = insertedPostLast || insertPostLast
@@ -498,7 +507,11 @@ func appendCustomCheckoutLines(yaml *strings.Builder, lines []string, cursor, st
return cursor
}
-func (c *Compiler) emitCustomCheckoutInsertions(yaml *strings.Builder, runtimeSetupSteps, postLastCheckoutSteps []GitHubActionStep, ensureArcDindNodePath, insertRuntime, insertPostLast bool) {
+func (c *Compiler) emitCustomCheckoutInsertions(yaml *strings.Builder, runtimeSetupSteps, postLastCheckoutSteps []GitHubActionStep, checkoutInsertion GitHubActionStep, ensureArcDindNodePath, insertRuntime, insertPostLast bool) {
+ for _, line := range checkoutInsertion {
+ yaml.WriteString(line)
+ yaml.WriteByte('\n')
+ }
if insertRuntime {
compilerYamlLog.Printf("Inserting %d runtime setup steps after first checkout in custom steps", len(runtimeSetupSteps))
c.emitRuntimeSetupSteps(yaml, runtimeSetupSteps, ensureArcDindNodePath)
diff --git a/pkg/workflow/continue_workflow.go b/pkg/workflow/continue_workflow.go
new file mode 100644
index 00000000000..292fad7db7a
--- /dev/null
+++ b/pkg/workflow/continue_workflow.go
@@ -0,0 +1,286 @@
+package workflow
+
+import (
+ "errors"
+ "fmt"
+ "maps"
+ "sort"
+ "strconv"
+ "strings"
+
+ "github.com/github/gh-aw/pkg/logger"
+ "github.com/goccy/go-yaml"
+)
+
+var continueWorkflowLog = logger.New("workflow:continue_workflow")
+
+const (
+ // DefaultContinueWorkflowMaxHops is the default number of continuation runs after the first run.
+ DefaultContinueWorkflowMaxHops = 3
+ // MaxContinueWorkflowMaxHops is the largest accepted continue-workflow max-hops value.
+ MaxContinueWorkflowMaxHops = 10
+)
+
+// ContinueWorkflowConfig enables the opt-in continue_workflow safe output, which hands the
+// agent's committed progress to a fresh run of the same workflow on one stable work branch.
+// It is unrelated to the Copilot engine's max-continuations setting.
+type ContinueWorkflowConfig struct {
+ BaseSafeOutputConfig `yaml:",inline"`
+ MaxHops *int `yaml:"max-hops,omitempty"`
+}
+
+// EffectiveMaxHops returns the configured hop budget or the default of 3.
+func (c *ContinueWorkflowConfig) EffectiveMaxHops() int {
+ if c == nil || c.MaxHops == nil {
+ return DefaultContinueWorkflowMaxHops
+ }
+ return *c.MaxHops
+}
+
+// parseContinueWorkflowConfig handles continue-workflow configuration. Both `true` and an
+// empty value enable the handler with defaults; `false` leaves it disabled.
+func (c *Compiler) parseContinueWorkflowConfig(outputMap map[string]any) *ContinueWorkflowConfig {
+ raw, exists := outputMap["continue-workflow"]
+ if !exists {
+ return nil
+ }
+ if enabled, ok := raw.(bool); ok {
+ if !enabled {
+ continueWorkflowLog.Print("continue-workflow explicitly disabled")
+ return nil
+ }
+ raw = nil
+ }
+ normalized := maps.Clone(outputMap)
+ normalized["continue-workflow"] = raw
+ return parseConfigScaffoldWithPostProcess(normalized, "continue-workflow", continueWorkflowLog,
+ func(err error) *ContinueWorkflowConfig {
+ continueWorkflowLog.Printf("Failed to unmarshal continue-workflow config, disabling handler: %v", err)
+ return nil
+ },
+ func(config *ContinueWorkflowConfig) {
+ // One continuation request per run; the hop budget is max-hops.
+ one := "1"
+ config.Max = &one
+ continueWorkflowLog.Printf("Parsed configuration: max_hops=%d", config.EffectiveMaxHops())
+ })
+}
+
+// hasContinueWorkflow reports whether the workflow enables continue-workflow.
+func hasContinueWorkflow(data *WorkflowData) bool {
+ return data != nil && data.SafeOutputs != nil && data.SafeOutputs.ContinueWorkflow != nil
+}
+
+// validateContinueWorkflow checks the constraints that make continuation hops safe to resume.
+func validateContinueWorkflow(data *WorkflowData) error {
+ if !hasContinueWorkflow(data) {
+ return nil
+ }
+ cfg := data.SafeOutputs.ContinueWorkflow
+ if hops := cfg.EffectiveMaxHops(); hops < 1 || hops > MaxContinueWorkflowMaxHops {
+ return fmt.Errorf("safe-outputs.continue-workflow.max-hops must be between 1 and %d, got %d", MaxContinueWorkflowMaxHops, hops)
+ }
+ cpr := data.SafeOutputs.CreatePullRequests
+ if cpr == nil {
+ return errors.New("safe-outputs.continue-workflow requires safe-outputs.create-pull-request: the final run of a continued workflow creates the pull request from the work branch")
+ }
+ if strings.TrimSpace(cpr.TargetRepoSlug) != "" || strings.TrimSpace(cpr.HeadRepoSlug) != "" {
+ return errors.New("safe-outputs.continue-workflow cannot be combined with create-pull-request target-repo or head-repo: continuation work branches live in the workflow repository")
+ }
+ if cpr.PreserveBranchName {
+ return errors.New("safe-outputs.continue-workflow cannot be combined with create-pull-request preserve-branch-name: the work branch name is assigned by the continuation")
+ }
+ if strings.TrimSpace(cpr.PatchFormat) == "am" {
+ return errors.New("safe-outputs.continue-workflow requires create-pull-request patch-format: bundle (the default)")
+ }
+ if !canResumeContinuation(data) {
+ return errors.New("safe-outputs.continue-workflow requires the repository checkout and contents: read permission so each continuation run can resume on its work branch")
+ }
+ if currentPath := normalizeCurrentCheckoutPatchPath(NewCheckoutManager(data.CheckoutConfigs).GetCurrentCheckoutPath()); currentPath != "" {
+ return fmt.Errorf("safe-outputs.continue-workflow requires the workflow repository to be checked out at the workspace root, but the current checkout uses path %q", currentPath)
+ }
+ dispatch, found := workflowDispatchTrigger(data)
+ if !found {
+ return errors.New("safe-outputs.continue-workflow requires an on.workflow_dispatch trigger: Agentic Maintenance dispatches each continuation run")
+ }
+ if required := requiredWorkflowDispatchInputs(dispatch); len(required) > 0 {
+ return fmt.Errorf("safe-outputs.continue-workflow cannot dispatch continuation runs because on.workflow_dispatch.inputs %s are required without a default; set required: false or add a default", strings.Join(required, ", "))
+ }
+ return nil
+}
+
+// canResumeContinuation reports whether the agent job checks out the repository with read
+// access, which the continuation checkout step needs to resume on the work branch.
+func canResumeContinuation(data *WorkflowData) bool {
+ if data.CheckoutDisabled {
+ return false
+ }
+ if data.CachedPermissions != nil {
+ return data.CachedPermissions.HasContentsReadAccess()
+ }
+ return NewPermissionsParser(data.Permissions).HasContentsReadAccess()
+}
+
+// workflowDispatchTrigger returns the workflow_dispatch trigger configuration, if present.
+func workflowDispatchTrigger(data *WorkflowData) (map[string]any, bool) {
+ if strings.TrimSpace(data.On) != "" {
+ var parsed map[string]any
+ if err := yaml.Unmarshal([]byte(data.On), &parsed); err == nil {
+ if dispatch, found := lookupWorkflowDispatch(parsed["on"]); found {
+ return dispatch, true
+ }
+ } else {
+ continueWorkflowLog.Printf("Failed to parse rendered on section: %v", err)
+ }
+ }
+ if data.RawFrontmatter != nil {
+ return lookupWorkflowDispatch(data.RawFrontmatter["on"])
+ }
+ return nil, false
+}
+
+func lookupWorkflowDispatch(on any) (map[string]any, bool) {
+ switch value := on.(type) {
+ case string:
+ return nil, value == "workflow_dispatch"
+ case []any:
+ for _, item := range value {
+ if name, ok := item.(string); ok && name == "workflow_dispatch" {
+ return nil, true
+ }
+ }
+ case map[string]any:
+ dispatch, found := value["workflow_dispatch"]
+ if !found {
+ return nil, false
+ }
+ if dispatch == nil {
+ return nil, true
+ }
+ dispatchMap, ok := dispatch.(map[string]any)
+ if !ok {
+ return nil, false
+ }
+ return dispatchMap, true
+ }
+ return nil, false
+}
+
+func requiredWorkflowDispatchInputs(dispatch map[string]any) []string {
+ inputs, ok := dispatch["inputs"].(map[string]any)
+ if !ok {
+ return nil
+ }
+ var required []string
+ for name, raw := range inputs {
+ input, ok := raw.(map[string]any)
+ if !ok {
+ continue
+ }
+ _, hasDefault := input["default"]
+ if isRequired, ok := input["required"].(bool); ok && isRequired && !hasDefault {
+ required = append(required, name)
+ }
+ }
+ sort.Strings(required)
+ return required
+}
+
+// buildContinueWorkflowHandlerConfig shares the create-pull-request policy (protected files,
+// allowed files, patch limits, signed commits, branch prefix and base branch) so every
+// continuation hop is held to exactly the policy of the final pull request.
+func buildContinueWorkflowHandlerConfig(cfg *SafeOutputsConfig) map[string]any {
+ if cfg.ContinueWorkflow == nil || cfg.CreatePullRequests == nil {
+ return nil
+ }
+ c := cfg.ContinueWorkflow
+ config := newCreatePullRequestHandlerConfigBuilder(cfg, cfg.CreatePullRequests).Build()
+ delete(config, "staged")
+ config["max"] = 1
+ config["max_hops"] = c.EffectiveMaxHops()
+ if token := resolveHandlerGitHubToken(c.GitHubApp, "continue-workflow", c.GitHubToken); token != "" {
+ config["github-token"] = token
+ }
+ if c.Staged != nil {
+ staged := newHandlerConfigBuilder().AddTemplatableBool("staged", templatableBoolPtrToStringPtr(c.Staged)).Build()
+ if value, ok := staged["staged"]; ok {
+ config["staged"] = value
+ }
+ }
+ return config
+}
+
+// generateContinueWorkflowCheckout adds the agent-job step that resumes a continuation hop:
+// it checks out the recorded head of the work branch and writes the continuation context
+// (including the plan.md location) for the agent. Runs that are not continuations skip it.
+func (c *Compiler) generateContinueWorkflowCheckout(yaml *strings.Builder, data *WorkflowData) {
+ if !hasContinueWorkflow(data) || !canResumeContinuation(data) {
+ return
+ }
+ continueWorkflowLog.Print("Generating continue-workflow checkout step")
+ checkoutManager := NewCheckoutManager(data.CheckoutConfigs)
+ checkoutToken := resolveGitHubToken("")
+ if override := checkoutManager.GetDefaultCheckoutOverride(); override != nil {
+ checkoutToken = resolveCheckoutTokenExpression(override, checkoutManager.defaultCheckoutIndex(override), true)
+ }
+ yaml.WriteString(c.continueWorkflowCheckoutStep(data, checkoutToken, "checkout-continuation"))
+}
+
+func (c *Compiler) continueWorkflowCheckoutStep(data *WorkflowData, checkoutToken, stepID string) string {
+ var yaml strings.Builder
+ yaml.WriteString(" - name: Checkout continuation branch\n")
+ yaml.WriteString(" id: " + stepID + "\n")
+ RenderConditionAsIf(&yaml, BuildEventTypeEquals("workflow_dispatch"), " ")
+ yaml.WriteString(" uses: " + getCachedActionPin("actions/github-script", data) + "\n")
+ yaml.WriteString(" with:\n")
+ yaml.WriteString(" github-token: " + checkoutToken + "\n")
+ yaml.WriteString(" script: |\n")
+ yaml.WriteString(" const { setupGlobals } = require('" + SetupActionDestination + "/setup_globals.cjs');\n")
+ yaml.WriteString(" setupGlobals(core, github, context, exec, io, getOctokit);\n")
+ yaml.WriteString(" const { main } = require('" + SetupActionDestination + "/checkout_continue_workflow_branch.cjs');\n")
+ yaml.WriteString(" await main();\n")
+ return yaml.String()
+}
+
+func (c *Compiler) continueWorkflowCustomCheckoutSteps(data *WorkflowData) (map[int]GitHubActionStep, error) {
+ if !hasContinueWorkflow(data) || !canResumeContinuation(data) {
+ return nil, nil
+ }
+ var document struct {
+ Steps []struct {
+ Uses string `yaml:"uses"`
+ With struct {
+ Path string `yaml:"path"`
+ Token string `yaml:"token"`
+ } `yaml:"with"`
+ } `yaml:"steps"`
+ }
+ if err := yaml.Unmarshal([]byte(data.CustomSteps), &document); err != nil {
+ return nil, fmt.Errorf("cannot insert continuation checkout in custom steps: %w", err)
+ }
+ insertions := make(map[int]GitHubActionStep)
+ for index, step := range document.Steps {
+ if !isCheckoutActionReference(step.Uses) || normalizeCurrentCheckoutPatchPath(step.With.Path) != "" {
+ continue
+ }
+ rendered := c.continueWorkflowCheckoutStep(data, resolveGitHubToken(step.With.Token), "checkout-continuation-"+strconv.Itoa(index))
+ insertions[index] = strings.Split(strings.TrimSuffix(rendered, "\n"), "\n")
+ }
+ if len(insertions) == 0 {
+ return nil, errors.New("safe-outputs.continue-workflow requires a workspace-root checkout in custom steps")
+ }
+ return insertions, nil
+}
+
+func firstContinuationCheckoutIndex(insertions map[int]GitHubActionStep, fallback int) int {
+ first := -1
+ for index := range insertions {
+ if first == -1 || index < first {
+ first = index
+ }
+ }
+ if first == -1 {
+ return fallback
+ }
+ return first
+}
diff --git a/pkg/workflow/continue_workflow_compilation_test.go b/pkg/workflow/continue_workflow_compilation_test.go
new file mode 100644
index 00000000000..54d1dccc0c3
--- /dev/null
+++ b/pkg/workflow/continue_workflow_compilation_test.go
@@ -0,0 +1,229 @@
+//go:build !integration
+
+package workflow
+
+import (
+ "context"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+
+ "github.com/goccy/go-yaml"
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
+)
+
+func TestContinueWorkflowCompilation(t *testing.T) {
+ for _, setting := range []string{"true", "false", "{max-hops: 5}"} {
+ t.Run(setting, func(t *testing.T) {
+ directory := t.TempDir()
+ file := filepath.Join(directory, "continue.md")
+ source := `---
+on: workflow_dispatch
+permissions:
+ contents: read
+engine: copilot
+steps:
+ - name: Install project dependencies
+ run: npm ci
+safe-outputs:
+ continue-workflow: ` + setting + `
+ create-pull-request:
+ fallback-as-issue: false
+---
+Complete the task, keeping plan.md up to date between runs.
+`
+ require.NoError(t, os.WriteFile(file, []byte(source), 0600))
+ compiler := NewCompiler(WithVersion("1.0.0"))
+ require.NoError(t, compiler.CompileWorkflow(file))
+ compiled, err := os.ReadFile(filepath.Join(directory, "continue.lock.yml"))
+ require.NoError(t, err)
+ var document struct {
+ Jobs map[string]struct {
+ Permissions map[string]string `yaml:"permissions"`
+ Steps []struct {
+ Name string `yaml:"name"`
+ Uses string `yaml:"uses"`
+ } `yaml:"steps"`
+ } `yaml:"jobs"`
+ }
+ require.NoError(t, yaml.Unmarshal(compiled, &document))
+ content := string(compiled)
+ if setting == "false" {
+ assert.NotContains(t, content, "Checkout continuation branch")
+ assert.NotContains(t, content, "continue_workflow\"")
+ assert.NotContains(t, document.Jobs["safe_outputs"].Permissions, "actions")
+ return
+ }
+ assert.Contains(t, content, "checkout_continue_workflow_branch.cjs")
+ assert.Contains(t, content, "safe_outputs_continue_workflow.md")
+ assert.Contains(t, content, "continue_workflow")
+ assert.Regexp(t, `max_hops\\*":\s*`+map[string]string{"true": "3", "{max-hops: 5}": "5"}[setting]+`[,}]`, content)
+ assert.Equal(t, "read", document.Jobs["agent"].Permissions["contents"])
+ assert.Equal(t, "write", document.Jobs["safe_outputs"].Permissions["contents"])
+ assert.Equal(t, "write", document.Jobs["safe_outputs"].Permissions["actions"])
+ assert.Less(t, strings.Index(content, "Checkout continuation branch"), strings.Index(content, "id: agentic_execution"))
+ resume, dependencies, runtime := -1, -1, -1
+ for index, step := range document.Jobs["agent"].Steps {
+ switch {
+ case step.Name == "Checkout continuation branch":
+ resume = index
+ case step.Name == "Install project dependencies":
+ dependencies = index
+ case strings.HasPrefix(step.Uses, "actions/setup-node@"):
+ runtime = index
+ }
+ }
+ require.NotEqual(t, -1, resume)
+ require.NotEqual(t, -1, dependencies)
+ require.NotEqual(t, -1, runtime)
+ assert.Less(t, resume, dependencies)
+ assert.Less(t, resume, runtime)
+ })
+ }
+}
+
+func TestContinueWorkflowCheckoutUsesCheckoutCredentials(t *testing.T) {
+ for _, token := range []string{"", "${{ secrets.CHECKOUT_TOKEN }}"} {
+ data := continuationTestData()
+ data.SafeOutputs.GitHubToken = "${{ secrets.LEDGER_TOKEN }}"
+ data.CheckoutConfigs = []*CheckoutConfig{{GitHubToken: token}}
+ var rendered strings.Builder
+ NewCompiler().generateContinueWorkflowCheckout(&rendered, data)
+ assert.Contains(t, rendered.String(), "github-token: "+resolveGitHubToken(token))
+ assert.NotContains(t, rendered.String(), "github-token: ${{ secrets.LEDGER_TOKEN }}")
+ }
+ data := continuationTestData()
+ data.CheckoutConfigs = []*CheckoutConfig{{GitHubApp: &GitHubAppConfig{AppID: "${{ vars.APP_ID }}", PrivateKey: "${{ secrets.APP_KEY }}"}}}
+ var rendered strings.Builder
+ NewCompiler().generateContinueWorkflowCheckout(&rendered, data)
+ assert.Contains(t, rendered.String(), "github-token: ${{ steps.checkout-app-token-0.outputs.token }}")
+}
+
+func TestContinueWorkflowCustomCheckoutBeforeSetup(t *testing.T) {
+ root := ` - name: Checkout task
+ uses: actions/checkout@v5
+ with:
+ persist-credentials: false
+ token: ${{ secrets.CUSTOM_CHECKOUT_TOKEN }}
+`
+ sidecar := ` - name: Checkout sidecar
+ uses: actions/checkout@v5
+ with:
+ persist-credentials: false
+ path: vendor
+`
+ for _, tt := range []struct {
+ name string
+ checkouts string
+ resumeCount int
+ }{
+ {"root", root, 1},
+ {"sidecar before root", sidecar + root, 1},
+ {"repeated root", root + root, 2},
+ } {
+ t.Run(tt.name, func(t *testing.T) {
+ directory := t.TempDir()
+ file := filepath.Join(directory, "continue.md")
+ source := `---
+on: workflow_dispatch
+permissions:
+ contents: read
+engine: copilot
+safe-outputs:
+ continue-workflow: true
+ create-pull-request:
+ fallback-as-issue: false
+steps:
+` + tt.checkouts + ` - name: Install project dependencies
+ run: npm ci
+---
+Continue the task.
+`
+ require.NoError(t, os.WriteFile(file, []byte(source), 0600))
+ require.NoError(t, NewCompiler(WithVersion("1.0.0")).CompileWorkflow(file))
+ compiled, err := os.ReadFile(filepath.Join(directory, "continue.lock.yml"))
+ require.NoError(t, err)
+ var document struct {
+ Jobs map[string]struct {
+ Steps []struct {
+ Name string `yaml:"name"`
+ Uses string `yaml:"uses"`
+ ID string `yaml:"id"`
+ With map[string]string `yaml:"with"`
+ } `yaml:"steps"`
+ } `yaml:"jobs"`
+ }
+ require.NoError(t, yaml.Unmarshal(compiled, &document))
+ firstRoot, firstResume, lastResume, runtime, dependencies := -1, -1, -1, -1, -1
+ resumeIDs := make(map[string]bool)
+ for index, step := range document.Jobs["agent"].Steps {
+ switch {
+ case step.Name == "Checkout task" && firstRoot == -1:
+ firstRoot = index
+ case step.Name == "Checkout continuation branch":
+ if firstResume == -1 {
+ firstResume = index
+ }
+ lastResume = index
+ assert.False(t, resumeIDs[step.ID], "continuation step IDs must be unique")
+ resumeIDs[step.ID] = true
+ assert.Equal(t, "${{ secrets.CUSTOM_CHECKOUT_TOKEN }}", step.With["github-token"])
+ case strings.HasPrefix(step.Uses, "actions/setup-node@"):
+ runtime = index
+ case step.Name == "Install project dependencies":
+ dependencies = index
+ }
+ }
+ require.Len(t, resumeIDs, tt.resumeCount)
+ require.NotEqual(t, -1, firstRoot)
+ require.NotEqual(t, -1, runtime)
+ require.NotEqual(t, -1, dependencies)
+ assert.Less(t, firstRoot, firstResume)
+ assert.Less(t, firstResume, runtime)
+ assert.Less(t, lastResume, dependencies)
+ })
+ }
+}
+
+func TestContinueWorkflowMaintenanceGeneration(t *testing.T) {
+ for _, enabled := range []bool{true, false} {
+ t.Run(map[bool]string{true: "enabled", false: "disabled"}[enabled], func(t *testing.T) {
+ directory := t.TempDir()
+ data := continuationTestData()
+ data.SafeOutputs.NoOp = &NoOpConfig{ReportAsIssue: strPtr("false")}
+ if !enabled {
+ data.SafeOutputs.ContinueWorkflow = nil
+ }
+ require.NoError(t, GenerateMaintenanceWorkflow(context.Background(), GenerateMaintenanceWorkflowOptions{
+ WorkflowDataList: []*WorkflowData{data},
+ WorkflowDir: directory,
+ Version: "v1.0.0",
+ ActionMode: ActionModeDev,
+ }))
+ compiled, err := os.ReadFile(filepath.Join(directory, "agentics-maintenance.yml"))
+ if !enabled {
+ require.ErrorIs(t, err, os.ErrNotExist)
+ return
+ }
+ require.NoError(t, err)
+ var document struct {
+ On struct {
+ Schedule []struct {
+ Cron string `yaml:"cron"`
+ } `yaml:"schedule"`
+ } `yaml:"on"`
+ Jobs map[string]struct {
+ Permissions map[string]string `yaml:"permissions"`
+ } `yaml:"jobs"`
+ }
+ require.NoError(t, yaml.Unmarshal(compiled, &document))
+ require.Len(t, document.On.Schedule, 1)
+ assert.Equal(t, "37 */2 * * *", document.On.Schedule[0].Cron)
+ assert.Equal(t, map[string]string{"contents": "write", "actions": "write"}, document.Jobs["continue_workflow_dispatch"].Permissions)
+ assert.Contains(t, string(compiled), "dispatch_continue_workflow.cjs")
+ assert.Contains(t, string(compiled), "'dispatch_continuations'")
+ })
+ }
+}
diff --git a/pkg/workflow/continue_workflow_test.go b/pkg/workflow/continue_workflow_test.go
new file mode 100644
index 00000000000..aa470a551dc
--- /dev/null
+++ b/pkg/workflow/continue_workflow_test.go
@@ -0,0 +1,224 @@
+//go:build !integration
+
+package workflow
+
+import (
+ "bytes"
+ "strings"
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
+)
+
+func TestContinueWorkflowExperimentalWarning(t *testing.T) {
+ const warning = "Using experimental feature: cross-run continuation"
+ tests := []struct {
+ name string
+ data *WorkflowData
+ enabled bool
+ }{
+ {"ordinary workflow", &WorkflowData{}, false},
+ {"queue observer", &WorkflowData{Tools: map[string]any{"work-queue": map[string]any{}}}, false},
+ {"queue dispatcher", &WorkflowData{Tools: map[string]any{"work-queue": map[string]any{"worker": false}}}, false},
+ {"queue worker", &WorkflowData{Tools: map[string]any{"work-queue": map[string]any{"worker": true}}}, true},
+ {"standalone continuation", continuationTestData(), true},
+ {"both paths", &WorkflowData{
+ Tools: map[string]any{"work-queue": map[string]any{"worker": true}},
+ SafeOutputs: &SafeOutputsConfig{ContinueWorkflow: &ContinueWorkflowConfig{}},
+ }, true},
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ for _, batch := range []bool{false, true} {
+ compiler := NewCompiler()
+ compiler.SetBatchMode(batch)
+ var output bytes.Buffer
+ compiler.emitExperimentalFeatureWarningsTo(tt.data, &output)
+ expected := 0
+ if tt.enabled {
+ expected = 1
+ }
+ assert.Equal(t, expected, compiler.GetWarningCount())
+ assert.Equal(t, expected, compiler.GetExperimentalWarningCount())
+ if batch {
+ assert.Empty(t, output.String())
+ assert.Equal(t, expected, compiler.GetExperimentalFeatureUsage()[warning])
+ } else {
+ assert.Equal(t, tt.enabled, strings.Contains(output.String(), warning))
+ }
+ }
+ })
+ }
+}
+
+func TestContinueWorkflowConfig(t *testing.T) {
+ tests := []struct {
+ name string
+ outputs map[string]any
+ enabled bool
+ hops int
+ }{
+ {"absent", map[string]any{}, false, 0},
+ {"disabled", map[string]any{"continue-workflow": false}, false, 0},
+ {"boolean", map[string]any{"continue-workflow": true}, true, 3},
+ {"null", map[string]any{"continue-workflow": nil}, true, 3},
+ {"empty object", map[string]any{"continue-workflow": map[string]any{}}, true, 3},
+ {"custom budget", map[string]any{"continue-workflow": map[string]any{"max-hops": 10}}, true, 10},
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ config := NewCompiler().parseContinueWorkflowConfig(tt.outputs)
+ if !tt.enabled {
+ assert.Nil(t, config)
+ return
+ }
+ require.NotNil(t, config)
+ assert.Equal(t, tt.hops, config.EffectiveMaxHops())
+ assert.Equal(t, strPtr("1"), config.Max)
+ })
+ }
+}
+
+func continuationTestData() *WorkflowData {
+ return &WorkflowData{
+ On: "on:\n workflow_dispatch:\n",
+ Permissions: "contents: read",
+ SafeOutputs: &SafeOutputsConfig{
+ ContinueWorkflow: &ContinueWorkflowConfig{},
+ CreatePullRequests: &CreatePullRequestsConfig{},
+ },
+ }
+}
+
+func TestContinueWorkflowValidation(t *testing.T) {
+ tests := []struct {
+ name string
+ mutate func(*WorkflowData)
+ error string
+ }{
+ {"valid", func(*WorkflowData) {}, ""},
+ {"disabled", func(d *WorkflowData) { d.SafeOutputs.ContinueWorkflow = nil }, ""},
+ {"missing PR", func(d *WorkflowData) { d.SafeOutputs.CreatePullRequests = nil }, "requires safe-outputs.create-pull-request"},
+ {"target repository", func(d *WorkflowData) { d.SafeOutputs.CreatePullRequests.TargetRepoSlug = "o/r" }, "target-repo or head-repo"},
+ {"head repository", func(d *WorkflowData) { d.SafeOutputs.CreatePullRequests.HeadRepoSlug = "o/r" }, "target-repo or head-repo"},
+ {"preserved name", func(d *WorkflowData) { d.SafeOutputs.CreatePullRequests.PreserveBranchName = true }, "preserve-branch-name"},
+ {"patch transport", func(d *WorkflowData) { d.SafeOutputs.CreatePullRequests.PatchFormat = "am" }, "patch-format: bundle"},
+ {"no checkout", func(d *WorkflowData) { d.CheckoutDisabled = true }, "repository checkout and contents: read"},
+ {"no read permission", func(d *WorkflowData) { d.Permissions = "contents: none" }, "repository checkout and contents: read"},
+ {"cached no read permission", func(d *WorkflowData) {
+ d.CachedPermissions = NewPermissionsFromMap(map[PermissionScope]PermissionLevel{PermissionContents: PermissionNone})
+ }, "contents: read"},
+ {"no dispatch", func(d *WorkflowData) { d.On = "on: push" }, "requires an on.workflow_dispatch trigger"},
+ {"required input", func(d *WorkflowData) {
+ d.On = "on:\n workflow_dispatch:\n inputs:\n task:\n required: true\n"
+ }, "task are required without a default"},
+ {"required input with default", func(d *WorkflowData) {
+ d.On = "on:\n workflow_dispatch:\n inputs:\n task:\n required: true\n default: work\n"
+ }, ""},
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ data := continuationTestData()
+ tt.mutate(data)
+ err := validateContinueWorkflow(data)
+ if tt.error == "" {
+ require.NoError(t, err)
+ } else {
+ require.ErrorContains(t, err, tt.error)
+ }
+ })
+ }
+}
+
+func TestContinueWorkflowHopBudget(t *testing.T) {
+ for _, hops := range []int{-1, 0, 1, 3, 10, 11} {
+ data := continuationTestData()
+ data.SafeOutputs.ContinueWorkflow.MaxHops = &hops
+ err := validateContinueWorkflow(data)
+ if hops >= 1 && hops <= 10 {
+ require.NoError(t, err)
+ } else {
+ require.ErrorContains(t, err, "must be between 1 and 10")
+ }
+ }
+}
+
+func TestContinueWorkflowHandlerConfigSharesPullRequestPolicy(t *testing.T) {
+ data := continuationTestData()
+ pr := data.SafeOutputs.CreatePullRequests
+ pr.BranchPrefix = "automation/"
+ pr.BaseBranch = "release"
+ pr.MaxPatchSize = 512
+ pr.MaxPatchFiles = 20
+ pr.AllowedFiles = []string{"src/**", "plan.md"}
+ pr.SignedCommits = boolPtr(false)
+ pr.GitHubToken = "${{ secrets.PR_TOKEN }}"
+ config := buildContinueWorkflowHandlerConfig(data.SafeOutputs)
+ assert.Equal(t, 1, config["max"])
+ assert.Equal(t, 3, config["max_hops"])
+ assert.Equal(t, "automation/", config["branch_prefix"])
+ assert.Equal(t, "release", config["base_branch"])
+ assert.Equal(t, 512, config["max_patch_size"])
+ assert.Equal(t, 20, config["max_patch_files"])
+ assert.Equal(t, []string{"src/**", "plan.md"}, config["allowed_files"])
+ assert.Equal(t, false, config["signed_commits"])
+ assert.Equal(t, "${{ secrets.PR_TOKEN }}", config["github-token"])
+ data.SafeOutputs.ContinueWorkflow.GitHubToken = "${{ secrets.CONTINUE_TOKEN }}"
+ assert.Equal(t, "${{ secrets.CONTINUE_TOKEN }}", buildContinueWorkflowHandlerConfig(data.SafeOutputs)["github-token"])
+}
+
+func TestContinueWorkflowHandlerConfigUsesContinuationStaging(t *testing.T) {
+ data := continuationTestData()
+ data.SafeOutputs.CreatePullRequests.Staged = templatableBoolPtr("true")
+ config := buildContinueWorkflowHandlerConfig(data.SafeOutputs)
+ assert.NotContains(t, config, "staged")
+
+ data.SafeOutputs.ContinueWorkflow.Staged = templatableBoolPtr("true")
+ config = buildContinueWorkflowHandlerConfig(data.SafeOutputs)
+ assert.Equal(t, true, config["staged"])
+}
+
+func TestContinueWorkflowCheckoutUsesRootCheckoutToken(t *testing.T) {
+ data := continuationTestData()
+ data.CheckoutConfigs = []*CheckoutConfig{{GitHubToken: "${{ secrets.CHECKOUT_TOKEN }}"}}
+ var yaml strings.Builder
+ NewCompiler().generateContinueWorkflowCheckout(&yaml, data)
+ assert.Contains(t, yaml.String(), "github-token: ${{ secrets.CHECKOUT_TOKEN }}")
+ assert.NotContains(t, yaml.String(), "github-token: ${{ secrets.GITHUB_TOKEN }}")
+}
+
+func TestContinueWorkflowStagingIsIndependentOfPullRequest(t *testing.T) {
+ tests := []struct {
+ name string
+ global string
+ continueAs string
+ expected any
+ checkout bool
+ }{
+ {"unstaged continuation with staged PR", "", "", nil, true},
+ {"global staged", "true", "", nil, false},
+ {"global staged cannot be overridden", "true", "false", false, false},
+ {"explicit staged", "", "true", true, false},
+ {"expression", "", "${{ inputs.preview }}", "${{ inputs.preview }}", true},
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ config := continuationTestData().SafeOutputs
+ config.CreatePullRequests.Staged = templatableBoolPtr("true")
+ if tt.global != "" {
+ config.Staged = templatableBoolPtr(tt.global)
+ }
+ if tt.continueAs != "" {
+ config.ContinueWorkflow.Staged = templatableBoolPtr(tt.continueAs)
+ }
+ handler := buildContinueWorkflowHandlerConfig(config)
+ if tt.expected == nil {
+ assert.NotContains(t, handler, "staged")
+ } else {
+ assert.Equal(t, tt.expected, handler["staged"])
+ }
+ assert.Equal(t, tt.checkout, usesPatchesAndCheckouts(config))
+ })
+ }
+}
diff --git a/pkg/workflow/js/safe_outputs_tools.json b/pkg/workflow/js/safe_outputs_tools.json
index 60b63c9f0ab..388a7fbd177 100644
--- a/pkg/workflow/js/safe_outputs_tools.json
+++ b/pkg/workflow/js/safe_outputs_tools.json
@@ -585,6 +585,31 @@
}
}
},
+ {
+ "name": "continue_workflow",
+ "description": "Hand the committed progress of this run to a fresh run of the same workflow on the same work branch, when the task cannot be finished within this run. Before calling it, commit your work on the work branch, including plan.md at the repository root recording completed work and the remaining steps. Do not call create_pull_request in the same run: the final run of the chain creates the single pull request. Calls are limited by the configured number of continuation hops.",
+ "inputSchema": {
+ "type": "object",
+ "required": ["reason"],
+ "properties": {
+ "reason": {
+ "type": "string",
+ "description": "Why another run is needed to finish the task (for example, the remaining work does not fit in this run).",
+ "maxLength": 2000
+ },
+ "branch": {
+ "type": "string",
+ "description": "Work branch containing the committed progress. If omitted, uses the current working branch. In a continued run it must be the branch this run resumed."
+ },
+ "next_steps": {
+ "type": "string",
+ "description": "Short summary of the next steps the following run should take; the full plan belongs in plan.md.",
+ "maxLength": 2000
+ }
+ },
+ "additionalProperties": false
+ }
+ },
{
"name": "create_pull_request",
"description": "Create a new GitHub pull request to propose code changes. Use this after making file edits to submit them for review and merging. The PR will be created from the current branch with your committed changes. This is a write-once declaration for a real intended PR, not a sandbox or probe: do not call it with placeholder content, test titles/bodies, or auth experiments. If you are not ready to open the real PR, use noop or report_incomplete instead. For code review comments on an existing PR, use create_pull_request_review_comment instead.",
diff --git a/pkg/workflow/maintenance_workflow.go b/pkg/workflow/maintenance_workflow.go
index 2046dbfb9d3..c037d11f139 100644
--- a/pkg/workflow/maintenance_workflow.go
+++ b/pkg/workflow/maintenance_workflow.go
@@ -207,9 +207,10 @@ func GenerateMaintenanceWorkflow(ctx context.Context, opts GenerateMaintenanceWo
hasExpires, minExpires, triggerReason := scanWorkflowsForExpires(workflowDataList, repoConfig)
compactionLedgers := collectMaintenanceCompactionLedgers(workflowDataList)
hasWorkQueue := slices.ContainsFunc(workflowDataList, isWorkQueueEnabled)
+ hasContinuations := slices.ContainsFunc(workflowDataList, hasContinueWorkflow)
hasSteering := slices.ContainsFunc(workflowDataList, isSteeringIssueEnabled)
- if !hasExpires && len(compactionLedgers) == 0 && !hasWorkQueue && !hasSteering {
+ if !hasExpires && len(compactionLedgers) == 0 && !hasWorkQueue && !hasContinuations && !hasSteering {
maintenanceLog.Print("No workflows require scheduled maintenance, skipping maintenance workflow generation")
// No maintenance workflow means no scheduled close-expired-issues consumer.
@@ -268,6 +269,8 @@ func GenerateMaintenanceWorkflow(ctx context.Context, opts GenerateMaintenanceWo
if triggerReason == "" {
if hasWorkQueue {
triggerReason = "work queue maintenance"
+ } else if hasContinuations {
+ triggerReason = "continue-workflow dispatch"
} else if hasSteering {
triggerReason = "steering issue cleanup"
} else {
@@ -291,6 +294,11 @@ func GenerateMaintenanceWorkflow(ctx context.Context, opts GenerateMaintenanceWo
if !hasExpires {
cronDays = 7 // maps to daily in generateMaintenanceCron (> 4 days)
}
+ // Continuation hops are dispatched immediately by the continue_workflow handler; the
+ // schedule only retries dispatches that failed, so it runs every 2 hours.
+ if hasContinuations {
+ cronDays = 1
+ }
cronSchedule, scheduleDesc := generateMaintenanceCron(cronDays)
maintenanceLog.Printf("Maintenance schedule: %s (%s)", cronSchedule, scheduleDesc)
@@ -330,6 +338,7 @@ func GenerateMaintenanceWorkflow(ctx context.Context, opts GenerateMaintenanceWo
copilotOrgBilling: copilotOrgBilling,
compactionLedgers: compactionLedgers,
hasWorkQueue: hasWorkQueue,
+ hasContinuations: hasContinuations,
hasCacheMemory: hasCacheMemory,
hasSteering: hasSteering,
})
@@ -437,6 +446,14 @@ func handleMaintenanceDisabled(workflowDataList []*WorkflowData, workflowDir str
}
}
+ for _, workflowData := range workflowDataList {
+ if hasContinueWorkflow(workflowData) {
+ fmt.Fprintln(os.Stderr, console.FormatWarningMessage(
+ fmt.Sprintf("Workflow '%s' uses continue-workflow but maintenance is disabled in aw.json. "+
+ "Continuation runs will not be dispatched until maintenance is re-enabled.", workflowData.Name)))
+ }
+ }
+
// Ledger compaction is owned by maintenance; without it ledgers grow until they reach shard limits.
for _, ledger := range collectMaintenanceCompactionLedgers(workflowDataList) {
fmt.Fprintln(os.Stderr, console.FormatWarningMessage(
diff --git a/pkg/workflow/maintenance_workflow_continue_workflow.go b/pkg/workflow/maintenance_workflow_continue_workflow.go
new file mode 100644
index 00000000000..94b42ddd6c8
--- /dev/null
+++ b/pkg/workflow/maintenance_workflow_continue_workflow.go
@@ -0,0 +1,39 @@
+package workflow
+
+import "strings"
+
+// maintenanceDispatchContinuationsOperation is the Agentic Maintenance operation that
+// dispatches queued continue-workflow hops. The continue_workflow handler requests it right
+// after recording a hop; the schedule retries dispatches that failed.
+const maintenanceDispatchContinuationsOperation = "dispatch_continuations"
+
+// buildMaintenanceContinueWorkflowJob dispatches queued continuation hops.
+//
+// Each hop is claimed in the continuation ledger (compare-and-swap) before the workflow is
+// dispatched, so overlapping maintenance runs cannot start the same hop twice.
+func buildMaintenanceContinueWorkflowJob(opts buildMaintenanceWorkflowYAMLOptions, setupActionRef string) string {
+ var b strings.Builder
+ b.WriteString(`
+ continue_workflow_dispatch:
+ name: Dispatch workflow continuations
+ if: ${{ ` + RenderCondition(buildNotForkAndScheduleOnlyOrOperation(maintenanceDispatchContinuationsOperation)) + ` }}
+ runs-on: ` + opts.runsOnValue + `
+ # contents: write updates the continuation ledger branch; actions: write dispatches the next run.
+ permissions:
+ actions: write
+ contents: write
+ steps:
+`)
+ writeMaintenanceConditionalActionsCheckoutStep(&b, opts)
+ writeMaintenanceSetupScriptsStep(&b, setupActionRef)
+ b.WriteString(` - name: Dispatch queued continuation runs
+ uses: ` + getCachedActionPinFromResolver("actions/github-script", opts.resolver) + `
+ with:
+ script: |
+ const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
+ setupGlobals(core, github, context, exec, io, getOctokit);
+ const { main } = require('${{ runner.temp }}/gh-aw/actions/dispatch_continue_workflow.cjs');
+ await main();
+`)
+ return b.String()
+}
diff --git a/pkg/workflow/maintenance_workflow_yaml.go b/pkg/workflow/maintenance_workflow_yaml.go
index 4d4e49a4798..6ef08ce6225 100644
--- a/pkg/workflow/maintenance_workflow_yaml.go
+++ b/pkg/workflow/maintenance_workflow_yaml.go
@@ -30,6 +30,7 @@ type buildMaintenanceWorkflowYAMLOptions struct {
copilotOrgBilling bool // all Copilot workflows use copilot-requests: write (GITHUB_TOKEN); COPILOT_GITHUB_TOKEN is not required
compactionLedgers []LedgerConfig
hasWorkQueue bool
+ hasContinuations bool
hasCacheMemory bool
hasSteering bool
}
@@ -75,6 +76,9 @@ func buildMaintenanceWorkflowYAML(
if opts.hasWorkQueue {
yaml.WriteString(buildMaintenanceWorkQueueCompactionJobs(opts, setupActionRef))
}
+ if opts.hasContinuations {
+ yaml.WriteString(buildMaintenanceContinueWorkflowJob(opts, setupActionRef))
+ }
finalYAML, err := finalizeRunnerTempSafety(yaml.String())
if err != nil {
return "", fmt.Errorf("runner temp safety: %w", err)
@@ -142,8 +146,8 @@ func buildMaintenanceWorkflowTriggerYAML(
yaml.WriteString(" issues:\n types: [" + types + "]\n")
}
hasLedgers := len(opts.compactionLedgers) > 0
- yaml.WriteString(buildMaintenanceDispatchInputsYAML(hasLedgers, opts.hasCacheMemory))
- yaml.WriteString(buildMaintenanceWorkflowCallYAML(appliedRunURLDescription, appliedRunURLValue, hasLedgers, opts.hasCacheMemory, opts.maintenanceConfig))
+ yaml.WriteString(buildMaintenanceDispatchInputsYAML(hasLedgers, opts.hasCacheMemory, opts.hasContinuations))
+ yaml.WriteString(buildMaintenanceWorkflowCallYAML(appliedRunURLDescription, appliedRunURLValue, hasLedgers, opts.hasCacheMemory, opts.hasContinuations, opts.maintenanceConfig))
yaml.WriteString("\n# Jobs request only the permissions needed for their individual maintenance operations.\npermissions: {}\n\n# Serialize maintenance runs to avoid overlapping writes to repository resources.\nconcurrency:\n group: ${{ github.workflow }}-${{ github.repository }}\n cancel-in-progress: false\n\njobs:\n")
return yaml.String()
}
@@ -153,15 +157,18 @@ const maintenanceLedgerInputDescription = "Ledger name to compact when operation
// buildMaintenanceDispatchInputsYAML returns the workflow_dispatch trigger block.
// When compaction-enabled ledgers exist, it adds the compact_ledger operation and a ledger input.
-func buildMaintenanceDispatchInputsYAML(hasLedgers, hasCacheMemory bool) string {
+func buildMaintenanceDispatchInputsYAML(hasLedgers, hasCacheMemory, hasContinuations bool) string {
ledgerOption := ""
ledgerInput := ""
cacheOption := ""
if hasCacheMemory {
cacheOption = " - 'clean_cache_memories'\n"
}
+ if hasContinuations {
+ ledgerOption = " - '" + maintenanceDispatchContinuationsOperation + "'\n"
+ }
if hasLedgers {
- ledgerOption = " - '" + maintenanceCompactLedgerOperation + "'\n"
+ ledgerOption += " - '" + maintenanceCompactLedgerOperation + "'\n"
ledgerInput = ` ledger:
description: '` + maintenanceLedgerInputDescription + `'
required: false
@@ -198,13 +205,16 @@ func buildMaintenanceDispatchInputsYAML(hasLedgers, hasCacheMemory bool) string
}
// buildMaintenanceWorkflowCallYAML returns the workflow_call trigger block.
-func buildMaintenanceWorkflowCallYAML(appliedRunURLDescription, appliedRunURLValue string, hasLedgers, hasCacheMemory bool, config *MaintenanceConfig) string {
+func buildMaintenanceWorkflowCallYAML(appliedRunURLDescription, appliedRunURLValue string, hasLedgers, hasCacheMemory, hasContinuations bool, config *MaintenanceConfig) string {
operations := "disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues"
if hasCacheMemory {
operations += ", clean_cache_memories"
}
operations += ", update_pull_request_branches, validate, forecast"
- completedOperation := maintenanceCompletedOperationExpression(hasLedgers, hasCacheMemory, config)
+ if hasContinuations {
+ operations += ", " + maintenanceDispatchContinuationsOperation
+ }
+ completedOperation := maintenanceCompletedOperationExpression(hasLedgers, hasCacheMemory, hasContinuations, config)
ledgerInput := ""
if hasLedgers {
operations += ", " + maintenanceCompactLedgerOperation
@@ -237,7 +247,7 @@ func buildMaintenanceWorkflowCallYAML(appliedRunURLDescription, appliedRunURLVal
`
}
-func maintenanceCompletedOperationExpression(hasLedgers, hasCacheMemory bool, config *MaintenanceConfig) string {
+func maintenanceCompletedOperationExpression(hasLedgers, hasCacheMemory, hasContinuations bool, config *MaintenanceConfig) string {
enabledOperations := []string{}
for _, operation := range []struct{ name, job string }{
{"safe_outputs", "apply_safe_outputs"},
@@ -258,6 +268,9 @@ func maintenanceCompletedOperationExpression(hasLedgers, hasCacheMemory bool, co
if hasLedgers {
enabledOperations = append(enabledOperations, "inputs.operation == '"+maintenanceCompactLedgerOperation+"'")
}
+ if hasContinuations {
+ enabledOperations = append(enabledOperations, "inputs.operation == '"+maintenanceDispatchContinuationsOperation+"'")
+ }
completion := "''"
if len(enabledOperations) > 0 {
completion = "(" + strings.Join(enabledOperations, " || ") + ") && inputs.operation || ''"
diff --git a/pkg/workflow/maintenance_workflow_yaml_jobs.go b/pkg/workflow/maintenance_workflow_yaml_jobs.go
index 6a5469c75b8..8e78f4db550 100644
--- a/pkg/workflow/maintenance_workflow_yaml_jobs.go
+++ b/pkg/workflow/maintenance_workflow_yaml_jobs.go
@@ -228,6 +228,9 @@ func maintenanceRunOperationExclusions(opts buildMaintenanceWorkflowYAMLOptions)
if len(opts.compactionLedgers) > 0 {
excluded = append(excluded, maintenanceCompactLedgerOperation)
}
+ if opts.hasContinuations {
+ excluded = append(excluded, maintenanceDispatchContinuationsOperation)
+ }
return excluded
}
diff --git a/pkg/workflow/mcp_manifest.go b/pkg/workflow/mcp_manifest.go
index b8ac89536d1..dbe50b72b61 100644
--- a/pkg/workflow/mcp_manifest.go
+++ b/pkg/workflow/mcp_manifest.go
@@ -10,10 +10,14 @@ import (
)
func workQueueMCPToolNames(data *WorkflowData) []string {
+ role := workQueueRuntimeRole(data)
tools := []string{"work_queue_read", "work_queue_explain"}
- if workQueueRuntimeRole(data) != "observer" {
+ if role != "observer" {
tools = append(tools, "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish")
}
+ if role == "worker" {
+ tools = append(tools, "work_queue_continue")
+ }
return tools
}
diff --git a/pkg/workflow/mcp_renderer_test.go b/pkg/workflow/mcp_renderer_test.go
index 416c178d564..f5461dd854d 100644
--- a/pkg/workflow/mcp_renderer_test.go
+++ b/pkg/workflow/mcp_renderer_test.go
@@ -143,6 +143,9 @@ func TestRenderWorkQueueMCPUsesSnapshotAndFinishIntentMounts(t *testing.T) {
if !strings.Contains(rendered, constants.WorkQueueFinishIntentMount) || !strings.Contains(rendered, `"work_queue_claim_finish"`) {
t.Fatalf("expected the finish tool to use the safe-output intent mount: %s", rendered)
}
+ if !strings.Contains(rendered, `"work_queue_continue"`) {
+ t.Fatalf("expected the dependent Work continuation helper: %s", rendered)
+ }
if strings.Contains(rendered, "GITHUB_TOKEN") || strings.Contains(rendered, constants.DefaultWorkspaceMount) || strings.Contains(rendered, constants.DefaultTmpGhAwMount) {
t.Fatalf("queue MCP must not receive Git credentials or workspace mounts: %s", rendered)
}
@@ -179,7 +182,7 @@ func TestRenderWorkQueueObserverMCPIsReadOnly(t *testing.T) {
if !strings.Contains(rendered, constants.WorkQueueSnapshotMount) || !strings.Contains(rendered, `"observer"`) {
t.Fatalf("observer requires its read-only snapshot and protected role: %s", rendered)
}
- for _, denied := range []string{constants.WorkQueueFinishIntentMount, "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "GITHUB_TOKEN", constants.DefaultWorkspaceMount, constants.DefaultTmpGhAwMount} {
+ for _, denied := range []string{constants.WorkQueueFinishIntentMount, "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish", "work_queue_continue", "GITHUB_TOKEN", constants.DefaultWorkspaceMount, constants.DefaultTmpGhAwMount} {
if strings.Contains(rendered, denied) {
t.Fatalf("observer MCP must not expose %s: %s", denied, rendered)
}
@@ -208,10 +211,18 @@ func TestWorkQueueMCPIsRegisteredInManifest(t *testing.T) {
{Tools: map[string]any{"work-queue": true}, SafeOutputs: &SafeOutputsConfig{DispatchWorkflow: &DispatchWorkflowConfig{Workflows: []string{"worker"}}}},
} {
servers := collectMCPServersForManifest(participant)
+ expectedTools := 5
+ worker := workQueueRuntimeRole(participant) == "worker"
+ if worker {
+ expectedTools++
+ }
found := false
for _, server := range servers {
- if server.Name == "work-queue" && len(server.Tools) == 5 {
+ if server.Name == "work-queue" && len(server.Tools) == expectedTools {
found = true
+ if strings.Contains(strings.Join(server.Tools, ","), "work_queue_continue") != worker {
+ t.Fatalf("continuation helper must be worker-only, got %#v", server.Tools)
+ }
}
}
if !found {
diff --git a/pkg/workflow/prompt_constants.go b/pkg/workflow/prompt_constants.go
index b095d148cc1..5ff99281dc6 100644
--- a/pkg/workflow/prompt_constants.go
+++ b/pkg/workflow/prompt_constants.go
@@ -24,6 +24,7 @@ const (
safeOutputsMCPTransportPromptFile = "safe_outputs_mcp_transport_prompt.md"
safeOutputsCLIOnlyTransportPromptFile = "safe_outputs_cli_only_transport_prompt.md"
safeOutputsCreatePRFile = "safe_outputs_create_pull_request.md"
+ safeOutputsContinueWorkflowFile = "safe_outputs_continue_workflow.md"
safeOutputsSteeringIssueFile = "safe_outputs_steering_issue.md"
safeOutputsPushToBranchFile = "safe_outputs_push_to_pr_branch.md"
safeOutputsCommentMemoryFile = "safe_outputs_comment_memory.md"
diff --git a/pkg/workflow/safe_output_handlers.go b/pkg/workflow/safe_output_handlers.go
index 2e98b31cf5c..7f63f9a8cb2 100644
--- a/pkg/workflow/safe_output_handlers.go
+++ b/pkg/workflow/safe_output_handlers.go
@@ -269,6 +269,22 @@ var safeOutputHandlers = []safeOutputHandlerDescriptor{
return permissions
},
},
+ {
+ Key: "continue-workflow",
+ StructField: "ContinueWorkflow",
+ ToolName: "continue_workflow",
+ NewConfig: func() any { return &ContinueWorkflowConfig{} },
+ PermissionBuilder: func(safeOutputs *SafeOutputsConfig) *Permissions {
+ if !isSafeOutputHandlerEnabledAndUnstaged(safeOutputs, "ContinueWorkflow") {
+ return nil
+ }
+ // contents: write pushes the work branch and the continuation ledger;
+ // actions: write asks Agentic Maintenance to dispatch the next hop.
+ permissions := NewPermissionsContentsWrite()
+ permissions.Set(PermissionActions, PermissionWrite)
+ return permissions
+ },
+ },
{
Key: "create-pull-request-review-comment",
StructField: "CreatePullRequestReviewComments",
diff --git a/pkg/workflow/safe_outputs_config_extraction.go b/pkg/workflow/safe_outputs_config_extraction.go
index 890d00f2dbb..1928a99a539 100644
--- a/pkg/workflow/safe_outputs_config_extraction.go
+++ b/pkg/workflow/safe_outputs_config_extraction.go
@@ -316,6 +316,12 @@ func (c *Compiler) extractSafeOutputsConfig(frontmatter map[string]any) *SafeOut
config.SetIssueType = setIssueTypeConfig
}
+ // Handle continue-workflow
+ continueWorkflowConfig := c.parseContinueWorkflowConfig(outputMap)
+ if continueWorkflowConfig != nil {
+ config.ContinueWorkflow = continueWorkflowConfig
+ }
+
// Handle set-issue-field
setIssueFieldConfig := c.parseSetIssueFieldConfig(outputMap)
if setIssueFieldConfig != nil {
diff --git a/pkg/workflow/safe_outputs_config_types.go b/pkg/workflow/safe_outputs_config_types.go
index 7ba5c3da4b9..0fad182c5f9 100644
--- a/pkg/workflow/safe_outputs_config_types.go
+++ b/pkg/workflow/safe_outputs_config_types.go
@@ -94,6 +94,7 @@ type SafeOutputsConfig struct {
LinkSubIssue *LinkSubIssueConfig `yaml:"link-sub-issue,omitempty"` // Link issues as sub-issues
HideComment *HideCommentConfig `yaml:"hide-comment,omitempty"` // Hide comments
SetIssueType *SetIssueTypeConfig `yaml:"set-issue-type,omitempty"` // Set the type of an issue (empty string clears the type)
+ ContinueWorkflow *ContinueWorkflowConfig `yaml:"continue-workflow,omitempty"` // Opt-in: continue long-running work in fresh runs on one work branch
SetIssueField *SetIssueFieldConfig `yaml:"set-issue-field,omitempty"` // Set a single issue field value by name/value
DispatchWorkflow *DispatchWorkflowConfig `yaml:"dispatch-workflow,omitempty"` // Dispatch workflow_dispatch events to other workflows
WorkQueueEnabled bool `yaml:"-"` // Internal work-queue dispatcher flag
diff --git a/pkg/workflow/safe_outputs_handler_manager_token_test.go b/pkg/workflow/safe_outputs_handler_manager_token_test.go
index 9223fa70099..daf76de0227 100644
--- a/pkg/workflow/safe_outputs_handler_manager_token_test.go
+++ b/pkg/workflow/safe_outputs_handler_manager_token_test.go
@@ -438,6 +438,9 @@ func enableHandlerForIsolationTest(t *testing.T, safeOutputs *SafeOutputsConfig,
t.Helper()
switch handlerName {
+ case "continue_workflow":
+ safeOutputs.CreatePullRequests = &CreatePullRequestsConfig{}
+ safeOutputs.ContinueWorkflow = &ContinueWorkflowConfig{}
case "dispatch_repository":
safeOutputs.DispatchRepository = &DispatchRepositoryConfig{
Tools: map[string]*DispatchRepositoryToolConfig{
diff --git a/pkg/workflow/safe_outputs_handler_registry_pull_requests.go b/pkg/workflow/safe_outputs_handler_registry_pull_requests.go
index 5111c71e9a9..f84fe247d8c 100644
--- a/pkg/workflow/safe_outputs_handler_registry_pull_requests.go
+++ b/pkg/workflow/safe_outputs_handler_registry_pull_requests.go
@@ -3,6 +3,7 @@ package workflow
// pullRequestHandlerRegistry contains pull request lifecycle and review handler builders.
var pullRequestHandlerRegistry = map[string]handlerBuilder{
"create_pull_request": buildCreatePullRequestHandlerConfig,
+ "continue_workflow": buildContinueWorkflowHandlerConfig,
"push_to_pull_request_branch": func(cfg *SafeOutputsConfig) map[string]any {
if cfg.PushToPullRequestBranch == nil {
return nil
diff --git a/pkg/workflow/safe_outputs_handler_registry_test.go b/pkg/workflow/safe_outputs_handler_registry_test.go
index 37354e55288..7b138a184b1 100644
--- a/pkg/workflow/safe_outputs_handler_registry_test.go
+++ b/pkg/workflow/safe_outputs_handler_registry_test.go
@@ -14,7 +14,7 @@ func TestHandlerRegistryDomainComposition(t *testing.T) {
}{
{name: "issueHandlerRegistry", registry: issueHandlerRegistry, wantKeys: []string{"create_issue", "close_issue", "update_issue", "link_sub_issue", "set_issue_type", "set_issue_field", "add_labels", "remove_labels", "replace_label", "assign_milestone"}},
{name: "discussionHandlerRegistry", registry: discussionHandlerRegistry, wantKeys: []string{"create_discussion", "close_discussion", "update_discussion"}},
- {name: "pullRequestHandlerRegistry", registry: pullRequestHandlerRegistry, wantKeys: []string{"create_pull_request", "push_to_pull_request_branch", "update_pull_request", "merge_pull_request", "close_pull_request", "mark_pull_request_as_ready_for_review", "add_reviewer", "dismiss_pull_request_review", "submit_pull_request_review", "resolve_pull_request_review_thread", "create_pull_request_review_comment", "reply_to_pull_request_review_comment"}},
+ {name: "pullRequestHandlerRegistry", registry: pullRequestHandlerRegistry, wantKeys: []string{"create_pull_request", "continue_workflow", "push_to_pull_request_branch", "update_pull_request", "merge_pull_request", "close_pull_request", "mark_pull_request_as_ready_for_review", "add_reviewer", "dismiss_pull_request_review", "submit_pull_request_review", "resolve_pull_request_review_thread", "create_pull_request_review_comment", "reply_to_pull_request_review_comment"}},
{name: "workflowHandlerRegistry", registry: workflowHandlerRegistry, wantKeys: []string{"approve_workflow_run", "create_code_scanning_alert", "create_check_run", "dispatch_workflow", "dispatch_repository", "call_workflow", "autofix_code_scanning_alert", "upload_code_coverage", "upload_asset", "upload_artifact"}},
{name: "projectHandlerRegistry", registry: projectHandlerRegistry, wantKeys: []string{"create_project", "update_project", "create_project_status_update"}},
{name: "assignmentHandlerRegistry", registry: assignmentHandlerRegistry, wantKeys: []string{"assign_to_agent", "assign_to_user", "unassign_from_user", "create_agent_session"}},
diff --git a/pkg/workflow/safe_outputs_max_validation.go b/pkg/workflow/safe_outputs_max_validation.go
index cd9cd390585..a13c0d8072a 100644
--- a/pkg/workflow/safe_outputs_max_validation.go
+++ b/pkg/workflow/safe_outputs_max_validation.go
@@ -198,6 +198,11 @@ func validateSafeOutputsMax(config *SafeOutputsConfig) error {
return err
}
}
+ if config.ContinueWorkflow != nil {
+ if err := checkMaxField("continue_workflow", config.ContinueWorkflow.Max); err != nil {
+ return err
+ }
+ }
if config.DispatchWorkflow != nil {
if err := checkMaxField("dispatch_workflow", config.DispatchWorkflow.Max); err != nil {
return err
diff --git a/pkg/workflow/safe_outputs_runtime.go b/pkg/workflow/safe_outputs_runtime.go
index b565aa80d1d..d006b7e6ba5 100644
--- a/pkg/workflow/safe_outputs_runtime.go
+++ b/pkg/workflow/safe_outputs_runtime.go
@@ -47,7 +47,8 @@ func usesPatchesAndCheckouts(safeOutputs *SafeOutputsConfig) bool {
}
createPRNeedsCheckout := safeOutputs.CreatePullRequests != nil && !isHandlerStaged(templatableBoolIsTrue(safeOutputs.Staged), safeOutputs.CreatePullRequests.Staged)
pushToPRNeedsCheckout := safeOutputs.PushToPullRequestBranch != nil && !isHandlerStaged(templatableBoolIsTrue(safeOutputs.Staged), safeOutputs.PushToPullRequestBranch.Staged)
- result := createPRNeedsCheckout || pushToPRNeedsCheckout
+ continueNeedsCheckout := safeOutputs.ContinueWorkflow != nil && !isHandlerStaged(templatableBoolIsTrue(safeOutputs.Staged), safeOutputs.ContinueWorkflow.Staged)
+ result := createPRNeedsCheckout || pushToPRNeedsCheckout || continueNeedsCheckout
safeOutputsRuntimeLog.Printf("usesPatchesAndCheckouts: createPR=%v(needsCheckout=%v), pushToPRBranch=%v(needsCheckout=%v), result=%v",
safeOutputs.CreatePullRequests != nil, createPRNeedsCheckout,
safeOutputs.PushToPullRequestBranch != nil, pushToPRNeedsCheckout,
@@ -61,6 +62,16 @@ func usesPatchesAndCheckouts(safeOutputs *SafeOutputsConfig) bool {
// OR of whichever of those two safe outputs are configured. Callers should only invoke this
// when at least one of the two is configured (the default branch assumes push_to_pull_request_branch).
func buildPRCheckoutCondition(safeOutputs *SafeOutputsConfig) ConditionNode {
+ if safeOutputs.ContinueWorkflow != nil {
+ types := []ConditionNode{BuildSafeOutputType("continue_workflow")}
+ if safeOutputs.CreatePullRequests != nil {
+ types = append(types, BuildSafeOutputType("create_pull_request"))
+ }
+ if safeOutputs.PushToPullRequestBranch != nil {
+ types = append(types, BuildSafeOutputType("push_to_pull_request_branch"))
+ }
+ return BuildDisjunction(false, types...)
+ }
switch {
case safeOutputs.CreatePullRequests != nil && safeOutputs.PushToPullRequestBranch != nil:
return BuildOr(
diff --git a/pkg/workflow/safe_outputs_state.go b/pkg/workflow/safe_outputs_state.go
index cfbfb37c398..e0145558438 100644
--- a/pkg/workflow/safe_outputs_state.go
+++ b/pkg/workflow/safe_outputs_state.go
@@ -95,6 +95,7 @@ func hasAnySafeOutputEnabled(safeOutputs *SafeOutputsConfig) bool { //nolint:lar
safeOutputs.ReportIncomplete != nil ||
safeOutputs.SetIssueType != nil ||
safeOutputs.SetIssueField != nil ||
+ safeOutputs.ContinueWorkflow != nil ||
safeOutputs.NoOp != nil ||
hasLinearSafeOutputs(safeOutputs)
}
@@ -166,6 +167,7 @@ func hasNonBuiltinSafeOutputsEnabled(safeOutputs *SafeOutputsConfig) bool { //no
safeOutputs.DispatchRepository != nil ||
safeOutputs.CallWorkflow != nil ||
safeOutputs.SetIssueType != nil ||
+ safeOutputs.ContinueWorkflow != nil ||
safeOutputs.SetIssueField != nil || // non-builtin safe output field
hasLinearSafeOutputs(safeOutputs)
}
diff --git a/pkg/workflow/safe_outputs_tools_computation.go b/pkg/workflow/safe_outputs_tools_computation.go
index 637956b7da3..624c728b74f 100644
--- a/pkg/workflow/safe_outputs_tools_computation.go
+++ b/pkg/workflow/safe_outputs_tools_computation.go
@@ -219,6 +219,10 @@ func computeEnabledToolNames(data *WorkflowData) map[string]struct {
enabledTools["set_issue_type"] = struct {
}{}
}
+ if data.SafeOutputs.ContinueWorkflow != nil {
+ enabledTools["continue_workflow"] = struct {
+ }{}
+ }
if data.SafeOutputs.SetIssueField != nil {
enabledTools["set_issue_field"] = struct {
}{}
diff --git a/pkg/workflow/safe_outputs_validation_config.go b/pkg/workflow/safe_outputs_validation_config.go
index f9fd6ff2c3e..3e1e8df0771 100644
--- a/pkg/workflow/safe_outputs_validation_config.go
+++ b/pkg/workflow/safe_outputs_validation_config.go
@@ -272,6 +272,14 @@ var ValidationConfig = map[string]TypeValidationConfig{
"repo": {Type: "string", MaxLength: 256}, // Optional: target repository in format "owner/repo"
},
},
+ "continue_workflow": {
+ DefaultMax: 1,
+ Fields: map[string]FieldValidation{
+ "reason": {Required: true, Type: "string", Sanitize: true, MaxLength: 2000},
+ "branch": {Required: true, Type: "string", Sanitize: true, MaxLength: 256},
+ "next_steps": {Type: "string", Sanitize: true, MaxLength: 2000},
+ },
+ },
"set_issue_type": {
DefaultMax: 5,
Fields: map[string]FieldValidation{
diff --git a/pkg/workflow/unified_prompt_step.go b/pkg/workflow/unified_prompt_step.go
index ddfd98f1a26..e457475bfd2 100644
--- a/pkg/workflow/unified_prompt_step.go
+++ b/pkg/workflow/unified_prompt_step.go
@@ -444,10 +444,10 @@ func (c *Compiler) generateUnifiedPromptCreationStep(yaml *strings.Builder, buil
// Generate the step with all environment variables. Prompt text and expression
// values are passed as environment data and never interpolated into JavaScript.
yaml.WriteString(" - name: Create prompt with built-in context\n")
- fmt.Fprintf(yaml, " uses: %s\n", getCachedActionPin("actions/github-script", data))
+ fmt.Fprintf(yaml, " uses: %s\n", getCachedActionPin("actions/github-script", data)) //nolint:fprintferrorunchecked // strings.Builder writes cannot fail.
yaml.WriteString(" env:\n")
yaml.WriteString(" GH_AW_ACTIONS_DIR: ${{ runner.temp }}/gh-aw/actions\n")
- fmt.Fprintf(yaml, " GH_AW_PROMPT: %s\n", constants.AwPromptsFileExpr)
+ fmt.Fprintf(yaml, " GH_AW_PROMPT: %s\n", constants.AwPromptsFileExpr) //nolint:fprintferrorunchecked // strings.Builder writes cannot fail.
if data.SafeOutputs != nil {
yaml.WriteString(" GH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl\n")
}
@@ -456,7 +456,7 @@ func (c *Compiler) generateUnifiedPromptCreationStep(yaml *strings.Builder, buil
// Add all environment variables in sorted order for consistency
envKeys := sliceutil.SortedKeys(allEnvVars)
for _, key := range envKeys {
- fmt.Fprintf(yaml, " %s: %s\n", key, allEnvVars[key])
+ fmt.Fprintf(yaml, " %s: %s\n", key, allEnvVars[key]) //nolint:fprintferrorunchecked // strings.Builder writes cannot fail.
}
for _, key := range sliceutil.SortedKeys(renderContent) {
writeYAMLEnv(yaml, " ", key, renderContent[key])
@@ -569,6 +569,9 @@ func buildSafeOutputsSections(safeOutputs *SafeOutputsConfig, commentMemory *Com
if safeOutputs.CreatePullRequests != nil {
tools = append(tools, toolWithMaxBudget("create_pull_request", safeOutputs.CreatePullRequests.Max))
}
+ if safeOutputs.ContinueWorkflow != nil {
+ tools = append(tools, toolWithMaxBudget("continue_workflow", safeOutputs.ContinueWorkflow.Max))
+ }
if safeOutputs.ClosePullRequests != nil {
tools = append(tools, toolWithMaxBudget("close_pull_request", safeOutputs.ClosePullRequests.Max))
}
@@ -774,6 +777,9 @@ func buildSafeOutputsSections(safeOutputs *SafeOutputsConfig, commentMemory *Com
if safeOutputs.CreatePullRequests != nil {
sections = append(sections, PromptSection{Content: safeOutputsCreatePRFile, IsFile: true})
}
+ if safeOutputs.ContinueWorkflow != nil {
+ sections = append(sections, PromptSection{Content: safeOutputsContinueWorkflowFile, IsFile: true})
+ }
if isSteeringIssueEnabled(&WorkflowData{SafeOutputs: safeOutputs}) {
steeringContent := "\nThe steering issue for this run is #${{ needs.activation.outputs.steering_issue_number }}.\n"
extractor := NewExpressionExtractor()
diff --git a/pkg/workflow/work_queue_claim_adapters.go b/pkg/workflow/work_queue_claim_adapters.go
index b5cb3684af0..435c3f3527e 100644
--- a/pkg/workflow/work_queue_claim_adapters.go
+++ b/pkg/workflow/work_queue_claim_adapters.go
@@ -20,6 +20,7 @@ var workQueueAdapterProjectionPattern = regexp.MustCompile(`^[A-Za-z][A-Za-z_0-9
var workQueueAdapterBranchPattern = regexp.MustCompile(`^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*$`)
var workQueueAdapterRestRoutePattern = regexp.MustCompile(`^/repos/\{owner\}/\{repo\}/[A-Za-z0-9_{}./-]+$`)
var workQueueAdapterRestFieldPattern = regexp.MustCompile(`\{([A-Za-z_][A-Za-z_0-9]*)\}`)
+var workQueueCheckpointOutputPattern = regexp.MustCompile(`^[a-z][a-z0-9_]{0,127}$`)
// WorkQueueClaimAdapter binds custom output semantics to a trusted, independently
// verified effect. Delegated code prepares data; only the guarded handler applies it.
@@ -50,10 +51,11 @@ type WorkQueueGraphQL struct {
}
type WorkQueueGitTree struct {
- BaseRevision string `json:"base-revision" yaml:"base-revision"`
- BranchPrefix string `json:"branch-prefix" yaml:"branch-prefix"`
- PullRequest bool `json:"pull-request,omitempty" yaml:"pull-request,omitempty"`
- BaseBranch string `json:"base-branch,omitempty" yaml:"base-branch,omitempty"`
+ BaseRevision string `json:"base-revision" yaml:"base-revision"`
+ BranchPrefix string `json:"branch-prefix" yaml:"branch-prefix"`
+ PullRequest bool `json:"pull-request,omitempty" yaml:"pull-request,omitempty"`
+ BaseBranch string `json:"base-branch,omitempty" yaml:"base-branch,omitempty"`
+ CheckpointOutput string `json:"checkpoint-output,omitempty" yaml:"checkpoint-output,omitempty"`
}
type WorkQueueRestRequest struct {
@@ -392,6 +394,9 @@ func validateWorkQueueGitTreeAdapter(name string, adapter *WorkQueueClaimAdapter
if config.PullRequest && (len(config.BaseBranch) > 128 || !workQueueAdapterBranchPattern.MatchString(config.BaseBranch)) {
return fail("git_tree pull request requires a fixed base branch")
}
+ if config.CheckpointOutput != "" && !workQueueCheckpointOutputPattern.MatchString(config.CheckpointOutput) {
+ return fail("git_tree checkpoint-output requires a fixed output name")
+ }
fields := workQueueClaimAdapterFields(adapter)
_, files := fields["files"]
_, title := fields["title"]
diff --git a/pkg/workflow/work_queue_claim_adapters_test.go b/pkg/workflow/work_queue_claim_adapters_test.go
index ab72762ae2e..c1d7843d3b2 100644
--- a/pkg/workflow/work_queue_claim_adapters_test.go
+++ b/pkg/workflow/work_queue_claim_adapters_test.go
@@ -47,6 +47,7 @@ func TestWorkQueueClaimAdapterParsingPreservesTypedFields(t *testing.T) {
"git-tree": map[string]any{
"base-revision": strings.Repeat("a", 40), "branch-prefix": "claims",
"pull-request": true, "base-branch": "main",
+ "checkpoint-output": "checkpoint",
},
},
})
@@ -56,7 +57,7 @@ func TestWorkQueueClaimAdapterParsingPreservesTypedFields(t *testing.T) {
Mode: "prepared", EffectType: "git_tree", TargetRepo: "owner/repo",
FieldMap: map[string]string{"files": "files"}, Expected: map[string]any{"title": "Prepared change"},
GitTree: &WorkQueueGitTree{
- BaseRevision: strings.Repeat("a", 40), BranchPrefix: "claims", PullRequest: true, BaseBranch: "main",
+ BaseRevision: strings.Repeat("a", 40), BranchPrefix: "claims", PullRequest: true, BaseBranch: "main", CheckpointOutput: "checkpoint",
},
},
}, adapters)
@@ -179,12 +180,14 @@ func TestWorkQueueDeclaredGitTreeAdapterAndPermissions(t *testing.T) {
"git-tree": map[string]any{
"base-revision": strings.Repeat("a", 40), "branch-prefix": "automation/code",
"pull-request": true, "base-branch": "main",
+ "checkpoint-output": "checkpoint",
},
}},
}})
data := &WorkflowData{Tools: map[string]any{"work-queue": map[string]any{"worker": true}}, SafeOutputs: config}
require.NoError(t, validateWorkQueueConfiguration(data))
require.Equal(t, strings.Repeat("a", 40), config.ClaimAdapters["code"].GitTree.BaseRevision)
+ require.Equal(t, "checkpoint", config.ClaimAdapters["code"].GitTree.CheckpointOutput)
adapterOnly := &SafeOutputsConfig{ClaimAdapters: config.ClaimAdapters}
permissions := computePermissionsForSafeOutputs(adapterOnly, false)
level, _ := permissions.Get(PermissionContents)
@@ -199,6 +202,15 @@ func TestWorkQueueDeclaredGitTreeAdapterAndPermissions(t *testing.T) {
require.NotContains(t, compiler.jobManager.jobs[names[0]].Permissions, "write")
require.Contains(t, strings.Join(compiler.jobManager.jobs[names[0]].Steps, ""), "git_tree")
adapter := config.ClaimAdapters["code"]
+ for _, name := range []string{"", "code", "checkpoint_1", strings.Repeat("a", 128)} {
+ adapter.GitTree.CheckpointOutput = name
+ require.NoError(t, validateWorkQueueConfiguration(data))
+ }
+ for _, name := range []string{"Code", "checkpoint-output", "../code", strings.Repeat("a", 129)} {
+ adapter.GitTree.CheckpointOutput = name
+ require.ErrorContains(t, validateWorkQueueConfiguration(data), "checkpoint-output")
+ }
+ adapter.GitTree.CheckpointOutput = "checkpoint"
adapter.GitTree.BaseRevision = "main"
require.ErrorContains(t, validateWorkQueueConfiguration(data), "immutable base revision")
adapter.GitTree.BaseRevision = strings.Repeat("a", 40)
diff --git a/pkg/workflow/work_queue_memory.go b/pkg/workflow/work_queue_memory.go
index deaa4494f44..4caf0af5f75 100644
--- a/pkg/workflow/work_queue_memory.go
+++ b/pkg/workflow/work_queue_memory.go
@@ -43,7 +43,7 @@ func configureWorkQueueMemory(data *WorkflowData) error {
data.SafeOutputs = &SafeOutputsConfig{WorkQueueEnabled: true}
}
outputs := data.SafeOutputs
- for _, name := range []string{"noop", "constructor", "prototype", "work_queue_read", "work_queue_explain", "work_queue_submit", "work_queue_dispatch_next", "work_queue_claim_finish"} {
+ for _, name := range append([]string{"noop", "constructor", "prototype"}, workQueueMCPToolNames(data)...) {
if config.Name == name {
return fmt.Errorf("tools.work-queue.memory.name: %q is reserved", name)
}
diff --git a/pkg/workflow/work_queue_memory_test.go b/pkg/workflow/work_queue_memory_test.go
index 9a704543e54..b5997d0779e 100644
--- a/pkg/workflow/work_queue_memory_test.go
+++ b/pkg/workflow/work_queue_memory_test.go
@@ -53,6 +53,7 @@ func TestWorkQueueMemoryValidation(t *testing.T) {
{"control", "path", "memory\t.json"}, {"absolute", "path", "/memory.json"},
{"mutable-base", "base-revision", "main"}, {"expression", "branch-prefix", "${{ inputs.prefix }}"},
{"repository", "target-repo", "${{ github.repository }}"}, {"reserved", "name", "work_queue_read"},
+ {"reserved-continuation", "name", "work_queue_continue"},
{"builtin", "name", "create_issue"}, {"maximum", "max-bytes", 262145}, {"zero", "max-bytes", 0},
{"null-name", "name", nil}, {"null-limit", "max-bytes", nil},
{"root-array-type", "schema", map[string]any{"type": []any{"object"}}},