quantark 0.5.0__tar.gz → 0.5.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1263) hide show
  1. quantark-0.5.5/CHANGELOG.md +3087 -0
  2. quantark-0.5.5/PKG-INFO +681 -0
  3. quantark-0.5.5/README.md +637 -0
  4. quantark-0.5.5/pyproject.toml +72 -0
  5. quantark-0.5.5/quantark/__init__.py +3 -0
  6. quantark-0.5.5/quantark/asset/equity/engine/accumulator_valuation.py +78 -0
  7. quantark-0.5.5/quantark/asset/equity/engine/analytical/accumulator_analytical_engine.py +489 -0
  8. quantark-0.5.5/quantark/asset/equity/engine/analytical/asian_option_analytical_engine.py +1199 -0
  9. quantark-0.5.5/quantark/asset/equity/engine/analytical/barrier_analytical_engine.py +800 -0
  10. quantark-0.5.5/quantark/asset/equity/engine/analytical/black_scholes_engine.py +351 -0
  11. quantark-0.5.5/quantark/asset/equity/engine/analytical/double_barrier_option_engine.py +775 -0
  12. quantark-0.5.5/quantark/asset/equity/engine/analytical/double_no_touch.py +236 -0
  13. quantark-0.5.5/quantark/asset/equity/engine/analytical/double_sharkfin_option_analytical_engine.py +816 -0
  14. quantark-0.5.5/quantark/asset/equity/engine/analytical/first_observation.py +290 -0
  15. quantark-0.5.5/quantark/asset/equity/engine/analytical/heston_analytical_engine.py +128 -0
  16. quantark-0.5.5/quantark/asset/equity/engine/analytical/one_touch_analytical_engine.py +576 -0
  17. quantark-0.5.5/quantark/asset/equity/engine/analytical/range_accrual_analytical_engine.py +436 -0
  18. quantark-0.5.5/quantark/asset/equity/engine/analytical/single_sharkfin_option_analytical_engine.py +357 -0
  19. quantark-0.5.5/quantark/asset/equity/engine/barrier_schedule_rules.py +252 -0
  20. quantark-0.5.5/quantark/asset/equity/engine/base_engine.py +382 -0
  21. quantark-0.5.5/quantark/asset/equity/engine/dcn_valuation.py +223 -0
  22. quantark-0.5.5/quantark/asset/equity/engine/event_stats.py +386 -0
  23. quantark-0.5.5/quantark/asset/equity/engine/localvol_greeks.py +81 -0
  24. quantark-0.5.5/quantark/asset/equity/engine/mc/accumulator_mc_engine.py +546 -0
  25. quantark-0.5.5/quantark/asset/equity/engine/mc/american_option_mc_engine.py +654 -0
  26. quantark-0.5.5/quantark/asset/equity/engine/mc/asian_option_mc_engine.py +773 -0
  27. quantark-0.5.5/quantark/asset/equity/engine/mc/barrier_option_mc_engine.py +906 -0
  28. quantark-0.5.5/quantark/asset/equity/engine/mc/barrier_vol_mc_engines.py +358 -0
  29. quantark-0.5.5/quantark/asset/equity/engine/mc/dcn_execution_adapters.py +915 -0
  30. quantark-0.5.5/quantark/asset/equity/engine/mc/dcn_mc_engine.py +541 -0
  31. quantark-0.5.5/quantark/asset/equity/engine/mc/dcn_payoff.py +122 -0
  32. quantark-0.5.5/quantark/asset/equity/engine/mc/digital_option_mc_engine.py +457 -0
  33. quantark-0.5.5/quantark/asset/equity/engine/mc/double_sharkfin_option_mc_engine.py +821 -0
  34. quantark-0.5.5/quantark/asset/equity/engine/mc/euro_mc_engine.py +513 -0
  35. quantark-0.5.5/quantark/asset/equity/engine/mc/heston_mc_engine.py +139 -0
  36. quantark-0.5.5/quantark/asset/equity/engine/mc/heston_slv_mc_engine.py +184 -0
  37. quantark-0.5.5/quantark/asset/equity/engine/mc/local_vol_mc_engine.py +166 -0
  38. quantark-0.5.5/quantark/asset/equity/engine/mc/phoenix_mc_engine.py +1420 -0
  39. quantark-0.5.5/quantark/asset/equity/engine/mc/phoenix_vol_mc_engines.py +800 -0
  40. quantark-0.5.5/quantark/asset/equity/engine/mc/range_accrual_mc_engine.py +794 -0
  41. quantark-0.5.5/quantark/asset/equity/engine/mc/single_sharkfin_option_mc_engine.py +704 -0
  42. quantark-0.5.5/quantark/asset/equity/engine/mc/snowball_mc_engine.py +3023 -0
  43. quantark-0.5.5/quantark/asset/equity/engine/mc/snowball_vol_mc_engines.py +2141 -0
  44. quantark-0.5.5/quantark/asset/equity/engine/monitoring_ended.py +101 -0
  45. quantark-0.5.5/quantark/asset/equity/engine/pde/_legacy_bump.py +81 -0
  46. quantark-0.5.5/quantark/asset/equity/engine/pde/american_pde_solver.py +256 -0
  47. quantark-0.5.5/quantark/asset/equity/engine/pde/barrier_pde_solver.py +419 -0
  48. quantark-0.5.5/quantark/asset/equity/engine/pde/barrier_vol_pde_solvers.py +296 -0
  49. quantark-0.5.5/quantark/asset/equity/engine/pde/base_pde_solver.py +1326 -0
  50. quantark-0.5.5/quantark/asset/equity/engine/pde/core/__init__.py +15 -0
  51. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/__init__.py +4 -0
  52. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/american.py +131 -0
  53. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/barrier.py +590 -0
  54. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/base.py +255 -0
  55. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/dcn.py +224 -0
  56. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/european.py +79 -0
  57. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/expiry_replication.py +156 -0
  58. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/ko_reset.py +115 -0
  59. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/local_vol.py +32 -0
  60. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/phoenix.py +216 -0
  61. quantark-0.5.5/quantark/asset/equity/engine/pde/core/adapters/snowball.py +559 -0
  62. quantark-0.5.5/quantark/asset/equity/engine/pde/core/backends.py +260 -0
  63. quantark-0.5.5/quantark/asset/equity/engine/pde/core/coefficients.py +75 -0
  64. quantark-0.5.5/quantark/asset/equity/engine/pde/core/components.py +536 -0
  65. quantark-0.5.5/quantark/asset/equity/engine/pde/core/groups.py +52 -0
  66. quantark-0.5.5/quantark/asset/equity/engine/pde/core/identity.py +133 -0
  67. quantark-0.5.5/quantark/asset/equity/engine/pde/core/march.py +140 -0
  68. quantark-0.5.5/quantark/asset/equity/engine/pde/core/plan.py +288 -0
  69. quantark-0.5.5/quantark/asset/equity/engine/pde/core/prepare.py +329 -0
  70. quantark-0.5.5/quantark/asset/equity/engine/pde/core/readout.py +8 -0
  71. quantark-0.5.5/quantark/asset/equity/engine/pde/core/samples.py +145 -0
  72. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/__init__.py +10 -0
  73. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/breach.py +21 -0
  74. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/columns.py +75 -0
  75. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/group.py +30 -0
  76. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/ko_reset.py +221 -0
  77. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/phoenix.py +447 -0
  78. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/readout.py +174 -0
  79. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/rows.py +33 -0
  80. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/snowball.py +289 -0
  81. quantark-0.5.5/quantark/asset/equity/engine/pde/core/statistics/terminal.py +177 -0
  82. quantark-0.5.5/quantark/asset/equity/engine/pde/dcn_pde_solver.py +140 -0
  83. quantark-0.5.5/quantark/asset/equity/engine/pde/dcn_vol_pde_solvers.py +436 -0
  84. quantark-0.5.5/quantark/asset/equity/engine/pde/double_barrier_pde_solver.py +304 -0
  85. quantark-0.5.5/quantark/asset/equity/engine/pde/double_one_touch_pde_solver.py +335 -0
  86. quantark-0.5.5/quantark/asset/equity/engine/pde/european_pde_solver.py +208 -0
  87. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/__init__.py +63 -0
  88. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/binder.py +262 -0
  89. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/config.py +190 -0
  90. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/events.py +457 -0
  91. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/mesh_kernels.py +168 -0
  92. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/request.py +155 -0
  93. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/space.py +558 -0
  94. quantark-0.5.5/quantark/asset/equity/engine/pde/grid/time.py +204 -0
  95. quantark-0.5.5/quantark/asset/equity/engine/pde/heston_pde_solver.py +178 -0
  96. quantark-0.5.5/quantark/asset/equity/engine/pde/heston_slv_pde_solver.py +170 -0
  97. quantark-0.5.5/quantark/asset/equity/engine/pde/ko_reset_snowball_pde_solver.py +419 -0
  98. quantark-0.5.5/quantark/asset/equity/engine/pde/local_vol_pde_solver.py +73 -0
  99. quantark-0.5.5/quantark/asset/equity/engine/pde/local_vol_surface.py +92 -0
  100. quantark-0.5.5/quantark/asset/equity/engine/pde/one_touch_pde_solver.py +323 -0
  101. quantark-0.5.5/quantark/asset/equity/engine/pde/pde_execution_adapters.py +474 -0
  102. quantark-0.5.5/quantark/asset/equity/engine/pde/pde_session_prep.py +329 -0
  103. quantark-0.5.5/quantark/asset/equity/engine/pde/phoenix_pde_solver.py +1042 -0
  104. quantark-0.5.5/quantark/asset/equity/engine/pde/phoenix_vol_pde_solvers.py +1011 -0
  105. quantark-0.5.5/quantark/asset/equity/engine/pde/route_applicability.py +81 -0
  106. quantark-0.5.5/quantark/asset/equity/engine/pde/snowball_pde_solver.py +2061 -0
  107. quantark-0.5.5/quantark/asset/equity/engine/pde/snowball_vol_pde_solvers.py +1225 -0
  108. quantark-0.5.5/quantark/asset/equity/engine/pde/vol_continuous_ki.py +158 -0
  109. quantark-0.5.5/quantark/asset/equity/engine/pde_engine.py +263 -0
  110. quantark-0.5.5/quantark/asset/equity/engine/quad/discrete_quad_engine.py +181 -0
  111. quantark-0.5.5/quantark/asset/equity/engine/quad/european_quad_engine.py +374 -0
  112. quantark-0.5.5/quantark/asset/equity/engine/quad/ko_reset_snowball_quad_engine.py +1002 -0
  113. quantark-0.5.5/quantark/asset/equity/engine/quad/phoenix_quad_engine.py +1049 -0
  114. quantark-0.5.5/quantark/asset/equity/engine/quad/quad_adapters.py +1603 -0
  115. quantark-0.5.5/quantark/asset/equity/engine/quad/snowball_quad_engine.py +2946 -0
  116. quantark-0.5.5/quantark/asset/equity/engine/quad/v2/adapters.py +662 -0
  117. quantark-0.5.5/quantark/asset/equity/engine/quad/v2/engine.py +566 -0
  118. quantark-0.5.5/quantark/asset/equity/engine/settlement_support.py +650 -0
  119. quantark-0.5.5/quantark/asset/equity/engine/validation/script/benchmark_check_american_pde.py +115 -0
  120. quantark-0.5.5/quantark/asset/equity/engine/validation/script/benchmark_check_barrier_pde_solver.py +632 -0
  121. quantark-0.5.5/quantark/asset/equity/engine/validation/script/benchmark_check_snowball_pde_solver.py +801 -0
  122. quantark-0.5.5/quantark/asset/equity/engine/validation/script/boundary_check_american_pde.py +243 -0
  123. quantark-0.5.5/quantark/asset/equity/engine/validation/script/boundary_check_barrier_pde_solver.py +744 -0
  124. quantark-0.5.5/quantark/asset/equity/engine/validation/script/boundary_check_snowball_pde_solver.py +1102 -0
  125. quantark-0.5.5/quantark/asset/equity/engine/validation/script/mc_comparison_barrier_pde.py +271 -0
  126. quantark-0.5.5/quantark/asset/equity/engine/validation/script/quick_mc_compare.py +52 -0
  127. quantark-0.5.5/quantark/asset/equity/engine/validation/script/validation_stepdown_improved.py +99 -0
  128. quantark-0.5.5/quantark/asset/equity/engine/vol_barrier_schedule.py +86 -0
  129. quantark-0.5.5/quantark/asset/equity/lifecycle/__init__.py +57 -0
  130. quantark-0.5.5/quantark/asset/equity/lifecycle/autocallable.py +1178 -0
  131. quantark-0.5.5/quantark/asset/equity/lifecycle/barrier.py +884 -0
  132. quantark-0.5.5/quantark/asset/equity/lifecycle/dcn.py +385 -0
  133. quantark-0.5.5/quantark/asset/equity/lifecycle/ko_reset.py +631 -0
  134. quantark-0.5.5/quantark/asset/equity/lifecycle/manager.py +416 -0
  135. quantark-0.5.5/quantark/asset/equity/lifecycle/providers.py +50 -0
  136. quantark-0.5.5/quantark/asset/equity/lifecycle/snapping.py +125 -0
  137. quantark-0.5.5/quantark/asset/equity/lifecycle/state.py +416 -0
  138. quantark-0.5.5/quantark/asset/equity/param/__init__.py +24 -0
  139. quantark-0.5.5/quantark/asset/equity/param/engine_param_profiles.py +235 -0
  140. quantark-0.5.5/quantark/asset/equity/param/engine_params.py +992 -0
  141. quantark-0.5.5/quantark/asset/equity/param/pde_removed_names.py +144 -0
  142. quantark-0.5.5/quantark/asset/equity/product/base_equity_product.py +76 -0
  143. quantark-0.5.5/quantark/asset/equity/product/option/__init__.py +129 -0
  144. quantark-0.5.5/quantark/asset/equity/product/option/accrual.py +340 -0
  145. quantark-0.5.5/quantark/asset/equity/product/option/accrual_build.py +370 -0
  146. quantark-0.5.5/quantark/asset/equity/product/option/accumulator_option.py +457 -0
  147. quantark-0.5.5/quantark/asset/equity/product/option/asian_option.py +875 -0
  148. quantark-0.5.5/quantark/asset/equity/product/option/barrier_option.py +307 -0
  149. quantark-0.5.5/quantark/asset/equity/product/option/base_equity_option.py +756 -0
  150. quantark-0.5.5/quantark/asset/equity/product/option/dcn_grid.py +94 -0
  151. quantark-0.5.5/quantark/asset/equity/product/option/dcn_option.py +239 -0
  152. quantark-0.5.5/quantark/asset/equity/product/option/dcn_schedule.py +233 -0
  153. quantark-0.5.5/quantark/asset/equity/product/option/double_barrier_option.py +304 -0
  154. quantark-0.5.5/quantark/asset/equity/product/option/double_one_touch_option.py +323 -0
  155. quantark-0.5.5/quantark/asset/equity/product/option/double_sharkfin_option.py +477 -0
  156. quantark-0.5.5/quantark/asset/equity/product/option/ko_reset_snowball_option.py +763 -0
  157. quantark-0.5.5/quantark/asset/equity/product/option/observation_schedule.py +818 -0
  158. quantark-0.5.5/quantark/asset/equity/product/option/one_touch_option.py +300 -0
  159. quantark-0.5.5/quantark/asset/equity/product/option/phoenix_option.py +1277 -0
  160. quantark-0.5.5/quantark/asset/equity/product/option/range_accrual_config.py +289 -0
  161. quantark-0.5.5/quantark/asset/equity/product/option/range_accrual_option.py +787 -0
  162. quantark-0.5.5/quantark/asset/equity/product/option/single_sharkfin_option.py +431 -0
  163. quantark-0.5.5/quantark/asset/equity/product/option/snowball_config.py +421 -0
  164. quantark-0.5.5/quantark/asset/equity/product/option/snowball_option.py +1309 -0
  165. quantark-0.5.5/quantark/asset/equity/report/autocallable_risk_report.py +2139 -0
  166. quantark-0.5.5/quantark/asset/equity/riskmeasures/greek_conventions_report.py +155 -0
  167. quantark-0.5.5/quantark/asset/equity/riskmeasures/greeks/analytical.py +481 -0
  168. quantark-0.5.5/quantark/asset/equity/riskmeasures/greeks/numerical.py +835 -0
  169. quantark-0.5.5/quantark/asset/equity/riskmeasures/greeks/theta_shift.py +321 -0
  170. quantark-0.5.5/quantark/asset/equity/riskmeasures/greeks_calculator.py +1385 -0
  171. quantark-0.5.5/quantark/asset/equity/riskmeasures/surface_shock_pipeline.py +296 -0
  172. quantark-0.5.5/quantark/asset/equity/settlement.py +610 -0
  173. quantark-0.5.5/quantark/asset/fx/engine/base_fx_engine.py +310 -0
  174. quantark-0.5.5/quantark/asset/fx/engine/localvol_greeks.py +106 -0
  175. quantark-0.5.5/quantark/asset/fx/engine/mc/fx_barrier_mc_engine.py +306 -0
  176. quantark-0.5.5/quantark/asset/fx/engine/mc/fx_range_accrual_mc_engine.py +348 -0
  177. quantark-0.5.5/quantark/asset/fx/engine/mc/fx_sharkfin_mc_engine.py +126 -0
  178. quantark-0.5.5/quantark/asset/fx/engine/mc/fx_tarf_mc_engine.py +201 -0
  179. quantark-0.5.5/quantark/asset/fx/engine/mc/fx_tarn_note_mc_engine.py +205 -0
  180. quantark-0.5.5/quantark/asset/fx/engine/pde/heston_pde_solver.py +108 -0
  181. quantark-0.5.5/quantark/asset/fx/engine/pde/heston_slv_pde_solver.py +106 -0
  182. quantark-0.5.5/quantark/asset/fx/product/base_fx_product.py +171 -0
  183. quantark-0.5.5/quantark/asset/fx/product/option/__init__.py +48 -0
  184. quantark-0.5.5/quantark/asset/fx/product/option/fx_foreign_range_accrual_option.py +74 -0
  185. quantark-0.5.5/quantark/asset/fx/product/option/fx_quanto_range_accrual_option.py +103 -0
  186. quantark-0.5.5/quantark/asset/fx/product/option/fx_range_accrual_config.py +259 -0
  187. quantark-0.5.5/quantark/asset/fx/product/option/fx_range_accrual_option.py +510 -0
  188. quantark-0.5.5/quantark/asset/fx/product/option/fx_target_redemption_forward.py +139 -0
  189. quantark-0.5.5/quantark/asset/fx/product/option/fx_target_redemption_note.py +356 -0
  190. quantark-0.5.5/quantark/asset/fx/product/option/target_redemption_base.py +766 -0
  191. quantark-0.5.5/quantark/asset/fx/product/option/target_redemption_state.py +161 -0
  192. quantark-0.5.5/quantark/backtest/__init__.py +190 -0
  193. quantark-0.5.5/quantark/backtest/equity/engine.py +682 -0
  194. quantark-0.5.5/quantark/backtest/fx/engine.py +180 -0
  195. quantark-0.5.5/quantark/backtest/replay/__init__.py +113 -0
  196. quantark-0.5.5/quantark/backtest/replay/config.py +727 -0
  197. quantark-0.5.5/quantark/backtest/replay/dashboard.py +1036 -0
  198. quantark-0.5.5/quantark/backtest/replay/engine.py +1285 -0
  199. quantark-0.5.5/quantark/backtest/replay/engine_factory.py +354 -0
  200. quantark-0.5.5/quantark/backtest/replay/product_replay.py +994 -0
  201. quantark-0.5.5/quantark/backtest/simulation/config.py +256 -0
  202. quantark-0.5.5/quantark/backtest/simulation/engine.py +533 -0
  203. quantark-0.5.5/quantark/backtest/simulation/ko_reset_lifecycle.py +143 -0
  204. quantark-0.5.5/quantark/backtest/simulation/lifecycle.py +308 -0
  205. quantark-0.5.5/quantark/backtest/simulation/pricing/base.py +324 -0
  206. quantark-0.5.5/quantark/backtest/simulation/pricing/repricing.py +567 -0
  207. quantark-0.5.5/quantark/backtest/simulation/pricing/surface.py +621 -0
  208. quantark-0.5.5/quantark/cashleg/accrual_leg.py +208 -0
  209. quantark-0.5.5/quantark/cashleg/autocallable_leg.py +262 -0
  210. quantark-0.5.5/quantark/cashleg/event_distribution.py +528 -0
  211. quantark-0.5.5/quantark/cashleg/leg_schedule.py +137 -0
  212. quantark-0.5.5/quantark/dynamicscenario/engine.py +764 -0
  213. quantark-0.5.5/quantark/dynamicscenario/fx/engine.py +242 -0
  214. quantark-0.5.5/quantark/dynamicscenario/results/dynamic_results.py +700 -0
  215. quantark-0.5.5/quantark/execution/greeks.py +516 -0
  216. quantark-0.5.5/quantark/execution/inventory.py +549 -0
  217. quantark-0.5.5/quantark/execution/kernel.py +241 -0
  218. quantark-0.5.5/quantark/execution/registry.py +341 -0
  219. quantark-0.5.5/quantark/intraday/engines/mc.py +109 -0
  220. quantark-0.5.5/quantark/intraday/engines/pde.py +285 -0
  221. quantark-0.5.5/quantark/intraday/events.py +432 -0
  222. quantark-0.5.5/quantark/intraday/provisional.py +441 -0
  223. quantark-0.5.5/quantark/intraday/resolution.py +130 -0
  224. quantark-0.5.5/quantark/intraday/twin.py +417 -0
  225. quantark-0.5.5/quantark/modelvalidation/amendment.py +456 -0
  226. quantark-0.5.5/quantark/modelvalidation/anchors.py +342 -0
  227. quantark-0.5.5/quantark/modelvalidation/builders/equity_ko_reset.py +564 -0
  228. quantark-0.5.5/quantark/modelvalidation/builders/equity_phoenix.py +532 -0
  229. quantark-0.5.5/quantark/modelvalidation/builders/equity_snowball.py +668 -0
  230. quantark-0.5.5/quantark/modelvalidation/builders/equity_snowball_localvol.py +518 -0
  231. quantark-0.5.5/quantark/modelvalidation/builders/equity_snowball_vol.py +566 -0
  232. quantark-0.5.5/quantark/modelvalidation/builders/intraday_snowball.py +393 -0
  233. quantark-0.5.5/quantark/modelvalidation/builders/pde_declared.py +45 -0
  234. quantark-0.5.5/quantark/modelvalidation/cli.py +213 -0
  235. quantark-0.5.5/quantark/modelvalidation/engine_config.py +80 -0
  236. quantark-0.5.5/quantark/montecarlo/__init__.py +88 -0
  237. quantark-0.5.5/quantark/montecarlo/qmc_sobol.py +328 -0
  238. quantark-0.5.5/quantark/montecarlo/std_error.py +82 -0
  239. quantark-0.5.5/quantark/pnlexplain/base.py +271 -0
  240. quantark-0.5.5/quantark/pnlexplain/equity/explain.py +153 -0
  241. quantark-0.5.5/quantark/pnlexplain/equity/fingerprints.py +473 -0
  242. quantark-0.5.5/quantark/pnlexplain/equity/lifecycle.py +249 -0
  243. quantark-0.5.5/quantark/pnlexplain/equity/recorder.py +435 -0
  244. quantark-0.5.5/quantark/pnlexplain/equity/scenario.py +113 -0
  245. quantark-0.5.5/quantark/portfolio/equity/position.py +600 -0
  246. quantark-0.5.5/quantark/sacva/sacva_engine.py +363 -0
  247. quantark-0.5.5/quantark/stresstest/equity/engine.py +277 -0
  248. quantark-0.5.5/quantark/stresstest/fx/engine.py +201 -0
  249. quantark-0.5.5/quantark/util/calendar/business_calendar.py +786 -0
  250. quantark-0.5.5/quantark/util/enum/__init__.py +112 -0
  251. quantark-0.5.5/quantark/util/enum/engine_enums.py +263 -0
  252. quantark-0.5.5/quantark/util/enum/option_enums.py +250 -0
  253. quantark-0.5.5/quantark/util/fixings.py +109 -0
  254. quantark-0.5.5/quantark/util/numerical/__init__.py +129 -0
  255. quantark-0.5.5/quantark/util/numerical/safe_math.py +251 -0
  256. quantark-0.5.5/quantark/util/numerical/time_nodes.py +64 -0
  257. quantark-0.5.5/quantark/util/run_fixings.py +286 -0
  258. quantark-0.5.5/quantark/var/engines/historical.py +933 -0
  259. quantark-0.5.5/quantark/var/engines/monte_carlo.py +877 -0
  260. quantark-0.5.5/quantark/var/engines/parametric.py +1184 -0
  261. quantark-0.5.5/quantark/var/fx/engine.py +322 -0
  262. quantark-0.5.5/quantark/volmodels/adi_core.py +1375 -0
  263. quantark-0.5.5/quantark/volmodels/heston/deterministic_limit.py +43 -0
  264. quantark-0.5.5/quantark/volmodels/heston/mc_kernel.py +530 -0
  265. quantark-0.5.5/quantark/volmodels/heston/pde_kernel.py +248 -0
  266. quantark-0.5.5/quantark/volmodels/localvol/pde_kernel.py +190 -0
  267. quantark-0.5.5/quantark/volmodels/slv/slv_mc_kernel.py +366 -0
  268. quantark-0.5.5/quantark/volmodels/slv/slv_pde_kernel.py +203 -0
  269. quantark-0.5.5/test/replay_golden/README.md +261 -0
  270. quantark-0.5.0/CHANGELOG.md +0 -838
  271. quantark-0.5.0/PKG-INFO +0 -426
  272. quantark-0.5.0/README.md +0 -382
  273. quantark-0.5.0/pyproject.toml +0 -71
  274. quantark-0.5.0/quantark/__init__.py +0 -3
  275. quantark-0.5.0/quantark/asset/equity/engine/analytical/accumulator_analytical_engine.py +0 -472
  276. quantark-0.5.0/quantark/asset/equity/engine/analytical/asian_option_analytical_engine.py +0 -1198
  277. quantark-0.5.0/quantark/asset/equity/engine/analytical/barrier_analytical_engine.py +0 -530
  278. quantark-0.5.0/quantark/asset/equity/engine/analytical/black_scholes_engine.py +0 -353
  279. quantark-0.5.0/quantark/asset/equity/engine/analytical/double_barrier_option_engine.py +0 -506
  280. quantark-0.5.0/quantark/asset/equity/engine/analytical/double_sharkfin_option_analytical_engine.py +0 -603
  281. quantark-0.5.0/quantark/asset/equity/engine/analytical/heston_analytical_engine.py +0 -120
  282. quantark-0.5.0/quantark/asset/equity/engine/analytical/one_touch_analytical_engine.py +0 -386
  283. quantark-0.5.0/quantark/asset/equity/engine/analytical/range_accrual_analytical_engine.py +0 -433
  284. quantark-0.5.0/quantark/asset/equity/engine/analytical/single_sharkfin_option_analytical_engine.py +0 -264
  285. quantark-0.5.0/quantark/asset/equity/engine/base_engine.py +0 -371
  286. quantark-0.5.0/quantark/asset/equity/engine/event_stats.py +0 -322
  287. quantark-0.5.0/quantark/asset/equity/engine/localvol_greeks.py +0 -68
  288. quantark-0.5.0/quantark/asset/equity/engine/mc/accumulator_mc_engine.py +0 -522
  289. quantark-0.5.0/quantark/asset/equity/engine/mc/american_option_mc_engine.py +0 -648
  290. quantark-0.5.0/quantark/asset/equity/engine/mc/asian_option_mc_engine.py +0 -749
  291. quantark-0.5.0/quantark/asset/equity/engine/mc/barrier_option_mc_engine.py +0 -842
  292. quantark-0.5.0/quantark/asset/equity/engine/mc/barrier_vol_mc_engines.py +0 -296
  293. quantark-0.5.0/quantark/asset/equity/engine/mc/dcn_execution_adapters.py +0 -830
  294. quantark-0.5.0/quantark/asset/equity/engine/mc/dcn_mc_engine.py +0 -429
  295. quantark-0.5.0/quantark/asset/equity/engine/mc/dcn_payoff.py +0 -119
  296. quantark-0.5.0/quantark/asset/equity/engine/mc/digital_option_mc_engine.py +0 -452
  297. quantark-0.5.0/quantark/asset/equity/engine/mc/double_sharkfin_option_mc_engine.py +0 -783
  298. quantark-0.5.0/quantark/asset/equity/engine/mc/euro_mc_engine.py +0 -483
  299. quantark-0.5.0/quantark/asset/equity/engine/mc/heston_mc_engine.py +0 -125
  300. quantark-0.5.0/quantark/asset/equity/engine/mc/heston_slv_mc_engine.py +0 -170
  301. quantark-0.5.0/quantark/asset/equity/engine/mc/local_vol_mc_engine.py +0 -157
  302. quantark-0.5.0/quantark/asset/equity/engine/mc/phoenix_mc_engine.py +0 -1405
  303. quantark-0.5.0/quantark/asset/equity/engine/mc/phoenix_vol_mc_engines.py +0 -797
  304. quantark-0.5.0/quantark/asset/equity/engine/mc/range_accrual_mc_engine.py +0 -788
  305. quantark-0.5.0/quantark/asset/equity/engine/mc/single_sharkfin_option_mc_engine.py +0 -656
  306. quantark-0.5.0/quantark/asset/equity/engine/mc/snowball_mc_engine.py +0 -2963
  307. quantark-0.5.0/quantark/asset/equity/engine/mc/snowball_vol_mc_engines.py +0 -2127
  308. quantark-0.5.0/quantark/asset/equity/engine/pde/american_pde_solver.py +0 -385
  309. quantark-0.5.0/quantark/asset/equity/engine/pde/backward_operator.py +0 -144
  310. quantark-0.5.0/quantark/asset/equity/engine/pde/barrier_pde_solver.py +0 -666
  311. quantark-0.5.0/quantark/asset/equity/engine/pde/barrier_vol_pde_solvers.py +0 -244
  312. quantark-0.5.0/quantark/asset/equity/engine/pde/base_pde_solver.py +0 -1843
  313. quantark-0.5.0/quantark/asset/equity/engine/pde/dcn_pde_solver.py +0 -312
  314. quantark-0.5.0/quantark/asset/equity/engine/pde/dcn_vol_pde_solvers.py +0 -335
  315. quantark-0.5.0/quantark/asset/equity/engine/pde/double_barrier_pde_solver.py +0 -505
  316. quantark-0.5.0/quantark/asset/equity/engine/pde/double_one_touch_pde_solver.py +0 -453
  317. quantark-0.5.0/quantark/asset/equity/engine/pde/european_pde_solver.py +0 -235
  318. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/__init__.py +0 -53
  319. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/binder.py +0 -337
  320. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/config.py +0 -176
  321. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/events.py +0 -313
  322. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/request.py +0 -115
  323. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/space.py +0 -542
  324. quantark-0.5.0/quantark/asset/equity/engine/pde/grid/time.py +0 -163
  325. quantark-0.5.0/quantark/asset/equity/engine/pde/heston_pde_solver.py +0 -170
  326. quantark-0.5.0/quantark/asset/equity/engine/pde/heston_slv_pde_solver.py +0 -162
  327. quantark-0.5.0/quantark/asset/equity/engine/pde/ko_reset_snowball_pde_solver.py +0 -648
  328. quantark-0.5.0/quantark/asset/equity/engine/pde/local_vol_pde_solver.py +0 -154
  329. quantark-0.5.0/quantark/asset/equity/engine/pde/one_touch_pde_solver.py +0 -424
  330. quantark-0.5.0/quantark/asset/equity/engine/pde/pde_execution_adapters.py +0 -494
  331. quantark-0.5.0/quantark/asset/equity/engine/pde/pde_session_prep.py +0 -325
  332. quantark-0.5.0/quantark/asset/equity/engine/pde/phoenix_pde_solver.py +0 -1412
  333. quantark-0.5.0/quantark/asset/equity/engine/pde/phoenix_vol_pde_solvers.py +0 -1083
  334. quantark-0.5.0/quantark/asset/equity/engine/pde/snowball_pde_solver.py +0 -3409
  335. quantark-0.5.0/quantark/asset/equity/engine/pde/snowball_vol_pde_solvers.py +0 -1294
  336. quantark-0.5.0/quantark/asset/equity/engine/pde/vol_continuous_ki.py +0 -163
  337. quantark-0.5.0/quantark/asset/equity/engine/pde_engine.py +0 -312
  338. quantark-0.5.0/quantark/asset/equity/engine/quad/discrete_quad_engine.py +0 -126
  339. quantark-0.5.0/quantark/asset/equity/engine/quad/european_quad_engine.py +0 -368
  340. quantark-0.5.0/quantark/asset/equity/engine/quad/ko_reset_snowball_quad_engine.py +0 -998
  341. quantark-0.5.0/quantark/asset/equity/engine/quad/phoenix_quad_engine.py +0 -1050
  342. quantark-0.5.0/quantark/asset/equity/engine/quad/quad_adapters.py +0 -1476
  343. quantark-0.5.0/quantark/asset/equity/engine/quad/snowball_quad_engine.py +0 -2948
  344. quantark-0.5.0/quantark/asset/equity/engine/quad/v2/adapters.py +0 -678
  345. quantark-0.5.0/quantark/asset/equity/engine/quad/v2/engine.py +0 -555
  346. quantark-0.5.0/quantark/asset/equity/engine/settlement_support.py +0 -604
  347. quantark-0.5.0/quantark/asset/equity/engine/validation/script/benchmark_check_american_pde.py +0 -114
  348. quantark-0.5.0/quantark/asset/equity/engine/validation/script/benchmark_check_barrier_pde_solver.py +0 -634
  349. quantark-0.5.0/quantark/asset/equity/engine/validation/script/benchmark_check_snowball_pde_solver.py +0 -807
  350. quantark-0.5.0/quantark/asset/equity/engine/validation/script/boundary_check_american_pde.py +0 -242
  351. quantark-0.5.0/quantark/asset/equity/engine/validation/script/boundary_check_barrier_pde_solver.py +0 -747
  352. quantark-0.5.0/quantark/asset/equity/engine/validation/script/boundary_check_snowball_pde_solver.py +0 -1103
  353. quantark-0.5.0/quantark/asset/equity/engine/validation/script/mc_comparison_barrier_pde.py +0 -270
  354. quantark-0.5.0/quantark/asset/equity/engine/validation/script/quick_mc_compare.py +0 -51
  355. quantark-0.5.0/quantark/asset/equity/engine/validation/script/validation_stepdown_improved.py +0 -97
  356. quantark-0.5.0/quantark/asset/equity/lifecycle/__init__.py +0 -47
  357. quantark-0.5.0/quantark/asset/equity/lifecycle/autocallable.py +0 -795
  358. quantark-0.5.0/quantark/asset/equity/lifecycle/barrier.py +0 -733
  359. quantark-0.5.0/quantark/asset/equity/lifecycle/manager.py +0 -382
  360. quantark-0.5.0/quantark/asset/equity/lifecycle/state.py +0 -305
  361. quantark-0.5.0/quantark/asset/equity/param/__init__.py +0 -26
  362. quantark-0.5.0/quantark/asset/equity/param/engine_param_profiles.py +0 -270
  363. quantark-0.5.0/quantark/asset/equity/param/engine_params.py +0 -1037
  364. quantark-0.5.0/quantark/asset/equity/product/base_equity_product.py +0 -72
  365. quantark-0.5.0/quantark/asset/equity/product/option/__init__.py +0 -128
  366. quantark-0.5.0/quantark/asset/equity/product/option/accumulator_option.py +0 -459
  367. quantark-0.5.0/quantark/asset/equity/product/option/asian_option.py +0 -673
  368. quantark-0.5.0/quantark/asset/equity/product/option/barrier_option.py +0 -306
  369. quantark-0.5.0/quantark/asset/equity/product/option/base_equity_option.py +0 -712
  370. quantark-0.5.0/quantark/asset/equity/product/option/dcn_grid.py +0 -80
  371. quantark-0.5.0/quantark/asset/equity/product/option/dcn_option.py +0 -161
  372. quantark-0.5.0/quantark/asset/equity/product/option/dcn_schedule.py +0 -198
  373. quantark-0.5.0/quantark/asset/equity/product/option/double_barrier_option.py +0 -303
  374. quantark-0.5.0/quantark/asset/equity/product/option/double_one_touch_option.py +0 -329
  375. quantark-0.5.0/quantark/asset/equity/product/option/double_sharkfin_option.py +0 -477
  376. quantark-0.5.0/quantark/asset/equity/product/option/ko_reset_snowball_option.py +0 -723
  377. quantark-0.5.0/quantark/asset/equity/product/option/observation_schedule.py +0 -686
  378. quantark-0.5.0/quantark/asset/equity/product/option/one_touch_option.py +0 -306
  379. quantark-0.5.0/quantark/asset/equity/product/option/phoenix_option.py +0 -1402
  380. quantark-0.5.0/quantark/asset/equity/product/option/range_accrual_config.py +0 -288
  381. quantark-0.5.0/quantark/asset/equity/product/option/range_accrual_option.py +0 -545
  382. quantark-0.5.0/quantark/asset/equity/product/option/single_sharkfin_option.py +0 -431
  383. quantark-0.5.0/quantark/asset/equity/product/option/snowball_config.py +0 -361
  384. quantark-0.5.0/quantark/asset/equity/product/option/snowball_option.py +0 -1343
  385. quantark-0.5.0/quantark/asset/equity/report/autocallable_risk_report.py +0 -2111
  386. quantark-0.5.0/quantark/asset/equity/riskmeasures/greek_conventions_report.py +0 -146
  387. quantark-0.5.0/quantark/asset/equity/riskmeasures/greeks/analytical.py +0 -439
  388. quantark-0.5.0/quantark/asset/equity/riskmeasures/greeks/numerical.py +0 -833
  389. quantark-0.5.0/quantark/asset/equity/riskmeasures/greeks_calculator.py +0 -1334
  390. quantark-0.5.0/quantark/asset/equity/riskmeasures/surface_shock_pipeline.py +0 -291
  391. quantark-0.5.0/quantark/asset/equity/settlement.py +0 -540
  392. quantark-0.5.0/quantark/asset/fx/engine/base_fx_engine.py +0 -299
  393. quantark-0.5.0/quantark/asset/fx/engine/localvol_greeks.py +0 -76
  394. quantark-0.5.0/quantark/asset/fx/engine/mc/fx_barrier_mc_engine.py +0 -302
  395. quantark-0.5.0/quantark/asset/fx/engine/mc/fx_range_accrual_mc_engine.py +0 -343
  396. quantark-0.5.0/quantark/asset/fx/engine/mc/fx_sharkfin_mc_engine.py +0 -122
  397. quantark-0.5.0/quantark/asset/fx/engine/mc/fx_tarf_mc_engine.py +0 -180
  398. quantark-0.5.0/quantark/asset/fx/engine/mc/fx_tarn_note_mc_engine.py +0 -188
  399. quantark-0.5.0/quantark/asset/fx/engine/pde/heston_pde_solver.py +0 -111
  400. quantark-0.5.0/quantark/asset/fx/engine/pde/heston_slv_pde_solver.py +0 -109
  401. quantark-0.5.0/quantark/asset/fx/product/base_fx_product.py +0 -163
  402. quantark-0.5.0/quantark/asset/fx/product/option/__init__.py +0 -36
  403. quantark-0.5.0/quantark/asset/fx/product/option/fx_foreign_range_accrual_option.py +0 -70
  404. quantark-0.5.0/quantark/asset/fx/product/option/fx_quanto_range_accrual_option.py +0 -99
  405. quantark-0.5.0/quantark/asset/fx/product/option/fx_range_accrual_config.py +0 -258
  406. quantark-0.5.0/quantark/asset/fx/product/option/fx_range_accrual_option.py +0 -318
  407. quantark-0.5.0/quantark/asset/fx/product/option/fx_target_redemption_forward.py +0 -145
  408. quantark-0.5.0/quantark/asset/fx/product/option/fx_target_redemption_note.py +0 -198
  409. quantark-0.5.0/quantark/backtest/__init__.py +0 -180
  410. quantark-0.5.0/quantark/backtest/equity/engine.py +0 -665
  411. quantark-0.5.0/quantark/backtest/fx/engine.py +0 -161
  412. quantark-0.5.0/quantark/backtest/replay/__init__.py +0 -105
  413. quantark-0.5.0/quantark/backtest/replay/config.py +0 -682
  414. quantark-0.5.0/quantark/backtest/replay/dashboard.py +0 -1023
  415. quantark-0.5.0/quantark/backtest/replay/engine.py +0 -1253
  416. quantark-0.5.0/quantark/backtest/replay/engine_factory.py +0 -290
  417. quantark-0.5.0/quantark/backtest/replay/product_replay.py +0 -876
  418. quantark-0.5.0/quantark/backtest/simulation/config.py +0 -236
  419. quantark-0.5.0/quantark/backtest/simulation/engine.py +0 -487
  420. quantark-0.5.0/quantark/backtest/simulation/lifecycle.py +0 -293
  421. quantark-0.5.0/quantark/backtest/simulation/pricing/base.py +0 -307
  422. quantark-0.5.0/quantark/backtest/simulation/pricing/repricing.py +0 -512
  423. quantark-0.5.0/quantark/backtest/simulation/pricing/surface.py +0 -613
  424. quantark-0.5.0/quantark/cashleg/accrual_leg.py +0 -132
  425. quantark-0.5.0/quantark/cashleg/autocallable_leg.py +0 -251
  426. quantark-0.5.0/quantark/cashleg/event_distribution.py +0 -431
  427. quantark-0.5.0/quantark/cashleg/leg_schedule.py +0 -95
  428. quantark-0.5.0/quantark/dynamicscenario/engine.py +0 -751
  429. quantark-0.5.0/quantark/dynamicscenario/fx/engine.py +0 -181
  430. quantark-0.5.0/quantark/dynamicscenario/results/dynamic_results.py +0 -696
  431. quantark-0.5.0/quantark/execution/greeks.py +0 -497
  432. quantark-0.5.0/quantark/execution/inventory.py +0 -551
  433. quantark-0.5.0/quantark/execution/kernel.py +0 -231
  434. quantark-0.5.0/quantark/execution/registry.py +0 -350
  435. quantark-0.5.0/quantark/intraday/engines/mc.py +0 -104
  436. quantark-0.5.0/quantark/intraday/engines/pde.py +0 -251
  437. quantark-0.5.0/quantark/intraday/events.py +0 -453
  438. quantark-0.5.0/quantark/intraday/provisional.py +0 -441
  439. quantark-0.5.0/quantark/intraday/resolution.py +0 -130
  440. quantark-0.5.0/quantark/intraday/twin.py +0 -412
  441. quantark-0.5.0/quantark/modelvalidation/amendment.py +0 -324
  442. quantark-0.5.0/quantark/modelvalidation/anchors.py +0 -333
  443. quantark-0.5.0/quantark/modelvalidation/builders/equity_ko_reset.py +0 -532
  444. quantark-0.5.0/quantark/modelvalidation/builders/equity_phoenix.py +0 -500
  445. quantark-0.5.0/quantark/modelvalidation/builders/equity_snowball.py +0 -637
  446. quantark-0.5.0/quantark/modelvalidation/builders/equity_snowball_localvol.py +0 -486
  447. quantark-0.5.0/quantark/modelvalidation/builders/equity_snowball_vol.py +0 -550
  448. quantark-0.5.0/quantark/modelvalidation/builders/intraday_snowball.py +0 -379
  449. quantark-0.5.0/quantark/modelvalidation/cli.py +0 -207
  450. quantark-0.5.0/quantark/modelvalidation/engine_config.py +0 -70
  451. quantark-0.5.0/quantark/montecarlo/__init__.py +0 -80
  452. quantark-0.5.0/quantark/montecarlo/qmc_sobol.py +0 -320
  453. quantark-0.5.0/quantark/pnlexplain/base.py +0 -270
  454. quantark-0.5.0/quantark/pnlexplain/equity/explain.py +0 -99
  455. quantark-0.5.0/quantark/pnlexplain/equity/fingerprints.py +0 -353
  456. quantark-0.5.0/quantark/pnlexplain/equity/lifecycle.py +0 -221
  457. quantark-0.5.0/quantark/pnlexplain/equity/recorder.py +0 -417
  458. quantark-0.5.0/quantark/pnlexplain/equity/scenario.py +0 -101
  459. quantark-0.5.0/quantark/portfolio/equity/position.py +0 -589
  460. quantark-0.5.0/quantark/sacva/sacva_engine.py +0 -336
  461. quantark-0.5.0/quantark/stresstest/equity/engine.py +0 -272
  462. quantark-0.5.0/quantark/stresstest/fx/engine.py +0 -196
  463. quantark-0.5.0/quantark/util/calendar/business_calendar.py +0 -772
  464. quantark-0.5.0/quantark/util/enum/__init__.py +0 -112
  465. quantark-0.5.0/quantark/util/enum/engine_enums.py +0 -290
  466. quantark-0.5.0/quantark/util/enum/option_enums.py +0 -240
  467. quantark-0.5.0/quantark/util/numerical/__init__.py +0 -124
  468. quantark-0.5.0/quantark/util/numerical/safe_math.py +0 -238
  469. quantark-0.5.0/quantark/var/engines/historical.py +0 -928
  470. quantark-0.5.0/quantark/var/engines/monte_carlo.py +0 -872
  471. quantark-0.5.0/quantark/var/engines/parametric.py +0 -1179
  472. quantark-0.5.0/quantark/var/fx/engine.py +0 -315
  473. quantark-0.5.0/quantark/volmodels/adi_core.py +0 -1358
  474. quantark-0.5.0/quantark/volmodels/heston/mc_kernel.py +0 -524
  475. quantark-0.5.0/quantark/volmodels/heston/pde_kernel.py +0 -274
  476. quantark-0.5.0/quantark/volmodels/localvol/pde_kernel.py +0 -338
  477. quantark-0.5.0/quantark/volmodels/slv/slv_mc_kernel.py +0 -360
  478. quantark-0.5.0/quantark/volmodels/slv/slv_pde_kernel.py +0 -231
  479. quantark-0.5.0/test/replay_golden/README.md +0 -123
  480. {quantark-0.5.0 → quantark-0.5.5}/.gitignore +0 -0
  481. {quantark-0.5.0 → quantark-0.5.5}/LICENSE +0 -0
  482. {quantark-0.5.0 → quantark-0.5.5}/NOTICE +0 -0
  483. {quantark-0.5.0 → quantark-0.5.5}/docs/adi2d-greek-perf/README.md +0 -0
  484. {quantark-0.5.0 → quantark-0.5.5}/docs/bucket-futures-hedge/quad-readout/README.md +0 -0
  485. {quantark-0.5.0 → quantark-0.5.5}/docs/execution/README.md +0 -0
  486. {quantark-0.5.0 → quantark-0.5.5}/docs/mc-reference-convergence/README.md +0 -0
  487. {quantark-0.5.0 → quantark-0.5.5}/docs/mc1d-perf/adapter-book/README.md +0 -0
  488. {quantark-0.5.0 → quantark-0.5.5}/docs/modelvalidation/certificates/adi2d-snowball-greeks/2026-08-19/README.md +0 -0
  489. {quantark-0.5.0 → quantark-0.5.5}/docs/modelvalidation/certificates/snowball-localvol-1d/2026-08-28/README.md +0 -0
  490. {quantark-0.5.0 → quantark-0.5.5}/docs/modelvalidation/legacy/intraday-gate-c/2026-09-18/README.md +0 -0
  491. {quantark-0.5.0 → quantark-0.5.5}/example/fx_volmodels/README.md +0 -0
  492. {quantark-0.5.0 → quantark-0.5.5}/example/intraday_benchmark/README.md +0 -0
  493. {quantark-0.5.0 → quantark-0.5.5}/example/mo_volmodels/README.md +0 -0
  494. {quantark-0.5.0 → quantark-0.5.5}/example/modelvalidation/README.md +0 -0
  495. {quantark-0.5.0 → quantark-0.5.5}/example/quad_v2_feasibility/README.md +0 -0
  496. {quantark-0.5.0 → quantark-0.5.5}/example/quad_v2_validation/README.md +0 -0
  497. {quantark-0.5.0 → quantark-0.5.5}/example/snowball_q_term_structure/README.md +0 -0
  498. {quantark-0.5.0 → quantark-0.5.5}/example/snowball_simulated_paths/README.md +0 -0
  499. {quantark-0.5.0 → quantark-0.5.5}/example/volcalibration/README.md +0 -0
  500. {quantark-0.5.0 → quantark-0.5.5}/quantark/_compat.py +0 -0
  501. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/__init__.py +0 -0
  502. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/__init__.py +0 -0
  503. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/__init__.py +0 -0
  504. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/analytical/__init__.py +0 -0
  505. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/analytical/black_engine.py +0 -0
  506. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/analytical/bond_forward_engine.py +0 -0
  507. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/analytical/bond_futures_engine.py +0 -0
  508. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/convertible/__init__.py +0 -0
  509. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/convertible/convertible_bond_engine.py +0 -0
  510. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/discount/__init__.py +0 -0
  511. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/discount/bond_discount_engine.py +0 -0
  512. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/discount/frn_engine.py +0 -0
  513. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/pde/__init__.py +0 -0
  514. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/pde/convertible/__init__.py +0 -0
  515. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/pde/convertible/jump_diffusion_engine.py +0 -0
  516. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/pde/convertible/pde_params.py +0 -0
  517. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/pde/convertible/tf_engine.py +0 -0
  518. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/tree/__init__.py +0 -0
  519. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/tree/convertible/__init__.py +0 -0
  520. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/tree/convertible/binomial_engine.py +0 -0
  521. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/tree/convertible/tree_params.py +0 -0
  522. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/engine/tree/convertible/trinomial_engine.py +0 -0
  523. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/__init__.py +0 -0
  524. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/base_bond_product.py +0 -0
  525. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/convertible/__init__.py +0 -0
  526. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/convertible/convertible_bond.py +0 -0
  527. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/couponbond/__init__.py +0 -0
  528. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/couponbond/fixed_bond.py +0 -0
  529. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/couponbond/frn.py +0 -0
  530. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/forward/__init__.py +0 -0
  531. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/forward/base_bond_forward.py +0 -0
  532. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/forward/bond_forward.py +0 -0
  533. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/futures/__init__.py +0 -0
  534. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/futures/bond_futures.py +0 -0
  535. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/option/__init__.py +0 -0
  536. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/product/option/euro_short_term_bond_option.py +0 -0
  537. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/riskmeasures/__init__.py +0 -0
  538. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/riskmeasures/bond_greeks_calculator.py +0 -0
  539. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/schedule/__init__.py +0 -0
  540. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/bond/schedule/cashflow.py +0 -0
  541. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/__init__.py +0 -0
  542. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/conventions.py +0 -0
  543. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/__init__.py +0 -0
  544. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/analytical/__init__.py +0 -0
  545. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/analytical/reduced_form.py +0 -0
  546. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/base_credit_engine.py +0 -0
  547. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/mc/__init__.py +0 -0
  548. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/mc/basket_copula.py +0 -0
  549. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/engine/schedule.py +0 -0
  550. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/product/__init__.py +0 -0
  551. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/product/base_credit_product.py +0 -0
  552. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/product/basket_cds.py +0 -0
  553. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/product/cds.py +0 -0
  554. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/riskmeasures/__init__.py +0 -0
  555. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/credit/riskmeasures/credit_greeks_calculator.py +0 -0
  556. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/__init__.py +0 -0
  557. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/analysis/__init__.py +0 -0
  558. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/analysis/autocallable_path_analyzer.py +0 -0
  559. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/__init__.py +0 -0
  560. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/analytical/__init__.py +0 -0
  561. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/analytical/american_option_engine.py +0 -0
  562. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/analytical/deltaone_engine.py +0 -0
  563. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/analytical/digital_option_engine.py +0 -0
  564. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/capabilities.py +0 -0
  565. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/__init__.py +0 -0
  566. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/accrual_calculator.py +0 -0
  567. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/total_return_swap_engine.py +0 -0
  568. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/trs_cva_exposure.py +0 -0
  569. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/trs_cva_repricer.py +0 -0
  570. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/cashflow/trs_valuation.py +0 -0
  571. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/docs/pde_event_projection_explainer.html +0 -0
  572. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/__init__.py +0 -0
  573. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/autocallable_dask_batch.py +0 -0
  574. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/autocallable_execution_adapters.py +0 -0
  575. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/autocallable_payment_timings.py +0 -0
  576. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/dcn_vol_mc_engines.py +0 -0
  577. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/qmc_draws.py +0 -0
  578. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/richardson.py +0 -0
  579. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/sabr_mc_engine.py +0 -0
  580. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/mc/term_inputs.py +0 -0
  581. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/pde/__init__.py +0 -0
  582. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/__init__.py +0 -0
  583. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/quad_core.py +0 -0
  584. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/quad_math.py +0 -0
  585. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/term_inputs.py +0 -0
  586. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/__init__.py +0 -0
  587. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/basis.py +0 -0
  588. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/context.py +0 -0
  589. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/continuous.py +0 -0
  590. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/contract.py +0 -0
  591. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/direct.py +0 -0
  592. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/execution_adapter.py +0 -0
  593. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/fft.py +0 -0
  594. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/gaussian.py +0 -0
  595. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/quad/v2/operator.py +0 -0
  596. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/benchmark_check_american_analytical.py +0 -0
  597. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/benchmark_check_asian_analytical.py +0 -0
  598. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/benchmark_check_barrier_analytical.py +0 -0
  599. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/benchmark_check_digital_option.py +0 -0
  600. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/boundary_check_american_analytical.py +0 -0
  601. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/boundary_check_asian_analytical.py +0 -0
  602. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/boundary_check_barrier_analytical.py +0 -0
  603. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/boundary_check_digital_option.py +0 -0
  604. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/engine/validation/script/greeks_check_digital_option.py +0 -0
  605. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/lifecycle/cashflows.py +0 -0
  606. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/lifecycle/events.py +0 -0
  607. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/lifecycle/float_roll.py +0 -0
  608. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/market/__init__.py +0 -0
  609. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/market/index_futures_curve.py +0 -0
  610. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/param/quad_v2_params.py +0 -0
  611. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/__init__.py +0 -0
  612. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/__init__.py +0 -0
  613. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/bsm_process.py +0 -0
  614. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/qmc_brownian_bridge.py +0 -0
  615. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/qmc_path_generator.py +0 -0
  616. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/qmc_rqmc_driver.py +0 -0
  617. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/qmc_sobol.py +0 -0
  618. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/bsm/qmc_variance_reduction.py +0 -0
  619. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/sabr/__init__.py +0 -0
  620. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/process/sabr/sabr_process.py +0 -0
  621. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/__init__.py +0 -0
  622. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/deltaone/__init__.py +0 -0
  623. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/deltaone/base_deltaone_product.py +0 -0
  624. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/deltaone/futures.py +0 -0
  625. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/deltaone/spot_instrument.py +0 -0
  626. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/american_option.py +0 -0
  627. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/digital_option.py +0 -0
  628. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/european_vanilla_option.py +0 -0
  629. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/phoenix_config.py +0 -0
  630. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/phoenix_helpers.py +0 -0
  631. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/range_accrual_helpers.py +0 -0
  632. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/option/snowball_helpers.py +0 -0
  633. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/__init__.py +0 -0
  634. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/base_swap.py +0 -0
  635. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/multi_asset_trs.py +0 -0
  636. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/one_asset_trs.py +0 -0
  637. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/one_asset_trs_dual_ccy.py +0 -0
  638. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/trs_event_handler.py +0 -0
  639. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/trs_params.py +0 -0
  640. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/product/swap/trs_schedule.py +0 -0
  641. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/report/__init__.py +0 -0
  642. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/report/plotting.py +0 -0
  643. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/report/snowball_risk_comparison_report.py +0 -0
  644. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/report/surfaces.py +0 -0
  645. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/report/term_structure.py +0 -0
  646. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/__init__.py +0 -0
  647. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/__init__.py +0 -0
  648. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/carry_rhoq.py +0 -0
  649. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/futures_delta.py +0 -0
  650. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/rate_keyrate.py +0 -0
  651. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/vol_model.py +0 -0
  652. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_coordinates/vol_tenor_vega.py +0 -0
  653. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/bucketed_greeks.py +0 -0
  654. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/greeks/__init__.py +0 -0
  655. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/greeks/bump_envs.py +0 -0
  656. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/greeks/registry.py +0 -0
  657. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/greeks/theta_decomposition.py +0 -0
  658. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/surface_shock_scenarios.py +0 -0
  659. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/equity/riskmeasures/vol_model_risk.py +0 -0
  660. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/__init__.py +0 -0
  661. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/__init__.py +0 -0
  662. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/__init__.py +0 -0
  663. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_deltaone_engine.py +0 -0
  664. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_digital_engine.py +0 -0
  665. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_foreign_range_accrual_engine.py +0 -0
  666. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_heston_analytical_engine.py +0 -0
  667. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_quanto_digital_engine.py +0 -0
  668. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_quanto_range_accrual_engine.py +0 -0
  669. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_quanto_vanilla_engine.py +0 -0
  670. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/fx_range_accrual_engine.py +0 -0
  671. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/garman_kohlhagen_engine.py +0 -0
  672. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/__init__.py +0 -0
  673. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/arbitrage.py +0 -0
  674. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/attenuation.py +0 -0
  675. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/barrier_bs.py +0 -0
  676. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/vv_barrier.py +0 -0
  677. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/vv_barrier_engine.py +0 -0
  678. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/analytical/vannavolga/vv_vanilla_barrier.py +0 -0
  679. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/localvol_common.py +0 -0
  680. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/mc/__init__.py +0 -0
  681. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/mc/fx_mc_params.py +0 -0
  682. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/mc/heston_mc_engine.py +0 -0
  683. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/mc/heston_slv_mc_engine.py +0 -0
  684. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/mc/local_vol_mc_engine.py +0 -0
  685. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/pde/__init__.py +0 -0
  686. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/pde/fx_pde_execution_adapters.py +0 -0
  687. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/engine/pde/local_vol_pde_solver.py +0 -0
  688. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/process/__init__.py +0 -0
  689. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/process/fx_gk_path_generator.py +0 -0
  690. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/process/garman_kohlhagen_process.py +0 -0
  691. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/__init__.py +0 -0
  692. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/currency_pair.py +0 -0
  693. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/deltaone/__init__.py +0 -0
  694. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/deltaone/base_fx_deltaone.py +0 -0
  695. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/deltaone/fx_forward.py +0 -0
  696. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/deltaone/fx_spot.py +0 -0
  697. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/deltaone/fx_swap.py +0 -0
  698. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_barrier_option.py +0 -0
  699. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_digital_option.py +0 -0
  700. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_one_touch_option.py +0 -0
  701. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_quanto_digital_option.py +0 -0
  702. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_quanto_vanilla_option.py +0 -0
  703. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_sharkfin_option.py +0 -0
  704. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/product/option/fx_vanilla_option.py +0 -0
  705. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/report/__init__.py +0 -0
  706. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/report/fx_report.py +0 -0
  707. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/riskmeasures/__init__.py +0 -0
  708. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/riskmeasures/fx_greeks_calculator.py +0 -0
  709. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/fx/riskmeasures/vol_model_risk.py +0 -0
  710. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/__init__.py +0 -0
  711. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/engine/__init__.py +0 -0
  712. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/engine/cap_floor_engine.py +0 -0
  713. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/engine/fra_engine.py +0 -0
  714. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/engine/irs_discount_engine.py +0 -0
  715. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/engine/swaption_engine.py +0 -0
  716. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/product/__init__.py +0 -0
  717. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/product/cap_floor.py +0 -0
  718. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/product/fra.py +0 -0
  719. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/product/irs.py +0 -0
  720. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/rate/product/swaption.py +0 -0
  721. {quantark-0.5.0 → quantark-0.5.5}/quantark/asset/vol_model_risk.py +0 -0
  722. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/base.py +0 -0
  723. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/credit/__init__.py +0 -0
  724. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/credit/config.py +0 -0
  725. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/credit/engine.py +0 -0
  726. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/credit/results.py +0 -0
  727. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/dashboard.py +0 -0
  728. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/__init__.py +0 -0
  729. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/config.py +0 -0
  730. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/hedge_executor.py +0 -0
  731. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/metrics.py +0 -0
  732. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/multi_hedge_executor.py +0 -0
  733. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/results.py +0 -0
  734. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/equity/state.py +0 -0
  735. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/examples/__init__.py +0 -0
  736. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/examples/advanced_backtest.py +0 -0
  737. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/examples/basic_delta_hedge.py +0 -0
  738. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/examples/fi_dv01_hedge.py +0 -0
  739. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/__init__.py +0 -0
  740. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/config.py +0 -0
  741. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/engine.py +0 -0
  742. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/hedge_executor.py +0 -0
  743. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/metrics.py +0 -0
  744. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/results.py +0 -0
  745. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fi/state.py +0 -0
  746. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/futures_ledger.py +0 -0
  747. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/futures_risk.py +0 -0
  748. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fx/__init__.py +0 -0
  749. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fx/config.py +0 -0
  750. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/fx/results.py +0 -0
  751. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/logger.py +0 -0
  752. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/metrics.py +0 -0
  753. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/carry_context.py +0 -0
  754. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/carry_recorder.py +0 -0
  755. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/carry_risk.py +0 -0
  756. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/carry_stress.py +0 -0
  757. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/dividend_source.py +0 -0
  758. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/market.py +0 -0
  759. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/results.py +0 -0
  760. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/schema.py +0 -0
  761. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/single.py +0 -0
  762. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/replay/strategy_state.py +0 -0
  763. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/report_generator.py +0 -0
  764. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/__init__.py +0 -0
  765. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/carry.py +0 -0
  766. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/conformance.py +0 -0
  767. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/dataset.py +0 -0
  768. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/dividends.py +0 -0
  769. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/hedge.py +0 -0
  770. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/measures.py +0 -0
  771. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/__init__.py +0 -0
  772. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/bootstrap.py +0 -0
  773. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/designed.py +0 -0
  774. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/gbm.py +0 -0
  775. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/history.py +0 -0
  776. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/paths/market_path.py +0 -0
  777. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/pricing/__init__.py +0 -0
  778. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/pricing/cache.py +0 -0
  779. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/results.py +0 -0
  780. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/simulation/runner.py +0 -0
  781. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/__init__.py +0 -0
  782. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/barrier_trigger_strategy.py +0 -0
  783. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/base_strategy.py +0 -0
  784. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/convexity_neutral_strategy.py +0 -0
  785. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/credit_spread_neutral_strategy.py +0 -0
  786. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/delta_neutral_strategy.py +0 -0
  787. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/dv01_neutral_strategy.py +0 -0
  788. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/futures_bucket_strategy.py +0 -0
  789. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/futures_delta_strategy.py +0 -0
  790. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/fx_delta_neutral_strategy.py +0 -0
  791. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/hedge_instruments.py +0 -0
  792. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/hedge_optimizer.py +0 -0
  793. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/min_variance_delta_strategy.py +0 -0
  794. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/multi_greek_strategy.py +0 -0
  795. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/scenario_hedge_strategy.py +0 -0
  796. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/scenarios.py +0 -0
  797. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/semi_static_strategy.py +0 -0
  798. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/triggered_hedge_strategy.py +0 -0
  799. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/strategy/whalley_wilmott_strategy.py +0 -0
  800. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/transaction_costs.py +0 -0
  801. {quantark-0.5.0 → quantark-0.5.5}/quantark/backtest/visualizer.py +0 -0
  802. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/__init__.py +0 -0
  803. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/base.py +0 -0
  804. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/base_amount.py +0 -0
  805. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/deterministic_leg.py +0 -0
  806. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/fixed_payoff_leg.py +0 -0
  807. {quantark-0.5.0 → quantark-0.5.5}/quantark/cashleg/leg_valuator.py +0 -0
  808. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/__init__.py +0 -0
  809. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/base.py +0 -0
  810. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/config.py +0 -0
  811. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/credit/__init__.py +0 -0
  812. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/credit/config.py +0 -0
  813. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/credit/engine.py +0 -0
  814. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/credit/path_library.py +0 -0
  815. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/equity/__init__.py +0 -0
  816. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fi/__init__.py +0 -0
  817. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fi/config.py +0 -0
  818. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fi/engine.py +0 -0
  819. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fi/results.py +0 -0
  820. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fx/__init__.py +0 -0
  821. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fx/config.py +0 -0
  822. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/fx/path_library.py +0 -0
  823. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/lifecycle_manager.py +0 -0
  824. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/path/__init__.py +0 -0
  825. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/path/day_path.py +0 -0
  826. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/path/fi_path_library.py +0 -0
  827. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/path/path_builder.py +0 -0
  828. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/path/path_library.py +0 -0
  829. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/report/__init__.py +0 -0
  830. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/report/dynamic_report.py +0 -0
  831. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/report/visualizer.py +0 -0
  832. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/results/__init__.py +0 -0
  833. {quantark-0.5.0 → quantark-0.5.5}/quantark/dynamicscenario/results/result_exporter.py +0 -0
  834. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/__init__.py +0 -0
  835. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/api.py +0 -0
  836. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/__init__.py +0 -0
  837. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/admission.py +0 -0
  838. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/dask_backend.py +0 -0
  839. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/processes.py +0 -0
  840. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/serial.py +0 -0
  841. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/backends/threads.py +0 -0
  842. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/cache/__init__.py +0 -0
  843. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/cache/artifacts.py +0 -0
  844. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/cache/draws.py +0 -0
  845. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/cache/fingerprint.py +0 -0
  846. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/capability_matrix.py +0 -0
  847. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/context.py +0 -0
  848. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/contracts.py +0 -0
  849. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/diagnostics.py +0 -0
  850. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/errors.py +0 -0
  851. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/leases.py +0 -0
  852. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/legacy_adapter.py +0 -0
  853. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/manifest.py +0 -0
  854. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/policy.py +0 -0
  855. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/prep/__init__.py +0 -0
  856. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/prep/dupire.py +0 -0
  857. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/prep/verify.py +0 -0
  858. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/__init__.py +0 -0
  859. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/contracts.py +0 -0
  860. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/planner.py +0 -0
  861. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/registries.py +0 -0
  862. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/runner.py +0 -0
  863. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/validate.py +0 -0
  864. {quantark-0.5.0 → quantark-0.5.5}/quantark/execution/scenario/worker.py +0 -0
  865. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/__init__.py +0 -0
  866. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/admissibility.py +0 -0
  867. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/batch.py +0 -0
  868. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/capability.py +0 -0
  869. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/coefficients.py +0 -0
  870. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/context.py +0 -0
  871. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/engines/__init__.py +0 -0
  872. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/engines/analytical_barrier.py +0 -0
  873. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/engines/analytical_digital.py +0 -0
  874. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/engines/base.py +0 -0
  875. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/engines/quad_v2.py +0 -0
  876. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/fixings.py +0 -0
  877. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/greeks.py +0 -0
  878. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/profile.py +0 -0
  879. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/publish.py +0 -0
  880. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/request.py +0 -0
  881. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/result.py +0 -0
  882. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/roll.py +0 -0
  883. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/service.py +0 -0
  884. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/session.py +0 -0
  885. {quantark-0.5.0 → quantark-0.5.5}/quantark/intraday/timestamp.py +0 -0
  886. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/__init__.py +0 -0
  887. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/__main__.py +0 -0
  888. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/banking.py +0 -0
  889. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/builders/__init__.py +0 -0
  890. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/builders/european_selftest.py +0 -0
  891. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/builders/intraday_common.py +0 -0
  892. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/builders/intraday_gaussian.py +0 -0
  893. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/builders/intraday_gaussian_reference.py +0 -0
  894. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/candidate.py +0 -0
  895. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/decisions.py +0 -0
  896. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/evidence.py +0 -0
  897. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/gates.py +0 -0
  898. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/html_report.py +0 -0
  899. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/pipeline.py +0 -0
  900. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/reference.py +0 -0
  901. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/registry.py +0 -0
  902. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/report.py +0 -0
  903. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/stopping.py +0 -0
  904. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/study.py +0 -0
  905. {quantark-0.5.0 → quantark-0.5.5}/quantark/modelvalidation/yaml_loader.py +0 -0
  906. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/bridge_kernels.py +0 -0
  907. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/conditional_snowball.py +0 -0
  908. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/control_weights.py +0 -0
  909. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/gbm_kernels.py +0 -0
  910. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/qe_kernels.py +0 -0
  911. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/qmc_brownian_bridge.py +0 -0
  912. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/qmc_qe_coupling.py +0 -0
  913. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/qmc_rqmc_driver.py +0 -0
  914. {quantark-0.5.0 → quantark-0.5.5}/quantark/montecarlo/qmc_variance_reduction.py +0 -0
  915. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/__init__.py +0 -0
  916. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/basis/__init__.py +0 -0
  917. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/basis/basis_yield.py +0 -0
  918. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/credit/__init__.py +0 -0
  919. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/credit/ajd_hazard_curve.py +0 -0
  920. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/credit/hazard_curve.py +0 -0
  921. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/div/__init__.py +0 -0
  922. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/div/dividend_yield.py +0 -0
  923. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/div/forward_carry_curve.py +0 -0
  924. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/div/trading_clock_yield.py +0 -0
  925. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/extrapolation.py +0 -0
  926. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/index/__init__.py +0 -0
  927. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/index/rate_index.py +0 -0
  928. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/node_roles.py +0 -0
  929. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/quote/__init__.py +0 -0
  930. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/quote/spot_quote.py +0 -0
  931. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/rrf/__init__.py +0 -0
  932. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/rrf/key_rate.py +0 -0
  933. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/rrf/rate_curve.py +0 -0
  934. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/rrf/trading_clock_curve.py +0 -0
  935. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/term_sampling.py +0 -0
  936. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/__init__.py +0 -0
  937. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/collapse_guard.py +0 -0
  938. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/marketquotes.py +0 -0
  939. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sabr/__init__.py +0 -0
  940. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sabr/calibration.py +0 -0
  941. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sabr/diagnostics.py +0 -0
  942. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sabr/hagan.py +0 -0
  943. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sabr/sabr_surface.py +0 -0
  944. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/sticky.py +0 -0
  945. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/surface_history.py +0 -0
  946. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/svi/__init__.py +0 -0
  947. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/svi/svi_fit.py +0 -0
  948. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/svi/svi_surface.py +0 -0
  949. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/trading_clock_surface.py +0 -0
  950. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/__init__.py +0 -0
  951. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/bs_fx.py +0 -0
  952. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/market_conventions.py +0 -0
  953. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/smile_builder.py +0 -0
  954. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/vv_core.py +0 -0
  955. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/vv_surface.py +0 -0
  956. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vannavolga/vv_term_structure.py +0 -0
  957. {quantark-0.5.0 → quantark-0.5.5}/quantark/param/vol/vol_surface.py +0 -0
  958. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/__init__.py +0 -0
  959. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/config.py +0 -0
  960. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/__init__.py +0 -0
  961. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/bucketed.py +0 -0
  962. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/clock.py +0 -0
  963. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/coordinate.py +0 -0
  964. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/factor_diff.py +0 -0
  965. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/portfolio.py +0 -0
  966. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/snapshot.py +0 -0
  967. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/taylor.py +0 -0
  968. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/trades.py +0 -0
  969. {quantark-0.5.0 → quantark-0.5.5}/quantark/pnlexplain/equity/waterfall.py +0 -0
  970. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/__init__.py +0 -0
  971. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/base.py +0 -0
  972. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/credit/__init__.py +0 -0
  973. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/credit/portfolio.py +0 -0
  974. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/credit/position.py +0 -0
  975. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/equity/__init__.py +0 -0
  976. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/equity/futures_buckets.py +0 -0
  977. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/equity/portfolio.py +0 -0
  978. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/equity/swap_position.py +0 -0
  979. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fi/__init__.py +0 -0
  980. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fi/portfolio.py +0 -0
  981. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fi/position.py +0 -0
  982. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fx/__init__.py +0 -0
  983. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fx/portfolio.py +0 -0
  984. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/fx/position.py +0 -0
  985. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/portfolio_snapshot.py +0 -0
  986. {quantark-0.5.0 → quantark-0.5.5}/quantark/portfolio/portfolio_storage.py +0 -0
  987. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/__init__.py +0 -0
  988. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/clock_validation.py +0 -0
  989. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/credit_pricing_environment.py +0 -0
  990. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/flat_builders.py +0 -0
  991. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/fx_pricing_environment.py +0 -0
  992. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/market_context.py +0 -0
  993. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/pricing_environment.py +0 -0
  994. {quantark-0.5.0 → quantark-0.5.5}/quantark/priceenv/term_sampling.py +0 -0
  995. {quantark-0.5.0 → quantark-0.5.5}/quantark/rfq/__init__.py +0 -0
  996. {quantark-0.5.0 → quantark-0.5.5}/quantark/rfq/builders.py +0 -0
  997. {quantark-0.5.0 → quantark-0.5.5}/quantark/rfq/models.py +0 -0
  998. {quantark-0.5.0 → quantark-0.5.5}/quantark/rfq/registry.py +0 -0
  999. {quantark-0.5.0 → quantark-0.5.5}/quantark/rfq/service.py +0 -0
  1000. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/__init__.py +0 -0
  1001. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/calculator.py +0 -0
  1002. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/dashboard.py +0 -0
  1003. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/__init__.py +0 -0
  1004. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/__init__.py +0 -0
  1005. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/base.py +0 -0
  1006. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/commodity.py +0 -0
  1007. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/credit.py +0 -0
  1008. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/equity.py +0 -0
  1009. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/fx.py +0 -0
  1010. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/addons/interest_rate.py +0 -0
  1011. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/maths.py +0 -0
  1012. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/pfe.py +0 -0
  1013. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/engines/replacement_cost.py +0 -0
  1014. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/models/__init__.py +0 -0
  1015. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/models/enums.py +0 -0
  1016. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/models/netting_set.py +0 -0
  1017. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/models/trade.py +0 -0
  1018. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/parameters/__init__.py +0 -0
  1019. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/parameters/supervisory.py +0 -0
  1020. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/results/__init__.py +0 -0
  1021. {quantark-0.5.0 → quantark-0.5.5}/quantark/saccr/results/result.py +0 -0
  1022. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/__init__.py +0 -0
  1023. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/calculator.py +0 -0
  1024. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/cva/__init__.py +0 -0
  1025. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/cva/engine.py +0 -0
  1026. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/dashboard.py +0 -0
  1027. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/__init__.py +0 -0
  1028. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/base.py +0 -0
  1029. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/commodity.py +0 -0
  1030. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/correlations.py +0 -0
  1031. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/counterparty_credit.py +0 -0
  1032. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/equity.py +0 -0
  1033. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/fx.py +0 -0
  1034. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/interest_rate.py +0 -0
  1035. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/engines/reference_credit.py +0 -0
  1036. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/__init__.py +0 -0
  1037. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/asof.py +0 -0
  1038. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/correlation.py +0 -0
  1039. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/curves.py +0 -0
  1040. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/engine.py +0 -0
  1041. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/grid.py +0 -0
  1042. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/__init__.py +0 -0
  1043. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/calibration.py +0 -0
  1044. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/engine.py +0 -0
  1045. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/path_generator.py +0 -0
  1046. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/pfe.py +0 -0
  1047. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/historical/resampling.py +0 -0
  1048. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/paths.py +0 -0
  1049. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/phoenix_surface.py +0 -0
  1050. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/repricer.py +0 -0
  1051. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/simulator.py +0 -0
  1052. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/snowball_surface.py +0 -0
  1053. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/statemachine.py +0 -0
  1054. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/exposure/value_surface.py +0 -0
  1055. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/models/__init__.py +0 -0
  1056. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/models/enums.py +0 -0
  1057. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/models/portfolio.py +0 -0
  1058. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/models/sensitivity.py +0 -0
  1059. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/parameters/__init__.py +0 -0
  1060. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/parameters/supervisory.py +0 -0
  1061. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/__init__.py +0 -0
  1062. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/counterparty.py +0 -0
  1063. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/credit_curve.py +0 -0
  1064. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/netting.py +0 -0
  1065. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/trade.py +0 -0
  1066. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/portfolio/trade_portfolio.py +0 -0
  1067. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/results/__init__.py +0 -0
  1068. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/results/result.py +0 -0
  1069. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/sensitivities/__init__.py +0 -0
  1070. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/sensitivities/curve_bump.py +0 -0
  1071. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/sensitivities/engine.py +0 -0
  1072. {quantark-0.5.0 → quantark-0.5.5}/quantark/sacva/sensitivities/shifts.py +0 -0
  1073. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/__init__.py +0 -0
  1074. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/__init__.py +0 -0
  1075. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/accessors.py +0 -0
  1076. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/commodity.py +0 -0
  1077. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/credit_non_qualifying.py +0 -0
  1078. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/credit_qualifying.py +0 -0
  1079. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/cross_risk.py +0 -0
  1080. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/equity.py +0 -0
  1081. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/fx.py +0 -0
  1082. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/ir.py +0 -0
  1083. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/calibration/version.py +0 -0
  1084. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/config.py +0 -0
  1085. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/crif/__init__.py +0 -0
  1086. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/crif/models.py +0 -0
  1087. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/crif/parser.py +0 -0
  1088. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/dashboard.py +0 -0
  1089. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/__init__.py +0 -0
  1090. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/__init__.py +0 -0
  1091. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/addon.py +0 -0
  1092. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/bucket_aggregator.py +0 -0
  1093. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/concentration.py +0 -0
  1094. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/correlations.py +0 -0
  1095. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/product_class_aggregator.py +0 -0
  1096. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/risk_class_aggregator.py +0 -0
  1097. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/simm_calculator.py +0 -0
  1098. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/aggregation/weighted_sensitivity.py +0 -0
  1099. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/base.py +0 -0
  1100. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/classification/__init__.py +0 -0
  1101. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/classification/bucket_mapper.py +0 -0
  1102. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/factory.py +0 -0
  1103. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/portfolio_adapter.py +0 -0
  1104. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/result.py +0 -0
  1105. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/risk_class/__init__.py +0 -0
  1106. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/risk_class/equity_engine.py +0 -0
  1107. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/risk_class/ir_engine.py +0 -0
  1108. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/engines/risk_class/provider_engine.py +0 -0
  1109. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/market_data.py +0 -0
  1110. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/report/__init__.py +0 -0
  1111. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/report/crif_export.py +0 -0
  1112. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/report/excel_generator.py +0 -0
  1113. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/report/html_generator.py +0 -0
  1114. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/results/__init__.py +0 -0
  1115. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/results/attribution.py +0 -0
  1116. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/results/simm_result.py +0 -0
  1117. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/results/whatif.py +0 -0
  1118. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/sensitivity.py +0 -0
  1119. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/taxonomy.py +0 -0
  1120. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/template/__init__.py +0 -0
  1121. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/template/xlsx_loader.py +0 -0
  1122. {quantark-0.5.0 → quantark-0.5.5}/quantark/simm/template/xlsx_template.py +0 -0
  1123. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/__init__.py +0 -0
  1124. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/base.py +0 -0
  1125. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/config.py +0 -0
  1126. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/credit/__init__.py +0 -0
  1127. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/credit/config.py +0 -0
  1128. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/credit/credit_stress_applicator.py +0 -0
  1129. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/credit/engine.py +0 -0
  1130. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/engine.py +0 -0
  1131. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/__init__.py +0 -0
  1132. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/config.py +0 -0
  1133. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/report/__init__.py +0 -0
  1134. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/report/report_generator.py +0 -0
  1135. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/report/visualizer.py +0 -0
  1136. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/equity/results.py +0 -0
  1137. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fi/__init__.py +0 -0
  1138. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fi/config.py +0 -0
  1139. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fi/engine.py +0 -0
  1140. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fi/metrics.py +0 -0
  1141. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fi/results.py +0 -0
  1142. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fx/__init__.py +0 -0
  1143. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fx/config.py +0 -0
  1144. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/fx/fx_stress_applicator.py +0 -0
  1145. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/report/__init__.py +0 -0
  1146. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/report/report_generator.py +0 -0
  1147. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/report/visualizer.py +0 -0
  1148. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/results/__init__.py +0 -0
  1149. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/results/result_aggregator.py +0 -0
  1150. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/results/result_exporter.py +0 -0
  1151. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/results/stress_results.py +0 -0
  1152. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/scenario/__init__.py +0 -0
  1153. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/scenario/scenario.py +0 -0
  1154. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/scenario/scenario_builder.py +0 -0
  1155. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/scenario/scenario_library.py +0 -0
  1156. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/scenario/scenario_storage.py +0 -0
  1157. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/stress/__init__.py +0 -0
  1158. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/stress/stress_applicator.py +0 -0
  1159. {quantark-0.5.0 → quantark-0.5.5}/quantark/stresstest/stress/stress_types.py +0 -0
  1160. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/__init__.py +0 -0
  1161. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/barrier_shift.py +0 -0
  1162. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/calendar/__init__.py +0 -0
  1163. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/calendar/day_counter.py +0 -0
  1164. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/calendar/holidayfile/china.csv +0 -0
  1165. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/calendar/holidayfile/china_sse.csv +0 -0
  1166. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/calendar/trading_clock.py +0 -0
  1167. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/enum/bond_enums.py +0 -0
  1168. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/enum/deltaone_enums.py +0 -0
  1169. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/enum/fx_enums.py +0 -0
  1170. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/enum/greek_conventions.py +0 -0
  1171. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/enum/greeks_enums.py +0 -0
  1172. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/exceptions.py +0 -0
  1173. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/io.py +0 -0
  1174. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/__init__.py +0 -0
  1175. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/adapter/base_adapter.py +0 -0
  1176. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/adapter/mock_adapter.py +0 -0
  1177. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/converter.py +0 -0
  1178. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/example_usage.py +0 -0
  1179. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/generator/__init__.py +0 -0
  1180. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/generator/mock_generator.py +0 -0
  1181. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/models.py +0 -0
  1182. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/storage/__init__.py +0 -0
  1183. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/marketdata/storage/parquet_storage.py +0 -0
  1184. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/build_thomas_kernel.py +0 -0
  1185. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/comparison.py +0 -0
  1186. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/constants.py +0 -0
  1187. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/finite_difference.py +0 -0
  1188. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/formatting.py +0 -0
  1189. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/pnl.py +0 -0
  1190. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/thomas_kernel.c +0 -0
  1191. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/tridiag.py +0 -0
  1192. {quantark-0.5.0 → quantark-0.5.5}/quantark/util/numerical/validation.py +0 -0
  1193. {quantark-0.5.0 → quantark-0.5.5}/quantark/validation/__init__.py +0 -0
  1194. {quantark-0.5.0 → quantark-0.5.5}/quantark/validation/adaptive_allocation.py +0 -0
  1195. {quantark-0.5.0 → quantark-0.5.5}/quantark/validation/cell_identity.py +0 -0
  1196. {quantark-0.5.0 → quantark-0.5.5}/quantark/validation/greek_certification.py +0 -0
  1197. {quantark-0.5.0 → quantark-0.5.5}/quantark/validation/sequential_admission.py +0 -0
  1198. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/__init__.py +0 -0
  1199. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/attribution.py +0 -0
  1200. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/backtest/__init__.py +0 -0
  1201. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/backtest/var_backtester.py +0 -0
  1202. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/base.py +0 -0
  1203. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/config.py +0 -0
  1204. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/credit/__init__.py +0 -0
  1205. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/credit/config.py +0 -0
  1206. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/credit/engine.py +0 -0
  1207. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/credit/revaluation.py +0 -0
  1208. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/engines/__init__.py +0 -0
  1209. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/fx/__init__.py +0 -0
  1210. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/fx/config.py +0 -0
  1211. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/fx/revaluation.py +0 -0
  1212. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/results/__init__.py +0 -0
  1213. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/results/incremental_var_result.py +0 -0
  1214. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/results/var_report.py +0 -0
  1215. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/results/var_result.py +0 -0
  1216. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/risk_factors/__init__.py +0 -0
  1217. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/risk_factors/base.py +0 -0
  1218. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/risk_factors/equity_factors.py +0 -0
  1219. {quantark-0.5.0 → quantark-0.5.5}/quantark/var/risk_factors/fi_factors.py +0 -0
  1220. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/__init__.py +0 -0
  1221. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/__main__.py +0 -0
  1222. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/admission.py +0 -0
  1223. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/calibrate.py +0 -0
  1224. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/calibration_set.py +0 -0
  1225. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/cli.py +0 -0
  1226. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/config.py +0 -0
  1227. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/normalize/__init__.py +0 -0
  1228. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/normalize/fxdelta.py +0 -0
  1229. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/normalize/listed.py +0 -0
  1230. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/normalize/settlement.py +0 -0
  1231. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/quotes.py +0 -0
  1232. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/runner.py +0 -0
  1233. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/snapshot.py +0 -0
  1234. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/store.py +0 -0
  1235. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/surface.py +0 -0
  1236. {quantark-0.5.0 → quantark-0.5.5}/quantark/volcalibration/yaml_loader.py +0 -0
  1237. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/__init__.py +0 -0
  1238. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/barrier.py +0 -0
  1239. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/black_scholes.py +0 -0
  1240. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/curves.py +0 -0
  1241. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/diagnostics.py +0 -0
  1242. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/heston/__init__.py +0 -0
  1243. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/heston/analytical_kernel.py +0 -0
  1244. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/heston/calibration.py +0 -0
  1245. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/heston/from_quotes.py +0 -0
  1246. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/heston/params.py +0 -0
  1247. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/localvol/__init__.py +0 -0
  1248. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/localvol/dupire.py +0 -0
  1249. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/localvol/mc_kernel.py +0 -0
  1250. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/localvol/surface.py +0 -0
  1251. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/risk/__init__.py +0 -0
  1252. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/risk/contracts.py +0 -0
  1253. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/risk/scenarios.py +0 -0
  1254. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/__init__.py +0 -0
  1255. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/__init__.py +0 -0
  1256. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/bootstrap.py +0 -0
  1257. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/calibration.py +0 -0
  1258. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/config.py +0 -0
  1259. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/coordinates.py +0 -0
  1260. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/fp_operators.py +0 -0
  1261. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/fokkerplanck/fp_solver.py +0 -0
  1262. {quantark-0.5.0 → quantark-0.5.5}/quantark/volmodels/slv/leverage.py +0 -0
  1263. {quantark-0.5.0 → quantark-0.5.5}/quantark_compat.pth +0 -0
@@ -0,0 +1,3087 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
+ and the project adheres to [Semantic Versioning](https://semver.org/).
6
+ During 0.x the public API may still change between minor versions.
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.5.5] - 2026-10-16
11
+
12
+ > **Version numbering.** The `[0.6.0]` to `[0.10.0]` sections below were internal milestones and were
13
+ > never published. They ship together with everything under this heading as **0.5.5**, the first
14
+ > release after 0.5.0. The milestone labels are kept because code comments, tests and the README name
15
+ > behaviour changes by them (for example "the 0.7.0 base-family mask").
16
+
17
+ ### Test suite
18
+
19
+ Full-suite wall-clock 36m 29s to 20m 03s (14 xdist workers, `-n auto --dist worksteal`); no test
20
+ changed meaning and every banked anchor still reproduces exactly on the banking machine.
21
+
22
+ - `assert_anchors` no longer solves a convergence rung it discards: the Schema-1 candidates (ADI
23
+ snowball, snowball, KO-reset, Phoenix, local-vol snowball) gain `evaluate_target`, and
24
+ `assert_anchors(path, only=(candidate, case))` checks one cell. `test_banked_certificates.py` is
25
+ parametrized per cell, so the heavy ADI cells spread across workers (that file: 2,353 CPU-seconds
26
+ with a 1,687 s single-worker tail to 317 s wall-clock).
27
+ - The QUAD V2 event-statistics references used by the Phoenix memory-fan, KO-reset native and
28
+ cashleg KO-reset tests are frozen under `test/pde_statistics/v2_reference/` (about 2,500
29
+ CPU-seconds to 4 s) with unchanged tolerances. `build_v2_reference.py` regenerates them;
30
+ `QUANTARK_LIVE_V2=1` recomputes live to confirm a frozen file still matches V2. V2's numerics
31
+ stay pinned by the banked quad certificates.
32
+ - `quantark.backtest` imports plotly and matplotlib lazily; `StaticVisualizer`,
33
+ `InteractiveDashboard`, `AutocallableBacktestDashboard` and `AutocallableDashboardConfig` still
34
+ resolve from the same import paths.
35
+ - `test/conftest.py` collects cycles and returns freed pages to the OS (`malloc_trim` /
36
+ `malloc_zone_pressure_relief`) after any test that ran 0.5 s or more. Workers kept the memory of
37
+ multi-GB grids, so one reached ~9 GB and four ~24 GB; on the six heaviest files, run serially, peak
38
+ RSS fell 10.2 GB to 4.3 GB at the same wall-clock. CI runs `-n 2` rather than `-n auto`: four
39
+ heavy tests at once exceeded the 16 GB hosted runner, which was shut down mid-suite.
40
+ - Removed `test_bond_standalone.py` (no tests) and `test_benchmark_var.py` (module-skipped, vacuous
41
+ assertions), two duplicate QUAD-rejection tests, and the stale "not implemented yet" skips in
42
+ `test_simm_engines_factory.py` (now real assertions).
43
+
44
+ FX TARN / TARF mid-life booking, dated form and ageing (spec:
45
+ `docs/superpowers/specs/2026-10-09-fx-tarn-lifecycle-design.md`). A target-redemption contract carries its realized
46
+ state, can be booked by dates, ages through `time_shift` / `record_passed_fixings`, and is aged day by day in the FX
47
+ backtest and FX dynamic scenario.
48
+
49
+ ### Added
50
+ - `quantark.asset.fx.product.option.target_redemption_state`: `TargetRedemptionState` (amount banked towards the
51
+ target, determined `PendingPayment`s, dated `as_of`), `TargetRedemptionEvent` / `TargetRedemptionEventType`,
52
+ `TerminalBookingWarning`, `ResolvedTargetRedemption`, and `TARGET_HIT_RTOL` (1e-12, moved from the two TARN/TARF
53
+ engines with its value unchanged).
54
+ - Dated `FxTargetRedemptionNote` / `FxTargetRedemptionForward`: `fixing_dates` (the whole contractual schedule),
55
+ `pay_dates`, `state.as_of`; the TARN derives its periods from `initial_date` (or explicit `accrual_factors`) in its
56
+ `day_count_convention` (default ACT/365). Times resolve in the environment's convention; a numeric contract and its
57
+ dated twin price identically. A fixing or pay date that resolves to zero time in the environment's day count (a
58
+ weekend date under `BUSINESS_DAYS`, valued on the Friday) is live, as for its numeric twin (user decision OQ-2 b,
59
+ 2026-10-10): the fixing is decided at the quoted spot and its cash is due that day. A dated state counts its banked
60
+ fixings (`TargetRedemptionState.fixings_banked`, fixing identity in schedule order; a booking stating only `as_of`
61
+ banks the fixings dated on or before it); `as_of` never passes the valuation date (user ruling OQ-3, 2026-10-10).
62
+ - `resolve(fx_env)` (the engines' one input), `lifecycle_events`, `is_redeemed`, `is_terminal`, `hit_tol`,
63
+ `pending_pv(fx_env)` on both products.
64
+ - TARN / TARF take part in the missing-fixing fill protocol (`missing_fixing_fills`, `with_fixings_recorded`,
65
+ `with_missing_fixings_filled`, user decision 2026-10-09): an unbanked passed fixing's RATE is recorded once at the
66
+ base environment's quoted spot, on a copy, so `BaseFxEngine.calculate_greeks`, VaR, stress, dynamic scenarios and
67
+ backtests bank it at the base spot under every bump and shock (one `MissingFixingWarning` per call, none per bump).
68
+ Banking (`record_passed_fixings`, `resolve`) uses a recorded rate in place of the quoted spot; a rate recorded for a
69
+ fixing still after valuation is refused with `ValidationError`.
70
+ - `FxTargetRedemptionNote(accrual_end_dates=...)` (dated form; user ruling 2026-10-10 on R26, option (b)): each
71
+ period's own accrual end date, separate from its fixing date. Period `i` accrues from `initial_date` (first) or the
72
+ previous period's end to its own end in the contract day count, so periods may share a fixing date without explicit
73
+ `accrual_factors`. One end per fixing, strictly increasing, each between its fixing and pay dates; it requires
74
+ `initial_date` and excludes `accrual_factors`. Without it the ends are the fixing dates: every existing booking keeps
75
+ its factors and value exactly; such a contract still cannot share a fixing date (a zero-length period).
76
+ - FX TARN / TARF take part in run fixings (`quantark.util.run_fixings`, W6): `has_run_fixings`,
77
+ `open_fixings(fx_env)`, `with_time_elapsed(dt)` (a numeric copy aged by `time_shift`, times snapped to exactly 0.0,
78
+ nothing banked), `with_history_settled(fx_env)` (recorded history banked and cash due paid, on a copy) and
79
+ `matured_before(fx_env)`. In the FX backtest and FX dynamic scenario they age with the run's clock: a fixing is
80
+ recorded at the spot of the first instant it was live (a fixing between path instants at the previous instant's,
81
+ `gap=True`), banked in order with its cash; a contract whose last fixing is before the run start is removed with
82
+ `MaturedBeforeRunWarning`. A dated booking is validated against the run's environment first (`_check_as_of`), so a
83
+ stale invalid one (a state claiming an `as_of` or banked fixing after the run start, or pending cash already past)
84
+ raises `ValidationError` at registration instead of being dropped with the warning; numeric bookings are unchanged.
85
+ Moved values: none (a refusal replaces a warning on invalid bookings only).
86
+ - `RunFixingRecorder` calls an optional product hook `with_history_settled(env)` after the first valuation's fill and
87
+ after each clock move's recording (`settle_history`); products without it are unchanged.
88
+ - `target_redemption_state.booked_cash(product_events)`: the quantity-scaled PAYMENT cash of one run step's
89
+ `RunFixingDay.product_events`.
90
+
91
+ ### Changed
92
+ - The equity analytical barrier family (`BarrierAnalyticalEngine`, `OneTouchAnalyticalEngine`,
93
+ `DoubleBarrierOptionAnalyticalEngine`, `SingleSharkfinOptionAnalyticalEngine`, `DoubleSharkfinOptionAnalyticalEngine`
94
+ and the barrier legs of `AccumulatorAnalyticalEngine`) values a DISCRETE schedule by one method: with no record
95
+ deciding at the valuation instant and a future observation left, always through the first future observation (the
96
+ exact Gaussian step to it and the barrier test there, `first_observation`), the BGK-shifted closed form only from
97
+ it on -- inside the level as well as beyond it. Before, inside the level the shifted closed form was evaluated at
98
+ today's spot (a hybrid that stepped by up to 0.161 at the level on monthly contracts). No observation left: the
99
+ closed form, as before. Unchanged: a record on the valuation instant that the spot breaches decides at once
100
+ (W18c / A15), CONTINUOUS and EXPIRY monitoring, T = 0, a carried knock-in.
101
+ - A schedule that starts late is a large correction toward QUAD (401 points): the up-and-out put (K 110, L 120,
102
+ vol 0.6, rebate 2 at the hit, five daily records ending at T = 1) at 105: 14.79 -> 26.907 (QUAD 26.908).
103
+ - Far from the level fresh monthly contracts move slightly, sometimes away from QUAD: the up-and-out call
104
+ (K 100, L 120) 4.1453 -> 4.1474 (QUAD 4.0778).
105
+ - The projection needs a first-hit schedule: an ACCUMULATE (or other non-STOP_FIRST_HIT) schedule is refused
106
+ (`PricingError`) inside the level too (main priced the aged up-and-out call at 100 at 2.4865).
107
+ - With no time left after the first observation (it is the maturity: valued on the penultimate record, not
108
+ crossed) the payoff's kinks are the expectation's panel edges; such a contract was refused (`NumericalError`,
109
+ the strike inside a panel) and is now the European payoff decided at T, e.g. the up-and-out call 5.562826
110
+ (closed form 5.562826, main's shifted formula 5.6967), the double knock-out call 5.780781 (main 5.7835). A tiny
111
+ time left (the payoff smoothed over less than the 0.05 panel floor, e.g. 2e-10 <= tau <= 1e-6 after a monthly
112
+ record) grades the panels away from each kink from that scale, and from a region edge that kink's layer reaches
113
+ (a strike just beyond the level); such contracts were refused too and now match the European value over tau
114
+ (within 1e-11, measured <= 1e-13).
115
+ - Performance: the projection evaluates its integrand once on every quadrature node (vectorised closed forms,
116
+ records resolved once per price), bit-exact on ARM64 (last-bit differences possible where NumPy uses its own
117
+ SIMD exp / log / pow, x86 with AVX-512); inside the level the barrier-family prices now take 0.5-2.5x the time of
118
+ the old closed-form path (double sharkfin weekly 2.47x, double knock-out daily 3.1 ms, accumulator daily 0.38 s).
119
+ - Moved values: every DISCRETE cell with no breached record now and the spot inside the level (fresh contracts
120
+ included, and a record day whose record the spot does not cross); beyond the level the values are bitwise
121
+ unchanged. Next to the level the error vs QUAD drops, e.g. the up-and-out call (K 100, L 120, monthly, 0.7 y
122
+ left) at 119.99: 0.7801 -> 0.7227 (QUAD 0.7140), the double knock-in call (75 / 130) at 129.5: 29.1647 ->
123
+ 29.3132 (QUAD 29.3007); max |error| within 0.5 of the level 0.004-0.04 (was 0.01-0.16). On a record day (aged
124
+ onto a record the spot does not cross) the max |error| vs QUAD is 0.048 (was 0.24).
125
+ - A no-touch has one rebate on every route (user decision 2026-10-15, as a knock-in's since 2026-10-10): it is paid
126
+ only when nothing touches, so a schedule record of a `OneTouchOption` NO_TOUCH or `DoubleOneTouchOption`
127
+ DOUBLE_NO_TOUCH paying anything other than `rebate` is refused (`ValidationError`,
128
+ `barrier_schedule_rules.refuse_no_touch_record_payoff`) by the analytical one-touch engine, `DiscreteQuadEngine`,
129
+ the PDE touch solvers / `PDEEngine`, and a run's `BarrierLifecycleTracker` (the equity backtest and the dynamic
130
+ scenario take the contract there; the cash it books was already right). Before, QUAD subtracted a one-touch
131
+ paying each record's payoff: records paying 3 on a rebate of 1 gave 0.14 where the analytical engine and the PDE
132
+ gave 0.69. A record without a payoff, or one paying the rebate, prices as before; the single sharkfin's no-hit
133
+ leg carries records paying its cash, so sharkfin values are bitwise unchanged.
134
+ - **Breaking:** `FxTargetRedemptionNote` and `FxTargetRedemptionForward` take a mandatory keyword `state`
135
+ (`TargetRedemptionState(0.0)` for a contract booked at inception); omitting it raises `ValidationError`.
136
+ - **Breaking:** a numeric `FxTargetRedemptionNote` states when its first listed period began: `accrual_start` (years
137
+ from valuation) or explicit `accrual_factors`, exactly one. The old default (`t_0 = 0`, the first period starting at
138
+ the valuation instant) halved the first coupon of a contract rebuilt mid-life. `accrual_start=0.0` reproduces the old
139
+ factors bitwise.
140
+ - A non-positive fixing time is accepted (an unbanked past fixing) and an empty `fixing_times` is a terminal booking
141
+ (`TerminalBookingWarning`, valued at the PV of its pending cash).
142
+ - FX finite-difference theta (`BaseFxEngine._fdm_theta`) steps a numeric (`maturity=`) product by the environment's
143
+ year fraction of `theta_days` calendar days instead of `theta_days / 365` (user decision Q7). Unchanged to the bit
144
+ under `CALENDAR_DAYS` / `ACT_365`; under `BUSINESS_DAYS` a Friday or holiday theta is 0.0 and `ACT_360` steps 1/360,
145
+ matching the dated product. Values that move are listed in
146
+ `docs/superpowers/plans/2026-10-09-fx-tarn-lifecycle-evidence/moved_values.txt`.
147
+ **Breaking:** under a `BUSINESS_DAYS` environment with no calendar, a numeric FX product's theta now raises
148
+ `ValidationError` on every route that steps time (it used to step `theta_days / 365`; a business-day count needs the
149
+ calendar). The raising routes are exactly: every engine whose `calculate_greeks` reaches
150
+ `BaseFxEngine._fdm_theta` (`GarmanKohlhagenQuantoEngine`, `FxQuantoDigitalAnalyticalEngine`, `FxDeltaOneEngine`,
151
+ `VannaVolgaBarrierEngine`, the FX range-accrual analytical engines, and the FX barrier / sharkfin, TARF, TARN and
152
+ range-accrual MC engines); the finite-difference fallbacks of `GarmanKohlhagenEngine` (Vanna-Volga smile, delivery
153
+ differing from expiry, or a market forward set) and of `FxDigitalOptionAnalyticalEngine` (the same three, plus any
154
+ payout not in the domestic currency, i.e. asset-or-nothing); and, through the local-vol / Heston theta change below,
155
+ the FX local-vol, Heston and Heston-SLV MC / PDE routes and the FX Heston analytical engine. The only non-raising
156
+ path is the closed-form branch (`-dV/dtau / 365`, no time step) of `GarmanKohlhagenEngine` and of
157
+ `FxDigitalOptionAnalyticalEngine`, taken only on a flat or term vol surface with delivery equal to expiry, no market
158
+ forward and, for the digital, a domestic-currency payout (cash-or-nothing). Measured 2026-10-14.
159
+ - FX local-vol and Heston theta (`fx_local_vol_model_greeks`, `FxHestonPDESolver`, `FxHestonSLVPDESolver`, and the LV/Heston
160
+ analytical and MC engines that share the first) step a numeric (`maturity=`) product by the environment's year
161
+ fraction of `theta_days` calendar days, as `BaseFxEngine._fdm_theta` does, instead of `theta_days / 365`. The
162
+ `min(step, 0.5 * maturity)` cap is kept and theta is rescaled to a per-calendar-day figure; a zero step (BUSINESS_DAYS
163
+ Friday or holiday) gives theta 0.0 and BUSINESS_DAYS without a calendar raises `ValidationError`. Moved values:
164
+ none under `CALENDAR_DAYS` / `ACT_365` (bitwise); on a 1-year ATM EUR/USD call (notional 1e6, flat 10% vol) `ACT_360`
165
+ local-vol theta -97.0526 -> -98.4012 and BUSINESS_DAYS-on-a-Friday -97.0526 -> 0.0 (coarse-grid Heston PDE 434.64 ->
166
+ 432.38 and 0.0; Heston-SLV PDE 462.84 -> 460.54 and 0.0).
167
+ - FX TARN / TARF cash due on the valuation date stays in the value (user decision OQ-1 b, 2026-10-10, as W8 values a
168
+ dated contract on its date at its settled value): determined cash is booked (a `PAYMENT` event, out of the value)
169
+ once its pay time is strictly past. A numeric pending `pay_time` of 0.0 and a dated pending `pay_date` equal to
170
+ `as_of` are accepted. Moves: the price on a pay date gains the cash due that day, theta the day before a pay date
171
+ gains it and theta on the pay date loses it (values in
172
+ `docs/superpowers/plans/2026-10-09-fx-tarn-lifecycle-evidence/moved_values.txt`); inside runs, cash is booked
173
+ once its pay date is past (on the next path instant). "Due" is decided by resolved TIME in the environment's day
174
+ count, also when a date carries a time of day: under a whole-day count, cash due at 00:00 is still due at 15:00
175
+ that day, and 10:00 cash at the next midnight. `TargetRedemptionState` no longer compares a dated `pay_date` with
176
+ `as_of` (it cannot know the day count); the product refuses pending cash strictly past at `as_of` by resolved time
177
+ when an environment prices, records or settles it (`ValidationError`, the same refusal moved from construction).
178
+ - FX TARN / TARF periods may share a fixing date or time (user decision OQ-4 b, 2026-10-10): `fixing_dates` /
179
+ `fixing_times` must be non-decreasing instead of strictly increasing. Both MC engines simulate each distinct fixing
180
+ time once and every period sharing it fixes at that spot; periods are accumulated in schedule order (a period after
181
+ the target hit is dead), each with its own pay date and cash. A dated TARN on the default period derivation
182
+ (`initial_date`, then each previous fixing date) cannot share a fixing date (a zero-length period): it states its own
183
+ accrual. The default derivation refuses any non-positive derived factor (two fixings on one day under ACT/365, at
184
+ construction; a zero-business-day period under a `BUSINESS_DAYS` contract count, at resolve), which a dated contract
185
+ priced before. A dated state's banked count (`fixings_banked`, or derived from `as_of`) may not stop inside the
186
+ periods fixing on one calendar date unless the target was hit. `mean_redemption_fraction` does not count a hit at the final fixing time as early.
187
+ - FX TARN / TARF: a fixing at exactly the valuation instant (t = 0) is live (run-fixings D1):
188
+ `missing_fixing_fills` / `with_missing_fixings_filled` list only strictly past fixings, so the Greek freeze leaves
189
+ today's fixing to move with the bumped spot, and pricing decides it at the quoted spot without a
190
+ `MissingFixingWarning`. Numeric protocol indices and event labels count from the booking (fixings banked since
191
+ construction + listed position).
192
+ - Run fixings (`quantark.util.run_fixings.step_fixings`): a record that was live is recorded first, at its first live
193
+ instant's spot, in index order; only then are the remaining (gap) records probed at the previous instant's spot. A
194
+ TARN / TARF on a business-day clock whose weekend rows quote a spot other than Friday's now records its Friday and
195
+ Saturday fixings at Friday's spot (was a `KeyError`, a gap at the weekend spot, or a split shared-date refusal).
196
+ W6's range accruals and Asians record exactly as before. `ProductReplay` refuses a TARN / TARF (`ValidationError`):
197
+ it does not settle product-held history.
198
+ - Replay settles an Asian / range accrual at maturity (spec 2026-10-13 I7 / A3): `AsianOption` and
199
+ `RangeAccrualOption` gain `settled_maturity_payoff(spot, pricing_env)`, the terminal payoff from the contract's
200
+ recorded fixings with a fixing on the maturity instant (t = 0) decided at `spot`, the spot at maturity (refused
201
+ before the maturity instant and for an unrecorded past fixing; an Asian booked without `observation_records` raises
202
+ `ValidationError` naming the fixings it does not carry, never a `TypeError`). For a run-fixings participant the
203
+ replay steps the day's fixings first and settles on that run-fixed copy (`ProductReplay.settle_run_fixings_maturity`,
204
+ `AutocallableLifecycleTracker.settle_maturity_if_due(..., settled_product=, previous_spot=)`; without the copy a
205
+ participant's maturity raises `ValidationError`), so the maturity day's own fixing is taken at that day's spot. A run
206
+ whose calendar skips the maturity date settles on the first run day after it: the maturity fixing (and a floating
207
+ strike's final spot) at the previous run instant's spot (W6 gap rule), `gap=True` / `maturity_spot` on the MATURITY
208
+ action and its ledger entry, which keeps the contract's own determination and payment timing (a payment date already
209
+ past is paid that day). Every other product keeps the old order (replay goldens unchanged). The replay's analytical
210
+ engine factory builds `RangeAccrualAnalyticalEngine` for a range accrual (was refused). `PortfolioLifecycleManager`
211
+ never tracks an Asian / range accrual, so the equity backtest and dynamic scenario are unchanged. Moved values: none
212
+ (raise -> settled cash).
213
+ - `FXBacktestEngine` books TARN / TARF cash once its pay date is past (on the next path instant): rows gain
214
+ `paid_cash` (cumulative, quantity-scaled) and `pending_pv`; `portfolio_value` and `final_value` include paid cash.
215
+ A book without TARN / TARF is unchanged (cash columns 0.0).
216
+ - `FXDynamicScenarioEngine` books TARN / TARF cash on a dated `DayPath` (determined cash moves to `paid_cash` /
217
+ `realized_cash` once its pay date is past (on the next path instant); one `FIXING` lifecycle snapshot per banked
218
+ fixing; `pending_receivable_pv` filled). An undated `DayPath` with a TARN / TARF in the book raises
219
+ `ValidationError` (user decision Q8 a). Books without TARN / TARF are unchanged.
220
+
221
+ ### Fixed
222
+ - FX TARN / TARF theta within one day of a fixing raised (`Time to maturity must be non-negative` / `times must be
223
+ strictly increasing and positive`); the stepped-over fixing is now banked at the held spot and theta is finite.
224
+ - Pricing a TARN / TARF after a bare `time_shift` past a fixing raised; the passed fixing is now filled at the quoted
225
+ spot on a copy with one `MissingFixingWarning`.
226
+ - A rebuilt mid-life contract no longer prices with the full target: the engines start from `state.accumulated` and
227
+ add the PV of `state.pending`. Inception prices and Greeks are unchanged to the bit.
228
+
229
+ Accrual time, separate from observation time (spec: `docs/superpowers/specs/2026-10-08-accrual-time-design.md`).
230
+ An autocallable's observation is a trading-day quantity (when the market is checked); its accrual is a calendar
231
+ quantity in the contract's interest basis (how much it owes). Every snowball, Phoenix and KO-reset record now
232
+ carries its own immutable `AccrualPeriod`, derived once at construction, and every product, engine and intraday
233
+ path reads accrual through one resolver (`quantark.asset.equity.product.option.accrual`). Ageing (`time_shift`),
234
+ snapping an observation time or rebasing a schedule moves observation timing and never moves cash. A numeric
235
+ record's accrual is its quoted fraction (`k/12` accrues exactly 1/12 per period).
236
+
237
+ ### Added
238
+ - Run-fixings protocol on `RangeAccrualOption`, `FxRangeAccrualOption` (and its foreign / quanto subclasses) and
239
+ record-schedule `AsianOption`: `has_run_fixings`,
240
+ `open_fixings(env)` and `with_time_elapsed(dt)` (the run clock's step: a numeric contract's record times and
241
+ maturity move by `dt`, snapped to exactly 0.0 when zero; records nothing; a dated contract returns itself).
242
+ `quantark.util.fixings.snap_time`.
243
+ - `quantark.util.run_fixings` (spec `docs/superpowers/specs/2026-10-09-run-fixings-design.md`): `RunFixingRecorder`
244
+ (`register` at a run's first valuation = W5b's freeze; `advance` at every later path instant records each fixing
245
+ the clock moved past at the spot of the first instant it was live, or at the previous instant's spot with
246
+ `gap=True` when no instant fell on it; numeric contracts age by the environment's year fraction; time-of-day
247
+ instants and a backwards clock are refused), the stateless `step_fixings`, `update_live`, `participates`,
248
+ `run_step_dt`, `at_spot`, `require_date_instant`, `RecordedFixing`, `RunFixingDay`.
249
+ Optional product hooks `matured_before(env)`, `lifecycle_events` and `pending_pv(env)` feed `RunFixingDay.product_events` /
250
+ `pending_pv` (for FX TARN / TARF, W4b).
251
+ - `AccrualPeriod`, `AccrualBasis`, `KnockInAnchor` and the resolver: `ko_accrual_factor`, `coupon_period_fraction`,
252
+ `contract_tenor`, `knock_in_anchor_for`. `ObservationRecord.accrual` holds a record's period.
253
+ - `AccrualConfig.accrual_end` (`AccrualEndType.OBSERVATION`, the default, or `SETTLEMENT`: a record accrues to its
254
+ authoritative payment endpoint, resolved from the contract's own terms).
255
+ - `AccrualConfig.post_accrual_factors`: KO-reset schedule 2's explicit factors (`accrual_factors` is schedule 1's).
256
+ - `AccrualConfig.accrual_calendar` / `accrual_bus_days_in_year`: the frozen terms of a `BUSINESS_DAYS` accrual; no
257
+ accrual reads the pricing environment.
258
+ - `AutocallableLifecycleState.knock_in_anchor`, set at the knock-in from the record whose test fired, carried on
259
+ pricing copies as `_otc_lifecycle_knock_in_anchor`.
260
+ - `FxRangeAccrualOption(initial_date=..., tenor=...)`, the contract's start and length, as on the equity product.
261
+ - `BaseFxProduct.record_passed_fixings(fx_env)`: FX theta fixes the fixings its bump steps over (a no-op by default).
262
+
263
+ ### Changed
264
+ - `AsianOption.time_shift` (theta) records, at the held spot, a dated record its bump steps over; the bumped price is
265
+ unchanged (pricing filled the same spot) and theta on a fixing day no longer warns `MissingFixingWarning`.
266
+ On a numeric record schedule it now also moves every record's `observation_time` with the maturity (snapped to
267
+ 0.0 when zero, as `with_time_elapsed`), so numeric record Asian theta equals the dated twin's (spec fixture, day 3:
268
+ +0.00109532 -> -0.03081166; it used to age the maturity only).
269
+ - A fixing at exactly t = 0 (today's, unprinted) that pricing decides at the current spot no longer counts as
270
+ missing: `MissingFixingWarning` names only strictly past fills (`RangeAccrualOption`, `FxRangeAccrualOption` and
271
+ its variants, `AsianOption`; spec 2026-10-09 run fixings §3.2). Prices are unchanged.
272
+ - The equity `BacktestEngine` records a range accrual's / record Asian's fixing once, at the spot of the run day it
273
+ was live, when the clock moves past it (`BacktestEngine.run_fixings`), instead of re-deciding it at every later
274
+ day's spot; numeric contracts age with their records (no more constant-maturity "no roll rule" warning for them).
275
+ A run whose instants carry a time of day (`frequency="H"`) and holds such a product is refused. Measured on the
276
+ spec fixture: a dated range accrual on day 10, 2.744374 -> 4.649441 (= the contract with the day-4 fixing recorded).
277
+ - `DynamicScenarioEngine` (equity): the same run-fixings recording on a dated path (`DynamicScenarioEngine.run_fixings`);
278
+ registered on the working copy, so the input portfolio is never touched; numeric range accruals / record Asians now
279
+ age on a dated path (they were frozen). An undated path records nothing; a dated path (or an environment) whose
280
+ dates carry a time of day and that holds such a product is refused (R8), and so is a path whose `start_date`
281
+ precedes the environment's valuation date ("the run clock cannot go back", R9).
282
+ - A run holding a NUMERIC range accrual / record Asian / FX range accrual that continues past the contract's maturity
283
+ now raises `ValidationError` on the first instant past it, as the dated twin already did (measured: equity
284
+ backtest, equity dynamic scenario, FX backtest); it used to run on with frozen values. Settlement in runs is a
285
+ follow-up.
286
+ - `FXBacktestEngine` and `FXDynamicScenarioEngine` record FX range accrual fixings (domestic, foreign, quanto) on the
287
+ run day they pass, at the quoted spot (`run_fixings`); numeric FX range accruals age in FX runs (they were frozen).
288
+ FX range accrual on the spec fixture, day 10: 11,385.19 -> 19,005.46. The FX dynamic scenario registers on its
289
+ working copy (the input portfolio is never touched) and records nothing on an undated path. New refusals
290
+ (`ValidationError`) for an FX run holding an FX range accrual: a path instant carrying a time of day (an FX backtest
291
+ row stamped 15:00, an FX dynamic path whose `start_date` has a time) is refused at its first step (R8), and an FX
292
+ dynamic path whose `start_date` precedes the environment's valuation date is refused ("the run clock cannot go
293
+ back", R9). A book without one runs as before.
294
+ - The replay book records a fixing on the date it passes (at that date's spot) and ages a numeric record Asian's
295
+ records with its maturity (spec fixture day 4: numeric 7.807415 -> 7.686469 = the dated twin).
296
+ - PnL explain: a range accrual / Asian fixing that passes inside the step (dated t0, or strictly between t0 and t1)
297
+ is decided once at t0's spot for every revaluation of the pair; the t1 snapshot's own decision (its record, or its
298
+ fill at t1's spot) shows in the `fixing_refill` row, now emitted whenever the pair decided a fixing (label: 'fixing
299
+ decided by the pair at t0's spot, decided differently at t1', was 'missing fixing re-filled'). A t1 contract that
300
+ records a fixing the t0 contract left open is no longer refused (a t0-recorded outcome that changes still is), and
301
+ an aged numeric contract passes the roll check (`check_contract_roll(..., pricing_env_t1=...)`). The equity
302
+ `BacktestEngine` explain recorder no longer declares a run-fixings product unrolled (`contract_roll_days=0`): the
303
+ run clock aged it. An equity backtest or replay with `pnl_explain` holding a range accrual / record Asian whose
304
+ fixing passes mid-run explains again (it raised "contract replacement is not a time step"), with a
305
+ `fixing_refill` of exactly 0.0. Spec probe P1: pv_alive_t1 2.744374 -> 4.649441, `fixing_refill` −1.905067,
306
+ waterfall spot −3.126644 -> −1.221578, total unchanged −2.962925.
307
+ - A dated contract whose annualized cash needs an accrual start but has no `initial_date` is refused at
308
+ construction (R5); it used to accrue from the valuation date. A contract with no annualized leg is unchanged.
309
+ - A `BUSINESS_DAYS`-annualized contract without `accrual_calendar` / `accrual_bus_days_in_year` is refused.
310
+ - A numeric schedule with `initial_date` accrues its quoted fraction instead of YF(`initial_date` -> valuation) plus
311
+ the remaining time.
312
+ - Periods are derived from the contract's terms when it is built. Changing an accrual term on a built product
313
+ (`initial_date` of a dated contract, a day count, `accrual_factors`, `fixed_coupon_year_fraction`, `tenor`,
314
+ the accrual end, the settlement convention under `SETTLEMENT`, the accrual calendar) needs `product.validate()`,
315
+ which derives the affected periods again (a re-dated record, a new maturity or a new last fixing too); pricing
316
+ before that raises instead of paying the old cash. A schedule set on a built product likewise needs `validate()`.
317
+ `accrued_offset` and `first_period_start` are ageing bookkeeping, read once when periods are derived.
318
+ - The intraday twin carries its source records' periods: fixings at different times of day are no longer refused,
319
+ and the twin no longer back-solves `accrual_factors` or banks one `accrued_offset`.
320
+ - Monte Carlo REBASED KO-reset reads each path's knock-in anchor for the knock-out accrual and the knocked-in tenor
321
+ (an annualized V1 used to raise).
322
+ - An annualized DATED range accrual with neither `initial_date` nor `tenor` is refused at construction, on both
323
+ asset classes; it used to accrue from the valuation date. So is an annualized NUMERIC one booked mid-life (a
324
+ fixing at a negative `observation_time`) without `tenor`: its `maturity` is only the remaining life. Unannualized
325
+ contracts, and numeric ones aged by `time_shift` (which banks the elapsed time), are unaffected.
326
+ - A past fixing without its recorded outcome no longer raises. Equity `RangeAccrualOption` and
327
+ `FxRangeAccrualOption` (and the FX foreign / quanto variants) decide a past record without `observed_in_range`
328
+ at the environment's current spot through the product's own range test (per-record barriers, reverse mode); an
329
+ `AsianOption` past record without `observed_price` takes the current spot. One
330
+ `quantark.util.fixings.MissingFixingWarning` (a `UserWarning`) per pricing call names every fixing filled; the
331
+ product is not changed, so pricing equals pricing the same contract with those fixings recorded at the spot. A
332
+ future fixing that carries an outcome is still refused. `resolve_observations(..., warn_missing_fixings=False)`
333
+ skips the warning for a caller that has already warned.
334
+ - **An unset `is_annualized_rebate` now follows `is_annualized`** (default True), as the knock-out coupon always
335
+ did; it used to mean a flat rebate. The knock-in payoff is unchanged: an unset `is_annualized_ki` stays flat. An
336
+ explicit True/False always wins. One resolver, `accrual.leg_annualized(product, "ko" | "rebate" | "knock_in")`,
337
+ answers every cash reader (snowball, Phoenix and KO-reset V0/V1, the terminal periods, QUAD V2 terminal
338
+ breaks, the Monte Carlo REBASED V1 tenor, the snowball PDE V0 rows, the KO-reset lifecycle tenors). Every
339
+ factory default contract whose tenor is not one year moves: the V0 rebate is scaled by the tenor. Measured
340
+ (`create_standard_snowball`, rebate = ko_rate 15%, QUAD at spot 100, vol 20%, r 2%): T=0.5 V0 15 -> 7.5, price
341
+ 5.413997 -> 3.107317; T=2 V0 15 -> 30, price 0.810672 -> 1.217247; T=3 V0 15 -> 45, price 1.517037 ->
342
+ 1.677312; one-year contracts, Phoenix factory defaults (no rebate) and KO-reset schedule 1 of one year are
343
+ unchanged. A certain-V0 contract prices at its closed form (100 + rebate x tenor) e^{-rT} on QUAD, QUAD V2, MC
344
+ and PDE (`test/accrual_time/test_leg_flags.py`). Re-pinned: the replay goldens (13 frames; a 6-day snowball's
345
+ 2% rebate falls from 200 to 3.29 per contract: initial value -10131.703047 -> -9974.988063 on `scalar_bsm`,
346
+ see `test/replay_golden/README.md`) and the carry-identity QUAD pins. The modelvalidation snowball builders
347
+ (`equity_snowball.make_snowball`, `equity_snowball_vol.make_snowball`) state `is_annualized_rebate=False`: the
348
+ banked certificates keep the terms they were certified on (user decision 2026-10-09, no re-certification),
349
+ every anchor reproduces exactly, and the test cases built by them (the `pde_statistics` references, the
350
+ first-passage benchmarks) keep their original banks.
351
+ - `SnowballOption` no longer refuses an annualized contract with neither `tenor`, `initial_date` nor
352
+ `settlement_date` at construction. R5 is the one rule, read on the effective flags: a dated contract whose
353
+ annualized cash needs an accrual start without `initial_date` is refused (now including one whose rebate
354
+ annualizes by default, e.g. dated by `exercise_date` alone); a numeric contract accrues on its own clock
355
+ (`accrued_offset` + maturity) and is accepted.
356
+ - A filled missing past fixing is history (user decision 2026-10-09): it is decided ONCE, at the base valuation's
357
+ spot, and no bump or scenario shock moves it. Only a STRICTLY past fixing is history
358
+ (`quantark.util.fixings.is_history`); one at exactly t = 0 (today, unprinted) is live and moves with spot bumps
359
+ and shocks as before (pricing still decides it at the current spot). `quantark.util.fixings.freeze_missing_fixings(product, env)`
360
+ returns a copy with those fixings recorded (`with_missing_fixings_filled`; `missing_fixing_fills` /
361
+ `with_fixings_recorded` on `RangeAccrualOption`, `AsianOption`, `FxRangeAccrualOption` and its subclasses) and
362
+ warns once; `freeze_portfolio_fixings(portfolio)` does it per position. Applied at: every public
363
+ `GreeksCalculator` method (so `calculate`, bucketed, SIMM and parametric VaR greeks), `BaseEngine.calculate_greeks`
364
+ and `calculate_spot_greeks_curve` (ladder rows keep the base fill, as the engine-grid ladder does),
365
+ `BaseFxEngine.calculate_greeks` (FX calculator, two-rate greeks), `EquityPosition.get_trade_greeks` /
366
+ `get_trade_risk`, the execution-framework spot cells, equity and FX VaR (parametric, historical, Monte Carlo,
367
+ incremental), equity and FX stress tests, SA-CVA (trades and hedges), the surface-shock pipeline (one warning),
368
+ the replay book's carry reprices, and PnL explain. In PnL explain the waterfall's shocked states, the
369
+ alive-at-t1 contract and the Taylor greeks price t0's fill, while `pv_t1` stays the t1 snapshot's OWN value so
370
+ consecutive daily explains chain; a fixing decided differently at t1 shows as a new `Factor.FIXING_REFILL`
371
+ row ("missing fixing re-filled"), present only when t0 had a missing fixing. Three daily explains of a range
372
+ accrual at 109.5 -> 111 -> 111.5 (quantity 2) sum to the PV change exactly (-3.8965), with a re-fill row of
373
+ -3.8054 on the first day. The roll check runs on the contracts as supplied, before any fill. Multi-day runs (equity and FX dynamic scenarios, equity and
374
+ FX backtests, the replay book) fill once at the FIRST valuation and keep it; a fixing that passes during a run
375
+ is recorded once at the spot of the day it was live (run fixings, below). Delta near a barrier no longer carries the
376
+ fill's jump: a numeric range accrual at spot 109.5 under a 110 barrier, delta -0.8914 -> -0.0227 and gamma
377
+ -1.588 -> -0.00106 (equal to the contract with the fixing recorded); an FX range accrual at 1.2995 under 1.30,
378
+ delta -5.906e6 -> -4.991e4. Prices are unchanged (48 prices bit-identical to main); the warning fires once per
379
+ base valuation instead of once per repricing.
380
+ - A dated equity option valued ON its exercise date (the same instant) prices its settled value, identical to its
381
+ numeric twin aged to `maturity == 0.0` (user ruling 2026-10-09, option (a)): `get_maturity` returns 0.0 there
382
+ instead of raising `Valuation date (...) must be before exercise date (...)` (`BaseEquityOption`, `OneTouchOption`,
383
+ `DoubleOneTouchOption`, through the new `time_to_exercise`). The settled value is the payoff at the valuation spot
384
+ with every past fixing or event as recorded and a fixing dated the exercise date live (t = 0, fixed at the spot).
385
+ Measured on 16 families x their engines (188 cells, `docs/superpowers/specs/2026-10-09-dated-expiry-settles-evidence/`):
386
+ on the 154 cells whose numeric twin prices, dated == numeric == the hand settled value to 1e-12, e.g. a range accrual (notional 100, 10%, every fixing in range)
387
+ 10.0, a snowball knocked out at 104 15.0. A valuation strictly AFTER the exercise date still raises (now "must be
388
+ on or before exercise date"). Routes with no T = 0 value in either form keep refusing, with `TODO(dated-expiry)`:
389
+ the Heston analytical / MC / PDE and local-vol MC European engines ("maturity must be positive"), the local-vol,
390
+ Heston and SLV barrier MC and Heston / SLV barrier PDE (`t_grid must be strictly increasing`). The replay /
391
+ ensemble dividend-pillar readout on a dated maturity day is unchanged (1e-8).
392
+ - QUAD V2 settles on the exercise date (user ruling Q1, 2026-10-10): its compile re-validates its copy with the new
393
+ `validate(allow_zero_maturity=True)` (`BaseEquityOption`, `SnowballOption`, `PhoenixOption`,
394
+ `KnockOutResetSnowballOption`), so a numeric snowball / Phoenix / KO-reset aged to exactly `maturity == 0.0` prices
395
+ its settled value (was `Maturity must be positive, got 0.0`), and so does the dated twin on its exercise date (it
396
+ raised). Snowball KO 103 / continuous KI 75: 15, 15, -30 at spots 104, 90, 70; Phoenix (memory and not): 1, 1, 0,
397
+ -40 at 104, 90, 75, 60. Constructing a contract with maturity 0.0 is still refused, and a negative maturity is
398
+ refused everywhere. The knocked-in KO-reset's numeric twin now settles on V2 (3 at 104, -10 at 90) while the dated
399
+ KO-reset keeps its pre-existing refusal on V2 (a schedule-1 record in the past fails settlement resolution, at any
400
+ valuation date).
401
+ - The vol-model European and barrier routes settle on the exercise date (W9, user ruling 2026-10-10): at T = 0 (a
402
+ dated contract on its exercise instant, or the numeric twin at `maturity == 0.0`) each short-circuits before its
403
+ model runs to the expiry code of its Black-Scholes counterpart of the same method, instead of raising `maturity must
404
+ be positive` / `t_grid must be strictly increasing`. Heston analytical, Heston / local-vol / SLV MC European: the
405
+ new `settlement_support.expiry_terminal_value` (the BS analytical and MC engines' expiry branch, now shared);
406
+ Heston / SLV European PDE: `european_expiry_outcome` (the BS European PDE route); local-vol / Heston / SLV barrier
407
+ MC: `barrier_expiry_value` (factored from `BarrierOptionMCEngine._price_expiry_payoff`); Heston / SLV barrier PDE:
408
+ `barrier_expiry_outcome` (the BS barrier PDE route). The nine `TODO(dated-expiry)` markers are gone. European call
409
+ K100: 10 at spot 110, 0 at 90; up-and-out call K100 B130 rebate 5: 10, 0, 5 at 110, 90, 135; a two-day settlement
410
+ lag discounts them (9.99836 at 110). `calculate_greeks` on the exercise date returns the counterpart's keys and
411
+ values (price, delta, gamma; the analytical / MC routes by bump-and-reprice, the PDE routes from the payoff slope)
412
+ where it raised. A valuation after the exercise instant (the next day, or later on the exercise day) and a numeric
413
+ maturity below 0 still refuse. Not changed: a knock-in carried as triggered (`_otc_lifecycle_knocked_in`) is not
414
+ read at T = 0 by any Black-Scholes barrier route (up-and-in call B130 rebate 5 at spot 110: the rebate 5, not the
415
+ payoff 10), so the vol-model barrier routes now return the same (open question in the W9 report; fixed below,
416
+ "A knock-in carried as triggered decides the exercise date"). Evidence:
417
+ `docs/superpowers/specs/2026-10-10-volmodel-expiry-settles-evidence/`.
418
+ - A numeric run-fixings participant (range accrual, record Asian) is no longer floored at a 1e-8 maturity in the
419
+ replay (run-fixings plan Ruling 12, superseded now the dated twin settles on its exercise date): on its maturity
420
+ day it is exactly 0.0 and prices its dated twin's settled value (numeric Asian pricing copy on T: 6.9999999965 ->
421
+ 7.0, = the dated twin); past it the maturity is negative and pricing refuses, as the dated twin past its date
422
+ does. The replay dividend-pillar readout maps 0.0 / negative to the same 1e-8 pillar (unchanged). PnL explain's
423
+ `check_contract_roll` expects a participant's `with_time_elapsed` maturity (snapped, not floored), so an explain
424
+ step ending on its maturity explains, equal to the dated twin (it raised `alive product maturity 0.0 is not ...
425
+ rolled ...`). A backtest of the twins through T values both at the settled value on T; a run to T + 1 is refused
426
+ for both, as before.
427
+ - Asian MC at maturity 0.0 averages the recorded fixings and the live one at the spot (as the analytical engine
428
+ does) instead of the spot alone: 11 fixings 101..111 recorded, spot 110, strike 100: 10.0 -> 6.3333.
429
+ - Accumulator analytical and MC at maturity 0.0 settle the observation at the maturity instant on the spot (as at
430
+ every other instant, `settle_valuation_instant`) instead of dropping it: spot 100, strike 95, one share: 0 -> 5;
431
+ `test_accumulator_mc_engine` expiry cases 5.0 -> 10.0 and -5.0 -> -15.0.
432
+ - The DCN settles on its final observation date (W10, user rulings 2026-10-10 on
433
+ `docs/superpowers/specs/2026-10-10-dcn-final-observation-proposal.md`): every DCN route (GBM, local-vol, Heston,
434
+ QE and coupled-coarse MC, the execution-session MC adapters, the GBM, local-vol and Heston PDE) prices the settled
435
+ final row from the new neutral `quantark.asset.equity.engine.dcn_valuation` (`settle_final_observation`) instead of
436
+ raising `DCN grid has no steps`, `tau must be positive` or `t_grid must be a 1D array`. The row is decided on
437
+ today's spot, pointwise at barrier ties on every route: knock-in = carried OR spot <= KI; knock-out (spot >= KO,
438
+ either state) pays the KO coupon; the fixed coupon pays when not knocked out, not knocked in and spot >= the
439
+ coupon barrier; the loss leg pays when knocked in and not knocked out; each flow at its own payment-date DF (1 when
440
+ paid that day). DCN_A (N 1e6, S0 6000, lags 2 SSE days): 9996.099391 for a coupon or knock-out, -433164.306946
441
+ knocked in at 4000; the MC result's legs / event statistics are the 0/1 decisions with `std_error` and
442
+ `expected_life_years` 0.0; PDE greeks are the settled row's slope (0 at a tie), gamma 0. Sessions answer the
443
+ final date natively (the kernel's new optional adapter hook `answers_natively(prepared)`: no batch plan). The
444
+ cash-Greeks report's date-rolled `theta_1d` on the penultimate day now prices (settled - today) where it raised.
445
+ The row equals the MC path kernel's one-column row bit for bit and is the limit of both engines as the last step
446
+ shrinks (evidence: `docs/superpowers/specs/2026-10-10-dcn-final-observation-evidence/`). Not changed: decided but
447
+ unpaid coupons are not carried (W14), a knocked-out DCN is assumed alive (W14), `settlement_convention` is ignored
448
+ (W15), a valuation after the final date still raises.
449
+ - A DCN's `settlement_convention` times ALL of its cash (W15, spec I2 / amendment A2), where it was ignored. New
450
+ `DCNOption.payment_dates() -> DCNPaymentDates` (`coupon_payment_dates`, `ko_payment_dates` per schedule row,
451
+ `loss_payment_date`; no pricing-env argument) is the single timing source: without a convention it returns the
452
+ schedule's offset dates and `settlement_date`; with one, coupon and KO pay from their observation date and the loss
453
+ leg from the final observation date via the new public `quantark.asset.equity.settlement.payment_date_by_convention
454
+ (convention, determination_date, calendar)`, on the convention's calendar, else the schedule's (any calendar, not
455
+ only SSE). `build_dcn_grid_context` reads it, so every route honours it: GBM / local-vol / Heston / QE /
456
+ coupled-coarse MC, the execution-session adapters, the GBM / local-vol / Heston PDE and the valuation-date row
457
+ (`dcn_valuation`); the MC event statistics' payment dates are C4's. `SettlementResolver._resolve_payment` now
458
+ derives day-lag dates through the same helper (bitwise for every product). A `YEAR_FRACTION` lag on a DCN raises
459
+ ValidationError (in `validate()`, and in `payment_dates()` if set afterwards): a dated DCN pays on dates.
460
+ Moved values: none with `settlement_convention=None` (every DCN route byte-identical before/after, 28 pins);
461
+ `test_autocallable_mc_settlement::test_dcn_explicit_payment_dates_remain_authoritative` (a YEAR_FRACTION
462
+ convention silently ignored) became `test_dcn_year_fraction_convention_is_refused` (ValidationError).
463
+ - Every DCN route prices a lifecycle state (W14a, spec I1 / C1 / C2 / A1). New
464
+ `quantark.asset.equity.lifecycle.DCNLifecycleState` (`valuation_point`, `ledger`, `knocked_in`, `knocked_out`,
465
+ `ko_date`, `matured`, `observed_row_indices`, `ki_date`; `alive`, `realized_cashflows`). GBM / local-vol / Heston /
466
+ QE / coupled-coarse MC, the GBM / local-vol / Heston PDE and their execution-session adapters (batch MC: pending PV
467
+ added in the reduction; terminal states and the final date answered natively; PDE session incl. grid rows) declare
468
+ `supports_lifecycle_state` and take `lifecycle_state=`: the engine value + the ledger's pending receivable PV; a
469
+ knocked-out or matured state prices exactly that PV (no simulation / march, greeks 0). Refused (ValidationError):
470
+ `state.knocked_in != product.knocked_in_at_valuation`, a valuation point other than the valuation date, an undated
471
+ flow, a flow determined after the valuation date, and (alive states) a flow determined on a date that still has a
472
+ monthly row in the product's schedule; another state type is a CapabilityError. New
473
+ `DCNSchedule.without_observed_through(d)` is the post-close view (rows and daily-KI dates <= d dropped); the grid
474
+ context's new `valuation_monitored` marks a valuation instant that is no knock-in test (t = 0 prepended; MC, PDE,
475
+ Heston PDE and grid rows then skip today's KI test). Pre-close == post-close (engine + ledger) to 1e-10 on GBM MC
476
+ (same seed, same grid) and PDE on coupon, knock-out, knock-in and final days. A7'(a): `build_dcn_schedule` accepts a
477
+ valuation date that is not a trading day of the schedule calendar (rows / KI dates on or after it, times ACT/365F
478
+ from it, no KI test until the next trading close); the cash-Greeks `theta_1d` rolls to the next trading day from it.
479
+ DCN_A at 5500 Fri..Tue 2024-06-07..11 (PDE standard): -47083.40, -46208.98, -45415.70, -44628.59, -43819.88.
480
+ Moved values: none with `lifecycle_state=None` on a trading day (40 pins byte-identical, every route, greeks, grid
481
+ rows, sessions, cash-Greeks report); closed-day valuations raise -> price;
482
+ `test_dcn_integration_seams::test_schedule_rejects_non_trading_valuation_date` became
483
+ `test_schedule_accepts_non_trading_valuation_date`.
484
+ - DCNs age through runs (W14b, spec I1 / C3 / A1 / A4-A6 / A7'). New `quantark.asset.equity.lifecycle.DCNLifecycleTracker`
485
+ (`tracker_for` returns it for a `DCNOption`; `PortfolioLifecycleManager.register_positions` tracks DCN positions in
486
+ the equity backtest and the dynamic scenario; the replay builds it per product). Each close decides the BOOKED rows:
487
+ daily KI, then KO (ends the note), else the coupon, and on the final row the loss leg of a knocked-in survivor; cash
488
+ is a dated `RealizedCashflow` (`dcn:<kind>:<date>`, quantity x signed) payable on `DCNOption.payment_dates()`. Any run
489
+ calendar: every run day prices; a schedule date the run never visits is decided at the previous run instant's spot
490
+ (`gap=True` on the event and the ledger flow, W6 rule); dates before the run start are history (signed rule 3); a
491
+ first run day after an unvisited in-run date refused (`TODO(dcn-run-start)`; superseded by ruling R31, T17 CP6: dates
492
+ before the FIRST RUN INSTANT are history -- the row observed, its coupon not owed, no KI / KO state assumed -- so a
493
+ run whose first market day is after the start completes; raise -> run, no moved values; and a first run instant
494
+ after the final observation retires the note as matured before the run, as W1 -- the warning, matured and settled,
495
+ no cash, valued at zero -- where it stayed alive and its pricing copy refused; ruling R32: before any observation,
496
+ rows before the requested day are history for the pre-close copy). Pricing copies: pre-close
497
+ `product_for_pricing(d, env, initial=True)`, post-close `.without_observed_through(d)`; the runs value the contingent
498
+ claim plus the ledger (MTM + pending PV + paid cash). `DCNLifecycleState` gains `pending_settlement_cashflow`,
499
+ `settlement_date`, `settled`, `settle()`, `advance_to()`, `mark_matured_before_run()`; `ProductReplay` reads a DCN's
500
+ ledger for its receivable PV and payments (A4; the autocallable path unchanged). Replay builds DCN engines
501
+ (`create_autocallable_engine`: `DCNMCEngine` from `MCParams` num_paths / seed / use_qmc / use_antithetic,
502
+ `DCNPDEEngine`; `create_vol_model_engine(product=)`: local-vol / Heston MC and PDE; SLV refused) and its config
503
+ admits a DCN under `vol_model` localvol / heston. Moved values: DCN runs (they priced the booked contract statically
504
+ every day, never deciding a row; the replay raised `PDEEngine settlement support is none`). DCN_A booked 2023-03-27,
505
+ spot 5500 / 4400 on 04-11..12 / 6100 from 05-04, PDE fast, dynamic scenario portfolio value: 04-03 -160297.41 ->
506
+ -156942.55 (coupon 10000 receivable), 04-11 -455784.67 -> -444194.19 (knocked in, coupon paid), 05-04 -10724.37 ->
507
+ 19996.10 (knocked out, position closed), 05-12 -10724.37 -> 20000.00; the equity backtest moves identically; the
508
+ replay now runs (05-12 paid cash 20000). Replay goldens unchanged. Refused (ValidationError): a run instant with a
509
+ time of day (signed W6 Q2(a), `TODO(run-fixings)`), PnL explain of a run holding a DCN (`TODO(dcn-explain)`), and a
510
+ pre-close copy while an in-run schedule date before it is undecided; a dead or expired note's pricing copy is
511
+ terminal (`get_maturity` 0.0), never a refusal.
512
+
513
+ ### Fixed
514
+ - `HestonDCNPDESolver` events are the 1D DCN route's dual-cell projection on an unpinned grid (T14 / I10). The 2D
515
+ DCN applied coupon / KO / KI as whole-node masks on a grid with a node pinned onto each level, so each trigger sat
516
+ up to half a cell off its level (an O(h) shift whose coefficient follows the level's position in its cell; the
517
+ KI and KO nodes were also left out of their inclusive masks by 1-ULP `exp(log b)` noise), and the price was
518
+ erratic in `n_x`: DCN_A Feller Heston, n_v 101, 301 -> 401 -> 501 moved +4,476 / -940 per 1M, d04's 601 -> 1201
519
+ -> 2401 +2.4 / +414. The 1D DCN route shows the same ladder under its `"nodal"` masks and a ±10 one under its
520
+ default. New `event_projection` (None = CELL_AVERAGE; `"nodal"` is the old discretization bit
521
+ for bit) and `HestonSLVADICore(pin_critical_levels=True)` (False skips the level pinning; the default path is
522
+ unchanged for every other route). After: the nested ladder 301 / 601 / 1201 / 2401 / 4801 is monotone (-56, -87,
523
+ -53, -18), non-nested levels wiggle within ±75; Heston QE-M MC (2^21 paths) -92,980 ± 100 vs the time-converged
524
+ PDE ~ -92,910 (Aitken extrapolation of the e09 time ladder; 0.7 s.e. from the MC). Evidence: `docs/superpowers/specs/2026-10-13-dcn-nx-ladder-evidence/`. Moved values: Heston DCN
525
+ PDE prices only (no anchor or golden prices one): DCN_A Feller at the default (301, 101) -97,286.0115 ->
526
+ -92,971.8705, at (151, 41) -90,111.4178 -> -92,001.9490 per 1M notional.
527
+ - The autocallable MC time grid holds one node per instant (W17a, approved 2026-10-10). The snowball, KO-reset and
528
+ Phoenix MC grids (`SnowballMCEngine._build_time_grid` / `_build_time_grid_ko_reset`, `PhoenixMCEngine.
529
+ _build_time_grid`, inherited by the local-vol / Heston / QE / SLV snowball and Phoenix MC) were the sorted Python
530
+ `set` of their times, so one instant spelled two ways an ulp apart -- a knock-out record against a continuous-KI
531
+ `np.linspace` node (a dated record's `(d - a) / 365`, an aged numeric one's `d / 365 - a / 365`, `T * j / n`),
532
+ a REBASED `t_ki + offset`, or KI dates rounded to 10 decimals -- survived as two nodes ~1e-16 years apart. The
533
+ empty step carries no variance but adds a column of random draws and re-deals every draw after it, so a dated
534
+ contract and its aged numeric twin priced on two independent samples (W17 diagnosis: day 92 of a 256-path snowball
535
+ 12.08 vs 11.34; at 1M paths the gap is within one standard error, both forms agree with the PDE / QUAD V2).
536
+ New `quantark.util.numerical.merge_time_nodes(times, tol=Tolerance.ZERO, pin=T)` collapses every run of nodes
537
+ closer than `tol` into its LAST member (a maturity within `tol` is pinned back to exactly `T`) and `node_index`
538
+ maps a time to the first merged node strictly after `t - tol`; the three grid builders use them. A grid with no
539
+ such run is bit-identical. Moved: only MC values whose grid held such a run, each a fresh draw of the same law --
540
+ on the W12 snowball / Phoenix, 6 dated and 8 numeric valuation days of 364 (e.g. BS snowball day 92 numeric,
541
+ 256 paths seed 7: 10.756027 -> 11.461036 = the dated value), the continuous-KI KO-reset on days 26 / 65 / 78 / 82,
542
+ `test_ko_reset_event_stats_shape[Rebased]` pv 98.1788 -> 97.5565 (shape-only test) and the live gate
543
+ `test/pde_grid/test_anchor_certification.py::test_snowball_pde_vs_mc[False]` MC 96.645369 -> 96.621477 (|PDE - MC|
544
+ 0.0213 -> 0.0026, gate 0.2). No golden or certificate anchor moved (probe over `test/modelvalidation`,
545
+ `test/mo_volmodels`, `test/pde_grid` and every autocallable-MC test file). Dated == numeric twin now within
546
+ 8.9e-15 on every day and route measured. The range-accrual and Asian MC grids use the same set union but hold no
547
+ such pair (only observation times against `T`, spelled alike in both forms; every day measured): unchanged. New
548
+ `test/test_mc_time_node_merge.py`. Evidence: `docs/superpowers/specs/2026-10-10-snowball-mc-twin-diagnosis/`
549
+ (`moved_values.txt`).
550
+ - The local-vol, Heston and SLV snowball MC price a KO-reset with a CONTINUOUS knock-in (W17 side ticket). The
551
+ KO-reset path hands the Brownian bridge its paths cut at the knock-in horizon (schedule 1) while these engines
552
+ record the per-step log-variance over the whole grid, so the shape check raised `PricingError` ("recorded step
553
+ variance ... does not describe these paths") on every such contract. The caller now names the horizon
554
+ (`horizon_steps`) and the record is sliced to it; any other mismatch still raises. Flat-IV local-vol MC agrees with
555
+ the BS MC within 4 standard errors; dated == numeric twin within 1e-10. Moved values: none (raise -> price). New
556
+ `test/test_ko_reset_vol_mc_continuous_ki.py`.
557
+ - A dated autocallable whose discrete knock-in records lie in the past prices like its numeric twin (W11). The
558
+ knock-in resolvers (`SnowballOption.resolve_ki_observations`, inherited by `KnockOutResetSnowballOption`, and
559
+ `PhoenixOption.resolve_ki_observations`) resolved EVERY record, so a dated record before the valuation date asked
560
+ the settlement resolver for a year fraction from the valuation date back to it (`calculate_year_fraction`,
561
+ `day_counter.py:86`: "end_date (2025-02-04) must be after start_date (...)"), while the knock-out resolvers already
562
+ kept only the records not before the valuation date and the numeric twin's `time_shift` had dropped them. Every
563
+ engine reads that resolver (QUAD V2's compile, the PDE's valuation decision and knock-in rows, QUAD V1's valuation
564
+ decision, the MC time grid), so a dated KO-reset with schedule-1 records in the past was refused mid-life on all of
565
+ them (QUAD V2 and the PDE also when knocked in, QUAD V2 also on the exercise date), and so was a dated snowball or
566
+ Phoenix with a DISCRETE knock-in schedule (the continuous-KI fixtures never met it). The knock-in resolvers now keep
567
+ the same records as the knock-out ones (`observation_schedule.active_record_indices`; new
568
+ `active_ki_source_indices` on both products): a passed record is history, its outcome the carried knock-in state,
569
+ never resolved forward. The KO-reset MC grid maps each kept record to its source position in the contract's
570
+ schedule (the knock-in anchor's `source_index`). The KO-reset contract rules are unchanged (a past schedule 1 not
571
+ knocked in still refuses, `require_alive`, on both forms). Moved: 363 dated values raised -> price / delta / gamma
572
+ (KO-reset ABSOLUTE at days 100-365 alive and knocked in on MC / PDE / QUAD V1 / V2 / local-vol / Heston / SLV MC,
573
+ e.g. QUAD V2 292 days in knocked in at spot 100: raised -> 2.43400 = the numeric twin; QUAD V2 on the exercise date
574
+ 3.0 at 104, -10.0 at 90; discrete-KI snowball and Phoenix on MC / PDE / QUAD V1 / V2 / local-vol MC and PDE /
575
+ Heston / QE / SLV MC); no numeric value and no golden / certificate anchor moved. Dated == numeric twin (price,
576
+ delta, gamma) within 7e-13. Intraday event building (`quantark/intraday/events.py`) now refuses a schedule env that
577
+ drops a knock-in record, as it already refused one that drops a knock-out record (it indexes the source records by
578
+ position). Not changed: the 2D Heston / SLV snowball and Phoenix PDE still refuse a dated knock-out schedule before
579
+ maturity (pre-existing, a different step). New `test/test_ko_reset_past_records.py`; the pinned
580
+ splits are gone (`test_dated_expiry_settles` `DATED_REFUSED_ANY_DATE`, `test_expiry_carried_knock_in` KO-reset
581
+ entries in `AUTOCALL_REFUSED` / `AUTOCALL_BEFORE_REFUSED`). Evidence:
582
+ `docs/superpowers/specs/2026-10-10-ko-reset-past-records-evidence/`.
583
+ - `EuropeanMCEngine`'s no-arbitrage lower-bound check is statistical (W13, user decision 2026-10-10; diagnosis
584
+ `docs/superpowers/specs/2026-10-10-mc-lower-bound-diagnosis/`). A deep in-the-money European near expiry is worth
585
+ its discounted intrinsic bound (Black-Scholes minus the bound is 0.0 in double precision one day out), so the
586
+ unbiased estimate fell below the bound about half the time and the hard `price < bound - 1e-6` check refused it
587
+ (38-62 % of seeds at every path count and method; no estimator bias measured, |bias| < 3e-6). The engine now
588
+ refuses only an estimate more than `max(Tolerance.PRECISION, 4 * std_error)` below the bound
589
+ (`EuropeanMCEngine.LOWER_BOUND_STD_ERRORS = 4.0`; the std error it reports, in contract units) and keeps the hard
590
+ `Tolerance.PRECISION` (1e-6) floor when the std error is zero or undefined. The estimator is unchanged: every price
591
+ that passed before is bit-identical (1162 of 1162 grid cells); only refused cells now price (182 of 182, raised ->
592
+ their own estimate; `moved_values.txt`). The BS barrier MC prices the day-before carried knock-in down-in put
593
+ through this engine: 9.993453009252772 at spot 90 and 24.993174367657804 at spot 75 (dated form; the numeric twin
594
+ differs in the last digits), so `("mc", "down_in_put")` leaves `_BEFORE_REFUSED` in
595
+ `test_expiry_carried_knock_in.py` and its day-before continuity assertion runs. Under antithetic and plain QMC the
596
+ reported std error is the iid formula and overstates the real error (up to about 800x measured), so the check is
597
+ loose there; the std error formula, `EuropeanQuadEngine`'s check and RQMC seeding are unchanged (open questions in
598
+ the diagnosis).
599
+ - Antithetic MC runs report the pair-mean standard error (W16, signed W13 follow-up 1, spec I3/A9). Within each batch
600
+ the samples are `[z; -z][:n]`; with `m = ceil(n/2)` the pairs are `(i, m+i)`, an odd `n` leaves the unpaired
601
+ `z[m-1]` out of the s.e. only, the pair means of all batches pool into one unit set, and the s.e. is
602
+ `std(units, ddof=1)/sqrt(#units)`. New `quantark.montecarlo.std_error` (`antithetic_pair_means`,
603
+ `mean_and_std_error`, `sample_std_error`) is used by the European, digital, Asian, range-accrual, American, barrier
604
+ (continuous, discrete, expiry), accumulator, single and double sharkfin MC engines, the vol-model (local vol,
605
+ Heston, QE, Heston-SLV) snowball and Phoenix engines, the DCN GBM / local-vol / Heston engines and their execution
606
+ adapters, and the FX barrier, sharkfin, range-accrual, TARF and TARN MC engines. Plain QMC keeps the iid formula,
607
+ now documented as not a valid error bar for deterministic QMC (use `RANDOMIZED_QUASI`). The plain GBM snowball and
608
+ Phoenix engines draw iid paths whatever `use_antithetic` says and keep the iid s.e.; the Dask batch route of the
609
+ snowball and Phoenix engines reduces sum / sum-of-squares and keeps the iid s.e. (`# TODO(w16)`). The W13a lower-bound
610
+ check inherits the corrected s.e.: no refusal flips (0 of 300 seeds refused at spots 90 and 75, 1 and 5 days, 256
611
+ antithetic paths, before and after; the one-day deep-ITM put s.e. falls 0.0636 to 0.0007). Moved values: reported
612
+ standard errors only (examples, 2000 antithetic paths, fixed seed: European call 0.3435 -> 0.2671, cash-or-nothing
613
+ 0.1085 -> 0.0193, American put 0.1991 -> 0.1115, FX TARF 0.00722 -> 0.00052, DCN GBM 3220 -> 2680, Phoenix local-vol
614
+ 0.01441 -> 0.01022; range accrual rises 353 -> 497 because its payoff is even in z and the iid formula understated
615
+ it); prices bit-identical. New `test/test_mc_std_error_antithetic.py`.
616
+ - Proposals (docs only, no code; each ends with open questions for sign-off):
617
+ `docs/superpowers/specs/2026-10-13-last-day-theta-proposal.md`,
618
+ `docs/superpowers/specs/2026-10-13-standardized-pricing-result-proposal.md`,
619
+ `docs/superpowers/specs/2026-10-13-fixing-time-proposal.md`. Moved values: none.
620
+ - RQMC seed spacing is documented (W16, signed W13 follow-up 3): batch `b` scrambles with `base_seed + b`, so
621
+ replications whose base seeds sit closer than their batch count share scrambles. `SobolNormalGenerator._make_engine`
622
+ and `docs/execution/policy-guide.md` ("RQMC seeds and replications") state the rule: space base seeds by at least
623
+ the batch count, or derive them from a hash / `SeedSequence`. Seeding unchanged. Moved values: none.
624
+ - `EuropeanQuadEngine` lower-bound check scales with the notional (W16, signed W13 follow-up 2: measure first).
625
+ Near-expiry measurement (`docs/superpowers/specs/2026-10-13-quad-near-expiry-evidence/`, 1680 cells to 1e-9 y): no
626
+ refusals at ordinary scale, but the ABSOLUTE `1e-4` tolerance refused correct deep-in-the-money prices once the price
627
+ reached ~1e8 (20 false refusals in the scale probe; relative error <= 2e-11). Tolerance is now
628
+ `max(1e-4, Tolerance.RELATIVE * bound)`: every bound below 1e5 unchanged, a price 1% below the bound still refused.
629
+ Moved values: none (refusal -> price at large notionals). Gauss-Legendre ATM error ~4e-3 (all maturities) logged.
630
+ - The DCN PDE routes pay a monthly observation that falls on the valuation date (W10b, user ruling Q5 2026-10-10).
631
+ The GBM, local-vol and Heston DCN PDE dropped it (the march never applies t = 0) while every MC route paid it, so
632
+ the PDE value lost the day's coupon overnight. They now decide the row pointwise at the spot through the W10
633
+ helper (`dcn_valuation.observe_valuation_row`), at every valuation date: a knock-out today settles at the
634
+ knock-out coupon (greeks 0, no march), a coupon today is added to the smooth continuation, a knock-in today reads
635
+ the knocked-in surface (as before). DCN_A on 2024-12-03 (month 23): spot 5500 coupon today 9779.74 -> 19777.79
636
+ (MC 19767.09; the day before 19739.93); carried knock-in at 6300, knock-out today -23212.00 -> 9998.05 (= MC).
637
+ The grid spot curve (`calculate_spot_greeks_curve`, `BranchSolution`) folds the same row per level. 90 values
638
+ move on the measured observation dates; nothing else (evidence `moved_values.txt`).
639
+ - The vol-model routes resolve DATED observation schedules (W12, user-approved). (1) The Heston and SLV snowball and
640
+ Phoenix PDE (2D ADI) refused a dated knock-out schedule at any date before maturity ("a date-based knock-out
641
+ observation schedule needs a pricing environment to resolve its observation times"): their S-axis grid request
642
+ (`_layer_x_nodes`, and the bump context's frozen layout) never received the environment the 1D adapter stashes.
643
+ Both now call `_stash_grid_request_env` before `grid_request`, as the 1D adapter does. (2) The local-vol, Heston and
644
+ SLV barrier MC and the Heston and SLV barrier PDE read only the legacy `observation_dates`, which a dated schedule
645
+ leaves unset ("discrete monitoring requires observation_dates"). A dated schedule is now resolved against the
646
+ environment exactly as the Black-Scholes barrier MC resolves it (`schedule.resolve(env, default_barrier=,
647
+ default_payoff=, require_single=True, product=)`, new `engine/vol_barrier_schedule.discrete_observation_times`)
648
+ and the resolved times feed the kernels; a numeric schedule is still read from `observation_dates` verbatim. The
649
+ limits are unchanged and identical for both forms: per-observation varying barriers / payoffs, an observation
650
+ after maturity, a record behind the valuation date (refused by the resolution, as on the Black-Scholes routes),
651
+ a delayed pay-at-hit rebate, a memory Phoenix on the 2D PDE. Moved values: dated forms only, raised -> price;
652
+ every numeric value is unmoved (PDE byte book and the modelvalidation anchors bit-identical). The dated twin
653
+ equals the numeric twin aged to the same date (153 of 201 measured values bitwise, worst 3.5e-12 relative: the
654
+ last ulp of the resolved times). New `test/test_vol_dated_schedules.py`; the W9 / carried-KI pins on these
655
+ refusals are removed (`_BEFORE_REFUSED`, `AUTOCALL_BEFORE_REFUSED` in `test/test_expiry_carried_knock_in.py`).
656
+ Evidence: `docs/superpowers/specs/2026-10-10-vol-dated-schedules-evidence/`.
657
+ - The vol-model barrier routes price a discrete schedule at its records' own terms, first-hit only (W18, user rulings
658
+ 2026-10-10). The local-vol, Heston and SLV barrier MC and the Heston and SLV barrier PDE accept a discrete schedule
659
+ whose records all share one level and payoff, but handed the kernels `product.barrier` and `product.rebate`: a
660
+ schedule whose common level differs from `product.barrier` was priced at the wrong level, silently, numeric and
661
+ dated alike; so was a knock-out's common record payoff. The kernels now receive the records' common level (a
662
+ record without a level takes `product.barrier`, the product's own normalisation) and, on a knock-out, the
663
+ records' common payoff, exactly as the Black-Scholes barrier MC reads them (`_build_discrete_grid`); a knock-in's
664
+ no-hit rebate stays `product.rebate`, as the Black-Scholes MC pays it. New
665
+ `engine/vol_barrier_schedule.schedule_barrier_terms`. The vol kernels monitor first-hit only: a schedule with
666
+ `aggregation_mode` ACCUMULATE, BEST or WORST, which they silently priced as STOP_FIRST_HIT, is now refused
667
+ (`ValidationError`, "aggregation ... is refused"; new `refuse_non_first_hit`, `# TODO(vol-aggregation)`), on both
668
+ forms and including the Heston / SLV PDE deterministic-variance limit. CONTINUOUS / EXPIRY monitoring is
669
+ unaffected. Moved values: level / payoff-differing schedules value -> value (each equal, bitwise, to the contract
670
+ booked at the records' terms), non-first-hit aggregation value -> refused; every schedule at `product.barrier`
671
+ with STOP_FIRST_HIT is unmoved (PDE byte book and the modelvalidation anchors bit-identical). New
672
+ `test/test_vol_barrier_schedule_level.py`. Evidence: `docs/superpowers/specs/2026-10-10-vol-barrier-schedule-level-evidence/`.
673
+ - The Black-Scholes barrier MC decides at the valuation instant on the schedule record's own level (W18b, user
674
+ approval 2026-10-10). Two decisions of `BarrierOptionMCEngine` read `product.barrier` / `product.rebate` while
675
+ its discrete path reads each resolved record: (a) the exercise-date value `barrier_expiry_value` (also the
676
+ local-vol / Heston / SLV barrier MC routes' value at T = 0 since W9) and (b) the "hit at valuation" decision
677
+ before simulating. For a DISCRETE schedule both now read the first record at or after the valuation instant (the
678
+ record on the valuation date, else the next observation, the barrier PDE's `_next_observation` rule -- the
679
+ next-observation reading of (b) is superseded by A15 below: between observations nothing is decided now): its level,
680
+ and on a knock-out its payoff (new `valuation_barrier_terms`; `barrier_expiry_value` now takes the pricing
681
+ environment). A record without a level takes `product.barrier`; CONTINUOUS / EXPIRY monitoring and a knock-in's
682
+ no-hit rebate are unchanged. Example: up-and-out call, `barrier` 120, record at 115 on the exercise date, spot 117:
683
+ 17.0 -> 5.0 on the BS MC and the three vol MC routes, equal to the BS PDE, the vol PDE routes and the contract
684
+ booked at 115. A record on a mid-life valuation date whose level the spot has crossed now knocks out / in at once,
685
+ as the PDE does (the MC previously simulated and failed on the zero-length step). Moved values: only contracts
686
+ whose record level differs from `product.barrier` (or a knock-out record paying other than the rebate), spot
687
+ between the levels; plain contracts bit-identical. New `test/test_barrier_mc_record_level_at_valuation.py`.
688
+ - The Black-Scholes barrier MC prices a DISCRETE schedule with a record on the valuation instant that the spot has
689
+ NOT crossed (it raised "dt_array must have strictly positive entries"). Such a record is decided "not hit" at the
690
+ valuation instant (W18b) and leaves the simulated grid: the price equals, bitwise, the contract aged past that
691
+ record; a sole such record leaves the never-hit value (knock-out: the vanilla; knock-in: the rebate at the
692
+ terminal). Moved values: none (raise -> price).
693
+ - A knock-in whose discrete schedule records pay other than `product.rebate` is refused on every route (W18b, user
694
+ ruling 2026-10-10, option (a)). A knock-in's rebate is paid when no observation hits, so no record's payoff can
695
+ apply. The 1D PDE core already refused it (spec 3C §5.2 (a): the Black-Scholes and local-vol barrier PDE, and the
696
+ Heston / SLV PDE deterministic limit); the Black-Scholes MC, the QUAD barrier, the local-vol / Heston / SLV MC and
697
+ the Heston / SLV 2D PDE priced it. The core's rule and message ("a knock-in has one rebate (R); a schedule record
698
+ pays P (spec 3C §5.2 (a))") move to the neutral `engine/barrier_schedule_rules.refuse_knock_in_record_payoff`,
699
+ which every route now calls, in both forms. Unaffected: knock-ins whose records pay the rebate or nothing, and all
700
+ knock-outs. Moved values: those knock-in cells price -> refused only. New
701
+ `test/test_knock_in_record_payoff_refused.py`.
702
+ - The analytical barrier routes read the schedule record's level and payoff on a DISCRETE schedule (W18c, spec
703
+ 2026-10-13 I4 / A8): `BarrierAnalyticalEngine`, `OneTouchAnalyticalEngine`, `DoubleBarrierOptionAnalyticalEngine`
704
+ and the single / double sharkfin analytical engines read `product.barrier` (`upper_barrier` / `lower_barrier`) in
705
+ their hit pre-checks, immediate knock-out cash and barrier-shift formula. Now a DISCRETE schedule is hit now only by
706
+ a record at the valuation instant, at its own level(s), and an immediate knock-out pays that record's payoff
707
+ (`valuation_barrier_terms`, moved to the neutral `engine/barrier_schedule_rules.py` and still importable from the
708
+ MC module, plus the new `valuation_double_barrier_terms`); the forward closed form (shift, beyond-the-barrier
709
+ first-observation integral, one-touch volatility) uses the level(s) every remaining record (t > 0) shares
710
+ (`forward_barrier_level` / `forward_double_barrier_levels`). Remaining records with different levels have no
711
+ closed form: `ObservationSchedule.assert_analytical_ready` (new `pricing_env` argument, `remaining_records`,
712
+ `remaining_levels`) raises `ValidationError`, as it does for mixed payoffs; a record on the valuation instant still
713
+ decides there. A future knock-out hit pays the hit record's payoff too (the MC's `payoffs[first_idx]`, the PDE):
714
+ the forward closed form and the first-observation hit value use the remaining records' payoff
715
+ (`forward_knock_out_cash`; one fixed payoff is already required, an unset payoff takes `rebate` /
716
+ `knock_out_rebate`); knock-ins and no-touches keep their rebate. The sharkfins' no-rebate knock-out legs no longer
717
+ carry the record payoffs (their cash legs pay them), and a single sharkfin with `knock_out_rebate` 0 whose records
718
+ pay cash no longer skips its touch leg. CONTINUOUS / EXPIRY monitoring unchanged. Moved values (flat 20% vol, r 3%, q 1%, K 100, T 1,
719
+ monthly records; "now" = aged to the 3-month record): up-and-out call `barrier` 120, records 115, spot 110:
720
+ 4.14526 -> 3.95226 (up-and-in 16.16050 -> 16.35350); same, now, spot 117: 4.79158 -> 4.88876 (records paying
721
+ 4.5: -> 4.39988); one-touch up 120 / records 115, spot 110: 2.65102 -> 3.37817, now at 117: 3.58628 -> 4.88876;
722
+ double knock-out 130/75, records 125/80, spot 100: 4.52666 -> 3.68421, now at 127: 4.07797 -> 2.0; single
723
+ sharkfin 120 / 115, spot 110: 3.52510 -> 2.89580, now at 117: 3.61756 -> 2.93325; double sharkfin 130/75 /
724
+ 125/80, spot 100: 5.49710 -> 4.65465, now at 127: 5.05572 -> 2.93325 -- each equal, bitwise, to the contract
725
+ booked at the records' levels; mixed remaining levels value -> refused. Records paying 4.5 (product cash 5, a
726
+ sharkfin's 3), spot 110 / 100: up-and-out call records at 120: 4.14526 -> 3.88016, records at 115: 4.14526 ->
727
+ 3.61444; one-touch: 2.65102 -> 2.38591; double knock-out (rebate 2): 4.52666 -> 5.12593; single sharkfin: 3.52510
728
+ -> 4.32040; double sharkfin: 5.49710 -> 5.85667 -- each equal, bitwise, to the contract booked with cash 4.5.
729
+ Single sharkfin `knock_out_rebate` 0, records paying 2.5: 1.93449 -> 3.25999; records at 115, now at 117: 1.46580
730
+ -> 2.44438 (2.5 at the terminal). Plain contracts (records at `product.barrier`, paying the product's cash)
731
+ bit-identical. New `test/test_barrier_schedule_level_analytical_quad.py`.
732
+ The QUAD barrier, one-touch and double-barrier adapters (`quad_adapters.py`) decide at the valuation instant as
733
+ the Black-Scholes barrier MC does (W18b): the immediate hit / touch and the expired branch read the first record at
734
+ or after the valuation instant (`valuation_barrier_terms` / `valuation_double_barrier_terms`), its level(s), and a
735
+ knock-out (one-touch) pays its payoff (the immediate hit / touch reading the NEXT record when none is on the
736
+ valuation instant is superseded by A15 below, which restores the "beyond the next record" cells' pre-T6 values); the forward lattice was already record-aware and prices mixed levels natively
737
+ (no refusal). The knock-out / one-touch rebate lattice is no longer skipped when the product's own cash is 0 but the
738
+ records pay cash. Moved values (QUAD 401 points; up-and-out call `barrier` 120 / records 115, K 100): spot 117 beyond
739
+ the next record 4.50422 -> 4.85223 (5 at the terminal), records paying 4.5 aged onto a record at 117: raised "t_grid
740
+ must be strictly increasing" -> 4.39988, up-and-in at 117: 21.32214 -> 20.97413 (the vanilla), expired at 117: 17.0
741
+ -> 5.0; rebate 0 with records paying 4.5, spot 110: 1.40591 -> 3.81059; one-touch 120 / records 115 at 117: 4.28985
742
+ -> 4.85223, expired at 117: 0.0 -> 5.0, rebate 0 records paying 4.5: 0.0 -> 2.40468; double knock-out 130/75 /
743
+ records 125/80 at 127: 2.48798 -> 1.94089, expired at 127: 27.0 -> 2.0 -- each equal, bitwise, to the contract
744
+ booked at the records' terms and to the BS MC decision. A knock-in whose records pay other than `product.rebate` is
745
+ now refused on the analytical barrier and double-barrier engines and on the QUAD double barrier too (Ruling R19,
746
+ `refuse_knock_in_record_payoff`, the message every route raises), making the W18 Q3 "every route" rule true: e.g.
747
+ analytical up-and-in, records paying 4.5 (rebate 5): 16.16050 -> refused; double knock-in, records 1.5 (rebate 2):
748
+ analytical 6.24155 / QUAD 5.91733 -> refused. QUAD plain schedules and EXPIRY monitoring bit-identical.
749
+ QUAD prices a DISCRETE schedule with a record on the valuation instant that the spot has NOT crossed (it raised
750
+ "t_grid must be strictly increasing" on the barrier, one-touch, double-barrier and double one-touch adapters, plain
751
+ contracts included): the record is decided "not hit" there and leaves the lattice (I5 / A14, as the BS barrier MC)
752
+ -- bitwise the contract aged past it; a sole such record leaves the never-hit value (the remaining-contract
753
+ replication, as once monitoring has ended); two records on that instant stay refused. The double one-touch /
754
+ no-touch QUAD adapter decides at the valuation instant on the deciding record too (`valuation_double_barrier_terms`;
755
+ a double one-touch pays its payoff; its rebate lattice no longer skipped when only the records pay). No analytical
756
+ engine prices `DoubleOneTouchOption` (`analytical/double_no_touch.py` is a probability function on explicit
757
+ levels), so there is nothing to fix there. Moved values (QUAD 401 points, aged onto the 3-month record, spot inside):
758
+ raised -> priced, e.g. up-and-out call 120: 4.37956, up-and-in: 14.74546, one-touch: 2.40644, no-touch: 2.88655,
759
+ double knock-out: 5.57745, double one-touch: 0.77959, double no-touch: 4.10917; sole record: knock-out 14.23864
760
+ (the vanilla), knock-in / no-touch 4.88876 (the rebate at the terminal), touches 0.0, double knock-out 7.56296.
761
+ Double one-touch 130/75, records 125/80: spot 127 (beyond the next record) 4.31809 -> 4.85223 (hit-paid, at 77:
762
+ 4.64745 -> 5.0), expired at 127 0.0 -> 5.0, records paying 2.5 aged onto a record: raised -> 2.44438; rebate 0 with
763
+ records paying 4.5: 0.0 -> 1.77979; double no-touch at 127: 0.53413 -> 0.0, expired 5.0 -> 0.0. Plain double
764
+ one-touch / no-touch (28 cells) bit-identical. (The "beyond the next record" cells above are superseded by A15
765
+ below.)
766
+ - User decision 2026-10-14 (A15): a DISCRETE barrier is decided only on an observation ("knock out should only
767
+ happen at the observation date, otherwise price it"). A record ON the valuation instant (dated: the valuation
768
+ date; numeric: `is_zero(observation_time)`) with the spot beyond its level knocks out / in at once, at its level
769
+ and payoff (unchanged); with NO record on the valuation instant nothing is decided now, whatever the spot -- the
770
+ route prices the contract forward and observes each future record with its own machinery. This supersedes the
771
+ W18b / T6 pre-check that read the next record between observations. One shared rule,
772
+ `engine/barrier_schedule_rules.valuation_instant_barrier_terms` / `valuation_instant_double_barrier_terms` (None
773
+ when no record is on the instant), now gates the immediate decision of the Black-Scholes barrier MC (`price`), the
774
+ QUAD barrier / one-touch / double-barrier / double one-touch adapters (`early_price`, new `_single_decided_now` /
775
+ `_double_decided_now`) and the single / double sharkfin MC, which read `product.is_barrier_hit(spot)` on every
776
+ monitoring type and now decide a DISCRETE schedule only on the record on the instant, at its level and payoff
777
+ (`_decided_now`). Already forward, verified and unchanged: the analytical barrier / one-touch / double-barrier /
778
+ sharkfin engines (hit now only by a record on the instant, `observed_at_valuation`), the 1D PDE core (BS and
779
+ local-vol barrier, double barrier, one-touch, double one-touch: `valuation_event` reads only records at t = 0;
780
+ `_next_observation` is the far-field boundary row, not a decision), the Heston / SLV 2D barrier PDE (knock-out
781
+ injected at observation steps only) and the local-vol / Heston / SLV barrier MC (no pre-check; paths start beyond
782
+ the level and are observed at the records). CONTINUOUS / EXPIRY monitoring, the exercise-instant value
783
+ (`barrier_expiry_value`, the QUAD expired branch), a record on the valuation instant and a carried knock-in are
784
+ bit-identical. The price is now continuous across the level between observations on QUAD, the PDE and the MC; the
785
+ analytical engines keep a pre-existing step at the level (their BGK-shifted closed form inside vs the
786
+ first-observation integral beyond: up to 0.15 on the test contracts). New
787
+ `test/test_discrete_barrier_between_observations.py`. Moved values (flat 20% vol, r 3%, q 1%, K 100, T 1, monthly
788
+ records, no record on the valuation instant, spot beyond the next record; QUAD 401 points, BS MC 20000 paths):
789
+ up-and-out call 120 / rebate 5 at inception, spot 121: QUAD 4.85223 -> 4.66393, BS MC 4.85223 -> 4.66792 (s.e.
790
+ 0.0144; analytical 4.69051 and BS PDE 4.66385 unmoved); aged 0.30, spot 121: QUAD 4.89609 -> 4.86928, BS MC
791
+ 4.89609 -> 4.89024; up-and-in 23.20289 -> 23.22971 (BS MC 23.29391 -> 23.06761); down-and-out put 85, spot 84:
792
+ 4.89609 -> 4.71718 (BS MC -> 4.73075); down-and-in 15.86746 -> 16.04638 (BS MC 15.81282 -> 16.08246); hit-paid
793
+ up-and-out 5.0 -> 4.94754; one-touch 120: 4.89609 -> 4.30271; no-touch 0.0 -> 0.59338 (85 down at 84: 0.0 ->
794
+ 0.53197); double knock-out 130/75, rebate 2, spot 131: 1.95844 -> 3.07690; double knock-in 32.51122 -> 31.39276;
795
+ double one-touch 4.89609 -> 4.29302 (hit-paid 5.0 -> 4.37090); double no-touch 0.0 -> 0.60308; single sharkfin MC
796
+ 120 (knock-out 3, no-hit 1), spot 121: 2.93766 -> 3.28873 (analytical 3.27908); double sharkfin MC 130/75, spot
797
+ 131: 2.93766 -> 4.04035 (analytical 3.99354). The W18c QUAD "beyond the next record" cells (records 115 / 125-80,
798
+ `product.barrier` 120 / 130-75, spot 117 / 127 / 77) return to their pre-T6 values: up-and-out 4.85223 ->
799
+ 4.50422, up-and-in 20.97413 -> 21.32214, one-touch 4.85223 -> 4.28985, double knock-out 1.94089 -> 2.48798,
800
+ double one-touch 4.85223 -> 4.31809 (hit-paid 5.0 -> 4.64745), double no-touch 0.0 -> 0.53413. BS MC, mid-life
801
+ day 92 (no record), spot 117 between the records' 115 and `product.barrier` 120: up-and-out 4.88906 -> 4.57322,
802
+ up-and-in 19.98757 -> 20.02752, down-and-out (87, records 90 / barrier 85) 4.88906 -> 4.56438, down-and-in
803
+ 13.57646 -> 14.00622 (BS PDE 4.56015 / 20.22481 / 4.54902 / 13.96480). QUAD (601 points) up-and-out call K 100,
804
+ quarterly records at 110 paying 5, spot 120: hit-paid 5.0 -> 4.60396, terminal-paid 4.85223 -> 4.50945; K 95, records
805
+ at 100 paying 2, spot 100 (on the level): 2.0 -> 1.50672 (BS PDE within 6.4e-5 of each). No modelvalidation anchor
806
+ or replay golden moved.
807
+ The run lifecycle tracker (`lifecycle/barrier.BarrierLifecycleTracker`: the equity backtest and the dynamic
808
+ scenario via `PortfolioLifecycleManager`, and the intraday provisional replay) tested `product.is_barrier_hit` on
809
+ every daily close whatever the monitoring. A DISCRETE product is now decided only on its schedule's records: each
810
+ record once, on its date at that day's close, against the record's own level and paying its payoff (W18c, times the
811
+ contract multiplier where the product's hit cash carries it). A record date the run never visits is decided at the
812
+ previous run instant's spot with `gap=True` on the event (A7'(c), the signed W6 rule, as `lifecycle/dcn.py`); a
813
+ record before the run is history (signed rule 3: no state assumed, not hit), "before the run" being before the FIRST
814
+ RUN INSTANT (ruling R31, T17 CP6; it first refused a record between the start and the first run instant,
815
+ `TODO(barrier-run-start)`, which broke the intraday provisional replay from a checkpoint: that replay restores the
816
+ checkpoint state and observes only the due instants after it, so the records the checkpoint covers are history --
817
+ restored to the pre-T17 outcome on the CP6 probe, KO paying 1.0 on a supplied 111 and alive on the assumed spot); a
818
+ numeric record falls on `start + round(t * 365)` days (the trackers' run clock); a first run instant after the expiry
819
+ retires the contract as matured before the run (CP6 round 2, every monitoring type: the `MaturedBeforeRunWarning`,
820
+ expired, no cash, and `PortfolioLifecycleManager` drops the position; it booked the expiry payoff at that instant's
821
+ spot after expiry). Between records nothing is decided, and at expiry only a record on the expiry
822
+ date hits (no record there: the no-hit payoff). Events carry `metadata` `monitoring="discrete"`, `gap`, `decided_on`,
823
+ `observation_date`. CONTINUOUS and EXPIRY monitoring unchanged. New
824
+ `test/test_barrier_lifecycle_discrete_observation.py`. Moved values (200 daily GBM paths, 20% vol, one year, monthly
825
+ dated records, per-path tracker from 100): up-and-out call 120 / rebate 5: 66 -> 51 knock-outs, total booked cash
826
+ 523.684 -> 595.051; down-and-in put 85: 88 -> 74 knock-ins (cash 1498.738 -> 1444.917); single sharkfin 120
827
+ (knock-out 3): 66 -> 51 knock-outs (cash 391.684 -> 493.051); one-touch 120 (5): 66 -> 51 touches (cash 330.0 ->
828
+ 255.0). No existing backtest, dynamic-scenario, pnl-explain or intraday test moved (none books a DISCRETE barrier
829
+ product off its record dates). A one-touch / double one-touch touched on a record books the record's payoff (unset:
830
+ the rebate), no contract multiplier, as `get_payoff(touched=True)` scales it (CP6: a product rebate of 0 with records
831
+ paying 4.5 booked 0 -> 4.5). The intraday refusal of a discrete barrier with no record at expiry keeps its
832
+ `CapabilityError`, reworded for A15 (the expiry fixing settles the no-hit payoff, a path not yet validated there).
833
+ `QuadInputAdapter.build_inputs` may return a sequence of legs (annotation and abstract contract, R30).
834
+ The single and double sharkfin MC price a DISCRETE schedule with a record on the valuation instant that the spot has
835
+ NOT crossed (they raised "dt_array must have strictly positive entries"): the record is decided "not hit" there and
836
+ leaves the simulated grid (I5 / A14, as the BS barrier MC), bitwise the contract aged past it; a sole such record
837
+ leaves the never-hit value; two records on that instant are refused. Moved values: raise -> price only (e.g. single
838
+ sharkfin 120, knock-out 0.5, aged onto its 3-month record at spot 119: 1.32888; double 130/75 at 129: 2.56138).
839
+ The double-barrier analytical engine paid a knock-out decided now undiscounted (`rebate x multiplier`, then only the
840
+ delay to the payment date), while its forward formula, QUAD and the PDE's discrete records pay a double knock-out's
841
+ rebate at the terminal payment time (the product has no hit-paid option): it now pays `rebate x DF(T)` there too,
842
+ CONTINUOUS and on a record on the valuation instant (a record's payoff likewise), continuous at the barrier. Moved
843
+ values (130/75, rebate 2, T 0.75, r 3%): spot 131 or 74, continuous or on a record: 2.0 -> 1.95550 (QUAD and PDE
844
+ 1.95550); records paying 2.5 on a record now: 2.5 -> 2.44438. Plain inside cells and every other analytical value
845
+ bit-identical; no anchor moved.
846
+ - Double knock-out rebate timing (T17 R30, user authority for bug-fix moves): a `DoubleBarrierOption`'s rebate is
847
+ paid only to knocked-out paths, at the terminal payment time (the product has no hit-paid option). Two routes broke
848
+ it. (a) QUAD: `DoubleBarrierQuadInputAdapter._terminal_payoff_coefficients` carves the vanilla by moving the last
849
+ record's lower bound to the strike (a call; a put: the upper), so a rebate on a record at maturity was paid on
850
+ (0, K] (put: [K, inf)) to paths that never knocked out. That record's rebate on the carved side is now its own leg
851
+ on the records' corridor (`build_inputs` returns two `QuadCoreInputs`; `DiscreteQuadEngine` sums the core over an
852
+ adapter's legs, one leg unchanged); the knock-in parity `vanilla + R DF - core` inherits the fix. Oracle: the rebate
853
+ leg `V(R) - V(0)` equals `R DF(T) P(knock-out)` (knock-in: `P(survive)`, from QUAD's double no-touch) to 1.6e-15,
854
+ and QUAD equals the Black-Scholes PDE within 6.2e-4 (0.75 before). (b) PDE: `DoubleBarrierAdapter._hit_price`
855
+ paid a continuous hit-now at the hit instant (undiscounted) while its forward leg and discrete records pay at the
856
+ terminal payment time; it now reads the terminal payment time (a product with `pay_at_hit` would keep the hit;
857
+ the single-barrier and one-touch adapters already follow `pay_at_hit` / `payment_at_hit` and are unchanged). New
858
+ `test/test_double_knock_out_rebate_timing.py`. Moved values (130/75, rebate 2, K 100, T 1, monthly records, flat 20%
859
+ vol, r 3%, q 1%; QUAD 401 points): knock-out call at inception, spot 100: 5.16249 -> 4.41101 (PDE 4.41066);
860
+ aged 0.30 spot 100: 5.64657 -> 4.78246; EXPIRY monitoring 6.00231 -> 5.17774 (analytical 5.17774); knock-in call
861
+ 5.60572 -> 6.35720 (PDE 6.35782), aged 4.46446 from 3.60035, EXPIRY 4.76590 -> 5.59047; knock-out put at inception
862
+ 5.11362 -> 4.41915 (PDE 4.41904); aged 0.30 spot 129: call 3.62377 -> 3.54538, put 2.15674 -> 1.87254; spot 80: call
863
+ 2.43157 -> 1.74220, put 5.67308 -> 5.51107; the A15 "beyond" cells (aged 0.30, spot 131): knock-out 3.07690 ->
864
+ 3.02580, knock-in 31.39276 -> 31.44386. Unmoved: record-day and expired cells (decided before the lattice), every
865
+ contract whose last record is before maturity or pays no rebate, and the strike outside the corridor. PDE
866
+ continuous knock-out hit now (aged 0.30, spot 131 or 74): 2.0 -> 1.95844 (= 2 DF(0.70); just inside, 1.95867);
867
+ rebate 10, T 0.5, r 5%, spot 130 outside 80/120: 10.0 -> 9.75310.
868
+ No modelvalidation anchor or replay golden moved.
869
+ - A knock-in carried as triggered decides the exercise date (user ruling 2026-10-10, "check knock in state first").
870
+ At T = 0 (a dated contract on its exercise instant, or the numeric twin at `maturity == 0.0`) the barrier engines
871
+ decided a knock-in from today's spot / records only and paid the rebate to a contract carried as knocked in
872
+ (`lifecycle_state.knocked_in` or the product's `_otc_lifecycle_knocked_in`), while the day before the same state
873
+ priced the knocked-in vanilla. The knock-in decision at T = 0 is now the carried state first
874
+ (`monitoring_ended.knock_in_carried`, the helper the T > 0 path reads), then today's observation: knocked in pays
875
+ the payoff, only a contract never knocked in the rebate. Fixed in the shared expiry code, so every route gets it:
876
+ `BarrierAnalyticalEngine._price_at_maturity`; `barrier_expiry_value` (BS barrier MC, and the local-vol / Heston /
877
+ SLV barrier MC routes); the PDE knock-in adapters' `maturity_value` (BS and local-vol barrier PDE, the Heston / SLV
878
+ barrier PDE routes through `barrier_expiry_outcome`, double barrier PDE; greeks: delta the payoff slope); the QUAD
879
+ barrier and double barrier expired price; `DoubleBarrierOptionAnalyticalEngine._price_zero_maturity`. Up-and-in
880
+ call K100 B130 rebate 5 carried as knocked in: 5.0 -> 10.0 at spot 110, 5.0 -> 0.0 at 90 (both forms, every
881
+ route); down-and-in put B80: 5.0 -> 10.0 at 90, 5.0 -> 0.0 at 110; double knock-in 80/130: 5.0 -> 10.0 at 110.
882
+ The numeric twins moved from the same wrong values on main. A knock-in not carried, a carried knock-out / touch
883
+ (terminal lifecycle state, read before maturity on both sides of T = 0) and every autocallable with a knock-in
884
+ term (snowball, Phoenix, KO-reset, on MC / PDE / QUAD V1 / V2 / local vol / Heston / SLV, which already read the
885
+ carried state at T = 0) are unchanged. New `test/test_expiry_carried_knock_in.py` (hand settled values, both
886
+ forms, both carriers, day-before continuity); W9's `up_in_call_knocked_in` cells are now also pinned to the hand
887
+ value. Evidence: `docs/superpowers/specs/2026-10-10-carried-knock-in-at-expiry-evidence/`.
888
+ - Snowball / Phoenix / KO-reset PDE (1D BSM and local vol, 2D Heston and SLV): the not-knocked-in (V0) Dirichlet
889
+ rows are built by edge. The knock-out edge is the upper row on a standard product and the LOWER row on a reverse
890
+ one; it carries the knock-out payoff once it lies beyond every knock-out level. A reverse product used to price
891
+ its upper (knock-in side) row as the knock-out payoff and its lower (knock-out side) row as principal + rebate.
892
+ A call-rebate contract's no-event rows pay principal + the participation's forward intrinsic value (a put on a
893
+ reverse Phoenix) and no fixed rebate; the lower row used to add `rebate_rate x S0` (the factory sets it to the KO
894
+ rate). Under continuous knock-in the knock-in edge copies the knocked-in row only when it lies at or beyond the
895
+ knock-in level; it used to copy it unconditionally, so a knock-in barrier the grid never reaches still knocked in
896
+ the edge. Certain-V0 controls (`docs/superpowers/specs/2026-10-08-accrual-scope-followups-evidence/
897
+ item7_v0_rows_by_edge.py`, PDE - closed form, flat / annualized): reverse fixed rebate +1.1e-3 / +5.0e-4 ->
898
+ 6.7e-7 / 6.6e-7; standard call rebate with `rebate_rate` 0.10 +3.4e-4 / +3.5e-4 -> 4.0e-6 / 7.2e-6; reverse call
899
+ rebate -9.2e-4 / -3.6e-3 -> 6.7e-6 / 1.3e-5; continuous KI off the grid -2.7e-3 / -3.0e-3 -> 2.4e-6 / 2.5e-6.
900
+ The earlier "cancellation" on the call-rebate rows was QUAD's: on its default 1001-point grid QUAD overprices the
901
+ call leg by 4.4e-4 / 8.7e-4 against the closed form (2001 points 1.4e-4, 4001 1.4e-5, 8001 7.2e-6), so PDE - QUAD
902
+ read better with the phantom rebate. Every banked certificate anchor, `pde_statistics` reference and replay golden
903
+ reproduces bit for bit (the cert reverse and call-rebate cells' edges lie too far from the spot to reach the price),
904
+ and so does the PDE byte book (`test/pde_bitwise/capture_book.py`, 713 rows, 33201993 vs this branch, same machine:
905
+ 0 diffs; the same 10 rows raise on both sides).
906
+ - Snowball / Phoenix PDE, 2D Heston and SLV: under continuous knock-in, the not-knocked-in edge that lies beyond the
907
+ knock-in level copies the knocked-in surface's row of the same step. The 2D hooks solve V1 to completion before V0
908
+ and kept no `_grid_v1`, so the edge row was 0.0 (standard lower edge, KO 103 / KI 75: 0.0 -> 10.2004; reverse
909
+ upper edge, KO 97 / KI 125: 0.0 -> -791.999). They now compute V1's rows first, as the 1D adapter does
910
+ (`SnowballPDESolver._set_boundary_conditions_v0_beside_v1_rows`). Prices move at round-off (|move| <= 4e-13) on
911
+ the contracts measured, and by up to 8.1e-5 only when the knock-in level sits just inside the grid's lower edge.
912
+ Discrete knock-in is untouched (`docs/superpowers/specs/2026-10-09-heston-2d-v0-evidence/`).
913
+ - 2D Heston / SLV ADI core (`HestonSLVADICore._A1`, `v0_boundary="degenerate_pde"`, the 2D snowball / Phoenix / DCN
914
+ default): the explicit S-operator now carries the degenerate v = 0 column, `(r - q) U_x - r U`. The implicit
915
+ S-solve already carried the S-drift and the -rU reaction on every variance column, so the v = 0 row evolved under
916
+ theta x A1, consistent only on a fully implicit step (W7 ruling Q1, 2026-10-10). The standard certain-V0 control
917
+ under Heston at (96, 24, 48), every damping step off, goes from +2.478e-3 to -9.31e-7 against its closed form; with
918
+ the default damping +3.827e-3 -> +3.761e-3 (the rest is the damped steps' dt^2 term, by design: ruling Q4).
919
+ Every 2D Heston / SLV price on that boundary moves: `adi2d-snowball-greeks` re-certified by amendment
920
+ (2026-10-10; 28 of 28 anchors moved, low_feller delta +2.66e-4 / +2.57e-4 the largest; both candidates ADMITTED,
921
+ the low_feller errors against the banked reference shrink); the reverse continuous-KI Heston Phoenix (KO 97 / KI
922
+ 125) at (192, 48, 192) 95.7019 -> 95.5960, now monotone in refinement; the Feller-violating Heston DCN at (151, 41)
923
+ -89176.7 -> -90111.4 per 1,000,000 notional. Values: `docs/superpowers/specs/2026-10-09-heston-2d-v0-evidence/moved_values.txt`.
924
+ - Phoenix PDE (1D, and the 1D statistics march of the 2D Heston / SLV Phoenix): under continuous knock-in the
925
+ not-knocked-in edge beyond the knock-in level copies the knocked-in row of the step; `PhoenixAdapter` marched
926
+ every V0 memory state before the knocked-in surfaces and never exposed them, so the row was 0.0 (W7 ruling Q2). A
927
+ V0 group now sets V1's rows of the step first and exposes them for that row, as the snowball adapter does, and the
928
+ Phoenix statistics copy the knocked-in row too (`PhoenixStatistics._alive_ki_edge_copies_ki = True`). Moves short
929
+ continuous-KI Phoenixes whose edge sits near the knock-in level (three months, reverse KI 150: +1.737e-5);
930
+ `phoenix-flat-bsm` re-certified by amendment (2026-10-10; near_expiry pv -2.8e-16, delta +6.9e-17, the other 124
931
+ anchors bit for bit).
932
+ - Snowball / Phoenix PDE continuous knock-in on an up (reverse) barrier, FIRST_PASSAGE crossing correction
933
+ (`_ContinuousKIFirstPassage._geometry`, W7b, ruling 2026-10-10). The half-cell floor on the slope sample measured
934
+ the cell at the grid's far edge on an up barrier (a negative "cell": the floor never acted), so a node a few
935
+ thousandths of a cell below the barrier sent the 2D Heston / SLV price off by ~x8 per step; and the reflection
936
+ factor overflowed to inf x 0 = NaN on the 2D v = 0 column. The floor now measures the cell at the barrier, and the
937
+ factor is evaluated in one exponent where it would overflow (`Tolerance.EXP_MAX`). Fixed: reverse KO 97 / KI 125 at
938
+ n_x 312 / 317 / 384 (diverged to -1e30 ... -1e173), the production Greek grid at KI 139.80 (raised `PricingError`),
939
+ the production PV grid at KI 114.45 (NaN); other reverse 2D continuous-KI grids whose nearest node lies within half
940
+ a cell of the barrier move by <= 6.6e-4. Down barriers, discrete knock-in and every 1D layout are bit for bit, and
941
+ so is every certificate anchor and golden (`docs/superpowers/specs/2026-10-09-heston-2d-v0-evidence/moved_values.txt`).
942
+ - Dated records without `initial_date` no longer accrue from the valuation date (coupons shrank as the contract
943
+ aged).
944
+ - Phoenix `get_ko_payoff` keeps `accrued_offset`.
945
+ - The product, QUAD V2 and the intraday path agree on every Phoenix coupon period, the first one included.
946
+ - An aged MC REBASED knock-out accrues from the contract's origin (it lost the elapsed part).
947
+ - Ageing a KO-reset contract (`time_shift`, a theta bump) now moves an ABSOLUTE schedule 2 a day closer as
948
+ well, and no longer grows its knock-out cash or knocked-in tenor. Schedule 2 used to stay where it was while
949
+ the elapsed time was banked into `accrued_offset` (one day added 1/365 to every post-KI accrual, 0.75 ->
950
+ 0.75274), so KO-reset theta was wrong: about 10% low on a live contract, of the wrong sign on a knocked-in one
951
+ (book contract: -0.0181 -> +0.0489). The one-day theta now equals the calculator's theta on the contract aged by
952
+ hand (`test/accrual_time/test_ko_reset_theta.py`). A REBASED schedule 2 holds offsets and stays.
953
+
954
+ Measured on the PDE byte book (`test/pde_bitwise/capture_book.py`, 721 rows, main e3021668 vs this branch, same
955
+ machine): 678 rows bit-identical; in the 43 that moved only `bump_theta` moved, every price and every other Greek
956
+ is bit-identical. 16 Phoenix rows move at ulp level (relative 2e-14 to 2.5e-12: an aged numeric accrual now reads
957
+ the original quoted end instead of `(offset + bump) + (t - bump)`). 27 KO-reset rows move by the schedule-2 fix
958
+ above: relative 2e-2 to 1.6e-1 on the standard alive rows (e.g. `ko_reset|flat|standard` +0.02480 -> +0.02707),
959
+ up to a sign change on knocked-in and near-barrier rows (`3a|class|ko_reset|cont|knocked_in` -0.01807 ->
960
+ +0.04887, `3a|bumpcross|ko_reset|cont|85.5` -0.14185 -> +0.00369).
961
+
962
+ - Range accrual (equity `RangeAccrualOption`, FX `FxRangeAccrualOption` and its foreign and quanto variants): an
963
+ annualized coupon accrues over the WHOLE contract -- `tenor`, else `initial_date` -> expiry in
964
+ `range_config.day_count_convention` (which was never read), else a numeric contract's `maturity` plus the time
965
+ `time_shift` has aged it by. It used to accrue over the REMAINING maturity while the in-range ratio counted every
966
+ fixing, past and future, so the coupon shrank as the contract aged: a one-year 10% contract certain to pay 10.0
967
+ priced at 7.34 after 91 days and 0.027 one day before expiry; it now prices at 10 x DF on every date. Inception
968
+ prices are unchanged when the config's day count is the one the environment used.
969
+ - Range accrual theta: `time_shift` moves a numeric contract's fixing times with its maturity (they stayed put, so
970
+ past fixings looked future), and a fixing the theta bump steps over is fixed at the held spot (a dated FX one used
971
+ to be refused as an unrecorded past fixing). Theta on a certain coupon is now the discount roll (+8e-4 per day on
972
+ the control) instead of a day's accrual lost (-0.026).
973
+ - cashleg `AccrualLeg`: `day_count` is now read. When the `LegSchedule` carries `period_start_dates` /
974
+ `period_end_dates`, each period accrues `calculate_year_fraction(start, end, day_count)`; with times only it keeps
975
+ `period_end - period_start` (bit-identical). The field used to be ignored and the dates never read, so ACT/365,
976
+ ACT/360 and 30/360 US gave the same PV. On a dated quarterly 2026 leg (4% on 1,000,000, r = 5%, no KO): ACT/360
977
+ 38773.115547 -> 39306.910836 (+1.38%, = 365/360 x the dated ACT/365 value), ACT/365 -> 38768.460003 (90/91/92/92
978
+ days instead of four quarter-years), 30/360 US unchanged. No library, test or example caller builds a dated
979
+ schedule: every existing leg PV is bit-identical (14 caller configurations measured against dcea77b6). New
980
+ refusals: period dates given for only one side or only some periods, non-`datetime` dates, an end not after its
981
+ start; a dated `BUSINESS_DAYS` leg without the new `calendar` and `bus_days_in_year` fields (and those fields on
982
+ any leg that would not read them); ACT/ACT ISMA/BOND/CHINABOND on a dated leg (no coupon frequency).
983
+
984
+ ### Removed
985
+ - `AccrualConfig.accrual_dates` (it had no reader).
986
+
987
+ The analytic barrier engines' observation rules (the 3C handoff, spec
988
+ `docs/superpowers/specs/2026-10-04-pde-1d-remaining-routes-design.md` §12). Prices inside the
989
+ barriers away from maturity are bit-identical.
990
+
991
+ ### Fixed
992
+ - A spot beyond a discretely monitored barrier with no observation due is no longer a hit in
993
+ `BarrierAnalyticalEngine`, `OneTouchAnalyticalEngine`, `DoubleBarrierOptionAnalyticalEngine` and
994
+ `DoubleSharkfinOptionAnalyticalEngine` (and `SingleSharkfinOptionAnalyticalEngine`, which prices
995
+ through the first two). The value is taken through the next observation
996
+ (`engine/analytical/first_observation.py`): the Gaussian step to it and its barrier test are
997
+ exact, the engine's own barrier-shifted formula applies from it on, and the expectation is a
998
+ two-order Gauss-Legendre rule that raises `NumericalError` when the orders disagree beyond
999
+ `Tolerance.RELATIVE`. Against the exact discrete recursion (`test/pde_routes/barrier_reference`),
1000
+ monthly and aged monthly schedules: single barrier 1.41 → 4.4e-2 (74 cells), one-touch /
1001
+ no-touch 0.74 → 2.2e-2 (18), double barrier 0.44 → 2.0e-2 (32), double sharkfin 0.58 → 1.3e-2
1002
+ (32), each below the shift's own error just inside the barrier (0.24, 0.096). An observation at
1003
+ the valuation instant still decides on the spot, at its own level. A schedule other than
1004
+ `STOP_FIRST_HIT` beyond its barrier now raises `PricingError` (it was priced as a hit). A price
1005
+ beyond the barrier costs 25-30 ms on the single barrier and up to 0.5-0.9 s on a daily-monitored
1006
+ double sharkfin (one Ikeda-Kunitomo series per quadrature node); inside, unchanged.
1007
+ - `DoubleSharkfinOptionAnalyticalEngine`'s continuous paid-at-hit leg integrated the survival curve
1008
+ with 48 Gauss-Legendre nodes over (0, T), which miss its fall next to a barrier: off by up to
1009
+ 2.4e-5 on a rebate of 5. The integral now runs on panels doubling from the time at which a
1010
+ barrier comes within nine deviations (exact below it), at two orders, and raises
1011
+ `NumericalError` when they disagree; 4e-15 against an adaptive reference on 60 cells.
1012
+
1013
+ ### Changed
1014
+ - A no-touch (`OneTouchOption` with `NO_TOUCH`, `DoubleOneTouchOption` with `DOUBLE_NO_TOUCH`) and
1015
+ both sharkfins refuse an `ACCUMULATE` observation schedule at construction (`ValidationError`):
1016
+ they pay only if the barrier is never hit up to and including expiry, so nothing accumulates
1017
+ (user ruling 2026-10-07). The PDE priced an accumulating no-touch as if only its maturity
1018
+ observation existed (4.304787 against 4.227537 under first hit, a year out, records at 0.5 and 1);
1019
+ the double-sharkfin MC summed every hit's cash. One-touches and barrier knock-outs keep the mode.
1020
+ The eight `3c|mat|*no_touch|acc|*` byte-book rows are retired.
1021
+
1022
+ ### Added
1023
+ - KO-reset snowball lifecycle tracking (spec `docs/superpowers/specs/2026-10-08-ko-reset-lifecycle-design.md`):
1024
+ `KOResetLifecycleTracker` books the schedule-1 knock-out, the knock-in that switches the contract to schedule 2
1025
+ for good (tested the same close, inclusive; schedule-2 records due on an earlier close are consumed), V0 at
1026
+ schedule 1's end on its tenor (no schedule-2 extension), and V1 at the knocked-in contract's end; a knock-out
1027
+ wins a tie. `PortfolioLifecycleManager` (equity backtest, dynamic scenarios), `ProductReplay` and the
1028
+ simulated-path backtest track KO-reset positions (the manager used to warn and reprice them as of every day,
1029
+ and every engine raised the day after schedule 1 ended un-knocked). Both schedule-2 modes: a knocked-in
1030
+ `REBASED` contract is priced as the `ABSOLUTE` contract it has become
1031
+ (`KnockOutResetSnowballOption.with_absolute_schedule_2`); an un-knocked `REBASED` contract needs a Monte
1032
+ Carlo engine (refused at configuration elsewhere, and in simulation surface mode). The knock-in close
1033
+ (`ki_date`) is the reset's timing; its accrual hangs from the persisted `KnockInAnchor` (the knock-in record that
1034
+ fired, at its contractual fixing; accrual time spec §5.1), stored in the state beside `ki_date`, carried by every
1035
+ pricing copy (`_otc_lifecycle_knock_in_anchor`) and embedded by
1036
+ `with_absolute_schedule_2(knock_in_time, *, anchor)` in each converted record's relative period and in the `post`
1037
+ terminal (§5.2): knock-in records due on days 91 and 93 observed on day 95 accrue from day 91. A carried `REBASED`
1038
+ knock-in needs `_otc_lifecycle_knock_in_date` and, when its knock-in records accrue, its anchor
1039
+ (`_otc_lifecycle_knock_in_anchor`); it is never looked up by date. Simulated paths take the lowest-index knock-in
1040
+ record due on a path's knock-in close and refuse records of different levels due on one close.
1041
+
1042
+ ### Changed
1043
+ - Every autocallable tracker holds its contract with numeric observation times snapped to the day it observes
1044
+ them (`round(time * 365) / 365`; whole-day times keep their exact float, dated records are untouched), and
1045
+ every consumer (pricing copy, replay, simulation surfaces) builds from it. An off-day numeric record used to
1046
+ be observed on its rounded day yet priced as still ahead (a day-1.4 knock-out: 4.9183 on the life surface
1047
+ against 0.4381). Snapping moves observation timing only: each record keeps its accrual period, so a `k / 12`
1048
+ Phoenix coupon at 12% still pays its quoted 1/12 (1.0) when observed on day 30 (the "cash follows the snapped
1049
+ time" amendment is withdrawn, accrual time spec §7). Whole-day and dated products are bit-identical; replay
1050
+ goldens unchanged.
1051
+ - The replay and the simulation price the initial book before the first close (`product_for_pricing(...,
1052
+ initial=True)` keeps a record landing that day); the simulation keys such a state apart only where a record
1053
+ lands.
1054
+ - Replay QUAD prices a KO-reset on `KOResetSnowballQuadEngine` (`SnowballQuadEngine` ignored schedule 2: 4.195
1055
+ for -1.744). A KO-reset under `vol_model != "bsm"` needs `vol_model_solver="mc"`: the vol-model PDE solvers
1056
+ price it on schedule 1 (21-26% off).
1057
+
1058
+ ### Fixed
1059
+ - KO-reset lifecycle final review: a `REBASED` schedule 2 hangs from the knock-in close, timed and dated from the
1060
+ run start, the clock pricing copies age on (a contract issued before the run placed it early, or its pricing
1061
+ copy held it the gap too far ahead) and sits exactly on the day grid (a record ~5.55e-17 years ahead on its own close made QUAD raise); a dated `REBASED` contract's
1062
+ knocked-in end is dated (it raised `TypeError` on the knock-in close); `observed_post_ko_indices` is PnL-explain
1063
+ bookkeeping; `PortfolioLifecycleManager` values each tracked autocallable from its tracker's initial copy and the
1064
+ dynamic scenario and equity backtest price their baseline after registering trackers (a carried knocked-in
1065
+ `REBASED` position was priced as booked); `EnsembleConfig` refuses a carried knock-in (it was dropped).
1066
+ - `SnowballMCEngine`, `REBASED` KO-reset: a post-knock-in knock-out keeps the accrued offset of an aged contract
1067
+ without `initial_date` (an annualized control paid 6.5 instead of 7.5); V1 is read at each path's own maturity
1068
+ (`ki_time + max(offset)`, not the grid's last node) on that path's tenor (`get_maturity_payoff_v1` takes
1069
+ `contract_tenor`; an annualized `REBASED` V1 raised "ki_time is required").
1070
+
1071
+ ### Removed
1072
+ - `DoubleSharkfinOptionAnalyticalEngine(quad_points=...)`: the paid-at-hit integral controls its
1073
+ own error. Passing it raises `TypeError`.
1074
+ - The double-sharkfin MC engine's `ACCUMULATE` aggregation branch (unreachable: the product refuses
1075
+ the mode).
1076
+ - At maturity those engines observe only what is observed now: a discrete schedule's records at
1077
+ the valuation instant, each at its own level and paying its own cash (none: no hit; it tested
1078
+ the spot against the product's barrier, 5 for 35 and 25 for 7), and an untouched single-barrier
1079
+ knock-in pays its rebate (it returned 0).
1080
+
1081
+
1082
+
1083
+ Theta at an observation boundary (spec
1084
+ `docs/superpowers/specs/2026-10-07-theta-observation-boundary-design.md`). Theta moves the contract
1085
+ from the as-of date `t0` to the bumped date `t1` in one step shared by every caller
1086
+ (`riskmeasures/greeks/theta_shift.py`): `GreeksCalculator` and the clock family (charm, color,
1087
+ vega decay), the execution bump cells, `EquityPosition.get_trade_risk` with cash legs, and the
1088
+ autocallable risk report with its surfaces. Lifecycle aging keeps its rules (`keep_landing=False`
1089
+ runs the old comparisons) apart from the KO-reset fix below; the replay goldens are byte-identical.
1090
+
1091
+ ### Changed
1092
+ - An observation that lands on `t1` is kept at time 0 and observed at the new as-of instant; it
1093
+ was dropped. A daily accumulator one day before a fixing (spot 100, strike 95, 10,000 shares a
1094
+ day): theta +19,397 → +69,397, the difference being exactly that fixing's settlement.
1095
+ - The observation at `t0` is decided on the spot, as the engines decide it at `t0`, and only its
1096
+ outcome is carried: a knock-in (on the product, as the autocallable engines read it, and now
1097
+ for the barrier family too), an accumulator fixing, a Phoenix's memory arrears, cash paid after
1098
+ `t1` as a receivable. A contract `t0` ends is worth its engine's own `t0` value re-discounted to
1099
+ `t1`, or 0 once paid within the bump: on an event day theta is about minus the payment; cash
1100
+ paid on `t1` itself stays. Theta excludes only cash flows already booked (user ruling 2026-10-07).
1101
+ An accumulator's `t0` fixing is that cash (it is no longer added to `past_observations`); a
1102
+ TERMINATION breach on it leaves the booked accrual and the rebate receivable; a KO-reset whose
1103
+ schedule 1 ends un-knocked matured then. A Phoenix `EXPIRY`-pay coupon decided at `t0` raises
1104
+ `CapabilityError`: it rolls up to the note's end, which no state carries yet.
1105
+ - A carried knock-in is priced through each engine's own triggered knock-in, the path a knock-in it
1106
+ decides at the valuation instant takes, so theta differences one method: the PDE composition, the
1107
+ MC vanilla, the local-vol European kernel, QUAD's vanilla; the analytic engines' is the
1108
+ Black-Scholes vanilla; the Heston and SLV barrier engines (MC and 2D PDE) take it through a
1109
+ `knocked_in` flag on their kernels (every path knocked in; the PDE's own vanilla leg), equal to
1110
+ their own breached knock-in to 1e-12. A carried knock-in is an event that happened (user
1111
+ ruling 2026-10-08); they refused it.
1112
+ - A schedule the bump empties is `ObservationSchedule.monitoring_ended` and priced as what
1113
+ remains (barrier family: vanillas and cash digitals, `engine/monitoring_ended.py`; a triggered
1114
+ knock-in the same way); theta there is carry and discounting, not 0. The Heston and SLV barrier
1115
+ engines raise `CapabilityError` on it (no remaining-European path under their own model).
1116
+ - Charm, color and vega decay treat a contract `t0` ended as a fixed receivable (no spot or vol
1117
+ greeks at `t1`) and never difference a carried receivable.
1118
+ - `time_shift(..., keep_landing=False)` on schedules, `BarrierConfig`, products and
1119
+ `AutocallableCashLeg`; product `time_shift` always ages and returns `None` (a KO-reset's returns whether
1120
+ every observation, schedule 2 included, has passed).
1121
+ `RangeAccrualOption.time_shift` now shifts numeric records and decides past fixings on the spot.
1122
+
1123
+ ### Fixed
1124
+ - `SnowballQuadEngine`, `PhoenixQuadEngine` and `KOResetSnowballQuadEngine` price an empty
1125
+ knock-in or knock-out side (the contract aged past its last date) as QUAD V2 does; they raised
1126
+ `PricingError`. A KO-reset whose schedule 1 ended un-knocked still raises: it has matured.
1127
+ - `KnockOutResetSnowballOption.time_shift` ages an `ABSOLUTE` schedule 2 (the post-knock-in
1128
+ knock-out schedule); numeric post dates stayed put. A knocked-in KO-reset's theta now equals the
1129
+ knocked-in snowball's on schedule 2 (+0.0166 in the byte book's case, where it was -0.1406); 24
1130
+ KO-reset `bump_theta` byte-book rows move, no other output of the 713 rows. (The same fix landed
1131
+ independently on the accrual-time branch, entry above; this branch keeps both its `keep_landing`
1132
+ and accrual time's schedule-2 factor slicing. Both byte-book counts were measured against main on
1133
+ their own branch; the merged tree has not been re-measured.)
1134
+ - `DiscreteQuadEngine` ignored a knock-in carried on the product (`_otc_lifecycle_knocked_in`) and
1135
+ priced a knocked-in contract as alive.
1136
+ - The accumulator analytic and MC engines settle an observation at the valuation instant on the
1137
+ spot; the analytic engine raised on its zero-maturity leg.
1138
+
1139
+ ## [0.10.0] - 2026-10-06
1140
+
1141
+ PDE 1D remaining routes (spec: `docs/superpowers/specs/2026-10-04-pde-1d-remaining-routes-design.md`,
1142
+ sub-project 3C). The four remaining 1D routes, the local-vol vanilla (`LocalVolPDESolver`), the
1143
+ local-vol barrier (`LocalVolBarrierPDESolver`), the DCN (`DCNPDEEngine`) and the local-vol DCN
1144
+ (`LocalVolDCNPDEEngine`), march on the shared PDE core: the shared presets, the cell-average
1145
+ projection, grid Greeks, bump contexts, `explain` and grid-capable prepared sessions. Their
1146
+ prices move toward independent references on every measured family. Before they moved, the
1147
+ barrier family was repaired: the contract multiplier, the decision at the valuation instant and
1148
+ at maturity, EXPIRY monitoring and the far-field row beyond a discrete barrier, a knock-in's
1149
+ rebate and session grid, one bump layout per composite part; the analytic double-barrier and
1150
+ double-sharkfin engines now read one double no-touch probability with error control. The Heston
1151
+ and SLV barrier solvers' vol-of-vol → 0 limit moved onto the core as well. Last, under
1152
+ discretely observed knock-in the not-knocked-in edge on the knock-in side takes the knocked-in
1153
+ row, which moves 31 certified values in 10 cells, each as pre-measured. Every stage was checked
1154
+ against the PDE byte book (510 rows at the base, 721 at the end) with its declared movers.
1155
+
1156
+ ### Added
1157
+ - `BarrierPDESolver` and `LocalVolBarrierPDESolver` accept `ObservationType.EXPIRY`: the product
1158
+ is a discretely monitored barrier whose only observation is maturity, its rebate paid at the
1159
+ terminal payment time (1.0e-5 from the closed form on the restated 0.7.0 refusal test).
1160
+ - A knock-in's rebate is priced by `BarrierPDESolver`, `DoubleBarrierPDESolver` and
1161
+ `LocalVolBarrierPDESolver` (Fixed, below).
1162
+ - Bump Greeks of a continuous knock-in through every `create_bump_context` consumer
1163
+ (`GreeksCalculator`, the bucketed Greeks, `execution/greeks.py`, portfolio, PnL explain); they
1164
+ raised `PricingError`. The bump context freezes one layout per composite part. On 12 cells
1165
+ against closed-form Greeks through the same bumps the largest errors go theta 4.6e-5 → 1.0e-6,
1166
+ rho 4.6e-4 → 1.8e-5, vega 9.5e-5 → 3.7e-5, delta 1.7e-4 → 6.9e-5.
1167
+ - `LocalVolPDESolver` and `LocalVolBarrierPDESolver`: `explain`, `create_bump_context`, every
1168
+ `PDEParams` field honoured (the kernel's refusals of domain, event, damping and stepper fields
1169
+ and of a custom operator are gone), grid artefacts in prepared sessions;
1170
+ `LocalVolBarrierPDESolver.calculate_greeks` (`price, delta, gamma` from the grid, composed for
1171
+ a knock-in). The barrier route also gains per-observation barrier schedules and a lagged
1172
+ pay-at-hit rebate (the kernel raised `CapabilityError`), and both a value at maturity (the
1173
+ kernel raised `ValidationError` at `tau = 0`).
1174
+ - `DCNPDEEngine` and `LocalVolDCNPDEEngine`: `calculate_greeks` (`price, delta, gamma` from the
1175
+ grid), `explain`, `create_bump_context`, every `PDEParams` field honoured, prepared sessions
1176
+ on the core adapters. Grid delta is within 0.040 % at six spots where the bump delta was up to
1177
+ 0.85 % off; gamma one point above the knock-in barrier (0.113) is off by −0.0036 where it was
1178
+ off by −0.057.
1179
+ - The DCN's session grid and spot curve, per level (the user's ruling on the plan's P8, in place
1180
+ of a fail-closed grid). `BranchSolution`, beside `CompositeSolution`, carries the alive and
1181
+ knocked-in surfaces. Each level is read from the surface the base-spot readout would take at
1182
+ that level, the knocked-in one at or below the knock-in barrier or when the contract is
1183
+ flagged knocked in at valuation, else the alive one, and its delta and gamma are
1184
+ differentiated within that surface. A session's grid rows equal `calculate_spot_greeks_curve`
1185
+ at the same levels bit for bit; a DCN flagged knocked in reads every row from the knocked-in
1186
+ surface. Nothing is refused.
1187
+ - `localvol_greeks.local_vol_rho_theta`, the rho / theta half of `local_vol_model_greeks`, which
1188
+ the local-vol vanilla calls. The helper calls it too, so the Heston analytical, Heston MC,
1189
+ Heston-SLV MC and local-vol MC engines are bit-identical.
1190
+ - A knock-in's session grid and one-solve spot curve, composed from its parts, on
1191
+ `BarrierPDESolver`, `DoubleBarrierPDESolver` and `LocalVolBarrierPDESolver`; `CompositeSolution`.
1192
+ - `analytical/double_no_touch.py`: `double_no_touch`, the double no-touch probability by the
1193
+ method of images, written so that two large numbers are never added. It returns a value whose
1194
+ error bound is at most `Tolerance.ZERO` (1e-10) or raises `NumericalError` with the bound;
1195
+ `double_no_touch_with_bound` returns `(value, bound)` and refuses nothing. Over 10,543 cells no
1196
+ error is outside its bound and the largest is 0.46 of it. 1 to 13 image pairs, 4.5 to 35 µs a
1197
+ call against 45 to 49 µs for the 80-term series it replaces. The double-barrier and
1198
+ double-sharkfin engines read it.
1199
+ - Core adapters `LocalVolEuropeanAdapter`, `LocalVolBarrierAdapter`, `DCNAdapter`,
1200
+ `LocalVolDCNAdapter`; solver mixin `LocalVolSurfaceMixin`, one copy of the surface members of
1201
+ the five local-vol solvers (bitwise for the local-vol Snowball and Phoenix).
1202
+ - `BaseEngine.static_replication(product, env)`: the legs an engine prices a product with when
1203
+ it is a static combination of other products (`None` otherwise); `GreeksCalculator`
1204
+ computes such a product's greeks as the weighted sum of its own greeks of the legs.
1205
+ - `quantark.asset.equity.engine.pde.core.adapters.expiry_replication`: EXPIRY monitoring on
1206
+ the double-barrier and touch PDE solvers as European vanillas and cash digitals on the
1207
+ analytic engines (`FamilyAdapter.replication`; no grid).
1208
+ - `quantark.volmodels.heston.deterministic_limit.DeterministicVarianceLocalVol`: the
1209
+ vol-of-vol → 0 limit of Heston and Heston-SLV as a local-vol surface, `L(S, t) sqrt(v(t))` with
1210
+ `v(t) = theta + (v0 − theta) e^(−kappa t)` (`L = 1` under Heston).
1211
+ - `quantark.modelvalidation amend` keeps an imported certificate's EXTERNAL benchmark: it never
1212
+ runs it, re-runs every candidate, carries a bit-identical cell verbatim, translates a moved one
1213
+ by the harness's own interval arithmetic, and refuses any translation that would change a
1214
+ verdict (`RELEASE_PROCEDURE` section 10). It refused the whole study before.
1215
+ - `quantark.modelvalidation amend --rerun-candidate NAME` (repeatable) re-runs a candidate whose
1216
+ implementation changed although its schema-1 identity (its configuration) did not; the
1217
+ amendment records `rerun_candidates` and an unknown name is refused (`RELEASE_PROCEDURE`
1218
+ section 6).
1219
+ - `test/pde_routes/`: the exact DCN and discrete-barrier recursions with their term-curve forms,
1220
+ the no-touch series, the local-vol barrier kernel as the test oracle (`lv_barrier_kernel.py`),
1221
+ and their guards.
1222
+
1223
+ ### Changed
1224
+ - **The four migrated routes' prices and Greeks**, toward the references on every measured
1225
+ family. Local-vol vanilla and barrier, maximum |error| at `standard` in price units at spot
1226
+ 100, kernel → core, on a constant / the byte book's / a steep surface: vanilla 4.6e-3 / 4.8e-3
1227
+ / 4.8e-3 → 2.5e-4 / 2.6e-4 / 2.9e-4; continuous barrier 3.5e-3 / 3.8e-3 / 3.2e-3 → 4.1e-4 /
1228
+ 4.0e-4 / 7.1e-4; monthly 5.9e-3 / 4.7e-3 / 2.2e-2 → 2.5e-4 / 2.5e-4 / 6.2e-4; weekly 1.2e-2 →
1229
+ 1.6e-4 (constant); daily 1.1e-2 / 8.3e-3 / 9.4e-2 → 1.2e-3 / 1.1e-3 / 2.1e-3. Greeks on the
1230
+ constant surface, delta and gamma: vanilla 5.7e-4, 1.3e-3 → 4.7e-6, 1.8e-6; continuous barrier
1231
+ 7.8e-4, 1.3e-3 → 1.1e-5, 1.3e-6; discrete barrier 1.7e-3, 9.1e-4 → 8.9e-5, 4.4e-5; vanilla rho
1232
+ and theta 1.5e-4, 2.6e-5 → 1.1e-5, 1.2e-6. DCN, in bp of notional over 24 cells (four
1233
+ contracts, six spots), maximum at fast / standard / high 5.2 / 7.2 / 7.7 → 0.38 / 0.35 / 0.10
1234
+ (median 2.1 / 1.4 / 1.8 → 0.12 / 0.11 / 0.03); the points ladder at the money no longer
1235
+ wanders (−10.5 to +7.7 bp over 201 to 2,401 points → 0.10 to 0.46 bp); the local-vol DCN on a
1236
+ skewed surface −0.9 to −9.8 bp → within 0.18 bp of its finest rung. On kinked rate and dividend
1237
+ curves: vanilla 4.5e-3 → 2.6e-4, monthly barriers 5.1e-3 → 4.6e-4, DCN 4.2 to 6.0 bp → 0.22 bp.
1238
+ - **Their defaults are the shared presets**: 200 / 400 / 800 concentrated points, 4 / 4 / 8 steps
1239
+ per day, half-step damping (1, 1), cell-average projection. `GridConfig(time_steps=200)`
1240
+ reproduces the old local-vol time budget at a cost of at most 1.4e-5 on a vanilla and 3.4e-5 on
1241
+ a continuous barrier, but up to 5.4e-4 monthly, 4.3e-3 weekly and 2.6e-2 daily. Daily
1242
+ monitoring at `standard` carries about 1e-3 of time error and wants 8 steps per day (+9.3e-4 /
1243
+ +2.1e-4 / +1.1e-5 at 4 / 8 / 16). The DCN's 201-point floor is gone (`fast` is 200 points), and
1244
+ a DCN grid of 2,401 points needs `GridConfig(max_points=2401)`. Their wall time: Performance,
1245
+ below.
1246
+ - `LocalVolPDESolver.calculate_greeks`: `delta` and `gamma` are pointwise grid Greeks, not 1 %
1247
+ bumps (the convention moves them by at most 2.4e-4 and 2.3e-5 on the measured vanillas); `rho`
1248
+ and `theta` keep their definitions and units and re-solve on the bump context with the surface
1249
+ held fixed. At maturity it returns `price, delta, gamma`. A numerical vega through
1250
+ `GreeksCalculator` re-prices on that context's frozen layout; a fresh grid under the shifted
1251
+ surface differs from it by the layout's own movement (6.2e-6, 1.6e-5 relative). The
1252
+ structured vol-model risk's local-vol re-price is the solver's price with the surface held
1253
+ fixed, and so now includes a lagged product's settlement discount.
1254
+ - `DCNPDEResult.num_time_steps` is the delivered step count (2,953 at `standard` on contract A,
1255
+ where it read 485), `num_space_nodes` the layout's; the DCN's horizon is its final observation
1256
+ date.
1257
+ - A single- or double-barrier knock-in with a rebate (Fixed). A knock-in whose schedule records
1258
+ carry a payoff different from its rebate, or whose schedule aggregates other than
1259
+ `STOP_FIRST_HIT`, raises `ValidationError`; four 0.7.0 nodal-semantics goldens in
1260
+ `test_pde_base_family_projection` (knock-ins with per-record payoffs, two under `ACCUMULATE`)
1261
+ now assert that error.
1262
+ - A discretely monitored single barrier's far-field row on the barrier's side is the certain
1263
+ knock-out at the next observation when the edge is beyond that observation's level; with no
1264
+ observation ahead, an edge inside the level, on the opposite side and under `ACCUMULATE` it is
1265
+ the vanilla asymptote, as before. EXPIRY cells move by −2.8e-4 / −1.2e-4 (constant surface);
1266
+ monthly and daily cells do not move to the printed digits; a two-year barrier observed only in
1267
+ its second year moves by 1.0e-5 and 1.5e-5. Under `bounds=(None, 140)` on a monthly up-and-out
1268
+ call the old row was off by +1.70 / +9.18, the new one by −8.8e-3 / −1.6e-2.
1269
+ - The European, barrier and double-barrier PDE solvers price per contract (Fixed).
1270
+ - A discretely monitored barrier, double barrier or touch product valued with the spot beyond a
1271
+ barrier and no observation due is solved, not short-circuited (Fixed).
1272
+ - `calculate_spot_greeks_curve` and the session `GRID` output of a barrier-family product: a
1273
+ knock-in's rows are the composition of its parts, at the vanilla part's nodes by default; a
1274
+ knock-out's or touch product's rows at hit levels are the hit outcome with zero delta and
1275
+ gamma; a product decided at the base spot raises `CapabilityError` for a session grid and
1276
+ returns `reprice` rows from the public curve (Fixed).
1277
+ - `DoubleBarrierOptionAnalyticalEngine`: every price with a rebate under continuous or discrete
1278
+ monitoring, and every EXPIRY price with the spot outside the corridor (Fixed). Rebate-free
1279
+ prices and EXPIRY inside the corridor are bit-identical.
1280
+ - `DoubleSharkfinOptionAnalyticalEngine`: the continuous paid-at-hit rebate leg (up to 4.2e-6 at
1281
+ vol 22 % and 3.2e-5 at vol 8 % on a rebate of 5); every price where its 80-term series was
1282
+ unresolved; `quad_points` is keyword-only. Every other leg moves at round-off (at most 3.6e-15
1283
+ at equity parameters).
1284
+ - A barrier-family product with a record on the valuation date: its decision there carries that
1285
+ record's level, cash and payment time and is applied at the spot, not written into the grid.
1286
+ At maturity `price`, `calculate_greeks` and the session outputs return one terminal value,
1287
+ which carries the participation and the terminal payment discount `DF(T_pay) / DF(T)`, and its
1288
+ delta the same factors; a touch product's `calculate_greeks` there agrees with its `price`; an
1289
+ expired knock-in prices. `EuropeanPDESolver`'s session outputs and `AmericanPDESolver`'s
1290
+ `calculate_greeks` and session outputs at expiry carry their `price`'s payment discount
1291
+ (Fixed).
1292
+ - `DoubleBarrierOptionAnalyticalEngine` and `DoubleSharkfinOptionAnalyticalEngine` raise
1293
+ `NumericalError` on an input whose no-touch probability is not resolved to `Tolerance.ZERO`.
1294
+ On the double barrier that takes a vol below 1e-4 and a forward carried onto a barrier; inside
1295
+ the market objects' limits nothing with a vol of 1e-4 or more is refused, and the sharkfin's
1296
+ floor is 1e-3.
1297
+ - A prepared session asked for more than `PV` with a lifecycle state: the facade's values on an
1298
+ engine that supports a state, `CapabilityError` on one that does not (Fixed).
1299
+ - **The knock-in-side far-field row** under discretely observed knock-in, while a knock-in
1300
+ observation remains: every European-knock-in Snowball, Phoenix and KO-reset price, flat,
1301
+ local-vol and 2D (Fixed). Under monthly or daily knock-in it moves at round-off.
1302
+ - Nodal coefficient sets never collapse to the scalar stencil: a one-step local-vol solve no
1303
+ longer returns the flat-vol price (5.676243 exactly). Bitwise on every byte-book row.
1304
+ - Sessions and the registry: `EquityLVPDESessionAdapter` is grid-capable (the artefact-chain
1305
+ `prepare` moved up from the local-vol autocallable adapter, bitwise for the local-vol Snowball
1306
+ and Phoenix). `LocalVolPDESolver`, `LocalVolBarrierPDESolver` and `LocalVolDCNPDEEngine`
1307
+ register on it, `DCNPDEEngine` on `EquityPDE1DSessionAdapter`. A prepared price equals the
1308
+ direct one bit for bit for the four, and a `PV + GRID` session's rows equal the public curve.
1309
+ `execution/inventory.py` and `docs/execution/capability-matrix.md` list the four as
1310
+ prepared-capable.
1311
+ - `ROUTE_RULES` keeps the 2D row only. Its refusal now ends "These are the 2D route's limits; no
1312
+ spec is committed to moving this route onto the shared core".
1313
+ - Goldens: nine replay frames moved, all one Snowball with discretely observed knock-in in the
1314
+ scalar-BSM and local-vol books on its one not-knocked-in day (2024-01-02): price −3.18e-5 /
1315
+ −3.28e-5, and every later row's P&L by the same offset. Every `book_*` frame is byte-identical
1316
+ and no execution golden moved (`test/replay_golden/README.md`, the 2026-10-06 section).
1317
+ - Examples, re-run against the 0.9.0 tree: `dcn_gate_report_demo` DCN-A PDE −93,294.8 →
1318
+ −93,291.5 and DCN-B −150,768.0 → −150,579.8 (|dPV| against Monte Carlo 115.6 → 112.3 and
1319
+ 277.0 → 88.7); `vol_models_demo` local-vol PDE 8.8317 → 8.8275, Dupire market-IV vega 38.6555
1320
+ → 38.7113; `bucketed_greeks_consolidated_api_demo` Dupire market-IV parallel 0.32127 → 0.32395
1321
+ and `strike_column[2]` 0.16597 → 0.20443; `mo_volmodels/07_barrier_exotic` local-vol PDE 23.402
1322
+ → 23.338 (gap to Monte Carlo 1.7 % → 1.4 %); `mo_volmodels/09_delta_hedging` local-vol delta0
1323
+ 0.3736 → 0.3733, gamma0 8.1e-5 → 2.7e-4. `mo_volmodels/03_dupire_localvol`'s overall LV RMSE
1324
+ goes 4.519 → 4.872 vol-points, which is not a regression: against the converged price of the
1325
+ same Dupire surface the core's 300 × 150 solve errs 0.017 rms (0.043 max) and the kernel's
1326
+ 0.57 rms (2.05 max), so the kernel's discretization error partly cancelled Dupire's fit error.
1327
+ `mo_volmodels/11c_grid_preflight.py` binds on the solver's `grid_binder`.
1328
+
1329
+ ### Removed
1330
+ | Removed | Replacement |
1331
+ |---|---|
1332
+ | `GridLayerMixin` (and its export from `pde.grid`) | `BasePDESolver` |
1333
+ | `LV_UNIFORM_ACCURACY_PROFILES`, `DCN_ACCURACY_PROFILES`, `resolve_config(profiles=)`, `GridBinder(profiles=)` | `ACCURACY_PROFILES` |
1334
+ | `DAMPING_DEFAULTS["local-vol"]`, `DAMPING_DEFAULTS["DCN"]` | `DAMPING_DEFAULTS["core"]` |
1335
+ | the `"local-vol vanilla"`, `"local-vol barrier"` and `"DCN"` rows of `ROUTE_RULES` | none: the fields are honoured |
1336
+ | `DCNPDEEngine.price_detailed(layout=)`; the constructor's `points >= 201` check | `PDEParams(grid=…)`; the shared presets |
1337
+ | `dcn_pde_solver._sinh_grid`, `_operator_coeffs`, `_theta_step`; `LocalVolDCNPDEEngine._step_vol` and its `1e-8` floor | the core march; the mixin's midpoint local-vol rows |
1338
+ | `price_barrier_lv_pde`, `_barrier_boundary_value`, `_align_discrete_barrier_midcell`, `_solve_ko_lv` (the barrier half of `quantark.volmodels.localvol.pde_kernel`) | `LocalVolBarrierPDESolver`; the functions live on in `test/pde_routes/lv_barrier_kernel.py` as the test oracle |
1339
+ | `quantark.volmodels.heston.pde_kernel._deterministic_barrier_price`, `quantark.volmodels.slv.slv_pde_kernel._deterministic_slv_barrier` | the engines' deterministic limit on the core (`DeterministicVarianceLocalVol` on `LocalVolBarrierPDESolver`) |
1340
+ | `DCNLocalVolPDEAdapter`, `_dcn_pde_adapter` | `EquityLVPDESessionAdapter` |
1341
+ | the `PricingError` on EXPIRY monitoring in `BarrierPDESolver` | EXPIRY monitoring (Added) |
1342
+ | `DoubleBarrierOptionAnalyticalEngine._prob_inside_at_expiry` | `analytical/double_no_touch.py` |
1343
+ | `DoubleSharkfinOptionAnalyticalEngine(max_terms=…)`, its `DEFAULT_MAX_TERMS`, `_survival_probability_continuous`, `_weighted_sine_integral` | `analytical/double_no_touch.py`; there is no term count to set |
1344
+
1345
+ ### Fixed
1346
+ - **The contract multiplier on the European, barrier and double-barrier PDE solvers.** Their
1347
+ value at `contract_multiplier` 10 was their value at 1 (ratio 1 in price, delta and gamma),
1348
+ where the analytic engines, the kernel local-vol routes and `AmericanPDESolver` scale by 10. An
1349
+ expired product did scale, so the route disagreed with itself, and a knock-in's part products
1350
+ were built without the multiplier. The payoff, event and rebate cash, the Dirichlet rows, the
1351
+ hit outcomes and the knock-in's parts now carry it, `(participation × option + rebate) ×
1352
+ multiplier`. Multiplier 1 is bit-identical.
1353
+ - **The valuation-date hit test under discrete monitoring.** A spot beyond a discretely
1354
+ monitored barrier with no observation due returned the rebate or the vanilla; it is now solved
1355
+ from its spot. Error against the exact discrete recursion: monthly up-and-out call, rebate 5,
1356
+ spot 135 / 131, −0.202 / −0.346 → +5.3e-5 / +8.3e-5; observed only in months 7 to 12, −1.08 →
1357
+ +1.2e-4; monthly down-and-out put 85, rebate 3, spot 80, +3.2e-2 → −2.0e-5; monthly up-and-in
1358
+ call at 135 / down-and-in put at 80, +0.596 / +9.8e-2 → −1.7e-5 / −1.9e-5; monthly double
1359
+ knock-out 80 / 130, rebate 5, spot 135, −8.6e-2 → +5.8e-6; monthly one-touch paid at expiry,
1360
+ spot 135, +7.9e-2 → −3.5e-6; an `ACCUMULATE` schedule paying 5 monthly at spot 135 (closed
1361
+ form 72.55), −67.7 → −1.1e-4. The touch solvers move by 0.08 (monthly) to 3.7 (semiannual). The
1362
+ double barrier's `calculate_greeks` at a continuous hit took the rebate undiscounted (5.000000
1363
+ for 4.962640 under a quarter-year lag at 3 %); it now takes `price`'s value.
1364
+ - **The knock-in rebate.** The knock-in composite built its knock-out leg with rebate 0 and
1365
+ dropped the rebate. On a rebate of 5 the single barrier was off by −3.747 (continuous up-and-in:
1366
+ the rebate-free price), −2.588 (continuous down-and-in) and −4.852 (monthly: the whole `R ×
1367
+ DF`), the double barrier (corridor 80 / 130) by −2.2205 / −2.2206 (call / put). A knock-in is now
1368
+ `participation × vanilla + R × DF(0, T_pay) − leg(R)`: +9e-5 to +4.9e-4 on 8 single-barrier
1369
+ rebate cells, the rebate-free cells' own error, and +2.5e-4 / +1.2e-4 on the double barrier. A
1370
+ knocked-in product forfeits the rebate; `R = 0` is bit-identical.
1371
+ - **A knock-in's session grid and spot curve, and a knock-out's rows at hit levels.** A knock-in
1372
+ was marched as it stands under `SESSION_OUTPUTS`: on a continuous up-and-in call 130 the public
1373
+ curve was off by −4.19 at the money and −51.7 at 150, and a session's `PV + GRID` returned
1374
+ 2.85597 for 6.93002. The rows are now the composition of the parts, within 5.2e-4 in price,
1375
+ 6.6e-5 in delta and 7.5e-5 in gamma of the closed forms and the exact recursion. A knock-out's
1376
+ or touch product's row at a hit level carried the edge node's value and its one-sided
1377
+ gradients; it is now the hit outcome with delta and gamma 0 (from −0.150 on an up-and-out call
1378
+ with no rebate, −0.011 with a rebate of 5, +0.028 on a one-touch), and the double knock-out's
1379
+ price there goes 4.85223 → 5.00000, the facade's value. A product decided at the base spot
1380
+ returned a grid although the facade's hit test never ran; it now raises `CapabilityError` for a
1381
+ session grid, and the public curve returns `reprice` rows.
1382
+ - **The analytic double-barrier engine's rebate terms and its EXPIRY branch outside the
1383
+ corridor.** The knock-out added `R × DF` on every path and the knock-in used the probability of
1384
+ ending inside the corridor. Corridor 80 / 130, strike 100, one year, rebate 5: continuous
1385
+ knock-out +2.221 / +1.533 / +1.125 (spots 100 / 90 / 120) → at most 4e-15, knock-in +1.309 /
1386
+ +1.629 / +1.859 → at most 5e-15; monthly knock-out +1.80 to +2.95 → +0.017 to +0.093 and
1387
+ knock-in +0.90 to +1.53 → −0.017 to −0.093, the barrier shift's own error. Under EXPIRY a spot
1388
+ outside the corridor returned the rebate or the vanilla, −3.350 to +3.497 on eight cells; the
1389
+ closed form now applies from any spot, at most 1.1e-14.
1390
+ - **A record on the valuation date.** The march wrote the valuation-date event into the nodes,
1391
+ and the facade tested the product's own barrier. On an up-and-out (barrier 130, rebate 5) with a
1392
+ record at 120 paying 7 (worth 6.947696) the spots from 120 outward returned 5.00 for 6.95, and
1393
+ just inside the record's level the price was off by −3.7e-2 / −5.2e-2 (delta −0.27). The
1394
+ decision now carries the record's level, cash, payment time and operation and is folded at the
1395
+ spot onto the continuation: exact where it fires, +5e-6 / +1.2e-4 just inside. A value read
1396
+ next to a record crossed the jump, up to +2.52 in price and +13.3 in delta on an up-and-in call
1397
+ 130 at 129.9 to 129.99; now within 2.0e-4 and 8e-6. On 168 cells (single and double knock-out,
1398
+ both one-touches and both no-touches, lags 0 and 0.25, flat and kinked curves) a fired record
1399
+ is its cash to the last bit and the rest is within 2.8e-4 in price and 1.0e-5 in delta of the
1400
+ term recursion, where the old values were off by −1.2 to −3.8 at the record's lower level, +1.4
1401
+ to +4.5 just inside its upper level and −1.7 to −2.0 beyond the product's barrier. Under
1402
+ `ACCUMULATE` at and beyond the level: −37.6 to −43.0 → within 1.4e-4.
1403
+ - **The barrier family at maturity.** At `tau = 0` the expired path returned `product.get_payoff`:
1404
+ no payment discount, no participation, and for a touch product a number that ignored the touch;
1405
+ `calculate_greeks` disagreed with `price`, and an expired knock-in raised. A value is now the
1406
+ terminal payoff × participation × `DF(T_pay) / DF(T)`, then the decision, under every
1407
+ operation. A knocked-out product's `calculate_greeks` returns the cash, not the payoff (35 →
1408
+ 5); an expired knock-in prices and pays its rebate when untriggered (`calculate_greeks` 25 →
1409
+ 5) and takes a bump context; a maturity record's own level and cash apply (25 → 7); a schedule with no maturity record
1410
+ does not test the barrier there (5 → 35). With the terminal payment a quarter-year after
1411
+ maturity at 3 %, a surviving knock-out, an untouched no-touch and a triggered or untriggered
1412
+ knock-in take the discount (25.000000 → 24.813201, delta 1 → 0.992528), and the value no longer
1413
+ jumps by 0.187 at the last instant. Participation 0.5 applies (25.000000 → 12.406601). A touch
1414
+ product's `calculate_greeks` there agrees with its `price`: a touched one-touch reports its cash
1415
+ (0 → 5), a touched no-touch nothing (5 → 0). `AmericanPDESolver.calculate_greeks` and session
1416
+ outputs at expiry under the same lag (25.000000 → 24.813201, delta 1 → 0.992528) and
1417
+ `EuropeanPDESolver`'s session outputs (25.000000 → 24.813201) take their `price`'s discount. An
1418
+ expired product with no lag, participation 1 and multiplier 1 is bit-identical.
1419
+ - **The lifecycle state of a `PV + GRID` session on a European.** The session passed the state to
1420
+ `price` on the `PV` path and to nothing on the other. A European call with one realized, unpaid
1421
+ cashflow of 7 due in 91 days returned the live 9.601810 under `PV + GRID` whether terminated
1422
+ (price 6.947839) or alive with the receivable (16.549649). Now a terminated claim's grid fails
1423
+ closed (`CapabilityError`), and a live one returns 16.549649 with 6.95 in each row. The barrier
1424
+ and Snowball engines, which do not support a state, returned 2.671787 and 97.157139; they now
1425
+ raise `CapabilityError`, as for `PV`. A request with no state is bit-identical.
1426
+ - **The double sharkfin's no-touch probability.** The engine's 80-term eigenfunction series had
1427
+ no convergence control: corridor 80 / 130, spot 129.9, vol 1 %, one day returned 0.248354 for
1428
+ 0.858487, putting a rebate of 5 off by 3.050664, and over 637 cells its worst error was 1.0 at
1429
+ dimensionless times up to 1e-3 (two days at vol 20 % on that corridor). It now reads
1430
+ `double_no_touch` at its three call sites. Its continuous paid-at-hit factor, which was off by
1431
+ 9e-8 to 6.3e-6, is within 1.3e-9 at spots 85 and 100 and 6.2e-8 at 127 (one year, vol 22 %).
1432
+ The price moves by up to 4.2e-6 (vol 22 %) and 3.2e-5 (vol 8 %) on a rebate of 5, and by up to
1433
+ a whole rebate where the series was unresolved.
1434
+ - **The Heston and SLV barrier solvers' vol-of-vol → 0 limit.** Below `_SIGMA_MIN` (1e-4)
1435
+ `HestonBarrierPDESolver` and `HestonSLVBarrierPDESolver` used the 1D local-vol kernel at a
1436
+ constant effective vol `sqrt(average variance)` (for SLV, with a 15 × 5 tabulation of the
1437
+ leverage). That is exact only for Europeans; for a barrier it was a model error. They now march
1438
+ the exact deterministic-variance local vol `L(S, t) sqrt(v(t))`, `v(t) = theta + (v0 − theta)
1439
+ e^(−kappa t)` (`DeterministicVarianceLocalVol`), on `LocalVolBarrierPDESolver` at its standard
1440
+ preset, after the 2D solvers' own refusals. Measured at the standard preset against a
1441
+ 3,201-point, 40 steps-per-day reference: with flat variance against the Black–Scholes barrier
1442
+ closed form, core 1.84e-4 (continuous up-and-out call 130) / 3.17e-4 (down-and-in put 80),
1443
+ old 3.06e-4 / 4.58e-3; monthly up-and-out 125, core 1.27e-4, old 2.08e-3; with decaying
1444
+ variance (v0 0.09, theta 0.04, kappa 1.5) the old route was 7.0e-3 to 3.25e-2 from the exact
1445
+ limit, the core within 2.0e-4; SLV with a skew leverage, old 1.42e-2 to 5.23e-2, core within
1446
+ 1.9e-4. Heston and SLV barrier prices at a vol-of-vol below 1e-4 move by these amounts. The
1447
+ grid spans the model's vol, the larger of the environment's strike vol and the largest
1448
+ `sqrt(v(t))` to maturity (`DeterministicVarianceLocalVol.domain_vol`), so an environment
1449
+ quoting less than the model does not narrow it. The
1450
+ low-level `price_barrier_heston_pde` / `price_barrier_slv_pde` now raise `ValidationError`
1451
+ below `_SIGMA_MIN`, naming the engine.
1452
+ - **The knock-in-side far-field row.** The not-knocked-in lower row of a standard product was
1453
+ "principal plus rebate to maturity", as if the far edge never knocked in; with one knock-in
1454
+ date at maturity nothing resets it. Under discretely observed knock-in, European included, that
1455
+ row now takes the knocked-in row (the upper row for a reverse product) while a knock-in
1456
+ observation remains at or after the row's time; after the last one, on an exhausted schedule,
1457
+ or for a KO-reset after its first schedule, it is the old row. Error against the exact recursion
1458
+ (QUAD for the reverse product): Snowball with European knock-in, spot 100, standard / high,
1459
+ +4.37e-3 / +4.25e-3 → +4.2e-5 / −4.9e-5; spot 86, +4.73e-3 / +4.75e-3 → −1.6e-4 / −8.9e-5; vol
1460
+ 35 %, +5.03e-3 / +5.10e-3 → −2.0e-4 / −4.4e-5; Phoenix with knock-in at maturity only, spot 100
1461
+ / 80, +3.3e-3 / +4.0e-3 → −1.7e-4 / −1.2e-4; reverse Snowball, spots 100 / 114 / 98, +2.96e-3 /
1462
+ +3.88e-3 / +1.98e-3 → −1.8e-4 / −1.2e-4 / −2.3e-5; Snowball under `bounds=(60, None)` / `(70,
1463
+ None)`, +1.255 / +4.295 → −1.2e-3 / −0.129. On the byte book's flat market against QUAD at
1464
+ 32,001 points: Snowball price +4.17e-3 → +3.0e-5 (exact recursion +4.17e-3 → +2.8e-5), Phoenix
1465
+ with knock-in at maturity +3.03e-3 → −2.2e-4, reverse Snowball +7.61e-3 → −5.3e-4; bump vega
1466
+ +5.18e-3 → −2.2e-5, +4.08e-3 → −7.5e-6, +8.90e-3 → −1.2e-5. The reconciliation identity stays
1467
+ at round-off, the knock-in probabilities do not move, and the maturity leg's error falls from
1468
+ +4.70e-3 to +3.7e-4.
1469
+ - **EXPIRY monitoring on the double-barrier and touch PDE solvers.** `DoubleBarrierPDESolver`,
1470
+ `OneTouchPDESolver` and `DoubleOneTouchPDESolver` tested the barrier during the march under
1471
+ `ObservationType.EXPIRY`, close to continuous monitoring: at spot 100, vol 20 %, r 3 %, q 1 %,
1472
+ one year, 0.9.0 priced a 80/130 double knock-out call at 3.144 (exact 4.848), an up one-touch
1473
+ at 120 paying 10 at 3.428 (exact 1.756) and a 85/120 double one-touch at 7.237 (exact 3.777).
1474
+ A barrier observed only at maturity makes the value a function of the terminal spot alone, so
1475
+ before maturity these three solvers now price it by static replication: European vanillas and
1476
+ cash-or-nothing digitals on the product's own expiry and settlement, priced on
1477
+ `BlackScholesEngine` and `DigitalOptionAnalyticalEngine` (a knock-out is the vanilla inside
1478
+ the corridor plus the rebate outside it; a knock-in the vanilla outside plus the rebate inside;
1479
+ a touch product its digitals). Against quadrature of the terminal value the price is within
1480
+ 1e-9 relative, with and without a payment lag, and knock-out plus knock-in equals the vanilla
1481
+ plus the rebate on a flat and a smile market. Each leg reads its own strike's vol, so under a
1482
+ smile the value is the smile's static replication, not the march's single strike-selected vol.
1483
+ No PDE grid is requested or bound for such a product: bump contexts return the engine itself,
1484
+ a session prepares no artefact, and a session `GRID` must name its levels
1485
+ (`grid_spot_levels`; without them `CapabilityError`, as there are no nodes). Greeks follow
1486
+ `GreeksCalculator`: the new hook `BaseEngine.static_replication` exposes the legs, and
1487
+ `GreeksCalculator.calculate` returns the weighted sum of its own greeks of each leg under the
1488
+ caller's method, request and bump configuration (closed forms for the vanillas under `auto` /
1489
+ `analytical`, bumps for the digitals, its own refusals per leg). The solver's
1490
+ `calculate_greeks` and the session rows (`calculation_mode` `"static_replication"`) are
1491
+ `GreeksCalculator(params=solver.params)` on the legs: delta within 1.27e-3 and gamma within
1492
+ 3.6e-5 of the exact derivatives (relative, 80 cells). The single barrier keeps its EXPIRY
1493
+ far-field row; at maturity the terminal value applies as for every barrier product.
1494
+ - **`GreeksCalculator`'s closed forms under a terminal payment lag.** The analytic route
1495
+ (`method="auto"` / `"analytical"` on a European vanilla) ignored `settlement_convention`: at a
1496
+ quarter-year lag an at-the-money call returned price 96.0158, delta 5.7385, rho 4.7783 where
1497
+ `BlackScholesEngine.price` and the bumped route give 95.2983, 5.6950, 4.5049. The closed forms
1498
+ now take the lag as the engine prices it, `V = DF(T, T_pay) V_T`: price, delta, gamma, vega,
1499
+ dividend rho, theta (and its three-way split) and the extended closed forms scale by
1500
+ `DF(T, T_pay)`, and rho adds the payment's own rate sensitivity, `-(T_pay - T) V_T` (4.5044).
1501
+ At expiry the payoff is discounted over the lag, rho is `-lag V` and theta its accretion. A
1502
+ vanilla paid at expiry is bit-identical.
1503
+
1504
+ ### Breaking changes
1505
+ - `GridLayerMixin` and its export from `pde.grid` are removed; a solver subclasses
1506
+ `BasePDESolver`.
1507
+ - `LV_UNIFORM_ACCURACY_PROFILES` and `DCN_ACCURACY_PROFILES` are removed, and the `profiles=`
1508
+ keyword is removed from `resolve_config` and from `GridBinder`: every 1D route takes the shared
1509
+ `ACCURACY_PROFILES`.
1510
+ - `DAMPING_DEFAULTS["local-vol"]` and `DAMPING_DEFAULTS["DCN"]` are removed; the routes use
1511
+ `DAMPING_DEFAULTS["core"]`.
1512
+ - `DCNPDEEngine.price_detailed` no longer takes `layout=` (passing it raises `ValidationError`
1513
+ naming `PDEParams(grid=GridConfig(...))`, from `REMOVED_DCN_NAMES`), and the constructor's
1514
+ `points >= 201` check is gone. `DCNPDEResult.num_time_steps` is the delivered step count. A 2,401-point DCN
1515
+ grid needs `GridConfig(max_points=2401)`.
1516
+ - `LocalVolPDESolver.calculate_greeks`: `delta` and `gamma` are pointwise, not 1 % bumps.
1517
+ - The barrier half of the 1D local-vol kernel (`price_barrier_lv_pde` and its helpers) leaves
1518
+ the library for `test/pde_routes/lv_barrier_kernel.py`.
1519
+ - New `ValidationError`s: a knock-in whose schedule records carry a payoff different from its
1520
+ rebate, or whose schedule aggregates other than `STOP_FIRST_HIT`; `price_barrier_heston_pde` /
1521
+ `price_barrier_slv_pde` below `_SIGMA_MIN` (the 2D barrier kernels refuse the vol-of-vol → 0
1522
+ limit and name the engine that prices it).
1523
+ - New `CapabilityError`s: a session grid for a barrier-family product decided at the base spot;
1524
+ a stateful rich-output session request (`PV + GRID`, event statistics) to an engine without
1525
+ lifecycle support; a session grid for a terminated European.
1526
+ - `DoubleSharkfinOptionAnalyticalEngine`: `max_terms` is removed and `quad_points` is
1527
+ keyword-only, so a second positional argument written for `max_terms` raises.
1528
+ - New `NumericalError` from `double_no_touch`, and so from `DoubleBarrierOptionAnalyticalEngine`
1529
+ and `DoubleSharkfinOptionAnalyticalEngine`, on an input whose no-touch probability is not
1530
+ resolved to `Tolerance.ZERO`.
1531
+
1532
+ ### Per-stage deltas (PDE byte book)
1533
+ Stage 1, the barrier family:
1534
+ - (h) analytic engines: 510 rows, 0 diffs (no PDE file changed).
1535
+ - (e) multiplier: 510 rows bit-identical (every row has multiplier 1); 5 added (`3c|mult10|*`).
1536
+ - (f) valuation instant: the record-level event builders bit-identical (515 rows); then exactly
1537
+ the eight `3a|farfield|{di_put_85,do_call_85}|*|80|*` rows move, equal to the evidence's
1538
+ `r5_book_hit_rule.json` bit for bit, up to 0.5762 in price, 0.1878 in grid delta and 4.306e-2
1539
+ in grid gamma (`3a|farfield|do_call_85|kinked|80|lag0`); 21 added.
1540
+ - (f) maturity: 536 rows bit-identical, both expired barrier rows included; 102 added.
1541
+ - (b) EXPIRY and the far-field row: discrete-barrier rows at round-off (bump rho 5.3e-13, bump
1542
+ vega 4.1e-13); `3c|vdec|uo_late|beyond` 3.39e-5 in price, toward the exact recursion (+6.1e-5
1543
+ → +2.7e-5 off), and `3c|vrec|uo|119.99` (+8.6e-5 → +8.0e-5); the `3a|farfield` rows
1544
+ bit-identical; 5 added.
1545
+ - (g) session grid: 643 rows bit-identical; 41 added.
1546
+ - (g) lifecycle on rich outputs: 684 rows bit-identical; 3 added.
1547
+ - (a) knock-in rebate: 687 rows bit-identical; 16 added.
1548
+ - (c) per-part bump layouts: eight `knock_in|*|bump` rows go from `PricingError` to values;
1549
+ `knock_in|down_in_put|knocked_in|bump` within 6.1e-5; `3a|base6|di_put|{default,v070}` (a
1550
+ monthly down-and-in put) in bump Greeks only, gamma 1.82e-4, delta 1.63e-5, vega 4.24e-6, rho
1551
+ 9.80e-7, theta 1.07e-7 (the evidence's both-frozen arm); 1 added.
1552
+ - (d) nodal sets: 704 rows, 0 diffs.
1553
+
1554
+ Stage 2, the routes:
1555
+ - (0) `LocalVolSurfaceMixin`: 704 rows, 0 diffs.
1556
+ - (a) local-vol vanilla: `lv_vanilla|{default,600x200}`, price up to 2.31e-3, grid gamma 2.08e-3,
1557
+ grid delta 8.67e-5; against a fine-grid core ladder the price error goes 2.57e-3 → 2.60e-4 /
1558
+ 1.14e-3 → 2.79e-4 and delta 8.65e-5 → 2.5e-7 / 5.2e-5 → 5.8e-7; 3 added.
1559
+ - (b) local-vol barrier: six `lv_barrier_*` rows, price up to 2.01e-3
1560
+ (`lv_barrier_discrete|default`). Against the oracle's Richardson references five move toward
1561
+ (discrete default 1.75e-3 → 2.5e-4) and `lv_barrier_cont|600x200` away by 1.8e-5 (6.2e-5 →
1562
+ 8.0e-5). The local-vol autocallables are bit-identical; 2 added.
1563
+ - (c) DCN: `dcn|default` and `dcn|601`, pv up to 336.1 (`dcn|601`, 3.4 bp of 1e6). Against the
1564
+ exact recursion `dcn|601` 3.51 → 0.15 bp and `dcn|default` 0.070 → 0.102 bp (an 801-point plan
1565
+ → the 400-point preset; away by 0.03 bp, inside its 1 bp bound); `lv_dcn` bit-identical; 3
1566
+ added.
1567
+ - (d) local-vol DCN: `lv_dcn|default` and `lv_dcn|601`, pv up to 148.6 (`lv_dcn|601`). Against
1568
+ the exact recursion on the rows' constant 22 % surface 1.21 → 0.086 bp and 1.52 → 0.038 bp; 1
1569
+ added.
1570
+ - (e) deletions: no value moves; the two declared-error rows
1571
+ `3b|{heston,slv}_snowball|half_step|stats` change text; 8 European-knock-in rows added
1572
+ (`3c|eki|*`).
1573
+
1574
+ Stage 3, the knock-in-side row: 721 rows, 0 unexpected diffs. The 15 rows of the evidence's r4
1575
+ list equal `r4_book_gated.json` bit for bit, at most 1.11e-6 (`intraday_snowball`). The
1576
+ `3c|eki` rows move in price by −4.14e-3 (Snowball), −3.25e-3 (Phoenix) and −8.14e-3 (reverse
1577
+ Snowball), in bump vega by up to 8.91e-3, and the KO-reset by 6.8e-7 (a pre-maturity
1578
+ statistic); each move was measured toward the independent reference (Fixed). The
1579
+ `3c|eki|phoenix` row was rebuilt as a knock-in-at-maturity Phoenix; it had been the monthly one.
1580
+
1581
+ ### Certification
1582
+ The knock-in-side row moves 31 values in 10 certified cells, each equal bit for bit to its
1583
+ pre-measured value (`r4_anchors_gated.json`); every other anchored value is unchanged and every
1584
+ decision is unchanged. The six studies are amended and banked under
1585
+ `docs/modelvalidation/certificates/{snowball-flat-bsm,phoenix-flat-bsm,ko-reset-flat-bsm,snowball-localvol-1d,adi2d-snowball-greeks,snowball-intraday-daily-ki-bsm}/2026-10-06/`,
1586
+ their parents retired in place. The four schema-1 studies were amended with `--rerun-candidate`
1587
+ on their PDE candidate; `adi2d-snowball-greeks` through the external-benchmark path (24 cells
1588
+ carried bit for bit, 4 translated); the intraday study's reference re-ran value-identical.
1589
+
1590
+ | Study | Values / cells | Cells | Largest move |
1591
+ |---|---|---|---|
1592
+ | snowball-flat-bsm | 3 / 1 | `european_ki` | 4.33e-3 (pv) |
1593
+ | snowball-localvol-1d | 12 / 4 | `calm_discrete_ki`, `calm_european_ki`, `crash_discrete_ki`, `crash_european_ki` | 0.165 contracts (`calm_european_ki` pv) |
1594
+ | ko-reset-flat-bsm | 3 / 1 | `european_ki` | 5.4e-7 |
1595
+ | snowball-intraday-daily-ki-bsm | 6 / 1 | `near_ko_on_ko_day_1s` | 5.4e-10 |
1596
+ | phoenix-flat-bsm | 3 / 1 | `ki_stepdown` | 1.9e-15 |
1597
+ | adi2d-snowball-greeks | 4 / 2 | `heston_pde\|near_expiry`, `heston_slv_pde\|near_expiry` (delta, gamma) | 1.8e-15 |
1598
+
1599
+ The local-vol European knock-in pv errors against the certificate's reference go +0.165 →
1600
+ −0.0002 (calm) and +0.091 → −0.034 (crash) contracts; the flat `european_ki` pv goes from
1601
+ +4.4e-3 to +4e-5 against the exact value. The adi2d moves are translated by the harness's own
1602
+ interval arithmetic, shifting its intervals by at most 9.8e-14 contracts. Both `amend` changes
1603
+ are listed under Added.
1604
+
1605
+ ### Performance
1606
+ Timing (`test/pde_bitwise/timing.py`, 0.9.0 and 0.10.0 interleaved, 15 repetitions per arm,
1607
+ ARM64 macOS; cold medians in ms). A case whose 15 cold times spread by more than 10 % of the
1608
+ median on either side is inconclusive, never a pass. The four statistics cases were
1609
+ re-measured one family per process: their joint run spread by 24 to 81 %.
1610
+
1611
+ The untouched routes, gated at 1.05×: American 1.007×, barrier 1.013×, Snowball 1.007×,
1612
+ Phoenix 1.018×, KO-reset 1.010×, local-vol Snowball 1.004×, Snowball statistics 1.015×,
1613
+ Phoenix statistics 0.996×, KO-reset statistics 1.006×, local-vol Snowball statistics 1.006×:
1614
+ none fails. The flat European is **inconclusive**: three runs gave 1.008×, 0.983× and 1.007×
1615
+ with spreads of 10.8 to 28.5 % on a 23 ms single-shot case. Ungated: the memory and EXPIRY
1616
+ Phoenix statistics, 1.005× and 1.001×.
1617
+
1618
+ The four routes moved onto the core are slower by design (the shared presets and the core's
1619
+ time density, decisions 3 and 4); declared, not gated:
1620
+
1621
+ | Route (fast / standard / high) | `price` 0.9.0 | `price` 0.10.0 | `calculate_greeks` 0.9.0 | `calculate_greeks` 0.10.0 |
1622
+ |---|---|---|---|---|
1623
+ | Local-vol vanilla | 8.0 / 8.9 / 21.3 | 65.6 / 72.4 / 172 | 47.5 / 52.3 / 128 | 254 / 283 / 679 |
1624
+ | Local-vol barrier, continuous | 9.4 / 10.3 / 24.4 | 71.1 / 69.0 / 166 | 28.0 / 30.7 / 73.3 | 70.4 / 68.2 / 167 |
1625
+ | Local-vol barrier, daily | 12.6 / 13.7 / 31.0 | 112 / 122 / 288 | 37.8 / 41.0 / 92.6 | 112 / 123 / 239 |
1626
+ | DCN | 30.6 / 39.4 / 42.1 | 90.5 / 103 / 219 | 76.5 / 98.0 / 122 | 90.5 / 103 / 218 |
1627
+ | Local-vol DCN | 44.0 / 54.7 / 61.8 | 234 / 260 / 609 | 117 / 145 / 182 | 232 / 259 / 571 |
1628
+
1629
+ The double-barrier and touch products under EXPIRY build no grid (static replication).
1630
+
1631
+ ### Known issues
1632
+ - The analytic engines short-circuit a spot beyond a discretely monitored barrier although no
1633
+ observation is due: the double barrier returns the rebate (−0.086 on a monthly knock-out at
1634
+ spot 135), the single barrier the rebate or the vanilla (−0.202, +0.596, +0.032 on three
1635
+ monthly products); the double-sharkfin engine has the same test (read, not measured). At
1636
+ maturity the single-barrier analytic engine returns 0 for an untriggered knock-in's rebate,
1637
+ tests a schedule with no maturity record by the spot (5 for 35) and ignores a maturity
1638
+ record's own level (25 for 7). The PDE is right in all of these.
1639
+ - Under `ACCUMULATE` a no-touch's interior records add 0, so only its maturity record ends it: a
1640
+ year out, records at 0.5 and 1, the PDE gives 4.304787 = `5 DF P[S_1 < 130]`, against 4.227537
1641
+ under first hit. Whether the mode has a meaning on a no-touch is a product question.
1642
+ - `time_shift` drops a record that lands on the valuation instant, and when that empties the
1643
+ schedule it returns before shortening the maturity, so the product is not aged at all; a dated
1644
+ product valued on its exercise date raises.
1645
+ - The double-barrier engine's Ikeda–Kunitomo option leg is fixed at 21 images: where the true
1646
+ value is below 1e-13 it returns 1.6e-5 (95 / 105, vol 30 %, 3 years) to 4.1e-4 (98 / 102, vol
1647
+ 50 %, 1 year). It has no error control.
1648
+ - The double sharkfin's continuous paid-at-hit leg integrates the survival curve with 48
1649
+ Gauss–Legendre nodes; next to a barrier (spot 129.9 on 80 / 130) the factor is off by 4.3e-7 to
1650
+ 1.9e-6 on the exact probability.
1651
+ - An explicit `GridConfig(bounds=...)` close to a barrier mis-states the far-field row: the
1652
+ autocallable row by −0.09 to −0.13 (−0.13 at 15 points below the knock-in barrier, against
1653
+ +4.3 before the knock-in-side row), the single-barrier row by 0.1 to 3.3, and the knocked-in
1654
+ upper row by −0.73 to −1.74 under a narrow upper bound. The right row there is a knock-in or
1655
+ knock-out probability; keep an explicit bound well beyond the barrier.
1656
+
1657
+ ## [0.9.0] - 2026-10-04
1658
+
1659
+ PDE 1D event statistics (spec: `docs/superpowers/specs/2026-10-03-pde-1d-event-statistics-design.md`).
1660
+ The Snowball, Phoenix and KO-reset statistics (and their local-vol variants) march in the
1661
+ value's own groups: the value's boundary rows allocated per column, its θ rule, and the
1662
+ adapter's event stages. The maturity leg is a marched column, so on every native 1D
1663
+ route `pv = Σ knock-out cash + Σ coupon cash + maturity leg` to round-off and
1664
+ `reconciliation_error` is a real number. Every stage was checked against the 510-row PDE
1665
+ byte book with its declared movers. Prices move where a contract was mispriced: the
1666
+ Phoenix release rule, the contractual coupon periods, the Phoenix knocked out at valuation
1667
+ on a later observation, and the valuation-date decisions (a carried knock-in under
1668
+ `disable_ko_after_ki`; a carried-knock-in KO-reset, which raised before). No certificate
1669
+ identity moves.
1670
+
1671
+ ### Added
1672
+ - `AutocallableEventStats.reconciliation_error` is computed:
1673
+ `pv − Σ expected_discounted_cashflows`, round-off (≤ 1e-10) on native 1D routes.
1674
+ - `AutocallableEventStats.provenance: StatisticsProvenance(statistics_model, price_model)`,
1675
+ `EventDistribution.provenance`, `EventDistribution.determination_times` (per maturity
1676
+ outcome; defaults to the last event time, so existing distributions are unchanged), and
1677
+ `StatisticsRefused` (a `PricingError`).
1678
+ - Phoenix: `expected_discounted_coupon_cashflow` for INSTANT memory coupons and for
1679
+ EXPIRY coupons (per earning date, as QUAD V2). EXPIRY cash is also bucketed by payment
1680
+ event in the ledger, with `coupon_payment_is_path_dependent = True`.
1681
+ - `KOResetEventStats`: `expected_discounted_pre_maturity_cashflow` /
1682
+ `…_post_maturity_cashflow`, `pre_maturity_probability` / `post_maturity_probability`,
1683
+ `pre_maturity_time` / `post_maturity_time`, their payment times, `pre_ko_payment_times` /
1684
+ `post_ko_payment_times` and `post_ko_times_are_offsets`. The PDE and QUAD V2 fill the
1685
+ buckets; legacy QUAD and Monte Carlo leave them `None`.
1686
+ - `EventDistribution.from_autocallable_stats` accepts a `KOResetEventStats`.
1687
+ - `KOResetSnowballPDESolver.calculate_event_stats` is native, and `streams` is honoured as
1688
+ on the Snowball.
1689
+ - `PDEPlan.terminal["event_stats"]` can be `knocked_out_at_valuation`.
1690
+ - The 2D Heston / SLV solvers' `statistics="refuse" | "flat_vol_surrogate"` option.
1691
+ - `test/pde_statistics/`: an exact two-state reference for flat GBM, with its guards and
1692
+ a Monte Carlo qualifier, banked as JSON; a 32,001-point QUAD reference for KO-reset;
1693
+ the identity, column and stage tests.
1694
+ - `PhoenixOption.active_ko_source_indices(env)`; `AccrualConfig.first_period_start` (where the
1695
+ first remaining coupon period started, recorded when an ageing drops an observation).
1696
+
1697
+ ### Changed
1698
+ - **Statistics policy.** Boundary rows, θ and event stages are the value's. Snowball
1699
+ probabilities move by ≤ 7.3e-8 on the byte book; the coupon-barrier smoothing moves
1700
+ Phoenix ones by ≤ 1.8e-6.
1701
+ - **`expected_discounted_maturity_cashflow` is the marched leg**, not `pv − ΣKO cash`. It
1702
+ moves by the 0.8.0 residual (≤ 7.4e-6 on the byte book, 1.2e-4 on the study cases) and,
1703
+ on memory, EXPIRY and immediate-knock-out Phoenix, by the coupon cash it no longer holds.
1704
+ - **2D statistics refuse by default.** `HestonSnowballPDESolver`,
1705
+ `HestonSLVSnowballPDESolver` and the Phoenix pair raise `StatisticsRefused` from
1706
+ `calculate_event_stats` / `price_with_events` unless built with
1707
+ `statistics="flat_vol_surrogate"`. That option returns 0.8.0's flat-vol 1D statistics,
1708
+ now with the 2D route check, the residual (the model difference, 0.26 on the book's
1709
+ Heston Snowball) and the provenance. The replay's `event_stats_fallback="mc"` no longer
1710
+ masks a refusal.
1711
+ - **Phoenix release rule (decision 4).** A knock-out pays the memory arrears whatever
1712
+ the spot, plus the current coupon when its barrier is met, as QUAD V2 always did. This
1713
+ applies to the PDE value and statistics, the immediate-knock-out payoff,
1714
+ `decide_observations_at_valuation`, the lifecycle tracker and `PhoenixMCEngine`. A
1715
+ price moves only under memory with the coupon barrier above the knock-out barrier: on
1716
+ the study's dated product (coupon 105, knock-out 103) the PDE goes 97.811385 → 98.384223,
1717
+ against V2's 98.384358. Certified products are bit-identical.
1718
+ - **Valuation-date decisions (decision 15).** The family's own
1719
+ `decide_observations_at_valuation`, with the carried knock-in state, decides a
1720
+ valuation-date observation on every entry point. The spot-versus-barrier shortcut is
1721
+ gone. A carried knock-in with `disable_ko_after_ki` no longer knocks out at valuation:
1722
+ the dated case moves 1.019178 → −0.674, against Monte Carlo's −0.664. A
1723
+ carried-knock-in KO-reset knocks out on its post schedule.
1724
+ - `PhoenixOption.get_coupon_period_year_fractions` takes the pricing environment; a list
1725
+ or array argument raises `ValidationError` naming the 0.9.0 change. `accrual_factors` and
1726
+ a list coupon barrier are read by the observation's ORIGINAL schedule position, in the
1727
+ engines and in `decide_observations_at_valuation` (0.8.0 aligned them to the remaining
1728
+ records).
1729
+ - An aged tenor Phoenix (no `initial_date`, a per-annum coupon) pays its first remaining
1730
+ period from the last dropped observation (`AccrualConfig.first_period_start`). Where that
1731
+ observation carries no time the period is unknown and a per-annum coupon raises
1732
+ `ValidationError` naming `fixed_coupon_year_fraction` and `accrual_factors`. A theta clone
1733
+ that crosses an observation is ex-coupon: on a 12 % tenor Phoenix one day before an
1734
+ observation theta is about −0.98 (the coupon paid); 0.8.0's −0.017 came from an
1735
+ over-accrued next period.
1736
+ - `EventDistribution.from_autocallable_stats` raises `NotImplementedError` on a
1737
+ `KOResetEventStats` with `post_ko_times_are_offsets` (Monte Carlo under
1738
+ `PostKOScheduleMode.REBASED`) and `ValidationError` on one without its payment times.
1739
+ - The legacy `ki_probability` on KO-reset PDE statistics is "settles knocked in", as on
1740
+ every PDE and QUAD route (the 0.8.0 QUAD delegation reported "ever"). The two explicit
1741
+ fields are unambiguous.
1742
+
1743
+ ### Removed
1744
+ | Removed | Replacement |
1745
+ |---|---|
1746
+ | `STATISTICS_LEGACY`, `GroupPolicy.zero_slope_after_events`, `GroupPolicy.dt_as_python_float`, `BoundaryPolicy.CARRY` | the `VALUE` policy; a rolling group supplies its rows |
1747
+ | `StatisticsLegacy` and `core/statistics/legacy.py` | `core/statistics/group.py` and the families' groups |
1748
+ | the Snowball / Phoenix statistics hooks (`_n_extra_event_cols`, `_set_extra_event_indicators`, `_extract_extra_event_stats`, `_t0_extra_indicator_overrides`) | the column layouts of `core/statistics/columns.py`, the adapter's stages, the valuation-date rules |
1749
+ | the KO-reset solver's QUAD import and its `grid_points=501` delegation | native KO-reset statistics |
1750
+ | `reconciliation_error = 0.0` hard-coded on the three PDE paths | the computed residual |
1751
+ | the 2D solvers' silent inherited statistics | `statistics="flat_vol_surrogate"` |
1752
+ | `_is_knocked_out_at_valuation` on the price and statistics paths | the family's `decide_observations_at_valuation` |
1753
+ | `PhoenixOption.get_coupon_period_year_fractions(observation_times)` | `get_coupon_period_year_fractions(pricing_env)` |
1754
+
1755
+ ### Fixed
1756
+ - **`disable_ko_after_ki` statistics at maturity.** 0.8.0's Snowball statistics let
1757
+ knocked-in paths knock out on the final date. The last knock-out probability read
1758
+ 4.06e-2 instead of 2.26e-3 (continuous knock-in) and 2.42e-2 instead of 4.69e-3
1759
+ (discrete), and `ki_survive_knocked_in_probability` was short by the same mass. Prices
1760
+ were right. Now within 2.1e-5 / 2.6e-6 (knock-out) and 1.9e-4 / 2.0e-5 (`ki_survive`)
1761
+ of QUAD V2 (`test/pde_statistics/test_disable_ko_after_ki.py`). Anyone who used 0.8.0
1762
+ (or earlier) PDE statistics on a `disable_ko_after_ki` Snowball for knock-out timing,
1763
+ expected life or the knocked-in loss probability should re-run them.
1764
+ - **KO-reset statistics and conversion.** 0.8.0 ran a 501-point QUAD and folded
1765
+ `pde_pv − quad_pv` into the maturity leg. Pre-schedule knock-out probabilities were off
1766
+ by 3.8e-3 / 2.0e-3 / 1.4e-3 (spots 100 / 90 / 101) against a 32,001-point QUAD; native,
1767
+ they are within 1.3e-5 / 2.0e-5 / 6.9e-6, post-schedule within 3.8e-5, and the identity
1768
+ holds to 7e-14. The event distribution read only the pre schedule, carrying a maturity
1769
+ mass of 0.294 where 0.200 of the paths survive both. It now has both schedules as
1770
+ knock-outs and the two maturity outcomes at their own determination times.
1771
+ - **Memory Phoenix coupon cash.** INSTANT memory coupons had no coupon cash; it sat in the
1772
+ maturity leg. On the study's product the coupon cash went from not reported to
1773
+ 0.736235 (V2 0.736239) and the leg from −3.34829 to −4.084522 (V2 −4.084004); the identity holds to 9e-16.
1774
+ - **EXPIRY Phoenix coupon cash.** Deferred coupons are reported per earning date and
1775
+ bucketed at each termination's payment time, with the path-dependent flag (no cash
1776
+ leg reads the buckets yet; below).
1777
+ - **Knocked-out distribution.** `price_with_events` on a product knocked out at valuation
1778
+ returned `{MATURITY_NO_KO: 1.0}` at maturity, so a cash leg treated the note as alive.
1779
+ It now returns the knock-out at its settlement, the same as `calculate_event_stats`.
1780
+ - **Phoenix knock-out coupon.** On a Phoenix knocked out at valuation, the coupon paid with
1781
+ the knock-out (1.019178 on the byte book) was in the maturity leg; it is now coupon cash
1782
+ and the leg is 0, as QUAD V2. The price and the statistics took the FIRST period's coupon
1783
+ and barrier whatever the observation: on a dated Phoenix knocked out on its second
1784
+ observation the PDE paid 1.019178 where the contract pays 1.052055, and with a list
1785
+ barrier not met at that observation it paid a coupon the contract does not. Both now take
1786
+ the product's own decision (`test_a_later_observation_knock_out_pays_the_decided_coupon`).
1787
+ - **Lifecycle-knocked-in `ki_survive`.** A product carrying the lifecycle knock-in flag
1788
+ reported `ki_survive_knocked_in_probability = 1` although most paths may knock out
1789
+ first. It is now the marched value: 0.277176 on the measured Snowball (1 − ΣKO =
1790
+ 0.277176). With the knock-in streams pruned it reads 0.0, like every pruned field.
1791
+ - **Contractual coupon periods (decision 13).** A dated Phoenix valued after its start
1792
+ gave its first remaining period the fraction from the valuation date (0 on an
1793
+ observation date) in the PDE and Monte Carlo, while QUAD V2 used the contract. Byte
1794
+ book: observation-date pay +1.019178 and miss +0.7581, ten days in +0.4596 (101.683759 and
1795
+ 86.114188 against V2's 101.684019 and 86.114162). The deterministic control is exact.
1796
+ Tenor Phoenix theta moves by about one day of coupon, because 0.8.0's theta clone
1797
+ truncated the first period: up to 1.0e-2 on the byte book, 3.3e-2 on a 12 % tenor
1798
+ Phoenix (−0.01685 → +0.01595).
1799
+ - **Valuation-date regimes.** A carried knock-in's regime decides (above).
1800
+ - **Dated KO-reset `KeyError`.** A dated KO-reset valued on its first observation date
1801
+ raised `KeyError` (the post observation was not a grid node); both schedules' times are
1802
+ now in the grid request.
1803
+
1804
+ ### Known issues
1805
+ - EXPIRY coupon cash reaches no cash leg: `price_with_events` carries no ledger, and a leg
1806
+ that needs path-dependent coupon timing raises as it does for QUAD V2.
1807
+ - `ki_ever` under continuous knock-in carries the first-passage correction's error
1808
+ (1e-4 to 9e-4) and does not converge under time-only refinement.
1809
+ - `ki_ever` counts a breach after a knock-out, on every engine (a definition).
1810
+ - The value's far-field rows ignore the certain far-edge knock-in and knock-out, and the
1811
+ Phoenix upper row omits the next coupon. None of this is visible at the spot on the
1812
+ measured cases.
1813
+ - The 2D statistics are the flat-vol model's (surrogate only; native 2D is a later spec).
1814
+ - KO-reset maturity buckets against QUAD V2: the PDE's `M_pre` is −1.5e-2 (cash) from V2's
1815
+ at spot 100 (−2.0e-2 at `high`; about 1.5e-4 in probability); the gate is 3e-2.
1816
+
1817
+ ### Per-stage deltas (PDE byte book, 510 rows)
1818
+ - (a) Snowball value policy: 97 rows. Leg ≤ 7.4e-6, probabilities ≤ 7.3e-8, except
1819
+ `disable_ko_after_ki` (leg 3.45, `ki_survive` 3.1e-2: the fix above) and the 2D
1820
+ surrogate residual (0.26).
1821
+ - (b) Phoenix value policy: 60 rows. Coupon cash out of the leg (up to 6.49 on the
1822
+ observation-date memory row), probabilities ≤ 1.8e-6, 2D surrogate residual 0.36.
1823
+ - (c) native KO-reset: 33 rows. Probabilities up to 1.4e-1 on the legacy `ki_probability`
1824
+ (its definition, above), post-schedule cash 5.7e-2, distribution payment times.
1825
+ - (d) valuation-date rules: 35 rows. `dkak_carried` price 1.693, the lifecycle
1826
+ `ki_survive` (up to 0.96), the KO-reset immediate knock-out.
1827
+ - (e) 2D refusal: 3 rows, now `StatisticsRefused`.
1828
+ - (f) release rule: 9 rows. `phoenix_c105` +0.5728, `lu_fallback|phoenix` +6.1e-4 (one
1829
+ dual cell spans both barriers on that 4-node grid).
1830
+ - (g) contractual periods: 63 rows. Dated Phoenix prices up to +1.019178, tenor Phoenix
1831
+ theta ≤ 1.0e-2, `phoenix_c105` ≤ 1.3e-13.
1832
+
1833
+ Goldens: the replay event frames (`scalar_bsm`, `localvol`) and the phase-4 execution
1834
+ event distributions were regenerated once (`test/replay_golden/README.md`,
1835
+ `test/execution/goldens/PROVENANCE.md`); the `book` (QUAD) frames are byte-identical.
1836
+
1837
+ ### Performance
1838
+ - The statistics block skips its all-zero columns (an observation the backward march has
1839
+ not reached) and solves them once as a +0.0 template. The tridiagonal solve calls LAPACK
1840
+ `gtsv` directly, without scipy's argument validation. The first-passage correction forms
1841
+ only its one row on a block. The value rows are reused, not recomputed. The KO-reset
1842
+ terminal resolves the pre-knock-in tenor once per surface, not per node. All are
1843
+ bit-identical on the byte book.
1844
+
1845
+ Timing gate (`test/pde_bitwise/timing.py`, 0.8.0 and 0.9.0 interleaved, ARM64 macOS with
1846
+ the `accel` extra; median ms over 15 rounds). The price families come from the full run
1847
+ (IQR ≤ 3 %). The statistics cases come from a rerun of the gated four alone
1848
+ (`--families`, three repetitions per process, IQR ≤ 8 %): the full run was inconclusive,
1849
+ with bimodal efficiency-core times on a loaded machine.
1850
+
1851
+ | Case | Warm 0.8.0 | Warm 0.9.0 | Ratio | Cold ratio | Gate |
1852
+ |---|---|---|---|---|---|
1853
+ | Snowball price | 42.9 | 34.9 | 0.81× | 0.87× | |
1854
+ | Phoenix price (memory) | 652 | 455 | 0.70× | 0.71× | |
1855
+ | KO-reset price | 25.5 | 17.3 | 0.68× | 0.69× | |
1856
+ | Local-vol Snowball price | 117 | 107 | 0.91× | 0.93× | |
1857
+ | European / American / barrier price | | | 1.00× | 1.00× | |
1858
+ | Snowball statistics | 159 | 146 | 0.92× | 0.94× | pass |
1859
+ | Local-vol Snowball statistics | 248 | 225 | 0.91× | 0.91× | pass |
1860
+ | Phoenix statistics (no memory, INSTANT) | 230 | 247 | **1.075×** | 1.06× | **missed** (1.05× warm) |
1861
+ | KO-reset statistics | 40 | 72 | **1.79×** | 1.78× | **not comparable** (0.8.0 was a 501-point QUAD) |
1862
+ | Phoenix statistics (memory) | 877 | 1,279 | 1.46× | | recorded |
1863
+ | Phoenix statistics (EXPIRY, memory) | 972 | 2,348 | 2.42× | | recorded |
1864
+
1865
+ - **Phoenix statistics miss the 1.05× gate by 2.5 points (+17 ms).** The coupon cash is a
1866
+ marched column (spec §5.3) where 0.8.0 multiplied the trigger probability. That is 39
1867
+ columns per surface instead of 26; the solve cost is linear in the column count, and
1868
+ the faster solve absorbs most but not all of it.
1869
+ - **KO-reset statistics compare two algorithms.** 0.8.0 ran a 501-point QUAD next to the PDE
1870
+ price, with probability errors of up to 3.8e-3. 0.9.0 marches 15 columns per surface on
1871
+ the PDE, which cannot cost less than the PDE price it extends.
1872
+ - Memory and EXPIRY Phoenix carry 183 and 365 columns per surface (12 observations, 12
1873
+ memory states); 0.8.0 reported no coupon cash for them. Pruning `streams` does not reduce
1874
+ the count.
1875
+
1876
+ ## [0.8.0] - 2026-10-03
1877
+
1878
+ PDE 1D numerical policy (spec: `docs/superpowers/specs/2026-10-01-pde-1d-numerical-policy-design.md`).
1879
+ Seven deliberate numerics changes, each its own commit checked against the 445-row PDE byte
1880
+ book with its declared movers: the grid day is the environment's business days, the step
1881
+ cap raises instead of scaling, the barrier family projects discrete observations, Snowball
1882
+ `NODAL` means nodal, Phoenix takes θ = 1 on zero-diffusion steps, half-step damping where
1883
+ monitoring is discrete, and forward far-field rows. No flip touches the damping of a
1884
+ product with continuous knock-in: on a 252-day environment, inside 0.7.0's 5,000-step cap
1885
+ and with the default projection, it keeps its 0.7.0 numbers bit for bit (one exception,
1886
+ below); the grid day (a) and the cap (b) move it like any product. The flat Snowball, Phoenix and
1887
+ KO-reset and the local-vol Snowball certificates are amended and re-banked (2026-10-02) with
1888
+ their PDE candidates re-admitted; the intraday daily-KI certificate is re-banked (2026-10-03)
1889
+ with QUAD V2 admitted and its PDE candidate rejected, as in 0.7.0.
1890
+
1891
+ ### Added
1892
+ - `CrankNicolson(damping="full_step" | "half_step")`: the damping form; `None` is the
1893
+ route's. Half-step splits each damped interval at its midpoint; both halves take
1894
+ `event_theta` below an event and 1.0 at the terminal node.
1895
+ - `event_projection` is honoured by `BarrierPDESolver`, `DoubleBarrierPDESolver`,
1896
+ `OneTouchPDESolver` and `DoubleOneTouchPDESolver`.
1897
+ - `MarketSnapshot.bus_days_in_year`, `GridRequest.day_count`, `GridRequest.refinement`,
1898
+ `TimeRefinement`, `time_fill`, `EventRecord`, `DiscreteEvent`, `apply_discrete_event`
1899
+ (`quantark.asset.equity.engine.pde.grid`).
1900
+ - `DAMPING_DEFAULTS["core-continuous-ki"]`, `["2D"]`, `["local-vol"]` (`pde.grid.config`).
1901
+ - `grid.mesh_kernels.backend()`: `"numba"` with the `accel` extra, else `"python"`.
1902
+ - `pde_declared.environment_day_count` / `refuse_case_day_count` (model validation): the
1903
+ environment's business days recorded on a PDE candidate's `grid` record.
1904
+
1905
+ ### Changed (defaults)
1906
+ - **Core damping:** half-step, one interval at the terminal node and at each event,
1907
+ `(half_step, 1, 1)`, for every product without continuous knock-in; a product with
1908
+ continuous knock-in keeps full-step `(1, 2)`. The class is read from the contract, never
1909
+ from the spot or the knocked-in state.
1910
+ - **Base-family discrete observations:** dual-cell projection (`event_projection=None` is
1911
+ `CELL_AVERAGE` on every core route). `"nodal"` keeps the 0.7.0 masks.
1912
+ - **`max_steps`:** 12,000; a grid over it raises `ValidationError` naming the count it
1913
+ needs, `GridConfig(max_steps=...)` and `steps_per_day`. A grid is never scaled.
1914
+ - **Snowball `NODAL`:** nodal on interior KO and discrete-KI events too.
1915
+ - **Phoenix:** θ = 1 on zero-diffusion steps, as every value group.
1916
+ - **Grid day:** `steps_per_day` counts the pricing environment's `bus_days_in_year`.
1917
+ - **Far-field rows:** European and Barrier puts' lower row is `K·DF(t,T) − S_min·CF(t,T)`
1918
+ (floored at 0); the Barrier call's upper-row carry factor is the forward one
1919
+ `exp(−(q(T)T − q(t)t))` (it moves only on a term-dependent carry curve).
1920
+ - `adapter.stepper(params)` becomes `adapter.stepper(params, product)`.
1921
+ - `GridRequest(day_count=...)` and `MarketSnapshot(bus_days_in_year=...)` are required: code
1922
+ that constructs either directly gets a `TypeError` until it passes them.
1923
+ - Event statistics (KO/KI probabilities) march the same layout, so they move with the half
1924
+ nodes at (f), as the prices do; their conventions are unchanged.
1925
+ - The step cap holds a little under six years at `high` and twelve at `standard` on a 252-day
1926
+ environment; a six-year monthly Snowball at `high` now raises where 0.7.0 scaled it.
1927
+ - The certificates' `grid` record: `max_steps` 12000, `day_count` from the environment,
1928
+ and `discrete_monitoring_damping: ["half_step", 1, 1]`. A full-step `(1, 2)`
1929
+ configuration with `max_steps=5000` on a 252-day environment still serializes to the
1930
+ 0.7.0 record.
1931
+ - Prepared PDE sessions: artefact builder `pde-prep/v3` (the request carries `refinement`
1932
+ and `day_count`); no 0.7.0 artefact is reused.
1933
+
1934
+ **Clean break (count meaning).** A caller who sets a count and no form, for example
1935
+ `CrankNicolson(event_damping_steps=2)`, gets two halved intervals after flip (f) on every
1936
+ solve that resolves against `"core"`, where 0.7.0 gave two whole steps; on a product with
1937
+ continuous knock-in the count keeps its 0.7.0 meaning. Nothing can detect the intent, so no
1938
+ error is possible. `CrankNicolson(damping="full_step", terminal_damping_steps=1,
1939
+ event_damping_steps=2)` restores 0.7.0 everywhere; `damping="full_step"` alone takes the
1940
+ route's counts, `(full_step, 1, 1)` on the core. A `CrankNicolson` **subclass** is a custom
1941
+ stepper, used as given: one that sets counts and no `damping` priced in 0.7.0 and now raises
1942
+ `ValidationError` naming the fields to set.
1943
+
1944
+ ### Removed
1945
+ | Removed | Replacement |
1946
+ |---|---|
1947
+ | `GridConfig(day_count=...)` (raises `ValidationError`) | `PricingEnvironment(bus_days_in_year=...)` |
1948
+ | `TimeLayout.fill_scaled`, `TimeLayout.cap_exceeded`; the same keys in `explain` and the intraday numerical record; `LifeSurfaceSolution.fill_scaled` | none: a grid over `max_steps` raises |
1949
+ | `groups.VALUE_NO_ZERO_DIFFUSION_OVERRIDE` | `groups.VALUE` |
1950
+
1951
+ `GridConfig` has eight fields. `TimeLayout` and `LifeSurfaceSolution` are results the
1952
+ library constructs, so reading a removed field is a plain `AttributeError`.
1953
+
1954
+ ### Fixed
1955
+ - **Put far-field row.** The European and Barrier put's lower row was its `S → 0` limit
1956
+ `K·DF` at a grid edge four standard deviations below spot, ~39 too high there. Error
1957
+ against Black-Scholes at 400 points (pv / delta / gamma), study environment:
1958
+
1959
+ | European put, strike 100 | 0.7.0 | 0.8.0 | the call, for scale |
1960
+ |---|---|---|---|
1961
+ | vol 22%, 1y, spot 100 | +2.5e-3 / −4.3e-4 / +9.1e-5 | +1.1e-4 / +4.1e-5 / +2.1e-6 | +2.1e-4 / +4.2e-5 / +2.2e-6 |
1962
+ | vol 22%, 1y, spot 80 | +1.9e-3 / −5.4e-4 / +1.1e-4 | −1.4e-5 / −6.6e-5 / +1.7e-6 | +2.6e-5 / −6.6e-5 / +1.7e-6 |
1963
+ | vol 22%, 3m, spot 100 | +4.2e-3 / −1.4e-3 / +5.9e-4 | +1.9e-4 / +8.4e-5 / +2.2e-5 | +2.5e-4 / +8.4e-5 / +2.2e-5 |
1964
+ | vol 22%, 3y, spot 100 | +1.1e-3 / −1.0e-4 / +1.5e-5 | −7.6e-5 / +2.3e-5 / +1.9e-7 | +2.0e-5 / +2.7e-5 / +2.2e-7 |
1965
+ | vol 12%, 1y, spot 100 | +3.9e-3 / −1.2e-3 / +4.6e-4 | +2.0e-4 / +6.2e-5 / +1.6e-5 | +2.8e-4 / +6.2e-5 / +1.6e-5 |
1966
+ | vol 40%, 1y, spot 100 | +1.0e-3 / −9.3e-5 / +1.3e-5 | −9.6e-5 / +2.4e-5 / +1.2e-7 | +1.4e-5 / +2.9e-5 / +1.6e-7 |
1967
+
1968
+ The down-and-in put, dominated by that row, now meets its exact reference. The American
1969
+ put's lower row is unchanged (spec §9).
1970
+ - **Snowball `event_projection="nodal"`** projected interior events anyway; it now masks
1971
+ them (spec §4.6 cases, NODAL pv 0.7.0 → 0.8.0: ordinary +3.5e-2, spot 102.5 +2.6e-2,
1972
+ monthly discrete KI +2.6e-2).
1973
+ - **Phoenix** took θ = 0.5 on zero-diffusion (trading-clock night and weekend) steps where
1974
+ every other family took 1 (trading-clock Phoenix: +1.6e-7).
1975
+ - **Continuous knock-in, alive boundary:** the knocked-in boundary rows are written before
1976
+ the alive rows that read them. Bitwise on every certified cell but one:
1977
+ `snowball-localvol-1d/calm_near_expiry` moves by 1.1e-13 (pv) to 3.5e-11 (delta) relative;
1978
+ the sparse-LU fallback Snowball (two interior nodes) moves +1.457.
1979
+
1980
+ ### Performance
1981
+ - **Mesh build.** The concentrated mesh's RK4 integration (the cold-solve cost, spec §4.9)
1982
+ runs on a Python-float kernel, or on a Numba kernel with the `accel` extra
1983
+ (`pip install "quantark[accel]"`), both bit-identical to the 0.7.0 NumPy reference on 549
1984
+ layouts. A value a kernel does not handle (non-finite, zero denominator, more than eight
1985
+ critical points) re-runs that call on the NumPy reference, so every exception and fallback
1986
+ is 0.7.0's. On 49 production layouts: 43.1 s (NumPy), 4.06 s (Python kernel), 0.30 s (Numba).
1987
+ CI requires the Python kernel on its four Python jobs and Numba in the `accel` job
1988
+ (`QUANTARK_REQUIRE_MESH_KERNEL`, a test switch). The
1989
+ Numba runtime adds ~30 MB to a process's peak memory.
1990
+ - **Barrier step events** fold in place on the grid column (no per-step copy), and the
1991
+ terminal settlement timing is resolved once per march, not once per step (bitwise).
1992
+
1993
+ Timing gate (`test/pde_bitwise/timing.py`, 0.7.0 and 0.8.0 interleaved, two rounds of five
1994
+ repetitions, ARM64 macOS with the `accel` extra; seconds, better round):
1995
+
1996
+ | Family (timing book, `standard`) | Cold 0.7.0 | Cold 0.8.0 | Speed-up | Warm 0.7.0 | Warm 0.8.0 |
1997
+ |---|---|---|---|---|---|
1998
+ | European | 0.774 | 0.022 | 35× | 0.0185 | 0.0150 |
1999
+ | American | 0.765 | 0.026 | 29× | 0.0207 | 0.0207 |
2000
+ | Snowball | 0.916 | 0.050 | 18× | 0.0434 | 0.0432 |
2001
+ | Local-vol Snowball | 1.002 | 0.126 | 8.0× | 0.119 | 0.119 |
2002
+ | Event statistics | 1.04 | 0.165 | 6.3× | 0.158 | 0.158 |
2003
+ | Phoenix (memory) | 1.542 | 0.668 | 2.3× | 0.654 | 0.658 |
2004
+ | Barrier (continuous) | 0.030 | 0.021 | 1.4× | 0.0282 | 0.0189 |
2005
+ | KO-reset | 0.026 | 0.026 | 1.0× | 0.0254 | 0.0255 |
2006
+
2007
+ A cold solve is now dominated by its march: the Phoenix's mesh share fell from 0.89 s to
2008
+ 0.01 s, and the barrier and KO-reset cases build no concentrated mesh. Event statistics
2009
+ from 15-repetition interleaved runs. Peak memory rises ~30 MB with Numba loaded.
2010
+
2011
+ ### Per-flip deltas (PDE byte book, largest price moves)
2012
+ - (a) grid day: 244-day environments only — Phoenix memory −2.7e-4, continuous-KI Snowball
2013
+ −1.6e-4, European −5.2e-8, intraday Snowball +6.4e-8. The intraday route's grid moved
2014
+ because its numerical environment has 244 days (F1).
2015
+ - (b) cap: five-year standard Snowball −4.9e-7 (5,040 steps, was 4,980), three-year high
2016
+ −2.1e-6 (6,048, was 4,968).
2017
+ - (c) projection: discrete barrier calls up to ±3.8e-2, double knock-out −2.8e-2, the
2018
+ down-and-in composite −8.0e-3, touches ~1e-3.
2019
+ - (d) Snowball NODAL: +1.2e-2 to +1.8e-2 on the book's NODAL rows.
2020
+ - (e) Phoenix θ: +1.6e-7 on the trading-clock Phoenix only.
2021
+ - (f) half-step damping: local-vol Phoenix daily KI −3.6e-3, Snowball daily KI −3.3e-3,
2022
+ KO-reset discrete −1.6e-3, Snowball monthly −1.3e-4, discrete Snowball/Phoenix ≤ 9e-5,
2023
+ barrier/touch ≤ 3.6e-5, European ~1e-6. No continuous-KI row moved.
2024
+ - (g) far field: puts (above); flat-curve barrier calls bitwise unchanged.
2025
+
2026
+ Goldens: replay frames (scalar_bsm, localvol) moved at (f) by ~1.6e-5 of notional;
2027
+ execution goldens at (d) and (f) (`test/execution/goldens/PROVENANCE.md`).
2028
+
2029
+ ## [0.7.0] - 2026-10-01
2030
+
2031
+ PDE 1D one core (spec: `docs/superpowers/specs/2026-09-30-pde-1d-one-core-design.md`;
2032
+ architecture: `docs/pde-core.md`). Every shared-grid 1D PDE family (European, American,
2033
+ the barrier family, Snowball, Phoenix, KO-reset, and the local-vol Snowball and Phoenix)
2034
+ prices through one `prepare → march → read` path; the four per-family time-stepping loops
2035
+ and the separate statistics sweep are gone. Numbers are unchanged: a 229-row `float.hex`
2036
+ byte compare of the 1D book against 0.6.0 shows zero differences, and every banked
2037
+ certificate keeps its identity. The scheme's settings move onto a stepper component, a
2038
+ clean break with the old names raising `ValidationError` naming their replacement.
2039
+
2040
+ ### Added
2041
+ - `PDEParams.stepper`, `PDEParams.operator`, `PDEParams.readout`: component slots whose
2042
+ built-ins are `CrankNicolson()`, `CentralDifference()` and `StandardReadout()`
2043
+ (`quantark.asset.equity.engine.pde.core.components`). `CrankNicolson` carries the
2044
+ scheme's four settings: `theta`, `event_theta`, `terminal_damping_steps`,
2045
+ `event_damping_steps` (`None` = the route's defaults). A custom component runs on the
2046
+ core routes; the core validates its results and raises `NumericalError` naming it.
2047
+ `from_config` accepts `stepper: {theta: 1.0, ...}` and rejects `operator` / `readout`.
2048
+ - `explain(product, pricing_env)` on `PDEEngine` and every core solver: the resolved plan
2049
+ (route, settings with their source and applicability, space, time, events, scheme,
2050
+ outputs, identities, per-operation terminal outcomes) from the same preparation `price`
2051
+ runs, without marching.
2052
+ - `resolved_grid_evidence(params)` (`pde.grid.config`): the certificate `grid` record,
2053
+ the nine resolved grid fields plus the stepper's two damping counts under their 0.6.0
2054
+ keys. `PDEParams.evidence()` for `engine_config`.
2055
+ - `OutputRequest`: what one call wants from a preparation (price, Greeks, event
2056
+ statistics, grid, life surface).
2057
+ - `Calendar.identity()`: a value identity (name, sorted holidays, weekend days) for the
2058
+ settlement-calendar part of the schedule caches' keys.
2059
+
2060
+ ### Removed
2061
+ | Removed name | Replacement |
2062
+ |---|---|
2063
+ | `PDEParams(theta=...)` | `stepper=CrankNicolson(theta=...)`; 0.5 is Crank-Nicolson, 1.0 backward Euler |
2064
+ | `PDEParams(event_theta=...)` | `stepper=CrankNicolson(event_theta=...)` |
2065
+ | `GridConfig(terminal_damping_steps=...)` | `PDEParams(stepper=CrankNicolson(terminal_damping_steps=N))`; 0 disables |
2066
+ | `GridConfig(event_damping_steps=...)` | `PDEParams(stepper=CrankNicolson(event_damping_steps=N))`; 0 disables |
2067
+
2068
+ `GridConfig` has nine fields and raises `ValidationError` (not `TypeError`) for the two
2069
+ removed ones. The 0.6.0 entries that pointed at `GridConfig` damping counts
2070
+ (`use_rannacher`, `rannacher_steps`, `rannacher_at_events`, `event_rannacher_steps`,
2071
+ `DCNPDEEngine(rannacher_steps=)`) now point at the stepper. `TimeLayout` no longer carries
2072
+ the damping index sets; `CrankNicolson.schedule` computes them.
2073
+
2074
+ ### Changed
2075
+ - The factorization caches key on the exact θ. Two θ agreeing to 6 (LU) or 12 (banded)
2076
+ decimals no longer share a matrix. `dt` stays rounded to 12 places, as every banked
2077
+ number was computed.
2078
+ - Event statistics are a column group of the price march. `calculate_event_stats`
2079
+ no longer re-prices, and `price_with_events` marches once.
2080
+ - Prepared sessions store the bound `Layout` (artefact builder `pde-prep/v2`). Bump
2081
+ contexts are fresh instances holding a frozen layout; the transient-attribute copy
2082
+ machinery is gone (the 2D Heston/SLV Greeks keep a legacy clone).
2083
+ - Market memos are keyed by value fingerprints, so mutating a market object after a solve
2084
+ is no longer silently stale; an unfingerprintable input is sampled fresh.
2085
+ - Certificate candidates are built from their declared params (`PDEParams.from_config`),
2086
+ so a declared setting is the one executed; a key the engine rejects fails the study at
2087
+ load.
2088
+ - The DCN, local-vol vanilla/barrier and 2D Heston/SLV solvers read their damping counts
2089
+ and weights from `params.stepper`, and reject a custom component ("no core seam until
2090
+ sub-project 3"). `LocalVolPDESolver` checks route applicability on construction.
2091
+
2092
+ ### Fixed
2093
+ - Event statistics on a reused solver no longer reuse another market's factorizations
2094
+ (measured: a 0.041 KO-probability error on the second market).
2095
+ - American Greeks on a fresh solver, for exercise with a settlement lag, no longer raise.
2096
+ - PDE solvers deep-copy and pickle after pricing.
2097
+ - A session no longer stores a factorization for a stepper without a value fingerprint
2098
+ (two such steppers could have shared one).
2099
+ - Knock-in barriers (single and double) priced through a `PricingSession` now equal the
2100
+ direct price bit for bit. 0.6.0 marched the knock-out leg on the knock-in product's own
2101
+ spatial grid, masking the barrier instead of using the hard-edged domain (measured:
2102
+ up-and-in call −0.9%, double knock-in −2.2%). A session's layout is now refused, not
2103
+ reassembled, when the hard bounds differ. The session path was not in the byte book;
2104
+ it now has an execution test.
2105
+ - A session with `cache_enabled=False` no longer warms a factorization pack.
2106
+
2107
+ Unchanged and still raising: bump-context Greeks on a knock-in barrier that has not
2108
+ knocked in (`PricingError`: the frozen layout has the knock-in's bounds, the knock-out
2109
+ leg needs the barrier's). It is a declared failure in the byte book; freezing the
2110
+ knock-out leg's layout is sub-project 3 work.
2111
+
2112
+ ### Sub-project 3
2113
+ Still planned: the environment's business day as the grid day (full re-certification);
2114
+ half-step damping as a `CrankNicolson` option; coefficient-break nodes; a budget default
2115
+ for path-independent routes; failing instead of scaling at the caps; DCN and the
2116
+ local-vol vanilla/barrier space axis onto the core; native KO-reset statistics. Added by
2117
+ this release, each its own re-certified commit: statistics Level 2 (the statistics group
2118
+ on the value policy with a marched maturity leg, memory-state Phoenix coupons); the
2119
+ zero-diffusion θ override for Phoenix; Snowball `NODAL` on interior schedule events (or
2120
+ withdrawing `NODAL` from the shared-grid table); native 2D Heston/SLV statistics.
2121
+
2122
+ ## [0.6.0] - 2026-09-29
2123
+
2124
+ PDE 1D surface cleanup (spec: `docs/superpowers/specs/2026-09-28-pde-1d-surface-cleanup-design.md`).
2125
+ Every 1D PDE route — the shared-grid solvers behind `PDEEngine`, the local-vol vanilla
2126
+ and barrier solvers, and DCN — is configured by one `PDEParams` and nothing else, and
2127
+ nothing is silently ignored: a field a route cannot honour raises. This is a clean break:
2128
+ the removed names raise `ValidationError` naming their replacement. Numbers are unchanged
2129
+ on every route except the local-vol discretely monitored barrier (see Changed), proven by
2130
+ a 112-row `float.hex` byte compare of the whole 1D book against 0.5.0.
2131
+
2132
+ ### Added
2133
+ - `GridConfig.time_steps`: a total time-step budget over the horizon, spread over the
2134
+ mandatory intervals by length (at least one step each), and the alternative to
2135
+ `steps_per_day`. Exactly one time basis is in force after resolution; an overlay that
2136
+ sets one basis clears the other, and setting both raises.
2137
+ - `GridConfig.evidence()` (the certificate serialization: unset optionals omitted, so no
2138
+ banked identity moves), `GridConfig.with_steps_per_day()` and
2139
+ `GridConfig.with_time_steps()`.
2140
+ - `PDEParams.resolved_grid()`: the requested grid (the `accuracy` preset under the `grid`
2141
+ overlay), before the `max_steps` cap that binds once a maturity is known.
2142
+ - The route applicability table (`quantark.asset.equity.engine.pde.route_applicability`,
2143
+ `ROUTE_RULES`): per route, the fields it cannot honour. An inapplicable field accepts its
2144
+ preset default and rejects an explicit override; a rejected field rejects any explicit
2145
+ value. The error names the field, the route, and sub-project 3.
2146
+ - `PDEParams.from_config(config_or_path, **overrides)` over field names, with `grid` a
2147
+ nested `GridConfig` mapping (a `bounds` list becomes a tuple).
2148
+
2149
+ ### Removed
2150
+ `PDEParams`, `PDEEngine` and the DCN constructors take keyword arguments only; each
2151
+ removed name raises `ValidationError` with its replacement:
2152
+
2153
+ | Removed | Replacement |
2154
+ |---|---|
2155
+ | `PDEParams(grid_size=...)` | grid=GridConfig(points=...) on every route. |
2156
+ | `PDEParams(time_steps=...)` | grid=GridConfig(time_steps=N): the same meaning, a total step budget over the horizon. steps_per_day= is the per-day alternative. |
2157
+ | `PDEParams(s_max=...)` | grid=GridConfig(bounds=(None, hi)) on the shared-grid solvers. On the two local-vol solvers an explicit bound is rejected until sub-project 3: the kernel sets its own domain and aligns the top, so there is no hard edge to honour. |
2158
+ | `PDEParams(s_min=...)` | removed; it was read by nothing. |
2159
+ | `PDEParams(use_rannacher=...)` | grid=GridConfig(terminal_damping_steps=N); 0 disables. use_rannacher=False also switched off event damping on the 2D Heston/SLV solvers; add event_damping_steps=0 to keep that |
2160
+ | `PDEParams(rannacher_steps=...)` | grid=GridConfig(terminal_damping_steps=N); 0 disables |
2161
+ | `PDEParams(rannacher_at_events=...)` | grid=GridConfig(event_damping_steps=N); 0 disables |
2162
+ | `PDEParams(event_rannacher_steps=...)` | grid=GridConfig(event_damping_steps=N); 0 disables |
2163
+ | `PDEParams(boundary_mode=...)` | removed; asymptotic boundaries are the only treatment |
2164
+ | `PDEParams(continuous_ki_correction=...)` | removed; the first-passage correction always applies to continuously monitored KI |
2165
+ | `PDEParams(ki_monitoring_mode=...)` | removed from the PDE; each barrier is monitored as the product declares it (discrete dates, continuous, or maturity-only). To price a dense discrete KI as continuous, declare it continuous on the product. QuadParams.ki_monitoring_mode is unchanged. |
2166
+ | `PDEParams(cache_strategy=...)` | cache_enabled=True/False is the only cache control |
2167
+ | `PDEParams(grid_cache_max_entries=...)` | cache_enabled=True/False is the only cache control |
2168
+ | `PDEParams(banded_cache_max_entries=...)` | cache_enabled=True/False is the only cache control |
2169
+ | `PDEParams(use_banded_solver=...)` | removed; the linear solver is chosen by the solver family |
2170
+
2171
+ | Removed | Replacement |
2172
+ |---|---|
2173
+ | `PDEEngine(method=...)` | Crank-Nicolson is the only built-in scheme; PDEEngine(params=PDEParams(...)). theta=1.0 gives backward Euler. |
2174
+
2175
+ | Removed | Replacement |
2176
+ |---|---|
2177
+ | `DCNPDEEngine / LocalVolDCNPDEEngine(num_space_nodes=...)` | DCNPDEEngine(params=PDEParams(grid=GridConfig(points=...))) |
2178
+ | `DCNPDEEngine / LocalVolDCNPDEEngine(rannacher_steps=...)` | grid=GridConfig(terminal_damping_steps=N, event_damping_steps=N) (DCN applies both in its half-step form) |
2179
+ | `DCNPDEEngine / LocalVolDCNPDEEngine(s_min_mult=...)` | removed; never read |
2180
+ | `DCNPDEEngine / LocalVolDCNPDEEngine(s_max_mult=...)` | removed; never read |
2181
+ | `DCNPDEEngine / LocalVolDCNPDEEngine(concentration=...)` | removed; never read |
2182
+
2183
+ Also removed: `BackwardOperator` (`backward_operator.py`), `ContinuousKICorrection`,
2184
+ `make_pde_params`, `PDE_PARAM_PRESETS`, the `"pde"` branch of `make_engine_params` /
2185
+ `list_param_profiles` (PDE has no profile tier: use `PDEParams(accuracy=...)`), the
2186
+ class-level cache setters (`set_cache_enabled`, `set_cache_strategy`,
2187
+ `set_grid_cache_max_entries`, `clear_grid_cache`), and `reject_legacy_resolution_knobs`.
2188
+
2189
+ ### Changed
2190
+ - **Local-vol vanilla and barrier solvers are configured by `PDEParams`.** Previously
2191
+ `accuracy` and `grid` were ignored there; they are now honoured or rejected per the
2192
+ route table. Their own preset table keeps today's plan at `standard` (400 points, a
2193
+ 200-step budget); `fast`/`high` are new resolution choices. `theta` reaches both
2194
+ kernels; the vanilla's terminal damping is 0 or 1 (an explicit count of 2 or more is
2195
+ rejected). Bitwise at the defaults and for continuous and maturity-only monitoring.
2196
+ - **The local-vol discretely monitored barrier observes on exact event nodes** (the
2197
+ declared number change). Each interior observation date is a node of the time layout,
2198
+ the step budget spread over the intervals between them, instead of the nearest node of
2199
+ a uniform grid. Byte gate: the two `lv_barrier_discrete` rows move by -7.9e-4 and
2200
+ -1.0e-3. Against a 1600 x 2400 reference PDE (every date on a node), flat 20% vol:
2201
+
2202
+ | product | grid | base PDE | branch PDE | abs(base-ref) | abs(branch-ref) |
2203
+ |---|---|---|---|---|---|
2204
+ | UO call B130 monthly | 400x200 | 3.92225 | 3.92154 | 2.47e-03 | 1.75e-03 |
2205
+ | UO call B130 monthly | 600x240 | 3.92049 | 3.92049 | 7.03e-04 | 7.03e-04 |
2206
+ | UO call B130 monthly | 200x200 | 3.92822 | 3.92752 | 8.44e-03 | 7.74e-03 |
2207
+ | UO call B130 monthly | 800x400 | 3.91984 | 3.92013 | 5.49e-05 | 3.44e-04 |
2208
+ | UO call B130 monthly | 400x150 | 3.92460 | 3.92149 | 4.81e-03 | 1.70e-03 |
2209
+ | UO call B120 monthly | 400x200 | 1.76249 | 1.76185 | 3.05e-03 | 2.41e-03 |
2210
+ | UO call B120 monthly | 600x240 | 1.76040 | 1.76040 | 9.57e-04 | 9.57e-04 |
2211
+ | UO call B120 monthly | 200x200 | 1.77063 | 1.77001 | 1.12e-02 | 1.06e-02 |
2212
+ | UO call B120 monthly | 800x400 | 1.75965 | 1.75991 | 2.13e-04 | 4.74e-04 |
2213
+ | UO call B120 monthly | 400x150 | 1.76428 | 1.76179 | 4.84e-03 | 2.35e-03 |
2214
+ | UO call B120 quarterly | 400x200 | 2.16190 | 2.16190 | 1.04e-03 | 1.04e-03 |
2215
+ | UO call B120 quarterly | 600x240 | 2.16128 | 2.16128 | 4.18e-04 | 4.18e-04 |
2216
+ | UO call B120 quarterly | 200x200 | 2.16532 | 2.16532 | 4.46e-03 | 4.46e-03 |
2217
+ | UO call B120 quarterly | 800x400 | 2.16107 | 2.16107 | 2.06e-04 | 2.06e-04 |
2218
+ | UO call B120 quarterly | 400x150 | 2.16442 | 2.16189 | 3.55e-03 | 1.03e-03 |
2219
+ | DO put B85 monthly | 400x200 | 1.20049 | 1.20002 | 4.22e-03 | 3.75e-03 |
2220
+ | DO put B85 monthly | 600x240 | 1.19755 | 1.19755 | 1.27e-03 | 1.27e-03 |
2221
+ | DO put B85 monthly | 200x200 | 1.21140 | 1.21096 | 1.51e-02 | 1.47e-02 |
2222
+ | DO put B85 monthly | 800x400 | 1.19682 | 1.19701 | 5.46e-04 | 7.37e-04 |
2223
+ | DO put B85 monthly | 400x150 | 1.20189 | 1.19997 | 5.61e-03 | 3.69e-03 |
2224
+ | UI call B130 monthly | 400x200 | 4.90751 | 4.90822 | 1.83e-04 | 5.31e-04 |
2225
+ | UI call B130 monthly | 600x240 | 4.90791 | 4.90791 | 2.23e-04 | 2.23e-04 |
2226
+ | UI call B130 monthly | 200x200 | 4.90897 | 4.90967 | 1.28e-03 | 1.98e-03 |
2227
+ | UI call B130 monthly | 800x400 | 4.90809 | 4.90780 | 4.00e-04 | 1.11e-04 |
2228
+ | UI call B130 monthly | 400x150 | 4.90516 | 4.90827 | 2.53e-03 | 5.81e-04 |
2229
+
2230
+ Closer to the reference in 16 of 25 cells; where the old grid misplaced a date by up to
2231
+ half a step (400x150) the error falls 2-3x, and elsewhere both placements sit inside
2232
+ the grid's own error band (every cell moves by <= 7e-4).
2233
+ - **DCN is configured by `PDEParams`** with its own `accuracy` presets, which scale
2234
+ spatial resolution only (401 / 801 / 1601 points; `fast` and `high` have no banked
2235
+ evidence). The observation schedule is the time resolution: an explicit
2236
+ `steps_per_day` or `time_steps` is rejected, as is an explicit CELL_AVERAGE. The damping
2237
+ counts drive DCN's half-step form; `theta` and `event_theta` reach the loop. Bitwise at
2238
+ the defaults.
2239
+ - **`ki_monitoring_mode` is removed from the PDE.** Each barrier is monitored as the
2240
+ product declares it. The two honest alternatives: `QuadParams.ki_monitoring_mode`
2241
+ (BGK stays in QUAD), or declare the KI continuous on the product.
2242
+ - **`event_projection` defaults to `None`**, the route's own treatment (CELL_AVERAGE on
2243
+ the shared-grid autocallable solvers, as before).
2244
+ - **`PDEEngine(params)` is the whole constructor**; Crank-Nicolson is the only built-in
2245
+ scheme. `theta=1.0` is backward Euler: first order in time and more diffusive, not
2246
+ "monotone" (monotonicity also needs the spatial operator's sign condition).
2247
+ - The first-passage continuous-KI correction and the asymptotic boundaries are
2248
+ unconditional (their opt-outs are removed).
2249
+ - **2D Heston/SLV damping:** event damping no longer follows the terminal switch
2250
+ (0.5's `use_rannacher=False` turned both off; set `event_damping_steps=0` too to keep
2251
+ that), and the 2D solvers read `terminal_damping_steps` as on/off (`> 0`).
2252
+ - A budget-basis `GridConfig` resolves `day_count` to `None` (the day basis is not in
2253
+ force), so a resolved grid (`PDEParams.resolved_grid()`) can be fed back as an overlay.
2254
+ - The grid "day" remains 1/252 of a solver year (`GridConfig.day_count`); it becomes the
2255
+ environment's business day in sub-project 3.
2256
+
2257
+ ## [0.5.0] - 2026-09-28
2258
+
2259
+ Intraday pricing: `quantark.intraday` values a contract at a timezone-aware timestamp
2260
+ instead of a date (spec: `docs/superpowers/specs/2026-09-15-intraday-pricing-design.md`),
2261
+ and its certification lives in `quantark.modelvalidation`, not in the runtime
2262
+ (spec: `docs/superpowers/specs/2026-09-18-intraday-modelvalidation-certification-design.md`,
2263
+ reference revision: `docs/superpowers/specs/2026-09-18-intraday-deterministic-reference-revision.md`).
2264
+ A certificate constrains the release, never the code. The autocallable engines agree on
2265
+ the maturity close, on an observation at the valuation instant, on the knock-out-reset
2266
+ snowball's contract rules and on a knock-out and knock-in at one instant (see Fixed).
2267
+
2268
+ The release also carries what `main` gained since 0.4.7: the simulated-path backtest,
2269
+ futures bucket hedging in the replay engine, the opt-in QUAD V2 engines, PnL explain,
2270
+ vol-model calibration and the Greeks facade (see "Also in this release").
2271
+
2272
+ ### Added
2273
+ - `quantark.intraday`: `value_intraday(request)` and `PricingSession.value_intraday`
2274
+ return an `IntradayValuationResult` with PV components, cashflows, a status per
2275
+ requested output and the provenance of every assumption. Three clocks: seconds-exact
2276
+ calendar time for carry and discounting, a versioned `VarianceProfile` (`desk`,
2277
+ `uniform`, `sessions_only`) mapped by `IntradayTimeMap` into `TradingClockVolSurface`
2278
+ for variance, and the contract's own day count for accruals. `TradingSessionCalendar`
2279
+ declares sessions, breaks, early closes and the payment time; a DST gap or fold is an
2280
+ error, never a guess.
2281
+ - Fixings: confirmed `Fixing`s replay through the lifecycle trackers; a fixing that is due
2282
+ but not published is replaced by the latest spot and recorded as an `AssumedFixing`,
2283
+ and the flows it can change carry that dependency. `ObservationRecord.observation_timestamp`
2284
+ gives a timed observation (intraday only).
2285
+ - Routes: QUAD V2 (snowball, Phoenix, knock-out-reset snowball), PDE (with an
2286
+ `under_resolved` diagnostic when the diffusion layer is not resolved), Monte Carlo,
2287
+ analytical digital (exact zero-variance limit) and analytical barrier/one-touch (gated
2288
+ by an exact admissibility test), behind an explicit capability matrix with fail-closed
2289
+ lookup (`docs/execution/intraday-capability-matrix.md`).
2290
+ - Greeks: desk-bump Greeks on the frozen float-time twin, point Greeks per route
2291
+ (`undefined` at a payoff kink), local theta with a declared step and unit,
2292
+ `roll_context` and `roll_through_events`.
2293
+ - Batch: `value_intraday_many`, prepared `spot_curve`s and provenance-preserving
2294
+ `aggregate_intraday`.
2295
+ - Lifecycle: trackers declare coupon arrears and a settled terminal claim.
2296
+ - `quantark.modelvalidation` schema 2: a quantity catalogue with per-quantity budgets,
2297
+ a `context` block with per-case overrides, semantic `expect:` cells, per-case random
2298
+ substreams, convergence axes with at least three levels, three-way verdicts on cells
2299
+ and aggregates, and a `contract` block an amendment may not change. Schema-1 studies,
2300
+ evidence and wire format are unchanged.
2301
+ - A deterministic reference kind (`reference_kind = "deterministic"`): a typed record
2302
+ with a radius per quantity that declares itself `analytical` or a `calibrated_estimate`,
2303
+ consumed whole by the gate (`bounds.radius_budget_fraction`, no interval multiplier) and
2304
+ added linearly in the aggregate. `reference_qualification` names a stochastic arm that
2305
+ must agree with it case by case; an unqualified case is not decision-eligible, and the
2306
+ arm's sampling is frozen in the contract.
2307
+ - Anchors of quantities that difference prices: a candidate may declare
2308
+ `anchor_noise_weights(case)`, the L1 weight of each quantity's price stencil, and off the
2309
+ banking machine such an anchor is compared at the prices' tolerance carried through that
2310
+ stencil (`modelvalidation.anchors.anchor_tolerance`). The intraday snowball candidates
2311
+ declare the runtime's desk bump and theta step. A one-second desk theta had moved 2.2e-8
2312
+ relative on x86_64 while the prices it differences agreed within 1e-9; the new tolerance is
2313
+ at most 4e-8 of a spot Greek's column scale and 2e-6 of desk theta's. Same-machine
2314
+ comparison stays exact.
2315
+ - `python -m quantark.modelvalidation bank <run dir>`: validates, refuses quick runs,
2316
+ extracts anchors and never overwrites a banked directory.
2317
+ - Study `snowball_intraday_daily_ki_bsm.yaml`: the daily-KI snowball on the intraday
2318
+ clock, 23 cases, QUAD V2 and PDE intraday routes against the engine-independent
2319
+ Gaussian-transition reference, qualified by paired RQMC. Banked 2026-09-19
2320
+ (`docs/modelvalidation/certificates/snowball-intraday-daily-ki-bsm/2026-09-19`, digest
2321
+ `a0569e97687cc01c...`): `SnowballQuadEngineV2` ADMITTED, `SnowballPDESolver` REJECTED.
2322
+
2323
+ ### Removed (breaking)
2324
+ The import shims deprecated in 0.4.x are removed, as announced:
2325
+ - `quantark.backtest.otc` and its twelve modules. Import from `quantark.backtest.replay`
2326
+ (`config`, `single`, `market`, `engine_factory`, `strategy_state`, `results`,
2327
+ `product_replay`, `dashboard`), `quantark.param.vol.surface_history` (was
2328
+ `otc.vol_history`) and `quantark.volcalibration.calibrate` (was `otc.vol_calibrators`).
2329
+ - `quantark.volmodels.calibration`: use `quantark.volcalibration.calibrate` (the same module;
2330
+ a monkeypatch on its kernels reaches the calibrator as before).
2331
+ - `VolModelCalibrationConfig` and `HESTON_PRESETS` are no longer re-exported from
2332
+ `quantark.backtest.replay` or `quantark.backtest.replay.config`: import them from
2333
+ `quantark.volcalibration.config`.
2334
+
2335
+ ### Changed
2336
+ - PDE delta and gamma are read off a local cubic through the four log-spot nodes around
2337
+ the spot (`BasePDESolver._calculate_delta_gamma`; a three-node grid keeps the quadratic).
2338
+ The nearest-node quadratic carried that node's constant curvature to the spot: an O(dx)
2339
+ gamma error whose sign flipped as refinement moved the nearest node across the spot.
2340
+ Every PDE engine's delta and gamma move; PV does not. The replay goldens moved by at most
2341
+ 1.2e-4 of scale in delta and 3.6% in gamma. The four studies that anchor PDE Greeks were
2342
+ re-certified and banked 2026-09-28 with every decision unchanged (ADMITTED):
2343
+ `snowball-flat-bsm` (`ccba1c32d4055333...`), `phoenix-flat-bsm` (`8cd5584888009924...`),
2344
+ `ko-reset-flat-bsm` (`722b7726fadc4d41...`) and `snowball-localvol-1d`
2345
+ (`c0d62f9f4c0986a9...`); their predecessors are retired with `superseded_by`. On those
2346
+ cells the readout is accuracy-neutral (worst cells move by at most 0.004 of a
2347
+ 0.5-contract bound).
2348
+ - `quantark.intraday` returns what it computes. Every requested output carries its own
2349
+ status (`ok`, `undefined`, `failed`, `not_requested`) with diagnostics; the `unqualified`
2350
+ status, the `certify=` flags, `GreekValue.error_budget` and the packaged Gate C evidence
2351
+ (`quantark/intraday/evidence`) are removed. The PDE resolution verdict is `under_resolved`.
2352
+ The runtime reads no certificate and does not import `quantark.modelvalidation`.
2353
+ - The Gate C evidence is archived under `docs/modelvalidation/legacy/intraday-gate-c/2026-09-18/`
2354
+ with an inventory of what each fixture's successor study is.
2355
+ - A knock-out and a knock-in observed at the same instant: the knock-out wins, on every
2356
+ autocallable and every engine (desk ruling, 2026-09-21). The knock-in observed with it neither
2357
+ disables that knock-out under `disable_ko_after_ki` nor, on a knock-out-reset snowball,
2358
+ replaces the first schedule. The rule is for a discretely observed knock-in; a continuously
2359
+ monitored level breached at an observation was touched before it and keeps its precedence.
2360
+ One spot breaches both only when the knock-out level is at or below the knock-in level, so the
2361
+ usual contract is unchanged: 240 prices (three products, Monte Carlo, PDE, QUAD V1 in both
2362
+ event projections and QUAD V2, discrete and continuous knock-in, flag on and off) are
2363
+ byte-identical before and after. On a tie contract the engines used to disagree (spot 70,
2364
+ knock-out at 60 under a knock-in at 75, monthly observations): the snowball under
2365
+ `disable_ko_after_ki` was -22.4 on Monte Carlo, PDE and QUAD V1 against 14.0 on QUAD V2; the
2366
+ Phoenix 82.1 on Monte Carlo and both QUAD engines against 100.2 on PDE; the knock-out-reset
2367
+ snowball -21.6 against 14.0 on QUAD V2, with or without the flag. All four now agree with a
2368
+ semi-analytic reference (the snowball under the flag with two observations: 3.0803, where the
2369
+ knock-in winning gives -18.1045).
2370
+ Changed: `SnowballMCEngine` (both products) and `PhoenixMCEngine` (a knock-out at the knock-in
2371
+ instant is valid), `SnowballPDESolver` and `KOResetSnowballPDESolver` (the knock-out jump on
2372
+ the not-knocked-in surface goes after the knock-in jump where the knocked-in surface does not
2373
+ carry it, at interior observations and in the terminal condition), `SnowballQuadEngine`,
2374
+ `KOResetSnowballQuadEngine` and `PhoenixQuadEngine` (the same, in both event projections),
2375
+ and QUAD V2's Phoenix, which let the knock-in win under the flag on purpose. `PhoenixPDESolver`
2376
+ already let the knock-out win. The event-statistics sweeps of the PDE and QUAD V1 engines are
2377
+ not reordered, and the two-dimensional vol-model solvers were not examined.
2378
+
2379
+ ### Fixed
2380
+ - The maturity close under `BEFORE`, where every remaining event is decided on the known
2381
+ spot. The QUAD V2 intraday route raised there; the Monte Carlo route priced a claim that
2382
+ knocks in or out at that instant as if it had survived (12 where the lifecycle pays -30 at
2383
+ spot 70), and the PDE route paid a knock-out decided there as a survival (the rebate, not
2384
+ the knock-out coupon; its desk theta one hour earlier was wrong by 7 per hour). All three
2385
+ routes now resolve the decided claim through the runtime's own event resolution.
2386
+ - The same defect at its source: the zero-maturity shortcut of `SnowballMCEngine`,
2387
+ `SnowballPDESolver` and `SnowballQuadEngine` returned the terminal payoff of the carried
2388
+ knock-in state and never applied the observations still pending at that instant, although
2389
+ each engine decides such observations correctly whenever more of the claim lies ahead.
2390
+ They now share `SnowballOption.decide_observations_at_valuation`. Day-level dated products
2391
+ cannot reach this state (valuation on the exercise date is refused); a time-based product
2392
+ at zero maturity can.
2393
+ - The same defect in the other two autocallables. At zero maturity `PhoenixMCEngine`,
2394
+ `PhoenixPDESolver` and `PhoenixQuadEngine` returned the redemption alone: the last coupon,
2395
+ the memory arrears it releases, a knock-out and a knock-in at the last observation were
2396
+ dropped (Monte Carlo and QUAD V1 also dropped a knock-in carried from an earlier day). The
2397
+ knock-out-reset snowball's shortcut in `SnowballMCEngine`, `KOResetSnowballPDESolver` and
2398
+ `KOResetSnowballQuadEngine` ignored the pending knock-out of the schedule in force (pre-KI
2399
+ before a knock-in, post-KI after one), and QUAD V1 the carried knock-in. They now call
2400
+ `PhoenixOption.decide_observations_at_valuation` and
2401
+ `KnockOutResetSnowballOption.decide_observations_at_valuation`. The Monte Carlo and PDE
2402
+ intraday routes resolve the maturity close for all three autocallables; the knock-out-reset
2403
+ snowball, which the runtime cannot replay, is decided from its float-time twin, and its QUAD
2404
+ V2 route no longer raises there.
2405
+ - The knock-out-reset snowball's two contract rules, on every engine: a knock-in REPLACES the
2406
+ first knock-out schedule by the second and stays to the end, and the second schedule only
2407
+ becomes effective through a knock-in DURING the first, so a contract not knocked in when the
2408
+ first schedule ends has matured there (`KnockOutResetSnowballOption.first_schedule_ended`,
2409
+ `require_alive`). `SnowballMCEngine` kept testing discrete knock-in records after the first
2410
+ schedule had ended (3.41 against 5.94 from PDE and QUAD on a contract with monthly knock-in
2411
+ records for a year and a six-month first schedule), read a spot-dependent rebate off the end
2412
+ of the time grid instead of the end of the first schedule, and ignored a knock-in carried
2413
+ into the valuation. `KOResetSnowballQuadEngine` always priced the not-knocked-in state and
2414
+ refused a contract whose first schedule had ended; it now reads the knocked-in surface, on
2415
+ a lattice pinned to the second schedule's level. Every engine, and the intraday twin, priced
2416
+ or refused the wrong way round past the first schedule: a knocked-in contract is now valued
2417
+ there on all of them, and one not knocked in is refused as matured instead of being priced
2418
+ with the first schedule extended to the final maturity.
2419
+ - `SnowballMCEngine`, knock-out-reset contracts: the second schedule is in force from the
2420
+ observation that knocks the contract in, that observation included, as in the PDE and QUAD
2421
+ engines (and in this engine's own REBASED branch). Monte Carlo counted it strictly after the
2422
+ knock-in, which only shows when the second schedule's level is at or below the knock-in
2423
+ level: 4.60 against 4.75 there, now 4.74 +/- 0.01. The usual contract is unchanged.
2424
+ - `PhoenixQuadEngine` never read `CouponBarrierConfig.initial_coupon_arrears`: memory coupons
2425
+ owed at the pricing date were worth nothing. They are released by the first period that pays,
2426
+ as the Monte Carlo and PDE engines release them.
2427
+ - `AutocallableLifecycleTracker.settle_maturity_if_due` raised `TypeError` for every Phoenix
2428
+ alive at maturity: it called `get_payoff` with the snowball's signature. This reached the
2429
+ portfolio lifecycle manager and the backtest replay, not only intraday valuation.
2430
+ - `PhoenixPDESolver`: a knock-out decided at the valuation instant (any instant, not only
2431
+ the last) left out the memory coupons in arrears, which Monte Carlo, QUAD V2 and the
2432
+ lifecycle tracker release with that period's coupon (101 against 106 with five owed).
2433
+ - An observation at the valuation instant with more of the claim ahead. `PhoenixQuadEngine` and
2434
+ `KOResetSnowballQuadEngine` skipped it (their time grid drops time zero): no knock-out, no
2435
+ coupon, no missed-coupon memory and no knock-in from it, so a Phoenix observed now at 104 was
2436
+ 94.54 against 101 on PDE and QUAD V2, and one at 90 exactly one coupon short.
2437
+ `SnowballMCEngine` refused a knock-out-reset contract observed now (`dt_array must have
2438
+ strictly positive entries`, in pricing and in the event statistics): its grid kept time zero as
2439
+ a simulation node where the plain snowball's grid reads such a record off the known spot. All
2440
+ three now decide the observation on the known spot, and each engine satisfies the identities
2441
+ that need no second engine: a coupon observed now raises the price by exactly the coupon, a
2442
+ memory coupon missed now equals the contract carrying it as arrears, and a knock-in observed
2443
+ now equals the contract carrying the knock-in (to 1e-8, on all four engines).
2444
+ - A Phoenix coupon pays principal x rate x the period's own fraction. The daily lifecycle
2445
+ tracker passed no fraction to `get_coupon_payoff` and got a silent 1.0, so a monthly
2446
+ product paid about 12x more through the tracker than through any engine. The quotation
2447
+ is now declared, `AccrualConfig.is_annualized_coupon` (default annualized, as every engine
2448
+ already priced: engine PVs are unchanged), and `get_coupon_payoff` resolves the contract's
2449
+ own fraction or fails closed. The tracker also kept missed memory coupons only as a count
2450
+ and returned before the coupon loop on a knock-out; both now match the engines.
2451
+
2452
+ ### Also in this release (merged to `main` since 0.4.7)
2453
+ - `quantark.backtest.simulation`: simulated-path ensemble backtest for autocallable books.
2454
+ `MarketPath` batches from a stationary block bootstrap of the joint spot/vol/carry
2455
+ history, GBM or designed stress paths; the CFFEX IM chain read off each path's carry
2456
+ curve; a vectorised lifecycle and futures ledger; exact, spot-ladder and PDE
2457
+ life-surface repricing providers with in-memory and on-disk state caches; a sampling
2458
+ accuracy gate; spawn-pool path batching; a conformance oracle against the replay
2459
+ engine; distributions with expected shortfall, paired comparisons on matched paths and
2460
+ run persistence. Worked study: `example/snowball_simulated_paths`.
2461
+ - Replay engine, futures carry buckets: immutable carry scenarios, signed bucket
2462
+ aggregation, joint delta and parallel carry hedge strategies, a multi-leg futures ledger
2463
+ with atomic execution, carry audits by independent repricing, stress of unquoted carry,
2464
+ and an opt-in term-structure dividend source.
2465
+ - QUAD: opt-in QUAD V2 Gaussian autocallable engines (`quantark.asset.equity.engine.quad.v2`:
2466
+ `SnowballQuadEngineV2`, `PhoenixQuadEngineV2`, `KOResetSnowballQuadEngineV2`,
2467
+ `AutocallableQuadEngineV2`). `QuadParams.readout` selects `"legacy_linear"` (default) or
2468
+ `"transition"`, which evaluates the final transition at the spot instead of interpolating
2469
+ between nodes (no delta staircase); `QuadParams.align_cell_stretch` (opt-in, `None` by
2470
+ default) puts every barrier on a node at once. Defaults leave every price unchanged.
2471
+ - `quantark.pnlexplain`: waterfall and Taylor attribution of PV changes, lifecycle
2472
+ transitions, bucketed factor coordinates, trading-clock theta, and portfolio, position
2473
+ and quoted-leg explain with a replay recorder.
2474
+ - `quantark.volcalibration`: market quotes to IV surface to LV/Heston/SLV calibration,
2475
+ with quote normalization, admission checks, a run store and a CLI
2476
+ (`python -m quantark.volcalibration`).
2477
+ - Risk measures: the `GreeksCalculator` facade over a `GreekDef` registry, higher-order
2478
+ Greeks (speed, zomma, dividend volga, analytical closed forms) and a dual-clock theta
2479
+ suite (charm, color, vega/gamma theta, 1D/1TD, exact mode).
2480
+ - Changed: scalar rho parallel-shifts the rate curve instead of replacing it with
2481
+ `FlatRateCurve(r(T) + bump)`, which measured a curve reshaping on any term structure
2482
+ (98x the parallel-shift rho on a 1%/3%/5% curve); flat curves are bitwise unchanged. On
2483
+ a trading clock the vol bump unit is one point of the trading-quoted sigma.
2484
+
2485
+
2486
+ ## [0.4.7] - 2026-08-25
2487
+
2488
+ Settlement-date-aware payoff discounting across the equity option stack
2489
+ (spec: `docs/superpowers/specs/2026-07-29-equity-option-settlement-date-support-design.md`,
2490
+ plan: `docs/plans/2026-07-29-equity-option-settlement-date-support.md`).
2491
+ Determination and payment are now two separate clocks: underlying dynamics,
2492
+ monitoring and optimal exercise stop at determination; every cashflow
2493
+ discounts at its own payment time with curve-exact discount factors.
2494
+
2495
+ Alongside it, autocallable batch pricing gets its performance pass — the PDE
2496
+ solve loop no longer re-serializes the product on every time step, and the
2497
+ QUAD event-stats recursion gains a fused KI walk plus an opt-in forward
2498
+ transition-density mode (`docs/autocall-engine-perf/`).
2499
+
2500
+ ### Added
2501
+ - `quantark.asset.equity.settlement`: shared settlement timing kernel —
2502
+ `SettlementConvention` (business-day / calendar-day / year-fraction lag
2503
+ with business-day adjustment and calendar), `SettlementRequest`,
2504
+ `ResolvedPaymentTiming` (determination/payment times + curve-exact
2505
+ `determination_df`/`payment_df`/`delay_df`), `SettlementResolver`
2506
+ (`resolve_contingent` / `resolve_pending`). No fabricated dates: a
2507
+ date-based convention on a time-only determination raises.
2508
+ - Product contract: `BaseEquityOption.settlement_convention`; the existing
2509
+ terminal `settlement_date` is now honored by engines as the
2510
+ terminal-payment override; per-record `ObservationRecord.settlement_date` /
2511
+ `settlement_time` drive event-cashflow payment (KO redemptions, coupons,
2512
+ hit-paid rebates) across analytical, MC, PDE and QUAD engines for the
2513
+ BSM / Local Vol / Heston / SLV families.
2514
+ - American exercise obstacle reflects delayed cash receipt in PDE and LSMC
2515
+ (node-specific `delay_df`); analytical American approximations raise a
2516
+ capability error for settlement forms they cannot represent.
2517
+ - Engines declare settlement/timing capabilities and raise precise
2518
+ capability errors before numerical work rather than silently pricing at
2519
+ determination.
2520
+ - Lifecycle: pending-cashflow ledger
2521
+ (`quantark.asset.equity.lifecycle.cashflows`) carries
2522
+ determined-but-unpaid receivables at `amount * DF(valuation, payment)`
2523
+ through payment; `price(..., lifecycle_state=...)` propagates through
2524
+ engines, positions, portfolio valuation, Greeks and the consolidated
2525
+ replay backtest (settlement decomposition; KO termination waits for
2526
+ terminal cash to land).
2527
+ - Payment-aware event statistics: determination/payment time arrays with
2528
+ undiscounted and discounted expected cashflows that reconcile to engine
2529
+ PV.
2530
+ - QUAD autocallable engines: opt-in `QuadParams.event_stats_mode="forward_density"`
2531
+ computes the event distribution from a forward transition-density march
2532
+ (2–3 surfaces instead of one indicator row per KO observation). `npv` is
2533
+ unchanged (always the backward value solve); distribution fields differ
2534
+ within the banked validation tolerances
2535
+ (`docs/autocall-engine-perf/FORWARD-DENSITY-EVIDENCE-2026-08.md`).
2536
+ KO-reset ignores the flag. Default remains `"stacked"`.
2537
+
2538
+ ### Changed
2539
+ - Snowball/Phoenix PDE: the product cache token is now memoized per solve
2540
+ (`SnowballPDESolver._product_token_memo`, cleared at every solve entry).
2541
+ The boundary-condition path previously re-serialized the whole product —
2542
+ every KO/KI schedule record — once per time step, >90% of a snowball
2543
+ solve; bit-identical output, ~7× faster per solve
2544
+ (`docs/autocall-engine-perf/FINDINGS-2026-08-24.md`).
2545
+ - QUAD stacked event stats: the KI-probability recursion now rides the main
2546
+ stacked recursion as fused surfaces (bit-identical output, one fewer full
2547
+ time loop per `price_with_events`); identically-zero indicator rows are
2548
+ skipped in the diffusion/bridge steps and the row-independent bridge
2549
+ kernel stack is cached per engine (64-entry bound). Bit-identical output.
2550
+ - QUAD `price_with_events` now honors `streams` pruning [§11.1], mirroring
2551
+ the PDE contract: KI-probability recursion and Phoenix coupon rows are
2552
+ skipped when no requested stream reads them. Callers that pass `streams`
2553
+ (the execution framework's greek-bump runner does) get `0`/empty for
2554
+ pruned distribution fields where QUAD previously returned computed values;
2555
+ `ko_probability`/`survival`/`pv` and all requested fields are unchanged.
2556
+ `streams=None` keeps the old full computation.
2557
+ - **The flat dividend/carry sanity bound moves from 20% to 100%**
2558
+ (`ContinuousDividendYield`, the BSM process gate, and the market-data
2559
+ point model), matching `TermStructureDividendYield`'s own magnitude
2560
+ bound. OTC borrow/lending carry (融券率) legitimately exceeds 20% on
2561
+ some trades; the 100% ceiling still rejects unit errors (entering
2562
+ `26.89` for `0.2689`). Values between 20% and 100% now price instead of
2563
+ raising `ValidationError`.
2564
+
2565
+ ### Fixed
2566
+ - Repository tooling only — not shipped in the wheel, which contains
2567
+ `quantark/` alone. The `mo_volmodels` dashboard decided whether a results
2568
+ aggregate was stale by comparing two ISO-8601 stamps as strings, which
2569
+ orders correctly only when both carry the same UTC offset. Read from a
2570
+ zone other than the one that wrote the cells, an aggregate *newer* than
2571
+ the cells it summarises was reported stale. It now compares instants.
2572
+ - Repository tooling only. The same dashboard read git commit dates with
2573
+ `datetime.fromisoformat`, which rejects an RFC 3339 `Z` suffix on Python
2574
+ 3.10 (3.11 was the release that learned it). `git log --format=%cI`
2575
+ renders a UTC commit date as `...Z` on some git versions, so reading a
2576
+ repository committed under UTC raised `Invalid isoformat string` on the
2577
+ oldest supported Python. All three readers now share one parser that
2578
+ accepts both spellings.
2579
+
2580
+ ### Compatibility
2581
+ - Zero-lag identity: with no settlement terms supplied, payment equals
2582
+ determination (`delay_df == 1`) and all prices, Greeks, event statistics
2583
+ and exercise boundaries are unchanged — verified by the existing suite
2584
+ plus the dedicated settlement test files.
2585
+
2586
+ ### Also in this release
2587
+ - Constructor normalization forwarding the shared lifecycle fields across
2588
+ the concrete equity option products (wip/equity-option-contract).
2589
+ - Heston temporal regularization in the ADI core
2590
+ (wip/heston-temporal-regularization).
2591
+ - PDE regression coverage ports, per-module reference docs, example suites
2592
+ (FX vol models, snowball backtest terms, bucketed-greeks scenarios), and
2593
+ modelvalidation certification archival.
2594
+
2595
+ ## [0.4.6] - 2026-08-20
2596
+
2597
+ 0.4.5's test suite passed on the ARM64 machine its goldens were frozen on and
2598
+ failed 28 tests on x86_64 Linux. Chasing that down found one genuine pricing
2599
+ defect and a set of comparisons that were architecture-dependent by accident.
2600
+ The published 0.4.5 package is unaffected except as noted below.
2601
+
2602
+ ### Fixed
2603
+ - **Parallel-batch pricing of continuously monitored knock-in under Local Vol /
2604
+ Heston / SLV Monte Carlo.** The per-step variance the Brownian-bridge crossing
2605
+ estimate needs was held in a single engine attribute, written while simulating
2606
+ and read while computing payoffs. The dask path (`use_dask=True`) submits every
2607
+ batch through `delayed`/`compute` on the threaded scheduler, so batches sat
2608
+ between their own generation and their payoffs concurrently on one engine and
2609
+ overwrote each other — 20,000 paths over 3 batches is 6667/6667/6666. Now
2610
+ scoped per thread, which is where a batch begins and ends. A shape guard made
2611
+ this raise rather than price one batch against another's variance, so no wrong
2612
+ number could have been returned; serial pricing was never affected.
2613
+ - `quantark.modelvalidation.anchors`: comparing a banked certificate off the
2614
+ banking machine now floors the tolerance at the suite's cross-architecture
2615
+ standard (`DEFAULT_REL_TOL` 1e-12 → 1e-9, `DEFAULT_ABS_TOL` 1e-15 → 1e-12).
2616
+ Measured across 326 anchors, x86_64-vs-ARM64 drift spans 1e-14 to 2.2e-11
2617
+ relative (median 2.0e-12, both signs, no outlier of a different order): last-ULP
2618
+ differences in FMA contraction, libm transcendentals and BLAS kernels, amplified
2619
+ by an autocallable PDE/QUAD solve marching hundreds of steps through barrier
2620
+ events. The bound keeps ~44x margin over that and stays six orders under any
2621
+ real numerics change. Applied as a floor on each banked file's own tolerances,
2622
+ so already-banked evidence is corrected without its anchored *values* being
2623
+ touched. Same-machine comparison remains exact.
2624
+
2625
+ ### Changed (tests)
2626
+ - The replay golden gate compares floats against each column's scale rather than
2627
+ bitwise. These frames carry bump derivatives, so the rounding noise is set by
2628
+ the magnitude of the price being differenced and is near-constant in absolute
2629
+ terms down a column: gamma drifts 4.6e-10 against a column max of 43, and the
2630
+ same quantity in cash drifts 3.8e-8 against 4,301 — one ratio, ~1e-11. Column
2631
+ names and order, row count, and integer, string and date columns still compare
2632
+ exactly. New tests pin the tolerance itself: it admits the measured drift,
2633
+ rejects 1e-6 of column scale, and every real golden frame is checked against a
2634
+ simulated drift locally, because bitwise-identical frames short-circuit before
2635
+ any tolerance is consulted and made earlier calibration bugs invisible here.
2636
+ - Two cross-architecture anchor tests hardcoded the fingerprint
2637
+ `{"machine": "x86_64", "system": "Linux"}` — which is the CI machine, so there
2638
+ they took the same-machine *exact* branch, the opposite of what they verify.
2639
+ They now derive a fingerprint that cannot be the current machine.
2640
+ - `test_event_stats_pruning` pinned a PV of ~9.9e5 with a `1e-6` absolute
2641
+ epsilon, i.e. 1e-12 relative — tighter than the measured drift, passing on
2642
+ margin rather than by design. Now on the documented cross-arch tolerance.
2643
+ - A settlement fixture placed a strike exactly on the parity-implied forward.
2644
+ Stage 10 splits OTM puts from calls with `strike < forward` against an
2645
+ OLS-regressed forward, so that strike changed side with the last ULP of the
2646
+ regression. The grid now keeps every strike clear of the forward.
2647
+
2648
+ ## [0.4.5] - 2026-08-19
2649
+
2650
+ Two programs land together: **model-release certification** — the first
2651
+ module that decides whether an engine is fit to ship, and the numerics
2652
+ fixes that decision surfaced — and the **backtest replay consolidation**.
2653
+
2654
+ ### Model-release certification
2655
+
2656
+ #### Added
2657
+ - `quantark.modelvalidation`: engine-release certification. A study YAML
2658
+ declares the product, the market environment, the candidate engines and
2659
+ the economic scale; the runner prices every (candidate, case) cell against
2660
+ a paired-RQMC benchmark, applies per-cell and aggregate-bias gates, and
2661
+ emits a signed certificate, a Markdown/HTML report, and an *anchor file*.
2662
+ Anchors are the cheap residue of an expensive run — the deterministic
2663
+ engines' own outputs at the certified configurations — so CI can re-check
2664
+ in seconds that a released engine still produces what its certificate
2665
+ claims (exact on the banking machine, tolerance-based elsewhere).
2666
+ `amend` extends a certification's scope while carrying unaffected cells
2667
+ forward on identity hashes; scope may grow but never shrink.
2668
+ Procedure: `docs/modelvalidation/RELEASE_PROCEDURE.md`.
2669
+ - Banked flat-BSM certifications for snowball (23 cases), phoenix (14) and
2670
+ KO-reset snowball (14), PDE and QUAD both ADMITTED, under
2671
+ `docs/modelvalidation/certificates/`, covering the full product feature
2672
+ surface: discrete / European / stepping knock-in, step-down and parachute
2673
+ knock-out, reverse, airbag, protection types, participation, call rebate,
2674
+ `disable_ko_after_ki`, and EXPIRY coupons.
2675
+
2676
+ #### Fixed
2677
+ - **Continuous knock-in was monitored at the time-step width** by the
2678
+ local-vol, Heston and SLV solvers, which were gated off the FIRST_PASSAGE
2679
+ correction. The correction is barrier-local, so it never needed globally
2680
+ constant coefficients — only the dynamics at the barrier. Each solver now
2681
+ reports its own: `sigma_loc(barrier, t)` for local vol, one
2682
+ `(mu, sigma^2)` per variance column for Heston, and `L(barrier,t)^2 * v`
2683
+ for SLV. On a flat surface the local-vol solver had been bitwise identical
2684
+ to the *uncorrected* flat-BSM solver (+0.099% of PV). Applies to the
2685
+ snowball and phoenix families alike; the phoenix 2-D solvers had never
2686
+ built the state at all.
2687
+ - **The Monte Carlo continuous-KI Brownian bridge used the implied vol at
2688
+ the strike** as the variance of every path and every step. The vol-model
2689
+ engines now supply the log-variance their own scheme accumulated. Against
2690
+ the closed-form first-passage probability the error falls from -10.0 / -8.5
2691
+ / -9.2 standard errors (Heston / local vol / SLV) to inside 4.
2692
+ - The first-passage correction estimated its slope from a node that could sit
2693
+ a fraction of a cell above the barrier, where the knock-in mask's own step
2694
+ — not the slope — dominates. Sampling is now floored at half a cell.
2695
+ - `PhoenixOption` never built its knock-in observation schedule, so a
2696
+ discretely monitored phoenix raised instead of pricing.
2697
+ - `disable_ko_after_ki` was ignored by the snowball and phoenix PDE solvers,
2698
+ which wrote the knock-out payoff to the knocked-in surface as well.
2699
+ - Phoenix `coupon_pay_type=EXPIRY` coupons roll up and are paid at
2700
+ termination — the knock-out settlement when it knocks out, maturity
2701
+ otherwise — and are never forfeited. All three engine families agree;
2702
+ PDE and QUAD gained a termination-value surface to price it.
2703
+
2704
+ #### Changed
2705
+ - Continuous knock-in prices move in the local-vol, Heston and SLV engines
2706
+ (PDE and Monte Carlo). Discretely monitored, European and no-knock-in
2707
+ products are bitwise unchanged, verified across 54 engine/product/
2708
+ monitoring combinations; the sole exception is the opt-in
2709
+ `KnockInMonitoringMode.BGK_APPROXIMATION`, which replaces a discrete
2710
+ schedule with continuous monitoring by design.
2711
+
2712
+ ### Backtest replay consolidation
2713
+
2714
+ (spec: `docs/superpowers/specs/2026-07-30-backtest-replay-consolidation-design.md`).
2715
+
2716
+ #### Added
2717
+ - `quantark.backtest.replay`: canonical home of the product-replay backtest —
2718
+ ONE multi-product daily loop (`ReplayBacktestEngine`/`ReplayBacktestConfig`/
2719
+ `ReplayProduct`/`ReplayBacktestResults`); the single-product
2720
+ `AutocallableBacktestEngine` is now a book-of-one wrapper with byte-identical
2721
+ output (golden-gated). Book runs gain per-day vol-model calibration.
2722
+ - `quantark.backtest.futures_ledger`: shared `FuturesHedgePosition` +
2723
+ `FuturesRollPolicy`.
2724
+ - `quantark.backtest.metrics.CorePerformanceMetrics`: cross-asset metrics over
2725
+ the `BaseBacktestResults` protocol; replay results expose `.metrics` and the
2726
+ full protocol; equity `PerformanceMetrics` now extends the core.
2727
+ - `quantark.backtest.replay.schema`: typed row schemas — the single source of
2728
+ truth for every record column.
2729
+ - Pending-settlement KO termination: `terminate_on_lifecycle_end=True`
2730
+ (default) ends a replay when terminal cash lands (observation vs settlement
2731
+ are separate moments; discounted receivable carried in portfolio value);
2732
+ summaries gain `termination_reason` / `days_replayed` / `days_in_contract`.
2733
+ - `AutocallableEngineConfig.event_stats_fallback` (`"none"` default): the
2734
+ silent 5000-path MC event-stats fallback is now opt-in, logged, and recorded
2735
+ per row in the new `event_stats_engine` column.
2736
+ - `BumpConfig.gamma_spot_bump`: engine-side asymmetric gamma bumping;
2737
+ replay-side manual bumping removed (greeks are always
2738
+ `engine.calculate_greeks`, failures raise — no silent zero-delta days).
2739
+ - `AutocallableDeltaHedgeStrategy` joined the `BaseStrategy` hierarchy
2740
+ (`quantark.backtest.strategy`).
2741
+
2742
+ #### Changed
2743
+ - Relocations (old paths remain as `DeprecationWarning` shims until 0.5.0):
2744
+ `quantark.backtest.otc.*` -> `quantark.backtest.replay.*`;
2745
+ `otc.vol_calibrators` -> `quantark.volmodels.calibration`;
2746
+ `otc.vol_history` -> `quantark.param.vol.surface_history`;
2747
+ `_atomic_write_json` -> `quantark.util.io.atomic_write_json`.
2748
+ - Replay books with `vol_model != "bsm"` reject non-Snowball products at
2749
+ config construction (the vol-model engine factory is snowball-only).
2750
+ - **Heston/Heston-SLV Snowball and Phoenix 2D PDE solvers default
2751
+ `v0_boundary="degenerate_pde"`** (was the ADI core's `"neumann"`), and accept
2752
+ it as a constructor argument. Smile-calibrated Heston sits near the Feller
2753
+ boundary, where the Neumann treatment of the `v = 0` edge mis-prices by
2754
+ −0.540% of notional against a QE-M MC reference while the degenerate
2755
+ treatment holds +0.156%. `"neumann"` remains selectable for cross-checks.
2756
+ **Prices change** for these four solvers at default settings.
2757
+ - **Heston/Heston-SLV Snowball concentrated PDE grids default to a power-graded
2758
+ variance axis** (`v_grid_power=2.5`) to resolve the near-zero layer around the
2759
+ Feller boundary. `v_grid_power=0.0` retains the legacy concentrated mesh for
2760
+ explicit cross-checks; uniform grids remain ungraded. **Snowball Heston/SLV
2761
+ prices and finite-difference Greeks change** at default settings.
2762
+ - **The `mo_frozen` Heston preset enforces the Feller condition**
2763
+ (`enforce_feller=True`; the soft `regularize_feller` penalty is retained).
2764
+ Deliberate divergence from the `mo_volmodels` diagnostics scripts, which keep
2765
+ the soft-only policy. Feasibility is bought with smile accuracy — measured
2766
+ across 762 CFFEX MO settlement surfaces: median 8.4 bp, p90 29.3 bp, max
2767
+ 217 bp of IV. On 6.6% of dates the constraint is met by driving vol-of-vol to
2768
+ its lower bound, which degenerates Heston to deterministic variance; consumers
2769
+ should screen on the new `feller_ratio`. Heston and Heston-SLV calibration
2770
+ cache entries are invalidated automatically (the fingerprint embeds the
2771
+ preset); `localvol` entries are unaffected.
2772
+
2773
+ #### Fixed
2774
+ - `BaseEngine.calculate_greeks` and Gate G2's deterministic delta helper bypassed
2775
+ `create_bump_context`, so Heston/SLV central spot bumps rebuilt their S grids even
2776
+ though the solvers already provided a frozen-layout context. Base, up, down, and
2777
+ separate gamma reprices now all use the resolved base-market context.
2778
+ - `Heston2DAutocallableSessionAdapter` now preserves the Snowball solver's
2779
+ `v_grid_power`; an explicit grading or legacy opt-out no longer disappears when
2780
+ the execution session clones the engine. Gate metadata records the selected
2781
+ value and Stage 12 forwards it into the production engine options.
2782
+ - `calibrate_heston(enforce_feller=True)` failed closed on any problem where the
2783
+ constraint was active at the optimum and `ftol` was loose. SLSQP satisfies
2784
+ constraints only to about its own accuracy tolerance, but the feasibility
2785
+ buffer was a constant `1e-8` — measured slack is ~1e-9 at `ftol=1e-8` but
2786
+ ~1.6e-7 at `ftol=1e-6`, so the strict post-check rejected every fit. The
2787
+ buffer now scales as `max(1e-8, 10 * ftol)`; the post-check is unchanged and
2788
+ still fails closed.
2789
+ - `VolModelCalibrator` Heston records carry `feller_ratio` (`2*kappa*theta /
2790
+ sigma**2`) alongside `feller_margin`. The margin is a difference and so is not
2791
+ comparable across dates; the ratio is.
2792
+ - `Heston2DAutocallableSessionAdapter._clone_engine` rebuilds the engine from an
2793
+ explicit kwargs list and dropped `v0_boundary`, so a session or prepared-adapter
2794
+ run silently priced with the default boundary while the direct call honoured the
2795
+ constructor. Any 2D autocallable constructor argument omitted from that list
2796
+ fails this way — silently, with no error.
2797
+
2798
+ ## [0.4.0] - 2026-07-27
2799
+
2800
+ Clean rewrite of the PDE grid construction and event application layer
2801
+ (spec: `docs/superpowers/specs/2026-07-27-pde-grid-redesign-design.md`).
2802
+
2803
+ ### Added
2804
+ - `quantark.asset.equity.engine.pde.grid`: declarative grid layer —
2805
+ `GridRequest` (frozen geometry), `GridConfig` + accuracy profiles
2806
+ (`fast`/`standard`/`high`), ONE time builder (event-aligned, extras-scaled
2807
+ cap, damping schedules), ONE spatial builder (multi-point sinh, pinned
2808
+ auto-bounds, no barrier snapping), four-stage `EventSchedule`
2809
+ (terminal/interior/continuous/valuation-readout, pure block transforms),
2810
+ engine-owned `GridBinder` (LRU, `bind_shared` for same-underlying books,
2811
+ `rebind_time` for calendar rolls) and `GridLayerMixin` for
2812
+ BaseEngine-derived adopters.
2813
+ - `PDEParams(accuracy=..., grid=GridConfig(...))` tiered front door.
2814
+ - Frozen-`Layout` bump contexts: spot/vol/rate/div bumps reuse the base
2815
+ layout by object identity; calendar rolls rebind time on the same spatial
2816
+ object.
2817
+ - `HestonSLVADICore(x_nodes=...)`: 2D solvers take their S-axis from the
2818
+ shared spatial builder.
2819
+ - Tier-2 anchor certification (`test/pde_grid/test_anchor_certification.py`):
2820
+ MC/QUAD/closed-form/smoothness anchors gate every accuracy profile.
2821
+
2822
+ ### Removed (breaking)
2823
+ - Legacy grid modules `time_grid.py`, `spatial_grid.py`,
2824
+ `event_projection.py` (projection math moved verbatim to `grid/events.py`).
2825
+ - `PDEParams` knobs: `auto_grid`, `time_grid_type`, `grade_exponent`,
2826
+ `event_min_steps_per_interval`, `log_dx_target`,
2827
+ `include_spot_in_critical_points`, `frozen_critical_points`,
2828
+ `barrier_refine_log_width`, `barrier_refine_levels`,
2829
+ `barrier_domain_expand`, `adaptive_grid`, `event_steps_per_day`,
2830
+ `max_time_steps`, `max_grid_size` (the last three had no remaining
2831
+ consumers — `GridConfig.steps_per_day` / `max_steps` / `max_points` own
2832
+ those roles).
2833
+ - The class-level shared grid cache (`clear_grid_cache` is now a no-op).
2834
+
2835
+ ### Changed
2836
+ - All PDE prices reprice slightly (re-certified against MC/QUAD/closed-form
2837
+ anchors, goldens re-frozen): the layer builds concentration-based grids
2838
+ without barrier snapping — cell-average event projection is placement-
2839
+ independent — and event-aligned time grids emit one exact dt per interval
2840
+ (operator caches are arithmetic-neutral: cache-on == cache-off bitwise).
2841
+ - Grid-layer solvers REJECT non-default `grid_size`/`time_steps`/`s_min`/
2842
+ `s_max` with a `ValidationError` naming the `accuracy`/`GridConfig`
2843
+ replacement (previously the values would have been silently inert); the
2844
+ knobs remain live inputs for the standalone vol-model solvers only.
2845
+ - `make_pde_params` profiles (`fast`/`accurate`/`barrier_sensitive`/
2846
+ `reverse_sensitive`) now emit `accuracy`/`grid=GridConfig(...)` instead of
2847
+ the legacy knobs (which also fixes a crash: the product-hint path injected
2848
+ deleted `barrier_refine_*` keys).
2849
+ - Bump contexts (`create_bump_context`) clone via `deepcopy`, preserving
2850
+ full constructor state (Heston `model_params`, SLV leverage surfaces, ADI
2851
+ dimensions); `PDEEngine.create_bump_context` carries the frozen solver
2852
+ instance. Frozen layouts fail closed when reused across different hard
2853
+ (absorbing-barrier) bounds, and calendar-roll rebinds coverage-validate.
2854
+ - 2D Heston/SLV snowball/phoenix bump contexts freeze the ADI S-axis at the
2855
+ solve configuration (`n_x`, `num_std=8`) and reuse it by identity under
2856
+ market bumps (`_layer_x_nodes` routes through `resolve_bound_layout`);
2857
+ previously the S-axis was rebuilt per bump, mixing grid movement into 2D
2858
+ numerical greeks.
2859
+ - The scheme knobs are LIVE on the grid layer: `use_rannacher`/
2860
+ `rannacher_steps` drive terminal damping and `rannacher_at_events`/
2861
+ `event_rannacher_steps` drive event damping (the binder derives the
2862
+ damping schedule from them; explicit `GridConfig` fields still win). At
2863
+ default knob values the schedule is unchanged.
2864
+ - Prepared/session PDE pricing resolves solve state
2865
+ (`_prepare_for_request`) before fingerprinting grid geometry — BGK
2866
+ products no longer trip `DeterminismViolation` against their own
2867
+ preparation when an artifact cache is active.
2868
+
2869
+ ### Fixed
2870
+ - Autocallable PDE grids ignore out-of-reach critical-price markers (such as
2871
+ disabled 100× KO observations) for bounds and concentration while retaining
2872
+ the observation date and any coupon event. Dense critical sets now use
2873
+ bounded cumulative inversion of the Tavella-Randall monitor, removing the
2874
+ overflow-prone shooting path and its non-monotonic construction-time cliff.
2875
+ - Snowball/Phoenix QUAD event handling now defaults to cell-average projection
2876
+ and phase-stable trapezoidal integration. Unreachable KO markers are
2877
+ suppressed without deleting their dates, and the legacy nodal/Simpson
2878
+ behavior remains available explicitly.
2879
+ - QUAD can optionally refine nested odd grids until consecutive PV estimates
2880
+ satisfy configured absolute/relative tolerances. Fixed
2881
+ `grid_points=1001` remains a speed-oriented estimate rather than a universal
2882
+ convergence guarantee.
2883
+
2884
+ ### Deferred (recorded follow-ups)
2885
+ - Event-aligned 2D ADI time axis (uniform march retained).
2886
+ - Standalone vol engines (`LocalVolPDESolver`, `HestonPDESolver`,
2887
+ `HestonSLVPDESolver`, LV/Heston/SLV barrier engines, `HestonDCNPDESolver`)
2888
+ keep bespoke kernels and their `grid_size`/`time_steps`/`s_min`/`s_max`
2889
+ inputs; `event_projection` + Rannacher scheme knobs survive for the live
2890
+ characterization paths.
2891
+ - Stencil-delta accuracy on concentrated grids (~2e-3 absolute) —
2892
+ provisional 5e-3 anchor band.
2893
+
2894
+ ## [0.3.0] - 2026-07-20
2895
+
2896
+ First release of the `quantark.execution` framework kernel and the
2897
+ `quantark.execution.greeks` scenario layer. The `test_snowball_quad_flat_identity_golden`
2898
+ failure predates this program and remains quarantined (reproduces on
2899
+ unmodified main). The spec §20 controlled-host performance gates in
2900
+ `docs/execution/README.md` are documented as release-preparation evidence
2901
+ and were not re-measured on the release host.
2902
+
2903
+ ### Added
2904
+ - **`quantark.execution.greeks` — greek bumps as scenario cells** (spec
2905
+ 2026-07-20): `TradeState` per-trade base, same-type `greek-bump/v1`
2906
+ transformer with real spot/vol/rate/div/time mutation attribution,
2907
+ `greek-value/v1` float runner, and assemblers mirroring
2908
+ `EquityPosition.get_trade_risk` / `GreeksCalculator.
2909
+ calculate_numerical_greeks` operation-for-operation (bitwise unit gate).
2910
+ - **`PricingSession.run_scenario_plans`** — many `(base, specs)` plans
2911
+ packed through ONE bounded-window process pool (per-cell worker-spec
2912
+ payloads; the portfolio × bumps shape), with a per-plan error boundary
2913
+ under `collect_errors=True` (base-resolution/planning failures become
2914
+ aligned typed `PricingFailure`s while other plans execute).
2915
+ - **`quantark.execution` — composable execution kernel** (framework contract
2916
+ v1; spec `docs/superpowers/specs/2026-07-15-mc-pde-performance-generalization-design.md`).
2917
+ `PricingSession` wraps every exported MC/PDE engine without changing direct
2918
+ legacy behavior: adapter registry, resource budgets/leases, prepared-artifact
2919
+ and session draw caches, reproducibility manifests and immutable diagnostics.
2920
+ Capabilities: fixed-batch MC backends (serial/threads, bit-identical
2921
+ reductions in canonical order), adaptive RQMC session mode (bitwise vs
2922
+ direct across the 12 autocallable vol engines), PDE preparation artifacts
2923
+ (grids, step coefficients, factorization packs; one-solve PV/event/grid
2924
+ outputs across 18 prepared engines + FX LV), typed scenario execution with
2925
+ verified mutation footprints, spawn-safe `WorkerSpec` process workers, a
2926
+ Dask backend over the same plans, `price_many` grouping, and a
2927
+ complete-payload scenario validator. Published artifacts: generated
2928
+ [capability matrix](docs/execution/capability-matrix.md) (CI-fresh), policy
2929
+ guide, legacy-internals rationale, reproducibility JSON Schemas (validated
2930
+ against live payloads), and runnable migration examples. Adoption is
2931
+ inventory-driven and honest: `temporary_legacy` rows remain, and no
2932
+ universal framework support is claimed until the controlled-host gates pass.
2933
+ - **DCN (Digital Coupon Note)**: product + observation-schedule generator,
2934
+ curve-aware MC engine with leg decomposition and event stats, two-surface
2935
+ PDE engine with MC↔PDE cross-validation gates, LocalVol/Heston/QE/SLV DCN
2936
+ MC engines sharing one payoff kernel, MLMC-style coupled timestep-ladder
2937
+ Heston pair, SVI/cleaned-quote calibration layers with no-arbitrage and
2938
+ repricing-residual reports, node-bump vega buckets and carry-invariant rate
2939
+ bumps.
2940
+ - **Implied futures carry**: `IndexFuturesCurve` implied q(T), futures-tenor
2941
+ delta/rhoq buckets, delta-one futures rhoq, portfolio aggregation and hedge
2942
+ integration.
2943
+ - **Engine term-structure upgrade**: MC, PDE, and quadrature autocallable
2944
+ engines consume full r/q/vol term structures with a cross-family term
2945
+ agreement gate.
2946
+ - **Vol-model barrier exotics**: LV/Heston/SLV barrier MC pricers on a shared
2947
+ monitoring core, LV 1D barrier PDE, Heston/SLV 2D barrier ADI solvers.
2948
+ - **Vol-model numerics program (phases 2–5)**: vectorized Lewis Heston
2949
+ calibration (~21x), unified Heston/SLV ADI core, opt-in Krylov and TR-BDF2
2950
+ Fokker–Planck marches, opt-in QE-M martingale correction, concentrated
2951
+ (x,v) grids, degenerate v=0 Feller boundary, LV Rannacher start-up
2952
+ (default on), opt-in QMC sampling for Heston/SLV/LV kernels.
2953
+ - **PDE event-stats API** on Snowball/Phoenix vol solvers with event
2954
+ distributions surfaced through session outputs.
2955
+
2956
+ ### Changed
2957
+ - DCN MC engine performance: draw cache, batched threads, LV build hoist.
2958
+ - The legacy autocallable Dask batch loop (Snowball vanilla/KO-reset,
2959
+ Phoenix) is consolidated into one shared reducer
2960
+ (`autocallable_dask_batch`) with byte-preserved behavior, gated by frozen
2961
+ bitwise goldens. The legacy `use_dask` route itself is unchanged and
2962
+ preserved (see `docs/execution/internals-and-legacy.md` for the §17.3
2963
+ removal preconditions).
2964
+ - Dev extras now include `dask[distributed]` and `jsonschema`.
2965
+
2966
+ ### Fixed
2967
+ - `PhoenixMCEngine` silently disabled its Dask parallel path on modern dask
2968
+ (`from dask.compute import compute` no longer resolves); availability now
2969
+ matches `SnowballMCEngine`, with a regression test.
2970
+ - Processes scenario backend: a parent whose `__main__` cannot be
2971
+ re-imported by spawn children (stdin/heredoc scripts record
2972
+ `__file__ = '<stdin>'`; deleted script files) now fails closed with a
2973
+ typed `CapabilityError` before any worker is spawned, instead of every
2974
+ child dying at bootstrap and surfacing as an opaque
2975
+ `BrokenProcessPool` with zero completed cells.
2976
+ - Craig–Sneyd ADI corrector order restored (base `Y0` + implicit `-rU`),
2977
+ QE sampler sign bug, and the 2026-07 PDE/QUAD audit fixes (13 findings)
2978
+ are included via the programs above.
2979
+
2980
+ ## [0.2.5] - 2026-07-03
2981
+
2982
+ ### Fixed
2983
+ - 2026-07 PDE/QUAD audit: 13 numerical findings fixed (discrete-monitoring
2984
+ boundary handling, Rannacher terminal off-by-one, BGK state resolution,
2985
+ smoothed KI for Phoenix/KO-reset, shared theta damping schedule) with
2986
+ solver-family consolidation and regression tests.
2987
+
2988
+ ## [0.2.4] - 2026-07-02
2989
+
2990
+ ### Added
2991
+ - Opt-in BGK continuous-KI mode for Snowball and Phoenix PDE solvers
2992
+ (direction-aware shifted barrier, per-product flag).
2993
+ - `EquityPosition.get_trade_risk` (product + total, frozen one-loop) and
2994
+ `AutocallableCashLeg.time_shift`; event streams selected by leg
2995
+ requirements.
2996
+
2997
+ ### Fixed
2998
+ - Portfolio vega/rho/dividend-rho aligned with the canonical greek
2999
+ convention; bump contexts freeze PDE critical points for grid steadiness.
3000
+
3001
+ ## [0.2.3] - 2026-07-01
3002
+
3003
+ ### Added
3004
+ - Cross-engine-consistent `ki_ever` / `ki_survive` event-stat fields.
3005
+
3006
+ ### Fixed
3007
+ - Theta advances by business day; quadrature event-stats recursion uses
3008
+ smoothed barrier indicators.
3009
+
3010
+ ## [0.2.2] - 2026-07-01
3011
+
3012
+ ### Fixed
3013
+ - PDE numerical Greeks: freeze the base spatial domain for finite-difference
3014
+ bump repricing so rho and dividend rho measure market sensitivity without
3015
+ contamination from auto-grid/domain movement under bumped rate, dividend,
3016
+ volatility, or time inputs.
3017
+
3018
+ ## [0.2.1] - 2026-06-30
3019
+
3020
+ ### Fixed
3021
+ - `PhoenixPDESolver`: apply a KO observation scheduled exactly at maturity.
3022
+ The inherited grid builder stores the maturity KO in `_ko_terminal_record`
3023
+ (intentionally kept out of `_ko_observation_indices`), but the Phoenix
3024
+ `_solve` override looked the terminal KO up in `_ko_observation_indices`
3025
+ and therefore dropped it — mispricing products with a terminal KO date by
3026
+ several percent versus the quadrature and Monte Carlo engines. Terminal KO
3027
+ is now applied after the terminal coupon/KI jumps (matching
3028
+ `SnowballPDESolver._solve`), routed through `_apply_ko_jump_vector` so the
3029
+ same-date coupon-at-KO payoff is preserved.
3030
+
3031
+ ## [0.1.2] - 2026-06-13
3032
+
3033
+ ### Added
3034
+ - Credit dual-measure framework: a recovery convention layer
3035
+ (`quantark.asset.credit.conventions`, `STANDARD_RECOVERY=0.40`) that
3036
+ separates the canonical shared-curve **hazard01** factor from the
3037
+ recovery-converted **CS01** used by products and SIMM. Curve shocks stay
3038
+ in hazard space; spread stresses convert through the recovery convention.
3039
+ - Single-name CDS **roll-down / as-of pricing** via effective and maturity
3040
+ dates (seasoned and forward-start), with `schedule_asof` and a
3041
+ total-return coupon cash ledger threaded through the dynamic-scenario and
3042
+ backtest engines. SIMM buckets the remaining tenor. (Basket as-of is
3043
+ deferred.)
3044
+
3045
+ ## [0.1.1] - 2026-06-11
3046
+
3047
+ ### Added
3048
+ - `SnowballQuadEngine`: explicit `ki_monitoring_mode` on `QuadParams`
3049
+ (`KnockInMonitoringMode`). `EXACT_DISCRETE` (default) prices every KI
3050
+ observation date exactly with adaptive spatial-grid refinement.
3051
+ `BGK_APPROXIMATION` is an opt-in performance mode that replaces a dense
3052
+ discrete KI schedule with continuous monitoring at a
3053
+ Broadie-Glasserman-Kou shifted barrier; the engine validates approximately
3054
+ regular spacing (median-band dispersion test), a constant resolved
3055
+ barrier, full-horizon coverage, stable volatility, and a minimum schedule
3056
+ density (`bgk_min_ki_observations`), raising `ValidationError` otherwise.
3057
+ Converted pricing matches the equivalent shifted-continuous product
3058
+ exactly (grid-aligned to the shifted barrier) while the valuation-time KI
3059
+ state keeps contractual discrete semantics. A first-order residual bias
3060
+ remains (a few bp of PV at daily spacing, growing with observation
3061
+ spacing and drift).
3062
+
3063
+ ### Fixed
3064
+ - `SnowballQuadEngine`: dense discrete KI schedules now retain their explicit
3065
+ observation dates instead of being delegated to continuous monitoring. The
3066
+ engine adaptively refines its internal spatial grid to resolve short
3067
+ diffusion intervals (accuracy-oriented default of 2.5 cells per interval
3068
+ diffusion stddev; lower to 1.25 or opt into BGK for speed), avoiding the
3069
+ material fair-KO-rate bias caused by the previous continuous-monitoring
3070
+ approximation.
3071
+
3072
+ ## [0.1.0] - 2026-06-11
3073
+
3074
+ ### Added
3075
+ - First public release.
3076
+ - Equity derivatives: European/American/Asian vanilla options, barrier,
3077
+ one-touch, digital, sharkfin, and autocallable products (snowball,
3078
+ phoenix, KO-reset snowball, range accrual) with analytical, Monte
3079
+ Carlo, PDE, quadrature, and tree engines.
3080
+ - Fixed income: fixed bonds, FRNs, bond options, bond forwards/futures,
3081
+ convertible bonds, interest rate swaps.
3082
+ - Market data layer (`quantark.param`, `quantark.priceenv`), Greeks
3083
+ calculators, portfolio VaR (parametric/historical/Monte Carlo),
3084
+ ISDA SIMM v2.6, stress testing, multi-day scenario simulation, and a
3085
+ hedging backtest framework.
3086
+ - Legacy flat-import compatibility shim (`asset`, `util`, …) with
3087
+ `DeprecationWarning`; slated for removal in 1.0.