From 6c4518f3e98942a00b5daf6f3a2ff79250a78a89 Mon Sep 17 00:00:00 2001 From: pelikhan <4175913+pelikhan@users.noreply.github.com> Date: Tue, 24 Nov 2026 04:56:39 +0000 Subject: [PATCH 1/3] Initial plan From ede733619a95526c9fb8a61fab9495722303f377 Mon Sep 17 00:00:00 2001 From: pelikhan <4175913+pelikhan@users.noreply.github.com> Date: Tue, 24 Nov 2026 05:06:47 +0000 Subject: [PATCH 2/3] Pin Pi workflow to successful model Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .../workflows/rig-skill-integration-pi.lock.yml | 14 +++++++------- .github/workflows/rig-skill-integration-pi.md | 8 +++++--- src/pi-gateway-workflow.test.ts | 6 ++++++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rig-skill-integration-pi.lock.yml b/.github/workflows/rig-skill-integration-pi.lock.yml index b568ae2..65d100d 100644 --- a/.github/workflows/rig-skill-integration-pi.lock.yml +++ b/.github/workflows/rig-skill-integration-pi.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"ead97b19ab26a743bed93082f52af63280cd9daa05fc45de3ffe0418ade5fe91","body_hash":"ead55757ecd33fa8531d2b32a39fe79b3b4ca81d9b408c85db1cdc6c94413c07","compiler_version":"v1.4.0","strict":true,"agent_id":"pi","engine_versions":{"pi":"1.5.2"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"566e3232246ae42949ebf6572211fdb300cbc6aee707e4f03a1018472a5807dc","body_hash":"2a2020040903411056bb88a163f061b39719af41db14e4d36e04eb6280f15e55","compiler_version":"v1.4.0","strict":true,"agent_id":"pi","agent_model":"copilot/gpt-5.3-codex","engine_versions":{"pi":"1.5.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"},{"repo":"github/gh-aw-actions/setup","sha":"b907753c079ddd7d6829a0d8c24e02e818b4b45f","version":"v1.4.0"}],"skills":["skills/rig"],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.20","digest":"sha256:b9cd8d7d1a9c2693e5d91db035a678fb1ea8d87ce691e08ec091b327e5e8ba75","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.29.20@sha256:b9cd8d7d1a9c2693e5d91db035a678fb1ea8d87ce691e08ec091b327e5e8ba75"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.20","digest":"sha256:fc6c1eff686514d26ff90ae1398e0f6e3dcad8d2e43d11b16df312c1e72c0ace","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.20@sha256:fc6c1eff686514d26ff90ae1398e0f6e3dcad8d2e43d11b16df312c1e72c0ace"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.20","digest":"sha256:1c4a4a12fcea206a81d656cb1f73847420a2c041d02ab51235364079a1e31d71","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.29.20@sha256:1c4a4a12fcea206a81d656cb1f73847420a2c041d02ab51235364079a1e31d71"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.14","digest":"sha256:716b41d53a20660e945c351c08140380430d65d98d3263596e45114c29fa7a43","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.14@sha256:716b41d53a20660e945c351c08140380430d65d98d3263596e45114c29fa7a43"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748","pinned_image":"ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748"}],"mcp_servers":[{"name":"safeoutputs","tools":["create_issue","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"disabled"},"admission":false,"agent_metadata":{"03cbf8931deff21d5116":{"name":"Agentic Workflows"}}} # This file was automatically generated by gh-aw (v1.4.0). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -149,7 +149,7 @@ jobs: env: GH_AW_INFO_ENGINE_ID: "pi" GH_AW_INFO_ENGINE_NAME: "Pi" - GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_CUSTOM || 'agent' }} + GH_AW_INFO_MODEL: "copilot/gpt-5.3-codex" GH_AW_INFO_VERSION: "1.5.2" GH_AW_INFO_AGENT_VERSION: "1.5.2" GH_AW_INFO_CLI_VERSION: "v1.4.0" @@ -1038,7 +1038,7 @@ jobs: GH_AW_PHASE: agent GH_AW_PI_BARE: false GH_AW_PI_CONFIG: '{"mcp":{"exposure":"direct"},"settings":{"extensions":["${{ github.workspace }}/.github/drivers/pi-rig-extension.ts"]}}' - GH_AW_PI_MODEL: copilot/auto + GH_AW_PI_MODEL: copilot/gpt-5.3-codex GH_AW_PI_NATIVE_PROVIDER: github-copilot GH_AW_PI_SUBAGENT_ARGS: '["--print","--mode","json","--no-session","--no-approve","--exclude-tools","edit,write"]' GH_AW_PI_SYSTEM_PROMPT: /tmp/gh-aw/aw-prompts/system.txt @@ -1389,7 +1389,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} + GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} GH_AW_NOOP_REPORT_AS_ISSUE: "false" @@ -1415,7 +1415,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} + GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1435,7 +1435,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} + GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1640,7 +1640,7 @@ jobs: GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }} GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/rig-skill-integration-pi" GH_AW_ENGINE_ID: "pi" - GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} + GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" GH_AW_ENGINE_VERSION: "1.5.2" GH_AW_OBJECT_PACK_FETCH_DEPTHS: ${{ vars.GH_AW_OBJECT_PACK_FETCH_DEPTHS }} GH_AW_OBJECT_PACK_MAX_BYTES: ${{ vars.GH_AW_OBJECT_PACK_MAX_BYTES }} diff --git a/.github/workflows/rig-skill-integration-pi.md b/.github/workflows/rig-skill-integration-pi.md index 988448f..47a119f 100644 --- a/.github/workflows/rig-skill-integration-pi.md +++ b/.github/workflows/rig-skill-integration-pi.md @@ -8,6 +8,7 @@ on: permissions: contents: read copilot-requests: write +model: copilot/gpt-5.3-codex engine: id: pi version: "1.5.2" @@ -34,9 +35,10 @@ env: # Rig Pi three-judge integration -Use the Pi agent-core adapter, not the Copilot SDK. The fixture reads the -harness-provisioned Pi gateway model configuration; never substitute a native OpenAI or Anthropic -provider, inspect credentials, or choose a different model. +Use the Pi agent-core adapter, not the Copilot SDK. Both the outer engine and +the three judges use `copilot/gpt-5.3-codex`. The fixture reads the +harness-provisioned Pi gateway model configuration; never substitute a native +OpenAI or Anthropic provider, inspect credentials, or choose a different model. The managed SDK driver registers the trusted `run_rig` extension tool. Call it **exactly once** with `{}`; do not use Bash or supply source, commands, paths, diff --git a/src/pi-gateway-workflow.test.ts b/src/pi-gateway-workflow.test.ts index f1f07ad..026d8d6 100644 --- a/src/pi-gateway-workflow.test.ts +++ b/src/pi-gateway-workflow.test.ts @@ -1,3 +1,4 @@ +import { readFileSync } from "node:fs"; import { execFile } from "node:child_process"; import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; import { createServer } from "node:http"; @@ -12,9 +13,14 @@ import { piGateway } from "../.github/fixtures/pi-gateway.ts"; import { createPiRigTool } from "../.github/drivers/pi-rig-extension.ts"; const execute = promisify(execFile); +const workflow = readFileSync(new URL("../.github/workflows/rig-skill-integration-pi.md", import.meta.url), "utf8"); let server: Server | undefined; let directory: string | undefined; +it("pins the Pi workflow to a stable Copilot model", () => { + expect(workflow).toMatch(/^model: copilot\/gpt-5\.3-codex$/m); +}); + afterEach(async () => { if (server) { const closing = new Promise((resolve, reject) => server!.close(error => error ? reject(error) : resolve())); From 296ee281030d67dca6ea6ff2b4d787e129a619d9 Mon Sep 17 00:00:00 2001 From: pelikhan <4175913+pelikhan@users.noreply.github.com> Date: Tue, 24 Nov 2026 05:32:19 +0000 Subject: [PATCH 3/3] Restore Pi model routing Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- .../workflows/rig-skill-integration-pi.lock.yml | 14 +++++++------- .github/workflows/rig-skill-integration-pi.md | 9 ++++----- src/pi-gateway-workflow.test.ts | 5 +++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/rig-skill-integration-pi.lock.yml b/.github/workflows/rig-skill-integration-pi.lock.yml index 65d100d..5d995ce 100644 --- a/.github/workflows/rig-skill-integration-pi.lock.yml +++ b/.github/workflows/rig-skill-integration-pi.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"566e3232246ae42949ebf6572211fdb300cbc6aee707e4f03a1018472a5807dc","body_hash":"2a2020040903411056bb88a163f061b39719af41db14e4d36e04eb6280f15e55","compiler_version":"v1.4.0","strict":true,"agent_id":"pi","agent_model":"copilot/gpt-5.3-codex","engine_versions":{"pi":"1.5.2"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"ead97b19ab26a743bed93082f52af63280cd9daa05fc45de3ffe0418ade5fe91","body_hash":"e34429e2f4441b25f99df19e64ffba8a64d44368646e16330bc48123f977295d","compiler_version":"v1.4.0","strict":true,"agent_id":"pi","engine_versions":{"pi":"1.5.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"},{"repo":"github/gh-aw-actions/setup","sha":"b907753c079ddd7d6829a0d8c24e02e818b4b45f","version":"v1.4.0"}],"skills":["skills/rig"],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.29.20","digest":"sha256:b9cd8d7d1a9c2693e5d91db035a678fb1ea8d87ce691e08ec091b327e5e8ba75","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.29.20@sha256:b9cd8d7d1a9c2693e5d91db035a678fb1ea8d87ce691e08ec091b327e5e8ba75"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.20","digest":"sha256:fc6c1eff686514d26ff90ae1398e0f6e3dcad8d2e43d11b16df312c1e72c0ace","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.29.20@sha256:fc6c1eff686514d26ff90ae1398e0f6e3dcad8d2e43d11b16df312c1e72c0ace"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.29.20","digest":"sha256:1c4a4a12fcea206a81d656cb1f73847420a2c041d02ab51235364079a1e31d71","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.29.20@sha256:1c4a4a12fcea206a81d656cb1f73847420a2c041d02ab51235364079a1e31d71"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.5.14","digest":"sha256:716b41d53a20660e945c351c08140380430d65d98d3263596e45114c29fa7a43","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.5.14@sha256:716b41d53a20660e945c351c08140380430d65d98d3263596e45114c29fa7a43"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748","pinned_image":"ghcr.io/github/gh-aw-node@sha256:a8082161d7dceda14b68f32eb39d0eaa96b825d07f5895b096afab9d9e0c7748"}],"mcp_servers":[{"name":"safeoutputs","tools":["create_issue","noop","report_incomplete","report_missing_data","report_missing_tool"]}],"threat_detection":{"mode":"disabled"},"admission":false,"agent_metadata":{"03cbf8931deff21d5116":{"name":"Agentic Workflows"}}} # This file was automatically generated by gh-aw (v1.4.0). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -149,7 +149,7 @@ jobs: env: GH_AW_INFO_ENGINE_ID: "pi" GH_AW_INFO_ENGINE_NAME: "Pi" - GH_AW_INFO_MODEL: "copilot/gpt-5.3-codex" + GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_CUSTOM || 'agent' }} GH_AW_INFO_VERSION: "1.5.2" GH_AW_INFO_AGENT_VERSION: "1.5.2" GH_AW_INFO_CLI_VERSION: "v1.4.0" @@ -1038,7 +1038,7 @@ jobs: GH_AW_PHASE: agent GH_AW_PI_BARE: false GH_AW_PI_CONFIG: '{"mcp":{"exposure":"direct"},"settings":{"extensions":["${{ github.workspace }}/.github/drivers/pi-rig-extension.ts"]}}' - GH_AW_PI_MODEL: copilot/gpt-5.3-codex + GH_AW_PI_MODEL: copilot/auto GH_AW_PI_NATIVE_PROVIDER: github-copilot GH_AW_PI_SUBAGENT_ARGS: '["--print","--mode","json","--no-session","--no-approve","--exclude-tools","edit,write"]' GH_AW_PI_SYSTEM_PROMPT: /tmp/gh-aw/aw-prompts/system.txt @@ -1389,7 +1389,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" + GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }} GH_AW_NOOP_REPORT_AS_ISSUE: "false" @@ -1415,7 +1415,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" + GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1435,7 +1435,7 @@ jobs: GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/rig-skill-integration-pi.md" GH_AW_ENGINE_ID: "pi" GH_AW_ENGINE_VERSION: "1.5.2" - GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" + GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} with: github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} script: | @@ -1640,7 +1640,7 @@ jobs: GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }} GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/rig-skill-integration-pi" GH_AW_ENGINE_ID: "pi" - GH_AW_ENGINE_MODEL: "copilot/gpt-5.3-codex" + GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }} GH_AW_ENGINE_VERSION: "1.5.2" GH_AW_OBJECT_PACK_FETCH_DEPTHS: ${{ vars.GH_AW_OBJECT_PACK_FETCH_DEPTHS }} GH_AW_OBJECT_PACK_MAX_BYTES: ${{ vars.GH_AW_OBJECT_PACK_MAX_BYTES }} diff --git a/.github/workflows/rig-skill-integration-pi.md b/.github/workflows/rig-skill-integration-pi.md index 47a119f..da5d484 100644 --- a/.github/workflows/rig-skill-integration-pi.md +++ b/.github/workflows/rig-skill-integration-pi.md @@ -8,7 +8,6 @@ on: permissions: contents: read copilot-requests: write -model: copilot/gpt-5.3-codex engine: id: pi version: "1.5.2" @@ -35,10 +34,10 @@ env: # Rig Pi three-judge integration -Use the Pi agent-core adapter, not the Copilot SDK. Both the outer engine and -the three judges use `copilot/gpt-5.3-codex`. The fixture reads the -harness-provisioned Pi gateway model configuration; never substitute a native -OpenAI or Anthropic provider, inspect credentials, or choose a different model. +Use the Pi agent-core adapter, not the Copilot SDK. Let the workflow's model +router select the outer agent model. The fixture reads the harness-provisioned +Pi gateway model configuration; never substitute a native OpenAI or Anthropic +provider, inspect credentials, or choose a different model. The managed SDK driver registers the trusted `run_rig` extension tool. Call it **exactly once** with `{}`; do not use Bash or supply source, commands, paths, diff --git a/src/pi-gateway-workflow.test.ts b/src/pi-gateway-workflow.test.ts index 026d8d6..4672c49 100644 --- a/src/pi-gateway-workflow.test.ts +++ b/src/pi-gateway-workflow.test.ts @@ -17,8 +17,9 @@ const workflow = readFileSync(new URL("../.github/workflows/rig-skill-integratio let server: Server | undefined; let directory: string | undefined; -it("pins the Pi workflow to a stable Copilot model", () => { - expect(workflow).toMatch(/^model: copilot\/gpt-5\.3-codex$/m); +it("leaves outer agent model selection to the workflow router", () => { + expect(workflow).not.toMatch(/^model:/m); + expect(workflow).toContain("Let the workflow's model\nrouter select the outer agent model."); }); afterEach(async () => {