Spaces:
Running
Running
Commit History
-
cms: carry a question pattern on every path that writes or approves
Sahil Kumar +1: Claude Opus 5CMS now wants a question pattern wherever a question is approved. The real vocabulary isn't published — it is not in /lookups under any code, and a sample of 69 live questions across the bank turned up none carrying a real value — so every writer stamps the placeholder the uploader has always sent, and the real values get wired in later. The uploader already sent it; the gap was everywhere else. The tagger and solutions tools do fetch -> modify -> PUT, which faithfully preserves the empty list most of the bank is in, so a tagged question stayed unapprovable. Approval is worse: the status API carries only {"status": ...}, so a question sitting on an empty pattern is rejected on a field that call never sends — approve_one now fills it with a full PUT before running the transitions. ensure_question_pattern() only fills a missing or blank value, never replaces a real one: the placeholder exists to be replaced, and a tagging run must not undo a pattern an SME set in CMS. In push_partial i…572a729