Skip to content

DevNet cluster approvals by model, not by build (provider) - #1685

Merged
davidtai merged 10 commits into
devfrom
cluster/version-free-approvals
Oct 31, 2026
Merged

davidtai merged 10 commits into
devfrom
cluster/version-free-approvals

Conversation

@davidtai

@davidtai davidtai commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

DevNet cluster approvals no longer depend on the provider build (ruling: David, 2026-10-30, "versioning seems unneeded"). A cluster_approvals entry can now be a model approval: the 14 fields of the model and its serving terms, with no placement digest and no runtime digests. A new dev build needs no new entry: after an update, the re-adopted setups find the same entry at the next check. Build-pinned entries (production, staging, pair approvals saved by hand) keep every rule they had.

This PR is the provider half of contract v4 (M1, M2, M3 and M4 member side, M6). The coordinator half is a parallel darkbloom-platform PR (lane vfa-platform). The two M2 golden vectors are pinned in ClusterModelApprovalTests and in the coordinator's golden test.

What changes:

  1. ClusterRuntimeApproval reads and saves either shape. The seven runtime digests are all present or all absent (a null digest or a partial set is refused). The encoder omits them when absent, so a saved model approval reads back byte for byte. canonicalPolicy encodes a model approval under darkbloom/coordinator-cluster-model-approval/v1 (M2). Every strict key check (ClusterApprovalFetch.decode, ClusterNativeMemberAttachment.validateObject) accepts exactly the two field sets (isEntry).
  2. NativePairMemberPolicy reads the new domain. Its digests have names now (artifact, pinnedPlan, runtime), so no caller indexes into a list that a model approval does not have. Every reader is migrated: ClusterNativeMemberAttachment.validate, NativePairMemberInstallation (init, requireStart, verifyInstalledFiles, executionPlanSHA256), NativePairMemberPolicy.require, DistributedInstalledOwner.memberAuthorizer, ClusterMemberPreparation.nativeMemberInstallation.
  3. Member side of M3 and M4. Under a model approval the member builds its plan's runtime block from its own saved setup (DistributedInstalledNativeStart.runtimeBlock: worker pin, capability digest, resource policy, profile fingerprint) and registers it (ClusterPlan.runtime, compared by samePlacement, left out when nil). It hashes its metallib and resource library once when it builds the installation; the metallib digest also feeds its device profile's numerics class. A start must carry exactly its own block; at prepare the worker hashes to the setup's pin and the two libraries to the digests taken at registration. The owner admits a start against the same block from its own setup. A build-pinned approval's plan has no block, and an installation that has one under a build-pinned approval is refused.
  4. Selection (M6). ClusterApprovalLifetime.select takes a model approval when its model, schedule and artifact_sha256 are the saved setup's (capability.artifactSHA256). It computes no build facts for it; the facts closure runs at most once per selection, and only when a build-pinned entry of this model and schedule is listed. The later not_after wins across both shapes. ClusterApprovalAttachment.attachment replaces the facts comparison with the artifact comparison for a model approval; every other check stays (both Macs or neither, the absence grace, withdrawn and expired handling, the failing set-aside).
  5. darkbloom cluster runtime-facts stays: build-pinned rows need it.
  6. Docs: docs/reference/configuration.md (new "Model approvals" section; Fetch, Match, Check and When rows; the saved-setup rules), docs/architecture/inference.md, docs/reference/protocol-messages.md (the plan's runtime), and changelog.d/cluster-model-approvals.md. handoff/QWEN27B-PAIR.md does not state the eight-digest match, so it does not change.

Before and after: observable behaviour

flowchart LR
  subgraph Before
    B1[dev push publishes build N+1] --> B2[Macs update; re-adopted setups have no approval]
    B2 --> B3{entry whose 8 digests equal the new build's facts?}
    B3 -- no, until an operator posts new rows --> B4[pair serves on the leader's local API]
    B3 -- yes --> B5[registered with the coordinator]
  end
  subgraph After
    A1[dev push publishes build N+1] --> A2[Macs update; re-adopted setups have no approval]
    A2 --> A3{model approval for this model, schedule and artifact?}
    A3 -- yes, no build facts --> A5[registered again: plan carries each Mac's own runtime block]
    A3 -- no --> A6{build-pinned entry matching the facts?}
    A6 -- yes --> A5
    A6 -- no --> A4[pair serves on the leader's local API]
  end
Loading

Before and after: code path

flowchart TB
  subgraph Before
    F1[ClusterApprovalFetch.decode: 21 fields] --> L1[ClusterApprovalLifetime.select: facts always computed, 8 digests]
    L1 --> T1[ClusterApprovalAttachment.attachment: mismatches vs facts]
    T1 --> P1[NativePairMemberPolicy: hashes 0..7 by index]
    P1 --> I1[NativePairMemberInstallation: start and files vs approval digests]
  end
  subgraph After
    F2[ClusterApprovalFetch.decode: isEntry, 21 or 14 fields] --> L2[select: model approval by artifact; facts lazily, once, build-pinned only]
    L2 --> T2[attachment: artifact check or mismatches]
    T2 --> P2[NativePairMemberPolicy: artifact, pinnedPlan, runtime; model domain]
    P2 --> R2[ClusterMemberPreparation: own metallib and resource digests; DistributedInstalledNativeStart.runtimeBlock]
    R2 --> I2[NativePairMemberInstallation.runtime: approval's, or own block plus own digests]
    I2 --> S2[require / verifyInstalledFiles / memberAuthorizer]
  end
Loading

Hooked up

Paths are under provider-swift/Sources/ProviderCore/.

New item Set at Read at
ClusterRuntimeApproval optional runtime digests, init(from:) Config/ClusterRuntimeApproval.swift:136 (decoder) runtimeDigests :74, canonicalPolicy :91
ClusterRuntimeApproval.isEntry, modelFields Config/ClusterRuntimeApproval.swift:64-67 Inference/Distributed/Membership/ClusterApproval/ClusterApprovalFetch.swift:95, Config/ClusterNativeMemberAttachment.swift:114
ClusterRuntimeApproval.isModelApproval Config/ClusterRuntimeApproval.swift:81 ClusterApprovalLifetime.swift:48, ClusterApprovalAttachment.swift:99
NativePairMemberPolicy.modelDomain Coordinator/NativePairMemberPolicy.swift:72 reader :76-86; encoder Config/ClusterRuntimeApproval.swift:104
NativePairMemberPolicy.artifact, pinnedPlan, runtime reader Coordinator/NativePairMemberPolicy.swift:82-86 NativePairMemberPolicy+NativeStart.swift:28, NativePairMemberInstallation.swift:76-100,169, Config/ClusterNativeMemberAttachment.swift:83-89, ClusterMemberPreparation.swift:118,126
NativePairMemberPolicy.Runtime.init?(block:…), .block Coordinator/NativePairMemberPolicy.swift:24,38 NativePairMemberInstallation.swift:81,127
NativePairMemberPolicy.digest(hex:), hex Coordinator/NativePairMemberPolicy.swift:145-152 NativePairMemberRoster.swift (planDigest), DistributedInstalledOwner.swift:34, DistributedInstalledNativeStart.swift:38
require(_:plan:runtime:) Coordinator/NativePairMemberPolicy+NativeStart.swift:20 NativePairMemberInstallation.swift:127, Inference/Distributed/Installed/DistributedInstalledOwner.swift:40, preparation (nil: the session then calls requireStart)
ClusterPlan.runtime (ClusterPlan.Runtime) NativePairMemberRoster.swift:46 from ClusterMemberPreparation.swift:150 wire encode (synthesized, omitted when nil), samePlacement Protocol/ClusterRosterRegistration.swift:344, validate :358, NativePairMemberInstallation.swift:77,80
DistributedInstalledNativeStart.runtimeBlock Inference/Distributed/Installed/DistributedInstalledNativeStart.swift:36 ClusterMemberPreparation.swift:150, DistributedInstalledOwner.swift:35
NativePairMemberInstallation.installedDigests, .runtime ClusterMemberPreparation.swift:117-124,163 NativePairMemberInstallation.swift:80-82,127,143
select/decide artifact: ClusterApprovalSync.swift:44 (saved.capability.artifactSHA256) ClusterApprovalLifetime.swift:48,83
New or changed test CI part that runs it
ClusterModelApprovalTests (new suite, 6 tests) CI / Provider Unit Tests, last shard (a suite not in scripts/provider-test-shard-weights.json runs there; the summary job's audit checks it ran)
ClusterRosterMemberTests.aModelApprovalsPlanCarriesTheMembersRuntimeBlock, aMemberStartsUnderAModelApprovalOnlyWithItsOwnRuntime CI / Provider Unit Tests, the suite's weighted shard
ClusterApprovalLifetimeTests.aModelApprovalIsChosenWithoutBuildFacts same
ClusterApprovalSyncTests.aModelApprovalIsSavedWithoutBuildFactsAndFoundAgainAfterAnUpdate, aModelApprovalForAnotherArtifactIsSavedOnNeitherMac same
ClusterApprovalFetchTests (mixed list, three new refusal rows) same

The Cluster*Checks/run.sh runners that compile these files (Configuration, Console, Diagnostics, InstalledSession, Placement) are not CI jobs; only ClusterModelProvisioningChecks and ClusterOnboardingChecks run in CI, and neither compiles a touched file. Every new reference stays inside each runner's file list (NativePairMemberPolicy.swift is always compiled with ClusterRosterRegistration.swift and ClusterConfigurationPaths.swift; DistributedInstalledNativeStart.runtimeBlock is in Installed/).

Rows

Row What it checks Mutation that fails it
ClusterModelApprovalTests.canonicalBytesAreTheGoldenVectors both M2 vectors: 205 bytes / 58aee08d…799b (and full hex), 239 bytes / 368372b6…4bf8; build-pinned keeps its domain any change to the model encoder's order, widths, domain or lease terms
…theMemberReaderReadsTheModelDomain reader returns model, generation, artifact, nil plan and runtime, terms, classes; build-pinned digests by name reading 8 digests under the model domain; swapping pinnedPlan/artifact
…theReaderRefusesTrailingTruncatedSwappedAndZeroBytes trailing byte, missing byte, zero artifact, model bytes under cluster domain, cluster bytes under model domain, >8192 bytes dropping r.remaining == 0, the nonzero check, or domain dispatch
…entriesOutsideTheCoordinatorsBoundsNeverEncode 19 out-of-bounds values of the model shape removing the reader call at the end of canonicalPolicy
…eitherShapeRoundTripsByteForByte 14 and 21 fields encode, decode and re-encode to the same bytes encoding nil digests as null; synthesized decodeIfPresent dropping a field
…someButNotAllRuntimeDigestsAndUnknownFieldsAreRefused each single digest added to the model shape or removed from the pinned shape: isEntry, decoder and validateObject refuse; null digests refused; a code-built partial value never encodes; unknown and missing fields refused; both shapes accepted present.count check removed; isEntry accepting a superset; runtimeDigests accepting a partial set
ClusterApprovalFetchTests.aStrictListIsTaken… a list with both shapes is taken isEntry replaced by the 21-field set
ClusterApprovalFetchTests.everyOtherAnswerIsNoApproval (+3 rows) model approval with one runtime digest; model approval without allowed_numerics_classes; build-pinned entry with null digests as above
ClusterApprovalLifetimeTests.aModelApprovalIsChosenWithoutBuildFacts chosen with zero facts calls; other artifact, other schedule, other model, ended: not chosen; mixed list: facts run once, later not_after wins; facts unavailable still choose the model approval calling facts() before the shape check; dropping the memo; comparing the artifact with the facts
ClusterApprovalSyncTests.aModelApprovalIsSavedWithoutBuildFactsAndFoundAgainAfterAnUpdate mixed answer decodes; both Macs save the model approval with no facts call; the saved setup has 14 fields and re-encodes byte for byte; after readopt (new worker digest, no approval) ClusterApprovalCheck.step returns .save(model) while an old-build row that ends later does not match; both Macs save it again removing the artifact path in attachment; matching the old build row; facts called for a model approval
ClusterApprovalSyncTests.aModelApprovalForAnotherArtifactIsSavedOnNeitherMac leader and follower refuse with "the approval's artifact_sha256 differs from this Mac's setup"; both setups unchanged removing the artifact guard in attachment
ClusterRosterMemberTests.aModelApprovalsPlanCarriesTheMembersRuntimeBlock plan carries the block with exactly four names; equal blocks are the same placement, a different worker is not; zero or malformed block refused; build-pinned plan has no runtime key dropping runtime from samePlacement or validate; encoding nil as null
ClusterRosterMemberTests.aMemberStartsUnderAModelApprovalOnlyWithItsOwnRuntime own runtime: prepare admits and verifies 4 files; each of the 4 start digests changed: refused; a metallib digest that is not the file: refused at prepare; no block, no own digests, malformed digest, block worker not the setup pin, block under a build-pinned approval: refused ?? started reached for a model approval; verifyInstalledFiles back on approval digests; dropping the build-pinned plan.runtime == nil guard

Adapted tests

  • ClusterPairApprovalTests.canonicalBytesAreExactlyWhatTheMemberPolicyReaderAccepts: reads pinnedPlan, artifact and runtime by name instead of policy.hashes; same eight expected digests.
  • ClusterApprovalLifetimeTests.selectionTakesThisModelScheduleAndFactsStillCurrentWithTheLatestEnd and aSavedApprovalIsKeptReplacedNearItsEndAndRemovedOnceEnded: pass the setup's artifact and the facts as a closure (new parameters); same expectations.
  • ClusterApprovalFetchTests.approvals(): now also returns a model approval, so the strict-list test takes a mixed list.
  • ClusterApprovalMacs fixture: capability and its digest are settable through readopt(runtime:); the setups are saved by one saveSetups() used by init and readopt (same bytes as before); new modelApproval(...) and sync/cable overloads that take describe closures. The existing overloads keep their behaviour.

No test is deleted, skipped or weakened.

Deviations

  • NativePairMemberPolicy.require(start) with no runtime (only preparation, which parses the prepare frame) skips the runtime comparison for a model approval, as it already skips the plan comparison for a cluster approval. The member session calls installation.requireStart(start) right after it, which compares the member's own block (NativePairMemberSession.swift, init). The owner's memberAuthorizer always passes its own block.
  • The contract says "Plan equality (ClusterPlan.Equal) includes it". The Swift equivalent is ClusterPlan.samePlacement (and the synthesized ==); both include runtime.
  • The Swift ClusterPlan decoder still ignores unknown keys, as before; the "exactly these four names" rule is enforced by the encoder (it writes only the four) and by the coordinator's strict decoder.

Validation

  • No laptop build or test (binding rule). CI on this PR is the run; results below with UTC stamps.
  • Golden vectors recomputed independently in Python from the M2 layout before coding (205 / 58aee08d…, 239 / 368372b6…, hex equal to contract-v4.md).
  • Required Refactor Pass (AGENTS.md): done by lane vfa-provider-rp; see "Refactor pass" below.

CI run 41125352213 on head 8189581be (dev aba3b3987 merged), finished 2026-10-30T20:54Z:

Check Result
Provider Unit Tests shards 1-5 pass (7m26s to 8m02s)
Provider Unit Tests Summary (full-suite audit, coverage) pass
Provider Tests gate pass
Cluster Metadata Checks pass
Release Integrity pass
Docs Lint, Docs Impact pass
Commit Signatures pass
Vercel d-inference, d-inference-console-ui-dev fail; the same two fail on PR 1683, which touches no web app; this PR changes no web app either

The new suite "Cluster model approval" ran in shard 5 (7 of 7 passed, read from the job log). The new and adapted tests in ClusterRosterMemberTests, ClusterApprovalLifetimeTests, ClusterApprovalSyncTests, ClusterApprovalFetchTests and ClusterPairApprovalTests passed in their shards.

Refactor pass

Lane vfa-provider-rp, the independent Required Refactor Pass (AGENTS.md). Outcome: one behavior-preserving commit, 7a992109f.

Change Why
ClusterRuntimeApproval.canonicalPolicy and ClusterPairApproval.canonicalPolicy parse digests with NativePairMemberPolicy.digest(hex:); the pair encoder uses NativePairMemberPolicy.pairDomain One digest parser instead of three copies of the same loop. Same bytes; the pair and cluster golden vectors (NativePairMemberContractTests, ClusterPairApprovalTests, ClusterModelApprovalTests) are unchanged
NativePairMemberInstallation.hex removed; its callers (NativePairMemberSession, ClusterRuntimeApprovalFacts, one test) use NativePairMemberPolicy.hex; NativePairMemberRoster uses ClusterConfigurationCodec.sha256 One hex encoder; the forwarder added nothing
NativePairMemberInstallation.executionPlanSHA256 is stored The initializer already computes and checks it; the computed copy needed an unreachable ?? ""
ClusterApprovalLifetime.select filters the eligible entries first and describes facts once, only when one of them is build-pinned Replaces a ClusterRuntimeApprovalFacts?? memo inside the filter. Same calls (0 or 1) and the same result
ClusterMemberPreparation.nativeMemberInstallation picks the metallib digest per approval shape in one if Removes an unreachable ?? ""
Doc comments rewrapped (ClusterApprovalFetch, ClusterApprovalSync, ClusterApprovalLifetime); docs/provider/two-mac-cluster.md no longer says that every approval matches eight digests, names the installed app, or lasts 14 days The how-to still described only build-pinned entries

Adapted test (rename only): ClusterRuntimeApprovalFactsTests.everyDigestIsTheOneTheMembersChecksCompare calls NativePairMemberPolicy.hex.

Checked line by line (at 8189581be, then again after the pass):

Item Result
Golden vectors Unchanged. No existing vector test changed. The build-pinned encoder writes [placement, artifact, worker, metallib, resource library, capability, resource policy, profile] under the cluster domain, the same order as before
Facts path for build-pinned rows Unchanged result: the same eight mismatches pairs against the same facts. The facts now run only when an eligible build-pinned entry is listed (before: whenever the list was not empty)
Hand-saved pair approvals Unchanged: same canonical bytes; the reader maps hashes[0..7] to pinnedPlan, artifact and runtime in the old order; validate, require, verifyInstalledFiles, the installation and the device profile read the same digests as before
A model approval never computes build facts select (only when a build-pinned entry is eligible) and ClusterApprovalAttachment.attachment (artifact branch) are the only callers of the facts closure on the selection and save paths; the sync row records that the describe closure never ran on either Mac
Member start and file hashes under a model approval NativePairMemberInstallation.runtime is built from the plan's runtime block (DistributedInstalledNativeStart.runtimeBlock: the setup's worker pin, capability digest, resource policy, profile fingerprint) and the metallib and resource library digests taken in nativeMemberInstallation, the same metallib digest the device profile's numerics class uses. requireStart, verifyInstalledFiles and memberAuthorizer read only those
Both Macs or neither ClusterApprovalSync.run, receive and converge are unchanged; the follower runs the same attachment checks
Existing tests None deleted, skipped or weakened. The two removed expectations are replaced by equal ones (policy.hashes read by name; the hex encoder rename)
Decoder strictness (M1) ClusterApprovalFetch.decode and ClusterNativeMemberAttachment.validateObject accept exactly the 21 or 14 field names (isEntry). ClusterRuntimeApproval.init(from:) refuses a partial or null digest set on every read path. The cable's approval command and the setup record's approvalSetAside decode with JSONDecoder and ignore unknown names, as before this PR; the receiving Mac saves only the known fields, and the saved setup passes validateObject at every load
Coordinator-only items of the brief (one environment gate for every catalog path; release check that reuses verifiedPairMemberEvidenceLocked) Not in this repository: darkbloom-platform lane vfa-platform

Opinions for David:

  1. Selection by artifact_sha256 plus member-local runtime pins is the right shape for DevNet. The runtime is no longer pinned by an operator, so the coordinator's release-evidence check (contract M5.2) is the only cross-member worker check. It is in the platform PR, not here.
  2. The preparation parse skipping the runtime comparison (deviation 1) is acceptable: the session calls requireStart on the next line. Threading the installation into the frame parser would add a parameter for no new check.
  3. A model approval that lists numerics classes is in effect pinned to one metallib (the class contains the metallib digest prefix) and one macOS version. Default for the migration: post model approvals with an empty class list, or a dev build that changes the metallib stops the pair again.

Review fixes

The independent review found these behavior bugs. Each is its own signed commit ("fix (review)") with a row that fails without it.

Commit Fix Row (fails without the fix)
36034adbd ClusterApprovalCheck.step filtered a .failing set-aside approval by id alone. A model approval keeps its id, so after 3 quick ends on one build no later build took it again. ClusterSetupRecord.ApprovalSetAside.runtimeBinarySHA256 now records the setup's worker digest (ClusterService.checkApproval sets it from the saved setup); the id is filtered only while the setup runs that worker. A record without the field (older build) decodes and is filtered by id, as before ClusterApprovalWatchTests.aModelApprovalSetAsideAsFailingIsTakenAgainByTheNextBuild: same build .keep; after readopt with a new worker .save(model); an older record (field removed from its JSON) decodes and stays .keep
73216a8d7 ClusterApprovalLifetime.decide kept a saved approval while an entry with its id was listed, even when the operator replaced it in place (new not_after). The saved policy bytes are then not the coordinator's. Now the saved approval counts as listed only when an equal entry is listed; otherwise the withdrawn path runs (a matching entry is saved, else .withdrawn) ClusterApprovalLifetimeTests.aSavedApprovalIsKeptReplacedNearItsEndAndRemovedOnceEnded: same id, new not_after gives .save(listed); same id, other model gives .withdrawn
f65290595 Missing test: DistributedInstalledOwner.memberAuthorizer under a saved model approval ClusterApprovalSyncTests.theOwnerAdmitsAStartUnderAModelApprovalOnlyWithItsSetupsRuntime: its own block is admitted; a different worker or resource-policy digest is refused
56f8a2554 Doc: in docs/reference/configuration.md (Model approvals), listed numerics classes pin the metallib docs only

Not added, with reason: a test of the model path of ClusterMemberPreparation.nativeMemberInstallation needs a DistributedInstalledValidation of a real model folder (manifest and aggregate hash), which no existing fixture provides; ClusterRosterMemberTests.aMemberStartsUnderAModelApprovalOnlyWithItsOwnRuntime covers the installation built from those digests and the block. A comparison of runtimeBlock with real ClusterRuntimeApprovalFacts needs a DistributedInstalledPlan for the facts fixture's capability, which ClusterRuntimeApprovalFactsTests does not build; that test already pins each of the four values the block reads (runtimeBinarySHA256, the capability digest, the resource policy, profileFingerprint) against the facts.

Hooked up (review fixes): ApprovalSetAside.runtimeBinarySHA256 set at Inference/Distributed/Onboarding/ClusterService.swift (checkApproval, Decided.worker from saved.capability.runtimeBinarySHA256), read at Inference/Distributed/Membership/ClusterApproval/ClusterApprovalCheck.swift (step). The rows run in CI / Provider Unit Tests, the shards of their suites. Changelog: one bullet added to changelog.d/cluster-model-approvals.md. Docs: Lifetime and Serve locally rows of docs/reference/configuration.md.

Branch merged with origin/dev a257fc2c2 (signed merge da300fa2a, no conflict). The hooked-up line numbers above this section are at 8189581be; the refactor pass moved some by a few lines.

CI run 41128344103 on head da300fa2a (refactor pass, review fixes, origin/dev a257fc2c2 merged), finished 2026-10-30T21:18:48Z: Provider Unit Tests shards 1-5, Summary, Provider Tests, Cluster Metadata Checks, Release Integrity, Docs Lint, Docs Impact, Commit Signatures and Cursor Bugbot pass. The new rows aModelApprovalSetAsideAsFailingIsTakenAgainByTheNextBuild, theOwnerAdmitsAStartUnderAModelApprovalOnlyWithItsSetupsRuntime, the extended aSavedApprovalIsKeptReplacedNearItsEndAndRemovedOnceEnded, the adapted everyDigestIsTheOneTheMembersChecksCompare and the golden-vector tests passed (read from the job log). Vercel d-inference and d-inference-console-ui-dev fail, as on other PRs; this PR changes no web app.

Rollout (DevNet table migration)

Design: section 6 of the version-free approvals design. Order:

  1. Merge darkbloom-platform PR 636 into dev and deploy DevNet. The coordinator then reads both shapes; the table still holds only build-pinned rows, so nothing changes for the Macs.
  2. Merge this PR into dev. The merge publishes the next dev build, and the DevNet Macs update to it.
  3. When DevNet /v1/releases/latest names that build, run migrate-model-approvals.sh <newest build in the table>. It posts 25 model approvals (13 models; GLM schedule 1 only; id devnet/<model>/s<schedule>; allowed_numerics_classes: []; not_after = now + 90 days). It deletes the rows of every older build first, then posts, then deletes the newest build's rows (the catalog holds at most 64 entries). It then checks that GET /v1/cluster/approvals lists exactly the 25 rows.
  4. The per-build rows are no longer added after this point.
  5. Platform rollback: a platform build older than PR 636 cannot read a model approval and stops at startup. Before you deploy one, delete the model approval rows.

A Mac on a build before this PR refuses an answer that holds a model approval and keeps what it saved. It takes a model approval after it updates (decision 1).

Decisions for David (defaults)

  1. A Mac that still runs a build before this PR refuses a GET /v1/cluster/approvals answer that holds a model approval (strict decode) and so keeps no new approval until it updates. Default: accept; DevNet Macs auto-update, and the migration posts model approvals only after /v1/releases/latest names the build that carries this PR (design section 6).
  2. The provider keeps the preparation parse without the runtime comparison (deviation 1) rather than threading the installation into the frame parser. Default: keep.
  3. Model approvals and numerics classes: a listed class pins the metallib (and the macOS version). Default: post model approvals with allowed_numerics_classes: [], so a dev build that changes the metallib does not stop the pair.

🤖 Generated with Claude Code

davidtai and others added 3 commits October 30, 2026 15:40
A cluster approval may now name no build (a model approval): the 14
fields of the model and its serving terms, without the placement
digest and the six runtime digests. Build-pinned entries keep every
rule they had.

- ClusterRuntimeApproval reads and saves either shape (all seven
  runtime digests or none, never null) and encodes a model approval
  under darkbloom/coordinator-cluster-model-approval/v1.
- NativePairMemberPolicy reads the new domain and names its digests
  (artifact, pinnedPlan, runtime) instead of indexing them.
- Under a model approval the member registers its plan with its own
  runtime block (ClusterPlan.runtime), requires a start to carry it,
  and hashes its worker against its setup's pin and its metallib and
  resource library against digests it took at registration.
- Selection takes a model approval by model, schedule and the saved
  artifact, with no build facts; the facts run at most once, only for
  build-pinned entries. Each Mac's save check compares the artifact.
- Docs and a changelog fragment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
d-inference Error Error Oct 30, 2026 11:40pm UTC
d-inference-console-ui-dev Error Error Oct 30, 2026 11:40pm UTC
d-inference-landing Ready Ready Preview Oct 30, 2026 11:40pm UTC
darkbloom-status Ready Ready Preview Oct 30, 2026 11:40pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 30, 2026 11:40pm UTC

Request Review

davidtai and others added 6 commits October 30, 2026 16:01
Behavior-preserving cleanup of the model-approval change:
- Both canonical encoders (pair and cluster approval) parse digests with
  NativePairMemberPolicy.digest(hex:), and the pair encoder uses the shared
  pair domain constant.
- One hex encoder: NativePairMemberPolicy.hex replaces the forwarding
  NativePairMemberInstallation.hex; the roster uses ClusterConfigurationCodec.sha256.
- NativePairMemberInstallation stores the execution plan digest its
  initializer checked instead of recomputing it with an unreachable fallback.
- ClusterApprovalLifetime.select describes facts once, up front, only when an
  eligible build-pinned entry exists, without a double optional.
- ClusterMemberPreparation chooses the metallib digest per approval shape.
- Doc comments rewrapped; the pair how-to no longer says every approval
  matches eight digests or lasts 14 days.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ClusterApprovalCheck.step dropped a failing set-aside approval by id alone,
and the set-aside clears only on expiry or another save. A model approval
keeps its id for its whole life, so after three quick ends on one build no
later build took it again. The set-aside now records the setup's worker
digest (ApprovalSetAside.runtimeBinarySHA256) and filters the id only while
the setup runs that worker. A record from an older build has no digest and
keeps today's behavior (filtered by id).

Row: ClusterApprovalWatchTests.aModelApprovalSetAsideAsFailingIsTakenAgainByTheNextBuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ClusterApprovalLifetime.decide kept a saved approval while an entry with its
id was listed, even when the operator had replaced that entry in place (a new
not_after, other terms). The coordinator then approves other policy bytes, so
the saved setup could not form a session. A saved approval now counts as
listed only when the listed entry equals it; otherwise the decision is the
withdrawn path's: a matching entry is saved, else the approval is withdrawn.

Row: ClusterApprovalLifetimeTests.aSavedApprovalIsKeptReplacedNearItsEndAndRemovedOnceEnded
(same id, new not_after -> .save(listed); same id, other model -> .withdrawn).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DistributedInstalledOwner.memberAuthorizer under a saved model approval
admits a start that carries the setup's own runtime block and refuses one
whose worker or resource policy digest differs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

2 failed and 3 active deployments
Preview – eigen-homepages-darkbloom — 90d1fa5d Deployed Oct 30, 2026 by vercel[bot]
Preview – d-inference-landing — 90d1fa5d Deployed Oct 30, 2026 by vercel[bot]
Preview – d-inference — 90d1fa5d Deployed Oct 30, 2026 by vercel[bot]
Preview – darkbloom-status — 90d1fa5d Deployed Oct 30, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — 90d1fa5d Deployed Oct 30, 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