Skip to content

fix(plugins): keep entry pairs aligned when rebuilding metadata - #174732

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/aged-plugin-entry-order
Oct 16, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/aged-plugin-entry-order

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #129419

What Problem This Solves

Fixes plugin packages becoming uninstallable or discovering duplicate entries when plugins build --entry switches between a source entry and its compiled output.

User Impact

Plugin authors can rebuild metadata without appending a second copy of the selected plugin or changing sibling source/runtime pairs. Unrelated entries with the same filename remain intact. No migration or new configuration is required.

Why This Change Was Made

Replace only the selected full-path counterpart at its existing position, honoring explicit positional runtime mappings and the shared compiled-entry candidate order. This is a narrow current-main replacement for the older basename-wide proposal, not a merge of its stale ancestry.

Evidence

  • Reproduced four failures against trusted main ecb7197c3099: the real metadata build appended an entry, and the real directory installer rejected its generated package; full-path source/runtime replacement cases also failed.
  • Regression runs the real metadata build, reads the persisted package, installs it, and checks the installed package. It preserves two same-basename source paths with distinct explicit runtime mappings.
  • All 26 authoring tests, eight validation tests, and 12 installer entry tests passed. Final authoring file: 43.35 s (46.17 s command wall time), including 38.84 s of cold runtime preparation; the real build/write/install test needs this production boundary rather than a mocked writer. Exact-head CI run 38973647088 completed successfully: 32 successful jobs, zero failures, including security-fast and openclaw/ci-gate.
  • Independent Auto Review found a candidate-precedence issue in reverse selection. Added a failing regression and repaired it; the fresh complete P0–P2 review is clean. Core and targeted test types, targeted lint, formatting, whitespace checks, and the complete pnpm build passed (4m 18.4s).
  • Planned PR CI passed for published head a57cf2404e40f2d4f9ec735ba0fdf0edfc3798e3; no external plugin or live Gateway state is used. Native exact-head auto-merge landed as facbe21ddf986047e97c39a5a0de2471f16c5bed.

Production delta: +39/-6; tests: +93/-0. The replacement logic necessarily grows to express full-path identity and runtime precedence rather than unsafe basename deduplication. Simplification keeps this at the existing metadata writer and reuses the runtime candidate owner; no new public API or compatibility shim.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 16, 2026 22:00
Replace selected source and compiled counterparts in place using explicit runtime mappings and canonical full-path candidate order.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e3b54727-ed87-4aa2-9b6d-a54a03b6e1e8
@clawsweeper

clawsweeper Bot commented Oct 16, 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 cli CLI command changes size: S labels Oct 16, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 16, 2026 22:05
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 16, 2026 22:08
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@roboclaw-bot
roboclaw-bot merged commit facbe21 into main Oct 16, 2026
222 of 223 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/aged-plugin-entry-order branch October 16, 2026 22:18
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…claw#174732)

* fix(plugins): keep entry pairs aligned when rebuilding metadata

Replace selected source and compiled counterparts in place using explicit runtime mappings and canonical full-path candidate order.

Co-authored-by: steipete <[email protected]>

* fix(plugins): keep entry pairs aligned when rebuilding metadata

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e3b54727-ed87-4aa2-9b6d-a54a03b6e1e8

---------

Co-authored-by: steipete <[email protected]>
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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant