Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rig-skill-integration-pi.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .github/workflows/rig-skill-integration-pi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/pi-gateway-workflow.test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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<void>((resolve, reject) => server!.close(error => error ? reject(error) : resolve()));
Expand Down