Follow the cleanroom boundary in docs/architecture.md. Implement gameplay from the repository's specifications; do not consult or derive code from OpenCiv2 or Civ2 reconstruction/decompilation sources. External source links, filenames and source-derived harnesses retained in validation/provenance sections are historical research records, not implementation or test inputs. Do not follow them to fill a missing algorithm detail; record a specification gap and resolve it through the behavioral contract or independent original-game observations. Required file/wire/data definitions in the specs remain implementation inputs even when documented in an appendix.
Before committing C# changes:
- Run
dotnet format OpenCiv2.slnx --no-restorefrom the repository root, plus the affected optional solution undersolutions/when applicable. - Review the diff and stage only intended changes; preserve partial staging.
- Run formatting verification and the checks appropriate to the affected projects. See docs/BUILDING.md and docs/testing/README.md.
For Lua-CSharp automation changes, run the shared native/browser task and resource tests. Do not format dependencies or generated build files.
Current project ownership is in docs/code-guide.md. Continue work from docs/implementation-plan.md; implemented foundation contracts do not imply the full specification is complete.