#4365
fix(ai): finish async media accounting and recheck output access
Continue accounting for asynchronous image and video jobs after client disconnect. Validate provider completion states and recheck filesystem access before saving a generated result.
Auth/permission and billing behavior changes. Confirm the return contract when a completed result cannot be saved after access changes.
Validation on this isolated branch: 263 backend tests across 7 suites. git diff --check passed.
Coverage Report
⬇️ -0.05 pp
⬇️ -0.06 pp
⬇️ -0.15 pp
⬇️ -0.08 pp
File Coverage
⬇️ -0.10 pp
⬇️ -1.09 pp
⬆️ +1.01 pp
⬇️ -0.03 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
🟰 ±0 pp
⬆️ +0.01 pp
🟰 ±0 pp
🟰 ±0 pp
⬆️ +0.01 pp
⬆️ +3.06 pp
⬆️ +4.02 pp
🟰 ±0 pp
⬆️ +1.93 pp
⬆️ +0.04 pp
🟰 ±0 pp
🟰 ±0 pp
⬆️ +0.03 pp
⬇️ -0.60 pp
⬇️ -2.14 pp
🟰 ±0 pp
⬇️ -1.41 pp
⬆️ +0.21 pp
⬆️ +0.61 pp
🟰 ±0 pp
⬆️ +0.14 pp
⬆️ +0.13 pp
⬆️ +0.69 pp
🟰 ±0 pp
⬆️ +0.12 pp
⬆️ +0.11 pp
⬆️ +0.57 pp
⬆️ +0.22 pp
⬆️ +0.09 pp
⬆️ +0.12 pp
⬆️ +0.50 pp
🟰 ±0 pp
⬆️ +0.09 pp
⬆️ +7.70 pp
⬆️ +1.39 pp
⬆️ +33.34 pp
⬆️ +7.70 pp