Repository navigation
refactor(skills): consolidate workshop transcript and record normalization - #119643
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 10:16 AM ET / 14:16 UTC. ClawSweeper reviewWhat this changesThis PR centralizes skills-workshop current-turn selection, model-iteration counting, and record/JSON normalization while removing equivalent local implementations. Merge readinessKeep this PR open for normal maintainer handling: the protected Priority: P3 Review scores
Verification
How this fits togetherSkills Workshop consumes agent transcripts to create research suggestions, schedule experience reviews, and scan historical sessions. It also validates persisted proposal and rollback records before the workshop uses them. flowchart LR
A[Agent transcript] --> B[Turn and iteration normalization]
B --> C[Research autocapture]
B --> D[Experience review]
A --> E[History scan filtering]
F[Stored workshop row] --> G[Record and JSON normalization]
G --> H[Validated proposal state]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -71. Total -71 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one canonical transcript and normalization path, then land this net-negative refactor once exact-head CI and normal maintainer review complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a behavior-preserving refactor, and source inspection shows the substituted helpers retain the prior semantics. Is this the best way to solve the issue? Yes: locating the shared transcript helpers with their rendering owner removes duplicated policy while callers retain their distinct capture, review, and history boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against acc31c3af3b1. 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.
|
…cope * origin/main: (70 commits) fix(clickclack): preserve MIME extension for unnamed uploads (openclaw#119646) fix(memory): keep post-ready RPCs responsive (openclaw#119710) fix(browser): preserve locale, timezone, and device overrides (openclaw#119695) fix(agents): stop messaging dedupe from dropping final replies that quote a short tool send (openclaw#118178) test(agents): batch code mode budget proof (openclaw#119699) fix(memory): keep gateway RPCs responsive during startup (openclaw#119676) improve(ui): trail transient session status beside row actions (openclaw#119560) refactor(msteams): consolidate channel action target resolution (openclaw#119632) fix: tail context answers the current user message (openclaw#117364) fix(whatsapp): exercise descriptor-safe credential persistence (openclaw#119621) fix(diagnostics-otel): route OTLP endpoints by signal (openclaw#101655) refactor(skills): consolidate workshop transcript and record normalization (openclaw#119643) fix(video): harden DashScope task and media lifecycle (openclaw#117303) refactor(transcripts): consolidate persistence and export ownership (openclaw#119634) fix: preserve ClickClack discussion state contracts (openclaw#118851) fix(matrix): retire shared E2EE clients safely (openclaw#119570) refactor(cron): unify catch-up persistence and payload encoding (openclaw#119636) refactor(ui): centralize composer attachment and capability controls (openclaw#119650) refactor(daemon): consolidate managed service lifecycle ownership (openclaw#119647) fix(browser): honor explicit navigation timeouts across browser drivers (openclaw#119654) ...
What Problem This Solves
Skills research autocapture, live workshop review, and historical scanning independently selected the current user turn and counted assistant/model iterations. Workshop state, proposal provenance, and persisted proposal/rollback records separately implemented record guards, JSON parsing, metadata normalization, and invalid-record errors.
Why This Change Was Made
Make the existing workshop transcript owner canonical for current-turn selection and model-iteration counting. Reuse the existing public normalization-core record, string, and JSON helpers across lifecycle, provenance, and persistence boundaries; preserve hostile-array rejection, originating-run validation, mutation-replay suppression, and persisted proposal/rollback discriminators while removing connected duplicate paths.
User Impact
Research autocapture, experience review, history scanning/resume, evaluation/auto-apply, lifecycle hooks, provenance checks, and persisted rollback retain their existing behavior. Model-visible transcript and prompt bytes remain unchanged, with no additional or unbounded model context. Nine production files change by +87/-158 (71 fewer production lines); there are no test, config, schema, package-export, or public API changes.
Evidence
tbx_01kz92zzzprgzcbhk4qz5wcwng): 14 focused suites, 172 tests passed, covering lifecycle, research autocapture/auto-apply, experience review/auto-apply, history scan/resume, record/store persistence, service/evaluation/lifecycle, and prompt authoring.pnpm check:changedpassed on the same lease, including core and core-test typechecks, formatting, lint, plugin boundaries, all three dead-export scans, database/schema guards, and zero runtime import cycles: https://github.com/openclaw/openclaw/actions/runs/31012107778gpt-5.6-solwithxhighreasoning: clean, confidence 0.97; no actionable findings.git diff --checkpassed; the sole owned Testbox lease was stopped and independently verified completed.