hypertopos 0.9.2__tar.gz → 0.10.0__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 (477) hide show
  1. {hypertopos-0.9.2 → hypertopos-0.10.0}/CHANGELOG.md +59 -0
  2. {hypertopos-0.9.2 → hypertopos-0.10.0}/LICENSE.md +1 -1
  3. {hypertopos-0.9.2 → hypertopos-0.10.0}/PKG-INFO +16 -18
  4. {hypertopos-0.9.2 → hypertopos-0.10.0}/README.md +15 -17
  5. {hypertopos-0.9.2 → hypertopos-0.10.0}/SECURITY.md +3 -3
  6. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/api-reference.md +29 -23
  7. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/README.md +3 -0
  8. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/_layer2_cross_eval.py +4 -4
  9. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/_layer3_cross_eval.py +4 -4
  10. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/layer2_xgboost_sweep.py +5 -5
  11. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/layer3_typology_filter.py +4 -4
  12. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/passive-scan-calibration.md +2 -2
  13. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmarks.md +4 -2
  14. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/concepts.md +34 -17
  15. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/configuration.md +12 -19
  16. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/data-format.md +17 -9
  17. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/examples/spark-quickstart.ipynb +2 -7
  18. hypertopos-0.10.0/docs/images/demo-find-anomalies.svg +1 -0
  19. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/refutations.md +24 -0
  20. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/spark.md +48 -18
  21. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/__init__.py +1 -1
  22. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_stats.py +6 -43
  23. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_theta_sensitivity.py +2 -2
  24. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_writer.py +16 -2
  25. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/builder.py +391 -220
  26. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/build.py +1 -1
  27. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/main.py +1 -1
  28. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/schema.py +18 -12
  29. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/spark_cmd.py +49 -5
  30. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/sphere_ops.py +1 -1
  31. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/aggregation.py +24 -24
  32. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/counterfactual.py +8 -14
  33. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/fdr.py +0 -114
  34. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/geometry.py +41 -42
  35. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/investigation.py +68 -0
  36. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/lance_sql_agg.py +47 -0
  37. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/p_value_calibration.py +14 -47
  38. hypertopos-0.10.0/hypertopos/engine/robust.py +651 -0
  39. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/model/objects.py +9 -1
  40. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/model/sphere.py +27 -13
  41. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/navigation/navigator.py +784 -728
  42. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/navigation/scanner.py +34 -6
  43. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/scoring.py +58 -48
  44. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_api.py +48 -25
  45. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_build.py +8 -3
  46. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_explain.py +65 -21
  47. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_plan.py +5 -0
  48. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_result.py +9 -8
  49. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/_score.py +17 -7
  50. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/sphere.py +131 -12
  51. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/_lance_branches.py +5 -1
  52. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/_schemas.py +9 -1
  53. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/calibration_history.py +0 -2
  54. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/reader.py +33 -15
  55. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/writer.py +57 -31
  56. {hypertopos-0.9.2 → hypertopos-0.10.0}/pyproject.toml +1 -1
  57. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/conftest.py +3 -3
  58. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/fixtures/generate_fixtures.py +7 -4
  59. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/fixtures/synthetic_chain_sphere.py +5 -3
  60. hypertopos-0.10.0/tests/golden/built_attract_anomaly_accounts.json +22 -0
  61. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_attract_anomaly_transactions.json +40 -20
  62. hypertopos-0.10.0/tests/golden/built_explain_anomaly.json +42 -0
  63. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_sphere_overview.json +2 -18
  64. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/chain_for_entity.json +22 -22
  65. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/chain_propagation_and_typology.json +16 -16
  66. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/sales_calibration_and_anomaly.json +4 -2
  67. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_anomaly_propagation_in_chain.py +2 -2
  68. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_branch_ingest.py +7 -4
  69. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder.py +23 -120
  70. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_derived.py +3 -3
  71. hypertopos-0.10.0/tests/test_builder_robust.py +254 -0
  72. hypertopos-0.10.0/tests/test_calibrated_anomaly_counts.py +212 -0
  73. hypertopos-0.10.0/tests/test_calibration_age.py +40 -0
  74. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration_drift.py +1 -1
  75. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration_history_builder.py +15 -28
  76. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_coherent_anomaly.py +1 -1
  77. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_typology_and_extend.py +1 -1
  78. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_spark.py +58 -0
  79. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cluster_c3_detector_closures.py +1 -1
  80. hypertopos-0.10.0/tests/test_combine_anomaly_pvalues_family.py +51 -0
  81. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_counterfactual_metric.py +0 -6
  82. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_detection.py +4 -5
  83. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_dim_blocks.py +1 -1
  84. hypertopos-0.10.0/tests/test_dim_quality_warnings.py +218 -0
  85. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations_roundtrip.py +3 -3
  86. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_features_reader.py +1 -1
  87. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_engine.py +4 -4
  88. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_epoch_seconds.py +11 -0
  89. hypertopos-0.10.0/tests/test_explain_calibrated.py +67 -0
  90. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_fdr.py +0 -47
  91. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_fdr_non_finite.py +0 -6
  92. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_calibration_influencers.py +3 -4
  93. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_diverse_explanations.py +0 -1
  94. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_motif_by_hops.py +1 -1
  95. hypertopos-0.10.0/tests/test_format_v4.py +80 -0
  96. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_generate_sar_rationale.py +1 -1
  97. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_geometric_path.py +3 -3
  98. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_geometry_stats.py +1 -1
  99. hypertopos-0.10.0/tests/test_geometry_to_polygons_order.py +56 -0
  100. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_golden_core.py +5 -4
  101. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_heredity.py +2 -2
  102. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_incremental.py +33 -41
  103. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_investigate_chain.py +2 -2
  104. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_investigate_entity.py +3 -3
  105. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_kind_tag_mismatch_warning.py +1 -1
  106. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_label_audit_schema.py +3 -3
  107. hypertopos-0.10.0/tests/test_lance_sql_calibrated_anomalies.py +66 -0
  108. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_metric_arithmetic_guard.py +0 -1
  109. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_navigation.py +43 -129
  110. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_navigator_fdr_resolution.py +5 -22
  111. hypertopos-0.10.0/tests/test_navigator_fdr_select.py +520 -0
  112. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_observability.py +1 -1
  113. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_p_value_calibration.py +18 -77
  114. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_precision_stack.py +0 -100
  115. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_profile_motif_perf_smoke.py +1 -1
  116. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_rank_stats_rewrite.py +10 -9
  117. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_recalibrate_column_write.py +1 -1
  118. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_recalibrate_derived_columns.py +8 -2
  119. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_recalibrate_epochs.py +1 -1
  120. hypertopos-0.10.0/tests/test_recalibrate_robust.py +154 -0
  121. hypertopos-0.10.0/tests/test_robust_score.py +249 -0
  122. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_root_cause_trace.py +22 -22
  123. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_scanner.py +3 -2
  124. hypertopos-0.10.0/tests/test_scanner_calibrated.py +112 -0
  125. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_schema_chain_eda_validation.py +1 -1
  126. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_scoring.py +50 -12
  127. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_seed_scoped_motif.py +3 -1
  128. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_session_metadata_pin.py +1 -1
  129. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_shapes_from_deltas.py +10 -25
  130. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_simulate_dimension_change.py +0 -53
  131. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_slice_deltas.py +10 -16
  132. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_smoke_round_navigator.py +1 -1
  133. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_connect_safe.py +66 -1
  134. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_explain.py +10 -3
  135. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_find_anomalies.py +24 -21
  136. hypertopos-0.10.0/tests/test_spark_reasons.py +74 -0
  137. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_score.py +43 -2
  138. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_sphere.py +2 -2
  139. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_sphere_format_version.py +9 -9
  140. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_storage.py +39 -39
  141. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_stored_delta_metric.py +8 -20
  142. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_theta_sensitivity.py +1 -1
  143. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_witness_cohort.py +3 -3
  144. hypertopos-0.9.2/docs/images/demo-find-anomalies.svg +0 -1
  145. hypertopos-0.9.2/tests/golden/built_attract_anomaly_accounts.json +0 -124
  146. hypertopos-0.9.2/tests/golden/built_explain_anomaly.json +0 -71
  147. hypertopos-0.9.2/tests/test_dim_quality_warnings.py +0 -432
  148. hypertopos-0.9.2/tests/test_fdr_per_dim.py +0 -328
  149. hypertopos-0.9.2/tests/test_navigator_fdr_select.py +0 -752
  150. hypertopos-0.9.2/tests/test_schema_mahalanobis_group_by.py +0 -53
  151. hypertopos-0.9.2/tests/test_schema_mahalanobis_weights.py +0 -82
  152. {hypertopos-0.9.2 → hypertopos-0.10.0}/.github/workflows/publish-pypi.yml +0 -0
  153. {hypertopos-0.9.2 → hypertopos-0.10.0}/.github/workflows/test.yml +0 -0
  154. {hypertopos-0.9.2 → hypertopos-0.10.0}/.gitignore +0 -0
  155. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/README.md +0 -0
  156. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/architecture.md +0 -0
  157. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/LICENSE +0 -0
  158. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/README.md +0 -0
  159. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/README.md +0 -0
  160. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/SUMMARY.md +0 -0
  161. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r1/0.1.0-exp-a-report.md +0 -0
  162. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r1/0.1.0-exp-a-scoring.md +0 -0
  163. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r1/0.1.0-exp-b-report.md +0 -0
  164. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r1/0.1.0-exp-b-scoring.md +0 -0
  165. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r1/0.1.0-settings.md +0 -0
  166. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r2/0.1.0-exp-a-report.md +0 -0
  167. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r2/0.1.0-exp-a-scoring.md +0 -0
  168. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r2/0.1.0-exp-b-report.md +0 -0
  169. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r2/0.1.0-exp-b-scoring.md +0 -0
  170. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r2/0.1.0-settings.md +0 -0
  171. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r3/0.1.0-exp-a-report.md +0 -0
  172. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r3/0.1.0-exp-a-scoring.md +0 -0
  173. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r3/0.1.0-exp-b-report.md +0 -0
  174. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r3/0.1.0-exp-b-scoring.md +0 -0
  175. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r3/0.1.0-settings.md +0 -0
  176. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r4/0.1.0-exp-a-report.md +0 -0
  177. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r4/0.1.0-exp-a-scoring.md +0 -0
  178. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r4/0.1.0-exp-b-report.md +0 -0
  179. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r4/0.1.0-exp-b-scoring.md +0 -0
  180. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r4/0.1.0-settings.md +0 -0
  181. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r5/0.1.0-exp-a-report.md +0 -0
  182. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r5/0.1.0-exp-a-scoring.md +0 -0
  183. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r5/0.1.0-exp-b-report.md +0 -0
  184. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r5/0.1.0-exp-b-scoring.md +0 -0
  185. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r5/0.1.0-settings.md +0 -0
  186. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r6/0.1.0-exp-a-report.md +0 -0
  187. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r6/0.1.0-exp-a-scoring.md +0 -0
  188. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r6/0.1.0-exp-b-report.md +0 -0
  189. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r6/0.1.0-exp-b-scoring.md +0 -0
  190. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/results/0.1.0/r6/0.1.0-settings.md +0 -0
  191. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_accounts.py +0 -0
  192. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_cpty_banks.py +0 -0
  193. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_districts.py +0 -0
  194. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_loan_accounts.py +0 -0
  195. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_operations.py +0 -0
  196. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_orders.py +0 -0
  197. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_transactions.py +0 -0
  198. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/prepare_tx_types.py +0 -0
  199. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/berka/sphere/sphere.yaml +0 -0
  200. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/hi_small_sphere/prepare_accounts.py +0 -0
  201. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/hi_small_sphere/prepare_currencies.py +0 -0
  202. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/hi_small_sphere/prepare_payment_formats.py +0 -0
  203. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/hi_small_sphere/prepare_transactions.py +0 -0
  204. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/hi_small_sphere/sphere.yaml +0 -0
  205. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/layer1_passive_scan.py +0 -0
  206. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/li_small_sphere/prepare_accounts.py +0 -0
  207. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/li_small_sphere/prepare_currencies.py +0 -0
  208. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/li_small_sphere/prepare_payment_formats.py +0 -0
  209. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/li_small_sphere/prepare_transactions.py +0 -0
  210. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/ibm-aml/li_small_sphere/sphere.yaml +0 -0
  211. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/README.md +0 -0
  212. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/SUMMARY.md +0 -0
  213. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-exp-a-report.md +0 -0
  214. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-exp-a-scoring.md +0 -0
  215. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-exp-b-report.md +0 -0
  216. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-exp-b-scoring.md +0 -0
  217. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-exp-c-report.md +0 -0
  218. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r1/0.1.0-settings.md +0 -0
  219. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-exp-a-report.md +0 -0
  220. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-exp-a-scoring.md +0 -0
  221. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-exp-b-report.md +0 -0
  222. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-exp-b-scoring.md +0 -0
  223. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-exp-c-report.md +0 -0
  224. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r2/0.1.0-settings.md +0 -0
  225. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-exp-a-report.md +0 -0
  226. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-exp-a-scoring.md +0 -0
  227. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-exp-b-report.md +0 -0
  228. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-exp-b-scoring.md +0 -0
  229. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-exp-c-report.md +0 -0
  230. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/results/0.1.0/r3/0.1.0-settings.md +0 -0
  231. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/sphere/prepare_trips.py +0 -0
  232. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/benchmark/nyc-taxi/sphere/sphere.yaml +0 -0
  233. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/container-deployment.md +0 -0
  234. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/external-chains-as-anchor-line.md +0 -0
  235. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/build-pipeline.svg +0 -0
  236. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/core-objects.svg +0 -0
  237. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/cutting-plane.svg +0 -0
  238. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/demo-drift-solid.svg +0 -0
  239. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/demo-spark.svg +0 -0
  240. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/directory-layout.svg +0 -0
  241. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/hypertopos-overview.svg +0 -0
  242. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/model-lifecycle.svg +0 -0
  243. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/navigation-primitives.svg +0 -0
  244. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/sessions-and-branches.svg +0 -0
  245. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/images/three-scales.svg +0 -0
  246. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/introduction.md +0 -0
  247. {hypertopos-0.9.2 → hypertopos-0.10.0}/docs/quickstart.md +0 -0
  248. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/_file_formats.py +0 -0
  249. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/__init__.py +0 -0
  250. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_bootstrap.py +0 -0
  251. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_bregman.py +0 -0
  252. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/_scatter.py +0 -0
  253. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/conformance.py +0 -0
  254. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/conformance_mapping.py +0 -0
  255. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/derived.py +0 -0
  256. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/dim_blocks.py +0 -0
  257. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/mapping.py +0 -0
  258. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/builder/temporal_bucket.py +0 -0
  259. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/__init__.py +0 -0
  260. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/__main__.py +0 -0
  261. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/info.py +0 -0
  262. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/cli/sources.py +0 -0
  263. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/datasets.py +0 -0
  264. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/__init__.py +0 -0
  265. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/adjacency.py +0 -0
  266. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/calibration.py +0 -0
  267. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/calibration_label_aware.py +0 -0
  268. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/chains.py +0 -0
  269. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/composition.py +0 -0
  270. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/conformance.py +0 -0
  271. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/density_gaps.py +0 -0
  272. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/diagnostics.py +0 -0
  273. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/dim_audit.py +0 -0
  274. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/edge_features.py +0 -0
  275. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/explanation.py +0 -0
  276. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/forecast.py +0 -0
  277. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/graph.py +0 -0
  278. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/graph_algorithms.py +0 -0
  279. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/heredity.py +0 -0
  280. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/hop_predicate.py +0 -0
  281. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/invalidation.py +0 -0
  282. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/selection.py +0 -0
  283. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/structuring.py +0 -0
  284. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/engine/topology.py +0 -0
  285. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/model/__init__.py +0 -0
  286. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/model/manifest.py +0 -0
  287. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/navigation/__init__.py +0 -0
  288. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/py.typed +0 -0
  289. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/spark/__init__.py +0 -0
  290. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/__init__.py +0 -0
  291. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/_lance_session.py +0 -0
  292. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/_lance_versions.py +0 -0
  293. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/_tag_timestamps.py +0 -0
  294. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/cache.py +0 -0
  295. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/exceptions.py +0 -0
  296. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/storage/topology_cache.py +0 -0
  297. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/utils/__init__.py +0 -0
  298. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/utils/arrow.py +0 -0
  299. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/utils/gc_pause.py +0 -0
  300. {hypertopos-0.9.2 → hypertopos-0.10.0}/hypertopos/utils/time.py +0 -0
  301. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/.gitkeep +0 -0
  302. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/_golden_py.py +0 -0
  303. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/README.md +0 -0
  304. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_aggregate.json +0 -0
  305. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_attract_drift.json +0 -0
  306. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_calibration.json +0 -0
  307. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/built_check_alerts.json +0 -0
  308. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/chain_coherent_anomaly.json +0 -0
  309. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/extract_chains_engine.json +0 -0
  310. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/golden/spark_plan_full.txt +0 -0
  311. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_adjacency.py +0 -0
  312. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_adjacency_order.py +0 -0
  313. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_adjacency_vectorized.py +0 -0
  314. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_aggregate_group_by_relation.py +0 -0
  315. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_aggregate_tie_order.py +0 -0
  316. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_aggregation_engine.py +0 -0
  317. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_anomaly_influence_cache.py +0 -0
  318. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_arrow_utils.py +0 -0
  319. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_atomic_meta_writes.py +0 -0
  320. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_audit_label_alignment.py +0 -0
  321. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_bootstrap.py +0 -0
  322. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_branch_recalibrate.py +0 -0
  323. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_branch_sessions.py +0 -0
  324. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_branches.py +0 -0
  325. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_bregman.py +0 -0
  326. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_alias.py +0 -0
  327. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_chunking.py +0 -0
  328. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_contagion.py +0 -0
  329. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_edges.py +0 -0
  330. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_fdr_hierarchy.py +0 -0
  331. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_fdr_hierarchy_inject.py +0 -0
  332. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_fdr_yaml_end_to_end.py +0 -0
  333. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_rolling_z.py +0 -0
  334. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_scatter.py +0 -0
  335. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_temporal_bucket.py +0 -0
  336. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_builder_temporal_perf.py +0 -0
  337. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cache.py +0 -0
  338. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cache_threads.py +0 -0
  339. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration.py +0 -0
  340. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration_history.py +0 -0
  341. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration_history_reader.py +0 -0
  342. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_calibration_label_aware.py +0 -0
  343. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_centroid_drift_labels.py +0 -0
  344. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_coherent_synthetic.py +0 -0
  345. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_drift_trajectory.py +0 -0
  346. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_edge_potentials.py +0 -0
  347. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_extraction_parity.py +0 -0
  348. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_investigation_summary.py +0 -0
  349. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_signed_confidence_rollup.py +0 -0
  350. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chain_witness_intersection.py +0 -0
  351. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_chains.py +0 -0
  352. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli.py +0 -0
  353. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_alias.py +0 -0
  354. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_branch.py +0 -0
  355. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_inprocess.py +0 -0
  356. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_label_aware_flag.py +0 -0
  357. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_mcp_contract.py +0 -0
  358. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_sources.py +0 -0
  359. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cli_subprocess.py +0 -0
  360. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cluster_a_label_aware_depth.py +0 -0
  361. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cluster_c1_sphere_overview_ergonomics.py +0 -0
  362. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cluster_d1_graph_phase3.py +0 -0
  363. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_cluster_d2_influencer_auto_discovery.py +0 -0
  364. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_compaction.py +0 -0
  365. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_compare_branches.py +0 -0
  366. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_composition.py +0 -0
  367. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_conformance.py +0 -0
  368. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_conformance_before_write.py +0 -0
  369. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_conformance_mapping.py +0 -0
  370. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_conftest_magicmock_restore.py +0 -0
  371. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_continuous_event_dims.py +0 -0
  372. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_count_geometry_rows_missing.py +0 -0
  373. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_counterfactual.py +0 -0
  374. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_counterfactual_frozen_trajectory.py +0 -0
  375. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_data_quality_prop.py +0 -0
  376. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_datasets.py +0 -0
  377. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_decompose_drift.py +0 -0
  378. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_delta_dim_aggregation_consumers.py +0 -0
  379. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_delta_norm_signed.py +0 -0
  380. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_density_gaps_engine.py +0 -0
  381. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_derived_std_exact.py +0 -0
  382. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_diagnostics.py +0 -0
  383. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_dim_audit.py +0 -0
  384. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_dim_blocks_build.py +0 -0
  385. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_distinct_neighbor_count.py +0 -0
  386. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations.py +0 -0
  387. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations_builder.py +0 -0
  388. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations_chain.py +0 -0
  389. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations_engine.py +0 -0
  390. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dim_aggregations_parity.py +0 -0
  391. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dimensions_builder.py +0 -0
  392. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_dimensions_yaml.py +0 -0
  393. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_features.py +0 -0
  394. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_features_pairs.py +0 -0
  395. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_potential.py +0 -0
  396. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_edge_table.py +0 -0
  397. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_fdr_multi_resolution.py +0 -0
  398. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_file_formats.py +0 -0
  399. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_density_gaps.py +0 -0
  400. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_lead_lag.py +0 -0
  401. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_find_lead_lag_significance.py +0 -0
  402. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_forecast.py +0 -0
  403. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_fts.py +0 -0
  404. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_goto_keyed_read.py +0 -0
  405. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_gradient_alignment.py +0 -0
  406. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_graph_algorithms.py +0 -0
  407. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_graph_communities_deterministic.py +0 -0
  408. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_graph_components.py +0 -0
  409. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_graph_edge_arrays.py +0 -0
  410. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_graph_geometry_tension.py +0 -0
  411. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_group_aggregate.py +0 -0
  412. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hop_predicate_engine.py +0 -0
  413. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hub_safety_caps.py +0 -0
  414. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hunt3_branches_sessions.py +0 -0
  415. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hunt3_builder_cli.py +0 -0
  416. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hunt3_navigator.py +0 -0
  417. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_hybrid_search.py +0 -0
  418. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_invalidation.py +0 -0
  419. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_investigation.py +0 -0
  420. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_kind_detect.py +0 -0
  421. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_lance_session.py +0 -0
  422. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_lance_sql_agg.py +0 -0
  423. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_lance_sql_pinned_version.py +0 -0
  424. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_lance_write_policy.py +0 -0
  425. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_local_trajectory_shape.py +0 -0
  426. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_m1_1_builder_wiring.py +0 -0
  427. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_mapping.py +0 -0
  428. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_model.py +0 -0
  429. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_motif.py +0 -0
  430. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_mvcc_session.py +0 -0
  431. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_native_mvcc_geometry.py +0 -0
  432. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_navigator_alerts.py +0 -0
  433. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_navigator_extract_chains.py +0 -0
  434. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_neighbors_window.py +0 -0
  435. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_no_global_rng.py +0 -0
  436. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_pattern_fdr_hierarchy.py +0 -0
  437. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_perf_budget.py +0 -0
  438. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_points_btree_lazy.py +0 -0
  439. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_precomputed_dim_kind.py +0 -0
  440. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_promote_branch.py +0 -0
  441. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_query_determinism.py +0 -0
  442. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_reader_pinned_open.py +0 -0
  443. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_reader_quoted_literals.py +0 -0
  444. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_reader_sampling.py +0 -0
  445. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_reliability_flags.py +0 -0
  446. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_reputation.py +0 -0
  447. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_row_id_cache.py +0 -0
  448. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_scanner_order.py +0 -0
  449. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_scatter_columns.py +0 -0
  450. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_selection.py +0 -0
  451. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_session_ref_ratchet.py +0 -0
  452. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_short_path_epoch_tag.py +0 -0
  453. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_signed_confidence_ranking.py +0 -0
  454. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_build.py +0 -0
  455. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_docs.py +0 -0
  456. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_plan.py +0 -0
  457. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_spark_quickstart.py +0 -0
  458. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_sphere_overview_perf.py +0 -0
  459. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_sphere_validation_cheap_tier.py +0 -0
  460. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_stats_guard.py +0 -0
  461. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_streaming_reads.py +0 -0
  462. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_structuring_engine.py +0 -0
  463. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_tag_timestamps.py +0 -0
  464. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_temporal_bucket_median.py +0 -0
  465. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_temporal_centroids.py +0 -0
  466. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_temporal_filter_offsets.py +0 -0
  467. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_temporal_timestamps.py +0 -0
  468. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_time_utils.py +0 -0
  469. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_topology.py +0 -0
  470. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_topology_anomalies.py +0 -0
  471. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_topology_cache.py +0 -0
  472. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_topology_trajectory_anomalies.py +0 -0
  473. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_trajectory_active_windows.py +0 -0
  474. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_trajectory_ann.py +0 -0
  475. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_trajectory_detector.py +0 -0
  476. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_vector_index_health.py +0 -0
  477. {hypertopos-0.9.2 → hypertopos-0.10.0}/tests/test_witness_set.py +0 -0
@@ -7,6 +7,65 @@ Versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.10.0] — 2026-10-28
11
+
12
+ ### Added
13
+
14
+ - **Calibrated evidence score** — the default anomaly score of continuous anchor patterns whose dimensions are point properties. Each entity is scored on a shrunk-covariance Mahalanobis distance over rank-Gaussian coordinates (`mahal`) and on its motion against the population's velocity field (`current`, fitted when one event pattern with an edge table references the entity line); `anomaly_score` is the mean of the axis ranks. A split-conformal p-value against a stored calibration reference sets `is_anomaly = conformal_p <= 1 - anomaly_percentile/100` — an exact alarm budget: at the 95th percentile 5 % of the population is flagged, and 5 % of a population like the reference would be. New geometry columns `anomaly_score`, `axis_ranks`, `conformal_p`, `score_rank_pct`, `score_delta` (all but `axis_ranks` also `Polygon` fields); new `Pattern` fields `score_dims`, `score_axes`, `reference_epoch`, `anomaly_percentile`.
15
+ - `score_axes` pattern YAML key — choose the scoring axes from `mahal`, `current` and `knn` (distance to nearest peers, opt-in); must contain `mahal`. Default `[mahal, current]`; `current` is dropped when the entity line has no such event pattern.
16
+ - The calibration reference is stored per pattern per calibration epoch under `_gds_meta/reference/{pattern_id}/v={epoch}.npz`; incremental ingest scores new entities against it without a refit, and `recalibrate` refits it.
17
+ - `check_alerts` raises a `calibration_age` alert (MEDIUM) when a pattern's calibration is older than 60 days.
18
+ - `explain_anomaly` on a calibrated pattern reports the evidence `bits = -log2 conformal_p`, split over the scoring axes (`axes`) and over the dimensions (`top_dimensions[].bits`), adding up exactly; `severity` follows `conformal_p` against the alarm budget.
19
+
20
+ ### Changed
21
+
22
+ - **Sphere format 4.0.** Spheres built with format 3.x raise `GDSVersionError` on open and must be rebuilt from source.
23
+ - On a calibrated pattern `find_anomalies` (π5) selects by the stored `is_anomaly` and orders by `conformal_p` ascending, then `anomaly_score` descending (rows added by incremental ingest are scored without the event axis, so only their p-values compare with built rows); `rank_by` now defaults to `None` (the pattern's own score). Options that recompute a distance from the shape-space `delta` or use θ as the boundary (`radius`, `metric="Linf"`, `dimension_weights`, `rank_by="delta_norm"` / `"signed_confidence"`, `boundary_aware`, `min_confidence > 0`) raise `ValueError` there. Event, GMM and discrete patterns keep `delta_norm` against θ, with a conformal p-value on `delta_norm`.
24
+ - `fdr_alpha` on `find_anomalies` is now the level of the cell gate only and requires `fdr_resolution` or `fdr_temporal_resolution`; `fdr_method` defaults to `"storey"`.
25
+ - `delta`, `delta_norm`, μ, σ and θ keep their shape-space meaning — the stored `delta` is always the per-dimension z-score. On calibrated patterns θ is no longer the anomaly boundary.
26
+ - `score_rank_pct` replaces `delta_rank_pct` everywhere (geometry column, `Polygon` field, `geometry_filters` key, borderline passive-scan source); it is the population rank of the anomaly score. `recompute_delta_rank_pct` is renamed `recompute_score_rank_pct`.
27
+ - Multi-detector consensus combines the stored conformal p-values.
28
+ - Rankings change for every continuous anchor pattern; rebuild and re-check saved thresholds or top-K lists.
29
+ - **Spark and frozen scoring use the calibrated score.** The `hypertopos.spark` result columns are now `entity, anomaly_score, is_anomaly, p_value, score_rank_pct, delta_norm, top_reasons` (plus the group column and `calibration_scope` with `group_by`): `rank_pct` is renamed `score_rank_pct`, `anomaly_score` is added and is the ranking column, and `p_value` is the conformal p-value of the score. With `group_by` the flags are global; only `delta_norm` and the reasons stay group-relative. `hypertopos.scoring.Scores` carries `anomaly_score, conformal_p, score_rank_pct, is_anomaly, delta, delta_norm, calibration_scope`; `FrozenCalibration` gains `reference`, loses `theta_norm` and `population_norms`, and `row_params` returns `(mu, sigma, scope)`. The Spark CLI `--show` orders by `anomaly_score`. Patterns built from a YAML metric block also get the score layer.
30
+ - At the 99th percentile a population needs about 100 entities before anything can be flagged — the smallest conformal p-value is `1/(n+1)`.
31
+ - `anomaly_summary`, `aggregate_anomalies`, `sphere_overview`, `detect_data_quality_issues` and `compare_branches` count a calibrated pattern's anomalies by its stored `is_anomaly` — the set `find_anomalies` selects; `sphere_overview` reports `anomaly_rate_source: "is_anomaly"` there. On a calibrated pattern `compare_branches` explains flips on `anomaly_score`, ranks `top_movers` by the change of evidence bits (`−log2 conformal_p`) and adds `anomaly_score_from` / `anomaly_score_to` and `evidence_change` to each row, and `theta_from` / `theta_to` are the lowest flagged score on each side; the θ-ceiling data-quality check is skipped.
32
+ - `simulate_dimension_change` on a calibrated pattern takes natural values of score dimensions (other dimensions raise) and rescores them against the stored reference; the result is the calibrated layer: `anomaly_score_before/after`, `conformal_p_before/after`, `held_axes`, `top_dimensions_after` and `dimensions_overridden` in natural values. `find_diverse_explanations(validate=True)` neutralises score dimensions at their reference median and reports `conformal_p_after_override`.
33
+ - On a calibrated pattern `find_anomalies` (π5) polygons carry `anomaly_dimensions` (`{dim, z, mahal_share}`) and `reliability_flags` from the Shapley split of the `mahal` evidence — the dimensions `explain_anomaly` names.
34
+ - `find_calibration_influencers` raises `ValueError` on a calibrated pattern: its classes are flips of the θ verdict, and no single entity can mask itself in the rank-based reference.
35
+ - `passive_scan` with `scoring="weighted"` scores direct, sibling and borderline sources of a calibrated pattern on its alarm budget, `anomaly_intensity = log(conformal_p) / log(alpha)`, so an entity flagged by the budget counts at least 1.
36
+ - `find_anomalies(include_emerging=True)` returns no emerging entities on a calibrated pattern: the forecast tracks `delta_norm` against θ, which does not decide the flag there.
37
+ - Spark `top_reasons` and `explain` attribute the calibrated `anomaly_score`: `pct_of_total` is each dimension's Shapley share of the score's Mahalanobis evidence (the split `explain_anomaly` reports on a sphere) instead of its share of `delta_norm²`; `delta` is unchanged. Spark scores on the Mahalanobis axis only, so a sphere built from the same events with an event pattern, which also scores event motion, can give different scores and p-values.
38
+
39
+ ### Removed
40
+
41
+ - `use_mahalanobis` pattern option — the YAML key is rejected; the `mahal` axis of the calibrated score replaces it.
42
+ - Entity-level and per-dimension FDR on anomaly results: `find_anomalies` loses `p_value_method`, `fdr_axis` and `rank_by="min_q_per_dim"`, and no longer returns `q_value`, `q_values_per_dim`, `min_q_per_dim` or `dominant_q_dim_idx`; `attract_boundary` (π6) loses `fdr_alpha`, `fdr_method` and `p_value_method`. The conformal p-values of the fitted population are its own ranks, so an entity-level FDR cut cannot reject beyond the alarm budget; the cell gate stays.
43
+ - The anomaly χ² p-values, and the build diagnostics that only served them (per-dimension normality p-values, the heteroscedasticity check).
44
+ - `anomaly_confidence` is not computed on calibrated patterns.
45
+ - `Pattern.dim_normality_pvalues`, `Pattern.heteroscedasticity_diagnostic`, `CalibrationFit.dim_normality_pvalues`, and the `non_normal_dim` / `heteroscedasticity` warnings of `sphere_overview` and `sphere validate`.
46
+
47
+ ### Fixed
48
+
49
+ - `combine_anomaly_pvalues` scores every entity over the same detector family: a detector that cannot score an entity (an account without graph neighbours) counts as no evidence instead of raising the weight of the entity's other detectors, so isolated entities no longer outrank connected ones. Per-detector p-values are floored at the population's resolution `1/(N+1)`, so a segment-level test cannot tie a whole segment. `composite_risk` reports `combined_p` unrounded.
50
+ - Building a sphere whose edge-table timestamp column is in nanoseconds no longer fails with `Integer value ... not in range`; timestamps of every unit convert to epoch seconds.
51
+
52
+ ## [0.9.3] — 2026-10-26
53
+
54
+ ### Added
55
+
56
+ - `hypertopos spark score --input ... --calibration PATH` scores new events against a saved calibration from the command line or a Databricks Python wheel task, with `--anomalies-only` and `--append` for a daily alerts table; `hypertopos spark find-anomalies` prints the path of its calibration.
57
+ - `explain` works on a `score` result: `explain(today, events=new_events)` recomputes the dimensions of the explained entities from the events they were scored on and compares them with the frozen population; a `score` result now points to its calibration, so `sphere_of(today)` returns it.
58
+ - `hypertopos.spark.sphere_of(path)` opens a saved calibration by its path, so a scheduled job in a new process can score new events against an earlier baseline with `score(df, like=sphere_of(path))`; the Spark docs show the calibrate-once, score-daily recipe on a Unity Catalog Volume.
59
+
60
+ ### Changed
61
+
62
+ - The README states the license terms plainly: production use is allowed, offering hypertopos to third parties as a hosted or embedded competing service is not, and each version becomes Apache 2.0 three years after its release.
63
+
64
+ ### Fixed
65
+
66
+ - `p_value` and `rank_pct` in Spark results and `FrozenCalibration` scores are exact ratios of counts (`0.001`, not `0.0010000000474974513`).
67
+ - `find_anomalies` counts the entities from the keys alone and runs the full per-entity aggregation once, instead of three times, on compute that cannot cache a DataFrame (Databricks serverless), so a call there takes a fraction of the time it did.
68
+
10
69
  ## [0.9.2] — 2026-10-25
11
70
 
12
71
  ### Added
@@ -26,7 +26,7 @@ For purposes of this License:
26
26
  - **Internal use** within an organization is not a competitive offering. Your
27
27
  organization includes entities under common control.
28
28
 
29
- **Change Date:** 2029-10-25
29
+ **Change Date:** 2029-10-28
30
30
 
31
31
  **Change License:** Apache License, Version 2.0
32
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: hypertopos
3
- Version: 0.9.2
3
+ Version: 0.10.0
4
4
  Summary: Understand the structure of your data — without training machine learning models
5
5
  Project-URL: Homepage, https://github.com/hypertopos/hypertopos-py
6
6
  Project-URL: Documentation, https://github.com/hypertopos/hypertopos-py/tree/main/docs
@@ -61,19 +61,19 @@ Description-Content-Type: text/markdown
61
61
  [![PyArrow](https://img.shields.io/badge/format-PyArrow-red.svg)](https://arrow.apache.org/docs/python/)
62
62
  [![Lance](https://img.shields.io/badge/storage-Lance-blueviolet.svg)](https://github.com/lance-format/lance)
63
63
  [![MCP](https://img.shields.io/badge/MCP-compatible-green.svg)](https://modelcontextprotocol.io)
64
- [![Version](https://img.shields.io/badge/version-0.9.2-%235500FF.svg)](pyproject.toml)
64
+ [![Version](https://img.shields.io/badge/version-0.10.0-%235500FF.svg)](pyproject.toml)
65
65
 
66
66
  Describe your tables in a YAML file, run `hypertopos build`, and every entity gets a position relative to its own population — so "out of place", "similar", "drifting" and "different between groups" become distances you read instead of queries you write.
67
67
 
68
- - **No model, no labels.** The threshold θ is a percentile of the population's own distances; nothing is trained and nothing has to be annotated.
68
+ - **No model, no labels.** Every entity's anomaly score is calibrated against the population itself, with an exact alarm budget — at the 95th percentile 5 % is flagged, and 5 % of a population like it would be; nothing is trained and nothing has to be annotated.
69
69
  - **Explanations in the data's own columns.** `explain_anomaly` splits an anomaly into each dimension's share of the distance; the shares sum to 100%.
70
70
  - **One snapshot per reader, what-if on a branch.** A session keeps its answers while data keeps arriving; a recalibration or trial ingest runs on a copy-free branch, gets compared with main, then is promoted or deleted.
71
71
 
72
72
  <p align="center">
73
73
  <img src="docs/images/demo-find-anomalies.svg" width="900"
74
- alt="An agent ranks anomalies with find_anomalies and explains the top one with explain_anomaly; the entity sits outside the θ ring.">
74
+ alt="An agent ranks anomalies with find_anomalies and explains the top one with explain_anomaly; the entity sits outside the p = 0.05 alarm-budget ring.">
75
75
  </p>
76
- <p align="center"><sub><i>Distance from the centre is the real <code>delta_norm</code>; θ comes from the population.</i></sub></p>
76
+ <p align="center"><sub><i>Distance from the centre is each entity's evidence in bits (−log<sub>2</sub> p); the ring is the alarm budget, p = 0.05.</i></sub></p>
77
77
 
78
78
  hypertopos is not a database, and not a machine learning model. It is a layer that turns relational data into a coordinate system where every entity gets a position derived from its relationships and the population around it. It complements SQL: the database answers *which rows match*; hypertopos answers *which entities are out of place, how that is changing, and why*.
79
79
 
@@ -175,7 +175,7 @@ Event tables that live in Spark (Databricks, a lakehouse, a cluster) need no YAM
175
175
  <img src="docs/images/demo-spark.svg" width="900"
176
176
  alt="A data scientist calls find_anomalies on a Spark DataFrame of payment events grouped by segment, shows the three most distant entities, then calls explain on A000335">
177
177
  </p>
178
- <p align="center"><sub><i>Real output on synthetic data. A000335 lands outside its segment's θ ring; <code>explain</code> names the dimension that moved it.</i></sub></p>
178
+ <p align="center"><sub><i>Real output on synthetic data. A000335 is flagged by its conformal p-value; <code>explain</code> names the dimension that drives its score.</i></sub></p>
179
179
 
180
180
  ```bash
181
181
  pip install "hypertopos[spark]" # on Databricks, plain `%pip install hypertopos`
@@ -192,7 +192,7 @@ events = tx.join(accounts.select("account", "segment"), tx.from_account == accou
192
192
 
193
193
  result = find_anomalies(events, entity="from_account", counterparty="to_account",
194
194
  amount="amount", time="ts", group_by="segment")
195
- result.orderBy("delta_norm", ascending=False).show(3)
195
+ result.orderBy("anomaly_score", ascending=False).show(3)
196
196
  explain(result, entities=["A000335"]).show(2)
197
197
  ```
198
198
 
@@ -216,9 +216,6 @@ Real output (local Spark, two cores):
216
216
  ```
217
217
 
218
218
  `A000335` made 20 payments on its busiest day, against about 8 for retail accounts (+5.3 σ), and its payment amounts vary far more than theirs (`amount_std_out` is log-scaled). In the labels of `data.accounts` it is one of the planted fan-out accounts. The other two are not laundering, only unusual, which is what a distance from the population measures: `p_value` 0.001 means one entity in a thousand is as far out. The labels let you measure how a detector does on the same data. `explain` shows where every number comes from. `score(new_events, like=result)` scores the next batch against this calibration on the executors, and `sphere_of(result)` hands the same geometry to an agent through the MCP server.
219
- > [!TIP]
220
- > On a laptop, create the session with `.master("local[2]").config("spark.sql.shuffle.partitions", "4")`. The default of 200 shuffle partitions is sized for a cluster.
221
-
222
219
  Everything else, from column roles and the 23 dimensions to time handling, the cache and the CLI, is in [hypertopos on Spark](docs/spark.md). To run the whole flow on labelled synthetic data, open the [quickstart notebook](docs/examples/spark-quickstart.ipynb) on Databricks or locally.
223
220
 
224
221
  ## See it in action
@@ -358,7 +355,7 @@ Every `hypertopos sphere …` subcommand takes `--json` for machine-readable out
358
355
  | Creating a branch on Windows fails with a message about the 260-character path limit | Branch files live under `<dataset>/tree/<branch>/`, which can push paths past Windows' limit. Move the sphere to a shorter directory, use a shorter branch name, or enable long paths in Windows (`LongPathsEnabled`). |
359
356
  | `Validation errors:` / `Source 'orders': file not found: …` | Source paths resolve relative to the YAML file's directory, not the shell's. |
360
357
  | `error: not a sphere directory (no _gds_meta/sphere.json): …` | Point `info` and `sphere …` at the directory that contains `_gds_meta/sphere.json`. |
361
- | `sphere validate` prints `dim_quality warning (non_normal_dim) on dim 'amount'` | Advisory: a gaussian-declared dimension with a heavy tail. Declare a `kind` or transform the column; `--strict` turns it into a failure for CI. |
358
+ | `sphere validate` prints `dim_quality warning (sparse_dim) on dim 'amount'` | The dimension is mostly-zero with rare nonzero values — gaussian z-score assumption is wrong. Declare `kind: bernoulli` (presence/absence) or `kind: poisson` (count) in the sphere YAML, or split the column into a binary `is_active` dim and a continuous `value_when_active` dim. |
362
359
  | `sphere validate` prints `dim_quality warning (dominant_dim_mass)` | One dimension carries most of the tail variance — the pattern is effectively a one-dimension detector. Add independent dimensions or split the column. |
363
360
  | A session keeps returning the same answers after an ingest | Sessions are pinned to a snapshot. `session.is_stale()`, then `session.refresh()`. |
364
361
  | `promote_branch` refused: main moved since the branch was created | `compare_branches` to see what differs, then delete the branch and create it again from the current main. |
@@ -374,7 +371,8 @@ Every capability below comes from one decision: an entity is a point in a space
374
371
  | Capability | What it does | Instead of |
375
372
  |---|---|---|
376
373
  | Population-relative coordinates | `delta = (shape − μ) / σ` per dimension; one vector serves anomaly, clustering, drift and comparison | Learned embeddings with latent dimensions that need retraining when the data shifts |
377
- | Self-calibrating threshold | θ is a percentile of the population's own `delta_norm` — per group when a pattern declares `group_by_property` | Choosing a contamination rate or a hand-tuned cut-off |
374
+ | Calibrated anomaly score | Continuous anchor patterns score each entity on rank-Gaussian, shrunk-covariance Mahalanobis distance plus, when an event line with an edge table exists, its motion against the population's velocity field (`score_axes`, nearest-peer distance opt-in); a split-conformal p-value against a stored reference makes `is_anomaly` an exact alarm budget | Choosing a contamination rate or a hand-tuned cut-off, or trusting a p-value from a Gaussian null the data does not follow |
375
+ | Self-calibrating threshold | θ is a percentile of the population's own `delta_norm` — per group when a pattern declares `group_by_property` — for event, mixture and discrete patterns | Choosing a contamination rate or a hand-tuned cut-off |
378
376
  | Distribution-aware dimensions | Each dimension declares a kind (gaussian, poisson, bernoulli), detected or set with `kind:` on precomputed dimensions; `sphere_overview` flags dead, sparse, non-normal and dominant dimensions with concrete advice | One metric for every feature, and silent garbage when a feature breaks its assumption |
379
377
  | Calibration epochs | Every build and `recalibrate` records an epoch; `compare_calibrations` shows per-dimension μ / σ / θ drift, `theta_sensitivity` shows whether θ sits near a cliff | No record of how the coordinate system itself moved |
380
378
  | Hidden influencers | `find_calibration_influencers` measures each entity's leave-one-out impact on the calibration and names the ones that distort it | Explaining predictions while the baseline itself is contaminated |
@@ -385,7 +383,7 @@ Every capability below comes from one decision: an entity is a point in a space
385
383
  |---|---|---|
386
384
  | Named attribution | `explain_anomaly` ranks real dimensions by their share of `delta_norm²`; shares sum to 100% | SHAP / LIME approximations over a trained model |
387
385
  | Alternative hypotheses | `find_diverse_explanations` returns disjoint dimension sets that each explain the anomaly | One explanation and a manual search for "what else could it be" |
388
- | Error-controlled detection | Benjamini-Hochberg or Storey FDR on χ² p-values, per entity or per dimension; bootstrap `anomaly_confidence` with a `min_confidence` filter | A ranked list with no statement about false discoveries or stability |
386
+ | Error-controlled detection | The alarm budget on every calibrated pattern; a cell gate (hypergeometric enrichment, Benjamini-Hochberg or Storey over cells) that names the regions holding more anomalies than their size predicts; a `calibration_age` alert when the reference gets old | A ranked list with no statement about false alarms or where they concentrate |
389
387
  | Verdicts an agent can act on | `assess_anomaly_certainty`, `consensus_classification`, `calibration_drift_report`, `theta_sensitivity_report` return a verdict with its rationale | Stitching several low-level calls and interpreting them by hand |
390
388
  | Anomaly by absence | `find_density_gaps` finds combinations that are missing from the population; `find_conformance_violations` checks declared rules | Outlier detection, which only sees extremes that exist |
391
389
 
@@ -423,16 +421,16 @@ Every capability below comes from one decision: an entity is a point in a space
423
421
  | Operations CLI | `hypertopos sphere health`, `validate` and `diff` give CI gates and drift between two builds; vector-index health is reported before trajectory tools rely on it | Hand-rolled validation scripts |
424
422
  | An agent surface | The MCP server runs over stdio or HTTP with a session per agent and compact, strict-JSON responses sized for a context window | Wrapping a database in ad-hoc tools |
425
423
  | On Spark | `hypertopos.spark.find_anomalies(df, entity=…, …)` aggregates events per entity on the executors and returns a DataFrame with distance, flag, p-value and reasons; `explain` breaks it down, `sphere_of` hands it to an agent. Runs on classic clusters and Spark Connect, including Databricks serverless | Exporting events, building features by hand and running a detector outside the cluster |
426
- | Frozen scoring | `FrozenCalibration` (and `hypertopos.spark.score` on executors) scores new data against a fixed population without recalibrating | Refitting the detector on every batch, so yesterday's and today's scores are not comparable |
424
+ | Frozen scoring | `FrozenCalibration` (and `hypertopos.spark.score` on executors) scores new data against a fixed population without recalibrating; a calibration saved on persistent storage serves later scheduled jobs (`sphere_of(path)`, `hypertopos spark score`), and `explain` names the dimensions behind each alert | Refitting the detector on every batch, so yesterday's and today's scores are not comparable |
427
425
  | Data to try it on | `hypertopos.datasets.synthetic_aml` generates a labelled payments dataset with six laundering patterns | Hunting for a public dataset before the first call |
428
426
 
429
427
  ### What changes in practice
430
428
 
431
429
  | Problem | Typical approach | With hypertopos |
432
430
  |---|---|---|
433
- | Find what is unusual | Engineer features, train a model, pick a contamination rate, retrain on shift | Build from YAML, call `find_anomalies` — θ comes from the population |
431
+ | Find what is unusual | Engineer features, train a model, pick a contamination rate, retrain on shift | Build from YAML, call `find_anomalies` — the score is calibrated on the population |
434
432
  | Say why it is unusual | Feature importance from a model you have to trust | `explain_anomaly` — real dimensions, shares that sum to 100%; `find_diverse_explanations` for alternatives |
435
- | Know it is not a fluke | Rerun with other thresholds, ask a domain expert | `find_witness_cohort` for unconnected look-alikes, `min_confidence` for stability, FDR for the whole list |
433
+ | Know it is not a fluke | Rerun with other thresholds, ask a domain expert | `find_witness_cohort` for unconnected look-alikes, `conformal_p` and the alarm budget for every flag, the cell gate for where they cluster |
436
434
  | Find the cause | Explain, then counterparties, then contagion, then hubs | `trace_root_cause` in one call |
437
435
  | Catch layering and typologies | Rule engines and rare-pair SQL | `score_edge`, `find_high_potential_motifs`, `find_motif_by_hops`, and chain investigation with a verdict |
438
436
  | See behaviour change | Export to a time-series database and set manual alerts | `find_drifting_entities` with direction; `decompose_drift` to separate entity from baseline |
@@ -450,7 +448,7 @@ Validated on three domains with the same engine, zero domain rules, zero labels:
450
448
  | AML | IBM AML (synthetic) | 80.4% recall, zero labels |
451
449
  | Transport | NYC Yellow Taxi (7.6M trips) | 8/8 anomaly categories detected |
452
450
 
453
- Benchmark scripts and data preparation are included. Results are reproducible. Numbers are from the pre-0.1.0 validation run and have not been re-evaluated against recent releases.
451
+ Benchmark scripts and data preparation are included. Results were reproducible at the release they were measured on. Numbers are from the pre-0.1.0 validation run and have not been re-evaluated against recent releases.
454
452
 
455
453
  Full results: [Benchmarks](docs/benchmarks.md)
456
454
 
@@ -508,4 +506,4 @@ Research-stage project. Working code, reproducible benchmarks, active developmen
508
506
 
509
507
  ## License
510
508
 
511
- [Business Source License 1.1](LICENSE.md). Free for internal use, development, testing, and research. See LICENSE.md for details.
509
+ [Business Source License 1.1](LICENSE.md). You may use hypertopos in production, including on your own data platform; you may not offer it to third parties as a hosted or embedded competing service. Each version becomes Apache 2.0 three years after its release. See LICENSE.md for the exact terms.
@@ -9,19 +9,19 @@
9
9
  [![PyArrow](https://img.shields.io/badge/format-PyArrow-red.svg)](https://arrow.apache.org/docs/python/)
10
10
  [![Lance](https://img.shields.io/badge/storage-Lance-blueviolet.svg)](https://github.com/lance-format/lance)
11
11
  [![MCP](https://img.shields.io/badge/MCP-compatible-green.svg)](https://modelcontextprotocol.io)
12
- [![Version](https://img.shields.io/badge/version-0.9.2-%235500FF.svg)](pyproject.toml)
12
+ [![Version](https://img.shields.io/badge/version-0.10.0-%235500FF.svg)](pyproject.toml)
13
13
 
14
14
  Describe your tables in a YAML file, run `hypertopos build`, and every entity gets a position relative to its own population — so "out of place", "similar", "drifting" and "different between groups" become distances you read instead of queries you write.
15
15
 
16
- - **No model, no labels.** The threshold θ is a percentile of the population's own distances; nothing is trained and nothing has to be annotated.
16
+ - **No model, no labels.** Every entity's anomaly score is calibrated against the population itself, with an exact alarm budget — at the 95th percentile 5 % is flagged, and 5 % of a population like it would be; nothing is trained and nothing has to be annotated.
17
17
  - **Explanations in the data's own columns.** `explain_anomaly` splits an anomaly into each dimension's share of the distance; the shares sum to 100%.
18
18
  - **One snapshot per reader, what-if on a branch.** A session keeps its answers while data keeps arriving; a recalibration or trial ingest runs on a copy-free branch, gets compared with main, then is promoted or deleted.
19
19
 
20
20
  <p align="center">
21
21
  <img src="docs/images/demo-find-anomalies.svg" width="900"
22
- alt="An agent ranks anomalies with find_anomalies and explains the top one with explain_anomaly; the entity sits outside the θ ring.">
22
+ alt="An agent ranks anomalies with find_anomalies and explains the top one with explain_anomaly; the entity sits outside the p = 0.05 alarm-budget ring.">
23
23
  </p>
24
- <p align="center"><sub><i>Distance from the centre is the real <code>delta_norm</code>; θ comes from the population.</i></sub></p>
24
+ <p align="center"><sub><i>Distance from the centre is each entity's evidence in bits (−log<sub>2</sub> p); the ring is the alarm budget, p = 0.05.</i></sub></p>
25
25
 
26
26
  hypertopos is not a database, and not a machine learning model. It is a layer that turns relational data into a coordinate system where every entity gets a position derived from its relationships and the population around it. It complements SQL: the database answers *which rows match*; hypertopos answers *which entities are out of place, how that is changing, and why*.
27
27
 
@@ -123,7 +123,7 @@ Event tables that live in Spark (Databricks, a lakehouse, a cluster) need no YAM
123
123
  <img src="docs/images/demo-spark.svg" width="900"
124
124
  alt="A data scientist calls find_anomalies on a Spark DataFrame of payment events grouped by segment, shows the three most distant entities, then calls explain on A000335">
125
125
  </p>
126
- <p align="center"><sub><i>Real output on synthetic data. A000335 lands outside its segment's θ ring; <code>explain</code> names the dimension that moved it.</i></sub></p>
126
+ <p align="center"><sub><i>Real output on synthetic data. A000335 is flagged by its conformal p-value; <code>explain</code> names the dimension that drives its score.</i></sub></p>
127
127
 
128
128
  ```bash
129
129
  pip install "hypertopos[spark]" # on Databricks, plain `%pip install hypertopos`
@@ -140,7 +140,7 @@ events = tx.join(accounts.select("account", "segment"), tx.from_account == accou
140
140
 
141
141
  result = find_anomalies(events, entity="from_account", counterparty="to_account",
142
142
  amount="amount", time="ts", group_by="segment")
143
- result.orderBy("delta_norm", ascending=False).show(3)
143
+ result.orderBy("anomaly_score", ascending=False).show(3)
144
144
  explain(result, entities=["A000335"]).show(2)
145
145
  ```
146
146
 
@@ -164,9 +164,6 @@ Real output (local Spark, two cores):
164
164
  ```
165
165
 
166
166
  `A000335` made 20 payments on its busiest day, against about 8 for retail accounts (+5.3 σ), and its payment amounts vary far more than theirs (`amount_std_out` is log-scaled). In the labels of `data.accounts` it is one of the planted fan-out accounts. The other two are not laundering, only unusual, which is what a distance from the population measures: `p_value` 0.001 means one entity in a thousand is as far out. The labels let you measure how a detector does on the same data. `explain` shows where every number comes from. `score(new_events, like=result)` scores the next batch against this calibration on the executors, and `sphere_of(result)` hands the same geometry to an agent through the MCP server.
167
- > [!TIP]
168
- > On a laptop, create the session with `.master("local[2]").config("spark.sql.shuffle.partitions", "4")`. The default of 200 shuffle partitions is sized for a cluster.
169
-
170
167
  Everything else, from column roles and the 23 dimensions to time handling, the cache and the CLI, is in [hypertopos on Spark](docs/spark.md). To run the whole flow on labelled synthetic data, open the [quickstart notebook](docs/examples/spark-quickstart.ipynb) on Databricks or locally.
171
168
 
172
169
  ## See it in action
@@ -306,7 +303,7 @@ Every `hypertopos sphere …` subcommand takes `--json` for machine-readable out
306
303
  | Creating a branch on Windows fails with a message about the 260-character path limit | Branch files live under `<dataset>/tree/<branch>/`, which can push paths past Windows' limit. Move the sphere to a shorter directory, use a shorter branch name, or enable long paths in Windows (`LongPathsEnabled`). |
307
304
  | `Validation errors:` / `Source 'orders': file not found: …` | Source paths resolve relative to the YAML file's directory, not the shell's. |
308
305
  | `error: not a sphere directory (no _gds_meta/sphere.json): …` | Point `info` and `sphere …` at the directory that contains `_gds_meta/sphere.json`. |
309
- | `sphere validate` prints `dim_quality warning (non_normal_dim) on dim 'amount'` | Advisory: a gaussian-declared dimension with a heavy tail. Declare a `kind` or transform the column; `--strict` turns it into a failure for CI. |
306
+ | `sphere validate` prints `dim_quality warning (sparse_dim) on dim 'amount'` | The dimension is mostly-zero with rare nonzero values — gaussian z-score assumption is wrong. Declare `kind: bernoulli` (presence/absence) or `kind: poisson` (count) in the sphere YAML, or split the column into a binary `is_active` dim and a continuous `value_when_active` dim. |
310
307
  | `sphere validate` prints `dim_quality warning (dominant_dim_mass)` | One dimension carries most of the tail variance — the pattern is effectively a one-dimension detector. Add independent dimensions or split the column. |
311
308
  | A session keeps returning the same answers after an ingest | Sessions are pinned to a snapshot. `session.is_stale()`, then `session.refresh()`. |
312
309
  | `promote_branch` refused: main moved since the branch was created | `compare_branches` to see what differs, then delete the branch and create it again from the current main. |
@@ -322,7 +319,8 @@ Every capability below comes from one decision: an entity is a point in a space
322
319
  | Capability | What it does | Instead of |
323
320
  |---|---|---|
324
321
  | Population-relative coordinates | `delta = (shape − μ) / σ` per dimension; one vector serves anomaly, clustering, drift and comparison | Learned embeddings with latent dimensions that need retraining when the data shifts |
325
- | Self-calibrating threshold | θ is a percentile of the population's own `delta_norm` — per group when a pattern declares `group_by_property` | Choosing a contamination rate or a hand-tuned cut-off |
322
+ | Calibrated anomaly score | Continuous anchor patterns score each entity on rank-Gaussian, shrunk-covariance Mahalanobis distance plus, when an event line with an edge table exists, its motion against the population's velocity field (`score_axes`, nearest-peer distance opt-in); a split-conformal p-value against a stored reference makes `is_anomaly` an exact alarm budget | Choosing a contamination rate or a hand-tuned cut-off, or trusting a p-value from a Gaussian null the data does not follow |
323
+ | Self-calibrating threshold | θ is a percentile of the population's own `delta_norm` — per group when a pattern declares `group_by_property` — for event, mixture and discrete patterns | Choosing a contamination rate or a hand-tuned cut-off |
326
324
  | Distribution-aware dimensions | Each dimension declares a kind (gaussian, poisson, bernoulli), detected or set with `kind:` on precomputed dimensions; `sphere_overview` flags dead, sparse, non-normal and dominant dimensions with concrete advice | One metric for every feature, and silent garbage when a feature breaks its assumption |
327
325
  | Calibration epochs | Every build and `recalibrate` records an epoch; `compare_calibrations` shows per-dimension μ / σ / θ drift, `theta_sensitivity` shows whether θ sits near a cliff | No record of how the coordinate system itself moved |
328
326
  | Hidden influencers | `find_calibration_influencers` measures each entity's leave-one-out impact on the calibration and names the ones that distort it | Explaining predictions while the baseline itself is contaminated |
@@ -333,7 +331,7 @@ Every capability below comes from one decision: an entity is a point in a space
333
331
  |---|---|---|
334
332
  | Named attribution | `explain_anomaly` ranks real dimensions by their share of `delta_norm²`; shares sum to 100% | SHAP / LIME approximations over a trained model |
335
333
  | Alternative hypotheses | `find_diverse_explanations` returns disjoint dimension sets that each explain the anomaly | One explanation and a manual search for "what else could it be" |
336
- | Error-controlled detection | Benjamini-Hochberg or Storey FDR on χ² p-values, per entity or per dimension; bootstrap `anomaly_confidence` with a `min_confidence` filter | A ranked list with no statement about false discoveries or stability |
334
+ | Error-controlled detection | The alarm budget on every calibrated pattern; a cell gate (hypergeometric enrichment, Benjamini-Hochberg or Storey over cells) that names the regions holding more anomalies than their size predicts; a `calibration_age` alert when the reference gets old | A ranked list with no statement about false alarms or where they concentrate |
337
335
  | Verdicts an agent can act on | `assess_anomaly_certainty`, `consensus_classification`, `calibration_drift_report`, `theta_sensitivity_report` return a verdict with its rationale | Stitching several low-level calls and interpreting them by hand |
338
336
  | Anomaly by absence | `find_density_gaps` finds combinations that are missing from the population; `find_conformance_violations` checks declared rules | Outlier detection, which only sees extremes that exist |
339
337
 
@@ -371,16 +369,16 @@ Every capability below comes from one decision: an entity is a point in a space
371
369
  | Operations CLI | `hypertopos sphere health`, `validate` and `diff` give CI gates and drift between two builds; vector-index health is reported before trajectory tools rely on it | Hand-rolled validation scripts |
372
370
  | An agent surface | The MCP server runs over stdio or HTTP with a session per agent and compact, strict-JSON responses sized for a context window | Wrapping a database in ad-hoc tools |
373
371
  | On Spark | `hypertopos.spark.find_anomalies(df, entity=…, …)` aggregates events per entity on the executors and returns a DataFrame with distance, flag, p-value and reasons; `explain` breaks it down, `sphere_of` hands it to an agent. Runs on classic clusters and Spark Connect, including Databricks serverless | Exporting events, building features by hand and running a detector outside the cluster |
374
- | Frozen scoring | `FrozenCalibration` (and `hypertopos.spark.score` on executors) scores new data against a fixed population without recalibrating | Refitting the detector on every batch, so yesterday's and today's scores are not comparable |
372
+ | Frozen scoring | `FrozenCalibration` (and `hypertopos.spark.score` on executors) scores new data against a fixed population without recalibrating; a calibration saved on persistent storage serves later scheduled jobs (`sphere_of(path)`, `hypertopos spark score`), and `explain` names the dimensions behind each alert | Refitting the detector on every batch, so yesterday's and today's scores are not comparable |
375
373
  | Data to try it on | `hypertopos.datasets.synthetic_aml` generates a labelled payments dataset with six laundering patterns | Hunting for a public dataset before the first call |
376
374
 
377
375
  ### What changes in practice
378
376
 
379
377
  | Problem | Typical approach | With hypertopos |
380
378
  |---|---|---|
381
- | Find what is unusual | Engineer features, train a model, pick a contamination rate, retrain on shift | Build from YAML, call `find_anomalies` — θ comes from the population |
379
+ | Find what is unusual | Engineer features, train a model, pick a contamination rate, retrain on shift | Build from YAML, call `find_anomalies` — the score is calibrated on the population |
382
380
  | Say why it is unusual | Feature importance from a model you have to trust | `explain_anomaly` — real dimensions, shares that sum to 100%; `find_diverse_explanations` for alternatives |
383
- | Know it is not a fluke | Rerun with other thresholds, ask a domain expert | `find_witness_cohort` for unconnected look-alikes, `min_confidence` for stability, FDR for the whole list |
381
+ | Know it is not a fluke | Rerun with other thresholds, ask a domain expert | `find_witness_cohort` for unconnected look-alikes, `conformal_p` and the alarm budget for every flag, the cell gate for where they cluster |
384
382
  | Find the cause | Explain, then counterparties, then contagion, then hubs | `trace_root_cause` in one call |
385
383
  | Catch layering and typologies | Rule engines and rare-pair SQL | `score_edge`, `find_high_potential_motifs`, `find_motif_by_hops`, and chain investigation with a verdict |
386
384
  | See behaviour change | Export to a time-series database and set manual alerts | `find_drifting_entities` with direction; `decompose_drift` to separate entity from baseline |
@@ -398,7 +396,7 @@ Validated on three domains with the same engine, zero domain rules, zero labels:
398
396
  | AML | IBM AML (synthetic) | 80.4% recall, zero labels |
399
397
  | Transport | NYC Yellow Taxi (7.6M trips) | 8/8 anomaly categories detected |
400
398
 
401
- Benchmark scripts and data preparation are included. Results are reproducible. Numbers are from the pre-0.1.0 validation run and have not been re-evaluated against recent releases.
399
+ Benchmark scripts and data preparation are included. Results were reproducible at the release they were measured on. Numbers are from the pre-0.1.0 validation run and have not been re-evaluated against recent releases.
402
400
 
403
401
  Full results: [Benchmarks](docs/benchmarks.md)
404
402
 
@@ -456,4 +454,4 @@ Research-stage project. Working code, reproducible benchmarks, active developmen
456
454
 
457
455
  ## License
458
456
 
459
- [Business Source License 1.1](LICENSE.md). Free for internal use, development, testing, and research. See LICENSE.md for details.
457
+ [Business Source License 1.1](LICENSE.md). You may use hypertopos in production, including on your own data platform; you may not offer it to third parties as a hosted or embedded competing service. Each version becomes Apache 2.0 three years after its release. See LICENSE.md for the exact terms.
@@ -1,6 +1,6 @@
1
1
  # Security
2
2
 
3
- ## Current version: 0.9.2
3
+ ## Current version: 0.10.0
4
4
 
5
5
  hypertopos runs locally. No network services, no auth layer, no multi-tenancy.
6
6
 
@@ -14,8 +14,8 @@ hypertopos runs locally. No network services, no auth layer, no multi-tenancy.
14
14
 
15
15
  | Version | Supported |
16
16
  |---|---|
17
- | Latest 0.9.x | Yes |
18
- | < 0.9 | No |
17
+ | Latest 0.10.x | Yes |
18
+ | < 0.10 | No |
19
19
 
20
20
  ## Reporting
21
21
 
@@ -62,7 +62,7 @@ While a sphere has branches, `GDSBuilder.build()` into its directory raises `GDS
62
62
  | Method | Description |
63
63
  |--------|-------------|
64
64
  | `session.navigator()` | Create a `GDSNavigator` bound to this session's manifest |
65
- | `session.recalibrate(pattern_id, soft_threshold=None, hard_threshold=None, *, branch=None, exclude_keys=None)` | Full recalibration: recompute mu/sigma/theta, rebuild geometry, reset drift tracker. The session sees the result immediately. `exclude_keys` leaves those entities out of the fit (every entity is still scored; an unknown key raises `ValueError`). On a branch session it writes only the branch. `branch=` on a main session runs it on that branch, creating it when absent, and leaves main and the session untouched. A recalibration on a branch is appended to the branch's recipe log in `branch.json`. The result adds `n_excluded` and `branch` |
65
+ | `session.recalibrate(pattern_id, soft_threshold=None, hard_threshold=None, *, branch=None, exclude_keys=None)` | Full recalibration: recompute mu/sigma/theta, rebuild geometry, reset drift tracker; on a calibrated pattern also refit the score reference (new `reference_epoch`) and rescore every entity. The session sees the result immediately. `exclude_keys` leaves those entities out of the fit (every entity is still scored; an unknown key raises `ValueError`). On a branch session it writes only the branch. `branch=` on a main session runs it on that branch, creating it when absent, and leaves main and the session untouched. A recalibration on a branch is appended to the branch's recipe log in `branch.json`. The result adds `n_excluded` and `branch` |
66
66
  | `session.sphere()` | Sphere metadata of the session's snapshot |
67
67
  | `session.refresh()` | Move the session (and its navigators) to the sphere's latest state |
68
68
  | `session.is_stale()` | `SnapshotStatus`: `stale`, `metadata_changed`, `pinned_versions`, `latest_versions`, `pinned_at` — whether the sphere changed after the session opened |
@@ -115,8 +115,8 @@ with sphere.session("agent-1") as session:
115
115
 
116
116
  | Primitive | Method | What it does | Returns |
117
117
  |-----------|--------|--------------|---------|
118
- | π5 | `π5_attract_anomaly(pattern_id, radius, top_n, fdr_alpha, fdr_method, p_value_method, select, min_confidence)` | Find most anomalous polygons | `(list[Polygon], int, list, dict)` |
119
- | π6 | `π6_attract_boundary(alias_id, pattern_id, direction, top_n, fdr_alpha, fdr_method, p_value_method, select)` | Find entities nearest to alias cutting plane | `list[(Polygon, float)]` |
118
+ | π5 | `π5_attract_anomaly(pattern_id, radius=None, top_n, fdr_alpha, fdr_method, fdr_resolution, fdr_temporal_resolution, rank_by=None, select, min_confidence)` | Find most anomalous polygons. On a calibrated pattern (non-empty `Pattern.score_dims`) the selection is the stored `is_anomaly` and the order is `conformal_p` ascending, then `anomaly_score` descending; `radius`, `metric != "L2"`, `dimension_weights`, `rank_by="delta_norm"` / `"signed_confidence"`, `boundary_aware` and `min_confidence > 0` raise `ValueError` there. `fdr_alpha` is the level of the cell gate and requires `fdr_resolution` or `fdr_temporal_resolution` (`fdr_method` defaults to `"storey"`) | `(list[Polygon], int, list, dict)` |
119
+ | π6 | `π6_attract_boundary(alias_id, pattern_id, direction, top_n, select)` | Find entities nearest to alias cutting plane | `list[(Polygon, float)]` |
120
120
  | π7 | `π7_attract_hub(pattern_id, top_n, line_id_filter, select)` | Find entities with highest connectivity | `list[(str, int, float)]` |
121
121
  | π7+ | `π7_attract_hub_and_stats(pattern_id, top_n, line_id_filter, select)` | Hub ranking + population hub score statistics in one scan | `(list, dict)` |
122
122
  | π8 | `π8_attract_cluster(pattern_id, n_clusters, top_n, sample_size)` | Discover geometric archetypes via k-means++ | `list[dict]` |
@@ -149,7 +149,7 @@ with sphere.session("agent-1") as session:
149
149
  | `attract_edge_potential(pattern_id, top_n, from_key, to_key, min_pair_count)` | Rank all edges by `edge_potential` DESC. Scope to an entity with from/to. |
150
150
  | `score_motif(entity_key, motif_type, pattern_id, time_window_hours=None, amt1_min=10000.0, amt2_max=10000.0, min_k=None, k=4, direction="forward", min_m=3)` | Score best structural motif seeded at entity. `pattern_id` must be an **anchor** pattern (event-pattern inputs are rejected with a `GDSNavigationError` pointing at the anchor companion). `motif_type` ∈ {`fan_out`, `fan_in`, `cycle_2`, `cycle_3`, `structuring`, `chain_k`, `split_recombine`, `bipartite_burst`}. Composes `edge_potential` via product across motif edges. Defaults: fan_out/fan_in=168h, cycle_2=24h, cycle_3=72h, structuring=1h, chain_k=168h, split_recombine=168h, bipartite_burst=24h. `amt1_min`/`amt2_max` gate the three hops of a `structuring` motif; `k` sets chain length for `chain_k` (3 ≤ k ≤ 8, default 4); `min_k` overrides the distinct-neighbour (or source-side, for bipartite_burst) cardinality threshold for `fan_out` / `fan_in` / `split_recombine` / `bipartite_burst` (default 3 when `None`, must be ≥ 2); `direction` ("forward" or "backward") picks whether the seed plays the source S or sink D of a `split_recombine` diamond; `min_m` sets the sink-side cardinality of a `bipartite_burst` K_{k,m} subgraph (default 3, must be ≥ 2); each parameter is ignored for motif types it doesn't gate. |
151
151
  | `find_high_potential_motifs(pattern_id, motif_type, top_n, time_window_hours, seeds, min_k, amt1_min, amt2_max, k, direction="forward", min_m=3)` | Rank motifs of a given type across the pattern. `pattern_id` must be an **anchor** pattern; passing an event pattern raises `GDSNavigationError` (same gate as `score_motif`). LRU-cached per (pattern, motif_type, window, amt1_min, amt2_max, k, direction, min_m), cap 8. `cycle_3` deduplicated by canonical ring; `structuring` and `chain_k` deduplicated by canonical path tuple; `split_recombine` deduplicated by `(direction, source, sink, sorted intermediaries)`; `bipartite_burst` deduplicated by `(frozenset sources, frozenset sinks)`. `min_k` applies to `fan_out` / `fan_in` / `split_recombine` / `bipartite_burst` (default 3); `k` applies to `chain_k` (default 4); `direction` applies to `split_recombine`; `min_m` applies to `bipartite_burst`. |
152
- | `find_witness_cohort(primary_key, pattern_id, top_n=10, *, config=None, edge_pattern_id=None)` | Rank entities that share the target's witness signature. Investigative peer ranking — NOT edge forecasting. Combines four signals: `exp(-distance/theta)` delta similarity, witness Jaccard overlap, trajectory cosine alignment (optional), and graded anomaly bonus from `delta_rank_pct`. Excludes entities already connected via BTREE edge lookup — this is the function's main contribution over plain ANN. Configure via `WitnessCohortConfig(weights=WitnessCohortWeights(...), candidate_pool, min_witness_overlap, min_score, use_trajectory, bidirectional_check, timestamp_cutoff)`. Returns `WitnessCohortResult` with ranked `CohortMember` items, per-component scores, exclusion counts, and reproducibility metadata |
152
+ | `find_witness_cohort(primary_key, pattern_id, top_n=10, *, config=None, edge_pattern_id=None)` | Rank entities that share the target's witness signature. Investigative peer ranking — NOT edge forecasting. Combines four signals: `exp(-distance/theta)` delta similarity, witness Jaccard overlap, trajectory cosine alignment (optional), and graded anomaly bonus from `score_rank_pct`. Excludes entities already connected via BTREE edge lookup — this is the function's main contribution over plain ANN. Configure via `WitnessCohortConfig(weights=WitnessCohortWeights(...), candidate_pool, min_witness_overlap, min_score, use_trajectory, bidirectional_check, timestamp_cutoff)`. Returns `WitnessCohortResult` with ranked `CohortMember` items, per-component scores, exclusion counts, and reproducibility metadata |
153
153
  | `find_novel_entities(pattern_id, top_n=10, sample_size=5000)` | Rank entities by geometric deviation from neighbor-expected position using edge table adjacency. High `novelty_score` = entity doesn't behave like its neighborhood. Requires a pattern with an edge table. Returns list of dicts with `primary_key`, `novelty_score`, and per-dimension decomposition |
154
154
 
155
155
  ### Analysis and Detection
@@ -158,7 +158,7 @@ with sphere.session("agent-1") as session:
158
158
 
159
159
  | Method | Description |
160
160
  |--------|-------------|
161
- | `explain_anomaly(primary_key, pattern_id)` | Structured investigation: severity, witness set, repair set, conformal p-value, reputation, per-dim attribution under `top_dimensions[]` (fields: `dim`, `kind`, `delta`, `pct_of_total` — the dim's share of `delta_norm²`, sorted descending), and `reliability_flags` (per-polygon triage: `single_dim_driven`, `dominant_dim`, `dominant_dim_share`, `low_confidence_bucket`, `confidence`, `flags`). `dominant_dim` agrees with `top_dimensions[0]["dim"]` for the same polygon |
161
+ | `explain_anomaly(primary_key, pattern_id)` | Structured investigation: severity, witness set, repair set, conformal p-value, reputation, per-dim attribution under `top_dimensions[]` (fields: `dim`, `kind`, `delta`, `pct_of_total` — the dim's share of `delta_norm²`, sorted descending), and `reliability_flags` (per-polygon triage: `single_dim_driven`, `dominant_dim`, `dominant_dim_share`, `low_confidence_bucket`, `confidence`, `flags`). `dominant_dim` agrees with `top_dimensions[0]["dim"]` for the same polygon. On a calibrated pattern: `severity`, `conformal_p`, `anomaly_score`, `bits`, `axes`, `top_dimensions[]` as `{dim, z, bits, pct_of_total}`; no witness, repair or `theta_norm`. |
162
162
  | `trace_root_cause(primary_key, pattern_id, max_depth, max_branches)` | Multi-hop root-cause DAG: composes `explain_anomaly` + `find_counterparties` + `contagion_score` + `π7_attract_hub` into one bounded tree. Returns `{root, summary, hop_count, branches_explored, truncated}`. Replaces `explain_anomaly_chain` |
163
163
  | `find_similar_entities(primary_key, pattern_id, top_n, dim_mask, metric)` | ANN search for nearest entities in delta-space. `dim_mask`: list of dimension names to restrict distance. `metric`: `"L2"` or `"cosine"`. Returns `SimilarityResult` |
164
164
  | `contrast_populations(pattern_id, group_a, group_b)` | Dimension-by-dimension comparison of two entity groups (Cohen's d) |
@@ -212,7 +212,7 @@ and inflated combined significance whenever inputs co-fired.
212
212
 
213
213
  | Detector | Source signal | p-value transform |
214
214
  |----------|---------------|-------------------|
215
- | `delta_norm` | population-relative geometry deviation | `1 − anomaly_confidence` (chi² survival fallback when null) |
215
+ | `delta_norm` | the pattern's own anomaly p-value | stored `conformal_p` (p = 1 when missing) |
216
216
  | `neighbor_contamination` | k-neighbour anomaly density | hypergeometric upper-tail |
217
217
  | `segment_shift` | categorical-segment anomaly rate | one-sided Fisher exact 2×2 (in-segment rate higher than out-of-segment), back-projected per entity |
218
218
  | `trajectory_continuous` | DTW distance vs population-median trajectory (`engine/topology.py`); opt-in — not in the default `detectors`, reads the temporal history of the sampled entities | ECDF survival |
@@ -226,7 +226,7 @@ is the always-available primary path.
226
226
 
227
227
  | Method | Description |
228
228
  |--------|-------------|
229
- | `sphere_overview(pattern_id=None)` | Population summary for one or all patterns (rates, calibration health, dimension stats) |
229
+ | `sphere_overview(pattern_id=None)` | Population summary for one or all patterns (rates, calibration health, dimension stats). `anomaly_rate` counts `is_anomaly = true` on calibrated patterns and `delta_norm >= theta_norm` on others; `anomaly_rate_source` reports which rule was used. |
230
230
  | `anomaly_summary(pattern_id, max_clusters)` | Anomaly population breakdown with geometric clustering |
231
231
  | `aggregate_anomalies(pattern_id, group_by)` | Group anomalies by a property column with per-group rates |
232
232
  | `aggregate(event_pattern_id, group_by_line, group_by_relation=None)` | Aggregate event polygons by group with metric computation. When the event pattern relates to `group_by_line` more than once (e.g. sender and receiver accounts), `group_by_relation` names the relation to group by (its `display_name`); without it the call raises and lists the valid names. With a relation selected, `group_by_property='<group_by_line>:<col>'` reads the grouped entity, while `filters`, `count_distinct:<group_by_line>` and `group_by_line_2=<group_by_line>` refer to the other relation(s) to that line (e.g. distinct receivers per sender). `group_by_property='<event_line>:<col>'` groups by a column of the event itself |
@@ -268,8 +268,8 @@ builder = GDSBuilder(
268
268
  | `add_chain_line(line_id, chains, features)` | Create anchor line from extracted chain dicts |
269
269
  | `add_alias(alias_id, base_pattern_id, cutting_plane_dimension, cutting_plane_threshold)` | Register an alias with a cutting plane for sub-population analysis |
270
270
  | `build(temporal_configs=None)` | Validate, compute statistics, write all files. Pass `temporal_configs` to run geometry→temporal pipeline per pattern. Returns output path |
271
- | `incremental_update(pattern_id, changed_entities, deleted_keys, recalibrate, reindex, recompute_ranks, branch=None)` | Add/modify/delete entities without a full rebuild; new entities are immediately visible to anomaly search. Supports patterns whose dimensions are relations, event dimensions, edge-dim aggregations, and tracked properties; group-calibrated (`group_by_property`), GMM, and FDR-hierarchy patterns are rejected and must be rebuilt. `reindex=True` rebuilds the ANN index immediately; `recompute_ranks=False` defers the global `delta_rank_pct` recompute for batched ingestion. `branch=` applies the update to that sphere branch only and records it in the branch's recipe log (with a copy of the rows); an automatic recalibration is recorded as its own recipe |
272
- | `finalize_incremental(pattern_id, branch=None)` | Recompute the global `delta_rank_pct` percentile once and rebuild the ANN index. Call at the end of a batched ingestion session that used `recompute_ranks=False`. With `branch=` it finalizes that branch and is recorded in its recipe log |
271
+ | `incremental_update(pattern_id, changed_entities, deleted_keys, recalibrate, reindex, recompute_ranks, branch=None)` | Add/modify/delete entities without a full rebuild; new entities are immediately visible to anomaly search. Supports patterns whose dimensions are relations, event dimensions, edge-dim aggregations, and tracked properties; group-calibrated (`group_by_property`), GMM, and FDR-hierarchy patterns are rejected and must be rebuilt. `reindex=True` rebuilds the ANN index immediately; New and changed entities are scored against the pattern's stored calibration reference without a refit. `recompute_ranks=False` defers the global `score_rank_pct` recompute for batched ingestion. `branch=` applies the update to that sphere branch only and records it in the branch's recipe log (with a copy of the rows); an automatic recalibration is recorded as its own recipe |
272
+ | `finalize_incremental(pattern_id, branch=None)` | Recompute the global `score_rank_pct` percentile once and rebuild the ANN index. Call at the end of a batched ingestion session that used `recompute_ranks=False`. With `branch=` it finalizes that branch and is recorded in its recipe log |
273
273
  | `build_temporal(time_col, time_window)` | Generate temporal snapshots from time-windowed event data. Call after `build()` when not using pipeline mode |
274
274
 
275
275
  ### RelationSpec
@@ -422,12 +422,12 @@ is not on disk.
422
422
  Compares one pattern between `branch` and main, or between `branch` and branch `other`. Each side is read at its current state. Fields:
423
423
 
424
424
  - `n_from` / `n_to`: entity counts.
425
- - `anomalies_from` / `anomalies_to`: anomaly counts, using the rule `anomaly_summary` and `find_anomalies` count by: `delta_norm` at or above that side's global threshold.
426
- - `flipped_in` / `flipped_out`: among entities present on both sides, those that became, or stopped being, anomalous in `branch`. Counts are per entity: a key with duplicate rows counts once, at its highest `delta_norm`.
425
+ - `anomalies_from` / `anomalies_to`: anomaly counts using the same rule as `anomaly_summary` and `find_anomalies`: on a calibrated pattern (non-empty `score_dims`) the stored `is_anomaly` flag; on other patterns `delta_norm` at or above that side's global threshold.
426
+ - `flipped_in` / `flipped_out`: among entities present on both sides, those that became, or stopped being, anomalous in `branch`. Counts are per entity: a key with duplicate rows counts once, at its highest score (`anomaly_score` on a calibrated pattern, `delta_norm` otherwise).
427
427
  - `jaccard`: overlap of the two anomaly sets (1.0 when both are empty).
428
- - `top_movers`: the `top_n` entities by relative `delta_norm` change, each with both sides' `delta_norm`, `relative_change`, `is_anomaly` and rank percentile.
428
+ - `top_movers`: the `top_n` entities that moved most: by the change of evidence bits (`−log2 conformal_p`) on a calibrated pattern, by relative `delta_norm` change otherwise. Each carries both sides' `delta_norm`, `relative_change` (of `delta_norm`), `is_anomaly` and rank percentile; on a calibrated pattern also `anomaly_score_from` / `anomaly_score_to` and `evidence_change` (bits on the branch minus bits on the from side).
429
429
  - `flipped_in_top` / `flipped_out_top`: up to `top_n` flipped entities each, furthest past the threshold on the side where they are anomalous. Each carries `cause`: `threshold` (the threshold moved past the entity's unchanged score), `score` (the score crossed the unchanged threshold) or `both`.
430
- - `theta_from` / `theta_to`: the two global thresholds.
430
+ - `theta_from` / `theta_to`: the two thresholds. On uncalibrated patterns the global `delta_norm` threshold. On a calibrated pattern the lowest flagged `anomaly_score` on each side, or just above the highest score when nothing is flagged.
431
431
  - `only_in_from` / `only_in_to`: keys present on one side only.
432
432
  - `calibration_drift`: a `CalibrationDriftReport` between the two current fits, `None` when the schemas differ.
433
433
  - `recipe`: the branch's recipe log.
@@ -518,8 +518,7 @@ Classification: `high_impact = total_impact ≥ percentile(total_impact, high_th
518
518
  `verbose=True` attaches per-entry `cascading_flip_count` — count of
519
519
  OTHER entities flipping `is_anomaly` after this entity's removal.
520
520
 
521
- Raises `ValueError` on event pattern, `N<2`, `high_threshold_pct ∉ (0, 100)`,
522
- invalid `classify`, or `top_n ∉ [1, 50]`.
521
+ Raises `ValueError` on event pattern, calibrated pattern (non-empty `score_dims` — the leave-one-out μ/σ refit is not the anomaly boundary; use `explain_anomaly` for individual entity explanations), `N<2`, `high_threshold_pct ∉ (0, 100)`, invalid `classify`, or `top_n ∉ [1, 50]`.
523
522
 
524
523
  #### `GDSNavigator.find_group_influence(pattern_id, groups) -> list[GroupInfluenceReport]`
525
524
 
@@ -677,13 +676,16 @@ Key methods: `current_version()`, `has_fts()`.
677
676
  | `pattern_id` | `str` | Pattern that defines the geometry |
678
677
  | `pattern_type` | `"anchor" \| "event"` | Pattern class |
679
678
  | `scale` | `int` | Number of alive edges |
680
- | `delta` | `np.ndarray` | Z-scored deviation from population mean |
679
+ | `delta` | `np.ndarray` | Z-scored deviation from population mean (shape space, per named dimension) |
681
680
  | `delta_norm` | `float` | L2 norm of delta (distance from center) |
682
- | `is_anomaly` | `bool` | Whether delta_norm >= theta_norm |
681
+ | `is_anomaly` | `bool` | Calibrated pattern: `conformal_p <= 1 - anomaly_percentile/100` (the alarm budget). Other patterns: `delta_norm >= theta_norm` |
683
682
  | `edges` | `list[Edge]` | All edges in this polygon |
684
- | `delta_rank_pct` | `float \| None` | Percentile rank within population (0-100) |
685
- | `bregman_divergence` | `float \| None` | Per-entity Bregman divergence score — distribution-aware anomaly distance computed per dimension using its `kind` tag. `None` on pre-2.3 spheres. |
686
- | `anomaly_confidence` | `float \| None` | Bootstrap stability score (0–1): fraction of bootstrap samples in which the entity is classified as anomalous. `None` when bootstrap was skipped (N > 50K, `group_by_property`, or `use_mahalanobis`). |
683
+ | `score_rank_pct` | `float \| None` | Rank of the entity's anomaly score within the population (0-100): `anomaly_score` on calibrated patterns, `delta_norm` otherwise |
684
+ | `anomaly_score` | `float \| None` | Calibrated pattern: the fused evidence score (mean of the population ranks of the `score_axes`). Other patterns: equal to `delta_norm` |
685
+ | `conformal_p` | `float \| None` | Split-conformal p-value of the score against the stored calibration reference |
686
+ | `score_delta` | `np.ndarray \| None` | Calibrated pattern: rank-Gaussian coordinates of the dimensions in `Pattern.score_dims`. `None` otherwise |
687
+ | `bregman_divergence` | `float \| None` | Per-entity Bregman divergence score — distribution-aware anomaly distance computed per dimension using its `kind` tag. |
688
+ | `anomaly_confidence` | `float \| None` | Bootstrap stability score (0–1): fraction of bootstrap samples in which the entity is classified as anomalous. `None` when bootstrap was skipped (N > 50K or `group_by_property`) and on calibrated patterns. |
687
689
 
688
690
  Key methods: `is_event()`, `is_anchor()`, `alive_edges()`, `edges_for_line(line_id)`.
689
691
 
@@ -718,13 +720,17 @@ Key methods: `slice_at(timestamp)` -- binary search for the slice active at a gi
718
720
  | `relations` | `list[RelationDef]` | Dimension definitions |
719
721
  | `mu` | `np.ndarray` | Population mean vector |
720
722
  | `sigma_diag` | `np.ndarray` | Population standard deviation per dimension |
721
- | `theta` | `np.ndarray` | Anomaly threshold vector |
723
+ | `theta` | `np.ndarray` | Shape-space threshold vector at the anomaly percentile; the anomaly boundary only on patterns without the calibrated score |
724
+ | `anomaly_percentile` | `float` | Percentile that sets the alarm budget (`1 - anomaly_percentile/100`) and θ |
725
+ | `score_dims` | `tuple[str, ...] \| None` | Dimensions the calibrated score is computed on; non-empty marks a calibrated pattern |
726
+ | `score_axes` | `tuple[str, ...] \| None` | Scoring axes fitted (`mahal`, `current`, `knn`), in the order of the `axis_ranks` geometry column |
727
+ | `reference_epoch` | `int \| None` | Calibration epoch of the stored score reference |
722
728
  | `population_size` | `int` | Total entity count at calibration time |
723
729
  | `version` | `int` | Pattern version |
724
730
  | `prop_columns` | `list[str]` | Boolean property columns tracked as dimensions |
725
731
  | `edge_dim_names` | `list[str]` | Edge-derived dim names for event patterns that declared an `edge_dimensions:` block in `sphere.yaml`. Order matches the storage layout (after `event_dimensions`, before `prop_columns`). Empty for patterns without `edge_dimensions:`. |
726
732
  | `dimension_weights` | `np.ndarray \| None` | Per-dimension importance weights |
727
- | `dimension_kinds` | `list[str] \| None` | Per-dimension distribution family: `"gaussian"`, `"poisson"`, or `"bernoulli"`. Populated at build time; `None` on pre-2.3 spheres. |
733
+ | `dimension_kinds` | `list[str] \| None` | Per-dimension distribution family: `"gaussian"`, `"poisson"`, or `"bernoulli"`. Populated at build time. |
728
734
 
729
735
  Key properties: `theta_norm`, `dim_labels`, `delta_dim()`, `is_continuous`, `max_hub_score`.
730
736
 
@@ -801,7 +807,7 @@ Or use the navigator shortcut: `nav.passive_scan(home_line_id)`.
801
807
  | Method | Description |
802
808
  |--------|-------------|
803
809
  | `add_source(name, pattern_id, key_type, weight)` | Register a geometry anomaly source (auto-detects key_type) |
804
- | `add_borderline_source(name, pattern_id, rank_threshold)` | Register a near-threshold source (high delta_rank_pct, not anomalous) |
810
+ | `add_borderline_source(name, pattern_id, rank_threshold)` | Register a near-threshold source (high `score_rank_pct`, not anomalous) |
805
811
  | `add_points_source(name, line_id, rules, combine)` | Register a points-rule source filtering by column thresholds |
806
812
  | `add_compound_source(name, geometry_pattern_id, line_id, rules)` | Geometry expansion intersected with points rules |
807
813
  | `add_graph_source(name, pattern_id, contagion_threshold=0.3, weight)` | Register a graph contagion source — flags entities whose anomalous counterparty ratio exceeds threshold. Requires event pattern with edge table |
@@ -347,3 +347,6 @@ that binary typology match/no-match cannot capture.
347
347
  | [`_layer2_cross_eval.py`](_layer2_cross_eval.py) | Layer 2 cross-eval: train on HI-Small, apply to LI-Small without retraining |
348
348
  | [`_layer3_cross_eval.py`](_layer3_cross_eval.py) | Layer 3 cross-eval: train on HI-Small, apply + typology filter to LI-Small without retraining |
349
349
 
350
+ > **Note:** the scripts read `score_rank_pct`, which is now the population rank of the
351
+ > calibrated anomaly score. The results recorded above were taken on the earlier rank of
352
+ > `delta_norm`, so a rerun on a current sphere will not reproduce them exactly.
@@ -48,7 +48,7 @@ raw_cols = [
48
48
  "n_currencies_in",
49
49
  ]
50
50
  geo_cols = [
51
- "delta_rank_pct",
51
+ "score_rank_pct",
52
52
  "conformal_p",
53
53
  "is_anomaly",
54
54
  "multi_source_score",
@@ -112,13 +112,13 @@ def load_sphere(sphere_path, csv_prefix):
112
112
  geo = reader.read_geometry(
113
113
  "account_pattern",
114
114
  1,
115
- columns=["primary_key", "delta_norm", "delta_rank_pct", "conformal_p", "is_anomaly"],
115
+ columns=["primary_key", "delta_norm", "score_rank_pct", "conformal_p", "is_anomaly"],
116
116
  )
117
117
  geo_map = {}
118
118
  for i in range(geo.num_rows):
119
119
  pk = geo["primary_key"][i].as_py()
120
120
  geo_map[pk] = {
121
- "rk": geo["delta_rank_pct"][i].as_py() or 0,
121
+ "rk": geo["score_rank_pct"][i].as_py() or 0,
122
122
  "cp": geo["conformal_p"][i].as_py() or 1.0,
123
123
  "an": 1 if geo["is_anomaly"][i].as_py() else 0,
124
124
  }
@@ -290,7 +290,7 @@ def load_sphere(sphere_path, csv_prefix):
290
290
  src_border = {
291
291
  geo["primary_key"][i].as_py()
292
292
  for i in range(geo.num_rows)
293
- if not geo["is_anomaly"][i].as_py() and (geo["delta_rank_pct"][i].as_py() or 0) >= 80
293
+ if not geo["is_anomaly"][i].as_py() and (geo["score_rank_pct"][i].as_py() or 0) >= 80
294
294
  }
295
295
  src_rep = set()
296
296
  acct_near = defaultdict(int)