The experimental TeamForge source is public for testing, review, security feedback, and contribution.
This page is the repository's source checkout, build, and validation guide. For question-to-file navigation and code ownership, use CODEMAP.md. For the end-to-end conceptual flow, use HOW_IT_WORKS.md. For coding-agent instructions, use ../AGENTS.md.
Source tree
unity-package/com.eunsung.teamforge/— Unity Editor package source and Editor testsserver/— realtime/session authority and Project Coordinator source/testsproject-peer/— Project bootstrap, direct transfer, trust, staging and activation source/testslauncher/— Windows Guest Launcher source/tests; generatedwin-x64/release output is not committed in a normal source checkoutscripts/— source validation, Test Lab, release validation, packaging and development helpersunity-project/— minimal Unity project support files used by the source treedocs/— current documentation plus historical engineering records
Generated runtime payloads, packaged executables, release ZIPs/manifests, local credentials, private keys, and machine-specific state are intentionally not canonical source files.
Fresh-clone quick start
A normal public source checkout and a staged release candidate are different validation targets.
For the normal source-development path:
npm run install:all
npm run validate
npm test
npm run validateruns the public-source validator. It checks current source/document/release-contract consistency without requiring generated packaged Runtime/Launcher artifacts.npm testruns the repository's normal source regression suites plus workflow/documentation/engineering/Test-Lab contracts.npm run validate:releaseis for a fully staged release-candidate tree and is expected to require generated Runtime/Launcher/release evidence that a fresh clone intentionally does not contain.
If you are unsure which validation bundle matches a change, use the Test Lab as a discovery/orchestration layer:
npm run testlab -- list
npm run testlab -- plan all-local
npm run testlab -- plan unity
npm run testlab -- run source
npm run testlab -- run launcher
npm run testlab -- run all-local
Test Lab calls the owning tests/validators rather than reimplementing their assertions. Environment-dependent Unity, exact-release, and physical-field lanes remain external/manual evidence and are not converted into PASS merely because they appear in a plan. See TEST_LAB.md.
On Windows, the source-oriented verification path is also available through:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\teamforge.ps1 verify
A fully staged release tree may use teamforge.ps1 verify-release instead.
Launcher source checks
Launcher checks span both Node and .NET surfaces:
node --test --test-reporter=spec launcher/test/runtime-loader.test.mjs
dotnet run --project launcher/tests/TeamForge.Launcher.Core.Tests/TeamForge.Launcher.Core.Tests.csproj -c Release
dotnet run --project launcher/tests/TeamForge.Diagnostics.Tests/TeamForge.Diagnostics.Tests.csproj -c Release
dotnet restore launcher/src/TeamForge.Launcher/TeamForge.Launcher.csproj -r win-x64
dotnet build launcher/src/TeamForge.Launcher/TeamForge.Launcher.csproj -c Release -r win-x64 --self-contained true --no-restore
The diagnostics contract specifically checks the privacy/safety boundary of the manually saved Launcher support bundle. Passing that test does not imply arbitrary child-process/Test-Lab logs are privacy-redacted.
The exact supported runtime/tool selections belong to ../release-contract.json, not to copied version numbers in this guide.
Unity tests
.github/workflows/unity-tests.yml provides the public GitHub Actions path for Unity EditMode and real-server E2E scenarios using the release-contract test line.
Local Unity execution is also available through the repository scripts when the matching Editor is installed.
Treat every test result according to the scenario and revision it actually executed. Local/CI Unity tests do not automatically prove a packaged two-PC Windows field path.
Module entry points
Read the module README that matches the part you are changing:
- Unity package README — Editor-facing collaboration behavior and Unity constraints
- Server README — realtime authority, authentication assumptions and Project metadata scope
- Project Peer README — direct Project Transfer, Host/Guest orchestration, trust and activation
- Launcher README — Windows Launcher source-vs-package layout, Runtime integrity, support-bundle diagnostics, path resilience, trust UX and Unity handoff
- CODEMAP.md — file-level routing from a question to the smallest relevant source/tests
Before changing architecture or trust boundaries
Read architecture.md before changing any of the following:
- authority or state ownership;
- object/project identity;
- transport or protocol routing;
- persistence/recovery semantics;
- Project transfer/trust/activation;
- filesystem/path containment;
- Runtime integrity or final Unity handoff.
Read architecture-decisions.md when you need the reason a current or historical design choice exists. Decisions explicitly marked superseded must not override the current architecture/source.
For security-sensitive changes, also read SECURITY.md and inspect the exact trust-boundary code plus its tests before making exploitability or safety claims.
Source-of-truth order
When documentation disagrees, use this order:
- current source and tests for implemented behavior;
- STATUS.md for current capability/release-readiness claims;
../release-contract.jsonfor exact runtime/tool/protocol/release selections;- current module READMEs and architecture.md for supported runtime/architecture boundaries;
- GitHub Issues for detailed live bug discussion;
../builds/README.mdand exact GitHub Release hashes for packaged artifact identity;- ROADMAP.md only for planned direction;
- phase/work-state/audit/evidence notes only for their recorded historical snapshots.
Pull-request validation expectations
For a normal source contribution:
- run the smallest relevant tests while iterating;
- use
npm run classify:change -- <paths...>when the validation surface is unclear; - use
npm run testlab -- plan <scenario>to understand named test/evidence lanes; - run
npm run validatefor repository/document contract changes; - run
npm testwhen the change affects normal source behavior; - run the relevant Launcher/.NET or Unity tests when those surfaces are touched;
- describe meaningful manual testing in the pull request when behavior cannot be fully automated;
- do not treat one happy-path result as proof of unrelated field or security guarantees.
See CONTRIBUTING.md for contribution policy, ENGINEERING_GUIDE.md for change planning/risk/evidence, and CODEMAP.md for the exact files/tests to inspect.
Historical records
docs/phases/, docs/work-state/, dated patch/test notes, and audits are retained because they preserve useful engineering history. They may describe superseded behavior.
Do not load historical notes first for an ordinary code task. Start with the smallest current module, its tests, the code map, and the current architecture/status documents; use historical records only when the history itself is relevant.