Repository navigation
fix: align release service account state - #116254
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 1:50 AM ET / 05:50 UTC. ClawSweeper reviewWhat this changesThe PR aligns doctor-install-switch and upgrade-survivor auto-auth E2E scenarios with the resolved service account home by exporting Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for explicit maintainer handling: it changes release-harness identity setup under the protected Priority: P3 Review scores
Verification
How this fits togetherThe release E2E harness creates service-account state, invokes install/doctor or update/restart flows, and then checks that OpenClaw operates from the supported account identity. These scripts feed release validation rather than the production runtime. flowchart LR
A[Service account] --> B[Release E2E scenario]
B --> C[Resolve account home]
C --> D[Set HOME and USERPROFILE]
D --> E[Seed canonical OpenClaw state]
E --> F[Install or restart validation]
F --> G[Release-harness result]
Decision needed
Why: The protected maintainer label requires explicit human handling, and static source checks do not establish that the Docker-based release scenarios complete with the corrected identity state. Before merge
Agent review detailsSecurityNone. PR surfaceTests +24, Other +14. Total +38 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Run the affected doctor-install-switch and upgrade-survivor auto-auth scenarios with the intended service-account identity, attach redacted terminal or artifact output showing the corrected state path, then let the designated maintainer land the focused harness repair. Do we have a high-confidence way to reproduce the issue? No high-confidence observed reproduction is included. The source and PR description identify the affected doctor-switch and auto-auth survivor paths, but the supplied evidence is static validation rather than a failing-and-passing scenario run. Is this the best way to solve the issue? Unclear. Aligning all state-related environment values to the resolved passwd home is a narrow, coherent repair, but an actual run of both changed release scenarios is needed to confirm the ordering and state owner are correct. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 47a21192fd5d. 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 canonical service-account harness setup now; beta.6 Full Release Validation will provide the two after-fix Docker scenario artifacts. The optional Rank-up moves are intentionally deferred because the trusted harness changes must first be present on main to test the release candidate. Both affected paths are Docker-only, fail closed when passwd-home resolution fails, and leave production service-install safety unchanged. Exact-head CI run 30517554851 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 two remaining release-harness identity mismatches after the service-install safety hardening. Doctor install-switch did not expose the canonical account home through
USERPROFILE, and upgrade-survivor auto-auth still seeded and installed against temporary state that the candidate correctly rejected as non-default.Why This Change Was Made
Doctor install-switch now exports both
HOMEandUSERPROFILEfrom its resolved account home before clearing OpenClaw path overrides.Upgrade-survivor auto-auth now resolves the current passwd home, fails closed when it is empty, exports
HOMEandUSERPROFILE, and points state/config at the default$account_home/.openclawbefore assertion seeding. Manual and root-managed survivor lanes keep their existing setup; the root-managed lane seeds/root, matching uid 0's passwd home even if modes are manually combined.User Impact
The doctor-switch and update-restart-auth release lanes exercise the supported service account identity without weakening production safety checks. There is no product runtime change.
Evidence
bash -nfor both changed shell scenariostest/scripts/docker-build-helper.test.ts: 177 passedgit diff --check