Defect
scripts/check-uuid-v7.sh extracts one UUID per matching line with a greedy sed -nE 's/.*(UUID).*/\1/p'. The leading .* is greedy, so only the last UUID on a line is checked. Any earlier UUID on the same line is never examined.
Reproduction (measured 2026-09-30)
| line content |
rc |
<v4> <v7> |
0, the v4 passes unseen |
<v7> <v4> |
1, caught |
Acceptance criteria
Found while writing #1078.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WPSJ7fBhVAMcpSffCBWUDo
Defect
scripts/check-uuid-v7.shextracts one UUID per matching line with a greedysed -nE 's/.*(UUID).*/\1/p'. The leading.*is greedy, so only the last UUID on a line is checked. Any earlier UUID on the same line is never examined.Reproduction (measured 2026-09-30)
<v4> <v7><v7> <v4>Acceptance criteria
grep -oEiin place of the singlesedcapture.scripts/tests/uuid-v7-test.shgains a<v4> <v7>same-line case that expects exit 1. The fixture must be assembled at runtime, as the existing ones are.Found while writing #1078.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WPSJ7fBhVAMcpSffCBWUDo