wikidb.tracker.review_gate

wikidb.tracker

review_gate(ctx, key, fields) -> passed, err

Refuse a move into done that no accepted review backs

done means the work landed, and an accepted review is what says it did. Every path to done runs through here: the close verb, the metadata editor, and a commit that closes an issue. The gate guards the move into done, not the state of being done, so an edit of a closed issue passes.

Off the issue schema the gate passes everything, so a caller editing any collection needs no guard of its own. An absent issue passes too, and the caller's own not-found check reports it.