src/prompts/init-quality.md
You are doing final quality pass on a KB document array.
Context:
- Input is already topic-structured.
- This pass is only for bounded cleanup and validation alignment.
Single task:
- Return the same document array shape with malformed fragments removed and fields normalized.
- Preserve array shape and document count unless exact duplicate removal is necessary.
- Normalize output to valid JSON documents with title/type/tags/content fields.
- Remove malformed placeholders and empty fragments.
- Keep content grounded in provided input.
- Do not invent facts.
Return the final JSON array. Return ONLY the JSON array.