Skip to content

fix(e2e): select the synthetic Doctor user bus - #150698

Merged
RomneyDa merged 1 commit into
mainfrom
fix/doctor-switch-synthetic-bus-20260917T0655
Sep 17, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/doctor-switch-synthetic-bus-20260917T0655

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #145370. Split from #150347 at the maintainer's request so the Doctor and plugin-generator repairs have separate scopes.

What Problem This Solves

Fixes the Doctor-switch Docker fixture selecting an unsupported machine-scoped bus probe instead of its mounted synthetic user-bus shim.

User Impact

No production behavior, schema, stored-state, or migration change. This only supplies the disposable test scenario's synthetic bus address and verifies its transport selection.

Why This Change Was Made

The real transport selector needs an explicit session-bus address to reach the existing strict fixture shim. Set that address and its synthetic runtime directory under the scenario's test account home. No real bus, service-manager socket, or host configuration is created or accessed by the regression.

The change is limited to the scenario's environment setup and one targeted test file. It contains no kitchen-sink generator or installation-policy changes.

Evidence

  • On pinned Main c4987966826340590b00b6fa973684172d12300e, the positive transport case fails with systemd-user-bus-unavailable; three negative controls pass.
  • With these four scenario lines, all 4 tests pass through the real transport selector and the existing strict busctl shim. Missing-address machine scope, unavailable bus, auto-start, and foreign-manager probes remain rejected.
  • The persistent-data-model review heuristic on the scenario filename is not applicable: the diff adds only environment variables and comments, not schemas, migration code, file formats, or persisted product state.

This is focused synthetic fixture proof, not full Docker or release qualification. The complete normal changed-check plan on this pinned base passed, including root test types, all script lint, changed-test lint, Docker boundaries, formatting, and dead-export scans. Independent scoped review accepted the exact two-file change with no findings before commit. The normal commit hook preserved those reviewed bytes. Exact-head CI run 35192589450 (attempt 1) completed successfully, including openclaw/ci-gate. This is PR CI proof, not a merge or release-qualification claim.

Supply the disposable Doctor-switch fixture bus address so the real transport selector reaches its strict shim. Add focused transport and rejection controls; no production or persisted-state migration change.

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

clawsweeper Bot commented Sep 17, 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 scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 17, 2026, 3:07 AM ET / 07:07 UTC.

ClawSweeper review

What this changes

The PR gives the Doctor install-switch test scenario an explicit synthetic user-bus address and adds regression coverage for transport selection and rejected probes.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused fixture repair: current main still lacks the synthetic bus address. No introduced correctness or security defect was found, and the protected maintainer label excludes automatic closure.

Priority: P2
Reviewed head: ca77b78f673328279eff9d379ecdf1639f3afd5c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow fixture repair with meaningful positive and negative regression coverage and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor gate does not apply to this bot-authored PR; its reported selector-and-shim regression is focused synthetic evidence, not full Docker or upgrade qualification.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor gate does not apply to this bot-authored PR; its reported selector-and-shim regression is focused synthetic evidence, not full Docker or upgrade qualification.
Evidence reviewed 8 items Introduced scope: The pinned introduction delta and verified test-merge comparison contain only scenario environment setup and the new regression test; unrelated endpoint drift is not attributed to this PR.
Current-main necessity: Current main's service-identity setup exports HOME and USERPROFILE but no bus address. The transport selector and bus shim are unchanged between the pinned merge base and fetched main.
Transport and shim contract: The selector prioritizes an explicit session address; absent sockets and an address, it tries machine scope. The existing shim requires --user first and accepts the non-autostart Version probe. Supplying the fixture address uses this existing contract without changing production routing.
Findings None None.
Security None None.

How this fits together

The Doctor Docker harness checks service maintenance across package and Git installations using mounted service-manager shims. Its scenario environment feeds the production transport selector, which must select the synthetic bus before service inspection can proceed.

flowchart TD
  A[Doctor Docker harness] --> B[Disposable account environment]
  B --> C[Explicit synthetic bus address]
  C --> D[Transport selection]
  D --> E[Mounted bus shim]
  E --> F[Service inspection]
  D --> G[Reject unavailable transport]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +152, Other +4. Total +156 across 2 files.

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

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/doctor-install-switch/scenario.sh. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep synthetic transport setup in the disposable scenario while preserving the strict shim and production service-manager contract.

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

Yes, source establishes the missing-address path from the scenario to a machine-scoped probe rejected by its shim; the PR also reports a failing-before regression. This review did not execute it.

Is this the best way to solve the issue?

Yes. Supplying the existing selector's expected fixture input is narrower than weakening shim validation or changing production fallback behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This repairs a bounded Doctor validation-fixture failure without changing installed-user behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor gate does not apply to this bot-authored PR; its reported selector-and-shim regression is focused synthetic evidence, not full Docker or upgrade qualification.

Label justifications:

  • P2: This repairs a bounded Doctor validation-fixture failure without changing installed-user behavior.
  • 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 ordinary external-contributor gate does not apply to this bot-authored PR; its reported selector-and-shim regression is focused synthetic evidence, not full Docker or upgrade qualification.

Evidence

What I checked:

  • Introduced scope: The pinned introduction delta and verified test-merge comparison contain only scenario environment setup and the new regression test; unrelated endpoint drift is not attributed to this PR. (scripts/e2e/lib/doctor-install-switch/scenario.sh:76, ca77b78f6733)
  • Current-main necessity: Current main's service-identity setup exports HOME and USERPROFILE but no bus address. The transport selector and bus shim are unchanged between the pinned merge base and fetched main. (scripts/e2e/lib/doctor-install-switch/scenario.sh:61, 7a3160e58277)
  • Transport and shim contract: The selector prioritizes an explicit session address; absent sockets and an address, it tries machine scope. The existing shim requires --user first and accepts the non-autostart Version probe. Supplying the fixture address uses this existing contract without changing production routing. (src/daemon/systemd-user-transport.ts:122, ca77b78f6733)
  • Real harness boundary: The Docker entrypoint mounts the strict busctl shim into /usr/local/bin and mounts the target scenario directory read-only. Existing loaded-reader tests independently supply synthetic addresses, explaining why they did not catch the scenario's missing environment setup. (scripts/e2e/doctor-install-switch-docker.sh:38, ca77b78f6733)
  • Focused regression evidence: The fully inspected test extracts and executes the scenario setup inside a temporary home, calls the real selector, and launches only the repository shim. The captured PR body reports the positive case failing before the change and all four tests passing afterward; it expressly excludes full Docker qualification. No tests were executed during this read-only review. (test/scripts/doctor-install-switch-transport.test.ts:35, ca77b78f6733)
  • Release check: The v2026.9.4 scenario also lacks the explicit synthetic address. No shipped implementation of this fixture repair was established. (scripts/e2e/lib/doctor-install-switch/scenario.sh:61, 3a9d69db306c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Compatibility clarification for ca77b78f673328279eff9d379ecdf1639f3afd5c:

The complete commit diff contains only two environment exports and two explanatory comments in the disposable scenario, plus its regression test. It changes no production schema, SQL, migration, serialization, or persisted product-state code. The production transport selector and strict bus shim are unchanged.

The regression runs the setup under a test-owned temporary home and the real selector against that shim. Its original positive case fails before the setup change; all four tests pass afterward, including missing/unavailable bus and unsupported-probe rejection. Full Docker or upgrade qualification is not claimed.

There is therefore no changed persistent data model to migrate. This records the scope evidence for maintainer judgment; it does not alter the bot's verdict or labels, waive any validation gate, or claim that pending CI has passed.

@RomneyDa
RomneyDa merged commit 7f650b5 into main Sep 17, 2026
96 checks passed
@RomneyDa
RomneyDa deleted the fix/doctor-switch-synthetic-bus-20260917T0655 branch September 17, 2026 07:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
Supply the disposable Doctor-switch fixture bus address so the real transport selector reaches its strict shim. Add focused transport and rejection controls; no production or persisted-state migration change.

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

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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.

2 participants