One gap in the contract: bool(r.get("transcript")) still passes a half-extracted transcript, which is your lost-handoff case. Checks against the input catch it, like the transcript's last timestamp landing within a few seconds of the video's duration, or extracted page count matching the PDF's page count.
Fair catch, and you're right. bool() only proves the field exists, so a half-extracted transcript sails right through, which is exactly the lost-handoff bug. Checking against the input is the better test: last timestamp within a few seconds of the video's duration, extracted page count matching the PDF's. Basically the obligation should check completeness, not presence. Stealing both of those.
One gap in the contract: bool(r.get("transcript")) still passes a half-extracted transcript, which is your lost-handoff case. Checks against the input catch it, like the transcript's last timestamp landing within a few seconds of the video's duration, or extracted page count matching the PDF's page count.
Fair catch, and you're right. bool() only proves the field exists, so a half-extracted transcript sails right through, which is exactly the lost-handoff bug. Checking against the input is the better test: last timestamp within a few seconds of the video's duration, extracted page count matching the PDF's. Basically the obligation should check completeness, not presence. Stealing both of those.