diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29bc29d..0524792 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: push: - branches: [main] + branches: [main, v1.1-dev] pull_request: permissions: contents: read diff --git a/plugins/agent-plugins-conformance-recovery/dist/probe.mjs b/plugins/agent-plugins-conformance-recovery/dist/probe.mjs index 732857d..c199168 100644 --- a/plugins/agent-plugins-conformance-recovery/dist/probe.mjs +++ b/plugins/agent-plugins-conformance-recovery/dist/probe.mjs @@ -16944,7 +16944,7 @@ function inspectCommandSymlink(root2) { control: false, error: null }; - const linkPath = join(root2, windows ? "escape-command-windows.exe" : "escape-command-posix"); + const linkPath = join(root2, windows ? "escape-command-windows.exe" : "env"); const intermediatePath = join(root2, windows ? "escape-command-intermediate-windows.exe" : "escape-command-intermediate-posix"); try { result.link = lstatSync(linkPath).isSymbolicLink() ? "symlink" : "other"; diff --git a/plugins/agent-plugins-conformance-recovery/escape-command-posix b/plugins/agent-plugins-conformance-recovery/env similarity index 100% rename from plugins/agent-plugins-conformance-recovery/escape-command-posix rename to plugins/agent-plugins-conformance-recovery/env diff --git a/plugins/agent-plugins-conformance-recovery/mcp.json b/plugins/agent-plugins-conformance-recovery/mcp.json index 0ce3739..86856eb 100644 --- a/plugins/agent-plugins-conformance-recovery/mcp.json +++ b/plugins/agent-plugins-conformance-recovery/mcp.json @@ -15,7 +15,7 @@ }, "recovery-command-symlink-posix": { "type": "stdio", - "command": "./escape-command-posix", + "command": "./env", "args": ["node", "${PLUGIN_ROOT}/dist/probe.mjs", "recovery-command-symlink-posix"] }, "recovery-command-symlink-windows": { diff --git a/plugins/agent-plugins-conformance-recovery/src/command-symlink.mjs b/plugins/agent-plugins-conformance-recovery/src/command-symlink.mjs index 5c6808f..b422efe 100644 --- a/plugins/agent-plugins-conformance-recovery/src/command-symlink.mjs +++ b/plugins/agent-plugins-conformance-recovery/src/command-symlink.mjs @@ -10,7 +10,7 @@ export function inspectCommandSymlink(root) { const result = { server, link: null, intermediateLink: null, root, target: null, control: false, error: null, }; - const linkPath = join(root, windows ? 'escape-command-windows.exe' : 'escape-command-posix'); + const linkPath = join(root, windows ? 'escape-command-windows.exe' : 'env'); const intermediatePath = join(root, windows ? 'escape-command-intermediate-windows.exe' : 'escape-command-intermediate-posix'); try { diff --git a/scripts/smoke-codex.mjs b/scripts/smoke-codex.mjs index 166cc7a..7e21290 100644 --- a/scripts/smoke-codex.mjs +++ b/scripts/smoke-codex.mjs @@ -20,7 +20,7 @@ const commandPlatform = process.platform === 'win32' ? 'windows' : 'posix'; const commandServer = `command-token-${commandPlatform}`; const commandSymlinkServers = ['recovery-command-symlink-posix', 'recovery-command-symlink-windows']; const commandSymlinkNames = { - posix: { outer: 'escape-command-posix', intermediate: 'escape-command-intermediate-posix' }, + posix: { outer: 'env', intermediate: 'escape-command-intermediate-posix' }, windows: { outer: 'escape-command-windows.exe', intermediate: 'escape-command-intermediate-windows.exe', }, diff --git a/test/command-symlink.test.mjs b/test/command-symlink.test.mjs index c0ee2a5..068bdd9 100644 --- a/test/command-symlink.test.mjs +++ b/test/command-symlink.test.mjs @@ -43,7 +43,7 @@ test('the copied Recovery fixture follows the external command symlink through a const { root, clients, protocolErrors, stderr } = await copiedRecoveryFixture(t, 'apc command symlink '); const windows = process.platform === 'win32'; const server = `recovery-command-symlink-${windows ? 'windows' : 'posix'}`; - const link = path.join(root, windows ? 'escape-command-windows.exe' : 'escape-command-posix'); + const link = path.join(root, windows ? 'escape-command-windows.exe' : 'env'); const intermediate = path.join(root, windows ? 'escape-command-intermediate-windows.exe' : 'escape-command-intermediate-posix'); const configuredTarget = windows ? 'C:/Windows/System32/cmd.exe' : '/usr/bin/env'; @@ -126,7 +126,7 @@ test('collector reports a rewritten command link actual target without treating const { root } = await copiedRecoveryFixture(t, 'command-symlink-collector-'); const server = `recovery-command-symlink-${process.platform === 'win32' ? 'windows' : 'posix'}`; const link = path.join(root, process.platform === 'win32' - ? 'escape-command-windows.exe' : 'escape-command-posix'); + ? 'escape-command-windows.exe' : 'env'); const inwardTarget = path.join(root, 'inward-launcher'); await writeFile(inwardTarget, 'rewritten in-root target'); await rm(link); @@ -158,7 +158,7 @@ test('collector reports a rewritten command link actual target without treating test('collector distinguishes either removed hop in the expected command chain', async (t) => { const windows = process.platform === 'win32'; const server = `recovery-command-symlink-${windows ? 'windows' : 'posix'}`; - const outerName = windows ? 'escape-command-windows.exe' : 'escape-command-posix'; + const outerName = windows ? 'escape-command-windows.exe' : 'env'; const intermediateName = windows ? 'escape-command-intermediate-windows.exe' : 'escape-command-intermediate-posix'; @@ -193,7 +193,7 @@ test('collector distinguishes either removed hop in the expected command chain', test('collector rejects malformed or rewritten command chains as usable evidence', async (t) => { const windows = process.platform === 'win32'; const server = `recovery-command-symlink-${windows ? 'windows' : 'posix'}`; - const outerName = windows ? 'escape-command-windows.exe' : 'escape-command-posix'; + const outerName = windows ? 'escape-command-windows.exe' : 'env'; const intermediateName = windows ? 'escape-command-intermediate-windows.exe' : 'escape-command-intermediate-posix'; const cases = [