Skip to content

test: route provider integration and wizard recovery tests correctly - #148504

Merged
steipete merged 2 commits into
mainfrom
codex/provider-auth-test-boundary
Sep 14, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/provider-auth-test-boundary

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two test-routing regressions block CI. The registered Radius regression added in #148469 imports a bundled provider from a core test, violating the plugin boundary and pulling extension files into the core type graph. Separately, a stale prerequisite cleanup in #148451 removed the remaining database-worker registration for wizard inference recovery after #148425 had already removed its duplicate. The recovery test then runs in a thread without its required host-owned SQLite broker.

User Impact

CI exercises provider sign-in and wizard recovery through their intended test owners. Production behavior is unchanged.

Why This Change Was Made

Move the two registered Radius cases to the existing root integration suite. They retain real provider registration, the auth adapter, WizardSession, device link/code/expiry assertions, cancellation, and final settlement. The six generic adapter cases remain in core.

Restore exactly one wizard recovery registration in the existing database-worker registry. The original fixture, ordering, recovery assertions, and broker admission guard remain intact.

Evidence

The complete wizard recovery file reproduces the hosted failure before the registration repair (7/8 pass in wizard/threads) and passes all eight cases afterward in infra/forks. Another 75 existing routing, configuration, and CI-planner cases pass. Direct planner checks confirm one registration, one local owner, one CI owner, and exclusion from the thread-based wizard project.

All 21 selected provider, integration, and boundary tests pass. The previously failing core type-graph guard, root-test typecheck, targeted lint, formatting, and diff checks pass. Fresh isolated review through P2 found no actionable findings in either repair. The full changed-source gate and package build were outside this test-only validation scope; hosted CI remains required before landing.

Preserves the regression coverage contributed by @obviyus in #148469.

…tests

Move the existing Radius registration and device-code cancellation flow to the
root integration suite so core tests no longer pull the bundled provider into
their type graph. Preserve generic auth adapter coverage and all flow assertions.

Co-authored-by: Ayaan Zaidi <[email protected]>
@steipete steipete self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 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 size: S maintainer Maintainer-authored PR labels Sep 14, 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 4:20 PM ET / 20:20 UTC (Revision 2).

ClawSweeper review

What this changes

Moves Radius sign-in integration tests out of the core test graph and restores wizard recovery tests to workers that support SQLite.

Merge readiness

✅ Ready for maintainer review

Keep open: both test-routing defects remain on the supplied main revision, and this focused repair preserves regression coverage. No actionable introduced defect was found.

Priority: P3
Reviewed head: 0f02f412db5a674d27c87c925e406435c1f1e013

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair that preserves meaningful coverage and uses existing routing contracts, with no actionable finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR changes only test coverage placement and execution routing, so the external-contributor runtime-proof gate does not apply; reported test results directly address those changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR changes only test coverage placement and execution routing, so the external-contributor runtime-proof gate does not apply; reported test results directly address those changes.
Evidence reviewed 6 items Introduced scope and review continuity: The pinned merge-base-to-head diff matches the three supplied introduced files. Comparison with the previous reviewed head shows only the wizard registry addition; the Radius relocation is unchanged. The previous review retained no findings.
Radius coverage remains necessary: Supplied current main still imports the Radius plugin directly into the core test. The branch retains both registered-provider cases, device destination/code/expiry checks, cancellation and settlement in the root test suite, alongside six generic core adapter cases. The core type-graph guard explicitly rejects extension files; root tests have their own typechecking project.
Wizard repair remains necessary: Supplied current main omits the recovery suite from the database-worker registry. The existing infra configuration includes this registry with forks, while the wizard configuration excludes it. Shared-state SQLite admission rejects execution outside the process main thread.
Findings None None.
Security None None.

How this fits together

OpenClaw’s test configuration assigns suites to typechecking projects and execution workers. Provider integration tests need plugin access, while wizard recovery tests need the process-owned SQLite broker.

flowchart TD
  A[Provider and wizard tests] --> B[Test routing configuration]
  B --> C[Generic core adapter tests]
  B --> D[Root provider integration tests]
  B --> E[Forked wizard recovery tests]
  E --> F[SQLite broker]
  C --> G[CI regression results]
  D --> G
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +12. Total +12 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 63 51 +12
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 63 51 +12

Review metrics

None.

Technical review

Best possible solution:

Keep provider-specific regression coverage in the root integration suite and use the shared worker registry as the single owner of SQLite-dependent test routing.

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

Yes, from source: main’s core test imports a forbidden extension, and the unregistered wizard recovery suite reaches SQLite admission from a thread worker. The author reports before/after execution; this review did not run tests.

Is this the best way to solve the issue?

Yes. The patch reuses existing integration and worker-routing owners while preserving assertions, fixtures, cancellation cleanup and broker safeguards.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a focused internal test-routing repair with no production behavior 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: The maintainer-authored PR changes only test coverage placement and execution routing, so the external-contributor runtime-proof gate does not apply; reported test results directly address those changes.

Evidence

What I checked:

  • Introduced scope and review continuity: The pinned merge-base-to-head diff matches the three supplied introduced files. Comparison with the previous reviewed head shows only the wizard registry addition; the Radius relocation is unchanged. The previous review retained no findings. (test/vitest/vitest.database-worker-core-paths.mjs:10, 0f02f412db5a)
  • Radius coverage remains necessary: Supplied current main still imports the Radius plugin directly into the core test. The branch retains both registered-provider cases, device destination/code/expiry checks, cancellation and settlement in the root test suite, alongside six generic core adapter cases. The core type-graph guard explicitly rejects extension files; root tests have their own typechecking project. (src/plugins/provider-auth-method.test.ts:2, dcc64f10d5c4)
  • Wizard repair remains necessary: Supplied current main omits the recovery suite from the database-worker registry. The existing infra configuration includes this registry with forks, while the wizard configuration excludes it. Shared-state SQLite admission rejects execution outside the process main thread. (test/vitest/vitest.database-worker-core-paths.mjs:9, dcc64f10d5c4)
  • Existing routing contract: The CI planner consumes the same registry for infra storage-state shards. Existing routing tests verify that each registered suite is admitted to infra and excluded from former owners, including wizard. The added recovery entry occurs once. (test/scripts/ci-node-test-plan.test.ts:3144, 0f02f412db5a)
  • Related merged work and routing candidates: Main history and supplied GitHub context connect the preserved auth coverage to fix(auth): retain sign-in links for local clients #148469 and registry maintenance to test(ci): deduplicate database worker registry #148425 and fix(browser): enable paste into agent browser panels #148451. These merged changes provide context, not a replacement fixing PR. Deeper blame traversal encountered unavailable historical blobs, so no source-line introduction attribution is asserted. (test/vitest/vitest.database-worker-core-paths.mjs, dcc64f10d5c4)
  • Validation and release context: The captured PR body reports wizard recovery improving from 7/8 cases in threads to 8/8 in forks, 75 routing/configuration/planner passes, and 21 provider/integration/boundary passes. These are author-reported results; this read-only review ran no tests. Diff whitespace validation passed. The latest supplied release is v2026.9.4; no shipped fix is established, and both defects remain on supplied main. (0f02f412db5a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: 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 (1 earlier review cycle)
  • reviewed 2026-09-14T20:04:00.543Z sha aaea5b1 :: needs maintainer review before merge. :: none

@steipete steipete changed the title test: move registered provider auth coverage to integration suite test: route provider integration and wizard recovery tests correctly Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 20:09
@steipete
steipete merged commit 867e655 into main Sep 14, 2026
210 of 213 checks passed
@steipete
steipete deleted the codex/provider-auth-test-boundary branch September 14, 2026 20:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 14, 2026
* origin/main:
  perf(secrets): keep pure helpers out of file writer imports (#148096)
  perf(models): normalize suppression policy once per compilation (#148428)
  test: route provider integration and wizard recovery tests correctly (#148504)
  test: reuse prepared bundled plugins in startup corpus (#148465)
  fix(agents): attribute tool preparation delays to the correct stages (#148349)
  refactor: remove redundant Parallels source checks (#148394)
  fix(test): avoid timeout failures before descendant readiness (#148410)
  fix: open browser side panel without creating a dashboard (#148471)
steipete added a commit that referenced this pull request Sep 14, 2026
* perf(sessions): reduce redundant SQLite scans

* style(acp): avoid shadowed query builder names

* test(ui): exercise session eviction through the wizard choice button

* test(ui): wait for the current publication subscription

* test(ci): protect wizard recovery broker routing

Retain the routing regression from #148442 while inheriting the canonical registration repair in #148504. Require one infra registration and exclusion from the thread-based wizard project.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…penclaw#148504)

* test(plugins): keep registered provider auth coverage in integration tests

Move the existing Radius registration and device-code cancellation flow to the
root integration suite so core tests no longer pull the bundled provider into
their type graph. Preserve generic auth adapter coverage and all flow assertions.

Co-authored-by: Ayaan Zaidi <[email protected]>

* test: restore database worker routing for wizard recovery

---------

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* perf(sessions): reduce redundant SQLite scans

* style(acp): avoid shadowed query builder names

* test(ui): exercise session eviction through the wizard choice button

* test(ui): wait for the current publication subscription

* test(ci): protect wizard recovery broker routing

Retain the routing regression from openclaw#148442 while inheriting the canonical registration repair in openclaw#148504. Require one infra registration and exclusion from the thread-based wizard project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: S 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