Harness Intelligence Wiki
Domains

Test Evidence Glossary

Canonical terms for property tests, Models and Sensitivity Proofs from the closed property-testing delivery grill

Test Evidence Glossary

These terms define how Harness delivery skills turn an approved rule into test evidence: property tests in tdd, Models checked by tsprover in create-architecture, and Sensitivity Proofs that show a test can fail. Decision trail: grill status and grill log.

Terms

Spec Invariant

A checkable rule in SPEC.md with an INV-nnn id, a source grill question, a Form (example, property, stateful-property, model, type), a pattern and a seam. Avoid: axiom id, AX-n.

Property

A rule that must hold for every generated input of a declared shape. Avoid: fuzz test, random test.

Property Pattern

One of preservation, equivalence, round-trip, membership/monotonic, idempotence, security gate, oracle, no defects, stateful command sequence.

Generator

The source of random valid inputs; in Effect, a Schema or an Arbitrary.

Generator Narrowing

Excluding generated inputs so that a property passes.

Shrinking

Reducing a failing input to the smallest input that still fails.

Counterexample

The shrunk failing input a property reports, or the step trace a Model check reports.

Replay Token

The value that reproduces one falsification and its shrink path (CheckOptions.replay in Effect). It reproduces only from the same implementation, so it stays in evidence.

Pinned Replay

A found Counterexample kept as an explicit input in an example test named after the rule.

Model

A *.proof.ts module whose exported state-changing functions are actions and whose exported boolean functions are invariants, checked by tsprover over every reachable state. Avoid: spec (reserved for SPEC.md), proof.

Mutant

A small, named fault put into production code or a Model to test a test.

Sensitivity Proof

Evidence that a test or Model invariant fails on a named Mutant: the failing output, a diff that proves the Mutant landed, and a diff that proves the revert. Avoid: mutation score (reserved for tool-based mutation testing).

Tautological Test

A test whose expected value is computed the way the code computes it, so it can never fail.

Relationships

  • A Property uses exactly one Property Pattern and one Generator.
  • A failing Property reports one Counterexample and its Replay Token.
  • A Model Counterexample becomes a Pinned Replay of a stateful Property.
  • A Sensitivity Proof names exactly one Mutant.
  • A Spec Invariant names the Form that must cover it.

Axioms

  • A Property protects only the rule it states; a wrong rule stays wrong.
  • Generator Narrowing weakens a gate and needs recorded human approval. Inside AFK delivery-phase, it is an out-of-bounds Autonomous Decision instead.
  • A test that never failed is not evidence until a Sensitivity Proof exists.
  • A Model proves the design, not the code; only its Pinned Replays reach the code.

On this page