Reduce Refactoring Scanner AI-credit burn from duplicate-issue lookups#5125
Conversation
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
This PR updates the Refactoring Opportunity Scanner workflow prompt to reduce AI-credit usage during duplicate-issue detection by requiring metadata-only issue lookups (instead of fetching full issue bodies), and syncs the compiled lock workflow metadata accordingly.
Changes:
- Harden Phase 5 guidance to use metadata-only issue queries and avoid fetching issue bodies unless strictly required.
- Update the compiled
refactoring-scanner.lock.ymlmetadata hash to match the prompt change.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/refactoring-scanner.md | Adds explicit guidance to use metadata-only issue fields for duplicate checks to reduce context/credit usage. |
| .github/workflows/refactoring-scanner.lock.yml | Updates the gh-aw metadata hash to reflect the prompt body change. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 1
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
✅ Copilot review passed with no inline comments. @copilot Add the |
|
🔑 Smoke Copilot PAT PAT auth validated. All systems operational. ✅ |
|
❌ Contribution Check failed. Please review the logs for details. |
|
✅ Smoke Gemini completed. All facets verified. 💎 Smoke test completed. Overall status: FAIL due to connectivity issues. |
|
❌ Smoke Claude failed |
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟 |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓 |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
✅ Build Test Suite completed successfully! |
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅ |
|
🔌 Smoke Services — All services reachable! ✅ |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓 |
|
🚀 Security Guard has started processing this pull request |
|
✅ Smoke Copilot BYOK AOAI (api-key) completed. Copilot AOAI BYOK (api-key) mode operational. 🔓 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
🔥 Smoke Test: Copilot PAT Auth — PASS
Overall: PASS — Auth mode: PAT (COPILOT_GITHUB_TOKEN) cc
|
Smoke Test: Copilot BYOK (Direct) Mode ✅ PASSTest Results:
Mode: Running in direct BYOK mode (COPILOT_PROVIDER_API_KEY) via api-proxy sidecar to api.githubcopilot.com Overall Status: ✅ PASS Smoke test executed by
|
🔥 Smoke Test Results — PASS
PR: Reduce Refactoring Scanner AI-credit burn from duplicate-issue lookups Overall: ✅ PASS
|
|
Merged PRs:
Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
📡 Smoke Test: API Proxy OpenTelemetry Tracing
Summary: Core OTEL module and test suite are fully functional. The only pending item is forwarding OTEL env vars from the CLI into the api-proxy container (
|
Chroot Version Comparison Results
Overall: ❌ Not all tests passed — Python and Node.js versions differ between host and chroot.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results
Overall Status: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL
|
|
|
|
|
The Refactoring Opportunity Scanner was tripping
max-ai-creditsdue to high-cost context during duplicate issue checks, and surfaced an unknown-model pricing failure path. This change narrows Phase 5 data retrieval so duplicate detection runs on lightweight metadata instead of large issue bodies.Prompt hardening for duplicate checks
refactoring-scanner.mdPhase 5 guidance to require metadata-only issue queries.number,title,state,stateReason,labels,url.Compiled workflow metadata sync
refactoring-scanner.lock.ymlmetadata hash to match the prompt body change.