Skip to content

fix(ci): stop label-driven automation churn - #119610

Merged
steipete merged 1 commit into
mainfrom
agent/openclaw-workflow-churn-112370
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
agent/openclaw-workflow-churn-112370

Conversation

@steipete

@steipete steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

ClawSweeper rating and proof labels trigger overlapping PR automation runs. Their canceled duplicate checks leave otherwise-green PRs marked unstable, while issue/comment automation accidentally shares one concurrency lane across unrelated items. The existing Real behavior proof check only validates PR context, so its display name also overstates what it verifies.

Why This Change Was Made

  • Run the renamed PR context and evidence gate only for PR content/head events.
  • Cancel superseded automation only when a PR head actually changes.
  • Give auto-response each issue or PR its own concurrency lane.
  • Ignore ClawSweeper-authored PR label feedback while preserving human and other bot label events.
  • Preserve required ci-gate and exact-merge check names unchanged.

ClawSweeper check-name compatibility will land before this PR.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 5, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 9:07 AM ET / 13:07 UTC.

ClawSweeper review

What this changes

This PR changes GitHub Actions event filtering and concurrency so PR labels do not churn automation while head updates still supersede obsolete runs.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 5 items remain

Keep open: current main still cancels active automation on label events, and this PR’s per-item concurrency repair addresses that owner boundary. No concrete patch defect was found, but merge should wait for real after-fix Actions evidence and confirmed ClawSweeper check-name compatibility.

Priority: P2
Reviewed head: a1aadff20e055e5d903dbb0dc28d2859b527c943
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The workflow repair is coherent and narrowly tested, but real after-fix Actions evidence remains a merge gate.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports focused tests and scenarios but has no after-fix GitHub Actions evidence showing the changed label and synchronize event behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports focused tests and scenarios but has no after-fix GitHub Actions evidence showing the changed label and synchronize event behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Current-main churn mechanism: Current main groups non-PR auto-response events by ref/run identifier and cancels all pull-request-target runs; the proof workflow also listens to label events and always cancels in-progress work.
Proposed owner-boundary repair: The PR keys auto-response work by issue/PR number, cancels only synchronize events, filters only ClawSweeper label feedback, and removes label events from the PR-only context workflow.
Consumer and sibling behavior: Barnacle still processes normal PR label events, while the sibling ClawSweeper dispatcher already uses issue/PR identity for item-scoped dispatch; the proof checker reads only the PR payload/body.
Findings None None.
Security None None.

How this fits together

GitHub issue, comment, and pull-request events enter the automation workflows, which invoke Barnacle for labels/responses and a trusted PR-body context check. Their concurrency settings determine whether separate items run independently or newer events cancel useful in-progress work.

flowchart LR
A[Issue, comment, or PR event] --> B[Auto-response workflow]
B --> C[Per-item concurrency decision]
C --> D[Barnacle labels and responses]
E[PR lifecycle event] --> F[PR context and evidence workflow]
F --> G[Trusted PR-body check]
D --> H[GitHub labels and comments]
G --> H
Loading

Decision needed

Question Recommendation
Has the ClawSweeper compatibility change that recognizes “PR context and evidence” been deployed before this workflow rename lands? Verify compatibility first: Confirm the deployed ClawSweeper consumer accepts the renamed workflow and job before merging this PR.

Why: The repository has no internal required-check dependency on the old name, but the PR explicitly declares an external automation ordering dependency that source inspection cannot verify.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports focused tests and scenarios but has no after-fix GitHub Actions evidence showing the changed label and synchronize event behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The PR renames the check while its body says ClawSweeper compatibility will land first; that companion deployment is not proven in the available evidence.
  • Resolve merge risk (P1) - The PR body reports tests and scenarios but does not show an after-fix Actions run demonstrating label filtering and synchronize-only cancellation on the changed workflow.
  • Complete next step (P2) - The protected maintainer label, external compatibility ordering, and missing event-level proof require human merge review rather than an automated repair job.
Agent review details

Security

None.

PR surface

Tests +48, Config +6. Total +54 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 48 0 +48
Docs 0 0 0 0
Config 2 14 8 +6
Generated 0 0 0 0
Other 0 0 0 0
Total 3 62 8 +54

Review metrics

Metric Value Why it matters
Production versus test LOC workflow production +14/-8; tests +48/-0 The production growth is a focused concurrency and event-ownership repair, with separate guard coverage for the changed workflow contract.

Merge-risk options

Maintainer options:

  1. Prove companion compatibility before merge (recommended)
    Verify the deployed ClawSweeper consumer recognizes the renamed check and attach a redacted after-fix Actions trace for representative label and synchronize events.
  2. Defer the rename
    Keep the old workflow and job display name until the external consumer is confirmed compatible.

Technical review

Best possible solution:

Deploy and verify the ClawSweeper consumer for the new check names, then merge this focused workflow repair after a representative after-fix Actions trace is attached.

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

Yes—source reproducible: current main subscribes the proof workflow to label events and cancels in-progress work, while auto-response cancels all PR-target events. No live Actions event was executed in this read-only review.

Is this the best way to solve the issue?

Yes—the change fixes cancellation at the workflow concurrency owner and preserves Barnacle handling for human and non-ClawSweeper-bot labels; the only remaining requirement is compatibility sequencing for the renamed check.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded CI automation reliability repair with limited but maintainer-visible blast radius.
  • add merge-risk: 🚨 automation: Workflow event, cancellation, and display-name changes can affect Action status handling and the external ClawSweeper consumer.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports focused tests and scenarios but has no after-fix GitHub Actions evidence showing the changed label and synchronize event behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This is a bounded CI automation reliability repair with limited but maintainer-visible blast radius.
  • merge-risk: 🚨 automation: Workflow event, cancellation, and display-name changes can affect Action status handling and the external ClawSweeper consumer.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports focused tests and scenarios but has no after-fix GitHub Actions evidence showing the changed label and synchronize event behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Current-main churn mechanism: Current main groups non-PR auto-response events by ref/run identifier and cancels all pull-request-target runs; the proof workflow also listens to label events and always cancels in-progress work. (.github/workflows/auto-response.yml:14, 74014c286d36)
  • Proposed owner-boundary repair: The PR keys auto-response work by issue/PR number, cancels only synchronize events, filters only ClawSweeper label feedback, and removes label events from the PR-only context workflow. (.github/workflows/auto-response.yml:15, a1aadff20e05)
  • Consumer and sibling behavior: Barnacle still processes normal PR label events, while the sibling ClawSweeper dispatcher already uses issue/PR identity for item-scoped dispatch; the proof checker reads only the PR payload/body. (scripts/github/barnacle-auto-response.mjs:1012, 74014c286d36)
  • Regression coverage: The added workflow-guard tests assert the narrowed event set, per-item keys, synchronize-only cancellation, and ClawSweeper-bot label filter. (test/scripts/ci-workflow-guards.test.ts:903, a1aadff20e05)
  • Required-check contract: The documented and production merge gate remains openclaw/ci-gate; no in-repository production consumer requires the old proof-workflow display name. Public docs: docs/ci.md. (docs/ci.md:73, 74014c286d36)
  • History and likely ownership: The current workflow snapshot is attributed to Peter Steinberger; earlier history includes the real-proof gate and label-event behavior, and Peter previously repaired false failures caused by cancelled superseded runs. (.github/workflows/real-behavior-proof.yml:10, 169dad622480)

Likely related people:

  • steipete: Owns the current workflow snapshot, authored this PR, and previously fixed false failure handling for cancelled superseded CI runs. (role: recent CI/workflow contributor; confidence: high; commits: 2b003f186dd8, 169dad622480; files: .github/workflows/auto-response.yml, .github/workflows/real-behavior-proof.yml)
  • pashpashpash: Introduced the external-PR real-behavior-proof gate that this PR renames and narrows. (role: real-proof feature introducer; confidence: medium; commits: 70f34bf1779c; files: .github/workflows/real-behavior-proof.yml)
  • Shadow: Introduced auto-response processing for label events, the behavior whose cancellation consequences are being repaired. (role: label-event behavior contributor; confidence: medium; commits: 2f9c523bbebc; files: .github/workflows/auto-response.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach redacted Actions run links or logs showing a ClawSweeper label does not churn this workflow and synchronize still supersedes a prior run.
  • Confirm the deployed ClawSweeper check-name compatibility before the workflow/job rename lands.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@steipete

steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer landing decision — exact head a1aadff20e055e5d903dbb0dc28d2859b527c943

I reviewed this maintainer-authored workflow-only change and explicitly override the prior ClawSweeper “needs real behavior proof” verdict: that contributor-proof requirement does not apply to maintainer-authored PRs. The policy normalization and compatibility with the renamed PR context and evidence check are already deployed in ClawSweeper #1033, main commit 4dc8d1d8c5331386a04bd78cc6d289e05f6e94d5.

Exact-head hosted CI completed successfully across all 67 jobs, including the required openclaw/ci-gate: https://github.com/openclaw/openclaw/actions/runs/31008247639. Fresh head-pinned focused verification completed with 180 passing tests and one intentional skip. A fresh independent structured branch autoreview reported zero actionable findings and correctness confidence 0.99; git diff --check also passed.

Because pull_request_target loads its workflow definition from the trusted base branch, real after-fix label/synchronize event execution cannot occur before this change lands. The new workflow-guard tests directly cover those event branches; verify the first matching production events after merge. A requested live bot re-review could not start because its separate GitHub App installation API quota was exhausted, not because of any code or CI failure.

Maintainer decision: the stale proof verdict is false, compatibility is deployed, exact-head proof is sufficient, and this PR is approved for the repository-native landing flow.

@steipete
steipete merged commit e7b7d1c into main Aug 5, 2026
111 of 118 checks passed
@steipete
steipete deleted the agent/openclaw-workflow-churn-112370 branch August 5, 2026 13:53
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 5, 2026
* origin/main: (130 commits)
  refactor(qa): consolidate scenario runtime helpers (openclaw#119623)
  fix(telegram): bind Mini App auth to dashboard launches
  refactor(agent-core): unify session projection and compaction summaries (openclaw#119639)
  fix(codex): allow natural reactions in the current conversation (openclaw#119649)
  refactor(providers): deduplicate bundled model catalogs (openclaw#119627)
  fix(ui): observe the active service worker after asset refresh (openclaw#119622)
  fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488)
  improve: make state-heavy test suites faster (openclaw#119617)
  perf(agents): add concurrency benchmark (openclaw#119569)
  fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526)
  refactor(lobster): consolidate embedded workflow execution (openclaw#119630)
  fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635)
  docs(skills): make full-authority maintainer runs unattended (openclaw#119629)
  fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614)
  fix(ci): stop label-driven automation churn (openclaw#119610)
  fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127)
  fix(claws): remove owner-qualified skills (openclaw#119606)
  fix(clawrouter): show stable error for malformed usage responses (openclaw#119580)
  fix(gateway): claim malformed plugin icon routes (openclaw#119559)
  fix(telegram): preserve truthful empty-content delivery (openclaw#88810)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant