Skip to content

Self Checking Operation

Gap-Fill Rationale

This draft fills direct pilot coverage for the accepted primes error_proofing_poka_yoke and validation, both currently marked as zero-any coverage targets. Accepted neighbors cover relation constraints, data integrity, correspondence validation, and audits, but none makes embedded operation-level self-validation the central intervention.

Essence

A self-checking operation makes its own result prove, test, or expose whether it is acceptable before the result can propagate. It turns validation from a delayed inspection step into a built-in gate, signal, or route inside the operation.

Compression statement

Self-Checking Operation embeds a validation rule, redundant signal, invariant test, consistency check, or independent recalculation into the operation itself. Instead of relying only on later inspection, the operation produces evidence about whether its result is internally valid and routes pass, fail, retry, correction, or quarantine immediately.

Canonical formula: operation + embedded validity criterion + redundant/invariant evidence + immediate routing rule -> bounded error propagation

When to Use This Archetype

Use it when a known class of error can be detected at the point of entry, transformation, transmission, assembly, calculation, or commitment. It is especially useful for identifiers, databases, packets, ledgers, forms, manufacturing fixtures, medical devices, deployment pipelines, and data workflows.

Structural Problem

An operation can emit an invalid result that looks usable enough to continue. Once accepted, the error spreads through downstream records, decisions, transmissions, or physical processes. Later audit may find the error, but the cost of repair has multiplied.

Intervention Logic

Define the operation boundary, identify the failure mode, encode a checkable criterion or redundant signal, run the check inside the operation, and route pass, fail, retry, correction, quarantine, or escalation immediately. Expose check status and use failure logs to recalibrate the rule.

Key Components

Key components include the operation boundary definition, failure mode inventory, checkable validity criterion, redundant or independent signal, embedded check executor, accept/reject/retry route, check status exposure, override and exception control, and failure feedback channel.

Common Mechanisms

Common mechanisms include invariant checking, redundancy-based error detection, constraint gate enforcement, independent recomputation, immediate feedback routing, physical impossibility design, safe commit hold, and false alarm recalibration.

Parameter / Tuning Dimensions

Tune check strictness, false-positive tolerance, false-negative tolerance, latency budget, override authority, automatic-correction scope, escalation threshold, retry limits, user feedback style, and logging depth. High-risk workflows justify stronger gates; low-risk workflows may need lighter checks.

Invariants to Preserve

The check must evaluate the same output downstream systems will use. Acceptance criteria must remain explicit. Check status must be visible. Overrides must be logged and bounded. Failure routes must prevent propagation rather than merely record it.

Target Outcomes

The target outcome is bounded error propagation: invalid outputs are caught near creation, operators receive immediate feedback, downstream systems see fewer corrupt states, and validation becomes normal operation rather than exceptional cleanup.

Tradeoffs

Self-checking reduces failures but adds complexity and maintenance burden. Strict gates can reject valid edge cases; lenient checks can miss important errors. Automatic correction can improve speed but hide uncertainty. Passed checks can create false confidence if their scope is not clear.

Failure Modes

Common failures include false assurance from narrow checks, brittle rejection of edge cases, silent auto-correction, common-cause check failure, normalized bypasses, latency bottlenecks, and check drift after system change. Mitigations include scope exposure, governed overrides, independent redundancy, bypass monitoring, tiered checking, and version-linked rule review.

Neighbor Distinctions

relation_constraint_enforcement blocks invalid relations and can be a mechanism inside this archetype, but self-checking is broader. data_integrity_preservation protects data across a lifecycle; self-checking operates at the production or commit boundary. correspondence_validation checks continuity across versions or domains; self-checking checks immediate output acceptability. completeness_audit finds missing coverage; self-checking prevents invalid operational output from propagating.

Variants and Near Names

Recognized variants include check-digit validation, referential integrity self-check, checksum and error-correction gate, physical poka-yoke self-check, pre-commit invariant gate, and independent recalculation check. Near names include embedded self-validation, built-in error check, self-validating operation, automatic output validation, inline integrity check, and check-before-commit gate.

Cross-Domain Examples

A barcode check digit catches scanning mistakes. A database foreign key prevents invalid references. A packet checksum detects corruption during transmission. A manufacturing fixture blocks wrong orientation. A ledger refuses to post unbalanced entries. A deployment pipeline blocks release when invariant tests fail.

Non-Examples

An annual audit is not this archetype because it is delayed and external. A warning sign without an embedded check is not this archetype. Asking people to be careful is not self-checking. A later sampling review is not the same as an operation that validates before commit.