Skip to content

chore: verify native systemd updates in the survivor matrix - #190292

Merged
roboclaw-bot merged 6 commits into
mainfrom
roboclaw/upgrade-survivor-systemd-flow
Nov 1, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
roboclaw/upgrade-survivor-systemd-flow

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #188978, #190179, #190176

What Problem This Solves

The maintained upgrade-survivor matrix uses manual restart and --no-restart, so it does not prove a native systemd-managed stop, updater-owned restart, or recorded service verification. A native managed-service regression can pass that coverage.

User Impact

The maintained Published driver update job gains positive native systemd coverage alongside its existing Docker cell. Runtime update behavior and manual container flows are unchanged.

Why This Change Was Made

Add one native flow under the existing survivor harness, initially published 2026.10.9. It reuses the workflow's checksum-verified candidate, shared state/approval seeds and assertions, and health/readiness probes. A fresh guest account installs the actual published user service and invokes its installed updater with restart enabled. Success requires native unit/cgroup ownership, updater-recorded verification, a changed MainPID, exact authenticated candidate build identity, preserved state, and owned-service cleanup. Exact stable/extended baselines can run sequentially; the extended hop retains --channel stable.

The same hosted job adds one fifteen-minute step, with no new runner or matrix fanout. Necessary growth is the native account/service adapter, its plan/assertions, workflow invocation, and docs. Two tests protect flow/channel selection and reject failed/unverified or non-native outcomes even when candidate RPC is healthy.

Evidence

  • Real Linux Crabbox/Testbox proof: published 2026.10.9 → pinned main f83363193ffbc345fee54c9f7ed5f2d15e9b9bba PASS. Native MainPID 8910 → 15961; all recorded verification flags true, no plugin errors, exact candidate RPC build, state/approvals preserved, final unit inactive/PID 0. Ubuntu 24.04, systemd 255, Node 24.22.1. Proof lease workflow is completed/cancelled after external lease cleanup; its cancellation is not the payload verdict.
  • Candidate build 2026.10.9-f83363193ffb-2026-11-01T10-33-56.391Z, SHA256 ed0d40edb75477fb244686a758d6fb386bd9e658e1d7da4d36b9eb54a2698e66; canonical full build, package inventory and import/integrity checks passed on the guest.
  • 28 focused tests pass (2 native contract cases + 26 existing published-driver planner/workflow cases), final wrapper 4.04s; new file 6ms, standalone wrapper 1.20s. Targeted types/lint, formatting, workflow validation and diff checks pass. The unused-file check reports unchanged scripts/lib/gateway-bench-heap-profile.mjs; no ignore or expected-failure exception added.
  • Post-PR autoreview at e928736baf4c was scoped-clean. After the named CI repair below, fresh shared-helper autoreview of the complete local candidate against main fd8424b6dc30 (P0–P2, shared assertions/probes and deferred helper context) is also scoped-clean, no actionable findings. Committed head a54244aaa5b5295bbe02899a230466e61e9f33ee has the same reviewed source tree. ClawSweeper acknowledged the ready PR; no duplicate request.
  • First exact-head CI run 41303283219 failed only check-lint-core-2 and its aggregate gate. Complete job logs identify two redundant createDeferred<void>() arguments in an existing workshop test added on main after this branch's base (refactor(agents): run background session work as a fork of the stored session #190158), outside the systemd diff. Integrated main fd8424b6dc30 for this named failing gate and removed just those arguments; the helper defaults to void, preserving behavior. Targeted type-aware lint reproduces both errors before and passes after. The affected Gateway-drain case passes (1 passed, 18 skipped; cold wrapper 44.67s). The broader local 90-second test invocation completed the 28 survivor/planner tests and 17 workshop cases before its deadline; it is not claimed as a full-file pass. No CI rerun, ignore or gate exception was used. Exact-head CI run 41304517171, attempt 1, SUCCESS on a54244aaa5b5295bbe02899a230466e61e9f33ee. Final rollup: 57 successful checks, 57 skips, 1 neutral, zero pending/failed; mergeable/CLEAN. No CI exception selected.
  • All task leases released; no production Gateway or live state touched.

Regression qualification

This fresh native fixture does not by itself reproduce #188978. It also passes pre-fix 6fd646e86cd7 and dbd856894bb4 (the parent of #190179). These are unexpected passes, not negative proof. Maintainer direction permits landing this positive managed-stop/restart/verification coverage with that gap explicit.

The existing catcher is the maintained 2026.9.36/base manual container cell in scripts/e2e/lib/upgrade-survivor/run.sh: deep pass #3 failed on pre-fix ba1f8c05821a when Doctor refused the changed SQLite capture, and its fixed replay passed #190179. That evidence remains separate from this native flow.

The difference remains unexplained. Deep3 starts/stops its baseline before adding the legacy survivor seed, while this healthy native fixture prepares that seed with baseline Doctor before service startup. The latter imports approval/workspace/session state before the update. Deep3's original base WAL/SHM bytes and the published snapshot used by #190176 were not available in retained artifacts/catalog. A bounded seed-order probe received queued capacity and was stopped without payload or provider fallback. No failure injection, SQLite/SHM edit, or weakened assertion was accepted as negative evidence.

@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 11:45
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M labels Nov 1, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 1, 2026
Integrate main fd8424b to repair the named check-lint-core-2 failure inherited from its workshop test. The deferred helper already defaults to void.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit de5ab40 into main Nov 1, 2026
124 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/upgrade-survivor-systemd-flow branch November 1, 2026 12:13
roboclaw-bot added a commit that referenced this pull request Nov 1, 2026
Picks up #190292's fix for the experience-review lint failure in this PR's CI.

Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

shannon0430 added a commit to shannon0430/openclaw that referenced this pull request Nov 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…#190292)

* chore: exercise native systemd updates in survivor matrix

Co-authored-by: steipete <[email protected]>

* fix: record native matrix success after service cleanup

Co-authored-by: steipete <[email protected]>

* fix: prepare survivor seed with the published baseline doctor

Co-authored-by: steipete <[email protected]>

* docs: describe native systemd proof in the published-driver workflow

Co-authored-by: steipete <[email protected]>

* fix: pin native survivor actor to controller runtime

Co-authored-by: steipete <[email protected]>

---------

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

Labels

clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant