Make the checker permanent studio equipment. Write lint_prompt(prompt)
that returns a dict:
{"verdict": "ship" | "rework", "mood": list[str], "missing": list[str]}
Rules, in order:
- Lowercase the prompt once.
mood= every word fromMOOD_WORDSthat appears as a substring, inMOOD_WORDSorder.missing= every section fromSECTIONSwhere no token matches as a substring, in the table's order.verdictis"ship"only when both lists are empty, else"rework".
Three prompts run through it. Expected output:
studio: {'verdict': 'ship', 'mood': [], 'missing': []}
lazy: {'verdict': 'rework', 'mood': ['clean', 'modern', 'pop'], 'missing': ['medium', 'style', 'palette', 'negatives']}
half: {'verdict': 'rework', 'mood': [], 'missing': ['style', 'negatives']}