Repository navigation
fix(update): inspect collected legacy service handoffs - #166232
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper automerge |
|
ClawSweeper 🐠 automerge status This pass ended as a no-op: no narrow repair surfaced, so ClawSweeper left the branch untouched. Executor outcome: no planned fix actions. Worker actions:
No branch push, rebase, replacement PR, merge, or ClawSweeper re-review was started on this pass. fish notes: reasoning medium; reviewed against d0f62ba. Automerge progress:
|
|
Codex review: blocked before merge. Reviewed October 6, 2026, 2:16 PM ET / 18:16 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR lets candidate update validation inspect collected Linux service units from older stopped handoffs by using the installed updater’s account when no manager UID was recorded. Merge readiness⛔ Blocked before merge - 2 items remain The revised head resolves both prior code findings and remains useful against pinned main. No new actionable defect was found, but the required published-driver upgrade result is still unverified. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s updater reinspects the managed Gateway service before candidate validation and service maintenance. Its service reader authenticates the selected systemd manager and checks the retained service definition before allowing further update work. flowchart TD
A[Installed updater handoff] --> B[Candidate service inspection]
B --> C[Recorded manager UID available]
C -->|Yes| D[Use recorded identity]
C -->|Legacy stopped handoff| E[Use updater account]
D --> F[Authenticate systemd manager and current authority]
E --> F
F --> G[Inspect collected unit metadata]
G --> H[Revalidate service ownership]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +78. Total +93 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the narrow fallback and existing manager authentication, with a recorded successful published-driver upgrade through the collected-unit path. Do we have a high-confidence way to reproduce the issue? Yes, from source: a stopped legacy handoff without a manager UID cannot enable collected-unit loading on pinned main. The linked compatibility job failed, but this review did not execute the upgrade or inspect its detailed logs. Is this the best way to solve the issue? Yes, the fallback is narrowly limited to legacy stopped Linux handoffs and preserves explicit manager identity and existing authority checks; production upgrade confirmation remains necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10334ec913d7. 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
HistoryReview history (1 earlier review cycle)
|
b7d27fb to
d0f62ba
Compare
|
@clawsweeper automerge |
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
The package-only release-check dispatch built the exact candidate successfully in 23m26s, then failed before tests because that narrow dispatch did not produce the immutable prerelease-plugin registry tuple required by package acceptance. No update test ran. Exact-head CI release-gate qualification is now running at https://github.com/openclaw/openclaw/actions/runs/37513334175; the changed update-cli path selects the published-driver update cell against npm |
|
@clawsweeper approve Exact compatibility proof is complete: CI run 37513855606 job 112445769676 passed the shipped stable |
|
Landing via the native inherited-red admin exception. ClawSweeper accepted maintainer approval for exact head |
* commit 'c39d9b0692dbaafa5b1bfe02514c9f6411ab5546': (30 commits) fix(ci): clear MCP audit and service-worker test blockers (#166217) test(gateway): wait for steering admission in FIFO fixtures fix(llama-cpp): managed setup crashes and loops on macOS below 13.3 (#163358) perf(worktrees): avoid full session parsing during GC (#166072) fix(update): recover stopped legacy managed services (#166232) perf(gateway): stream bounded link preview metadata (#166195) perf(diagnostics): release completed Git operation state (#166214) chore(deps): update fs-safe to 0.24.1 and clone plugin source captures (#166189) feat(clients): adopt worker-local inference placement (#163647) test: serialize PowerShell completion process suites (#166229) test: stabilize release timing boundaries (#166218) refactor(sessions): persist run outcomes only; liveness comes from the run registry (#165733) test(gateway): prove mention refresh after config retargeting fix(team-reports): keep the missed closed day when catch-up runs after midnight (#165780) test(gateway): join WebChat queue admission and drain completion fix(logging): reject blank diagnostic stability query fields (#145532) fix(agents): report unparseable serialized edit arguments (#163577) improve(anthropic): log Claude Code version probe failures (#157697) fix(agents): clarify prompt-size provider failures (#159712) fix(memory): re-throw non-ENOENT/ENOTDIR errors in root memory file lookup (#107921) ...
Problem
Full Release Validation's published-driver compatibility lane for
2026.9.3 → candidatedeterministically refused candidate validation withmanaged-service-preflight.The shipped 2026.9.2/2026.9.3 updater handoff predates
serviceManagerUid. After that updater stops a Linux native service, systemd may collect the unit before the candidate reinspects it. Candidate validation then lacks the manager boundary needed to load the collected unit and treats the managed service as unavailable.Solution
For a verified Linux handoff that is already stopped, has a captured service environment, and omits the newer manager UID, retain the running installed updater account as the native manager boundary. Explicit recorded manager identity continues to take precedence.
This is limited to legacy stopped handoffs under the existing current-authority assertion.
Evidence
git diff --checkpassed.FRV source: https://github.com/openclaw/openclaw/actions/runs/37502933059
d0f62baf965bd63f05a12e6ac41e0959753e6659through the shippedopenclaw@lateststable driver (2026.9.8). The update finished with readiness 200 and verified the running candidate version; the only unrelated run failure was the inherited MCP dependency audit.