Skip to main content

Module rules

Module rules 

Source
Expand description

Text rules of the capture gate (SPEC-ENGINE §3.1.4, G2–G9): one complete, single-line claim of 24–300 characters that is not log output, not truncated and not a list. Rules reject; they never rewrite.

Constants§

MAX_STATEMENT_CHARS
MIN_STATEMENT_CHARS

Functions§

check_length
G2 with the given bounds (Unicode scalar values).
check_list
G8.
check_log
G6: timestamps, exit markers, ANSI, stack frames, JSON, tables, fences.
check_path_share
G9: characters inside path-like tokens are at most 40 % of the text.
check_sentence
G5: starts with an uppercase letter, digit or backtick; is no fragment when punctuated (a claim, is_fragment); ends with . ! ? (optionally followed by a closing backtick) when punctuated; has a word of three or more letters that is not part of a path.
check_single_line
G3.
check_statement
G2–G9 on a claim statement (already trimmed).
check_truncated
G7: no trailing ellipsis, dash, comma or open parenthesis; balanced backticks and brackets.
sentence_count
G4: sentences end at . ! ? followed by a space and an uppercase letter, except after a listed abbreviation.