From 13570e8458f4a6a6e6adf61d791abb33d7a7c41d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 16 Sep 2026 15:33:25 +0200 Subject: [PATCH] Cut 6c: the Ghostlight shapes Ghostlight's independently run campaign named what the documents could not say: a report's promises, a ruling's authority, a finding's origin, and a resolution's referents as anything but unparsed text. Zero new kinds, no key moves, epoch unchanged. Added: RulingAuthority and FindingOrigin as unit enums; Promise beside LandedName, identified by its report and label like a TargetInvariant; promises on the cut report, authority on the ruling, origin on the finding, and promise plus a bounded mutations list on a verdict claim. Retyped: MutationRecord carries a key-safe label, a location, the exact before and after, and the commit it ran against; the cut spec's estimate is a StructuralDelta, the same shape as the report's actual, so the two compare on every axis; ResolutionOutcome's referents are PipelineRefs, Superseded a list of at most eight (its maxItems carried by schemars extend, since the enum is outside value_types!), Fixed a Sha with an optional record (ruling B). The Bounded impl is the replacement written whole: the list validates every item, and every arm names its field. Five tests pin the shapes: a referent is a full id of the kind it declares, with a wrong-kind forgery at by[1] refused by field, and an id no resolution derives left to admission; a fix's commit is lowercase hex; a mutation's label is dot-free and its commit a sha; a claim's promise and mutations are labels, nine mutations refused at eight; the sample spec estimates a net addition of 900 lines and equals the sample report's actual. Six schemas regenerate from the derivation test's temp directory: ruling, cut_spec, cut_report, verdict, finding, resolution. index.json and the other seven are byte-identical. Co-Authored-By: Claude Fable 5.1 --- epiphany-pipeline/src/lib.rs | 219 +++++++++++++++++- ...piphany.pipeline.cut_report.v1.schema.json | 79 ++++++- .../epiphany.pipeline.cut_spec.v1.schema.json | 52 ++++- .../epiphany.pipeline.finding.v1.schema.json | 13 +- ...piphany.pipeline.resolution.v1.schema.json | 31 ++- .../epiphany.pipeline.ruling.v1.schema.json | 14 +- .../epiphany.pipeline.verdict.v1.schema.json | 26 ++- 7 files changed, 400 insertions(+), 34 deletions(-) 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