Repository navigation
Triage: three-team mapping, instructions file, and auto-run on new issues - #8297
Conversation
Rebuild the team ownership mapping from .github/CODEOWNERS, which names exactly three content teams: admin-docs, developer-docs, and ski-docs. Issues now route to Team:SKI, Team:Admin, or Team:Developer only. Move the mapping out of the two callers' inline additional-instructions into .github/triage-instructions.md, the reusable workflow's default project-instructions-path, so both callers read one source of truth. - Team:SKI replaces the old Team:Experience and Team:Ingest rows - Add a CODEOWNERS team -> label resolution table, including the teams that map to no label - Drop the cross-team fallback line, which contradicted the workflow contract - Escape ES|QL so the table row renders Verified in elastic/docs-actions-sandbox: five fresh issues, one per routing path, with the retired labels left in place as decoys. Zero retired labels requested. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
Add a docs-auto-triage.yml caller on issues: opened, mirroring the manual /triage caller. It reads the same .github/triage-instructions.md, so the three-team mapping applies to both paths. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Added a second commit (824ebd4): It calls The PR title still describes the mapping change; the scope is now "triage config: three-team mapping + run on new issues". Happy to split it back out if you'd rather review them separately. |
Triage now runs automatically on issues: opened and on /triage, so the menu checkbox is redundant. Drop the triage entry from docs_ai_menu.cjs and the run-docs-triage / refresh-menu-after-docs-triage jobs and the triage_triggered plumbing from docs-ai-menu.yml. Existing menu comments self-heal: the menu is rebuilt from WORKFLOW_ORDER on every refresh, so the stale triage line drops without a migration. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Third commit: triage removed from the AI issue menu, leaving only Scope. Now that triage runs on |
The workflows and scripts touched by this PR already route to @elastic/docs-engineering. The instructions file fell to the /.github/ catch-all (doc-leads only); add docs-engineering alongside so triage behavior changes reach the team that maintains the workflow. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Fourth commit: CODEOWNERS. Of the five files this PR touches, |
bmorelli25
left a comment
There was a problem hiding this comment.
Two clarifying suggestions. Otherwise looks like a good place to start!
georgewallace
left a comment
There was a problem hiding this comment.
Thanks for the fixes Brandon. Looks good.
Co-authored-by: Brandon Morelli <[email protected]>
|
Yay! Shipping it. |
The triage bot's team mapping had drifted. It still described six teams —
Team:Experience,Team:Ingest,Team:DocsEng, andTeam:Projectsalongside Admin and Developer — and it had no row forTeam:SKIat all, even though 396 issues in this repo already carry that label. Meanwhile.github/CODEOWNERShas settled on exactly three teams for content paths:@elastic/admin-docs,@elastic/developer-docs, and@elastic/ski-docs.So this rebuilds the mapping from CODEOWNERS rather than pruning the old table. Issues now route to
Team:SKI,Team:Admin, orTeam:Developer, and nothing else.I also moved the mapping out of the workflow files. It was living inline under
additional-instructionsin two callers,docs-triage.ymlanddocs-ai-menu.yml, as two byte-identical copies — which is how it drifted in the first place. It now lives in.github/triage-instructions.md, which is already the reusable workflow's defaultproject-instructions-path, so both callers read the same file and neither needed an input change.What changed inside the mapping:
Team:SKItakes over everything the oldTeam:ExperienceandTeam:Ingestrows covered: Kibana, Observability, Security, Fleet, and ingest.explore-analyze/ai-features/moves toTeam:SKI. CODEOWNERS assigns onlyai-features/agent-builder/to@elastic/developer-docs; the rest falls to the/explore-analyze/default, which is@elastic/ski-docs.@elastic/docs,@elastic/doc-leads,@elastic/docs-engineering,@elastic/core-docs, and@elastic/docs-serverless-release-teammap to no team label. Step 3 of the reusable workflow tells the model to cross-reference CODEOWNERS, so without this line it can reachTeam:DocsEngthrough@elastic/docs-engineering.triaged, and a missing team label never makes an issue non-routable.**Fallback**: apply cross-teamline. It contradicted the workflow contract, which says omit the team when ownership is unclear and reservecross-teamfor genuine multi-owner cases.ES|QLasES\|QL. The bare pipe was breaking that table row.Why I tested this before opening it
The retired
Team:*labels stay on the repo's label menu —Team:Experiencealone is on 1235 issues, so deleting them was never an option. That leaves instructions as the only lever, and prompt wording is a weak lever on Haiku-class models. So I measured the leak risk inelastic/docs-actions-sandboxfirst: same mapping text, same instructions-file mechanism, the three new labels created,Team:Experience/Team:Ingest/Team:DocsEngleft in place as decoys, and a CODEOWNERS mirroring this repo's team structure.Five fresh issues, one per routing path:
Team:Experiencetriaged,documentation,Team:SKITeam:Ingesttriaged,documentation,Team:SKITeam:DocsEngtriaged,bug,priority:highexpire_afterTeam:Admintriaged,documentation,Team:AdminTeam:Developertriaged,documentation,Team:Developer,area:esqlZero retired labels across all five, a 👍 on each, and no outcome comments. Sandbox runs: 34952778191, 34952780402, 34952784103, 34952786259, 34952794614.
What's still open
Docs-infrastructure issues now land with a type label and no team. If that turns out to matter in practice, the fix is a fourth team label rather than another mapping change. And if a retired label ever does leak in production, the structural fix is a docs-actions PR that makes "a defined team mapping is exhaustive" part of the Step 3 contract instead of a line of prose.
🤖 Generated with Claude Code
Related to elastic/docs-actions#398