Version: 1.0.0Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
Last Updated: 2026-03-20
Spec: HR-17 Employee Engagement
Constitution Reference: Section 1.2 (Core Independence), Section 1.3 (Integration Patterns)
Overview
HR-17 manages employee engagement surveys and exit interviews. It publishes events for survey completion and exit interview completion, and integrates with HR-03 (Offboarding) for exit interview workflows.Integration Points
Platform Foundation (PF) Dependencies
Required PF Features:- PF-08 (Forms): Survey forms, exit interview forms
- Integration Type: Platform Integration Layer
- Documentation: See PLATFORM_INTEGRATION_LAYERS.md
- Usage: Survey forms and exit interview forms use
@/platform/formsfor form embedding and submission handling
- PF-10 (Notifications): Survey reminders, completion notifications
- Integration Type: Platform Integration Layer
- Documentation: See PLATFORM_INTEGRATION_LAYERS.md
- Usage: Survey reminders and completion notifications via
@/platform/notifications
Consumer Core Dependencies (Downstream)
Internal HR Features:- HR-01 (Employee Directory): Employee context
- HR-03 (Offboarding): Exit interview integration
Event Contracts
Event: hr_survey_completed
Publisher: HR (HR-17)Subscribers: PF-10 (Notifications)
Status: 📝 Planned Purpose: Notify managers of survey completion for tracking participation Payload Schema:
Event: hr_exit_interview_completed
Publisher: HR (HR-17)Subscribers: HR-03 (Offboarding)
Status: 📝 Planned Purpose: Update offboarding workflow when exit interview completed Payload Schema:
Events Consumed
hr_employee_terminated
Publisher: HR-03 (Offboarding)Subscriber: HR-17 (Employee Engagement)
Status: 📝 Planned Purpose: Automatically trigger exit interview when employee terminated Integration: See CROSS_CORE_INTEGRATIONS.md for integration details
Platform Integration Layer Usage
Consumes:- PF-08 (Forms): Survey forms, exit interview forms via
@/platform/forms - PF-10 (Notifications): Survey reminders, completion notifications via
@/platform/notifications
Security Considerations
Multi-Tenancy
- ✅ RLS Enforcement: All
hr_surveysandhr_exit_interviewstables filtered byorganization_idvia RLS policies
Role-Based Access Control
- ✅ HR Admin: Full access to all surveys and exit interviews
- ✅ Manager: View survey results for own team (if permitted)
- ✅ Staff: Complete own surveys and exit interviews only
Data Protection
- ✅ PII Handling: Survey and exit interview responses may contain sensitive employee information; access controlled via RLS
- ✅ Anonymity: Anonymous surveys do not include
employee_idin responses - ✅ Audit Trail: All survey and exit interview changes logged via PF-04
Testing Requirements
- Event payload structure validation
- Event fires on trigger condition (survey completion, exit interview completion)
- Correct
organization_idincluded in all events - Subscribers handle events correctly (PF-10, HR-03)
- Anonymous survey handling works correctly (no employee_id)
- RLS policies enforce org isolation on survey and exit interview queries