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
{{ message }}
Repository navigation
Threat detection is hardcoded to Copilot; cannot run on BYOK engines (OpenRouter/pi) #78414
The agent (inference) engine can be swapped to a BYOK provider — e.g. the pi engine against OpenRouter with a vendored model id — but the threat-detection job cannot follow. Two layers force it back to Copilot:
getThreatDetectionEngineID (pkg/workflow/threat_detection_external.go) normalizes a non-Copilot detection engine back to Copilot. Setting threat-detection.engine: pi is silently overridden.
The external threat-detect binary rejects non-Copilot engines, so even if the engine id were honored, the job fails.
Net effect: a workflow that runs its agent on OpenRouter (or any non-Copilot engine) still needs a Copilot token (COPILOT_GITHUB_TOKEN) solely to keep the threat-detection job alive. Teams that have moved inference off Copilot entirely cannot drop that dependency.
Request
Allow threat detection to run on a configurable BYOK engine the same way the agent engine can — accept threat-detection.engine: pi (and an OpenAI-compatible model-provider / base URL) and route the threat-detect step through it instead of forcing Copilot.
Context
gh-aw v1.3.0
Agent engine: engine: { id: pi, model: openrouter/<vendor>/<model>, model-provider: openai } with OPENAI_BASE_URL=https://openrouter.ai/api/v1 works for inference.
Detection pinned with threat-detection.engine: copilot as the only working option today.
Related: #75276 (threat detection cannot run on an imported engine definition) — adjacent, but that covers imported definitions, not BYOK provider routing.
Activity
ci: port changelog-bot fixes from landscape-server
chore(changelog-bot): port seven fixes from landscape-server
chore: port changelog-bot fixes from landscape-server
ci: port changelog-bot reliability fixes from landscape-server
chore: port changelog-bot fixes from landscape-server
chore(changelog-bot): port seven fixes from landscape-server
ci: port changelog-bot reliability fixes from landscape-server
ci: port changelog-bot fixes from landscape-server
chore: port changelog-bot fixes from landscape-server
chore(changelog-bot): port seven fixes from landscape-server
ci: port changelog-bot reliability fixes from landscape-server
chore: port changelog-bot fixes from landscape-server
chore(changelog-bot): port seven fixes from landscape-server
ci: port changelog-bot reliability fixes from landscape-server
ci: add changelog bot (#466)
ci: port changelog-bot reliability fixes from landscape-server
chore: port changelog-bot fixes from landscape-server