Skip to content

Fix Refactoring Scanner safe-output fallback - #8627

Merged
lpcox merged 5 commits into
mainfrom
copilot/aw-refactoring-opportunity-scanner
Sep 16, 2026
Merged

lpcox merged 5 commits into
mainfrom
copilot/aw-refactoring-opportunity-scanner

Conversation

Copilot AI commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

The scheduled Refactoring Opportunity Scanner completed without emitting a safe output when no new refactoring issues qualified for creation.

  • Safe-output contract

    • Require safeoutputs.noop for no-findings and already-tracked-findings paths.
    • Prohibit substituting shell output or final response text for the MCP call.
  • Regression coverage

    • Add focused assertions that both edge-case bullets retain the safeoutputs.noop requirement.
    • Regenerate the workflow lock metadata.
No significant issues found → safeoutputs.noop
All findings already tracked → safeoutputs.noop

Copilot AI changed the title [WIP] Fix no safe outputs generated by refactoring opportunity scanner Fix Refactoring Scanner safe-output fallback Sep 16, 2026
Copilot AI requested a review from lpcox September 16, 2026 15:19
@lpcox
lpcox marked this pull request as ready for review September 16, 2026 16:13
Copilot AI balanced review requested due to automatic review settings September 16, 2026 16:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The regression assertions do not verify the direct-call and fallback-prohibition contract.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Ensures the refactoring scanner emits a safe no-op output when no issue is created.

Changes:

  • Requires safeoutputs.noop for both no-finding paths.
  • Regenerates workflow metadata and adds regression coverage.
File summaries
File Description
.github/workflows/refactoring-scanner.md Defines explicit no-op behavior.
.github/workflows/refactoring-scanner.lock.yml Updates compiled body hash.
scripts/ci/refactoring-scanner-workflow.test.ts Tests no-op prompt requirements.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@copilot Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 94.12% 94.13% ➡️ +0.01%
Statements 92.80% 92.81% 📈 +0.01%
Functions 93.44% 93.44% ➡️ +0.00%
Branches 86.63% 86.64% 📈 +0.01%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/log-directory-setup.ts 96.2% → 100.0% (+3.78%) 96.3% → 100.0% (+3.71%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 72d9450 into main Sep 16, 2026
25 of 26 checks passed
@lpcox
lpcox deleted the copilot/aw-refactoring-opportunity-scanner branch September 16, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Refactoring Opportunity Scanner produced no safe outputs

3 participants