Status: ✅ Implemented
Last Updated: 2026-02-27
Overview
PF-18 provides real-time organizational data synchronization and data lineage tracking across all cores. When org entities (departments, sites) change, affected modules are notified via sync events and lineage is automatically captured.Integration Pattern
Type: Event-Based + Platform LayerPublisher: PF (via
pg_notify on pf_org_data_sync_events INSERT)Consumer:
org-data-sync-consumer Edge FunctionChannel:
org_data_changes
Tables
Event Contract
Event:org_data_changedChannel:
org_data_changes (pg_notify)
Platform API
Import Path
Hooks
Components
Permissions
Edge Functions
Module Handler Interface
Cores implement handlers in the consumer edge function:hr, fa, rh. Cores implement real handlers as needed.
Routes
Deferred
- Phase 4: Advanced hierarchy features (
pf_org_hierarchiestable created but not consumed) - Partitioning on
pf_data_lineage(deferred until volume warrants) hr_employeeslineage trigger (deferred to avoid conflicts)