Repository navigation
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
Operators need a bounded way to retire obsolete worker-contract backlog from the CLI without clearing the queue or manually assembling Work IDs. This adds
gh aw work cancel --obsoleteusing the existing maintenance and specification semantics, implemented entirely in Go.Changes
cancelas an alias ofcancel-work, with--obsolete,--limit(1..256, further bounded by Policy), and read-only--dry-run.version: 1and reasonworker_contract_obsolete. Fresh ledger checks reject stale batches, and stable-request retries recover only original targets.The cancellation prerequisite is already on the base via #76126; no prerequisite commits are imported.
Validation
make fmtgo test ./pkg/cli ./pkg/workqueue -run 'TestWorkCancelObsolete|TestObsoleteWorkSelection' -count=1make agent-report-progress. Its initial lint findings were fixed, thenmake agent-report-progress-no-testpassed the final lint/build/schema/workflow-drift gates, including 365 compiled workflows.Live validation limitation
The live
--dry-runagainstgithub/gh-awstalled during the Git ledger read and was stopped. REST reads confirmed the queue reference stayed unchanged. Live selection remains unverified; no live cancellation or workflow dispatch was performed.Example preview: