Skip to content

fix(gateway): gate operator RPCs until hello-ok - #1472

Merged
shanselman merged 4 commits into
mainfrom
fix/operator-rpc-before-hello-1418
Sep 24, 2026
Merged

shanselman merged 4 commits into
mainfrom
fix/operator-rpc-before-hello-1418

Conversation

@karkarl

@karkarl karkarl commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #1418

Summary

  • Gate operator readiness on WebSocket open plus hello-ok for the current connection generation.
  • Send application RPCs through generation-bound sends after readiness, while keeping the connect handshake on its existing path.
  • Add loopback regression coverage that proves pre-handshake application RPCs do not reach the wire and post-handshake sends still work.
  • Maintainer repair: reuse the shared HandshakePendingError marker so command-catalog, session-file, and compaction payload readers return unavailable while hello-ok is pending instead of throwing. Generation-bound admission is unchanged.

Required proof pools

  • windows-wsl-gateway-e2e: Attempted once at this head, FAILED overall. All 19 mandatory real Gateway cases and 3 teardown guards passed, with 1 ordinary optional Ollama skip. The pinned wrapper nevertheless exited 1 at its final preservation guard because the maintenance fingerprint changed. Passing tests or green hosted CI do not override this failed pool result. No repeat, maintenance repair/clear, reboot, or new attempt is authorized implicitly.

The exact-head/fingerprint-bound one-use approval was consumed. Initial admission explicitly retained unresolved maintenance as a warning, not a harmless-queue or reboot-free claim. The maintenance value remained MultiString but changed from 172 to 180 elements. Retained snapshots contain only kind/count/whole-value hash, so ordered-prefix, appended/new/reordered/removed counts and affected task-root/system/other categories are unknown, not inferred from the net increase. Raw paths were not retained, read for this closeout, or interpreted. The difference is established across the run interval, not causally attributed to tests or another actor. Other normal-host hashes, distro state, and process cleanup checks passed. Parent owns the failed pool disposition; WSL policy remains blocked for new runs.

Validation

Current head: d5529dc15b42909d8b011df971a50a1b8e9a48b3

Ordinary merge and normal push only. Parents are prior validated head 14ca9617b82988ad16bde89a4e8035533104f104 and exact main 42c562f91a42ae0251ac971c44f6ce0f8028e88d; resulting tree is db084a10c1a096914e811c98da715d239e5f7f78. All six reviewed operator/client/test blobs remain byte-identical. No new operator source repair or broad source review was needed.

Native Windows ARM64, private .NET SDK 10.0.400, isolated worktree. OPENCLAW_REPO_ROOT points to the worktree. OPENCLAW_TRAY_DATA_DIR and OPENCLAW_TRAY_APPDATA_DIR are isolated; outer OPENCLAW_STATE_DIR, OPENCLAW_TRAY_LOCALAPPDATA_DIR, OPENCLAW_TRAY_LOCAL_DATA_DIR, and E2E flags are unset for unit runs.

Command Final local result
.\build.ps1 All five targets and documentation validation passed.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,102 passed, 35 skipped, 0 failed; 4,137 total.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,069 passed, 0 skipped, 0 failed.
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore 796 passed, 5 skipped, 0 failed; 801 total.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~GatewayProtocolLiveRoundTripTests|FullyQualifiedName~GatewayRequestShutdownClassificationTests|FullyQualifiedName~OpenClawGatewayClientTests|FullyQualifiedName~OpenClawGatewayClientAssistantMediaTests|FullyQualifiedName~GatewayProtocolModelsTests' 314 passed, 0 skipped, 0 failed; includes 12 real loopback cases.

The initial local Shared run is preserved: 4,101 passed, 35 skipped, 1 failed in unchanged McpHttpServerTests.Dispose_DuringInFlightHandler_DoesNotSurfaceObjectDisposedException. Its process-global unobserved-task assertion captured SafeFileHandle / StreamReader.ReadToEndAsyncInternal disposal exceptions. Historical CI run 35617173469, job 106391193895 has the same assertion/stack; test/owner blobs match main. After inspecting the evidence, the isolated full MCP HTTP class passed 26/26 and one complete required-floor rerun passed. No MCP source change or unsupported root-cause attribution was made.

Hosted CI: one bounded replay passed

Run 35927629541, attempt 2 completed success, including CI Gate, at the unchanged head above. This was the single expressly authorized failed/cancelled-jobs replay. Core/CLI and UI reran; already-passing substantive jobs retained their original timestamps/results. The attached finite monitor required cancellation at 20 minutes in Tray UI or 35 minutes overall. Neither limit was reached and no replay cancellation was needed. No further replay is authorized.

Fresh attempt-2 artifact IDs were selected explicitly so earlier artifacts were not mistaken for replay results: Core 10781767319, UI 10782285831. All listed TRX run outcomes are Completed with 0 failures.

Replayed suite Passed Skipped Total
Shared 4,136 1 4,137
Connection 800 1 801
WinNode CLI 127 0 127
Tray UI 197 5 202
Functional UI 19 0 19
Accessibility 22 0 22

Core/CLI job 107423584735, UI job 107423584652, and CI Gate job 107425760359 all succeeded. The replay's Tray UI step completed in 70 seconds. The original Piper cancellation test passed in the replay (109.6 ms whole-test duration).

Attempt 1 remains recorded as cancelled, not erased by the replay. Core/CLI failed PiperVoiceExtractionTests.ExtractTarBz2Async_CancellationIsBoundedAndKillsExtractor because its fixture did not publish its PID within the three-second startup wait, before cancellation was requested. The test/owner blobs match main. Separately, Tray UI completed discovery and logged Starting: OpenClaw.Tray.UITests, then produced no individual Tray result for 50m17s. The only UI artifact was Functional UI's 19 passing tests; no Tray TRX or stalled test identifier was available. After fresh verification that only UI remained active, a single parent-authorized normal cancellation bounded excessive resource use. No confirmed hang/root cause was claimed. The old rerun watcher was stopped before cancellation; only the subsequent expressly authorized attempt-2 replay was issued.

Review provenance: the bounded marker repair at 5d2345db7ef322385afcd6e7016058a1c079ffdf passed focused rubber-duck and structured Codex 0.156.1 ARM64 autoreview (gpt-5.6-sol, high, exit 0, no actionable findings). Command: python .agents\skills\autoreview\scripts\autoreview --mode commit --commit 5d2345db7ef322385afcd6e7016058a1c079ffdf --engine codex --codex-bin <verified-session-private-codex.exe>. No broad repeat review was run because the six reviewed blobs remain unchanged. Guarded-runner artifact checks passed 26 synthetic maintenance cases plus 15 unsafe-condition rejection checks and 4 positive AST guard checks.

Author-provided validation at prior head de8c5cfc

  • $env:OPENCLAW_REPO_ROOT='C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-laughing-happiness'; .\build.ps1: passed. All builds succeeded.
  • $env:OPENCLAW_REPO_ROOT='C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-laughing-happiness'; dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: passed. 4094 passed, 32 skipped, 4126 total.
  • $env:OPENCLAW_REPO_ROOT='C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-laughing-happiness'; dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: passed. 3064 passed, 0 skipped, 3064 total.
  • $env:OPENCLAW_REPO_ROOT='C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-laughing-happiness'; dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter FullyQualifiedName~GatewayProtocolLiveRoundTripTests: passed. 7 passed, 0 skipped, 7 total.
  • $env:OPENCLAW_REPO_ROOT='C:\Users\biilai\.copilot\repos\copilot-worktrees\openclaw-windows-node\karkarl-laughing-happiness'; dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore: failed on existing host prerequisite. ManagedLocalGatewayPortProvenanceServiceTests.VerifyMicrosoftSignedFile_AcceptsWindowsWslBinary reports WSL relay Authenticode verification failed (Unsigned). 792 passed, 1 skipped, 1 failed, 794 total.
  • Rubber-duck review: code-review agent inspected the final staged diff and reported no significant issues.

Real behavior proof

  • GatewayProtocolLiveRoundTripTests.ApplicationRpc_BeforeHelloOk_DoesNotReachWire connects to a loopback gateway with no challenge or hello-ok, calls RequestNodesAsync, verifies no node.list frame is captured, calls GetUpdateStatusAsync, verifies no update.status frame is captured, then verifies direct wizard send fails with Gateway handshake has not completed and still captures no update.status frame.
  • GatewayProtocolLiveRoundTripTests.HandshakeGate_Reconnect_SuppressesEarlyMutationThenSendsAfterHelloOk covers a real WebSocket trace where a mutation returns false while the challenge is withheld, the same mutation succeeds after challenge/connect/hello-ok, readiness clears after server close, and the mutation succeeds again after reconnect handshake.
  • The generation-bound SendRawAsync(..., connectionGeneration, ...) path is now used for application RPC sends, so a ready snapshot from an old socket cannot authorize a send on a replacement socket.

Current-head withheld-hello payload-reader proof

PayloadReader_HelloOkPending_ReturnsUnavailableThenSucceeds covers commands.list, sessions.files.list, sessions.files.get, sessions.compaction.list, and sessions.compaction.get. The five cases failed before the marker repair and pass at this head. The production client receives a real challenge and sends connect; the server withholds hello-ok, then delivers a valid response correlated to that connect ID on the same socket.

Observed for each reader:

connect captured, hello-ok withheld; IsSupported=false; no application frame
hello-ok accepted on same socket; IsSupported=true; exactly one request/response completed
disconnected read still throws; only handshake-pending reads return unavailable

Current-head native product Gateway smoke

Official OpenClaw 2026.9.5 (ec9c1a1), native Windows, foreground gateway run --bind loopback --port 21472 --auth token --tailscale off. Own home/state/workspace/config and fresh token, OS-only environment whitelist, no inherited provider credentials, and disabled channels/plugins/cron/browser/desktop/hooks/updates/telemetry. Fresh synthetic identity approved through the ordinary exact-request device command in that disposable profile. This native smoke involved no service installation, Companion UI, WSL, or real user profile.

The probe asserted full head d5529dc15b42909d8b011df971a50a1b8e9a48b3 in production OpenClaw.Shared.dll. SHA256: DD9FA2CDF037225C38C384270DA6DC5CD5E9AB12327A0D1EBB397765992F8F92.

HTTP /healthz = 200
cycle=1 hello-ok=true ready=true
cycle=1 commands.list IsSupported=True commandCount=64
cycle=1 health.ok=true
cycle=1 disconnected readiness=false payloadRead=throws-connection-not-open
cycle=2 hello-ok=true ready=true
cycle=2 commands.list IsSupported=True commandCount=64
cycle=2 health.ok=true
cycle=2 disconnected readiness=false payloadRead=throws-connection-not-open
RESULT=PASS native-Windows product-Gateway operator hello-ok/read/disconnect/reconnect; not WSL E2E

The same client was reused across both connections. The native Gateway was stopped, port 21472 closed, and disposable credentials/state removed. This exact-head native proof remains credited separately from the failed WSL preservation gate.

One authorized Win11 WSL class attempt: test success, overall proof failure

Exact head above, native win-arm64, unchanged authoritative command under the pinned guarded wrapper:

.\scripts\run-proof-tests.ps1 -Project tests\OpenClaw.E2ETests\OpenClaw.E2ETests.csproj -Filter FullyQualifiedName~OpenClaw.E2ETests.Setup.SetupAndConnectTests -ResultName gateway-setup-connect -RuntimeIdentifier win-arm64 -ResultsDirectory <owned-run>\results
Observation Result
Test command / TRX Exit 0, Completed, 23 selected, 22 passed, 1 ordinary optional Ollama skip
Run-level failures failed/error/timeout/aborted/passedButRunAborted all 0; no ErrorInfo or failed RunInfo
Mandatory real Gateway cases 19 passed, including operator/node connection, restart/reconnect, setup-code/shared-token paths, and safe node invocation
Teardown-isolation guards 3 passed
Normal startup/settings/gateway/WSL-config/default-distro/service hashes Equal before/after and again at read-only closeout
Normal distro fingerprint Unchanged, 2 normal registrations; no E2E registration remains
Remaining exact-test/other/unresolved trays 0 / 0 / 0; owned wrapper absent
Maintenance preservation Failed: 172 to 180 elements, canonical fingerprint changed; policy ApprovedWarning to Blocked
Overall wrapper / custom pool Exit 1 at prepare-win11-wsl-proof.ps1:403, final cleanupFailures guard. FAILED.

Canonical maintenance comparison (OpenClawPendingMaintenance/v1):

before: MultiString, 172 elements
EE1FD4E78208CE7F80E5E94C76E1402012F73347E89D3F6A47A2E60184B71955
after: MultiString, 180 elements
FE37E8750A250200DC16FC31DE6703758499C7E5CAD62F8C12883BACAB0DD16B
net element increase: 8
ordered-prefix / appended / new / reordered / removed / affected categories: unknown

The snapshots deliberately retained no raw entries, so the unknown fields cannot be reconstructed from the hashes. No causal attribution was made. The one-use approval is consumed; the wrapper was not invoked again. No queue mutation, normal-state repair, rollback, reboot, or repeat attempt occurred. Read-only closeout confirmed original owned registration/process cleanup finished. Raw logs/TRX remain private; safe-closeout-summary.json preserves the failed overall result alongside passing test counts. No MXC containment or optional Ollama proof is claimed. Build/desktop capacity is released. The lane is paused for parent disposition of the failed custom pool; the PR remains draft without merge authorization, notwithstanding green hosted CI.

Prevent application RPC sends from treating a transport-open WebSocket as gateway-ready before the connect/hello-ok handshake completes on the current connection generation. Update loopback tests to prove pre-handshake sends are withheld and post-handshake sends still work.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge. Reviewed September 23, 2026, 7:34 PM ET / 23:34 UTC (Revision 11).

ClawSweeper review

What this changes

The Windows Companion Gateway client binds operator readiness and application requests to the socket generation that received hello-ok, with loopback coverage for pending handshakes and reconnects.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep this PR open. Current main already blocks RPCs before hello-ok through a merged fix, but this branch adds distinct protection when a socket is replaced. A completed write can still be reported as unsent, and the required Windows WSL proof pool failed its preservation guard.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong production-path proof supports the handshake gate, while the completed-write classification and required host proof remain merge blockers.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): Current-head traces exercise the production operator client over loopback WebSockets with hello-ok withheld and after reconnect, and a native Windows run against a real Gateway shows handshake, read, disconnect, and reconnect recovery. Those observations support the intended gate, but do not cover the completed-write race; the separate required WSL pool failed its host preservation guard. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Current-head traces exercise the production operator client over loopback WebSockets with hello-ok withheld and after reconnect, and a native Windows run against a real Gateway shows handshake, read, disconnect, and reconnect recovery. Those observations support the intended gate, but do not cover the completed-write race; the separate required WSL pool failed its host preservation guard. No stored-data contract changes.
Evidence reviewed 9 items Introduced send-result handling: The branch returns false for tracked requests when a generation-bound send returns false; chat and wizard requests also treat that result as a failed send.
Completed-write race: The existing send helper awaits WebSocket SendAsync, then checks socket ownership before returning. Replacement in that interval can produce false after a completed write.
User-facing retry consequence: The Sessions page tells users to try again when reset, compact, or delete returns false, although the completed write may already have reached the Gateway.
Findings 1 actionable finding [P2] Preserve completed writes as submitted or uncertain
Security None None.

How this fits together

The Windows Companion operator client receives actions from tray, session, and chat surfaces and sends them to the Gateway over a WebSocket. Its handshake determines when those actions may reach the Gateway.

flowchart LR
A[Tray and chat actions] --> B[Operator client]
C[Gateway socket] --> D[Hello-ok handshake]
B --> E{Current socket ready?}
D --> E
E -->|Yes| F[Gateway request]
E -->|No| G[Unavailable result]
Loading

Decision needed

Question Recommendation
How should this PR clear the failed windows-wsl-gateway-e2e preservation guard before merge? Investigate and rerun: Investigate the maintenance change, restore an approved proof host, and authorize one complete current-head pool run after the code repair.

Why: The Gateway cases passed, but the required wrapper failed after a host maintenance fingerprint change; deciding how to investigate the host and authorize another attempt is outside code review.

Before merge

  • Preserve completed writes as submitted or uncertain (P2) - The introduced !sent branch treats false as proof that no frame was sent. The generation-bound helper can complete SendAsync and then return false if reconnect replaces the socket before its final ownership check. Session actions consequently tell users to retry a reset, compact, or delete that may already have reached the Gateway; chat and wizard sends can likewise report a misleading failure. Preserve a completed or indeterminate outcome and cover replacement immediately after the write.
  • Resolve merge risk (P1) - A completed Gateway write can be reported as unsent after socket replacement, prompting retries of a session mutation or chat send that may already have been submitted.
  • Resolve merge risk (P1) - The required windows-wsl-gateway-e2e pool failed its host preservation guard. Passing Gateway cases and green hosted CI do not settle that required pool result.
  • Resolve merge risk (P1) - The repository's targeted MXC validation for gateway setup/connect E2E behavior is not recorded for this head.
  • Complete next step (P2) - Repair the completed-write result and prove the replacement race; obtain a maintainer disposition for the failed WSL pool and record required MXC validation before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Preserve completed writes as submitted or uncertain — src/OpenClaw.Shared/OpenClawGatewayClient.cs:2218-2221
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Code and test delta production +52, tests +201 The production growth implements the generation gate, while most added lines exercise it through loopback coverage.

Merge-risk options

Maintainer options:

  1. Preserve the write outcome (recommended)
    Repair the send result so a completed or uncertain write cannot become a false not-sent result, then prove socket replacement immediately after the write.
  2. Pause the merge
    Keep the draft paused while the write-result defect and required Windows proof gates remain unresolved.

Technical review

Best possible solution:

Keep the generation-bound handshake gate, distinguish unwritten requests from completed or indeterminate writes, cover replacement immediately after a write, and complete the required Windows validation under an approved host disposition.

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

No failing current-main reproduction of the original early-RPC bug remains after the merged baseline fix. The PR-head completed-write race has a clear source-level trigger, but no replacement-after-write run was supplied.

Is this the best way to solve the issue?

No. Binding requests to the handshake's socket generation is useful, but a completed write must not be classified as definitely unsent when the socket changes before the final check.

Full review comments:

  • [P2] Preserve completed writes as submitted or uncertain — src/OpenClaw.Shared/OpenClawGatewayClient.cs:2218-2221
    The introduced !sent branch treats false as proof that no frame was sent. The generation-bound helper can complete SendAsync and then return false if reconnect replaces the socket before its final ownership check. Session actions consequently tell users to retry a reset, compact, or delete that may already have reached the Gateway; chat and wizard sends can likewise report a misleading failure. Preserve a completed or indeterminate outcome and cover replacement immediately after the write.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 42c562f91a42.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded Gateway reliability fix with a merge-blocking retry-result defect.
  • merge-risk: 🚨 message-delivery: The new false-after-write path can tell chat callers a message was not sent after the Gateway may have received it.
  • merge-risk: 🚨 session-state: The same result can invite a repeat reset, compact, or delete after a session mutation may have reached the Gateway.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (terminal): Current-head traces exercise the production operator client over loopback WebSockets with hello-ok withheld and after reconnect, and a native Windows run against a real Gateway shows handshake, read, disconnect, and reconnect recovery. Those observations support the intended gate, but do not cover the completed-write race; the separate required WSL pool failed its host preservation guard. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Current-head traces exercise the production operator client over loopback WebSockets with hello-ok withheld and after reconnect, and a native Windows run against a real Gateway shows handshake, read, disconnect, and reconnect recovery. Those observations support the intended gate, but do not cover the completed-write race; the separate required WSL pool failed its host preservation guard. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • eleqtrizit: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Barbara Kudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Cover socket replacement immediately after a completed write and preserve a submitted or uncertain result.
  • Resolve the failed WSL preservation guard through an approved host disposition and record the targeted MXC validation.

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.

History

Review history (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-23T17:50:50.255Z sha 5d2345d :: blocked before merge. :: none
  • reviewed 2026-09-23T18:03:37.366Z sha 5d2345d :: blocked before merge. :: [P2] [P2] Do not report a completed mutation write as unsent
  • reviewed 2026-09-23T20:33:05.947Z sha 14ca961 :: blocked before merge. :: [P2] Preserve a completed mutation write as submitted or uncertain
  • reviewed 2026-09-23T20:40:34.905Z sha 14ca961 :: blocked before merge. :: [P2] Preserve a completed mutation write as submitted or uncertain
  • reviewed 2026-09-23T22:27:11.617Z sha d5529dc :: blocked before merge. :: [P2] Preserve completed mutation writes as submitted or uncertain
  • reviewed 2026-09-23T22:38:44.334Z sha d5529dc :: blocked before merge. :: [P2] Preserve completed mutation writes as submitted or uncertain
  • reviewed 2026-09-23T23:02:33.402Z sha d5529dc :: blocked before merge. :: [P2] Preserve completed mutation writes as submitted or uncertain
  • reviewed 2026-09-23T23:17:14.420Z sha d5529dc :: blocked before merge. :: [P2] Preserve completed writes as submitted or uncertain

@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
Reuse the shared handshake-pending marker without changing generation-bound admission. Prove all five payload readers remain unavailable until correlated hello-ok, succeed afterward, and still throw after disconnect.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 52343117-04d9-4dcc-866b-6a015204133d
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 23, 2026
@shanselman shanselman added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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. labels Sep 23, 2026
Integrate exact main fb8b9e7 without changing the reviewed operator repair or its contracts.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 52343117-04d9-4dcc-866b-6a015204133d
Integrate exact main 42c562f; retain reviewed operator fix and contract blobs unchanged.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 52343117-04d9-4dcc-866b-6a015204133d
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 Merging this PR could drop, duplicate, misroute, suppress, or wrongly target messages. and removed merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. labels Sep 23, 2026
@shanselman shanselman removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Sep 23, 2026
@shanselman

Copy link
Copy Markdown
Collaborator

Maintainer merge disposition for exact head d5529dc15b42909d8b011df971a50a1b8e9a48b3: TAKE, 95% confidence.

The earlier disposition conflated two different results:

  • The authoritative product test command exited 0. All 19 mandatory real Gateway cases and three isolation guards passed, with one ordinary optional Ollama skip and no run-level errors.
  • The surrounding host-preservation wrapper exited 1 because the global Windows pending-maintenance fingerprint changed. That result remains recorded and unresolved. It is not being erased, called harmless, or used to authorize another local run.

The task-owned distro and processes were cleaned up. Normal startup, settings, Gateway, WSL configuration, service and normal-distro checks remained unchanged. No product assertion failed, and no evidence attributes the maintenance-queue change to this bounded operator-handshake fix.

The unchanged head also has the complete passing local validation floor, focused real WebSocket regressions, two successful native official-Gateway connection cycles, clean bounded source reviews, and a successful required CI Gate in run 35927629541 attempt 2. There are no unresolved review threads.

The passing product evidence is sufficient for this code-only merge. The separate host-safety warning continues to block further local WSL proof unless separately dispositioned. This does not waive a failed required CI check or substitute a skip for product proof.

Live main is 42c562f91a42ae0251ac971c44f6ce0f8028e88d, already contained in the validated head. Expected resulting tree: db084a10c1a096914e811c98da715d239e5f7f78. Proceed with the ordinary head-guarded merge, without admin bypass or additional unchanged-source reviews.

@shanselman
shanselman marked this pull request as ready for review September 24, 2026 02:10
@shanselman
shanselman merged commit 64d505b into main Sep 24, 2026
46 of 50 checks passed
@shanselman
shanselman deleted the fix/operator-rpc-before-hello-1418 branch September 24, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 message-delivery 🚨 Merging this PR could drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Operator RPC can be sent before connect/hello-ok, causing 1008 PolicyViolation

2 participants