You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/proof-nudges.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,31 @@ A pull request is eligible only when all of these are true:
22
22
23
23
The lane skips maintainer-authored, bot-authored, security-sensitive, and release-style pull requests. It also skips pull requests with `proof: supplied`, `proof: sufficient`, or `proof: override`, because those need review or policy handling rather than another contributor reminder.
24
24
25
+
## Bot-Owned Proof Handling
26
+
27
+
Bot-owned replacement PRs are deliberately outside the contributor nudge lane.
28
+
Do not make normal proof nudges comment on bot-authored PRs as if a contributor
29
+
needs to respond. The `bot-proof` lane handles ClawSweeper-owned PRs that are
30
+
blocked on real behavior proof.
31
+
32
+
The bot-owned lane is status-only unless an approved Mantis proof suggestion is
33
+
available. It is eligible only when the live PR is open and not draft, the
34
+
author is the ClawSweeper GitHub App, the latest
35
+
ClawSweeper review says real behavior proof blocks merge, and that review head
36
+
SHA still matches the live head SHA. It must skip PRs with `proof: supplied`,
37
+
`proof: sufficient`, or `proof: override`.
38
+
39
+
When the review includes an approved Mantis-style proof suggestion, the lane
40
+
posts a durable Mantis proof request comment. Otherwise it updates one durable
41
+
status comment asking maintainers to choose proof capture, proof override, or
42
+
pause. It does not post contributor reminders.
43
+
44
+
For dashboard accounting, status-only maintainer requests use
45
+
`bot_proof_decision_planned` or `bot_proof_decision_posted`. Mantis proof
46
+
requests use `bot_proof_mantis_request_planned` or
47
+
`bot_proof_mantis_request_posted`. Hosted dashboard events with those tokens are
48
+
counted in the proof operation counters.
49
+
25
50
## Marker
26
51
27
52
Cooldown state lives in the reminder comment body:
-`CLAWSWEEPER_BOT_PROOF_SCHEDULED=1`: include the bot-owned proof lane in scheduled runs.
99
+
-`CLAWSWEEPER_BOT_PROOF_EXECUTE=1`: allow scheduled bot-owned proof runs to post status comments and labels. Without this, scheduled bot-proof runs remain dry-run only.
73
100
74
101
Suggested rollout:
75
102
76
103
1. Run the proof-nudge workflow manually with `execute=false`.
77
104
2. Set `CLAWSWEEPER_PROOF_NUDGES_SCHEDULED=1` to collect scheduled dry-run reports.
78
105
3. Set `CLAWSWEEPER_PROOF_NUDGES_EXECUTE=1` only after the scheduled reports look correct.
106
+
4. Run the bot-owned proof lane manually with `bot_proof=true` and `bot_proof_execute=false`.
107
+
5. Set `CLAWSWEEPER_BOT_PROOF_SCHEDULED=1` only after dry-run reports look correct.
108
+
6. Set `CLAWSWEEPER_BOT_PROOF_EXECUTE=1` only after generated comments and labels have been reviewed.
79
109
80
110
This first version intentionally has no auto-close behavior. Any escalation after repeated proof nudges needs a separate maintainer policy decision.
0 commit comments