Repository navigation
refactor(workboard): deslop workboard - #165350
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 5, 2026, 3:31 AM ET / 07:31 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR consolidates Workboard’s Gateway registration, SQLite writes, lifecycle updates, and browser session helpers while preserving existing behavior and interfaces. Warning SQLite table change This PR modifies persisted SQLite tables in Merge readiness⛔ Blocked before merge - 1 item remains The prior blocker is fixed, and no remaining actionable defect was found. This is useful, maintainer-owned cleanup that current main and the related merged PRs do not supersede. Priority: P3 Review scores
Verification
How this fits togetherWorkboard is an optional plugin that organizes agent work cards and existing sessions in the Control UI. Browser actions and agent lifecycle observations feed its Gateway and storage owners, which persist board state and return updated cards or session views. flowchart TD
A[Browser board actions] --> B[Gateway registration]
B --> C[Workspace and caller checks]
C --> D[Workboard store]
E[Agent lifecycle observations] --> D
D --> F[SQLite worker]
D --> G[Updated cards and board views]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -458, Tests 0. Total -458 across 21 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep a single owner for Workboard registration and persistence mappings while retaining its existing RPC, storage, and session behavior. Do we have a high-confidence way to reproduce the issue? Not applicable to the cleanup itself. The previous missing-import defect is repaired in source, and the affected exact-head CI check now passes. Is this the best way to solve the issue? Yes. The consolidation removes forwarding and mirrored definitions while preserving the existing owners’ checks, ordering, and public contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 56bdfc723e0d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
bc076a0 to
4ee5418
Compare
|
Landing evidence for exact head CI run 37277681801 has one non-aggregate failure: The identical diagnostic occurs in the current run for unrelated PR #165371 at head The fail-fast monitor and aggregate gate identify job 111658879659 as the originating failure. UI shards 2/3 and 3/3 were cancelled afterward; their logs show cancellation, not failing assertions. The Workboard extension bundle, changed Node tests, production types, extension lint, package boundaries, security-fast, and security/dependency review passed. Both local cycle checks report zero; focused consolidated storage tests pass all 8 cases, and earlier full-feature proof passed 665 tests. Cancelled jobs are not claimed as passing. Proceeding with the explicitly authorized squash merge pinned to this exact head; no CI rerun or unrelated code changes. |
* refactor(workboard): deslop workboard * chore(workboard): regenerate browser asset manifest * style(workboard): avoid shadowing gateway input * test(workboard): use gateway entry after test consolidation
a45b878 (openclaw#165350) consolidated the resolver's callers into its owning module but left its export behind, failing the production Knip check. Remove only the unused export; workspace authorization behavior is unchanged.
What Problem This Solves
Workboard repeats responsibility across Gateway registration wrappers, persistence type mirrors, SQL upsert assignments, and single-caller browser adapters.
User Impact
No user-visible change. Features, tool names/parameters/descriptions, CLI and RPC shapes, configuration, SQLite schema, and visible UI are preserved. No migration or operator action is required.
Why This Change Was Made
Production source: 31,897 → 31,439 lines, −458 (1.44%). This is one accepted BELOW-1000 batch; the full large-file coverage log is below. The Gateway implementation alone shrinks from 837 to 580 lines. No feature was removed to reach the count.
Evidence
Current head:
471f63569cede03dd03ad39cae165186fec448c8. Exact-head hosted CI completed with one inherited core test-type failure; the coordinator-authorized exception is documented below.node scripts/run-vitest.mjs extensions/workboardandnode scripts/run-vitest.mjs run --config test/vitest/vitest.ui.config.ts extensions/workboard/browser. The conflict-only rebase preserves upstream test consolidation from test(agents,cli,gateway,plugins): remove low-value tests (batch d209) #165336. Its moved schema-reopening case now calls the public Gateway entry point; all assertions remain unchanged. The complete consolidated storage file passes all 8 tests (426.63 seconds single-file wall time on the loaded local host). Production TypeScript bytes are unchanged by the conflict repair.no-shadowviolation in the registration callback. The corrected binding passes direct lint, the focused CRUD registration test, and independent review. Both complete-refactor and correction reviews are scoped-clean through P2.978d51c1058: 0 cycles. Madge also passed with zero on the corrected production bytes. After adapting the consolidated test caller, both cycle checks again report zero on the published source. No production rewrite was needed.scripts/bundled-plugin-assets.mts --phase build --plugin workboardand reproduced identically after rebase. Only the generated entry/style hashes differ; other plugin metadata and config remain unchanged. Formatting andgit diff --checkpass.nice -n 15and one test worker. Backend wall time was 5,058.86 seconds and browser wall time 167.70 seconds under host load. Full hosted checks remain the final gate.Landing evidence for exact head
471f63569cede03dd03ad39cae165186fec448c8under the coordinator's inherited-main-failure exception.CI run 37277681801 has one non-aggregate failure:
check-test-types-core-5, job 111658879659.src/gateway/server-lifecycle.catalog-write.test.ts:162reports TS2739: missingresolveGatewayContextandloadSubagentRegistryActivation.The identical diagnostic occurs in the current run for unrelated PR #165371 at head
7644547bda7b4e9e64124f54c6f0772a031e2b0c: job 111658652158. Neither PR changes this test or its startup-observer owner. This Workboard diff changes onlyextensions/workboard/**; the missing arguments are in the unchanged core caller. Main already repaired the two omitted arguments ine78e965a55e2d2b121c61d0a93e571c26f6f50f8.The fail-fast monitor and aggregate gate identify job 111658879659 as the originating failure. UI shards 2/3 and 3/3 were cancelled afterward; their logs show cancellation, not failing assertions. The Workboard extension bundle, changed Node tests, production types, extension lint, package boundaries, security-fast, and security/dependency review passed. Both local cycle checks report zero; focused consolidated storage tests pass all 8 cases, and earlier full-feature proof passed 665 tests. Cancelled jobs are not claimed as passing.
Proceeding with the explicitly authorized squash merge pinned to this exact head; no CI rerun or unrelated code changes.
Full production-file coverage
Workboard simplification coverage
Base:
a37950a0b4a05d15887f2b038479f6796f9e40bc. Production source counts include TypeScript and CSS; exclude tests, test support, fixtures, generated translations/manifests and binary assets.Production source: 31,897 → 31,439 lines; −458 (1.44%). Below the 1,000-line and 20% targets.
All production source was read across the persistence, service and browser responsibilities. Every production source file above 200 lines appears below, sorted by original size. No feature, model-facing contract, schema, or visible UI was removed. No PETER DECISION changes were implemented.
browser/styles/workboard.csssrc/store-normalizers.tssrc/store-core.tssrc/sqlite-store-kernel.tssrc/store-card-helpers.tsbrowser/pages/workboard/view-card.tsbrowser/pages/workboard/view.tssrc/store.tsbrowser/pages/workboard/view-card-details.tssrc/store-workflow.tsbrowser/pages/workboard/view-card-modal.tssrc/sessions-board.tssrc/lifecycle-sync.tssrc/dispatcher.tsbrowser/pages/workboard/view-selection.tsbrowser/pages/workboard/workboard-page.tsbrowser/pages/workboard/view-inline-properties.tssrc/gateway.tssrc/tools.tssrc/sqlite-store-records.tssrc/workspace-access.tsbrowser/lib/workboard/mutations.tsbrowser/i18n/locales/en.tsbrowser/pages/workboard/view-board-modal.tssrc/sqlite-store-schema.tsbrowser/pages/workboard/sessions-board-controller.tssrc/tools-orchestration.tsbrowser/pages/workboard/view-card-actions.tsbrowser/pages/workboard/view-helpers.tsbrowser/lib/workboard/card-state.tsbrowser/pages/workboard/view-filter-controls.tsbrowser/pages/workboard/view-card-content.tsbrowser/pages/workboard/view-card-detail-records.tsbrowser/lib/workboard/metadata-normalization.tssrc/store-enrichment.tssrc/sqlite-store-write.tssrc/cli.tsbrowser/lib/workboard/execution.tsbrowser/components/toast.tssrc/store-boards.tsbrowser/pages/workboard/view-automation.tssrc/store-runtime.tssrc/sqlite-store.tsbrowser/pages/workboard/view-session-status.tsbrowser/widgets/runtime.tssrc/command.tsbrowser/lib/workboard/loading.tsbrowser/widgets/render.tsbrowser/pages/workboard/view-sessions-board.tssrc/store-inputs.tssrc/gateway-helpers.tsPlugin manifest:
openclaw.plugin.json(240 lines), READ — plugin metadata and config contract retained byte-for-byte; only generated browser entry/style hashes refreshed.