Skip to content
Draft
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/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
on:
push:
branches: [main]
branches: [main, v1.1-dev]
pull_request:
permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion plugins/agent-plugins-conformance-recovery/dist/probe.mjs

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

2 changes: 1 addition & 1 deletion plugins/agent-plugins-conformance-recovery/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion scripts/smoke-codex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
8 changes: 4 additions & 4 deletions test/command-symlink.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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';

Expand Down Expand Up @@ -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 = [
Expand Down
Loading