Skip to content

docs(maint): raise PR close batch limit - #100253

Merged
steipete merged 2 commits into
mainfrom
codex/raise-pr-close-batch-limit
Jul 5, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/raise-pr-close-batch-limit

Conversation

@steipete

@steipete steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainer cleanup currently pauses for explicit confirmation when a close or reopen batch exceeds five PRs, which interrupts safe stale-queue sweeps well below the repository's 20-PR author limit.

Why This Change Was Made

Raise the maintainer workflow confirmation threshold from five PRs to 20. Exact-count confirmation remains mandatory above 20.

User Impact

No product-user impact. Maintainers can complete bounded PR cleanup batches up to 20 without an extra confirmation round trip.

Evidence

  • YAML frontmatter parsed successfully with Ruby Psych.
  • git diff --check passed.
  • Diff changes one numeric safety threshold only.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 5, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb4ef9f2bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

## Extra safety

- If a close or reopen action would affect more than 5 PRs, ask for explicit confirmation with the exact count and target query first.
- If a close or reopen action would affect more than 20 PRs, ask for explicit confirmation with the exact count and target query first.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep bulk mutation thresholds consistent across skills

When the #clawtributors workflow composes this skill, .agents/skills/clawdtributor/SKILL.md:13 delegates close/land rules here but .agents/skills/clawdtributor/SKILL.md:95 still says bulk close/reopen above 5 requires explicit scope. Raising only this guard to 20 gives agents conflicting safety instructions and can let a maintainer-triage run close or reopen 6–20 public PRs without the exact count/query confirmation this file used to require. Please either keep the shared confirmation threshold at 5 or update the composed workflows together with an explicit new mutation-safety rule.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 5:37 AM ET / 09:37 UTC.

Summary
The PR raises the openclaw-pr-maintainer skill's explicit-confirmation threshold for close/reopen batches from more than 5 PRs to more than 20 PRs.

PR surface: Docs 0. Total 0 across 1 file.

Reproducibility: not applicable. as a user-facing bug; the conflict is source-reproducible by comparing the PR diff with clawdtributor's current 5-PR safety rule.

Review metrics: 1 noteworthy metric.

  • Bulk close/reopen threshold: 1 threshold changed from >5 PRs to >20 PRs. This changes when agents must ask for exact-count confirmation before public PR close/reopen batches.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Align clawdtributor's threshold with the chosen policy, or keep both skills at 5.

Risk before merge

  • [P1] The composed clawdtributor workflow still says bulk close/reopen above 5 needs explicit scope, so merging this one-sided threshold creates conflicting safety instructions for 6-20 PR batches.

Maintainer options:

  1. Align composed skills before merge (recommended)
    Update clawdtributor's bulk close/reopen safety sentence to the same maintainer-approved threshold, or keep this skill at 5, so agents do not receive conflicting instructions.
  2. Accept the one-sided threshold
    Maintainers can knowingly merge the 20-PR guard while leaving clawdtributor stricter, but future triage runs may follow different confirmation rules.

Next step before merge

  • [P1] Needs maintainer threshold-policy handling and a coordinated update across composed bulk close/reopen instructions before merge.

Maintainer decision needed

  • Question: Should the bulk close/reopen confirmation threshold stay at 5 PRs, or be raised to 20 PRs across all composed maintainer workflows?
  • Rationale: This is a maintainer mutation-safety policy choice, and the PR currently changes only one skill while another composed workflow keeps the older guard.
  • Likely owner: steipete — He introduced the current skill safety text and authored the proposed threshold change.
  • Options:
    • Coordinate the 20-PR threshold (recommended): Update every composed close/reopen workflow that shares this guard, including clawdtributor, so agents see one maintainer-approved threshold.
    • Keep the 5-PR threshold: Leave the stricter existing guard in place until maintainers approve a broader bulk-mutation policy change.
    • Pause for a central policy: Hold the PR until the intended bulk close/reopen safety rule is documented in one canonical place and referenced by the skills.

Security
Cleared: The diff changes internal maintainer instructions only and adds no code execution, dependency, secret, or permission surface.

Review findings

  • [P2] Keep the bulk close threshold consistent — .agents/skills/openclaw-pr-maintainer/SKILL.md:316
Review details

Best possible solution:

Pick one threshold policy and make the skill docs agree; if 20 is intentional, update clawdtributor's delegated safety rule in the same change.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a user-facing bug; the conflict is source-reproducible by comparing the PR diff with clawdtributor's current 5-PR safety rule.

Is this the best way to solve the issue?

No. Raising only this skill is not the best fix because the composed clawdtributor workflow still carries the older 5-PR guard; the maintainable path is to keep both thresholds aligned.

Full review comments:

  • [P2] Keep the bulk close threshold consistent — .agents/skills/openclaw-pr-maintainer/SKILL.md:316
    This raises only the openclaw-pr-maintainer guard to 20, but clawdtributor composes this skill and still tells agents that bulk close/reopen above 5 requires explicit scope. A clawcontributors sweep would now receive conflicting safety thresholds and could close or reopen 6-20 PRs without the same exact-count/query confirmation. Please keep 5 everywhere or update the composed workflow in the same PR.
    Confidence: 0.94

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e6ec74c25430.

Label changes

Label changes:

  • add P2: This is a bounded maintainer-workflow safety change with limited product-user impact but real automation-review impact.
  • add merge-risk: 🚨 automation: The diff changes agent bulk-mutation instructions and leaves a composed workflow with a conflicting close/reopen confirmation threshold.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The gate is not applicable to this maintainer-labeled internal skill-policy change; the PR body includes static checks, not runtime behavior proof.

Label justifications:

  • P2: This is a bounded maintainer-workflow safety change with limited product-user impact but real automation-review impact.
  • merge-risk: 🚨 automation: The diff changes agent bulk-mutation instructions and leaves a composed workflow with a conflicting close/reopen confirmation threshold.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The gate is not applicable to this maintainer-labeled internal skill-policy change; the PR body includes static checks, not runtime behavior proof.
Evidence reviewed

PR surface:

Docs 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored and merged the docs rewrite that introduced both relevant skill files and both 5-PR bulk close/reopen safety statements; he also authored this proposed threshold change. (role: introduced behavior and recent area contributor; confidence: high; commits: f7d7148cf047, bb4ef9f2bd32; files: .agents/skills/openclaw-pr-maintainer/SKILL.md, .agents/skills/clawdtributor/SKILL.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 5, 2026
@steipete
steipete force-pushed the codex/raise-pr-close-batch-limit branch from bb4ef9f to f1c56ad Compare July 5, 2026 09:53
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts agents Agent runtime and tooling size: M and removed size: XS labels Jul 5, 2026
@steipete
steipete merged commit 7137be3 into main Jul 5, 2026
92 of 94 checks passed
@steipete
steipete deleted the codex/raise-pr-close-batch-limit branch July 5, 2026 09:57
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b47e64278

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +340 to +341
for (const manifest of listOfficialExternalProviderEndpointManifests()) {
entries.push(...readManifestProviderEndpoints(manifest));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Skip fallback endpoints for installed catalog plugins

When an official external provider plugin is installed with endpoint metadata that removes or changes one of the bundled mirror entries, this still appends the stale catalog manifest for that same plugin. The first-wins behavior only resolves duplicate URL conflicts; URLs that the installed manifest intentionally stopped declaring will still match the fallback catalog and be treated as native, so request compatibility/SSRF policy can ignore the installed plugin's authoritative manifest. Track installed plugin ids from listOpenClawPluginManifestMetadata() and skip the matching catalog manifest once that plugin is present.

Useful? React with 👍 / 👎.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 6, 2026
* docs(maint): raise PR close batch limit

* docs(maint): raise PR close batch limit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant