Repository navigation
fix: apply doctor service identity per flow - #116265
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 2:38 AM ET / 06:38 UTC. ClawSweeper reviewWhat this changesThe PR updates the doctor install-switch Docker scenario so each normal service flow creates its own isolated state before switching to the default OS service identity, with a focused source guard for that ordering. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this PR open for normal maintainer review. The patch cleanly separates per-flow test-state creation from adopting the canonical service account, but the supplied evidence is static/suite validation rather than an after-fix doctor install-switch run; the protected Priority: P3 Review scores
Verification
How this fits togetherThe doctor install-switch scenario validates how OpenClaw installs and repairs its gateway service in Docker under several environment conditions. Each flow prepares state and environment variables, executes install/doctor commands, then inspects the resulting service artifacts and logs. flowchart TD
A[Doctor switch scenario] --> B[Create flow-specific test state]
B --> C[Adopt canonical OS service identity]
C --> D[Run install or doctor command]
D --> E[Inspect service artifacts and logs]
E --> F[Release-validation result]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +1, Other +2. Total +3 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the per-flow state creation plus canonical identity helper split, and add redacted after-fix Docker doctor install-switch evidence covering the normal, proxy-environment, and wrapper flows before merge. Do we have a high-confidence way to reproduce the issue? No high-confidence runtime reproduction was provided. The source diff clearly identifies the affected three scenario flows, but the available evidence does not include a completed current-head Docker doctor install-switch execution. Is this the best way to solve the issue? Yes, conditionally. Splitting flow-local state creation from canonical service identity selection is the narrowest maintainable boundary shown by the patch, provided a real scenario run confirms each changed flow. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against eb263c5104c3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Release-owner decision: land the per-flow identity boundary now; beta.6 Full Release Validation will provide the after-fix doctor-switch Docker artifact. The optional Rank-up moves are intentionally deferred because the trusted scenario correction must first be on main to validate the release candidate. The patch changes only the Docker harness, preserves the intentional cross-state flow, and leaves product safety untouched. Exact-head CI run 30519992581 is fully green, including |
|
Merged via squash.
|
* origin/main: (24 commits) fix(e2e): apply default service identity per flow (openclaw#116265) chore(android): record 2026.7.4 Play metadata fix(ci): accept one verified Telegram SUT launch (openclaw#116267) chore(android): prepare 2026.7.4 Play release fix(e2e): align service account state (openclaw#116254) refactor(qa): remove live-channel scenario registries and wrappers (openclaw#115752) fix(ci): let trusted Telegram QA stage runtime (openclaw#116252) fix(plugins): plugin install survives pnpm-only overrides (openclaw#116245) test(qa): recognize internal image completions (openclaw#116234) fix(test): review Codex runtime scan chunks (openclaw#116212) fix(systemd): clear start-limit latch before gateway start (openclaw#116178) fix(security): expose every executable call in plugin scans (openclaw#116222) chore(sdk): repin the API baseline after the resolver signature change test(e2e): delay the draft-proof final answer past the start gate fix(channels): resolve tool progress against the caller's stream mode fix(ci): satisfy docs formatting, lint, and the SDK API baseline test(e2e): add a progress-draft scenario to the mock provider docs(telegram): call out the changed default preview on upgrade refactor(channels): render the progress label as a block, not a line fix(channels): show tool lines under the progress status headline ...
What Problem This Solves
Fixes the remaining doctor install-switch failure in the proxy-environment flow. Canonical service identity was bundled into one state-creation helper, which obscured the required transition and did not reliably apply after each flow's own test-state initialization.
Why This Change Was Made
The scenario now separates concerns:
use_default_service_identitythen selects the OS accountHOMEandUSERPROFILE, clears the canonical account's prior service artifacts, and removes OpenClaw path overrides;A focused guard requires exactly three identity-helper calls and checks they immediately follow per-flow state creation.
User Impact
Doctor-switch release validation can exercise the normal, proxy-cleanup, and wrapper-persistence service paths without weakening product safety or changing the intentional cross-state scenario. There is no product runtime change.
Evidence
bash -n scripts/e2e/lib/doctor-install-switch/scenario.shtest/scripts/docker-build-helper.test.ts: 177 passedgit diff --check