Repository navigation
chore: remove pre-0.9.5 compat code, dead tests and Python/Rust/Solana-era leftovers - #1208
Conversation
…ng 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.
BaseRewardsPanel was unmounted in #728; its only importer was its own test. Point the console-ui and base-rewards docs at what exists instead.
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).
- 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).
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.
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.
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.
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.
…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).
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.
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.
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.
…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).
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.
… 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.
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.
…ling 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.
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.
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.
… 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.
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.
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.
drainQueuedRequestsForModels was deleted; the concurrency pitfall now names drainQueuedRequestsForModelsWithReason.
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 eafeab7. 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.
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.
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.
…loor 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.
…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.
…able 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.
…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.
…hing 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c181b2be4c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…e-cleanup Conflicts were docs freshness stamps and the CHANGELOG head; keep both the Unreleased cleanup section and the v0.9.11 release-candidate section. master now carries v0.9.11, so the retired-backfill remedy no longer calls v0.9.10 the last release that runs them.
jonathan308
left a comment
There was a problem hiding this comment.
Approving after review.
Spot-checked the security-sensitive hunks:
- Version floor: the four registration/revalidation/manifest-sync gates now share
belowMinProviderVersion, closing the empty-version bypass; the WebSocket regression test covers ""/0.9.4 unroutable vs 0.9.5 routable. - Attestation: removing
hypervisorActive/python_hash/runtime_hashfrom the canonical-marshal path is safe for the post-0.6.31 fleet, and the fail-closed behavior on missingstatus_signature/secure_boot_enabledhas a dedicated test (challenge_status_fail_closed_test.go). - Earnings endpoint: the unauthenticated
GET /v1/provider/earningsroute and its test/store chains are fully gone; no references remain on master. - Coordination with #1207 on the intentionally-deferred cache/receipt code is respected.
CI is green (coordinator -race, provider suite, console-ui vitest, e2e integration, SDK qualification). Merge is blocked only on this review.
Reminder before deploy (already in the description): raise EIGENINFERENCE_MIN_PROVIDER_VERSION=0.9.5 in prod env first — the ~25 sub-0.9.5 providers will stop receiving traffic at that point.
jonathan308
left a comment
There was a problem hiding this comment.
Approving after review.
Spot-checked the security-sensitive hunks:
- Version floor: the registration/revalidation/manifest-sync gates now share
belowMinProviderVersion, closing the empty-version bypass; the WebSocket regression test covers ""/0.9.4 unroutable vs 0.9.5 routable. - Attestation: removing
hypervisorActive/python_hash/runtime_hashfrom the canonical-marshal path is safe for the post-0.6.31 fleet, and fail-closed behavior on missingstatus_signature/secure_boot_enabledhas a dedicated test. - Earnings endpoint: the unauthenticated
GET /v1/provider/earningsroute and its test/store chains are fully gone; no references remain. - Coordination with #1207 on the intentionally-deferred cache/receipt code is respected.
CI is green (coordinator -race, provider suite, console-ui vitest, e2e integration, SDK qualification).
Reminder before deploy (already in the description): raise EIGENINFERENCE_MIN_PROVIDER_VERSION=0.9.5 in prod env first — the ~25 sub-0.9.5 providers will stop receiving traffic at that point.
Conflicts were doc freshness stamps and two rows in docs/developer/test.md where master removed the mixed-version lane next to the new recurrent E2E rows; kept the new rows, dropped the deleted lane, restamped the five pages. Go build/vet and the coordinator prefix-cache tests, the console UI lint and type-check, and the provider prefix-cache suites pass on the merged tree.
Resolve the conflicts with master: - Telemetry allowlists: master #1208 deleted the coordinator ingest allowlist (coordinator/api/telemetry_handlers.go), the Swift TelemetryFieldFilter and the TS TELEMETRY_ALLOWED_FIELDS set, and rewrote telemetry-schema.md to say no field filter exists. Take master's side; the PR's mtp_acceptance allowlist entries have no home. The producer in EngineV2Bridge+MTP.swift still emits mtp_acceptance. - ProviderConfig.swift and EngineV2SlotFactory+Native.swift: keep the PR's mtpAcceptance/mtpAcceptanceByModel parameters next to master's modelAutopilot and modelArtifactSHA256. - CHANGELOG.md: move the PR entry to its own "Unreleased — typical MTP acceptance" topic section; keep master's entries. - docs: keep the PR's cli-reference row next to master's autopilot rows and master's startup_preload row; use master's date-only freshness stamps (docs-check now requires them, also on the design record). - libs/mlx-swift-lm: pin 87610307 (mlx-swift-lm #165 head), which contains mlx-swift-lm main 94dc1976 and so master's pin e407e899. libs/mlx-swift stays at 0f4fe403, the revision 87610307 pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
This removes dead tests, legacy compatibility code and version gates for provider builds below 0.9.5, which is the planned routing floor. It also removes code that only tests called and several Python-, Rust- and Solana-era leftovers. Net: −21.9k / +5.1k lines across 553 files.
Important
Deploy order: raise the prod routing floor first. Set
EIGENINFERENCE_MIN_PROVIDER_VERSION=0.9.5in/etc/d-inference/env; this is a human-only change. The value is still0.7.5today.deploy/environments/prod.envalready reflects 0.9.5. Once the floor is live, the routing gates removed here can't fire for any routable provider.Fleet snapshot (Datadog, 2026-09-27): 1,117 providers, 95.5% on 0.9.9. 25 providers (2.2%) are below 0.9.5 and will stop receiving traffic.
What changed
Coordinator: routing floor
""and0.9.4connect but aren't routable;0.9.5routes.Coordinator: removed version gates (all below 0.9.5)
tool_choice: "none"floor (0.7.10). Thetemplate_render_ok=falsefence stays. The 503 message no longer mentions a version.provider_upgrade_required. Stored no-version or protocol-2 enrollments are refused, with no retry loop, and expire after 24 h.Coordinator: security
GET /v1/provider/earnings?wallet=. It returned any account's balance and ledger given the account UUID (T-031/SEC-030). The Solana-era wallet chain behind it is gone too.status_signatureorsecure_boot_enabled. Every Swift build since v0.5.0 sends both.Coordinator: removed dead code
python_hash,runtime_hash,hypervisor_active,python_runtime_locked,dangerous_modules_blocked, and the Python-backend branches.'', so a rollback still works.inference_request.body, which was always empty and is no longer read by Swift./v1/telemetry/events(the 410 stub) and its allowlist.failure_code.Dockerfile.base.Provider (Swift)
EncryptedKVStore,LocalMLXModelFoundation,BackendLivenessProbeand the superseded security planner;OSStatusCatalogand the telemetry ingest endpoint.config_version;bin/layout and theeigeninference-enclavesymlink;release-swift.ymlnow seeds the same env thatSelfUpdaterandinstall.shuse.walletAddressand thewallet-addressenclave subcommand.console-ui
BaseRewardsPanelandSlackJoinPopup;/loginpage (the redirect is kept and now tested);wallet_address,python_hashandruntime_hashtypes.CI, scripts and repo hygiene
grep -v /e2ealso droppedcoordinator/internal/e2eande2e/testbed, so those now run.fetch-v0712-provider.sh.v*-swifttag alias; no such tags exist.CLAUDE.md. It duplicatedAGENTS.mdand had drifted. The still-accurate parts moved intoAGENTS.md.Before / after
flowchart LR subgraph Before R1[provider registers<br/>version v or empty] --> F1{floor set and<br/>v non-empty and v below floor?} F1 -- yes --> U1[connected, not routable] F1 -- no --> G1[routable] G1 --> V1{per-request version gates<br/>tools 0.6.3 · tool_choice 0.7.10<br/>slot layout 0.7.5 · servability 0.8.0/0.8.16<br/>vision strip 0.6.7} V1 --> D1[dispatch: old or new path by version] R1 -. empty version .-> G1 end subgraph After R2[provider registers<br/>version v or empty] --> F2{floor set and<br/>v empty or v below floor?} F2 -- yes --> U2[connected, not routable] F2 -- no --> G2[routable, v at least 0.9.5] G2 --> D2[dispatch: single current path<br/>template_render_ok fence only] endflowchart LR subgraph "Before: attestation challenge" C1[challenge response] --> S1{status_signature?} S1 -- missing --> A1[advisory, counted, passes] S1 -- present --> K1[verify canonical bytes<br/>incl. optional python_hash,<br/>runtime_hash, hypervisorActive] C1 --> B1{secure_boot_enabled nil?} -- yes --> P1[accepted] end subgraph "After: attestation challenge" C2[challenge response] --> S2{status_signature?} S2 -- missing --> X2[challenge fails] S2 -- present --> K2[verify canonical bytes<br/>identical for current providers] C2 --> B2{secure_boot_enabled nil?} -- yes --> X3[challenge fails] endAccepted risks
install.shreinstall.mtp = true|falsewithoutmtp_modeis ignored and treated asauto. The startup warning tells operators to setmtp_mode = "off"to keep MTP off.darkbloom logoutno longer deletes a Rust-era token copy left at~/.config/eigeninference/auth_token. It was already on disk, and logout never revoked it server-side.install.shrefuse flat-only and pre-paged artifacts.~/.dginfand~/.eigeninferenceare no longer migrated. Orphanedbin/eigeninference-enclavelinks stay on disk.earnings_summaryrows are frozen; they were written but never read.Deliberately not in this PR
lossySnapshot: these would conflict with Prefix cache: fix the hit-rate collapse (epoch churn, demand-gated writes, 1,024-token checkpoints, credit band, bounded fence, index sizing, sidecar parity) #1207.stateexportpackage: pending a decision.Follow-ups (human)
EIGENINFERENCE_MIN_PROVIDER_VERSIONto 0.9.5 in prod before deploying this.coordinator/Dockerfile.baseand re-pin its digest to drop the step-ca binaries.python_hash/runtime_hash, the backfill scratch tables,provider_payouts,payments).DGINF_RELEASE_KEYrepo secret.Test plan
go test -raceover all coordinator packages and the e2e testbed (throwaway Postgres 16), plusgo vetandgolangci-lintv2.1.6: 0 issues.scripts/run-provider-tests.sh(3,250 swift-testing + 208 XCTest, 0 failures), release build.tsc --noEmit, eslint, 796 vitest tests,next build.bash -n,test-install-atomic.sh, onboarding and release-pipeline script tests,go test ./api -run Install.make docs-check,docs-impact-check.TestDeleteMyProvider_OnlineConflict409×100 under-race(it was flaky mid-branch; now deterministic).e2eTestIntegration(needs a Swift binary + model; runs in the integration workflow).Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.