Repository navigation
Fix canonical Bay redirect smoke - #1183
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 3:46 AM ET / 07:46 UTC. ClawSweeper reviewWhat this changesThe PR updates the dashboard deployment smoke test to require legacy Bay URLs with queries to redirect permanently to queryless Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessThe PR is a focused, correct repair for a dashboard deployment-smoke false failure and has sufficient exact-head and live behavior evidence. It is ready for ordinary maintainer review. Priority: P3 Review scores
Verification
How this fits togetherThe dashboard smoke script probes the deployed ClawSweeper dashboard after a Worker release. It verifies the legacy Bay redirect before continuing health, status, Bay rendering, CSP, and asset checks. flowchart LR
A[Legacy Bay URL with query] --> B[Dashboard deployment smoke]
B --> C[Canonical redirect check]
C --> D[Queryless Bay route]
D --> E[Health and Bay checks]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the queryless redirect oracle and retain its positive and negative regression coverage so the deployment smoke follows the privacy-preserving Worker contract. Do we have a high-confidence way to reproduce the issue? Yes—current main emits a queryless Is this the best way to solve the issue? Yes—the shared predicate makes the live smoke and regression test enforce the Worker’s existing canonical redirect contract without changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 68a6dfcfc556. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: Fix canonical Bay redirect smoke This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
Align the live dashboard smoke test with the canonical privacy-preserving Bay
redirect that landed in #1180. A request to the legacy Bay route may contain a
query, but its permanent redirect must point to the queryless
/bayroute.Problem
The Worker correctly deployed #1180 and stripped the legacy query. The automatic
dashboard smoke still expected the older query-preserving redirect, so the
deployment run failed after the Worker deployment and all earlier live checks
had succeeded.
Failed deployment-smoke evidence:
https://github.com/openclaw/clawsweeper/actions/runs/32004437979
Implementation
helper;
/baylocation;query-preserving location.
No Worker behavior, API response, public data projection, credentials, queue
state, or production configuration changes.
Validation
pnpm run build:allnode --test --test-concurrency=1 test/dashboard-smoke.test.ts test/dashboard-worker-bay-records-routes.test.ts— 52 passed, 0 failed
pnpm run check:docspnpm exec oxfmt --check scripts/dashboard-smoke.mjs test/dashboard-smoke.test.ts docs/proof/openclaw-bay/README.mdpnpm exec oxlint --deny-warnings scripts/dashboard-smoke.mjs test/dashboard-smoke.test.tsgit diff --checkorigin/mainat the exact final head — noactionable finding; its optional
tsxprobe was unavailable, while therepository's actual Node test command and the controlled proof below passed
correct, confidence 0.95, no code or security finding; its requested real
smoke evidence is supplied below
Review finding disposition
described the legacy redirect as query-preserving. The documentation now
says query-stripping and the exact-head regression rejects the old contract.
current-head Docker-backed behavior receipt. The Crabbox local-container
execution below proves the exact committed files and redirect oracle, while
the read-only live run proves the complete deployed Worker smoke path.
Real Behavior Proof
Claim: the corrected smoke accepts the deployed canonical query-stripping
redirect while preserving the rest of the dashboard deployment contract.
Exercised surface: the exact committed smoke oracle in Crabbox's
Docker-backed local-container provider, plus the committed smoke script against
the live Worker already deployed from squash
68a6dfcfc5564acddc788a746d9399e44ac00969.Scenario: send the legacy route a query-bearing read-only request with manual
redirect handling, require an exact queryless
/baylocation, then continue theexisting health, status, queue, Bay HTML, CSP, no-browser-GitHub, and asset checks.
Command/environment — exact-head controlled proof: Crabbox provider
local-container; leasecbx_34215d350dc3; runrun_22f628223302; imagemcr.microsoft.com/playwright:v1.60.0-nobleat digestsha256:9bd26ad900bb5e0f4dee75839e957a89ae89c2b7ab1e76050e559790e946b948;Node 24.15.0; repository hydration disabled; clean raw-workspace sync. The
content-hashed proof script ran the committed redirect tests and direct helper
assertions without production access.
Command/environment — read-only live proof:
Observed result: Crabbox exit 0 with 6 passed, 0 failed; all three changed
files matched the hashes from the clean committed tree; the queryless redirect
was accepted, the former query-preserving redirect was rejected, and the proof
documentation was current. The disposable lease stopped automatically. The
read-only live smoke also exited 0, matched the expected deployed revision,
accepted the canonical redirect, completed every subsequent live assertion, and
reported zero direct browser-to-GitHub requests.
Inspectable redacted terminal receipt:
The separate read-only live terminal completed the repository's full
dashboard:smokecommand with the expected deployment revision, canonicalredirect, health/status/queue/Bay/CSP/assets checks, and
direct_github_requests=0; exit was 0. No response bodies, credentials, privaterepository data, or production mutations are included in this receipt.
Artifact/trace: exact patch head
298b1da03a7bef67a1766c669b8d044430b5c5bc; tree2e999b3b3c66abf40ef1da5c3620fa90c23822c4. Crabbox proof-script SHA-256c6b74ac880428846dfcd9b3676487ef5fe8dc3d21d8e0b6f17b81c7d4eaf2e91;stdout SHA-256
5579adf2149872c491bc8a6d7c1a2dfbb068b75181f562fe190c1568980fed07;empty-stderr SHA-256
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.Final local ClawSweeper artifact SHA-256
4d37e2d7597d736d39cda8185b993b3989d86d717db250fc58c636997bb9ccc0.Limits: this is a read-only smoke-oracle correction. It proves behavior
against the already deployed Worker and does not deploy, mutate queues, call a
workflow action, or change production state.
Risk and rollout
Low risk: three files, no runtime Worker change. The automatic dashboard workflow
will exercise the same smoke after merge. Revert this commit if the oracle causes
an unexpected compatibility issue; reverting #1180 would instead restore the
privacy regression and is not recommended.