diff --git a/AGENTS.md b/AGENTS.md index 440f0c0..2f43bce 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -118,6 +118,23 @@ This applies to: Physics constants (9.81f, 3.6f, π) and documented model parameters (Phase 2 cutoff = 30s) are NOT arbitrary defaults — they are legitimate parts of the physical model. +## 9. Git Commit Must Include DLL + +**Every commit must bundle the compiled CounterDrone.Core.dll.** Never leave DLL changes as a separate follow-up commit. The full commit flow: + +```bash +# 1. Run full test suite (builds Core.dll) +pwsh -Command "dotnet test test/unit/CounterDrone.Core.Tests/" + +# 2. Copy DLL to Unity plugin directories +cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll src/Unity/Assets/Plugins/CounterDrone.Core/ +cp src/CounterDrone.Core/bin/Debug/netstandard2.1/CounterDrone.Core.dll unity_plugins/ + +# 3. Commit everything at once +git add -A +git commit -m "..." +``` + --- **These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.