IF Commons GitHub

models/contract/mod

Written to: 7 requirements: 7 proved, 0 partly, 0 failing, 0 with no test recorded. 0062-contracts-time-control FR-001, 0062-contracts-time-control FR-002, 0062-contracts-time-control FR-003, 0062-contracts-time-control FR-004, 0062-contracts-time-control FR-005, 0062-contracts-time-control FR-006 and 1 more

The contract model (commons data 0062-contracts-time-control): the promises a dataset makes and the proof that they are kept. A data contract (its fields, owner and version) whose versions can be compared, a period that is open or closed so that what is late can be told from what is on time, a control and its runs (the control matrix), a consent that holds for a purpose between two dates, and canary tokens planted to find what leaks. Contracts, periods and consents are effective-dated: they say between which instants they hold. It names no domain and requires nothing.

Source: commons/data/models/contract/mod.ts

0 of 12 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

contractStatusconstno test imports it
const contractStatus: CodeList<string, string>

Where a contract is.

periodStatusconstno test imports it
const periodStatus: CodeList<string, string>

Where a period is.

controlResultconstno test imports it
const controlResult: CodeList<string, string>

What a control run found.

consentStatusconstno test imports it
const consentStatus: CodeList<string, string>

Whether a consent holds.

dataContractconstno test imports it
const dataContract: AnyConcept

The promise a dataset makes, in one version.

contractFieldconstno test imports it
const contractField: AnyConcept

One field a contract promises.

periodconstno test imports it
const period: AnyConcept

A period that is open or closed.

controlconstno test imports it
const control: AnyConcept

A control: what is promised to be true, and who checks.

controlRunconstno test imports it
const controlRun: AnyConcept

What one run of a control found.

consentconstno test imports it
const consent: AnyConcept

A consent to use data for a purpose between two dates.

canaryTokenconstno test imports it
const canaryToken: AnyConcept

A token planted in data to find where it goes.

contractModuleconstno test imports it
const contractModule: Module

The contract model: contracts, periods, controls, consents and canaries.

Titles, headings, exports, tables, columns and requirements. Esc closes.