Skip to content

fix(update): avoid Windows rollback from rounded lease identities - #162245

Merged
steipete merged 5 commits into
mainfrom
upd/upd-windows-bigint-lease-identity
Oct 1, 2026
Merged

steipete merged 5 commits into
mainfrom
upd/upd-windows-bigint-lease-identity

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #162130

What Problem This Solves

Fixes rollback at the first live Doctor when the 2026.9.6 Windows updater passes a rounded NTFS lease identity to a candidate that reads bigint identities. The 9.7 capture change left an exact string comparison against the older driver's numeric serialization.

User Impact

The candidate accepts the shipped older-driver handoff, then enforces exact file and parent-directory identities. Lease read failures report their underlying error instead of a misleading parent-binding mismatch. Identity strings, activation receipts, and downgrade format stay compatible.

Why This Change Was Made

Lease initialization, adoption, capture, and comparison use the shared bigint formatter in sqlite-worker-identity.ts, alongside the landed Linux birthtime policy from #162305. Candidate admission validates the original lineage bytes before normalizing older numeric identities. Live row/process checks remain authoritative; later operations and descendant grants use exact pins. Bare-UUID legacy bridges qualify only while their helper and executor identities match.

Accepted tradeoff: initial legacy admission inherits the older driver's numeric precision limit, so two inode values with the same Number() serialization cannot be distinguished at that admission. This bounded ambiguity is accepted for the shipped one-hop contract; every later check uses exact bigint identities.

Thanks to @WG-Mojo for the cross-version diagnosis.

Rebase validation

Rebased head: 2cc6107554dc55d1628b467022139d96401400be, on main e9b768b14d266d0ddd935a6af36a12e6736f8ef5.

Conflicts occurred while replaying commits in:

  • package.json
  • src/infra/sqlite-worker-identity.ts
  • src/infra/update-managed-service-handoff-foreground.test.ts
  • src/infra/package-update-swap.windows.test.ts

No resolution introduced a behavior change. Main's Windows inventory, path normalization, birthtime handling, and landed fixture repairs are preserved. The foreground fixture now uses main's canonical prepared entrypoints; the duplicate test mappings drop out of this PR. Grant admission, lease database operations, error propagation, and regression assertions remain byte-for-byte identical to the reviewed a86127842083... head, including its explicit-column INSERTs.

The touched suites ran once: 11 files, 230 passed / 3 existing skips, 85.80 s wall, including 10.844 s worker preparation. Longest case: 13.155 s; largest file case-time sum: 58.338 s. The requested gate ran once: CI=1 node scripts/check-changed.mjs --base e9b768b14d266d0ddd935a6af36a12e6736f8ef5 -- <all nine authored diff paths>. It failed with exit 2 after 305.32 s at the core-test-gateway-root graph:

ui/src/components/session-group-defaults-dialog.ts(123,28): error TS2304: Cannot find name 'readMissingScopeError'.

The failing file is byte-identical in the rebase base and pushed head (blob f9000417936584d432760473b0a73e462dc69198); it calls the undeclared/unimported name at line 123. Production typecheck, the first three test graphs, and preceding guards passed. The remaining 23 test graphs and subsequent lint, dead-export, schema, cycle, and authorization guards were unrun. The inherited UI error is left for the lead under the no-rerun ruling; no unrelated repair was added. No test or CI reruns were requested. The fresh Blacksmith Testbox lease tbx_01m3v33bcjsh6z3azemqjkjhd3 (run) fetched the pushed SHA and installed frozen dependencies without a tree sync. It is stopped; the exact source checkout was verified clean.

Earlier evidence

Earlier validated head: a86127842083314144e82bcb25a5debcaaeaed26, based on be052821d69c581a94c39f91623419bdfc1093b1.

  • Full CI run: 147 jobs green. Required Windows proof: checks-windows-node-test-2, including identity-less 9.4 (64 ms), numeric 9.6 (51 ms), bridge-style 9.6 (48 ms), and exact 9.7 (46 ms).
  • Linux touched suites repeated three times: 219 passed / 3 existing platform skips each, in 91.27 / 87.28 / 77.90 s wall. Focused planner/publication/package-swap checks: 44 passed, 22.02 s wall.
  • Fresh isolated direct-route Codex P1 review: scoped-clean, exit 0, no actionable P0/P1 findings. Its 27 context files include the current recovery-metadata owners and the accepted initial precision tradeoff. Review lease tbx_01m3twq1bth5py2etnydcqe64j is stopped (run).
  • Before/after regression: original production rejects the numeric 9.6 grants. The real candidate resolver and SQLite rows now accept them, reject a different parent, refuse exact mismatches after admission (including a replacement that rounds identically), and preserve read errors. A separate regression caught and fixed a bound legacy descendant regaining rounding tolerance. Filesystem inode metadata and the descendant parent PID are synthetic.
  • Prior-head full changed gate on ac7f84515a9e25834c1058e11fa720b2e342bd16: CI=1 node scripts/check-changed.mjs --base 2fd8e321baea18b32c64d61da04cf690a11c6f45 -- <12 authored diff paths> passed in 1321.02 s, including production types, all 27 selected test graphs, ratchets, boundary guards, three dead-export scans (zero), scoped lint (zero warnings/errors), and runtime cycles (zero). That head also passed all 149 CI jobs and 30 affected importer files (363 passed / 1 existing skip). Earlier four-owner importer coverage on 0380ddda84aeea7b01cbdd33a3125bcb56a1bc57 passed 53 files / 848 tests, with 4 existing skips. These remain explicitly prior-head results.

Main integration adopted the canonical native Windows fixture repair from #162352, removing that test change from this PR. The regression INSERTs now name their four columns so they coexist with main's recovery metadata from #160488. This PR authors no schema change. The resumed 49-file importer run completed on this exact head: 49 files, 795 passed / 2 existing skips, exit 0, in 725.42 s wall, preserving the original file order. Command: env CI=1 node scripts/run-vitest.mjs <the 49 original importer paths> --reporter=verbose. Shared runtime build stages took 539.634 s (including 525.3 s tsdown), plus 10.734 s worker preparation; the nine routed Vitest groups reported 160.69 s total duration. The longest case was 28.762 s and the largest file case-time sum was 51.371 s. No failures, retries, source changes, or additional checks were performed. Per the lead’s ruling, the four narrowed remote type graphs and scoped lint were not added; CI already covers selection.

The resumed importer proof used fresh Blacksmith Testbox tbx_01m3txxbxy5p2wf9pr7sq9x02b (run), which fetched a86127842083314144e82bcb25a5debcaaeaed26, checked it out cleanly, and ran pnpm install --frozen-lockfile without a tree sync.

Linux proof uses Blacksmith Testbox tbx_01m3twpr43d48acz8053tc2m0n (run), fetching the exact commit with frozen dependencies. No Mac test/typecheck/build or tree sync was used. All lane-owned leases and SSH clients are stopped.

Test cost and CI repairs

The foreground preparation repair is now retained from main. The handoff suite previously loaded source runtimes repeatedly in its child processes. Reusing existing prepared entrypoints preserves all 21 scenarios and assertions: broad importer runs on separate leases measured 150.285 s → 67.577 s test time. The focused single-worker result was 61.279 s tests / 76.33 s wall, including 10.876 s compiler preparation.

The cross-version cases share the existing lease-database publication fixture. This avoids a separate file startup and fixes the earlier Windows placement-budget failure without editing a timing baseline or weakening its limit. On the previously validated ac7f84515a9e... head, CI=1 pnpm test <file> --maxWorkers=1 --reporter=verbose measured all 26 publication tests at 1.304 s tests / 15.64 s wall. Current native Windows case timings are above.

Follow-up and remaining proof

Lead-waived follow-up: an unchanged Windows ownership test crossed the campaign's approximate 30-second single-test threshold. The lead explicitly waived this pre-existing suite as a blocker for this PR; retain its profiling work as a separate follow-up. src/state/openclaw-state-ownership.test.ts:187, “external shared-state ownership > refuses unauthorized Doctor admission before staging a public snapshot”, passed in 31.555 s in the current Windows job (25.871 s on the preceding head). This is case time, not shared preparation time.

The case creates a real claimed database, verifies unauthorized Doctor rejection before snapshot staging, then completes an authorized runDoctorConfigPreflight with migrateState: true. The positive path includes update-history reconciliation, lazy state migration imports, configuration/plugin preparation, cron repair, and legacy-state migration with SQLite worker activity. The logs do not isolate the dominant phase. A safe bounded correction is not established; a dedicated Windows profiling lane should measure the existing preflight phases and worker launches before changing fixture reuse. Both assertions are preserved; no timeout, retry, skip, or timing-shift workaround was added.

The last completed ClawSweeper review read by this lane was for ac7f84515a9e...: it found no introduced defect and requested a full published 9.6 Windows npm-global live Doctor run plus combined normalized-grant-to-final-I/O authority traces. Those broader pre-merge requests are not performed or claimed cleared here. The lane's native Windows CI and Linux boundary proof are recorded above; the lander must read the current exact-head review.

Production: +76/-40 (+36 net). Tests/support: +206/-8 (+198 net). Docs: +6. Production growth preserves the shipped one-hop contract and the original read error within one identity owner.

The PR is ready, auto-merge is off, and this authoring lane stops without merging or releasing.

@clawsweeper

clawsweeper Bot commented Oct 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 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 labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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 Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed October 1, 2026, 3:28 AM ET / 07:28 UTC (Revision 11).

ClawSweeper review

What this changes

The branch accepts older Windows updater lease identities at initial candidate admission, retains exact identities afterward, and reports underlying lease-read failures.

Merge readiness

⛔ Blocked before merge - 5 items remain

This PR remains necessary: current main and the latest release retain the cross-version identity mismatch. No introduced correctness defect was found, but the two previously requested production-boundary proofs remain outstanding.

Priority: P0
Reviewed head: 2cc6107554dc55d1628b467022139d96401400be

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused repair has substantial regression evidence, but the material authority and Windows upgrade proof gaps prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: real resolver and SQLite regressions demonstrate normalization and exact replacement checks with synthetic metadata, but do not carry normalized grants through the delegated executor to allowed and forbidden final effects or owner revocation/reassignment. The separately required published v2026.9.6 Windows updater-to-candidate live Doctor run also remains outstanding. No stored-data contract changes are introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: real resolver and SQLite regressions demonstrate normalization and exact replacement checks with synthetic metadata, but do not carry normalized grants through the delegated executor to allowed and forbidden final effects or owner revocation/reassignment. The separately required published v2026.9.6 Windows updater-to-candidate live Doctor run also remains outstanding. No stored-data contract changes are introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 11 items Pinned patch and merge ownership: Reviewed the merge-base-to-head introduced hunks. Raw test-merge parents are the pinned base followed by the exact PR head; its delta contains the same nine introduced paths, without the unrelated endpoint drift.
Bounded compatibility admission: Lineage is checked using the original transported bytes before normalization. Numeric tolerance is restricted to older original owners or qualifying bare-UUID bridges; normalized identities feed the existing identity-bound store and descendant grants.
Exact checks after admission: The capture owner returns exact bigint identities, and ordinary identity assertions call it without numeric tolerance. The introduced database changes do not alter schema, stored payload bytes, or identity string format.
Findings None None.
Security Needs attention Verify normalized grants at the final effect boundary: The changed admission permits older identity representations to enter delegated execution. Existing live-owner guards remain, but available evidence does not demonstrate unauthorized-receiver or revoked/reassigned-owner rejection through this normalized path before I/O.

How this fits together

The updater delegates Doctor and other installation operations to candidate processes using a SQLite lease database. Candidate admission checks filesystem identity and live process ownership before granting permission to continue.

flowchart TD
  A[Installed Windows updater] --> B[Transported lease grant]
  B --> C[Candidate identity admission]
  D[SQLite leases and live processes] --> C
  C --> E[Exact identity pins]
  E --> F[Delegated executor checks]
  F --> G[Doctor and installation operations]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: real resolver and SQLite regressions demonstrate normalization and exact replacement checks with synthetic metadata, but do not carry normalized grants through the delegated executor to allowed and forbidden final effects or owner revocation/reassignment. The separately required published v2026.9.6 Windows updater-to-candidate live Doctor run also remains outstanding. No stored-data contract changes are introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Verify normalized grants at the final effect boundary - The changed admission permits older identity representations to enter delegated execution. Existing live-owner guards remain, but available evidence does not demonstrate unauthorized-receiver or revoked/reassigned-owner rejection through this normalized path before I/O.
  • Resolve merge risk (P1) - The published v2026.9.6 Windows updater has not been shown completing this candidate's live Doctor on an existing installation with rounded NTFS identities.
  • Resolve merge risk (P1) - Normalized grants have not been exercised through delegated executor admission to final I/O with an unauthorized receiver or an original owner revoked or reassigned after admission.
  • Complete next step (P2) - Add the two outstanding boundary proofs as redacted terminal output or logs; terminal screenshots or recordings also count when they show the behavior. Remove keys, IP addresses, phone numbers, private endpoints, and other private data. Updating the PR body should trigger automatic re-review; if it does not, ask a maintainer to comment @clawsweeper re-review.

Findings

  • [medium] Verify normalized grants at the final effect boundary — src/cli/update-cli/update-command-executor-grant.ts:92
Agent review details

Security

Needs attention: No concrete bypass or supply-chain regression was found; normalized execution authority still needs final-effect safety proof.

PR surface

Source +36, Tests +198, Docs +6. Total +240 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 4 76 40 +36
Tests 4 206 8 +198
Docs 1 6 0 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 288 48 +240

Review metrics

Metric Value Why it matters
Production growth justification production +76/-40; tests/support +206/-8 The production growth has a stated purpose: preserving the shipped one-hop identity contract and underlying read errors within existing owners.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #162130
Summary: This branch is the candidate repair for the reported numeric-versus-bigint Windows handoff mismatch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete the two boundary proofs (recommended)
    Provide the published Windows updater-to-candidate result and normalized-grant final-effect traces covering allowed, unauthorized, and revoked or reassigned owners.

Technical review

Best possible solution:

Preserve the narrow candidate-side compatibility bridge and exact subsequent pins, with demonstrated Windows upgrade success and live-authority rejection before effects.

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

Yes for the representation mismatch: published 9.6 uses numeric identities while current main and 9.7 compare bigint strings exactly. No current-main execution was performed, and the original failed invocation's sealed grant remains unavailable.

Is this the best way to solve the issue?

Yes at the code boundary: initial legacy normalization in the existing identity owner preserves the shipped contract without creating a competing authority owner. Production upgrade and final-effect safety remain unproven.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P0: The linked report documents a blocked supported Windows upgrade requiring manual package recovery.
  • merge-risk: 🚨 compatibility: The candidate changes admission of shipped older-driver grants, and the required published-driver Windows upgrade proof remains outstanding.
  • merge-risk: 🚨 security-boundary: Legacy normalization changes admission into update execution authority; the accepted initial precision limit does not settle unauthorized or stale-owner final-effect coverage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: real resolver and SQLite regressions demonstrate normalization and exact replacement checks with synthetic metadata, but do not carry normalized grants through the delegated executor to allowed and forbidden final effects or owner revocation/reassignment. The separately required published v2026.9.6 Windows updater-to-candidate live Doctor run also remains outstanding. No stored-data contract changes are introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Verify normalized grants at the final effect boundary — src/cli/update-cli/update-command-executor-grant.ts:92
    The changed admission permits older identity representations to enter delegated execution. Existing live-owner guards remain, but available evidence does not demonstrate unauthorized-receiver or revoked/reassigned-owner rejection through this normalized path before I/O.
    Confidence: 0.9

What I checked:

  • Pinned patch and merge ownership: Reviewed the merge-base-to-head introduced hunks. Raw test-merge parents are the pinned base followed by the exact PR head; its delta contains the same nine introduced paths, without the unrelated endpoint drift. (a85102e498c3)
  • Bounded compatibility admission: Lineage is checked using the original transported bytes before normalization. Numeric tolerance is restricted to older original owners or qualifying bare-UUID bridges; normalized identities feed the existing identity-bound store and descendant grants. (src/cli/update-cli/update-command-executor-grant.ts:92, 2cc6107554dc)
  • Exact checks after admission: The capture owner returns exact bigint identities, and ordinary identity assertions call it without numeric tolerance. The introduced database changes do not alter schema, stored payload bytes, or identity string format. (src/infra/update-managed-service-handoff-database.ts:235, 2cc6107554dc)
  • Accepted initial precision tradeoff: The captured PR body explicitly accepts the shipped older driver's numeric collision ambiguity at initial admission only. That acceptance covers the current implementation; it does not establish final-effect authority proof or waive the published-driver upgrade requirement. Captured sourceRevision: 02e1ecfcbaff38598860ff50e424a21438eaa8901c80222a0fa59d851bc48a96. (src/infra/update-managed-service-handoff-database.ts:245, 2cc6107554dc)
  • Regression coverage and its boundary: Four version cases exercise the real resolver and SQLite rows, including exact rejection of replacements that round identically and preservation of read errors. Inode metadata and descendant parent PID are synthetic, and these new cases stop before delegated executor admission and final I/O. (src/infra/update-managed-service-handoff-database-publication.test.ts:476, 2cc6107554dc)
  • Downstream live authority checks: The delegated executor separately checks the actual receiver identity, live original and spawner processes, current lease rows, and executor ownership before exposing its fence. The normalized-grant scenario has not been shown traversing these checks to an allowed effect or a forbidden-effect refusal. (src/cli/update-cli/update-command-executor-delegated.ts:59, 2cc6107554dc)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Show the published v2026.9.6 Windows updater completing this candidate's live Doctor with rounded NTFS identities.
  • Exercise normalized grants through final I/O and demonstrate unauthorized-receiver rejection plus original-owner revocation or reassignment before the effect.

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 (10 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-01T02:08:10.444Z sha 0380ddd :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T03:04:32.858Z sha 0380ddd :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T03:39:21.745Z sha 81bdfb8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T03:47:33.520Z sha d2a611b :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T04:05:12.798Z sha ac7f845 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T05:13:40.120Z sha a861278 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T05:37:06.427Z sha a861278 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-01T06:41:37.828Z sha 2cc6107 :: needs real behavior proof before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 1, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Oct 1, 2026
@steipete
steipete marked this pull request as ready for review October 1, 2026 01:59
@steipete steipete closed this Oct 1, 2026
@steipete steipete reopened this Oct 1, 2026
Preserve the shipped numeric identity contract at first candidate admission, then retain exact bigint pins for later operations and descendant grants. Keep lease read diagnostics instead of reporting a parent-binding mismatch. The initial legacy hop accepts the inherited rounding ambiguity.
@steipete
steipete force-pushed the upd/upd-windows-bigint-lease-identity branch from a861278 to 2cc6107 Compare October 1, 2026 06:35
@steipete
steipete merged commit f885caa into main Oct 1, 2026
109 of 248 checks passed
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Landed via the admin exception for inherited failures (squash f885caa955f023a496be46105d0b421ea1cc112a, rebased head 2cc6107554dc; lead reviews r1 at a86127842083 and r2 on this head, both scoped-clean). Inherited reds on the PR run: check-lint-core-1/2 (the #162288 type-aware lint break, fixed on main by 54522d16a3c2 after this run) and the fail-fast cancellations behind them; PR context and evidence is a body-section check, not a code gate. Verified locally on this head: the Windows test-plan guard and the wrapper source-closure guard pass. No CI was re-spent.

@steipete
steipete deleted the upd/upd-windows-bigint-lease-identity branch October 1, 2026 07:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…act bigint identities (openclaw#162245)

A Windows 2026.9.6 -> 2026.9.7 update passed every candidate check, published 9.7, then rolled back because the first delegated live Doctor reported "Candidate executor binding does not match its parent": openclaw#158491 switched the managed-update lease-directory identity to bigint lstat while keeping an exact string compare, so a 9.6 parent's numeric (precision-lost) identity never matched, and the identity read error was swallowed into an unreadable-lease classification. The shared identity owner now accepts the legacy numeric spelling once at initial admission when it equals the candidate's bigint identity rounded through the same serialization (an accepted one-hop tradeoff recorded at the comparer), pins exact bigint identities for every subsequent operation, and surfaces underlying read errors.

Closes openclaw#162130
RomneyDa pushed a commit that referenced this pull request Oct 6, 2026
…act bigint identities (#162245)

A Windows 2026.9.6 -> 2026.9.7 update passed every candidate check, published 9.7, then rolled back because the first delegated live Doctor reported "Candidate executor binding does not match its parent": #158491 switched the managed-update lease-directory identity to bigint lstat while keeping an exact string compare, so a 9.6 parent's numeric (precision-lost) identity never matched, and the identity read error was swallowed into an unreadable-lease classification. The shared identity owner now accepts the legacy numeric spelling once at initial admission when it equals the candidate's bigint identity rounded through the same serialization (an accepted one-hop tradeoff recorded at the comparer), pins exact bigint identities for every subsequent operation, and surfaces underlying read errors.

Closes #162130

(cherry picked from commit f885caa)
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 gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 9.6 to 9.7 Windows update rolls back at Doctor; numeric/bigint lease-directory identities disagree

1 participant