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
{{ message }}
Repository navigation
Commit c9b353d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: prompts/repair/autonomous.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Before drive mode:
34
34
- new fix PR needed because the bug is real and no viable PR exists.
35
35
7. For each useful open contributor PR, choose the repair path before merge or close:
36
36
- if `pull_request.branch_writable` is true and the diff is narrow enough, plan to update that PR branch, address review/bot findings, rebase, run checks, then emit `merge_canonical` only after it is clean. A same-repo head branch is writable even when the raw `maintainer_can_modify` flag is false;
37
-
- if `branch_writable` is false, the branch is unsafe, or the PR contains broad/unrelated churn, do not merge it and do not ask whether to wait. Emit a replacement `build_fix_artifact` / `open_fix_pr` plan that preserves the contributor's credit in `credit_notes`, PR body, and changelog plan. Put every original contributor PR in `fix_artifact.source_prs` as a full `https://github.com/<owner>/<repo>/pull/<number>` URL;
37
+
- if `branch_writable` is false, the branch is unsafe, or the PR contains broad/unrelated churn, do not merge it and do not ask whether to wait. Emit a replacement `build_fix_artifact` / `open_fix_pr` plan that preserves the contributor's credit in `credit_notes`, PR body, and release-note context. Put every original contributor PR in `fix_artifact.source_prs` as a full `https://github.com/<owner>/<repo>/pull/<number>` URL;
38
38
- when replacing a useful contributor PR, emit a blocked `close_superseded` comment that says ClawSweeper cannot safely update that branch, will carry the narrow fix forward separately, and will credit the contributor by username and PR URL. Keep `candidate_fix` null until the replacement PR exists; do not point `candidate_fix` at the same PR being closed.
39
39
8. Do not emit closure actions until the canonical path is explicit. If the cluster is over-broad, split it into subfamilies in the action matrix and use `keep_related`/`keep_independent` for clear non-targets instead of making the whole result `needs_human`.
40
40
9. When `require_fix_before_close` blocks an otherwise-clear duplicate/superseded closeout, use `status: "blocked"` and say the close is blocked on the canonical fix path or fix PR. If the item is clearly covered by an already-merged candidate PR or current `main`, `close_fixed_by_candidate` may stay `planned` with that merged candidate evidence. Do not use different vague wording.
@@ -67,17 +67,17 @@ Fix artifact actions:
67
67
- If the best canonical PR is useful but not merge-ready because it is draft, unmergeable, stale, uneditable, has `maintainer_can_modify=false`, or has broad/unrelated churn, treat it as non-viable for automation and replace it with a narrow credited fix PR. This is not a `needs_human` decision when the job allows fix PRs; maintainers already chose the replacement policy.
68
68
- Provider support gaps, missing model capability routing, and ordinary feature gaps reported as bugs should become a fix artifact when the artifact shows expected behavior and the patch can stay narrow.
69
69
-`validation_commands` must be executable commands using the target repo's package manager. For `openclaw/openclaw`, `pnpm check:changed` is the hard local gate; focused tests may be listed as helpful context but the executor may normalize them to `pnpm check:changed` to avoid blocking on unrelated flaky main CI. Do not emit `npm run validate` because that script does not exist there. Put manual browser checks and prose test plans in `pr_body`, `credit_notes`, or action evidence, not in `validation_commands`.
70
-
- For `openclaw/openclaw` changelog entries, never ask the executor to add forbidden `Thanks @codex`, `Thanks @openclaw`, or `Thanks @steipete` attribution. If the source author is one of those handles, preserve credit in `credit_notes`, PR body/history, source links, or co-author trailers instead; changelog thanks lines may name only allowed external GitHub usernames. If a user-facing changelog entry is required and only forbidden maintainers/bots are known, keep the changelog entry without a `Thanks @...` line.
71
-
- The `build_fix_artifact` action target is the cluster, not an issue or PR; set `target` to `cluster:<cluster_id>` and `target_kind`/`target_updated_at` to `null`. The action must include affected surfaces, likely files, linked issues/PRs, validation commands, changelog requirement, credit notes, and a PR title/body plan.
72
-
- If replacing a contributor PR, `fix_artifact.repair_strategy` must be `replace_uneditable_branch`, `fix_artifact.source_prs` must include the original full PR URL, `fix_artifact.branch_update_blockers` must explain why the branch cannot be safely updated, `fix_artifact.credit_notes` must name the original author and PR URL when known, `pr_body` must explain the borrowed/credited idea, and `changelog_required` should be true when the resulting fix is user-facing.
70
+
- For `openclaw/openclaw`, do not ask the executor to edit `CHANGELOG.md` during normal repair work. Preserve release-note context in `credit_notes`, PR body/history, source links, commit messages, or co-author trailers instead. Never add forbidden `Thanks @codex`, `Thanks @openclaw`, or `Thanks @steipete` changelog attribution.
71
+
- The `build_fix_artifact` action target is the cluster, not an issue or PR; set `target` to `cluster:<cluster_id>` and `target_kind`/`target_updated_at` to `null`. The action must include affected surfaces, likely files, linked issues/PRs, validation commands, release-note context, credit notes, and a PR title/body plan.
72
+
- If replacing a contributor PR, `fix_artifact.repair_strategy` must be `replace_uneditable_branch`, `fix_artifact.source_prs` must include the original full PR URL, `fix_artifact.branch_update_blockers` must explain why the branch cannot be safely updated, `fix_artifact.credit_notes` must name the original author and PR URL when known, `pr_body` must explain the borrowed/credited idea, and `changelog_required` should be false for `openclaw/openclaw` because release automation generates `CHANGELOG.md`.
73
73
- Set `fix_artifact.allow_no_pr` to `false` for normal fix/replacement PRs. Use `true` only for an explicitly audited no-PR outcome.
74
74
- The fix plan must be narrow: list only the files expected to change, focused tests, review-bot findings to address, and the exact branch/PR that could not be updated if applicable.
75
75
- Do not emit an executable fix PR path for broad feature/config/docs rewrites. If the fix needs many implementation files plus config/schema/docs/tests, split it into narrower follow-up jobs or mark the implementation blocked with exact sub-scopes; ClawSweeper Repair should not spend a 30-minute executor window on a broad product feature.
76
76
- If a target checkout is unavailable or unsafe, do not pretend to patch. Return the artifact and mark only implementation as blocked; keep classification decisions non-mutating when possible.
77
77
78
78
Merge and post-merge close:
79
79
80
-
- Recommend `merge_canonical` only when security-sensitive concerns are cleared, all actionable PR comments and review threads are resolved, review state, conflicts, changelog, and changed-surface validation are clean, and the job permits merge. Unrelated flaky main CI does not block if `pnpm check:changed` and diff checks pass for the current branch. Failing checks block merge/fixed-by-candidate closeout only when the failure is plausibly caused by the candidate branch; they do not automatically block `keep_related`, `keep_independent`, or `fix_needed`.
80
+
- Recommend `merge_canonical` only when security-sensitive concerns are cleared, all actionable PR comments and review threads are resolved, review state, conflicts, release-note context, and changed-surface validation are clean, and the job permits merge. Unrelated flaky main CI does not block if `pnpm check:changed` and diff checks pass for the current branch. Failing checks block merge/fixed-by-candidate closeout only when the failure is plausibly caused by the candidate branch; they do not automatically block `keep_related`, `keep_independent`, or `fix_needed`.
81
81
- If the job is calibrated for finalization, treat stale branches, unknown/unstable merge state, failing relevant checks, and missing review proof as repair work for the executor: rebase/refactor narrowly, rerun review, address bot/human comments, and only then merge or block with concrete proof.
82
82
- A calibrated canonical PR that needs repair must produce an executable fix artifact. Use `repair_contributor_branch` when `maintainer_can_modify=true`; use `replace_uneditable_branch` or `new_fix_pr` only when the existing branch cannot be safely updated.
83
83
- Before recommending a merge, review actionable PR comments, address required changes or state why they are blocked, prefer a narrower refactor over broad churn, and rebase against current `main` when the branch is stale.
Copy file name to clipboardExpand all lines: prompts/review-item.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -503,16 +503,14 @@ Keep open any item whose GitHub author association is `OWNER`, `MEMBER`, or `COL
503
503
504
504
Keep open any item with a protected label: `security`, `beta-blocker`, `release-blocker`, or `maintainer`. These labels mean the item needs explicit maintainer handling even when the discussion looks stale or already implemented. For PRs explicitly opted into `clawsweeper:automerge`, this protected-label rule prevents closing or cleanup, but does not by itself block a clean automerge verdict.
505
505
506
-
For OpenClaw PR changelog review, repo policy requires user-facing `fix`,
507
-
`feat`, and `perf` changes to have a `CHANGELOG.md` entry, but forbidden bot or
508
-
maintainer handles must not be forced into a `Thanks @...` line. Do not create a
509
-
review finding, needs-changes verdict, contributor action, public author request,
510
-
or next-step blocker solely because a contributor PR lacks a changelog entry.
511
-
Changelog entries are maintainer-owned landing/release work; do not ask the PR
512
-
author to add one. Also do not create a review finding merely because a
513
-
changelog entry lacks `Thanks @steipete`, `Thanks @openclaw`, or `Thanks
514
-
@codex`; if those are the only known source authors, preserving credit in PR
515
-
history/source links is sufficient.
506
+
For OpenClaw PR release-note review, `CHANGELOG.md` is release-owned. Normal
507
+
PRs, repair workers, and automerge/autofix lanes should not edit it. Do not
508
+
make missing `CHANGELOG.md` a review finding, merge blocker, work item, or
509
+
next-step blocker. If release-note context is needed, ask for PR-body or commit
510
+
message context: user-visible behavior, affected surface, issue/PR refs, and
511
+
credited human author/reporter when known. Never request `Thanks @steipete`,
512
+
`Thanks @openclaw`, `Thanks @clawsweeper`, or other forbidden bot/maintainer
513
+
changelog attributions.
516
514
517
515
When citing docs in the close comment, link the public `docs.openclaw.ai` page rather than the internal `docs/*.md` GitHub file whenever a public page exists. The docs site publishes the same content and is the user-facing target. Keep `file`, `line`, and `sha` populated in the structured `evidence` object for auditability, but the prose/comment should prefer links like `https://docs.openclaw.ai/plugins/building-plugins` over `https://github.com/openclaw/openclaw/blob/.../docs/plugins/building-plugins.md`.
Copy file name to clipboardExpand all lines: src/repair/comment-router-core.ts
+8-34Lines changed: 8 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -272,9 +272,9 @@ Title: ${safeTitle}
272
272
ClawSweeper should use this job only for the bounded ClawSweeper review/fix loop:
273
273
274
274
- Emit a fix artifact with \`repair_strategy: "repair_contributor_branch"\` and \`source_prs: ["${prUrl}"]\` so the Codex edit pass can make this PR merge-ready.
275
-
- The edit pass should rebase onto latest main, address PR comments and review findings, fix CI/check failures, add a changelog entry when required, run the relevant validation, and keep iterating until the branch is ready or an external blocker is proven.
275
+
- The edit pass should rebase onto latest main, address PR comments and review findings, fix CI/check failures, preserve release-note context when required, run the relevant validation, and keep iterating until the branch is ready or an external blocker is proven.
276
276
- If the PR branch cannot be safely updated, emit a narrow credited replacement only when the artifact can preserve the original contributor credit; otherwise return \`needs_human\`.
277
-
- Never add forbidden changelog credit lines for \`@codex\`, \`@openclaw\`, or \`@steipete\`; preserve contributor credit through source links and commit/PR history.
277
+
- Never add forbidden changelog credit lines for \`@codex\`, \`@openclaw\`, or \`@steipete\`; preserve contributor credit through source links, PR body, and commit/PR history.
278
278
- ${finalMergeLine}
279
279
- Keep repair scope limited to actionable ClawSweeper findings, failing relevant checks, and required review feedback on this PR.
280
280
${extraInstructions ? `\nMaintainer special instructions:\n\n${extraInstructions}\n` : ""}
@@ -417,40 +417,14 @@ external blocker is proven.
417
417
- Keep one PR for this issue; reuse \`${branch}\` if it already exists.
418
418
- Keep the diff narrow and avoid unrelated refactors.
419
419
- Preserve issue context and link ${issueUrl} in the PR body.
420
-
- Add a changelog entry when the target repo expects one.
420
+
- Preserve release-note context in the PR body or commit message when the
0 commit comments