Repository navigation
fix(skills): load JSON5-style metadata frontmatter - #108486
jincheng-xydt wants to merge 4 commits into
Conversation
939014b to
b8541b1
Compare
|
@clawsweeper re-review Rebased onto latest upstream/main and updated exact-head proof for Proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
b8541b1 to
b4053cc
Compare
|
@clawsweeper re-review Fixed the previous CI TypeScript/boundary-dts failure and updated exact-head proof for Proof:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ed31953 to
17afa2c
Compare
|
Exact-head proof refreshed for Local verification passed:
This also addresses the previous @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
17afa2c to
6be61df
Compare
|
Exact-head proof refreshed again after rebasing onto latest Head: Local verification passed:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6be61df to
51ee064
Compare
|
Exact-head proof refreshed after rebasing onto latest Head: Local verification passed:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
51ee064 to
e932aa7
Compare
|
Exact-head proof refreshed after rebasing onto latest Head: Local verification passed:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head proof refreshed after regenerating the head commit to clear GitHub mergeability state.\n\nHead: |
e932aa7 to
4f2d64a
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 3:01 AM ET / 07:01 UTC. Summary PR surface: Source -6, Tests +43, Other +1. Total +38 across 3 files. Reproducibility: yes. the linked issue provides a minimal workspace-skill reproduction, and the new fixture maps directly to the loader/parser mismatch; this review did not execute a live current-main CLI run. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the skill-specific parser change, preserve a compatible Do we have a high-confidence way to reproduce the issue? Yes: the linked issue provides a minimal workspace-skill reproduction, and the new fixture maps directly to the loader/parser mismatch; this review did not execute a live current-main CLI run. Is this the best way to solve the issue? No, not as submitted: using the skill parser is the narrow runtime fix, but removing a shipped Plugin SDK type is unnecessary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0f32033d7826. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source -6, Tests +43, Other +1. Total +38 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
4f2d64a to
dafed08
Compare
|
Closing under the current contribution standard. After syncing to current upstream/main, the core reproduction no longer fails on base: a temporary workspace skill with JSON5-style |
|
@jincheng-xydt apologies — the maintainer-side force-pushes this morning (rebase over the generated surface-report conflict + diagnostics threading) collided with your own active iteration on this branch, which is almost certainly why this got confusing. That's on us. Your work is landing: the final tree keeps your commit as the base with full authorship, adds per-file frontmatter diagnostics across all skill-loading entry points, and passed the full gate set (183 focused tests, plugin-sdk surface check, exact-head CI green). Since this PR is closed, it's going in via a maintainer PR crediting you — you'll be thanked in the release notes for #108432. If you'd rather reopen this PR and land it here instead, say the word and we'll do that. |
What Problem This Solves
Fixes #108432.
Workspace skills can include OpenClaw metadata in
SKILL.mdfrontmatter. The markdown-core skill metadata parser already tolerates JSON5-style flow mappings with trailing commas, but the session skill loader still used the generic agent frontmatter parser. That path throws on the same metadata block, so the skill is dropped even though the skill-specific parser can read it.This patch makes the session skill loader use the skill frontmatter parser and the existing skill invocation policy helper. That keeps JSON5-style metadata loading aligned with the rest of skill metadata handling, while preserving
disable-model-invocation: truebehavior after the parser change.Evidence
Exact-head proof for
e932aa7533485171e682583c6012eef91f12db63:PATH="..." ./node_modules/.bin/oxfmt --check --threads=1 src/skills/loading/session.ts src/skills/loading/session.test.ts scripts/plugin-sdk-surface-report.mjs src/infra/file-read.ts-> passedPATH="..." ./node_modules/.bin/oxlint src/skills/loading/session.ts src/skills/loading/session.test.ts-> passedgit diff --check upstream/main...HEAD-> passedPATH="..." node scripts/run-tsgo.mjs -p tsconfig.core.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/core.tsbuildinfo-> passedPATH="..." node scripts/run-vitest.mjs src/skills/loading/session.test.ts src/skills/loading/frontmatter.test.ts packages/markdown-core/src/frontmatter.test.ts test/scripts/plugin-sdk-surface-report.test.ts-> passed; 3 Vitest shards, including the plugin SDK surface exact-budget testThe new focused test creates a
SKILL.mdwith JSON5-style trailing commas inmetadata.openclaw.requires.env, verifiesloadSkillsFromDir()loads it with no diagnostics, verifiesdisable-model-invocation: truestill works, and verifies the metadata env requirement parses asEXAMPLE_VAR.The PR also updates the plugin SDK public surface budget from
10606to10605because this change removes the session-only exportedSkillFrontmatterinterface from the public source graph.