Skip to content

fix(skills): persist workshop apply reason; correct Skill Workshop docs - #114471

Merged
steipete merged 2 commits into
mainfrom
steipete/workshop-guard-docs-k8n3
Jul 28, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/workshop-guard-docs-k8n3

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where an optional reason supplied while applying a Skill Workshop proposal was discarded instead of being retained with the applied proposal. It also corrects Workshop and self-learning documentation that overstated curation scope, scanner blocking behavior, direct-write enforcement, runtime support, and the proposal-size ceiling.

Why This Change Was Made

Apply now normalizes and stores its reason through the same statusReason field used by reject and quarantine, with focused persistence coverage. The docs now describe the implemented ownership and runtime boundaries rather than broader intended behavior.

The companion enforcement-guard investigation concluded that a hard direct-write guard is not currently possible at the tool-policy seam, so this PR documents the rule as advisory and does not add enforcement.

AI-assisted: yes. The patch was inspected and validated before submission.

User Impact

Operators can inspect why an applied proposal was accepted, and the public docs now accurately explain which skills are curated, which scanner findings block apply, where delayed experience review works, and the actual 200,000-byte configured maximum.

Evidence

  • node scripts/run-vitest.mjs src/skills/workshop/service.test.ts: 1 test file passed, 36 tests passed.
  • node scripts/check-changed.mjs -- src/skills/workshop/service.ts src/skills/workshop/service.test.ts docs/tools/skill-workshop.md docs/tools/self-learning.md: passed on Blacksmith Testbox, including core and core-test typechecks, lint, formatting, and repository guards (run).
  • git diff --check: passed.
  • pnpm docs:list: passed and confirmed both edited pages in the documentation index.
  • .agents/skills/autoreview/scripts/autoreview --mode uncommitted: clean, with no accepted or actionable findings.

@steipete
steipete marked this pull request as ready for review July 27, 2026 09:09
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Jul 27, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels Jul 27, 2026
@clawsweeper

clawsweeper Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 5:13 AM ET / 09:13 UTC.

ClawSweeper review

What this changes

The PR preserves an optional operator-supplied reason when applying a Skill Workshop proposal and corrects Skill Workshop and self-learning documentation to match the intended runtime boundaries.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 4 items remain

Keep this PR open for normal maintainer review. The narrow patch consistently stores the apply reason in the proposal record and adds focused persistence coverage, but the protected maintainer label prevents automated cleanup and the supplied evidence is automated-only rather than directly showing after-fix behavior.

Priority: P2
Reviewed head: 19518d375d3f3ccd4231ce5f5c1eaf0967858467

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The patch is focused and has relevant unit coverage, but automated-only evidence does not meet the real-behavior proof gate.
Proof confidence 🧂 unranked krab (1/6) Needs real behavior proof before merge: The PR reports focused tests and changed-file checks, but those are supplemental automated proof rather than after-fix behavior observed through a real Workshop apply-and-inspect path. Add redacted terminal, Gateway, or CLI inspection output; update the PR body afterward, and a maintainer can request @clawsweeper re-review if a fresh review does not begin automatically.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR reports focused tests and changed-file checks, but those are supplemental automated proof rather than after-fix behavior observed through a real Workshop apply-and-inspect path. Add redacted terminal, Gateway, or CLI inspection output; update the PR body afterward, and a maintainer can request @clawsweeper re-review if a fresh review does not begin automatically.
Evidence reviewed 4 items Focused persistence change: The proposed service update writes the normalized optional apply reason to the existing proposal status-reason field while setting the proposal to applied.
Persistence coverage: The proposed test applies a proposal with whitespace around a reason and verifies that both the apply result and later inspection retain the normalized value.
Protected review route: The supplied GitHub context marks this PR with maintainer; repository policy keeps protected-label PRs open for explicit maintainer handling.
Findings None None.
Security None None.

How this fits together

Skill Workshop converts reviewed workspace-skill proposals into live workspace skills and persists their status for later inspection. Chat, CLI, and Gateway callers share the Workshop service, which scans a proposal before applying it and records its resulting state.

flowchart LR
  A[Operator or agent] --> B[Workshop proposal]
  B --> C[Security scan]
  C --> D[Apply decision]
  D --> E[Workspace skill]
  D --> F[Proposal record]
  F --> G[Inspection and lifecycle review]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR reports focused tests and changed-file checks, but those are supplemental automated proof rather than after-fix behavior observed through a real Workshop apply-and-inspect path. Add redacted terminal, Gateway, or CLI inspection output; update the PR body afterward, and a maintainer can request @clawsweeper re-review if a fresh review does not begin automatically.
  • Resolve merge risk (P1) - The change records operator rationale in persistent proposal metadata; the supplied test is strong unit coverage, but no directly inspectable after-fix service, CLI, Gateway, or proposal-inspection output confirms the full operator-visible path.
  • Resolve merge risk (P1) - The PR is behind current main, so final review should refresh the merge result before landing.
  • Complete next step (P2) - The protected maintainer label requires an explicit human landing decision, and the contributor should supply real after-fix behavior proof before merge.
Agent review details

Security

None.

PR surface

Source +1, Tests +24, Docs +9. Total +34 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 24 0 +24
Docs 2 29 20 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 54 20 +34

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase or refresh against current main, retain the shared normalized statusReason write if the current service and inspection contract still match it, and attach redacted after-fix output showing an applied proposal retains its reason when inspected.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase or refresh against current main, retain the shared normalized statusReason write if the current service and inspection contract still match it, and attach redacted after-fix output showing an applied proposal retains its reason when inspected.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level: applying a proposal with an optional reason previously leaves no assignment to the record's apply-time status-reason field, while the proposed focused test exercises that path. A live current-main failure was not independently run in this read-only review.

Is this the best way to solve the issue?

Unclear. Reusing the existing normalized status-reason field is the narrowest apparent repair and matches the PR's stated reject/quarantine convention, but current-main callers and inspection surfaces still need final maintainer verification.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against f9be52b5f91d.

Labels

Label changes:

  • add P2: This is a limited-scope operator metadata and documentation correction rather than an urgent runtime or security regression.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR reports focused tests and changed-file checks, but those are supplemental automated proof rather than after-fix behavior observed through a real Workshop apply-and-inspect path. Add redacted terminal, Gateway, or CLI inspection output; update the PR body afterward, and a maintainer can request @clawsweeper re-review if a fresh review does not begin automatically.

Label justifications:

  • P2: This is a limited-scope operator metadata and documentation correction rather than an urgent runtime or security regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR reports focused tests and changed-file checks, but those are supplemental automated proof rather than after-fix behavior observed through a real Workshop apply-and-inspect path. Add redacted terminal, Gateway, or CLI inspection output; update the PR body afterward, and a maintainer can request @clawsweeper re-review if a fresh review does not begin automatically.

Evidence

What I checked:

  • Focused persistence change: The proposed service update writes the normalized optional apply reason to the existing proposal status-reason field while setting the proposal to applied. (src/skills/workshop/service.ts:616, 19518d375d3f)
  • Persistence coverage: The proposed test applies a proposal with whitespace around a reason and verifies that both the apply result and later inspection retain the normalized value. (src/skills/workshop/service.test.ts:152, 19518d375d3f)
  • Protected review route: The supplied GitHub context marks this PR with maintainer; repository policy keeps protected-label PRs open for explicit maintainer handling. (19518d375d3f)
  • Automated validation supplied: The PR body reports a focused Workshop service test and changed-file checks, but it does not include directly inspectable after-fix CLI, Gateway, or inspection output. (19518d375d3f)

Likely related people:

  • steipete: Authored the focused Workshop persistence and documentation update; broader current-main ownership could not be established from the supplied read-only review evidence. (role: current area contributor; confidence: low; commits: 19518d375d3f; files: src/skills/workshop/service.ts, src/skills/workshop/service.test.ts, docs/tools/skill-workshop.md)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach redacted after-fix output that applies a proposal with a reason and then inspects the persisted normalized reason.
  • Refresh the branch against current main before final merge review.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete steipete self-assigned this Jul 28, 2026
@steipete
steipete force-pushed the steipete/workshop-guard-docs-k8n3 branch from 19518d3 to b6f923b Compare July 28, 2026 18:27
@steipete

Copy link
Copy Markdown
Contributor Author

Maintainer landing disposition for exact head 5438e9a3277f33539099804818e4dbc132bff602:

  • Rank-up move “attach redacted after-fix apply-and-inspect output”: skipped as additional live proof for this landing. The focused service regression applies a proposal with a whitespace-padded reason, verifies the normalized reason in the apply result, and then verifies the same persisted value through inspectSkillProposal; 41 focused tests pass. The maintainer accepts the absence of a separate CLI or Gateway transcript.
  • Rank-up move “refresh against current main”: applied. The branch rebased over post-feat(skills): enable self-learning review for Codex sessions #114501 main. The only conflict was the already-corrected Workshop proposal-size wording; it was resolved to retain the PR’s explicit 200,000-byte hard ceiling. The other docs corrections were preserved, and the Self-learning “Runtime support” subsection now states the landed contract: the runtime must report resolved model and actual Workshop availability; embedded and Codex app-server harnesses do, while other CLI-backed runtimes fail closed.

pnpm docs:list, pnpm docs:map:check, git diff --check, the 41-test service run, and replacement exact-head CI run 30387953588 are green. Initial run 30387540124 found only a stale generated docs/docs_map.md; it was regenerated and committed. Existing autoreview is clean with no accepted/actionable findings.

@steipete
steipete merged commit 98591fd into main Jul 28, 2026
119 checks passed
@steipete
steipete deleted the steipete/workshop-guard-docs-k8n3 branch July 28, 2026 18:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to christian-lallo/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (61 commits)
  perf(ui): debounce event-driven session list refreshes and right-size child paging (openclaw#115374)
  feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (openclaw#115226)
  feat(system-agent): guide gateway configuration in Ask OpenClaw (openclaw#115363)
  fix(agents): make overflow recovery append-only via branch-and-reappend (openclaw#115271) (openclaw#115310)
  fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (openclaw#115362)
  fix(codex): isolate native hook relay startup (openclaw#115078)
  fix(ci): stop reviving superseded pull request workflows (openclaw#115378)
  feat(openshell): add workspace selection (openclaw#114952)
  fix(skills): persist workshop apply reason; correct Skill Workshop docs (openclaw#114471)
  fix: agent stops replying when a session transcript has no header row (openclaw#115080)
  perf(usage): stale-while-revalidate caches for usage.status and sessions.usage (openclaw#115369)
  fix(discord): reject invalid UTF-8 probe responses (openclaw#111734)
  feat(gateway): add memory.search operator method (openclaw#115346)
  fix(android): keep welcome action reachable with large text (openclaw#111747)
  fix(gateway): validate doctor memory agent ids (openclaw#115365)
  refactor: harden shell completion and shard Control UI E2E (openclaw#115332)
  fix(ui): anchor the thread branches menu to its trigger button (openclaw#115352)
  perf(sessions): incremental snapshot revalidation and shallow list projections (openclaw#115359)
  refactor(sessions): consolidate entry state (openclaw#115299)
  feat(ui): swap three plain Lobsterdex palettes for balloon, ascii, and portal (openclaw#115308)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…cs (openclaw#114471)

* fix(skills): persist workshop apply reason and correct docs

* docs: refresh self-learning map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant