Audit schema
This workflow creates a single source of truth for the platform's data models (DATA_DICTIONARY.md).
- Locate Schemas:
- Scan
packages/modules/*/src/schema.ts(Standard pattern). -
Scan
packages/modules/unified/*/src/schema.ts. -
Extract Definitions:
- Read the Zod definitions (
z.object({...})). -
Extract Field Names, Types, and optional descriptions (
.describe('...')). -
Generate Dictionary:
- Create
knowledge/sd_platform_architecture_governance/artifacts/DATA_DICTIONARY.md. - Group by Module (e.g.,
# Finance,# Property). -
listing:
| Model | Field | Type | Notes | -
Drift Check:
- If the Dictionary already exists, compare the new scan against it.
- Flag any breaking changes (e.g., field type changed from string to number).