Repository navigation
Move the five OpenRouter workflows back to the Copilot engine - #424
Closed
theletterf wants to merge 2 commits into
Closed
theletterf wants to merge 2 commits into
theletterf wants to merge 2 commits into
Conversation
Triage, auto-triage, scope, project-metadata and docs-review now run on the Copilot engine with github.token, like the other nine workflows. This removes the OpenRouter keys, base URLs, attribution headers and AWF pricing overrides, and drops openrouter.ai and api.anthropic.com from the network allowlists. The workflows still declare ANTHROPIC_API_KEY or OPENROUTER_API_KEY as unused optional secrets, so callers that pass them explicitly do not fail at startup. Related to elastic/docs-eng-team#1056 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Label error. Requires exactly 1 of: automation, breaking, bug, changelog:skip, chore, ci, dependencies, documentation, enhancement, feature, fix. Found: |
The GPT models fail on the Copilot Responses path in the sandbox: the first request returns 400 Bad Request from api.githubcopilot.com. Claude models work, and Copilot serves claude-haiku-4.5 but not Haiku 5.5. Related to elastic/docs-eng-team#1056 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member
Author
|
Closing for now. The Agent Router workflows (#426) are released on v1 and tested in production, so this Copilot fallback is not needed today. The branch is deleted; reopen from the PR history if we need to fall back. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Platform engineering plans to move users from OpenRouter to Agent Router by the end of next week, and nobody has confirmed what happens to OpenRouter after that. Agent Router can authenticate GitHub Actions through workload identity federation, but it speaks only the OpenAI protocol, so the three Claude-engine workflows cannot move as they are. I wanted a fallback that does not depend on either date.
Nine of our fourteen gh-aw workflows already run on the Copilot engine with
github.token. This PR moves the other five there:gh-aw-issue-triage,gh-aw-issue-auto-triageclaude-haiku-4.5gh-aw-issue-scopegpt-6-lunathrough OpenRouterclaude-sonnet-5gh-aw-project-metadatagpt-6-lunathrough OpenRouterclaude-sonnet-5gh-aw-docs-reviewclaude-sonnet-5I first tried
gpt-5-minifor triage andgpt-5.3-codexfor project-metadata. In the sandbox, every GPT request got400 Bad Requestfromapi.githubcopilot.comon the Responses path, while Claude models worked, so all three cheap slots now use Claude. Copilot servesclaude-haiku-4.5but not Haiku 5.5, so triage drops a model generation. Project-metadata usesclaude-sonnet-5because I could not test it, and it changes board fields on real events.What I removed: the OpenRouter keys, base URLs and attribution headers, the AWF price-table overrides that only existed for the OpenRouter slugs, the Codex
engine.configand-cworkarounds, the empty provider variables that kept threat detection alive, andopenrouter.ai,api.anthropic.comandab.chatgpt.comfrom the network allowlists. The docs-review prompt now reads its six skills from.github/skills/, where gh-aw installs them for the Copilot engine, andtools.edit: falsereplaces the Claude--disallowed-toolsrule.Callers keep working. The triage, auto-triage, project-metadata and docs-review callers in docs-content, docs-content-internal and docs-eng-team pass
ANTHROPIC_API_KEYorOPENROUTER_API_KEYexplicitly, and a secret that a reusable workflow does not declare fails the caller at startup. The workflows still declare those secrets as optional and unused, so no caller needs an edit. The scope callers usesecrets: inherit. The oblt-aw menus pass no secrets, so they should now work, where on OpenRouter they could not.Things you should know before merging:
threat-detection.engine: false. I did not re-enable detection, because it adds Copilot spend to a label-only workflow.edit: falseremoves the write tool from docs-review. Shell access can still change the checkout, but the workflow hascontents: readand no push output, so nothing can land.v1.Testing, in
elastic/docs-actions-sandbox, with callers pointed at this branch. I did not change the callers' secrets, so the run also shows the old explicit secrets are accepted:/triageon #117 and #112triagedplus type, team and board labels. Served byclaude-haiku-4.5.Team:SKI,area:fleet,priority:high,release:9.2. The vague one got onlyhuman-needed..github/skills/, and 37 requests were served byclaude-sonnet-5. It posted 2 action items and 3 inline comments. That looks thin for the planted defects, and I have no OpenRouter baseline.PROJECT_TOKEN.One behavior to review: the standing issue #112 ("Update the Fleet docs", almost no detail) was routed to
Team:SKIinstead ofhuman-needed. The new Haiku 4.5 triage reads "Fleet" as enough to route.Caching works under Copilot: the triage run read 54k cached tokens, so the AWF cache-miss breaker did not trip.
Related to elastic/docs-eng-team#1056
🤖 Generated with Claude Code