Skip to content

feat(claws): discover official ClawHub packages and installed status - #163295

Closed
Patrick-Erichsen wants to merge 6 commits into
mainfrom
codex/claw-1093-v2-01-catalog
Closed

Patrick-Erichsen wants to merge 6 commits into
mainfrom
codex/claw-1093-v2-01-catalog

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Publication Refresh: October 7

Layer 1/16. Base: main | Next: #163296. Published checkpoint: d0ed023909c1.

The stack now includes 45 previously local follow-up commits in four additional draft PRs, ending at #166801 (9e653a8ed286). Fresh combined-tip checks passed: 100 backend tests and 13 built-UI browser tests with a mocked Gateway. Before/after review captures are attached. Evidence below that names 6765a8741e4 remains historical evidence for that revision, not a new real-ClawHub run or per-layer CI result.

The stack remains draft and its first layer conflicts with current main. Reconciliation, exact-head CI/review, and the existing release gates remain outstanding. No merge or deployment is authorized by this publication.

What Problem This Solves

OpenClaw cannot give the Control UI a trustworthy list of official Claws or a consistent installed-package status.

User Impact

The Gateway can discover @openclaw Claws from ClawHub and report installed Claw health and ownership. This layer adds no install UI or public enablement by itself.

Why This Change Was Made

It defines the portable package/profile contract, validates official publisher and package identity at the registry boundary, and exposes typed read-only catalog/status methods backed by inventory reads. Published Claws do not set a user's model or name delegate agents.

Evidence

Protocol, official-source, Gateway catalog, and inventory/status regression tests are included in this diff. At final stack tip 6765a8741e4, pnpm check:changed passed and the installable tarball's build-info commit matched that tip. An installed host pointed at local ClawHub displayed 30 official @openclaw Claws after Labs was enabled; discovery was unavailable while Labs was off by default. All 30 latest official artifacts downloaded with matching size/SHA-256 and produced zero-blocker Gateway Add plans. Its plugin-backed task, Labs-off status, and Remove succeeded. After correcting Executive Assistant's version, the local 30-package source-sync dry run reports 30 exact-match skips. Production publication and security review remain outstanding; this layer is not a standalone launch.

Release gate: Land the OpenClaw stack together only after ClawHub #3883 and local publish-to-real-task lifecycle proof.

@clawsweeper

clawsweeper Bot commented Oct 2, 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 Oct 2, 2026
@Patrick-Erichsen Patrick-Erichsen changed the title codex/claw 1093 v2 01 catalog feat(claws): discover official ClawHub packages and installed status Oct 2, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

The branch adds Gateway discovery and installed-health reporting for official ClawHub agent packages, tightens portable profiles, changes agent ownership digests, and preserves package licenses.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful implementation and genuine historical setup evidence remain, but incomplete compatibility and lifecycle cutovers prevent readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER association exempts ordinary contributor proof. Inspected local-setup screenshots support historical combined-stack catalog discovery and task completion at 6765a87, not this head’s standalone correctness. Existing-state compatibility remains insufficient because profile and persisted-digest consumers are incomplete.
Patch quality 🦐 gold shrimp (3/6) 3 actionable review findings remain.

Merge readiness

⛔ Blocked before merge - 7 items remain

Keep open: this is useful, actively maintained stack work, but the reviewed layer still has correctness defects and is not a safe independent landing unit.

Priority: P2
Reviewed head: d0ed023909c194933071bef726074b30d034b164

Before merge

  • Complete the profile producer and legacy-reader cutover (P1) - Removing model and subagents from this strict v1 parser still breaks portableOpenClawProfile, which emits those fields before parsing; Export and agent migration therefore fail for configured agents. The new legacy parser also remains disconnected from the actual CLI Update call, which supplies only allowLegacyDynamicToolProfile. Complete the producers and authorize compatibility at the recorded-source Update boundary in the landing unit. This remains the prior profile blocker.
  • Complete every consumer of the narrowed ownership digest (P1) - Created installs now store a digest excluding model/subagents, and status treats subsequent operator edits as unchanged. However, Update’s live-agent check and Remove’s final config validator still compare a full-agent digest against that stored value. An operator-selected model can therefore make a valid reviewed lifecycle operation fail; Update also replaces the entry without using the settings-preservation helper. Complete the consumer cutover and settings preservation together. This remains the prior digest blocker.
  • Isolate plugin cache facts for concurrent status requests (P2) - Each plugin-bearing status request clears the shared installed-index cache. If another request is awaiting that index read, its retained fact disappears and preparePluginCacheFact throws PLUGIN_CACHE_FACT_INVALIDATED, causing claws.status to return unavailable. Use request-owned cache scope instead of clearing another request’s pending facts; the published follow-up fix(claws): bind security review to artifacts and isolate status reads #166801 reports this repair.
  • Resolve merge risk - Existing v1 packages and consent records lack complete upgrade proof for the changed profile and persisted ownership-digest contracts.
  • Resolve merge risk - The conflicting stack still needs coordinated reconciliation and its declared registry, catalog security-review, and production-path launch gates; historical combined-tip evidence does not validate the eventual main integration.
  • Complete next step - Have the stack owner reconcile and restack against current main before requesting a combined landing review.
  • 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

  • [P1] Complete the profile producer and legacy-reader cutover — src/claws/schema.ts:131-134
  • [P1] Complete every consumer of the narrowed ownership digest — src/claws/provenance.ts:218-221
  • [P2] Isolate plugin cache facts for concurrent status requests — src/claws/gateway-status-worker.ts:38-40
Agent review details

How this fits together

Claws package an agent’s identity, workspace content, and requirements. The Gateway combines ClawHub metadata with local ownership records to give clients catalog entries and installed-resource health.

flowchart TD
 A[ClawHub package metadata] --> B[Official publisher validation]
 B --> C[Gateway catalog]
 D[Local ownership records] --> E[Read-only inventory worker]
 E --> F[Live resource comparison]
 F --> G[Installed health report]
 C --> H[Gateway clients]
 G --> H
Loading

Technical review

Best possible solution:

One reconciled landing unit should preserve operator settings, complete every ownership consumer, isolate concurrent status reads, and demonstrate compatibility with existing packages and consent records.

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

Yes at source level: configured model/delegation fields reach the rejecting export parser, and operator-edited agents reach incompatible lifecycle digest checks. Runtime tests were not executed during this read-only review.

Is this the best way to solve the issue?

The canonical reader and inventory-worker approach fits the existing owners, but this standalone layer is incomplete; the coordinated stack must supply the producer, consumer, and compatibility cutover.

Full review comments:

  • [P1] Complete the profile producer and legacy-reader cutover — src/claws/schema.ts:131-134
    Removing model and subagents from this strict v1 parser still breaks portableOpenClawProfile, which emits those fields before parsing; Export and agent migration therefore fail for configured agents. The new legacy parser also remains disconnected from the actual CLI Update call, which supplies only allowLegacyDynamicToolProfile. Complete the producers and authorize compatibility at the recorded-source Update boundary in the landing unit. This remains the prior profile blocker.
    Confidence: 0.99
  • [P1] Complete every consumer of the narrowed ownership digest — src/claws/provenance.ts:218-221
    Created installs now store a digest excluding model/subagents, and status treats subsequent operator edits as unchanged. However, Update’s live-agent check and Remove’s final config validator still compare a full-agent digest against that stored value. An operator-selected model can therefore make a valid reviewed lifecycle operation fail; Update also replaces the entry without using the settings-preservation helper. Complete the consumer cutover and settings preservation together. This remains the prior digest blocker.
    Confidence: 0.99
  • [P2] Isolate plugin cache facts for concurrent status requests — src/claws/gateway-status-worker.ts:38-40
    Each plugin-bearing status request clears the shared installed-index cache. If another request is awaiting that index read, its retained fact disappears and preparePluginCacheFact throws PLUGIN_CACHE_FACT_INVALIDATED, causing claws.status to return unavailable. Use request-owned cache scope instead of clearing another request’s pending facts; the published follow-up fix(claws): bind security review to artifacts and isolate status reads #166801 reports this repair.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Validate the coordinated cutover (recommended)
    Include the published follow-up repairs in one reconciled landing unit and prove existing-package Update, Export, migration, and Remove compatibility.
  2. Retain the draft stack
    Keep the layers as drafts until the stack owner resolves integration and completes the declared launch prerequisites.

Security

None.

Evidence

What I checked:

  • Pinned introduction and clean checkout: Reviewed the merge-base-to-head introduced delta. The original head records parent 6f240be; no pinned test merge is available. Final git status remained clean. (d0ed023909c1)
  • Current main still lacks the requested methods: Current main registers Claw monitor and package-removal methods, but not catalog search, catalog detail, or installed status. The new catalog source and Gateway handler paths are absent from that tree. (src/gateway/methods/core-descriptors.ts, d794f3d9b248)
  • Shipped profile contract: The v2026.9.8 profile schema accepts model and subagents. The release was published October 3. REST source inspection recovered this contract after local tag-object inspection failed with HTTP 403. (src/claws/schema.ts:134, fc23bc864e45)
  • Legacy parsing is not connected to CLI Update: The new compatibility callback is exercised by reader tests, but the actual CLI Update call supplies only allowLegacyDynamicToolProfile. Export still emits model/subagents and invokes the newly strict parser; migration uses that exporter. (src/cli/claws-update-cli.runtime.ts:119, d0ed023909c1)
  • Ownership digest cutover remains incomplete: Created installs now persist a digest excluding model/subagents, and status accepts operator edits. Update’s live-config check and removal’s final config check still hash the entire agent; the settings-preservation helper has no production caller. (src/claws/provenance.ts:218, d0ed023909c1)
  • Concurrent status-read invalidation: Every plugin-bearing status request clears the shared installed-index cache. Its async reader retains exact cache facts, and cache preparation throws PLUGIN_CACHE_FACT_INVALIDATED when another request clears a pending fact. The published follow-up fix(claws): bind security review to artifacts and isolate status reads #166801 reports a dedicated repair and before/after concurrency regression. (src/claws/gateway-status-worker.ts:38, d0ed023909c1)

PR surface

Source +1627, Tests +1722. Total +3349 across 52 files.

View PR surface stats
Area Files Added Removed Net
Source 36 1763 136 +1627
Tests 16 1815 93 +1722
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 52 3578 229 +3349

Review metrics

Metric Value Why it matters
Gateway API expansion 3 new read-scoped methods Catalog search, detail, and installed status create client contracts requiring coordinated protocol validation.
Production and test growth production net +1,631; tests, support, and fixtures net +1,718 The stated catalog and inventory responsibilities justify growth, but the landing boundary must include their lifecycle consumers.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #163946
Summary: This layer implements part of the tracked Claws Labs launch; neighboring layers supply complementary behavior rather than interchangeable replacements.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is bounded experimental discovery work with compatibility defects, rather than an observed urgent production regression.
  • merge-risk: 🚨 compatibility: Rejecting shipped profile fields and changing persisted agent digests can break existing Export, Update, migration, and Remove workflows.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Include the profile/export and ownership-consumer repairs in the coordinated landing unit.
  • Verify existing v1 packages and consent records through Update, Export, migration, and Remove.
  • Carry the concurrent status-read repair into the reconciled stack and complete its declared launch gates.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-02T06:15:36.299Z sha 1baf83d :: blocked before merge. :: [P1] Preserve existing v1 profiles or migrate them before rejecting fields | [P1] Complete the ownership-digest consumer cutover in the landing unit
  • reviewed 2026-10-02T11:07:35.037Z sha 1baf83d :: blocked before merge. :: [P1] Preserve existing v1 profiles or migrate them before rejecting fields | [P1] Complete the ownership-digest consumer cutover in the landing unit

Reviewed October 7, 2026, 7:26 PM ET / 23:26 UTC (Revision 3).

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Closing as superseded: #171623 replaced the Claws plan/review/update/remove lifecycle with a one-way Add operation, and main no longer has the lifecycle modules this layer changes. Any hardening here that still matters should be redone against the new Add flow.

Closed by Roboclaw at the author's request after an audit of his open PRs. The branch is kept, so this can be reopened if needed.

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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants