1.5 KiB
1.5 KiB
AGENTS.md
Required Validation After Every Change
All agents working in this repository must run validation after each code change before marking work complete.
Required steps:
- Run full repo build:
./build.ps1
- Run shared tests:
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
- Run tray tests:
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
If a command fails:
- Fix the issue.
- Re-run the failed command.
- Re-run all required validation commands before completion.
Notes:
- If a build/test is blocked by an environmental lock (for example running executable locking output assemblies), stop/close the locking process and rerun.
- In linked git worktrees, set
OPENCLAW_REPO_ROOTto the worktree path before running tests that discover the repository root, for example:$env:OPENCLAW_REPO_ROOT='D:\github\moltbot-windows-hub.<worktree-name>'
- Tray tests must isolate
SettingsManagerfrom real user settings. Do not usenew SettingsManager()in tests unless the test intentionally reads%APPDATA%\OpenClawTray\settings.json; pass a temp settings directory or setOPENCLAW_TRAY_DATA_DIRbefore the test process starts. - Prefer isolated worktrees for PR validation. Use
git-wtfor worktree workflows;wt.exemay resolve to WorkTrunk instead of Windows Terminal, so use the full Windows Terminal path when explicitly launching Terminal. - Do not claim completion without reporting validation results.