Skip to content

feat(skills): open past-work learning in a normal session - #142909

Merged
obviyus merged 3 commits into
mainfrom
codex/workshop-session-mining
Sep 9, 2026
Merged

obviyus merged 3 commits into
mainfrom
codex/workshop-session-mining

Conversation

@obviyus

@obviyus obviyus commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Workshop manual learning hid work behind a scan panel, filtered conversations before inspection, and forced pending suggestions even in Auto mode.

Why This Change Was Made

Learn from past conversations now opens a normal agent session with visible instructions, standard tools, permissions, and cancellation. Auto and Propose retain their policies. The bespoke scanner is removed.

User Impact

Users can watch, stop, and steer learning. Existing installed skills and proposals remain. Saved scan batches no longer resume, and legacy scan methods return retirement guidance. No schema migration or new setting is required.

Evidence

Real browser/Gateway checks opened chat before completion. Auto updated a Workshop-owned skill while preserving user-owned skills; Propose left an exact pending update. Stop, follow-up, disabled automatic learning, and visible send rejection were checked. All 158 focused tests passed. Upgrade checks preserved existing proposals and installed content and verified legacy-method retirement errors. Desktop and narrow-screen button checks passed.

Consumers: Workshop manual learning uses normal sessions; legacy history scan callers receive an explicit retirement error.

@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Sep 9, 2026
@obviyus
obviyus marked this pull request as ready for review September 9, 2026 06:59
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 3:31 AM ET / 07:31 UTC (Revision 3).

ClawSweeper review

What this changes

Workshop replaces its historical scan panel with a normal learning chat and removes the separate scanner, while retaining explicit errors for retired scan methods.

Merge readiness

⛔ Blocked before merge - 2 items remain

This PR still provides meaningful functionality absent from current main. No introduced correctness defect was found, and the updated retirement explanation and upgrade evidence address the previous review requests.

Priority: P2
Reviewed head: 35cfdcd7da57dd087668379dc253c557952bf474

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent simplification with substantial real-flow evidence and no supported correctness findings; ordinary exact-head CI requirements remain.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Inspected screenshots show the scanner-to-chat transition, and the complete captured body reports the actual Workshop button through a matching Gateway/UI and real provider, including Auto application, Propose preservation, Stop, rejection, and upgrade preservation. Video playback was unavailable, without invalidating this independent evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Inspected screenshots show the scanner-to-chat transition, and the complete captured body reports the actual Workshop button through a matching Gateway/UI and real provider, including Auto application, Propose preservation, Stop, rejection, and upgrade preservation. Video playback was unavailable, without invalidating this independent evidence.
Evidence reviewed 8 items Introduced session flow: The merge-base-to-head diff adds ordinary sessions.create admission, preserves accepted and rejected initial turns, and limits navigation to the current page scope.
Current-main necessity: Fetched main still dispatches historyStatus and historyScan to the separate scanner; the requested cutover is not already implemented there.
Shipped compatibility boundary: The latest supplied release, v2026.9.3, contains working scanner handlers. The branch intentionally changes those calls to retirement errors rather than silently granting them normal-session behavior.
Findings None None.
Security None None.

How this fits together

Workshop turns lessons from agent conversations into reusable skills. Its new action sends learning instructions through ordinary session creation, where users can watch progress, stop work, and review results.

flowchart TD
  A[Workshop learning action] --> B[Normal session admission]
  B --> C[Agent reads accessible conversations and skills]
  C --> D[Current learning mode and permissions]
  D --> E[Skill improvements or pending proposals]
  E --> F[Visible chat results and follow-up]
Loading

Before merge

  • Resolve merge risk (P1) - Existing historyStatus/historyScan clients will receive errors, and saved scan cursors or pending scan batches will no longer resume. This is the documented cutover tradeoff; supplied upgrade evidence covers preservation of installed skills and proposal records.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -1750, Tests -1635, Docs 0, Other -21. Total -3406 across 72 files.

View PR surface stats
Area Files Added Removed Net
Source 42 190 1940 -1750
Tests 24 186 1821 -1635
Docs 4 45 45 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 10 31 -21
Total 72 431 3837 -3406

Review metrics

Metric Value Why it matters
Legacy RPC behavior 2 existing methods become explicit retirement errors The compatibility change affects existing scan callers while preserving method registration and parameter validation.

Stored data model

Persistent data-model change detected: database schema: src/agents/tools/skill-workshop-tool-schema.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Proceed with the documented cutover (recommended)
    Accept the explicitly described scanner retirement using the supplied upgrade-preservation evidence and retain actionable errors for legacy callers.

Technical review

Best possible solution:

Keep one visible learning-session flow, with the documented scanner retirement and upgrade-preservation evidence protecting existing skills and proposals.

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

Not applicable as a defect reproduction: this changes the learning workflow, and baseline source plus inspected screenshots establish the previous scan-panel behavior.

Is this the best way to solve the issue?

Yes. Reusing normal session admission, chat progress, cancellation, and failed-message recovery removes the competing scanner lifecycle; the updated body explains the deliberate compatibility tradeoff.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against e529bf8ebf92.

Labels

Label changes:

  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is live_output.

Label justifications:

  • P2: This is a bounded Workshop usability improvement with meaningful existing-client compatibility implications.
  • merge-risk: 🚨 compatibility: Two shipped scanner methods stop performing scans, and saved scan batches no longer resume after the intentional cutover.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Inspected screenshots show the scanner-to-chat transition, and the complete captured body reports the actual Workshop button through a matching Gateway/UI and real provider, including Auto application, Propose preservation, Stop, rejection, and upgrade preservation. Video playback was unavailable, without invalidating this independent evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected screenshots show the scanner-to-chat transition, and the complete captured body reports the actual Workshop button through a matching Gateway/UI and real provider, including Auto application, Propose preservation, Stop, rejection, and upgrade preservation. Video playback was unavailable, without invalidating this independent evidence.

Evidence

What I checked:

  • Introduced session flow: The merge-base-to-head diff adds ordinary sessions.create admission, preserves accepted and rejected initial turns, and limits navigation to the current page scope. (ui/src/pages/skill-workshop/skill-workshop-page.ts:354, 35cfdcd7da57)
  • Current-main necessity: Fetched main still dispatches historyStatus and historyScan to the separate scanner; the requested cutover is not already implemented there. (src/gateway/server-methods/skills-proposal-history.ts:10, e529bf8ebf92)
  • Shipped compatibility boundary: The latest supplied release, v2026.9.3, contains working scanner handlers. The branch intentionally changes those calls to retirement errors rather than silently granting them normal-session behavior. (src/gateway/server-methods/skills-proposal-history.ts:10, 1391f7cd2d40)
  • Previous review requests addressed: The supplied complete PR body, in context revision e46f4e16baac47cfaced9169664c194982dfeee383bff64bd1c167ea2aa7f289, explicitly records the requested scanner retirement. It also reports reopening a baseline-created profile with the candidate: installed skill content and proposal inspection results remained byte-identical, the pending proposal stayed pending, and both legacy calls returned the expected retirement error. These address the previous cutover-intent and upgrade-proof requests. (35cfdcd7da57)
  • Real behavior evidence: Inspected both downloaded screenshots: the baseline shows scan counters, while the candidate shows learning instructions and Workshop/Sessions tool activity in chat. The captured body additionally reports real-provider Auto and Propose outcomes, Stop, follow-up, disabled self-learning, and visible send-policy rejection. Video inspection was unavailable: preparation reported missing ffprobe, and the browser fallback returned a cache miss; the independently inspected screenshots and reported runtime observations remain usable. (35cfdcd7da57)
  • Existing authorization and storage owners retained: The new launch supplies no permission or tool override. Existing session creation delegates the initial message to chat.send with the requesting client; existing Workshop lifecycle approval policy remains intact. Storage-related edits remove an unused export and scanner query without changing SQLite schema or proposal write semantics. (src/gateway/server-methods/sessions-create.ts:618, 35cfdcd7da57)

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-09T07:06:32.444Z sha f23a388 :: blocked before merge. :: none
  • reviewed 2026-09-09T07:24:18.038Z sha 35cfdcd :: blocked before merge. :: none

@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 9, 2026
@obviyus

obviyus commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

The remaining CI failure is unrelated to this PR.

  • Candidate: run 34323291480, job 102374809405, checks-node-compact-small-29.
  • Failure: test/scripts/mobile-release-authority.test.ts:2182, “keeps the Android emulator diagnostic manual, exact-SHA-bound, and secretless.” The one-second fixture expects observation_stop=observation-cap-reached; it received observation_stop=adb-devices-timeout.
  • Cause: PR #142835, commit 0367f4d4, added both the one-second assertion and the shell probe's final deadline check. A completed probe observed at that deadline is explicitly marked as timed out, which selects the other diagnostic label. The fake command returned its expected empty device list; this is not an emulator or Workshop failure.
  • Independence: the actual tested merge e5516613 and main parent 38f9a69d have identical test, workflow and relevant dependency/configuration inputs. This case executes extracted Android workflow shell and a fake adb; it does not load Workshop code.
  • Main comparison: the exact-base main run passed but did not select this shard. The introducing commit's main run was cancelled. No matching main failure is claimed; the causal finding is based on the executed source, full dependency path and verified parent diff.

No unrelated CI code was changed or rerun. The one-second diagnostic expectation remains a separate follow-up in the Android release test owner.

@obviyus

obviyus commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-unrelated-red
pr: 142909
head: 35cfdcd
run: 34323291480 attempt: 1
failed: checks-node-compact-small-29 job=102374809405 conclusion=failure
check: openclaw/ci-gate

@obviyus
obviyus merged commit 8a94d5a into main Sep 9, 2026
194 of 197 checks passed
@obviyus
obviyus deleted the codex/workshop-session-mining branch September 9, 2026 07:40
@obviyus

obviyus commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @obviyus!

Merged as 8a94d5a8 from reviewed head 35cfdcd7. Attribution includes Co-authored-by: Ayaan Zaidi <[email protected]>.

Proof: the actual Workshop button opened a normal visible session before model completion. Real-provider runs demonstrated Auto application and Propose preservation; independent acceptance covered progress, Stop, same-session follow-up, manual learning while Self-learning is off, and visible rejected admission. A separate baseline-to-candidate upgrade preserved installed skills and pending proposals byte-for-byte. Both retired scan calls failed with clear guidance. Desktop and narrow-screen button checks passed.

  • Before: manual learning used a hidden, filtered, pending-only scanner with its own runner, cursors and progress state.
  • After: normal session admission and chat own execution, tools, permissions, cancellation, progress and recovery. The compact icon button opens that session directly.
  • Cleanup: 3,406 net lines removed, including 1,750 production lines. No SQLite schema, configuration, permission or budget changes.
  • Review: exact-head ClawSweeper local gate passed with zero findings, security clear and sufficient proof. The hosted review's retirement and upgrade requests are addressed in the PR body and retained evidence; the referenced tool-action schema is not a database schema.

CI exception: completed run 34323291480 had one failed child: checks-node-compact-small-29. Its Android diagnostic fixture expected observation-cap-reached but observed the other supported deadline label, adb-devices-timeout; the aggregate CI gate failed as a result. The conflicting one-second expectation and probe logic were introduced in #142835, 0367f4d4. This test executes no Workshop code, and its workflow/test/dependency inputs match the tested merge's main parent exactly.

The exact-base main run did not select this shard, and the introducing main run was cancelled; no matching main failure is claimed. Causal evidence and the exact-run approval supported the guarded exception. No unrelated CI code was changed or rerun, and main was not rebased into this branch.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
…42909)

Replace the bespoke Workshop history scanner with a normal visible agent session.

Reuse normal session admission, permitted tools, configured model, Auto/Propose behavior, cancellation, and visible failure handling. Remove scanner filtering, batching, progress state, cursors, and obsolete tests. Keep shipped scan methods as explicit retirement errors without deleting installed skills or proposals.

Verified with 158 focused tests, real-provider Auto and Propose proof, independent acceptance, desktop/mobile button proof, and unchanged installed/pending data across a baseline-to-candidate upgrade.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant