Skip to content

AbstractCore 2.42.0: capability backends chosen by registered name or by model, typed refusals, music results report what ran - #59

Merged
lpalbou merged 10 commits into
mainfrom
release/2.42.0
Dec 3, 2026
Merged

lpalbou merged 10 commits into
mainfrom
release/2.42.0

Conversation

@lpalbou

@lpalbou lpalbou commented Dec 3, 2026

Copy link
Copy Markdown
Owner

AbstractCore 2.42.0

Capability backends (music, 3D) are chosen by the name their plugin registers, or by the model, in one order of precedence; a name that selects nothing is refused, never replaced by another backend. Closes backlog item 1370 (a music backend registered by a plugin could not be chosen per request, and a short name fell back in silence).

What changes for users

  • A host (create_llm(..., music_backend=...)) or a request (provider= / backend=, /v1/audio/music) names a backend by full id or short name; a backend a plugin registers is selectable with no AbstractCore release.
  • A model named alone selects the backend that declares it (registry.declare_models, called by the plugin at registration; routing builds no other backend and opens no connection).
  • Precedence: the request, then the host, then the configured output.<modality> route, then the highest priority. A mismatch at one level is refused; a lower level never overrides a higher one.
  • Refusal contract: request_refused, named_by, named_by_source; refusal_attributes(error); survives pickling; the server answers 400 / 409 with a typed body.
  • Music results report the backend and model that ran; /v1/audio/music adds bounded X-AbstractCore-Music-* headers.
  • No music format is forced; discovery reports a preference or route that selects nothing; the server reuses its capability backends and follows its configuration while it runs.
  • Removed: music configuration from ABSTRACTMUSIC_* / ABSTRACTCORE_MUSIC_BACKEND (credentials only in the environment).
  • Floor: abstractmusic>=0.2.2 (published).

Migration notes are in CHANGELOG.md [2.42.0].

Tier

F (full): shared selection code for every capability family, server routes, a new contract.

Local gate (scripts/ci_local.sh, fresh environments from the registries)

  • changelog, ci/test 3.9, 3.10, 3.11, 3.12, 3.13, ci/build, ci/docs: PASS on the release head.
  • ci/console-tui, ci/console-tui MSRV: PASS (crate unchanged).
  • ci/Local-model tests: PASS. The release workflow run locally for v2.42.0 (tests 3.9 to 3.13, local-model tests, docs, build, pre-checks): PASS.
  • Linux and Windows sandbox jobs cannot run on this Mac (unchanged code paths).

Review

Four adversarial passes by a reviewer that did not write the code, each with executable proofs (recorders on every backend, a network recorder, mutation runs): round 1 found a regression where a stored route replaced the host's backend and reached a remote service; round 2 a server route applied twice; round 3 a same-level model silently dropped; round 4 found no blocker. Across 80 precedence combinations no backend or network was reached that the deciding level did not name. Design simplifications from the review were applied (one decider CapabilityRegistry.select, declarations only at registration, one refusal reader; registry.py shrank by a net 377 lines against the first draft).

Real weights (Apple M5 Max, MLX)

  • Library path, only model="AbstractFramework/minimax-music3-8bit" named: routed to abstractmusic:minimax-music3 (ACE-Step has the higher priority), 10.000 s WAV, backend and model reported.
  • Through an AbstractRuntime run and through a scratch AbstractGateway over HTTP (branches of those repositories): 10.00 s WAV each, model reported.

Not in this release

  • Backlog 1371: a registered backend states what an explicit download fetches (the materializer still refuses MiniMax-Music3 and points at AbstractMusic's --download).
  • Backlog 1372: the server's per-request cores for load-time options.
  • PR LFM3-1.7B on MLX and GGUF; refused attachments are reported, never dropped #58 (LFM3-1.7B) touches server/audio_endpoints.py and server/app.py too and will need to merge main after this.

… backends, or refused by name (prepared patch, before review)
…t metadata, discovery over every registered backend
…refusal contract, discovery that reports a bad preference, result metadata, no environment configuration for music (before second review)
…llback); one refusal reader; bounded result headers; a selected backend is built once
…y from its own level or the request; dead tables removed; version 2.42.0
…odel, one order of precedence, refusals typed, music results report what ran
@lpalbou
lpalbou merged commit 5d8df62 into main Dec 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant