Commit 543e7b5
fix(ooda): sanitize LLM-emitted gh issue labels to drop ellipsis placeholders
Filters labels via is_plausible_label() before passing to gh issue create,
dropping empty / pure-punctuation / placeholder strings (`...`, `.…`, `…`)
that the LLM occasionally emits from truncated example lists.
Two of Simard's active goals were stuck looping on:
gh exited with status 1: could not add label: '.…
gh exited with status 1: could not add label: '...'
Adds 3 unit tests in label_sanitizer_tests, all pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1825941 commit 543e7b5
1 file changed
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
654 | 659 | | |
655 | 660 | | |
656 | 661 | | |
657 | 662 | | |
658 | 663 | | |
659 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
660 | 680 | | |
661 | 681 | | |
662 | 682 | | |
| |||
1110 | 1130 | | |
1111 | 1131 | | |
1112 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
0 commit comments