15. Assurance inside the graph
R16 asks for guarantees that are part of the system rather than documents beside it. In RG a Claim is an element. It has a subject, a proposition, assumptions and bounds. Attests relates it to evidence (observations and artefacts, each with a method and a coverage) and to its verifier. Status is a vector, not a colour. The dimensions are origin (desired, source-derived, recorded, observed, simulated, checked, attested), freshness, coverage and conflict. Evidence kinds are deliberately not totally ordered. A production trace cannot discharge a universal “no unauthorised write” claim, and a proof about a model cannot discharge a latency objective [295].
Listing 20 declares a claim about the refund call of Listing 23.
val refundsOnce = claim("refunds.at-most-once", subject = refunds) {
proposition(AtMostOnce(effectOf(refunds)))
assume(TimeoutMeansUnknown, DeduplicatedAt(provider(refunds)))
bounds(maxRetries = 2, maxDuplicates = 1)
verifier(Tlc(template = SessionCall))
requiredBy(release(region("support")))
}
Listing 20.
A claim about a Session call (proposed API).
Invalidation#
Evidence is a function of its inputs: artefacts, revisions, workload, fault schedule and assumptions. When a patch changes an element in the dependency closure of a piece of evidence, the impact traversal (Table 8) marks the claim stale. This is a build system’s rule for rebuilding a target whose inputs changed [251], applied to assurance. Figure 24 traces one invalidation, and Listing 21 shows the claim’s status afterwards.
Figure 24. Evidence is a function of its inputs. A patch to one input makes the evidence stale; the impact traversal carries this to the claim and to every admission that requires the claim (Section 15).
claim refunds.at-most-once subject Session support.refunds
origin checked by TLC from the SessionCall template
freshness stale: patch p-1842 changed contract RefundApi v3 -> v4
coverage bounded: retries <= 2, duplicates <= 1
conflict none
gates release of region support, blocked until re-checked
Listing 21.
The status of the claim of Listing 20 after the patch of Figure 24, as a reviewer sees it.
Specifications are generated#
Four tools cover four kinds of claim.
TLA. The specification of a protocol region is assembled from family templates by (1). Model checking then runs on the same identities that the runtime reports. Five templates exist as hand-written TLA modules, checked by TLC (Table 34): effect identity for Session calls, ownership handover for exclusive components, region release, the outbox behind a Channel, and the watch of RGP (Section 12.4). Generating them from the graph is planned work.
Alloy. The static judgments of Section 6.5 are first-order constraints over the C-set schema, which is already an Alloy signature, and are checked for consistency and for counterexamples [178].
Lean 4. The kernel’s metatheory is to be mechanised once [85]: preservation of well-formedness by each patch operation (Proposition 9), determinism of traversals (Theorem 6) and functoriality of the semantics (Theorem 3).
Testing. Implementation conformance is tested by deterministic simulation in the style of FoundationDB and P [92, 366], and by replaying captured boundaries.
The precedents for each are industrial: TLA at AWS [264], verified distributed systems such as IronFleet [165], and simulation testing at FoundationDB.
Claims gate change#
Release admission requires fresh evidence for the candidate’s digest. Approval binds the plan’s fingerprint, and any drift invalidates it. The policy that decides which claims a release needs is outside the authority of the patch being admitted, so a program cannot weaken its own gate and certify itself. The bounded models also feed the language. Because the effect-identity model shows that reading a timeout as “not applied” is unsound, RGL’s Outcome has an explicit UNKNOWN. The handover model shows that a check by the sender, even one made just before the write, does not stop a delayed write, while a check by the store does (Table 34). Therefore atomic(store) checks the writer’s epoch inside the store’s transaction.