audit_undeclared_fragments
Identify raw fragment fields on observations that have no active schema declaration, returning per-entity-type counts and schema gap flags to prioritize schema updates.
Instructions
Report the accumulated undeclared raw_fragments awaiting schema declaration — fields stored on observations but excluded from the entity snapshot because no active schema declares them. Read-only; declares nothing. Returns, per entity_type, the undeclared fragment_keys with occurrence and affected-entity counts and a schema_missing flag (true when the type has stranded fragments but no active schema), plus total_entity_types / total_undeclared_fields rollups, in deterministic order (occurrences desc, affected desc, key asc; types by total occurrences desc). Optional entity_type scopes the audit to one type. The aggregate counterpart to the per-store unknown_fields signal: use it to triage the backlog before drafting update_schema_incremental / register_schema work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | ||
| entity_type | No | Restrict the audit to a single entity_type. |