Repository navigation
refactor(cli): consolidate skill workshop command dispatch - #119640
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 10:08 AM ET / 14:08 UTC. ClawSweeper reviewWhat this changesThe PR centralizes Skill Workshop CLI workspace resolution, output rendering, error handling, draft preparation, and rejection/quarantine registration without changing public commands. Merge readinessKeep open. Source review found no actionable correctness or security defect; this active maintainer-labeled CLI refactor should proceed through normal exact-head CI and maintainer merge handling. Priority: P3 Review scores
Verification
How this fits togetherThe Skills CLI resolves an agent workspace, invokes Workshop proposal lifecycle services or Gateway operations, and renders JSON or text to the operator. This refactor consolidates the CLI orchestration while leaving lifecycle enforcement in the Workshop service layer. flowchart LR
A[Operator command] --> B[Workshop command parser]
B --> C[Shared CLI dispatcher]
C --> D[Workspace resolution]
D --> E[Workshop or Gateway operation]
E --> F[JSON or text result]
C --> G[Error and exit handling]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -115. Total -115 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one local CLI dispatcher that delegates unchanged proposal and lifecycle services, then merge after exact-head checks confirm the existing command contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR does not claim to fix a bug. Source comparison and existing CLI coverage establish the relevant behavior boundary. Is this the best way to solve the issue? Yes. A local shared command-boundary dispatcher removes duplicated orchestration while Workshop services continue to own validation, scanning, lifecycle transitions, and events. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 03a9e022ed83. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Skill Workshop CLI commands independently repeated workspace selection, proposal-draft construction, JSON versus text rendering, failure handling, and lifecycle-transition registration. This maintainer-requested cleanup removes 115 production lines from one CLI owner.
Why This Change Was Made
Introduce one canonical Workshop workspace/result/error dispatcher and one shared proposal-draft flow; register rejection and quarantine through the same existing lifecycle owner. Keep the Skills CLI lazy boundary, public command ordering, operator flags, help text, defaults, stdout/stderr behavior, agent/account scope, approval policy, scanner enforcement, credential handling, and Gateway-owned apply/fallback dispatch unchanged.
User Impact
No user-visible behavior change: all 24 recursive Commander command/help/option trees were identical before and after, and 100 real Commander 15 parsing/dispatch comparisons preserved JSON output, root/workshop/inferred agent precedence, draft validation, lifecycle transitions, correlation IDs, errors, credential/offline fallback, and fail-closed remote Gateway behavior.
Evidence
src/cli/skills-cli.ts(net -115); no config, schema, baseline, or dependency changes.pnpm check:changedpassed, including production and test TypeScript, lint, SDK baseline, plugin boundaries, dead-code scans, native schema, webhook authentication order, pairing-account security, and runtime import cycles.gpt-5.6-solwithxhighreasoning: clean; confidence 0.98.