-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Gateway pairing scope deadlock: CLI cannot approve/reject auto-reissued over-scoped repair requests #74484
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.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:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.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.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.
Type
Fields
Priority
None yet
Summary
The OpenClaw CLI is in a scope deadlock: the current paired CLI has only
operator.read, the gateway keeps auto-reissuing a pending repair request for the full default operator bundle, anddevice.pair.approve/device.pair.rejectboth require scope the CLI does not have. There is no other paired device with admin-level scope available as a bootstrap path.Environment
cli(modeprobefor paired entry, modeclifor pending request)ws://127.0.0.1:18789, loopback bind/Users/<redacted>/.openclaw/openclaw.jsonWhat happened
operator.readonly.operator.admin,operator.read,operator.write,operator.approvals,operator.pairing,operator.talk.secrets.PENDING_TTL_MS), so request IDs rotate.operator.readfails withgateway closed (1008): pairing required. This includescronmanagement and ACP / sub-agent spawn.openclaw devices reject <id>itself fails with the samepairing requirederror, becausedevice.pair.rejectrequiresoperator.pairingscope per the gateway method-scope map.What I expected
One of:
operator.pairing.operator.read+operator.adminfor cron).What I verified
operator.read(confirmed inopenclaw devices list --jsonand locally in~/.openclaw/devices/paired.json).openclaw devices list --jsonand in~/.openclaw/devices/pending.json).What is blocked
cronmanagement through the gateway.operator.read.Likely root cause (from reading the codebase)
The CLI default scope set appears to be hardcoded as
CLI_DEFAULT_OPERATOR_SCOPES = [admin, read, write, approvals, pairing, talk.secrets]. Combined with the fact that approve/reject themselves requireoperator.pairing, a CLI that ends up inoperator.readcannot self-service its way out without an external bootstrap path.Questions
operator.read+operator.admin)?operator.readwith an auto-reissued over-scoped repair request?CLI_DEFAULT_OPERATOR_SCOPESin config for repair requests?I can provide full CLI outputs and local JSON dumps on request, with secrets / device IDs redacted.
Thanks.