Skip to content

feat(templates): install bundled plugins through native management - #196349

Merged
Patrick-Erichsen merged 11 commits into
bundle-template-skillsfrom
bundle-template-plugins
Nov 11, 2026
Merged

Patrick-Erichsen merged 11 commits into
bundle-template-skillsfrom
bundle-template-plugins

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Install bundled plugins through native plugin management, retaining immutable provenance, capability consent, dependency policy and cleanup. Pinned ClawHub plugins retain their existing installer.

Evidence

Current layer: 6fde1b57a38472f677207762541bd10ad6024481. Full atomic candidate: db3969bece945c1bd54489c8c142071b6046d8f8. One fixture-only stability repair is carried at bottom; all seven upper patches and41commit subjects/order are unchanged. No full-main refresh.

  • Model-picker CI diagnosis and paired geometry proof: the test compared edges from different frames during the existing scale0.9→1 animation. Controlled actual-menu geometry reproduces exactCIright707.90625 while simultaneous gaps remain7.2px and8px. The ordinary local baseline passed and is not causal clearance. Move the existing trial-click stability check before both reads; preserve exact<=, long-email, both viewports, target height, keyboard/search/composition and sessions.patch assertions. All3cases pass19.50s; scoped lint/types/format/ratchets and fresh independent actual-diff review pass. Net1insertion/1deletion; no production change, new waits, timeout/tolerance changes, diagnostics or test-line growth.
  • Settings repair #197156 is merged as147d0414a3aacb4b17e38cb3e8dfde7b095493e9 with review, CI, postmerge CI/Workflow Sanity and native closeout complete. Its six stale assertions reproduce on main; corrected three-file suite passes29/29(45.92s), preserving pending admin request/recurrence/approval/navigation checks. It is already retained in this stack.
  • Actual stable11.3 existing-Claw upgrade proof preserves target agent configuration, four workspace files, consent digests and native cold-Gateway effective inventory agents_list only. Canonical schema22→39/row renames and old-authoring guidance are verified. Executed package4deeed is qualified for this tip: only four E2E files and one production comment differ, so Template/runtime behavior inputs are unchanged. Empty package/MCP/cron-reference tables and unrelated default heartbeat cleanup are explicitly qualified. The completed249b723 hosted review accepted this proof with Findings NONE/Before merge NONE.
  • Retained unchanged-input proof: real-Gateway lifecycle/channel7/7, Home route/dock26/26, guest onboarding plus real-Gateway Home7/7, Template schema/planning18/18, sidebar grouping21/21. Inspected guest setup before/after. These are contract-input qualifications, not whole-current-head CI.
  • Previous actual ready CI: all seven upper suites succeeded; bottom failed only the model-picker timing assertion above. All attempts finish before head replacement. Draft/passive SKIPPED suites remain excluded from product proof. Fresh exact-head CI/security and native admission must qualify this candidate. Root owns repairs; autofix is retired.

Landing and rollout

Land all eight layers atomically through the tip after exact-head gates permit. Preserve historical template-contract-194b7bea exactly. Seven unchanged upper patches retain their qualified reviews; bottom receives fresh review after final publication.

ClawHub #4502, Competitor Watch #22 and Activity #197058 are merged. Consumer release, manual backend cutover, new registry publication and live Gateway changes remain separate.

@clawsweeper

clawsweeper Bot commented Nov 10, 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 app: web-ui App: web-ui gateway Gateway runtime size: XL labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR installs Template-bundled plugins through native plugin management with source-aware consent, policy checks, provenance, reuse, and cleanup.

Example: Add a Template containing plugins/probe with plugin ID template-directory-probe.

  • Before: Bundled plugin installation is unavailable.
  • After: Native management installs the reviewed plugin and reuses an unchanged installation on a later Add.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful native-owner implementation with relevant visual, authority, and preservation evidence; historical proof does not substitute for the stack's current-head landing gates.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected source-disclosure screenshots and recorded authenticated Gateway acceptance cover bundled installation, read-only refusal, and revocation before publication; the installer and consent owners match the recorded proof revision, while whole-stack CI remains separately unqualified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Templates containing plugin directories cannot install those plugins through Add or accurately disclose their bundled source.
Reason: The supplied owner-directed scope adds a useful dependency source while retaining native installation and trust decisions.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it delivers useful, owner-directed Template functionality that main lacks, with no concrete new defect found; the recorded atomic-stack landing conditions still apply.

Priority: P2
Reviewed head: 0b8b518ac946193b3a9b6cbca73d838d395bbfb9

Before merge

None.

Findings

None.

Agent review details

How this fits together

Template Add turns reviewed package contents into ordinary agent resources, delegating plugin installation, persisted records, and activation to native plugin owners.

flowchart TD
  A[Template contents] --> B[Snapshot and preflight]
  B --> C[Gateway review and consent]
  C --> D[Native plugin management]
  D --> E[Installed plugin records]
  D --> F[Runtime activation]
Loading

Technical review

Best possible solution:

Land this native-owner implementation with its required runtime and CLI companion layers once the exact stack satisfies its recorded gates.

Do we have a high-confidence way to reproduce the issue?

This is a feature addition; source inspection establishes the missing bundled installation path, and no target code was executed during this review.

Is this the best way to solve the issue?

The change uses existing snapshot, native installer, policy, capability-consent, lifecycle-lease, and uninstall owners rather than introducing a competing plugin lifecycle.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f6536e32c089.

Provenance checked

  • Template plugin review and one-way Add keeps the original intent (81662c5: Create ordinary agent resources through one-way Add while preserving independent plugin ownership and exceptional trust consent.)
  • Native plugin installation and artifact consent keeps the original intent (0dbd5c8: Bind capability consent to the reviewed artifact through the native installation owner.)
  • Operator install-policy warning handling keeps the original intent (bf40269: Require explicit warning acknowledgement, re-evaluate staged warnings, and preserve terminal rejection for changed or blocked policy results.)
  • Staged npm manifest handling keeps the original intent (cbf935b: Avoid resolving development-only dependencies or installing another host while restoring exact original manifest bytes before settlement.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +718, Tests +527, Other +12. Total +1257 across 35 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 21 1631 913 +718
Tests 9 542 15 +527
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 5 12 0 +12
Total 35 2185 928 +1257

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Label justifications:

  • P2: Useful optional Template functionality with a bounded plugin-installation surface and no demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-11-10T00:51:53.184Z sha 2cd23960ceb5f8cd7ebb003c37cf9e0c9776ade7 :: needs real behavior proof before merge. :: [P2] Collect dependency-tree warnings before sealing the Add plan
  • reviewed 2026-11-10T03:22:03.134Z sha be31d5674f89e02dca9b02e90dc2ec4fb0fc9a41 :: needs real behavior proof before merge. :: [P2] Select bundled actions before collecting Gateway plugin owners | [P2] Preserve native package precedence during Template inspection
  • reviewed 2026-11-10T04:26:19.122Z sha 131358e :: needs real behavior proof before merge. :: [P2] Select bundled actions before collecting Gateway plugin owners | [P2] Make the unnamed-bundle regression exercise a bundle-only package
  • reviewed 2026-11-10T06:23:04.486Z sha 812c8b7 :: needs real behavior proof before merge. :: [P2] Select bundled actions before collecting Gateway plugin owners
  • reviewed 2026-11-11T02:51:37.057Z sha 2980d46 :: needs maintainer review before merge. :: none

Reviewed November 10, 2026, 11:01 PM ET / November 11, 2026, 04:01 UTC (Revision 6).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the bundle-template-plugins branch 2 times, most recently from 8503b07 to 3fbbd1e Compare November 11, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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