Skip to content

Commit fc34e8f

Browse files
committed
fix(guardrails): ACL検査の標準入力を閉じる
PowerShellは入力を受け取らないためstdinを明示的に無効化する。5秒の検査上限とACLの拒否条件を維持し、fixtureも同じ起動条件で検証する。比較結果を回収した一時診断コードは撤去する。 ADJUDICATION: #367 (comment) Refs: #366 Agent-Lane: codex
1 parent 5b7b1c4 commit fc34e8f

4 files changed

Lines changed: 2 additions & 86 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,6 @@ jobs:
110110
- name: Verify search tool prerequisites
111111
working-directory: packages/core
112112
run: bun run script/test.ts test/ripgrep.test.ts test/tool-search.test.ts
113-
- name: Diagnose Windows ACL subprocess transport
114-
if: runner.os == 'Windows'
115-
run: bun packages/guardrails/bin/windows-acl-diagnostic.mjs
116-
117113
- name: Test Effect simplification rules
118114
if: runner.os == 'Linux'
119115
run: bun run test:effect-simplification-rules

‎packages/guardrails/bin/cor-local-env.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ function windowsKeyFilePrivate(filePath) {
7777
maxBuffer: 65_536,
7878
windowsHide: true,
7979
shell: false,
80+
stdio: ["ignore", "pipe", "pipe"],
8081
}),
8182
)
8283
}

‎packages/guardrails/bin/windows-acl-diagnostic.mjs‎

Lines changed: 0 additions & 82 deletions
This file was deleted.

‎packages/guardrails/profile/src/cor-local-bin-defaults.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Set-Acl -LiteralPath $env:OPENCODE_COR_LOCAL_TEST_PATH -AclObject $acl
7171
timeout: 5_000,
7272
windowsHide: true,
7373
shell: false,
74+
stdio: ["ignore", "pipe", "pipe"],
7475
},
7576
)
7677
expect(result.status, result.stderr).toBe(0)

0 commit comments

Comments
 (0)