fix(spec-enforcer): add enforce_all input to process all packages in one run#29765
Merged
fix(spec-enforcer): add enforce_all input to process all packages in one run#29765
Conversation
…one run Agent-Logs-Url: https://github.com/github/gh-aw/sessions/fc44185c-f168-4ed8-a81a-5f00888e7b18 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix spec-enforcer to add enforce_all input for package processing
fix(spec-enforcer): add enforce_all input to process all packages in one run
May 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an enforce_all manual-dispatch input to the spec-enforcer agentic workflow to allow processing all eligible packages in a single run (bypassing the normal 2–3 package round-robin batch), and records the chosen run mode in the PR body for traceability.
Changes:
- Introduces
workflow_dispatchinputenforce_all(defaultfalse) to enable full-sweep runs. - Updates Phase 1 package selection instructions to branch between full-sweep and round-robin modes.
- Extends the PR body template to include a “Run mode” field for auditing.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/spec-enforcer.md |
Documents the new enforce_all input, selection-mode branching, and PR body run-mode reporting. |
.github/workflows/spec-enforcer.lock.yml |
Wires the new input through the generated locked workflow and exports related context/env for prompt rendering. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
.github/workflows/spec-enforcer.md:391
- The PR body template section is still titled “Round-Robin State” and always includes “Next packages in rotation”. In
enforce_all=truefull-sweep runs this is misleading; consider renaming this section (e.g., “Run State”) and conditionally omitting or marking rotation fields asN/Awhen rotation is bypassed, so the audit trail matches the selected mode.
### Round-Robin State
- **Run mode**: ${{ github.event.inputs.enforce_all == 'true' && 'full-sweep (enforce_all)' || 'round-robin' }}
- **Packages processed this run**: <list>
- **Next packages in rotation**: <list>
- Files reviewed: 2/2 changed files
- Comments generated: 1
Comment on lines
+170
to
+173
| Determine the run mode first: | ||
|
|
||
| - **Full-sweep mode** (`enforce_all=true`): Process **all eligible packages** in a single run, in alphabetical order. Rotation state tracking is bypassed — every package with a README.md is selected. | ||
| - **Round-robin mode** (default, `enforce_all=false` or scheduled): Select **2-3 packages** using the normal priority selection logic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
spec-enforcerworkflow processes only 2-3 packages per run via round-robin, requiring ~8 daily runs for a full cycle — with no escape hatch when cache loss forces a restart from index 0.Changes
enforce_allboolean input (workflow_dispatchonly, default:false) — whentrue, selects all packages with aREADME.mdin alphabetical order and bypasses rotation state entirelyenforce_all=true→ full-sweep: all eligible packages, alphabetical, rotation ignoredRun modefield:full-sweep (enforce_all)orround-robinfor audit traceabilityUsage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/actions/github-script/git/ref/tags/v9/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv(http block)/usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 94bd537a09dfb501-d GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go(http block)If you need me to access, download, or install something from one of these locations, you can either: