Skip to content

fix(update): preserve matching artifact no-op - #145349

Merged
steipete merged 6 commits into
openclaw:mainfrom
nmotyl:repair/fw32922-upstream-main-successor
Sep 12, 2026
Merged

steipete merged 6 commits into
openclaw:mainfrom
nmotyl:repair/fw32922-upstream-main-successor

Conversation

@nmotyl

@nmotyl nmotyl commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users selecting an explicit package artifact at the installed semantic version could have different build bytes skipped, while the production CLI unnecessarily replaced a matching build.

Why This Change Was Made

The package-update owner compares known build identities for explicit artifacts and retains version-based no-ops for registry requests. Missing or different artifact identity continues through staged validation. Mandatory Git-to-package replacement and retained fresh-profile staging remain authoritative.

The contributor branch now includes main's already-landed native capability-probe fixes from #145547 and #133884, which are needed for the managed-service proof.

User Impact

A matching explicit artifact can finish skipped with reason already-current without restarting the Gateway. An explicit package artifact with the same version as the installed package is no longer skipped as a no-op when its build differs; it goes through staged validation and swap. Installation-method switches and fresh-profile initialization still retain and validate their candidate. npm-valid registry tags preserve their existing same-version behavior.

Evidence

Current head: b8a5872b15990caf02aa50fb9f4aba0ee1749994. Its tree is identical to reviewed and live-tested 1f21a4a16124ad98a19873c77fb5af02d996dee6 (git diff is empty); the existing reviews and proof are adopted.

  • 106 focused tests pass, full changed-file checks pass, and independent review is scoped-clean through P2 (0.93).
  • Before-fix proof reproduced 40 artifact-identity failures against the original owner, three mandatory-caller failures on the contributor head, and four registry-tag classification failures.
  • Real Linux/npm/systemd-user proof: published 2026.9.4 → same-version build A succeeded; identical A finished skipped/already-current with zero downtime and unchanged service identity; different build B validated, swapped, restarted, and verified healthy. Full commands, artifact hashes, and JSON outcomes are in the comment.
  • The first restart proof exposed the already-landed capability-probe fixes from fix(update): keep the candidate capability probe free of state migration so ownership never refuses it #145547/fix: recover managed plugin release pins during updates #133884. The integrated head was rebuilt and passed the managed matrix.
  • Exact-head CI passed on attempt 1 for b8a5872b15990caf02aa50fb9f4aba0ee1749994. Main fixes fix(test): prevent worker shard timeouts on loaded hosts #145770 and test(hooks): await duplicate-module relay publication #145771 resolve the previously failing worker-environment and native-hook-relay fixtures; both formerly failing shards passed on the fresh merge ref.
  • Additional service-less fresh-profile live probe: refused before admission with managed-service-preflight, even after systemd was confirmed running and its Gateway unit absent. Ordinary status and the capability probe work; update admission uses a stricter D-Bus absence proof. Those admission files are unchanged from main. Retained-stage run/cancel regression tests pass; the separate live admission limitation remains recorded.

Review follow-ups

  • ClawSweeper P1, mandatory installation-method replacement: accepted and fixed; matching Git-origin updates reach validation.
  • ClawSweeper P2, retained fresh-profile staging: accepted and fixed; matching artifacts retain their candidate through run/cancel ownership.
  • Registry-tag review: accepted and fixed without a new dependency; canary!, -canary, ~canary, and scoped tags follow npm's grammar.
  • ClawSweeper needs proof: the integrated-head published-driver, matching-artifact no-op, and differing-artifact staged-swap/healthy-after requirements are satisfied by real Linux proof. The additional fresh-profile admission limitation is recorded above; retained staging has regression coverage.

Thanks @nmotyl (Nate Motyl) for the artifact build-identity change.

@clawsweeper

clawsweeper Bot commented Sep 11, 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 docs Improvements or additions to documentation cli CLI command changes size: M triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Sep 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 11, 2026
@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 4:13 AM ET / 08:13 UTC (Revision 9).

ClawSweeper review

What this changes

The package updater compares build IDs before skipping same-version artifacts, preserves required replacement and staging, and adds regression coverage and documentation.

Merge readiness

✅ Ready for maintainer review

This remains useful work absent from current main. The earlier findings are resolved, the recorded real update proof remains applicable to the unchanged tree, and no new actionable defect was found.

Priority: P2
Reviewed head: b8a5872b15990caf02aa50fb9f4aba0ee1749994

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-level repair, resolved prior findings, meaningful regression coverage, and real published-driver proof provide strong confidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The Linux/npm/systemd-user transcript exercises the installed update CLI through published-release upgrade, matching-artifact no-op, and differing-artifact activation with healthy recovery. The proven revision and current head have identical trees; the separate pre-staging fresh-profile admission limitation does not invalidate this evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The Linux/npm/systemd-user transcript exercises the installed update CLI through published-release upgrade, matching-artifact no-op, and differing-artifact activation with healthy recovery. The proven revision and current head have identical trees; the separate pre-staging fresh-profile admission limitation does not invalidate this evidence.
Evidence reviewed 10 items Current main still lacks the fix: Current main's CLI forces replacement for explicit artifacts, while the lower-level staged no-op compares versions without distinguishing artifact identity. The introduced changes address both decisions.
Identity comparison stays inside the package owner: The staged no-op requires successful structural verification, equal versions, no mandatory replacement, and either a registry request or two matching nonempty build IDs. Other candidates continue through lifecycle completion, content verification, validation, and the existing activation owner.
Prior findings resolved: Retained staging explicitly requires replacement, and Git-origin installs preserve their replacement requirement. The CLI tests cover matching artifacts for package versus Git installs and retained-stage run/cancel behavior.
Findings None None.
Security None None.

How this fits together

OpenClaw’s updater stages packages selected through the CLI before validating and activating them. Its no-op decision determines whether the installed package and running Gateway remain untouched or proceed through replacement.

flowchart TD
 A[CLI update request] --> B[Stage selected package]
 B --> C[Verify package structure]
 C --> D{Replacement required?}
 D -->|Yes| F[Validate and activate candidate]
 D -->|No| E{Version and source identity match?}
 E -->|Yes| G[Keep installation and Gateway running]
 E -->|No| F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +42, Tests +247, Docs +4. Total +293 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 47 5 +42
Tests 2 254 7 +247
Docs 1 7 3 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 308 15 +293

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +42 lines; tests net +247 lines Production growth implements source classification and identity comparison; test growth exercises artifact syntax and the previously broken mandatory callers.

Technical review

Best possible solution:

Keep artifact equality in the shared package-update owner while preserving registry no-ops, mandatory method conversion, and retained candidate validation.

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

Yes, source establishes the trigger: current main forces replacement of matching explicit artifacts, while its lower-level no-op uses version equality alone. This review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes. The patch repairs the existing package owner and carries mandatory replacement through both callers, without adding a competing update path or user setting.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded updater correctness repair for explicit package artifacts, with no demonstrated urgent production outage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The Linux/npm/systemd-user transcript exercises the installed update CLI through published-release upgrade, matching-artifact no-op, and differing-artifact activation with healthy recovery. The proven revision and current head have identical trees; the separate pre-staging fresh-profile admission limitation does not invalidate this evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The Linux/npm/systemd-user transcript exercises the installed update CLI through published-release upgrade, matching-artifact no-op, and differing-artifact activation with healthy recovery. The proven revision and current head have identical trees; the separate pre-staging fresh-profile admission limitation does not invalidate this evidence.

Evidence

What I checked:

  • Current main still lacks the fix: Current main's CLI forces replacement for explicit artifacts, while the lower-level staged no-op compares versions without distinguishing artifact identity. The introduced changes address both decisions. (src/cli/update-cli/update-command-package.ts:487, ca28965b39be)
  • Identity comparison stays inside the package owner: The staged no-op requires successful structural verification, equal versions, no mandatory replacement, and either a registry request or two matching nonempty build IDs. Other candidates continue through lifecycle completion, content verification, validation, and the existing activation owner. (src/infra/package-update-steps.ts:1125, b8a5872b1599)
  • Prior findings resolved: Retained staging explicitly requires replacement, and Git-origin installs preserve their replacement requirement. The CLI tests cover matching artifacts for package versus Git installs and retained-stage run/cancel behavior. (src/cli/update-cli/update-command-package.ts:374, b8a5872b1599)
  • Real published-driver and artifact proof: The complete supplied comment at fix(update): preserve matching artifact no-op #145349 (comment) records a real Linux/npm/systemd-user run: published 2026.9.4 to build A succeeded; repeating A returned skipped/already-current with zero downtime and unchanged service identity; different same-version build B passed validation, activated, and reached settled readiness. The separate fresh-profile probe stopped in unchanged admission code before staging and is not counted as successful runtime proof. (1f21a4a16124)
  • Proof and re-review continuity: The diff from the previously reviewed and proven revision to the current head is empty. The newest commit therefore does not invalidate the existing runtime evidence or introduce additional source changes. (b8a5872b1599)
  • Package-manager contract signal: The new registry classifier explicitly follows npm package-spec precedence and tag grammar; the production owner invokes the selected package manager. This establishes an npm contract dependency, with no Codex runtime or harness dependency. (src/infra/package-update-steps.ts:437, b8a5872b1599)

Likely related people:

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

History

Review history (8 earlier review cycles)
  • reviewed 2026-09-11T22:29:34.489Z sha b4af5d1 :: needs real behavior proof before merge. :: [P1] Preserve mandatory replacement during installation-method switches | [P2] Keep matching artifacts available to fresh-profile staging
  • reviewed 2026-09-11T22:47:36.804Z sha b4af5d1 :: needs real behavior proof before merge. :: [P1] Preserve mandatory replacement during installation-method switches | [P2] Keep matching artifacts available to fresh-profile staging
  • reviewed 2026-09-12T04:11:54.187Z sha 65c2dcb :: needs real behavior proof before merge. :: [P1] Preserve mandatory replacement during installation-method switches | [P2] Keep matching artifacts available to fresh-profile staging
  • reviewed 2026-09-12T04:48:38.595Z sha 22b8168 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-12T05:45:12.294Z sha 1f21a4a :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-12T06:05:06.822Z sha 1f21a4a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T06:34:31.557Z sha 1f21a4a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T06:59:40.825Z sha 1f21a4a :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 11, 2026
nmotyl and others added 3 commits September 12, 2026 00:04
Keep Git-to-package conversions and fresh-profile staging authoritative when
an explicit artifact has the same build identity. Preserve npm-valid registry
tags on the existing same-version no-op path.

Co-authored-by: Nate Motyl <[email protected]>
Refresh the contributor branch with main's state-independent JSON capability
probe before repeating artifact update proof. Preserve the original contributor
commits and keep the artifact identity change relative to current main.

Refs openclaw#145547, openclaw#133884
@steipete

steipete commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Managed Linux artifact proof passed on 1f21a4a16124ad98a19873c77fb5af02d996dee6.

Provider: Blacksmith Testbox tbx_01m2a1sfe4exe0sewn9e2d43h3 (run); Linux, Node 24.19.0, published npm OpenClaw 2026.9.4, a dedicated OS account with canonical home/state, a private npm prefix, and a real systemd user Gateway on loopback port 19554. The cell recorded 72.65 GiB free.

Both artifacts are version 2026.9.4, built from the same head:

Artifact Build ID suffix SHA-256
A 2026-09-12T00-00-00.000Z 0e19aecbd019943d34f8b51e7dd785ca3001a0c42d8af46fca32c7fcdf731f55
B 2026-09-12T00-01-00.000Z 50138579c2c4d8e8a628c633ef591ecf22bab0c7f511abb6c5fe79e13feb69f7
Cell Terminal outcome Gateway evidence
Published 2026.9.4 → A succeeded Build A verified, PID 10605, readiness settled
A → identical A skipped, already-current PID 10605, invocation ID, activation timestamp, and restart count unchanged; downtime 0
A → different B succeeded Staged validation and canary passed; swap completed; build B verified at PID 13350 with HTTP readiness and settled health

Exact command forms, executed inside the isolated account with its fixture npm prefix and Node runtime:

GIT_COMMIT=1f21a4a16124ad98a19873c77fb5af02d996dee6 OPENCLAW_BUILD_TIMESTAMP=2026-09-12T00:00:00Z node scripts/package-openclaw-for-docker.mjs --allow-unreleased-changelog --output-dir /tmp/openclaw-l154/artifacts --output-name build-a.tgz
GIT_COMMIT=1f21a4a16124ad98a19873c77fb5af02d996dee6 OPENCLAW_BUILD_TIMESTAMP=2026-09-12T00:01:00Z node scripts/package-openclaw-for-docker.mjs --allow-unreleased-changelog --output-dir /tmp/openclaw-l154/artifacts --output-name build-b.tgz
npm install -g [email protected] --no-audit --no-fund
openclaw gateway install --port 19554 --json
openclaw update --tag file:/tmp/openclaw-l154/artifacts/build-a.tgz --yes --json
openclaw update status --json
# Repeat A after its first terminal success, then run B after A's terminal no-op.
openclaw update --tag file:/tmp/openclaw-l154/artifacts/build-b.tgz --yes --json
systemctl --user show openclaw-gateway.service -p MainPID -p InvocationID -p ActiveEnterTimestampMonotonic -p NRestarts

JSON terminal records, with unrelated fields omitted:

[
  {
    "cell": "published-to-a",
    "runId": "83cb9f0d-97b8-4869-843a-1b5754298958",
    "status": "succeeded",
    "reason": null,
    "downtimeMs": 18278,
    "verification": {
      "runningVersion": "2026.9.4",
      "runningBuildId": "2026.9.4-1f21a4a16124-2026-09-12T00-00-00.000Z",
      "serviceRunning": true,
      "pid": 10605,
      "port": 19554,
      "versionMatch": true,
      "pluginErrors": [],
      "channelsReady": true,
      "readyz": true,
      "settled": true
    }
  },
  {
    "cell": "matching-a",
    "runId": "098b046f-b4c1-4a4d-838b-3f42c1c73e0e",
    "status": "skipped",
    "reason": "already-current",
    "downtimeMs": 0,
    "verification": {}
  },
  {
    "cell": "differing-b",
    "runId": "31caa912-5a40-4954-83d6-daa6e10fa0de",
    "status": "succeeded",
    "reason": null,
    "downtimeMs": 19035,
    "verification": {
      "runningVersion": "2026.9.4",
      "runningBuildId": "2026.9.4-1f21a4a16124-2026-09-12T00-01-00.000Z",
      "serviceRunning": true,
      "pid": 13350,
      "port": 19554,
      "versionMatch": true,
      "pluginErrors": [],
      "channelsReady": true,
      "readyz": true,
      "settled": true
    }
  }
]

The first proof on predecessor 22b81683 exposed a native capability-probe restart failure after a successful swap. This branch now includes main's #145547/#133884 fixes, and both artifacts were rebuilt for the passing matrix above.

An additional service-less fresh-profile live probe was refused before admission with managed-service-preflight, even after confirming a running systemd manager and an absent unit. Ordinary Gateway status and the capability probe work; update admission requires a stricter D-Bus absence proof. That owner is unchanged from main, and no run or artifact stage was created. Retained-candidate run/cancel behavior has regression coverage; this separate admission limitation remains recorded.

Current integrated validation: 106 focused tests pass, full changed-file checks pass, and independent review is scoped-clean through P2 (0.93). The refreshed head b8a5872b15990caf02aa50fb9f4aba0ee1749994 has an identical tree to the live-tested head above (empty git diff), so the existing review and proof are adopted. Exact-head CI passed on attempt 1. The fresh merge ref contains main fixes #145770/#145771, and both previously failing shards passed. Thanks @nmotyl for the artifact identity change.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 12, 2026
@steipete steipete closed this Sep 12, 2026
@steipete steipete reopened this Sep 12, 2026
steipete added a commit that referenced this pull request Sep 12, 2026
Refs #145349

The duplicate-module native hook relay test could invoke a replacement before its HTTP endpoint and SQLite locator finished publication. On a delayed worker, the stale-registration response could then arrive after the existing retry grace and fail unrelated CI.

Use the existing owned-registration API and await readiness for both registrations. Preserve shared approval state, stale-handle teardown, and exact HTTP-response assertions. This is a test synchronization repair with no production behavior or timeout change.

Source failure: CI run 34679294250, job 103514926194.
https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926194

Proof: the PR records controlled failing-before/passing-after reproduction, 138 focused passing tests, and an uninstrumented ordered replay passing 147 files / 3,288 tests. The native watcher reverified GREEN on exact head add5bcb in CI run 34681115215.
https://github.com/openclaw/openclaw/actions/runs/34681115215

ClawSweeper review: no actionable findings on the exact head; no fixups or skips required. The lead's independent review was scoped-clean at P0/P1.
steipete added a commit that referenced this pull request Sep 12, 2026
Prevent healthy Gateway worker preparation from failing a test-only five-second observation deadline on loaded hosts. Await execution completion and credential readiness while preserving early-settlement errors and unjoined-owner cleanup guards. Extend the existing replay case to cross the former deadline without changing its base-leaf or history assertions.

Use two concurrent worktrees for stale-retention reconciliation, preserving the upload barrier, real manifests and Git operations, binary result checks, journals, and released claims. Production code is unchanged.

CI run 34679294250, job 103514926295 failed six detached-context cases and timed out the 50-turn reconciliation case; #145349 was blocked on this shard.
https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926295

Recorded proof: controlled regression failed before and passed after; the reduced reconciliation case failed the historical retention mutation; the contention suite passed all 13 tests; the full agentic-gateway-core-2 shard passed 255 files and 5,038 tests. Exact-head CI run 34680987053 is green for b3edad9 and was reverified with the native watcher before preparation.
https://github.com/openclaw/openclaw/actions/runs/34680987053

The lead's P1 autoreview is scoped-clean. ClawSweeper found no actionable findings on the approved head; no fixups or skips were needed.

Refs #145349, #145379. Follow-up to #145657.
@steipete
steipete merged commit 65dd7de into openclaw:main Sep 12, 2026
217 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
Refs openclaw#145349

The duplicate-module native hook relay test could invoke a replacement before its HTTP endpoint and SQLite locator finished publication. On a delayed worker, the stale-registration response could then arrive after the existing retry grace and fail unrelated CI.

Use the existing owned-registration API and await readiness for both registrations. Preserve shared approval state, stale-handle teardown, and exact HTTP-response assertions. This is a test synchronization repair with no production behavior or timeout change.

Source failure: CI run 34679294250, job 103514926194.
https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926194

Proof: the PR records controlled failing-before/passing-after reproduction, 138 focused passing tests, and an uninstrumented ordered replay passing 147 files / 3,288 tests. The native watcher reverified GREEN on exact head add5bcb in CI run 34681115215.
https://github.com/openclaw/openclaw/actions/runs/34681115215

ClawSweeper review: no actionable findings on the exact head; no fixups or skips required. The lead's independent review was scoped-clean at P0/P1.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
…5770)

Prevent healthy Gateway worker preparation from failing a test-only five-second observation deadline on loaded hosts. Await execution completion and credential readiness while preserving early-settlement errors and unjoined-owner cleanup guards. Extend the existing replay case to cross the former deadline without changing its base-leaf or history assertions.

Use two concurrent worktrees for stale-retention reconciliation, preserving the upload barrier, real manifests and Git operations, binary result checks, journals, and released claims. Production code is unchanged.

CI run 34679294250, job 103514926295 failed six detached-context cases and timed out the 50-turn reconciliation case; openclaw#145349 was blocked on this shard.
https://github.com/openclaw/openclaw/actions/runs/34679294250/job/103514926295

Recorded proof: controlled regression failed before and passed after; the reduced reconciliation case failed the historical retention mutation; the contention suite passed all 13 tests; the full agentic-gateway-core-2 shard passed 255 files and 5,038 tests. Exact-head CI run 34680987053 is green for b3edad9 and was reverified with the native watcher before preparation.
https://github.com/openclaw/openclaw/actions/runs/34680987053

The lead's P1 autoreview is scoped-clean. ClawSweeper found no actionable findings on the approved head; no fixups or skips were needed.

Refs openclaw#145349, openclaw#145379. Follow-up to openclaw#145657.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
An explicit package artifact with the same version as the installed package
is no longer skipped as a no-op when its build differs; it goes through staged
validation and swap. Matching known build identities keep the Gateway untouched
when no installation conversion or fresh-profile initialization is required.
Registry requests retain their same-version no-op behavior.

Preserve mandatory Git-to-package replacement and retained fresh-profile
staging before deduplication. Thanks @nmotyl for the build-identity comparison.

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

Labels

cli CLI command changes docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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