True when a comment payload is a banner decorator: empty after the `//`, or punctuation-only (`---`, `===`, `***`). These are intentional section markers per CLAUDE.md and are stripped from prose runs.
(payload: str)
| 927 | |
| 928 | |
| 929 | def _is_banner_payload(payload: str) -> bool: |
| 930 | """True when a comment payload is a banner decorator: empty after the |
| 931 | `//`, or punctuation-only (`---`, `===`, `***`). These are intentional |
| 932 | section markers per CLAUDE.md and are stripped from prose runs.""" |
| 933 | s = payload.strip() |
| 934 | return s == "" or set(s) <= {"-", "=", "*"} |
| 935 | |
| 936 | |
| 937 | def _is_banner_run(payloads: list[str]) -> bool: |