Repository navigation
refactor(agents): reuse Workshop text result envelopes - #133453
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 2:42 PM ET / 18:42 UTC. ClawSweeper reviewWhat this changesThe branch routes Skill Workshop read, list, evaluation, mutation, completion, and collection-result responses through the shared text-result helper and adds a restore-response assertion. Merge readinessKeep open. This is a focused, behavior-neutral maintenance refactor that correctly reuses the current shared result-envelope contract; current main still has the duplicated Workshop envelopes, and the maintainer label requires normal maintainer handling rather than automated closure. Priority: P3 Review scores
Verification
How this fits togetherSkill Workshop is the agent-facing tool for reviewing and changing workspace skills and collections. Its actions produce model-visible text plus structured details that the agent runtime and surrounding UI/logging paths consume. flowchart LR
A[Agent request] --> B[Skill Workshop tool]
B --> C[Read, review, and collection actions]
C --> D[Shared text result envelope]
D --> E[Model-visible text]
D --> F[Structured action details]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -30, Tests +10. Total -20 across 4 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain one canonical result-envelope helper for Workshop’s single-text responses, then land through the normal exact-head CI and maintainer review gates. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR does not report a defect; it consolidates an existing result-envelope implementation. Is this the best way to solve the issue? Yes. Reusing the already-established helper is the narrowest maintainable solution because it preserves each action’s existing text and details payloads while deleting duplicated construction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9050011d1e40. 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 repeats the same single-text tool-result envelope in eight action paths, despite having a shared
textResulthelper for that contract.Why This Change Was Made
Use the existing helper for read, list, evaluate, mutation results, review completion, collection reconciliation, restore, and history. Keep the distinct structured proposal projection unchanged. This centralizes only envelope construction, not Workshop policy, persistence, authorization, or lifecycle decisions.
User Impact
Model-facing text, typed details, truncation, revision checks, collection ownership, and side effects are unchanged. An existing workspace-alias restore case now also checks the returned text and receipt-linked details, while retaining its filesystem assertion.
Production LOC: +39 / -69 (30 removed). Tests: +12 / -2 (10 added). Whole change: 20 lines removed, across four files.
Evidence
6738095a1747438d1a86439fc05974ebb3f05a85.openclaw/ci-gate. No CI retry or cancellation was needed.The review's stored-data heuristic does not correspond to a storage change: collection reconciliation, restoration and history still call the same owners with the same inputs and results. Only the returned text/details envelopes change construction. No schema, migration, embedding metadata, or persistence behavior changes, so migration proof is not applicable.
This is a behavior-neutral result-envelope refactor, not a change to the backing store or tool protocol. No performance, live-provider, or new built-CLI result is claimed.
Landed as d434b3dbe0b2. Normal hosted preparation and merge both completed successfully without a rebase or push. Independent and maintainer checks confirmed that all 35,555 landed tree entries equal the actual main parent plus exactly the four reviewed afterimages; main ancestry and the actual 30-production/20-total line reduction are verified.