Repository navigation
fix(dashboard): hide exact-review server details - #1263
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 7:06 AM ET / 11:06 UTC. ClawSweeper reviewWhat this changesThe PR makes the exact-review Worker replace rejected or malformed Durable Object 5xx responses with a fixed public error while retaining intentional structured JSON errors. Merge readiness✅ Ready for maintainer review Keep open. This MEMBER-authored draft has a focused, evidence-backed security hardening patch; current main still forwards sanitized but potentially path-bearing failure text, and no blocking patch defect was found. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe dashboard Worker forwards authenticated exact-review and state operations to the ExactReviewQueue Durable Object. This boundary turns queue responses into internal HTTP responses for automation and public status projections. flowchart LR
A[Authenticated automation request] --> B[Dashboard Worker]
B --> C[Queue response boundary]
C --> D[Exact-review Durable Object]
D --> E[Queue storage]
C --> F[Bounded HTTP error]
F --> G[Internal caller]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the narrow Worker-side fixed-error projection after normal maintainer review, preserving structured queue errors that are already intentional protocol responses. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current-main code returns sanitized failure text that does not remove arbitrary internal paths, and the supplied harness injects exactly that failure through the signed Worker-to-Durable-Object route. This read-only review did not execute the harness. Is this the best way to solve the issue? Yes. Projecting unexpected failures at the Worker response boundary is the narrowest maintainable fix because it leaves Durable Object transaction behavior and intentional structured error contracts intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a22ff989bdf4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Related: https://github.com/openclaw/clawsweeper/security/code-scanning/98
What Problem This Solves
Fixes an issue where signed exact-review Worker requests could receive
stack-bearing or otherwise internal Durable Object error data when a queue
operation failed or returned a malformed server response.
Why This Change Was Made
The Worker now owns the externally reachable error projection: unexpected
failures return the fixed, bounded
exact_review_queue_unavailablecode whilethe server records a bounded diagnostic category. Intentional non-JSON 4xx
responses and valid structured JSON 5xx responses retain their existing status,
headers, and body shape.
This does not change the generic JSON response helper or the Durable Object
transaction boundary.
User Impact
Callers of signed exact-review internal routes no longer receive stack traces,
server paths, or internal failure text. Existing structured queue errors remain
machine-readable and unchanged.
OpenClaw Bay Impact
None. The change is limited to signed
/internalexact-review forwardingfailures and does not alter Bay data contracts, projections, or navigation.
Documentation Impact
Updated the active exact-review Worker error proof and executable harness to
cover the fixed public response, retained internal diagnostic category, baseline
success, and post-failure recovery. The source of truth remains
dashboard/worker.ts; rerun the proof when that boundary or route changes.Evidence
a22ff989bdf474dbe9c917f34199c7fea45c27c1:a signed request to
/internal/exact-review/publications/listreturned astack-bearing rejection with a synthetic internal path.
40d770463241a3cfca5ddd7ef3becc6f7e42676c.export sibling path.
pre-fix regression, non-duplicate coverage, and no test-only production seam.
nothing_found, high confidence, exactrange
a22ff989..40d77046.git diff --check, focused formatting/lint/type checks, and all three buildspassed.
pnpm run checkpassed static checks, builds, lint, changedcoverage, and the coverage suite except one raw-sync infrastructure failure:
apply-drift-refreshrequires.git. That exact test passed after addingverification-only Git metadata. Hosted CI remains the canonical full gate.
Real Behavior Proof
response boundary, while a bounded internal failure event remains available.
/internal/exact-review/publications/list, and the real ExactReviewQueueDurable Object with SQLite storage.
synthetic stack and private marker; the Worker returns a fixed JSON 500; a
recovery list succeeds.
40d770463241a3cfca5ddd7ef3becc6f7e42676c; runrun_e35fd7055126, leasecbx_251420c016b5, auto-released.baseline 200, recovery 200, failure 500, JSON content type, fixed public
error, and no internal marker or stack path in the response.
.artifacts/exact-review-do-json-errors/proof-summary.jsonplus the redactedtranscript and internal diagnostic category.
production request or production data was used.