Skip to content

feat: configure Templates in one CLAW.md manifest - #196322

Merged
Patrick-Erichsen merged 24 commits into
mainfrom
single-file-templates
Nov 11, 2026
Merged

Patrick-Erichsen merged 24 commits into
mainfrom
single-file-templates

Conversation

@Patrick-Erichsen

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Configure native agent settings and exact ClawHub dependencies in CLAW.md. Validation, build, inspection, Add and catalog disclosure share the manifest; retired profile/package declarations return migration guidance.

Evidence

Current layer: be5f9414fe3940454e433f4344564e0f60d7b993. 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 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.

@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 9, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper autofix

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

@clawsweeper autofix is retired; ClawSweeper now only reviews.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 9, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates Template configuration in CLAW.md and displays exact dependency origins and versions.

Example: A Template requires @openclaw/workflow-tools 1.2.0 while 1.1.0 is installed.

  • Before: The catalog can label the required plugin Installed despite the version mismatch.
  • After: The catalog shows ClawHub · Version 1.2.0 without an Installed badge.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A useful consolidation with qualified shipped-path and stable-upgrade evidence, preserved authority boundaries, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied CLI and cold-Gateway upgrade results exercise preserved installed-agent configuration and effective tools, with runtime-input reuse independently checked; inspected guest screenshots and recorded real-Gateway scenarios cover the Home repair, and actual-menu frame measurements support the fixture-only picker change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Template authors split configuration across files, and users can mistake a different installed plugin version for the required release.
Reason: The maintainer-directed consolidation simplifies authoring and makes exact dependency requirements visible while retaining native installation ownership.

Merge readiness

✅ Ready for maintainer review

Keep open: this useful, maintainer-directed cutover remains absent from main, and the reviewed head introduces no actionable defect; exact-head CI is still pending.

Priority: P2
Reviewed head: be5f9414fe3940454e433f4344564e0f60d7b993

Before merge

None.

Findings

None.

Agent review details

How this fits together

Template readers validate authored packages, existing Add owners create consent-bound installation plans, and CLI and catalog views disclose their configuration and dependencies.

flowchart LR
  A[CLAW manifest] --> B[Reader and schema]
  B --> C[Add planner]
  C --> D[Consent and live authority]
  D --> E[Native installation owners]
  B --> F[CLI and catalog disclosure]
Loading

Technical review

Best possible solution:

Use one validated manifest feeding existing consent and installation owners, preserve installed agents, and retain explicit authoring conversion guidance.

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

This is an approved feature cutover; current-main source confirms the separate-profile and packages representation that it replaces.

Is this the best way to solve the issue?

The smallest complete implementation consolidates schema, planning and disclosure through existing owners and removes the replaced profile parser and extension-planning path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

PR surface statistics unavailable: the file list is incomplete.

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
Authoring compatibility schemaVersion stays 1; packages, profiles, cronJobs and metadata.openclaw.config are retired This is an intentional authoring-contract cutover; installed-agent compatibility has separate stable-upgrade evidence.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: Template authoring and dependency disclosure improve a bounded, optional workflow.
  • merge-risk: 🚨 compatibility: Older authoring packages require conversion under the explicitly accepted cutover; the supplied upgrade receipt preserves existing installed-agent state.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-11T04:01:37.781Z sha 69c0119 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T05:01:17.585Z sha 2f01c87 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T05:36:16.989Z sha 386d148 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T06:18:01.326Z sha bbb5536 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T07:21:40.037Z sha cdc6f4d :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T07:50:05.554Z sha fb2c1e9 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T09:01:16.785Z sha 58eb934 :: blocked before merge. :: none
  • reviewed 2026-11-11T09:44:22.547Z sha 249b723 :: needs maintainer review before merge. :: none

Reviewed November 11, 2026, 5:20 AM ET / 10:20 UTC (Revision 13).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

The remaining cutover fixtures and stale assertion allowances are fixed in be5a196b39c; the reviewed publication scenario and cold-config consent tests pass (12 tests), and the affected test-type shard passes. 1cb25b92fba moves paused-job author guidance off this foundation and into the dependent automation implementation in #196323.

The coordinated ClawHub validator, API, CLI, website and native-consumer canary are in openclaw/clawhub#4501 (current head 22ea5d11952a3a9e2e2e403b40b70ab24d38b655, all hosted CI checks green). Its isolated registry proof exercises upload, retry, exact release inventory, download identity and rendered website; scanner receipts are controlled fixtures. Producer rollout remains dependent on the compatible registry deployment. No production publication compatibility is claimed before that deployment.

Retiring the unreleased profile/package authoring forms while retaining schemaVersion 1 is intentional. Existing installed-agent behavior is a separate invariant: the cold-config test still seeds and loads historical Template consent, and no persisted schema/migration or installed-agent update lifecycle is introduced. The full real Gateway/model Competitor Watch acceptance journey remains outstanding in the final integration slice.

@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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 10, 2026
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as draft November 11, 2026 09:21
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 11, 2026 09:28
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Latest-stable existing-Claw upgrade acceptance — addresses the Before merge evidence request.

The actual official npm [email protected] (release 847611dcaa3b) created, built and installed an experimental Claw through its shipped CLI. Add returned a complete openclaw.clawInstallRecord.v2 and status reported no missing/partial/drifted install. No provenance or SQL rows were seeded by the harness.

A fresh isolated OCM environment then upgraded through the canonical snapshot/Doctor path to a packaged runtime built from 4deeed303779495e0047f8407a69a77af300963e:

Check Stable 11.3 → packaged candidate
Installed target agent configuration Exactly equal
Workspace All three managed files and one post-install user note retain exact SHA256 hashes
Actual cold Gateway tools.effective Exactly agents_list before and after; read, write, exec, session_status, sessions_spawn remain excluded by the installed allowlist
Frozen consent and workspace records All nonempty rows exactly preserved after canonical table/column/schema-marker renames; plan integrity and agent-config digest unchanged
Original authoring/archive Exact bytes unchanged
Database Canonical schema 22 → 39 migration succeeds
Old authoring Explicit retired_template_configuration guidance; migrated source-only copy validates with schemaVersion: 1

The old-authoring diagnostic says: “Move native settings into CLAW.md agent and exact ClawHub references into skills/plugins. Use automations for scheduled work; remove packages, profiles, cronJobs, and metadata.openclaw.config; keep schemaVersion: 1.” Package metadata also moves from openclaw.claw to openclaw.template. No re-Add or migrated source was substituted for the installed agent.

Qualification: package/MCP/cron-reference tables are empty in this bounded fixture. Native Doctor removes a default heartbeat.agentId=main selector outside the target agent, so this is not a whole-config byte-equality claim. Native session creation ran no model turn. All task Gateways are stopped; protected Gateway listeners and health are unchanged.

Provenance: the retained official stable archive matches its published SHA512 and has SHA256 dae4c4f7549561db2fe5ac43af7ba0c9491f876380f070f7ffb87bf9721a10df. OCM verifies installed candidate runtime SHA256 9953158e175e878d61d5ac8ce8e9f621f6b9b9472d37d03283fc7f4192b06914 and build stamp 4deeed303779. Launcher hashes are separately identified, not represented as archive hashes.

Root independently verified all 14 retained evidence-file hashes, exact agent/workspace/source/archive comparisons, both native effective inventories and the canonical row comparisons. Reuse for current bottom 249b7230b49b / complete tip 2a176360b7a0 is qualified: the only changes from executed 4deeed are three browser-fixture files and one production comment, with all Template/runtime behavior inputs unchanged. This acceptance proof does not replace final-head CI/security.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current exact bottom head: 249b7230b49b9acee0739fa9ad65f6183c951ac5; full stack tip: 2a176360b7a0126f061a56f242a85319977cce9c.

The bounded repair migrates the six stale desktop Settings/Inbox assertions after #196919; it preserves admin request identity, recurrence, approval and navigation checks. Main reproduction:6 failed/23 skipped; repaired three-file browser run:29/29 passed. All24 per-layer gates pass; no production logic or net test-line growth. Same repair is merged in #197156.

The latest-stable existing-Claw compatibility evidence requested in the prior review is now complete: #196322 (comment) . It uses real official11.3 Add, packaged candidate upgrade and native cold-Gateway tools.effective; source-input reuse is explicitly qualified. All eight PR descriptions are current and fully read back. Seven upper patches remain unchanged.

Autofix is retired; root owns repairs and atomic stack landing. Fresh exact-head CI/security are running; passive draft suites are excluded from product proof.

@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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Model-picker CI diagnosis and validated local repair (5542fdef25058ed6a31563954ca0b340ad9af29a; not yet carried into the published stack).

Failed exact-merge CI leaf compares provider child-right707.90625 to account-left705.2568969726562. The test takes those measurements in separate browser calls while its menu scales0.9→1. Relevant test, CSS, picker and overlay-lifecycle inputs match the tested merge and main.

A controlled probe of the actual rendered menu's existing CSS animation confirms the mechanism:

Animation state Toggle contents right Account left Simultaneous gap
Entry scale0.9 707.90625 715.1062622070312 7.20001220703125
Finished 697.1875 705.1875 8

The early right edge exactly equals CI. Combining it with the later account edge makes the old predicate fail even though neither frame overlaps. A separate passive frame trace also retains positive gaps throughout opening. The ordinary unmodified local case passed1/1 in17.74s; that passing replay is not presented as causal clearance.

The repair moves the existing openai.click({ trial: true }) from after the geometry assertion to before both measurements. Playwright's existing trial action checks element stability across consecutive animation frames and retains its reachability check without clicking. All original assertions, long-email fixture, desktop/mobile viewports, target height, keyboard/search/composition and sessions.patch coverage remain.

All3 affected browser cases pass in19.50s. Scoped type-aware lint, UI-E2E types, formatting, diff checks and ratchets pass. Fresh independent actual-diff review is clear. Exactly1 insertion/1 deletion; no production changes, new waits, timeout/tolerance changes, diagnostic code or test-line growth remain. New-head CI/security must qualify the carried repair before atomic landing.

Move the existing trial click before both edge measurements so the opening scale animation cannot mix coordinates from different frames. Preserve the exact no-overlap assertion and all desktop/mobile, keyboard, composition and model-selection coverage.

The ordinary local baseline passed and is not causal clearance. A controlled probe of the real CSS animation reproduces exact CI right=707.90625 at scale0.9 while the simultaneous gap is7.2px; the finished frame retains8px. Full affected suite passes3/3 in19.50s. Scoped lint/types/format and ratchets pass; no production logic, new waits, diagnostic code or test-line growth. Independent review clear.
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as draft November 11, 2026 10:04
@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review November 11, 2026 10:11
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current exact bottom head: be5f9414fe3940454e433f4344564e0f60d7b993; atomic stack tip: db3969bece945c1bd54489c8c142071b6046d8f8. All eight branches and complete descriptions are current and ready.

The only new delta moves the existing model-picker trial click before geometry reads, so both measurements happen after the menu entry animation settles. Causal geometry evidence and focused validation: actual animation frames retain positive gaps; mixing frames recreates CI's false overlap. All three browser cases pass; lint, UI-E2E types, formatting and all 24 per-layer gates pass. No production, assertion, tolerance, timeout or test-line growth; all seven upper patches unchanged.

The latest-stable packaged upgrade proof, accepted in the preceding exact-head review, remains qualified: only four E2E files and one production comment differ from the executed packaged runtime. No runtime/feature inputs changed. Fresh exact-head CI/security is still required; historical seven-upper green suites are not treated as new-head clearance. Root owns repairs; retired autofix is not being re-enabled.

@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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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: android App: android app: web-ui App: web-ui cli CLI command changes docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

2 participants