recommend_model: needs_distribution drops every macro model, and horizon is ignored
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start in integration/src/policyengine_macro/capabilities.py at recommend, then trace the registered model capabilities and the MCP tool definition that exposes horizon. Check how incidence tools are registered and tested before choosing an approach. Done means distribution requests return useful guidance for macro candidates and the unused horizon argument is removed or given defined routing behavior, with tests covering both.
索引モデルが issue の本文から書いたものです。
説明
Problem
recommend_model (integration/src/policyengine_macro/capabilities.py, recommend) routes on question_type and country only. Two of its inputs do less than a caller expects:
needs_distribution=Truedrops every macro model. The filter keeps onlype-microsimandog+microsim. Sorecommend("economic_shock", "us", needs_distribution=True)returns no model, with the "no registered model supports this request" warning. But the suite does answer that question:frbus_shock_incidence,hank_shock_incidence(andhank_shock(include_distribution=True)),svar_inflation_incidenceanddefine_scenario_incidenceall produce household distributions. The same is true forforecast/economic_diagnosis(UK, viasvar_inflation_incidence) andclimate_policy_scenario(viadefine_scenario_incidence).horizonis ignored. It is echoed back but never used, so "long run" and "next four quarters" route the same way. (The MCP docstring now says so, on branchvahid/r5-api-scenarios.)
Evidence
Matrix run on 6 Nov 2026 (all 10 question types × uk/us/fr × needs_distribution):
economic_shockuk/us,forecastuk,economic_diagnosisuk,climate_policy_scenariouk,structural_changeuk,translated_policy_scenariouk: a candidate withneeds_distribution=False, none withTrue.
Options
- Register the incidence pairs as capability entries (
frb-us+microsim,us-hank+microsim,boe-svar+microsim,define-uk+microsim). Each needs its own quality block, so this is the honest route, but it is more work. - Keep the registry and add an
incidence_toolshint to the response whenneeds_distributionfilters out a macro candidate: "frb-us has no distribution itself; frbus_shock_incidence overlays its labour-market path on the US microsim". - Leave it as it is and document that
needs_distributionmeans "the model itself is distributional".
For horizon: either drop the argument, or define a small vocabulary (short_run, medium_term, long_run) and match it against each model's horizon field.
Recommendation
Option 2 now (small, no new quality claims). Drop horizon from the tool until there is a vocabulary, so no caller thinks it is doing something.
🤖 Generated with Claude Code
- 主要言語
- HTML
- スター
- 3
- フォーク
- 1
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 53
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/macro のほかの issue
-
HANK incidence overlay omits the model's labour-tax financing対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンquestion
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
PolicyEngine/macro#214 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Hosted score_reform (OBR, default window) has not finished within 10 minutes since the 30 Oct deployオープン
難易度 4/5 1〜2日 初心者へのやさしさ 25/100
PolicyEngine/macro#243 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Referee review of the model pages (6 Nov 2026)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンquestion
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
PolicyEngine/macro#227 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
PolicyEngine/macro#223 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
UK SVAR adapter publishes log-difference YoY as if it were the simple rate対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
PolicyEngine/macro#208 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
PolicyEngine/macro の issue をすべて見る
似ている issue
-
triage
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
meetecho/juturna_nodes#43 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ranxianglei/billion-context#7860 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
`RequestHandler.build_request_kwargs` drops empty request bodies such as `{}` or `""`対応中かも @abhirajadhikary06 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
typesense/typesense-python#170 ·
メンテナーはふだん 1 日以内に返信