Repository navigation
AbstractCore 2.42.0: capability backends chosen by registered name or by model, typed refusals, music results report what ran - #59
Merged
Conversation
… 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)
…ed; backlog 1371 (download hook)
…llback); one refusal reader; bounded result headers; a selected backend is built once
…escribe the final behaviour
…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
… need their plugin (Python 3.9 has none)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.registry.declare_models, called by the plugin at registration; routing builds no other backend and opens no connection).output.<modality>route, then the highest priority. A mismatch at one level is refused; a lower level never overrides a higher one.request_refused,named_by,named_by_source;refusal_attributes(error); survives pickling; the server answers 400 / 409 with a typed body./v1/audio/musicadds boundedX-AbstractCore-Music-*headers.ABSTRACTMUSIC_*/ABSTRACTCORE_MUSIC_BACKEND(credentials only in the environment).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/test3.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 forv2.42.0(tests 3.9 to 3.13, local-model tests, docs, build, pre-checks): PASS.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.pyshrank by a net 377 lines against the first draft).Real weights (Apple M5 Max, MLX)
model="AbstractFramework/minimax-music3-8bit"named: routed toabstractmusic:minimax-music3(ACE-Step has the higher priority), 10.000 s WAV, backend and model reported.Not in this release
--download).server/audio_endpoints.pyandserver/app.pytoo and will need to mergemainafter this.