Version: 2.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: 2025-12-31 This section documents the data models for each core to ensure proper integration patterns are followed.
LO Core: Leadership Operating System Data Model
Status: ✅ Implemented (LO-01 through LO-09)Tables
| Table | Purpose | Key Relationships |
|---|---|---|
lo_accountability_chart | One per organization | organization_id → pf_organizations |
lo_role_definitions | Roles with 5-7 key functions | accountability_chart_id → lo_accountability_chart |
lo_seat_assignments | Person-to-role mappings | profile_id → pf_profiles (NOT hr_employees) |
lo_gwc_assessments | GWC scores per seat assignment | seat_assignment_id → lo_seat_assignments |
lo_vision_documents | Vision, mission, core values | organization_id → pf_organizations |
lo_strategic_goals | 3-year and 1-year goals | vision_document_id → lo_vision_documents |
lo_quarterly_rocks | 90-day priorities | organization_id → pf_organizations |
lo_rock_milestones | Sub-tasks within rocks | rock_id → lo_quarterly_rocks |
lo_rock_assignments | Team rock assignments | rock_id → lo_quarterly_rocks |
lo_todos | Task management | organization_id → pf_organizations |
lo_todo_comments | Task discussion threads | todo_id → lo_todos |
lo_scorecards | Weekly scorecard records | role_id → lo_role_definitions |
lo_scorecard_metrics | KPI definitions | organization_id → pf_organizations |
lo_scorecard_values | Weekly metric values | scorecard_id → lo_scorecards |
lo_meetings | Meeting records | organization_id → pf_organizations |
lo_meeting_attendees | Attendance tracking | meeting_id → lo_meetings |
lo_meeting_action_items | Action items linked to todos | meeting_id → lo_meetings, todo_id → lo_todos |
lo_issues | Issue records (IDR process) | organization_id → pf_organizations, meeting_id → lo_meetings |
lo_issue_discussions | Discussion threads for issues | issue_id → lo_issues |
lo_one_on_ones | 1-on-1 meeting records | organization_id → pf_organizations |
lo_feedback | Feedback entries | organization_id → pf_organizations, one_on_one_id → lo_one_on_ones |
lo_assessments | Assessment definitions | organization_id → pf_organizations, form_id → fw_forms |
lo_assessment_schedules | Distribution schedules | assessment_id → lo_assessments |
lo_assessment_recipients | Who receives assessments | schedule_id → lo_assessment_schedules |
lo_assessment_responses | Response tracking | schedule_id → lo_assessment_schedules, submission_id → fw_form_submissions |
lo_module_settings | Org-level LO configuration | organization_id → pf_organizations |
lo_knowledge_categories | Hierarchical category management | organization_id → pf_organizations |
lo_knowledge_articles | Knowledge base articles with full-text search | organization_id → pf_organizations |
lo_knowledge_article_versions | Automatic version history | article_id → lo_knowledge_articles |
Key Design Decisions
-
User References:
lo_seat_assignments.profile_idreferencespf_profiles.id(NOThr_employees.id)- Reason: Not all users in seats are employees; allows external board members, advisors, etc.
-
RLS Pattern: All tables use
lo_has_org_access()SECURITY DEFINER function- Prevents infinite recursion when checking
pf_user_role_assignments
- Prevents infinite recursion when checking
-
Vision-to-Role Alignment:
lo_role_definitions.vision_alignmentandstrategic_goal_ids[]- Links roles to strategic goals for accountability
-
Validation Triggers: Use triggers instead of CHECK constraints
lo_validate_meeting()- meeting_type and status validationlo_validate_meeting_attendee()- attendee status validationlo_validate_issue()- issue priority and status validationlo_validate_one_on_one()- 1-on-1 status validationlo_validate_feedback()- feedback type and GWC category validationlo_validate_assessment()- assessment type validationlo_validate_assessment_schedule()- schedule status and scope validationlo_validate_assessment_response()- response status validation
RLS Security Functions
Integration Points
Consumes:pf_profiles- User identity and display namespf_organizations- Multi-tenant contextpf_user_role_assignments- RBAC (via SECURITY DEFINER function)fw_forms- Assessment forms (LO-09)
rock_completed- When rock is completed ✅todo_created- When task is created ✅todo_completed- When task is completed ✅todo_overdue- When task becomes overdue ✅scorecard_updated- When scorecard is updated ✅metric_threshold_breached- When metric breaches threshold ✅meeting_scheduled- When meeting is scheduled ✅meeting_completed- When meeting is completed ✅action_item_created- When action item created ✅issue_identified- When issue is identified ✅issue_resolved- When issue is resolved ✅assessment_distributed- When assessment is distributed ✅assessment_completed- When assessment is completed ✅
- LO-03: Rocks assigned to roles
- LO-04: To-dos from action items
- LO-05: Scorecards owned by roles
- LO-06: Meetings with agenda items
- LO-07: Issues linked to meetings
- LO-08: Feedback linked to roles
one_on_one_scheduled- When 1-on-1 is scheduledfeedback_submitted- When feedback is providedvision_updated- When vision is updatedstrategic_goal_created- When strategic goal is createdrock_created- When rock is createdrole_assigned- When person assigned to roleaccountability_chart_updated- When accountability chart structure changesknowledge_article_created- When knowledge article is createdprocess_updated- When process is updated
Related Documentation
- Platform Integration Layers - Platform layer integrations
- Event Contracts - Event-based integrations
- API Contracts - API-based integrations
- Cross-Core Integrations - Integration matrix
Next Review: 2026-03-03 (Quarterly)