Skip to content

refactor(scripts): deslop e2e harness - #159247

Merged
steipete merged 4 commits into
mainfrom
deslop/l97-scripts-e2e
Sep 27, 2026
Merged

steipete merged 4 commits into
mainfrom
deslop/l97-scripts-e2e

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

E2E harnesses repeat fixture generation, bounded readers, command handling, and lifecycle orchestration across equivalent scenarios.

User Impact

This is internal harness maintenance. Existing scenarios, assertions, CLI arguments, environment variables, defaults, diagnostics, and release behavior are retained. The sweep also repairs mobile-pairing waiter cleanup, Codex fake-server discovery, and recovery evidence for index-only agent owners.

Why This Change Was Made

The sweep removes 900 net production/tooling lines across scripts/e2e (740 added, 1,640 removed), with no scenario deletion. Tests add 291 net lines. This is below the requested 1,000-line target; the complete coverage log is included below. It covers all 112 production files over 200 baseline lines and the existing fixture owner that grows past 200 lines.

Simplification Rationale
Mock Responses message, function-call, and completion frames One constructor per emitted frame shape; preserves serialized bytes.
Cron authority matrix defaults One shared job envelope; preserves all ten cases and restart assertions.
Bun integer parsing Reuses the existing Docker environment parser.
Bundled-plugin gateway lifecycle and child tracking One owner for startup, probes, watchdog, and cleanup; retains child-set ordering.
Local plugin install/removal descriptors Shares equivalent assertions and paths while retaining the frozen-target function marker.
Bounded HTTP and file readers Reuses existing owners, byte ceilings, cancellation, UTF-8 decoding, and diagnostic text.
Onboarding and Doctor command handling Shares identical arguments and timeout/log/error handling while retaining individual scenario actions.
ClawHub request ledger and JSON responses One implementation for identical fixture protocol handling.
Release CLI/Brave fixture generation and JSON writers Shares the actual writers; retains versioned and versionless response contracts.
Frozen Telegram source-availability predicates One ordered descriptor list replaces repeated identical predicates.
Upgrade fixture inventory and recipe helpers Shares exact path, SQLite-family, snapshot, and repeated request/filename logic.
Parallels controller and fresh-install orchestration Removes forwarding chains and duplicate platform enumeration; retains generated guest commands and platform order.
Provider configuration and small forwarding layers Builds configuration objects once; removes the Codex limits re-export and redundant wrappers.
Fleet rootless package simulation Shares identical read-only package simulation invocations.

Fixes found along the way

A failed WebSocket open left the mobile-pairing client's challenge waiter armed. The Linux regression failed before the fix with one remaining message listener. receiveFrame now owns listener-before-trigger ordering and cleanup for opening, sending, and response timeouts; socket closure also clears its losing fallback timer. The three failure cases pass with zero retained message listeners or timers.

The Codex media-path fake server returned empty objects for model/list and thread/list, preventing the installed runtime from discovering its image-capable model. It now returns valid discovery responses for the existing fixture model. The stdio regression failed before the fix and passes afterward; protocol/version and turn behavior remain unchanged.

Recovery evidence treated every migration receipt as proof that its agent database existed. Doctor intentionally leaves shared-index-only owners without a database. The harness now measures completed transcript destinations, retaining strict stat failures for missing actual destinations. The command-level regression failed on the original absent index-only database, then passed with the repair; its missing-transcript negative control still fails as required.

Evidence

The inherited WhatsApp inventory failure from earlier CI is fixed upstream by #159340. This PR adds no inventory entry. Refreshed CI exposed a stale Bun source assertion, now corrected to name the shared positive-integer validator while preserving the exact timeout environment variable and 180000 ms default. The malformed-timeout execution test and all other assertions remain intact.

Bun assertion follow-up

Rebased onto fresh main ede3447b1029814e21aff09a9d51bb9ff448ea08. Kept: both existing cleanup/fix commits, patch-identical by git range-diff. Dropped: no simplification hunks. Main's behavior and the upstream WhatsApp fix are retained. The only follow-up source change is the one-line test expectation; no production behavior changed.

On Blacksmith Testbox tbx_01m3gftjfcbgzwzyrs19zx7283 (run), the old assertion failed on its stale helper spelling, then the corrected file passed 121 tests (pnpm test test/scripts/test-install-sh-docker.test.ts --maxWorkers=1, 14.72s wall). An independent 12-input comparison of the removed and shared validators matched exit code, stdout, and stderr exactly. The first broad batch passed 5,457 tests across 68 files, with three existing skips (463.99s). The final indirect-caller batch passed 475 tests across 35 files (50.14s). Combined: 6,053 passed tests across all 104 selected script suites, with three existing skips. Selection covers direct path/static-import references, their fixture and shared-reader callers, and all Parallels/survivor owner suites.

node scripts/check-changed.mjs passed (296.49s), pnpm check:workflows passed (20.44s), pnpm build passed (408.36s), and fresh Codex review of the complete rebased candidate is scoped-clean through P2. The lease is stopped.

Published follow-up head: 48a9a258411b0a011d038f99a4a59acbc43900c3; committed tree 6b97dc4a09c6bf78fafc6fc8c9eca0c99b373eb2 exactly matches the remotely tested/reviewed source. CI is attached to that exact head and is in progress. Hosted time for the corrected test is pending that run.

Completed on the original candidate, with proportional revalidation after the main rebase:

  • 31 harness owner test files: 1,111 tests passed; corrected Docker/helper/mobile/controller suites also passed.
  • pnpm build, node scripts/check-changed.mjs, pnpm check:workflows, and the Docker package-boundary guard passed. The rebased candidate also passed the complete changed-file gate and 361 survivor tests across six owner suites.
  • Explicit src/infra/fs-safe-import-boundary.test.ts plus plugin/helper import-boundary siblings passed.
  • 42 actual HTTP response bodies and 18 generated fixture files matched the original revision byte-for-byte.
  • Mobile lifecycle regression: demonstrated red before the repair, then 20 consecutive Linux repetitions passed (60 failure-path cases).
  • Portable Parallels controller/command-generation proof is covered by the owner suites; no actual macOS/Windows VM run is claimed.

The repair batch passed all 10 Codex, 20 recovery, and 344 Docker-helper tests, full pnpm deadcode:full, and the complete changed-file gate. pnpm test <file> --maxWorkers=1 wall times were 1.46s, 1.92s, and 46.60s respectively. Moving Brave generation into the existing fixture dispatcher fixed the hosted unused-file failure without scanner exceptions; six generated files remain byte-identical. The repair review is independently scoped-clean through P2.

Representative Docker proofs passed for plugins, five onboarding cases, Doctor switch, release user journey, live OpenAI chat/tools, cron CLI, bundled OpenAI install/runtime/disable/uninstall, and published 2026.9.4 configured-plugin-installs, projects-doctor, mobile-pairing-reconnect, and workshop-doctor-recovery. Bun global install/local agent/Gateway also passed.

The final head passed node scripts/check-changed.mjs (302.57s), pnpm check:workflows (20.41s), all 50 mock-server tests including the incorporated main changes (30.37s), and all four explicit import-boundary suites (39 cases, 6.28s). Candidate preparation including pnpm build passed in 487.05s, and both Docker images built. The repaired installed-package scenarios passed: Codex media-path 34s, published 2026.9.4 configured-plugin-installs 182s, and published 2026.9.4 recovery-cleanup 291s. The full final proof command exited zero.

Known inherited limitation: the additional current-package auto-auth cell refuses with service-membership-unverified. The systemd emulator deliberately has no real cgroup; the production guard correctly requires one. This predates the refactor. No guard, scenario, or assertion was weakened, and manual published-upgrade successes are not automatic-restart proof. A separate repair requires a native-user-systemd validation route or an explicitly approved Docker cgroup isolation design.

Codex autoreview is scoped-clean through P2 on the rebased candidate. Its first pass lacked the unchanged systemd parser and raised a guard concern; the complete source and eight direct before/after GetUnit cases confirmed that invalid grammar still throws before the response. The refreshed review accepted that contract.

Earlier package/Docker proof at 76c38db5af71254071e513cc1864f2d694e7c3da used provider blacksmith-testbox, lease tbx_01m3fyck7ek7xevfmvgy1r63z3 (run). The repair batch used tbx_01m3g5fyrp45wzn9aqdajd74xy (run). Final Docker proof for that head used tbx_01m3g7e52jy0hhv9w0rqgxg3kz (run), with verified source tree e8b6ce657a7f1c4de564c5a5a2aac3be76c96233. Those leases are stopped. Every test, check, and build ran remotely.

Complete large-file sweep coverage

E2E deslop coverage

Baseline: f72bb2cca2d9eee77dd09fe0365e876866a08a7b. The whole scripts/e2e subtree was read largest-first across bounded owners. No dead scenario was proved; no scenario or assertion was removed. This table covers all 112 production files over 200 baseline lines plus the existing plugin-fixture owner that grew from 182 to 243 lines, sorted by baseline size. Smaller files were also read.

Baseline LOC Production file Result
3505 scripts/e2e/kitchen-sink-rpc-walk.mts READ: Existing descriptor probes and lifecycle/resource owners; remaining branches protect distinct bounded-I/O, cross-platform, and error contracts.
2679 scripts/e2e/lib/upgrade-survivor/run.sh READ: Shared Brave fixture generation; retained every scenario phase and ordering contract.
2019 scripts/e2e/lib/upgrade-survivor/diagnostics.mjs READ: Retained secure bounded reads, redaction, and independent receipt publication checks.
1873 scripts/e2e/lib/upgrade-survivor/assertions.mjs READ: Removed truthiness forwarding helper; retained all migration, security, and scenario assertions.
1755 scripts/e2e/parallels/npm-update-smoke.ts READ: Unified fresh-baseline and fresh-target platform enumeration; retained distinct async process abort, signal, logging, and timeout contracts.
1565 scripts/e2e/lib/bundled-plugin-install-uninstall/runtime-smoke.mjs READ: Shared integer parser, process tracker, three smoke lifecycles, and ordered health validation; removed one-use manifest/channel wrappers.
1183 scripts/e2e/parallels/macos-smoke.ts READ: Retained desktop-user fallback, snapshot recovery, dashboard, and Discord flows; these are distinct documented platform contracts requiring macOS proof for restructuring.
1103 scripts/e2e/lib/upgrade-survivor/mobile-pairing-client.mts READ: Simplified protocol/evidence/private-write forwarding and removed test-only signature seam; repaired confirmed WebSocket waiter/timer leak.
1089 scripts/e2e/mock-openai-server.mjs READ: Shared message, function-call and completion frames preserve exact event order and wire payloads.
998 scripts/e2e/lib/codex-npm-plugin-live/assertions.mjs READ: Distinct live/native transcript, SQLite/legacy, binding, audit, and uninstall contracts; no Codex behavior changed.
991 scripts/e2e/lib/plugins/assertions.mjs READ: Shared local install/removal descriptors and bounded ClawHub body reader; collapsed redundant config reader; retained frozen-admission function marker.
954 scripts/e2e/upgrade-survivor-docker.sh READ: Shared canonical Brave fixture with the published runner while preserving candidate versions and mounted trusted harness behavior.
951 scripts/e2e/parallels/guest-transports.ts READ: POSIX and Windows transports already share their platform runners; completion, permission, cleanup, and transport-error contracts differ and must remain explicit.
925 scripts/e2e/lib/node-auto-update/scenario.mjs READ: Distinct busy, legacy, opt-out, malformed, shared-state, and published-driver scenarios; helpers already shared.
898 scripts/e2e/lib/clawhub-fixture-server.cjs READ: Consolidated duplicated request-ledger validation and JSON response writing; retained artifact integrity, security audits, profiles, routes, and exact messages.
828 scripts/e2e/parallels/windows-smoke.ts READ: Common lifecycle already uses SmokeRunController; remaining orchestration preserves Windows install, restart, onboarding, and agent ordering.
825 scripts/e2e/lib/upgrade-survivor/workshop-doctor-recovery.mjs READ: Shared identical started-Doctor receipt scan; retained distinct refusal messages and recovery assertions.
818 scripts/e2e/lib/upgrade-survivor/legacy-operator-state.mjs READ: Retained distinct shipped-era CLI-authored configuration, authentication, cron, and state preservation contracts.
802 scripts/e2e/lib/upgrade-survivor/dreaming-cron.mjs READ: Retained independent historical digest encoding and distinct migration/runtime observations; similar helpers have different validation contracts.
798 scripts/e2e/parallels/linux-smoke.ts READ: Ubuntu bootstrap, root/manual Gateway lifecycle, and version-gated bad-plugin diagnostics are distinct exercised coverage; no sound removal identified.
741 scripts/e2e/lib/live-plugin-tool/assertions.mjs READ: Causal multi-protocol transcript correlation and scan ceilings; preserved distinct object-result and transcript-text extraction behavior.
733 scripts/e2e/parallels-windows-prepare.sh READ: Retained prerequisite provisioning, installer hash/signature checks, SYSTEM staging protection, and documented library-only sidecar API.
719 scripts/e2e/lib/upgrade-survivor/project-worktree-startup.mjs READ: Shared exact strict-descendant predicate, leaked-snapshot inventory, and SQLite file-family inventory.
693 scripts/e2e/lib/kitchen-sink-plugin/assertions.mjs READ: Distinct bounded log scan and package capability assertions; capability surface IDs already use descriptors.
663 scripts/e2e/lib/upgrade-survivor/backup-rollback.mjs READ: Retained archive omission qualification, containment, retained baseline runtime reads, and complete inventory proof.
662 scripts/e2e/lib/gateway-network/client.mts READ: LAN authentication, suspension, and pre/post-restart assertions protect distinct WebSocket and Admin HTTP contracts; existing shared helpers already own reusable transport work.
651 scripts/e2e/npm-telegram-live-docker.sh READ: Prepared package, published-driver, credential, and trusted harness mounts have distinct install and authority contracts.
643 scripts/e2e/lib/upgrade-survivor/recovery-cleanup.mjs READ: Shared repeated chat.history construction; fixed destination observations for index-only owners while retaining strict transcript database checks and all cleanup/history assertions.
635 scripts/e2e/parallels/smoke-common.ts READ: Folded nine private forwarding helpers into the three controller methods owning setup, selected-lane completion, and cleanup.
616 scripts/e2e/lib/upgrade-survivor/update-restart-auth.sh READ: Retained standalone systemctl supervisor custody, restart, settlement, and service-environment behavior; generic helpers are not equivalent.
603 scripts/e2e/lib/upgrade-survivor/systemd-fixture.mjs READ: Unified Unit/Service query matching and removed unreachable parse-result guard; preserved standalone shim contract.
589 scripts/e2e/parallels/host-command.ts READ: Replaced identical stdio conditional branches with their existing pipe array; retained synchronous wrapper control-channel, bounded-output, signal, and Bun contracts.
586 scripts/e2e/codex-npm-plugin-live-docker.sh READ: Managed dependency, same-session, progress follow-through, audit and uninstall-negative phases are independently asserted.
585 scripts/e2e/lib/upgrade-survivor/sqlite-volume.mjs READ: Retained exhaustive migration/archive/reopen proof; environment parser differs from shared limits in accepted values and diagnostics.
543 scripts/e2e/cron-cli-docker.sh READ: Shared cron authority matrix defaults; all ten cases, updates, restart checks and CLI assertions retained.
540 scripts/e2e/parallels/npm-update-scripts.ts READ: Shared POSIX helpers already own common fragments; remaining generated payloads preserve distinct shell, updater, Gateway, and installed-baseline contracts.
525 scripts/e2e/lib/upgrade-survivor/config-recipe.mts READ: Derived repeated JSON filenames from step IDs; preserved explicit password override, generated argv, ordering, and baseline adaptations.
505 scripts/e2e/lib/onboard/scenario.sh READ: Consolidated local onboarding command arguments while preserving every selected case, flag, argument order, log destination, and assertion.
495 scripts/e2e/lib/upgrade-survivor/update-report-recovery.mjs READ: Shared exact strict-descendant predicate; retained distinct PTY dialogue, buffering, and submission-state assertions.
489 scripts/e2e/lib/upgrade-survivor/abandoned-update.mjs READ: Retained database lifecycle scopes because existing helper adds a missing-database assertion and would change failure behavior.
470 scripts/e2e/bun-global-install-smoke.sh READ: Removed duplicate positive-integer parser in favor of the already-loaded canonical Docker helper.
462 scripts/e2e/lib/update-first-hop-package-fixtures.mjs READ: Candidate transformations, inventory checks, and negative controls protect separate package/update contracts; retained legacy branches name frozen published-release requirements.
437 scripts/e2e/lib/release-user-journey/write-clickclack-plugin.mjs READ: Reused the canonical fixture JSON writer; retained generated external-channel transport, registration, and runtime behavior.
434 scripts/e2e/lib/release-user-journey/assertions.mjs READ: Bounded HTTP, channel lifecycle, install-path, uninstall, and reply assertions protect distinct outcomes; its shared file assertion dependency now uses the canonical bounded scanner.
425 scripts/e2e/multi-node-update-docker.sh READ: JSON and TTY update paths independently verify original Node/service identity and post-update health.
415 scripts/e2e/lib/plugin-update/consent-scenario.mjs READ: Reinstall, disablement, denied widening, repair, post-core handoff, and missing-payload phases protect separate authorization/state transitions and remain intact.
413 scripts/e2e/lib/sandbox-browser-sidecar/scenario.mjs READ: Concurrent provisioning, ownership/modes, translated mounts, browser authentication, and recreate behavior are distinct exercised contracts; no sound additional reduction found.
412 scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs READ: Shared exact strict-descendant predicate, leaked-snapshot inventory, and SQLite file-family observation.
411 scripts/e2e/lib/plugin-lifecycle-matrix/measure.mjs READ: Linux resource measurement, process-group draining, parent-signal forwarding, and bounded termination have substantive distinct lifecycle contracts; retained.
410 scripts/e2e/lib/plugins/npm-registry-server.mjs READ: Buffered metadata, streamed tarballs, upstream merge modes, and tag precedence preserve distinct contracts.
407 scripts/e2e/lib/upgrade-survivor/recovery-cleanup-fixture.mjs READ: Retained independent retained/disposed/original/history contracts and byte/inode preservation evidence.
402 scripts/e2e/lib/doctor-install-switch/scenario.sh READ: Consolidated twelve identical timeout/log/error blocks into one command owner; retained install-switch, approval isolation, proxy environment, and wrapper persistence flows.
393 scripts/e2e/lib/upgrade-survivor/update-first-hop-compat.sh READ: Retained sequential published-driver hops, admission controls, and distinct service/recovery ordering.
391 scripts/e2e/lib/upgrade-survivor/custom-plugin-siblings.mjs READ: Retained refusal process identity, original-source preservation, and actual sibling-source canary execution proof.
381 scripts/e2e/lib/upgrade-survivor/taskflow-restoration.mjs READ: Retained pinned published-owner stores, installed SDK reads, and per-operation persistence/evidence contracts.
379 scripts/e2e/cli-backend-oauth-mcp-live.mjs READ: OAuth refresh, browser callback and child authorization trace have distinct transport and redaction contracts.
376 scripts/e2e/lib/upgrade-survivor/schema-expectation.mjs READ: Retained version/refusal/rollback expectations; similar schema readers differ in invalid and absent-marker behavior.
375 scripts/e2e/lib/upgrade-survivor/legacy-operator-cron-history.mjs READ: Retained receipt and schema witnesses; superficially similar package identity helpers retain different fields and checks.
358 scripts/e2e/lib/release-user-journey/clickclack-fixture.mjs READ: Minimal HTTP/WebSocket framing, authentication, body limits, persisted state, and socket-generation evidence remain distinct; no equivalent shared owner preserves the full contract.
355 scripts/e2e/npm-telegram-live-runner.ts READ: Frozen release configuration projections and selected QA scenario/credential routing remain active named contracts.
349 scripts/e2e/lib/upgrade-survivor/sqlite-volume-shared-state.mjs READ: Retained published SDK ownership, full plugin-state preservation, and account-partition pairing assertions.
349 scripts/e2e/session-runtime-context-docker-client.ts READ: Transcript visibility, branch repair, migration archive bytes and legacy release assertions are distinct.
346 scripts/e2e/lib/upgrade-survivor/legacy-operator-restored-index.mjs READ: Retained distinct restore/import/archive/rollback contracts; merging CLI runners would require policy-heavy options.
344 scripts/e2e/openwebui-probe.mjs READ: Per-surface timeout, authentication, model discovery and redacted reply evidence require their current failure semantics.
342 scripts/e2e/parallels/package-artifact.ts READ: Canonical packaging, companion artifacts, exact provenance, and shared build-lock ownership remain active responsibilities; no sound removal identified.
336 scripts/e2e/lib/bun-global-install/assertions.mjs READ: Bun trust/artifact/version assertions and process-group timeout/signal handling have separate observable contracts; retained without weakening cleanup.
336 scripts/e2e/lib/upgrade-survivor/watchos-direct-node.mjs READ: Retained distinct TLS, V3 signature, bootstrap/device-token, and persisted-endpoint contracts.
335 scripts/e2e/cron-mcp-cleanup-docker-client.ts READ: Cron and subagent work have distinct event and complete child-process settlement assertions.
333 scripts/e2e/compose-setup.sh READ: Documented topology, token rejection, health failure/recovery and artifact identity assertions independently exercised.
324 scripts/e2e/system-agent-rescue-docker-client.ts READ: Sequential approval, cancellation, config persistence and audit assertions protect separate operator actions.
323 scripts/e2e/lib/plugin-index-sqlite.mjs READ: Current and pre-v13 persistence dialects are named frozen-release contracts; schema selection and bounded JSON reads cannot be merged without changing admission/error semantics.
323 scripts/e2e/lib/plugin-update/probe.mjs READ: Unchanged-update snapshots, bounded output scans, corrupt-target tolerance, policy preservation, and consent dispatch protect distinct scenarios; retained.
322 scripts/e2e/lib/plugins/sweep.sh READ: Explicit scenario ordering and captured artifact/output names are caller contracts; no sound further consolidation identified.
320 scripts/e2e/lib/upgrade-survivor/missing-configured-plugin-migration.mjs READ: Retained scenario-specific proxy availability gate and exact registry request evidence; no equivalent owner found.
313 scripts/e2e/npm-onboard-channel-agent-docker.sh READ: Channel dependency variants, published install consent and execution identity across restarts are distinct boundaries.
308 scripts/e2e/lib/bundled-plugin-install-uninstall/probe.mjs READ: Installed-package inventory, shard selection, configuration, and source ownership checks protect distinct contracts.
308 scripts/e2e/lib/update-channel-switch/assertions.mjs READ: Bare-image YAML mutation intentionally runs before dependency installation; update, dry-run, dirty-input, staging, and installed-version assertions remain distinct.
304 scripts/e2e/lib/container-image-upgrade/fixture.mjs READ: Pinned shipped corpus hashes, schema admission, paired backups, refusal preservation, and public history proof are substantive independent assertions; retained.
302 scripts/e2e/lib/upgrade-survivor/formerly-bundled-plugin-doctor.mjs READ: Retained distinct stale-latest versus exact-candidate registry and Doctor repair proof.
288 scripts/e2e/lib/upgrade-survivor/workshop-legacy-proposals.mjs READ: Retained independently authored shipped sidecar specimens and complete recovered-column, rollback, event, and warning checks.
287 scripts/e2e/lib/plugins/fixtures.sh READ: Wrappers have external sourced users and standalone fallback/trap semantics; preserved those contracts.
283 scripts/e2e/parallels/host-server.ts READ: Artifact and registry servers already share startup and cleanup; retained their distinct serving, registry, and diagnostic contracts.
282 scripts/e2e/fleet-cache-docker.sh READ: UID, explicit/default environment, upgrade and restore cells preserve distinct container ownership contracts.
281 scripts/e2e/lib/mcp-code-mode-diagnostics.ts READ: Bounded diagnostic projection, current-turn attribution, and private-field exclusion protect disclosure and evidence integrity; no sound simplification found.
277 scripts/e2e/lib/upgrade-survivor/legacy-operator-plugin-policy.mjs READ: Retained activation and authentication-boundary assertions; related CLI runners differ in artifact and parsing contracts.
270 scripts/e2e/anthropic-cache-live.mts READ: Provider and managed-transport cache prefix/usage assertions independently protect eight real requests.
270 scripts/e2e/parallels/parallels-exec.py READ: Retained verified installed-binary ABI workaround, SDK handle ownership, fallback selection, and exit/stdio contracts; restructuring requires live macOS ABI proof.
265 scripts/e2e/lib/doctor-install-switch/shims/busctl READ: Exact invocation/property allowlists and synthetic stopped-manager semantics provide the service boundary proof; retained.
265 scripts/e2e/lib/session-log-mentions.ts READ: JSONL and SQLite readers preserve different storage/error contracts while enforcing per-file/total bounds and excluding user input; retained.
263 scripts/e2e/lib/release-upgrade-user-journey/scenario.sh READ: Published baseline, explicit external package transition, retained conversations, and candidate channel journey are distinct ordered release contracts; shared CLI fixture dependency was consolidated.
259 scripts/e2e/update-channel-switch-docker.sh READ: Stable/beta/dev, dry-run, dirty-tree refusal and frozen release differences are separate update contracts.
257 scripts/e2e/lib/release-user-journey/scenario.sh READ: Removed the copied CLI plugin generator in favor of the shared plugin-fixture owner with an explicit versionless gateway reply; retained all journey phases and assertions.
256 scripts/e2e/lib/skills/clawhub-install-proof.sh READ: Live discovery, security refusal, custom selection, pinned maintained-fixture bytes, and origin/lock checks are mandatory separate contracts; retained.
256 scripts/e2e/openwebui-docker.sh READ: Two services, resource sampling, live auth and readiness stages use shared Docker helpers already.
255 scripts/e2e/lib/kitchen-sink-plugin/sweep.sh READ: Source-only callers/tests override wrappers; retained those hooks and log-output contracts.
254 scripts/e2e/lib/npm-onboard-channel-agent/assertions.mjs READ: Canonical auth storage, raw-key exclusion, model/runtime preservation, channel tokens, and rendered status sections assert distinct outcomes; retained.
249 scripts/e2e/lib/session-cold-storage/client.mjs READ: Automatic archival, policy hot reload, missing-file refusal, portable backup, exact restoration, and Activity refresh protect distinct lifecycle transitions; retained.
249 scripts/e2e/lib/upgrade-survivor/taskflow-restoration-fixture.mjs READ: Retained independently asserted Gateway/SDK projections, pagination, identifiers, and durable task/flow records.
248 scripts/e2e/lib/fleet-cache/runtime-preflight.mjs READ: Consolidated identical initial/refreshed rootless apt simulation commands; retained prerequisite checks, recovery conditions, timeouts, and privacy-filtered report shape.
244 scripts/e2e/lib/release-scenarios/assertions.mjs READ: Auth, image describe/generate, memory recall, package version, and plugin removal assertions remain distinct; its shared file assertion dependency now uses the canonical bounded scanner.
241 scripts/e2e/browser-plugin-profiles-docker.sh READ: Packaged Chromium lazy startup, device/locale changes, process exit and profile deletion assertions remain distinct.
234 scripts/e2e/lib/kitchen-sink-calibration.mts READ: Independent resource-control steps and exact retirement receipts; already shares measurement ownership.
229 scripts/e2e/lib/run-with-pty.mjs READ: Bounded transcript output and owned process-tree signal/drain handling protect separate PTY lifecycle invariants; retained.
228 scripts/e2e/lib/release-plugin-marketplace/lifecycle-assertions.mjs READ: Marketplace provenance, managed-path stability, uninstall cleanup, and sentinel preservation independently protect plugin lifecycle behavior; retained.
226 scripts/e2e/lib/agent-turn-output.mjs READ: Replaced duplicated bounded request-log scanning with the existing text-file owner; retained failure-envelope rejection, reply extraction, markers, and diagnostic bounds.
223 scripts/e2e/parallels/macos-discord.ts READ: Optional live Discord send/readback, owned-message cleanup, and successful-smoke VM shutdown remain documented skill coverage.
221 scripts/e2e/lib/upgrade-survivor/worker-cell-package.mjs READ: Retained exact published/candidate payload hashes, source identity, and defining-owner binding verification.
216 scripts/e2e/lib/auth-profile-store-assertions.mjs READ: Shared versus legacy schema ownership, retired-primary-row refusal, environment references, and inline-secret rejection are explicit retained contracts; no sound additional reduction found.
216 scripts/e2e/lib/upgrade-survivor/update-admission-entry-probe.mjs READ: Retained actual packaged admission entry proof, source-artifact preservation, marker ownership, and process cleanup.
212 scripts/e2e/mcp-code-mode-gateway-client.ts READ: Bounded HTTP timeout/error mapping and persisted transcript/tool-discovery evidence have distinct contracts.
208 scripts/e2e/parallels/plugin-isolation.ts READ: Common Node config payload is already shared; retained distinct POSIX and PowerShell optional-package repair and execution semantics.
201 scripts/e2e/lib/kitchen-sink-resources.mts READ: Canonical measurement owner preserves split-first accounting and receipts when observations fail.
182 scripts/e2e/lib/fixtures/plugins.mjs READ: Owns shared release CLI and Brave generators alongside existing writers; statically reachable adapters preserve versioned/versionless responses and generated bytes. Baseline 182 lines, candidate 243 lines.

@clawsweeper

clawsweeper Bot commented Sep 26, 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 scripts Repository scripts docker Docker and sandbox tooling size: XL labels Sep 26, 2026
@steipete
steipete marked this pull request as ready for review September 26, 2026 23:39
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 2:00 AM ET / 06:00 UTC (Revision 8).

ClawSweeper review

What this changes

The branch consolidates end-to-end test fixtures and scenario helpers, including Parallels guest orchestration, and repairs mobile-pairing cleanup, Codex discovery fixtures, and upgrade-recovery assertions.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: current main lacks this branch’s useful work, and the reported Docker evidence is substantial. The remaining merge gap is validation of the changed Parallels controller on a real guest.

Priority: P3
Reviewed head: e1cbe83438353541df29a9aac3db5e00c727394d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The refactor has meaningful boundary and Docker evidence with no concrete patch defect found, while Parallels guest validation remains outstanding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR records passing installed-package Docker runs for changed fixture and recovery paths at the prior tested head, including after-fix Codex media discovery and published-baseline recovery. Its Parallels controller is covered by fixture tests only, so real-guest validation remains a separate merge risk; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR records passing installed-package Docker runs for changed fixture and recovery paths at the prior tested head, including after-fix Codex media discovery and published-baseline recovery. Its Parallels controller is covered by fixture tests only, so real-guest validation remains a separate merge risk; no stored-data contract changes.
Evidence reviewed 8 items Introduced Parallels change: The PR combines fresh baseline and fresh-target launches into one platform loop; the added controller test uses a fixture subclass rather than a guest.
Guest proof boundary: The repository’s documented Parallels command installs a baseline package, updates in the same guest, and checks version, status, Gateway readiness, and an agent turn.
Captured contributor proof: The reviewed PR body reports passing installed-package Docker scenarios, including Codex media-path and published-baseline recovery, and explicitly says no actual macOS or Windows VM run is claimed. The live body matched the supplied 33,367-unit source hash.
Findings None None.
Security None None.

How this fits together

OpenClaw’s end-to-end harness drives packaged installs, Gateway requests, and update scenarios through Docker and Parallels guests. It turns their responses and generated fixtures into assertions, logs, and status summaries.

flowchart LR
  A[Packages and fixtures] --> B[Scenario selection]
  B --> C[Docker and Parallels runners]
  C --> D[OpenClaw CLI and Gateway]
  D --> E[Responses and artifacts]
  E --> F[Assertions]
  F --> G[Status and logs]
Loading

Before merge

  • Resolve merge risk (P1) - The consolidated Parallels fresh-install and same-guest update driver has fixture coverage but no reported real-guest run, leaving guest status, process completion, and cleanup unverified.
  • Complete next step (P2) - Record a real Parallels fresh install and same-guest update on a representative guest, including lane status, process completion, and cleanup, before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +291, Other -900. Total -609 across 46 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 327 36 +291
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 40 732 1632 -900
Total 46 1059 1668 -609

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/fleet-cache/runtime-preflight.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/config-recipe.mts, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/fixture-files.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/mobile-pairing-client.mts, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/project-worktree-startup.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/projects-doctor.mjs, and 20 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Verify the guest driver (recommended)
    Run a representative native Parallels fresh install and same-guest update and record the lane result, process exit, and cleanup before merge.

Technical review

Best possible solution:

Retain the shared harness owners and establish a passing representative Parallels fresh install and same-guest update, including status, process completion, and cleanup evidence.

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

Not applicable to the primary refactor. The PR documents before-and-after checks for its incidental fixture defects, but no real Parallels guest run.

Is this the best way to solve the issue?

Yes for consolidating repeated harness ownership while retaining scenario boundaries; the Parallels path still needs its documented guest-level validation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5e1a2cf4ea76.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is primarily internal end-to-end harness cleanup without a demonstrated user-facing regression.
  • merge-risk: 🚨 automation: The changed Parallels controller produces install and update proof, and fixture tests do not establish its behavior on a real guest.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR records passing installed-package Docker runs for changed fixture and recovery paths at the prior tested head, including after-fix Codex media discovery and published-baseline recovery. Its Parallels controller is covered by fixture tests only, so real-guest validation remains a separate merge risk; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR records passing installed-package Docker runs for changed fixture and recovery paths at the prior tested head, including after-fix Codex media discovery and published-baseline recovery. Its Parallels controller is covered by fixture tests only, so real-guest validation remains a separate merge risk; no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

  • Record a representative real Parallels fresh-install and same-guest update result for the changed controller.

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 (7 earlier review cycles)
  • reviewed 2026-09-26T23:57:11.996Z sha 28d6ca5 :: blocked before merge. :: none
  • reviewed 2026-09-27T01:33:37.357Z sha 76c38db :: blocked before merge. :: none
  • reviewed 2026-09-27T02:12:21.985Z sha 76c38db :: blocked before merge. :: none
  • reviewed 2026-09-27T02:49:03.470Z sha 3cb4a32 :: blocked before merge. :: none
  • reviewed 2026-09-27T04:54:34.739Z sha 48a9a25 :: blocked before merge. :: none
  • reviewed 2026-09-27T05:03:45.282Z sha 48a9a25 :: blocked before merge. :: none
  • reviewed 2026-09-27T05:36:04.593Z sha 48a9a25 :: blocked before merge. :: none

@steipete
steipete force-pushed the deslop/l97-scripts-e2e branch from 28d6ca5 to 76c38db Compare September 27, 2026 01:21
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 27, 2026
@steipete
steipete enabled auto-merge (squash) September 27, 2026 02:41
@steipete
steipete disabled auto-merge September 27, 2026 03:44
Consolidate fixture generation, bounded readers, command handling, and gateway/controller lifecycle owners while preserving every existing scenario and assertion. Fix leaked mobile pairing frame waiters on failed WebSocket opening or sending.
@steipete
steipete force-pushed the deslop/l97-scripts-e2e branch from 3cb4a32 to 48a9a25 Compare September 27, 2026 04:46
@steipete
steipete enabled auto-merge (squash) September 27, 2026 04:48
@steipete
steipete merged commit 47b7b47 into main Sep 27, 2026
158 checks passed
@steipete
steipete deleted the deslop/l97-scripts-e2e branch September 27, 2026 06:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
* refactor(scripts): deslop e2e harness

Consolidate fixture generation, bounded readers, command handling, and gateway/controller lifecycle owners while preserving every existing scenario and assertion. Fix leaked mobile pairing frame waiters on failed WebSocket opening or sending.

* fix(scripts): repair e2e discovery and recovery fixtures

* test(scripts): follow shared Bun timeout validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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