Skip to content

refactor(ui): narrow Skill Workshop proposal context - #146977

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-skill-workshop-context-20260913
Sep 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/test-audit-skill-workshop-context-20260913

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Skill Workshop proposal fixtures carry unrelated gateway stubs because their context type asks for more than the proposal controllers use.

User Impact

No user-visible or runtime behavior change. All existing tests, assertions, and lifecycle cleanup remain intact.

Why This Change Was Made

Limit the proposal context's gateway requirement to snapshot and remove 11 unused fixture members. The full page context still retains ApplicationGateway through its ApplicationContext intersection. Production changes are type-only.

Evidence

  • Normal three-suite UI cohort: 86 passed before and after the change, no skips.
  • Targeted formatting and diff checks passed.
  • Independent scoped P2 review: no findings.
  • All 19 selected changed-file checks passed, including pnpm tsgo:ui.
  • CI i18n source verification passed. Locale parity reported pre-existing generated fallback-baseline drift; that separate command did not pass and is advisory under the existing source-only workflow. The tested merge contains the exact reviewed patch, with unchanged catalog and parity inputs.

No live Gateway, browser, or performance claim.

Related: #139428

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 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 app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 8:06 AM ET / 12:06 UTC (Revision 3).

ClawSweeper review

What this changes

Narrow Skill Workshop proposal controllers to the Gateway snapshot they use and remove unused Gateway stubs from their test fixture.

Merge readiness

✅ Ready for maintainer review

The cleanup remains useful and has no actionable correctness findings. Current main retains the broader type, and the linked maintainer-requested test audit supports this focused refactor.

Priority: P3
Reviewed head: 8f0cbbe1d874cc536b450301037ecbc2286adbab

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable cleanup with preserved controller coverage and no identified defects.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR changes only a production type and unused test stubs; no runtime or visual behavior changes, and no authority-proof exception applies. Reported cohort and typecheck results are supporting validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR changes only a production type and unused test stubs; no runtime or visual behavior changes, and no authority-proof exception applies. Reported cohort and typecheck results are supporting validation.
Evidence reviewed 6 items Introduced change is type-only in production: The verified merge-base-to-head diff changes only the gateway type requirement and removes unused fixture properties; it changes no controller implementation, assertion, authorization check, or lifecycle cleanup.
Full page capability remains intact: SkillWorkshopPageContext intersects ApplicationContext with the narrower controller context. ApplicationContext still supplies the complete ApplicationGateway, including the subscription used by the page. Both proposal controller modules consume only gateway.snapshot.
Retained fixture consumers: The complete proposal-read and lifecycle-action suites retain coverage for agent changes, stale responses, read-only access, revision checks, and timer cleanup. Page tests use a separate context fixture with subscriptions; they import only unchanged proposal data helpers from the modified fixture.
Findings None None.
Security None None.

How this fits together

Skill Workshop lets users inspect and act on skill proposals for the selected agent. Its controllers read connection state and send requests through the Gateway snapshot, then update the Workshop view.

flowchart LR
  A[Selected agent] --> C[Workshop controllers]
  B[Gateway snapshot] --> C
  C --> D[Proposal requests]
  D --> E[Gateway responses]
  E --> F[Workshop view state]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0, Tests -11. Total -11 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 0 11 -11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 1 12 -11

Review metrics

None.

Technical review

Best possible solution:

Keep the controller contract limited to its actual dependencies while preserving the page’s full Gateway interface and existing behavioral coverage.

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

Not applicable: this PR removes unnecessary type requirements and fixture stubs rather than fixing a reported runtime defect.

Is this the best way to solve the issue?

Yes. Pick preserves the authoritative Gateway snapshot type without introducing another interface or changing runtime ownership.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a bounded type and fixture cleanup with no user-visible runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR changes only a production type and unused test stubs; no runtime or visual behavior changes, and no authority-proof exception applies. Reported cohort and typecheck results are supporting validation.

Evidence

What I checked:

  • Introduced change is type-only in production: The verified merge-base-to-head diff changes only the gateway type requirement and removes unused fixture properties; it changes no controller implementation, assertion, authorization check, or lifecycle cleanup. (ui/src/pages/skill-workshop/proposals.ts:55, 8f0cbbe1d874)
  • Full page capability remains intact: SkillWorkshopPageContext intersects ApplicationContext with the narrower controller context. ApplicationContext still supplies the complete ApplicationGateway, including the subscription used by the page. Both proposal controller modules consume only gateway.snapshot. (ui/src/pages/skill-workshop/source-scope.ts:4, 8f0cbbe1d874)
  • Retained fixture consumers: The complete proposal-read and lifecycle-action suites retain coverage for agent changes, stale responses, read-only access, revision checks, and timer cleanup. Page tests use a separate context fixture with subscriptions; they import only unchanged proposal data helpers from the modified fixture. (ui/src/test-helpers/skill-workshop-proposal-fixture.ts:42, 8f0cbbe1d874)
  • Current main and release comparison: Fetched main a67f462 still declares gateway: ApplicationGateway, and its two affected files match the PR merge base. Reading proposals.ts from v2026.9.4 through the GitHub contents API also confirms the broader requirement; this narrowing is not already present in either inspected version. (ui/src/pages/skill-workshop/proposals.ts:55, a67f4624c107)
  • Maintainer campaign and validation context: The supplied body links the open test-audit campaign at Test audit: reduce redundant test code and full-suite runtime #139428 and reports all 86 cohort tests passing before and after, plus UI typechecking and mapped checks. Previous completed reviews recorded no findings. This review ran only read-only inspection and git diff --check, which passed; it did not rerun tests. (8f0cbbe1d874)
  • Relevant merged history: Current-main history identifies 56fcd66 as the recent Workshop consistency change. The GitHub commit endpoint identifies yangxiansheng as its author and shows the shared fixture added there. Some older local history blobs could not be retrieved, so no original-feature attribution is claimed. (ui/src/test-helpers/skill-workshop-proposal-fixture.ts:19, 56fcd66e4848)

Likely related people:

  • Qiong: Raw commit 56fcd66 adds ui/src/test-helpers/skill-workshop-proposal-fixture.ts:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 56fcd66e4848; files: ui/src/test-helpers/skill-workshop-proposal-fixture.ts)

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-13T11:35:20.175Z sha 8f0cbbe :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T11:54:27.361Z sha 8f0cbbe :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 11:48
@vincentkoc
vincentkoc merged commit 730a68a into main Sep 13, 2026
190 checks passed
@vincentkoc
vincentkoc deleted the refactor/test-audit-skill-workshop-context-20260913 branch September 13, 2026 12:07
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (1537 commits)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  perf(sessions): keep cleanup responsive and reuse workers (#140897)
  fix(sessions): prevent stranded writers after abort and restart (#146792)
  refactor: reuse deferred owners in Gateway and infra fixtures (#146809)
  fix: prevent queued conversation replies from switching storage (#146984)
  test(ui): preserve nested failure summaries in CI logs (#146864)
  fix(test): respect process memory limits in local scheduling (#146298)
  fix: validate large media data URLs without regexp stack exhaustion (#146972)
  fix(ui): label model usage contributions as messages (#146735)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* temp/pr-145950: (101 commits)
  refactor(memory-wiki): share freshness result construction (#146935)
  improve(gateway): use metadata projection for presence (#146817)
  test(agents): reuse complete Responses model fixtures (#147015)
  fix(sessions): align the reclamation-memory test with the archive session owner (#147028)
  refactor(terminal): simplify copy-sensitive token checks (#146934)
  refactor(media): remove duplicate spaced path fallback (#146933)
  refactor(cli): reuse command-group names (#146893)
  improve(plugins): reduce JavaScript generation capture work (#146993)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '060e856e5f9df245d63c98990fcb47e18108c6b9': (97 commits)
  refactor(memory-wiki): share freshness result construction (#146935)
  improve(gateway): use metadata projection for presence (#146817)
  test(agents): reuse complete Responses model fixtures (#147015)
  fix(sessions): align the reclamation-memory test with the archive session owner (#147028)
  refactor(terminal): simplify copy-sensitive token checks (#146934)
  refactor(media): remove duplicate spaced path fallback (#146933)
  refactor(cli): reuse command-group names (#146893)
  improve(plugins): reduce JavaScript generation capture work (#146993)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '4aff70f27016f9acf62d0acc19c8bd3592993e4c': (30 commits)
  test: align plugin fixtures with current runtime contracts (#147000)
  refactor(browser): separate session tab tracking from cleanup (#146973)
  fix(tests): make systemd clock fixtures private (#146990)
  fix(linux): retire sleep guards when logind disconnects (#146046)
  refactor(matrix): share draft fallback delivery (#144840)
  fix(sessions): preserve cross-agent replies after reload (#146799)
  test(models): cover quota recovery during catalog discovery (#146708)
  fix(macos): recover browser sign-in when no browser opens (#146787)
  fix(process): prevent one-shot agents exiting while polling (#144268)
  fix(status): label the session inventory as stored (#146979)
  fix: avoid repeated background reads while loading chat (#146953)
  refactor(ui): narrow Skill Workshop proposal context (#146977)
  perf(sessions): keep cleanup responsive and reuse workers (#140897)
  fix(sessions): prevent stranded writers after abort and restart (#146792)
  refactor: reuse deferred owners in Gateway and infra fixtures (#146809)
  fix: prevent queued conversation replies from switching storage (#146984)
  test(ui): preserve nested failure summaries in CI logs (#146864)
  fix(test): respect process memory limits in local scheduling (#146298)
  fix: validate large media data URLs without regexp stack exhaustion (#146972)
  fix(ui): label model usage contributions as messages (#146735)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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