Skip to content

fix(release): packed activation smoke reads shared state - #164487

Merged
RomneyDa merged 1 commit into
mainfrom
fix/release-package-activation-state
Oct 3, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/release-package-activation-state

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

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 override OPENCLAW_STATE_DIR. In FRV 37145405431, shared state exposed a configured Codex plugin and plugins doctor tried to fetch unpublished @openclaw/[email protected] from ClawHub.

The smoke now selects its isolated activation-home/.openclaw directory explicitly for both state and the synthetic config. The candidate and package pipeline are unchanged.

Evidence

  • Original failure: npm artifact job 111270954108.
  • 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.
  • Exact-head CI checks-node-changed: passed in 114 seconds.
  • node scripts/check-changed.mjs: passed for scripts, testRoot, and tooling lanes.
  • AutoReview at P1: scoped-clean after resolving its config/state-path finding.

@clawsweeper

clawsweeper Bot commented Oct 3, 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 size: XS labels Oct 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 3:40 PM ET / 19:40 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 46282f9635e783a2ca7ec65c8caa1cfbf93c3ca8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with useful isolation coverage and no actionable introduced defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported unit checks cover environment construction; no after-fix packed Doctor trace was supplied or executed here. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported unit checks cover environment construction; no after-fix packed Doctor trace was supplied or executed here. No stored-data contract changes.
Evidence reviewed 7 items Introduced isolation change: The introduced patch selects activation-home/.openclaw explicitly and passes the resulting environment to both packed Doctor invocations; the fixture writer uses that same directory.
State and configuration contract: The state resolver honors an explicit OPENCLAW_STATE_DIR, and configuration resolution uses openclaw.json within the selected state directory. The changed environment therefore agrees with the fixture’s configuration location.
Focused regression coverage: The added case supplies an operator home and state directory and verifies that the production environment builder instead selects the fixture paths. The body reports 48 passing tests and changed-lane checks; those commands were not executed during this read-only review.
Findings None None.
Security None None.

How this fits together

Release 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +17, Other +9. Total +26 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 17 0 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 12 3 +9
Total 2 29 3 +26

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This bounded release-validation isolation repair addresses an observed package qualification failure without changing user runtime behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported unit checks cover environment construction; no after-fix packed Doctor trace was supplied or executed here. No stored-data contract changes.

Label justifications:

  • P2: This bounded release-validation isolation repair addresses an observed package qualification failure without changing user runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported unit checks cover environment construction; no after-fix packed Doctor trace was supplied or executed here. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@RomneyDa
RomneyDa enabled auto-merge (squash) October 3, 2026 19:44
@RomneyDa
RomneyDa merged commit fe6414a into main Oct 3, 2026
103 checks passed
@RomneyDa
RomneyDa deleted the fix/release-package-activation-state branch October 3, 2026 19:44
@RomneyDa

RomneyDa commented Oct 3, 2026

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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