Repository navigation
fix(sandbox): report install errors and keep pnpm stores out of results - #192051
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4ac9f24bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs changes before merge. What this changesThis PR adds bounded installer diagnostics and excludes the observed task-local pnpm store from workspace results. Example: An offline pnpm 12.15.0 dependency installation fails with ERR_PNPM_NO_OFFLINE_META.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR addresses concrete sandbox failures, but installer-side redaction violates the repository’s raw-log contract. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherSandbox preparation installs dependencies in disposable containers, while the shared workspace policy selects files for capture, transfer, reconciliation, and recovery. flowchart TD
A[Managed workspace preparation] --> B[Disposable dependency installer]
B --> C[Source or dependency template]
B --> D[Subsystem logging]
C --> E[Private session workspace]
E --> F[Shared generated path policy]
F --> G[Captured and staged source results]
Technical reviewBest possible solution: Keep the exact-root exclusion and bounded diagnostics, preserving raw diagnostic records while the existing logging egress owners redact wider-audience output. Do we have a high-confidence way to reproduce the issue? Current-main source omits installer output and does not exclude the demonstrated task-local store; the body reports red regressions and real Docker reproduction, but no target code was executed during this review. Is this the best way to solve the issue? The existing classifier is the smallest complete owner for the cache repair, and the diagnostic change needs only the logging-ownership correction rather than another state or policy layer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c5c4ec06d1f5. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +12, Tests +17, Docs +37, Generated +2, Other +198. Total +266 across 13 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 11:23 AM ET / 16:23 UTC. |
|
The redaction is intentional for this repair. The task explicitly requires a bounded, redacted tail of installer output, overriding the general raw-log default for this diagnostic. Package-manager output can contain registry credentials; preserving those values is unnecessary to diagnose the failure category. The implementation uses the existing canonical redactor before truncation, and regression tests verify both output streams retain the error while masking synthetic credentials. No logging-owner policy is changed. I am retaining this behavior and rejecting the requested raw-secret logging change. The runtime evidence is Docker/APFS synthetic preparation and capture/staging measurements, documented in the PR body and committed rerunnable benchmark. This PR has no UI change or screenshot proof; any About-page screenshots are unrelated to this patch. |
b4ac9f2 to
c4d6666
Compare
Keep bounded redacted installer diagnostics and remove the task-local pnpm content store through the existing capture, transfer and recovery exclusion owner. Preserve source-only template reuse, source artifacts and admitted inputs. Add red-to-green regression coverage and a synthetic 62k-file staging benchmark.
c4d6666 to
88c321b
Compare
|
Merged via squash auto-merge.
|
…enclaw#192051) Keep bounded redacted installer diagnostics and remove the task-local pnpm content store through the existing capture, transfer and recovery exclusion owner. Preserve source-only template reuse, source artifacts and admitted inputs. Add red-to-green regression coverage and a synthetic 62k-file staging benchmark.
Release adaptation: backport only the Socket Mode reconnect waiter owner and focused regression tests; omit the performance harness and main-only transport documentation addition. Add listener-count assertions for timer settlement and disconnect cancellation; adjust the test allocation to 41. Companion dispositions: #198007 is specific to SDK 3.2 callback/abort semantics and is not applicable to this line pinned to socket-mode 3.1.0. #197657 retires main allocations; other audit hits (#200523, #197009, #194964, #184507, #192197, #192051, #190003, #189850) only overlap the excluded shared perf README. No later #188745 mention through bd692e9. (cherry picked from commit a1d1da7) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Sandbox dependency installation reports only an exit code, and a pnpm store under a task-local XDG data directory can be captured as workspace output until staging exceeds its byte limit.
User Impact
Failed installs now include a bounded, redacted diagnostic. The observed
artifacts/task-environment/local/share/pnpm/storeroot is excluded from capture, transfer, and staged-result recovery while sibling reports, nested fixtures, and admitted staged inputs remain available.Why This Change Was Made
The installer keeps the final 2,048 characters after redacting both output streams; pnpm versions report errors on either stream. One entry in the existing shared path policy removes the content store before hashing, staged byte limits, and Git-input writes. No config or schema changes.
Source-only templates already reuse identical inputs, including installation failures; that policy is unchanged. A real offline Docker install with pinned pnpm 12.15.0 fails with
ERR_PNPM_NO_OFFLINE_META, while the same frozen package installs online with a read-only root. This establishes an isolated reproduction, not the cause for every deployment's exit 1.Evidence
scripts/perf/README.md.547d5c496b94; integrated that named repair by rebasing onto9c5f014050e7; the previously failing About test passes targeted lint. All other selected gates passed. A separate test-budget check finds 393 lines of existing shared debt at the integrated parent despite this change's exact 17-line allocation. Shared reconciliation is tracked in fix(ci): reconcile exact test budget and restore browser fixtures #192026. This is not claimed as an inherited-red landing exception.51bee40d3c7f; no actionable findings. The allocation was mechanically corrected from 15 to 17 after formatting; four benchmark brace pairs were corrected after lint. The rebase only consumes unrelated main changes, including the named lint repair. No Control UI import boundary is touched.Current CI and review disposition
The approved scalar change 6,325,211 → 6,325,292 landed in #192207 as 135c63e. Duplicate #192216 was closed after the native merge guard verified it would make no change to main. No duplicate increase was applied.
Per-PR attribution since f08cd31: #192172 -1, #156399 +10, #192169 -3, #192170 -2, #191409 -1, #191411 -2, #191470 +533 = +534 test LF lines; #191470 allocated 453, leaving the approved 81. Newer main independently changed the count; the final sandbox candidate has 6,441,596 test lines / 6,441,685 ceiling (89 slack), including this task's exact 17-line allocation.
Current head 88c321b rebases patch-identically onto the merged repair and retains its prior focused behavior proof and Codex review. Exact-head CI run41708216137 passed. Native auto-merge landed the exact head as3b4e66e37807ff7b0910fa9ad0f253891127131a. No inherited-CI exception was used.
Hosted review's requested raw installer logging is rejected: the task explicitly requires a bounded, redacted diagnostic, overriding the general raw-log default for this output. Canonical redaction before truncation and the credential regression remain intentional.