Skip to content

fix(gateway): preserve connections and turns on harmless role reloads - #175251

Merged
steipete merged 4 commits into
mainfrom
steipete/team-rolereload
Oct 17, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/team-rolereload

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes role-definition hot reloads disconnecting unrelated operators and aborting accepted work even when its effective scopes did not narrow.

User Impact

Editing one role no longer disconnects operators in another role. Reordering or widening a role's scopes preserves existing connections and accepted turns. Removing a scope still immediately retires affected connections and work, and restoring it cannot revive a revoked source. Existing work retains its admission ceiling.

Why This Change Was Made

On baseline d739d3592ba4, src/gateway/auth-policy.ts:39 included the entire role table in every connection's transport fingerprint. src/gateway/server/ws-origin-policy.ts:55 consequently sent code 4001 for every role edit. Separately, src/gateway/operator-run-authority.ts:493 compared the captured role policy for exact equality; src/gateway/operator-run-recovery.ts:237 repeated that comparison for recovered work. Both rejected harmless scope changes.

The role path was retained by #160909 rather than introduced by a regression to its unrelated-reload fix. That change separated accepted access grants from transport reauthentication, but left the global role fingerprint and the exact role-source checks in place.

Role scopes now use the existing per-profile resolver and operator-scope implication rules. Active and recovered sources share one comparison of current permission against their admitted scopes. Non-scope source restrictions keep their existing checks. The pending-handshake owner retains the superseded-role check before device approval or registration; established connections no longer use it as a global disconnect signal. Pending approval requests recheck the caller through the existing role-scope authorizer, retaining irreversible revocation across a committed revoke/restore. HTTP response authority keeps its existing conservative role-definition fence during preparation, including when roles were already enabled. The HTTP owner captures the same model-independent role-policy projection that the shared fingerprint previously carried.

Accepted boundary: explicit profile role reassignment, non-scope source-policy changes, pending handshakes, and HTTP request preparation retain their existing conservative revocation/retry behavior. This change concerns committed role-definition scope edits. Changes to a required access-policy plugin retire only affected connections: the access-authority owner records the admitted requirement independently of durable grant IDs. No configuration, storage, protocol, or dependency changes.

Evidence

The current-boot journal for deployed build 66ffabc522ac contains:

1448: 2026-10-17T05:52:04.044+00:00 [reload] config change detected; evaluating reload (gateway.roles.definitions.contributor.scopes)
1450: 2026-10-17T05:52:04.148+00:00 [reload] config hot reload applied (gateway.roles.definitions.contributor.scopes)
1451: 2026-10-17T05:52:04.260+00:00 [ws] webchat disconnected code=4001 reason=gateway policy changed conn=<redacted>
1482: 2026-10-17T05:52:04.440+00:00 [ws] webchat disconnected code=4001 reason=gateway policy changed conn=<redacted>
1562: 2026-10-17T05:52:09.814+00:00 durationMs=843470 error="Your operator role changed; reconnect before continuing."
1632: 2026-10-17T05:52:16.670+00:00 durationMs=850326 error="Your operator role changed; reconnect before continuing."

There were 15 webchat disconnects across 10 users within 180 ms. The excerpt omits user identities, session keys, run IDs, and model identifiers.

The managed-reload regression failed against main d739d3592ba472096b23aa5908ed8187deb66ca3: widening only the contributor role disconnected the unchanged maintainer and aborted an accepted contributor source with the exact role-change error. The maintainer's accepted source itself remained valid on current main; the regression distinguishes that from its incorrectly closed connection. The existing model-only reload test passed.

Validation of the change:

  • pnpm test src/gateway/server-reload-handlers.operator-model-policy.test.ts src/gateway/operator-run-recovery.test.ts src/gateway/operator-role-policy.test.ts src/gateway/server/ws-origin-policy.test.ts src/gateway/control-ui-plugin-auth-cookie.test.ts --maxWorkers=1 — 106 tests passed across five files.
  • pnpm test src/gateway/server/ws-connection/connect-device-pairing.test.ts --maxWorkers=1 -t 'keeps local pairing pending' — all four selected cases passed, including role-policy revocation before device approval commits; eight unrelated cases were excluded by the name filter.
  • node scripts/run-tsgo.mjs -p "$TMPDIR/tsconfig.json" — passed. The temporary config extends test/tsconfig/tsconfig.core.test.shard.json, includes all 17 changed TypeScript files, and checks their transitive dependencies.
  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json <17 changed TypeScript files> — passed.
  • pnpm exec oxfmt --check <18 changed files>, pnpm lint:docs docs/gateway/configuration/hot-reload.md, and git diff --check — passed.
  • pnpm test:ci-failed 175251 --run — both previously failing approval revoke/restore cases and the existing named-role plugin HTTP effect test passed unchanged after the corrections. The plugin test permits the effect after an unrelated edit and rejects it after role/default, assignment, or proxy changes.
  • pnpm test src/gateway/server-http.authority-outcomes.test.ts --maxWorkers=1 -t 'role boundary enabled|role scope revoked' — both selected real HTTP response cases passed. Owner probes reproduced stale authority before the fixes; the response tests verify rejection after enabling roles and narrowing an already-enabled role.
  • Codex pre-commit and final committed-branch review at ecb0bdc32de3eddae010d89c78bffb7c9af7d7da: scoped-clean through P2, no actionable findings. The branch review included the unchanged HTTP, scope, profile-role, connection invalidation, pairing, recovery, approval, and request-dispatch contracts.

The simplification pass removes the global role-table fence and moves the duplicate profile-lifecycle handshake check into the shared handshake owner. The additional production code performs per-identity scope reconciliation and shares the active/recovery comparison; no new manager, persistent state, or compatibility path. Delta against the base: production +90/-17 (net +73), tests +298/-13 (net +285), documentation +6/-0.

Initial CI run 39010674590 exposed two approval-request revoke/restore regressions; the follow-up fixes the approval authority owner without relaxing those tests. The same run also reported TS2741 at src/config/io.health-state-scope.test.ts:71 and :78 after an unrelated main-branch disposal change. Upstream commit 7b727f04d23f76d0aefcb4c1c5a0f5b071d8e7af fixes those exact two lines; this PR does not edit that config-health code.

The GitHub review of 884f523e7813 correctly identified that the HTTP assignment revision alone did not cover role-definition edits. The HTTP follow-up keeps the complete role-policy preparation fence locally, rather than relying on that revision; WebSocket and accepted-run scope reconciliation remain per identity.

CI run 39012238838 exposed the existing plugin HTTP effect regression on the intermediate head. Its unchanged test now passes on 7bacb8aedfad240127103421935dc2f33a9d45d8; 115 selected cases had passed at that head; the final total is recorded below.

The next review identified a required-access-policy transition missed by the scope-only connection check. A managed-reload regression reproduced the retained socket when a contributor gained a required plugin without losing its admitted scope. Connection reconciliation now compares the admitted plugin requirement from the existing access-authority owner; unaffected maintainers remain live and a revoked socket cannot enter a new write handler.

Additional proof: pnpm test src/gateway/server-reload-handlers.operator-model-policy.test.ts src/gateway/operator-access-policy.github-login.test.ts src/gateway/server/ws-origin-policy.test.ts --maxWorkers=1. All 30 cases passed across the three files; the three reload cases passed after correcting the test expectation to match silent dispatch rejection on a closed socket. The role-focused proof now covers 117 selected cases.

CI run 39013836705 passed its type/lint jobs and failed three cases in extensions/memory-core/src/tools.postgres.test.ts (stale lexical/vector results and a missing bounded result). The CI helper classified these as unknown, without a matching main-job signature. A scoped replay against a disposable PostgreSQL 17 instance with CI's unaccent, pg_trgm, and vector extensions passed all three: node scripts/test-database-conformance.mjs --engine postgres --connection <disposable-dsn> -- extensions/memory-core/src/tools.postgres.test.ts --maxWorkers=1 -t 'publishes body|publishes vector|keeps pathological'. This is diagnostic evidence, not a claimed fix or proof that the CI failures were inherited. No memory-search source or tests were changed.

Final-head CI for ecb0bdc32de3eddae010d89c78bffb7c9af7d7da: GREEN, zero pending checks, verified by node scripts/watch-pr-ci.mjs 175251 ecb0bdc32de3eddae010d89c78bffb7c9af7d7da --timeout 2700. Run 39016172327 passed, including both PostgreSQL conformance jobs. The watcher classified 15 older-head checks as superseded. No CI rerun was requested.

The final ClawSweeper review reports Findings: None and confirms that the prior HTTP, approval, and access-policy findings are addressed. It still requests an additional active/recovered final protected-operation trace before merge. This PR supplies the described owner-boundary, dispatch-rejection, and HTTP-effect tests; no live Team or provider run was performed. The PR remains open and is not merged.

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: ecb0bdc32de3eddae010d89c78bffb7c9af7d7da
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/auth-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/http-request-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/operator-role-source-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/operator-run-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-methods/approval-request-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/connect-admission.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-connection/connect-user-profile.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server/ws-origin-policy.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: M labels Oct 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T08:11:45.831539Z ecb0bdc New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR preserves operator connections and accepted turns across role-scope reloads that leave their admitted permissions intact.

Example: The contributor role changes from operator.write to operator.admin while a contributor turn and a maintainer connection are active.

  • Before: The role edit disconnects both connections and rejects the contributor's accepted authority.
  • After: Both connections remain active, and the accepted contributor turn retains only operator.write.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source repair is coherent and prior findings are addressed, but mandatory authority-chain evidence remains incomplete.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Editing role scopes disconnects unaffected operators and interrupts turns whose admitted permissions remain valid.
Reason: The maintainer-directed repair addresses an observed workflow failure without introducing settings or widening admitted permissions.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this maintainer-directed fix addresses interrupted operator workflows, and the previous HTTP, approval, and access-policy findings are addressed without a new concrete defect identified.

Priority: P1
Reviewed head: ecb0bdc32de3eddae010d89c78bffb7c9af7d7da

Before merge

  • Add real behavior proof - Authority-chain proof required: incident logs establish the pre-fix failure, and supplied tests exercise reload, recovery, dispatch rejection, and HTTP responses, but active and recovered retained sources are not shown reaching final protected operations. Supply redacted after-fix output through the shipped Gateway or an authorized production-path harness showing permitted effects after harmless reloads and rejection before I/O after scope revocation, revoke/restore, and a newly required access policy; redact IPs, API keys, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve security review attention item - No reachable bypass was established, but the changed authority lifetime still needs final-effect revocation evidence.
  • Resolve merge risk - Retained active and recovered principals now survive more role transitions, leaving their final-effect authorization after scope revocation or a newly required access policy unverified.

Findings

None.

Tests

  • Missing end-to-end proof: Missing after-fix final-effect evidence for active and recovered sources surviving harmless reloads while revoked sources remain unable to perform protected I/O after restoration.
Agent review details

How this fits together

Gateway admission captures operator permissions; committed configuration reloads reconcile connected clients and retained run authority before subsequent protected operations.

flowchart TD
A[Committed role configuration] --> B[Per-profile role resolver]
B --> C[Connection reconciliation]
B --> D[Active run authority]
B --> E[Recovery authority]
C --> F[Protected request dispatch]
D --> F
E --> F
Loading

Technical review

Best possible solution:

Preserve harmless reloads through per-profile scope reconciliation while retaining admission ceilings and irreversible revocation at protected operations.

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

Current-main source explains both failures: every role edit changes the shared transport fingerprint, and exact role-policy equality rejects harmless scope changes; incident logs and reported baseline regression failures corroborate those paths.

Is this the best way to solve the issue?

Per-profile reconciliation uses existing role and scope owners, shares active/recovery comparison, and restores the HTTP, approval, and handshake fences affected by removing global invalidation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ca07b1b0d5e1.

Merge-risk options

Maintainer options:

  1. Prove authorization at the final effect (recommended)
    Exercise active and recovered operator work through a protected operation, showing harmless reload survival and rejection before I/O after scope revocation, revoke/restore, and a newly required access policy.

Provenance checked

  • Global role-table transport fencing changes intended behavior with a stated reason (678cdf4: Access-policy reloads fenced stale clients; later transport/grant separation explicitly retained that conservative fingerprint.)
  • Active source-role equality and model-independent policy changes intended behavior with a stated reason (6b4ebc0: Accepted work retains original source restrictions while model ceilings can change independently; this PR preserves non-scope comparisons and checks current scopes against admission.)
  • Restart-recovery source-policy comparison changes intended behavior with a stated reason (961f5c0: Recovery re-admits the exact original operator under current policy without manufacturing authority; the new comparison retains its original scope ceiling and other restrictions.)
  • Profile-acquisition role fence keeps the original intent (c69b8b9: Profile acquisition must not complete under superseded role authority; the check moves into the shared handshake policy owner.)

Testing

Proof path: in-process harness.

Security

Needs attention: No reachable bypass was established, but the changed authority lifetime still needs final-effect revocation evidence.

Evidence

What I checked:

  • Current-main defect remains: Fetched main retains the global role-table transport fingerprint and exact source-policy comparisons; the PR body also supplies redacted incident logs showing role reloads followed by disconnects and interrupted turns. (src/gateway/auth-policy.ts:39, ca07b1b0d5e1)
  • Previous access-policy finding addressed: The access owner records its admitted required plugin independently of durable grant IDs, and connection reconciliation compares that requirement with the current role before retaining the connection. (src/gateway/server/ws-origin-policy.ts:75, ecb0bdc32de3)
  • Shared consumers retain their fences: HTTP preparation now retains the model-independent role-policy snapshot locally; pending handshakes retain a role-table check; approval authority observes current role scopes and committed revoke/restore transitions. (src/gateway/http-request-authority.ts:186, ecb0bdc32de3)
  • Authority proof stops before protected effects: The managed-reload regression captures authority in a test handler and checks signals, scope ceilings, and rejected dispatch; recovery checks restored authority directly. Neither exercises retained active and recovered sources through final protected I/O. (src/gateway/server-reload-handlers.operator-model-policy.test.ts:446, ecb0bdc32de3)
  • Intentional conservative boundaries: The maintainer-authored body explicitly retains conservative behavior for role reassignment, non-scope restrictions, pending handshakes, and HTTP preparation; these accepted boundaries do not require another product decision. (ecb0bdc32de3)
  • No persisted-format change: The patch changes comparisons against existing recovery snapshots without changing their serialized shape, configuration schema, or database model; requiredPolicyPlugin is connection-local authority metadata. (src/gateway/operator-run-recovery.ts:240, ecb0bdc32de3)

Likely related people:

  • Peter Steinberger: Raw commit 32d3642 adds src/gateway/auth-policy.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 32d364240be9; files: src/gateway/auth-policy.ts)
  • Shakker: Raw commit 6b4ebc0 adds src/gateway/operator-role-source-policy.ts:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b4ebc043bc8; files: src/gateway/operator-role-source-policy.ts)
  • Dallin Romney: Raw commit 961f5c0 adds src/gateway/operator-run-recovery.ts:173 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 961f5c0b7099; files: src/gateway/operator-run-recovery.ts)

PR surface

Source +73, Tests +285, Docs +6. Total +364 across 18 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 90 17 +73
Tests 6 298 13 +285
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 18 394 30 +364

Review metrics

Metric Value Why it matters
Production versus test changes Production +90/-17; tests +298/-13 Production growth reconciles per-profile scopes and preserves consumer-specific fences; test growth covers reload, recovery, HTTP response, and handshake boundaries.

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The reported role reload disconnects unrelated operators and interrupts accepted turns in an active shared Gateway workflow.
  • merge-risk: 🚨 security-boundary: Removing global role invalidation changes retained authorization lifetimes, requiring allowed and forbidden final-effect evidence.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

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

  • Add final-effect proof for active and recovered operators, including irreversible scope revocation and rejection when a role gains a required access policy.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-17T06:54:23.255Z sha 2c644c9 :: needs real behavior proof before merge. :: [P1] [P1] Preserve role revocation for shared auth-policy consumers
  • reviewed 2026-10-17T07:15:21.423Z sha 884f523 :: needs real behavior proof before merge. :: [P1] [P1] Revalidate enabled role definitions for retained HTTP requests
  • reviewed 2026-10-17T07:40:26.970Z sha 7bacb8a :: needs real behavior proof before merge. :: [P1] Fence connections when their required access-policy plugin changes

Reviewed October 17, 2026, 4:12 AM ET / 08:12 UTC (Revision 4).

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 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: 884f523e78

ℹ️ 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 thread src/gateway/http-request-authority.ts Resolved
@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 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: 7bacb8aedf

ℹ️ 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 thread src/gateway/server/ws-origin-policy.ts Resolved
@clawsweeper clawsweeper Bot removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 17, 2026
@steipete
steipete merged commit a91f7cd into main Oct 17, 2026
150 checks passed
@steipete
steipete deleted the steipete/team-rolereload branch October 17, 2026 09:00
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…openclaw#175251)

* fix(gateway): preserve connections and turns on harmless role reloads

* fix(gateway): preserve role revocation at request authority boundaries

* fix(gateway): retain HTTP role-definition authority fences

* fix(gateway): retain required access policy on role reloads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. security-sensitive-changed size: M 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