Repository navigation
fix(release): packed activation smoke reads shared state - #164487
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: needs maintainer review before merge. Reviewed October 3, 2026, 3:40 PM ET / 19:40 UTC. ClawSweeper reviewWhat this changesThe PR explicitly pins the packed-package activation smoke’s state directory to its synthetic home and adds regression coverage for hostile ambient state settings. Merge readiness✅ Ready for maintainer review Keep open: this is a focused, useful isolation improvement that remains absent from the pinned main revision. No introduced correctness or security defect was found; the author’s MEMBER association also excludes automated closure. Priority: P2 Review scores
Verification
How this fits togetherRelease validation installs the candidate npm package and runs Doctor against a synthetic Telegram configuration. Its environment determines which configuration and plugin state those checks inspect. flowchart TD
A[Candidate npm package] --> D[Packed activation smoke]
B[Runner environment] --> C[Isolated smoke environment]
C --> D
E[Synthetic Telegram configuration] --> D
D --> F[Doctor repair and plugin checks]
F --> G[Package validation result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +17, Other +9. Total +26 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep packed activation validation confined to one synthetic home, configuration, and state directory through the existing smoke-environment owner. Do we have a high-confidence way to reproduce the issue? Unclear: the linked package job failed, but this review did not reproduce the precise state leak. The existing environment builder already strips ambient state overrides, so the body’s mechanism is not established by that input alone. Is this the best way to solve the issue? Yes: explicitly selecting the fixture state directory is a narrow, maintainable strengthening of the existing smoke environment and matches the synthetic configuration path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 66bf7928a86e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash auto-merge.
|
What Problem This Solves
Fixes: the packed bundled-plugin activation smoke can read the runner's shared OpenClaw state and attempt to repair unrelated configured plugins during release validation.
User Impact
User impact: no user-visible runtime change; npm release validation now exercises only its synthetic Telegram activation fixture.
Why This Change Was Made
The packed smoke already isolates
HOME, but it did not overrideOPENCLAW_STATE_DIR. In FRV 37145405431, shared state exposed a configured Codex plugin andplugins doctortried to fetch unpublished@openclaw/[email protected]from ClawHub.The smoke now selects its isolated
activation-home/.openclawdirectory explicitly for both state and the synthetic config. The candidate and package pipeline are unchanged.Evidence
node scripts/run-vitest.mjs test/release-check.test.ts --maxWorkers=1: 48/48 passed; 154.70 seconds wall on the final run. The new regression supplies a hostile ambient state path and requires the activation config/state directory to remain isolated.checks-node-changed: passed in 114 seconds.node scripts/check-changed.mjs: passed forscripts,testRoot, andtoolinglanes.