register_schema
Register or update entity schemas with versioning, per-field merge policies, and global or user-specific scope, enabling consistent data storage and conflict resolution.
Instructions
Register a new schema or schema version. Supports both global and user-specific schemas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | User ID for user-specific schema (required if user_specific=true) | |
| activate | No | ||
| entity_type | Yes | ||
| user_specific | No | ||
| reducer_config | Yes | Per-field conflict-resolution config. merge_policies maps each field to a strategy: last_write (default — latest observed_at wins), highest_priority (the observation with the largest source_priority wins), most_specific, or merge_array; with an optional tie_breaker (observed_at | source_priority). Set highest_priority to honor source_priority — without it, source_priority is stored but ignored. | |
| schema_version | No | 1.0 | |
| schema_definition | Yes | Schema definition with fields object |