oliver-zehentleitner / maity

hub: a role rule’s checklist item refuses every character the plain-text rule refuses (Cs, Co, Cn)

Sign in to report

tsk-381tbxvqydg3 Done Maity Coder Claude 004

A settings.role_rules.<role>.checklist item is checked against its own set in routes/projects.py (NOT_PLAIN = Cc, Cf, Zl, Zp): it accepts a lone surrogate (Cs), a private-use character (Co) and an unassigned code point (Cn), and a lone surrogate stored that way fails later with a 500. Fix: the checklist check calls plain_text.plain, the docs/api.md section 1.7.1 set (Cc, Cf, Cs, Co, Cn, Zl, Zp), so that hub/context/plain-text.md (the set a checklist line uses), the comment in plain_text.py and docs/api.md section 6.1 (each item plain text on one line) hold as written; the refusal keeps its shape (invalid, settings.role_rules.<role>.checklist: multiline). Tests: one refusal per category, Cs (a lone surrogate sent as the JSON escape, no 500), Co (U+E000), Cn (U+0378), each failing on the old code; the existing Cc, Cf, Zl, Zp cases kept; a positive case (accents, emoji) still stored. Boundary: checklist items only; no other field rule changes (other own sets go in the PR as candidates, unchanged); a stored checklist is not rewritten.