Skip to content

improve: simplify PR context and evidence - #94676

Merged
hannesrudolph merged 3 commits into
openclaw:mainfrom
hannesrudolph:codex/simplify-pr-evidence
Jun 19, 2026
Merged

hannesrudolph merged 3 commits into
openclaw:mainfrom
hannesrudolph:codex/simplify-pr-evidence

Conversation

@hannesrudolph

@hannesrudolph hannesrudolph commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The PR template and external-contributor body gate were still tied to a rigid real-behavior-proof form. That made readable PRs harder to write and conflated two separate concerns: author-provided PR context versus ClawSweeper's stronger proof-sufficiency review.

Why This Change Was Made

Replace the field-level proof form with authored What Problem This Solves and Evidence sections, and make Barnacle manage only the missing-context label triage: needs-pr-context. OpenClaw no longer emits or clears ClawSweeper-owned proof labels such as proof: supplied, proof: sufficient, or proof: override.

Companion ClawSweeper draft: openclaw/clawsweeper#319

User Impact

Authors can write concise PRs that explain intent, design, impact, and the most useful validation evidence. Reviewers and AI can use that context while relying on the diff, tests, CI, and ClawSweeper review as the source of truth for correctness and proof sufficiency.

Evidence

  • node scripts/run-vitest.mjs test/scripts/real-behavior-proof-policy.test.ts test/scripts/barnacle-auto-response.test.ts test/scripts/test-projects.test.ts
    • 245 tests passed.
  • ./node_modules/.bin/oxfmt --check across all changed OpenClaw files.
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode local --parallel-tests "<focused tooling command>"
    • Clean: no accepted or actionable findings.
  • ClawSweeper companion validation: pnpm run check passed.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: L labels Jun 18, 2026
@clawsweeper

clawsweeper Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 19, 2026, 1:18 PM ET / 17:18 UTC.

Summary
The PR replaces OpenClaw's structured external-PR real-behavior-proof form with authored problem/evidence sections, updates Barnacle to manage triage: needs-pr-context, and aligns related docs, skills, and tests.

PR surface: Tests -216, Docs -81, Other -353. Total -650 across 13 files.

Reproducibility: not applicable. this is an automation-policy and contributor workflow change, not a runtime bug. Source review compared current-main proof-gate behavior with PR-head context-gate behavior.

Review metrics: 1 noteworthy metric.

  • PR body gate contract: 6 proof fields replaced by 2 authored sections. Maintainers should notice that the trusted-base gate now checks context/evidence presence rather than proof sufficiency.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
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:

  • Confirm the OpenClaw/ClawSweeper ownership split for PR-body context versus proof sufficiency.
  • Wait for queued CI/OpenGrep checks on the current head to complete.

Risk before merge

  • [P1] This changes OpenClaw's external PR body gate from proof-sufficiency enforcement to context/evidence presence, so maintainers need to explicitly own that automation semantics change.
  • [P1] The workflow and check still present as Real behavior proof while the script and docs now describe a PR context/evidence gate; that may be acceptable transition debt, but maintainers should decide.
  • [P1] At live review, CI preflight, CI security-fast, and OpenGrep changed-path scanning were still queued for head e2ba43e710f6dc6d0d89dd79022004b4a844786e.

Maintainer options:

  1. Confirm Context/Proof Ownership (recommended)
    Merge after a maintainer confirms that OpenClaw should gate PR-body context only while ClawSweeper owns proof sufficiency.
  2. Rename The Check First
    If the transitional Real behavior proof name is too misleading, rename the workflow/job/check wording before landing.
  3. Pause Until Rollout Is Settled
    Keep the PR open if proof labels, context labels, or companion ClawSweeper rollout timing still need policy agreement.

Next step before merge

  • The remaining action is maintainer approval of PR-body gate semantics, companion rollout, transitional naming, and required checks, not a mechanical repair.

Security
Cleared: No concrete security or supply-chain concern was found; the diff changes trusted-base PR-body automation, docs, skills, and tests without new dependencies, workflow permissions, lockfiles, or third-party execution paths.

Review details

Best possible solution:

Land only after maintainers confirm the context-only gate and companion ClawSweeper proof policy are the intended rollout, with required checks green and a rename follow-up if desired.

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

Not applicable; this is an automation-policy and contributor workflow change, not a runtime bug. Source review compared current-main proof-gate behavior with PR-head context-gate behavior.

Is this the best way to solve the issue?

Yes, if maintainers accept the policy direction; moving proof sufficiency out of OpenClaw's body gate avoids duplicate proof ownership. The main alternative is a before-merge workflow/check rename if the Real behavior proof name is too misleading.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a normal-priority contributor workflow and automation-policy change with limited blast radius outside PR review automation.
  • merge-risk: 🚨 automation: The diff changes PR-body validation, Barnacle labels, and proof-label ownership, so green tests alone do not settle rollout semantics.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so the external-contributor real behavior proof gate does not apply; the PR body includes focused command evidence.
Evidence reviewed

PR surface:

Tests -216, Docs -81, Other -353. Total -650 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 275 491 -216
Docs 6 73 154 -81
Config 0 0 0 0
Generated 0 0 0 0
Other 3 176 529 -353
Total 13 524 1174 -650

What I checked:

  • Repository policy applied: Root AGENTS.md and the scripts, docs, and test scoped guides were read; the maintainer-label keep-open rule and automation-risk guidance affected this review. (AGENTS.md:24, 38807ffba4b2)
  • Live PR state: GitHub reports the PR open, not draft, member-authored, maintainer-labeled, mergeable but unstable, with head e2ba43e710f6dc6d0d89dd79022004b4a844786e. (e2ba43e710f6)
  • Current main behavior: Current main still evaluates a structured Real behavior proof section and maps results to proof: supplied, triage: mock-only-proof, or triage: needs-real-behavior-proof. (scripts/github/real-behavior-proof-policy.mjs:510, 38807ffba4b2)
  • Current template behavior: Current main's PR template still requires the old field-level real behavior proof section for external PRs. (.github/pull_request_template.md:45, 38807ffba4b2)
  • PR-head context gate: The PR head changes the evaluator to require authored What Problem This Solves and Evidence sections, while retaining a limited legacy problem/evidence fallback for existing open PRs. (scripts/github/real-behavior-proof-policy.mjs:434, e2ba43e710f6)
  • Barnacle label ownership: The PR head makes triage: needs-pr-context the Barnacle-owned structural label and removes Barnacle mutation of ClawSweeper proof labels from this path. (scripts/github/barnacle-auto-response.mjs:156, e2ba43e710f6)

Likely related people:

  • pashpashpash: Commit history shows this account introduced the external real-behavior-proof workflow and later positive proof labels that this PR decouples from OpenClaw automation. (role: introduced behavior; confidence: high; commits: 70f34bf1779c, 33c42c8d3b65; files: .github/workflows/real-behavior-proof.yml, scripts/github/real-behavior-proof-policy.mjs, scripts/github/barnacle-auto-response.mjs)
  • Takhoffman: Recent history shows work on exact-head proof verdicts, Barnacle proof-label preservation, and PR-template review guidance near the changed surfaces. (role: adjacent proof-label and template contributor; confidence: high; commits: 06a39015f21c, e4fba78d81fe, 9968db65db76; files: scripts/github/real-behavior-proof-policy.mjs, scripts/github/barnacle-auto-response.mjs, .github/workflows/real-behavior-proof.yml)
  • vincentkoc: Recent commits touched maintainer-membership proof checks, bounded proof parser/API behavior, Barnacle automation, and contributor workflow docs adjacent to this refactor. (role: recent area contributor; confidence: high; commits: afd9cb0c1056, 9f5c9b2e2233, ecc5601b2a4c; files: scripts/github/real-behavior-proof-policy.mjs, scripts/github/barnacle-auto-response.mjs, CONTRIBUTING.md)
  • RomneyDa: Recent history shows private-maintainer proof-gate skip and proof-label preservation work that share the gate and label-ownership boundary touched here. (role: adjacent proof-gate contributor; confidence: medium; commits: cf194419c315, 6b52dff22d5f, cdeafd189573; files: .github/workflows/real-behavior-proof.yml, scripts/github/real-behavior-proof-policy.mjs, scripts/github/barnacle-auto-response.mjs)
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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 Jun 18, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 18, 2026
@hannesrudolph

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

I reworked this after the review feedback so the ownership split is explicit:

  • OpenClaw now owns only contributor PR body context: authored What Problem This Solves and Evidence sections.
  • Barnacle now manages only triage: needs-pr-context for missing body context.
  • OpenClaw no longer emits, clears, or treats proof: supplied, proof: sufficient, proof: override, or the retired triage: mock-only-proof as context-gate labels.
  • ClawSweeper remains the real proof-sufficiency owner through the companion draft: fix(proof): decouple supplied label from nudges clawsweeper#319

Validation after the split:

  • OpenClaw: node scripts/run-vitest.mjs test/scripts/real-behavior-proof-policy.test.ts test/scripts/barnacle-auto-response.test.ts test/scripts/test-projects.test.ts passed, 245 tests.
  • OpenClaw: Codex autoreview passed with no accepted/actionable findings.
  • ClawSweeper companion: pnpm run check passed.

This should address the review concern about overloading proof: supplied; that label is no longer produced or cleared by OpenClaw.

@clawsweeper

clawsweeper Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@hannesrudolph
hannesrudolph marked this pull request as ready for review June 19, 2026 16:37
@hannesrudolph
hannesrudolph force-pushed the codex/simplify-pr-evidence branch from 56a36a4 to e2ba43e Compare June 19, 2026 17:05
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Jun 19, 2026
@hannesrudolph
hannesrudolph merged commit 4a0f497 into openclaw:main Jun 19, 2026
153 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 20, 2026
* improve: simplify PR context and evidence

* improve: decouple PR context from proof labels

* fix: satisfy PR context lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant