feat: Inspector-model semantic diff (prefablens.diff.v2)#5
Merged
Conversation
This was referenced Jul 4, 2026
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
semantic diff の出力を UnityEditor の Hierarchy / Inspector で得られる情報に置き換える。
inspector.zig新設(非表示テーブル・NicifyVariableName 相当の表示名変換・擬似コンポーネントグループ推測)。diff は stripped 除外・非表示フィルタ・added サブツリーのベクトル縮約(x, y, z)・PrefabInstance override の (target, propertyPath) キー diff + 配置サマリ。tree は PrefabInstance を階層ノード化(stripped Transform 橋渡し・所有者の materialize 保証ガード)prefablens.diff.v2(kind 判別子・className・sourceGuid・overrides。v1 互換レイヤーなし)<Prefab>バッジ・グループ化 override・表示名フォールバック(resolved stem → class_name → type_name)Plan:
docs/superpowers/plans/2026-07-03-semantic-diff-inspector-model.md/ Spec:docs/superpowers/specs/2026-07-03-semantic-diff-inspector-model-design.mdReview
タスク毎レビュー(全 11 タスク)+ 最終ブランチレビュー実施済み。最終レビューの Important 1 件(stripped GameObject 所有コンポーネントの silent drop)は 2 段階の fix(a6dfcf6, 3fbadb8)で解決し、レビュアーが repro 再実行で独立検証。Ready to merge: Yes
Test evidence
zig build test: 89/89 pass(core 58 + cli 31)tsc --noEmitclean / build + size OK / Playwright E2E 2/2要ユーザー判断(マージ後でも可)
numEqlが厳密 float 比較のため、実データの残差付き identity(w: 0.99999994等)が配置サマリに縮約されず行として残る。epsilon 許容(|v-want|<1e-5)は計画コードと衝突するため未実施(Task 5 の plan-mandated Important)Follow-up 候補(別 PR)
構造サマリ行の
∅/—表示 / spec へのノード移動・m_SourcePrefab 差し替え不可視の追記 / テスト補強(stripped skip・class_name/sourceGuid フォールバック・json golden)/ groupRank 硬化 / 入れ子 loose の外側インスタンス帰属