Skip to main content
Version: 1.0
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 Layer
Publisher: PF (via pg_notify on pf_org_data_sync_events INSERT)
Consumer: org-data-sync-consumer Edge Function
Channel: org_data_changes

Tables

Event Contract

Event: org_data_changed
Channel: 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:
Currently stub handlers for: hr, fa, rh. Cores implement real handlers as needed.

Routes

Deferred

  • Phase 4: Advanced hierarchy features (pf_org_hierarchies table created but not consumed)
  • Partitioning on pf_data_lineage (deferred until volume warrants)
  • hr_employees lineage trigger (deferred to avoid conflicts)