Repository navigation
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. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. This PR is superseded by the merged #176802, which covers both cache roots and adds broader historical-result recovery coverage. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Keep the merged shared-owner repair and its broader regressions, and close this PR as superseded. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Keep the merged shared-owner repair and its broader regressions, and close this PR as superseded. Do we have a high-confidence way to reproduce the issue? The base source admits the reported compiler-cache files, but current main explicitly excludes both roots and includes capture and recovery regressions; no target code was executed during this read-only review. Is this the best way to solve the issue? Extending the existing exact-root inventory is the appropriate minimal repair, and the merged replacement already delivers it with additional cache-ancestor recovery handling. Security review: Security review cleared: The two exact-root additions introduce no concrete authorization, credential, dependency, or supply-chain concern. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning medium; reviewed against 7bea9809d767; fix evidence: commit 6e4883fca44e, main fix timestamp 2026-10-19T03:44:32Z. |
Exclude the retained Vitest worker cache (.artifacts/vitest-worker-cache/) and Bun transpiler cache (.cache/bun-transpiler/) from managed workspace capture, transfer, and pending-result recovery using the existing exact-root exclusion policy, while neighboring guest-created files and genuine source conflicts still reconcile. Fixes openclaw#176778
f7b6de6 to
ea2af47
Compare
|
Follow-up summary (CI + requested real-behavior proof): CI failure attribution and fix. The failed Real managed-workspace flow proof. Per the review's before-merge item, I ran the patched flow through a real Gateway runtime (
{
"status": "pass",
"mode": "green-patched",
"repoHead": "ea2af47ac8a5ebf02bb83da33126f11c9626ccbd",
"authoredFilesPreservedInGatewayWorkspace": { "cacheNotes": true, "testSummary": true },
"cacheRootsInGatewayWorkspace": { "vitestWorkerCache": false, "bunTranspilerCache": false },
"cacheRootsRetainedOnWorker": { "vitestWorkerCache": true, "bunTranspilerCache": true }
}This is now in the PR body's Evidence section. One environment note (also in the body): the EL8 proof host cannot load the prebuilt Overlap disclosure. #176802 (refs the same issue #176778) landed on main after this PR opened and excludes the same two roots plus |
|
@clawsweeper re-review The before-merge item (real behavior proof) has been addressed on the current head |
|
🦞👀 Re-review progress:
|
|
ClawSweeper recorded closeout evidence for this proposed close.
|
Closes #176778
What Problem This Solves
.artifacts/vitest-worker-cache/) and Bun transpiler cache (.cache/bun-transpiler/) counted as authored workspace changes, so a single test run could add tens of thousands of disposable generated files to the pending result used by refresh, review, and publication preparation.impact:session-statewithclawsweeper:queueable-fix,clawsweeper:fix-shape-clear,clawsweeper:source-repro.Why This Change Was Made
vitest-worker-cache.mts/vitest-process.mtskeep writing the same roots), and no blanket exclusion of.artifacts/or.cache/— guest-created files under those directories, nested paths, staged inputs, and genuine source conflicts still reconcile exactly as before..artifacts/vitest-worker-cache-notes.md,fixtures/.cache/bun-transpiler/input.txt, etc.) are still captured, transferred, and recovered.User Impact
src/gateway/worker-environments/workspace-path-exclusions.ts(two added roots) and the regression fixtures inworkspace-generated-paths.test.ts/local-workspace-generated-paths.test-support.ts(capture/transfer plus legacy-manifest expiry/recovery proofs).Evidence
8a23c56a833on Linux (EL8, Node v26.7.0), running the real manifest-capture, rsync-transfer, and projection recovery code paths (real filesystem, realgit fast-import, no mocks)..artifacts/vitest-worker-cache/and.cache/bun-transpiler/are absent from captured manifests and rsync transfers; projection expiry and legacy pending-result recovery succeed with cache churn present while neighboring authored files (-notes.md, nestedfixtures/paths) are preserved in both copies and concurrent source edits still produce a conflict.node dist/index.js gateway run, loopback qa-lab gateway child) with an in-process paired node worker host (real supervisor and workspace runtime, realgit/rsync transfers) ran a managed session on a published git workspace. Between two real worker turns, the worker sandbox received the two cache roots (.artifacts/vitest-worker-cache/run-cache-0/package.json,.cache/bun-transpiler/transpiled.js) plus two authored neighbors (.artifacts/vitest-worker-cache-notes.md,guest-test-summary.txt), simulating a test run. After the second turn's capture, transfer, and reconciliation settled (workspaceResultReconcilingcleared viasessions.describe), the Gateway-side managed worktree contained both authored files and neither cache root, while the worker sandbox retained both caches.@openclaw/proc-saferequires glibc >= 2.34), so the local dist build used for the run dropped theworker-native-process-owner-v1feature advertisement and exercised the process-group ownership fallback. Workspace path classification, capture, transfer, and reconciliation ran unmodified; the logs contain no IPs, keys, or non-public endpoints.Error: Cloud workspace result is too large: .artifacts/vitest-worker-cache/run-cache-0/package.json(manifest comparison) andError: Local sandbox has unaccepted edits; restore its worktree before cleanup(projection expiry) — 4 failed / 24 passed before the two-root fix.check:test-types,test-projects --changed) run on GitHub Actions.check-test-typesfailure came from an unrelatedextensions/codextest fixed on main); real-flow proof added above. Note: the same two roots (plus.artifacts/vitest-shard-timings.json) landed on main via fix: keep test compiler caches out of workspace synchronization #176802 after this PR opened, so maintainers may prefer to supersede — the regression fixtures and docs here remain applicable to that landed behavior.