Skip to content

[ci-scan] Add Hard Rule 10 for early exit on no scannable build - #7654

Merged
kotlarmilos merged 3 commits into
mainfrom
fix/ci-scan-hard-rule-10-early-exit
Jul 3, 2026
Merged

kotlarmilos merged 3 commits into
mainfrom
fix/ci-scan-hard-rule-10-early-exit

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

Description

Adds Hard Rule 10 to ci-scan.agent.md so the scanner exits immediately when Step 1 finds no scannable build instead of continuing through later steps and burning hundreds of thousands of tokens on a run that ends in a no-op. The rule appends the documented Step 7 coverage line, prints the full Step 7 summary table including the skipped-with-reason count, emits noop, and stops without fetching the AzDO timeline, downloading task logs, or querying Helix. This is the change the ci-scan-feedback workflow proposed repeatedly but could not push, and the lock file runtime-imports the prompt so no recompile is needed.

95 consecutive ci-scan runs have skipped at Step 1 selection time
(stale build window >14d) while consuming 350-470K effective tokens on
the build-list fetch, instruction read, and reasoning. The 'and stop'
sentence in Step 1 was a prose instruction; Hard Rule 10 elevates the
no-scannable-build exit to the same level as the issue-cap and label
rules — an inviolable invariant.

When Step 1 determines no scannable build exists, the scanner must:
- append the outcome line to MachineLearning-CI.txt
- print | 0 | 0 | 0 | 1 | as the Step 7 tally (honest: 1 skipped)
- emit noop and stop immediately
- NOT fetch AzDO timeline, task logs, or Helix work items

Updates Step 1's trailing sentence to reference Hard Rule 10 directly.

Triggering signal: 14 prior ci-scan-feedback runs proposed this edit;
git push failed each time, producing misfiled fallback issues #7627,
#7630, #7636, #7637, #7639, #7640, #7641, #7642, #7643, #7644, #7645,
#7646, #7648, #7650.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 3, 2026 09:29

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.

Pull request overview

This PR updates the ci-scan agent prompt to make “no scannable build” an explicit hard invariant, ensuring the workflow exits immediately at Step 1 and reports the run as a skip (instead of continuing into later steps and consuming tokens).

Changes:

  • Add Hard Rule 10 requiring an immediate early-exit when Step 1 finds no scannable build, including emitting noop and reporting a skip tally.
  • Replace Step 1’s inline “record skip reason and stop” prose with a single authoritative reference to Hard Rule 10.
Show a summary per file
File Description
.github/workflows/ci-scan.agent.md Adds Hard Rule 10 for mandatory early exit on empty build window; updates Step 1 to defer to that hard rule.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread .github/workflows/ci-scan.agent.md Outdated
…ep 7 table

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kotlarmilos kotlarmilos changed the title [ci-scan] Add Hard Rule 10: early exit on no scannable build [ci-scan] Add Hard Rule 10 for early exit on no scannable build Jul 3, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@kotlarmilos
kotlarmilos merged commit b5b7489 into main Jul 3, 2026
6 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants