cf9d274bf5458ef99a02be8ffe50e746e5c18181
jq -e inside the one function that forbids it
Self-caught while verifying round 2 against the jq contract, before the re-review returned. `count_pr_mutations` deliberately avoids `jq -e`, and says so at its `kind` read: `jq -e` reports the truthiness of its LAST OUTPUT, which is the exit-status subtlety that already took this workflow down at jq 1.6 (ersatztv#647), and the runner still ships 1.6. Round 2's new row-validation guard was written with `jq -e` — inside that function, three lines below the comment forbidding it. It was safe, but only by accident: the guard runs after `n -eq 0` has returned, so the array is known non-empty and the empty-input divergence the header warns about could not fire. "Safe because of a property three lines up" is exactly the reasoning the local rule exists to retire, and it is one refactor away from being false. Rewritten in the function's own idiom — count the offending rows with `jq -r`, range-check the count in shell — which cannot be read two ways and matches every other tally here. `bad` is declared `local` alongside the other scratch variables. Also re-ran the round-2 mutation for this guard properly. The first attempt replaced the block with an unindented `:`, which broke the YAML block scalar: the test went red on a ParserError rather than on behaviour, proving nothing. A mutant that does not parse is not a measurement. With a correctly indented no-op the guard's test reddens for the right reason. Verification: 1117 passed, 2 skipped; ruff clean; decisions-validate OK; YAML + `bash -n` clean; `count_pr_mutations` now contains no `jq -e` call, only the comments explaining why. Decisions-Edit: yes
fix(803,664): round 2 — the guard-inventory row, two shared-walk fail-opens, and a false measurement
fix(803,664): round 2 — the guard-inventory row, two shared-walk fail-opens, and a false measurement
fix(754,757): declare graphicsElementIds + padToNearestMinute, and pin every MCP tool to its OpenAPI contract (#760)
fix(754,757): declare graphicsElementIds + padToNearestMinute, and pin every MCP tool to its OpenAPI contract (#760)
fix(803,664): round 2 — the guard-inventory row, two shared-walk fail-opens, and a false measurement
ErsatzTV
ErsatzTV lets you transform your media library into a personalized, live TV experience - complete with EPG, channel scheduling, and seamless streaming to all your devices. Rediscover your content, your way.
How It Works
- Install ErsatzTV: Download and set up the server on your system.
- Add Your Media: Connect your media libraries and collections.
- Create Channels: Design and schedule your own live channels.
- Stream Anywhere: Watch on any device with IPTV and EPG support.
Key Features
- Custom channels: Create and schedule your own live TV channels.
- IPTV & EPG: Stream with IPTV and Electronic Program Guide support.
- Hardware Transcoding: High-performance streaming with hardware acceleration (NVENC, QSV, VAAPI, AMF, VideoToolbox)
- Media Server Integration: Connect Plex, Jellyfin, Emby and more.
- Music & Subtitles: Mix music videos and enjoy subtitle support.
- Open Source: Free, open, and community-driven project.
Documentation
Documentation is available at ersatztv.org.
License
This project is inspired by pseudotv-plex and the dizquetv fork and is released under the zlib license.
