Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: blocked before merge. Reviewed September 6, 2026, 3:41 AM ET / 07:41 UTC. ClawSweeper reviewWhat this changesThe PR gives ClawHub installation tests isolated workspaces and moves the sandbox hash test to a tracked temporary directory, preventing filesystem fixtures from interfering across suites. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, focused repair: the shared fixture destination persists on reviewed main, and no introduced correctness defect was found. The protected, maintainer-authored PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherClawHub installation tests invoke real tracking-file writes behind mocked downloads and installation. Sandbox browser tests discover workspace skill directories when computing container hashes, so shared test directories can connect otherwise unrelated suites. flowchart TD
A[ClawHub test case] --> B[Owned temporary workspace]
B --> C[Mocked installation destination]
C --> D[Real tracking file writes]
D --> E[Per-test cleanup]
F[Sandbox browser test] --> G[Separate temporary workspace]
G --> H[Skill discovery and config hash]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -2. Total -2 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep filesystem writes inside owned test workspaces while retaining real provenance writes, mount discovery, and the existing hash assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: running ClawHub installs first writes into the shared workspace, after which browser skill discovery contradicts the fixture’s empty-mount hash expectation. This review did not execute that sequence. Is this the best way to solve the issue? Yes. Correcting the fixture destination and using existing temporary-directory helpers repairs the test-owned state without mocking away provenance writes or weakening sandbox assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against bed5042933bb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
ClawHub mocked installs returned a shared /tmp/workspace destination while real provenance writes populated its skills directory. Concurrent sandbox browser tests then discovered an unexpected skill mount and computed a different container hash. Allocate tracked workspace roots per test and return the actual install destination; keep the browser epoch proof on an owned workspace.
64bcdb9 to
e0feeaf
Compare
|
Superseded by #139894, merged as 9532052. That repair puts the ClawHub producer and all sandbox browser fixtures in tracked per-test workspaces, covering the same filesystem isolation invariant. Verified the merge is an ancestor of captured main The earlier Blacksmith replay retained in this PR independently reproduced the original writer-before-reader failure and proved the equivalent isolation repair on the original candidate. Both task-owned leases are stopped; the redundant second acquisition was cancelled before tests ran. Closing this duplicate without merging or further rebasing. The canonical implementation and credit remain in #139894. |
What Problem This Solves
Resolves a problem where unrelated pull requests and main CI fail the sandbox browser config-hash test when the ClawHub test shard runs first. The failure appeared in main CI and the avatar repair CI.
Why This Change Was Made
ClawHub's install mock returned a shared
/tmp/workspace/skills/agentreceiptdestination while the real provenance writer created files there. The browser fixture then discovered that directory as a protected skill mount, although its expected hash assumed no mounts.ClawHub tests now allocate and clean an owned workspace for each case, and the install mock returns its actual requested destination. The browser epoch case also uses its existing tracked temporary-directory helper. Three redundant mock overrides are removed.
User Impact
Developers get deterministic CI across concurrently scheduled shards. Runtime behavior and sandbox security policy are unchanged.
Evidence
Superseded by #139894, merged as
9532052c47d87c2d2ea3eb7161bf49b7b8d18d52. The landed repair isolates both owners, including every browser fixture. On captured main83d1f53c51a262cf8cec0fce14548514daee4d35, both repaired files match the canonical merge and all 144 relevant tests passed. The checkout is clean. The canonical PR's exact-head CI passed. This candidate is retained for its diagnostic evidence and will not be merged.The retained remote proof below applies to original candidate
64bcdb99e4f3dc9a7f5075fbb35ea64f0e78adb4. It must not be mistaken for a remote run of the separately landed implementation. The later unchanged-patch rebase toe0feeaf8dcc17d655acdb427a10e92f7105720eebecame redundant; its second Testbox acquisition was stopped before tests ran.Local focused suites passed: 117 ClawHub tests and 27 sandbox browser tests. The original 63-file agents envelope also passed when run without the ClawHub writer, confirming the missing cross-shard interference in a narrow retry.
Remote proof ran on Blacksmith Testbox lease
tbx_01m1tt706weysfrjgwx9wf97qy, run 34019498275, comparing baselineba3a6cb5f690789e0824c7c92618579743b9cadewith candidate64bcdb99e4f3dc9a7f5075fbb35ea64f0e78adb4in separate detached worktrees. The exact source trees were verified before execution.The ordered replay used the original
installs ClawHub skills from flat-root archivesandincludes the explicit env policy epoch in the browser config hash when neededcases vianode scripts/run-vitest.mjs:The original browser passing after the repaired writer independently proves the producer repair. The full remote changed gate passed, including the agents-other and services test type graphs, formatting, lint, declaration, dependency, and repository guards. Original-head CI is green. The lease is independently confirmed completed/stopped. A portal metadata-sync timeout occurred after successful proof and cleanup.
The local changed gate had rejected declaration inputs from its read-only linked dependency checkout before typechecking; the complete remote gate used owned prepared dependencies. This is test-harness proof with real filesystem effects; existing Docker and network mocks remain in place.
Independent local and committed-branch reviews found no actionable P0–P2 findings.
git diff --numstat:No changelog change: this is a test-fixture CI repair.