Repository navigation
fix(ui): retain real-Gateway browser proof across reruns - #134274
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 10:32 PM ET / September 6, 2026, 02:32 UTC. ClawSweeper reviewWhat this changesThe PR gives Logs and Usage captures fresh attempt directories, preserves MCP reports in a fresh suite directory, separates Usage screenshot stages, and documents retention ownership. Merge readiness✅ Ready for maintainer review The PR remains necessary and has no actionable patch findings. Fresh candidate-bound retention results resolve the previous proof hold; current main still contains the destructive capture behavior. Priority: P3 Review scores
Verification
How this fits togetherControl UI browser suites exercise OpenClaw against isolated Gateways and produce screenshots, recordings, and diagnostic reports. Their artifact owners determine whether rerunning those suites preserves earlier evidence. flowchart TD
A[Browser test invocation] --> B{Capture owner}
B --> C[Logs and Usage attempt]
B --> D[MCP suite]
C --> E[Exclusive directory allocator]
D --> E
E --> F[Screenshots recordings and reports]
F --> G[Prior evidence preserved]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -24, Docs +4. Total -20 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep capture allocation with the existing exclusive allocator and the appropriate attempt or suite owner, preserving earlier evidence and existing capture gates. Do we have a high-confidence way to reproduce the issue? Yes: current source deterministically clears MCP's previous directory and reuses Logs and Usage capture paths. Supplied baseline runs demonstrate those failures; this review did not execute tests. Is this the best way to solve the issue? Yes: reusing the existing allocator and lifecycle owners repairs the capture producers without duplicating allocation logic or changing browser behavior. Distinct Usage stage names address the separate within-attempt collision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6c55a99226ed. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
Protected exact-head replay: blockedFresh proof of unchanged head The first original-order replay—MCP → auth → agent-file → logs → usage—recorded eight native passing cases: MCP 2, auth 4, agent-file real 1, and Logs 1. During the first Usage case's cleanup, the syscall audit caught 10 canonical SQLite path operations outside the test-owned state namespace, including two The safety supervisor stopped execution; the native runner exited 143 and did not produce its final JSON report. The two Usage cases therefore have no passing terminal verdict. The second real order and both repeated mocked agent-file runs were not run. Usage capture pairing and preservation of first-run media across a second run remain unproven; this is not a passing proof or a timeout/assertion waiver. Available evidence was preserved: 1,889 files downloaded and SHA256-verified, including 28 PNGs and 14 recordings. The captures were inspected; recordings decoded successfully, with two blank MCP support recordings excluded from behavioral proof. No old evidence was deleted or reconstructed. Owned processes and observed ports were closed, the runner namespace was removed, and AWS lease The artifact patch remains unchanged (production/support 0; tests −16; docs +1). The independently owned Gateway/fixture lifetime repair remains separate. The PR stays draft until that boundary is repaired and verified, the requested repeated capture proof completes, and exact-head CI is green. This records the outstanding ClawSweeper proof/rank-up item rather than silently waiving it. No proof media or machine metadata has been uploaded. |
b19dcf8 to
17e7033
Compare
Reuse the canonical exclusive artifact owner for MCP and auth reports and Logs/Usage captures. Preserve both Usage owner views with distinct stage names and leave main’s split agent-file capture owner unchanged. Refreshes the capture-only change for PR #134274 onto current main. No production runtime or lifecycle policy changes.
Reuse the canonical exclusive artifact owner for MCP and auth reports and Logs/Usage captures. Preserve both Usage owner views with distinct stage names and leave main’s split agent-file capture owner unchanged. Refreshes the capture-only change for PR #134274 onto current main. No production runtime or lifecycle policy changes.
17e7033 to
200d34a
Compare
200d34a to
77101f3
Compare
|
@clawsweeper re-review Refreshing the review for the unchanged head while exact-head retained browser proof is being completed. The declared proof hold remains in place; historical or offline results are not being presented as a completed live replay. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Use canonical exclusive artifact owners for per-attempt Logs and Usage captures and suite-owned MCP reports. Preserve both Usage owner views with distinct stage names. Reconcile PR #134274 on the pinned main base while preserving main auth screenshot readiness, ordered Gateway cleanup, and the module-owned agent-file capture flow. Test proof retention and documentation only; no production runtime or lifecycle policy changes.
4fe8ac1 to
9325eec
Compare
Refresh PR #134274 onto the pinned main base to inherit the canonical browser-bootstrap and advisory-acquisition CI fixes. Keep the existing retention patch unchanged: per-attempt Logs and Usage captures, distinct Usage owner views, and suite-owned MCP reports. Preserve main auth screenshot readiness and shared Gateway cleanup ordering. No production runtime or lifecycle policy changes.
Port PR #134274 onto the current native fixture lifecycle. Logs and Usage use the shared lazy per-attempt artifact owner, Usage preserves distinct owner-view stages, and MCP retains one suite-owned report directory without clearing previous proof. Preserve existing assertions, deadlines, capture gates, native fixture cleanup ordering, and viewport-safe Logs capture. Keep documentation aligned with current ownership and diagnostic provenance. No production runtime changes.
9325eec to
f9227c1
Compare
Fresh real-Gateway retention proof completedThe agreed fresh proof is complete for Provider: Blacksmith Testbox, owned lease
The candidate retained 14 disjoint owner directories and 162 owner files: 76 PNG, 32 WebM, 52 JSON and 2 JSONL. Checks required the exact per-owner stage/report inventory, expected video counts, full video decoding, successful MCP bridge reports and empty MCP cleanup failures. Auth cleanup reports confirmed both Gateway and proxy ports closed in both repetitions. All required cases ran; there were no failed or skipped candidate cases. The baseline's first captures were copied and hash-checked outside its writable root before the second baseline invocation intentionally demonstrated the old deletion/overwrite behavior. The runs used independent frozen candidate/base checkouts, verified tracked source bytes, matching dependency closures, isolated HOME/state/temp paths and real task-owned Gateway ports. Runtime: Node 24.19.0, pnpm 12.3.4, Vitest 5.0.0, Playwright 1.62.1. The SSH shell actually had neither Inspected visual evidenceAll 167 original media files were represented in the local inspection: 134 unique byte contents, including 86 unique screenshots and 48 unique recordings. Every screenshot sheet and full-frame recording storyboard was inspected. Storyboards include first/last frames, scene changes and samples with at most two-second gaps; this is not a claim of watching every frame in real time. Auxiliary blank recordings remain retained but are not cited as visual state proof. Auth captures containing host telemetry remain local and are not published. The attached baseline and fixed-head screenshots show the same deliberately unchanged Logs flow after reconnect. Directory/inventory/hash checks—not pixel differences—prove the retention repair. The attached 16.84-second recording is the second candidate run, showing the intentional read error, disconnect and successful reconnect to the complete synthetic log tail. The selected originals and final MP4 frame were inspected separately; no credentials, personal data, host telemetry, internal model identifiers or unrelated desktop content were observed in these published captures. Commands and retained identityThe frozen task rig was transported through normal Crabbox-managed Testbox sync, with an exact script hash check before execution. It used a supported task-only Vitest config for ordering and additional reporters, outside the candidate/base source trees. Real candidate A: node scripts/run-vitest.mjs run --config /tmp/ocp-zZBNCyPV/harness/native-proof.config.mjs --configLoader runner ui/src/e2e/mcp-app-conformance.e2e.test.ts ui/src/e2e/control-ui-auth-transports.e2e.test.ts ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts ui/src/e2e/logs-lifecycle.e2e.test.ts ui/src/e2e/usage-sessions-owner-attribution.e2e.test.tsReal candidate B: node scripts/run-vitest.mjs run --config /tmp/ocp-zZBNCyPV/harness/native-proof.config.mjs --configLoader runner ui/src/e2e/usage-sessions-owner-attribution.e2e.test.ts ui/src/e2e/logs-lifecycle.e2e.test.ts ui/src/e2e/agent-file-lifecycle.real-gateway.e2e.test.ts ui/src/e2e/control-ui-auth-transports.e2e.test.ts ui/src/e2e/mcp-app-conformance.e2e.test.tsEach mocked repetition: node scripts/run-vitest.mjs run --config /tmp/ocp-zZBNCyPV/harness/native-proof.config.mjs --configLoader runner ui/src/e2e/agent-file-lifecycle.e2e.test.tsNative lifetime owner: node scripts/run-vitest.mjs run --config /tmp/ocp-zZBNCyPV/harness/native-proof.config.mjs --configLoader runner ui/src/test-helpers/control-ui-e2e-suite.test.tsArchive: 45,409,824 bytes, SHA-256 The task entrypoint SHA-256 was Earlier attempts are not relabeled: the first fresh candidate launch failed on an overlong rig-owned Chromium socket path, and a subsequent setup ended with exit255 during dependency listing. The failed browser archive was retained and verified; the uncertain VM was stopped before the successful fresh-lease replay. The fix was to shorten the rig's atomic root, not alter tests, assertions, deadlines, cleanup or product code. This is invocation-boundary retention and maintained native-lifetime proof, not syscall-completeness or universal filesystem/process-quiescence proof. Missing historical/outbox evidence was not reconstructed. The normal required exact-head CI gate is green; ordinary CI success is not a comprehensive npm advisory-clearance claim. Native review/prepare/merge gates still apply. attachment-997150327.mp4 |
|
Merged via squash.
|
* origin/main: fix(ci): rebalance services test roots below the memory bound (openclaw#139645) fix(backup): exclude shared workspace files from state-only archives (openclaw#139598) fix(config): preserve plugin secret references in Settings saves (openclaw#139536) fix(ui): retain real-Gateway browser proof across reruns (openclaw#134274) fix(browser): preserve node filenames in proxy media (openclaw#139559) fix(qa): give hot-reload maintenance proofs their own budgets (openclaw#139580) fix(streaming): preserve assistant items and settled output (openclaw#139507) fix(android): reconnect secondary gateways after rapid lifecycle changes (openclaw#139319) fix(gateway): restart inside a marker-less LaunchAgent no longer kills its caller (openclaw#139628)
* commit '5b099995413589f41904cef1413c62239542aa7c': fix(ci): rebalance services test roots below the memory bound (#139645) fix(backup): exclude shared workspace files from state-only archives (#139598) fix(config): preserve plugin secret references in Settings saves (#139536) fix(ui): retain real-Gateway browser proof across reruns (#134274)
…4274) Port PR openclaw#134274 onto the current native fixture lifecycle. Logs and Usage use the shared lazy per-attempt artifact owner, Usage preserves distinct owner-view stages, and MCP retains one suite-owned report directory without clearing previous proof. Preserve existing assertions, deadlines, capture gates, native fixture cleanup ordering, and viewport-safe Logs capture. Keep documentation aligned with current ownership and diagnostic provenance. No production runtime changes.


Related: mocked Control UI proof retention. This is the separate real-Gateway consumer follow-up.
Additional instructions
Keep Allow edits from maintainers enabled wherever applicable. This is a same-repository maintainer branch.
What Problem This Solves
Repeated real-Gateway Control UI captures can overwrite previous evidence. MCP conformance clears a fixed shared directory, Logs writes repeated stages into a fixed directory, and Usage writes two owner views to the same screenshot name within a case.
Why This Change Was Made
Reuse the canonical exclusive artifact allocator and the shared suite's existing lazy attempt owner rather than add another capture abstraction. Logs and Usage use
suite.artifactDir; Usage gives its two stages distinct names. MCP allocates one retained suite directory after browser acquisition and keeps reports independent from optional media capture.The current port preserves main's newer native fixture lifetime owner, joined startup/context teardown, viewport-safe Logs capture, parameterized native scenarios, current MCP cases, and diagnostic provenance documentation. The allocator, shared lifetime owner, fixtures, screenshot helper, assertions, deadlines, capture methods, and capture gates are unchanged relative to the pinned base. Auth retention/readiness and the module-owned agent-file helper are already on main and are not changed here. No active outbox code, branch, instance, or evidence is touched.
Scope: four files, +34/−54 (net −20). Tests: +16/−40. Docs: +18/−14. Production and shared-support changes: zero. No configuration, dependency declaration, protocol, SQLite schema, or release changes.
User Impact
Developers retain separate captures across repeated attempts, with screenshots, recordings, and reports associated with the correct owner. This does not change end-user bot behavior or visual UI design. It does not recover deleted evidence or claim universal Gateway/subprocess quiescence.
Evidence
Current candidate:
f9227c19b4121bd9c80fd3a0149000394619fbd3, based on672adca9aa6f0fbc7d57926212fcbe777612381b.Current source and CI
b382502d8fba20bfca6ebf61685aa82a57863eef8a804bf39e723d1811ba3c24; the commit tree isd41f597b04e1006d32506d52670c3f75493ce9d9. The parent independently verified the actual commit, remote branch and PR head.Local validation used Node 24.20.0, pnpm 12.3.4, Vitest 5.0.0 and oxfmt 0.65.0. Dependency refresh used the frozen lockfile, a checkout-owned store, copy imports and disabled install lifecycle scripts; it did not alter dependency declarations or other checkouts. This is not a clean-install or packaging certification. The allocator run emitted a nonfatal dynamic-import analysis warning from the unchanged Vitest worker bootstrap.
Principal commands, from the source checkout:
OPENCLAW_TESTBOX=0 OPENCLAW_VITEST_FS_MODULE_CACHE_PATH="$PWD/.artifacts/retention-port-672-vitest5-checks" node scripts/check-changed.mjs --base 672adca9aa6f0fbc7d57926212fcbe777612381b -- docs/reference/test.md ui/src/e2e/logs-lifecycle.e2e.test.ts ui/src/e2e/mcp-app-conformance.e2e.test.ts ui/src/e2e/usage-sessions-owner-attribution.e2e.test.tsThe source checks used fresh, separate task-owned module caches.
OPENCLAW_TESTBOX=0applied only to local source validation; it does not replace the native landing workflow's hosted-gate requirement.The maintainer accepts unavailable npm advisory coverage under the repository's adopted ordinary-CI policy. This PR does not change that policy, and green CI is not a claim of comprehensive vulnerability clearance.
Approved fresh browser proof — complete
The maintainer-selected fresh proof is complete on the current candidate. Full results, exact commands and inspected before/after screenshots plus the Gateway reconnect recording are recorded in the proof comment. Provider: Blacksmith Testbox, owned lease
tbx_01m1t48xy9je1twx4aey14kyea, workflow run 34003210448.The candidate retained 14 disjoint owner directories and 162 owner files: 76 PNG, 32 WebM, 52 JSON and 2 JSONL. Exact stage/report inventories, video counts, full video decoding, MCP bridge/cleanup reports, Auth Gateway/proxy port closure and native budget/project parity passed. Every required candidate case ran; none failed or skipped. The ordinary native batches, global setup and late worker-stop semantics were preserved; only a supported task-only sequencer changed file sort order.
The remote proof used Node 24.19.0, pnpm 12.3.4, Vitest 5.0.0 and Playwright 1.62.1, independently verified source/dependencies, frozen installs and both builds. Actual SSH environment absence of
CI/GITHUB_ACTIONSwas preserved, including the native 10-second default action budget; explicit case/hook/cleanup deadlines were unchanged. No product or test assertion changes were needed.The 45,409,824-byte archive has SHA-256
b444e091a74f245e93a0b44e9b11feb1e28f6c26b91a16e7f23fdadd8608654d. It was downloaded and all 583 retained files verified against its manifest before the VM was stopped and native terminal completion confirmed. Retained evidence lives outside Git worktrees. All screenshot sheets and full-frame video storyboards were inspected, with verified identical-byte copies deduplicated. Storyboards are sampled, not a claim of watching every frame in real time. Auxiliary blank recordings are not cited as visual state proof; Auth captures with host telemetry remain local. Only separately inspected synthetic Logs media is published.The first fresh candidate launch hit an overlong rig-owned Chromium socket path, and a later setup ended with exit255 during dependency listing. The failed browser archive was retained and verified, and the uncertain VM was stopped before the successful fresh-lease replay. The rig's atomic root was shortened rather than changing consumer temp overrides, assertions, deadlines or cleanup. Native landing uses a fresh ordinary clone inside the permitted workspace; no GitHub credentials were sent through unsupported Testbox stdin and the denied shared native path was not modified.
This completes the approved invocation-boundary retention and native-lifetime proof, not syscall-completeness or universal filesystem/process-quiescence proof. No unavailable low-level verifier work was rerouted, and no missing historical evidence was reconstructed.
Historical evidence — not current-head acceptance
Earlier attempts remain historical and must not be relabeled:
b19dcf8attempt passed eight real cases before its observer detected ambient SQLite open attempts during Usage cleanup. The recorded failure is not a successful retention proof.17e7033attempt stopped because observation did not cover activeio_uring. A later run completed both real-Gateway orders, but its final B-order audit rejected incomplete pathname evidence and the mocked repetitions did not run.7738c275, 62 producer and 70 pathname qualification checks passed. The subsequent native run passed 10 browser assertions but rejected three trace gaps and one witness problem; later repetitions did not run. Its archive was recorded as hash-verified at collection, with 3,745 new files and 17,317 prior files unchanged. The 32 screenshots and sampled sheets from 14 videos were inspected then, not certified as complete replay or all-frame publication proof.9325eec3, CI passed the UI/browser and 20 real-Gateway tests. Two initially unacquired jobs passed one scoped retry each; the strict audit still lacked coverage. These are prior-head results, not the new replay.The previously recorded local verifier worktree and large archive were not found in the current scoped inventory. Source review/check records and broker run metadata survive; no archive recovery or reconstruction of missing original telemetry or captures is claimed. All new evidence must be identified as fresh synthetic proof, not recovery of old or outbox-owned captures.
The approved fresh candidate-bound proof is complete; normal native review/prepare/merge gates remain required. No proof media, raw telemetry, credentials, local host metadata, or agent transcripts are committed to the product repository.