You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep provider admission explicit. Standard confidential-code work stays on the admitted
`zai` and `openai` lane; OpenRouter-backed evaluation belongs on `provider-eval` or
`/provider-eval` only.
Activity
fix(guardrails): remove OpenRouter eval-only restriction (#24)
fix(guardrails): remove OpenRouter eval-only restriction (#24)
terisuke commentedon Apr 5, 2026
受入基準確認済み。commit b06864c (dev branch) で修正マージ済み。
受入基準: OpenRouterがeval-only制限でブロックされない
packages/guardrails/profile/plugins/guardrail.ts:205—const evals = new Set<string>([])(空Setに変更、OpenRouter削除済み)packages/guardrails/profile/plugins/guardrail.ts:352—evals.size > 0 && evals.has(provider)ガード追加、空Set時はeval制限自体が無効化packages/guardrails/profile/plugins/guardrail.ts:355—evals.size > 0 && agent === evalAgentガード追加、provider-evalがブロックされないテスト:
packages/opencode/test/scenario/guardrails.test.ts— テスト更新済み根本原因の解決:
Issue報告の通り、
evalsSet に"openrouter"がハードコードされていたのを空Setに変更し、gate() の条件にevals.size > 0を追加。