Extract stable type identity into a shared library for engine, graphs and DataAssets
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- build-system, developer-experience
Hướng nghiên cứu
Start by reading the engine’s TypeRegistry and alias map, then compare them with MASS4ORG/Graph’s StableId and IdentityRegistry; the issue does not name source files or tests. The work is an owner-gated extraction into a separate repository, coordinated with the serialization branch, Graph#7, and #55. Done means all three layers use the library, existing serialized TypeIds still load, and the documented contract covers canonical text, renames, and cycle rejection.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current State
The engine resolves serialized types through a static TypeRegistry keyed by [TypeId] GUIDs, with an alias map for renamed types and assembly scanning to bind GUIDs to CLR types. The node-graph library (MASS4ORG/Graph) needs the same identity concept for node, port and trigger types and currently carries its own StableId/IdentityRegistry with rename chains. The DataAsset-driven design layer (#55) is growing identity needs of its own. Three separate identity registries would recreate the string-identity problem in a new form: the same asset would need different identities depending on which subsystem reads it.
This issue extracts the shared part into a small general library that all three consume. It is owner-gated: it runs as a separate PR in its own worktree, sequenced against the in-flight serialization branch, and no other engine change rides along.
Tasks:
- Create the identity library in its own repository: opaque stable identities, a registry and a rename map, nothing more (no reflection, no CLR binding, no serialization)
- Keep assembly scanning and CLR type binding in the engine, layered over the library
- Move the engine's alias map onto the library's rename map
- Replace the graph library's internal identity types with the extracted library (MASS4ORG/Graph#7)
- Agree with the DataAsset-driven design work (#55) that its identities use the same library
- Document the identity contract (canonical text form, rename semantics, cycle rejection)
Acceptance Criteria:
- Serialized TypeIds are unchanged; existing scenes, assets and aliases load as before
- The library depends on nothing beyond the base class library and is trimming- and AOT-safe
- The engine, the graph library and the DataAsset layer resolve identities through the same library
- The PR contains only the extraction and its adoption
Related:
- #55 (DataAsset-driven design: co-stakeholder for identity)
- #63 (identity types evaluated without changing serialized IDs)
- MASS4ORG/Graph#1 (graph core), MASS4ORG/Graph#7 (graph identity registry)
- Ngôn ngữ chính
- C#
- Star
- 1
- Fork
- 1
- Merge trung bình
- 2 giờ
- Pull request đã merge (30 ngày)
- 35
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MASS4ORG/Turian
-
c:assets p:low size:XS t:task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:gaya p:medium sit:next t:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:graphics p:medium size:L t:enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:engine p:low size:XL t:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MASS4ORG/Turian
Issue tương tự
-
area: core priority: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
RicoSuter/Namotion.Interceptor#863 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0.3.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] Decompression leaves metadata that makes recompression throw and corrupt the content typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BrighterCommand/Brighter#4683 ·
Maintainer thường phản hồi trong vòng 1 ngày