Repository navigation
Preserve compatibility when loading model catalogs without legacy instructions - #809
Conversation
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.
Code Review
This pull request introduces a custom deserializer, deserialize_model_infos_with_legacy_base, to support model catalogs that omit the legacy base_instructions field by falling back to model_messages.instructions_template. It also adds a targeted validation lane and corresponding tests. The review feedback correctly points out a discrepancy between the documented behavior and the implementation: the deserializer currently prioritizes the legacy base instructions over the canonical template when both are present. The reviewer suggests reversing this priority in the deserialization logic and updating the associated test assertion accordingly.
…11999-catalog-exact-contracts
Summary
model_messages.instructions_templatewithoutbase_instructionsScope
This successor PR is intentionally isolated from PR #793 after its branch advanced to unrelated remote candidate
3c7007e5d7e040032359fac495fc001d4dd32d47. The current implementation candidate is frozen at6793b5a5d9c434e60ee084b3db4dd953d2ca6114, based onff11ada689bc6d449f2dcbfae15ccfac91c83466.The original compatibility/proof slice changed six paths. The causal routing/planner repair adds exactly two paths:
.github/workflows/sedna-heavy-tests.yml— expose the focused lane as a manual choice.github/scripts/test_ci_planners.py— update the three assertions directly affected by that explicit laneThe existing
.github/validation-lanes.jsonpath is part of the original six and now marks the laneexplicit_only.Full changed paths are exactly:
.github/blob-size-allowlist.txt.github/scripts/test_ci_planners.py.github/validation-lanes.json.github/workflows/sedna-heavy-tests.ymlcodex-rs/models-manager/models.jsoncodex-rs/models-manager/src/cache.rscodex-rs/protocol/src/openai_models.rsjustfilesummary.mdis intentionally excluded. No force-push or merge of the foreign PR branch was performed.Compatibility precedence
When both fields are present,
get_model_instructionsconsumes the canonicalmodel_messages.instructions_templatefirst. The legacybase_instructionsfield is preserved for downstream overlay/config consumers; it is only populated from the template when the legacy field is absent. The adjacent regression test asserts both properties.Validation
The focused hosted lane is
codex.model-catalog-compat-targeted, invokingjust model-catalog-compat-targeted. The lane is explicit-only and is not selected by automatic frontier/PR coverage.