feat: add support for decoding strategies in health metadata - #6
Merged
Conversation
shackmann
requested review from
DRMetaplectic,
j1z0 and
mariusvilkas
as code owners
August 17, 2026 19:32
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.
This is a basic but breaking change. The Python SDK works only with a model instance that exposes the required field.
Note
High Risk
Breaking health wire contract: any deployment without a valid
decoding_strategyfails compatibility checks at health time, blocking all SDK usage until the service is upgraded.Overview
Breaking V1 health contract:
/healthzmust now includedecoding_strategy. The SDK parses it onHealthMetadata, exportsSUPPORTED_DECODING_STRATEGIES(parallel_dense,parallel_scalable,autoregressive), andvalidate_service_metadata()rejects missing, empty, or unknown values withUnsupportedServiceContractError—the same path used byJointFMClient.health()before forecasts run.Docs, the service-health notebook, fixtures, and tests were updated to match. Deployments that omit the field or run an older inference image will fail health checks until they advertise a supported strategy.
Reviewed by Cursor Bugbot for commit d2b893c. Bugbot is set up for automated code reviews on this repo. Configure here.