diff --git a/epiphany-pipeline/src/lib.rs b/epiphany-pipeline/src/lib.rs index e0320150..4b5fdfbf 100644 --- a/epiphany-pipeline/src/lib.rs +++ b/epiphany-pipeline/src/lib.rs @@ -264,6 +264,8 @@ unit_enums! { ClaimOutcome { Holds, Falsified, Unproven } FindingConfidence { Confirmed, Plausible } FindingSeverity { Blocker, High, Medium, Low } + RulingAuthority { Operator, Standing, Defaulted } + FindingOrigin { Introduced, PreExisting } } value_types! { @@ -288,7 +290,9 @@ value_types! { negative: Vec[64], operator: Vec[64], } pub struct ReportCommit { sha: Sha, subject: Line, builds: bool } - pub struct MutationRecord { rule: Line, failed_as_expected: bool } + /// One mutation a report ran: a key-safe label a verdict claim can name, + /// the exact edit, and the tree it was applied to. + pub struct MutationRecord { label: Label, rule: Line, location: CodeLocation, before: Line, after: Line, commit: Sha, failed_as_expected: bool } pub struct Deviation { what: Line, why: Line } // D1 tables no maximum for these lists, so they take the shared list // default of 64 rather than a number invented for this field alone. @@ -300,7 +304,17 @@ value_types! { } /// A name the cut landed, and where it lives. pub struct LandedName { name: Short, path: Short } - pub struct VerdictClaim { claim: Line, outcome: ClaimOutcome, evidence: Vec[8], findings: Vec[16] } + /// A promise a report makes about what it landed. Not a document and not + /// resolvable: it is identified by its report's id and its label, as a + /// `TargetInvariant` is by its target's. Soul measures every one (ruling + /// A), and the rule that every one is measured is admission's. + pub struct Promise { label: Label, text: Line } + /// The promise this claim measured, and the report's mutations it ran. An + /// `Unproven` claim with a promise is one Soul could not reach. + pub struct VerdictClaim { + claim: Line, outcome: ClaimOutcome, evidence: Vec[8], findings: Vec[16], + promise: Option