Repository navigation
Use default Sonnet path for current gpt-5.4 workflows - #151
Merged
Merged
Conversation
Drop engine.model from docs-review, docs-issue-scope, and docs-coherence-sweep so they use the default Copilot fallback model path (claude-sonnet-4.6 when no override vars are set), then recompile lock files. Co-authored-by: Codex <[email protected]> Co-authored-by: Cursor <[email protected]>
2 tasks
theletterf
added a commit
that referenced
this pull request
May 17, 2026
* Remove explicit gpt-5-mini model pins from gh-aw workflows. Follows up on #151 (which removed gpt-5.4 pins). Explicit model pins can trigger github/gh-aw#32197 where gpt-5-family models fail via the /chat/completions endpoint in strict AWF mode. Let gh-aw select the model. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Recompile gh-aw lock files after removing gpt-5-mini model pins Co-Authored-By: Claude Sonnet 4.6 <[email protected]> --------- Co-authored-by: Claude Sonnet 4.6 <[email protected]>
theletterf
added a commit
that referenced
this pull request
Sep 20, 2026
…he Skill tool Under the claude engine the APM-installed .claude/skills were deleted before the agent started: restore_base_github_folders.sh runs after the PR checkout with GH_AW_AGENT_FOLDERS=".agents .claude .github" and either overwrites .claude from the base snapshot or removes it as PR-injected. The frontmatter skills: key installs in activation and is restored after that step. Skill was also absent from --allowed-tools, so every Skill call returned permission_denied; bypassPermissions is the only mode that lifts it, and the allowlist adds no boundary with unrestricted bash already on. Pinned to elastic-docs-skills 952fbdd (PR #151), which removes disable-model-invocation from the review skills. Co-Authored-By: Claude Fable 5.1 <[email protected]>
theletterf
added a commit
that referenced
this pull request
Sep 20, 2026
* Scope: single agent, quality gate + docs impact, no sizing Remove every sizing concern from issue-scope: the sizer sub-agent, the Cost & benefit section, effort buckets, ownership, audience, bill of materials, and good-for-ai. Scope now judges issue quality, searches the Elastic docs corpus for affected pages, verifies the request against any linked code, says how to tackle the work, and lists questions to go deeper. Structural changes from the 2026-09-15 analysis: - One agent. The three sub-agents delegated under codex and not under Claude, and the best production comment came from the run that did the work itself. - Docs MCP search is mandatory and first. It had never been called in any run under either engine. - Drop the APM import and its job. The installed skills were never invoked. - Linked code is evidence, not a prerequisite. No PR caps confidence at Medium instead of forcing a partial outcome. - Labels: human-needed on the red quality gate only, create-if-missing false. Drop "Not assessable" — with one agent that is a run failure. Compiled with gh-aw v0.88.7, zero warnings. README and example updated; example drops the dead project-instructions-path. Co-Authored-By: Claude Fable 5.1 <[email protected]> * README: measured AIC from the sandbox battery Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs-review: migrate to OpenRouter + six-criteria rubric Move the workflow from the Copilot engine to Claude via OpenRouter (anthropic/claude-sonnet-5). Add ANTHROPIC_API_KEY to the secrets manifest; consumers must now pass this secret in their caller workflow. Import review-criteria.md from elastic/elastic-docs-skills at compile time so both the local docs-review-pr skill and this workflow share one authoritative rubric. Structured the prompt around the rubric's six criteria (User focus, Technical accuracy, Applicability, Maintainability, Language, Style) and removed the embedded prose checklists that duplicated what the rubric and APM skills already cover. Updated the review body format to match the skill's six-criteria output. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * feat(docs-review): switch to gpt-5.6-luna via codex engine; explicit skill invocations Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * revert(review): use claude-sonnet-5 via OpenRouter for PR review GPT 5.6 Luna costs ~2× more per run due to higher cache-read pricing on long-prompt workloads, and the Skill tool is not available in the codex engine — both reasons to stay on claude-sonnet-5. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(review): use claude-sonnet-5 model ID for OpenRouter Anthropic-format endpoint OpenRouter's Anthropic-format /v1/messages endpoint requires model IDs without the provider prefix (claude-sonnet-5, not anthropic/claude-sonnet-5). The anthropic/ prefix is for the OpenAI-compatible endpoint only. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(review): restore sonnet alias and correct OpenRouter base URL Use the gh-aw 'sonnet' alias (OpenRouter resolves it) instead of a hardcoded model ID. Use https://openrouter.ai/api as the base URL — Claude Code SDK appends /v1/messages, giving the correct path. Adding /v1 to the base URL caused a double-path 404. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * fix(review): add api.anthropic.com to firewall allowlist Claude Code makes fallback calls to api.anthropic.com during startup; blocking them surfaces a warning in the run logs. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * Fix docs-review caller secret name in example and README The reusable workflow reads secrets.OPENROUTER_API_KEY and maps it to ANTHROPIC_API_KEY internally. The example and install docs told callers to pass ANTHROPIC_API_KEY, so new adopters following them would fail authentication. Production callers use secrets: inherit and were not affected. Co-Authored-By: Claude Fable 5.1 <[email protected]> * feat(review): install docs skills via frontmatter skills: and allow the Skill tool Under the claude engine the APM-installed .claude/skills were deleted before the agent started: restore_base_github_folders.sh runs after the PR checkout with GH_AW_AGENT_FOLDERS=".agents .claude .github" and either overwrites .claude from the base snapshot or removes it as PR-injected. The frontmatter skills: key installs in activation and is restored after that step. Skill was also absent from --allowed-tools, so every Skill call returned permission_denied; bypassPermissions is the only mode that lifts it, and the allowlist adds no boundary with unrestricted bash already on. Pinned to elastic-docs-skills 952fbdd (PR #151), which removes disable-model-invocation from the review skills. Co-Authored-By: Claude Fable 5.1 <[email protected]> * chore(review): reference docs skills by @main; compiler pins the SHA in the lock Co-Authored-By: Claude Fable 5.1 <[email protected]> * fix(review): invoke skills by directory name, add OpenRouter attribution, drop APM import Sandbox run 35500726847 confirmed the frontmatter skills: install survives the base-folder restore and that bypassPermissions lets the agent call the Skill tool: six installs, six registered, six Skill calls completed. Claude Code registers each skill under its directory name, so the prompt now names them that way instead of by frontmatter name. The shared/apm.md import is removed: under the claude engine its .claude/skills output is deleted before the agent starts, so the apm job only cost a runner. Attribution headers match the triage workflows so docs-review spend shows up as its own app on OpenRouter. A skill that fails to run is now reported in the review Notes instead of dropped. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * chore(review): record frontmatter skill pins in actions-lock.json Compiler output from the previous commit that was left unstaged. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * fix(review): keep skills report-only and hand them the pre-fetched Vale output Sandbox run 35500726847 showed two skill-quality gaps. applies-to-tagging rewrote the reviewed file instead of reporting; the agent noticed and ran git checkout -- to undo it. The prompt now passes a validate-only instruction and states the revert rule. docs-check-style could not run vale on the runner; the prompt now points it at the JSON the Vale pre-step already wrote. README documents the skills: install, the @main pin, and why permission-mode is bypassPermissions. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * fix(review): stop re-fetching guidance the skills already fetch; wire secrets in README example docs-check-style, content-type-checker, and applies-to-tagging each fetch the published style, content-type, and cumulative-docs pages they need through the Elastic docs MCP server, so the prompt no longer tells the agent to fetch the same pages before judging. Direct fetches are reserved for pages no skill covered. The Vale hint no longer claims vale is missing; the binary is on the runner but not on the skill's PATH. The README example invocation now passes OPENROUTER_API_KEY, which the PR Review bot flagged as missing after the earlier secret-name fix. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * fix(review): deny Edit on the checkout so no skill can rewrite reviewed files applies-to-tagging rewrote the reviewed file in both sandbox runs: it declares Edit, its SKILL.md says "report or fix", and a forked skill inherits the parent's permission mode. Prompt wording is a request, not a boundary. Deny rules block in every mode including bypassPermissions, and Claude checks file permissions against Edit(path) rules only, so one Edit(./**) deny covers Edit, Write, NotebookEdit and MultiEdit across the checkout for the agent and every fork. /tmp/gh-aw/agent stays writable. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * fix(scope): exempt the CODEOWNERS read from the search-before-read rule Step 1 reads .github/CODEOWNERS for path vocabulary, but Step 4 forbade get_file_contents before the first search_docs result, so the prompt contradicted itself and the agent had to pick one. The ordering rule exists to stop the agent scoping against repository files instead of published docs; CODEOWNERS is vocabulary, not evidence, so it is now a named exception and the rule keeps its purpose. Reported by the PR Review workflow on #352. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * chore(review): refresh the docs-skills pin to pick up the write-safety fix A @main skill reference resolves once and the SHA is cached in .github/aw/actions-lock.json, so a plain `gh aw compile` keeps serving the old commit after the upstream merge. Only --force-refresh-action-pins re-resolves it. Moves the six skills from 44d2d7a to b079923 (elastic-docs-skills#152: applies-to-tagging report-only, docs-check-style reads pre-computed Vale). Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * docs(review): state what the deny rule actually enforces The comment claimed review is read-only. The deny rule covers the built-in file tools, the file commands Claude recognizes in bash, and shell redirections — but not a subprocess that opens files itself, which stays reachable while bash is unrestricted. Say that instead of implying a guarantee the rule does not make. Also records why one Edit rule is enough: Claude consults path rules for Edit only, so Write, MultiEdit, and NotebookEdit path rules would be accepted and never consulted. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * Recompile all workflows to satisfy the pre-commit hook The compile-workflows hook builds all 13 workflows; I had only compiled the two I edited, so CI found drift in two places. Compiling gh-aw-docs-review with --force-refresh-action-pins cleared the whole action-pin cache and re-resolved only the entries that workflow needs, dropping github/gh-aw-actions/setup-cli and microsoft/apm-action — still used by the sweeps and docs-agent-experimental. Both are restored. The other 11 lock files pick up an upstream gh-aw-node image digest change, unrelated to this branch. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b * docs(review): add copilot-requests to the README example permissions The install section requires permissions.copilot-requests: write and example.yml grants it, but the inline example block did not. A consumer copying that snippet fails at runtime, because a reusable workflow cannot grant a permission its caller never had. Reported by the PR Review workflow on #352. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
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.
Summary
engine.model: gpt-5.4from the workflows currently pinned to 5.4:gh-aw-docs-review.mdgh-aw-docs-issue-scope.mdgh-aw-docs-coherence-sweep.mdWhy
The default Copilot fallback resolves to
claude-sonnet-4.6when no model override variables are set, which matches the requested behavior and avoids hard-pinning these flows to 5.4.Test plan
make compilewith zero errors and warnings.engine.modelis removed from the three source workflows.${{ vars.GH_AW_MODEL_AGENT_COPILOT || 'claude-sonnet-4.6' }}and${{ vars.GH_AW_MODEL_DETECTION_COPILOT || 'claude-sonnet-4.6' }}forCOPILOT_MODEL.Made with Cursor