Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(verse): add the Unreal project skeleton with its module DAG and repo hygiene (#1099)

Ruben Lütke68ad75d8cf5e
diff --git a/.gitattributes b/.gitattributes
index 946d433036..5a58233f42 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -69,3 +69,7 @@ dodaios/ui/web/dist/** linguist-generated=true
# rebuild makes hundreds of files look modified (line endings only) and that
# noise blocks the fast-forward of anyone following main. No eol conversion.
dodaios/ui/web/dist/** -text
+
+# The Unreal Verse ships as its own package (docs/verse/unreal/README.md,
+# Delivery), so the release source archive (`git archive`) never carries it.
+unreal/** export-ignore
diff --git a/.githooks/pre-push b/.githooks/pre-push
index 2b23ca4613..0aaf042a08 100755
--- a/.githooks/pre-push
+++ b/.githooks/pre-push
@@ -34,6 +34,9 @@
# leaked key is permanent and unrecoverable, which is why this one is worth
# its ~1.5 s even though CI also runs it.
#
+# 3. GIT LFS upload — `git lfs pre-push`, only when git-lfs is installed, so
+# Unreal assets reach the remote with the branch (architecture 8.4).
+#
# Together: under two seconds. A push is a push again.
#
# This hook is VERSIONED in .githooks/; the orchestrator wires it via
@@ -96,6 +99,20 @@ if [ -f "$privkey_gate" ]; then
fi
fi
+# --- 3) GIT LFS upload (FAIL-CLOSED when git-lfs is installed) ---------------
+# core.hooksPath points here, so `git lfs install` cannot add its own pre-push
+# hook; without this line a push carries LFS pointers but not the objects
+# (Unreal .uasset/.umap, docs/verse/unreal/architecture.md 8.4). Machines
+# without git-lfs skip it; CI's LFS pointer check is the backstop.
+lfs_hit=0
+if command -v git-lfs >/dev/null 2>&1; then
+ git lfs pre-push "$remote_name" "$remote_url" < "$refs_file"
+ if [ "$?" -ne 0 ]; then
+ status=1
+ lfs_hit=1
+ fi
+fi
+
rm -f "$refs_file"
if [ "$status" -ne 0 ]; then
@@ -109,6 +126,10 @@ if [ "$status" -ne 0 ]; then
echo " Signing private keys live ONLY in GitHub Actions secrets, never in the"
echo " repo. Remove the key material shown above (public keys are fine)."
fi
+ if [ "$lfs_hit" -ne 0 ]; then
+ echo "pre-push BLOCKED: git lfs pre-push could not upload the LFS objects."
+ echo " Check the remote and your LFS credentials, then push again."
+ fi
echo "Bypass once with: git push --no-verify (layer-3 CI is the backstop)."
fi
exit "$status"
diff --git a/.lfsconfig b/.lfsconfig
new file mode 100644
index 0000000000..fd883e91bc
--- /dev/null
+++ b/.lfsconfig
@@ -0,0 +1,5 @@
+# Installs and in-app updates never download the Unreal Verse binaries
+# (docs/verse/unreal/architecture.md 8.4). Developers and the Unreal runner
+# override it with: git config lfs.fetchexclude ""
+[lfs]
+ fetchexclude = unreal/**
diff --git a/scripts/agent_land.py b/scripts/agent_land.py
index 010350a949..7ab3d0e24c 100644
--- a/scripts/agent_land.py
+++ b/scripts/agent_land.py
@@ -17,7 +17,8 @@ What it does, in order — and it stops at the first real problem:
3. **Relevant tests** — ``scripts/ci/select_tests.py`` picks the test files
the diff can affect and ``scripts/ci/run_tests_parallel.py`` runs them in
isolated processes. The full suite runs in CI.
-4. **Push** — a feature branch gets a pull request labelled ``auto-merge``
+4. **Push** — Git LFS objects the branch adds go up first (``git lfs push``),
+ then a feature branch gets a pull request labelled ``auto-merge``
with GitHub's auto-merge requested: once the CI gate is green GitHub adds
it to the merge queue by itself. The merge train keeps it current.
@@ -119,6 +120,41 @@ def active_freeze(pull_request: dict, runner=run) -> merge_freeze.Freeze | None:
)
+def lfs_paths(paths: list[str], runner=run) -> list[str]:
+ """The paths among ``paths`` that ``.gitattributes`` routes through Git LFS."""
+ found: list[str] = []
+ for start in range(0, len(paths), 200): # far below the Windows command-line limit
+ attrs = runner(["git", "check-attr", "-z", "filter", "--", *paths[start : start + 200]])
+ if attrs.returncode != 0:
+ continue
+ fields = attrs.stdout.split("\0")
+ triples = zip(fields[0::3], fields[1::3], fields[2::3], strict=False)
+ found += [path for path, _attr, value in triples if value == "lfs"]
+ return found
+
+
+def push_lfs_objects(remote: str, branch: str, upstream: str, runner=run) -> bool:
+ """Upload the branch's LFS objects before the push (architecture 8.4).
+
+ ``core.hooksPath`` keeps git-lfs's own pre-push hook out, so a plain push
+ would carry pointers without objects. True when there is nothing to upload
+ or the upload worked.
+ """
+ changed = runner(["git", "diff", "--name-only", "--diff-filter=AM", f"{upstream}...HEAD"])
+ paths = [p for p in changed.stdout.splitlines() if p]
+ if not lfs_paths(paths, runner):
+ return True
+ if runner(["git", "lfs", "version"]).returncode != 0:
+ print("This branch adds Git LFS files but git-lfs is not installed; install it first.")
+ return False
+ pushed = runner(["git", "lfs", "push", remote, branch])
+ print(pushed.stdout + pushed.stderr)
+ if pushed.returncode != 0:
+ print("git lfs push failed; the branch was not pushed.")
+ return False
+ return True
+
+
def report_gate() -> None:
"""Print what the agent done gate says now, so the next step is in view."""
step("next: the agent done gate")
@@ -248,6 +284,8 @@ def main(argv: list[str] | None = None) -> int:
print("\nChecks passed; --no-push given, nothing pushed.")
return 0
step("4/4 push")
+ if not push_lfs_objects(args.remote, branch, upstream):
+ return 6
if direct:
push = run(["git", "push", args.remote, "HEAD:main"])
print(push.stdout + push.stderr)
diff --git a/scripts/ci/run_gates.py b/scripts/ci/run_gates.py
index 92d98344d0..4eb94dafe5 100644
--- a/scripts/ci/run_gates.py
+++ b/scripts/ci/run_gates.py
@@ -57,6 +57,8 @@ def _gates(base: str) -> list[Gate]:
Gate("async-routes", ((PY, ci + "check_async_routes.py"),)),
Gate("webgl-contexts", ((PY, ci + "check_webgl_contexts_released.py"),)),
Gate("plugin-auth-contract", ((PY, ci + "check_plugin_auth_contract.py"),)),
+ Gate("unreal-build-dag", ((PY, "scripts/unreal/check_build_dag.py"),)),
+ Gate("unreal-forbidden-names", ((PY, "scripts/unreal/check_forbidden_names.py"),)),
Gate(
"reference-docs",
(
diff --git a/scripts/unreal/check_build_dag.py b/scripts/unreal/check_build_dag.py
new file mode 100644
index 0000000000..bf74dd7b9b
--- /dev/null
+++ b/scripts/unreal/check_build_dag.py
@@ -0,0 +1,153 @@
+#!/usr/bin/env python3
+"""Check that the Verse module graph is exactly the DAG of architecture.md section 2.
+
+Every ``*.Build.cs`` under ``unreal/Verse/Source`` is parsed; every string
+literal naming a ``Verse*`` module counts as an edge, whichever dependency
+list it sits in. The check fails when:
+
+* a module directory exists that the table does not know, or a module in the
+ table has no ``<Module>.Build.cs``;
+* a module depends on a Verse module the table does not allow (rule 1);
+* a module misses an edge the table lists (the table is exact, not a ceiling);
+* the Verse graph has a cycle.
+
+Engine modules are not judged here. A new Verse edge is a contract change:
+update the table in ``docs/verse/unreal/architecture.md`` and ``ALLOWED`` below
+in the same pull request.
+
+ python scripts/unreal/check_build_dag.py # the repo tree
+ python scripts/unreal/check_build_dag.py --source <dir>
+"""
+
+from __future__ import annotations
+
+import argparse
+import re
+import sys
+from pathlib import Path
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+DEFAULT_SOURCE = REPO_ROOT / "unreal" / "Verse" / "Source"
+
+FEATURE = (
+ "VerseCore",
+ "VerseBridge",
+ "VerseMovement",
+ "VerseDestruction",
+ "VerseCombat",
+ "VerseGore",
+ "VerseDecks",
+ "VerseCrew",
+ "VerseScreens",
+ "VerseBot",
+ "VerseUI",
+ "VerseStream",
+)
+
+#: architecture.md section 2, "May depend on (besides engine)".
+ALLOWED: dict[str, frozenset[str]] = {
+ "VerseCore": frozenset(),
+ "VerseBridge": frozenset({"VerseCore"}),
+ "VerseMovement": frozenset({"VerseCore"}),
+ "VerseDestruction": frozenset({"VerseCore"}),
+ "VerseCombat": frozenset({"VerseCore", "VerseMovement", "VerseDestruction"}),
+ "VerseGore": frozenset({"VerseCore"}),
+ "VerseDecks": frozenset({"VerseCore", "VerseBridge"}),
+ "VerseCrew": frozenset({"VerseCore", "VerseBridge", "VerseDecks"}),
+ "VerseScreens": frozenset({"VerseCore", "VerseBridge", "VerseDecks"}),
+ "VerseBot": frozenset({"VerseCore", "VerseMovement", "VerseCombat", "VerseDestruction"}),
+ "VerseUI": frozenset({"VerseCore", "VerseBridge", "VerseCombat", "VerseCrew", "VerseDecks"}),
+ "VerseStream": frozenset({"VerseCore", "VerseBridge"}),
+ # Primary module: every runtime module except the harness.
+ "Verse": frozenset(FEATURE),
+ # DeveloperTool, Editor target only: every runtime module.
+ "VerseHarness": frozenset(FEATURE) | {"Verse"},
+}
+
+_COMMENT = re.compile(r"//[^\n]*|/\*.*?\*/", re.DOTALL)
+_LITERAL = re.compile(r'"(Verse[A-Za-z0-9_]*)"')
+
+
+def edges_of(build_cs: Path) -> set[str]:
+ """Verse module names a Build.cs names as string literals (comments ignored)."""
+ text = _COMMENT.sub("", build_cs.read_text(encoding="utf-8-sig"))
+ return set(_LITERAL.findall(text))
+
+
+def find_cycle(graph: dict[str, set[str]]) -> list[str]:
+ state: dict[str, int] = {}
+ stack: list[str] = []
+
+ def visit(node: str) -> list[str]:
+ state[node] = 1
+ stack.append(node)
+ for dep in sorted(graph.get(node, ())):
+ if state.get(dep) == 1:
+ return stack[stack.index(dep) :] + [dep]
+ if dep not in state:
+ found = visit(dep)
+ if found:
+ return found
+ stack.pop()
+ state[node] = 2
+ return []
+
+ for node in sorted(graph):
+ if node not in state:
+ found = visit(node)
+ if found:
+ return found
+ return []
+
+
+def check(source: Path) -> list[str]:
+ problems: list[str] = []
+ if not source.is_dir():
+ return [f"{source}: no Unreal source folder"]
+ graph: dict[str, set[str]] = {}
+ for module_dir in sorted(p for p in source.iterdir() if p.is_dir()):
+ name = module_dir.name
+ build_cs = module_dir / f"{name}.Build.cs"
+ if name not in ALLOWED:
+ problems.append(
+ f"{name}: not in the architecture table (a new module is a contract change)"
+ )
+ continue
+ if not build_cs.is_file():
+ problems.append(f"{name}: missing {build_cs.name}")
+ continue
+ found = edges_of(build_cs) - {name}
+ graph[name] = found
+ for extra in sorted(found - ALLOWED[name]):
+ problems.append(f"{name} -> {extra}: edge not allowed by architecture.md section 2")
+ for missing in sorted(ALLOWED[name] - found):
+ problems.append(
+ f"{name} -> {missing}: edge listed in architecture.md section 2 is missing"
+ )
+ for name in sorted(set(ALLOWED) - set(graph)):
+ if not any(p.startswith(f"{name}:") for p in problems):
+ problems.append(f"{name}: module folder missing under {source}")
+ cycle = find_cycle(graph)
+ if cycle:
+ problems.append("cycle: " + " -> ".join(cycle))
+ return problems
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("--source", type=Path, default=DEFAULT_SOURCE)
+ args = parser.parse_args(argv)
+ if args.source == DEFAULT_SOURCE and not DEFAULT_SOURCE.exists():
+ print("check_build_dag: no unreal/Verse/Source in this tree, nothing to check")
+ return 0
+ problems = check(args.source)
+ for line in problems:
+ print(f"check_build_dag: {line}")
+ if problems:
+ return 1
+ print(f"check_build_dag: {len(ALLOWED)} modules match architecture.md section 2")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/unreal/check_forbidden_names.py b/scripts/unreal/check_forbidden_names.py
new file mode 100644
index 0000000000..f45fa26f09
--- /dev/null
+++ b/scripts/unreal/check_forbidden_names.py
@@ -0,0 +1,207 @@
+#!/usr/bin/env python3
+"""Fail on names of other games, studios, franchises or real firearm makes and models.
+
+The Verse may never name them (docs/verse/unreal/README.md, Legal), and no other
+repo gate reads ``.cpp``, ``.h``, ``.cs`` or asset metadata for them. The list
+lives only as SHA-256 hashes in ``scripts/unreal/forbidden_names.sha256``, so
+the repository never contains the names it forbids; the integration owner keeps
+the plain list outside the repo and adds hashes with ``--hash``.
+
+Text is normalised to lower-case ASCII words (accents dropped, camelCase and
+digits split, every other character a separator). Each single word, each raw
+unsplit token and each two- and three-word sequence is hashed, joined by one
+space and (when every word has two or more characters) with no separator, so
+``Some Name``, ``some_name``, ``SomeName`` and ``somename`` all match the
+entry ``some name``.
+
+ python scripts/unreal/check_forbidden_names.py # tracked files in scope
+ python scripts/unreal/check_forbidden_names.py FILE... # these files
+ python scripts/unreal/check_forbidden_names.py --diff origin/main
+ # added lines + commit messages
+ echo "feat(verse): ..." | python scripts/unreal/check_forbidden_names.py --stdin
+ python scripts/unreal/check_forbidden_names.py --hash "two words"
+"""
+
+from __future__ import annotations
+
+import argparse
+import hashlib
+import re
+import subprocess
+import sys
+import unicodedata
+from collections.abc import Iterable, Iterator
+from pathlib import Path
+
+REPO_ROOT = Path(__file__).resolve().parents[2]
+HASH_FILE = Path(__file__).resolve().with_name("forbidden_names.sha256")
+#: Paths whose files are scanned by default (architecture.md 8.4, orchestration GC1.5).
+SCOPE = ("unreal/", "art/verse/", "docs/verse/", "scripts/unreal/")
+MAX_WORDS = 3
+
+_RAW = re.compile(r"[A-Za-z0-9]+")
+_WORD = re.compile(r"[A-Z]+(?=[A-Z][a-z])|[A-Z]?[a-z]+|[A-Z]+|[0-9]+")
+
+
+def _ascii(text: str) -> str:
+ decomposed = unicodedata.normalize("NFKD", text)
+ return "".join(ch for ch in decomposed if not unicodedata.combining(ch))
+
+
+def words(text: str) -> list[str]:
+ """Lower-case words of ``text``, camelCase and digit runs split apart."""
+ out: list[str] = []
+ for raw in _RAW.findall(_ascii(text)):
+ out.extend(w.lower() for w in _WORD.findall(raw))
+ return out
+
+
+def digest(phrase: str) -> str:
+ return hashlib.sha256(phrase.encode("utf-8")).hexdigest()
+
+
+def entry_hashes(phrase: str) -> set[str]:
+ """The hashes one list entry contributes (spaced and joined form)."""
+ raw = _RAW.findall(_ascii(phrase))
+ ws = words(phrase)
+ if len(raw) == 1 and ws:
+ # One token such as a model code: match it whole, and split only into real
+ # words ("ab12" also matches "AB-12"; "a12" never matches "A = 12").
+ out = {digest(raw[0].lower())}
+ if len(ws) <= MAX_WORDS and all(len(w) > 1 for w in ws):
+ out |= {digest(" ".join(ws)), digest("".join(ws))}
+ return out
+ if not ws or len(ws) > MAX_WORDS:
+ raise ValueError(f"an entry needs 1 to {MAX_WORDS} words, got {phrase!r}")
+ return {digest(" ".join(ws)), digest("".join(ws))}
+
+
+def candidates(text: str) -> Iterator[tuple[str, str]]:
+ """(phrase, hash) for every word sequence of ``text`` the list can match."""
+ for raw in _RAW.findall(_ascii(text)):
+ low = raw.lower()
+ yield low, digest(low)
+ ws = words(text)
+ for n in range(1, MAX_WORDS + 1):
+ for i in range(len(ws) - n + 1):
+ seq = ws[i : i + n]
+ spaced = " ".join(seq)
+ yield spaced, digest(spaced)
+ # The joined form only for real words: joining single letters and
+ # digits ("a k m" from "a, k * M") would match by accident.
+ if n > 1 and all(len(w) > 1 for w in seq):
+ yield spaced, digest("".join(seq))
+
+
+def load_hashes(path: Path = HASH_FILE) -> set[str]:
+ hashes: set[str] = set()
+ for line in path.read_text(encoding="utf-8").splitlines():
+ line = line.strip()
+ if not line or line.startswith("#"):
+ continue
+ if not re.fullmatch(r"[0-9a-f]{64}", line):
+ raise ValueError(f"{path.name}: not a SHA-256 line: {line[:20]}...")
+ hashes.add(line)
+ return hashes
+
+
+def scan_text(text: str, hashes: set[str]) -> list[str]:
+ """Matched phrases in ``text`` (as they appear after normalisation)."""
+ return sorted({phrase for phrase, h in candidates(text) if h in hashes})
+
+
+def _git(*args: str) -> str:
+ proc = subprocess.run( # noqa: S603
+ ["git", *args], # noqa: S607
+ cwd=REPO_ROOT,
+ capture_output=True,
+ text=True,
+ encoding="utf-8",
+ errors="replace",
+ check=True,
+ )
+ return proc.stdout
+
+
+def _is_binary(data: bytes) -> bool:
+ return b"\0" in data[:8192]
+
+
+def scan_files(paths: Iterable[str], hashes: set[str]) -> list[str]:
+ findings: list[str] = []
+ for rel in paths:
+ for hit in scan_text(rel, hashes):
+ findings.append(f"{rel}: path contains a forbidden name ({hit})")
+ path = REPO_ROOT / rel
+ if not path.is_file():
+ continue
+ data = path.read_bytes()
+ if _is_binary(data):
+ continue
+ for number, line in enumerate(data.decode("utf-8", "replace").splitlines(), 1):
+ for hit in scan_text(line, hashes):
+ findings.append(f"{rel}:{number}: forbidden name ({hit})")
+ return findings
+
+
+def tracked_in_scope() -> list[str]:
+ return [p for p in _git("ls-files", "--", *SCOPE).splitlines() if p and p != _SELF]
+
+
+def scan_diff(base: str, hashes: set[str]) -> list[str]:
+ findings: list[str] = []
+ diff = _git("diff", "--unified=0", "--no-color", f"{base}...HEAD", "--", *SCOPE)
+ current = ""
+ for line in diff.splitlines():
+ if line.startswith("+++ "):
+ current = line[6:] if line.startswith("+++ b/") else ""
+ for hit in scan_text(current, hashes):
+ findings.append(f"{current}: path contains a forbidden name ({hit})")
+ elif line.startswith("+") and current and current != _SELF:
+ for hit in scan_text(line[1:], hashes):
+ findings.append(f"{current}: added line has a forbidden name ({hit})")
+ log = _git("log", "--format=%H%x00%B%x01", f"{base}..HEAD")
+ for record in log.split("\x01"):
+ sha, _, message = record.strip().partition("\x00")
+ for hit in scan_text(message, hashes):
+ findings.append(f"commit {sha[:10]}: message has a forbidden name ({hit})")
+ return findings
+
+
+_SELF = "scripts/unreal/forbidden_names.sha256"
+
+
+def main(argv: list[str] | None = None) -> int:
+ parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ parser.add_argument("paths", nargs="*", help="Repo-relative files to scan.")
+ parser.add_argument("--diff", metavar="BASE", help="Scan added lines and commits since BASE.")
+ parser.add_argument("--stdin", action="store_true", help="Scan text from stdin.")
+ parser.add_argument("--hash", metavar="PHRASE", action="append", help="Print entry hashes.")
+ args = parser.parse_args(argv)
+ for stream in (sys.stdout, sys.stderr):
+ if hasattr(stream, "reconfigure"):
+ stream.reconfigure(encoding="utf-8", errors="replace")
+
+ if args.hash:
+ for phrase in args.hash:
+ for h in sorted(entry_hashes(phrase)):
+ print(h)
+ return 0
+ hashes = load_hashes()
+ if args.stdin:
+ findings = [f"stdin: forbidden name ({hit})" for hit in scan_text(sys.stdin.read(), hashes)]
+ elif args.diff:
+ findings = scan_diff(args.diff, hashes)
+ else:
+ findings = scan_files(args.paths or tracked_in_scope(), hashes)
+ for line in findings:
+ print(f"check_forbidden_names: {line}")
+ if findings:
+ print("Rename it: Verse names are our own (README Legal).")
+ return 1
+ print(f"check_forbidden_names: clean ({len(hashes)} hashes)")
+ return 0
+
+
+if __name__ == "__main__":
+ sys.exit(main())
diff --git a/scripts/unreal/forbidden_names.sha256 b/scripts/unreal/forbidden_names.sha256
new file mode 100644
index 0000000000..62cecfd29f
--- /dev/null
+++ b/scripts/unreal/forbidden_names.sha256
@@ -0,0 +1,217 @@
+# Forbidden names for the Unreal Verse (docs/verse/unreal/README.md, Legal).
+# One SHA-256 per line of a normalised entry (lower-case ASCII words joined by
+# one space, and the same words joined with no separator). The plain list is
+# kept outside the repository by the integration owner; add an entry with
+# python scripts/unreal/check_forbidden_names.py --hash "<entry>"
+# and paste both lines here, sorted.
+01418aed24f1c8ad93c862fc4aade80fbfb8633d487fd4f3362ba7432d7b7ee5
+030ad17f79e246d20db265cb6d4014c44a6070405c2ba7f735b7ef87a7f09dd0
+03c08fe1fcbc3bc605060783c773cedd35a55ea1455bcf5a8c5ee41275f912fc
+04b2b4ea2f66b8e32f47597cf3384b7e81d9b84b28c0fbbaf5587f24b68dbf5e
+0500f31a80abe43130ce44a1d896f213b213736b0985eed89e9c2695ef778a83
+072450b0bf16f9ed748dfd2a816eaab6cb28bc9ceb8fbe608395f3684b52be90
+09475956fec00c5e12f16d2012c6a3937c4c245c79b6390ebe135eb133b59fc3
+09ff7311c9621b1b963e99b3623506acf8b3839078c069c1065de3da7d424e7d
+0b97471b53f9b68bdad7f3139842289d2f43d91125ded2590d2a22386167d9f8
+0cc153115b13767a8117e64ba6f370dd6d9e380bb486490318cff8ff00a7b556
+0f51ad47c685b70751f806945db9ead72d9a9dba56f41e1d071db5f5faf501b3
+0f8c927c8dabf596b430a07f566e233d3c6ddb936b6bf0f8b9330a3e6193495f
+126299114c7120877a4074dfcced0486d9f852f006c361cafb9b67f4b6abdad2
+12808c7a546938bc69f2c3e5db67a007399ec097344dfc6fcca85ee1c4d1ed54
+128326881733e148ccbd9eae9587ccb282a71d32d27bbe146115019288389d75
+141281c7bc63a5558aa1802de59b9f0210e5b1b2695a6788c8d978fe64798589
+14dfff4c7e74524ad1601db5834d1359eb5e257f9b47b2b8fabf9e5410dc1232
+15b2d75a18f481dc5236c079a6ead477b333fb91eed5dd91b2b5752fa0f01745
+15e7ce2343b2f0bffc33425c5724628a5cefe62c3bd7ba6b5e8eaf57949e8c6d
+16710abcf55b25181a7ad3e538e7c85b57019e2f53e1e5409af9638f45a8a9ad
+171dfd7c9104acc9a53e9a8b1e9ffe1915e394aed63026c35a6e9f5168452072
+17fbfdf01c3ce50fdcb797e09c2dbb88d3d5b169b3ce356067cbadf22086fd06
+1816d91ee0ecc185e3a2fabeb4bfc9fa18041e4bce8cb6a8ca7ab36461cbb10c
+1938caca1799f070c8e34224c3b0425271db986df387612175d5234d88dc5729
+1a683f83fd8ac4c8b60a291701cac479f8b51c872303c65db6af54ea6bb8a840
+1c312dd6426a1667bed0a5712897c864ff49749a98ed9439d22617ceabcf067c
+1c3a259b2cf92b333172ad2172f635e9180da8474c5a1fbbd900501b577b8b57
+1e6cc35909a09a3660c76baebf1747891491a1cddb7776c859f4bea373023c5f
+1ef9e45513c58e72a44ec556f7314d9fa908680340aab9a5e912590a58170cc3
+1efa0b298bd4eba5b6423354d1dc06ee6daaee17f5d58ec36be02046231e7267
+1f16ea1b8cf628c02ea8c3942debe44e8fd413ecb87c4d43d4b0195d7fd57b7b
+1f837b417813fbadae45ae34fa00ecb598b26b55ce9b1db7eb0f869fec3a6cac
+20ad8efff4840b731a5f1ba86d34bb0ec6b95bfdede30fbf34b4078c785e8f85
+21221e17521c71e1e7ac73fd0c7c8bed347ee8a434f77a639eaa881d4b39fe6b
+216adefc57688adfe7426deb05a7be91e192ca56f815ff6f268469858843bf23
+21ccc70c7131c5c42bb658843ffbe0487490387bf606ff25184fe935f5d05769
+226eec5052f8dd7974e1bde06fcc7bf46153336344592934cd01a545f9499834
+22ecf7d22f8824430e452f0baca2a5bc729ca63e2630d6de27b01123153a7539
+2552e5484e18cc16370f9ca99932123c63e99b616d880949faca1d916afc94f5
+2626acf3f3ef5fd0f1fee89e2a4735187dfe17c7bbe6ef03ccb908a29f006256
+265dc02d9b21833d263ef977b54c0920bd9fb1e0c72986201dba5499af32d57d
+28468b83e17d5f6f1a7415e8e242fd22cf101269fba3ced83b7efe023fffb41e
+299c4a1508718e53dbf7d01b4ba42b6aa3d5b746331a0e26ba3ec5a2b9481351
+29f9e1a679e133b37c1ac683dc90a6a3fd0e35fb5a766ce3b9b404be4e7b6d6b
+2d4795b5a4b00eb38d1a1db9a90ffd8c8ba2e407b4e51f4271c1e4821064b04b
+311f101b253f88ee0437cf30effa6b24108beda51ece831a32207195bd3e4e93
+3142c4128765808130535cf888d4aa3805d448d2c3d3104b71e4cb443a84177b
+329b66f9c07e68aed07f398e924886aa8fc00846c7beed88b549bd572ee72c23
+32b7ea5c1d5311e8f0d289ff9f02f47aa5c653c00fad649c0462128b3f5a6b0c
+32bfe3d678856afc05a7b904f046b09a079fa4a53878a4d5675831aacce73ece
+33715c159bcb428da232b5128387c8510f3b237a42f54851140327a8c16dbd04
+33835a5a4a8565801768c2bf5d31284d1fc99c06173722a4633140d7893b64e6
+338e355094d267554d82ba4e32d94435d93b550775248a547755eb4b22ccb0a3
+345a10afdc32e5bdf902d9581f7ffc3dab929d4c26c7f10d054027de634e684b
+35c0bbbceb1584800d5332600ba3f831d9fd643f8e7e16b3d6ca21736c8155fa
+3738f9baa6cd8012af244a9e364efd66d989aba9f697ea7f78ff28075b1f3888
+3809629b31cdd1ac1cc5d2117874045d71c332f9923360f2a59d1f4091c1adf8
+389da35358dab8fa79811893cd9e45ec67ce092b41384509f0ed502ff10518f4
+38be0190a539eca7b4fb66e0ce4bcb1463cf578d7630f8f09f51c11a04203a09
+3a623e6435e8372df1a9466bcd7c493346f7af34953f7cbc50d1ecbc9ec005dd
+3b56b1683f190b68ede6fc621c5d5d022ef1e55d3c50765a87d91edec6d71f41
+3bc12bc2024ad9b752470879951395ba51d25629a5a00d4f9841e7d3d4235fd3
+3d26f739c54babd3f8bba22d670e3264c3fe29946dd3f5c7295300d5145be983
+3ef6e077c2937bcbcec69f78cde1fdee4b8678768081cfdd45327e21bc2ac8e0
+3ef7731d61a9687d3591c4d456a3264783f7e50ef7bca1cdc8e872c10c90ebdf
+3f6ce43c2e784e94dadc601fd96e6fdf7b42d917762bd2c10fbf3904a726efce
+40a389b14f7ccd1a651102b20a38ab299b6f80ee1008a5d75a2847d2912fed9b
+420e08fac0cf2c7cddc28b5eb4c20fc52476cc1b720f059eb6f547556b3e7448
+4248a50f047c150a449ddcc8632e08a2e35ce5a2bd67021a3b138c79021d3509
+43a5c0c668e5d47b664bd10177269c1c8232fcb9c35fe851063f00c1bcf9dc7e
+46702d322e75d70080e728e9a9aef2a92c6f0d55a79539892bc3eaa85624bb59
+4719655b2f724296728541b12f808c470167b58ca86abfff3c29aaa562a349c8
+4830603f7ca0ddcc4b916e299d51127c546cf5ab55b37464bc5fdc7e3937c5d2
+49715a0312f2741b1d7b1abbad6c983428a85b8313ffb7ee4466f50c9a506ca8
+4be5725e1987245ab44ed941957396f4c6b01c68084672f15311bce2f08c0b31
+4c30b6a081ce68a0d42ca56650e932cebb3e8576278ace62dc3a966006f5341a
+4cae54561c1dc4cfbb4a37827018a9b995154e4cb8831a661c23e18326c14b47
+51aa8f7f35a1d0a8da0f6f3479d68363ee8577b64b98760a4da3b175520def29
+51e64c8a82c806b01e93920a37b53b7b99033b406b5a8174a3274480a5a780ea
+56951f8d64f7b05618a140e9dd232811c61903b788ff1022f4775515e7590d15
+57033bb4608a96c3944a5f5d27c2ce5a41f2b87553afcc366a934bb07963736d
+57351da5057f00e5b99d73758b9bf9ea113e0b19c2cd74ed085ee81c1b9b1634
+579d45e0f5ca37c1a4f632549810d0cd18b65263476bb3821ed3a535625d7d89
+59441739c86a464baf0ec86d50433d9348cf2ab3edcbbafe6d43a28c9dfe525f
+5ab469ee84920af95acb252b3e247c728518cf742baf6ecf162c5b595f2f7bef
+5c381d1be1718d71f76ebc7810efbbb9a6c8b3988210faacf4b340dcd4a5ec7e
+5e0d67c4bac6135e710fdf9effef8c00b946c80b1e0af696dcf698ad6b4a297b
+5f5e8efb4f0ed98ea3d3bf75e00f56cb4b50975af84f2d8eb7c404f415516689
+603158cc4ad1d9972580b9e0bdd92ebde996f24033f636b2484e7b65bbeafd96
+60c7ae196a50ec398533e5b9596f8e0b4866f79776428623ec64508bbdb0a34d
+6205b8369f541ff63649e42fa2a943aa14820d3b44a5437be39eba4f578324c8
+625f415db8950fa257ef737ad5411121135530730bfcc381429d766938b32c0a
+64b856781363029291539829e00d4cf2c9c9b726d8f139ff43f163b1c58199d8
+64eb3160681a5156e3c83ae91fe5129d3f314a89ec2167216e41e8e3b3f66e1e
+657707032da40e129c76e834a023bfb6681ca8be4e634e93adbdee5b57d15f1c
+66b16fa3b55eda6f5359b44ca95bbedcb5e7c1ccf6e4916b72b706654f6a6495
+68b3d02ddf17b3fdb7bbf4f41f795501276c48935b4868d09fd70984a740dbc0
+6a5ebc8254dd22f2d54faeddfeee2143a3f7facb2de5aa61a00bb9146f2cca78
+6cf28fed21c2c6c43fc39781fcbb2340a36d4633fb830f203015cb78978b15b6
+6dd607b895c528e9d525cef68b0bb28531f43869655730d172a7cee4a79d2d3f
+6df0542f2baea9c33c4fd9a0167c7a6d1299b59724d90297ed85efcdf0fb64e0
+6df983c20df2ddf0c981c8978d526cf0a5b4fd8369759fee4419fdf31d6b22cb
+6e1f523221505d18932fbcaa90a62a404fef9f04b29fdc9036d3edc53ff9498a
+6efced6a7e04d1137ae7e833b91a4b7660fc985091525eae5bf656819a7f31f9
+6f2f1690b88a3e3b8022e5f84cecb59a8af3c69fa01c59786d84d2d787747221
+74fca0325b5fdb3a34badb40a2581cfbd5344187e8d3432952a5abc0929c1246
+759e498da3f89cffa5bb67cb078b93b0b528fa0967eb2d20ff3cc620438457e9
+764c1ad4a5dd9338ae740fef46d7a50205f76c4278be28c2c6dd3e4a92306cee
+79301b22d2c8db921db26075087d9cca60e2f1f6334a798566996b3c5e78c92a
+7a7d6bd722230f90ebe5c5d948dc2115a4240847307f83fa7e2b5a2068ca06d9
+7ae4730f0de0287cfa9d8b4fbc86f6413da3893599b9c6ccd8ea5c1a91801f13
+7bd1c9a9715c7bf66079b1234f973776fa196c4795608bb27d99dc4d27c69838
+7d4e9152d8f7b0288e16a935f1e41ad4f7d5399c3fab6bde2d3ce78697ffebdc
+7ff2407d0568940895d3474238b64ca971754375f221563a2ad8a607e218306d
+83a11bdd0ee04f034b37c028e2d06955c3f3a8231ef4c543d8b02ae0a1c28f35
+83ae006cc73aae2b1b7aa3134196666c367d9fc3234702a4cdb575872f5b167d
+8882e6193369c8009c4f15d235cccc888873a71b06aa88dd959f9b4937ad3d6d
+89e5047456348e888de24d89b4882aa662420c4d05026b26df20b24c200e1afc
+8a4536b3050767a3049aad4fbca42a8fe2947ee62b3dd87d8ae66bf8f7eab0a0
+8ea851a8951eba6012c305b733f6ac4809a07f3671d92e324e6e6bc5d44ec845
+8f3c234ec122cee6d08fbe8cb1db11c6dd2bfb1d85610a8a1be6fbe9f00fe370
+9167f4eb56f817143663413da745cbf3138848613b65b9fa304a6f5660c55ebe
+91c4b78b73dd752294fb47943c23759f249587133894d95461a31642766bee10
+91cb5a736f08ccf84a252aa65a095fa31d18d30572dcbcf21f6ed1fad42ebe41
+91f539bc91fb53e63ff8f6149f2f686b1f43ac0dad592168df1852ec379aa291
+94041e16a40a6d164d3870304533e34ad3de00de0e35617923ee47614048de12
+947f00ba981895ff80228df97d985872fc16d43266b70d82494477fdfea9ab5d
+955464b16fa1c6defab88e9e3c3f7d99200cc3e8d09fc0db075c63e2091b3461
+961c1469f741e22f190e7a18c0d8dd8749e8ad7d6ae0f69c9469ec1b753bd2ee
+9970626666560a32465d4ce10d28f3233365af833e15eed59884d9477862c379
+99eaeed8bbe4c1533919814b39f5a383c5138c7475b5a2bcd300de04cac7f24a
+9ac868d73a98a7df9b988142bfa4b35d118981a9c2cd895d96faa734947d4749
+9b1bd81a4341626f2ccdfbea2bf1eac1335c9b001317824043ad54d520730b41
+9c4910b0299a535509b538f7f895c567cee64ef31cd6ec0a3e19fbcfefc80d58
+9ed138de90c6cf90ac995c4e0ef9784f4d260c33ef0210654e5bfec3dab89f1a
+9efbd314911beb0eb5030c163b0340d62928df14619b0023baf9112ba69bea97
+a07fe4b5d4cd313bf7d5afab19745399193bbeca31d5eef991688f48c627eedf
+a10335a2644cd19e4af502cb5abe0d85c3878caff3449f8fe206b556d490d6b4
+a12d6e3bc842bb9119a3b827b4ef905161dd54bc3db13180f9574d356371ff5d
+a25e7974f6d93eaf0763b1be72ecb5669807fe810f4afd5e5686ff0e64930389
+a3fb4946d698e4b05f17810c077285c3e72899a70d479b8c62e9f9a2bf05baa9
+a6bd0df6902e9b2b2ddda1201f268525106a0da62950578ce436e44374e7fcca
+a8dd125444af192c7a0ee878d3d043abb2a22cccf9693d8045f497ef90a19429
+ac5f390aa40c1c7abfb0f7a24056960752feff2d0ec320af3982b1a6438e537d
+b37c9f47e438e9a59300c6907e3ada7a14fa1a0bdc8e9d8ea43abe04b29314f6
+b38c677a28aa6e7fb85f146ec37b037f1faf4d0447cca5fd004ff25568f1c263
+b4861fdfca29c84ddd68300bc9f10399727dda844bcb4d9cc1074216ae35a2b9
+b5304c0628525993c2300541a27a13cf51e37978260f3f224ccd57efeab53a8e
+b54cbbab9dd0bf3032791c4423f5ac40e82ade4ce5ce30b0d2fdf42634ae66e1
+b9dc2a516cbb24e235ab90515c705ea117c0732eff1c67ca124e8904c3259b9f
+ba995ef4f06ea5a7328c8b9e63f7b406fddd0f3b007896653b66c596c26fcf29
+bc57dae3a21ea1d866462009ce1e6ee1ce2067fe7916d9c6f108a7007c957977
+bcaddc90cd2681abf3d1566b24d767b31e04f7c106117cf92ebf1613d4cc8be8
+bdc3df0f68d3c52a8da77d0bc911a36933de5d602bcf6726fda871949a573a7d
+bef2455409a55edb98d0700d6ea95f82cc9a5b7a6eab3ae72c12fa6cbc68eafd
+c0a4942143e872cd1ae29fc759e04526de2e909ac1732734d38550a29c2e2516
+c0e687a2d1fc85ee043de90c4bfafc300f927d5ee5439bd195ab9be96cacfae8
+c1eb8e913000a8eb4e47226e1d8a9626a57c662197d9c051e6cf255d9c0c944f
+c409a4a7b418b3dea59a6db138fa4448b1ad8d40fed2d5e4410acb89d044f0ac
+c4956fa72563ee0098e896e508bb2b47f92c4cdeabeff8335a4bf24f6a365bb2
+c4ea04ce9006a22d44451c62f347076d4a42407d8b81ed30fdaa8453ec2ffbb3
+c60bcc4e313ce005554ad7613b305810be948f09468262fd4c6573aa45385a83
+c6fbc2fc199c4e70c4946b783b95cfd84adc9e07db3bf7166a79841529464dbe
+cae94cae7302bf6f2bb190cd9380b56e167b64434a162d613cc0edcd0c8221a5
+cc1a538356fa3008b82251fef3c3a3d9f55a3d1ae59486cf14b3e547b1ff8f8c
+cca7a12174ce8256c33ed38e9065b590878775a2138dd99585f5adf29ea047aa
+cd1ea8fcbf43bb038840853bff8a88bec82aa793769aca02ceb46f756bd12283
+cd2ebc90ea28bfd0b5cf33927407a65e64fa9be9f3936e3d38eabc5e7b482d89
+ce9d8a69db2522c30923c23d3fb26915795bdff26334854dbc5238492f1e392e
+d122be3537a17c2bdd7a04773b61b0504bd60e93e7bf55f5594bbf4fdf272357
+d1a40ca30d3a2fd99e79491ed1283adc22550f6034a656a8f0672caa7de63e20
+d1f533a5e22f25ebee7f06ff4a99e67e8ce1ecc7ac427baf35da64576807ae89
+d498ed00595c3275ec6fc6a5604f62eb97c30fc4c28a3b920334478f44cb884f
+d585a277f29969f83ae1bd8a7e455de824a8f0060cddb4d7e1f7718f3c0a71b9
+d6db6776d2c69f7855e671133b22a1670a2d870cec60ddd58231c08ba9480f64
+d6f869ae9588d4278ba6e661f59151665a8f02fb9596a106cf02f1672ace4ce0
+d8dc4c8561eb6b12907944d37ddb4ad5375dc05b796f63e6b93626c23bcbb920
+da03b244c966cbaafb9953072268c7f7acfbe50e81452e8ac7eab59b4634364c
+db0e7dc87d7f15bd50da057b4b099eefe7670c14a571eb9ee4f61f1968300cde
+ddfa91f746dddc73e9b8a7ab06a77596e818e4888d06a83582e09eb8272fcd5c
+df768d36b10bf4018c781e8eeb5769eea32a6b2bc2990876d22b928b99049698
+dfa9bda3f5c403add708446d0d1a29abb87adb3f5e34d344437d006cc39de640
+dffd9fb67acdcbb0fd085879eaa221f5e2c2c325e24e68e2edb4a6a61312e13d
+e177643b1849656db6f45be3fdb7412a012902243048edadebdc4c5148924f70
+e194459de85439d1613715c18e192fb712a2b0ff5bef6f56a9146d12bac1dac8
+e1d7a27ff7d101869ce265cb9b0afa8268718003a33e40fd6922831c91a9f190
+e1dc590acf3fe0172b7fa2c1f1d2442bca2c02ba44781eb9958abceca0bb5c68
+e1e3c587b04f3f2d7c6fdb3ad761e537d8785766bc2699f11ae2c33f9dfe8ecd
+e241732d117d22c48200b6f938fce06d278e60185f3c8c428578bc9179847874
+e388431329768babbc1e10ddd6580bb433969bc56c620aaebfac0f088e92d8c8
+e57228b42c2887100b0c61c59560dcef721f8b96f9090afcea06f81e2a3b9aa0
+e71d00f3fc43a0196fad8b84428bad67c43f14c3aff55109b17d9fd48844a89a
+e7bc30a52a4b42e8753bf9e3bff82f92b65d0d14fbcb5fd8628486f0dea9a144
+e8c8ad57a280dcf8ca4da14cc3d3e17c38e3c9ff120fd45e37dbf7c5f5a1978e
+e93585deb93cd3b0341f3139ca32c2ead9154f9e63e825c0ee9e099bef948f2b
+ead4072516c124f5aa6fc79df3e815bf310785c61714e10b836fb152be95e402
+efe40bf89cb1fb21aed718df7bcf29541063b7ea155ed737cf2a28849f395e25
+f0751d4777ef212ab4acf9e4cace196706884ad9b3d467b1056f498773a4b085
+f081feadbc0c8d9c978c881f46f19f6e7f18d54fff5dc0fdb3a5a463cb2ae45c
+f0a51423c306844b6fb29bd2819237261c5f847401a0c1faf3871052d59f4206
+f2423d071f26082d053141bad42a7cb050310a1c0dfc7be5e6333fa76d32328e
+f40a789dfb4086388d1a1bc44c847df26c517e19dd0408e5798a27da1668111d
+f5966df3c89c629d7128c46fc986cdaf809ae7d345a2aff0fdc45d629b32bc86
+f836354cb4ddd5096e03e3a7ae77142462102d2e14200103966308f8c81f2ec0
+fafee90e463885f6ae0d66d5fa818045723176f5e2858cb4f3afb325de5ffb0d
+fbc3626871ad94d6cee3f4475830b12aed46b3f0f950dd1d5c3bdc495b8a3d49
+fdbcfa0405d22fc2a434e03c5e954e18deb90cc942e12b821f3dd102b19f363d
+feaadcc2f2254a820546b43b31cf6aef89e986004ad98bd416bff887f5d1b3b1
+ff1a199925e407fa66d7b12bb36a68d12b990ad9b7f203f4690210027b938776
+ff704ebfeec28859f44b07ea9a83fe2610c2cf63ef194445bd91364588ed7e5a
+ffc1a601ad585f25d53067e443f83f130818a534d4014329b3b58dcb9a0e18a8
diff --git a/tests/unit/ci/test_unreal_static_checks.py b/tests/unit/ci/test_unreal_static_checks.py
new file mode 100644
index 0000000000..3075ee0a75
--- /dev/null
+++ b/tests/unit/ci/test_unreal_static_checks.py
@@ -0,0 +1,210 @@
+"""Static checks of the Unreal Verse tree (G0.5 DAG, G0.12 hygiene and names)."""
+
+from __future__ import annotations
+
+import importlib.util
+import json
+import shutil
+import subprocess
+import sys
+from pathlib import Path
+
+import pytest
+
+from scripts import agent_land
+
+REPO_ROOT = Path(__file__).resolve().parents[3]
+SOURCE = REPO_ROOT / "unreal" / "Verse" / "Source"
+
+
+def _load(name: str):
+ path = REPO_ROOT / "scripts" / "unreal" / f"{name}.py"
+ spec = importlib.util.spec_from_file_location(name, path)
+ module = importlib.util.module_from_spec(spec)
+ sys.modules[name] = module
+ spec.loader.exec_module(module)
+ return module
+
+
+dag = _load("check_build_dag")
+names = _load("check_forbidden_names")
+
+
+# --- Build.cs DAG -------------------------------------------------------------
+
+
+def test_the_committed_module_graph_is_exactly_the_architecture_table():
+ assert dag.check(SOURCE) == []
+
+
+def _copy_source(tmp_path: Path) -> Path:
+ target = tmp_path / "Source"
+ shutil.copytree(SOURCE, target, ignore=shutil.ignore_patterns("*.cpp", "*.h"))
+ return target
+
+
+def test_an_edge_outside_the_table_fails(tmp_path):
+ source = _copy_source(tmp_path)
+ build = source / "VerseGore" / "VerseGore.Build.cs"
+ build.write_text(
+ build.read_text(encoding="utf-8").replace('"VerseCore"', '"VerseCore", "VerseCombat"'),
+ encoding="utf-8",
+ )
+ assert dag.check(source) == [
+ "VerseGore -> VerseCombat: edge not allowed by architecture.md section 2"
+ ]
+
+
+def test_a_missing_edge_fails_and_comments_never_count(tmp_path):
+ source = _copy_source(tmp_path)
+ build = source / "VerseCrew" / "VerseCrew.Build.cs"
+ text = build.read_text(encoding="utf-8").replace(', "VerseDecks"', "")
+ build.write_text(text + '\n// "VerseDecks" in a comment is no edge\n', encoding="utf-8")
+ assert dag.check(source) == [
+ "VerseCrew -> VerseDecks: edge listed in architecture.md section 2 is missing"
+ ]
+
+
+def test_an_unknown_module_and_a_missing_build_file_fail(tmp_path):
+ source = _copy_source(tmp_path)
+ (source / "VerseExtra").mkdir()
+ (source / "VerseExtra" / "VerseExtra.Build.cs").write_text("", encoding="utf-8")
+ (source / "VerseUI" / "VerseUI.Build.cs").unlink()
+ problems = dag.check(source)
+ assert any(p.startswith("VerseExtra: not in the architecture table") for p in problems)
+ assert "VerseUI: missing VerseUI.Build.cs" in problems
+
+
+def test_a_cycle_is_reported():
+ assert dag.find_cycle({"A": {"B"}, "B": {"C"}, "C": {"A"}}) == ["A", "B", "C", "A"]
+ assert dag.find_cycle({"A": {"B"}, "B": set()}) == []
+
+
+def test_the_server_target_is_gone_and_only_the_editor_carries_the_harness():
+ targets = sorted(p.name for p in SOURCE.glob("*.Target.cs"))
+ assert targets == ["Verse.Target.cs", "VerseEditor.Target.cs"]
+ assert '"VerseHarness"' not in (SOURCE / "Verse.Target.cs").read_text(encoding="utf-8")
+ assert '"VerseHarness"' in (SOURCE / "VerseEditor.Target.cs").read_text(encoding="utf-8")
+ # A DeveloperTool module from the .uproject would still build into a Game target.
+ project = json.loads((SOURCE.parent / "Verse.uproject").read_text(encoding="utf-8"))
+ harness = next(m for m in project["Modules"] if m["Name"] == "VerseHarness")
+ assert harness["Type"] == "DeveloperTool"
+ assert harness["TargetAllowList"] == ["Editor"]
+
+
+def test_every_module_ships_a_smoke_test():
+ for module in dag.ALLOWED:
+ tests = list((SOURCE / module / "Private" / "Tests").glob("*SmokeTest.cpp"))
+ assert len(tests) == 1, module
+ short = "Primary" if module == "Verse" else module.removeprefix("Verse")
+ assert f'"Verse.{short}.Smoke"' in tests[0].read_text(encoding="utf-8")
+
+
+# --- forbidden names ----------------------------------------------------------
+
+# A made-up entry: the real list never appears in the repository.
+_ENTRY = "zorblax quintor"
+
+
+def test_every_spelling_of_an_entry_matches():
+ hashes = names.entry_hashes(_ENTRY)
+ for text in ("Zorblax Quintor", "zorblax_quintor", "ZorblaxQuintor", "zorblaxquintor"):
+ assert names.scan_text(f"a {text} b", hashes), text
+ assert names.scan_text("Zòrblax-Quintor", hashes)
+ assert names.scan_text("zorblax only", hashes) == []
+
+
+def test_a_model_code_matches_whole_but_never_from_single_letters():
+ hashes = names.entry_hashes("zq47") | names.entry_hashes("z9")
+ assert names.scan_text("the ZQ-47 and zq47", hashes)
+ assert names.scan_text("const Z = 9; a z 9 b", hashes) == []
+ assert names.scan_text("Z9", hashes)
+
+
+def test_an_entry_has_at_most_three_words():
+ with pytest.raises(ValueError):
+ names.entry_hashes("one two three four")
+
+
+def test_the_hash_file_holds_only_sha256_lines_and_the_tree_is_clean():
+ hashes = names.load_hashes()
+ assert len(hashes) > 100
+ assert names.scan_files(names.tracked_in_scope(), hashes) == []
+
+
+# --- repo hygiene (architecture 8.4) ------------------------------------------
+
+
+def _git(*args: str) -> str:
+ return subprocess.run(
+ ["git", *args], cwd=REPO_ROOT, capture_output=True, text=True, check=True
+ ).stdout
+
+
+def test_unreal_binaries_go_to_lfs_and_the_tree_stays_out_of_archives():
+ out = _git(
+ "check-attr",
+ "filter",
+ "export-ignore",
+ "--",
+ "unreal/Verse/Content/Verse/A.uasset",
+ "unreal/Verse/Content/Verse/B.umap",
+ )
+ assert "A.uasset: filter: lfs" in out
+ assert "B.umap: filter: lfs" in out
+ assert "A.uasset: export-ignore: set" in out
+ nested = (REPO_ROOT / "unreal" / "Verse" / ".gitattributes").read_text(encoding="utf-8")
+ for banned in (".fbx", ".wav", ".exr", ".glb"):
+ assert banned not in nested
+ lfsconfig = (REPO_ROOT / ".lfsconfig").read_text(encoding="utf-8")
+ assert "fetchexclude = unreal/**" in lfsconfig
+
+
+def test_the_nested_ignore_keeps_build_output_out_and_build_in():
+ lines = (REPO_ROOT / "unreal" / "Verse" / ".gitignore").read_text(encoding="utf-8")
+ for entry in ("Binaries/", "Intermediate/", "Saved/", "DerivedDataCache/", ".vs/"):
+ assert entry in lines.splitlines()
+ assert lines.rstrip().splitlines()[-1] == "!Build/"
+
+
+def test_the_pre_push_hook_uploads_lfs_objects_only_when_git_lfs_exists():
+ hook = (REPO_ROOT / ".githooks" / "pre-push").read_text(encoding="utf-8")
+ guard = hook.index("command -v git-lfs")
+ call = hook.index('git lfs pre-push "$remote_name" "$remote_url" < "$refs_file"')
+ cleanup = hook.index('rm -f "$refs_file"')
+ assert guard < call < cleanup
+
+
+class FakeGit:
+ def __init__(self, changed: str, lfs: set[str], *, lfs_push_code: int = 0) -> None:
+ self.changed, self.lfs, self.lfs_push_code = changed, lfs, lfs_push_code
+ self.commands: list[list[str]] = []
+
+ def __call__(self, cmd: list[str], **_: object) -> subprocess.CompletedProcess[str]:
+ self.commands.append(cmd)
+ if cmd[:2] == ["git", "diff"]:
+ return subprocess.CompletedProcess(cmd, 0, self.changed, "")
+ if cmd[:2] == ["git", "check-attr"]:
+ paths = cmd[cmd.index("--") + 1 :]
+ out = "".join(
+ f"{p}\0filter\0{'lfs' if p in self.lfs else 'unspecified'}\0" for p in paths
+ )
+ return subprocess.CompletedProcess(cmd, 0, out, "")
+ if cmd[:3] == ["git", "lfs", "push"]:
+ return subprocess.CompletedProcess(cmd, self.lfs_push_code, "", "")
+ return subprocess.CompletedProcess(cmd, 0, "git-lfs/3.7.1", "")
+
+
+def test_land_pushes_lfs_objects_before_the_branch_when_the_diff_has_lfs_files():
+ asset = "unreal/Verse/Content/A.uasset"
+ git = FakeGit(f"{asset}\nscripts/x.py\n", {asset})
+ assert agent_land.push_lfs_objects("origin", "claude/x", "origin/main", git) is True
+ assert ["git", "lfs", "push", "origin", "claude/x"] in git.commands
+
+
+def test_land_skips_lfs_without_lfs_files_and_stops_when_the_upload_fails():
+ plain = FakeGit("scripts/x.py\n", set())
+ assert agent_land.push_lfs_objects("origin", "claude/x", "origin/main", plain) is True
+ assert all(cmd[:3] != ["git", "lfs", "push"] for cmd in plain.commands)
+ failing = FakeGit("a.uasset\n", {"a.uasset"}, lfs_push_code=1)
+ assert agent_land.push_lfs_objects("origin", "claude/x", "origin/main", failing) is False
diff --git a/unreal/Verse/.gitattributes b/unreal/Verse/.gitattributes
new file mode 100644
index 0000000000..463e94b66d
--- /dev/null
+++ b/unreal/Verse/.gitattributes
@@ -0,0 +1,16 @@
+# Unreal binaries (Verse). Text sources stay plain Git.
+*.uasset filter=lfs diff=lfs merge=lfs -text
+*.umap filter=lfs diff=lfs merge=lfs -text lockable
+*.png filter=lfs diff=lfs merge=lfs -text
+*.bmp filter=lfs diff=lfs merge=lfs -text
+*.ico filter=lfs diff=lfs merge=lfs -text
+*.ttf filter=lfs diff=lfs merge=lfs -text
+*.otf filter=lfs diff=lfs merge=lfs -text
+# Shared assets: edited under a `git lfs lock` the integration owner holds.
+Content/Verse/Materials/Master/** lockable
+Content/Verse/Characters/Rig/** lockable
+Content/Verse/Decks/*/DataLayers/** lockable
+# Contract text: byte-stable on every platform.
+Art/**/*.json text eol=lf
+Tests/Data/**/*.json text eol=lf
+Content/Python/**/*.py text eol=lf
diff --git a/unreal/Verse/.gitignore b/unreal/Verse/.gitignore
new file mode 100644
index 0000000000..28ef632bd8
--- /dev/null
+++ b/unreal/Verse/.gitignore
@@ -0,0 +1,16 @@
+# Unreal build output, per-machine state and IDE files (architecture.md 8.4).
+Binaries/
+Intermediate/
+Saved/
+DerivedDataCache/
+**/Binaries/
+**/Intermediate/
+*.sln
+*.VC.db
+.vs/
+# Engine plugins copy their sample files here on editor start (PixelStreaming2
+# web server scripts); they are engine content and never committed.
+Samples/
+# The engine needs unreal/Verse/Build/ (platform icons and resources); the root
+# .gitignore ignores every folder named build, so it is re-included here.
+!Build/
diff --git a/unreal/Verse/Config/DefaultEngine.ini b/unreal/Verse/Config/DefaultEngine.ini
new file mode 100644
index 0000000000..9afaae4c0b
--- /dev/null
+++ b/unreal/Verse/Config/DefaultEngine.ini
@@ -0,0 +1,29 @@
+[/Script/EngineSettings.GameMapsSettings]
+GameDefaultMap=/Engine/Maps/Entry
+EditorStartupMap=/Engine/Maps/Entry
+GameInstanceClass=/Script/Verse.VerseGameInstance
+GlobalDefaultGameMode=/Script/Verse.VerseDefaultGameMode
+
+[/Script/Engine.RendererSettings]
+r.DynamicGlobalIlluminationMethod=1
+r.ReflectionMethod=1
+r.Shadow.Virtual.Enable=1
+r.GenerateMeshDistanceFields=True
+
+[/Script/WindowsTargetPlatform.WindowsTargetSettings]
+DefaultGraphicsRHI=DefaultGraphicsRHI_DX12
+
+[/Script/AndroidFileServerEditor.AndroidFileServerRuntimeSettings]
+bEnablePlugin=True
+bAllowNetworkConnection=True
+SecurityToken=974BC6264F560C9E79F058982EA9BEB6
+bIncludeInShipping=False
+bAllowExternalStartInShipping=False
+bCompileAFSProject=False
+bUseCompression=False
+bLogFiles=False
+bReportStats=False
+ConnectionType=USBOnly
+bUseManualIPAddress=False
+ManualIPAddress=
+
diff --git a/unreal/Verse/Config/DefaultGame.ini b/unreal/Verse/Config/DefaultGame.ini
new file mode 100644
index 0000000000..6b343ade4c
--- /dev/null
+++ b/unreal/Verse/Config/DefaultGame.ini
@@ -0,0 +1,3 @@
+[/Script/EngineSettings.GeneralProjectSettings]
+ProjectName=Verse
+CopyrightNotice=
diff --git a/unreal/Verse/Config/DefaultInput.ini b/unreal/Verse/Config/DefaultInput.ini
new file mode 100644
index 0000000000..e42076b44d
--- /dev/null
+++ b/unreal/Verse/Config/DefaultInput.ini
@@ -0,0 +1,87 @@
+[/Script/Engine.InputSettings]
+-AxisConfig=(AxisKeyName="Gamepad_LeftX",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f))
+-AxisConfig=(AxisKeyName="Gamepad_LeftY",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f))
+-AxisConfig=(AxisKeyName="Gamepad_RightX",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f))
+-AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.25,Exponent=1.f,Sensitivity=1.f))
+-AxisConfig=(AxisKeyName="MouseX",AxisProperties=(DeadZone=0.f,Exponent=1.f,Sensitivity=0.07f))
+-AxisConfig=(AxisKeyName="MouseY",AxisProperties=(DeadZone=0.f,Exponent=1.f,Sensitivity=0.07f))
+-AxisConfig=(AxisKeyName="Mouse2D",AxisProperties=(DeadZone=0.f,Exponent=1.f,Sensitivity=0.07f))
++AxisConfig=(AxisKeyName="Gamepad_LeftX",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_LeftY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_RightX",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_RightY",AxisProperties=(DeadZone=0.250000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MouseX",AxisProperties=(DeadZone=0.000000,Sensitivity=0.070000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MouseY",AxisProperties=(DeadZone=0.000000,Sensitivity=0.070000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Mouse2D",AxisProperties=(DeadZone=0.000000,Sensitivity=0.070000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MouseWheelAxis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_LeftTriggerAxis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_RightTriggerAxis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_Special_Left_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Gamepad_Special_Left_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Left_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Left_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Left_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Right_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Right_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="Vive_Right_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Left_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Left_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Left_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Left_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Left_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Right_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Right_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Right_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Right_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="MixedReality_Right_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Left_Grip_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Left_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Left_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Left_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Right_Grip_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Right_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Right_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="OculusTouch_Right_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Grip_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Grip_Force",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Left_Trackpad_Force",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Grip_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Grip_Force",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Trigger_Axis",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Thumbstick_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Thumbstick_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Trackpad_X",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Trackpad_Y",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
++AxisConfig=(AxisKeyName="ValveIndex_Right_Trackpad_Force",AxisProperties=(DeadZone=0.000000,Sensitivity=1.000000,Exponent=1.000000,bInvert=False))
+bAltEnterTogglesFullscreen=True
+bF11TogglesFullscreen=True
+bUseMouseForTouch=False
+bEnableMouseSmoothing=True
+bEnableFOVScaling=True
+bCaptureMouseOnLaunch=True
+bEnableLegacyInputScales=True
+bEnableMotionControls=True
+bFilterInputByPlatformUser=False
+bShouldFlushPressedKeysOnViewportFocusLost=True
+bAlwaysShowTouchInterface=False
+bShowConsoleOnFourFingerTap=True
+bEnableGestureRecognizer=False
+bUseAutocorrect=False
+bEnabledLegacyMappingDeprecationWarnings=True
+DefaultViewportMouseCaptureMode=CapturePermanently_IncludingInitialMouseDown
+DefaultViewportMouseLockMode=LockOnCapture
+FOVScale=0.011110
+DoubleClickTime=0.200000
+DeprecatedActionAndAxisNames=()
+DefaultPlayerInputClass=/Script/EnhancedInput.EnhancedPlayerInput
+DefaultInputComponentClass=/Script/EnhancedInput.EnhancedInputComponent
+DefaultTouchInterface=/Engine/MobileResources/HUD/DefaultVirtualJoysticks.DefaultVirtualJoysticks
+-ConsoleKeys=Tilde
++ConsoleKeys=Tilde
++ConsoleKeys=Caret
+
diff --git a/unreal/Verse/Content/.gitkeep b/unreal/Verse/Content/.gitkeep
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/unreal/Verse/Source/Verse.Target.cs b/unreal/Verse/Source/Verse.Target.cs
new file mode 100644
index 0000000000..346d156114
--- /dev/null
+++ b/unreal/Verse/Source/Verse.Target.cs
@@ -0,0 +1,16 @@
+using UnrealBuildTool;
+using System.Collections.Generic;
+
+// Game target. VerseHarness is a DeveloperTool module and is listed only in the
+// Editor target (architecture.md 8.1, decision C7). There is no Server target:
+// a binary engine install cannot build one, so the game runs as a listen server.
+public class VerseTarget : TargetRules
+{
+ public VerseTarget(TargetInfo Target) : base(Target)
+ {
+ Type = TargetType.Game;
+ DefaultBuildSettings = BuildSettingsVersion.Latest;
+ IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
+ ExtraModuleNames.Add("Verse");
+ }
+}
diff --git a/unreal/Verse/Source/Verse/Private/Tests/VerseSmokeTest.cpp b/unreal/Verse/Source/Verse/Private/Tests/VerseSmokeTest.cpp
new file mode 100644
index 0000000000..e371c581c9
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Private/Tests/VerseSmokeTest.cpp
@@ -0,0 +1,61 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+#include "VerseDefaultCharacter.h"
+#include "VerseDefaultGameMode.h"
+#include "VerseDefaultPlayerController.h"
+#include "VerseGameInstance.h"
+#include "VerseSettings.h"
+#include "Damage/VerseCombatStateComponent.h"
+#include "GameMapsSettings.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Primary.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVersePrimarySmokeTest, "Verse.Primary.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVersePrimarySmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseMovement"),
+ TEXT("VerseDestruction"),
+ TEXT("VerseCombat"),
+ TEXT("VerseGore"),
+ TEXT("VerseDecks"),
+ TEXT("VerseCrew"),
+ TEXT("VerseScreens"),
+ TEXT("VerseBot"),
+ TEXT("VerseUI"),
+ TEXT("VerseStream"),
+ TEXT("Verse"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+
+ const AVerseDefaultGameMode* Mode = GetDefault<AVerseDefaultGameMode>();
+ TestTrue(TEXT("default pawn is AVerseDefaultCharacter"), Mode->DefaultPawnClass == AVerseDefaultCharacter::StaticClass());
+ TestTrue(TEXT("default controller is AVerseDefaultPlayerController"), Mode->PlayerControllerClass == AVerseDefaultPlayerController::StaticClass());
+
+ const AVerseDefaultCharacter* Pawn = GetDefault<AVerseDefaultCharacter>();
+ const UVerseCombatStateComponent* CombatState = Pawn->GetCombatState();
+ if (TestNotNull(TEXT("default pawn carries UVerseCombatStateComponent"), CombatState))
+ {
+ TestTrue(TEXT("pawn combat state replicates"), CombatState->GetIsReplicated());
+ TestEqual(TEXT("pawn combat state starts Alive"), CombatState->Phase, EVerseCombatPhase::Alive);
+ }
+
+ const UGameMapsSettings* Maps = GetDefault<UGameMapsSettings>();
+ TestEqual(TEXT("project game instance"), Maps->GameInstanceClass.GetAssetPathString(), UVerseGameInstance::StaticClass()->GetPathName());
+ TestEqual(TEXT("project default game mode"), UGameMapsSettings::GetGlobalDefaultGameMode(), AVerseDefaultGameMode::StaticClass()->GetPathName());
+
+ const UVerseSettings* Settings = GetDefault<UVerseSettings>();
+ TestEqual(TEXT("gore defaults to full"), Settings->GoreLevel, EVerseGoreLevel::Full);
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/Verse/Private/VerseDefaultCharacter.cpp b/unreal/Verse/Source/Verse/Private/VerseDefaultCharacter.cpp
new file mode 100644
index 0000000000..ce48f4b3a8
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Private/VerseDefaultCharacter.cpp
@@ -0,0 +1,8 @@
+#include "VerseDefaultCharacter.h"
+
+#include "Damage/VerseCombatStateComponent.h"
+
+AVerseDefaultCharacter::AVerseDefaultCharacter()
+{
+ CombatState = CreateDefaultSubobject<UVerseCombatStateComponent>(TEXT("CombatState"));
+}
diff --git a/unreal/Verse/Source/Verse/Private/VerseDefaultGameMode.cpp b/unreal/Verse/Source/Verse/Private/VerseDefaultGameMode.cpp
new file mode 100644
index 0000000000..1ca2c03f13
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Private/VerseDefaultGameMode.cpp
@@ -0,0 +1,10 @@
+#include "VerseDefaultGameMode.h"
+
+#include "VerseDefaultCharacter.h"
+#include "VerseDefaultPlayerController.h"
+
+AVerseDefaultGameMode::AVerseDefaultGameMode()
+{
+ DefaultPawnClass = AVerseDefaultCharacter::StaticClass();
+ PlayerControllerClass = AVerseDefaultPlayerController::StaticClass();
+}
diff --git a/unreal/Verse/Source/Verse/Private/VerseModule.cpp b/unreal/Verse/Source/Verse/Private/VerseModule.cpp
new file mode 100644
index 0000000000..83e164659a
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Private/VerseModule.cpp
@@ -0,0 +1,5 @@
+#include "Modules/ModuleManager.h"
+
+// The primary game module. It wires the feature modules together through the
+// default classes below and holds no feature logic itself (architecture.md 2).
+IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, Verse, "Verse");
diff --git a/unreal/Verse/Source/Verse/Public/VerseDefaultCharacter.h b/unreal/Verse/Source/Verse/Public/VerseDefaultCharacter.h
new file mode 100644
index 0000000000..4ef77c6ebc
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Public/VerseDefaultCharacter.h
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "CoreMinimal.h"
+#include "GameFramework/Character.h"
+
+#include "VerseDefaultCharacter.generated.h"
+
+class UVerseCombatStateComponent;
+
+/**
+ * Default pawn. Carries UVerseCombatStateComponent (contracts/combat-state.md 2.1).
+ * Integration (orchestration.md 2.1) re-parents it onto AVerseCharacter once
+ * VerseMovement ships that class.
+ */
+UCLASS()
+class VERSE_API AVerseDefaultCharacter : public ACharacter
+{
+ GENERATED_BODY()
+
+public:
+ AVerseDefaultCharacter();
+
+ UVerseCombatStateComponent* GetCombatState() const { return CombatState; }
+
+private:
+ UPROPERTY(VisibleAnywhere, Category = "Verse|Combat")
+ TObjectPtr<UVerseCombatStateComponent> CombatState;
+};
diff --git a/unreal/Verse/Source/Verse/Public/VerseDefaultGameMode.h b/unreal/Verse/Source/Verse/Public/VerseDefaultGameMode.h
new file mode 100644
index 0000000000..57a23beaa5
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Public/VerseDefaultGameMode.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "CoreMinimal.h"
+#include "GameFramework/GameModeBase.h"
+
+#include "VerseDefaultGameMode.generated.h"
+
+/**
+ * Project default game mode (Config/DefaultEngine.ini GlobalDefaultGameMode). It only
+ * names the default classes; rules belong to VerseCombat's swappable ruleset
+ * (contracts/combat-state.md 10), wired in during integration.
+ */
+UCLASS()
+class VERSE_API AVerseDefaultGameMode : public AGameModeBase
+{
+ GENERATED_BODY()
+
+public:
+ AVerseDefaultGameMode();
+};
diff --git a/unreal/Verse/Source/Verse/Public/VerseDefaultPlayerController.h b/unreal/Verse/Source/Verse/Public/VerseDefaultPlayerController.h
new file mode 100644
index 0000000000..649593630c
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Public/VerseDefaultPlayerController.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "CoreMinimal.h"
+#include "GameFramework/PlayerController.h"
+
+#include "VerseDefaultPlayerController.generated.h"
+
+/** Default player controller; input and UI hooks land here during integration. */
+UCLASS()
+class VERSE_API AVerseDefaultPlayerController : public APlayerController
+{
+ GENERATED_BODY()
+};
diff --git a/unreal/Verse/Source/Verse/Public/VerseGameInstance.h b/unreal/Verse/Source/Verse/Public/VerseGameInstance.h
new file mode 100644
index 0000000000..3ab22166d0
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Public/VerseGameInstance.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "CoreMinimal.h"
+#include "Engine/GameInstance.h"
+
+#include "VerseGameInstance.generated.h"
+
+/** Project game instance (Config/DefaultEngine.ini GameInstanceClass). */
+UCLASS()
+class VERSE_API UVerseGameInstance : public UGameInstance
+{
+ GENERATED_BODY()
+};
diff --git a/unreal/Verse/Source/Verse/Public/VerseSettings.h b/unreal/Verse/Source/Verse/Public/VerseSettings.h
new file mode 100644
index 0000000000..31e1966ab6
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Public/VerseSettings.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include "Combat/VerseCombatTypes.h"
+#include "CoreMinimal.h"
+#include "Engine/DeveloperSettings.h"
+
+#include "VerseSettings.generated.h"
+
+/**
+ * Per-viewer Verse settings, saved in the local GameUserSettings.ini and never
+ * replicated (contracts/combat-state.md 8).
+ */
+UCLASS(Config = GameUserSettings, meta = (DisplayName = "Verse"))
+class VERSE_API UVerseSettings : public UDeveloperSettings
+{
+ GENERATED_BODY()
+
+public:
+ virtual FName GetCategoryName() const override { return TEXT("Game"); }
+
+ /** Full (default) or Reduced: no blood, finishers cut away (README Gore). */
+ UPROPERTY(Config, EditAnywhere, BlueprintReadOnly, Category = "Gore")
+ EVerseGoreLevel GoreLevel = EVerseGoreLevel::Full;
+};
diff --git a/unreal/Verse/Source/Verse/Verse.Build.cs b/unreal/Verse/Source/Verse/Verse.Build.cs
new file mode 100644
index 0000000000..95e2d48d03
--- /dev/null
+++ b/unreal/Verse/Source/Verse/Verse.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Primary game module: may depend on every runtime module except VerseHarness.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class Verse : ModuleRules
+{
+ public Verse(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "NetCore", "DeveloperSettings", "EngineSettings" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge", "VerseMovement", "VerseDestruction", "VerseCombat", "VerseGore", "VerseDecks", "VerseCrew", "VerseScreens", "VerseBot", "VerseUI", "VerseStream" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseBot/Private/Tests/VerseBotSmokeTest.cpp b/unreal/Verse/Source/VerseBot/Private/Tests/VerseBotSmokeTest.cpp
new file mode 100644
index 0000000000..3a91af6472
--- /dev/null
+++ b/unreal/Verse/Source/VerseBot/Private/Tests/VerseBotSmokeTest.cpp
@@ -0,0 +1,27 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Bot.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseBotSmokeTest, "Verse.Bot.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseBotSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseMovement"),
+ TEXT("VerseCombat"),
+ TEXT("VerseDestruction"),
+ TEXT("VerseBot"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseBot/Private/VerseBotModule.cpp b/unreal/Verse/Source/VerseBot/Private/VerseBotModule.cpp
new file mode 100644
index 0000000000..c397488240
--- /dev/null
+++ b/unreal/Verse/Source/VerseBot/Private/VerseBotModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseBotModule.h"
+
+void FVerseBotModule::StartupModule()
+{
+}
+
+void FVerseBotModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseBotModule, VerseBot);
diff --git a/unreal/Verse/Source/VerseBot/Public/VerseBotModule.h b/unreal/Verse/Source/VerseBot/Public/VerseBotModule.h
new file mode 100644
index 0000000000..c8f315d0ba
--- /dev/null
+++ b/unreal/Verse/Source/VerseBot/Public/VerseBotModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseBot. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseBotModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseBot/VerseBot.Build.cs b/unreal/Verse/Source/VerseBot/VerseBot.Build.cs
new file mode 100644
index 0000000000..0edd4fb37b
--- /dev/null
+++ b/unreal/Verse/Source/VerseBot/VerseBot.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseBot : ModuleRules
+{
+ public VerseBot(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseMovement", "VerseCombat", "VerseDestruction" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseBridge/Private/Tests/VerseBridgeSmokeTest.cpp b/unreal/Verse/Source/VerseBridge/Private/Tests/VerseBridgeSmokeTest.cpp
new file mode 100644
index 0000000000..28a9f9e73a
--- /dev/null
+++ b/unreal/Verse/Source/VerseBridge/Private/Tests/VerseBridgeSmokeTest.cpp
@@ -0,0 +1,24 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Bridge.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseBridgeSmokeTest, "Verse.Bridge.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseBridgeSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseBridge/Private/VerseBridgeModule.cpp b/unreal/Verse/Source/VerseBridge/Private/VerseBridgeModule.cpp
new file mode 100644
index 0000000000..9829f1eea5
--- /dev/null
+++ b/unreal/Verse/Source/VerseBridge/Private/VerseBridgeModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseBridgeModule.h"
+
+void FVerseBridgeModule::StartupModule()
+{
+}
+
+void FVerseBridgeModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseBridgeModule, VerseBridge);
diff --git a/unreal/Verse/Source/VerseBridge/Public/VerseBridgeModule.h b/unreal/Verse/Source/VerseBridge/Public/VerseBridgeModule.h
new file mode 100644
index 0000000000..8b69c47faf
--- /dev/null
+++ b/unreal/Verse/Source/VerseBridge/Public/VerseBridgeModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseBridge. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseBridgeModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseBridge/VerseBridge.Build.cs b/unreal/Verse/Source/VerseBridge/VerseBridge.Build.cs
new file mode 100644
index 0000000000..68e509ed18
--- /dev/null
+++ b/unreal/Verse/Source/VerseBridge/VerseBridge.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseBridge : ModuleRules
+{
+ public VerseBridge(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseCombat/Private/Damage/VerseCombatStateComponent.cpp b/unreal/Verse/Source/VerseCombat/Private/Damage/VerseCombatStateComponent.cpp
new file mode 100644
index 0000000000..d7c8fab135
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/Private/Damage/VerseCombatStateComponent.cpp
@@ -0,0 +1,21 @@
+#include "Damage/VerseCombatStateComponent.h"
+
+#include "Net/Core/PushModel/PushModel.h"
+#include "Net/UnrealNetwork.h"
+
+UVerseCombatStateComponent::UVerseCombatStateComponent()
+{
+ PrimaryComponentTick.bCanEverTick = false;
+ SetIsReplicatedByDefault(true);
+}
+
+void UVerseCombatStateComponent::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
+{
+ Super::GetLifetimeReplicatedProps(OutLifetimeProps);
+
+ FDoRepLifetimeParams Params;
+ Params.bIsPushBased = true;
+ DOREPLIFETIME_WITH_PARAMS_FAST(UVerseCombatStateComponent, Phase, Params);
+ DOREPLIFETIME_WITH_PARAMS_FAST(UVerseCombatStateComponent, bSpawnProtected, Params);
+ DOREPLIFETIME_WITH_PARAMS_FAST(UVerseCombatStateComponent, SpawnProtectedUntil, Params);
+}
diff --git a/unreal/Verse/Source/VerseCombat/Private/Tests/VerseCombatSmokeTest.cpp b/unreal/Verse/Source/VerseCombat/Private/Tests/VerseCombatSmokeTest.cpp
new file mode 100644
index 0000000000..c8e26fa8b6
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/Private/Tests/VerseCombatSmokeTest.cpp
@@ -0,0 +1,33 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+#include "Damage/VerseCombatStateComponent.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Combat.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseCombatSmokeTest, "Verse.Combat.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseCombatSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseMovement"),
+ TEXT("VerseDestruction"),
+ TEXT("VerseCombat"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+
+ const UVerseCombatStateComponent* State = GetDefault<UVerseCombatStateComponent>();
+ TestEqual(TEXT("combat state starts Alive"), State->Phase, EVerseCombatPhase::Alive);
+ TestFalse(TEXT("spawn protection starts off"), State->bSpawnProtected);
+ TestEqual(TEXT("spawn protection end starts at 0"), State->SpawnProtectedUntil, 0.f);
+ TestTrue(TEXT("combat state replicates"), State->GetIsReplicated());
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseCombat/Private/VerseCombatModule.cpp b/unreal/Verse/Source/VerseCombat/Private/VerseCombatModule.cpp
new file mode 100644
index 0000000000..152e52adcf
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/Private/VerseCombatModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseCombatModule.h"
+
+void FVerseCombatModule::StartupModule()
+{
+}
+
+void FVerseCombatModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseCombatModule, VerseCombat);
diff --git a/unreal/Verse/Source/VerseCombat/Public/Damage/VerseCombatStateComponent.h b/unreal/Verse/Source/VerseCombat/Public/Damage/VerseCombatStateComponent.h
new file mode 100644
index 0000000000..ee0ab3c3db
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/Public/Damage/VerseCombatStateComponent.h
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "Combat/VerseCombatTypes.h"
+#include "Components/ActorComponent.h"
+#include "CoreMinimal.h"
+
+#include "VerseCombatStateComponent.generated.h"
+
+/**
+ * Combat state on the pawn (contracts/combat-state.md 2.1, 11.2). AVerseCharacter is a
+ * VerseMovement class, so the combat phase and spawn protection live here; the primary
+ * module's default pawn adds this component. Fields only: WP02 adds the behaviour.
+ * Replicated to all with the push model.
+ */
+UCLASS(ClassGroup = (Verse), meta = (BlueprintSpawnableComponent))
+class VERSECOMBAT_API UVerseCombatStateComponent : public UActorComponent
+{
+ GENERATED_BODY()
+
+public:
+ UVerseCombatStateComponent();
+
+ virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override;
+
+ UPROPERTY(Replicated, VisibleInstanceOnly, BlueprintReadOnly, Category = "Verse|Combat")
+ EVerseCombatPhase Phase = EVerseCombatPhase::Alive;
+
+ UPROPERTY(Replicated, VisibleInstanceOnly, BlueprintReadOnly, Category = "Verse|Combat")
+ bool bSpawnProtected = false;
+
+ /** Server time at which spawn protection ends (combat-state.md 9.3). */
+ UPROPERTY(Replicated, VisibleInstanceOnly, BlueprintReadOnly, Category = "Verse|Combat")
+ float SpawnProtectedUntil = 0.f;
+};
diff --git a/unreal/Verse/Source/VerseCombat/Public/VerseCombatModule.h b/unreal/Verse/Source/VerseCombat/Public/VerseCombatModule.h
new file mode 100644
index 0000000000..3d25888b61
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/Public/VerseCombatModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseCombat. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseCombatModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseCombat/VerseCombat.Build.cs b/unreal/Verse/Source/VerseCombat/VerseCombat.Build.cs
new file mode 100644
index 0000000000..acd5b3448a
--- /dev/null
+++ b/unreal/Verse/Source/VerseCombat/VerseCombat.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseCombat : ModuleRules
+{
+ public VerseCombat(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "NetCore" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseMovement", "VerseDestruction" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseCore/Private/Tests/VerseCoreSmokeTest.cpp b/unreal/Verse/Source/VerseCore/Private/Tests/VerseCoreSmokeTest.cpp
new file mode 100644
index 0000000000..0bae9b3aed
--- /dev/null
+++ b/unreal/Verse/Source/VerseCore/Private/Tests/VerseCoreSmokeTest.cpp
@@ -0,0 +1,38 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+#include "Combat/VerseCombatTypes.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Core.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseCoreSmokeTest, "Verse.Core.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseCoreSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+
+ // The enums the primary module and the combat stub need keep their frozen order.
+ const UEnum* Phase = StaticEnum<EVerseCombatPhase>();
+ if (TestNotNull(TEXT("EVerseCombatPhase is reflected"), Phase))
+ {
+ TestEqual(TEXT("EVerseCombatPhase entries"), Phase->NumEnums() - 1, 4);
+ TestEqual(TEXT("EVerseCombatPhase::Alive is 0"), Phase->GetValueByNameString(TEXT("Alive")), int64(0));
+ }
+ const UEnum* Gore = StaticEnum<EVerseGoreLevel>();
+ if (TestNotNull(TEXT("EVerseGoreLevel is reflected"), Gore))
+ {
+ TestEqual(TEXT("EVerseGoreLevel entries"), Gore->NumEnums() - 1, 2);
+ TestEqual(TEXT("EVerseGoreLevel::Full is 0"), Gore->GetValueByNameString(TEXT("Full")), int64(0));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseCore/Private/VerseCoreModule.cpp b/unreal/Verse/Source/VerseCore/Private/VerseCoreModule.cpp
new file mode 100644
index 0000000000..f7e0fb4cfa
--- /dev/null
+++ b/unreal/Verse/Source/VerseCore/Private/VerseCoreModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseCoreModule.h"
+
+void FVerseCoreModule::StartupModule()
+{
+}
+
+void FVerseCoreModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseCoreModule, VerseCore);
diff --git a/unreal/Verse/Source/VerseCore/Public/Combat/VerseCombatTypes.h b/unreal/Verse/Source/VerseCore/Public/Combat/VerseCombatTypes.h
new file mode 100644
index 0000000000..3156b3d243
--- /dev/null
+++ b/unreal/Verse/Source/VerseCore/Public/Combat/VerseCombatTypes.h
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "CoreMinimal.h"
+
+#include "VerseCombatTypes.generated.h"
+
+// Shared combat enums (contracts/combat-state.md 11.1). The order of every entry
+// is frozen: replicated values and saved settings depend on it. G0.3 adds the
+// remaining types of 11.1 to this file.
+
+UENUM(BlueprintType)
+enum class EVerseCombatPhase : uint8
+{
+ Alive,
+ Dead,
+ FinisherAttacker,
+ FinisherVictim
+};
+
+UENUM(BlueprintType)
+enum class EVerseGoreLevel : uint8
+{
+ Full,
+ Reduced
+};
diff --git a/unreal/Verse/Source/VerseCore/Public/VerseCoreModule.h b/unreal/Verse/Source/VerseCore/Public/VerseCoreModule.h
new file mode 100644
index 0000000000..ac7305893b
--- /dev/null
+++ b/unreal/Verse/Source/VerseCore/Public/VerseCoreModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseCore. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseCoreModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseCore/VerseCore.Build.cs b/unreal/Verse/Source/VerseCore/VerseCore.Build.cs
new file mode 100644
index 0000000000..aafa4529ac
--- /dev/null
+++ b/unreal/Verse/Source/VerseCore/VerseCore.Build.cs
@@ -0,0 +1,12 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseCore : ModuleRules
+{
+ public VerseCore(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseCrew/Private/Tests/VerseCrewSmokeTest.cpp b/unreal/Verse/Source/VerseCrew/Private/Tests/VerseCrewSmokeTest.cpp
new file mode 100644
index 0000000000..0035b0f7bf
--- /dev/null
+++ b/unreal/Verse/Source/VerseCrew/Private/Tests/VerseCrewSmokeTest.cpp
@@ -0,0 +1,26 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Crew.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseCrewSmokeTest, "Verse.Crew.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseCrewSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseDecks"),
+ TEXT("VerseCrew"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseCrew/Private/VerseCrewModule.cpp b/unreal/Verse/Source/VerseCrew/Private/VerseCrewModule.cpp
new file mode 100644
index 0000000000..e2dba6e4d9
--- /dev/null
+++ b/unreal/Verse/Source/VerseCrew/Private/VerseCrewModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseCrewModule.h"
+
+void FVerseCrewModule::StartupModule()
+{
+}
+
+void FVerseCrewModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseCrewModule, VerseCrew);
diff --git a/unreal/Verse/Source/VerseCrew/Public/VerseCrewModule.h b/unreal/Verse/Source/VerseCrew/Public/VerseCrewModule.h
new file mode 100644
index 0000000000..c8be39bda5
--- /dev/null
+++ b/unreal/Verse/Source/VerseCrew/Public/VerseCrewModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseCrew. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseCrewModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseCrew/VerseCrew.Build.cs b/unreal/Verse/Source/VerseCrew/VerseCrew.Build.cs
new file mode 100644
index 0000000000..cbccf57b75
--- /dev/null
+++ b/unreal/Verse/Source/VerseCrew/VerseCrew.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseCrew : ModuleRules
+{
+ public VerseCrew(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge", "VerseDecks" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseDecks/Private/Tests/VerseDecksSmokeTest.cpp b/unreal/Verse/Source/VerseDecks/Private/Tests/VerseDecksSmokeTest.cpp
new file mode 100644
index 0000000000..6553f7ecf9
--- /dev/null
+++ b/unreal/Verse/Source/VerseDecks/Private/Tests/VerseDecksSmokeTest.cpp
@@ -0,0 +1,25 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Decks.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseDecksSmokeTest, "Verse.Decks.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseDecksSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseDecks"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseDecks/Private/VerseDecksModule.cpp b/unreal/Verse/Source/VerseDecks/Private/VerseDecksModule.cpp
new file mode 100644
index 0000000000..97bc85f1ab
--- /dev/null
+++ b/unreal/Verse/Source/VerseDecks/Private/VerseDecksModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseDecksModule.h"
+
+void FVerseDecksModule::StartupModule()
+{
+}
+
+void FVerseDecksModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseDecksModule, VerseDecks);
diff --git a/unreal/Verse/Source/VerseDecks/Public/VerseDecksModule.h b/unreal/Verse/Source/VerseDecks/Public/VerseDecksModule.h
new file mode 100644
index 0000000000..bd094d7781
--- /dev/null
+++ b/unreal/Verse/Source/VerseDecks/Public/VerseDecksModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseDecks. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseDecksModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseDecks/VerseDecks.Build.cs b/unreal/Verse/Source/VerseDecks/VerseDecks.Build.cs
new file mode 100644
index 0000000000..f30a1c17dc
--- /dev/null
+++ b/unreal/Verse/Source/VerseDecks/VerseDecks.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseDecks : ModuleRules
+{
+ public VerseDecks(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseDestruction/Private/Tests/VerseDestructionSmokeTest.cpp b/unreal/Verse/Source/VerseDestruction/Private/Tests/VerseDestructionSmokeTest.cpp
new file mode 100644
index 0000000000..54b9cd159c
--- /dev/null
+++ b/unreal/Verse/Source/VerseDestruction/Private/Tests/VerseDestructionSmokeTest.cpp
@@ -0,0 +1,24 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Destruction.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseDestructionSmokeTest, "Verse.Destruction.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseDestructionSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseDestruction"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseDestruction/Private/VerseDestructionModule.cpp b/unreal/Verse/Source/VerseDestruction/Private/VerseDestructionModule.cpp
new file mode 100644
index 0000000000..bb4d39d352
--- /dev/null
+++ b/unreal/Verse/Source/VerseDestruction/Private/VerseDestructionModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseDestructionModule.h"
+
+void FVerseDestructionModule::StartupModule()
+{
+}
+
+void FVerseDestructionModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseDestructionModule, VerseDestruction);
diff --git a/unreal/Verse/Source/VerseDestruction/Public/VerseDestructionModule.h b/unreal/Verse/Source/VerseDestruction/Public/VerseDestructionModule.h
new file mode 100644
index 0000000000..2e3ae2e4b1
--- /dev/null
+++ b/unreal/Verse/Source/VerseDestruction/Public/VerseDestructionModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseDestruction. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseDestructionModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseDestruction/VerseDestruction.Build.cs b/unreal/Verse/Source/VerseDestruction/VerseDestruction.Build.cs
new file mode 100644
index 0000000000..a84722e233
--- /dev/null
+++ b/unreal/Verse/Source/VerseDestruction/VerseDestruction.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseDestruction : ModuleRules
+{
+ public VerseDestruction(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseEditor.Target.cs b/unreal/Verse/Source/VerseEditor.Target.cs
new file mode 100644
index 0000000000..1d1fabd336
--- /dev/null
+++ b/unreal/Verse/Source/VerseEditor.Target.cs
@@ -0,0 +1,15 @@
+using UnrealBuildTool;
+using System.Collections.Generic;
+
+// Editor target: the primary module plus VerseHarness (automation tests,
+// Gauntlet controllers, capture). The Game target never carries the harness.
+public class VerseEditorTarget : TargetRules
+{
+ public VerseEditorTarget(TargetInfo Target) : base(Target)
+ {
+ Type = TargetType.Editor;
+ DefaultBuildSettings = BuildSettingsVersion.Latest;
+ IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
+ ExtraModuleNames.AddRange(new string[] { "Verse", "VerseHarness" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseGore/Private/Tests/VerseGoreSmokeTest.cpp b/unreal/Verse/Source/VerseGore/Private/Tests/VerseGoreSmokeTest.cpp
new file mode 100644
index 0000000000..c1340ee1c0
--- /dev/null
+++ b/unreal/Verse/Source/VerseGore/Private/Tests/VerseGoreSmokeTest.cpp
@@ -0,0 +1,24 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Gore.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseGoreSmokeTest, "Verse.Gore.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseGoreSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseGore"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseGore/Private/VerseGoreModule.cpp b/unreal/Verse/Source/VerseGore/Private/VerseGoreModule.cpp
new file mode 100644
index 0000000000..b835b9c47d
--- /dev/null
+++ b/unreal/Verse/Source/VerseGore/Private/VerseGoreModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseGoreModule.h"
+
+void FVerseGoreModule::StartupModule()
+{
+}
+
+void FVerseGoreModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseGoreModule, VerseGore);
diff --git a/unreal/Verse/Source/VerseGore/Public/VerseGoreModule.h b/unreal/Verse/Source/VerseGore/Public/VerseGoreModule.h
new file mode 100644
index 0000000000..2e8cd04a2f
--- /dev/null
+++ b/unreal/Verse/Source/VerseGore/Public/VerseGoreModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseGore. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseGoreModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseGore/VerseGore.Build.cs b/unreal/Verse/Source/VerseGore/VerseGore.Build.cs
new file mode 100644
index 0000000000..499abc4658
--- /dev/null
+++ b/unreal/Verse/Source/VerseGore/VerseGore.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseGore : ModuleRules
+{
+ public VerseGore(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseHarness/Private/Tests/VerseHarnessSmokeTest.cpp b/unreal/Verse/Source/VerseHarness/Private/Tests/VerseHarnessSmokeTest.cpp
new file mode 100644
index 0000000000..4c2921a7ed
--- /dev/null
+++ b/unreal/Verse/Source/VerseHarness/Private/Tests/VerseHarnessSmokeTest.cpp
@@ -0,0 +1,36 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Harness.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseHarnessSmokeTest, "Verse.Harness.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseHarnessSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("Verse"),
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseMovement"),
+ TEXT("VerseDestruction"),
+ TEXT("VerseCombat"),
+ TEXT("VerseGore"),
+ TEXT("VerseDecks"),
+ TEXT("VerseCrew"),
+ TEXT("VerseScreens"),
+ TEXT("VerseBot"),
+ TEXT("VerseUI"),
+ TEXT("VerseStream"),
+ TEXT("VerseHarness"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseHarness/Private/VerseHarnessModule.cpp b/unreal/Verse/Source/VerseHarness/Private/VerseHarnessModule.cpp
new file mode 100644
index 0000000000..972ae7874c
--- /dev/null
+++ b/unreal/Verse/Source/VerseHarness/Private/VerseHarnessModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseHarnessModule.h"
+
+void FVerseHarnessModule::StartupModule()
+{
+}
+
+void FVerseHarnessModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseHarnessModule, VerseHarness);
diff --git a/unreal/Verse/Source/VerseHarness/Public/VerseHarnessModule.h b/unreal/Verse/Source/VerseHarness/Public/VerseHarnessModule.h
new file mode 100644
index 0000000000..828bbeaa69
--- /dev/null
+++ b/unreal/Verse/Source/VerseHarness/Public/VerseHarnessModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseHarness. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseHarnessModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseHarness/VerseHarness.Build.cs b/unreal/Verse/Source/VerseHarness/VerseHarness.Build.cs
new file mode 100644
index 0000000000..1e31e16557
--- /dev/null
+++ b/unreal/Verse/Source/VerseHarness/VerseHarness.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// DeveloperTool module, Editor target only: may depend on every runtime module.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseHarness : ModuleRules
+{
+ public VerseHarness(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "Verse", "VerseCore", "VerseBridge", "VerseMovement", "VerseDestruction", "VerseCombat", "VerseGore", "VerseDecks", "VerseCrew", "VerseScreens", "VerseBot", "VerseUI", "VerseStream" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseMovement/Private/Tests/VerseMovementSmokeTest.cpp b/unreal/Verse/Source/VerseMovement/Private/Tests/VerseMovementSmokeTest.cpp
new file mode 100644
index 0000000000..4155a31aab
--- /dev/null
+++ b/unreal/Verse/Source/VerseMovement/Private/Tests/VerseMovementSmokeTest.cpp
@@ -0,0 +1,24 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Movement.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseMovementSmokeTest, "Verse.Movement.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseMovementSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseMovement"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseMovement/Private/VerseMovementModule.cpp b/unreal/Verse/Source/VerseMovement/Private/VerseMovementModule.cpp
new file mode 100644
index 0000000000..28534c7d97
--- /dev/null
+++ b/unreal/Verse/Source/VerseMovement/Private/VerseMovementModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseMovementModule.h"
+
+void FVerseMovementModule::StartupModule()
+{
+}
+
+void FVerseMovementModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseMovementModule, VerseMovement);
diff --git a/unreal/Verse/Source/VerseMovement/Public/VerseMovementModule.h b/unreal/Verse/Source/VerseMovement/Public/VerseMovementModule.h
new file mode 100644
index 0000000000..07d48746c2
--- /dev/null
+++ b/unreal/Verse/Source/VerseMovement/Public/VerseMovementModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseMovement. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseMovementModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseMovement/VerseMovement.Build.cs b/unreal/Verse/Source/VerseMovement/VerseMovement.Build.cs
new file mode 100644
index 0000000000..7ccf6588af
--- /dev/null
+++ b/unreal/Verse/Source/VerseMovement/VerseMovement.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseMovement : ModuleRules
+{
+ public VerseMovement(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseScreens/Private/Tests/VerseScreensSmokeTest.cpp b/unreal/Verse/Source/VerseScreens/Private/Tests/VerseScreensSmokeTest.cpp
new file mode 100644
index 0000000000..3a943d084c
--- /dev/null
+++ b/unreal/Verse/Source/VerseScreens/Private/Tests/VerseScreensSmokeTest.cpp
@@ -0,0 +1,26 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Screens.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseScreensSmokeTest, "Verse.Screens.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseScreensSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseDecks"),
+ TEXT("VerseScreens"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseScreens/Private/VerseScreensModule.cpp b/unreal/Verse/Source/VerseScreens/Private/VerseScreensModule.cpp
new file mode 100644
index 0000000000..c0152fdf72
--- /dev/null
+++ b/unreal/Verse/Source/VerseScreens/Private/VerseScreensModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseScreensModule.h"
+
+void FVerseScreensModule::StartupModule()
+{
+}
+
+void FVerseScreensModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseScreensModule, VerseScreens);
diff --git a/unreal/Verse/Source/VerseScreens/Public/VerseScreensModule.h b/unreal/Verse/Source/VerseScreens/Public/VerseScreensModule.h
new file mode 100644
index 0000000000..1aa0a3da2f
--- /dev/null
+++ b/unreal/Verse/Source/VerseScreens/Public/VerseScreensModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseScreens. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseScreensModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseScreens/VerseScreens.Build.cs b/unreal/Verse/Source/VerseScreens/VerseScreens.Build.cs
new file mode 100644
index 0000000000..0a28e7b1a9
--- /dev/null
+++ b/unreal/Verse/Source/VerseScreens/VerseScreens.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseScreens : ModuleRules
+{
+ public VerseScreens(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge", "VerseDecks" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseStream/Private/Tests/VerseStreamSmokeTest.cpp b/unreal/Verse/Source/VerseStream/Private/Tests/VerseStreamSmokeTest.cpp
new file mode 100644
index 0000000000..c7f9d9a8ad
--- /dev/null
+++ b/unreal/Verse/Source/VerseStream/Private/Tests/VerseStreamSmokeTest.cpp
@@ -0,0 +1,25 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.Stream.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseStreamSmokeTest, "Verse.Stream.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseStreamSmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseStream"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseStream/Private/VerseStreamModule.cpp b/unreal/Verse/Source/VerseStream/Private/VerseStreamModule.cpp
new file mode 100644
index 0000000000..48e08cdcce
--- /dev/null
+++ b/unreal/Verse/Source/VerseStream/Private/VerseStreamModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseStreamModule.h"
+
+void FVerseStreamModule::StartupModule()
+{
+}
+
+void FVerseStreamModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseStreamModule, VerseStream);
diff --git a/unreal/Verse/Source/VerseStream/Public/VerseStreamModule.h b/unreal/Verse/Source/VerseStream/Public/VerseStreamModule.h
new file mode 100644
index 0000000000..2c2b38567f
--- /dev/null
+++ b/unreal/Verse/Source/VerseStream/Public/VerseStreamModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseStream. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseStreamModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseStream/VerseStream.Build.cs b/unreal/Verse/Source/VerseStream/VerseStream.Build.cs
new file mode 100644
index 0000000000..4ce968a197
--- /dev/null
+++ b/unreal/Verse/Source/VerseStream/VerseStream.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseStream : ModuleRules
+{
+ public VerseStream(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge" });
+ }
+}
diff --git a/unreal/Verse/Source/VerseUI/Private/Tests/VerseUISmokeTest.cpp b/unreal/Verse/Source/VerseUI/Private/Tests/VerseUISmokeTest.cpp
new file mode 100644
index 0000000000..4e4106c6c3
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/Tests/VerseUISmokeTest.cpp
@@ -0,0 +1,28 @@
+#include "Misc/AutomationTest.h"
+#include "Modules/ModuleManager.h"
+
+#if WITH_DEV_AUTOMATION_TESTS
+
+// Verse.UI.Smoke: proves the module and every module it depends on are loaded
+// (orchestration.md 0.2). "Automation RunTests Verse" runs one of these per module.
+IMPLEMENT_SIMPLE_AUTOMATION_TEST(FVerseUISmokeTest, "Verse.UI.Smoke",
+ EAutomationTestFlags_ApplicationContextMask | EAutomationTestFlags::EngineFilter)
+
+bool FVerseUISmokeTest::RunTest(const FString& Parameters)
+{
+ const TCHAR* Modules[] = {
+ TEXT("VerseCore"),
+ TEXT("VerseBridge"),
+ TEXT("VerseCombat"),
+ TEXT("VerseCrew"),
+ TEXT("VerseDecks"),
+ TEXT("VerseUI"),
+ };
+ for (const TCHAR* Name : Modules)
+ {
+ TestTrue(FString::Printf(TEXT("module %s is loaded"), Name), FModuleManager::Get().IsModuleLoaded(Name));
+ }
+ return true;
+}
+
+#endif // WITH_DEV_AUTOMATION_TESTS
diff --git a/unreal/Verse/Source/VerseUI/Private/VerseUIModule.cpp b/unreal/Verse/Source/VerseUI/Private/VerseUIModule.cpp
new file mode 100644
index 0000000000..30f5a9382f
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Private/VerseUIModule.cpp
@@ -0,0 +1,11 @@
+#include "VerseUIModule.h"
+
+void FVerseUIModule::StartupModule()
+{
+}
+
+void FVerseUIModule::ShutdownModule()
+{
+}
+
+IMPLEMENT_MODULE(FVerseUIModule, VerseUI);
diff --git a/unreal/Verse/Source/VerseUI/Public/VerseUIModule.h b/unreal/Verse/Source/VerseUI/Public/VerseUIModule.h
new file mode 100644
index 0000000000..a31aadf444
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/Public/VerseUIModule.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "Modules/ModuleManager.h"
+
+/** Runtime module VerseUI. Scope: see docs/verse/unreal/architecture.md. */
+class FVerseUIModule : public IModuleInterface
+{
+public:
+ virtual void StartupModule() override;
+ virtual void ShutdownModule() override;
+};
diff --git a/unreal/Verse/Source/VerseUI/VerseUI.Build.cs b/unreal/Verse/Source/VerseUI/VerseUI.Build.cs
new file mode 100644
index 0000000000..650ebf81aa
--- /dev/null
+++ b/unreal/Verse/Source/VerseUI/VerseUI.Build.cs
@@ -0,0 +1,13 @@
+using UnrealBuildTool;
+
+// Verse dependencies are exactly the edges of architecture.md section 2.
+// A new Verse edge is a contract change; scripts/unreal/check_build_dag.py fails on any other.
+public class VerseUI : ModuleRules
+{
+ public VerseUI(ReadOnlyTargetRules Target) : base(Target)
+ {
+ PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
+ PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine" });
+ PublicDependencyModuleNames.AddRange(new string[] { "VerseCore", "VerseBridge", "VerseCombat", "VerseCrew", "VerseDecks" });
+ }
+}
diff --git a/unreal/Verse/Verse.uproject b/unreal/Verse/Verse.uproject
new file mode 100644
index 0000000000..29d1b5e9d9
--- /dev/null
+++ b/unreal/Verse/Verse.uproject
@@ -0,0 +1,143 @@
+{
+ "FileVersion": 3,
+ "EngineAssociation": "5.7",
+ "Category": "",
+ "Description": "The Dodaios Verse",
+ "Modules": [
+ {
+ "Name": "Verse",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseCore",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseBridge",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseMovement",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseDestruction",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseCombat",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseGore",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseDecks",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseCrew",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseScreens",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseBot",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseUI",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseStream",
+ "Type": "Runtime",
+ "LoadingPhase": "Default"
+ },
+ {
+ "Name": "VerseHarness",
+ "Type": "DeveloperTool",
+ "LoadingPhase": "Default",
+ "TargetAllowList": [
+ "Editor"
+ ]
+ }
+ ],
+ "Plugins": [
+ {
+ "Name": "GameplayAbilities",
+ "Enabled": true
+ },
+ {
+ "Name": "StateTree",
+ "Enabled": true
+ },
+ {
+ "Name": "GameplayStateTree",
+ "Enabled": true
+ },
+ {
+ "Name": "EnhancedInput",
+ "Enabled": true
+ },
+ {
+ "Name": "PixelStreaming2",
+ "Enabled": true
+ },
+ {
+ "Name": "Iris",
+ "Enabled": true
+ },
+ {
+ "Name": "GeometryCollectionPlugin",
+ "Enabled": true
+ },
+ {
+ "Name": "ChaosSolverPlugin",
+ "Enabled": true
+ },
+ {
+ "Name": "Fracture",
+ "Enabled": true
+ },
+ {
+ "Name": "MotionWarping",
+ "Enabled": true
+ },
+ {
+ "Name": "CommonUI",
+ "Enabled": true
+ },
+ {
+ "Name": "PythonScriptPlugin",
+ "Enabled": true
+ },
+ {
+ "Name": "EditorScriptingUtilities",
+ "Enabled": true
+ },
+ {
+ "Name": "Mover",
+ "Enabled": false
+ },
+ {
+ "Name": "NetworkPrediction",
+ "Enabled": false
+ }
+ ]
+}