Repository navigation
Conversation
|
@troioi-vn is attempting to deploy a commit to the OpenClaw Foundation Team on Vercel. A member of the Team first needs to authorize it. |
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesMoves the workflow’s ClawHub checkout into runner temporary storage before installing dependencies and publishing skills. Example: Publish clawhub-4949-repro with skill_path '.' and dry_run true.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Current main still collects workflow tooling into repository-root skills; this PR provides a focused fix with no blocking findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe reusable GitHub Actions workflow checks out the caller’s skills and ClawHub tooling, invokes the CLI for selected skill folders, and returns publish receipts. flowchart TD
A[Caller repository] --> B[Reusable workflow]
B --> C[Tooling in runner temporary storage]
C --> D[ClawHub CLI]
A --> D
D --> E[Skill file collection]
E --> F[Preview or publication receipt]
Technical reviewBest possible solution: Keep workflow tooling outside the caller’s publish tree while retaining the existing CLI, skill selection, and provenance handling. Do we have a high-confidence way to reproduce the issue? The current-main checkout location and recursive file collector establish the failure path, corroborated by the linked affected-release report and supplied Actions logs. Is this the best way to solve the issue? Best-fix verdict: best; moving workflow-owned tooling fixes the source of contamination, whereas a collector exclusion would reserve a caller directory name and an ignore-file workaround would burden every affected repository. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6b91b6328c8e. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 24, 2026, 5:33 AM ET / 10:33 UTC (Revision 2). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Closes #4949
Related: #3397
What Problem This Solves
A skill that lives at the root of its repository can't be published with the reusable
skill-publish.ymlworkflow (skill_path: "."). The workflow checks ClawHub's own source out toclawhub-source/inside the caller's workspace, so that checkout ends up inside the skill.skill publishthen collects it as skill files and fails onclawhub-source/fixtures/public-corpus/corpus.jsonl(over 10MB). Today the only way around it is an ignore rule forclawhub-source/in the skill's.clawhubignoreor.gitignore.User Impact
Skills at the repository root publish through the reusable workflow without an ignore rule. Catalog repos with skills under
skills/behave as before.Why This Change Was Made
actions/checkoutonly writes inside$GITHUB_WORKSPACE, so the workflow now moves the checkout to$RUNNER_TEMP/clawhub-sourceright after checking it out, installs the CLI dependencies there, and runs the CLI from that path. The caller's repository is still the publish workdir, so skill paths and source provenance don't change. This keeps the CLI out of the caller's publish tree without reserving a directory name in every skill.package-publish.ymluses the same nested checkout, and a local root source (source: ".") probably has the same problem. I left it out to keep this PR to one workflow.Evidence
Real GitHub Actions run (not a stub): one caller repo with only
SKILL.mdat its root and no ignore files, oneworkflow_dispatch, two jobs that differ only in the workflow ref. Both useskill_path: "."anddry_run: true. The caller repo is private, so here are the relevant lines from each job's log ("Run skill publishes" step output).Caller workflow:
Before,
@main(job failed, exit code 1):After, this branch at
259a4a4(job succeeded):fileCount: 1is the rootSKILL.mdalone; the CLI collected no tooling files. The later commit35e69f3changes only a test, so the workflow is the same as in that run.Tests:
scripts/security/skill-publish-workflow.test.tsnow keeps the workspace andRUNNER_TEMPapart, as on a runner, and runs the real move step before the publish step. A new case runs both steps for a root skill (with a stubbun, so no real CLI) and checks that noclawhub-source/is in the workspace when the CLI runs, the CLI path is outside it, and--workdiris still the caller's workspace.src/__tests__/skill-publish-workflow.test.tschecks the move happens before the dependency install and the install runs inRUNNER_TEMP.bun run ci:staticandbun run ci:unitpass locally.Written with Claude Code (Opus 5.5) and reviewed with Codex.