Repository navigation
Triage split: routing-only triage, quality gate moves to scope - #335
Conversation
Drop the quality-bar sub-agent from issue-triage and issue-auto-triage. Quality rating moves to issue-scope where it runs as a gate before scoping. Callers (beats, integrations, elastic-agent, docs-content) will no longer receive quality-check comments on newly opened or /triaged issues. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Remove content-checker sub-agent and quality bar entirely. Triage now applies triaged + type + team labels and reacts with 👍. No comments or author questions under any circumstances. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Remove content-checker sub-agent and quality bar entirely. Auto-triage now applies triaged + type + team labels and reacts with 👍. No comments or author questions under any circumstances. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…abels Callers can now declare board metadata labels (priority, area, size, release, etc.) via additional-allowed-labels workflow input instead of opening a PR to the shared allowlist. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…fic labels Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Red-quality issues are now caught at scope time: the quality-checker sub-agent runs first and posts a team-facing gap list if the issue is missing information. Orange/green issues proceed to scoper+sizer. Quality rating replaces the content-checker removed from triage. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Remove quality bar, outcome behavior table, content-checker references. Add additional-allowed-labels input documentation. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Remove quality bar, outcome behavior table, content-checker references. Add additional-allowed-labels input documentation. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The Anthropic SDK pings api.anthropic.com during initialization even when ANTHROPIC_BASE_URL points to OpenRouter. Without this the firewall logs a blocked-domain warning on every run (workflow still succeeds, but gh-aw posts a noisy security-scanning-failed comment). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The Anthropic SDK pings api.anthropic.com during initialization even when ANTHROPIC_BASE_URL points to OpenRouter. Without this the firewall logs a blocked-domain warning on every run (workflow still succeeds, but gh-aw posts a noisy security-scanning-failed comment). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The gh-aw safe-output `add-labels.allowed` list is baked in at compile time and has no runtime extension mechanism, so an `additional-allowed` field does not exist. Drop the static allowlist entirely instead: the router already reads the repo's label list and is instructed never to invent labels, and `max: 6` bounds the write. This lets each repo use its own board metadata labels (priority, area, size, release) declared in `.github/triage-instructions.md`, which is the mechanism that already exists and can express when to apply each label, not just its name. Also recompiles all 13 lock files against gh-aw v0.88.7. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
A red quality gate left only a comment, which is neither durable nor filterable. `human-needed` describes exactly this state and lost its home when the content-checker came out of triage, so the scope gate now owns it. No effort label is added since the sizer never runs. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Collapses the old green and orange outcomes into one: labels plus a 👍. The old red becomes label-only — `human-needed` with `triaged` withheld, so both `-label:triaged` and `label:human-needed` stay filterable. No comment is posted in either branch. The router now returns `routable`, judging only whether the issue can be routed, not whether it is well written. Quality assessment stays in the scope workflow. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
gh-aw runs threat detection on built-in engines only. Both triage workflows use the claude engine pointed at OpenRouter, which counts as custom, so detection silently fell back to copilot, found no copilot credentials, and failed. Because detection continues on error, every run applied its labels anyway and posted a "security scanning failed" comment. The control was never actually running. Turning it off makes the real state explicit and stops the noise. The scope workflow keeps detection, since its engine is copilot and its detection works. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sandbox testing surfaced two regressions from the previous two commits. A well-formed issue came back `human-needed`. The routability wording made a missing team label contribute to the not-routable decision, and most repositories map only a few teams, so ordinary issues tripped it. Routability now defaults to yes and requires both an undeterminable type and no named subject, with missing team called out as explicitly not a reason. A second issue picked up `needs-team`, which is a remove-only label. Dropping the add-labels allowlist left nothing stopping the agent from adding it, so `needs-team` is now in a `blocked` list — flexible labels are preserved and the known-bad one is refused. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sandbox testing caught the agent inventing `type:documentation` on an issue whose repo only has `documentation`. gh-aw creates missing labels by default, so the hallucinated name became a real label in the repo. The router prompt already said never to invent labels, but nothing enforced it once the allowlist came out. `create-if-missing: false` makes the safety property real: any existing repo label is fair game, anything else is refused. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The router produced `type:documentation` for a repo whose label is `documentation`. It appears to generalise the prefix convention from board metadata labels like `area:` and `priority:` onto labels that never used one. With create-if-missing off the bad name is refused, so the type label silently disappeared instead. The router is now told to copy label names character for character from the repository's list, with prefixing called out as the specific failure to avoid. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…labels Sandbox testing showed the type label vanishing in the parent→router hand-off. The parent composes the sub-agent's task prompt at runtime and haiku rewrote the return contract into a flat label list, so five rounds of tightening the router's own instructions changed nothing — they were never what drove the output. With the content-checker gone there is one job left, so the delegation was pure overhead. The workflow is now a single agent that fetches the repository's labels as a menu, reads the project and inline instructions for when each applies, and selects verbatim from that menu. Selection from a fetched list is far more reliable for a small model than generating names and verifying them, which is where `type:documentation` came from. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Removes the router sub-agent and the never-shipped additional-allowed-labels input from both READMEs. Documents the fetch → read → select flow, the routable / not-routable outcomes, and the two guardrails that replace the static allowlist: create-if-missing off and needs-team blocked on add. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Requesting changes based on the inline findings.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
|
|
||
| - **🔴 Quality gate** — the quality-checker returned red (score 0–1): the issue lacks | ||
| information needed to produce a useful scope. | ||
| - Call `add_labels` once with `human-needed` as a plain string. Do not add an effort label — |
There was a problem hiding this comment.
[MEDIUM] human-needed is never cleared after a successful scope rerun
The new quality-gate path adds human-needed, but there is no removal path when a later /scope run proceeds with orange/green outcomes. That leaves a stale human-needed label on issues that are now scorable and can misroute backlog filters.
Please add a corresponding cleanup step in successful/partial outcomes (for example, allow remove_labels for human-needed and call it when assessment continues).
|
|
||
| ## end agent: `content-checker` | ||
| In both cases: do not post a comment. Do not edit the issue body. Do not include a `suggest` | ||
| field in any label call. If a contract label such as `triaged` or `human-needed` is missing from |
There was a problem hiding this comment.
[MEDIUM] Missing fallback when human-needed does not exist in the target repo
The not-routable branch requires add_labels(["human-needed"]), but this section also says to "apply the rest" when contract labels are missing from the fetched menu. In a repository that does not define human-needed, this path can emit no labels at all (while also withholding triaged and posting no comment), leaving the issue without a triage signal.
Please make this failure mode explicit (for example: pre-validate that human-needed exists and fail loudly, or define a deterministic fallback signal).
|
|
||
| ## end agent: `content-checker` | ||
| In both cases: do not post a comment. Do not edit the issue body. Do not include a `suggest` | ||
| field in any label call. If a contract label such as `triaged` or `human-needed` is missing from |
There was a problem hiding this comment.
[MEDIUM] Missing fallback when human-needed is absent from the label menu
This has the same failure mode as the manual triage workflow: the not-routable branch requires human-needed, but the contract also allows dropping missing contract labels. If human-needed is not defined in the consumer repository, the issue can end with no triage marker (triaged withheld, no comment).
Please enforce the contract label up front (or add a deterministic fallback path) so not-routable outcomes always leave an explicit signal.
| constrained by safe outputs. | ||
|
|
||
| For the same logic running automatically when an issue is opened, see | ||
| For quality assessment and scope estimation, see [issue-scope](../docs-issue-scope/). |
There was a problem hiding this comment.
[LOW] Broken docs link to issue-scope workflow
../docs-issue-scope/ does not resolve to an existing directory in this repository, so this link sends readers to a 404.
| For quality assessment and scope estimation, see [issue-scope](../docs-issue-scope/). | |
| For quality assessment and scope estimation, see [issue-scope](../issue-scope/). |
| constrained by safe outputs. Issues opened by bots are skipped automatically. | ||
|
|
||
| ## Trigger | ||
| For quality assessment and scope estimation, see [issue-scope](../docs-issue-scope/). |
There was a problem hiding this comment.
[LOW] Broken docs link to issue-scope workflow
../docs-issue-scope/ does not resolve to an existing directory in this repository, so this link sends readers to a 404.
| For quality assessment and scope estimation, see [issue-scope](../docs-issue-scope/). | |
| For quality assessment and scope estimation, see [issue-scope](../issue-scope/). |
| # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"45d1dff158d55ded1f0de567688a609605a397ee7e764cd743aa9f6b18e354f2","body_hash":"858953172b5c4c7b50fbc2876316392c95c263c8c083921ba41cdb07e9dae894","compiler_version":"v0.87.10","agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.80"}} | ||
| # gh-aw-manifest: {"version":1,"secrets":["GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_PLUGINS_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"bc8c008a419c5b7a29df6f5641edd35fd1c6ea85","version":"v0.87.10"},{"repo":"microsoft/apm-action","sha":"d723bb64ed70c135bbaf87d126b721dd2dae0439","version":"v1.10.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.10","digest":"sha256:c01e6d16d11ea4f2a46cc023a9f402224a3b3861b026818eec0dc586d7e6918e","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.10@sha256:c01e6d16d11ea4f2a46cc023a9f402224a3b3861b026818eec0dc586d7e6918e"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.10","digest":"sha256:c3a18aebb8251339117ea998296315de17bada366f8d03919b3348ea71112e64","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.10@sha256:c3a18aebb8251339117ea998296315de17bada366f8d03919b3348ea71112e64"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.10","digest":"sha256:c06076f7aca95df713e0748c44d80c0a3c2538fad67bfdd04296d45158e083e6","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.10@sha256:c06076f7aca95df713e0748c44d80c0a3c2538fad67bfdd04296d45158e083e6"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.14","digest":"sha256:b2f0c2b2f17b5fbe809e5bb99dc185b6ddd70df25295dc63a6d526350334eff5","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.14@sha256:b2f0c2b2f17b5fbe809e5bb99dc185b6ddd70df25295dc63a6d526350334eff5"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:33e1ec1d967ac1f28c2cedc24ce103dea3226840626de345d3fe579e96cf5c7d","pinned_image":"ghcr.io/github/gh-aw-node@sha256:33e1ec1d967ac1f28c2cedc24ce103dea3226840626de345d3fe579e96cf5c7d"},{"image":"ghcr.io/github/github-mcp-server:v1.11.0","digest":"sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699","pinned_image":"ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699"}],"mcp_servers":[{"name":"elastic-docs","tools":["*"]},{"name":"github","tools":["get_commit","get_file_contents","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","create_pull_request_review_comment","missing_data","missing_tool","noop","submit_pull_request_review"]}]} | ||
| # This file was automatically generated by gh-aw (v0.87.10). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md | ||
| # gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"45d1dff158d55ded1f0de567688a609605a397ee7e764cd743aa9f6b18e354f2","body_hash":"858953172b5c4c7b50fbc2876316392c95c263c8c083921ba41cdb07e9dae894","compiler_version":"v0.88.7","agent_id":"copilot","agent_model":"claude-sonnet-5","engine_versions":{"copilot":"1.0.80"}} |
There was a problem hiding this comment.
[HIGH] Compiled lock workflows changed without corresponding source changes
This PR modifies multiple .github/workflows/gh-aw-*.lock.yml files whose matching .github/workflows/gh-aw-*.md source files are unchanged (for example gh-aw-docs-review.lock.yml, gh-aw-docs-style-sweep.lock.yml, gh-aw-docs-typos-sweep.lock.yml). In this repository's two-file workflow model, lock files are generated artifacts of the .md source and should not drift independently.
Please either include the matching .md source edits for every changed lock workflow, or drop lock-only changes from this PR.
… names, quality gate Model section now describes the codex engine on openai/gpt-5.6-luna with detection on Copilot sonnet and the OPENROUTER_API_KEY requirement. The MCP tool names match what the server exposes. Adds the quality-gate outcome and human-needed label that PR #335 introduced but the README never documented. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* Move issue-scope to GPT-5.6 Luna via OpenRouter Switches the engine from copilot to codex with OPENAI_BASE_URL pointed at OpenRouter and the model set to openai/gpt-5.6-luna, following the same direct-OpenRouter pattern the triage workflows already use. Threat detection is pinned to copilot so it keeps working: detection does not inherit the engine's base-URL override, and callers already grant copilot-requests: write. The APM skills target becomes `all` because apm-action has no codex target. The bash tool is removed rather than widened to `["*"]` — codex cannot honour a per-command allowlist, and the only command, `date`, fetched a value the prompt never used. Callers need no changes: all of them use `secrets: inherit`, and the workflow reads OPENROUTER_API_KEY by the org's existing name. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: disable bash explicitly rather than leaving it implicit Dropping tools.bash entirely left shell access at the engine default, and with min-integrity: none the compiler warns that community-authored issues could reach a shell. The agent has no shell needs — its only command was a date lookup the prompt never used — so bash: false states the intent and clears the warning. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: APM target is codex, not all The apm CLI rejects `all` ("Unknown target 'all'") and lists codex among its valid harness targets, so the sandbox run died in the apm job before the agent started. The README I relied on was stale; action.yml and the CLI agree that codex is supported. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: pin the threat-detection model, not just the engine `threat-detection: engine: copilot` pinned the engine but the detection job still inherited the workflow's top-level model, so it asked the Copilot CLI for openai/gpt-5.6-luna, which Copilot does not serve. The engine failed and detection fell open on every run — the sandbox log shows COPILOT_MODEL set to the Luna slug in the detection step. The object form with an explicit model restores the combination the pre-switch baseline actually ran and verified: copilot + claude-sonnet-5, which produced a real detection_result.json. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: detection model is the sonnet alias Use gh-aw's `sonnet` alias for the copilot detection engine instead of a pinned `claude-sonnet-5`. The alias resolves to whatever sonnet Copilot serves, so the pin survives a sonnet-5 → sonnet-6 rollover without a recompile. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: use the elastic-docs MCP server's real tool names The mcp-servers allowlist and the scoper prompt named SemanticSearch, GetDocumentByUrl, FindRelatedDocs, and FindInconsistencies. The server at www.elastic.co/docs/_mcp/ exposes search_docs, get_document_by_url, find_related_docs, and find_docs_inconsistencies. No name matched, so the allowlist filtered every tool out and each run logged "tools/list returned 0 tools for 'elastic-docs'" — under copilot and codex alike. Scope has been assessing docs impact without access to the docs corpus. Pre-existing; surfaced while testing the engine switch. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: allow ab.chatgpt.com for the codex engine Codex CLI contacts ab.chatgpt.com at startup; the firewall denied it twice per run. Allowing it removes the denial noise. Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs-agent-experimental: use the elastic-docs MCP server's real tool names Same defect as issue-scope: the allowlist named SemanticSearch, GetDocumentByUrl, FindRelatedDocs, and FindInconsistencies, none of which the server exposes, so it filtered every tool out. The sweeps and docs-review use `allowed: ['*']` and were never affected. Co-Authored-By: Claude Fable 5.1 <[email protected]> * scope: blank the inherited OPENAI_BASE_URL on the detection engine The detection job inherits the main engine's env, so OPENAI_BASE_URL pointed at OpenRouter inside a sandbox configured for copilot. The AWF entrypoint saw an OpenAI base URL, ran its codex-style connectivity pre-flight, could not reach it, and killed the container before threat-detect started — every run since the engine switch. Pinning the model was necessary but not sufficient. Setting OPENAI_BASE_URL to an empty string on the detection engine overrides the inherited value so the pre-flight is skipped. Co-Authored-By: Claude Fable 5.1 <[email protected]> * docs(issue-scope): README reflects Luna via OpenRouter, real MCP tool names, quality gate Model section now describes the codex engine on openai/gpt-5.6-luna with detection on Copilot sonnet and the OPENROUTER_API_KEY requirement. The MCP tool names match what the server exposes. Adds the quality-gate outcome and human-needed label that PR #335 introduced but the README never documented. Co-Authored-By: Claude Fable 5.1 <[email protected]> --------- Co-authored-by: Claude Fable 5.1 <[email protected]>
Summary
Splits quality assessment out of triage and into scope, so triage becomes a pure labelling step.
Triage (
issue-triage,issue-auto-triage) — content-checker sub-agent and quality bar removed entirely. The router now returns aroutablejudgement and the parent applies one of two outcomes, with no comment in either case:routable: yestriaged+ type + team + board metadataroutable: nohuman-neededonly,triagedwithheldWithholding
triagedkeeps both-label:triagedandlabel:human-neededusable as backlog filters. The router judges only whether an issue can be routed — explicitly not whether it is well written, which is scope's job now.Scope (
issue-scope) — newquality-checkersub-agent runs first as a gate. A red rating (0–1) applieshuman-needed, posts a team-facing gap list, and skips the scoper and sizer entirely, avoiding the MCP and sonnet-5 spend. Orange and green proceed to full scoping.Label allowlist dropped from triage
add-labels. gh-aw bakesallowedin at compile time with no runtime extension, so repos could not use their own board metadata labels (priority, area, size, release) without a PR here. The router only ever selects from labels it reads off the target repo and is instructed never to invent one;max: 6bounds the write. Each repo declares its taxonomy in.github/triage-instructions.mdor inlineadditional-instructions, which can express when to apply a label rather than only naming it.Threat detection disabled on the two triage workflows. gh-aw runs detection on built-in engines only; these workflows use
claudepointed at OpenRouter, which counts as custom, so detection fell back tocopilot, found no Copilot credentials, and failed. Detection continues on error, so every run applied its labels anyway and posted a "security scanning failed" comment — the control was never actually running. Turning it off makes that explicit and stops the noise. Scope keeps detection, since its engine iscopilotand its detection works.Also:
api.anthropic.comadded tonetwork.allowed(the Anthropic SDK pings it during init even whenANTHROPIC_BASE_URLtargets OpenRouter); gh-aw bumped v0.87.10 → v0.88.7; all 13 lock files recompiled; READMEs updated.Security note
With detection off and the allowlist open, nothing scans agent output for injection before labels are applied. Accepted deliberately: label writes are capped at 6, restricted to labels already present in the repo, trivially reversible, and these workflows run at autonomy tier B (human on the loop). Flagging it so the tradeoff is on the record rather than implicit.
Affected callers
elastic/docs-content (
docs-triage.yml, manual/triage) and elastic/docs-eng-team (docs-triage.yml+docs-auto-triage.yml). Both stop receiving quality-check comments. Theworkflow_callinterface is unchanged, so no caller edits are needed.elastic/beats,elastic/integrations, andelastic/elastic-agentcallelastic/ai-github-actions/.../gh-aw-issue-triage.lock.yml@v0— a different repo — and are not affected.Verification
Tested end to end in
elastic/docs-actions-sandboxagainst this branch.gh aw compileclean on all 13 workflows at v0.88.7documentation+triaged+ 👍, zero comments/triageon a vague issue (Bump the github-actions group across 8 directories with 8 updates #112) →human-neededonly, notriaged, no 👍, no comment/scopeon a well-formed issue (Reduce docs-review suggestion noise #117) → passed the gate, produced a 🟠 assessmentapi.anthropic.comfix/scopeon a vague issue (Bump the github-actions group across 8 directories with 8 updates #112) → 🔴 quality gate withhuman-needed, scoper/sizer skipped🤖 Generated with Claude Code
Related to #398