From e801c6f600ca921d50ebb7136b2f973cc4709464 Mon Sep 17 00:00:00 2001 From: Kyle Sexton <153232337+kyle-sexton@users.noreply.github.com> Date: Fri, 6 Nov 2026 18:51:02 -0500 Subject: [PATCH] fix(pr-verify): allow the driver's type and wait-for verbs in the capture Refs: #13710 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RMa441b9qec43NvaTyiY2Z --- .github/scripts/pr-verify/workflow.test.mjs | 7 +++++-- .github/workflows/pr-verify-capture.yml | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/scripts/pr-verify/workflow.test.mjs b/.github/scripts/pr-verify/workflow.test.mjs index eaf72efdb3f..3e093a83697 100644 --- a/.github/scripts/pr-verify/workflow.test.mjs +++ b/.github/scripts/pr-verify/workflow.test.mjs @@ -1730,8 +1730,11 @@ test("the driver leg's Bash runs only main's driver, one rule per verb the contr const bash = list(driver, "allowed-tools").filter((rule) => /^Bash\b/.test(rule)); // The verbs the control skill's hub runs the driver with. const hub = readFileSync(new URL("../../../plugins/harness-ops/skills/control-claude-code/SKILL.md", import.meta.url), "utf8"); - const verbs = [...new Set([...hub.matchAll(/`node \/driver\/driver\.mjs ([a-z]+)\b/g)].map((m) => m[1]))]; - assert.deepEqual([...verbs].sort(), ["launch", "log", "plugins", "ready", "record", "screenshot", "stop"]); + const hubVerbs = [...new Set([...hub.matchAll(/`node \/driver\/driver\.mjs ([a-z]+)\b/g)].map((m) => m[1]))]; + assert.deepEqual([...hubVerbs].sort(), ["launch", "log", "plugins", "ready", "record", "screenshot", "stop"]); + // The feature pages drive the terminal session with type and wait-for, which the hub names only in + // prose; capture run 42313414930 had every typed entry point refused without them. + const verbs = [...hubVerbs, "type", "wait-for"]; const driverRules = DRIVER_PATHS.flatMap((p) => verbs.map((verb) => `Bash(node ${p} ${verb} *)`)); driverRules.push(ACCOUNT_RULE); const git = [ diff --git a/.github/workflows/pr-verify-capture.yml b/.github/workflows/pr-verify-capture.yml index c600b8dc3ff..e7a0d243c2c 100644 --- a/.github/workflows/pr-verify-capture.yml +++ b/.github/workflows/pr-verify-capture.yml @@ -1167,6 +1167,8 @@ jobs: Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/driver/driver.mjs record *) Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/driver/driver.mjs log *) Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/driver/driver.mjs stop *) + Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/driver/driver.mjs type *) + Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/driver/driver.mjs wait-for *) Bash(node ${{ github.workspace }}/.base/plugins/harness-ops/skills/control-claude-code/cli/account.mjs) Bash(git -C ${{ github.workspace }}/head branch --show-current) Bash(git -C ${{ github.workspace }}/head status --porcelain)