Property::Text::Controls — report-contract
Report schema 1
schema_version, status, graphemes, lines, control_count, max_scope_depth, occurrences, issues, coordinates, limitation.
Every occurrence has codepoint, name, kind, index, line, column. A position is the start of its Raku NFG grapheme. Occurrences remain in input traversal order. Names are a fixed, bundled vocabulary; runtime Unicode names are not queried.
Kinds: direction_mark, embedding_open, override_open, format_close, isolate_open, isolate_close, invisible_break_control.
Issue codes: unmatched_format_close, unmatched_isolate_close, unclosed_scope. An unclosed scope also records reason (block_boundary or end_of_text) and scope (format or isolate). Issue ordering follows detection: orphan closes when found, pending openings at boundaries in opening order.
The report intentionally omits source words, filenames, full text, contact details and content hashes. Do not infer byte offsets from grapheme coordinates. JSON is generated with JSON::Fast, not hand-built escaping. The HTML renderer escapes all interpolated report values. Annotation is a separate API and contains source text.