Services folder guidance
- Service modules for backend logic live here. Add/update Jest tests under
test/interface/servicesto cover edge cases and integration points, keeping specs alongside the modules they validate; if a change cannot be tested meaningfully, document the rationale in the PR. - Keep service APIs aligned with Express routes in
../server/routesand the Swagger spec indocumentation/swagger.yaml. - Ensure any agent-facing logic stays consistent with the IDs and roles defined in
interface/server/ui/lib/agents.js.