Skip to content

Repository split: the editor and the showcases

Status: shipped (2026-12-06): phases 0–2c. Moved from docs/design/future/ when phase 2c landed; the design below is the proposal as accepted on 2026-12-05, with “Changes from the proposal” at the end. Milestone: none

The engine is this repository. The editor and its video library are in mainframe-editor; Forest and Neon are in mainframe-engine-showcase. Both have this repository as a git submodule at engine/.

One repository holds four things with different lives: the engine (the MainframeEngine package, its tools, the Demo), the editor (MainframeEngine.Editor, MainframeEngine.Video), and two showcase games (Forest, Neon). The owner sees the engine and the editor as separate products and may phase the editor out one day. Today that is hard:

  • One vX.Y.Z tag versions both the engine package and the editor. An editor-only fix needs an engine release, and the other way round.
  • The engine’s CI, release workflow, justfile, docs site and AGENTS.md carry the editor and the showcases: the editor recipes, the Forest and Neon release jobs, 308 of the repo’s Git LFS files (Forest 229, Neon 79, 264 MB on disk).
  • Dropping the editor later would mean picking it out of a shared history, CI and release, instead of archiving a repository.

The engine itself has no dependency on either: nothing under MainframeEngine/ references the editor or the examples, and the editor uses only the engine’s public API (the one InternalsVisibleTo is for MainframeEngine.Editor.Tests).

  • Mainframe-Games/mainframe-editor: the editor, its video library, its tests and its release, with the engine as a git submodule at engine/.
  • Mainframe-Games/mainframe-engine-showcase: Forest and Neon, with the engine as a git submodule at engine/.
  • The engine repo keeps the engine, its tools (mfe, mf-export, mf-l10n, mf-symbolicate), the templates, the natives it ships, the Demo, and the docs site.
  • Each repository releases on its own. The editor has its own version line (owner decision, 2026-12-05).
  • Installed editors keep updating themselves across the move.
  • Moved files keep their history (git log, git blame).
  • Removing editor history or showcase LFS objects from the engine repo’s history. That needs a force push to main, which the repo rules forbid. The engine repo gets lighter going forward, not backwards.
  • Moving the Demo. It is tied to the engine (one scene per feature, README screenshots, the template smoke).
  • Changing how games consume the engine (the MainframeEngine NuGet package).
  • Phasing out the editor. This only makes it possible.
  • A shared “Mainframe” monorepo tool or meta-repo.
Moves to mainframe-editorMoves to mainframe-engine-showcaseStays in mainframe-engine
MainframeEngine.Editor/Examples/Forest/MainframeEngine/, .Generators/, .Steamworks/
MainframeEngine.Video/ + LICENSE-CUTBACKExamples/Neon/Tools/ (all, incl. MainframeEngine.Export)
Tests/MainframeEngine.Editor.Tests/, .Video.Tests/build/forest-*.sh, build/neon-screenshots.shTemplates/, Native/ except PluginHost/
Tests/MainframeEngine.RenderTests/EditorRenderTests.cs + its goldensForest/Neon just recipesExamples/Demo/, Tests/ (the rest)
Tests/QA/*.qa that drive the editor (with demo-open.qa, demo-post.qa, which replaced the Forest’s)build/macos/ (games use it), build/package-example.sh
Native/PluginHost/ (mfplughost) + MainframeEngine.Editor/runtimes/docs/design/forest.md, neon.mddocs-site/ (engine-only), engine design docs
build/package-editor.sh, build/editor-icons/ADRs 0001–0288 (history stays)
docs/design/editor*.md, video-editor.md, future/music-editor.md, future/sound-designer.md
SynthBenchmarks (needs the editor)

Shared build files (Directory.Build.props, Directory.Packages.props, global.json, .editorconfig) are copied into each new repo, which imports the engine’s where it can (engine/Directory.Packages.props for the engine’s own package versions) and adds only its own packages (Whisper.net for the editor).

Both new repos have engine/ as a submodule of mainframe-engine, pinned to a commit. Day to day it may sit on any engine commit; a release must sit on an engine release tag (see Releases). Engine projects are ProjectReferences through engine/, as today, so engine features are usable before an engine release.

  • Editor: MainframeEngine.Editor.csproj references engine/MainframeEngine/… and engine/Tools/MainframeEngine.Export/…. Editor render tests reference engine/Tests/MainframeEngine.RenderTests.Host.
  • Showcase: MainframeEnginePath in Examples/{Forest,Neon}/Directory.Build.props changes from ../.. to ../../engine. Nothing else in the games changes.
  • The engine keeps <InternalsVisibleTo Include="MainframeEngine.Editor.Tests" />: it matches by assembly name, so the editor repo’s tests still see engine internals through the submodule.
  • The editor never changes files under engine/. An engine feature or fix the editor needs is an issue and a PR in mainframe-engine (the mf-engine-bug flow), then a submodule bump in the editor.

Why not the MainframeEngine NuGet package (considered 2026-12-05): the editor also needs MainframeEngine.Export, which no package ships; the package adds the generator as an analyzer, which would register the editor’s nodes (the editor must stay unregistered); and the editor’s render tests run through Tests/MainframeEngine.RenderTests.Host, which is not packaged. The submodule gives the editor all three without new packages.

A single -p:Version cannot work any more: it is a global MSBuild property, so it would stamp the editor’s version on the engine assembly it builds through the submodule, and EngineInfo.Version would lie. Instead:

  • The engine’s Directory.Build.props sets Version from MainframeEngineVersion when given (else 0.0.0-dev). The engine’s own publish.yml passes -p:MainframeEngineVersion=X.Y.Z (and keeps pack-nuget.sh working).
  • The editor repo sets the editor assembly’s Version from MainframeEditorVersion. A new EditorInfo.Version reads it; the updater, About, crash reports and the user agent use it.
  • The editor release reads the engine version from the submodule’s exact tag (git -C engine describe --tags --exact-match, vX.Y.Z → X.Y.Z) and passes it as MainframeEngineVersion, so EngineInfo.Version in a released editor is the engine release it was built from.
  • New Project already defaults to EngineInfo.Version, so a new game references the engine package the editor was built against. No change there beyond the stamp.
  • The editor’s version line continues above the last combined release (v1.1.x today; first editor-only release is at least v1.2.0). The updater compares versions, so a lower number would never be offered to installed editors.
  • mainframe-engine publish.yml: drops the editor build, the editor in the symbols zip, and the Forest and Neon jobs. Keeps NuGet, the Demo zip and the engine symbols.
  • mainframe-editor publish.yml: a copy of today’s editor jobs (build/package-editor.sh, macOS signing, symbols). A guard fails the release when engine/ is not exactly on a vX.Y.Z tag.
  • mainframe-engine-showcase publish.yml: packages Forest and Neon with engine/build/package-example.sh, tagged with the engine version the submodule is on (vX.Y.Z = the engine release they run on).
  • natives.yml splits: engine natives stay; mfplughost builds in the editor repo.

The editor’s Download Demo/Forest/Neon (DemoRelease.AssetUrl) takes the zip from the engine release tagged with the editor’s version. After the split:

  • Demo: mainframe-engine release v{EngineInfo.Version}.
  • Forest, Neon: mainframe-engine-showcase release v{EngineInfo.Version}; when there is none (the showcase was not released for that engine version), the dialog says so, as it does today for a missing asset.
  • Development builds keep using “latest” of the matching repo.

Installed editors read mainframe-engine/releases/latest. After the split, a newer engine release has no editor asset, and UpdateChecker reports UnsupportedPlatform: the editor stops updating, silently.

  1. The last combined release (the bridge, v1.1.x) ships an editor whose ReleaseFeed reads mainframe-editor/releases/latest.
  2. The bridge is released before the first engine release without the editor, so every editor that checks for updates in between moves over.
  3. An editor that misses the bridge shows UnsupportedPlatform. Its message gains a link to the editor’s releases page in the bridge, and the engine README and site say where the editor went. Older editors need a manual download.

Owner decision (2026-12-05): the editor repo gets its own docs/ and a small Pages site; the engine site keeps a short Editor section linking to it and to the editor’s releases.

  • Editor design docs move with history; their links into engine docs become absolute GitHub links.
  • The engine’s landing page drops editor downloads and editor screenshots, keeps one Editor card that links out.
  • The engine’s AGENTS.md, docs/design/architecture-overview.md, testing.md and release.md drop the editor and showcase parts.
  • Each new repo is set up with mf-new-project (workflow, AGENTS.md, memory/, docs/). Its decisions start at 0001 and link to the engine’s ADRs for the history.

Each new repo is made with git filter-repo --path … over a fresh clone of the engine (the move lists above, with --path-rename for the new layout), then git lfs push --all to the new remote. The engine side is one PR that deletes the moved paths and adds nothing back.

The showcase goes first: it is small, has no users to migrate, and proves the submodule layout. The editor follows.

  • Given a fresh git clone --recurse-submodules of mainframe-engine-showcase, when just forest-test and just neon-test run, then both pass against engine/. Test: showcase CI job test.
  • Given the showcase repo, when just forest -- --max-frames 120 runs on a machine with a GPU, then the game opens and exits 0. Test: showcase CI job smoke (macOS), just forest-screenshots.
  • Given a Neon surface shader edited in the showcase repo, when just shaders-check runs there, then the shader is compiled and checked. Test: showcase CI job shaders (today the engine’s surface_shader_folders lists Examples/Neon/Assets).
  • Given the engine repo after the move, when just build, just test and just test-render run, then they pass and nothing under the repo refers to Examples/Forest or Examples/Neon (outside memory/). Test: build/check-moved-paths.sh in the engine’s CI workflow job.
  • Given the engine’s ForestMiniScene render test, when it runs after the move, then it is unchanged (it uses engine assets only). Test: ForestFeatureTests.
  • Given an engine release vX.Y.Z and the showcase submodule on that tag, when the showcase release runs, then it publishes Forest/Neon zips under tag vX.Y.Z in mainframe-engine-showcase. Test: showcase publish.yml dry run (just publish-local).
  • Given a fresh git clone --recurse-submodules of mainframe-editor, when just build and just test run, then the editor, editor tests and video tests build and pass against engine/. Test: editor CI job build-test.
  • Given engine/ on tag v1.3.0 and an editor release v1.4.0, when the released editor starts, then EditorInfo.Version is 1.4.0 and EngineInfo.Version is 1.3.0. Test: VersionStampTests (editor repo, reads the stamped assemblies of a -p:MainframeEditorVersion=1.4.0 -p:MainframeEngineVersion=1.3.0 build).
  • Given that editor, when the user creates a New Project with defaults, then its game references MainframeEngine 1.3.0. Test: NewProjectRequestTests (existing default-version test, now fed from EngineInfo.Version ≠ editor version).
  • Given engine/ on a commit that is not a release tag, when the editor’s publish.yml runs, then it fails before building. Test: the guard step, build/check-engine-tag.sh with a unit check in the editor’s CI.
  • Given an installed bridge editor v1.1.x, when it checks for updates and mainframe-editor has v1.2.0, then it offers v1.2.0. Test: ReleaseFeedTests (the feed URI) and a manual check (Human checklist).
  • Given an installed editor older than the bridge, when the engine’s latest release has no editor asset, then it shows UnsupportedPlatform (unchanged behaviour). Test: existing UpdateCheckerTests.
  • Given a released editor with EngineInfo.Version 1.3.0, when the user downloads Forest, then the zip comes from mainframe-engine-showcase release v1.3.0; the Demo comes from mainframe-engine v1.3.0. Test: DemoReleaseTests (asset URLs per example).
  • Given the engine repo after the move, when its gates run, then they pass with no editor project in MainframeEngine.slnx, and no project, workflow or recipe refers to MainframeEngine.Editor or MainframeEngine.Video. Test: build/check-moved-paths.sh.
  • Given the engine’s template CI job, which runs MainframeEngine.Editor -- --validate-demo-zip, when the editor is gone, then the job validates the Demo zip without the editor. Test: the template job (the check moves into mfe or a small engine test; see Open questions).
  • Engine: all gates in .agents/workflow.md before the deletion PR. Render goldens for EditorRenderTests move with the editor; the engine’s remaining goldens must not change.
  • Editor: its own copy of the gates (just build, Release -warnaserror, just test, just test-render for the editor render tests, just format-check) plus just qa-editor and just qa-projects on macOS.
  • Showcase: just forest-test, just neon-test, just forest-screenshots, just neon-screenshots; just forest-bench on the baseline machine to confirm the move changed nothing.
  • git log --follow on a few moved files in each new repo, to confirm history survived.
  • git lfs fsck in each new repo after the push.
  • Create Mainframe-Games/mainframe-editor and Mainframe-Games/mainframe-engine-showcase (public, LFS on, main PR-only with a required ci-success check, squash merges only), and NuGet/GitHub settings for the editor’s macOS signing secrets.
  • Forest and Neon look and sound the same after the move (screenshots side by side, a walk round each).
  • An installed v1.1.x editor updates to the bridge, then to the first mainframe-editor release, on macOS, Windows and Linux.
  • The editor’s Download Demo/Forest/Neon works from a released editor.
  • The engine site’s Editor section and the new editor site read right.
  • Phase 0a: ADR 0289 for the split.
  • Phase 0b: the MainframeEngineVersion property in the engine, with EngineInfo.Version unchanged for engine builds.
  • Phase 0c: the editor QA scripts that opened the Forest rewritten against the Demo (Tests/QA/demo-open.qa, demo-post.qa), so no editor script depends on the showcases.
  • Phase 1: create mainframe-engine-showcase with filter-repo (Forest, Neon, their scripts and docs), add engine/, repoint MainframeEnginePath, its justfile, CI and publish.yml, mf-new-project. Engine PR: delete the paths, the recipes, the release jobs, surface_shader_folders entries, AGENTS.md/docs mentions.
  • Phase 2a (engine, before the split): EditorInfo.Version; example downloads per repo; the bridge ReleaseFeed and the UnsupportedPlatform link. Ship as the bridge release. (The Demo zip check, --validate-demo-zip, moves to the editor repo’s CI in Phase 2b: owner, 2026-12-06.)
  • Phase 2b: create mainframe-editor with filter-repo, add engine/, its justfile, CI, publish.yml, natives.yml (mfplughost), docs site, mf-new-project. First editor release v1.2.0 or higher.
  • Phase 2c: engine PR deleting the editor, video library, editor tests, editor recipes and release jobs; landing page Editor section; AGENTS.md, architecture overview, testing and release docs.
  • Should the editor repo track engine main automatically (a bot PR bumping engine/ after each engine merge), or only by hand? Owner, after Phase 2b.
  • Do the music-editor and sound-designer docs move whole, or does the adaptive-music runtime part (adaptive-music.md, engine Audio/Music/) stay in the engine docs? Answered in Phase 2c: split by code ownership. The editor repo took music-effects.md, future/music-editor.md, future/sound-designer.md and future/wavetable-synth.md; adaptive-music.md stays.
  • Demo zip check: --validate-demo-zip runs in the editor repo’s CI (job demo-zip, just demo-zip-check: it packages the Demo from engine/), not in mfe or an engine test (owner, 2026-12-06). The engine’s template job dropped it.
  • NativeAOT export check: the editor test NativeAotExportHasNoManagedAssemblies is replaced here by build/template-smoke.sh with NATIVE_AOT=1 HEADLESS_ONLY=1 (symbols separate; no managed file, PDB or XML doc; native symbols in the symbols zip; a headless run). CI’s native-aot job runs it on each OS.
  • Export library tests: the 111 that need no editor (ExportCli, ExportLibrary, ExportPlanAndValidation, ExportRunner and their fixture) stay in this repo, in Tests/MainframeEngine.Tests/Export/, since the library does. The editor repo keeps ExportEditorTests and ExportIntegrationTests, and still has copies of the others.
  • Editor render tests and benchmarks are projects of their own in the editor repo, with copies (not links) of the render-test helpers (Gates, ImageComparison, HostRunner, RenderTestEnvironment), so HostRunner.RunEditor left this repo.
  • Finding the engine: the editor’s TemplateLocator also looks for the checkout at <dir>/engine.
  • Release guard: the editor’s publish.yml takes the engine version from build/engine-version.sh (the exact vX.Y.Z tag of engine/) and fails without one. There is no build/check-engine-tag.sh or CI unit check for it.
  • Version stamps: no VersionStampTests. A build with -p:MainframeEngineVersion=1.3.0 -p:MainframeEditorVersion=1.4.0 was checked by hand (engine 1.3.0, editor 1.4.0); VersionTests checks EditorBrand reads EditorInfo.Version.
  • First editor version: the editor’s build/next-version.sh gives 1.2.0 while its repo has no vX.Y.Z tag.
  • Natives: mfplughost is built and locked in the editor repo; this repo’s Native/, natives.yml and natives.lock cover only the engine’s natives. Both locks were restamped (binaries unchanged) because the umbrella Native/CMakeLists.txt changed.
  • Engine release: NuGet packages and the Demo zip only; no symbols zip (it held the editor’s PDBs).
  • Docs site: the landing page vendors the Tabler icons it uses in docs-site/src/icons/ (it read them from the editor’s folder).