Repository navigation
Conversation
The card sits on the shared cache and outlives the application, so a reinstall or a chart that added a capability kept the first install's supports. Router routed only those while the engine, which mounts its routes from the env, served more, and runtimecfg refuses audio supports edits, so nothing could correct the card short of deleting it. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Problem
An audio application's model card (
model-spec.json) lives on the shared cache and survives an uninstall. On boot,ReconcileModelSpecFileloads that card and disk wins, so a reinstall, or a chart that adds a capability toMODEL_SUPPORTS, keeps the first install'ssupports.The engine mounts its routes from the env, so it serves the new capability, but Router only routes what the card declares. The card can't be fixed at runtime either:
runtimecfg.ApplySpecrefuses audio supports edits ("audio supports are fixed at startup by MODEL_SUPPORTS and the engine spec"). The only way out was deleting the file by hand.Observed with an audio app reinstalled with
MODEL_SUPPORTS=supports_stt,supports_diarover a card from an earliersupports_sttinstall./v1/modelslistedsttanddiar, but/api/model-specand Router showedsttonly.Change
ReconcileModelSpecFilereplaces an audio card'ssupportswithMODEL_SUPPORTSand writes the card back when they differ (overlayAudioSupportsFromEnv).EngineAudioonly. Every other engine keeps disk-wins, since their supports are editable through Router.MODEL_SUPPORTSkeeps its card.Tests
TestReconcileModelSpecFile_AudioSupportsFollowTheEnv: the env's supports reach memory and disk, and the disk's name is kept.TestReconcileModelSpecFile_AudioSupportsOverlayIsAudioOnly: a chat card, and an audio card with no env, keep their disk supports.make verifypasses, including golangci-lint at the CI pin.Made with Cursor