Commit 0860f41
fix: scrub dangling lock-header leak + make benchmark stdout unicode-safe
Re-benchmark surfaced two issues:
1. Voice-reinforced adapters sometimes echo just the OPENING
"=== PERMANENT BEHAVIORAL LOCKS (ABSOLUTE → NEVER VIOLATE) ===" header and
trail off. The scrubber only matched complete open…close blocks, so the
dangling header leaked into responses. Added pattern 2b: strip a lone opening
LOCKS header to end-of-text (mirrors the existing CONSTRAINTS strip).
2. full_benchmark.py crashed mid-run printing a '→' to a cp1252 Windows console.
Reconfigure stdout/stderr to utf-8 with errors='replace'.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent f78c275 commit 0860f41
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
682 | 682 | | |
683 | 683 | | |
684 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
685 | 696 | | |
686 | 697 | | |
687 | 698 | | |
| |||
0 commit comments