diff --git a/.github/workflows/rig-skill-integration-pi.lock.yml b/.github/workflows/rig-skill-integration-pi.lock.yml index b568ae2..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":"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":"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 # diff --git a/.github/workflows/rig-skill-integration-pi.md b/.github/workflows/rig-skill-integration-pi.md index 988448f..da5d484 100644 --- a/.github/workflows/rig-skill-integration-pi.md +++ b/.github/workflows/rig-skill-integration-pi.md @@ -34,8 +34,9 @@ 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 +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 diff --git a/src/pi-gateway-workflow.test.ts b/src/pi-gateway-workflow.test.ts index f1f07ad..4672c49 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,15 @@ 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("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 () => { if (server) { const closing = new Promise((resolve, reject) => server!.close(error => error ? reject(error) : resolve()));