Skip to content

fix: restore Doctor deletion recovery CI coverage - #181964

Merged
shakkernerd merged 1 commit into
mainfrom
doctor-deletion-recovery-routing
Oct 23, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
doctor-deletion-recovery-routing

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the Doctor deletion-recovery regression being scheduled in a generic Worker lane, where the real shared-state SQLite owner correctly refuses access because the host broker is unavailable.

Once the file reaches its proper owner, its first case also needs to assert the current test-harness contract: Doctor refreshes the supplied stale discovery and hands both configured database targets to the existing mocked migration owner before that deliberately isolated harness reports its expected incomplete-migration refusal.

User Impact

There is no production behavior change. CI now executes both existing Doctor deletion-recovery cases with the required host-owned broker, preserving the schema-19 fixtures, byte-for-byte database checks, cleanup, timeouts, and the unchanged quarantine case.

The corrected first case observes the real same-invocation handoff instead of inferring success from a later registry, hold-list, count, or log postcondition.

Why This Change Was Made

databaseWorkerCoreTestFiles already owns tests that require physical admission and descriptor custody from the application host. The infra Vitest project consumes that registry with forked processes, while generic projects exclude its entries. Adding this exact file reuses that established routing mechanism.

The initial discovery intentionally knows only main. A case-local spy wraps the already mocked config-flow owner without replacing its implementation, then verifies Doctor calls it once with configured main and newly added late targets. A stale handoff has no active targets, so it cannot satisfy the assertion. The spy is restored in the existing cleanup path.

Evidence

  • The existing scheduled CI failure reached Shared-state admission requires the host broker in the first case before this routing repair.
  • The maintained planner selected the Doctor file exactly once under vitest.infra.config.ts, excluded it from the prior generic Worker lane, and passed the existing routing/planner consumers: 424 tests.
  • Remote changed-file formatting and lint passed.
  • Every selected affected type graph passed.
  • The complete src/flows/doctor-health.deletion-recovery.test.ts file passed both cases under infra forks.
  • The exact published head passed the reviewer-requested three-file command: registry 11/11, scoped Vitest config 22/22, and Doctor deletion recovery 2/2.
  • Full calibrated independent review concluded clean after that command.
  • Canonical P2 autoreview completed three source-context passes with no actionable findings.
  • The committed tree is identical to the remotely validated tree.

Hosted PR CI and the required ClawSweeper review continue on this published head.

@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@shakkernerd shakkernerd self-assigned this Oct 23, 2026
@shakkernerd
shakkernerd merged commit c219a20 into main Oct 23, 2026
126 checks passed
@shakkernerd
shakkernerd deleted the doctor-deletion-recovery-routing branch October 23, 2026 22:21
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: Doctor deletion-recovery CI now runs through the required host-broker route and validates its refreshed migration handoff.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
Restores the Doctor deletion-recovery regression to the host-broker infra route and verifies the refreshed migration handoff.
RomneyDa added a commit that referenced this pull request Oct 26, 2026
#181356 resolves an API-key-only ChatGPT catalog row to the Platform
contract, so the Codex PDF case seeds the OAuth login as main does.
#181923 lets the K3 policy name hosted-catalog K3.1 rows the bundled
manifest lacks. #181804 restores configured stores after journal loss,
so Doctor refuses the legacy schema instead of holding them; the test
takes main's expectations and its host-broker project (#181964). The
Control UI locale artifacts are regenerated for the dropped restart
summary string.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant