Skip to content

chore: align remaining update recovery expectations - #181717

Merged
shakkernerd merged 2 commits into
mainfrom
update-untouched-failure-observation
Oct 23, 2026
Merged

shakkernerd merged 2 commits into
mainfrom
update-untouched-failure-observation

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the six remaining stale recovery assertions where an update fails before installation mutation and no Gateway service or persistent data requires recovery. These tests still expected a successful restart-readiness verification even though the recovery owner now records an observation without claiming that verification occurred. The two equivalent Windows assertions are already fixed on main by #181698.

User Impact

There is no production behavior change. The tests now describe the existing update contract accurately: untouched failures retain their original failure reason, diagnostics, exit code, and handoff authority while reporting empty verification facts and a recovery-observation step. Cases involving mutation, service stop/start, definition recovery, or data risk continue to require recovery verification.

Why This Change Was Made

The shared failure-recovery helper now provides a narrow expectation for the existing gateway recovery observation result. The five shared foreground cases and the plugin-convergence consumer use that expectation and separately require the verification object to be empty.

The existing recoveryVerificationStep helper and the canonical mutation/data-risk matrix remain unchanged. This keeps the stronger recovery contract owned by the existing production path instead of replacing verification expectations broadly.

Evidence

  • Existing CI exposed eight stale expectations after the observation-only recovery behavior landed; fix: align Windows triage tests with untouched recovery #181698 already resolves the two Windows rows, and this PR supplies the remaining six.
  • Remote changed-file formatting/lint passed.
  • Remote core-test-cli-update and core type graphs passed.
  • Remote focused proof passed all 79 tests across the Windows lifecycle, fresh Doctor, plugin convergence, and canonical failure-recovery files.
  • Source inspection confirmed the canonical controls still require recovery verification when mutation begins or data is at risk, and retain stopped-service, definition-recovery, failure-fact, exit-code, diagnostic, and handoff coverage.

@clawsweeper

clawsweeper Bot commented Oct 23, 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.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Oct 23, 2026
@shakkernerd
shakkernerd force-pushed the update-untouched-failure-observation branch from 647111f to ff16fc5 Compare October 23, 2026 15:18
@shakkernerd shakkernerd changed the title chore: align untouched update recovery expectations chore: align remaining update recovery expectations Oct 23, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@shakkernerd
shakkernerd merged commit eae9bc4 into main Oct 23, 2026
103 of 104 checks passed
@shakkernerd
shakkernerd deleted the update-untouched-failure-observation branch October 23, 2026 15:36
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: untouched update failure expectations now match observation-only recovery while stronger recovery verification controls remain covered.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
Update recovery tests now distinguish observation-only untouched failures from cases requiring recovery verification.
RomneyDa pushed a commit that referenced this pull request Oct 26, 2026
…181596)

On Windows pnpm-global installs, package-swap failed with ENOENT while relocating the staged runtime because pnpm leaves dangling links for platform-specific optionalDependencies it never installs on the host (e.g. @lydell/node-pty-darwin-arm64), aborting the whole update; recovery then reported a spurious restart-unhealthy for a failure that never touched the service. The staged copy now drops dangling links only when the target is declared in optionalDependencies (missing required links still fail), and recovery records the previous Gateway observation for untouched failures. Fixes #181577, reported by @SMF12138.

Release adaptation: took only the relocation fix (stable imports ignoreMissingUpdateCandidateFile from update-candidate-files.js; hasErrnoCode comes from errors.js) and its optional-dependencies swap test. Dropped the failure-recovery observation hunk and its post-update/recovery test changes: stable's verifyUpdateFailureRecovery has a different shape (shouldWaitForRecovery already gates on mutationStarted) and taking it would also need the main-only test alignments #181698/#181717. The docs paragraph omits the recovery sentence accordingly.

(cherry picked from commit 94cee2a)
RomneyDa added a commit that referenced this pull request Oct 29, 2026
The #185692 backport in 39f9bde removed the last consumer of
recoveryVersionMismatch from update-cli.plugin-convergence.test.ts. Main
removed the same fixture in eae9bc4 (#181717).
RomneyDa added a commit that referenced this pull request Oct 29, 2026
…eadcode after backports (#187570)

* refactor: keep Teams allowlist sentinel private (#185484)

The Microsoft Teams fail-closed allowlist sentinel now remains module-private while preserving its exact restrictive projection and lifecycle coverage.

(cherry picked from commit 59b1ddd)

* test: teach the live-wrapper fake Bun to answer --revision

Partial cherry-pick of the test/scripts/test-live.test.ts hunk only.
#173807 (backported as e72f868) made the CI Bun --revision probe
mandatory; the fake Bun fixture must answer it from the checkout pin.

(cherry picked from commit 08dd80a)

* test(ci): expect watchdog exit 124 from wedged run-tsgo

#184639 (backported as d9a91b5) intentionally changed the run-tsgo
watchdog exit from 1 to 124 so CI collectors stop admitting work. Main
realigned this case in run-tsgo-worktree.test.ts (9b14a38); on the
release branch the same watchdog case lives in run-tsgo.test.ts and was
not realigned by the backport.

* test(vitest): keep gateway database-worker routes in canonical order

The beta.5 adaptation of #178415 (23a2bcd) prepended three
integration proofs to gatewayDatabaseWorkerTestFiles. Canonical project
ownership compares that list against sorted discovery, so the
out-of-order entries failed vitest-cli-ownership. Move them to their
sorted positions; routing membership is unchanged.

* refactor: keep Slack reconnect policy private (#181690)

Keeps Slack reconnect policy details module-private while preserving the exact invalid-auth cutoff, reset, and blocked-status behavior.

(cherry picked from commit cd65901)

* fix: keep retired Telegram throttler release private

Telegram hunk of 09f9ec8 (#183086) only. The release-only test
called the private helper directly; its surviving-alias case is already
asserted through releaseRemovedTelegramAccountThrottler, so drop the
duplicate direct call.

(cherry picked from commit 09f9ec8, partial)

* refactor: keep Claude partial-message measurement private

src/agents/cli-output-stream-limits.ts hunk of 28e2774 (#184686) only;
the backport of #184352 left this export without a consumer.

(cherry picked from commit 28e2774, partial)

* refactor: keep managed plugin cache selector private

src/plugins/management-catalog.ts hunk of 2c0c30b (#185269) only;
the backport of #184921 left this export without a consumer.

(cherry picked from commit 2c0c30b, partial)

* refactor(agents): keep requester settle batch callbacks type private

The backport of #181260 (2f7589a) moved RequesterSettleWakeParams
into the state module, leaving RequesterSettleWakeBatchCallbacks exported
only for a test fixture. Main keeps it module-private; type the fixture
through RequesterSettleWakeParams instead.

* refactor(infra): drop unconsumed streaming UTF-8 decoder

The minimal backport of #180861 (8d3183d) added decodeUtf8Chunks as
a prerequisite, but its main consumers (streaming state-migration
importers) were intentionally not backported, so production Knip flags
it. Remove the export and its unit case; decodeUtf8Input is unchanged.

* refactor(scripts): keep pinned Bun CI detection private

The minimal #172625 backport (e6c3639) deferred the dev-tool,
test-runtime and run-format callers that consume isCiEnvironment on main,
so the export has no consumer on the release branch.

* test(update): drop orphaned recovery version-mismatch fixture

The #185692 backport in 39f9bde removed the last consumer of
recoveryVersionMismatch from update-cli.plugin-convergence.test.ts. Main
removed the same fixture in eae9bc4 (#181717).

* test(gateway): type config removal mocks through inline module imports

The release adaptation of #152052 (41aa7a6, de41770) typed its
partial mocks through type-only namespace imports. Knip treats the
secrets runtime namespace as the only consumer of its exports, so the
full-tree scan reported prepareSecretsRuntimeSnapshotRestore and
SecretResolverWarning as unused. Use main's inline typeof import() form.

* refactor(shared): drop unconsumed async-store helper

The backport of #179213 (6d9852d, plus f3fb0e9 registering it
as a wrapper component) took the runWithAsyncStore helper and its test
without the plugin-instance-invocation consumer, leaving
src/shared/async-store.ts unused in production. Remove the helper, its
test and its wrapper-components entry rather than complete a perf change
during beta stabilization.

* chore(knip): model backported perf scripts and Telegram worker fixture

Mirror main's Knip entries for files added by beta.5 backports:
- scripts/perf/{node-event-session-source-measure.mjs,
  stream-dispatch-scope-measure.ts,system-prompt-report-retention.ts}
  as path-invoked script roots (#183931, #183552, #183010);
- the Telegram ingress context Worker fixture loaded by URL (#178909) in
  production ignoreFiles.
Also register scripts/test-security-mail-parser.mjs, the standalone
nodemailer sender-parsing regression added by #187301 (release-only).

* refactor(doctor): keep dashboard migration guard at the repair boundary

Release adaptation of 50b532d (#183153). The backport of #182345
(51f63cb) exported isUnstampedDashboardRoot only for its unit test.
Main made it private and drove the eligibility cases through
repairLegacyDashboardChatTypes using a canonical-repair fixture this
branch does not carry. Keep every accepted and rejected row case, now
asserted through the repair boundary with the branch's session accessor.

* test(agents): hold requester preparation for the settle capacity case after #181260 backport

Backport 2f7589a (#181260) filters delivered child findings from
settle wakes (needsRequesterSettleFindings), so this delivered-row case
no longer reads the child transcript where it injected worker capacity
and failed with 'expected findTranscriptEvent to be called'. Main
realigned the same case in 411b2e6 (#178104): inject capacity at
captureRequesterSessionEntryCurrent and assert the delivered result is
not repeated in the resumed wake. Apply that realignment; the
'Already delivered child results' wording that main also asserts belongs
to #178104's message change, which this branch does not carry.

(adapted from commit 411b2e6)

---------

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

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. cli CLI command changes size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant