doc: Updated agents codestyle

This commit is contained in:
jamesread 2026-02-26 16:15:54 +00:00
parent 69c1276a13
commit e487288287
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,8 @@ If you are looking for OliveTin's AI policy, you can find it in `AI.md`.
- From repo root: `go run ./service` - From repo root: `go run ./service`
- Unit tests (Go): - Unit tests (Go):
- From repo root: `cd service && make unittests` - From repo root: `cd service && make unittests`
- Code style (after editing code in `service/`):
- From repo root: `cd service && make codestyle`
- Integration tests (Mocha + Selenium): - Integration tests (Mocha + Selenium):
- Single test: `cd integration-tests && npx --yes mocha test/general.mjs` - Single test: `cd integration-tests && npx --yes mocha test/general.mjs`
- All tests: `cd integration-tests && npx --yes mocha` - All tests: `cd integration-tests && npx --yes mocha`
@ -41,6 +43,7 @@ If you are looking for OliveTin's AI policy, you can find it in `AI.md`.
- Do not swallow errors; propagate or log meaningfully. - Do not swallow errors; propagate or log meaningfully.
- Match existing formatting; avoid unrelated reformatting. - Match existing formatting; avoid unrelated reformatting.
- Be safe around nils in executor steps (e.g., guard `req.Binding` and `req.Binding.Action`). - Be safe around nils in executor steps (e.g., guard `req.Binding` and `req.Binding.Action`).
- Cyclomatic complexity over 4 is not permitted.
### API and Execution Flow (High-level) ### API and Execution Flow (High-level)
1. Client calls Connect RPC (e.g., `Init`, `GetDashboard`, `StartAction`). 1. Client calls Connect RPC (e.g., `Init`, `GetDashboard`, `StartAction`).