-
Notifications
You must be signed in to change notification settings - Fork 243
PR status label misroutes security-owner review as waiting on author #263
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.This issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
ClawSweeper can leave a PR labeled
status: ⏳ waiting on authoreven when the durable review says the PR is ready for maintainer review and the only remaining action is sandbox/security owner acceptance.Live example: openclaw/openclaw#90798
Latest durable review state on that PR:
Result: ready for maintainer reviewproof: sufficientActual label state after re-review still includes:
status: ⏳ waiting on authorThat label description says ClawSweeper is waiting for author action, which is misleading for security-boundary PRs where the next step is owner/security review.
Source-level cause
In
src/clawsweeper.ts,hasUnresolvedContributorWork()treatssecurityReview.status === "needs_attention"as unresolved contributor work:clawsweeper/src/clawsweeper.ts
Lines 8896 to 8907 in 413ef25
Then
prStatusLabelKind()maps any remainingunresolvedWorktowaiting_on_authorbefore it can reachready_for_maintainer_look:clawsweeper/src/clawsweeper.ts
Lines 8926 to 8941 in 413ef25
This makes sense for proof gaps, P0-P2 review findings, and incorrect patches, but not for cases where
securityReview.needs_attentiononly means "human sandbox/security owner must accept the boundary before merge."Expected behavior
When the only remaining blocker is human security/sandbox owner acceptance, ClawSweeper should not label the PR as waiting on the author.
Possible fixes:
status: needs security revieworstatus: needs maintainer/security review.ready_for_maintainer_lookwhen proof is sufficient, patch is correct, there are no P0-P2 review findings, andsecurityReview.needs_attentionis owner-acceptance rather than a concrete author-remediable security defect.Why it matters
Maintainers scanning queues may read
waiting on authoras "do not review yet," even when ClawSweeper's review text says the PR is ready and needs security/owner review. That can stall security-boundary PRs in the wrong queue.