RateLimiterServiceTest (17): hit/isBlocked/reset/registerFailure, fail-open, sliding window, scope normalization. PermissionServiceTest (24): userHas, getUserPermissions, cache hit/miss/refresh, clearUserCache, CRUD, system permission protection. RoleServiceTest (9): createFromAdmin, updateFromAdmin, deleteByUuid, Admin role protection, duplicate code rejection. TenantServiceTest (8): CRUD, department-dependent deletion blocking. DepartmentServiceTest (14): listPaged scope filtering, groupActiveByTenantIds, createFromAdmin, deleteByUuid, syncTenants. MailServiceTest (8): send logging, MailerException handling, template metadata. UserLifecycleServiceTest (8): advisory locking, deactivation, deletion, snapshot failure skip, privileged user exclusion, manual trigger type. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agent System
This folder contains the technical assets for the multi-role workflow.
Structure:
contracts/: JSON schemas for role outputstemplates/: starter JSON payloadsprompts/: role-specific prompt baselineschecks/: guard catalog, quality gates, and review checklistsruns/: optional runtime artifacts (can stay untracked)
References:
- Planner standard:
tools/codex-skills/starterkit-planner/SKILL.md - Guardrails:
tools/codex-skills/core-guardrails/SKILL.md - Docs/Skills audit policy:
agent-system/checks/docs-skills-audit-policy.md