audit_undeclared_fragments
Report undeclared raw fragments stored on observations but excluded from entity snapshots. Get per-type counts and schema_missing flags to triage schema declaration backlog.
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 |
|---|---|---|---|
| entity_type | No | Restrict the audit to a single entity_type. | |
| user_id | No |