Skip to content

fix(workboard): await owner RPC handlers consistently - #190044

Merged
roboclaw-bot merged 1 commit into
mainfrom
main-ci/l192-lint
Nov 1, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
main-ci/l192-lint

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the deterministic Workboard consistent-return failure in the extensions lint stripe, observed while repairing main CI run 41265289027.

User Impact

No user-visible behavior change. Owner RPC requests still wait for the operation and response to settle.

Why This Change Was Made

Make the existing owner wrapper async and await its handler so validation and dispatch consistently return void. Owner validation and live-authority checks stay in their existing owner. The complete change is two added and two removed lines; no new helpers or tests.

Evidence

  • Original lane l192 reproduced the lint failure before the fix and passed afterward. Original job logs were unavailable; the replay establishes this concrete defect, without claiming it was the only original job failure.
  • Fresh proof after rebasing onto 6e7bded586f7: focused CI-mode lint passed; full CI-mode extensions stripe 2/3 passed all eight leaves, including diagnostic parity. Existing Solid warnings are unchanged.
  • Existing production Gateway-handler suites passed 31/31 cases with real isolated SQLite. Focused production typecheck, formatting and whitespace checks passed. No full Gateway/model boot is claimed.
  • Fresh canonical Codex autoreview, P0–P2: scoped-clean, no findings, one complete pass. Reviewed base 6e7bded586f7 and local head 17159fde29e069213004847f0e493bb90f6e9324; published commit has the same reviewed tree. Reviewer assessed supplied source and validation evidence without executing the tests.
  • Checked post-failure main history and open Workboard PR diffs: no duplicate owner-wrapper repair found. The separate dependency repair is already owned by fix(release): remove unused publication observer export #190026 and is excluded.

Keep accepted owner RPC requests awaited while using a consistent void
result on both validation and dispatch paths.

Co-authored-by: steipete <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 1, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 03:33
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes the Workboard owner RPC wrapper async and awaits its existing handler to satisfy consistent-return linting.

Example: Linting extensions/workboard/src/gateway.ts with typescript/consistent-return enabled

  • Before: The owner wrapper mixes a bare validation return with a Promise-returning dispatch return.
  • After: Both branches consistently complete without returning a value, and dispatch remains awaited.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and source-supported, with passing exact-head targeted checks; runtime confidence rests on reported in-process coverage rather than shipped-entry-point evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored lint repair falls outside the ordinary contributor runtime-proof gate; the supplied evidence reports production-handler tests with isolated SQLite and expressly claims no full Gateway boot.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: There is no reported runtime behavior defect; the existing owner wrapper fails the configured lint contract.
Reason: The maintainer-authored direction is established, and the minimal change repairs validation without changing product behavior.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it makes a focused lint repair while preserving owner RPC completion and authorization behavior; no actionable code defects were found.

Priority: P3
Reviewed head: b952dfba8f36c5853df50685c2a9cf90766f5cd9

Before merge

None.

Findings

None.

Agent review details

How this fits together

Workboard CLI owner RPCs enter the plugin Gateway wrapper, validate the expected owner, and delegate to the existing store operation and response handler.

flowchart LR
  A[Workboard CLI] --> B[Gateway RPC adapter]
  B --> C[Owner wrapper]
  C --> D[Existing request handler]
  D --> E[Workboard store]
  D --> F[RPC response]
Loading

Technical review

Best possible solution:

Retain this minimal wrapper repair and the existing owner validation, response handling, and settlement lifecycle.

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

The base wrapper visibly mixes bare and value returns while typescript/consistent-return is enabled; the PR reports a failing-base/passing-head replay, and exact-head extensions lint passes, but no checks were run during this read-only review.

Is this the best way to solve the issue?

The existing wrapper is the correct owner for this repair: async plus await preserves completion and rejection propagation without adding machinery, suppressions, or redundant tests.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Workboard owner RPC wrapper keeps the original intent (c4e70bc: Route CLI operations through the resident Gateway owner to preserve cache visibility, authority checks, and accepted-work settlement.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The introduced diff only adds async to the existing wrapper and replaces return requestHandler(request) with await requestHandler(request). (extensions/workboard/src/gateway.ts:338, b952dfba8f36)
  • Current main still needs the repair: Fetched main retains the mixed-return wrapper; comparison with the reviewed head shows the same focused repair. (extensions/workboard/src/gateway.ts:338, 7e8e26bd413e)
  • Original owner-routing intent preserved: The original owner-routing implementation in fix(workboard): keep CLI changes visible to the running Gateway #168457 deliberately reused the live Gateway store and preserved accepted-work settlement; this PR leaves that implementation and its guards intact. (extensions/workboard/src/gateway.ts:335, c4e70bc82a5f)
  • Exact-head validation: GitHub reports successful extensions lint, production types, test types, and changed-extension test checks on the reviewed head; PostgreSQL conformance checks remained in progress, so no complete CI pass is claimed. (b952dfba8f36)
  • Existing boundary coverage: The owner suite exercises resident-store visibility, uncertain delivery without replay, revoked authority, accepted/rejected launch settlement, and offline CLI behavior through captured production handlers. (src/cli/workboard-owner.test.ts:64, b952dfba8f36)
  • Policy and history inspection: Root and extensions guidance and pr-simplify steps 1–3 were applied; no deeper Workboard AGENTS.md or maintainer-notes directory exists. Feature history identifies the owner-routing introduction and subsequent Workboard refactors; older history traversal eventually encounters unavailable promisor objects without affecting the verified changed-line provenance. (extensions/AGENTS.md:1, b952dfba8f36)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: This is a narrow lint repair with no intended user-visible behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow lint repair with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 11:47 PM ET / November 1, 2026, 03:47 UTC.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 1, 2026 03:50
@roboclaw-bot
roboclaw-bot merged commit c2a39e4 into main Nov 1, 2026
189 of 190 checks passed
@roboclaw-bot
roboclaw-bot deleted the main-ci/l192-lint branch November 1, 2026 03:58
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
Keep accepted owner RPC requests awaited while using a consistent void
result on both validation and dispatch paths.

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

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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