Add proof nudge reminders for PRs missing behavior proof#130
Open
brokemac79 wants to merge 1 commit into
Open
Conversation
17cceb2 to
ee63ce3
Compare
ee63ce3 to
d57997f
Compare
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
Adds a phase 1 proof-followup lane for pull requests that are stuck on
triage: needs-real-behavior-proof.This is intentionally v1 nudges only:
What This Does
Adds a new
proof-nudgesClawSweeper command that finds open PRs which still have the livetriage: needs-real-behavior-prooflabel and are old enough to deserve a polite reminder.The nudge asks for real behavior evidence, gives examples of acceptable proof, and points contributors toward maintainer re-review after they update the PR.
Safety Rules
The nudge lane skips PRs when any of these apply:
Cooldown state is kept in a hidden marker in ClawSweeper's own comment body rather than by adding/removing labels.
Workflow
Adds a proof-nudge lane under the existing sweep workflow.
Manual use:
proof_nudges=truewhen dispatching the workflowproof_nudges_execute=falseproof_nudges_execute=trueonly when comments should actually be postedproof_nudges_limitcontrols the batch size, default10Scheduled use is also wired, but deliberately disabled by default:
41 9 * * *CLAWSWEEPER_PROOF_NUDGES_SCHEDULED=1is setCLAWSWEEPER_PROOF_NUDGES_EXECUTE=1is also setCLAWSWEEPER_PROOF_NUDGES_TARGET_REPO,CLAWSWEEPER_PROOF_NUDGES_LIMIT,CLAWSWEEPER_PROOF_NUDGES_MIN_AGE_DAYS, andCLAWSWEEPER_PROOF_NUDGES_COOLDOWN_DAYSSuggested rollout is manual dry-run first, then scheduled dry-run, then scheduled execute only once maintainers are happy with the reports.
Docs
Adds
docs/proof-nudges.mdand links it from the README. The docs include the manual command, workflow inputs, default-off scheduled vars, and rollout path.Validation
pnpm run build:allpnpm run lint:srcpnpm run lint:scriptspnpm exec oxfmt --check README.md src\clawsweeper.ts test\clawsweeper.test.ts package.json docs\proof-nudges.md .github\workflows\sweep.ymlnode --test --test-name-pattern "proof nudge" test\clawsweeper.test.ts