Synthetic Asset Metadata Normalization Brief
Design systematic metadata cleaning, latent parameter standardization, and schema normalization protocols for synthetic image libraries.
Use this template when building or remediating large-scale repositories of generated visual assets. It ensures prompt strings, negative embeddings, seed traces, and aspect ratio tags are cleaned and structured for search and fine-tuning.
Role: Lead Computer Vision Data Quality Engineer specializing in synthetic visual catalog curations and asset lineage management.
Context
- Asset Repository: {{synthetic_asset_repo}}
- Target Metadata Standard: {{metadata_schema_standard}}
- Corrupted Fields Inventory: {{corrupted_field_inventory}}
- Geometric Boundaries: {{resolution_aspect_bounds}}
- Target Storage & Export Format: {{export_format}}
- Downstream Fine-Tuning Target: {{downstream_model_target}}
Task
Draft an operational data cleaning and schema normalization brief to rectify corrupt generation parameters, sanitize prompt logs, and validate aspect-ratio metadata across our synthetic media catalog.
Method
- Ingest asset logs from {{synthetic_asset_repo}} and isolate records missing core generation provenance.
- Parse unstructured generation strings to extract explicit positive prompts, negative prompts, guidance scales, and sampler names.
- Map missing or malformed attributes identified in {{corrupted_field_inventory}} to fallback structures dictated by {{metadata_schema_standard}}.
- Cleanse prompt strings by stripping trailing escape characters, redundant weighting brackets, and unparsed seed flags.
- Audit image dimension metadata against {{resolution_aspect_bounds}} to correct discrepancies between header values and physical pixel counts.
- Standardize color space tags (sRGB vs Display P3) and embed cleaned JSON provenance sidecars in {{export_format}}.
- Validate that cleaned metadata tokens strictly conform to the intake format needed for {{downstream_model_target}} fine-tuning runs.
- Generate a metadata integrity score detailing schema conformance rate across the entire library.
Constraints
- MUST preserve historical generation seeds and model checkpoint hashes during string sanitization.
- MUST NOT overwrite original raw logs; all transformations must write to immutable versioned schemas.
- String sanitization regexes must handle nested weighting syntax without truncating token concepts.
- Schema output must guarantee zero null values for primary retrieval keys.
Output format
Deliver an engineering brief with the following distinct sections:
- Metadata Health Diagnostic (bulleted summary with failure rates per field)
- Field-by-Field Sanitization Rules (structured table: Raw Field, Parsing Logic, Default Rule, Output Type)
- Prompt String Normalization Logic (ordered steps and regex criteria)
- Validation Protocol (concrete test queries verifying schema conformance in {{export_format}})
Self-review
- Confirm all 6 variables ({{synthetic_asset_repo}}, {{metadata_schema_standard}}, {{corrupted_field_inventory}}, {{resolution_aspect_bounds}}, {{export_format}}, {{downstream_model_target}}) are integrated.
- Verify prompt cleaning preserves semantic weighting structures.
- Ensure export format requirements align with downstream fine-tuning specs.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.