Skip to content

fix(packages): discover package-root bundled skills - #3702

Merged
Patrick-Erichsen merged 1 commit into
codex/claw-878-overview-metadatafrom
codex/claw-881-root-skill-metadata
Sep 15, 2026
Merged

Patrick-Erichsen merged 1 commit into
codex/claw-878-overview-metadatafrom
codex/claw-881-root-skill-metadata

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Packages that declare a skill at their root can currently omit it from catalog metadata: skills: ["."] looks for ./SKILL.md and misses a published SKILL.md. Root containers without a direct entry also miss their nested skills.

Normalize paths in the existing skill-summary lookup so both SKILL.md and ./SKILL.md are discoverable and a root container finds its nested skills. Keep each exact uploaded path in skillMdPath. Publication normalization and the signed inventory digest are unchanged; a regression compares the CLI's minted hash with the publish-side hash for leading-dot paths.

Validation: the final tests fail on the original producer for direct root and nested root-container discovery, then all 22 registry tests pass with the fix. Full ci:static, ci:unit (6,696 tests), ci:types-build, and ci:packages pass. Independent review through P2 found no actionable findings.

This updates newly derived summaries; it does not rewrite stored release metadata. Production delta is +10 lines; tests +62. The OpenClaw skill preview companion consumes these canonical roots while fetching and verifying the exact inventory paths.

Builds on the overview metadata layer. Tracks CLAW-881 Browse complete installed and catalog skill bundles, Cycle 3.

The updated base includes the separately reviewed publishing draft fixes with version/title proof and uploaded Summary proof. This layer remains the same two registry discovery files (unchanged under range-diff). The final summary correction passes full static, 6,701 unit tests, all premerge TypeScript checks and real one-click publication/readback. Fresh exact-head CI remains required before merge. Named scanner follow-up: the preexisting scanner root exclusion is outside this summary producer repair.

Punchcard-Session: frost-meadow-workshop-fw

@clawsweeper

clawsweeper Bot commented Sep 15, 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 Sep 15, 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 Sep 15, 2026 5:13pm UTC

Request Review

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 15, 2026 15:44
@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner September 15, 2026 15:44
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 1:16 PM ET / 17:16 UTC (Revision 5).

ClawSweeper review

What this changes

Discover bundled skills declared at a plugin package’s root, including nested skill directories, while preserving uploaded file paths and inventory hashes.

Merge readiness

✅ Ready for maintainer review

Keep open: current main and v0.23.3 retain the reported discovery gap. The focused patch has no blocking findings, and the acknowledged scanner follow-up remains separate.

Priority: P2
Reviewed head: bbb841d3dd1561463d3bb3ec74878f261223c090

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant regression coverage, preserved inventory compatibility, and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The collaborator-authored change repairs pure summary derivation and adds focused regression cases. Linked publication-form proof concerns the base companion and does not demonstrate root-skill discovery; no authority-boundary change triggers additional proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The collaborator-authored change repairs pure summary derivation and adds focused regression cases. Linked publication-form proof concerns the base companion and does not demonstrate root-skill discovery; no authority-boundary change triggers additional proof.
Evidence reviewed 9 items Pinned introduced scope: The verified merge-base-to-head delta contains only two registry files: production +17/-7 and tests +62/-0. Base-stack changes are excluded from this review.
Current-main defect remains: Current main constructs ${rootPath}/SKILL.md and a directory prefix from '.', missing an inventory entry named SKILL.md and ordinary nested paths beneath a root declaration.
Released behavior: GitHub identifies v0.23.3 as the latest release; inspection of its pinned source shows the same root lookup and directory-prefix behavior.
Findings None None.
Security None None.

How this fits together

ClawHub derives bundled-skill metadata from uploaded plugin manifests and files during publication. Catalog clients use that metadata to list skills and fetch their Markdown previews.

flowchart LR
  A[Plugin manifest] --> C[Skill discovery]
  B[Verified uploaded files] --> C
  C --> D{Direct skill present}
  D -->|Yes| E[Exact skill entry]
  D -->|No| F[Nested skill entries]
  E --> G[Release metadata]
  F --> G
  G --> H[Catalog list and preview]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Introduced scope +79/-7 across 2 files The patch is confined to the existing summary producer and its regression tests.
Production versus tests production +10 net, tests +62 Production growth implements root-aware matching; tests cover discovery and inventory compatibility.

Technical review

Best possible solution:

Keep root normalization in summary discovery, preserve exact inventory identities, and use the existing explicit backfill workflow if older release summaries need refreshing.

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

Yes, from source: declare skills as ['.'] with an uploaded SKILL.md or nested skills beneath the package root; current main misses those entries. The added tests encode these cases, but this review did not execute them.

Is this the best way to solve the issue?

Yes: repairing the existing summary lookup is the narrowest fix. Rewriting uploaded paths would alter signed inventory identities, while client-only discovery would leave the canonical metadata incomplete.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs missing bundled-skill catalog metadata with a bounded publication-summary change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The collaborator-authored change repairs pure summary derivation and adds focused regression cases. Linked publication-form proof concerns the base companion and does not demonstrate root-skill discovery; no authority-boundary change triggers additional proof.

Evidence

What I checked:

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-15T15:48:58.901Z sha 8b84037 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T16:30:04.923Z sha d856e6d :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T16:34:44.214Z sha 2717038 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T16:56:49.249Z sha 1471625 :: needs maintainer review before merge. :: none

@blacksmith-sh

This comment has been minimized.

@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Follow-up recorded from the scanner sibling review: the existing dedicated SkillSpector input resolver excludes package-root (.) skills. That exclusion predates this fix and its scanner code is unchanged. A separate scanner-owner change should support root declarations while retaining extraction/path boundaries; this PR only repairs catalog-summary discovery and preserves signed inventory bytes.

Final pre-merge schema-package, CLI-package, and repository TypeScript checks pass at 8b84037d1f0294dee5cd2df7e5aa35bd7bdd8930. The independent P2 review has no remaining code findings. The moderation browser CI failure is under investigation before landing.

@blacksmith-sh

This comment has been minimized.

Punchcard-Session: frost-meadow-workshop-fw
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Final current-head checks: all test jobs are green on 45d7c02 / bbb841d; the upper run's aggregate job is still completing. Both moderation jobs passed on the first attempt with no Convex execution timeout in their logs.

Validation limitation / named follow-up: the upper publish-new-version browser job passed its existing automatic retry #1. The first attempt hit local Convex 1-second timeouts across users, publisher and publish-attempt functions, then the fixture's first release was already published when claimMockPrePublicationChecks tried to claim it again (e2e/local-auth/helpers.ts:198). The lower layer's same publishing flow passed on its first attempt. This is separate from the repaired draft/summary overwrite; the existing test-helper recovery after an ambiguous local backend result needs its own investigation. No timeout, retry, or error filtering setting was changed, and no CI rerun was requested for these heads.

Both exact-head ClawSweeper reviews at 17:16 UTC report no remaining findings. The real paired Summary publication/readback and version/title proof remain linked above.

@Patrick-Erichsen
Patrick-Erichsen merged commit 0b6767d into main Sep 15, 2026
45 of 53 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/claw-881-root-skill-metadata branch September 15, 2026 17:28
@Patrick-Erichsen

Copy link
Copy Markdown
Collaborator Author

Deployed to Production at merged main 0b6767d3bdd3702ad3156d95d3e344859f31e465.

Live Lossless version metadata and exact file reads both passed: skills/lossless-claw/SKILL.md (2,160 bytes, SHA-256 543abd48c4f916be9a44a65dd4cc0f47493736431c6f1d1b19e3c5736040e83a) and references/config.md (30,456 bytes, SHA-256 d937128a4ad116f5ba85960c9e39ec4e520231bdeda0c165990c1dd7bf02231c) matched the published inventory.

Package-root SKILL.md, ./SKILL.md, signed-path preservation, and root-container behavior are covered by the producer regressions. This deployment changes metadata derivation on new publish; it does not backfill historical releases. Previously omitted root entries remain unavailable until a new publish or a separately authorized backfill. A read-only sample of 30 existing public plugin versions contained no root . record; therefore no production root-record readback is claimed. Existing root scanner exclusion remains the named follow-up.

This branch was successfully deployed

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

Labels

P2 Normal backlog priority with limited blast radius. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant