Skip to main content
Version: 3.0.0

STD: Delta CT Rule (DELTACT)

Version: v1.0.0 Status: Draft SRS Source: docusaurus/docs/srs/rules/rule-delta-ct.md Rule Name: DELTA_CT Domain: RULES-DELTACT


Overview

This document specifies tests for the Delta CT rule using decision tables and test vectors. The rule evaluates CT value differences between configured target pairs within a well and flags observations that violate delta thresholds or have mismatched classifications.

Rule Characteristics:

  • Pure business logic (no UI)
  • Validates CT consistency between paired targets
  • Classification mismatch detection
  • IC target exclusion
  • Bidirectional pair matching

Test Method: TM-API (per Test Plan - Rules use automated API tests)

Verification Approach: Rule verification is performed using data-driven test vectors. Each row in a decision table represents a complete verification scenario with defined inputs and expected outputs. This format enables exhaustive condition coverage while remaining concise and auditable.


Coverage Summary

REQ IDTitleConditionsTest VectorsCoverageGapsAutomation Status
REQ-RULES-DELTACT-001Validate CT Consistency Between Target Pairs1624100%NoneAutomated

Totals: 1 REQ, 16 Conditions, 24 Test Vectors, 100% Coverage


REQ-RULES-DELTACT-001: Validate CT Consistency Between Target Pairs

Input Variables

VariableTypeValid ValuesDescription
config.target_astringTarget identifierFirst target in configured pair
config.target_bstringTarget identifierSecond target in configured pair
config.thresholdfloat> 0Maximum allowed CT difference
obs_a.targetstringTarget identifierObserved target A
obs_a.clsstringPositive, Negative, Ambiguous, ...Classification of observation A
obs_a.ctfloat?null, NaN, numericCT value of observation A
obs_a.is_icbooltrue, falseWhether target A is Internal Control
obs_b.targetstringTarget identifierObserved target B
obs_b.clsstringPositive, Negative, Ambiguous, ...Classification of observation B
obs_b.ctfloat?null, NaN, numericCT value of observation B
obs_b.is_icbooltrue, falseWhether target B is Internal Control

Output Variables

VariableTypeDescription
error_raisedboolWhether BAD_CT_DELTA error was raised
error_codestring?BAD_CT_DELTA or null
validation_skippedboolWhether the pair was skipped (no validation performed)

Decision Table: Pair Configuration Matching

Tests whether observed targets match a configured delta CT pair.

TVconfigobs_targetspair_matcheserror_raisedCovers
TV-001-001(A, B, threshold=3)[A, B]truedepends on CT/CLSAC: Configured pair matches
TV-001-002(A, B, threshold=3)[B, C]falsefalseAC: Unconfigured pair - no validation
TV-001-003(A, B, threshold=3)[C, D]falsefalseAC: Neither target in config

Decision Table: Bidirectional Pair Matching

Tests that configuration (A, B) matches observations in either order.

TVconfigobs_orderpair_matchesCovers
TV-001-004(A, B, threshold=3)A first, B secondtrueAC: Forward order match
TV-001-005(A, B, threshold=3)B first, A secondtrueAC: Reverse order match

Decision Table: IC Target Exclusion

Tests that pairs containing Internal Control targets are skipped.

TVobs_a.is_icobs_b.is_icvalidation_skippederror_raisedCovers
TV-001-006falsefalsefalsedepends on CT/CLSAC: Non-IC pair validated
TV-001-007truefalsetruefalseAC: Target A is IC - skip
TV-001-008falsetruetruefalseAC: Target B is IC - skip
TV-001-009truetruetruefalseAC: Both IC - skip

Decision Table: CT Value Validity

Tests handling of null/invalid CT values.

TVobs_a.ctobs_b.ctvalidation_skippederror_raisedCovers
TV-001-0103033falsedepends on thresholdAC: Both valid - validate
TV-001-011null33truefalseAC: Target A CT null - skip
TV-001-01230nulltruefalseAC: Target B CT null - skip
TV-001-013nullnulltruefalseAC: Both CT null - skip

Decision Table: Delta Threshold Validation

Tests the >= operator for threshold comparison.

TVthresholdct_act_bdeltaerror_raisederror_codeCovers
TV-001-014330322falsenullAC: Delta below threshold - no error
TV-001-015330333trueBAD_CT_DELTAAC: Delta equals threshold - error
TV-001-016330344trueBAD_CT_DELTAAC: Delta exceeds threshold - error
TV-001-017333303trueBAD_CT_DELTAAC: Negative delta (absolute value) - error

Decision Table: Classification Mismatch

Tests that different classifications trigger error regardless of CT values.

TVcls_acls_bct_deltaerror_raisederror_codeCovers
TV-001-018PositivePositive0falsenullAC: Same CLS, same CT - no error
TV-001-019PositiveNegative0trueBAD_CT_DELTAAC: Different CLS - error
TV-001-020NegativePositive0trueBAD_CT_DELTAAC: Different CLS (reverse) - error

Decision Table: Combined Conditions

Tests interaction between threshold and classification checks.

TVcls_acls_bthresholdct_act_berror_raisedreasonCovers
TV-001-021PositivePositive33032falseSame CLS, delta < thresholdAC: All conditions pass
TV-001-022PositivePositive33033trueDelta >= thresholdAC: CLS match but threshold violated
TV-001-023PositiveNegative33030trueCLS mismatchAC: CT pass but CLS violated
TV-001-024PositiveNegative33035trueBoth violatedAC: Both conditions violated

Traceability to SRS Test Cases

STD VectorSRS Test CaseDescription
TV-001-002, TV-001-003TC-DELTACT-001No error for unconfigured target pair
TV-001-015TC-DELTACT-002BAD_CT_DELTA when delta equals threshold
TV-001-016TC-DELTACT-003BAD_CT_DELTA when delta exceeds threshold
TV-001-019, TV-001-020TC-DELTACT-004BAD_CT_DELTA when classifications differ

Traceability to Existing Tests

RequirementJira TestsStatus
REQ-RULES-DELTACT-001BT-1209Existing

Gap Analysis

Identified Gaps

GapRequirementDescriptionPriorityOwner
None-All acceptance criteria covered by test vectors--

Test Coverage Notes

  1. IC Exclusion (TV-001-006 through TV-001-009): Tests cover all combinations of IC status for target pairs
  2. Null CT Handling (TV-001-010 through TV-001-013): Tests cover all combinations of valid/null CT values
  3. Threshold Boundary (TV-001-014 through TV-001-017): Tests cover below, at, and above threshold including absolute value handling
  4. Classification Independence (TV-001-018 through TV-001-024): Tests verify CLS mismatch triggers independently of CT comparison