Skip to content

Plan V0.1.gpt 6 Astra

Verdict

PASS WITH FIXES — The plugin experiment is justified, but the plan assumes an unnecessary port, leaves runtime and debugging contracts unresolved, and commits to a fork before establishing its value.

Findings

  1. [severity: major] Track A: plugin > UE 5.8 support is treated as missing > Replace “Extend UnrealSharp … to UE 5.8” with “Validate a pinned UnrealSharp revision against an exact UE 5.8 patch.” Its current repository lists UE 5.6–5.8, .NET 10.0.5+, Windows/macOS support, and hot reload. The older setup page still specifies UE 5.5–5.7/.NET 9, and its FAQ warns that it is not production-ready. UnrealSharp is a reasonable experimental base, not yet a proven production dependency for this project. Record the commit, toolchain, known failures, and actual build results before proposing compatibility changes. Repository, setup, FAQ.

  2. [severity: major] Track B: true fork > The listed features do not establish why engine modifications are necessary > UnrealSharp already advertises reflected C# Actors/components and editor hot reload. Hosting CoreCLR itself does not require an engine fork. Replace the assumed distinction with a capability matrix and one reproducible requirement that stock-engine extension points cannot satisfy. Keep the requested parallel tracks, but limit Track B initially to a bounded investigation; authorize substantial implementation only after that evidence exists. UnrealSharp features, native .NET hosting.

  3. [severity: major] Open question 2 / M0 > “Angelscript-style” is insufficient to specify the engine changes to reproduce > Hazelight documents engine modifications plus a plugin, requires engine source access, and warns that prebuilt binary plugins are incompatible with its fork. Its public overview does not enumerate an exact patch set; this review cannot responsibly invent one. Add an M0 deliverable comparing a pinned Hazelight revision with its matching Epic base, separating required scripting hooks from unrelated changes. For every proposed C# engine patch, identify the affected symbol, required behavior, and why a plugin cannot implement it. Do not assume AngelScript VM-specific changes transfer to CoreCLR. Installation, project overview.

  4. [severity: major] Open question 3 / Track B > Runtime hosting, hot reload, and object lifetime lack an implementable contract > Specify a process-lifetime CoreCLR host initialized through nethost/hostfxr, a stable bridge, and collectible gameplay AssemblyLoadContexts. Unloading is cooperative: live instances, delegates, handles, and executing threads can retain old assemblies. Define callback shutdown, state migration, exception containment, and game-thread dispatch for UObject operations. Separately define managed-wrapper invalidation and UE-visible ownership; a managed reference alone does not establish an Unreal GC root. Add repeated reload, actor destruction, world teardown, and PIE restart tests that detect stale callbacks and retained contexts. Hosting, unloadability, Unreal object handling.

  5. [severity: major] Track A milestone / Open question 1 > “Hot-reloads” has no defined change boundary, and NativeAOT is not separated from editor execution > Define M1 hot reload as a method-body change with unchanged reflected layout; explicitly defer property/type/inheritance changes and specify whether PIE must stop. Even Hazelight distinguishes structural edits from changes reloadable during PIE. Use CoreCLR for the initial editor workflow. Treat NativeAOT packaging as a separate qualification: it does not support dynamic assembly loading, and unloading NativeAOT libraries is unsupported. An AOT configuration file does not prove end-to-end packaging support. Hazelight reload limits, NativeAOT limitations, native library restrictions.

  6. [severity: major] Shared module 1 / Open question 4 > Source navigation, workspace generation, and debugging are conflated > Implement an editor-only C++ module registering an ISourceCodeAccessor for each IDE, with availability detection, workspace opening, and file/line/column navigation. Workspace generation and debugger integration need separate implementation and gates; ISourceCodeAccessor provides no debugger-attach contract. Use portable PDBs for managed source locations rather than proposing a new debugger with unspecified “source maps.” Evaluate a compatible DAP adapter such as NetCoreDbg and prove attach to the actual UnrealEditor process after CoreCLR loads, including breakpoints, locals, and stepping in both IDEs. Do not assume Microsoft’s VS Code debugger is licensed for these forks, or that Windows mixed native/managed debugging follows from managed attach. Accessor API, NetCoreDbg, interop restrictions, Microsoft debugger licensing.

  7. [severity: major] Milestones / Shared conformance suite > Current M1 proves editor launching, while “two clients” and “subset green” do not define gameplay correctness > Make the smallest M0 a pinned Windows configuration, upstream compatibility assessment, debugger feasibility check, licensing record, and bounded fork-difference assessment. Gate it on recorded evidence and explicit unresolved blockers. Make M1 one UnrealSharp Actor/component on stock UE: tick, Blueprint-editable property, Blueprint-callable method, one method-body reload, and managed breakpoint attach. Keep navigation support minimal. Move multiplayer to M2 and require a server-authoritative property update observed by both clients, an RPC assertion, and a stated process topology. Add an early packaged Windows smoke test before investing in the fork.

  8. [severity: major] Shared modules / Open question 5 > “Built once” overstates binary reuse across stock and modified engines > Share source and test contracts, with separate build outputs per pinned engine/toolchain. Put the accessor, automation recipes, and conformance project in a standalone integration repository; consume pinned revisions from each track. Keep engine patches in the restricted engine fork and use thin adapters where APIs differ. This preserves parallel work without forcing Track A to wait for Track B’s engine builds. Hazelight’s explicit binary-plugin incompatibility warning makes a universal shared binary an unsafe assumption. Hazelight installation.

  9. [severity: major] Constraints / M0 licensing > “The fork stays private (Epic EULA)” misstates the rule, and MIT alone does not settle distribution > Retain privacy as a project choice, but explain that Epic permits engine-code distribution to appropriately licensed recipients under specified conditions. Add the non-C++ integration requirements from EULA §5(c): distribution in source form, free of charge to eligible licensees, with redistribution rights covering the integration and relevant toolchain/runtime. Assess Engine Tools distribution restrictions separately before publishing either track. Epic EULA §§5–6.