M3U and EPG Data Audit
Audit playlist and guide data behavior with concrete parser, repository, DAO, and test evidence.
When To Use
Use when a task changes or reviews:
- M3U, XMLTV, EPG, or Xtream parsing
- Channel-to-programme matching
- Playlist-to-EPG association behavior
- DAO queries or repositories that return channels/programmes
- Empty, malformed, duplicate, timezone, or time-range behavior
Required Context
Read first:
AGENTS.md
data/AGENTS.md
docs/ai/playbooks/m3u-epg-data.md
- Relevant parser, DAO, repository, model, fixture, and test files
Audit Checks
Verify with file evidence:
- Channel/EPG matching uses stable IDs or documented fallback order.
- Duplicate programmes are handled deterministically.
- Playlist-to-EPG associations are preserved across refresh/import flows.
- Empty EPG data has an explicit fallback path.
- SQL joins do not accidentally exclude channels without programmes.
- Time ranges, date parsing, and timezone conversion are explicit and tested where possible.
- Parser errors follow existing Flow/error-handling conventions.
Process
- Map parser entry points, repositories, DAOs, and tests.
- Trace one normal playlist with EPG and one empty/malformed guide path.
- Inspect joins and filters that combine channels and programmes.
- Check fixtures or tests for duplicates, missing guide data, and timezone offsets.
- Cite file paths and line numbers for each finding.
Validation
Recommend:
./gradlew :data:testDebugUnitTest
Also recommend targeted parser or fixture tests when present. If unavailable, state the untested data risk.
Output
Return a concise Markdown report with:
- Scope and confidence
- Data-flow map
- Pass/fail table for each audit check
- Evidence-backed findings with file paths
- Regression tests or fixtures to add
- Validation run or not run, with reason
1---2name: m3u-epg-data-audit3description: Audit M3UAndroid M3U and EPG data flows for parser behavior, channel/programme matching, duplicate handling, fallback behavior, joins, and timezone/time-range correctness.4---56# M3U and EPG Data Audit78Audit playlist and guide data behavior with concrete parser, repository, DAO, and test evidence.910## When To Use1112Use when a task changes or reviews:1314- M3U, XMLTV, EPG, or Xtream parsing15- Channel-to-programme matching16- Playlist-to-EPG association behavior17- DAO queries or repositories that return channels/programmes18- Empty, malformed, duplicate, timezone, or time-range behavior1920## Required Context2122Read first:2324- `AGENTS.md`25- `data/AGENTS.md`26- `docs/ai/playbooks/m3u-epg-data.md`27- Relevant parser, DAO, repository, model, fixture, and test files2829## Audit Checks3031Verify with file evidence:3233- Channel/EPG matching uses stable IDs or documented fallback order.34- Duplicate programmes are handled deterministically.35- Playlist-to-EPG associations are preserved across refresh/import flows.36- Empty EPG data has an explicit fallback path.37- SQL joins do not accidentally exclude channels without programmes.38- Time ranges, date parsing, and timezone conversion are explicit and tested where possible.39- Parser errors follow existing Flow/error-handling conventions.4041## Process42431. Map parser entry points, repositories, DAOs, and tests.442. Trace one normal playlist with EPG and one empty/malformed guide path.453. Inspect joins and filters that combine channels and programmes.464. Check fixtures or tests for duplicates, missing guide data, and timezone offsets.475. Cite file paths and line numbers for each finding.4849## Validation5051Recommend:5253```bash54./gradlew :data:testDebugUnitTest55```5657Also recommend targeted parser or fixture tests when present. If unavailable, state the untested data risk.5859## Output6061Return a concise Markdown report with:6263- Scope and confidence64- Data-flow map65- Pass/fail table for each audit check66- Evidence-backed findings with file paths67- Regression tests or fixtures to add68- Validation run or not run, with reason