IF Commons GitHub

tier2-commands

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-quality-evidence FR-041

The commands of Tier 2 of the quality system (commons 0001-quality-evidence FR-041 to FR-044, 0022-trust), run by quality.ts:

  • trust writes the Trust page and its JSON for one audience, or --checks them against the files on disk.
  • pack writes the assessor pack as a folder, a tar with its SHA-256 and a DCAT distribution; verify-pack verifies one offline.
  • plan register|check registers a test plan before its run and judges every run against the plan it names.
  • sample draw|attest|verify draws a sample by a rule and a seed, records a person's attestation and draws every sample again.
  • mutation ingest|strength records a mutation tool's report and shows the strength of each proof beside its grade.
  • agents shows the sampling of the agents' reviews against the rate the harness states.

Exit status: 0 where it did what was asked and found nothing wrong, 1 where it found something (a pack that is not verified, a page that differs, a run that did not follow its plan) or refused, 2 for a command line that does not fit, 3 where part of a pack could not be checked. The day today is read once here from the clock; every judgement takes it as an argument.

Source: commons/quality/src/tier2-commands.ts

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

trustCommandfunctionno test imports it
function trustCommand(rest: readonly string[]): Promise<number>

quality trust: the Trust page for an audience (0001-quality-evidence FR-052).

packCommandfunctionno test imports it
function packCommand(rest: readonly string[]): Promise<number>

quality pack: the assessor pack (0001-quality-evidence FR-060, FR-018).

verifyPackCommandfunctionno test imports it
function verifyPackCommand(rest: readonly string[]): Promise<number>

quality verify-pack PACK: verifies a pack's folder or tar with no network (0001-quality-evidence FR-064, FR-020).

planCommandfunctionno test imports it
function planCommand(rest: readonly string[]): Promise<number>

quality plan register|check (0001-quality-evidence FR-042).

sampleCommandfunctionno test imports it
function sampleCommand(rest: readonly string[]): Promise<number>

quality sample draw|attest|verify (0001-quality-evidence FR-041).

mutationCommandfunctionno test imports it
function mutationCommand(rest: readonly string[]): Promise<number>

quality mutation ingest|strength (0001-quality-evidence FR-043).

agentsCommandfunctionno test imports it
function agentsCommand(rest: readonly string[]): Promise<number>

quality agents: the sampling of the agents' reviews against the stated rate (0001-quality-evidence FR-044).

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