Skip to content

fix(update): preserve Windows inspection path identities - #174471

Merged
steipete merged 1 commit into
mainfrom
fix/update-windows-inventory-aliases-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/update-windows-inventory-aliases-20261016

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #174315

What Problem This Solves

Windows update inspection adds a plain database-path alias when the state root uses an extended-length path. This changes the exact version inventory used to compare rollback baselines and breaks the existing namespaced-state regression.

User Impact

Updates preserve the existing database path identities while still discovering retained plugin databases. Physical snapshots continue to copy each identity once, and explicitly registered aliases remain available to older updater and Doctor rollback comparisons. No migration, schema, or configuration change is required.

Why This Change Was Made

#174315 correctly added retained plugin discovery to SQLite update inspection. Its backup discovery also returns canonical realpaths for databases the updater already found, adding a plain Windows spelling beside the original namespaced path. The update inventory owner now accepts only new supplemental identities; registry discovery keeps its separate raw-alias contract.

The production change is a membership check at the existing inventory merge. No retry, timeout, suppression, or assertion changes. A new host-independent test exercises the production inspection entry point with path.win32 and fixed filesystem/header I/O, checking both stable published paths and inclusion of a newly discovered plugin database. The native Windows tests are unchanged.

Evidence

  • Main 0f6f06339f28 reproduces the unwanted extra plain alias in the new regression. It fails before the repair and passes after it. pnpm test src/infra/update-candidate-state.discovery.windows.test.ts --maxWorkers=1: before 122.77s wall; after 108.95s wall, including a 73.64s cold worker build. The repaired test body takes 3.23s.
  • Core production types, the owning infra test-type graph, scoped type-aware oxlint, boundary lint, formatting, and diff checks passed.
  • Independent Codex autoreview: clean through P2.
  • Nearby snapshot/inventory proof: 42 passed across three executed files, with four unchanged native Windows cases skipped on macOS (181.64s wall). This includes Windows-shaped projection, raw traversal safety, committed WAL inspection, registry rebinding, retained roots, and plugin copy/inventory boundaries.

Platform limit: local proof uses Node 24 on macOS with Windows path semantics. The four native Windows integration cases require Windows and are not claimed as locally executed; the original CI failure and its three passing sibling cases were inspected from job 117080971334. PR CI supplies broad and native-platform proof.

Supplemental backup discovery resolves realpaths for databases the update
inventory already knows. With a namespaced Windows state root this added a
plain alias to the published versions response, breaking the exact-path
contract used by rollback verification.

Merge only previously unknown supplemental identities. Keep explicitly
registered aliases and newly discovered retained plugin databases.

Update behavior: namespaced state roots keep their original inspection
and rehearsal identities without losing retained plugin coverage. Physical
snapshot deduplication, schema checks, and rollback safeguards stay intact.

The new path.win32 inspection regression fails before and passes after
(3.23s test, 108.95s runner including cold worker preparation). Core and
infra test types, scoped lint, formatting, and P2 autoreview pass.

Nearby snapshot/inventory files: 42 passed, 4 native Windows cases skipped
on macOS (181.64s runner). Native Windows proof remains for PR CI.
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review October 16, 2026 17:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T17:17:29.242440Z 1c052e1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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 16, 2026
@steipete
steipete merged commit beec6cb into main Oct 16, 2026
193 of 194 checks passed
@steipete
steipete deleted the fix/update-windows-inventory-aliases-20261016 branch October 16, 2026 17:27
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…158510

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…esafe-decision-native

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)

# Conflicts:
#	src/agents/decision-inference.integration.test.ts
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-tool-v2-proof-20261016

* commit 'cff3c307ba6d0ce273abcdaf5cade848d9746d30':
  feat(decisions): preserve native catalog capabilities and accounting (#157492)
  fix(ui): avoid reactive read warnings in picker scrolling (#174436)
  refactor(test): remove unused Nextcloud fixture signing (#174470)
  refactor(browser): share managed tab eviction fixtures (#174474)
  fix(update): preserve Windows inspection path identities (#174471)
  perf: reduce large-session compaction and indexing allocations (#174433)
  perf(codex): reduce allocations while reading app-server output (#174468)
  fix(gateway): skip startup publication checks without a target (#174453)
  refactor: deslop agent harnesses, channel plugins and packages (wave-6 bundle A) (#173531)
  perf(state): reduce shared SQLite worker heap retention (#174420)
  refactor: remove routine channel callsite diagnostics (#174402)

# Conflicts:
#	docs/plugins/sdk-overview/capabilities.md
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…4471)

Supplemental backup discovery resolves realpaths for databases the update
inventory already knows. With a namespaced Windows state root this added a
plain alias to the published versions response, breaking the exact-path
contract used by rollback verification.

Merge only previously unknown supplemental identities. Keep explicitly
registered aliases and newly discovered retained plugin databases.

Update behavior: namespaced state roots keep their original inspection
and rehearsal identities without losing retained plugin coverage. Physical
snapshot deduplication, schema checks, and rollback safeguards stay intact.

The new path.win32 inspection regression fails before and passes after
(3.23s test, 108.95s runner including cold worker preparation). Core and
infra test types, scoped lint, formatting, and P2 autoreview pass.

Nearby snapshot/inventory files: 42 passed, 4 native Windows cases skipped
on macOS (181.64s runner). Native Windows proof remains for PR CI.
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. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant