“Golden outputs are permanent truths.”
Not quite.They are reviewed expectations for specified inputs, versions, and tolerances and must change when intended behavior changes.
Architecture & Systems
Golden regressions lock a set of inputs and outputs so any drift in pricing behaviour becomes immediately visible.
A fixed input-output record makes unintended pricing drift visible immediately.
A golden regression suite consists of reference trades evaluated under fixed market snapshots and model configurations.
Their prices, Greeks, and diagnostics are stored as expected outputs with tolerances appropriate to each method.
Has a controlled input produced a materially different output from the reviewed baseline?
Can a known valuation move without an explicit review?
Every code change reruns the suite; deviations beyond tolerance fail tests and force an explicit decision.
Updating golden values is a controlled act that should reflect a deliberate model or bug-fix decision, not an accident.
“Golden outputs are permanent truths.”
Not quite.They are reviewed expectations for specified inputs, versions, and tolerances and must change when intended behavior changes.
Follow the strongest prerequisites, applications, extensions, and contrasts.
Golden reference cases detect unintended pricing changes across code revisions.
UsesNumerical Tolerances for Regression TestsRegression tests need tolerances that distinguish acceptable numerical drift from real defects.
Supported byTest Pyramid and Regression SuiteGolden tests are one specialised layer within a wider regression and integration testing strategy.
Supported byReplay of Valuation RunsReproducible replay makes historical valuation cases usable as stable regression references.
Golden reference cases detect unintended pricing changes across code revisions.
Explore concept →