Skip to main content

amend_rule

Function amend_rule 

Source
pub fn amend_rule(
    task: &TaskV1,
    request: &TaskAmendRequestV1,
) -> Result<(), AmendRefusal>
Expand description

What a task’s state allows an amendment of its result: submitted replaces summary and evidence; done records the merge once and changes nothing else; any other state refuses. The one rule for Cloud and the client (the client checks first, Cloud enforces); who may amend is may_amend.