pub async fn only_the_adjudicator_compensates<F: IngestFixture>(
open: impl AsyncFn() -> F,
) -> Result<RuleOutcome, Violation>Expand description
SY-7: a compensation is written only by the store the assignment names the fact family’s adjudicator, and filed under that store’s own identity, which is how a log records who authored it.
Two stores each take the same pair of conflicting claims on one seat, from two foreign origins, in opposite orders. The rule plays the runner above them and holds the assignment: the first store adjudicates the seat family and the second does not. Where the runner finds the pulled claim’s guard matched by what the store holds (SY-6’s evidence), it hands the adjudicator a reversal to write with the claim, in one group, and hands the other store the claim alone. Read back, the adjudicator’s log holds one reversal, carrying the adjudicator’s identity, and the other store’s holds none. Reversals are found by type, never decoded.
§Rejects
A store that mints a compensation under an incarnation it never read,
a placeholder, rather than its own identity: its log then says a store
nobody assigned authored the reversal, and every such store files every
compensation under that one identity, so two stores’ reversals at one
position collapse into one when they meet, which is SY-7’s marker’s
escape reached by losing an event. tests/wrong_ingest_stores.rs
carries it, and asserts SY-38’s rule reports its compensation-hidden
half skipped against it, since the compensation is not where its own
identity would put it.
§Does not reject
Every peer adjudicating, the wrong implementation SY-7 names. That
is a runner configuration, so the rule plays the runner, mounting the
shipped runner::Adjudicate hook on the adjudicator and
runner::Accept on the other, and always honours the assignment. A
runner that adjudicates under Accept is rejected in
happenstance-sync’s tests/runner/wrong_runners.rs (#450). The
configuration SY-7 forbids is run by the clause’s falsification test,
in this crate’s own tests, where two adjudicators answer one conflict
twice and reverse opposite claims.
§Errors
A Violation of SY-7 if the fixture gives both stores one identity,
if a store refuses or miscounts an ingest, or if either log holds a
reversal its store was not assigned, lacks the one it was, or files it
under another identity.