Skip to content

fix(plugins): suspend unused install snapshot publication - #194456

Merged
steipete merged 2 commits into
mainfrom
steipete/suspend-plugin-snapshot-1107k3
Nov 7, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/suspend-plugin-snapshot-1107k3

Conversation

@steipete

@steipete steipete commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Related: #187350. Follow-up to #189624.

What Problem This Solves

Managed plugin installs publish persistent source snapshots that startup does not consume, adding filesystem work and disk usage without a reader.

User Impact

Installs and updates stop publishing those unused snapshots. They still capture unexecuted source and record content/dependency-closure digests so a future reader can qualify lazy publication. Runtime startup continues to use fresh captures.

Why This Change Was Made

Suspend the install-time publication pass until a startup reader meets its security and performance gate. Keep the existing snapshot format, installed-index owner, rollback retention, reader custody, and retirement machinery for artifacts already created by main/nightly builds. No eager replacement or extra data deletion is introduced.

Current published stable tags v2026.10.10/v2026.11.1 and beta v2026.11.5-beta.1 exclude the original publisher commit and implementation paths. This changes no release artifact or fs-safe pin.

Evidence

The failing-first install-boundary regression observed two publication calls for two preparations; the suspended path must make zero while retaining matching content/closure digests and never evaluating plugin code. Existing artifact tests cover final-reader retirement and interrupted publication cleanup. All 35 focused install/artifact cases pass under the pinned runtime, including last-reader retirement, interrupted staging, owner changes, token replacement, and tamper rejection. Core and plugin-test type checks, scoped lint, formatting, and git diff --check pass. Independent P0–P2 review found no actionable issues. The change removes 41 net production lines with zero net test growth. The two real-install persistence cases also pass after replacing their old eager-publication expectations; they verify stable digests, normalized integrity, no snapshot artifacts/candidates, and no plugin execution across reinstall. The cached integration run took 18.1 s overall (7.6 s test execution); the initial CI run took 14.9 s for this file. Exact-head CI will be recorded before landing.

The first CI head exposed exactly two stale persistence-test expectations that still required eager snapshots. They were reproduced locally and corrected to the new suspension contract; no production behavior was changed in that repair. Independent P0–P2 review of the repair is clean.

@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T04:36:35.171175Z 03e2304 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Nov 7, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b83b50c71

ℹ️ 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".

Comment on lines +59 to +60
// Record the install-time closure for qualified lazy publication. Eager publication
// stays suspended until a startup reader can use the persisted artifact.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update the install-persistence tests for suspended publication

With publication removed, both cases in src/plugins/plugin-source-snapshot-persistence.test.ts still expect persistPluginInstall() to publish a descriptor: lines 67–69 unconditionally parse the installed plugin's sourceSnapshot, which is now absent on their fresh installs. These cases will throw before reaching their digest and non-execution assertions. Update that production-boundary test to verify persisted digests and absent snapshots under the new contract, rather than updating only the preparation-helper tests. Root AGENTS.md explicitly requires updating consumer tests when behavior changes.

AGENTS.md reference: AGENTS.md:L82-L82

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 7, 2026
@steipete
steipete enabled auto-merge (squash) November 7, 2026 04:41
@steipete
steipete merged commit 2699510 into main Nov 7, 2026
115 of 117 checks passed
@steipete
steipete deleted the steipete/suspend-plugin-snapshot-1107k3 branch November 7, 2026 04:44
@steipete

steipete commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

steipete added a commit that referenced this pull request Nov 7, 2026
)

* fix(ci): clear inherited test budget and unused export failures

Reconcile outstanding test-line debt from #194468, #194417, and #194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825.

Remove the renderer test-only export introduced by #191935 and the digest helper orphaned by #194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof.

* test(gateway): specify the ingress fixture base path

Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged.

* test(gateway): close failed ingress responses safely
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
…94456)

* fix(plugins): suspend unused install snapshot publication

* test(plugins): expect suspended snapshots in install persistence
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
…claw#194509)

* fix(ci): clear inherited test budget and unused export failures

Reconcile outstanding test-line debt from openclaw#194468, openclaw#194417, and openclaw#194464 with exact per-PR allocations. Shrink the scalar by the 37 test lines removed here so the effective ceiling equals 6559825.

Remove the renderer test-only export introduced by openclaw#191935 and the digest helper orphaned by openclaw#194456. Route the ingress fixture through the production HTTP owner and retain install/persistence and worker loading proof.

* test(gateway): specify the ingress fixture base path

Supply the required empty controlUiBasePath to the production startup HTTP handler. The UI E2E typecheck passes; runtime behavior and test-line accounting are unchanged.

* test(gateway): close failed ingress responses safely
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant