Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.5 KB

AGENTS.md

File metadata and controls

27 lines (22 loc) · 1.5 KB

Development workflow

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:

  1. Run dotnet format OpenCiv2.slnx --no-restore from the repository root, plus the affected optional solution under solutions/ when applicable.
  2. Review the diff and stage only intended changes; preserve partial staging.
  3. 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.