Skip to content

feat(templates): bundle complete skill folders with native trust checks - #196348

Merged
Patrick-Erichsen merged 10 commits into
template-paused-jobsfrom
bundle-template-skills
Nov 11, 2026
Merged

Patrick-Erichsen merged 10 commits into
template-paused-jobsfrom
bundle-template-skills

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Bundle complete skill folders through native skill installation and trust policy. Build/Add preserve supporting files, and Control UI distinguishes bundled and referenced sources with consent bound to reviewed bytes.

Evidence

Current layer: a664ea72c63903a27d5f240c98687c03c88e6333. 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes size: XL labels Nov 10, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 packages complete declared skill folders, installs them through native skill management, and distinguishes bundled content from ClawHub references.

Example: A Template declares skills: [{ path: bundles/incident-guide }] containing SKILL.md and references/checklist.txt.

  • Before: The manifest accepts only pinned registry dependencies, so the bundled-folder declaration is rejected.
  • After: Build includes both files, and Add installs their reviewed bytes into the new agent's skills/incident-guide directory.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful implementation with relevant visual and native-boundary proof; historical receipts do not qualify the current stack's CI.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots demonstrate source labeling through the browser UI, and retained Gateway evidence covers allowed installation, read-only refusal, and revocation during native install policy before dependency publication; the relevant skill installation, snapshot, and consent blobs match the historical proof candidate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Template authors cannot distribute a portable skill together with the supporting files it needs.
Reason: Complete skill folders provide clear user value while retaining native trust, installation, discovery, and ordinary-agent ownership.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it adds a useful capability absent from main, and no actionable introduced defect was found; coordinated-stack qualification remains pending.

Priority: P2
Reviewed head: 6d27b38017ada3f4c0ce6f1404ff3b953a25a896

Before merge

None.

Findings

None.

Agent review details

How this fits together

Template authoring and registry acquisition feed the existing planner, consent checks, and native installers, producing ordinary agent workspace resources and catalog disclosures.

flowchart LR
  A[CLAW manifest and skill folder] --> B[Bounded directory snapshot]
  B --> C[Template archive]
  C --> D[Add plan and content review]
  D --> E[Consent and live authority checks]
  E --> F[Native skill installer]
  F --> G[Agent workspace and discovery]
Loading

Technical review

Best possible solution:

Land the bundled-skill capability through the existing native owners with its coordinated companion stack once the required current-head gates qualify.

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

This is a feature addition; source inspection confirms the base accepts pinned registry declarations and the patch adds bundled folders, without executing target code.

Is this the best way to solve the issue?

The change preserves one native installation owner and one shared directory-selection contract across build, review, installation, and comparison; no unnecessary parallel lifecycle was identified.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Deterministic Template packaging keeps the original intent (7422222: feat(claws): add local project author lifecycle #117037 established a maintained local authoring path that packages exact validated bytes into deterministic artifacts.)
  • Ordinary-agent Add and warning consent keeps the original intent (81662c5: feat: add Claws as ordinary agents and resources #171623 replaced managed-Claw lifecycle operations with one-way Add and retained explicit consent for exceptional trust warnings.)
  • Native package installation ownership keeps the original intent (ec90dc1: The existing package layer delegates installation to canonical native installer owners; bundled skills follow that same ownership.)
  • Private draft and exact-archive review keeps the original intent (feat: create templates directly from chat #195730: Conversation-created Templates use the existing private draft and exact-archive review owners; source-qualified review IDs preserve independent exclusions for bundled and referenced dependencies.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Introduced change and main behavior: The pinned introduction adds the bundled source alternative; fetched main still routes package installation through pinned registry package actions. (src/templates/packages.ts:205, 6d27b38017ad)
  • Content and authority binding: Installation compares current identity, directory digest, action, and policy warning with the reviewed plan, materializes checked bytes, and supplies live authority guards to the native installer's publication boundary. (src/templates/bundled-skill.ts:107, 6d27b38017ad)
  • Retained proof remains relevant: The supplied historical Gateway receipt reports successful allowed, read-only, and final-install revocation cases. GitHub blob identities confirm bundled-skill.ts, dependency-directory.ts, and gateway-skill-consent.ts are unchanged from the cited cd346 candidate. The linked job failed overall; this review does not treat it as green CI. Its log download was blocked by the artifact-storage host allowlist. (src/templates/bundled-skill.ts:139, cd346bcb164a)
  • Inspected visual proof: Downloaded before/after screenshots show the same bundled dependency rows changing from misleading ClawHub/version labels to Bundled with template, while referenced releases retain their versions. (ui/src/pages/agents-home/templates-detail-view.tsx:156, 6d27b38017ad)
  • Existing ownership and persistence boundary: Merged history establishes ordinary-agent Add, native installer ownership, and deterministic project packaging. Bundled package receipts remain in-flight results; this layer adds no database schema or persisted receipt writer. (src/templates/package-stateless-receipt.ts:51, 6d27b38017ad)
  • Stack qualification: The PR explicitly requires coordinated landing with fix(templates): resolve bundled plugin runtime owners #196389 and fix(templates): use Gateway-owned Add from the CLI #196431. Current-head checks include unfinished and cancelled jobs, with no failure returned by the inspected check-run query; mergeability is true, with state blocked. (6d27b38017ad)

PR surface

Source +1181, Tests +574, Docs +20, Other +8. Total +1783 across 54 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 35 2354 1173 +1181
Tests 13 589 15 +574
Docs 3 23 3 +20
Config 0 0 0 0
Generated 0 0 0 0
Other 3 8 0 +8
Total 54 2974 1191 +1783

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.

Review metrics

Metric Value Why it matters
Manifest declaration alternative One new path form shared by skills and plugins Authors can select bundled folders instead of exact ref/version releases; this layer implements native skill installation, with plugin installation owned by its companion.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful, bounded Template packaging improvement without an established urgent user-facing 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete current-head qualification of the coordinated stack, attributing any remaining failures before landing.

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 (7 earlier review cycles)
  • reviewed 2026-11-10T01:09:30.427Z sha 0ffa6b2 :: needs real behavior proof before merge. :: [P1] Validate bundled digests using their emitted hexadecimal format | [P2] Update the existing acknowledgement contract fixture
  • reviewed 2026-11-10T01:17:22.301Z sha 0ffa6b2 :: needs real behavior proof before merge. :: [P1] Validate bundled digests using their emitted hexadecimal format | [P2] Update the existing acknowledgement contract fixture | [P2] Include dependency source in draft review item identities
  • reviewed 2026-11-10T03:23:06.854Z sha fa4c18c :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-10T04:27:34.789Z sha 1dafc99 :: blocked before merge. :: none
  • reviewed 2026-11-10T04:36:23.451Z sha 1dafc99 :: blocked before merge. :: none
  • reviewed 2026-11-10T06:24:28.518Z sha 1dafc99 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T02:52:00.703Z sha 0988769 :: needs maintainer review before merge. :: none

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

@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
@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 10, 2026
@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
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 cli CLI command changes docs Improvements or additions to documentation 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