mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-18 13:52:20 +02:00
Task 12, step 2. On restart every unfinished task was requeued, live captures included. A live recording is a window on a broadcast: whatever played while the process was down is gone. Requeueing restarted the capture from the current moment and committed it as a normal recording, silently missing everything up to the restart, with nothing in the result to say so. Live in `Running` or `WaitingForCapacity` now becomes `Failed` with a reason. A future `Scheduled` window is untouched, because it has not started and can still run in full. VOD and series still resume -- the file on the provider is still there, which is the whole difference. Task 14 needed one test rather than code. Its matrix, the No-Auth parity, and the stale-token rejection are already implemented and covered: `builtin_admin_claims` resolves `builtin:admin` with ROLE_ADMIN, PERM_ALL and the current schema, and `validate_token_claims` refuses an older permission schema before any bit is read. The clause with no test was "physical deletion with positive references is denied even to Admin". That now has one, and it is worth stating precisely: permission decides whether an entry may be removed, not whether the bytes go. The reference rule takes no principal at all, so an administrator removing their own entry leaves another user's recording on disk.