Skip to content

refactor(gateway): deslop gateway - #164022

Merged
steipete merged 5 commits into
mainfrom
deslop/l334-simplify-gateway-root-20261002
Oct 3, 2026
Merged

steipete merged 5 commits into
mainfrom
deslop/l334-simplify-gateway-root-20261002

Conversation

@steipete

@steipete steipete commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Gateway root modules carry unused options, single-caller forwarding layers, duplicate projections, and manually implemented flows that already have canonical owners.

User Impact

Gateway configuration, persisted data, authorization, and protocol payloads remain unchanged. The avatar proxy now preserves primary-email precedence on an upstream error instead of querying another linked email. The pre-July compatibility route /__openclaw/control-ui-config.json, used by v2026.6.1 clients, is removed under the July 2026-and-newer migration policy; current bootstrap routes remain supported.

Why This Change Was Made

This is one Gateway-root cleanup batch, with 1,080 net production lines removed. It keeps lifecycle, authority, ordering, and lazy-loading boundaries while removing machinery around them:

  • Credential and bootstrap flows call their existing owners directly instead of constructing duplicate policy objects, candidate registries, and forwarding functions. Auth uses the canonical browser-origin type; auto/tailnet binding shares its loopback fallback.
  • Gateway calls use their existing settled state and initialized client. APNs imports its real dependencies, and node skill normalization drops an unused enable flag.
  • Chat recovery has one concrete owner instead of a factory forwarding to another factory. Chat error classification, pacing, progress field projection, and type imports are direct. Attachments consume the media store's typed result while retaining managed-URI validation; data-URL parsing owns rejection of unsupported media.
  • Cron streaming drops retirement state already represented by its running/removal state. Health monitoring removes one-use intermediates; channel status patches use ordinary object construction while preserving their public overloads. Cron notification formatting and webhook setup no longer need one-caller wrappers.
  • Approval registration retains its explicit typed field comparison. Receipt variants share their identity envelope, and local settlement/lifecycle helpers are inlined into their sole owners.
  • GitHub publication reads use the canonical SQLite iterator instead of two manual keyset-page loops within the same snapshot. PR lookup and displayed snapshot construction remove one-use DTOs, wrappers, and duplicate projections while preserving corruption, authority, and rate-limit handling.
  • Control UI file reads use the existing fs-safe positional reader. MCP exact/policy catalogs share the same refresh loop.
  • ACP cleanup removes unused eligibility/callback options and shares ordered cancel/close outcome handling. Session observer completion removes an immediately repeated authority check; live pre-commit assertions remain.
  • Session child links select the one requested parent directly instead of driving a multi-parent generator into a map. The projection capture factory is inlined into its only owner, and unused membership/transcript-budget options are removed. Prepared empty child arrays still prevent a store scan.
  • Transcript history removes single-use source bundles, parser-window parameters, result DTOs, and a three-way file classification whose callers only needed a stale-file predicate.
  • Startup/discovery removes unused private inputs and wrappers; standard timer promises, abort controllers, trace types, and errno handling replace local equivalents. Restart tracing drops a fallback for Node versions older than the supported runtime.
  • Worker placement barriers return the lifecycle owner's result directly, and their session-target types come from one concrete owner. HTTP routes reuse the existing lazy module loaders and websocket rejection writer. Plugin dispatch drops unused internal options and a one-caller hook adapter; the public SDK dispatch contract is unchanged.

The sweep retained non-enumerable lifecycle metadata projection, MCP schema comparison that ignores symbol metadata, voice-transcript receipt ordering, and existing database/schema compatibility where removal would change a current contract. Tests that only supplied the deleted private knobs were adjusted or removed; behavioral assertions remain.

Fixes Found Along the Way

The Gravatar loop treated a failed primary-email lookup like a definite miss and queried another linked email, contradicting the original primary-first disclosure contract. It now stops on an upstream error and returns the existing temporary-error response. A table-driven extension of the existing endpoint test retains 404 fallback coverage and adds 503 coverage; before the fix, the new case observed two upstream fetches instead of one.

The publication singleflight test now waits for repository entry explicitly and always releases and joins both requests. Avatar worker fixtures await catalog preparation and register cleanup. The config watcher fixture awaits initialization before starting its existing watcher-ready deadline. Assertions and timeout values remain unchanged.

Evidence

  • Codex review completed; accepted findings were corrected. The small fixture and line-budget follow-ups also received clean independent reviews.

  • Broad focused run before the final rebase: 106 files / 2,825 tests, with 2,820 passing and five failures. The initial explicit-gate singleflight repair passed 20 executions; its final simplified wait also passed in the full publication suite. The remaining failures were time budgets in session category reconciliation, authenticated assistant-media metadata, recovery delivery, and watcher startup; the watcher setup ordering was repaired, but its 20-run probe still hit a separate settings-write deadline once. These are not claimed as proven inherited CI failures.

  • Gravatar 503 regression failed before the production fix (two upstream fetches instead of one). Both 404/503 cases passed 20 executions with unique uncached fixture emails; command wall time 324.04s. Four real-worker avatar cases passed 20 executions each after catalog preparation.

  • Both import-cycle checks reported zero on the rebased import graph: madge 148.53s and runtime-value check 101.17s. Subsequent compiler corrections changed no imports.

  • Changed-file validation caught and resolved two line-cap violations, then stopped at the stale node-host max-lines baseline. Rebased onto main including its existing baseline fix; no duplicate baseline fix added.

  • Remote validation was unavailable after three Blacksmith attempts and a sanitized AWS allocation attempt. No remote tests completed. These results use the authorized low-priority local fallback, one heavy command at a time. Linux repeated-run proof was not available; the first hosted CI results are recorded below.

  • Final rebased candidate: 253/254 tests passed across 11 files, with only the same 8,193-row category-reconciliation case exceeding its unchanged 120-second budget (126.27s). All prior media, recovery-delivery, watcher-startup, and publication-singleflight failures passed. The full avatar suite, cold-archive search, projection status patches, observer completion, shutdown, and post-attach startup suites also passed. Command wall time: 1,004.98s. This is a partial local result, not an all-green claim.

  • Core typechecking passed after correcting item-schema narrowing, dropping an unused private readOnly field, and supplying the required session identity in the placement fixture (41.48s). Fresh review of those corrections is clean through P2; all 121 affected tests across eight files passed (308.94s wrapper wall time). The first hosted run completed with failures; the blockers are listed below.

  • Targeted lint passed for all changed Gateway files. The final local-variable cleanup in cron notifications passed all 32 owner tests (135.11s wrapper wall time). No test assertion or timeout was weakened.

CI Corrections

The original run on d2c5f4890cadcf41c6cbe7c616957352f3f3c12f failed. No failure is waived as inherited. The branch was rebased onto main through 84268dbd8658245ac56ba99df0254cd46abec358; the reviewed corrective head is 6dc75130a6289a74c3c8512398a6f42f6b05c7fd. Hosted CI passed and this PR was squash-merged as 92dc2b187cb708653a5daa6a7dfe400e42f8d600.

Original failure Resolution
Production/test types and core lint: unused TranscriptReadWindow Removed the import after integrating main's extracted result-type owner.
Gateway test types: missing SessionEntry.updatedAt Completed both placement fixtures with required updatedAt; the provision fixture also supplies the concrete worktree branch and repoRoot. Core production, core-test shards, and all four root test-type partitions pass on the correction candidate; the merged production graph is rechecked after rebase.
Approval-registration key assertion Restored the explicit typed registration comparison. No wider row type, ignore, or baseline expansion. Also shrank three stale assertion baseline entries to measured counts (2, 3, and 0); assertion, max-lines, SQLite-worker, and timeout-race ratchets pass.
Dead exports: RateLimitCheckResult, ChatRunRegistry Kept both types private to their only consuming modules; full pnpm deadcode:dependencies completed successfully (both production and all-exports passes).
Trusted-proxy OpenGrep guard Restored the existing named trusted-proxy origin seam. The unchanged rulepack reproduced one finding before the correction and reports zero afterward (106 rules).
MCP bound-tool cache refresh Reproduced the original failure and validated display-name switching with unchanged unavailable/available/unavailable assertions. Final rebase incorporates the equivalent canonical main fix ee4020c7039; the conflict was only the local variable name.
Two deletion post-apply recovery fences Main fix 4ec1118e7cc targets the apply phase instead of counting verification calls. Both cases and the complete 31-test lifecycle file pass after rebase.
Paired-device exec-server carrier Main fix 9e34368e594 from #164025 stops matching words inside watchdog inline source. Local replay then exposed whole-host ps output overflowing its buffer: the fixture now enumerates only PPID/PID and reads exact child argv through the existing owner, failing explicitly for unreadable live children. Complete local replay still reached its unchanged 360-second deadline; the complete hosted exact-head E2E passed in 99.767s. No inherited waiver was used.
Queued-session rotation and shutdown Both original code-78 failures reproduced. Canonical agents.entries and explicit modelPolicy repaired both cases: replacement turn passed in 49.34s and shutdown in 25.34s. Final rebase incorporates the byte-identical main fix aa7e16bbca8 from #163906. Hosted cases passed in 9.451s and 8.281s.

Independent Codex review of the final correction patch is clean through P2. All 126 corrected-owner tests across five files pass (679.87s wrapper wall time with --maxWorkers=1); the 31-test deletion lifecycle file also passes. Both rotation E2Es pass in the serialized replay. That combined two-file command took 563.47s because the carrier reached its unchanged 360-second deadline; this is not an all-green local E2E claim.

Core production, core-test and four root test-type partitions; full dependency/dead-export scans; changed lint/format; line, assertion, SQLite-worker and timeout-race ratchets; config docs, plugin boundaries, schema, database-store, media, sidecar, webhook and pairing-scope guards passed. The final rebased production typecheck passes. Both cycle gates report zero on corrective head 6dc75130a6289a74c3c8512398a6f42f6b05c7fd: Madge 104.78s and runtime-value 46.24s.

The native typed smoke build passed with verified build/runtime stamps and all 151 public SDK subpaths. An earlier build compiled successfully but rejected its final stamp after a baseline edit during preparation; it was rebuilt through the native owner with frozen inputs. A subsequent E2E attempt contended with simultaneous type/lint artifact owners and hit setup deadlines; those checks were completed before the serialized replay. No deadline, buffer cap, assertion, retry, or skip was relaxed. The carrier observation was narrowed at its producer instead of enlarging its output buffer.

New remote attempts ran no tests: Testbox admission timed out, AWS provisioning failed, and Hetzner refused allocation at its account capacity. Newly allocated leases were stopped/released. No remote success is claimed.

The final conflict repair retains canonical main's MCP fixture. git range-diff shows all four original implementation commits unchanged and only the already-landed MCP/rotation fixture changes dropping from the corrective commit. Remaining corrective code is unchanged from the clean review. Hosted exact-head CI passed before squash merge; no inherited-failure exception was used.

Exact-head CI run completed successfully for 6dc75130a6289a74c3c8512398a6f42f6b05c7fd, with no failed or pending jobs. Opengrep OSS also passed. Pinned squash auto-merge landed 92dc2b187cb708653a5daa6a7dfe400e42f8d600; its ancestry on origin/main and its exact merged tree were independently verified.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@github-actions

github-actions Bot commented Oct 3, 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: 6dc75130a6289a74c3c8512398a6f42f6b05c7fd
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/gateway/auth-rate-limit.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/credentials-secret-inputs.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/gateway/credentials.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.
  • src/gateway/device-revocation.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/exec-approval-lifecycle.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/exec-approval-results.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/gateway/origin-check.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/probe-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-http-plugin-auth.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-http.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/server-plugin-in-process-authority.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.
  • src/gateway/startup-auth.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 app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 12:30 AM ET / 04:30 UTC (Revision 2).

ClawSweeper review

What this changes

Simplifies Gateway authentication, request, session, and lifecycle code, preserves primary-email avatar precedence during upstream errors, and removes the June Control UI bootstrap alias.

Merge readiness

⛔ Blocked before merge - 8 items remain

Keep open: this useful, maintainer-owned cleanup has repairable validation defects and is not established as superseded.

Priority: P3
Reviewed head: d2c5f4890cadcf41c6cbe7c616957352f3f3c12f

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful simplification and focused validation support the direction, but concrete gate defects and unattributed runtime failures limit readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified repository-admin author is exempt from the external-contributor proof gate. The avatar endpoint has recorded before/after regression coverage, and inspected authority refactors do not establish a material authorization change requiring the scoped exception. No stored schema or serialized-data contract change was found.
Patch quality 🦐 gold shrimp (3/6) 4 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified repository-admin author is exempt from the external-contributor proof gate. The avatar endpoint has recorded before/after regression coverage, and inspected authority refactors do not establish a material authorization change requiring the scoped exception. No stored schema or serialized-data contract change was found.
Evidence reviewed 9 items Pinned introduction and merge identities: Read the complete introduced diff from the verified merge base to the original head. The raw test-merge record has the pinned base followed by the exact head as parents; endpoint drift was not treated as PR ownership.
Confirmed merge-result type defect: GitHub contents at the pinned base show the inline return shape using TranscriptReadWindow. Contents at the verified test merge show that shape replaced with ReadRecentSessionMessagesResult while the import remains without a use. The head alone still uses that import in another result declaration, so deleting it without integrating the current type owner would be incorrect.
Concrete session contract requires fixture updates: The introduced runtime type now consumes canonical SessionEntry-returning functions. SessionEntry requires updatedAt, but the provision-cancellation fixture entry omits it; the PR body also identifies missing fields in move-barrier fixtures.
Findings 4 actionable findings [P2] Update worker fixtures to satisfy the canonical session type
[P2] Remove the orphaned import when integrating the current type owner
[P2] Preserve the scanner's origin-guard contract through the refactor
Security None None.

How this fits together

The Gateway receives requests from browser clients, CLI clients, plugins, and workers. It authenticates callers, coordinates session and approval owners, and returns responses and lifecycle events.

flowchart LR
  A[Browser and CLI clients] --> C[Gateway request handling]
  B[Plugins and workers] --> C
  C --> D[Authentication and live authority]
  D --> E[Session and approval owners]
  E --> F[Storage and transport operations]
  F --> G[Responses and lifecycle events]
Loading

Before merge

  • Update worker fixtures to satisfy the canonical session type (P2) - The new runtime contract requires canonical SessionEntry results, including updatedAt. Existing fixtures such as the entry in server-worker-placement-provision-cancellation.test.ts omit that required field, so the test-type gate fails after this type cutover. Update the affected fixtures together while retaining the concrete production contract.
  • Remove the orphaned import when integrating the current type owner (P2) - In the verified test merge, main has already moved result declarations into session-transcript-read.types.ts; replacing this remaining inline result shape removes the last use of TranscriptReadWindow while leaving its import. This breaks production typechecking and lint in the actual merge result. Integrate the current result-type owner and remove the import there; the published head still needs it for its other inline declaration.
  • Preserve the scanner's origin-guard contract through the refactor (P2) - The precise rule in security/opengrep/precise.yml exempts trusted-proxy success only when it sees authorizeTrustedProxyBrowserOrigin. Calling the canonical helper directly therefore matches its failure pattern despite retaining the origin check. Update the detector to recognize the equivalent guarded call and retain detection of an unguarded success; do not suppress the rule.
  • Compare approval registrations without an asserted object key (P2) - The new key as keyof typeof registration assertion is absent from the assertion baseline and is identified by the captured CI diagnosis as a ratchet failure. Express the comparison through a typed registration projection or explicit fields so the contract remains checked without an ignore, widened row type, or baseline exception.
  • Resolve merge risk (P1) - The MCP catalog, session-deletion recovery-fence, device-carrier, and queued-session rotation failures still need root-cause and baseline attribution; no inherited-failure exception is established.
  • Complete next step (P2) - Repair the identified type and static-analysis defects, remove newly unused internal type exports, and resolve or establish baseline attribution for the reported runtime failures before landing.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] Update worker fixtures to satisfy the canonical session type — src/gateway/server-worker-placement-session-target.ts:39-40
  • [P2] Remove the orphaned import when integrating the current type owner — src/gateway/session-transcript-read-kernel.ts:135-136
  • [P2] Preserve the scanner's origin-guard contract through the refactor — src/gateway/auth.ts:443-448
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the owner-based simplifications with canonical types, behavior-aware security scanning, and verified preservation of session recovery and ordering contracts.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the owner-based simplifications with canonical types, behavior-aware security scanning, and verified preservation of session recovery and ordering contracts.

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

Yes for the type and scanner defects: the pinned source and verified merge result establish their triggers. Runtime failures are recorded, but this read-only review did not reproduce or attribute them.

Is this the best way to solve the issue?

Yes in direction: reusing existing owners reduces competing implementations. The proposed cutover still needs the concrete type and validation-contract repairs identified below.

Full review comments:

  • [P2] Update worker fixtures to satisfy the canonical session type — src/gateway/server-worker-placement-session-target.ts:39-40
    The new runtime contract requires canonical SessionEntry results, including updatedAt. Existing fixtures such as the entry in server-worker-placement-provision-cancellation.test.ts omit that required field, so the test-type gate fails after this type cutover. Update the affected fixtures together while retaining the concrete production contract.
    Confidence: 0.99
  • [P2] Remove the orphaned import when integrating the current type owner — src/gateway/session-transcript-read-kernel.ts:135-136
    In the verified test merge, main has already moved result declarations into session-transcript-read.types.ts; replacing this remaining inline result shape removes the last use of TranscriptReadWindow while leaving its import. This breaks production typechecking and lint in the actual merge result. Integrate the current result-type owner and remove the import there; the published head still needs it for its other inline declaration.
    Confidence: 0.99
  • [P2] Preserve the scanner's origin-guard contract through the refactor — src/gateway/auth.ts:443-448
    The precise rule in security/opengrep/precise.yml exempts trusted-proxy success only when it sees authorizeTrustedProxyBrowserOrigin. Calling the canonical helper directly therefore matches its failure pattern despite retaining the origin check. Update the detector to recognize the equivalent guarded call and retain detection of an unguarded success; do not suppress the rule.
    Confidence: 0.99
  • [P2] Compare approval registrations without an asserted object key — src/gateway/operator-approval-store.kernel.ts:164-165
    The new key as keyof typeof registration assertion is absent from the assertion baseline and is identified by the captured CI diagnosis as a ratchet failure. Express the comparison through a typed registration projection or explicit fields so the contract remains checked without an ignore, widened row type, or baseline exception.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is primarily internal cleanup with a bounded avatar correction; failed validation alone does not raise its triage urgency.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The verified repository-admin author is exempt from the external-contributor proof gate. The avatar endpoint has recorded before/after regression coverage, and inspected authority refactors do not establish a material authorization change requiring the scoped exception. No stored schema or serialized-data contract change was found.

Label justifications:

  • P3: This is primarily internal cleanup with a bounded avatar correction; failed validation alone does not raise its triage urgency.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The verified repository-admin author is exempt from the external-contributor proof gate. The avatar endpoint has recorded before/after regression coverage, and inspected authority refactors do not establish a material authorization change requiring the scoped exception. No stored schema or serialized-data contract change was found.

Evidence

Acceptance criteria:

  • [P1] pnpm test src/gateway/server-worker-placement-move-barrier.test.ts src/gateway/server-worker-placement-provision-cancellation.test.ts --maxWorkers=1.
  • [P1] pnpm test src/gateway/auth.test.ts src/gateway/operator-approval-store.test.ts --maxWorkers=1.
  • [P1] pnpm test src/gateway/mcp-http.runtime.test.ts src/gateway/server.sessions.worker-placement-lifecycle.test.ts --maxWorkers=1.
  • [P1] node scripts/check-changed.mjs.
  • [P1] git diff --check.

What I checked:

  • Pinned introduction and merge identities: Read the complete introduced diff from the verified merge base to the original head. The raw test-merge record has the pinned base followed by the exact head as parents; endpoint drift was not treated as PR ownership. (d2c5f4890cad)
  • Confirmed merge-result type defect: GitHub contents at the pinned base show the inline return shape using TranscriptReadWindow. Contents at the verified test merge show that shape replaced with ReadRecentSessionMessagesResult while the import remains without a use. The head alone still uses that import in another result declaration, so deleting it without integrating the current type owner would be incorrect. (src/gateway/session-transcript-read-kernel.ts:135, 78679802dd12)
  • Concrete session contract requires fixture updates: The introduced runtime type now consumes canonical SessionEntry-returning functions. SessionEntry requires updatedAt, but the provision-cancellation fixture entry omits it; the PR body also identifies missing fields in move-barrier fixtures. (src/gateway/server-worker-placement-session-target.ts:39, d2c5f4890cad)
  • Origin enforcement retained; scanner contract stale: The direct authorization call preserves isLocalClient:false, the trusted-proxy rejection reason, and rejection before success. The precise security rule still recognizes only the deleted forwarding helper, explaining a scanner failure without establishing an authentication bypass. (src/gateway/auth.ts:443, d2c5f4890cad)
  • Runtime failures remain unattributed: GitHub annotations confirm two session-deletion post-apply recovery-fence failures and an MCP node-preference catalog failure. The captured body additionally reports device-carrier and queued-session rotation failures and expressly declines an inherited-failure exception. Log downloads redirected to a blocked Azure host; annotations were inspected instead, and no causal attribution is claimed. (src/gateway/server.sessions.worker-placement-lifecycle.test.ts:886, d2c5f4890cad)
  • Prior compatibility warning reassessed: The captured maintainer explanation explicitly retires the v2026.6.1 bootstrap alias. Current migration documentation sets a July 1, 2026 support cutoff and updating documentation supplies the 2026.9.5 bridge path. No persisted format or current bootstrap route is changed, so the prior generic compatibility warning is not repeated as an unresolved blocker. Public docs: docs/gateway/doctor/config-migrations.md. (docs/gateway/doctor/config-migrations.md:31, d2c5f4890cad)

Likely related people:

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

  • Repair canonical session fixtures, the merge-result import, approval comparison typing, scanner recognition, and newly unused internal type exports.
  • Establish root-cause and baseline attribution for all four reported runtime failure groups without weakening assertions or timeouts.

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 (1 earlier review cycle)
  • reviewed 2026-10-03T04:13:12.076Z sha d2c5f48 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Oct 3, 2026
@steipete steipete self-assigned this Oct 3, 2026
@steipete
steipete force-pushed the deslop/l334-simplify-gateway-root-20261002 branch from d2c5f48 to 6dc7513 Compare October 3, 2026 07:32
@steipete
steipete enabled auto-merge (squash) October 3, 2026 07:37
@steipete
steipete merged commit 92dc2b1 into main Oct 3, 2026
181 checks passed
@steipete
steipete deleted the deslop/l334-simplify-gateway-root-20261002 branch October 3, 2026 07:42
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
* refactor(gateway): deslop gateway root flows

* fix(gateway): preserve avatar fallback precedence and await fixture readiness

* refactor(gateway): keep projection and test owners within line budgets

* refactor(gateway): align simplified calls with concrete contracts

* fix(gateway): repair cleanup types and test fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL 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.

1 participant