Repository navigation
fix(skills): show byte-aware errors for long descriptions - #128594
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 3:14 AM ET / 07:14 UTC. ClawSweeper reviewWhat this changesThe PR removes duplicate character-count limits and adds tool-boundary coverage so Skill Workshop returns its existing byte-aware error for overlong proposal and collection descriptions. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open for normal merge review. Current main still rejects the input at the schema boundary, while the branch removes that competing gate and routes both paths to the existing UTF-8 byte validator; no actionable patch defect was found. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherSkill Workshop receives agent tool calls, validates their arguments, then delegates proposal and collection work to services that own persistence and byte limits. The resulting error guides the agent before any proposal or collection write occurs. flowchart LR
A[Agent tool call] --> B[Tool argument schema]
B --> C[Skill Workshop tool]
C --> D[Proposal service]
C --> E[Collection reconciliation]
D --> F[Byte-aware error or proposal]
E --> G[Byte-aware error or collection result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +81. Total +80 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the 160-byte policy in the shared draft-preparation owner and remove all competing schema character limits so agents receive one actionable error. Do we have a high-confidence way to reproduce the issue? Yes—the source establishes the schema-before-execution failure path, and the PR supplies an exact-head tool-boundary harness plus focused regressions for a 161-byte description. Is this the best way to solve the issue? Yes—the service already owns the UTF-8 limit, so deleting only the competing schema character limits is the narrowest maintainable repair. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 95bbc0ac0586. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Co-authored-by: Alix-007 <[email protected]>
|
Maintainer follow-up preserves @Alix-007's original fix and extends the same owner-boundary repair to collection reconciliation. Signed head Production: +1/-2 (net -1). Tests: +55. Fresh exact-head CI and Workflow Sanity were retriggered against the current main base. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Alix-007 <[email protected]>
|
Merged via squash.
|
…28594) * fix(skills): surface description byte limit errors * fix(skills): preserve byte-aware collection validation Co-authored-by: Alix-007 <[email protected]> * test(skills): isolate description limit regression coverage Co-authored-by: Alix-007 <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]>
Closes #92425
What Problem This Solves
Fixes an issue where agents creating, updating, or revising Skill Workshop proposals would receive a generic schema-validation failure for overlong descriptions instead of the actual UTF-8 byte count and retry limit.
Why This Change Was Made
The intentional 160-byte discovery/listing budget remains unchanged. The competing 160-character schema gate is removed so the proposal service stays the single enforcement owner and returns its existing byte-aware error. This does not add configuration or raise the limit. Earlier #92427 and #92898 were closed unmerged and proposed raising the limit; this PR does not repeat that product change.
User Impact
Agents now learn the actual description size and the 160-byte maximum, so they can shorten the description and retry instead of receiving only a generic validation error.
Evidence
Real tool-call proof
A standalone Node 24.15 harness ran against exact product head
cd14df37d3f00864e54c3fe64042535a6747d8bd. It obtainedskill_workshopfrom the productioncreateOpenClawToolsregistry, passed the 161-character call throughvalidateToolArguments, invoked the actual tool, and observedSkill proposal description is too large (161 bytes, max 160).before proposal state was written. It used an ephemeral local workspace and no provider, channel, gateway, device, network, or private credential.Focused regression
17abdfc78c89):npx -y [email protected] scripts/run-vitest.mjs src/agents/tools/skill-workshop-tool.test.ts -t "lets the proposal service explain overlong descriptions" --reporter=verbosefailed before execution withdescription: must not have more than 160 characters.cd14df37d3f00864e54c3fe64042535a6747d8bd): the same command passed (1 passed,24 skipped) and observed the service error above.node node_modules/oxfmt/bin/oxfmt --check src/agents/tools/skill-workshop-tool-schema.ts src/agents/tools/skill-workshop-tool.test.tspassed.node node_modules/oxlint/bin/oxlint src/agents/tools/skill-workshop-tool-schema.ts src/agents/tools/skill-workshop-tool.test.ts --deny-warningspassed.git diff --checkpassed.Production delta: 0 additions, 1 deletion. Test delta: 23 additions.
AI Assistance
AI-assisted. I understand the change and validated the production validation-to-service boundary locally.