SpaceGod.Game/SPEC
SpaceGod.Unreal — Product specification
The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree.
docs/RELEASE.mdsays which part of this the current milestone delivers.
1. Product definition
Place in the ecosystem (docs/ECOSYSTEM.md): a product, one of the studio's games.
SpaceGod is a co-op space game in Unreal Engine 5.8 (C++ only) where the player is an unseen god over a simulated galaxy who can drop into any ship, craft, station, mech or suit and fly it, with one button switching between true scale and a playable game scale. Sol is real (JPL orbital elements for the game date, from 3026-01-01); the galaxy beyond is procedural; polities trade, war and grow, and their people hold opinions that move their worlds. The owner's north star is make flying fun (US-T170). The finished product is that game, packaged as a normal Windows game at R:\MindAttic\Apps\SpaceGod.Unreal\Release\SpaceGod.exe, played solo or co-op over a listen server, with its core loop (Quick Start, Fly this or a mission, fight, debrief, back to the god view) and the live-Sol sandbox (inhabit anything, ride along or take over, hunt pirates or turn pirate) polished in both scales.
2. Scope boundary
2.1 In the product
- The simulation Core (Sol, procedural galaxy, polities, economy, war, Kardashev tiers), proven against the Unity original by the Bench.
- The god view, possession of any seat, Fly this, missions and a pilot career.
- Flight and combat for every hull class, carriers and launch tubes, capitals, subsystem targeting.
- HUD, controls, purchased prebuilt art, effects, ambience, the light-speed comms radio, the two scales.
- Saves, hold-to-rewind on one timeline, listen-server co-op, MindAttic.Media.Capture recording.
- The Light Society foundation (the Populace) at game scale.
- The Shipping package on the shared run menu.
2.2 Never in the product
- Walkable interiors. Ship and station interiors stay menu and minigame based (BIBLE §3).
- Procedural or Lego-assembled ship and station art where a purchased prebuilt fits (BIBLE LAW-4). Procedural art is only a fallback.
- A GLMZ tie-in. SpaceGod is its own universe (US-T859).
- Split timelines (rewind branching into a tree of futures, US-T104). The owner's call on US-T99 stands: one timeline, changing the past replaces the old future.
- Checkpoint loops with ghost replays (US-T169). Parked design only; the normal game never needs it, and it turns dogfights into choreography. Revisit only on the owner's request.
- Named civilisation crises (decline, famine, epidemics, secession, schisms, fiscal and succession crises, dark ages; the former U.SPC-T396..T409, T437..T439, T607..T642). The Light Society foundation is in; these are not.
- New embodiable roles beyond the existing seats (helm, launched craft, turret, station, mech, EVA worker, satellite). The role set is complete.
- LLM-generated stories at run time. The game is self-contained (BIBLE LAW-5); story comes from canon and Prose pulls committed to the repo.
- Soak, bughunt and "continuous" audit loops. Real bugs are filed one by one.
- Reading sibling repos at build or run time, except the documented Media.Capture plugin checkout.
- A C# port of the Light Society library (docs/LightSociety.md: rejected).
3. Users and roles
- The owner (player and director): plays solo or hosts friends, flies anything, watches the galaxy as god.
- A co-op friend: joins a listen server and has full control, including time.
- SpaceGod.Studio: reads
Data/Vehicles/Vehicles.json; this repo never reads it. - Prose: catalogues the universe through its consumer kit (docs/PROSE.md).
4. Requirements
Status is built (closed ticket, with evidence) or MS-n: the milestone in §7 that delivers it. Every unbuilt story is approved and prioritised in build order; the planner splits a story into tasks when the queue reaches it.
E1. Real Sol and the galaxy — US-T1023 — built
The simulated universe: real Sol, the procedural galaxy, civilisations and a Core proven against the original.
F1.1 Real Sol — US-T1024 — built
- S1.1.1 Sol from JPL elements — US-T1025 — built As a player, I want the planets, dwarf planets, moons and asteroids where JPL elements put them for the game date, so that Sol is real. Acceptance: Given a new game on 3026-01-01, when I open the map, then each body sits at its computed position. Evidence: docs/HISTORY.md, docs/overview.md.
- S1.1.2 Shared clock and time warp — US-T1026 — built As a player, I want to pause and warp one clock that every co-op peer shares, so that we see the same sky. Acceptance: Given co-op, when anyone warps time, then every peer follows and is told who did. Evidence: docs/overview.md (Co-op).
F1.2 The galaxy beyond Sol — US-T1027 — built
- S1.2.1 Procedural systems and FTL — US-T1028 — built As a player, I want to travel by FTL to procedurally generated systems, so that the galaxy is open. Acceptance: Given the galaxy map, when I jump, then I arrive in a generated system. Evidence: Bench galaxy-ftl.
- S1.2.2 Space lanes — US-T1029 — built As a pilot, I want to ride a lane tube, steer inside it and leave through its wall, so that travel is fast and physical. Acceptance: Given a lane, when I enter it, then my speed rises and I steer within the tube. Evidence: US-T196.
- S1.2.3 The frontier — US-T1030 — built As an explorer, I want pulsars, black holes and relics on the frontier that pay as survey data, so that the edge rewards going there. Acceptance: Given a frontier system, when I survey a relic, then it pays. Evidence: US-T449, docs/Frontier.md.
F1.3 Civilisations — US-T1031 — built
- S1.3.1 Polities, economy and Kardashev tiers — US-T1032 — built As the god, I want polities to trade, war and grow through Kardashev tiers that shape what they build, so that the galaxy lives without me. Acceptance: Given time warp, when years pass, then polities change tier and fleets. Evidence: docs/GodView.md (sg.Assemble).
- S1.3.2 Canon history and manual — US-T1033 — built As a player, I want a canon history and an in-game manual, so that the universe has a past. Evidence: docs/HISTORY.md.
- S1.3.3 Prose catalogue — US-T1034 — built As the owner, I want to push the universe into Prose's spacegod catalogue and pull story back, so that the two stay in step. Evidence: docs/PROSE.md.
F1.4 Simulation parity — US-T1035 — built
- S1.4.1 Bench digests — US-T1036 — built As a developer, I want
tools/bench.ps1to match the Unity original's digests on five scenarios, so that the C++ Core is proven bit for bit. Evidence: Bench/README.md, US-T60, US-T69.
E2. God view and possession — US-T1039 — built
F2.1 God view — US-T1040 — built
- S2.1.1 Free god camera — US-T1041 — built As the god, I want a free no-collision camera when nothing is held, so that I see everything. Evidence: docs/GodView.md.
- S2.1.2 Spawn menu — US-T1042 — built As the god, I want to spawn any hull, station, pirate group or biomass and optionally pilot it, so that I can stage anything (Shift+F2). Evidence: US-T186.
F2.2 Possession — US-T1043 — built
- S2.2.1 Take any seat — US-T1044 — built As the god, I want to take a helm, launched craft, turret, station, EVA worker or satellite and let go again, with every feature defined per role, so that no two features fight over a key. Evidence: docs/Possession.md, docs/ROLES.md, US-T167.
- S2.2.2 Possession show — US-T1045 — built As a player, I want a seat change to play as a show with ghost transitions, so that I know where I went. Evidence: docs/Possession.md.
E3. Flight and combat — US-T1046 — built
F3.1 Flight — US-T1047 — built
- S3.1.1 Flight feel per hull — US-T1048 — built As a pilot, I want a light fighter, a freighter and a capital to each fly with their own feel, so that flying is fun. Evidence: docs/FlightFeel.md, docs/FLIGHT_MODELS.md, US-T170.
- S3.1.2 Cruise drive — US-T1049 — built As a pilot, I want to spool a cruise drive, turn at cruise and drop out (or be dropped by a hit or a hull in the way), so that distance is crossable. Evidence: US-T127, US-T197, US-T226.
- S3.1.3 Joystick and pad curves — US-T1050 — built As a pilot, I want tuned joystick and pad response curves, so that every device flies well. Evidence: US-T826, US-T827.
F3.2 Combat — US-T1051 — built
- S3.2.1 Dogfight AI and squadrons — US-T1052 — built As a pilot, I want wingmen to fly formation, break into dogfights and form up again. Evidence: US-T188, US-T198.
- S3.2.2 Carrier decks and launch tubes — US-T1053 — built As a fighter pilot, I want to launch from a carrier's tube with its launch view and land on its deck. Evidence: US-T779, US-T786, US-T843.
- S3.2.3 Capital facings and shields — US-T1054 — built As a capital captain, I want to roll damaged facings away behind a shown shield field. Evidence: US-T187.
- S3.2.4 Hit and kill feedback and radar — US-T1055 — built As a pilot, I want every hit and kill to be clear and a combat radar around me. Evidence: US-T751, US-T853, US-T866, US-T867, US-T880.
- S3.2.5 Subsystem targeting — US-T1056 — built As a pilot, I want to tap R to lock and hold R to pick the subsystem the guns go for. Evidence: US-T996, 6b44f60.
F3.3 Fly this, missions and career — US-T1057 — built
- S3.3.1 Fly this — US-T1058 — built As the god, I want Fly this to drop me into a fighter in a battle. Evidence: US-T806.
- S3.3.2 Missions and career — US-T1059 — built As a pilot, I want missions offered from what the A-life is doing, with briefings, debriefings and a named career. Evidence: US-T812.
- S3.3.3 Tactical write-back — US-T1060 — built As a pilot, I want what I do in a fight written back into the war's result. Evidence: US-T809.
E4. Presentation — US-T1061 — built
F4.1 HUD and controls — US-T1062 — built
- S4.1.1 HUD drawers — US-T1063 — built As a player, I want HUD drawers that collapse, pin, dock, float and glow on alerts, their layout saved. Evidence: US-T438, US-T200.
- S4.1.2 Controls and bindings — US-T1064 — built As a player, I want every binding shown with H/F1 and rebindable in Settings, one owner per key per frame. Evidence: docs/Controls.md, US-T437.
F4.2 Look and sound — US-T1065 — built
- S4.2.1 Prebuilt ship and station art — US-T1066 — built As a player, I want the purchased USC, Star Sparrow and SSC prebuilts with every hardpoint skinned from the kit. Evidence: docs/ThirdPartyArt.md, US-T1000.
- S4.2.2 Effects and ambience — US-T1067 — built As a player, I want engines, weapons, explosions and ambience that make space feel alive. Evidence: docs/Effects.md, docs/Ambience.md.
- S4.2.3 Comms radio — US-T1068 — built As a pilot, I want radio lines to travel at light speed from their sender and be spoken aloud. Evidence: docs/COMMS_RADIO.md.
- S4.2.4 Two scales — US-T1069 — built As a player, I want G or backtick to toggle true and game scale with every feature reading correctly in both. Evidence: docs/TrueScale.md, docs/ScaleProportions.md.
E5. Session and sharing — US-T1070 — built
F5.1 Saves — US-T1071 — built
- S5.1.1 Save and load — US-T1072 — built As a player, I want to save a game and load it back to the same state. Evidence: docs/PERSISTENCE.md.
F5.2 Rewind — US-T1075 — built
- S5.2.1 Hold to rewind — US-T1076 — built As a player, I want to hold to rewind the last seconds, fights included, on one timeline. Evidence: US-T99, docs/REWIND.md.
- S5.2.2 Rewind in co-op — US-T1077 — built As a co-op player, I want a rewind to take every peer back to the same frame with identical digests. Evidence: US-T428.
F5.3 Co-op — US-T1078 — built
- S5.3.1 Host and join — US-T1079 — built As a player, I want to host from the main menu or join a host's address, with recent hosts kept. Evidence: docs/overview.md (Co-op).
F5.4 Recording — US-T1082 — built
- S5.4.1 Capture recording — US-T1083 — built As the owner, I want
-captureto record video, screenshots and event replays. Evidence: docs/CAPTURE.md, US-T944.
E6. Billion-agent society foundation — US-T964 — built
The Light Society paper's foundation at game scale: agents, social graph, event queue, router, distilled surrogates, fed by and feeding the live game (docs/LightSociety.md).
- F6.1 Society library core — US-T965 — built
- F6.2 Populace: society in the game — US-T966 — built
- F6.3 Society UI, command and docs — US-T967 — built
E7. The Fly-this loop — US-T892 — built (MS-14)
- F7.1 Into the fight — US-T899 — built: S Quick Start reaches a fight (US-T900), First-session prompts (US-T901).
- F7.2 Mission fight resolves — US-T902 — built: S Mission end and result banner (US-T903), Player craft destroyed exit (US-T904).
- F7.3 Debrief and back — US-T905 — built: Debrief to god view (US-T906).
E8. Prebuilt art in the loop — US-T894 — built (MS-14)
- F8.1 Prebuilt hulls — US-T912 — built: Swap loop hulls to prebuilts (US-T913).
- F8.2 Prebuilt stations — US-T914 — built: Swap loop stations to SSC (US-T915).
E9. Live Sol sandbox: inhabit anything — US-T942 — MS-14 (priority 1000)
Sol runs live; inhabit any ship, station or mech, ride along or take over, hunt pirates or turn pirate.
- F9.1 Inhabit anything — US-T947 — built
- F9.2 Ride along or take over — US-T948 — built
- F9.3 Hunt pirates — US-T949 — built
- F9.4 Pirate life — US-T950 — built
- F9.5 Proof: sg.Inhabit scenario — US-T951 — built
- F9.6 Final gate: tests then tour film — US-T943 — MS-14 (1010)
- Fixed-step lossless capture — US-T944 — built; Full test suite pass — US-T945 — built; tour stop drift reached — US-T990 — built.
- Film the tour lossless — US-T946 — MS-14 As the owner, I want the whole tour recorded offscreen at 1920x1080, 60 fps, lossless, so that I have the film I asked for. Acceptance: Given
sg.Tour auto quit, when it ends, then ffprobe shows ffv1, 1920x1080, 60/1 fps and no valve stop.
E10. Ships as a normal game — US-T891 — MS-14 (priority 900)
- F10.1 Run menu packages — US-T895 — built: SpaceGod.Unreal on run menu (US-T873), SpaceGod C: cleanup (US-T874).
- F10.2 Frame budget in a fight — US-T896 — MS-14 (980)
- Measure carrier fight frame time — US-T897 — MS-14 As the owner, I want mean and worst frame times and the top three costs of a five-carrier fight recorded for both scales in docs/TrueScale.md 5.6, so that the budget is known.
- Fix worst fight frame cost — US-T898 — MS-14 (requires US-T897) As the owner, I want the largest cost fixed with Bench digests unchanged, so that fights hold frame rate.
- F10.3 Plays as a normal game — US-T1005 — MS-14 (970)
- Redeploy and verify a normal game — US-T993 — MS-14 As the owner, I want the Shipping package to show a loading screen, cache shaders, open a title screen and play with no arguments, so that it starts like any game.
- Kit meshes allow CPU access — US-T1003 — MS-14 As a player of the packaged game, I want USC and Star Sparrow meshes cooked CPU-readable, so that nav lights, hull profiles and thruster jets work outside the editor (US-T1002 only skips them safely).
E11. Both scales — US-T893 — MS-14 (priority 700)
- F11.1 Loop audit in both scales — US-T907 — built: Role probes in both scales (US-T908).
- F11.2 Scale toggle mid-fight — US-T909 — built: G mid-dogfight keeps the fight (US-T910), Tube launch in both scales (US-T911).
- F11.3 Every loop role at both scales — US-T1004 — MS-14 (790)
- Fix the FreeRole stale index — US-T941 — MS-14 As the owner, I want the stale-index throw in ResetToNow after the dogfight demo fixed, so that roles.gameplay.* and roles.realistic.* pass in one audit run and the launched-craft seat is taken on the staged carrier.
E12. Co-op loop — US-T1006 — MS-148 (priority 600)
F12.1 Fly this together — US-T1007 — MS-148 (690)
- S12.1.1 Shared Fly-this fight — US-T1008 — MS-148 As two players, we want to Fly this into the same battle from host and client and see it resolve, debrief and update careers on both machines in both scales. Acceptance: Given host and client, when both Fly this into one battle, then both see the same outcome and debrief.
- S12.1.2 Inhabit anything in co-op — US-T1009 — MS-148 (requires US-T1008) As a co-op player, I want to inhabit any ship, station or mech while my friend holds another seat, one holder per seat, handed back to the AI on let-go. Acceptance: Given two peers, when both try one seat, then only one holds it.
- S12.1.3 Rewind in a shared fight — US-T1010 — MS-148 As a co-op player, I want to hold to rewind during a shared fight and have both peers play on from the same moment with identical digests.
F12.2 Packaged co-op — US-T1011 — MS-148 (680)
- S12.2.1 Shipping co-op smoke — US-T1012 — MS-148 As the owner, I want
tools/play.ps1 -Mode coop-smoke -PackageDirto pass on the Shipping package (the docs/PARITY.md still-to-do). Acceptance: two packaged instances join and match digests.
F12.3 1.1 polish and release — US-T1013 — MS-148 (670)
- S12.3.1 1.1 sign-off — US-T1014 — MS-148 (requires US-T1012) As the owner, I want to play the co-op loop with a friend over LAN in both scales, with overview, ROLES and Possession docs describing co-op seats.
E13. The finished game — US-T1015 — MS-149 (priority 500)
F13.1 Frontier rewards — US-T1016 — MS-149 (590)
- S13.1.1 Relic salvage and rare goods — US-T1017 — MS-149 As a pilot on the frontier, I want to salvage a relic into rare goods and trade them, so that a frontier run pays in more than survey data (docs/Frontier.md Limits).
F13.2 Rewind keeps more fights — US-T1018 — MS-149 (580)
- S13.2.1 Replaced fights kept — US-T1019 — MS-149 As a player rewinding a battle, I want a third fight born while a second is kept not to wipe the second, solo and co-op (docs/REWIND.md, Not yet).
F13.3 Sky-threat spec current — US-T1020 — MS-149 (570)
- Manalith debris: continuous tail — US-T994 — MS-149 The shared spec's Debris section matches GridGame's owner direction (GG-T2190).
- Somnolith rename in spec — US-T998 — MS-149 The shared spec's prose names the Somnolith (GG-T2194); file and code identifiers unchanged.
F13.4 1.2 polish and release — US-T1021 — MS-149 (560)
- S13.4.1 Finished-game sign-off — US-T1022 — MS-149 (requires US-T1017, US-T1019) As the owner, I want to play the whole game end to end from the Shipping package (Quick Start, fights, missions, inhabiting, frontier, rewind), solo and co-op, both scales, with every docs page current.
Added by MAT-T477 (owner stories and cross-repo links)
- F US-T1086 Art imports through the shared pipeline (epic US-T891, MS-14)
- S US-T1087 Imports art through AssetForge's mesh normalisation: requires AssetForge AF-T28; spacegod_import_resources.py keeps no mesh fix-ups of its own.
5. Non-functional requirements
- Windows, Unreal Engine 5.8, C++20; a fresh clone builds with UE 5.8 and VS C++ tools only (LAW-5).
- Both scales for every feature (LAW-1); roles never collide (LAW-3); tunables are settings (LAW-6).
- The Bench stays green; intended digest changes are re-recorded in their own commit (LAW-2).
- A playable frame rate in a five-carrier fight in the Shipping build, both scales (US-T896).
- Third-party assets are never committed (docs/ThirdPartyArt.md). Saves load across versions (docs/PERSISTENCE.md).
6. Interfaces and dependencies
- Platform, by concern (ECOSYSTEM.md 2.1): engine kit Unreal.Shared (
MindAtticSharedplugin, enabled inSpaceGod.uproject); shipping MindAttic.Deploy + the shared run menu; capture MindAttic.Media.Capture; credentials MindAttic.Vault (only if a key is ever needed). No platform concern is re-implemented here. - MindAttic.Media.Capture: the Unreal plugin and capture agent (the one sibling checkout the build uses).
- SpaceGod.Studio: edits
Data/Vehicles/Vehicles.json; the game owns the schema. - Prose: consumer kit push/pull of the
spacegoduniverse; the Light Society library keeps a boundary so it can later be lifted for Prose (docs/LightSociety.md), which is Prose's decision, not a SpaceGod story. - GridGame.Unity: shares
docs/MANALITH_VISUAL_SPEC.md; SpaceGod mirrors GridGame's owner decisions on it. - Agency deploy-lib: the run menu (
run.ps1).
7. Release sequence
- MS-14, SpaceGod.Unreal 1.0: playable Fly-this combat loop (active;
docs/RELEASE.md): epics US-T942 (1000), US-T891 (900), US-T893 (700); US-T892 and US-T894 are built. - MS-148, SpaceGod.Unreal 1.1: the loop in co-op: epic US-T1006 (600), ending with the 1.1 polish-and-release feature US-T1013.
- MS-149, SpaceGod.Unreal 1.2: the finished game: epic US-T1015 (500), ending with US-T1021. Reaching it finishes the product.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from the BIBLE, RELEASE, overview, design docs, git log and the ticket history; built work filed as US-T1023..T1083; the US-T933..T940 duplicate chain consolidated into US-T941; MS-148 and MS-149 added | MAT-T389 |
| 2026-11-30 | MAT-T462 single-source pass: US-T891 and US-T1004 renamed to outcomes/capabilities; 0 buckets; requires added: 1.1 co-op (US-T1006) after every 1.0 epic, 1.2 (US-T1015) after the 1.1 polish (US-T1013), each polish feature after the features it polishes; single-feature epic US-T893 kept (its one capability is the whole outcome) | MAT-T472 |
| 2026-11-30 | MAT-T477 owner story for AssetForge adoption | MAT-T477 |