Repository navigation
Adapters: forward obr #90 labels, label the DEFINE parameter mismatch, deprecate recommend_model's horizon - #289
Open
vahid-ahmadi wants to merge 2 commits into
Open
vahid-ahmadi wants to merge 2 commits into
vahid-ahmadi wants to merge 2 commits into
Conversation
…precate recommend_model horizon - obr_shock forwards subsidy_residual_warning, procurement_residual_warning and nominal_consistent_legs when the model sets them (obr #90). - define_scenario reports BaselineParameterMismatch (define-uk-model #36) as its own refusal, matched by class name. - recommend_model: horizon stays in the schema, is echoed, and now returns horizon_note and a DeprecationWarning (#210). - Drift canary hank_25bp_easing gains a description of its unit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ng raises the policy rate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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.
Summary
Four small backend changes that follow from round-1 PRs in the model repositories. No published number changes, and no pin moves.
1.
obr_shockforwards three more model labelsobr-macroeconomic-model #90 sets
df.attrs["subsidy_residual_warning"],["procurement_residual_warning"]and uses["nominal_consistent_legs"]. An MCP caller never sees the frame, so the adapter now copies them into the payload when they are present (.get, so it works at the current pin0e44ec8and after a re-pin).nominal_consistent_legsis set, forCGG(["CGGPS", "CGGPSPSF", "PSCE"]), so aCGGpayload gains that one key today. The two warnings arrive with the re-pin.2.
define_scenariolabelsBaselineParameterMismatchdefine-uk-model #36 adds
BaselineParameterMismatch(ValueError). It fell into the genericValueErrorbranch, whose hint is about a cached run with no departure from baseline. It now returns"refused": "baseline parameter mismatch"with a hint that says what the problem is, like the stock-flow refusal.define_scenario_incidencepasses the refusal through unchanged (it already does this for any payload withrefused).3.
recommend_model:horizonis deprecated (#210)Decision: deprecate, do not add a vocabulary.
horizonstays in the tool schema and is still echoed back, so no existing caller breaks.horizon_note(and Python callers get aDeprecationWarning) saying it was ignored and pointing at each candidate's ownhorizonunderdetails. The note has its own key becausewarningisNonewhenever a model is recommended.short_run/medium_term/long_runvocabulary: the registry'shorizonfields are free text, so matching would need a new per-model classification, which is a new suitability claim for eight models. It would also have to reject or silently ignore the free-text values callers can pass today. That is a larger decision than this PR should take.4. Drift canary
hank_25bp_easing: description, not a renameThe id is kept. It appears in the report tables of the closed drift issue #264, and #287 edits the same canary. A new
descriptionfield states the unit: 25bp per quarter on the Taylor-rule intercept, about 100bp annualised, and not a 25bp cut in the policy rate. The checker ignores unknown keys;test_committed_canaries_are_validpasses.Relation to the open round-1 PRs
Based on
main. A trial merge (git merge-tree) with each of #283, #284, #285, #287 and #288 conflicts only inCHANGELOG.md, where every PR adds a section at the top.core.py,mcp_server.pyandcanaries.jsonmerge cleanly.Tests
integration/tests: 495 passed, 85 skipped.tests: 3,281 passed, 87 skipped.🤖 Generated with Claude Code
Update (27 Nov, e9a6b93): also forwards obr-macroeconomic-model #95's labels (
la_borrowing_identity,la_borrowing_note,investment_total_warning,procurement_offset_note,procurement_offset_m) with.get. Thehank_shocktext now says that at the default persistence of 0.9 an easing raises the policy rate on impact (us-hank-model #22); the default is unchanged. New tests are intest_wiring.pyandtest_hank.py.