Skip to content

Claude Game Studios — Stride Edition + Forge Hybrid

Threat model (harness hooks)

The Stride hooks and scripts protect a developer's own repository against accidental mistakes and agent errors: invalid asset JSON, oversized textures, a wrong asset folder, a failing or empty test run reported as green, and config typos. The user, their repo, their git config and their first-party test projects are trusted. Out of scope: - a malicious repo owner or a hostile test project (for example, forging a TRX file or abusing MSBuild); - NTFS alternate data streams, 8.3 short names and device-name tricks; - git config code execution (core.fsmonitor, diff.external); - shell-text evasion of the commit detector; - TOCTOU races; - junction or symlink games inside temp directories the scripts create themselves.

Simple, readable checks beat exhaustive ones. This repository contains harness scripts, not runtime game code, so these guards do not change gameplay.

Round-7 blocking and advisory checks

The development-blocking set is deliberately small:

  • invalid asset JSON on Write/Edit or in staged commit content;
  • a missing or ambiguous asset root, or a chosen root that cannot be resolved;
  • assets.root set on a Stride project (configurable roots remain FLT-510);
  • a failed or no-count test run (a no-count run is never reported as passing).

PostToolUse feedback cannot undo a write: its blocking status asks the agent to repair invalid JSON. Naming, media budgets and link findings are advisory. Links and junctions inside the asset tree emit a warn row naming the entry and are skipped without descent. Shared packs remain usable by the developer; scanners neither escape through links nor double count their targets. A non-native Windows Python without st_file_attributes treats entries as ordinary and emits one warn advisory instead of rejecting the tree.

Write/Edit validation inspects only the written asset file or Stride config; unrelated writes skip Stride validation. Commit checks run only for git commits and inspect staged paths plus worktree asset changes for -a, path commits and chained git add commands. Neither hook walks the full asset tree. Discovery and checks share one guard invocation per hook after the interpreter version probe. A generated 5,000-file fixture measures unrelated writes against 1.5 seconds and asset JSON writes against 3 seconds on Git Bash; exceeding a limit fails locally and warns in CI. A 5-second hard ceiling fails everywhere, with a timeout on each hook invocation.

Missing/older Python emits UNCHECKED: Stride checks need python 3.8+ and lets development actions proceed. The test runner requires its TRX reader, so absent Python produces no-count (3). Multi-TFM projects are supported: every *.trx in the run's fresh results directory is validated and counters are summed. VSTest uses --logger "trx;LogFilePrefix=<base>" to avoid fixed-name collisions. MTP runs with --results-directory <dir> -- --report-trx and parses reports it produces; zero files means fail (1) when the host failed, otherwise no-count (3), with no TRX produced (MTP reporter missing? add Microsoft.Testing.Extensions.TrxReport).

Runner and filesystem reference contract

Checked 2026-11-22 for FLT-506. The round-7 contract above supersedes round-6 hardening and earlier asset-root/runner proposals. Existing readers retain Python 3.8+ stdlib rather than C#: hooks need fast startup and the harness already uses Python for JSON. Godot, Unity and Unreal retain pinned ff85b51 behavior. The scaffold retains actions/upload-artifact@v7: its major tag exists and v7.0.2 is the latest official release, verified 2026-11-22.

Item Official source and result Current contract
VSTest command and results Microsoft .NET CLI VSTest reference confirms positional project selection, logger/results-directory options and LogFilePrefix for multi-targeted projects. Use an argv array: dotnet test <project> --logger "trx;LogFilePrefix=<base>" --results-directory <absolute-temp-dir>. The logger string is one argument. Validate every fresh TRX and sum counters. No stdout count parsing.
VSTest namespace and counters Microsoft VSTest namespace implementation confirms TeamTest/2010. Microsoft counter implementation lists 16 attributes: the 12 plan counters plus warning, completed, inProgress, pending. Microsoft result aggregation counts executed as passed plus failed. Microsoft runner documentation does not define exclusivity of passedButRunAborted: UNVERIFIED. All 12 plan attributes are required. The four known ancillary attributes may be absent or zero; a nonzero ancillary bucket rejects. All other attributes reject. The plan's disjoint-sum identity and executed == total - notExecuted - notRunnable are enforced conservatively; any unsupported/contradictory report rejects. No missing counter is inferred.
MTP command, output naming, layout and shape Microsoft .NET 10 MTP argument forwarding, checked 2026-11-22, puts --results-directory before -- and the extension option --report-trx after it. Microsoft TRX reporting documents the extension requirement and version-dependent report names. Run dotnet test --project <project> --results-directory <dir> -- --report-trx, validate all reports produced and sum counters. Missing reports mean fail (1) if the host failed, otherwise no-count (3).
Windows junctions, symlinks and dangling junctions Python os.lstat documents opening name-surrogate reparse points, including junctions, from Python 3.8. Python stat results exposes Windows attributes. Microsoft file attributes defines reparse bit 0x400. Descendant links/reparse points warn and are skipped without descent. Missing native Windows attributes emits one warning and treats entries as ordinary. The selected root itself must still resolve. No fsutil/admin dependency.
global.json resolution and comments Microsoft global.json reference documents CLI lookup upward from cwd and JavaScript/C# comments. Run from the project directory; detect the nearest file up to repo top and read BOM/comments. Without git or a work tree, walk filesystem parents. An absent/null test.runner selects VSTest; exact Microsoft.Testing.Platform selects MTP; reject unknown test.runner values (exit 4) before dotnet runs.
Leading @ response files Microsoft command-line syntax and Microsoft MTP CLI options document @ response-file arguments. Reject project/results paths with any component beginning - or @, and empty/dot/dot-dot paths, before invoking dotnet.

Current scope and residual risks

Configurable asset roots are not supported yet (FLT-510). Setup no longer writes them; Stride refuses any configured root, including empty, dotted, quoted and flow-map forms. Discovery accepts exactly one root-level Assets or Source//Assets candidate, case-insensitively, with no competing root. Hooks discover only what the current write or staged commit needs; unrelated writes do not trigger asset validation.

The Stride Resources sibling is not supported yet (FLT-511): media held there is a known false negative. Multi-TFM projects are supported. Clahadore creates the follow-up tickets and substitutes their numbers. Ticket descriptions must record deferred configurable roots and Resources support. TOCTOU races and hostile first-party test projects are outside the threat model above.

Historical round-5 finding reconciliation (31)

This table records the round-6 review, not the current guard policy. Round 7 supersedes its fail-closed link, interpreter, per-call discovery and multi-TFM decisions as described above.

# Disposition Reason
1 High Eliminated Custom jail removed; lexical ancestor probing and strict candidate discovery replace it.
2 High Fixed here lstat probes dangling reparse points/errors without an existence prefilter.
3 High Eliminated Warning-driven fallback removed; every guard failure blocks.
4 High Fixed here Case-insensitive discovery probes lowercase junctions before selecting them.
5 High Eliminated Stride find descent replaced with probed scandir and atomic NUL file lists.
6 High Eliminated Stdout dialect parsing removed; TRX is the only count source.
7 High Eliminated Custom roots refused; hooks always discover the root before filtering paths.
8 High Fixed here Engine and path components compare case-insensitively on every OS.
9 High Fixed here Link-canary fixtures assert rejection and absence from stdout, stderr and TSV.
10 High Fixed here Non-Stride guard sentinel receives separate argv and asserts no invocation.
11 Medium/High Eliminated Passed/succeeded and haspassed stdout logic removed; counter identities checked.
12 Medium Eliminated Sticky Test-summary stdout invalidation removed.
13 Medium Eliminated Bare stdout totals are never read.
14 Medium Eliminated Resources sibling scan removed; support deferred to FLT-511.
15 Medium Eliminated No privileged fsutil dependency; independent mklink junction fixtures.
16 Medium Fixed here YAML document-end marker clears parent/block state, covered by fixture.
17 Medium Eliminated Resources jail removed; the known scan false negative is recorded for FLT-511.
18 Medium Fixed here Explicit guard/interpreter status fixtures verify mapping to hook status 2.
19 Medium Fixed here Junction fixture creation quotes source and target paths.
20 Medium Fixed here Hook fixtures provide JSON via stdlib serialization and parse the complete object.
21 Medium Fixed here CLAUDE_PROJECT_DIR-versus-cwd and lexical linked-cwd checks are explicit fixtures.
22 Medium Fixed here Recursive source traversal prunes csproj-adjacent output at any depth, never inside assets.
23 Medium Fixed here Stride temp failures exit 4 before any TSV/count output.
24 Medium Fixed here Shared stdlib global.json reader strips BOM.
25 Low Eliminated Skipped stdout prefixes are irrelevant; notExecuted is the skip count.
26 Low Eliminated Python lstat replaces per-segment Windows subprocess probes.
27 Low Fixed here Missing conversion/native interpreter rejects; fsutil is unused.
28 Low Eliminated No empty pwd-derived shell prefix; physical repo follows successful lexical probes.
29 Low Out of scope TOCTOU races are out of scope under the round-7 threat model.
30 Low Fixed here Fixtures serialize Windows paths with json.dumps instead of interpolating JSON.
31 High Eliminated gawk-only runner parser replaced by the shared Python stdlib reader.

CI is configured to run all fixture suites on ubuntu and Windows Git Bash with native CPython; any runtime SKIP under CI=true fails. Ubuntu runs shellcheck at warning level on every changed shell file. Full council re-review and Andrew's merge approval remain post-code gates; Cedric's review is advisory because Cedric implemented.

Historical round-6 local verification and gate status

Final local runs used CI=true, Windows Git Bash with native CPython 3.13.15, and Ubuntu WSL with CPython 3.14.4 and .NET SDK 10.0.115. Compilation and all 13 changed shell syntax checks passed. Shellcheck is absent locally (including Ubuntu); it was not installed. The configured GitHub jobs have not been run.

Fixture suite Windows PASS/FAIL/SKIP Linux PASS/FAIL/SKIP
Guard unittest 59/0/0 59/0/0
Baseline engines 12/0/0 12/0/0
Stride assets/hooks 96/0/0 97/0/0
Stride runner, including live dotnet pass/fail 22/0/0 22/0/0
YAML document boundaries 4/0/0 4/0/0

Linux has one additional shell assertion for a newline filename; the Windows unit suite exercises equivalent NUL transport through mocked directory entries. Windows junction fixtures use actual mklink /J, including dangling links. The genuine VSTest oracles were generated on 2026-11-22 using .NET SDK 10.0.400-preview.0.26322.102, Microsoft.NET.Test.Sdk 17.14.1, xUnit 2.9.3 and xunit.runner.visualstudio 3.1.4. Pass and fail reports retain their counters with host/user/path identities scrubbed; the malformed oracle is synthetic. Live integration selects its project and generates fresh reports on both platforms.

Council advisory findings prompted additional fixes and fixtures: dry-run reports no-count, reports stay buffered through cleanup, supplied roots are probed before cd, timeout availability is required, csproj comments are allowed while DTD/entity declarations reject, BOM refusal scans match the YAML reader, relative hook invocations resolve helpers before cd, and large hook payloads travel through regular temporary files rather than argv. The follow-up advisory pass also prompted a five-second hard kill after the test deadline, strict rejection of nonstandard JSON constants, preservation of explicit non-Stride engine overrides, and buffering of incidental guard stdout (including argparse help). CI and the runner fixture wrapper explicitly reject unittest skip summaries.

Full council approval remains pending: direct Clahadore CLI admission was denied by the usage governor/Device Guard; Jenny and Cyber Jenny require authentication; Gronktayvius timed out; the gaming council timed out; the streaming council tool is unavailable. The initial Gronktayvius receipt was also quarantined by the isolation auditor while implementation was changing the tree, and is excluded from quorum. Susie Franny and Cedric Focus supplied advisory findings. No reviewer result substitutes for Clahadore's chair pass or Andrew's merge approval. Local Ollama output was nonspecific and is not a sign-off.

The supplied clone is actually on fix-r8 at 58d0766, despite the brief's branch name. It was preserved: no branch switch, remote addition, staging, commit or push. Follow-up tickets: FLT-510 (configurable asset roots), FLT-511 (Resources sibling; multi-TFM was subsequently enabled in round 7).

Architecture Plan (Draft for Council Review)

Date: 2026-11-21 Author: Clahadore Jones-Gaffney (Claude, orchestrator) Status: REVISED after council R1 + goldfish R2 (2026-11-21). Seats: Cedric, Jenny, Susie (Gronktayvius down, xAI outage; Jenny chunk 1 empty). Verdict: unanimous APPROVE-WITH-CHANGES. The R1 decisions below supersede any conflicting text later in this doc. Ticket: FLT-506.


0. Council R1 decisions (binding)

# Decision Source
D1 Stride is an engine row inside CCGS, not a fork. No second .claude/, CLAUDE.md or gate runner. Game code lives under the Stride code root in this repo (one monorepo: Framework.* + games). Heavy assets live outside git (LFS/object store). All 3
D2 Resequence around one vertical slice first (§12). Tags, attributes, abilities, effects, narrative, matchmaking and emulation profiles are deferred until a slice needs them, and are then built netcode-native. All 3
D3 Simulation contract before netcode code (detail below). Cedric
D4 Determinism is per-architecture. Exact hash equality runs on the same ISA; across ISAs use a tolerance. Authoritative servers and replay validators run on x64 only. Apple Silicon clients reconcile to the server. Do not claim cross-ISA exact replay. All 3
D5 Input normalization (detail below). Cedric, Jenny
D6 Scenario OS goes through MCP/REST via Forge only. No editor plugin. Phase 3 uses the simplified flow in D18; a worker/ledger comes only when volume demands it. All 3 (R2-simplified)
D7 The Stride MCP server is dev-only. Use the official ModelContextProtocol SDK. Every call is async with cancellation and is marshaled onto the game thread through a bounded Channel drained per tick. Buffers are pooled. Mutation ops are allowlisted. It is compiled out of shipping builds. All 3
D8 Asset export is lazy, per phase, and piloted first. Pilot one static mesh+material, one rigged anim and one audio clip through Stride. A versioned manifest in git records {entitlement, source sha256, exporter version, licence note, output sha256}; retries are idempotent. Phase 2 is greybox and code-only; its art needs nothing. The first art import is the Phase 3 aim trainer: Indoor Shooting Range + Low Poly FPS Bundle (already FBX/GLB) + Mannequins. Cedric, Jenny (R2)
D9 Gates reuse the Forge rule pack. The adapter inventory is fixed in D20 (R2). Jenny, Susie
D10 Game order: aim trainer → Rogue Royale + Maniac (co-op PvE, shared stack) → Paint Territory last (10v10 + paint is a different netcode problem). Jenny
D11 Emulation is "feels like", parametric. GameProfile YAML holds closed-form scalars and curves only (accel, friction, air cap, jump, sens/FOV scaling, recoil). Custom abilities become C# strategies later. All 3
D12 Movement is composition, not inheritance. A small simulation controller plus composable movement policies. Presentation (smoothing, turn-in-place, ragdoll) stays out of the simulation. The simulation must run in a headless server assembly with no graphics/audio natives. Cedric, Jenny
D13 Use Stride's own [DataContract]/YAML data assets for scenarios and profiles. No custom parser. Jenny
D14 Backend (ELO, leaderboards) is deferred. It is internal-use for now. If built later: an off-the-shelf backend plus cdktn C# IaC and EF migrations. Jenny
D15 Web-surface rules apply only when a web UI exists. No web surface is in scope now. If a dashboard is added: CSP/CSRF/safe DOM sinks per Susie R1, plus a11y. Susie (weighed)

D22 Long-term direction (Andrew, 2026-11-21): Stride replaces Unreal + UnrealSharp entirely. - Stride is the primary engine going forward. Unreal/UnrealSharp is maintenance-only: no new UE features and no new UnrealSharp code. - The Unreal engine row and the RRR UE project stay until the Rogue Royale port (Phase 5) reaches parity. Then project.yaml engine.name flips to stride and the UE row is retired. - Harness changes are made Stride-first. Engine-neutral C# guidance must not depend on UnrealSharp. - The Fab triage and asset track already assume this (UE content → FBX/glTF → Stride).

D23 Map editors and content import (Andrew, 2026-11-21): OPEN, pending study S24. - Map editors are in scope on two levels: - dev-side level authoring, comparing Radiant/TrenchBroom-style brush editors with Stride Game Studio's scene editor; - a player-facing in-game editor modeled on the ShootMania block editor, Red Eclipse co-op editing and the Reflex/Diabotical editors. - Aim-trainer content import: we provide importers for maps, playlists and scenarios from KovaaK's, AimBeast and Aim Lab. - Each importer converts the source into our own scenario/playlist/map schema. It is a one-way, lossy-flagged conversion with a report listing every unmapped field. - Importers read only files the player owns or exports. They never fetch from those services and never decompile their binaries. - Formats come from public docs and the player's own files (clean-room, D16). - Licence and ToS goes in notes only (D16 posture). - Decision is taken when S24 reports: dev tool choice, player editor yes/no and its phase, importer phase (aim-trainer track).

D24 Demo/replay import ("VOD recompile") (Andrew, 2026-11-21): OPEN, pending study S25. - Import in-game demo/replay files from games that keep them locally: CS2 and Deadlock .dem (Source 2), Dota 2, Quake/UT/Warsow/Xonotic demos, and TrackMania/ShootMania .Replay.Gbx. - Valorant and Overwatch are flagged likely-unsupported. Their replays look server-side only, but S25 will confirm. - Pipeline: 1. Parse with open parsers. demofile-net is C#, which fits the language policy. 2. Normalize to our replay schema on the D3 tick contract. 3. Retarget onto our maps, or onto a reconstructed blockout via the D23 map import. 4. Re-render in Stride. - Uses: - pro-engagement → aim-trainer scenario, with targets following the real paths; - movement-tech clip extraction; - spectator/coaching overlays. - Clean-room rules: only the player's own files, public parsers and public sample demos. No game-binary decompiling. Never touch anti-cheat. No service logins. - Licence and ToS goes in notes only.

D25 Stats tracking and build sites (Andrew, 2026-11-21): OPEN, pending study S26. - References: tracker.gg, Leetify, Scope.gg, Blitz, Mobalytics, op.gg/u.gg, Dotabuff/STRATZ/OpenDota (open source), Deadlock trackers (statlocker etc.), Overbuff, and the Voltaic/Aim Lab stat pages. - Ours has three parts: 1. A first-party match-history, telemetry and stats service, plus build/loadout sharing pages for all four games. 2. A public read API, so third-party trackers can integrate. 3. An optional import of the player's own stats, through official exports or APIs only, and only with the player's authorization. - Feeds and is fed by the aim-trainer benchmarks (S18/S21) and the D24 demo import. - Privacy: opt-in and per-player visibility controls. It falls under the D17 security controls.

D24+D25 product goal: an improvement loop for players with little time (Andrew, 2026-11-21). - Scope (Andrew): "this is kind of the advanced vision of what you could do with a trainer." This is the north star for the aim-trainer track, not the first slice. It gets staged after the core trainer is in place: scenarios, benchmarks/ranks, keyboard drills and importers. It is sequenced once S24–S26 report. - "Even if you only have a little bit of time it can be watched back and you can improve." - Every session, however short, is recorded as a replay. - Key moments are auto-flagged: deaths, missed shots, lost duels, mistimed movement tech. That makes a 5-minute review worth doing. - Compare to the best. The player's play sits side by side with tournament and top-streamer play: pro demos through D24 import, and our own top-ranked replays. Comparisons cover: - engagement-by-engagement aim, crosshair placement and movement paths; - per-situation decision stats (S26 site patterns). - Compare builds. The player's build, loadout or items, and their timing, against pro and top-percentile builds from the D25 build pages and tracker data. - Shows win rate and pick rate by build, plus a diff view. - Close the loop. Each flagged weakness links to a generated aim-trainer scenario or keyboard/movement drill (S18–S21, D23 importers). Example: a missed duel becomes a scenario that replays that enemy's real path. - Generated practice scenarios (Andrew: "generate similar map geometry and enemy movement to what you were struggling with"). From each flagged moment, the generator: 1. Extracts the local geometry from the replay: cover layout, angles, elevation, sightline length, jump pads and ledges within the engagement radius. 2. Extracts the enemy's movement signature: strafe cadence, speed, jumps, ability use and peek timing. 3. Generates a scenario whose geometry is similar but not identical. It is a procedural blockout matched on those features, using the D23 editor's block set, so the player learns the situation rather than memorizing one spot. 4. Adds bots driven by that movement signature, with variation. - Difficulty adapts to the player's results, and the drill is scored with the S18 benchmark/rank structure. - Fidelity check: the generated scenario must reproduce the original failure rate within a tolerance before it ships to the player. If it doesn't, it isn't training the same weakness.

D26 Extra data sources for the improvement loop (Andrew, 2026-11-21): OPEN, pending study S28. - Overwolf: game-events API, giving kill/death/round events from other games so their sessions get logged alongside D24 demos. - OBS: obs-websocket and plugins for recording control, chapter markers at flagged moments, and synced capture of game, webcam and mouse-cam. - Twitch extensions: a viewer-facing stats/replay overlay, plus streamer-sourced pro comparison (D25). - Eye tracking: - Tobii Game Integration API (Eye Tracker 5) when present; - otherwise webcam gaze estimation (WebGazer/MediaPipe-iris class), flagged low-accuracy. - Use: gaze-to-crosshair lead/lag, target acquisition order, minimap/HUD glance timing. - Mouse-cam / hand-cam (if the player provides camera angles): - hand/arm pose estimation to separate wrist from arm aiming; - grip, lift-off/reset detection, and tension/jitter. - All of it is correlated with in-game input. - Fusion: every stream is time-aligned to our replay tick (D3) so a flagged moment shows game, input, gaze and hands together. - We build our own integrations (Andrew: "so you can build things that integrate better to collect data for this"). Off-the-shelf tools are references, not dependencies. - Capture companion: C#/.NET 10, local, tray app. It records input, Tobii, webcam-gaze and mouse-cam streams with one shared clock, and is the D26 fusion point. - OBS integration: a C# obs-websocket v5 client in the companion, which drops markers at flagged moments and syncs camera sources. Use a native OBS plugin (C/C++) only if websocket can't do the job. - Overwolf app: captures game events for non-Stride games. Overwolf apps must be HTML/JS/TS, which is a stated language-policy deviation. The app stays thin and forwards events to the C# companion. - Twitch extension: the frontend is TS/HTML, which Twitch requires (same stated deviation). The EBS backend is C# ASP.NET Core and serves stats/replay overlays from the D25 service. - In our own Stride games, all of this is native: no Overwolf needed, and the events come straight from the sim. D35 Studio thesis, "every genre as an FPS" (Andrew, 2026-11-21): PROPOSED. Andrew listed JRPG, co-op, roguelike, RTS, MOBA and sports, each as an FPS.

Architecture consequence: one shared FPS Core, with Genre Modules layered on top.

Layer Contents
FPS Core (shared by every game) D3 tick movement (slide D34, Flowmotion), raw input + gyro (Steam Input), hitscan/projectile, lag compensation, replay, stats/telemetry (D24/D25), and the aim-trainer emulation hooks
Genre Modules Party/Companion (D33), Run/Meta-progression (Rogue Royale), Commander/Game-master (D30), Lanes/Economy/Items (Paint Territory, Deadlock-like), Objective/Ball physics (a sports FPS such as Rocket League, Lethal League, Splitgate modes or Tribes flag), Encounter/Raid (D31)

Andrew's additions: raids, and Duel, "the fighting game of FPS". Duel is a module: Arena/Item-control. - Items: item and powerup spawn timers, armor/health stacks, weapon pickups and deny. - Tooling: a timer and stack-tracking training overlay for the aim trainer, a duel spectator HUD (stacks, item timers, control) and 1v1 ranked. - Fighting-game lens: a frame-data-style weapon sheet (fire rate, switch time, projectile speed), punishable windows, and a replay with input display. - Netcode bar: 1v1 is the strictest fairness case. It's the reference test for lag compensation and tick rate (D3). - Fit: Maniac FPS's competitive mode is Core plus Arena/Item-control. The aim trainer gets a duel-scenario pack.

Multi-team respawn deathmatch: the "Brawl" preset (Andrew, 2026-11-22). Diabotical's Brawl sits between BR and TDM: three or more teams, unlimited lives, everyone fighting at once. - It's a mode preset, not a module. The Core already handles deathmatch. The preset sets N teams, the respawn rules, the score target and spawn logic. - Rogue Royale: the respawn "warm-up / casual" alternative to permadeath BR, with the same multi-squad chaos and no elimination downtime. - Couch (D36): 3-4 teams map onto split-screen naturally, for example 2v2v2 with 4 controllers plus bots. - Engine needs: - N-team spawn logic that avoids spawning you into a third party; - colour and readability for 3+ teams, including colourblind-safe palettes; - a scoreboard and spectator view for N teams. - Research: S108 covers Diabotical Brawl and the precedents (Halo multi-team, Splitgate, CoD Gunfight variants, QC 2v2v2 if any).

Rules: 1. The Core has no genre knowledge, and a module never patches Core internals. Modules use only Core's public C# interfaces. 2. A module is a separate assembly with its own tests. An architecture test (NetArchTest) fails CI if the Core references any module. 3. A new game is a composition: Core plus N modules plus content. All four planned games prove the reuse. Maniac FPS is Core-only for its co-op campaign and Core plus Arena/Item-control for its competitive mode, the aim trainer is Core plus Training (plus the Arena duel-scenario pack), Rogue Royale is Core plus Run plus Companion, and Paint Territory is Core plus Lanes plus Commander plus Paint. 4. Each module ships behind a feature flag (D28) until the game that uses it reaches vertical slice.

D39 Representation and art diversity (Andrew, 2026-11-22): BINDING for every game. Andrew: proper representation is "more important than anything else", so it outranks every other art or design trade-off. Black-owned studio.

  • Cast: many Black and brown anime-style characters across the full shade range (dark, caramel, light) as main and playable characters, not side characters. Character creators offer the full range.
  • Skin AND hair: Blackness reads through pigment as well as hair. Anime often codes it through hair alone (One Piece: Rocks, Blackbeard, Aokiji, Usopp, Yasopp, Brook). Here pigment shows the full range, so no character reads as lightened or ambiguous. Light-skinned Black characters are one shade among many, not the default.
  • Hair: coils, curls, locs, braids, twists, fades and afros are modelled authentically, with their own silhouettes and physics, not one generic mesh.
  • Rendering QA gate: the cel/toon shader uses warm, saturated shadow ramps (never grey or ashy), with rim and specular tuned per tone. A lighting test scene with a skin-tone swatch strip, under warm, cool-night and firelight grading, is a BLOCKING visual check: a retained screenshot in production/qa/evidence/.
  • LGBTQ+ friendly: queer and trans characters, Black trans women included, are full characters and never jokes. Trans women are designed as women, like any other Black woman: no visual tells, no othering. Character creators separate body, voice and pronouns; pronoun options exist.
  • Writing: specific, full characters. No caricature, no tokenism.
  • No real-person likeness: no characters modelled on private individuals. Social clips are inspiration only.
  • Where it lands: each game's art bible (/art-bible) carries this section. References come from research lane S109; only legitimate sources are archived.

D38 Input-agnostic movement teaching (Andrew, 2026-11-22): PROPOSED, pending S104. The goal is G-meter-level granularity, plus coaching, for every control scheme: keyboard+mouse, stick, and gyro.

Design: movement physics and the meter work on canonical quantities, never on device inputs: - wish-direction, as a unit vector; - view yaw rate; - the wishdir-to-velocity angle against the optimal angle; - per-tick acceleration gain; - speed.

Each scheme has an adapter that maps device input to those quantities, plus a coach that maps the error back to an action on that device:

Scheme Wish-direction View Coach phrasing
K+M WASD, 8 discrete directions mouse yaw "turn faster or slower," "release W"
Stick analog angle and magnitude right stick or flick stick "angle the stick X° more"
Gyro (+ stick or trackpad) left stick or trackpad gyro yaw rate "rotate the controller faster or slower"

Rules: 1. A single G-meter renderer reads only the canonical quantities, so the visual is identical across schemes. Only the coach text and icons differ per device. 2. Fairness: analog wishdir can hit the optimal angle directly, which could beat 8-way keys. The ruleset decides whether wishdir is quantized to 8 directions (Quake purity) or analog is allowed. 3. Parity test: a golden trace per scheme. Optimal play on each device must reach the same max speed curve within tolerance, or the difference is documented as intended. 4. Trainer movement drills run per scheme. Telemetry records the scheme, so progress and fading assist (D37) are tracked per device.

D37 Assist policy: competitive vs casual (Andrew, 2026-11-22): PROPOSED, pending S104. - Competitive: NO aim assist. Gyro is the controller answer, because it's real-world motion, not software help, and it serves both aim and movement (camera control during strafe and air-control). - Casual: aim assist is allowed, and movement assist is a new, first-class design area. It covers: - strafe-jumping; - CPMA air-control and the slide dash; - the Quake 4 slide (D34); - bunny-hop timing.

Movement-assist candidates (S104 evaluates them): 0. Diabotical's G meter is the primary reference. Andrew calls it "the magnum opus of teaching movement". S100/S104 identify how it worked. Our movement-teaching HUD starts from it; CGaz and speedometers are secondary references. 1. Visual guides: a CGaz-style optimal-strafe-angle HUD (DeFRaG; oDFe is mirrored) and a speedometer. Allowed in every mode, since information is not assistance. Competitive rules may still hide it on a per-ruleset basis. 2. Input buffering: jump-on-landing and slide/dash windows, a few ticks long. The window is a ruleset parameter: generous in casual, tight or zero in competitive. 3. Assisted strafe: in casual only, the engine nudges the wish-direction toward the optimal angle at a strength from 0 to 1. 4. Fading training wheels: assist strength drops as measured skill rises (D24/D25 telemetry), so casual play teaches the real technique. This links to the aim trainer's movement drills.

Rules: - Assists are a server-authoritative ruleset property and never client-only toggles. - Ranked or competitive rulesets force aim assist = 0 and assisted strafe = 0, with a contract test per gate (D28 fail-closed). - Every assist in use is tagged in stats, replays and matchmaking (D36 fairness), and mixed-assist lobbies are explicit. - Gyro is input, not assist, so it's always allowed. The anti-cheat check is that input really comes from a gyro device, through Steam Input.

D36 Couch duel via gyro (Andrew, 2026-11-21): PROPOSED, pending S101. - Gap: stick aim can't carry an arena duel, so controller players never got duel in split-screen. - Thesis: gyro aim (Steam Controller 1/2, DualSense, Switch Pro/Joy-Con) makes couch duel viable. Andrew owns 4 Steam Controllers, so 4-player couch is testable in-house.

What the engine needs: 1. Local multiplayer: N viewports (1-4) with per-player cameras, HUD and audio listener. Stride's support for multiple render targets/viewports is UNVERIFIED; S101 must check it against the Stride 4.4 docs and source before we rely on it. 2. Per-device input: every controller maps to exactly one player through Steam Input, plus hot-plug. 3. Gyro done right, every option per player: - flick stick; - gyro ratchet / touch-to-enable; - natural (real-world) sensitivity calibration in degrees per degree; - an acceleration curve, smoothing below a threshold, and world vs local vs player space. 4. Frame budget: a 4-way split must still hold the competitive tick (D3) and the target frame rate. Add a perf test. 5. Fairness: the input method is tagged in matchmaking and stats. Mixed lobbies (M&K vs gyro vs stick) are an explicit setting, never silent. 6. Item timers: in split-screen the module shows stacks and timers per viewport only. Screen-peeking is part of couch culture, so no extra info leak is designed in.

Couch flagship candidate (Andrew, 2026-11-22): "Smash Quake" as a gyro couch experience. The Knockback/Ring-out preset (KovaaK Smash Mod lineage, S102) suits couch play, because Smash is the archetypal couch game. Why: - A percent HUD and ring-outs read well even in a small split-screen viewport. - There's no permanent death. Knockback keeps the action legible and low-stakes, which suits kids and mixed skill (D32). - Gyro aim plus rocket-jump movement gives a real skill ceiling.

Modes to evaluate: - FFA and 2v2 versus; - co-op versus AI, boss or horde waves, using the D30 director; - co-op ring-out-the-boss arenas.

Applies to: Maniac FPS duel first, then Paint Territory couch (with a Splatoon gyro lineage) and aim-trainer gyro scenarios.

D34 Slide mechanic reference (Andrew, 2026-11-21): OPEN, pending S98. Andrew rates Quake 4's slide as the historical gold standard. He also calls ShootMania's slide "really cool". - Target: the Maniac FPS (and Rogue Royale) slide is tuned against Quake 4 first and ShootMania second. - S98 measures each one: how the slide starts, speed retention and decay, friction, how it chains with jumps, the slope interaction, the camera, and the sound cues. - Clean-room rule: measure behaviour from footage and play only. No code is ported from the Quake 4 SDK, whose licence is not GPL. This is stricter than the D28 Gray class: Gray modules may run in internal builds, but Quake 4 SDK code is reference-only in every profile and never enters the repo. - The slide lands as tunable D3-tick movement parameters, plus a golden-trace test that replays a reference input sequence and asserts the speed curve stays within tolerance.

D33 Partner/companion system candidate (Andrew, 2026-11-21): OPEN, pending S97. - Andrew loves the pet/companion party mechanics in KH: Dream Drop Distance (Dream Eaters) and Digimon. He's a long-time One Piece, Kingdom Hearts, FF7 and Evangelion fan. - Candidate: a partner companion that fights, supports and grows with the player. It's raised, bonded and evolved, Digimon-style, and links abilities with the player, the way KH DDD's Dream Eaters link with Sora. - Paint Territory: a painting pet as a kid-friendly contribution path, tying into D32. - Rogue Royale: a collect/evolve partner as the roguelike build layer. - D27: the AI behind the companion. SYNDUALITY's Magus is the precedent. In-match combat and movement run on deterministic sim rules (behaviour trees or utility AI), because D27 forbids model inference during a match. D27 models drive between-round adaptation, evolution coaching and out-of-match interaction. - KH DDD's Flowmotion (wall-kick, rail grind, pole-spin, momentum attacks) is also a movement-system reference for D24/Maniac FPS. - Aesthetic: an anime/JRPG lineage: One Piece crew energy, KH/FF7 style, and Evangelion mecha (which links to CORE-MECHA). - Competitive rule: a companion must stay readable and balanced in PvP. Its power must never replace player skill (D32 floor and ceiling).

D32 Paint Territory pillar: everyone contributes (Andrew, 2026-11-21). - "I love the idea of Splatoon because it makes gameplay accessible to everyone. It's a way to introduce shooters to kids without being scary, and because of the mechanics, even if they can't defeat their opponents they can still paint the map and help their team win. Foamstars was a missed opportunity to expand a generational game into an iconic pillar genre." - Pillar: every skill level has a real way to help the team win. - A new or young player paints territory, which is objective progress. - A skilled player wins fights and turns movement tech into map control. - The coach or shot-caller runs the D30 commander seat.

One match, three valid ways to contribute. Painting is never a consolation prize; it scores. - Non-scary presentation: splat or ink, not gore. A colorful, readable art direction. Defeat is "splatted / sent back", not death. Age-appropriate by design, so the game is rated for a young audience without losing competitive depth. - Skill floor low, ceiling high: - easy onboarding: aim assist and gyro (D5 parity), simple weapons; - deep mastery: swim/ink movement tech, the D38 recoil/range meta, MOBA-FPS objectives; - the D23 aim trainer is the on-ramp. - Lesson from Foamstars: the S-lane study must explain why it failed to become a genre pillar. Candidates: platform exclusivity (PS-only), the shift to free-to-play/live-service, thin content, weak identity versus Splatoon, and no PC/Switch audience. Avoid each one. - Gap: Splatoon is Nintendo-only, and nobody owns the "paint shooter" genre on PC or cross-platform. That is the opportunity. It's still a venture-evidence hypothesis, so test it with player and parent interest before scaling.

D31 Player-lifecycle thesis (Andrew, 2026-11-21): FPS players "graduate" to the boomer genres, in FPS form. - "The raids in Destiny and MOBAs of Deadlock feel like the eventual end for every FPS player: the boomer genres, but FPS." - The arc is twitch and arena play first, then deeper, slower, coordinated genres (MMO raids, MOBAs), still delivered with FPS gunplay and movement. - Our lineup already spans the arc: - aim trainer and Maniac FPS: entry, twitch; - Rogue Royale: mid; - Paint Territory (MOBA-FPS, like Deadlock): the destination. - Gap: no planned game owns the FPS-raid end (Destiny raids). One candidate is a co-op raid/PvE mode on the D30 game-master API. Either a designer-authored encounter or a human game master runs it, with the AI director filling in. It would be a Paint Territory or Rogue Royale mode first, not a fifth game. - Venture evidence: this is a thesis, not a fact. Test retention by genre-stage using public cohort data (Destiny and Deadlock player-count curves, S26 tracker data) and our own telemetry. Look for whether players who stick with an arena shooter migrate toward the coordinated modes.

D30 Design pillar candidate: the commander/general role (Andrew, 2026-11-21). - "I love that mechanic of one person being the general for their team. It gives in esports a chance for a coach to be an active player." - Reference: Natural Selection 1/2 (the Marine commander), plus the S58 commander-games study. - Candidate for Paint Territory (MOBA-FPS). One player per team is the commander: they play from a top-down or tactical view and control the economy, the tech tree, structures, pings and buffs. The rest of the team plays in first person. - Esports angle. The commander seat lets a team's coach or shot-caller compete as an active player. It also gives the D29 esports-management game a distinct role to scout, train and draft. - Broadened (Andrew): "games with a game master, like Fable Legends, Doom Eternal multiplayer, The Culling and Natural Selection." The pillar is the game-master role in three forms: 1. Team commander inside a team (NS commander, Savage, Nuclear Dawn, BF2 commander). 2. Opposing overseer who is the team's adversary and shapes the match: the Fable Legends Villain, Doom Eternal Battlemode demons summoning and placing hazards, Evil Dead: The Game's Demon. 3. Match director/host who manipulates the arena for everyone: The Culling's airdrop and arena-hazard economy and its game-show framing, and the L4D AI Director as the AI version. - A human game master and an AI director should share one API, so the AI can always fill an empty seat. The AI version also drives the D23/D24 generated-scenario difficulty. - Open questions for S58: - Is the commander seat optional or mandatory? - How do teams cover AFK or no-commander situations, for example an AI commander fallback? - Can the commander drop into the field? - How does the role read to spectators? - What anti-griefing is needed, such as a team vote to eject the commander?

D29 Future game: esports management (Andrew, 2026-11-21: "I've always wanted to make esports management games"). IDEA, not scheduled. - It reuses the stack: - matches simulated on our own games' sims; - player ability models learned from real play (the D23 bot-imitation work, D25 stats, D24 replays); - S37/S38 kit and weapon data for rosters. - Constraint now: keep the stats, replay and bot-imitation modules game-agnostic (already required by D28). Then this game costs packaging, not a rewrite. - When it starts, it goes through product discovery (venture-evidence). - References to study then: Football Manager, OOTP Baseball, Teamfight Manager, Esports Life Tycoon, Esports Godfather.

D28 Sequencing: framework first, cloud product later (Andrew, 2026-11-21). 1. Our games use it. The trainer, coaching and replay stack ships inside our four games. 2. A framework others can adopt. We package the same stack as reusable, engine-agnostic C# libraries (NuGet). It includes: - core: replay schema, moment flagging, scenario generation, stats, the D27 AI interface and the D26 capture companion; - a Stride adapter first, with other engines' adapters later; - an open, versioned replay/scenario/stats schema, plus docs and samples.

Other developers bring their own models (D27 backends 1 and 2), so adopting the framework costs us nothing to run. 3. Long-term cloud product. This is the hosted open-model backend plus hosted stats/replay services (D27 backend 3, D25 service at scale).

  • Licence posture changes for anything in step 2. The "licence = notes only" rule (D16/D23–D25) covers internal use. A framework others adopt is distributed, so before step 2 ships:
  • every dependency and every ported idea needs a real licence check;
  • GPL/copyleft reference code (Q3, Xonotic, Red Eclipse, Defrag, etc.) must remain strictly clean-room specs, with no copied code;
  • the framework's own licence has to be chosen.

This gate only applies at step 2, not now. - Design consequence now: keep game-specific code out of the core libraries from day one, so step 2 is packaging work, not a rewrite. - Why the cloud comes last: the data is unusually sensitive (Andrew). - Keystrokes, mouse-movement dynamics, gaze and camera data are all sensitive. Mouse and keystroke dynamics are behavioral biometrics: they can identify a person. So all four count as biometric and fall under D17. - A local-first framework never holds anyone's raw data. Holding it in the cloud is a liability that needs mature controls first. - Capture scope (prevents keylogging): - The companion records input only while the game window is focused, and only game-bound keys and actions. - Text input is never captured: no chat, no typed text, nothing while an OS text field or password prompt has focus. - It runs no system-wide hook outside a game session. - The capture binary is signed. Its source is open in the step-2 framework, so adopters can verify what it records. - Anti-cheat interplay: global input hooks, overlays and gaze/camera capture can trip anti-cheat in other games (Vanguard, FACEIT, EAC, BattlEye). In third-party games, use only sanctioned channels: Overwolf's approved APIs and the game's own demo files (D24). Never hook a protected process. S28 must list each anti-cheat's policy. - Data handling: - raw streams stay on the device; - derived metrics are shared only on opt-in; - storage is encrypted at rest; - retention limits are set by the player and deletion is immediate; - no raw biometric is ever used to identify a player across accounts. - Feature toggles manage this for now (Andrew). Use Microsoft.FeatureManagement (C#). There are two separate layers, and both must be on for a stream to run: 1. Operator/adopter flags. Set in config at build or deploy time, one per capability: - Capture.Keyboard, Capture.Mouse, Capture.Gaze.Tobii, Capture.Gaze.Webcam, Capture.HandCam; - Integrations.Overwolf, Integrations.Obs, Integrations.Twitch; - Ai.Byo, Ai.Local, Ai.Hosted; - Sync.Cloud.

   All default **off**, except the in-game keyboard and mouse capture our own Stride games need. An adopter can switch off or strip whole modules.
2. **Player consent toggles.** Runtime, one per source, each recorded with a timestamp and revocable. A flag being on never counts as consent; it only makes the consent prompt available.
- **Flags fail closed:** a missing, unreadable or unknown flag means off.
- **Contract-test every gate** (standing rule, from WING-305): pin each flag/consent read to a verbatim payload from the real config provider, and assert the wrong shape stays off. A wrong field path here would silently switch capture *on* or *off*. Both directions are bugs; *on* is a privacy incident.
- `Ai.Hosted` and `Sync.Cloud` stay hard-off until step 3 passes its gate.
- **Toggles also cover licence status (Andrew).** Every module and importer carries a `LicenceClass` tag in its flag metadata:
  - **Licensed:** our own code, or a dependency whose licence permits our use.
  - **Gray:** importers and parsers for third-party formats with no published spec. Examples: KovaaK's/Aim Lab/AimBeast content (D23), other games' demo formats (D24), community-derived data, anything whose ToS is unclear.
  - **Official replacement:** the sanctioned path for the same capability, such as an official API or export, a vendor SDK under its terms, or our own clean-room format.
- **Build profiles:**
  - `internal` lets Gray modules run, consistent with the current internal-use posture.
  - `distribution`, which covers D28 step 2 and the cloud, forces every Gray flag off at build time, not just at config time.
  - In `distribution`, each Gray capability either maps to its Official replacement or is dropped, and the build report lists which.
- The licence registry (a single table: module → class → replacement → evidence link) is the source of truth.
  - CI fails a `distribution` build if any shipped module is Gray or untagged.
  - The registry is how the D28 step-2 licence gate is actually enforced.
  • Gate: the capture companion, the D26 integrations and any cloud ingestion are security-sensitive under FLT-176. They need a threat model and the security seats (Gronktayvius red team, or the Susie stand-in), with Cedric adjudicating, before they ship.

D27 Model-agnostic AI layer for coaching and scenario generation (Andrew, 2026-11-21): OPEN. - "If this was ever used by someone else it could be designed to work with their models or an open model, since most gamers have some sort of GPU, and we could maximize it with FreeToken." And: "if we have an open model hooked up to a GPU to power this for others it could be viable at any cost." - One provider interface. It's C#, using Microsoft.Extensions.AI IChatClient / embedding abstractions. Every AI feature (moment flagging, coaching text, scenario-gen parameters, build comparison summaries) calls the interface, never a vendor SDK directly. There are three backends: 1. Bring your own model: the player's own API key or provider. The key is stored in the OS credential store and never sent to us. 2. Local open model on the player's GPU through FreeToken (~/source/repos/FreeToken, OpenAI/Anthropic-compatible API; runs MoE models on RTX 30/40/50). 3. Our hosted open model on our own GPU(s), for players with weak hardware. This is a long-term cloud product goal, not near-term (Andrew). - It is a later product phase. - It goes through IaC (CDK Terrain C#), cost and abuse controls, and the venture-evidence test above. - Until then only backends 1 and 2 ship. The interface keeps the slot open, so nothing needs rework later. - Frame budget rule: local inference never runs during a match. Analysis runs after the session or between rounds, so it doesn't compete with the game for the GPU. The deterministic sim and replay capture don't depend on any model. - Quality floor: every AI feature must also work in a degraded, rules-only mode (heuristic flagging, template coaching). No feature needs a frontier model. - Venture evidence: "viable at any cost" is an assumption to test, not a fact. Measure: - cost per analyzed session on each backend; - flagging and coaching quality of open models vs a frontier baseline, on a fixed labelled replay set; - local-inference wall time on a mid-tier GPU (RTX 3060 class).

Persevere or iterate based on those thresholds, set before the test runs. - Our own development: the same interface lets us run all of this today on our fleet's local models (gaming PC and streaming PC councils, FreeToken), with no paid API needed.

  • Privacy, a hard rule: D28's data-handling and two-layer consent rules govern. D28 is the single biometric policy and covers keystrokes, mouse dynamics, gaze and camera, and raw streams never leave the device. In summary, camera and gaze data is biometric and sensitive. It needs:
  • explicit opt-in per source;
  • local processing only: raw streams never leave the device, and derived metrics leave it only on opt-in;
  • deletion controls;
  • D17 security controls and a threat-model entry.
  • No sources are on by default.

D16 Movement/netcode reference sources (Andrew, 2026-11-21): learn from all of them, clean-room only. The same process applies to every source: 1. A spec agent reads the source (outside our repo) and writes mechanics, formulas, constants and timings into docs/architecture/specs/<mechanic>.md. The spec contains no code and cites which source and file it came from. 2. A different implementer writes fresh C# from the spec alone. 3. CI runs a similarity scan of our code against every reference source. A match above threshold fails CI.

Reference repos are never cloned into, vendored in, or submoduled into our repo.

Source Licence Use for
Quake III Arena (id, GPL-2.0): code/game/bg_pmove.c, bg_slidemove.c, code/cgame/cg_predict.c GPL-2.0 Friction/accelerate/air-move (strafe-jump, bhop), slide/step, usercmd replay + error decay. Primary movement reference.
Quake 4: openQ4 (themuffinator), gbQuake4 (atsb), Reddragoon244/Quake-4-Source-Code Engines are GPL-3.0 (id Tech 4 lineage). Game code src/game/mpgame is the Raven Q4 SDK, under the SDK EULA. The Reddragoon244 copy has no README or licence Spec extraction from the SDK player physics (crouch-slide, air control, friction, jump) + idTech4 prediction. openQ4 is the best-documented copy to read
Warfork (TeamForbiddenLLC/warfork-qfusion, fork of Qfusion; Warsow lineage) GPL-2.0-or-later (README; assets licensed separately) Spec extraction: dash, wall-jump, crouch-slide, ramp-slide, air control, prediction. Closest living relative of Reflex-style movement
Xonotic (gitlab.com/xonotic; Nexuiz fork on DarkPlaces; game code in xonotic-data.pk3dir/qcsrc/, path unconfirmed) GPL-3.0-only (COPYING) Spec extraction: switchable physics profiles (Quake/CPMA/Warsow-style cfgs) are the closest existing model of our GameProfile emulation (D11); also dodge, wall-jump, jetpack, grappling hook
Red Eclipse (github.com/redeclipse, base repo, Tesseract/Cube 2 lineage) Code: "ZLIB-based Red Eclipse license"; content mostly CC BY-SA 4.0 (org README; full terms at redeclipse.net/docs/License, not yet read) Spec extraction: parkour (wall-run, wall-kick, impulse boost/dash, slide, vault) and impulse-meter design. Permissive code licence, so the lowest-risk parkour reference
INKWAVE (jaydendavisnc/inkwave, deleted from GitHub; full history recovered from Software Heritage swh:1:rev:19c62df…; mirrored at J:\reference-archive\inkwave-swh) MIT (Copyright 2026 Jayden Davis) Paint Territory: ink painting, swim-in-ink, turf scoring, online multiplayer (server/). MIT means code may be reused with attribution, not just specs
mod-playerbots (AzerothCore WoW module, actively maintained) GPL-2.0 (LICENSE) Bot AI, not movement: the Strategy → Trigger → Action → Value context engine (src/Ai/Base), roles (tank/heal/dps), group tactics, PvP/battleground bots. Spec extraction for aim-trainer PvP opponents, co-op teammate fill (RRR/Maniac) and Paint Territory lane bots
TF2 SDK / Source SDK 2013 (Valve, 2025-02-18) Non-commercial SDK Source air-strafe, rocket jump, lag compensation
UT4 fork (JimmieKJ/unrealTournament) UE EULA, UT-submissions only Dodge, wall-dodge, slide constants
Tribes: Aerial Assault (Source2Spy) Leaked. The repo notice names Hi-Rez, but the IP moved via a Hi-Rez subsidiary to Prophecy Games in 2019-20 (Tribes 3: Rivals, 2024). The 2015 freeware release covered the game, not the source Spec extraction: skiing (slope friction, speed retention), jetpack (energy, thrust, regen), plus public community physics docs to cross-check
GunZ: The Duel: OpenGunZ (TriForceX, fork of RefinedGunz) No licence; lineage likely the leaked MAIET source (unverified) Spec extraction: K-style movement (wall-run, wall-jump, butterfly, tumble/flip, dash, cancel windows), cross-checked against gameplay footage. GunZ is S4 League's contemporary, so it sits with S4 in the movement set.
Heroes of Newerth / K2: shawwn/noh (ex-S2 dev) README: "MIT licensed, to the extent that I'm authorized to do so. Which is to say, not at all." Spec extraction: MOBA systems for Paint Territory (creep/lane AI, ability/state system, last-hit/deny, towers, items, replication approach)

D3 Simulation contract (R2: numbers filled in; a written docs/architecture/sim-contract.md is Phase 2a step 1's deliverable):

Clock and commands: - One fixed sim clock: 128 Hz for the aim trainer and duels, 64 Hz for team games. - Render is decoupled and interpolates. - A command is {tick, seq, inputDelta, buttons}. The server acks the highest contiguous seq it has applied. - Clock mapping: the client estimates serverTick = localTick + offset, using an RTT/2 EWMA that is re-synced every second.

Gameplay state and replay: - Gameplay state includes health, ammo, cooldowns and attributes. All of it is restored at tick N and replayed deterministically. - Health and damage live inside replay. - Only presentation and outbound notifications live outside replay: sounds, VFX, kill-feed, rewards, analytics. These are emitted once, keyed by a stable event id (entityId, tick, seq, kind).

History and rewind: - Unacked-command history has a hard cap of 1 s (128 cmds). On overflow: a full authoritative snapshot resync, plus a logged desync. - Hit rewind is capped at 200 ms. - Extrapolation is capped at 40 ms. - Interpolation delay is 2 ticks + jitter buffer.

Authority: - Clients send intent. The server validates cost, cooldown and range, and derives effects. - Dedup window: 2 s by (clientId, seq). - Stale commands (older than the history cap) are rejected. Rejections are reconciled by the next snapshot.

Bepu rollback boundary: - Player movement is a kinematic character controller (clean-room Q3/Source pmove). It sweeps and queries static Bepu colliders and never mutates dynamic solver state. - Rollback restores only our movement and gameplay state. - Dynamic Bepu bodies (targets, props) are server-authoritative, not predicted. Clients interpolate them.

D5 Input normalization (R2: units fixed): - Every device emits LookDelta in radians of yaw/pitch per sim command: - mouse: counts × (cm/360 calibration); - gyro: deg/s integrated over the command's dt; - stick: rate curve × dt. - One gyro path per device: native SDL or JoyShockMapper. - Detection: when a JSM virtual mouse and a native gyro are both active on one controller session, native is disabled and the conflict is logged. - The in-engine accel curve is primary on all OSes. RawAccel/AimStation is an optional export. - GamepadMotionHelpers is ported to pure C# (Andrew's C#-first language policy). This replaces the older "thin wrapper" line in the reuse table. - Proof: the same recorded raw IMU trace is fed through native and C#; output gravity/orientation must match within 0.1°. - Frame-rate independence: the same trace gives the same final yaw/pitch within 1e-4 rad at 60/144/240 fps.

D17 Security controls (R2, from SecurityThreatVeto). Each one is a blocking CI test:

Boundary Control Blocking test
Profile/scenario YAML [DataContract] types with an allowlisted schema: unknown tags/types rejected, numeric ranges clamped by validation, file size cap 256 KB Hostile fixtures (unknown !!type tag, NaN/1e308, 10 MB file) must be rejected
Asset export paths Outputs canonicalized and confined under the export root; .., absolute paths and symlinks are denied. The manifest hash is re-verified at import time Traversal and symlink fixtures fail; a tampered file fails import
Dev MCP bridge Code lives in a #if DEV_MCP assembly that is not referenced by the Release config. A runtime kill switch is off by default. Replay is quota-limited A Release build artifact is scanned and contains no MCP types or endpoints
Scenario/API credentials Tokens are read from ~/.fleet-secrets/ (Andrew creates them) and never logged. Logs pass a secret-pattern scrubber A secret-pattern scan over logs and the repo fails CI on a hit
Network intent Server-only validation (D3). The dedup window gives once-only effects A net fuzz test (replayed, reordered, stale and forged commands) must not bypass cooldown or duplicate damage
Dependencies packages.lock.json + RestoreLockedMode; no floating versions; restore runs from the lock only A mismatched hash fails restore
Evidence/manifest in git The manifest holds hashes, ids and licence notes only (no account data). Screenshots are game-only captures. Evidence writes are verified, and a failed write fails the gate A write-failure injection fails the gate

D17b Security hardening (R3, SecurityThreatVeto round 2). All blocking in CI:

Boundary Added control Blocking test
YAML parsing Parse runs with a 2 s timeout and a node-count cap (10k). Every float is checked IsFinite and range-clamped before use; NaN/Inf rejects the whole file Fuzz corpus (deep nesting, alias bombs, NaN/Inf, huge numbers) checked into Source/Tests/Fixtures/hostile-yaml/; every case is rejected within budget
Import TOCTOU Canonicalize under root → open with no-follow (FileOptions + reparse-point check) → hash the same open handle → copy from that handle. Validation and use share one handle A symlink swap between validate and import is rejected (race test with a forced swap)
Dev bridge in Release Build-graph check: dotnet list reference + the assembly-reference scan over the Release output must show no DevMcp assembly, directly or transitively. The kill switch is default-deny: any config read error means disabled Graph scan red on an injected Release reference; corrupt config gives bridge-off (test)
Token files ~/.fleet-secrets/* must be owner-only (ACL check on Windows, 0600 on Unix); the loader refuses anything else. Logging uses an allowlist of fields (structured logging, no free-form request/response bodies) A world-readable token makes the loader refuse; a log-field test asserts no non-allowlisted field is emitted
Network identity Connect handshake issues a per-session HMAC key; every command is signed with it. Per-client rate limit (commands/s ≤ 2 × tick rate). The client clock offset is server-estimated and the client's claim is never trusted. Hit rewind is clamped to min(200 ms, measured RTT/2 + 1 tick). Anomalies (bad MAC, rate exceed, rewind clamp) are logged Fuzz suite + unsigned/forged-MAC commands are dropped; a rate-flood is throttled; a lying client clock does not extend rewind
Supply chain Lockfile + NuGet signature verification (trustedSigners in nuget.config); native libs (SDL, Assimp) are pinned by SHA-256 in a manifest and verified at build An unsigned or mismatched package fails restore; a tampered native lib fails the build
Scenario download Claim the job id in the manifest (claimed state) → fetch to temp → fsync → hash → atomic rename → mark imported. On startup, sweep claimed jobs: remote lookup, then resume or clean temp Crash injection at each state boundary leaves no duplicate remote job and no partial asset

D17c Security hardening (R4, SecurityThreatVeto round 3). Applied: - YAML: alias count ≤ 16 and depth ≤ 32, enforced before expansion. On reject, the whole file is rejected with no fallback to defaults (fail-closed; the game refuses to load the profile). The schema is versioned; an unknown tag or version fails CI. - Dev bridge: excluded from the Release publish profile (not just unreferenced). Enabling it in a dev build writes an audit line. - Scenario submit: sends a client idempotency key (sha256(prompt+model+seed)) if the API supports one (verify). The claimed ledger + startup sweep exist from the first call, not later. CI mock: a second submit with the same key is a failure. - Network: the handshake carries a server nonce. The session key is bound to that nonce and rotated every 10 min. Rewind is clamped by server-measured RTT only. A per-client command cost budget (CPU and bytes per second) sits next to the rate cap; an exhaustion test fails CI. - Clean-room provenance (D16): movement/netcode code derived from reference specs goes through a code-similarity scan (e.g. ScanCode/JPlag) against every D16 reference source. A match above threshold fails CI. The spec is reviewed before code is written. - Manifest: imports re-verify hashes on the target OS with the same handle (D17b).

Residual: DEFERRED to the code-stage security gates (Andrew, 2026-11-21). Each one is re-evaluated by the security seats when Phase 2a first exercises that boundary: - OS-vault short-lived tokens instead of ~/.fleet-secrets/; - signed attestation of the Release output; - a signed asset manifest; - an entitlement check before import.

D18 Scenario OS, simplified for Phase 3 (R2, ZoomOut + DesignCritic): no worker daemon or queue yet. - An agent calls the Scenario MCP once, then records the provider job id in the manifest before downloading. - A retry first looks up the job id remotely and only resubmits if the job is unknown. - Import is atomic: the download goes to a temp dir, then a rename. - An automated ledger/worker only comes when volume demands it.

D19 Netcode decoupled from the single-player aim trainer (R2, ZoomOut). Phase 2a builds the local sim (contract + input + movement + hitscan) with restore-and-replay already working. That is netcode-ready by construction. Phase 2b adds the networked duel. The aim trainer MVP (Phase 3) depends only on 2a. The aim trainer's PvP mode depends on 2b.

D20 One gate-adapter inventory (R2, resolves the D9 vs reuse-table conflict): - Existing Forge rule pack: build, test, mutation, SAST, council. - New Stride adapters: 1. stride-build (Stride asset compile + dotnet build); 2. replay-determinism (covers physics + netcode); 3. screenshot-evidence; 4. input-latency. This one is measure-only until a baseline exists, then it becomes a gate. - Each adapter ships with an injected-failure test that must turn it red. - Adapters land with the phase that first exercises them.

D21 Glossary and locations (R2, NaiveReader):

Name Where
Repo github.com/andrewjonesdev/Claude-Code-Game-Studios (this repo); local checkout ~/source/repos/Claude-Code-Game-Studios
CCGS Claude Code Game Studios: this repo's agent/skill/hook harness (.claude/, CLAUDE.md, project.yaml)
Engine row The per-engine rows in .claude/docs/directory-structure.md + the /setup-engine skill (.claude/skills/setup-engine/, references/5.5-project-yaml.md)
Forge The fleet CI/gate system (FLT-313); Game pack plan in docs/architecture/ (FLT-358)
council-seat ~/source/repos/usage-governor/publish/council-seat.exe
fleet-dispatch Fleet skill that runs jobs on other PCs; the gaming PC is DESKTOP-D249KD4
Scenario OS Scenario (scenario.com) AI asset generation: MCP at mcp.scenario.com + REST API
GMC / GMAS / NarrativeGMC UE movement / ability / bridge plugins whose designs are ported; sources in ~/source/repos/NarrativeGMC and RogueRoyale/Plugins/GMCAbilitySystem
RRR Rogue Royale Reloaded; GDDs in design/gdd/ (game-concept.md, systems-index.md)
Owners Clahadore (orchestration/review), Cedric/Jenny/Susie (implementation, review), Andrew (approvals, credentials)

1. Vision

A pure C# game development harness built on Stride Engine 4.4 (.NET 10), merging Claude Code Game Studios' 51-agent coordination architecture with Forge's CI/gate pipeline. The framework ports the GMCv2 + GMAS + NarrativeGMC feature set from Unreal C++ to idiomatic C#, adds Reflex Arena-inspired competitive netcode, and integrates AI asset generation (Scenario Labs) and precision input tools (AimStation/RawAccel, JoyShockMapper).

Four game projects validate every layer of the framework. All share arena FPS-grade aim mechanics and advanced movement systems drawn from Titanfall 2, Quake 3/4, Reflex Arena, Unreal Tournament, and S4 League. Every game supports both mouse+keyboard and controller+gyro with full movement/aim parity.


2. Technology Stack

Layer Choice Rationale
Engine Stride 4.4 Pure C# 14 / .NET 10, MIT, YAML scenes, BepuPhysics v2, zero royalties
Physics BepuPhysics v2 (built-in) Deterministic-capable, pure C#, fast — enables rollback/replay
Networking LiteNetLib Pure C# UDP, reliable/unreliable channels, MIT
3D Assets Scenario Labs MCP + Blender AI-generated PBR models/materials/skyboxes via MCP
Input: Mouse AimStation / RawAccel driver Sub-microsecond driver-level acceleration curves
Input: Gyro JoyShockMapper / SDL2 DS4/DualSense/Switch Pro gyro → virtual mouse, MIT
Build dotnet build / dotnet test Standard .NET toolchain, CI-friendly
MCP Custom C# (ModelContextProtocol NuGet SDK) Live entity inspect, screenshot, input injection
IDE Stride Game Studio + VS/Rider YAML scenes editable by agents without the editor

3. Framework Architecture

3.1 Movement System (porting GMCExtended)

The GMC movement chain becomes a Stride SyncScript hierarchy. BepuPhysics provides the simulation; the movement system drives it.

CoreMovementComponent : SyncScript
├── SharedVariable<T>           — replicated state container (generic)
├── MovementSample              — prediction history record
├── IMovementSolver             — pluggable movement solver interface
│   ├── GroundSolver
│   ├── AirSolver
│   ├── WaterSolver
│   └── CustomSolver (user-defined)
└── MovementSampleHistory       — ring buffer for prediction/replay

OrganicMovementComponent : CoreMovementComponent
├── SpeedMark                   — named speed thresholds
├── TurnInPlaceState            — rotation state machine
├── OrganicVelocitySmoothing    — velocity blend curves
└── StrafingModel               — directional movement blend

ArenaMovementComponent : OrganicMovementComponent
├── StrafeJump                  — Quake 3/4 strafe jumping (air acceleration exploit preserved)
├── BunnyHop                    — Reflex/Quake continuous speed gain from jump timing
├── CrouchSlide                 — Quake 4 / Titanfall 2 slide on crouch-while-sprinting
├── WallRun                     — Titanfall 2 / S4 League wallrun (timed, gravity pull)
├── WallJump                    — S4 League / GunZ wall-kick into air control
├── Ski / Jetpack               — Tribes frictionless slope ski + energy thrust
├── CancelWindows               — GunZ K-style animation-cancel timing (data)
├── DodgeMove                   — UT dodge (double-tap direction / dedicated bind)
├── GrappleSwing                — Titanfall 2 grapple (physics rope, momentum transfer)
├── RocketJump                  — Quake 3 self-damage impulse (ability-driven)
├── ImpactJump                  — UT impact hammer / Reflex stake jump
├── CoverState                  — cover system state
├── SprintState                 — sprint/stamina integration
├── ClimbState                  — mantling/climbing
└── RagdollState                — physics-driven ragdoll

MotionWarpComponent : SyncScript
├── MotionWarpTarget            — warp destination data
├── MotionWarpWindow            — active warp timing
├── RootMotionModifier          — base class
│   ├── WarpModifier
│   ├── ScaleModifier
│   └── SkewWarpModifier
└── MotionWarpUtilities         — static helpers

Movement inspiration sources and what we take from each:

Game Mechanic Implementation
Quake 3 Strafe jumping, rocket jumping, air control Air acceleration formula preserving speed gain from correct strafing angle; self-damage impulse ability
Quake 4 Crouch slide, strafe jump Slide triggered by crouch-while-sprinting; momentum conservation through slide → jump chain
Reflex Arena Bunnyhopping, stake jump, air control Frame-perfect ground→air speed preservation; dedicated stake-jump ability; tight air strafe
Titanfall 2 Wallrunning, slidehop, grapple Timed wallrun with gravity pull; slide→jump chains; grapple as physics rope with momentum transfer
Unreal Tournament Dodge, impact hammer jump Double-tap dodge (also bindable); impact-hammer vertical launch ability
S4 League Wallrun, dodge, melee dash Wallrun with wall-kick into free air control; rapid direction change dodge; melee-driven dash
GunZ: The Duel (S4 contemporary) K-style: wall-run, wall-jump, butterfly, tumble/flip, dash, animation cancels Melee/gun cancel windows as ability-timing data; tumble/dash as DodgeMove variants; wall-jump chains. Clean-room from public footage and docs only (D16)
Tribes Skiing, jetpack Frictionless ski state on slopes + jetpack energy thrust. From public community physics docs only (D16)

Arena FPS aim mechanics (shared across ALL games): - Hitscan with sub-tick accuracy (interpolated fire time within server tick) - Projectile weapons with deterministic physics (BepuPhysics) - Recoil patterns (learnable, not random spread) - AimStation curve-aware sensitivity scaling (per-weapon, per-scope) - Input-parity: gyro aim matches mouse aim 1:1 in capability (sensitivity conversion, same acceleration curves)

Key differences from UE version: - No UActorComponent / USceneComponent — Stride SyncScript attaches to entities - No UPROPERTY reflection — standard C# properties with [DataMember] serialization - No UFUNCTION(BlueprintNativeEvent) — C# virtual methods with override - BepuPhysics replaces UE's Chaos physics — deterministic by design - Movement samples stored as C# records for immutability and structural equality

3.2 Ability System (porting GMAS)

GMAS maps cleanly to C# because it was already a clean UObject-based system (not GAS). The prediction queue becomes a generic operation log.

AbilitySystemComponent : SyncScript
├── GrantedAbilities            — Dictionary<GameplayTag, GameAbility>
├── ActiveEffects               — List<ActiveGameEffect>
├── AttributeSets               — List<AttributeSet>
├── ActiveTags                  — GameplayTagContainer
├── SynchronizedTags            — GameplayTagContainer (replicated)
├── CooldownTracker             — Dictionary<GameplayTag, float>
├── PredictionQueue             — porting FGMASBoundQueueV2
│   └── QueueOperation          — base class
│       ├── ActivateAbilityOp
│       ├── ApplyEffectOp
│       ├── ModifyAttributeOp
│       ├── AddTagOp / RemoveTagOp
│       ├── SetCooldownOp
│       └── ... (13 operation types from BoundQueueV2_Operations)
├── TryActivateAbility(tag)
├── TryActivateByInputTag(tag)
├── QueueAbility(ability)
├── ApplyEffect(effect)
└── Networking
    ├── RequestEffectSnapshot()
    ├── ReceiveEffectSnapshot()
    └── RestoreFromSnapshot()

GameAbility (abstract class)
├── AbilityTag                  — GameplayTag
├── InputTag                    — GameplayTag
├── ActivationRequiredTags      — GameplayTagContainer
├── ActivationBlockedTags       — GameplayTagContainer
├── CancelAbilitiesWithTag      — GameplayTagContainer
├── CooldownDuration            — float
├── Lifecycle:
│   ├── virtual CanActivate()   — pre-execution check
│   ├── virtual OnBegin()
│   ├── virtual OnTick(dt)
│   ├── virtual OnAncillaryTick(dt)
│   ├── virtual OnEnd()
│   └── virtual OnCancel()
├── AbilityTasks:
│   ├── AbilityTask (base)
│   ├── WaitDelayTask
│   ├── WaitForTagChangeTask
│   ├── WaitForInputTask
│   ├── RotateTowardTask
│   └── SetTargetDataTask<T>
└── State: EAbilityState (Idle, Active, Ending, Cooldown)

GameEffect (abstract class)
├── EffectType                  — Instant | Ticking | Persistent | Periodic
├── PeriodicInterval            — float
├── Modifiers                   — List<AttributeModifier>
├── Conditions                  — List<ModifierCondition>
├── virtual OnApply()
├── virtual OnRemove()
├── virtual OnTick(dt)
└── virtual CalculateModifier() — custom calculation

AttributeSet
├── Attributes                  — List<GameAttribute>
├── AddAttribute(tag, baseValue)
├── GetAttribute(tag)
└── OnAttributeChanged event

GameAttribute
├── Tag                         — GameplayTag
├── BaseValue                   — float
├── Modifiers                   — List<AttributeModifier>
├── Clamp                       — AttributeClamp (min/max tags)
├── CalculateValue()            — applies all modifiers
├── AddModifier(mod)
└── RemoveModifier(handle)

AttributeModifier
├── Type                        — Add | Multiply | Override | Custom
├── Magnitude                   — float
├── Condition                   — ModifierCondition?
├── Duration                    — float? (temporal)
├── CustomCalculator            — IModifierCalculator?
└── Handle                      — int (for removal)

GameplayTag System (C# implementation):

// Hierarchical tag system: "Ability.Combat.Melee.Slash"
public readonly record struct GameplayTag(string Value)
{
    public bool MatchesTag(GameplayTag other) => ...;      // exact or parent
    public bool MatchesTagExact(GameplayTag other) => ...;
}

public class GameplayTagContainer : IEnumerable<GameplayTag>
{
    public bool HasTag(GameplayTag tag) => ...;
    public bool HasAny(GameplayTagContainer other) => ...;
    public bool HasAll(GameplayTagContainer other) => ...;
    public void AddTag(GameplayTag tag);
    public void RemoveTag(GameplayTag tag);
}

3.3 Concrete Abilities (porting NarrativeGMC)

All 10 abilities port as C# classes:

UE C++ Class Stride C# Class Key Behavior
NGMC_JumpAbility JumpAbility Ground check → apply impulse, hold for variable height
NGMC_SprintAbility SprintAbility Stamina drain, speed multiplier, cancel on input release
NGMC_CrouchAbility CrouchAbility Capsule resize, speed reduction, toggle/hold
NGMC_DodgeAbility DodgeAbility Directional dash, i-frames via tag, cooldown
NGMC_HitscanAbility HitscanAbility Raycast → damage effect, spread, recoil integration
NGMC_ReloadAbility ReloadAbility Magazine state, animation sync, cancel window
NGMC_WeaponAimAbility WeaponAimAbility FOV zoom, sensitivity scale, AimStation curve awareness
NGMC_MeleeBlockAbility MeleeBlockAbility Block state, damage reduction modifier, stamina cost
NGMC_ToggleHolsterAbility ToggleHolsterAbility Weapon visibility, disables fire abilities
NGMC_DeathAbility DeathAbility Ragdoll trigger, disable input, respawn timer

3.4 Effects (porting NarrativeGMC)

UE C++ Class Stride C# Class Type
UNarrativeGMCDamageEffect DamageEffect Instant — reduce Health attribute
UNarrativeGMCHealEffect HealEffect Instant or Ticking — increase Health
UNarrativeGMCStaminaRegenEffect StaminaRegenEffect Persistent — regenerate Stamina over time

3.5 Narrative System (porting NarrativePro concepts)

NarrativePro is closed-source UE, so we build equivalent systems in C#:

QuestSystem : SyncScript              — data-driven quests (YAML definitions)
├── Quest                             — quest definition + state
├── QuestObjective                    — individual objectives
├── QuestCondition                    — completion conditions
└── QuestReward                       — rewards on completion

DialogueSystem : SyncScript           — branching dialogue
├── DialogueTree                      — conversation graph
├── DialogueNode                      — individual lines/choices
├── DialogueCondition                 — gate on tags/attributes
└── DialogueSpeaker                   — character data

InventoryComponent : SyncScript       — item storage
├── InventorySlot                     — slot with item + count
├── ItemDefinition                    — data asset
└── InventoryConstraint               — weight, size, type limits

EquipmentComponent : SyncScript       — equipped items
├── EquipmentSlot                     — named slot (weapon, armor, etc.)
├── EquipmentDefinition               — equippable item data
└── StatModifiers                     — attribute effects from equipment

InteractionComponent : SyncScript     — world interaction
├── InteractionTarget                 — interactable marker
├── InteractionPrompt                 — UI prompt data
└── InteractionAction                 — what happens on interact

3.6 Framework Classes (porting NarrativeGMC bridge)

GamePawn : SyncScript
├── AbilitySystemComponent
├── GameMovementComponent
├── InventoryComponent
├── EquipmentComponent
├── InteractionComponent
├── ITeamAgent                        — faction/team interface
├── IImpactReceiver                   — damage/effect interface
└── ICharacterOwner                   — narrative ownership

PlayerPawn : GamePawn
├── InputComponent                    — enhanced input routing
├── CameraComponent                   — FPS/TPS camera
└── PlayerHUD                         — UI bindings

NpcPawn : GamePawn
├── AIController                      — behavior tree / state machine
├── PerceptionComponent               — sight, hearing, damage
└── PatrolData                        — movement waypoints

GamePlayerController : SyncScript
├── InputRouting                      — ability input → AbilitySystemComponent
├── QuestSystem (TalesComponent equiv)
└── ICharacterOwner

GamePlayerState : SyncScript
├── TeamData                          — faction, team ID
├── ScoreData                         — kills, deaths, objectives
└── ReplicatedTags                    — synchronized gameplay tags

GameModeManager : SyncScript
├── MatchState                        — lobby, playing, ended
├── SpawnRules                        — spawn points, respawn timers
├── ScoreRules                        — win conditions
└── RoundManager                      — round lifecycle

4. Netcode Architecture

4.1 Design Goals (Reflex Arena-inspired + GMC prediction)

  • Sub-frame input latency — raw input processed before physics tick
  • Server-authoritative — server is truth, clients predict
  • Client prediction with replay — GMC's BoundQueue model in C#
  • Backwards reconciliation — Reflex's lag compensation (rewind hit detection)
  • Extrapolation cap — 40ms max (Reflex model), based on half-ping
  • Deterministic physics — BepuPhysics enables exact replay
  • Tick rate — 128 Hz server, 128 Hz client (aim trainer); 64 Hz (team games)

4.2 Architecture

NetworkManager : SyncScript
├── Transport (LiteNetLib)
│   ├── ReliableChannel               — state sync, RPCs
│   ├── UnreliableChannel             — movement, input
│   └── SequencedChannel              — ordered unreliable
├── ClientPrediction
│   ├── InputBuffer                   — timestamped input ring buffer
│   ├── PredictionHistory             — movement sample history
│   ├── Reconcile(serverState)        — compare, replay if mismatch
│   └── MaxPredictionMs = 40          — Reflex-style cap
├── ServerSimulation
│   ├── AuthoritativeState            — ground truth
│   ├── BackwardsReconciliation       — rewind for hit detection
│   │   ├── RewindWindow = halfPing   — Reflex model
│   │   ├── MaxRewindMs = 40          — cap
│   │   └── PositionHistory           — per-entity position log
│   └── AntiCheat
│       ├── InputValidation           — rate, magnitude checks
│       ├── PositionValidation        — speed, teleport checks
│       └── ScoreValidation           — server-computed scores
├── Replication
│   ├── NetworkProperty<T>            — delta-compressed replicated value
│   ├── NetworkList<T>                — replicated collection
│   ├── EntityRelevancy               — distance-based, interest-based
│   └── SnapshotSystem                — full state snapshots for join/reconnect
└── AbilityNetworking
    ├── QueueReplication              — BoundQueue operations → server
    ├── EffectSnapshots               — periodic full effect state sync
    └── TagSynchronization            — tag add/remove RPCs

4.3 Paint Territory Replication (Splatoon/Deadlock hybrid)

The paint system is the unique networking challenge:

PaintSystem : SyncScript
├── PaintGrid                         — spatial grid (resolution per map)
│   ├── Cell                          — team ownership + coverage percentage
│   └── DirtyRegions                  — changed cells since last sync
├── PaintReplication
│   ├── DeltaCompression              — only send changed cells
│   ├── RegionBatching                — group nearby cells
│   ├── PriorityByVisibility          — prioritize cells near players
│   └── FullSyncOnJoin                — snapshot for new clients
├── PaintRenderer
│   ├── PaintTexture                  — runtime GPU texture
│   ├── Decal/Mesh projection         — paint onto world geometry
│   └── LOD                           — lower resolution at distance
└── TerritoryScoring
    ├── ControlPercentage             — per-team territory %
    ├── ContestZones                  — areas worth more
    └── ScoreTickRate                 — periodic score updates

5. Input Architecture

5.1 Design Principle: Full Input Parity

Every movement mechanic and aim mechanic must be executable with both mouse+keyboard AND controller+gyro. No mechanic is M&K-exclusive. Controller players get the same strafe-jumping, bunnyhopping, wallrunning, and slide chains that M&K players do — the input abstraction layer maps physical inputs to semantic actions, not to specific devices.

InputAction (semantic)              Physical Sources
─────────────────────              ─────────────────
MoveForward                        W key | Left stick Y+
MoveRight                          D key | Left stick X+
LookDelta (aim)                    Mouse delta | Gyro delta | Right stick
Jump                               Space | A/Cross button
Crouch                             Ctrl | B/Circle button
Dodge                              Double-tap dir | L3 click + stick dir
Sprint                             Shift hold | L3 click toggle
WallRun                            (auto on wall contact while airborne)
Grapple                            Ability bind | L1/LB
Fire                               Mouse1 | R2/RT
ADS                                Mouse2 | L2/LT

5.2 Input Pipeline

Physical Device
  │
  ├── Mouse → RawAccel Driver (AimStation curve) → Raw Input API
  ├── Gyro Controller → SDL2 native gyro read → GyroProcessor
  │   └── (OR) → JoyShockMapper → Virtual Mouse → Raw Input API
  ├── Gamepad Sticks → SDL2 / Stride Input → StickProcessor
  └── Keyboard → Raw Input API
  │
  ▼
InputAbstractionLayer : SyncScript
  ├── DeviceRouter                    — routes physical input to semantic actions
  ├── RawInputReader                  — high-precision mouse delta (Windows Raw Input)
  ├── GyroProcessor                   — native SDL2 gyro with sensor fusion
  │   ├── CalibrationData             — per-controller real-world calibration
  │   ├── GyroSpace                   — Local, PlayerTurn, WorldTurn modes
  │   └── FlickStick                  — right stick → instant 360° turn, gyro for fine aim
  ├── StickProcessor                  — analog stick with response curves
  │   ├── InnerDeadzone / OuterDeadzone
  │   ├── ResponseCurve               — linear, polynomial, custom
  │   └── AimAssist                   — optional per-game-profile (disabled in competitive)
  ├── SensitivityManager              — per-weapon, per-scope, per-device sensitivity
  │   ├── MouseSensitivity            — cm/360, AimStation curve-aware
  │   ├── GyroSensitivity             — degrees/second, real-world calibrated
  │   └── StickSensitivity            — with acceleration curve
  ├── InputBuffer                     — timestamped for netcode
  └── AbilityInputRouter              — semantic actions → GameplayTag → AbilitySystemComponent
  │
  ▼
Movement / Ability / Camera Systems (device-agnostic)

5.3 AimStation Integration

AimStation applies curves at driver level — engine reads already-processed mouse delta. - Sensitivity converter (cm/360 calculation) - Real-world calibration (matching across games, same as JoyShockMapper's model) - Per-scenario sensitivity profiles - Raw vs. processed input recording (for analytics) - Cross-platform: AimStation = Windows only. Mac/Linux: apply equivalent curves in-engine

5.4 JoyShockMapper / Native Gyro

Two paths for gyro support: 1. JoyShockMapper external — outputs virtual mouse, transparent to engine 2. SDL2 native (preferred) — read gyro data directly in C#, full control

For native gyro: - SDL2 C# bindings (SDL2-CS or similar) — read raw gyro/accelerometer - Port GamepadMotionHelpers to C# — sensor fusion, calibration - GYRO_SPACE modes: Local, PlayerTurn, WorldTurn - FlickStick: right stick for instant direction, gyro for fine aim - Per-controller calibration stored in player profile

5.5 Cross-Platform Input

Platform Mouse Keyboard Gyro Controllers Gamepad
Windows Raw Input API + AimStation driver Raw Input API SDL2 native + JoyShockMapper SDL2 / XInput
Linux evdev / SDL2 evdev / SDL2 SDL2 native SDL2
macOS IOKit / SDL2 IOKit / SDL2 SDL2 native SDL2 / GCController

AimStation (RawAccel driver) is Windows-only. On Mac/Linux, equivalent acceleration curves are applied in-engine via the SensitivityManager, with identical mathematical models so cross-platform feel is consistent.


6. Game Portfolio

6.1 Aim Trainer (KovaaK's clone, personal use)

Purpose: Validate input pipeline, analytics, Scenario Labs integration, game emulation profiles. Scope: Data-driven scenarios, rank system, radar charts, AimStation native, game emulation, PvP practice.

Systems exercised: - Input pipeline (latency is THE metric) - BepuPhysics (target spawning, hit detection) - Analytics engine (evxl.app-style: scenarios, categories, ranks, radar charts) - Scenario Labs (AI-generated training environments) - Netcode (leaderboard anti-cheat: server-validated scores) - Game emulation profiles (movement + shooting) - PvP practice mode

Key metrics from evxl.app model: - Categories: Clicking, Control/Tracking, Reactive Tracking, Switching, Flick, Micro - Ranks: Cinnabar → Vermillion → Saffron → Celadon → Viridian - Per-subcategory skill dimensions: arm, wrist, fingertip, blending, control, speed, reading, stability

Game Emulation System

The aim trainer emulates ground acceleration, movement styles, movement abilities, and weapon/shooting mechanics from popular FPS games so players can practice in the exact feel of each game:

GameProfile (data-driven YAML)
├── MovementProfile
│   ├── GroundAcceleration           — accel/decel curves (game-specific)
│   ├── AirControl                   — air acceleration factor + angle
│   ├── MaxGroundSpeed               — per game
│   ├── JumpHeight / JumpVelocity
│   ├── GravityScale
│   ├── StrafeJumpEnabled            — Quake-style speed gain
│   ├── BunnyHopEnabled              — speed preservation on land
│   ├── CrouchSlideEnabled           — Apex/Titanfall/Quake 4 style
│   ├── WallRunEnabled               — Titanfall/S4 League
│   └── CustomAbilities[]            — game-specific (grapple, blink, etc.)
├── ShootingProfile
│   ├── HitscanConfig                — damage falloff, spread pattern, fire rate
│   ├── ProjectileConfig             — speed, gravity, splash radius
│   ├── RecoilPattern                — pattern type (learnable/random), magnitude
│   ├── ADSSensitivityMultiplier
│   ├── WeaponSwapSpeed
│   └── ReloadCancel                 — yes/no, timing window
└── Metadata
    ├── GameName                     — "Valorant", "Overwatch 2", "Apex Legends", etc.
    ├── Version                      — game patch version this profile targets
    └── CommunityVerified            — boolean

Built-in profiles:
- Valorant (precise hitscan, no movement abilities, low air control)
- Overwatch 2 (hero-specific: Tracer blink, Genji dash, Lucio wallride)
- Apex Legends (slide, wallbounce, tap-strafe, projectile-heavy)
- Counter-Strike 2 (spray patterns, counter-strafing, no ADS)
- Fortnite (build mechanics simplified, bloom-style spread)
- Quake Champions (strafe jump, rocket jump, champion abilities)
- Titanfall 2 (wallrun, slide, grapple, projectile travel)
- Call of Duty (sprint-to-fire, slide cancel, ADS snap)
- Deadlock (MOBA-FPS hybrid, projectile-dominant)
- Our own games (Rogue Royale, PaintWar, ManiacFPS, native profile)

PvP Practice Mode

Multiplayer arena within the aim trainer itself: - 1v1 and FFA deathmatch with any GameProfile active - Both players must use same GameProfile - Server-authoritative with same netcode as main games - ELO-based matchmaking within each GameProfile - Replay system for analysis

6.2 Rogue Royale Reloaded (existing GDDs)

Purpose: Validate movement, abilities, narrative, full framework. Scope: Existing game-concept.md + systems-index.md, 32 systems, 8 heroes.

From game-concept.md: - 3D FPS roguelike / PvE battle royale - Shrinking arena, hero abilities, perk cards, enemy waves - 1-4 players co-op, 20-30 min runs - 21-weapon roster with fusion system - 8 initial heroes with signature weapons - 3 bottleneck systems: hero movement, FPS combat core, procedural arena

Systems exercised: - Full movement system (GMC equivalent) - Full ability system (GMAS equivalent) - Narrative system (quests, dialogue) - Netcode (4-player co-op prediction) - Procedural generation (arena, loot, enemies) - All 32 systems in systems-index.md

6.3 Paint Territory MOBA-FPS (Splatoon/Deadlock hybrid)

Purpose: Validate netcode at scale, territory replication, competitive balance. Scope: New concept — MOBA lanes + FPS combat + paint territory control.

Concept sketch: - Teams fight for map control by painting territory (Splatoon) - MOBA lane structure with creeps/objectives (Deadlock) - FPS combat with hero abilities - Territory percentage = resource generation = item/ability upgrades - Paint state replication is the technical challenge

Systems exercised: - Netcode at scale (10v10 or more, plus paint state) - Paint replication system (custom delta compression) - MOBA systems (lanes, creeps, towers, items) - Competitive matchmaking and ranking - Full movement + ability systems under heavy network load

6.4 Maniac FPS (Maniac Mansion roguelike in first person)

Purpose: Validate roguelike/survival-horror systems, procedural generation, AI. Scope: What Vampire Hunters did for Vampire Survivors — take the Maniac Mansion formula and make it a first-person experience.

Concept: - First-person roguelike in a procedurally generated mansion - Rooms/floors with escalating enemy waves and hazards (Maniac Mansion DNA) - Upgrade/power-up loop between rooms (Vampire Survivors progression model) - Arena FPS combat (same movement and aim systems as other games) - Multiple playable characters with different starting kits - Runs last 20-30 minutes, increasing chaos - Co-op 1-4 players

Systems exercised: - Procedural level generation (room-based, mansion layouts) - Enemy AI (behavior trees, spawning waves, difficulty scaling) - Roguelike meta-progression (unlocks, character upgrades) - Full movement + ability system (arena FPS grade) - Netcode (4-player co-op) - Horror/atmosphere systems (lighting, audio cues, environmental storytelling)


7. Platform Support

7.1 Stride Platform Matrix

Platform Game Deploy Editor (Stride Game Studio) Build (CLI)
Windows x64 Full Full (native) Full
Linux x64 Full Wine only (native rewrite in progress) Full
macOS (Intel + Apple Silicon) Supported (caveats) No Full (CLI build)
Android Supported (caveats) No Cross-compile from Win/Linux
iOS Supported (caveats) No Cross-compile from macOS
Linux ARM64 .NET 10 supports it; Stride untested No Should work (pure C#)

Stride is pure C# on .NET 10 — ARM64 runtime works wherever .NET 10 runs. The editor (Game Studio) is Windows-only but being rewritten cross-platform. All agents work via YAML scenes + CLI builds, so editor dependency is minimal.

7.2 Platform Strategy

Primary targets: Windows x64, Linux x64, macOS (Apple Silicon + Intel) Stretch targets: Linux ARM64, Android, iOS Not targeted: Consoles (Stride has no console pipeline; revisit if demand warrants)

Cross-platform plan: - Develop on Windows (full editor support) - CI builds for all primary targets (dotnet publish -r linux-x64, osx-arm64, etc.) - BepuPhysics determinism verified across x64 platforms (open question for ARM) - SDL2 provides cross-platform input (mouse, keyboard, gamepad, gyro) - AimStation (RawAccel driver) = Windows only; in-engine equivalent curves for Mac/Linux


8. Epic/Fab Asset Migration

8.1 Strategy

Audited 2026-11-21: 322 entitlements, 320 of them Unreal-only format. Triage (fab-library-triage.md) cuts this to ~95 keep, ~20 reference-only and ~205 drop: - Drop: code plugins we already use and are rewriting in C# (GMCv2, Narrative Pro, JSON/HTTP/WebUI), Blueprint-only systems, tutorials and off-genre packs (archviz, automotive, Twinmotion). - Port: characters, weapons, environments, foliage, textures, anims and audio, which is a shared asset base across all four games. - Export job: runs on the gaming PC (UE 5.8, glTF Exporter + Python batch) through fleet-dispatch.

8.2 Asset Portability Matrix

Asset Type Portable? Method Notes
3D Models (FBX) Yes Direct import Stride imports FBX natively via Assimp
3D Models (glTF/GLB) Yes Direct import Stride's preferred format
Textures (PNG/TGA/EXR) Yes Direct import PBR maps (albedo, normal, roughness, metallic)
Skeletal Meshes + Animations Yes FBX export → import Retarget to Stride skeleton
Sound Effects (WAV/OGG) Yes Direct import Stride audio system
Music (WAV/OGG) Yes Direct import —
UE Materials No Recreate UE material graphs → Stride shader/material
UE Blueprints No Rewrite in C# Logic ports to SyncScript
UE Niagara VFX No Recreate Stride particle system
UE Landscapes/Terrain Partial Heightmap export Heightmap portable, foliage placement data needs rework
UE Levels/Maps No Rebuild Layout reference only; rebuild in Stride scenes

8.3 Pipeline

Epic/Fab Download → UE Project (read-only reference)
  │
  ├── FBX/glTF models → Batch convert → Stride Content/
  ├── Textures → Direct copy → Stride Content/
  ├── Animations → FBX export → Retarget → Stride Content/
  ├── Audio → Direct copy → Stride Content/
  └── Materials/VFX/Logic → Manual recreation (agent-assisted)
      └── Scenario Labs can generate replacement materials/textures

8.4 Licensing Note

Licensing is recorded as notes, not a gate (Andrew, 2026-11-21: internal-use tooling). Each ported asset carries source + licence tags: - [S] Fab Standard, third-party. - [EP] Epic/Twinmotion-authored: noted as "replace before ship" if a game is ever released. - UEFN reference-only: dropped.

Scenario OS can regenerate [EP] stand-ins when that matters.


9. Harness Architecture

9.1 Agent Definitions

The 51 agents transfer with engine-specific swaps:

Current (UE) Stride Equivalent Notes
unreal-specialist stride-specialist Stride APIs, node/scene architecture, SyncScript patterns
ue-csharp-specialist (merged into stride-specialist) Stride IS C# — no boundary
ue-gmc-specialist stride-movement-specialist Movement framework, BepuPhysics, netcode
ue-blueprint-specialist (removed) No blueprints in Stride
ue-replication-specialist stride-netcode-specialist LiteNetLib, prediction, reconciliation
ue-umg-specialist stride-ui-specialist Stride UI system
ue-gas-specialist (already removed) GMAS, not GAS
All other agents Transfer as-is game-designer, narrative, audio, art, etc.

New agents: - stride-physics-specialist — BepuPhysics v2 deterministic simulation - stride-mcp-specialist — building/maintaining the Stride MCP server - stride-scenario-specialist — Scenario Labs integration, AI asset pipeline

9.2 Forge Gates

Gate Implementation Trigger
Build dotnet build Every PR
Test dotnet test Every PR
Lint .NET analyzers + custom rules Every PR
Council Review 5 seats via council-seat Every PR
Input Latency Automated input → response measurement Movement/input PRs
Netcode Determinism Replay verification (same inputs → same outputs) Netcode PRs
Physics Determinism BepuPhysics replay comparison Physics PRs
Screenshot Evidence Stride MCP screenshot capture UI/visual PRs

9.3 MCP Server (Custom, C#)

// Built with ModelContextProtocol NuGet SDK
[McpTool("inspect_entity")]
public EntitySnapshot InspectEntity(string entityName) { ... }

[McpTool("list_entities")]
public EntitySnapshot[] ListEntities(string? filter) { ... }

[McpTool("set_property")]
public bool SetProperty(string entity, string component, string property, string value) { ... }

[McpTool("screenshot")]
public byte[] TakeScreenshot(int width, int height) { ... }

[McpTool("inject_input")]
public void InjectInput(string key, float duration) { ... }

[McpTool("get_physics_state")]
public PhysicsSnapshot GetPhysicsState() { ... }

[McpTool("replay_inputs")]
public ReplayResult ReplayInputs(InputRecord[] inputs) { ... }

10. Integration Points

10.1 Scenario OS + CCGS = one internal super app, driven through Forge

Andrew (2026-11-21): Scenario OS should run through Forge the same way CCGS does, and the two should merge into one internal-use super app.

  • One harness. The CCGS agents and the Scenario asset/world generation share one session model, one board and one Forge pipeline. Asset generation is a studio department (art/tech-art/level agents call Scenario), not a separate tool.
  • Forge wiring, same as CCGS:
  • Scenario jobs are Forge tasks with a check and a done-state: generated → imported into Stride → screenshot evidence via the Stride MCP.
  • Generation runs as a background lane. Results land as Stride assets with provenance tags (prompt, model, seed, Scenario job id).
  • Gates:
  • asset import builds;
  • poly/texture budget per game profile;
  • a screenshot captured in-engine;
  • provenance tags present (advisory, like licence notes).
  • Credentials: Scenario API key stays in ~/.fleet-secrets/; it is never inlined. Creating the key/account is Andrew's step.
  • Open: confirm what "Scenario OS" exposes beyond the MCP/REST/plugins below (product surface not yet verified from live docs).

Scenario surfaces: - MCP server at mcp.scenario.com — Claude Code agents generate assets directly - Blender plugin (local MCP) — agents work in Blender viewport - Unity C# plugin (MIT) — port to Stride for in-editor generation - REST API — pipeline automation for batch asset generation - Workflow: Agent describes scene → Scenario generates 3D model + PBR textures → import to Stride via glTF/FBX

10.2 evxl.app Analytics Model

Port the data model for the aim trainer: - BenchmarkPlaylist — collection of scenarios at a difficulty tier - Scenario — individual aim training exercise - ScenarioCategory — Clicking, Tracking, Switching, etc. - ScenarioSubcategory — Arm, Wrist, Fingertip, etc. - RankThreshold — score boundaries for each rank tier - PlayerScore — individual score records - RadarChart — skill dimension visualization - RankDistribution — global percentile data


11. Repo Structure (Revised R1 — inside CCGS, per D1)

The harness is NOT duplicated. The existing CCGS CLAUDE.md, .claude/, project.yaml and production/ stay as they are. Changes: - project.yaml gets engine.name: stride. - .claude/docs/directory-structure.md gains a Stride row (code root, test root). - .claude/agents/ gains only the stride-* specialists.

The game solution lives under the Stride code root:

Claude-Code-Game-Studios/            # existing CCGS repo (harness unchanged)
├── Source/                          # Stride code root (exact name set by the engine row)
│   ├── Framework/                    # Shared game framework (projects; NuGet only when a 2nd consumer needs it)
│   │   ├── Framework.Movement/       # Movement system (GMC equivalent)
│   │   ├── Framework.Abilities/      # Ability system (GMAS equivalent)
│   │   ├── Framework.Narrative/      # Quest, dialogue, inventory
│   │   ├── Framework.Netcode/        # Networking, prediction, replication
│   │   ├── Framework.Input/          # Input pipeline, AimStation, gyro
│   │   ├── Framework.Analytics/      # Score tracking, rank system, charts
│   │   ├── Framework.Tags/           # GameplayTag system
│   │   └── Framework.MCP/            # Stride MCP server
│   ├── Games/
│   │   ├── AimTrainer/               # KovaaK's clone + game emulation + PvP
│   │   ├── RogueRoyale/              # Battle royale roguelike
│   │   ├── PaintWar/                 # Splatoon/Deadlock hybrid
│   │   └── ManiacFPS/                # Maniac Mansion roguelike FPS
│   └── Tests/
│       ├── Framework.Movement.Tests/
│       ├── Framework.Abilities.Tests/
│       ├── Framework.Netcode.Tests/
│       └── ...
├── assets/manifest/                  # Versioned export manifest only (D8); binaries in LFS/object store
├── design/                           # Existing; add aim-trainer/, paint-war/, maniac-fps/
└── docs/engine-reference/stride/     # Stride API snapshots (version-pinned)

12. Migration Path

Reuse first: don't reinvent (Andrew, 2026-11-21)

Rule: start from what exists, write only the gaps, and build each system when a game needs it, not ahead of time.

Need Already have / off the shelf We write
Studio harness CCGS itself: 51 agents, skills, hooks, project.yaml, and an engine-row layout (Godot/Unity/Unreal) A Stride engine row + stride-* specialists + Stride run-and-observe procedure
CI/gates Forge (FLT-313) + Forge Game pack (FLT-358), council-seat, board sync, fleet-dispatch Stride gate adapters only (build/test/screenshot)
Engine glue Stride Community Toolkit (code-only scenes, helpers), Stride's SDL input layer —
Physics BepuPhysics v2 (ships with Stride) —
Transport LiteNetLib Prediction/reconciliation layer
Gyro SDL2 gamepad sensor API, read directly through Silk.NET.SDL. Stride 4.4.3's GameControllerSDL polls only buttons/axes/hats and does not surface gyro (Susie, step 1.1). GamepadMotionHelpers (MIT, pinned commit in VERSION.md) is the algorithm source A small SDL2 sensor reader + C# port of GamepadMotionHelpers (D5)
HUD/menus Stride's built-in UI system (verify on 4.4) Screens only
Asset conversion UE editor Python export (unreal.AssetExportTask → FBX/glTF) on the gaming PC + Stride asset compiler (verify CLI) Export script + manifest
Designs RRR GDDs + systems-index in this repo —
Assets ~95 triaged Fab packs + Scenario OS for gaps —
Framework GMC/GMAS/NarrativeGMC designs Port only the subset a phase needs (aim trainer needs movement + hitscan, not quests/inventory)

Phases are ordered by what each one proves. Every step carries an executable check. Weeks are dropped until slice 1 gives a measured velocity.

Each step has its own check. A step does not start until the previous step's check is green.

Phase 1: Harness row (no game code)

# Step Check / done-state
1.1 Verify and lock versions first: Stride 4.4.x, .NET 10 SDK, BepuPhysics, LiteNetLib, Stride Community Toolkit. Write docs/engine-reference/stride/VERSION.md with a compatibility matrix Live-doc/NuGet receipt per package; packages.lock.json committed; RestoreLockedMode restore succeeds offline (D17)
1.2 Stride engine row: project.yaml engine.name: stride; Stride row in .claude/docs/directory-structure.md (code root Source/, test root Source/Tests/); Stride run-and-observe in .claude/docs/run-and-observe.md /setup-engine resolves stride; the hello-world Stride scene builds and launches; a screenshot is retained
1.3 Agents: stride-specialist, stride-netcode-specialist, stride-movement-specialist Agents load; grep finds no UE-only tool refs in them
1.4 Forge stride-build adapter (D20). Blocked on Forge core (FLT-313; Forge.Gates.* and the FLT-358 adapter contracts are unmerged). Council 2026-11-23 (CedricFocus, Susie; Gronktayvius dissenting for an observe-only provider) chose to wait rather than build against copied contracts. Interim: CI stride-template job + template/scripts/negative-compile-check.ps1 Green on hello-world; an injected compile error turns it red. Interim check proves both on CI, for the right reason (CS0029 after a passing locked restore), and that Stride's asset BuildEngine ran. The adapter itself lands when Forge core does

Phase 2a: Local sim slice (single-player, netcode-ready). Greybox, code-only, no art

# Step Check / done-state
2a.1 Write docs/architecture/sim-contract.md (D3 numbers, state ownership, event ids) Council plan-check passes; a restore-and-replay test is written and fails (red first)
2a.2 Headless sim assembly (no graphics/audio natives) + kinematic character controller (clean-room Q3 pmove: friction, accelerate, air-accelerate, jump, crouch, slide-move) Unit tests against spec constants from D16 refs: strafe-jump speed gain > 0 and bounded; ground speed caps at max; same-ISA tick hash is stable across 2 runs. The 2a.1 test turns green
2a.3 Input normalization + C# GamepadMotionHelpers port (D5) Native-vs-C# trace within 0.1°; frame-rate independence within 1e-4 rad at 60/144/240 fps; JSM+native conflict is detected
2a.4 Hitscan + target dummy (server-auth dynamic body, D3) A hit-registration test on a recorded trace is deterministic; damage is replayed with no duplicate notifications (event-id test)
2a.5 Dev MCP bridge (D7/D17): inspect, screenshot, replay_inputs Queue-full returns a busy error; cancel-after-enqueue does not mutate; shutdown drains cleanly; game-thread exceptions are surfaced; Release artifact scan finds no MCP types
2a.6 replay-determinism, screenshot-evidence adapters (D20) Each goes red on an injected failure

2a done when: greybox playable on M&K and on controller+gyro; every movement action is reachable on both with zero binding conflicts (a binding-matrix test); a screenshot is retained; input-to-photon latency is measured and recorded (not gated).

Phase 2b: Networked duel (needed by aim-trainer PvP and every co-op game)

# Step Check / done-state
2b.1 LiteNetLib transport + command/ack/clock mapping (D3) Loopback test: ack monotonic; clock offset converges within 1 s
2b.2 Prediction + reconciliation (1 s hard history cap, snapshot resync on overflow) Overflow test triggers resync and a logged desync; memory stays flat over 10 min
2b.3 Bounded hit rewind (200 ms) + server intent validation Net fuzz (replayed/reordered/stale/forged) causes no cooldown bypass and no duplicate damage (D17)

2b done when: a headless x64 server + 2 clients (A M&K trace, B gyro trace, 1,000 ticks) run at 80 ms RTT ±20 ms jitter / 2% loss: - each client's position is within 1 cm of the server within 250 ms of any correction; - replay produces zero duplicate damage events; - RSS growth is under 5 MB.

Cross-ISA (Apple Silicon client vs x64 server): position tolerance 1 cm; hashes are compared only on the same ISA (D4).

Phase 3: Aim trainer MVP (depends on 2a only; PvP mode depends on 2b)

# Step Check / done-state
3.1 Asset pilot (D8): Indoor Shooting Range, Low Poly FPS Bundle, Mannequins via UE Python export on the gaming PC → Stride compile Manifest has hashes; path-confinement tests pass (D17); mesh renders, the anim plays and an audio clip plays (screenshot + log)
3.2 Scenarios as Stride [DataContract] data (D13, D17 schema): tracking, flick, switching A golden fixture per scenario gives the expected score for a recorded perfect trace and a recorded miss-all trace; hostile YAML fixtures are rejected
3.3 Local scoring + rank thresholds + radar (Stride UI) Rank boundaries are unit-tested at each threshold; the radar screen screenshot is retained
3.4 Second movement profile (parametric, D11), e.g. CS2-like vs Q3-like Same input trace, two profiles: ground top speed and air-strafe gain differ as their profile values predict (within 2%)
3.5 One Scenario OS asset (D18) Kill-after-submit then retry: no second remote job; the asset imports atomically; a screenshot is retained

Phases 4-6 are deferred milestones (R2, DesignCritic). Each one gets scoped deliverables, numeric acceptance checks and its bandwidth/perf budgets written and plan-checked before it starts. The bullets below are intent, not a spec.

Phase 4: Tags + attributes + abilities, netcode-native

  • Port GameplayTag, AttributeSet, then abilities one at a time as Rogue Royale/Maniac need them, on the Phase 2 command/replay contract. Intent goes client→server (D3).
  • Check: the GMAS spec ports pass. Unauthorized effect, duplicate activation, stale command and cooldown bypass are each rejected by tests.

Phase 5: Rogue Royale + Maniac FPS (co-op PvE, shared stack, D10)

  • 4-player co-op on the slice netcode. Procedural rooms/arenas.
  • Maniac: one playable mansion-room loop first (Edith Finch placeholders), then procgen. Mix: ~85% arena roguelike, ~15% room-unlock/key-item graph.
  • Narrative (quests/dialogue/inventory) only where a GDD system needs it.

Phase 6: Paint Territory (last)

  • Paint as deterministic splat events + chunked authoritative grid + snapshots for late joiners. Resolution is set by a bandwidth benchmark (20 clients, 10 min, 5% loss) against a declared per-client budget.
  • MOBA systems, then scale test. Matchmaking only if still needed (D14).

Asset track (parallel, lazy, D8)

  • ~~Audit Fab library~~ DONE 2026-11-21: 322 → ~95 candidates (fab-library-triage.md).
  • Pilot 3 assets (mesh+material, rigged anim, audio) through Stride on the gaming PC → manifest.
  • Then export per phase only what that phase uses. Binaries go to LFS/object store, never plain git.
  • Materials and VFX are rebuilt in Stride (agents + Scenario OS) when a phase needs them.

13. Open Questions — R1 answers

# Answer (council R1)
1 StrideNet Reference only; no 0.1.2 dependency. Build on LiteNetLib.
2 Gyro lib Port GamepadMotionHelpers to C# (D5); a native-trace equivalence test proves it.
3 Scenario plugin Neither port nor build; use MCP/REST via Forge (D6).
4 Paint grid Splat events + chunked grid; resolution comes from the benchmark (Phase 6).
5 Repo Engine row inside CCGS; one monorepo for code (D1).
6 Bepu x64/ARM Not cross-ISA exact; per-ISA hashes, x64 authority (D4).
7 Licensing Notes only.
8 Emulation "Feels like", parametric (D11).
9 ARM64 primary No. x64 primary; ARM64 is a CI compile + headless target; Apple Silicon client is supported but experimental until packaged checks pass.
10 Maniac ~85% arena roguelike + ~15% room-unlock graph; one room loop before procgen.

Original questions (kept for history):

  1. StrideNet (NuGet 0.1.2): Use as reference, build on top of, or ignore entirely?
  2. JoyShockMapper native: Port GamepadMotionHelpers to C# or P/Invoke the C++ lib?
  3. Scenario Labs Stride plugin: Port from Unity C# plugin or build from scratch?
  4. Paint replication: Grid resolution vs. bandwidth — what's the right tradeoff?
  5. Mono repo vs. multi: One repo with all 4 games, or separate game repos sharing Framework packages? And: Stride as an engine row inside CCGS (reuse-first default) vs. a CCGS fork?
  6. BepuPhysics determinism: Confirm cross-platform determinism (x64 vs. ARM64)?
  7. ~~Fab asset licensing~~ RESOLVED: audited; licence kept as notes only (internal-use tool).
  8. Game emulation accuracy: How faithful do movement profiles need to be? Frame-perfect or "feels like"?
  9. ARM64 as primary target? .NET 10 supports it, BepuPhysics is pure C#, but Stride runtime on ARM is untested.
  10. Maniac FPS scope: How much Maniac Mansion DNA vs. pure arena FPS roguelike?