Inherited succession guards resolve shadowed names in the specialization's action frame
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with EvalContext.Lookup in internal/exec/runtime/action_frame.go, which reads the action frame before scope resolution, and with ActionGraph.declaredIn from lowering. The fix changes how frame cells are keyed, so it touches several subsystems named in the issue, not one file. Done means the Base/Derived example yields c = 1, explicit redefinition still yields c = 0, and the checker, exploration, SMT and read-set paths agree.
索引モデルが issue の本文から書いたものです。
説明
An inherited succession guard reads names through the specialization's action frame, so a feature that a specialization declares with the same simple name as a feature of its general hides the general's feature from the inherited guard.
action def Base {
attribute go : Boolean = true;
attribute c : Integer := 0;
first start;
then action a;
first a if go then b;
action b { assign c := 1; }
}
action def Derived :> Base {
attribute go : Boolean = false;
}
Performing Derived gives c = 0. The guard go was written in Base, so name resolution in its declaring scope gives Base::go and the expected result is c = 1. The checker already warns that Derived::go duplicates an inherited member name; explicit redefinition (attribute :>> go = false;) is a different case and correctly gives c = 0.
Cause. Lowering records the scope each inherited succession was declared in (ActionGraph.declaredIn), but the runtime evaluates guards against action-frame values that are keyed by canonical simple name (internal/exec/runtime/action_frame.go). EvalContext.Lookup reads the frame before scope resolution, so Base::go and Derived::go share one cell. Passing the declaring scope to guard evaluation alone does not change the result.
Fix direction. Key action-frame cells by declaration identity (or a resolved feature handle) rather than by simple name, then evaluate inherited guards in their declaring scope consistently across runtime, checker, exploration, SMT, read sets and model-form views.
- 主要言語
- Go
- スター
- 39
- フォーク
- 12
- 平均マージ
- 14時間 26分
- マージ済み PR(30日)
- 764
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Open-MBEE/OpenSysML のほかの issue
-
bug spec compliance
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
Open-MBEE/OpenSysML#1125 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
help wanted question
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Open-MBEE/OpenSysML#987 · コメント 11 件 ·
メンテナーはふだん 1 日以内に返信
Open-MBEE/OpenSysML の issue をすべて見る
似ている issue
-
area/import kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
kind/documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
kubernetes-sigs/dra-driver-nvidia-gpu#1569 ·
メンテナーはふだん 1 日以内に返信
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
openclaw/openclaw-enterprise#2571 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信