Skip to main content

review.gate.assign

review.gate.assign(spec, directory)

Assign to every survivor, at random, a verdict that the first agent did not propose.

Reads sealed/first.toml and writes sealed/assignment.toml with its own salt. The draw uses the random source of the operating system.

Returns

Name Type Description
int int The number of assignments. No verdict is returned or printed.

Raises

Name Type Description
ConfigurationError If first.toml is missing or an assignment exists.
Failed If first.toml does not hold exactly one proposal per survivor.

Examples

from babregen.review.gate import assign

print(assign.__name__)
assign