TeamForge 0.5.1 · Early Public Preview

Source workflow

Source checkout, build, fresh-clone validation, Launcher and Unity test entry points, and contributor verification workflow for TeamForge.

Canonical source docs/SOURCE.md · plain-text mirror

Generated from the same maintained repository documentation used by the public project records and machine-readable mirrors.

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

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

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:

Before changing architecture or trust boundaries

Read architecture.md before changing any of the following:

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:

  1. current source and tests for implemented behavior;
  2. STATUS.md for current capability/release-readiness claims;
  3. ../release-contract.json for exact runtime/tool/protocol/release selections;
  4. current module READMEs and architecture.md for supported runtime/architecture boundaries;
  5. GitHub Issues for detailed live bug discussion;
  6. ../builds/README.md and exact GitHub Release hashes for packaged artifact identity;
  7. ROADMAP.md only for planned direction;
  8. phase/work-state/audit/evidence notes only for their recorded historical snapshots.

Pull-request validation expectations

For a normal source contribution:

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.

On this page
Source treeFresh-clone quick startLauncher source checksUnity testsModule entry pointsBefore changing architecture or trust boundariesSource-of-truth orderPull-request validation expectationsHistorical records