Skip to content

fix(ui): retain real-Gateway browser proof across reruns - #134274

Merged
steipete merged 1 commit into
mainfrom
steipete/real-gateway-proof-cleanup-438aed91
Sep 6, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/real-gateway-proof-cleanup-438aed91

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

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 on 672adca9aa6f0fbc7d57926212fcbe777612381b.

Current source and CI

  • Seven allocator regressions passed on Vitest 5, covering prior-file preservation, repeated names, concurrent allocation, parent precedence, and independent capture enablement.
  • Pinned-base changed checks passed, including the UI E2E type graph, formatting, targeted lint, guards, i18n and dead-export checks. Documentation listing and whitespace checks passed.
  • Restricted independent source review completed with no P0–P2 findings. No source edits followed that review; hooks preserved the reviewed patch.
  • The committed four-file patch has SHA-256 b382502d8fba20bfca6ebf61685aa82a57863eef8a804bf39e723d1811ba3c24; the commit tree is d41f597b04e1006d32506d52670c3f75493ce9d9. The parent independently verified the actual commit, remote branch and PR head.
  • Exact-head CI run 33989130214 completed successfully, including the required CI gate, with no failed or cancelled jobs.

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_VITEST_FS_MODULE_CACHE_PATH="$PWD/.artifacts/retention-port-672-vitest5-allocator" OPENCLAW_VITEST_MAX_WORKERS=1 node scripts/run-vitest.mjs run --root "$PWD/ui" --config "$PWD/ui/vitest.node.config.ts" --configLoader runner src/test-helpers/control-ui-e2e-artifacts.node.test.ts
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.ts

The source checks used fresh, separate task-owned module caches. OPENCLAW_TESTBOX=0 applied 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.

  • Baseline A/B: 10 native browser cases passed, while retention checks correctly rejected the original deletion, overwrite, shared-owner and Usage stage-pairing defects.
  • Candidate real-Gateway A/B: 20/20 cases passed, with 6 new owner directories and 71 files per run, zero retention violations and prior bytes/timestamps preserved.
  • Mocked agent-file A/B: 4/4 cases passed, with 1 new owner and 10 files per run, zero retention violations.
  • Maintained native lifetime-owner suite: 12/12 passed, including close failures, late setup/contexts, timeouts, unsafe-fork retirement and shared-state cleanup.

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_ACTIONS was 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:

  • The original b19dcf8 attempt passed eight real cases before its observer detected ambient SQLite open attempts during Usage cleanup. The recorded failure is not a successful retention proof.
  • An early 17e7033 attempt stopped because observation did not cover active io_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.
  • On 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.
  • On 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.

@steipete steipete self-assigned this Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 10:32 PM ET / September 6, 2026, 02:32 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: f9227c19b4121bd9c80fd3a0149000394619fbd3

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused repair reuses established ownership and includes strong before/after repeated-run evidence addressing the previous acceptance gap.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured fresh Testbox results exercise the changed Logs, Usage, and MCP capture owners through real browser/Gateway runs on this head: both orders pass, prior bytes/timestamps remain intact, and stage/report/video pairing checks pass. These retention observations resolve the prior hold; media and archive contents were not independently rechecked here.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured fresh Testbox results exercise the changed Logs, Usage, and MCP capture owners through real browser/Gateway runs on this head: both orders pass, prior bytes/timestamps remain intact, and stage/report/video pairing checks pass. These retention observations resolve the prior hold; media and archive contents were not independently rechecked here.
Evidence reviewed 8 items Verified introduced scope: The local merge-base-to-head diff matches the supplied complete introduction evidence. Changes affect artifact destinations, Usage stage names, and documentation; assertions, capture gates, deadlines, runtime authorization, dependencies, and fixture cleanup ownership remain unchanged.
Existing allocator and attempt lifecycle: The allocator creates exclusive child directories with mkdtempSync. The shared suite lazily allocates its artifact directory and resets that reference before each test; joined scenario cleanup prevents a successor from taking ownership early. MCP passes its separately allocated suite directory to existing report helpers.
Current main still needs the repair: Current main still assigns MCP a fixed directory and recursively removes it during setup. Logs likewise retains a fixed destination, and Usage still writes both views to the same case-dependent filename.
Findings None None.
Security None None.

How this fits together

Control 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -24, Docs +4. Total -20 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 16 40 -24
Docs 1 18 14 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 34 54 -20

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured fresh Testbox results exercise the changed Logs, Usage, and MCP capture owners through real browser/Gateway runs on this head: both orders pass, prior bytes/timestamps remain intact, and stage/report/video pairing checks pass. These retention observations resolve the prior hold; media and archive contents were not independently rechecked here.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This focused developer-proof retention repair changes no end-user runtime behavior.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured fresh Testbox results exercise the changed Logs, Usage, and MCP capture owners through real browser/Gateway runs on this head: both orders pass, prior bytes/timestamps remain intact, and stage/report/video pairing checks pass. These retention observations resolve the prior hold; media and archive contents were not independently rechecked here.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured fresh Testbox results exercise the changed Logs, Usage, and MCP capture owners through real browser/Gateway runs on this head: both orders pass, prior bytes/timestamps remain intact, and stage/report/video pairing checks pass. These retention observations resolve the prior hold; media and archive contents were not independently rechecked here.

Evidence

What I checked:

  • Verified introduced scope: The local merge-base-to-head diff matches the supplied complete introduction evidence. Changes affect artifact destinations, Usage stage names, and documentation; assertions, capture gates, deadlines, runtime authorization, dependencies, and fixture cleanup ownership remain unchanged. (ui/src/e2e/mcp-app-conformance.e2e.test.ts:96, f9227c19b412)
  • Existing allocator and attempt lifecycle: The allocator creates exclusive child directories with mkdtempSync. The shared suite lazily allocates its artifact directory and resets that reference before each test; joined scenario cleanup prevents a successor from taking ownership early. MCP passes its separately allocated suite directory to existing report helpers. (ui/src/e2e/control-ui-e2e-suite.test-support.ts:286, f9227c19b412)
  • Current main still needs the repair: Current main still assigns MCP a fixed directory and recursively removes it during setup. Logs likewise retains a fixed destination, and Usage still writes both views to the same case-dependent filename. (ui/src/e2e/mcp-app-conformance.e2e.test.ts:99, 6c55a99226ed)
  • Latest release also retains the old behavior: The supplied latest release, v2026.9.2, resolves locally to the supplied release commit and still clears MCP's fixed proof directory. This repair is not already shipped there. (ui/src/e2e/mcp-app-conformance.e2e.test.ts:99, 3928bad9badf)
  • Fresh proof resolves the retained prior request: The supplied body and fix(ui): retain real-Gateway browser proof across reruns #134274 (comment) bind the fresh Testbox results to this exact head. Baseline repetitions detected deletion, overwrite, shared-owner reuse, and missing Usage pairing. Candidate real-Gateway repetitions passed 20/20 cases, produced six distinct owners and 71 files per run, and preserved earlier bytes/timestamps with zero retention violations. Exact stage/report/video inventories were checked. These observations directly address the previous review's sole retained rank-up move. (f9227c19b412)
  • Proof inspection scope: Assessment uses the captured body and supplied proof-comment excerpt, preserving sourceRevision 5b350b7391c2b312b8e4c8c2f8bc0ba53f5d0b0be1221db087e3c5cb70308123. The excerpt's trailing commands/media section is truncated. GitHub API access failed and browser retrieval returned a cache miss, so attached media and the archive were not independently inspected here. The explicit retention observations are available in the supplied text; screenshots alone are not used to establish preservation. (f9227c19b412)

Likely related people:

  • Peter Steinberger: Raw commit e8ffa35 adds ui/src/test-helpers/control-ui-e2e-artifacts.ts:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e8ffa3557d72; files: ui/src/test-helpers/control-ui-e2e-artifacts.ts)

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 (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-02T20:38:54.616Z sha 7738c27 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T20:55:23.950Z sha 7738c27 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-03T14:26:23.281Z sha 7738c27 :: blocked before merge. :: none
  • reviewed 2026-09-04T01:09:13.075Z sha 4fe8ac1 :: blocked before merge. :: none
  • reviewed 2026-09-04T05:01:18.334Z sha 9325eec :: blocked before merge. :: none
  • reviewed 2026-09-04T05:44:26.266Z sha 9325eec :: blocked before merge. :: none
  • reviewed 2026-09-05T20:12:12.201Z sha f9227c1 :: blocked before merge. :: none
  • reviewed 2026-09-05T22:43:50.906Z sha f9227c1 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Protected exact-head replay: blocked

Fresh proof of unchanged head b19dcf8bfebe8065baab0c376eebeb43ecca5b9f ran on August 31 in a new secretless direct-AWS VM. Public networking, no Tailscale, no instance role, IMDSv2 role endpoint HTTP 404, no hydrated credentials, and no host-home mount were checked before candidate execution. Frozen installation, pnpm build, and pnpm ui:build passed.

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 openat(..., O_RDONLY|O_NOFOLLOW|O_CLOEXEC) attempts against the fresh bootstrap HOME's default agent database. All ten returned ENOENT; no successful ambient database read was observed. The trace establishes attempted ambient access, not the exact JavaScript callback responsible. The existing fixture restores environment selectors before awaiting root removal, and the log records a late RPC response after the clean-shutdown message.

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 cbx_437f81e748f7 was released after transfer. Protected run.

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.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 31, 2026
@steipete
steipete force-pushed the steipete/real-gateway-proof-cleanup-438aed91 branch from b19dcf8 to 17e7033 Compare September 2, 2026 05:46
steipete added a commit that referenced this pull request Sep 2, 2026
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.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 2, 2026
@steipete
steipete marked this pull request as ready for review September 2, 2026 07:29
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 2, 2026
steipete added a commit that referenced this pull request Sep 2, 2026
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.
@steipete
steipete force-pushed the steipete/real-gateway-proof-cleanup-438aed91 branch from 17e7033 to 200d34a Compare September 2, 2026 19:03
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Sep 2, 2026
@steipete
steipete force-pushed the steipete/real-gateway-proof-cleanup-438aed91 branch from 200d34a to 77101f3 Compare September 2, 2026 19:49
@clawsweeper clawsweeper Bot removed the rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. label Sep 2, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 2, 2026
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@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.

@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 3, 2026
steipete added a commit that referenced this pull request Sep 4, 2026
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.
@steipete
steipete force-pushed the steipete/real-gateway-proof-cleanup-438aed91 branch 2 times, most recently from 4fe8ac1 to 9325eec Compare September 4, 2026 04:48
steipete added a commit that referenced this pull request Sep 4, 2026
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.
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 4, 2026
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.
@steipete
steipete force-pushed the steipete/real-gateway-proof-cleanup-438aed91 branch from 9325eec to f9227c1 Compare September 5, 2026 20:06
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Sep 5, 2026
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Fresh real-Gateway retention proof completed

The agreed fresh proof is complete for f9227c19b4121bd9c80fd3a0149000394619fbd3, tree d41f597b04e1006d32506d52670c3f75493ce9d9, against parent 672adca9aa6f0fbc7d57926212fcbe777612381b. This resolves the capture-preservation hold in the current ClawSweeper review; no actionable patch defect remained.

Provider: Blacksmith Testbox, owned lease tbx_01m1t48xy9je1twx4aey14kyea, workflow run 34003210448. The complete setup → ordered proof → export invocation exited 0. The archive was downloaded, its SHA-256 matched, and all 583 retained files were checked against the exported manifest before the VM was stopped. Native Testbox status confirmed completion.

Phase Native cases Retention result
Baseline A: MCP → Logs → Usage 5/5 passed Correctly rejected: prior sentinel deletion, shared-owner reuse and missing Usage stage pairing
Baseline B: Usage → Logs → MCP 5/5 passed Correctly rejected: previous files changed/deleted and shared-owner/stage collisions
Candidate A: MCP → Auth → real agent-file → Logs → Usage 10/10 passed 6 new owners, 71 files, zero violations
Candidate B: reverse real-file order 10/10 passed 6 additional owners, 71 files, zero violations; earlier bytes/timestamps preserved
Mocked agent-file A and B 2/2 each passed 1 new owner and 10 files per invocation; zero violations
Maintained native lifetime-owner suite 12/12 passed Concurrent/failed closes, late contexts/setup, native timeouts, unsafe-fork retirement and shared-state cleanup covered

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 CI nor GITHUB_ACTIONS; that absence was preserved, including the native 10-second default action timeout. Explicit test/hook/cleanup deadlines were unchanged. The task-only sequencer changed file sort order only; canonical projects, forks, isolation, serial project settings, global setup and worker-stop behavior were preserved. Recorded native budget/project parity passed.

Inspected visual evidence

All 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 identity

The 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. OPENCLAW_CAPTURE_UI_PROOF=1 and the existing artifact/diagnostic/cache directory controls pointed at task-owned paths; task-only phase/source/report variables bound the sequencer and observer.

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.ts

Real 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.ts

Each 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.ts

Native 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.ts

Archive: 45,409,824 bytes, SHA-256 b444e091a74f245e93a0b44e9b11feb1e28f6c26b91a16e7f23fdadd8608654d. Complete source/dependency inventories, command/results, native case/order events, retention snapshots/verdicts, media and reports are retained outside Git worktrees. No agent transcript is included.

The task entrypoint SHA-256 was e9dffd6279c6eaf0b00b986e026bfc99ee35489bdf8832fc74d1c8476796f5b7; its preparation payload was 01f0e5a37b55a4e4e2d8f0a70d1f98d7a482cc0271c397c6f3598bdd54463d70. These are task-only proof files, not product changes.

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.

Baseline A: unchanged Logs flow after reconnect

Fixed candidate B: complete log tail in a separately retained attempt

attachment-997150327.mp4

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 6, 2026
@steipete
steipete merged commit c6a0874 into main Sep 6, 2026
150 of 152 checks passed
@steipete
steipete deleted the steipete/real-gateway-proof-cleanup-438aed91 branch September 6, 2026 02:47
@steipete

steipete commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to ylcn91/openclaw that referenced this pull request Sep 6, 2026
* 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)
vincentkoc added a commit that referenced this pull request Sep 6, 2026
* 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)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
…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.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant