Phase 1: sync advisory issue labels#70
Open
brokemac79 wants to merge 1 commit into
Open
Conversation
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.
Summary
This PR implements Phase 1 of #66: ClawSweeper now projects selected issue-review conclusions into GitHub advisory labels during the existing apply/comment-sync path.
Functionally, this means maintainers can filter and route reviewed open issues from the GitHub issue list or project views without reading every full ClawSweeper comment first. The detailed comment remains the explanation and evidence. The labels are only routing signals.
What Changed
clawsweeper:autofix,clawsweeper:automerge,clawsweeper:human-review,clawsweeper:merge-ready,proof: sufficient, andmantis: telegram-visible-proof.updated_atand accidentally stale a pending close decision.Phase 1 Scope
This covers Phase 1 of #66.
Included:
Not included:
Safety Notes
Advisory labels are synced only from reports that are both complete and current. Failed reports, stale reports, pull requests, and close proposals are skipped for this label projection. This keeps the labels from becoming a source of accidental automation or stale routing state.
Validation
Passed locally on Node 24 / pnpm:
pnpm run build:allpnpm run lint:srcpnpm run lint:scriptspnpm run check:active-surfacepnpm run check:limitsnode --test --test-name-pattern "advisory" test/clawsweeper.test.tspnpm run test:unit(148 tests)pnpm exec oxfmt --check CHANGELOG.md README.md docs/work-lane.md package.json scripts/check-active-surface.ts src/command.ts src/commit-sweeper.ts src/clawsweeper.ts test/clawsweeper.test.tsgit diff --checkcodex exec review --uncommitted --title "Phase 1 advisory issue labels"found no discrete correctness issues after fixes.I also tried
pnpm run test:repair; it still has existing Windows-local failures around CRLF-sensitive assertions and mocked tool lookup/hydration, unrelated to this Phase 1 label projection.