Skip to content

Ground earnings calculator in bandwidth-limited capacity - #728

Merged
Gajesh2007 merged 2 commits into
masterfrom
codex/earnings-ui-iteration
Aug 25, 2026
Merged

Gajesh2007 merged 2 commits into
masterfrom
codex/earnings-ui-iteration

Conversation

@0xkydo

@0xkydo 0xkydo commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reworks the console and homepage earnings calculators around one transparent capacity estimate, without changing the coordinator or adding an endpoint.

  • requires Mac model, chip family, and unified memory before showing an estimate;
  • pins the three currently supported models, their active parameters, model size, memory floor, and output price;
  • finds the highest-earning supported model that fits memory;
  • estimates single-stream decode from 65% of chip memory bandwidth and active model weights;
  • applies an adjustable duty cycle, defaulting to 5%, with no batching;
  • keeps the estimate caveat prominent and places provider setup directly below the result;
  • limits current enrollment to 48 GB+ Macs while inviting owners of smaller Macs to register interest;
  • adds M5 Ultra and M6 hardware profiles and removes MacBook Air, MacBook Neo, and iMac options.
Model Active parameters Weights Output price / 1M tokens
Qwen3.6 35B A3B 3.0B 22 GB $0.700
Gemma 4 26B A4B 4.0B 17 GB $0.220
GPT-OSS 20B 3.6B 12 GB $0.069

Problem

The previous calculator mixed several theoretical and payout assumptions into the prominent number. Hardware selection was ambiguous, low-memory Macs could appear production-ready, and the disclaimer was easy to crop out of a screenshot.

During local verification, the revised console still showed Estimate unavailable for a valid M5 Max / 48 GB selection. The calculator never reached its formula because model discovery failed first.

Root cause

The calculator treated /api/models as a required runtime dependency, then tried to infer total parameters, active parameters, quantization, memory requirements, and pricing from catalog strings. A failed request—or a catalog response without the calculator-specific fields—emptied the model list and forced a terminal unavailable state.

The invariant for this iteration is simpler: the estimate must be available whenever the user selects supported hardware, because the supported calculator model set and its pricing are known and intentionally pinned.

Before

flowchart LR
  subgraph Behavior
    A1[Select valid Mac hardware] --> B1[Fetch model catalog]
    B1 --> C1{Request and inferred fields valid?}
    C1 -- No --> D1[Estimate unavailable]
    C1 -- Yes --> E1[Calculate earning]
  end
  subgraph Code
    F1[/api/models] --> G1[Client fetch effect]
    G1 --> H1[Parse model names and pricing]
    H1 --> I1[Stored catalog state]
    I1 --> J1[Console calculator]
    F1 --> K1[Separate homepage fallback]
  end
Loading

After

flowchart LR
  subgraph Behavior
    A2[Select Mac model + chip + memory] --> B2{48 GB or more?}
    B2 -- No --> C2[Welcoming interest-registration state]
    B2 -- Yes --> D2[Find fitting pinned model]
    D2 --> E2[65% bandwidth / active weights]
    E2 --> F2[Apply duty cycle, default 5%]
    F2 --> G2[Apply pinned output price]
    G2 --> H2[Monthly earning + screenshot-visible caveat]
  end
  subgraph Code
    I2[Three-model constant] --> J2[Focused capacity formula]
    J2 --> K2[Derived console model rows]
    J2 --> L2[Homepage calculator core]
    K2 --> M2[Result + readiness + calculation UI]
    L2 --> M2
  end
Loading

Implementation

  • Replaces the old reward/share calculation with the requested six-step formula: fitting model, chip bandwidth, 65% bandwidth efficiency, duty cycle, no batching, and output-token pricing.
  • Defines Qwen, Gemma, and GPT-OSS inputs directly in both calculator cores, with parity tests pinning every value.
  • Removes the console fetch effect, loading/error catalog state, model-name parsing, and homepage catalog fetch.
  • Derives ranked model rows directly from selected hardware and the static model list, avoiding redundant client state and an extra render cycle.
  • Requires explicit sequential hardware selection and shows no result until all three inputs are set.
  • Adds a collapsible calculation explanation and a prominent black-text earning caveat.
  • Shows a welcoming interest state below 48 GB instead of a production enrollment path.
  • Makes no coordinator, store, registry, schema, or route changes.

Before-merge follow-up: interest destination

  • Wire Register your interest to the canonical, durable registration destination on both surfaces.
    • The homepage currently opens https://console.darkbloom.dev/earn.
    • The console currently records analytics/local storage and invokes sign-in.
    • Preserve the selected Mac details and only show the email-notification confirmation after registration succeeds.

This PR intentionally does not add an endpoint for that follow-up.

Alternatives considered

  • Keep fetching the existing model catalog and add more parser fallbacks. This would still make a fixed three-model calculator dependent on a runtime request and on display-name conventions that are not calculator contracts.
  • Add a calculator-specific coordinator endpoint. It would provide canonical data but expands backend scope for three stable records; the user explicitly preferred hardcoding for now.
  • Use the full bandwidth limit. Too optimistic for the prominent estimate; the disclosed 65% factor is more conservative.

Verification

  • cd console-ui && npm test -- --run — 57 files, 500 tests passed.
  • cd console-ui && npm run build — production build passed.
  • Repository pre-push TypeScript lint and Next.js build checks — passed.
  • node --test landing/earn-calculator-core.test.js — 5 tests passed.
  • node --check landing/earn-calculator.js and node --check landing/earn-calculator-core.js — passed.
  • git diff --check — passed.
  • Local console walkthrough: M5 Max (40-core GPU), 48 GB, 5% duty cycle shows Qwen $19.20/mo, Gemma $4.35/mo, and GPT-OSS $1.65/mo.
  • Local homepage walkthrough with the same inputs produces the same $19.20/mo primary estimate.

Rollout

Frontend-only. The calculators no longer depend on model-catalog availability, so supported selections calculate immediately. Updating a supported model's price or active-weight specification requires changing the two mirrored constants and their parity test. No provider protocol or production coordinator behavior changes.

@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
d-inference Ready Ready Preview Aug 25, 2026 6:55pm
d-inference-console-ui-dev Ready Ready Preview Aug 25, 2026 6:55pm
d-inference-landing Ready Ready Preview Aug 25, 2026 6:55pm

Request Review

@0xkydo

0xkydo commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Before merge, the Register your interest action needs to lead to the canonical registration destination and persist the submission on both surfaces. The homepage currently opens /earn; the console currently records analytics/local storage and invokes sign-in. Please verify the selected Mac details carry through and only show the email-notification confirmation after durable registration succeeds.

@blacksmith-sh

blacksmith-sh Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
github.com/eigeninference/d-inference/coordinator/api/Build View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@0xkydo

0xkydo commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Simplified this PR to a single frontend-only commit on current master: 17 console/landing files, no coordinator changes, and no new endpoint. The calculators use the existing model catalog plus a temporary hardcoded Qwen output price. The earlier Register your interest follow-up comment still applies to both surfaces before merge.

Gajesh2007
Gajesh2007 previously approved these changes Aug 25, 2026
@Gajesh2007
Gajesh2007 merged commit 7bf570c into master Aug 25, 2026
15 of 17 checks passed
Rehan-shah added a commit to Rehan-shah/d-inference that referenced this pull request Sep 4, 2026
Apple's Aug 25, 2026 refresh added M5 Pro to Mac mini and M5 Max to
Mac Studio, alongside M6 and M5 Ultra which were already listed. The
refresh landed the same day as Layr-Labs#728's calculator rewrite, so these
two tiers were missed in both copies of the hardware table.
Gajesh2007 added a commit that referenced this pull request Sep 28, 2026
…a-era leftovers (#1208)

* fix(coordinator): count a missing provider version as below the routing floor

With EIGENINFERENCE_MIN_PROVIDER_VERSION set, registration, challenge
revalidation and manifest sync exempted an empty provider version from the
floor, so a version-less registration bypassed it; only release-evidence
derivation treated it as below. All four gates now share
belowMinProviderVersion, which counts an empty version as below a configured
floor. The floor stays env-driven (no compiled-in default).

Raise the sanitized prod reference floor to 0.9.5 and document the
empty-version rule. Adds a WebSocket regression test: with floor 0.9.5,
versions "" and 0.9.4 stay connected but unroutable, 0.9.5 routes.

* chore(console-ui): delete unmounted BaseRewardsPanel

BaseRewardsPanel was unmounted in #728; its only importer was its own
test. Point the console-ui and base-rewards docs at what exists instead.

* chore(console-ui): delete unmounted SlackJoinPopup

SlackJoinPopup had no importer outside its own test. With it gone,
SLACK_JOIN_DISMISSED_KEY is unused and INVITE_DISMISSED_EVENT has no
listener, so InviteCodeBanner stops dispatching it and keeps its storage
key module-private. SlackIcon stays (CommunityLinks uses it).

* test(console-ui): drop duplicate, vacuous and Solana-era tests

- provider-dashboard-format.test.ts duplicated format.test.ts through the
  dashboard re-export; its two unique assertions (thousands separator,
  clampPct(NaN)) move to format.test.ts.
- pages.test.tsx: drop walletAddress, @privy-io/react-auth/solana and
  deposit/withdraw mocks for code that no longer exists.
- trust-badge.test.tsx varied props TrustBadge ignores since #1153 and
  checked impossible text. Keep the no-legacy-inference guard, rewritten
  against trust.verification (the only field the badge reads).
- provider-backend-slot-telemetry.test.ts only round-tripped JSON.parse;
  no console code reads those fields. Types stay mirrored.
- payments-routes.test.ts: the stripe checkout tests duplicated
  stripe-proxy-contracts.test.ts, which now also asserts that a valid JSON
  body is forwarded verbatim (the one case it lacked).

* chore(console-ui): remove test-only GA consent grant/revoke

The consent prompt is gone; grantGoogleAnalyticsConsent and
revokeGoogleAnalyticsConsent were only called from tests. Removing them
also strands applyGoogleAnalyticsConsentState, the consent-cookie writer
and its constants, so those go too. The attribution and gtag tests stay;
the gtag-init test now asserts the ga-disable flag the deleted consent
test used to cover. README and console-ui.md stop describing the removed
prompt, cookie and revoke path.

* chore(console-ui): remove test-only exports

highestSeverity, fleetDecodeTps, formatUsdWhole and isPointOnLand had no
importer outside tests. Their assertions go with them. The isPointOnLand
hole-carving case is re-expressed against generateLandDots, so the
even-odd rule the map actually uses (isOnPreparedLand) stays covered.

* chore(registry): drop the tools and tool_choice "none" version floors

The routing floor (EIGENINFERENCE_MIN_PROVIDER_VERSION) is moving to 0.9.5,
so no routable provider can be below the tools floor (0.6.3) or the
tool_choice "none" prompt-policy floor (0.7.10). Delete
capabilityVersionFloors, toolChoiceNonePromptPolicyFloor and
providerMeetsTraitFloorsLocked; providerEligibleForTraitsLocked keeps the
qwen4 catalog policy, prefix-cache protocol floor, tool-constraint and
native-media gates, and the template_render_ok=false fence for every shape.
HasToolCapableProviderForTraits keeps its signature (api caller) and now
reflects only those gates.

Tests:
- deleted TestProviderMeetsTraitFloors, TestReserveProviderExEnforcesTools-
  VersionFloor, TestToolChoiceNoneRequiresPromptPolicyVersionFloor and
  api TestToolsVersionFloor (they only exercised the floors).
- TestHasToolCapableProviderForModel: dropped the 0.5.16 below-floor leg.
- TestQuickCapacityCheckExcludesShapeCooledAndTraitIneligible: removed the
  below-floor provider; base-shape candidates 3 -> 2 (cooled + healthy).
- TestOwnedProviderSummaryAppliesTraitAndVisionGates: the trait leg now
  uses the tool-constraint gate (constrained tools request to a box that
  does not advertise the constraint -> 0, advertising -> 1).
- TestNativeToolAdvertisementRouting: dropped the old/missing-version rows.
- api TestToolsFailFastWhenNoCapableProvider: the "no capable provider"
  fixture is now a template_render_ok=false build (still a fast 503 naming
  tool calls on both surfaces). Its tool-less tail is gone because the
  render gate fences every shape.
- TestFleetSampleCopiesModelCapabilities/fold check: ranks the folded
  version against the qwen4 catalog-policy floor (0.9.6) instead.
- routingsim TestClassifyWithGateFromNDJSON legacy export: the version-less
  fleet now serves the tools arrival (served 1 -> 2); the vision arrival
  stays no_provider.

* ci(console-ui): run the vitest suite in the lint-console job

console-ui tests never ran in CI: the job only linted and built. Add an
npm test (vitest run) step between lint and build, and update the CI map
in docs/developer/test.md.

* docs(console-ui): restamp pages updated by the dead-code cleanup

* chore(registry): collapse the servability activation-reserve version gates

Every routable provider is now >= 0.9.5, past both reserve moves
(0.8.0: flat 3 -> 5.5 GiB; 0.8.16: measured per-model floors and
residency). Delete servabilityLegacyActivationFloorGB,
servabilityActivationFloorMinVersion and servabilityPerModelFloorMinVersion;
servabilityActivationFloor(model) is the per-model table else 5.5 GiB and
servabilityColdWeightsGiB(model, size) is measured residency else the padded
catalog figure. coldTokenBudgetEstimate[WithOffload] lose the
providerVersion parameter, and routingSnapshot.binaryVersion (its only
reader) is removed.

Behavior change for version-less providers (test fixtures, and prod
providers the new routing floor already excludes): they were charged the
legacy 3 GiB floor and padded weights; they now get the per-model regime.

Tests:
- deleted TestPredictServableMixedVersionFleetStagedRollout (existed only
  to pin the 3.0-vs-5.5 mixed-fleet boundary).
- TestColdTokenBudgetEstimate: dropped the legacy/unreported legs
  (110565, 23911); the 5.5 GiB goldens (103854, 17200) are unchanged
  because they pass an unmeasured model id.
- TestColdTokenBudgetMirrorsProviderReserveArithmetic: dropped the 3.0
  sweep leg; the 5.5 "never tighter than the provider" sweep stays.
- TestSnapshotStructuralBudget: the binaryVersion-threading check becomes
  a model-threading check (gpt-oss-20b cold budget = measured 11.5 GiB
  weights + 3.5 floor, strictly above the unmeasured default).
- TestServabilityActivationFloorPerModel / TestServabilityColdWeightsPerModel
  / TestColdTokenBudgetEstimatePerModelFloor: model-only tables; the
  "pre-perModel binary" rows are gone, and the gpt-oss@24GB gain is now
  asserted against an unmeasured model of the same catalog size.
- servability_provider_fit_test / offloaded_weights_test: dropped the
  0.8.0 / 0.9.0 version pins; expected budgets unchanged (17200 is the
  unmeasured-model 5.5 GiB figure either way).

* docs: retire root CLAUDE.md in favor of AGENTS.md

CLAUDE.md duplicated AGENTS.md and had drifted (AWS RDS database, the
codex-rescue quality gate, a stale release flow). Fold its still-accurate
content into AGENTS.md: the libs/mlx vs nested Cmlx metallib note, testing
rules, the release rule, the .external/ rule and the attestation
last-failure-wins pitfall. Repoint codex review and docs references.

* chore(coordinator): drop the pre-0.6.7 vision penalty strip

Providers below 0.6.7 crashed on a vision request carrying repetition,
presence or frequency penalties, so the coordinator stripped those fields
before sealing for them. The routing floor is being raised to 0.9.5 and the
oldest live provider is 0.7.15, so every provider now receives the body
as-is.

Removes penaltySafeProviderVersion, visionPenaltyFields, bodyForProvider and
topLevelObjectHasAnyKey, and the requiresVision (and now-unused provider)
parameters threaded through the body sizing and sealing helpers. Deletes the
penalty gating/fast-path tests and keeps the provider-specific overflow
coverage (noteProviderBodyTooLargeFor, shouldQueueCompatibleProvider) as
its own test.

* chore(coordinator): always require a fresh registration attestation

Providers from 0.8.15 re-sign their registration attestation on every
reconnect; older ones replayed a stored blob, so the coordinator skipped
the timestamp check for them (and for version-less registrations) and
stripped their protected-runtime claims instead. With the routing floor
moving to 0.9.5, drop minProviderVersionForReconnectAttestation and the
legacy branch: every registration attestation must carry a timestamp inside
RegistrationAttestationMaxAge, including one from a provider that reports
no version.

Deletes TestLegacyRegistrationReplayCannotPromoteProtectedRuntimeCapabilities
and reworks the freshness test so a stale missing-version registration is
rejected.

* chore(registry): always reconstruct pooled budgets from private slot grants

Every routable provider is >= 0.9.5, so every slot's ActiveTokenBudgetMax
is a private engine grant (v0.7.5+ one-engine runtime), never the legacy
shared-headroom view. Delete slotBudgetLayout and its constants,
slotBudgetLayoutForVersion, versionNumericCore, parseSlotBudgetLayout[Core],
the layout memo, and the *ForVersion / *WithLayout variants.
providerPooledTokenBudget(slots) and providerTokenBudget(slots) (previously
test-only helpers hard-wired to the legacy layout) are now the production
functions and always sum grants.

Test fixtures report no version, so the pooled tests were silently running
the shared-headroom branch. Under private grants the per-slot check already
bounds every resident model's own pending, so the pooled gate only bites
when (a) a COLD model's pending (admitted against the box, not yet loaded)
is charged against resident grants, (b) a re-slice shrank a grant below its
live use, or (c) a known-zero slot holds live use. Retargets (all verified
by mutation: disabling the resident/cold pooled gate, byte mode, the byte
total, or the capacity clamp each fails the tests below):
- TestPooledAdmissionCoResidencyDoubleSpend / TestFreeMemoryAdmitsPooled-
  RejectsGapDoubleSpend: a cold co-model's in-gap burst (14k / 19k of a
  2x10k = 20k pool) makes a resident gemma 8k (resp. 2k) request fail even
  though its own 10k slot reads idle; 6k (resp. 14k pending) is the control.
- TestConcurrentReservationScansCommitPooledBudgetAtomically: two COLD
  models race for one 3k grant (exactly one 2k admit); new control shows a
  10k grant admits both.
- TestModelCapacitySnapshotPooledBudgetClamp: cold burst 20k -> gemma
  remaining 0 / not ready; 14k -> 6_000 (was 10k pool - 4k = 6_000).
- TestFreeMemoryAdmitsByteNormalizedHeterogeneousKV, TestPooledAdmission-
  ByteDoubleSpendRealPath, TestModelCapacitySnapshotByteModePooledClamp:
  a shrunk 100 kB/token grant (max 100, used 500 = 50 MB) leaves 60 MB of
  110 MB, so a 10 kB/token request caps at 6_000 tokens (token mode would
  say 9_600); 8k rejected, 5k admitted, capacity row 6_000 (was 1_000).
- TestFreeMemoryAdmitsByteModeCorrectsTokenOverReject: shrunk small-KV
  slot (90k live vs 10k grant) -> tokens say no headroom, bytes say 0.2 GB;
  1k big-KV admitted, 2_001 rejected.
- TestProviderPooledTokenBudget two-slot row: total 11_000 -> 19_000;
  TestProviderPooledTokenBudgetByteNormalization: 1e9/100k -> 2e9/110k;
  TestPooledByteTotalFromLiveUsedNotCommitted: total 1e9 -> 2e9, boundary
  20_000 admit / 20_001 and 24_000 (inflated) reject.
- TestPooledColdUnknownKVChargedInBytes: comments only (pool 1 -> 2 GB;
  its assertions derive from pool.totalBytes).
- TestProviderTokenBudget: two-slot rows 17000 -> 20000 and 13000 -> 15000;
  the over-committed single slot is now used 11000 / total 10000 (a shrunk
  grant, the used > total case FleetCapacity documents); added a known-zero
  rate slot row. TestFleetCapacitySnapshotDedupsTokenBudget renamed
  ...SumsPrivateGrants, 17000 -> 20000.
- TestPooledAdmissionV075PrivateGrants... renamed ...PrivateGrants...; its
  0.7.4 shared-pool half is gone. Deleted TestSlotBudgetLayoutForVersion-
  HandlesReleaseSuffixes and TestPooledAdmissionAllowsCoResidentWithinPool
  (subsumed by the private-grants test, which admits strictly more).
- version memo tests: layout-memo assertions removed; the key-storage clone
  test now feeds a substring key to the segments memo; the gate test routes
  the qwen4 registry id so providerMeetsQwen4CatalogPolicyLocked is the
  version parse under test (positive control: trusted version memoized).

* chore(provider): delete dead tests, probes and unused code

Tier-1 dead-code pass on the Swift provider. Every deletion was checked for
production callers (Sources and libs/mlx-swift-lm) before removal.

Tests / probes:
- DiffusionGemmaArtifactFixtureTests symlink (CI's nested mlx-swift-lm step
  already runs it; the fixture symlink a live test uses stays).
- PagedDivergenceProbeTests probe suite and PagedDecodeAccuracyProbeTests
  (temporary operator-run probes). The teacher-forced contiguous-vs-paged
  agreement gate that shared the probe file moves to
  PagedTeacherForcedAgreementTests.swift with its harness.
- Gemma4DecodeProfileTests, GemmaMTPSafePerformanceLiveTests,
  FlashNextOpaqueRawDiagnosticTests and the two print-only DiffusionGemma
  diagnostics.
- Duplicate kill-switch test (rationale moved to the surviving test).

Code with no production caller:
- v1 EncryptedKVStore and the KEK DEK wrap/unwrap/wipe helpers (the SSD tier
  uses only KVCacheKEK.loadOrCreate).
- LocalMLXModelFoundation, BackendLivenessProbe (120 s constant inlined),
  EngineV2Bridge.endRecoveryReload, OSStatusCatalog, Qwen4ToolEnvelopeConstraint
  (framing vocabulary kept), ChatCompletionResponse & friends,
  UnifiedMemoryCap.canAdmit, SlotSizingSnapshot.estimatedKVBytes,
  FanController.reassert, TelemetryClient.ingestEndpoint, ReleaseInfo.sha256.
- Legacy scheduler error strings nothing emits any more (`invalid token count`,
  `exceeds batch token budget`, `timed out waiting for capacity`) and
  StandaloneServer.schedulerErrorStatus. `duplicate request id` is still
  emitted by the bridge and stays.
- The "MDM/ACME upgrade" trust reason the coordinator stopped sending.
- The release-hash fallback to `sha256`/`binary_hash` (the coordinator always
  sends `bundle_hash`).

Runtime-smoke bootstrap:
- Remove the pre-v0.8.10 latch bootstrap from main.swift and
  PackagedRuntimeSmoke.seedRetainedValidationEnvironment. The one caller that
  ran a bare `runtime-smoke` (release-swift.yml, post-notarization lane) now
  seeds the same environment as SelfUpdater/install.sh; build/test docs too.
  Accepted risk: updaters 0.7.8-0.8.9 fail the packaged smoke on self-update
  and need an install.sh reinstall.

AGENTS.md: drop the nonexistent kv-* self-test executables.

* chore(registry): delete uncalled ValidatePrefixCacheRegistration func and NormalizeChipClass

The package-level ValidatePrefixCacheRegistration in cache_capabilities_v2.go
has no callers; registration goes through the (*Registry) method of the same
name in cache_eligibility.go (api/provider.go), which shares the helpers that
stay. NormalizeChipClass has no callers; ResolveChipClass covers chip-class
resolution. Neither file is touched by the in-flight pc/* prefix-cache
branches.

* chore(provider): drop Python-era and unused wire fields

The Swift provider has sent nil for these since the v0.5.0 cutover (or never
read them), so removing them changes no bytes a real provider puts on the
wire or signs:

- `python_hash` / `runtime_hash`: removed from RuntimeHashes, the register
  message, the attestation response, AttestationResponsePayload and the
  signed StatusCanonicalInput/Payload. Both were omit-when-nil and production
  always passed nil (RuntimeHashReporter was called without runtime
  directories), so the canonical status bytes and registration JSON are
  unchanged for a real provider. RuntimeHashReporter loses its
  runtime-directory hashing (and its `.pyc`/`__pycache__` filters) and
  BinarySHA256Hasher.hashFilesSorted, which only that path used.
  templateHashes (incl. `mlx_metallib`) are untouched.
- `privacy_capabilities.python_runtime_locked` / `dangerous_modules_blocked`:
  the coordinator stopped requiring them in v0.5.11, decodes absence as false,
  and never reads them; production already sent false.
- `inference_request.body`: never read by the provider (requests arrive
  sealed in `encrypted_body`); the decoder now ignores the key.
- The superseded EnvironmentScrubPlanner / DebugAttachmentProtector (and their
  PYTHON* scrub list) in SecurityFoundation.swift; live hardening stays in
  EnvironmentScrubber (DYLD_* etc.) and AntiDebug.

Golden vector regenerated: SecurityTests.statusCanonicalMatchesCoordinatorGoldenBytes
drops its `python_hash`/`runtime_hash` inputs and keys (the Go twin in
coordinator/attestation/status_canonical_test.go carries the same bytes).
Every vector that never contained those keys is unchanged.

threat-model.yaml: record the retired flags and the retired v1 KV store.

* docs: drop the retired registry version gates from routing and scheduling docs

- routing.md: the servability activation floor and weights term are
  per-model only (no 0.8.0 / 0.8.16 regimes); note the routing floor.
- scheduling.md: pooledBudgetAdmits sums private grants and what it
  catches beyond the per-slot check (cold-model pending, shrunk grants).
- hardware-support.md: drop the deleted servability constants.
- consumer/models.md, provider/self-route.md, system-profiler.md: no
  tools version floor; tool eligibility is the template_render_ok fence
  and the tool-constraint advertisement.
- AGENTS.md: the tool-scoped gates are capability advertisements; the
  servability mirror has no version regimes.
- activation-reserve-overhaul-plan.md: status line records the removed
  coordinator v0.8.16 gate.

* chore(coordinator): send desired_models to every Swift provider

desired_models was gated on minProviderVersionForDesiredModels (0.5.17)
because older Swift decoders disconnected on unknown message types, and a
provider reporting no version was treated as too old. Those builds are long
retired and far below the routing floor, so providerSupportsDesiredModels is
now just the Swift-backend check.

Fake-provider tests that registered without a version now also receive
desired_models; their read loops skip it, and the models_replace tests
assert the refresh frame that precedes the resumed receipt.

Also drops the last reconnect-attestation version reference from the
attestation doc.

* ci: drop the released-v0.7.12 mixed-version integration lanes

The integration job ran the current coordinator against the pinned
released v0.7.12 provider (artifact-digest tier only, since the runner is
SIP-disabled) and the released v0.7.12 coordinator against the candidate
provider. With the routing floor moving to 0.9.5, v0.7.12 is no longer a
supported peer in either direction.

Deletes e2e/mixed_version_test.go, scripts/fetch-v0712-provider.sh and both
workflow steps, lowers the job budget to the remaining 50m of test
allowances plus 25m cold-setup overhead (75m), and removes the lane from
docs/developer/test.md.

* docs(api-contracts): request-shape gates replace the retired registry feature floors

The tools (0.6.3), servability (0.8.0/0.8.16) and private-slot-grant
(0.7.5) version floors are gone from the registry. The remaining
request-shape gates key on advertised capabilities (tool-constraint
protocol, template_render_ok), and the Flash-Next registry ID keeps its
all-request qwen4RegistryMinimumProviderVersion floor.

* chore(console-ui): drop the always-nil provider wallet_address

The provider wallet_address registration field is being removed from the
Swift and Go sides; it was never set. Remove it from MyProvider and
MySummaryResponse, stop the no_payout warning from consulting it (the
warning now keys on account_id alone, with copy that no longer mentions a
wallet), and drop it from the test fixtures.

Also remove the last wallet-login leftovers: DeviceLinkForm's
user.wallet fallback (email is the only Privy login method and embedded
wallets are off) and the unreachable /login page's 'email, wallet, or
social' copy.

* chore(registry): delete the test-only reason-less drain wrappers

DrainQueuedRequestsForProvider and drainQueuedRequestsForModels had no
production callers (the api layer uses the WithReason variants). Their
tests now call DrainQueuedRequestsForProviderWithReason(..., DrainTrigger-
Unknown); the routing-context "legacy" assertion is dropped because the
exported DrainQueuedRequestsForModel (still used by api/provider.go and
api/provider_models_replace.go) already pins the unknown default.

* docs(agents): name the reason-carrying queue-drain entry point

drainQueuedRequestsForModels was deleted; the concurrency pitfall now names
drainQueuedRequestsForModelsWithReason.

* chore(coordinator): remove Python-era attestation fields

The Swift provider has sent nil python_hash/runtime_hash since v0.5.0, no
release workflow publishes them, and hypervisor_active only came from
providers below v0.6.31 (oldest live provider: 0.7.15; routing floor moving
to 0.9.5). The matching Swift-side removal is eafeab723.

Wire (coordinator/protocol, mirrors provider-swift):
- register: drop python_hash, runtime_hash
- attestation_response: drop python_hash, runtime_hash, hypervisor_active
- privacy_capabilities: drop python_runtime_locked, dangerous_modules_blocked
Decoding stays lenient (encoding/json ignores unknown keys), so a provider
that still emits any of these, empty or null, keeps working; a new protocol
test pins that.

Signatures: AttestationBlob drops hypervisorActive and StatusCanonicalInput
drops hypervisor_active/python_hash/runtime_hash. Every one was
omit-when-empty, so the canonical bytes for a current provider are
unchanged. The Go golden vector now matches the Swift one byte for byte,
and a new test verifies a signature over those exact bytes.

Runtime manifest: PythonHashes/RuntimeHashes and their requireOneOf checks
go (they were always empty and scoped out of the Swift check); the manifest
is template hashes only, and /v1/runtime/manifest drops python_hashes and
runtime_hashes. POST /v1/releases no longer accepts python_hash or
runtime_hash (the decoder rejects unknown fields; no caller sends them).
/v1/me drops the per-machine python_hash/runtime_hash fields.

Store: ProviderRecord and Release drop the fields; the providers and
releases python_hash/runtime_hash columns are kept (rollback safety) and
written as empty strings. Deletes the uncalled UpdateProviderRuntime.

Backend: the only Python-specific tests become non-Swift-backend tests;
routing already admits only mlx-swift.

* chore(console-ui): delete the unreachable /login page

proxy.ts already redirects /login to /, so the page never rendered. Keep
the redirect so old links still land in the app, and add a proxy test so
it cannot silently regress into a 404. The page imported only shared
modules, so nothing else becomes orphaned; the Louize preload stays
(ChatWelcome and page headings use it) with its comment corrected.
Drop /login from the console-ui route table and AGENTS.md structure.

* chore(coordinator): delete code only tests or nothing call

Verified with a repo-wide grep (coordinator/, e2e/, local branches for
ChainHashes) that none of these has a production caller:

- attestation: VerifyMDACertChain, GetAppleEnterpriseAttestationRootCA and
  parsePEMCertificates (production verifies via VerifyMDADeviceAttestation),
  plus the six TestVerifyMDACertChain* tests and their cert helpers.
- billing: Service.IsExternalIDProcessed and store IsExternalIDProcessed, the
  Solana-era tx idempotency check, plus TestIsExternalIDProcessed.
- store (interface + memory + postgres): ValidateKeyFull,
  RecordUsageWithCost, UsageRecordsSince, UpsertPublishingAPIKey,
  FindPublishingAPIKeys, HasRedeemedInviteCode, UpdateProviderLastSeen,
  UpdateProviderTrust, UpdateProviderChallenge.
- mdm.ModelMaxMemoryGB wrapper (hardware.ModelMaxMemoryGB stays),
  promptcontract.ChainHashes and the ErrBlockIndex it alone returned,
  protocol.TelemetrySourceCustom/KnownSources/KnownSeverities,
  ratelimit.ConfigPair.Check.

CreateKeyForAccount stays: the e2e testbed and integration tests call it.
Docs that cited the deleted symbols now cite the live ones.

* chore(coordinator): drop tools version-floor wording left after the floor removal

The tools and tool_choice version floors are gone from the registry, so the
tool fail-fast only reflects the trait gates (chiefly template_render_ok).
The user-visible 503 no longer claims "requires provider >= 0.6.3", the
self-route reason no longer asks for a newer node version, and comments in
the admission, profile-record and routingsim code stop citing the floor or
the deleted providerMeetsTraitFloorsLocked.

* test(coordinator): drop tests that never run and run the rest of e2e in CI

- apns/live_test.go needed an on-device APNs probe that is not in the repo.
- TestVerifyProviderViaMDM_TimeoutTransient was opt-in behind
  RUN_MDM_TIMEOUT_TEST, which nothing sets; mdm's
  TestVerifyProviderTimeoutErrorString covers the timeout classification.
- internal/e2e/cross_compat_test.go and its testdata/decrypt Rust crate
  checked Rust-provider-era crypto_box interop.

CI's Coordinator Tests filtered packages with `grep -v /e2e`, which also
dropped coordinator/internal/e2e and e2e/testbed/... (all runnable without
a provider). Exclude only the top-level e2e integration package; the newly
included packages pass locally with -race and DATABASE_URL set.

* chore(store): retire the one-shot earnings, usage-totals and withdrawable backfills

backfill_withdrawable_balance_v1 (2026-07-22), backfill_usage_totals_v1
(2026-08-25) and backfill_earnings_summary_v1 (2026-09-09) are recorded as
applied in prod schema_migrations. Delete the backfill code, its marker
bookkeeping, the scratch-table DDL and the tests/fixtures that only replayed
the backfills.

A fresh database still needs two things only those backfills provided, so
they move into the schema slice:
- balances.withdrawable_micro_usd is now part of CREATE TABLE balances, at
  the same trailing position the backfill's ADD COLUMN gave it;
- the single usage_totals counter row is seeded with
  INSERT ... ON CONFLICT (id) DO NOTHING (RecordUsage only UPDATEs it, so
  without the row usage was silently never counted).

Verified with pg_dump --schema-only of an empty database migrated by the
old and new binaries: the only difference is the two backfill-only scratch
tables (earnings_summary_backfill_pending, usage_totals_backfill_state). The
new binary boots on an old-migrated database and the old binary boots on a
new one. No table is dropped, so existing databases keep their markers and
scratch tables.

Live coverage that lived in the backfill test files moves to earnings_test.go
(TestRecordProviderEarningMaintainsSummaryWithoutRestart,
TestBaseRewardEarningPathsExcludeInferenceWork); the throwaway-database
helper moves to harness_test.go as newThrowawayTestDatabase; a new
TestFreshDatabaseSchemaServesWithdrawableAndUsageTotals fails without the
seeded row. The deploy runbook drops the earnings-plan recovery procedure.

* docs(changelog): note the coordinator legacy-compat cleanup

* chore(provider): drop the flat install layout and eigeninference-enclave link

Only <=0.5.8 releases shipped flat-only (no Darkbloom.app) bundles, and the
binary was renamed from eigeninference-enclave in v0.3.0.

- SelfUpdater stages only bundles that contain Darkbloom.app; a flat-only
  tarball is refused. StagedBundle.extractedApp is non-optional and the
  flat* members, the canonicalize/legacy-symlink block, the flat signature
  branch and FanHelperCapabilityVerifier.rejectFanCapableFlatExecutable go.
  The bin/ verifier copies are still hash-checked (release hashes are
  computed from them).
- The pre-paged (v0.7.5/v0.7.7) capability-marker escape hatch is removed:
  an artifact without the signed paged marker is refused.
- UpdateInstallLayout/UpdateRecoveryStore are app-only (no liveLayout,
  installFlatDirectory, removeStaleAppBundle, layout parameters).
  VerifiedPredecessor.Layout keeps only `app` and the field stays in the
  persisted manifest/transaction so a rolled-back predecessor can still
  decode state this release writes.
- ensureCanonicalLinks and install.sh no longer create
  bin/eigeninference-enclave (an existing link is left untouched);
  install.sh's commit_staged_flat_bundle and flat branch are gone and a
  bundle without Darkbloom.app fails the install. coordinator/api/install.sh
  re-synced; install_sh_test now pins darkbloom-enclave and the absence of
  the retired alias.
- Tests: the flat-only install test now pins the refusal; flat recovery
  cases (flat->app rollback, flat power-loss matrix) are removed and the
  interrupted-rollback / predecessor-enclave cases run on the app layout.

* chore(provider): drop config migrations and Rust-era on-disk shims

Upgrade-path shims whose trigger states no supported (>= 0.9.5) or live
(>= 0.7.15) provider can still be in. Accepted risks are listed below.

Config (provider.toml):
- Remove the v0.8.1 engine_v2_max_concurrent 8->4 revert, the v0.8.14 MTP
  bool->tri-state migration and the config_version stamp machinery
  (ConcurrencyDefaultMigration, MTPModeDefaultMigration,
  ProviderConfig.configVersion/appliedMigrations, migrateConfigSchema and its
  RetiredKnobWarnings message). `config_version` is now an ignored key and is
  no longer written. The boolean `mtp` key is no longer decoded: it joins
  RetiredCodingKeys (ignored + one startup WARN) so a generated `mtp = false`
  can never read as MTP off. Accepted risk: an old explicit `mtp = true`
  becomes `auto`. The Swift-only `BackendSettings.mtp` view and `init(mtp:)`
  go too.
- Remove the every-start rewrite of a toml pointing at localhost or
  api.dev.darkbloom.xyz to prod, and the legacy config-path discovery/copy
  (~/.config/eigeninference, ~/Library/Application Support/{darkbloom,
  eigeninference}); the default path is ~/.config/darkbloom/provider.toml.
  #768/#1194 only adapted this legacy code. With nothing left to migrate,
  migrateConfigIfNeeded and the migrateOnDisk/copyToCanonical plumbing are
  gone: loading a config never rewrites it.

On-disk / keychain / launchd:
- LegacyKVCacheSweeper (<=0.7.4 tier) and NodeKeyPair.purgeLegacyFiles, and
  with them ProviderLoop's purgeLegacyFiles parameter and the live-test
  guards that only protected an operator's tree from the sweep.
- Rust-era eigeninference auth_token paths: load/save/delete and the sudo
  report read only ~/.darkbloom/auth_token. Accepted risk: a stale legacy
  token file is no longer deleted by `darkbloom logout`.
- v1 -> v2 Secure Enclave key migration (v0.5.14): a leftover v1 keychain
  item is never read; the v2 label/access group are unchanged.
- The `dev.darkbloom.provider` launchd label compat (current label is
  io.darkbloom.provider). Accepted risk: a Rust-era legacy plist still on
  disk is no longer disabled by `darkbloom stop`.
- TelemetryOverflowQueue push/drain (already no-ops): PanicHook writes only its
  stderr marker, KVBackendCrashLoopGuard's default sink drops the event. The
  legacy queue purge (privacy) stays.

* fix(coordinator): remove the unauthenticated wallet earnings lookup

GET /v1/provider/earnings?wallet=<id> took an account ID and returned that
account's balance, ledger and payout history with no authentication
(threat model T-031 / SEC-030). Delete the route and the Solana-era wallet
payout chain that only it read: CreditProviderWallet, RecordProviderPayout,
SettleProviderPayout, ListProviderPayouts and Ledger.AllPayouts. The
provider_payouts table stays in the schema so an older binary still boots.

Earnings remain available through the authenticated account-scoped
endpoints. A regression test pins the route at 404.

* chore(provider): drop wallet-address, the unverified CDN download and dead params

- `register.wallet_address`: always nil and the coordinator has no reader;
  removed from the Register message, codecs and CoordinatorClientConfig.
- `darkbloom-enclave wallet-address`: nothing invokes it any more.
- ModelDownloader's legacy CDN path fetched config/tokenizer/weights by name
  with no SHA-256 check. Every served catalog version carries `r2_prefix` +
  `aggregate_sha256` (NOT NULL in model_versions), so a catalog entry without
  them now fails closed before any network or cache work (new regression
  test). urlExists/parseShardNames, which only that path used, go too.
- install.sh no longer migrates ~/.dginf / ~/.eigeninference
  (enclave_key.data, wallet_key, auth_token); embedded copy re-synced.
- Dead parameters: StandaloneServerConfig.hardware (and runLocalStandalone's
  hardware), StandaloneServerConfig's `mtp` Bool shim, and the ignored
  terminationGracePeriod on the instance/media-serving locks.

* chore(provider): serve App Attest shadow protocol 3 only

The provider registers `app_attest_protocol = 3`, and the coordinator binds
each shadow session to the provider's registered protocol, so no coordinator
sends this binary a v1/v2 request.

- AppAttestShadowClient refuses any request whose protocol_version is not 3
  (invalid_request, before Apple or Keychain work). The v1 non-account key
  scope, the v2/v3 conditionals and preparedProtocol go; attest/assert always
  require a status and always cache the enrollment proof.
- AppAttestShadowPayload.clientHash computes only the v3 transcript.
- ShadowEnrollmentAttempt.canResume requires protocol 3 on both sides: the
  2<->3 cross-protocol resume is removed.
- Tests move to protocol 3. Vectors: the v1 vector 6961d03f… and the v2 vector
  91a11ff6… are deleted from the Swift tests; the v3 vector e654e820… (shared
  with coordinator/protocol/app_attest_shadow_test.go) now pins the transcript
  and the diagnostics-invariance check. testV3UpgradeKeepsPendingV2Proof… is
  removed; a new test pins that protocols nil/1/2 are refused.

Accepted risk: a retry attempt persisted under protocol 2 (Apple unavailable
mid-attest on a pre-v3 binary) is retired and its key regenerated under the
generation budget.

* docs(provider): restamp cleaned-up docs and note provider changes

Restamp the provider docs touched by the dead-code cleanup, repoint the
T-016 affected file away from the deleted LocalMLXModelFoundation.swift, and
add a Provider subsection to the Unreleased changelog.

* chore(store): delete store methods only tests call

Switch each test fixture to the production path, then delete the method
from the interface and both backends:

- SettleProviderFloorDraw, SettleProviderFloorDrawForSession ->
  SettleProviderFloorDrawBatch (legacy raw-key floors are now seeded before
  the machine binding exists, as they were paid historically)
- CreateStripeWithdrawal -> CreateStripeWithdrawalWithDebit, seeded with
  CreditWithdrawable so balances are unchanged
- RequestProfilesSince -> RequestProfilesSinceFiltered with a zero filter
- CreateKey -> CreateAPIKey; ValidateKey -> AuthenticateKey; KeyCount ->
  active keys from ListAPIKeys
- GetProviderBySerial -> GetProviderForRestore (and the memory store's
  write-only serial index goes with it)
- GetProviderEarnings, GetProviderEarningsSummary -> the account-scoped
  reads; the provider-keyed earnings_summary rows were written but never
  read, so the three upserts that maintained them are gone too (the rows
  and table stay)
- ListActiveModelRegistry -> ListActiveModelRegistryWithError

ListProviderRecords, DebitWithdrawable and RecordPayment had no production
callers and their tests exercised only the method itself; they are
deleted with it. No table or column is dropped.

* chore(coordinator): stop classifying error frames that carry no failure_code

Every Swift provider since v0.8.5 sets failure_code on every inference_error
(InferenceFailure.code is non-optional), and below-floor providers are never
dispatched, so the mixed-fleet classifier that derived a code from status,
error_reason and terminal_cause is dead. A code-less frame is now drift like
an unknown code: it fails closed as generation_failure and counts
inference.invalid_failure_code. The bare-429-means-queue_full carve-out goes
with it. Empty terminal_cause handling is unchanged.

Test fixtures that relied on the derivation now send the failure_code the
old classifier produced, and the tests of the removed compatibility path are
replaced by a regression test that no bounded hint reclassifies a code-less
frame.

* fix(coordinator): fail challenges that omit the status signature or Secure Boot

Every Swift provider since the first Swift release signs the canonical
status and reports secure_boot_enabled in every challenge response; a
failed probe sends false, and a signing failure sends nothing. So for a
provider with an attested SE key a missing or empty status_signature now
takes the hard challenge-failure path (still counted as
outcome:status_sig_missing), and an omitted secure_boot_enabled fails closed
like an omitted sip_enabled. Providers without an attested key keep
advisory status fields as before.

Regression tests drive the real WebSocket path: an attested registration,
the first challenge, and replies with the status signature absent or empty,
or Secure Boot omitted, all fail; a current signed reply passes. The shared
challenge-response test helpers now sign the status like a current
provider.

* chore(attestation): drop the unused RDMA result field and v0.2.0 wording

VerificationResult.RDMADisabled was copied from the blob and never read,
the TEMPORARY v0.2.0 enclave note described a rollout long finished, and
the challenge failure reason still told providers to update to v0.2.0.
RDMA policy and the signed rdmaDisabled blob field are unchanged.

* chore(coordinator): remove the retired telemetry ingest route and its allowlist

POST /v1/telemetry/events only ever answered 410 without reading the body:
the Swift TelemetryClient and the console facade stopped posting, and the
sanitizer behind the allowlist was already deleted. The Go field allowlist
filtered nothing, and its three-way parity test pinned a Go set no code
read; the TypeScript mirror set had no reader either. Delete the route, the
handler, the allowlist, TelemetrySourceCustomValue and the TS set, and pin
the absence of any ingestion route (404, body not reflected, nothing
counted) instead.

The telemetry wire types stay: the coordinator emitter uses the enums and
the Go/Swift/TS symmetry tests pin the event shape. Docs now say what the
privacy backstop is: no client ingestion path exists, and each emitter call
site passes fixed operational keys.

* chore(store): retire the Solana-era one-time migrations

The wallet-keyed model_prices delete (cleanup_wallet_model_prices_v1) and
the column drops of billing_sessions.chain, users.solana_wallet_address,
users.solana_wallet_id and releases.image_bridge_hash have all run in
production. The price delete was also a latent fresh-database bug: it ran
before users existed, failed silently without writing its marker, and then
deleted rows on the second boot.

No table or column is dropped or added. A database migrated by this binary
still boots the previous one (checked old->new->old and new->old->new on
throwaway databases), whose copies of these statements are guarded no-ops.
A restart test now pins that migrate never deletes model_prices rows.

* chore(appattest): serve App Attest protocol 3 only

Protocol 3 and the 0.9.4 safe-version floor landed in the same release;
protocol 2 shipped only in the unsafe 0.9.3, protocol 1 was never tagged, and
older providers announce none. So the session now requires protocol 3 and
the version gate goes: startAppAttestShadow refuses protocol 1 and 2 before
any frame and observes rollout/provider_upgrade_required, so stragglers stay
visible; the rollout and identity-candidate decisions drop their version
argument.

The protocol-1/2 branches go with it: the v1 and v2 transcripts
(AppAttestShadowHash, AppAttestShadowHashV2), the version-conditional wire
fields, enrollment save, owner and key-rotation checks, and the v2
authorization and hardware-comparison allowances. A stored enrollment
without a protocol version or from protocol 2 is refused as
enrollment_context (not retried); expiry is still checked first, so every
such row, all older than a day, reads as enrollment_expired. A test pins
both and that the same connection then starts a fresh protocol-3 enrollment.

Tests move to protocol 3; the v1/v2 transcript vectors are deleted and the
shared v3 vector (e654e820...) stays, matching the Swift side (a2ccc2499).

* chore(e2e): stop stamping config_version and undoing the canonical config copy

The provider no longer reads config_version or copies a --config file to
~/.config/darkbloom/provider.toml (6d2c15468), and the harness builds the
provider from the same tree. Drop the config_version = 3 line from
BuildProviderTOML and the removeMigratedTestbedConfig clean-up with its
tests; the posture test reads the written config from the state directory
instead of the removed generatedConfig field.

* chore(coordinator): drop the step-ca leftovers from state export and the base image

The ACME device-attest leg and its step-ca were removed on 2026-07-03. The
state exporter no longer special-cases a step-ca Badger db (it only logged a
warning), its tests use today's disk layout instead of step-ca fixtures, and
the runbook stops describing that warning. Dockerfile.base no longer
installs the step-ca and step CLI binaries.

The coordinator Dockerfile still pins the old base digest, which carries
the binaries until a human rebuilds the base image and re-pins it. The rest
of stateexport is unchanged.

* ci(release): drop the vX.Y.Z-swift tag alias

No -swift tag exists locally or on origin, and the Swift cutover it served
is long finished. release-swift.yml triggers on v*.*.* only, and
resolve-provider-release.sh no longer strips a -swift suffix, so a
v0.9.0-swift tag (which v*.*.* still matches) fails version resolution
before any approval or signing. A test pins that rejection.

* chore(scripts): delete unreferenced helper scripts

Nothing in the Makefile, workflows or docs runs these:
- .github/scripts/threat-model-review.py (its workflow was deleted in #889)
- scripts/benchmark-light.py, scripts/benchmark-models.py
- scripts/cache_soak_monitor.sh, scripts/load_soak.py

AGENTS.md's scripts tree and the mise.toml comment named two of them.

* test(benchmarks): bound the rounded-reference check by one output-dtype step

The rounded-reference comparison allowed 2e-5 for every output dtype, which
is tighter than one bfloat16 step: the fixture's float64 oracle and the
analyzer's float32 reference, each rounded to bfloat16, land one step apart
(1.22e-4 observed). The bound is now one step of the output dtype at the
largest output magnitude, floored at the previous 2e-5 that covers the
float32 reference's accumulation error.

* chore(protocol): drop the plaintext body from inference_request

InferenceRequestMessage.Body was never set: requests travel only as
encrypted_body, and because omitempty does not apply to a struct field every
frame carried an empty {"model":"","messages":null,"stream":false}. The
Swift InferenceRequest has had no body key since eafeab723 and rejects a
request without encrypted_body. InferenceRequestBody stays as the decode
shape tests use for the decrypted plaintext.

* chore(console-ui): drop python_hash and runtime_hash from the provider type

The coordinator stopped sending both fields when the Python-era attestation
fields were removed (705d183c4); nothing in the UI reads them.

* docs(coordinator): give the real reason the coordinator normalizes tool schemas

The comments said the pass exists for providers older than 0.6.3, which can
no longer be routed. It stays because the Swift normalizer repairs only
tools[].function.parameters, applies its size gate after media inlining,
and treats an explicit "type": null as present, so flat and input_schema
tools and large bodies still depend on it. No behavior change.

* test(coordinator): name tests for the live states they cover

Several tests were framed around legacy providers although their inputs
are states a current provider still produces: a heartbeat before the
engine's first capacity snapshot, a slot that reports no token budget or
no max_concurrency. Rename them for that state (no assertion changes), name
the key tests for the CreateAPIKey/AuthenticateKey paths they now drive,
and replace the stale pre-0.6.5 wording for a nil template_render_ok (the
provider found no chat template to render). A telemetry failure-mode row
still named the deleted allowlist parity test.

* docs(changelog): note the second coordinator cleanup pass

* docs: restamp pages updated by the second cleanup pass

* test(coordinator): make the online-delete 409 test deterministic

Register the live connection under its own session id so the registry's
async persist cannot overwrite the seeded row, and read that row back by
id instead of by serial.

* fix(provider): tell operators which mtp_mode keeps a retired mtp key's intent

The boolean [backend] mtp key is ignored, so a bare `mtp = false` with no
mtp_mode now resolves the "auto" default instead of off. The generic
retired-knob warning only said to remove the key. The mtp warning now names
the replacement: mtp_mode = "off" keeps MTP off, mtp_mode = "on" forces it
on. The other retired keys keep the generic text.

* fix(store): refuse to boot a database that skipped the retired backfills

The retired backfill_withdrawable_balance_v1, backfill_usage_totals_v1 and
backfill_earnings_summary_v1 migrations left a database that never ran them
booting cleanly and failing later: no withdrawable column breaks balance
writes, and a zero-seeded usage counter undercounts silently.

checkRetiredBackfills runs after the schema slice. It fails when
balances.withdrawable_micro_usd is missing, records each marker whose source
table (balances, usage, provider_earnings) is empty, seeds the usage_totals
row only while usage is empty, and fails when a source table has rows but no
marker. A fresh database therefore records the markers v0.9.10 would have
recorded, and a refused boot writes nothing a v0.9.10 remedy boot would
misread (the seed moved out of the slice so it can no longer plant a zero
counter that v0.9.10 adopts as exact).

Also fix the schema_migrations and UsageTotals comments that pointed at
removed code.

* docs(ops): raise the live provider floor to 0.9.5 before deploying this coordinator

The removed version gates assume nothing below 0.9.5 is routable, but only
the reference prod.env moved; the live /etc/d-inference/env value is a
required key refresh-env never changes. The deploy runbook gains a
human-only pre-swap step (per_version census, then raise the floor) and a
read-only check that prod has the three retired backfill markers, plus a
troubleshooting row for the new boot refusal. The tier-1 rollout table and
the CHANGELOG stop implying prod already moved.

CHANGELOG also notes the retired backfills and their boot guard, spells out
that a bare mtp key without mtp_mode now means auto (set mtp_mode = "off"
to keep MTP off), and says 0.7.8-0.8.9 updaters may fail the packaged smoke
check rather than always failing it.

* test(provider): pin the self-updater's refusal of pre-paged artifacts

Refusing an artifact with neither paged runtime code nor the signed paged
marker replaced a silent return, and nothing tested it: the signed staging
fixture copies the real darkbloom binary, which always contains the paged
capability string, so it cannot reach that branch.

The three marker guards move unchanged (same order, same error strings)
into PagedRuntimeCapabilityVerifier, which verifyRuntimeCapabilities calls
at the same point. New tests drive it with a plain app skeleton: the
pre-paged case must throw (it fails with the old return), and the parity,
invalid-marker and valid cases are pinned by their exact messages.

* test(install): pin install.sh's refusal of a bundle without Darkbloom.app

The installer now fails a release bundle that has no Darkbloom.app instead
of installing its flat bin/ files, but no harness case covered it. The
atomic-install harness builds a flat-only archive from the valid one (the
bin/ verifier copies stay, so their hash checks pass and the missing app is
the only reason left to refuse it) and asserts, for both scripts/install.sh
and the embedded coordinator copy, a non-zero exit, the exact rejection
message, an untouched previous install and no bin/ links. Removing the
guard makes the case fail on a hash error instead.

* chore(provider): delete helpers orphaned by the flat-layout and runtime-hash removals

- UpdateAtomicFilesystem.atomicRemove only retired a stale Darkbloom.app
  during a flat install or rollback; the flat layout is gone and it has no
  caller.
- The free hashFilesSorted(_: [String]) in BinaryHasher.swift has no caller
  since the Python runtime-directory hash went. WeightHasher.hashFilesSorted
  is separate and stays.

* docs(provider): stop describing removed upgrade shims as current

Comments and a few operator-facing strings still described behavior the
cleanup removed:

- Package.swift: install.sh no longer creates an eigeninference-enclave
  link; darkbloom-enclave ships in Darkbloom.app and is linked from bin/.
- UnifiedMemoryCap: the coordinator mirror selects the model's measured
  floor, else the 5.5 GiB default; servabilityPerModelFloorMinVersion and
  its version regimes are gone.
- SelfUpdater.installRoot: the non-.app branch is a bare binary such as a
  dev build, not a flat install layout.
- SSD prefix cache: no upgrade sweeper remains; kv3 is simply a sibling of
  the retired kv root (suite title too).
- Config readers (auto-update, sudo report, models location, launch agent,
  CLI and beta-command test helpers): loading a config no longer migrates
  or rewrites it.
- Secure Enclave: a v1 key is never loaded, so it is not a self-test
  failure cause; the SSD test-key path has no default-label migration to
  bypass; unenroll deletes only the current signing key.
- ServiceDrain: there is only one launchd label.
- Register no longer carries a wallet (connection comment, test helper),
  and logout no longer promises a local wallet.
- ProviderConfig header: continuous batching is not a backend setting.

* chore(e2e): delete the unused ReportedPrivacyCapabilities accessor

Only its own test called it; the mixed-version gate it served is gone. The
registration-time privacy snapshot and its mutex go with it.

* chore(admin-ui): stop selecting the always-empty python_hash and runtime_hash

The columns stay in the schema for rollback but no release or provider
writes them, and no admin page renders them.

* chore(benchmarks): stop writing config_version in the radix harness config

The provider ignores the key.

* chore: fix comments that describe removed behavior

- protocol: a missing status_signature fails the challenge; it is no
  longer advisory.
- api: the runtime manifest unions template hashes only; the challenge
  signer is the in-process SE key, not the eigeninference-enclave CLI.
- release workflow: install.sh no longer creates the
  eigeninference-enclave link; describe the bin/ copies as the hash
  verification copies they are and cite verifyReleaseArtifact by name.

* docs: describe current behavior where pages still described removed paths

- threat model: no v1-to-v2 SE key migration (a v1-only host gets a fresh
  v2 key), no startup KV sweeper, and protocol 3 was introduced in 0.9.4
  but first shipped in 0.9.5.
- configuration and CLI reference: only the canonical config and token
  paths are read; no legacy fallback or migration. Unenroll removes only
  the v2 SE key.
- troubleshooting: replace the retired legacy-flat signature row with the
  install.sh refusal of bundles without Darkbloom.app.
- app-attest-shadow: every session is protocol 3, so the protocol >= 2
  and protocol-1 rotation rules are gone.
- identity-binding, developer/test, beta-features, provider-release and
  the reference index: drop the purged-key-file, migrateOnDisk and
  legacy-location wording, add mtp to the retired keys (use mtp_mode),
  and describe the bin/ copies accurately.

* docs(store): say what serving a database that skipped a retired backfill gets wrong

* chore(provider): delete the telemetry field allowlist and batch wire type

TelemetryFieldFilter mirrored the coordinator's telemetry ingest allowlist,
which went with the ingest route. Every production event it filtered ends
in TelemetryClient.emit, which drops it; only injected test sinks ever see
the fields, and every key the four producers pass was already on the list,
so the filter changed nothing a test or the fleet observes. The four sites
(EngineHealthEvent.make, the bridge's vision-submit event, the vision
refusal event and the Gemma optimization report) now set their fields
directly.

TelemetryBatch described the retired POST /v1/telemetry/events body and had
no production user. The mock coordinator keeps that route as a trap but
records raw bodies, so the privacy test now catches any POST, malformed
or not, instead of only bodies that decode.

Tests: the allowlist-survival test and assertion go; comments that promised
allowlist mirroring now say what holds (fixed operational keys, never prompt
or media content).

TelemetryClient.emit and the injectable sinks stay: tests use the sink to
observe engine decisions (MTP posture, refusals, wedge and resize events).

* fix(store): name v0.9.10 as the remedy build, not any earlier one

Coordinators built before ac3d934a9 re-run the balance backfill on every
start, so 'v0.9.10 or earlier' pointed at a build the rollback runbook
forbids. Also spell the floor gauge with its Datadog namespace.

* fix(install): refuse a pre-paged Darkbloom.app like the self-updater does

install.sh let a signed app with neither paged runtime code nor the paged
capability marker through (the v0.7.5/v0.7.7 compatibility return), while
SelfUpdater already refuses one. Those releases are below the 0.9.5 floor,
so the installer now fails with "Staged app predates the paged runtime;
pre-paged releases are no longer installable." and keeps the previous
install. coordinator/api/install.sh re-synced.

The atomic-install harness's LEGACY case now expects that refusal from
both installers: non-zero exit, the exact message, the previous install's
sentinel intact and no bin/ links. Restoring the old return makes it fail.

* chore(telemetry): delete the batch, filter and store-record types nothing uses

With the ingest route gone and Swift's TelemetryBatch and field filter
deleted, nothing builds protocol.TelemetryBatch, protocol.TelemetryFilter or
store.TelemetryEventRecord. Remove them, and rewrite the telemetry comments
that still described server-side coercion, batch caps, token-stamped
account IDs and allowlisted fields. The TypeScript mirror's header no longer
claims a symmetry test it does not have, and AGENTS.md says only Go and
Swift pin the mirrors. telemetry-schema, telemetry-inventory and storage
docs drop the removed types.

* docs(provider): add the install.sh pre-paged app refusal to troubleshooting

* chore(provider): fix two comments that describe removed behavior

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference-console-ui-dev — 2b363a04 Deployed Aug 25, 2026 by vercel[bot]
Preview – d-inference-landing — 2b363a04 Deployed Aug 25, 2026 by vercel[bot]
Preview – d-inference — 2b363a04 Deployed Aug 25, 2026 by vercel[bot]
benchmarks — 2b363a04 Deployed Aug 25, 2026 by 0xkydo via E2E Benchmarks #457
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.

2 participants