From a0db2a373906e26b1e6c7db4643dee20a76920a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Jun 2026 05:19:32 +0000 Subject: [PATCH 1/2] Initial plan From f52caeac786792ce02e8dfebccd22bf4b174004b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Jun 2026 05:28:50 +0000 Subject: [PATCH 2/2] Fix code-simplifier prompt to require explicit safe-output completion Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/code-simplifier.lock.yml | 2 +- .github/workflows/code-simplifier.md | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code-simplifier.lock.yml b/.github/workflows/code-simplifier.lock.yml index d8c34d2343e..fe0b04ccc2e 100644 --- a/.github/workflows/code-simplifier.lock.yml +++ b/.github/workflows/code-simplifier.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"c32fee4a7f2f8ab67e3663b90ef227ae262381a420a5b190d1c0d4dce79a6c8d","body_hash":"adc3da72961d5c1e6f411723187cdaa44bd30c5f6407026448b47b73449d1688","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.59"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"c32fee4a7f2f8ab67e3663b90ef227ae262381a420a5b190d1c0d4dce79a6c8d","body_hash":"c677f983189530fc57056c213878e5eb1a9502001fa81aee276882ed15c0c73b","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.59"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","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":"de0fac2e4500dabe0009e67214ff5f5447ce83dd","version":"v6.0.2"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-java","sha":"be666c2fcd27ec809703dec50e508c2fdc7f6654","version":"v5.2.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.25.65"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.65"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.25.65"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.25.65"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.23","digest":"sha256:0dd1bd91a41e24a3ccc31b1ec6cb61d36608997fabf91f2d643b64e3fc33180a","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.23@sha256:0dd1bd91a41e24a3ccc31b1ec6cb61d36608997fabf91f2d643b64e3fc33180a"},{"image":"ghcr.io/github/github-mcp-server:v1.1.2","digest":"sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c","pinned_image":"ghcr.io/github/github-mcp-server:v1.1.2@sha256:30197479d8036c7811892bc07e06f9a05c9ef3cdd79bc59f256d50647f95788c"},{"image":"node:lts-alpine","digest":"sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14","pinned_image":"node:lts-alpine@sha256:2bdb65ed1dab192432bc31c95f94155ca5ad7fc1392fb7eb7526ab682fa5bf14"}]} # ___ _ _ # / _ \ | | (_) diff --git a/.github/workflows/code-simplifier.md b/.github/workflows/code-simplifier.md index 2304ff0af63..2122d433b77 100644 --- a/.github/workflows/code-simplifier.md +++ b/.github/workflows/code-simplifier.md @@ -171,7 +171,7 @@ Do **not** re-fetch these datasets with GitHub tools unless a required file is m ## Phase 1 — Determine Scope 1. Read `recent-context.json` and `source-files.json`. -2. If no candidate files exist, exit with: +2. If no candidate files exist, call `noop` with this exact message: ``` ✅ No code changes detected in the last 24 hours. @@ -221,7 +221,7 @@ Create a PR only if all are true: - behavior is preserved - `make test-unit`, `make lint`, and `make build` succeed -If no useful change remains, exit with: +If no useful change remains, call `noop` with this exact message: ``` ✅ Code analyzed from last 24 hours. @@ -240,11 +240,14 @@ Include: ## Output Requirements -Return one of: +You MUST finish by calling exactly one safe-output tool: -1. no recent code changes (exact message above) -2. no beneficial simplifications (exact message above) -3. PR created through safe outputs +1. `noop` with the no-recent-code-changes message above +2. `noop` with the no-beneficial-simplifications message above +3. `create_pull_request` when meaningful validated simplifications are ready +4. `report_incomplete` when blocked by infrastructure/tooling failures + +Do not finish with plain text only. The safe-output tool call is required. {{#runtime-import shared/noop-reminder.md}}