Skip to content

feat(templates): use one manifest and disclose exact dependency provenance - #4501

Merged
Patrick-Erichsen merged 5 commits into
mainfrom
simplify-template-contract
Nov 10, 2026
Merged

Patrick-Erichsen merged 5 commits into
mainfrom
simplify-template-contract

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Collaborator

Template authors currently split one agent's settings across profile and package declarations, and the website can omit dependencies carried in those profiles. This change makes CLAW.md the single owner of native agent settings, exact skill/plugin references and automations, retaining schemaVersion: 1.

Publication validates the new format, stores one canonical dependency inventory, and exposes source/reference/version details through exact-release APIs and the website. Retired fields fail with migration guidance. Explicit enabled:false remains paused; omission keeps the existing default. Native OpenClaw support is coordinated with openclaw/openclaw#196322 and openclaw/openclaw#196323.

An existing release whose manifest is retired remains readable and downloadable. The website explains migration and publication at a new version, disables its install-copy actions, and preserves escaped original CLAW.md access. It does not translate historical profiles/packages into an installable manifest.

Evidence

  • Lower head 545abbd9f57c1ab8335e66e1de5d4756b3199233: 50 focused tests pass, including five rendered regressions that failed before the fix; full coverage passes 9,310 tests with five skips. The only later delta is archive-link wording, rechecked through focused tests and the final browser build.
  • Combined head 4ff2159a80c8935e4804faf7fbced99ce864d217 in feat(templates): publish and display bundled skill and plugin directories #4502: 640 focused tests and full coverage (9,337 passed, five skipped) pass. Exact Bun 1.4.4 static checks, app/Convex/schema/CLI/admin types and production build pass. Independent exact-diff manual review found no actionable P0–P3 findings.
  • Inspected stored-release proof and before/after screenshots: the SAME stopped database and archive store survive historical baseline 9e51f498 → cutover 22ea5d1 → repair 545abbd. Release coordinates, captured catalog/package/version/exact/artifact/manifest responses, stored blobs and all 608 downloaded bytes remain unchanged; SHA-256 6de6fd618cc513192b11fdb4725e4d74b92f4c609511f70ac3a76eb1d7aa2c58. The repaired browser archive link returns those same bytes. Four viewport classes pass without page overflow.
  • The original real isolated publication/retry/exact-release/download/site proof remains valid for the unchanged backend contract: artifact SHA-256 b3197885e4aefd4410c2854f7dc550a38bd1e39fac8e8ff1e6980a7d7fb063ce. The native consumer canary at combined reachable revision 16115153f0d5e7faebb755f3fbccf81437e01b67 exercises verified-artifact Add, including paused details; this is earlier-runtime evidence.

Original declared-plugin disclosure, before and after:

Candidate desktop plugins
Baseline desktop missing plugin

The original disclosure comparison uses separate publication slugs/digests with matching prose/references/schedule; the stored-release rehearsal uses the same immutable release throughout. Prepublication Clean receipts are controlled local fixtures; archive storage, APIs and browser rendering are real. Packaged native inspect and CLI republication reject the retired schema with migration guidance; inspect is not actual Add. No historical inventories are reconstructed. All proof services stopped; production state and live Gateways are untouched.

Coordinated release gate

Merge, deployment and new-format production publication remain held. Before a cutover, the maintainer must record the minimum supported OpenClaw release containing the coordinated consumer and verify that artifact is available. Then deploy the registry layers, verify historical release bytes and the unsupported-release UI, and only afterward publish migrated Templates at new versions. Older consumers are required to upgrade to that support floor; universal adoption and compatibility with the retired authoring contract are not claimed. Existing archives and ordinary installed agents are not rewritten.

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner November 9, 2026 23:58
@clawsweeper

clawsweeper Bot commented Nov 9, 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.

@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 10, 2026 6:26pm UTC

Request Review

@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: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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: blocked before merge.

What this changes

This PR consolidates Template configuration in CLAW.md and exposes exact declared dependencies through release APIs and the website.

Example: A Template declares @acme/alerts version 2.0.0 and a paused daily automation.

  • Before: The profile-carried plugin can be omitted from the website, and automations cannot declare a paused state.
  • After: The website displays @acme/alerts version 2.0.0 from ClawHub and labels the automation Paused.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation with direct browser proof, limited by unresolved rollout sequencing and existing-state compatibility validation.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected real local ClawHub screenshots demonstrate exact plugin disclosure and paused automation rendering after publication; scanner verdicts are disclosed fixtures, while the supplied scenario covers fresh state rather than an existing-state upgrade.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Template authors split configuration across declarations, and users can miss the exact plugins a Template declares.
Reason: The maintainer-authored direction unifies authoring and disclosure while removing the replaced profile path; bundled dependencies and model execution are explicitly outside this slice.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this maintainer-authored PR provides a useful Template contract cutover absent from current main, with no discrete correctness or security finding established.

Priority: P2
Reviewed head: 22ea5d11952a3a9e2e2e403b40b70ab24d38b655
Owner decision: Required. See Decision needed.

Decision needed

  • Question: How should this contract cutover be sequenced with the two open OpenClaw companions?
  • Recommendation: Coordinate reader availability: Make the matching OpenClaw consumer available before deploying the ClawHub cutover and publishing new-format Templates.
  • Why: The combined revision proves parser agreement, but the recorded evidence does not establish when supported consumers will receive that contract.

Before merge

  • Resolve merge risk - Before merge, the release owner should establish deployment and publication ordering so newly accepted Templates are not offered to supported OpenClaw consumers that still reject their manifest format.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Provide an existing-state upgrade rehearsal covering published retired manifests, expected website behavior, and unchanged release coordinates and artifact digests.
Agent review details

How this fits together

Shared schemas validate uploaded Template artifacts; Convex stores release summaries and dependency inventories, which APIs and the website expose alongside immutable artifact provenance.

flowchart LR
  A[CLAW.md artifact] --> B[Shared validation]
  B --> C[Publication pipeline]
  C --> D[Immutable release storage]
  D --> E[Package APIs]
  E --> F[Template website]
  D --> G[OpenClaw consumer]
Loading

Technical review

Best possible solution:

Complete the single-manifest cutover with coordinated consumer availability and verified handling of existing immutable releases.

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

The baseline website reads portable package declarations without profile extensions, matching the supplied screenshot that omits the declared plugin.

Is this the best way to solve the issue?

The shared manifest validator and dependency projection are appropriate owners; adding another profile-specific website reader would preserve competing declarations instead of implementing the approved cutover.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Record the coordinated rollout boundary (recommended)
    The release owner should identify the matching consumer release and the ordering of ClawHub deployment and Template publication.
  2. Hold deployment and publication
    Stage the source while explicitly withholding deployment and new-format publication until the companions are available.

Provenance checked

  • Manifest structure and profile ownership changes intended behavior with a stated reason (Add experimental portable Claw package schema #3089: The initial portable contract separated identity and purpose from harness policy; subsequent profile-layer and conformance work enforced that boundary.)
  • Legacy automation normalization changes intended behavior with a stated reason (4ee457c: fix(templates): use automations in portable manifests #4496 preserved existing published cronJobs manifests while making automations canonical; this PR explicitly retires the compatibility interpretation.)
  • Native tool and memory validation keeps the original intent (4117154: Conformance work aligned registry acceptance with the pinned consumer and bounded tool grants; this PR relocates those checks into inline agent validation.)
  • Template detail composition keeps the original intent (4c99bb8: The existing detail surface uses manifest-backed tabs, release-pinned previews and installability gates; the change extends its dependency and automation disclosure.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

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 P2: This is a useful improvement to Template authoring and dependency disclosure with a bounded product surface.
  • add merge-risk: 🚨 compatibility: The approved cutover rejects prior schemaVersion 1 declarations and accepts a format currently matched by open OpenClaw companions.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: This is a useful improvement to Template authoring and dependency disclosure with a bounded product surface.
  • merge-risk: 🚨 compatibility: The approved cutover rejects prior schemaVersion 1 declarations and accepts a format currently matched by open OpenClaw companions.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • 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.

  • Demonstrate the approved cutover against existing published Template state without rewriting immutable releases.
  • Establish deployment and publication ordering with matching OpenClaw consumers.

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.

Reviewed November 9, 2026, 7:27 PM ET / November 10, 2026, 00:27 UTC.

@Patrick-Erichsen

Patrick-Erichsen commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

Stored-release upgrade proof

Passing candidate 545abbd9f57c1ab8335e66e1de5d4756b3199233 fixes the unsupported-release website state without a legacy manifest reader. The same isolated database and archive store were stopped, snapshotted and restarted from historical baseline 9e51f498708 through cutover 22ea5d11952 to this repair. The two-layer update is published at lower545abbd9f57 and combined4ff2159a80c after successful composition checks; hosted CI/review and merge/deployment remain separate gates.

AFTER — successful result: installation-copy actions are unavailable, migration/new-version guidance is visible, and the original CLAW.md remains readable as escaped text. The version-pinned release archive link returns the same 608 bytes and SHA-256 6de6fd618cc513192b11fdb4725e4d74b92f4c609511f70ac3a76eb1d7aa2c58.

After: migration guidance and unavailable install copy
After: same behavior on mobile
After: original published CLAW.md remains readable

BEFORE — expected failure at 22ea5d1: the unsupported release still offered install copy; structured tabs showed a generic unavailable message without migration guidance.

Before: unsupported release still offers install copy

All three phases retain the same cli-user/[email protected] coordinates, captured public catalog/package/version/exact-release/artifact/manifest responses, original stored blobs and downloaded artifact bytes. SQLite integrity checks pass. The actual archive link was fetched from the repaired browser and verified independently.

Validation: five new rendered cases fail before the fix; all 50 focused tests pass after it. Full coverage passes 9,310 tests with five skips; the only later source/test change is archive-link wording, rechecked by focused tests and the final production browser build. Exact Bun 1.4.4 static checks and app/Convex/schema/CLI/admin types/build pass. Independent exact-diff manual review found no actionable P0–P3 findings. Final captures at 390/768/1366/1440px were inspected without page overflow.

Real local route: http://127.0.0.1:4188/cli-user/templates/stored-retired-mwaatut3. The final frontend build disables only dev-persona controls with VITE_ENABLE_DEV_AUTH=0; the isolated backend's dev-auth and prepublication Clean receipts remain controlled fixtures. No product pixels or responses were intercepted. Native packaged OpenClaw templates inspect and CLI republication reject the retired fields with migration guidance; this is reader/publication proof, not actual Add/Gateway execution. Historical inventories are not reconstructed. All task services stopped; production state, archives and live Gateways are untouched. Merge/deployment remain held.

@Patrick-Erichsen

Patrick-Erichsen commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator Author

Landing reconciliation after Patrick’s approval to land this stack:

  • Rebased once onto current main 2737c1bb56357f257a948df9c4db6645703d47af to resolve the genuine detail-page conflict. Lower head: 52dde1c60f34e78f35010830977cb458624039e0; combined head: 52ab43665b4f28d485c7f09e5ac114a802312a10.
  • Preserved main’s new AIG audit sidebar and removal of inline security subtext. Our unsupported-manifest migration warning, release-pinned archive link, escaped original CLAW.md and unavailable install copy remain. All other four lower commits and all five upper commits are patch-identical in git range-diff.
  • Before/after evidence remains the same real stored-release rehearsal at feat(templates): use one manifest and disclose exact dependency provenance #4501 (comment) and bundled-directory proof at feat(templates): publish and display bundled skill and plugin directories #4502 (comment). The repaired integration passes 146 lower-layer and 179 combined-layer targeted tests, including main’s audit-sidebar cases and the unsupported-manifest cases. No new screenshot is claimed for this rebase.
  • Pinned Bun 1.4.4 static checks, app/schema/CLI/admin types, deploy-equivalent Convex TypeScript and production build pass on the combined head. The Linux full suite on combined head 52ab43665b4 passed 9,483 tests with five skips. The initial local coverage run hit 14 timing failures across six untouched scanner fixture files; all 200 tests in those files passed on the same source with one worker and unchanged timeouts.

Release-boundary correction, verified after landing #4501: normal Vercel automation advanced the production frontend stamp to merged 6f601bdfe3375aa49280ca8c076d79e45d825334. The earlier blanket claim that merging does not deploy the app was incorrect; the repository production-release skill is incomplete on this point. No manual deployment or CLI release was performed. The production Convex registry backend still reports 4ee457cd70ca65baa66e31b878457ea4ab31e0a6 (deployed 2026-11-09T20:34:54Z), independently read through the frontend-selected public Convex endpoint. Backend registry cutover, stable CLI release, and new-format production Template publication remain withheld until a supported OpenClaw consumer release is available and its minimum supported version is recorded. The new frontend deliberately shows migration guidance and disables install copy for unsupported stored manifests while preserving original manifest/archive access; this does not change installed agents or archive bytes.

#4501 is now merged at 6f601bdfe3375aa49280ca8c076d79e45d825334. Exact pre-merge CI completed successfully on attempt 2 after retrying one ordinary Skill publication shard that timed out waiting for local Convex capacity: https://github.com/openclaw/clawhub/actions/runs/42874873864/attempts/2. Post-merge source CI passed at https://github.com/openclaw/clawhub/actions/runs/42877282689, and its automatic Test deployment passed Convex contract, HTTP/UI smoke and stable-alias checks at https://github.com/openclaw/clawhub/actions/runs/42879270466. Independent Test backend readback reports the same merge SHA. The earlier Test callback for older 01fe6f01 was correctly refused after main advanced; it was not retried. #4502 is restacked on main with all five patches unchanged and is awaiting a durable consumer-source pin before its remaining landing.

This branch was successfully deployed

1 active deployment
Preview – clawhub — 52dde1c6 Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant