SpecBinding

Bind an implementation to an external specification by a pinned version, a two-way map and a ledger of deviations

Mind · Reasoning · bootstrap 0.11.0

Mechanism

An implementation, such as code, a procedure or a set of controls, is bound to an external Spec, such as a paper, a standard, a regulation or a design document, in four ways. One document is named authoritative and its exact version pinned, such as a commit, an edition or a dated consolidated text. Every restatement, summary, comment or test is marked as derived, never as a second source. A two-way map links each rule of the specification to the part of the implementation that carries it out, and links each consequential part to the rule it serves or to a recorded implementation choice; the binding states its criterion for what is consequential. A deviation ledger records rules not implemented, choices the specification leaves open (precision, rounding, ordering, or how a vague clause is read) and places where the implementation knowingly differs. When the pin or a mapped part changes, the map is checked again before the change is accepted, and a value whose meaning changes is swept as in MeaningChangeSweep. Verification against the binding establishes conformance to the pinned version only, not that the specification is right.

Invariants

Failure modes

Where this came from

—

Builds on

Related

Identity