def record
import cswap-bend-cli@0.1.0.0/urec.bend as Urecimport Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/ustore.bend as Ustore
124# Merge outcomes fenced by the leases that produced them: a late writer whose
125# lease or identity was replaced is ignored. Success resets the failure
126# fields; a failure never touches lastGood and fetchedAt. Returns the slots
127# accepted.
128def record(+root: String, rs: List<&2, Rec>, +now: U32) -> Act.of(List<&2, String>):
129 Ustore.with_usage_lock(List<&2, String>, root, record.act(root, rs, now))