Repository navigation
Scope: single agent, quality gate + docs impact, no sizing - #341
Conversation
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 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sandbox battery: 4/4Caller
Runs: The docs MCP is now actually used. In all three non-red runs the first The no-PR rule change works as intended. #137 has no linked code and came out 🟢 with Medium-capped targets, where the previous contract forced 🟠. #138, with a linked PR, verified against the commit and correctly reported Partially accurate — the blanket wording is already gone from the published page, and only the Grafana cross-link remains. That is the same conclusion the Aug 24 sonnet run reached on docs-content#8057, at 10 AIC instead of 54. Questions land where intended. #140's Questions to resolve before rerunning Cost: 3.45–9.93 AIC across the four, against the Sep 10 Luna baseline of 8 (gate) / 13 (partial). README updated with the measured range. Sandbox caller restored to Marking ready for review. Companions: elastic/docs-ai-tools#12 (registry), elastic/docs-content#8300 and elastic/docs-content-internal#1799 (drop the dead |
There was a problem hiding this comment.
Requesting changes: the current prompt includes contradictory step-ordering constraints that force non-deterministic behavior.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
| linked changes, to check whether that page needs updating. | ||
|
|
||
| ### 1. Use the supplied context | ||
| Do not call `get_file_contents` or read any repository source file until you have recorded at |
There was a problem hiding this comment.
[HIGH] Step ordering conflict makes the MCP-first rule self-contradictory
Step 1 and Step 2 require repository reads before Step 4 (for example reading .github/CODEOWNERS and the project-instructions file), but Step 4 says to perform docs MCP research "before any other research" and forbids repository file reads before the first search_docs result. In a compliant run, the agent has to violate one side of this contract, which can produce inconsistent behavior and incorrect outcome selection.
| Do not call `get_file_contents` or read any repository source file until you have recorded at | |
| Do not call `get_file_contents` for additional repository research until you have recorded at least one `search_docs` result set. Required context reads in Step 1 and Step 2 (for example `.github/CODEOWNERS` and the optional project-instructions file) are allowed before this gate. |
…elastic#8300) Small cleanup from the Scope workflow analysis: `docs-scope.yml` passes `project-instructions-path: .github/scope-instructions.md`, but that file has never existed in this repository. The reusable workflow tolerates a missing file and continues, and its default is the same path — so this line changes nothing and just reads like configuration that isn't. Removing it. If we ever want repo-specific scope instructions, adding the file at the default path is all it takes; no caller change needed. Pairs with elastic/docs-actions#341, which reworks Scope itself, but does not depend on it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Related to elastic/docs-actions#399 Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Rewrites
gh-aw-issue-scopearound what the team actually wants from it: judge whether an issue is ready, work out which docs pages it touches and how to tackle them with the information available, and ask the questions that would sharpen the scope. Everything about time, effort, ownership, and benefit is gone.What changed and why
The 2026-09-15 analysis of every production and sandbox run found the workflow's structure was doing less than its prompt claimed. Scope has run three times in production since August, all via the AI-menu checkbox. Across those runs and the Sep 10 Luna sandbox battery:
search_docsmandatory and first, before anyget_file_contents, and a run with nosearch_docscall cannot be 🟢.apmjob ran on every execution for nothing. Import and job removed.Not verifiable against code, but a well-formed issue can still be 🟢.run-failurestatus message covers it.Removed
Sizer sub-agent,
## 📋 Cost & benefit, effort buckets (hours,weeks: *), ownership, audience/degree/benefit confidence, synergies, bill of materials,good-for-ai, theImpactcolumn (a sizing proxy).add-labels.allowedis now["human-needed"]only,max: 1,create-if-missing: false.Kept
Engine block (Luna via OpenRouter on codex), threat detection on copilot
sonnetwith the blankedOPENAI_BASE_URL, the four snake_case elastic-docs tools, quality bar, network allowlist, concurrency, allworkflow_callinputs. The 🔴 gate template is unchanged.New comment shape (🟢)
Summary · Request accuracy · Recommended docs targets (Page / URL / Action / Confidence / Why) · How to tackle this · Scope boundary · Questions to go deeper. 🟠 is the same sections minus whatever could not be assessed, closing with Questions to resolve before rerunning
/scope. Both are team-facing; the author is never mentioned.Lock verification
Compiled with pinned gh-aw v0.88.7, zero warnings. Jobs:
pre_activation activation agent detection safe_outputs conclusion— noapm.GH_AW_SAFE_OUTPUTS_CONFIGshowsadd_labels.allowed: ["human-needed"], create_if_missing: false, max: 1. Zero## agent:blocks in the lock.Testing
Draft until the sandbox battery passes: well-formed issue with no PR (expect 🟢 with questions, ≥1
search_docsin the rpc log), well-formed with a linked PR (🟢), vague (🔴 +human-neededonly), borderline (🟠). Forcing the MCP at prompt level is wording, and wording is a weak lever on this class of model — if the battery shows zerosearch_docscalls, the fallback is droppingreposfrom the github toolsets so the MCP is the only path to page content. Results will be posted here.Companion changes to follow: docs-ai-tools registry entry, and removal of the dead
project-instructions-pathline from the docs-content and docs-content-internal callers (the file it names has never existed).🤖 Generated with Claude Code
Related to #399