Skip to content

Commit 3ed24ac

Browse files
committed
docs: clarify contributor proof lifecycle
1 parent 76d0993 commit 3ed24ac

7 files changed

Lines changed: 142 additions & 10 deletions

File tree

‎.github/pull_request_template.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,9 @@ changes when it clarifies the result.
6262
6363
Reviewers will inspect the code, tests, and CI. Use this section to make the
6464
validation easy to understand, not to restate the diff.
65+
66+
For code-bearing changes, include the current `## Real Behavior Proof` package
67+
described in [CONTRIBUTING.md](../CONTRIBUTING.md). After review feedback, update
68+
this main PR body and request a re-review only after the branch, proof, and body
69+
are current.
6570
-->

‎AGENTS.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ not split reports into issue/PR subtrees.
7777
Use the narrowest meaningful proof first and broaden it for shared or
7878
higher-risk behavior. Docs-only changes normally need `git diff --check` and
7979
relevant link or command sanity instead.
80+
- A ClawSweeper result that requires proof or identifies an accepted/actionable
81+
finding remains PR-owner work, not a handoff. Before a manually requested
82+
review or re-review, put current proof and the finding disposition or evidence
83+
in the main PR body. A head or PR-body change after the durable review marker
84+
makes that review and any affected proof stale: rerun the affected proof and
85+
obtain a review for the current head and body. CI, labels, readiness, and
86+
maintainer permissions are evidence only; the explicit-user-approval boundary
87+
below still controls landing.
8088
- Before merge or automerge, the latest ClawSweeper review must apply to the
8189
current PR head and body. Resolve every accepted finding. Apply each
8290
applicable `Rank-up moves:` item, or explicitly justify the exception in the

‎CONTRIBUTING.md‎

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# Contributing to ClawSweeper
2+
3+
ClawSweeper is the conservative maintenance bot for OpenClaw repositories. This
4+
guide is for people and coding agents preparing or updating a ClawSweeper pull
5+
request. It complements the repository's [README](README.md) and
6+
[AGENTS.md](AGENTS.md); the latter is the binding instruction file for agents.
7+
8+
## Before You Start
9+
10+
- Keep one focused problem and one pull request together. Check open pull
11+
requests first so a new change does not duplicate active work.
12+
- Start an issue or ask a maintainer before broad product, architecture,
13+
automation, workflow, or security work. Route security-sensitive work through
14+
the repository's security handling instead of a normal public PR.
15+
- For an `openclaw/openclaw` target PR, do not submit a normal PR that edits
16+
`CHANGELOG.md`. That changelog is release-owned; put release-note context in
17+
the PR body and commit message. For ClawSweeper or another target repository,
18+
follow that repository's release-note policy.
19+
- Read the root `AGENTS.md`, then any scoped instructions for files you touch.
20+
Coding agents must follow those instructions even when this guide is shorter.
21+
22+
## Local Setup and Focused Validation
23+
24+
ClawSweeper requires Node 24 or newer.
25+
26+
```bash
27+
corepack enable
28+
pnpm install
29+
pnpm run build
30+
pnpm run check
31+
```
32+
33+
Use the narrowest meaningful validation for the changed surface first. For a
34+
docs-only change, run `git diff --check` and verify the changed links and
35+
commands. For code, test, workflow, queue, API, UI, package, or integration
36+
changes, follow `AGENTS.md`: run focused behavior validation and the mandatory
37+
Codex review loop before opening or updating a PR.
38+
39+
## Create or Update a Pull Request
40+
41+
Use the [pull request template](.github/pull_request_template.md). Keep these
42+
main-body sections current:
43+
44+
- **What Problem This Solves** — the concrete user, product, or operator
45+
problem and trigger.
46+
- **Why This Change Was Made** — the shipped solution, important boundary, and
47+
non-goals.
48+
- **User Impact** — the observable benefit, or a clear statement that there is
49+
no user-visible change.
50+
- **Evidence** — focused tests, CI, screenshots, terminal output, live
51+
observations, redacted logs, or artifact links that make the validation easy
52+
to inspect.
53+
54+
For code-bearing changes, keep an executed `## Real Behavior Proof` package in
55+
the main PR body. State the claim, exercised surface, scenario or fixture,
56+
command and environment, observed result, artifact or trace, and limits. Tests
57+
and CI support the claim but do not replace proof of a changed runtime,
58+
workflow, queue, API, UI, package, or integration path. Redact tokens, private
59+
URLs, user data, and unrelated logs before posting evidence.
60+
61+
## Review Conversations Are Author-Owned
62+
63+
Treat a ClawSweeper or maintainer result as the next-step checklist for the PR,
64+
not as a handoff.
65+
66+
1. Read the latest durable ClawSweeper comment, its reviewed head, proof
67+
guidance, accepted findings, and any contributor-facing blocker.
68+
2. Address every accepted or actionable finding. Apply an applicable
69+
`Rank-up moves:` item, or explain the exception in the main PR body; those
70+
optional moves are not blockers by themselves.
71+
3. Put the updated proof and each finding's disposition or supporting evidence
72+
in the main PR body. Do not leave required proof only in a comment.
73+
4. If the branch head or PR body changed after the latest durable review, treat
74+
that review and any affected proof as stale. Rerun the affected proof and
75+
wait until the next review applies to the current head and body.
76+
5. Request `@clawsweeper re-review` only after the branch, body, proof, and
77+
relevant checks are current. PR authors and users with repository write
78+
access may use `@clawsweeper re-review` or `@clawsweeper re-run`; plain
79+
`@clawsweeper review` is maintainer-only. Do not dispatch a review workflow
80+
directly.
81+
82+
`status: ⏳ waiting on author` or `status: 📣 needs proof` means the next action
83+
belongs to the author. Let the normal queue finish after a current re-review;
84+
repeated commands before the requested changes are present add noise rather
85+
than evidence.
86+
87+
## Readiness and Landing
88+
89+
`proof: sufficient` and `status: 👀 ready for maintainer look` are evidence for
90+
maintainer review, not approval to merge. Contributors must not use maintainer
91+
repair, autofix, automerge, approve, or workflow-dispatch routes. Agents must
92+
not merge or enable/execute automerge without the user's explicit approval in
93+
the current conversation, even when a PR is otherwise ready. Normal ClawSweeper
94+
mutation and merge routes remain maintainer-controlled and subject to their
95+
separate exact-head, check, mergeability, and policy gates.
96+
97+
If a human maintainer is already actively repairing or reviewing the PR, do not
98+
work on the branch or summon a parallel ClawSweeper lane. Keep the discussion on
99+
the PR; ask for maintainer direction only when the next decision or proof
100+
requires it.

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ self-review for `openclaw/clawsweeper`.
1111

1212
Project vision and boundaries: [`VISION.md`](VISION.md)
1313

14+
## Contributing
15+
16+
For local setup, PR scope, main-body proof, and the author-owned review loop,
17+
read [CONTRIBUTING.md](CONTRIBUTING.md) before opening or updating a pull
18+
request. The guide explains when to use `@clawsweeper re-review`, why a changed
19+
head or PR body needs fresh evidence, and why readiness is not merge authority.
20+
1421
The OpenClaw-hosted ClawSweeper instance is not a public review service and does
1522
not provide free reviews for third-party repositories. If you want ClawSweeper
1623
for your own project, fork this repository, deploy it in your own organization,

‎docs/pr-review-comments.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Read when: changing issue/PR review comments, ClawSweeper repair dispatch,
44
comment-sync behavior, or the trusted marker contract between ClawSweeper review
55
and repair lanes.
66

7+
> This is implementation documentation. PR authors responding to proof or review
8+
> feedback should follow the public [contributor workflow](../CONTRIBUTING.md)
9+
> instead of treating comment markers or repair details as author instructions.
10+
711
## Purpose
812

913
ClawSweeper keeps one durable public Codex review comment per issue or pull

‎docs/proof-nudges.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Read when changing the ClawSweeper lane that reminds pull request authors to add real behavior proof.
44

5+
> This is lane-maintenance documentation. A PR author who receives a proof nudge
6+
> should use the [contributor workflow](../CONTRIBUTING.md): update the main PR
7+
> body with current proof, then request a re-review only after the branch and
8+
> relevant checks are current.
9+
510
## Scope
611

712
The proof-nudge lane is read-mostly triage hygiene. It can post a polite reminder comment when the latest ClawSweeper review still requires real behavior proof, but it does not close pull requests, merge pull requests, change labels, request reviews, or modify review records.

‎docs/repair/automerge-flow.md‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ Repairable states include:
5757
- `mergeable: CONFLICTING`;
5858
- `mergeStateStatus: DIRTY`;
5959
- `mergeStateStatus: BEHIND`;
60-
- missing `CHANGELOG.md` entry for user-facing OpenClaw `fix`, `feat`, or
61-
`perf` PRs;
6260
- terminal required-check failures such as `FAILURE`, `ERROR`,
6361
`ACTION_REQUIRED`, `STARTUP_FAILURE`, or `TIMED_OUT`;
6462
- accepted ClawSweeper repair verdicts or action markers for the exact current
@@ -78,19 +76,24 @@ and generated config checksum conflicts where the replayed commit changed only
7876
selected checksum entries. That deterministic fast path is only for explicit
7977
base-sync-only artifacts.
8078

81-
For adopted PR repairs that add only docs or changelog files after the reviewed
82-
source head, ClawSweeper runs repair-delta validation and skips the internal
83-
Codex `/review`. The exact-head ClawSweeper review and GitHub checks still gate
84-
the pushed head before merge.
79+
For adopted `openclaw/openclaw` contributor-branch repairs that add only docs
80+
or `CHANGELOG.md` after the reviewed source head, ClawSweeper runs repair-delta
81+
validation and skips the internal Codex `/review`. The exact-head ClawSweeper
82+
review and GitHub checks still gate the pushed head before merge. That target's
83+
`CHANGELOG.md` is release-owned: this validation path does not authorize a
84+
repair worker to add or update it outside separately authorized release work.
8585

8686
For adopted automerge/autofix PR repairs, the cluster worker skips the
8787
read-only Codex planning pass after it hydrates the live PR. It writes a generic
8888
structured `build_fix_artifact` result deterministically: repair the contributor
8989
branch, keep the source PR credited, rebase onto latest `main`, address PR
90-
comments/review findings/check failures, add the changelog entry when required,
91-
and validate. This removes one model round trip from every opted-in repair while
92-
keeping live evidence, permissions, security boundaries, push, review, checks,
93-
and merge gating in deterministic code.
90+
comments/review findings/check failures, preserve release-note context in the PR
91+
body and commit message, and validate. For an `openclaw/openclaw` target, it
92+
must not add or update `CHANGELOG.md` outside separately authorized release
93+
work. Other target repositories retain their own release-note policy, including
94+
an eligible changelog-only mechanical repair. This removes one model round trip
95+
from every opted-in repair while keeping live evidence, permissions, security
96+
boundaries, push, review, checks, and merge gating in deterministic code.
9497

9598
For automerge, failed exact-head checks are repair scope even when the failing
9699
file is outside the original PR's changed files. The Codex edit pass should

0 commit comments

Comments
 (0)