Audit schema

This workflow creates a single source of truth for the platform's data models (DATA_DICTIONARY.md).

  1. Locate Schemas:
  2. Scan packages/modules/*/src/schema.ts (Standard pattern).
  3. Scan packages/modules/unified/*/src/schema.ts.

  4. Extract Definitions:

  5. Read the Zod definitions (z.object({...})).
  6. Extract Field Names, Types, and optional descriptions (.describe('...')).

  7. Generate Dictionary:

  8. Create knowledge/sd_platform_architecture_governance/artifacts/DATA_DICTIONARY.md.
  9. Group by Module (e.g., # Finance, # Property).
  10. listing: | Model | Field | Type | Notes |

  11. Drift Check:

  12. If the Dictionary already exists, compare the new scan against it.
  13. Flag any breaking changes (e.g., field type changed from string to number).