Status: Accepted (in force). Reconstructed.

Context

Performance data is seen very differently by an employee (their own OKRs/reviews), a manager/HOD (their team), a peer/Arc (a specific nominee), and HR/admin (everyone + configuration). One controller can't cleanly express these access scopes.

Decision

Partition the surface by role: Performance_V2/{Admin,Manager,HOD,Employee,Arc}/* controllers and matching services (AdminPerformanceService, EmployeePerformanceService, ManagerOKRController, etc.). Each enforces its scope.

Consequences

Good: clear access boundaries; each role's endpoints are self-contained and auditable; reduces accidental over-exposure of others' reviews.

Bad / costs: the same concept is implemented per role (OKR read for Admin vs Manager vs Employee vs Arc) → duplication and drift risk; the surface is very large (90 + 61 + 50 + 36 + 32 + … endpoints); a change often touches several role variants.

Alternatives

Related

api-reference, surface-map §6.