Skip to content

fix(update): repair cannot settle cancelled update custody on macOS, blocking every later update - #185002

Merged
fuller-stack-dev merged 5 commits into
openclaw:mainfrom
fuller-stack-dev:fix/update-handoff-repair-custody-macos
Oct 26, 2026
Merged

fuller-stack-dev merged 5 commits into
openclaw:mainfrom
fuller-stack-dev:fix/update-handoff-repair-custody-macos

Conversation

@fuller-stack-dev

@fuller-stack-dev fuller-stack-dev commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Related: #177932, #182774, #182762

What Problem This Solves

Fixes: cancelled update custody cannot be settled on macOS, so openclaw update stays blocked indefinitely. Three separate faults combine:

  1. openclaw update repair from a terminal opens a different handoff store than the Gateway. It reports success against an empty store and leaves the real custody in place.
  2. Repair's process census reports its own child processes, such as its spawn-broker worker, as surviving handoff work.
  3. The census blocks on any OpenClaw process running from the installation (the Gateway, node-host LaunchAgents, the Mac app), even ones started days after the cancelled update ended.

User Impact

User impact: on macOS, openclaw update repair settles a dead updater's cancelled custody without stopping the Gateway, node hosts, or the Mac app, and the next update proceeds. Real survivors of the cancelled update still block repair.

Why This Change Was Made

  • One store on macOS. The Gateway LaunchAgent is installed with TMPDIR=<state>/tmp, while terminals use the OS per-user temp directory, so the lease path <os.tmpdir()>/openclaw-<uid>/managed-update-handoffs.sqlite split between them. When the caller's TMPDIR is exactly the Gateway's managed one, the lease now resolves under getconf DARWIN_USER_TEMP_DIR instead. That is the directory terminals already use, so the Gateway, terminals, and every profile share one store. Any other explicit TMPDIR (including the test runner's private one) is still honored, and Linux and Windows are unchanged. Terminal update admission, and a Gateway update before it spawns its helper, also take the installation in the store an earlier Gateway kept under <state>/tmp, using that store's own admission rules. Terminal admission holds that lease until the shared store admits or refuses the update. Live, unproven, retained, original-updater and cancelled custody there keep blocking; openclaw update repair settles cancelled custody there. On macOS, repair's handoff-artifact scan also includes the Gateway's TMPDIR.
  • The inspector's own descendants are not handoff work. The census already exempted process.pid and verified updater launchers. It now also exempts processes whose start-ordered native ancestry (readProcessAncestry) runs through the inspecting process.
  • Shared roots no longer imply ancestry. A process that matches only because it runs from the installation or service root, or because it is an OpenClaw process, is exempt when it and every live ancestor below init/launchd (or a same-user systemd --user manager) started after the family's recovery deadline: latest recorded activity plus the existing repair grace (45 minutes, or a longer recorded timeout). Matches on the run id, the handoff directory, captures, or candidate/child roots block regardless of start time. Unreadable or incomplete ancestry proves nothing and keeps blocking.

Evidence

Red on unmodified origin/main (d704d3b, new tests only), green on this branch:

  • The Gateway service environment and a terminal resolved different stores (update-managed-service-handoff-lease-path.test.ts). They now share one, across profiles. An unrelated explicit TMPDIR keeps its own root.
  • A real crashed executor's cancelled family left in an earlier Gateway's store: normal admission into the new store succeeded, and repair reported status: "ok" and left every row. Now admission is refused until repair settles the family, and the next update is admitted afterwards. A live owner, or dead original-updater custody, in that store also refuses admission (update-repair-cancellation.test.ts). A Gateway update start is refused before any helper runs (update-managed-service-handoff-busy.test.ts). With the admission check removed, the same test fails with promise resolved "'admitted'".
  • A real child and grandchild of the inspecting process were reported as handoff descendants. They no longer are, while a real orphan holding the same paths still is (openclaw-process-census.native.test.ts, macOS).
  • A real orphan running only from the installation root, started after the deadline, was reported. It no longer is. A sibling naming the run id, and the same holder with a future deadline or with no deadline, still block (native and synthetic Linux/systemd tests).
  • Real host probe, read-only, against this Mac's live process table with the facts of a real Oct 16 cancelled family: without the deadline the census blocks on 17 processes (the Gateway and its workers, the Mac app and its node worker, six node-host LaunchAgents and their children, all started Oct 26). With this change it reports 0.

Checks on this head's content: pnpm tsgo:core, pnpm tsgo:core:test, oxlint and oxfmt are clean. The census, lease-path, repair-cancellation, cleanup-unmanifested and handoff-isolation files pass on macOS (183 tests). A snapshot of the real per-user lease directory taken before and after a full macOS run of the related suites was unchanged, so tests stay in their private stores. Independent Codex review (GPT-6.1 Sol, P0–P2) is scoped-clean on the committed branch. An earlier pass flagged that a first, state-dir-anchored version split custody across profiles, which led to the current design.

Not run locally: e2e suites, which refuse this machine's shared pnpm store layout. CI covers them.

🤖 Generated with Claude Code

Three faults kept a dead updater's cancelled custody from ever settling:

- A macOS Gateway LaunchAgent runs with TMPDIR=<state>/tmp while terminals
  use the OS per-user temp directory, so the Gateway and CLI opened different
  managed-update-handoffs.sqlite stores and repair "succeeded" against an
  empty one. The Gateway's managed TMPDIR now maps back to the OS per-user
  temp root (getconf DARWIN_USER_TEMP_DIR), shared by terminals and every
  profile; other explicit TMPDIRs are still honored. Repair also settles
  custody left in an earlier Gateway's store and scans its handoff artifacts.
- The repair census reported the inspecting process's own descendants (e.g.
  its spawn-broker worker) as handoff work. Start-ordered native ancestry
  through the inspector now exempts them.
- The census blocked on every OpenClaw process running from the installation,
  even ones started days later. A match only on shared installation/service
  roots or OpenClaw identity is exempt when the process and its live ancestry
  started after the family's recovery deadline (latest activity plus grace).
  Run ids, run-specific artifacts and candidate roots still always block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 26, 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 gateway Gateway runtime cli CLI command changes size: L labels Oct 26, 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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR unifies macOS update custody storage and excludes repair-owned or demonstrably newer processes from recovery blockers.

Example: An October 16 cancelled updater has exited, while the Gateway was started again on October 26.

  • Before: Terminal repair can inspect an empty store or treat the newer Gateway as surviving update work, leaving subsequent updates blocked.
  • After: Repair finds the earlier Gateway’s custody and can settle it while preserving refusal for actual surviving update work.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and earlier findings are fixed, but persisted-store upgrade compatibility remains unproven through the shipped CLI.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: macOS users can run repair successfully yet remain unable to update after a cancelled updater has exited.
Reason: The maintainer-authored direction restores explicit recovery while retaining the existing live-writer protections.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR fixes a concrete macOS update-recovery failure, and the previously reported code defects are addressed.

Priority: P1
Reviewed head: e40f8f6c2eb49573ca534e86629583f09c83e3d8

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply a fresh-install and latest-stable-to-candidate macOS CLI run covering preserved settings/data, earlier-store refusal, repair settlement, subsequent update admission, and a live-survivor refusal control.
Agent review details

How this fits together

CLI and Gateway update admission use installation leases in SQLite; explicit repair checks recorded processes, retained artifacts, and recovery history before settling abandoned custody.

flowchart TD
  A[Terminal update or Gateway request] --> B[Earlier store admission]
  B --> C[Shared per-user lease store]
  D[Explicit update repair] --> B
  D --> C
  D --> E[Process census and recovery history]
  E --> F[Settlement receipt]
  F --> C
Loading

Technical review

Best possible solution:

Keep the existing lease owners and focused process exclusions, with verified macOS upgrade and recovery behavior before merge.

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

Current main derives lease placement from os.tmpdir(), while macOS services install a state-local TMPDIR; the supplied regressions also identify inspector descendants and newer shared-root processes as false recovery blockers.

Is this the best way to solve the issue?

The repair uses existing lease admission and settlement owners, preserves run-specific blockers, and limits the storage adjustment to macOS managed TMPDIR placement.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Per-user handoff lease placement keeps the original intent (c949e5a: Keep update custody in private per-user storage when another account owns shared temporary storage.)
  • Managed macOS service TMPDIR keeps the original intent (d7c173b: Harden macOS launchd startup with a state-local service temporary directory; this PR extracts that resolver without changing service output.)
  • Host-wide recovery census changes intended behavior with a stated reason (9680e57: Retain abandoned handoff custody unless recorded owners are dead and the host census excludes surviving or unverified holders.)
  • Cancelled-family settlement keeps the original intent (45314c9: Explicit repair settles the exact cancelled family through its existing claim and durable receipt while retaining unresolved work.)
  • Helper control request placement keeps the original intent (fix: foreground Gateway updates fail after replacing runtime files #152466: Coordinate foreground update completion through the detached helper; the current change moves the request function without changing its behavior.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c949e5a adds src/infra/update-managed-service-handoff-lease.ts:76 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c949e5aa853b; files: src/infra/update-managed-service-handoff-lease.ts)
  • Jason (Json): Raw commit 45314c9 adds src/infra/update-managed-service-handoff-reclamation.ts:269 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 45314c992e24; files: src/infra/update-managed-service-handoff-reclamation.ts)

PR surface

Source +231, Tests +493, Docs +15, Other +3. Total +742 across 23 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 12 295 64 +231
Tests 8 531 38 +493
Docs 2 19 4 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 1 3 0 +3
Total 23 848 106 +742

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status no longer selects a status label.

Label justifications:

  • P1: Cancelled custody can indefinitely block subsequent updates on an affected macOS installation.
  • merge-risk: 🚨 compatibility: The lease database location changes, so existing custody must remain authoritative across installation and Gateway restart.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-26T20:59:27.256Z sha 5d6fcf3 :: blocked before merge. :: [P1] Preserve existing custody before redirecting normal admission | [P2] Include the new modules in the trusted wrapper inventory | [P3] Terminate and join the native fixtures' sleep descendants
  • reviewed 2026-10-26T21:47:00.481Z sha 6fce4cf :: blocked before merge. :: [P1] Preserve the lease owner's refusal states in legacy admission
  • reviewed 2026-10-26T22:10:43.226Z sha 708bd70 :: blocked before merge. :: [P1] Fence legacy custody before Gateway handoff acquisition

Reviewed October 26, 2026, 6:38 PM ET / 22:38 UTC (Revision 4).

The trusted-anchor PR wrapper extracts only its inventoried runtime files, and
the handoff lease now imports the service temp-root and lease temp-root modules.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 26, 2026
@fuller-stack-dev
fuller-stack-dev enabled auto-merge (squash) October 26, 2026 21:28
Moving a macOS Gateway's lease store to the per-user temp root must not let
ordinary update admission bypass custody that an earlier Gateway still holds
under its state's tmp. Admission now refuses while that store holds live
owners, unsettled children, or cancelled (v4) custody, and points to
`openclaw update repair`, which settles it there. Stale leases whose owners
are proven gone no longer block, because new writers never select that store.

Native census fixtures now kill and join every descendant they start, and the
repair test no longer asserts the mocked census call shape.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Thanks. Each finding is addressed on head 6fce4cf8e753:

  • [P1] Existing custody bypassed by normal admission: fixed. Before acquiring in the new store, admission now reads the earlier Gateway store (<state>/tmp/openclaw-<uid>). It refuses while that store holds live owners, unsettled children, cancelled (v4) custody, or is unreadable, and points to openclaw update repair, which settles it there. Stale rows whose owners are proven gone don't block. update-repair-cancellation.test.ts uses a real crashed executor's family in the earlier store: admission is refused, repair settles it, and the next update is admitted. With the check removed, the test fails (promise resolved "'admitted'").
  • [P2] Wrapper inventory: src/daemon/paths.ts, src/daemon/service-tmp-dir.ts and src/infra/update-managed-service-handoff-temp-root.ts were added in 5651029969c. eager-import-closure.test.ts passes, and the pr-worktree-provision private-store failures no longer reproduce locally.
  • [P3] Native fixture descendants: fixtures now kill each fixture's full descendant tree and wait until every process has exited, before the temp directories are removed.
  • Low-value test: removed the censusScopes call-shape assertion.

Data compatibility: the admission test above is the existing-store proof. I haven't run a shipped-CLI macOS upgrade end to end.

@clawsweeper re-review

🤖 Addressed by Claude Code

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Oct 26, 2026
The admission check for an earlier macOS Gateway's handoff store treated an
owner whose identity could not be read as gone, and missed retained v3 custody,
original-updater custody and unfinished repair claims. Admission now takes the
installation in that store through its own admission rules, which require
positive proof of settlement, and holds it until the shared store has admitted
or refused this update.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Re-review finding (P1, legacy admission predicate) is addressed on head 708bd7001176:

  • Admission no longer decides custody in the earlier Gateway store with its own predicate. It takes the installation in that store through the store's own acquire, which uses the same reclaimability rules the lease owner applies everywhere else. That covers positive death proof (unknown or unreadable identities are not treated as gone), retained v3 custody, original-updater custody, unfinished repair claims, and unsettled children. Admission holds that lease until the shared store has admitted or refused the update, then releases it, so no row is left behind.
  • New regressions in update-repair-cancellation.test.ts:
    • Original-updater custody (mutationProtocol: "original-cancellation-v1", distinct helper and executor, both exited) in the earlier store refuses admission. The previous predicate would have treated that row as released.
    • A live owner in the earlier store refuses admission, admission succeeds after it releases, and the earlier store keeps no row for the installation.
    • The existing crashed-family test still shows cancelled custody refused until repair settles it.
  • Local results: tsgo:core and tsgo:core:test pass, oxlint and oxfmt are clean, and the touched suites pass (247 tests, including update-command-executor and update-command-handoff).

CI note: checks-node-changed-compact-small-36 fails on update-command-candidate-authority.process.test.ts (healthy and doctor-owner-replaced). Scheduled main run 40396808555 (checks-node-compact-small-42, head 9d52e3c5b18) fails the same two cases with identical messages, and they fail the same way locally on unmodified main. This PR doesn't touch that test or its subject.

@clawsweeper re-review

🤖 Addressed by Claude Code

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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 26, 2026
…lper starts

A Gateway-initiated update hands off to a sealed helper that acquires the lease
directly in the shared store, so the earlier-store fence in ordinary admission
did not cover it. The Gateway now applies the same owner-decided fence before
spawning the helper and refuses while that store still holds the installation.

The helper control request moves beside the active-handoff state it reads, so
the oversized handoff module does not grow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

The finding on 708bd7001176 (P1: fence earlier custody before Gateway handoff acquisition) is addressed on head e40f8f6c2eb4.

  • Fix. Before spawning the sealed helper, spawnManagedServiceUpdateHandoff now applies the same owner-decided fence as terminal admission, through the earlier store's own acquire. It refuses while that store still holds the installation, so no helper starts update work. Otherwise the fence is released before the helper acquires in the shared store.
  • Gateway-path regression. update-managed-service-handoff-busy.test.ts puts a lease in an earlier Gateway's store and calls startManagedServiceUpdateHandoff. The call is refused, both stores are unchanged, and the shared store has no row. With the fence removed, the same test starts the update (promise resolved … instead of rejecting).
  • Line cap. To keep the oversized handoff module from growing under the line-cap ratchet, sendManagedServiceUpdateHandoffCommand moved unchanged into update-managed-service-handoff-current.ts, beside the active-handoff map it reads.
  • Checks. tsgo:core, tsgo:core:test, oxlint, oxfmt and the line-cap ratchet pass. All 34 update-managed-service-handoff* test files pass, along with the executor, repair-cancellation and import-closure suites (650 tests).

The checks-node-changed-compact-small-36 failure is inherited from main and tracked in #185090.

@clawsweeper re-review

🤖 Addressed by Claude Code

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 26, 2026
@fuller-stack-dev
fuller-stack-dev merged commit 73858ce into openclaw:main Oct 26, 2026
155 of 158 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

@fuller-stack-dev
fuller-stack-dev deleted the fix/update-handoff-repair-custody-macos branch October 26, 2026 23:16
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…blocking every later update (openclaw#185002)

* fix(update): let repair settle cancelled custody on macOS

Three faults kept a dead updater's cancelled custody from ever settling:

- A macOS Gateway LaunchAgent runs with TMPDIR=<state>/tmp while terminals
  use the OS per-user temp directory, so the Gateway and CLI opened different
  managed-update-handoffs.sqlite stores and repair "succeeded" against an
  empty one. The Gateway's managed TMPDIR now maps back to the OS per-user
  temp root (getconf DARWIN_USER_TEMP_DIR), shared by terminals and every
  profile; other explicit TMPDIRs are still honored. Repair also settles
  custody left in an earlier Gateway's store and scans its handoff artifacts.
- The repair census reported the inspecting process's own descendants (e.g.
  its spawn-broker worker) as handoff work. Start-ordered native ancestry
  through the inspector now exempts them.
- The census blocked on every OpenClaw process running from the installation,
  even ones started days later. A match only on shared installation/service
  roots or OpenClaw identity is exempt when the process and its live ancestry
  started after the family's recovery deadline (latest activity plus grace).
  Run ids, run-specific artifacts and candidate roots still always block.

* fix(update): ship the macOS lease temp-root modules with the PR wrapper

The trusted-anchor PR wrapper extracts only its inventoried runtime files, and
the handoff lease now imports the service temp-root and lease temp-root modules.

* fix(update): keep an earlier Gateway's custody fencing admission

Moving a macOS Gateway's lease store to the per-user temp root must not let
ordinary update admission bypass custody that an earlier Gateway still holds
under its state's tmp. Admission now refuses while that store holds live
owners, unsettled children, or cancelled (v4) custody, and points to
`openclaw update repair`, which settles it there. Stale leases whose owners
are proven gone no longer block, because new writers never select that store.

Native census fixtures now kill and join every descendant they start, and the
repair test no longer asserts the mocked census call shape.

* fix(update): let the earlier Gateway store's owner decide its custody

The admission check for an earlier macOS Gateway's handoff store treated an
owner whose identity could not be read as gone, and missed retained v3 custody,
original-updater custody and unfinished repair claims. Admission now takes the
installation in that store through its own admission rules, which require
positive proof of settlement, and holds it until the shared store has admitted
or refused this update.

* fix(update): fence earlier Gateway custody before a Gateway update helper starts

A Gateway-initiated update hands off to a sealed helper that acquires the lease
directly in the shared store, so the earlier-store fence in ordinary admission
did not cover it. The Gateway now applies the same owner-decided fence before
spawning the helper and refuses while that store still holds the installation.

The helper control request moves beside the active-handoff state it reads, so
the oversized handoff module does not grow.
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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant