Skip to content

0.10.14: resume an interrupted local-only update re-plan by the control claim (#2166 follow-up) - #2171

Merged
jonathan308 merged 4 commits into
devfrom
fix/cluster-local-pair-resume-control-claim
Nov 15, 2026
Merged

jonathan308 merged 4 commits into
devfrom
fix/cluster-local-pair-resume-control-claim

Conversation

@jonathan308

@jonathan308 jonathan308 commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #2166 (0.10.14 row 9, PAIRS-14), from REL14's delta review (release-0.10.14/evidence/pairs14/review-2166-delta.md): resume an interrupted update re-plan by the control claim, not the onboarding's role. Into dev.

Problem

ClusterService.resumeInterruptedUpdateReplan (#2166) put the pair's start back only when leadership.role == "leader". Control is derived (ClusterControlLeadership: "never from a host role"), and the re-plan after an update (checkForUpdate, gated on a confirmed claim) runs on the control leader, whichever Mac drove the onboarding. On a pair whose control moved to the Mac that joined, its interrupted re-plan was never resumed: 0.10.13's behaviour (the pair left "Stopped").

Change

The resume asks the recorded control claim (ClusterService.leadsByControl → followsPeer(record:pairing:), which falls back to the roles only without a claim); with the pairing unreadable (a locked Keychain) it asks the onboarding's role, as before. Every other condition is unchanged (fresh mark, start still cleared, no counted stop, switch on). Docs: inference.md, cluster-always-on.md.

Also (docs, from W1's R2 on .197 → .198): with the switch off, i.e. 0.10.13's path, the hand-updated local-only pair still came back by itself (the leader's re-plan restarted the parts; 1.5–2.5 min; also .195 → .196). The docs and the changelog no longer say the update to 0.10.14 needs the remedy: it goes the earlier release's way, usually back by itself, else the remedy (55d6540b3c).

Before / After

flowchart LR
  subgraph Before
    M1["service starts, mark found"] --> R1{"leadership.role == leader?"}
    R1 -- "member (control moved to it)" --> N1["start stays cleared: pair Stopped"]
    R1 -- "leader" --> Y1["start put back"]
  end
  subgraph After
    M2["service starts, mark found"] --> R2{"control claim names this Mac? (followsPeer)"}
    R2 -- "yes, any role" --> Y2["start put back"]
    R2 -- "claim superseded by the other Mac" --> N2["nothing resumed (mark dropped)"]
  end
Loading

Tests (red first)

Validation: CI. Mac A's build gate is shared, so nothing was built locally. Independent fresh review + refactor assessment (release-0.10.14/evidence/pairs14/review-2171.log): APPROVE WITH NITS, refactor: no change warranted; nits addressed in the last commit (locked-Keychain fallback, the 'joined' arm names the other Mac as leader in its onboarding record so only the claim can resume it). W1's R1/R2 on DevNet pair-2 (w1-brief-reform.md) run on .196/.197, which have #2166 without this follow-up; this only affects a pair whose control moved to the Mac that joined.

… not the onboarding's role (red)

REL14's delta review of #2166: the re-plan after an update (and so its mark)
runs on the derived control leader, whichever Mac drove the onboarding, but
the resume checked the onboarding role. A Mac that leads by its claim with
the member role resumes; a Mac whose claim the other Mac superseded resumes
nothing.
…claim

The resume after an update's restart checked the onboarding role
(leadership.role == leader); the re-plan runs on the derived control leader
(checkForUpdate is gated on a confirmed claim), so on a pair whose control
moved to the Mac that joined, its mark was never resumed (0.10.13's
behaviour). It now asks the recorded control claim (followsPeer, the roles
only without a claim), and resumes nothing without a readable pairing.
Docs follow.
@vercel

vercel Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference-landing Ready Ready Preview Nov 15, 2026 8:35pm UTC
darkbloom-status Ready Ready Preview Nov 15, 2026 8:35pm UTC
eigen-homepages-darkbloom Ready Ready Preview Nov 15, 2026 8:35pm UTC

Request Review

- With the pairing unreadable (a locked Keychain at login) the resume asks
  the onboarding's role, as before, instead of dropping the resume.
- The 'joined' test arm names the other Mac as leader in its onboarding
  record too, so only the claim can resume it; comment says what the arms
  model. inference.md line wrapped.
…W1 R2)

W1 on DevNet pair-2: from 0.10.13 builds a hand update of a local-only pair
deferred and then came back by itself (the leader's re-plan restarted the
parts on the new release: .195 -> .196, and with the switch off .197 -> .198,
1.5-2.5 min). The 'stays down until the remedy' case was an earlier
supervisor's (K1). Docs and changelog no longer say the update to 0.10.14
needs the remedy; they say it may, and what the switch restores.
@jonathan308

Copy link
Copy Markdown
Collaborator Author

Release owner (0.10.14, REL14): merging into dev. Gates on 55d6540b3c: red #2170; fresh review APPROVE WITH NITS on 0d5ab3e542; the nits commit a835eacd48 (locked-Keychain fallback to the onboarding role, leadsByControl, with tests) checked by me; 55d6540b3c docs/changelog only (W1 R2's softened known issue); CI 25/25 green; merges cleanly with dev.

This branch was successfully deployed

3 active deployments
Preview – d-inference-landing — 55d6540b Deployed Nov 15, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 55d6540b Deployed Nov 15, 2026 by vercel[bot]
Preview – darkbloom-status — 55d6540b Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant