compass-kb-validation 4.2.1__tar.gz → 4.3.1__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 (204) hide show
  1. {compass_kb_validation-4.2.1/compass_kb_validation.egg-info → compass_kb_validation-4.3.1}/PKG-INFO +41 -5
  2. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/README.md +40 -4
  3. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/__init__.py +1 -1
  4. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/chunk_integrity.py +54 -0
  5. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/cli.py +39 -0
  6. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/config/__init__.py +20 -3
  7. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/content_fidelity.py +326 -46
  8. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/cross_index.py +84 -8
  9. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/evidence.py +2 -1
  10. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/findings.py +87 -12
  11. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/metadata_checks.py +27 -4
  12. compass_kb_validation-4.3.1/compass/passage_probe.py +187 -0
  13. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/profiler.py +4 -0
  14. compass_kb_validation-4.3.1/compass/providers/markers.py +24 -0
  15. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/source.py +2 -1
  16. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/readiness.py +71 -19
  17. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/__init__.py +404 -98
  18. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/_report_js.py +70 -12
  19. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/fidelity_view.py +229 -40
  20. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/trend_tracker.py +56 -12
  21. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/metadata_checks.py +3 -1
  22. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/redis_chunks.py +3 -2
  23. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/retrieval_quality.py +6 -1
  24. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/s3_storage.py +4 -1
  25. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1/compass_kb_validation.egg-info}/PKG-INFO +41 -5
  26. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass_kb_validation.egg-info/SOURCES.txt +7 -0
  27. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/discover_and_validate.py +32 -5
  28. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/run_validation.py +3 -1
  29. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_corpus.py +4 -4
  30. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_redis_chunks.py +18 -6
  31. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_reporting.py +2 -2
  32. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_tooling_420.py +1 -1
  33. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v420_report_truth.py +7 -5
  34. compass_kb_validation-4.3.1/tests/test_v430_fidelity.py +197 -0
  35. compass_kb_validation-4.3.1/tests/test_v430_gate.py +78 -0
  36. compass_kb_validation-4.3.1/tests/test_v430_report.py +96 -0
  37. compass_kb_validation-4.3.1/tests/test_v430_tooling.py +240 -0
  38. compass_kb_validation-4.3.1/tests/test_v431_report.py +79 -0
  39. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/LICENSE +0 -0
  40. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/__main__.py +0 -0
  41. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/alias.py +0 -0
  42. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/ask.py +0 -0
  43. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/baseline.py +0 -0
  44. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/benchmark.py +0 -0
  45. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/check_catalog.py +0 -0
  46. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/chunk_coherence.py +0 -0
  47. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/chunk_eval.py +0 -0
  48. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/chunk_ref.py +0 -0
  49. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/citation.py +0 -0
  50. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/config_lint.py +0 -0
  51. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/content_inspect.py +0 -0
  52. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/corpus.py +0 -0
  53. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/corpus_health.py +0 -0
  54. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/diagnostics.py +0 -0
  55. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/diff.py +0 -0
  56. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/drift.py +0 -0
  57. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/embedding_drift.py +0 -0
  58. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/eval_enrich.py +0 -0
  59. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/eval_interop.py +0 -0
  60. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/grounding.py +0 -0
  61. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/grounding_diff.py +0 -0
  62. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/grounding_rollup.py +0 -0
  63. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/gt_lint.py +0 -0
  64. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/health.py +0 -0
  65. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/incremental.py +0 -0
  66. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/init_wizard.py +0 -0
  67. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/lineage.py +0 -0
  68. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/live_dashboard.py +0 -0
  69. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/manifest.py +0 -0
  70. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/mcp_server.py +0 -0
  71. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/models/__init__.py +0 -0
  72. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/notifications.py +0 -0
  73. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/pdf_support.py +0 -0
  74. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/pipeline/__init__.py +0 -0
  75. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/provenance.py +0 -0
  76. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/__init__.py +0 -0
  77. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/embedding.py +0 -0
  78. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/extractor.py +0 -0
  79. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/graph.py +0 -0
  80. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/snapshot.py +0 -0
  81. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/storage.py +0 -0
  82. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/providers/vectorstore.py +0 -0
  83. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/quality_gate.py +0 -0
  84. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/remediation.py +0 -0
  85. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/_report_css.py +0 -0
  86. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/analysis.py +0 -0
  87. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/audit.py +0 -0
  88. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/export.py +0 -0
  89. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/grounding_report.py +0 -0
  90. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/report/shell.py +0 -0
  91. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/retrieval_analysis.py +0 -0
  92. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/simulate.py +0 -0
  93. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/snapshot_doctor.py +0 -0
  94. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/structure_checks.py +0 -0
  95. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/text_match.py +0 -0
  96. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/text_probes.py +0 -0
  97. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/triage.py +0 -0
  98. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/utils/__init__.py +0 -0
  99. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/__init__.py +0 -0
  100. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/api_upload.py +0 -0
  101. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/base.py +0 -0
  102. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/base_sparql.py +0 -0
  103. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/cross_stage.py +0 -0
  104. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/graphdb_metadata.py +0 -0
  105. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/neptune_metadata.py +0 -0
  106. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass/validators/registry.py +0 -0
  107. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass_kb_validation.egg-info/dependency_links.txt +0 -0
  108. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass_kb_validation.egg-info/entry_points.txt +0 -0
  109. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass_kb_validation.egg-info/requires.txt +0 -0
  110. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/compass_kb_validation.egg-info/top_level.txt +0 -0
  111. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/ingestion_validation/__init__.py +0 -0
  112. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/profile_kb.py +0 -0
  113. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/pyproject.toml +0 -0
  114. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/setup.cfg +0 -0
  115. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_alias.py +0 -0
  116. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_alias_disambiguation.py +0 -0
  117. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_alias_temporal.py +0 -0
  118. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_alt_adapters.py +0 -0
  119. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_analysis_report.py +0 -0
  120. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_api_upload.py +0 -0
  121. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_ask.py +0 -0
  122. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_baseline.py +0 -0
  123. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_benchmark.py +0 -0
  124. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_calibrate_truth.py +0 -0
  125. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_check_catalog.py +0 -0
  126. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_chunk_eval.py +0 -0
  127. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_chunk_integrity.py +0 -0
  128. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_chunk_structure_checks.py +0 -0
  129. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_citation.py +0 -0
  130. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_citation_levels.py +0 -0
  131. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_cli.py +0 -0
  132. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_cli_commands.py +0 -0
  133. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_compat_shim.py +0 -0
  134. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_config.py +0 -0
  135. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_config_lint.py +0 -0
  136. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_content_fidelity.py +0 -0
  137. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_content_inspect.py +0 -0
  138. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_corpus_health.py +0 -0
  139. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_coverage.py +0 -0
  140. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_coverage_and_drift_config.py +0 -0
  141. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_cross_stage.py +0 -0
  142. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_diagnostics.py +0 -0
  143. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_diff.py +0 -0
  144. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_discover_cli.py +0 -0
  145. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_discovery_parallel.py +0 -0
  146. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_drift.py +0 -0
  147. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_embedding_contract.py +0 -0
  148. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_embedding_drift.py +0 -0
  149. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_eval_enrich.py +0 -0
  150. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_eval_interop.py +0 -0
  151. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_evidence.py +0 -0
  152. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_fidelity_precision.py +0 -0
  153. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_gate.py +0 -0
  154. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_graph_transport.py +0 -0
  155. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_graph_validators.py +0 -0
  156. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_grounding.py +0 -0
  157. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_grounding_report.py +0 -0
  158. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_grounding_rollup.py +0 -0
  159. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_health.py +0 -0
  160. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_incremental.py +0 -0
  161. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_init_wizard.py +0 -0
  162. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_lineage.py +0 -0
  163. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_manifest.py +0 -0
  164. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_mcp.py +0 -0
  165. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_measurement_fixes.py +0 -0
  166. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_metadata_checks.py +0 -0
  167. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_migration.py +0 -0
  168. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_models.py +0 -0
  169. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_multi_index.py +0 -0
  170. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_neptune_bugfixes.py +0 -0
  171. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_neptune_bugfixes2.py +0 -0
  172. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_notifications.py +0 -0
  173. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_pipeline.py +0 -0
  174. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_profiler.py +0 -0
  175. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_providers.py +0 -0
  176. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_quality_gate.py +0 -0
  177. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_readiness.py +0 -0
  178. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_registry.py +0 -0
  179. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_remediation.py +0 -0
  180. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_report_store_section.py +0 -0
  181. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_requirements_config.py +0 -0
  182. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_retrieval_assertions.py +0 -0
  183. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_retrieval_fields.py +0 -0
  184. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_retrieval_quality.py +0 -0
  185. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_review_hardening.py +0 -0
  186. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_run_cli.py +0 -0
  187. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_simulate.py +0 -0
  188. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_source_exclusions.py +0 -0
  189. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_source_verification.py +0 -0
  190. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_sources.py +0 -0
  191. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_storage_validator.py +0 -0
  192. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_structure_checks.py +0 -0
  193. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_trends.py +0 -0
  194. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_universal_concerns.py +0 -0
  195. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_utils.py +0 -0
  196. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v402_fixes.py +0 -0
  197. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v410_any_pipeline.py +0 -0
  198. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v410_gate.py +0 -0
  199. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v410_portability.py +0 -0
  200. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v420_gate.py +0 -0
  201. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v421_report.py +0 -0
  202. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_v4_defect_fixes.py +0 -0
  203. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_vector_fastpath.py +0 -0
  204. {compass_kb_validation-4.2.1 → compass_kb_validation-4.3.1}/tests/test_vectorstore_filters.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: compass-kb-validation
3
- Version: 4.2.1
3
+ Version: 4.3.1
4
4
  Summary: Knowledge-base readiness validation for RAG & AI agents — config-driven, deterministic pipeline integrity checks.
5
5
  Author: COMPASS
6
6
  License: MIT
@@ -344,11 +344,24 @@ eval:
344
344
  figure_types: [figure, chart, image] # snapshot element types that are figures
345
345
  lost_passages_allowed: 0 # named lost passages tolerated (snapshot baseline)
346
346
  figure_words: gate # gate | report: lost words inside figures gate or not
347
+ figure_match: words # words | run: a figure's lost piece is matched word by word
348
+ table_recall_min: 0.5 # a table with less of its words stored is a dropped table
349
+ partial_drop_floor: 0 # e.g. 0.8: an element stored below this share is a partial drop
350
+ caption_max_chunk_gap: 1 # chunks a caption may sit from its figure
351
+ tiers: {table: high, number: high, source_note: high, heading: medium,
352
+ figure: low, body: high, body_short: medium}
353
+ tier_body_chars: 75 # body text at or over this is "body", under it "body_short"
354
+ gate_tiers: [high, medium, low] # tiers whose pipeline drops gate
355
+ source_figure_labels: figure # figure | unknown: short source labels on a chart page
356
+ show_nongating: collapsed # collapsed | inline: non-gating evidence in the report
357
+ probe_retrieval: off # off | lexical | vector: is a high-tier loss still retrievable
358
+ probe_max: 200
347
359
  number_format: "1,234.5" # or "1.234,5" | "1 234,5" | "1'234.5"
348
360
  source_exclusions: # nothing is excluded that is not listed here
349
361
  repeated_on_pages: 5 # headers and footers
350
362
  min_chars: 75 # small fragments (every element type)
351
- figure_min_chars: 75 # figure elements this short, dropped by design
363
+ figure_min_chars: 75 # figure text this short (an element or a lost piece of one)
364
+ repeated_on_all_pages: false # true: a line on every page of a short document is a header
352
365
  patterns: ["(?i)^past performance"] # by-design notices
353
366
  page_roles: {disclaimer: "(?i)^important disclosures"}
354
367
  roles: [marginalia, logo, attestation] # read from a snapshot, so they need one
@@ -377,6 +390,21 @@ every finding, body text first; the console shows the first few. A caption or a
377
390
  stored more than one chunk away from its figure is `CAPTION_DETACHED`, with both chunk ids. A
378
391
  source that cannot be read (encrypted, image-only) is compared through its snapshot.
379
392
 
393
+ Each lost passage carries what it held and a tier from `tiers`: a table, a number, a source note
394
+ or body text over `tier_body_chars` is high, a heading medium, a figure label low. `gate_tiers` sets
395
+ which tiers gate. A table is judged whole, as one finding with its recall (the share of its words in
396
+ the store), so a table whose rows are gone is not reported by its title alone. With
397
+ `partial_drop_floor` set, an element the store holds only partly is a partial drop with its stored
398
+ share, even when every piece of it matched. A caption is located among the chunks of its own page,
399
+ never in a chunk of another page that repeats the same `Source:` line. Each gating passage names the
400
+ stored chunk of its page nearest its text, and `--probe-retrieval lexical` asks whether a high-tier
401
+ loss is still retrievable from another chunk.
402
+
403
+ The gate counts what the report shows. A document clears when the findings its verdict rests on
404
+ (the gating passages, or the numbers) are triaged `by_design` or `false`; extractor misses and
405
+ chunk-integrity rows around them need no triage. `readiness`, the fidelity page and the discover
406
+ report read the same post-triage counts, with figure-only drops stated apart.
407
+
380
408
  Findings say what is missing, not who lost it, until you declare the extractor's own output. Any
381
409
  extractor that writes JSON works: map its fields once, and each finding becomes `PIPELINE_DROP`,
382
410
  `PIPELINE_ALTER` or `EXTRACTOR_MISS`.
@@ -428,7 +456,8 @@ redis:
428
456
  text_field: content # the field holding chunk text
429
457
  page_base: 0 # the index counts pages from 0; every page is read 1-based
430
458
  production_index: kb_merged # the index production queries; reports say when they read another
431
- coverage: full # every sampled check reads every item (default: sampled)
459
+ near_duplicate_sample: 40 # vectors compared for near-duplicate embeddings
460
+ coverage: full # every sampled check reads every item, near-duplicates too (default: sampled)
432
461
  triage_file: config/triage.yaml # decisions kept between runs (see below)
433
462
  ```
434
463
 
@@ -441,12 +470,19 @@ per owner with index, chunk id, chunk index, page and a snippet.
441
470
 
442
471
  **Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
443
472
  `compass drift --project P --index-a A --index-b B` reports, per source document, content present
444
- in one index and missing from the other.
473
+ in one index and missing from the other. Markup (links, images, HTML and table tags, entities) is removed before
474
+ matching, and with `drift.cross_index.type_field` set, chunks of `generated_types` (chart and figure
475
+ descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
476
+ or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
477
+ `eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
478
+ out of "traced N of M", and the share of generated text in mixed chunks is reported apart.
445
479
 
446
480
  **Document metadata.** The opt-in `metadata_checks` step (name it in `pipeline.steps`) checks that
447
481
  date fields agree with each other and with the file name, that each document type carries its
448
482
  period fields, that a type sits in its folder, and that chunks were ingested after the source last
449
- changed. Every field, pattern and map is set under `metadata_checks:`.
483
+ changed. Every field, pattern and map is set under `metadata_checks:`. With `version_field` naming the
484
+ chunk field that holds the source version (`e_tag`), a source re-uploaded with the same bytes after
485
+ ingestion is not flagged.
450
486
 
451
487
  ### KB readiness
452
488
 
@@ -271,11 +271,24 @@ eval:
271
271
  figure_types: [figure, chart, image] # snapshot element types that are figures
272
272
  lost_passages_allowed: 0 # named lost passages tolerated (snapshot baseline)
273
273
  figure_words: gate # gate | report: lost words inside figures gate or not
274
+ figure_match: words # words | run: a figure's lost piece is matched word by word
275
+ table_recall_min: 0.5 # a table with less of its words stored is a dropped table
276
+ partial_drop_floor: 0 # e.g. 0.8: an element stored below this share is a partial drop
277
+ caption_max_chunk_gap: 1 # chunks a caption may sit from its figure
278
+ tiers: {table: high, number: high, source_note: high, heading: medium,
279
+ figure: low, body: high, body_short: medium}
280
+ tier_body_chars: 75 # body text at or over this is "body", under it "body_short"
281
+ gate_tiers: [high, medium, low] # tiers whose pipeline drops gate
282
+ source_figure_labels: figure # figure | unknown: short source labels on a chart page
283
+ show_nongating: collapsed # collapsed | inline: non-gating evidence in the report
284
+ probe_retrieval: off # off | lexical | vector: is a high-tier loss still retrievable
285
+ probe_max: 200
274
286
  number_format: "1,234.5" # or "1.234,5" | "1 234,5" | "1'234.5"
275
287
  source_exclusions: # nothing is excluded that is not listed here
276
288
  repeated_on_pages: 5 # headers and footers
277
289
  min_chars: 75 # small fragments (every element type)
278
- figure_min_chars: 75 # figure elements this short, dropped by design
290
+ figure_min_chars: 75 # figure text this short (an element or a lost piece of one)
291
+ repeated_on_all_pages: false # true: a line on every page of a short document is a header
279
292
  patterns: ["(?i)^past performance"] # by-design notices
280
293
  page_roles: {disclaimer: "(?i)^important disclosures"}
281
294
  roles: [marginalia, logo, attestation] # read from a snapshot, so they need one
@@ -304,6 +317,21 @@ every finding, body text first; the console shows the first few. A caption or a
304
317
  stored more than one chunk away from its figure is `CAPTION_DETACHED`, with both chunk ids. A
305
318
  source that cannot be read (encrypted, image-only) is compared through its snapshot.
306
319
 
320
+ Each lost passage carries what it held and a tier from `tiers`: a table, a number, a source note
321
+ or body text over `tier_body_chars` is high, a heading medium, a figure label low. `gate_tiers` sets
322
+ which tiers gate. A table is judged whole, as one finding with its recall (the share of its words in
323
+ the store), so a table whose rows are gone is not reported by its title alone. With
324
+ `partial_drop_floor` set, an element the store holds only partly is a partial drop with its stored
325
+ share, even when every piece of it matched. A caption is located among the chunks of its own page,
326
+ never in a chunk of another page that repeats the same `Source:` line. Each gating passage names the
327
+ stored chunk of its page nearest its text, and `--probe-retrieval lexical` asks whether a high-tier
328
+ loss is still retrievable from another chunk.
329
+
330
+ The gate counts what the report shows. A document clears when the findings its verdict rests on
331
+ (the gating passages, or the numbers) are triaged `by_design` or `false`; extractor misses and
332
+ chunk-integrity rows around them need no triage. `readiness`, the fidelity page and the discover
333
+ report read the same post-triage counts, with figure-only drops stated apart.
334
+
307
335
  Findings say what is missing, not who lost it, until you declare the extractor's own output. Any
308
336
  extractor that writes JSON works: map its fields once, and each finding becomes `PIPELINE_DROP`,
309
337
  `PIPELINE_ALTER` or `EXTRACTOR_MISS`.
@@ -355,7 +383,8 @@ redis:
355
383
  text_field: content # the field holding chunk text
356
384
  page_base: 0 # the index counts pages from 0; every page is read 1-based
357
385
  production_index: kb_merged # the index production queries; reports say when they read another
358
- coverage: full # every sampled check reads every item (default: sampled)
386
+ near_duplicate_sample: 40 # vectors compared for near-duplicate embeddings
387
+ coverage: full # every sampled check reads every item, near-duplicates too (default: sampled)
359
388
  triage_file: config/triage.yaml # decisions kept between runs (see below)
360
389
  ```
361
390
 
@@ -368,12 +397,19 @@ per owner with index, chunk id, chunk index, page and a snippet.
368
397
 
369
398
  **Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
370
399
  `compass drift --project P --index-a A --index-b B` reports, per source document, content present
371
- in one index and missing from the other.
400
+ in one index and missing from the other. Markup (links, images, HTML and table tags, entities) is removed before
401
+ matching, and with `drift.cross_index.type_field` set, chunks of `generated_types` (chart and figure
402
+ descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
403
+ or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
404
+ `eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
405
+ out of "traced N of M", and the share of generated text in mixed chunks is reported apart.
372
406
 
373
407
  **Document metadata.** The opt-in `metadata_checks` step (name it in `pipeline.steps`) checks that
374
408
  date fields agree with each other and with the file name, that each document type carries its
375
409
  period fields, that a type sits in its folder, and that chunks were ingested after the source last
376
- changed. Every field, pattern and map is set under `metadata_checks:`.
410
+ changed. Every field, pattern and map is set under `metadata_checks:`. With `version_field` naming the
411
+ chunk field that holds the source version (`e_tag`), a source re-uploaded with the same bytes after
412
+ ingestion is not flagged.
377
413
 
378
414
  ### KB readiness
379
415
 
@@ -5,4 +5,4 @@ end-to-end: API upload -> object storage -> knowledge graph -> vector store ->
5
5
  retrieval quality, plus cross-store consistency.
6
6
  """
7
7
 
8
- __version__ = "4.2.1"
8
+ __version__ = "4.3.1"
@@ -69,6 +69,12 @@ class Fields:
69
69
  page_end: str = "page_end"
70
70
  position: str = "chunk_index"
71
71
  key: str = "key"
72
+ # Chunk field naming the element type ("" = types not read) and the types holding generated
73
+ # text (a chart or figure description the source never held). Such chunks are reported as
74
+ # generated, not judged and not counted in "traced N of M". Setting `type` also switches on
75
+ # the generated-share metric for chunks mixing source text with a generated description.
76
+ type: str = ""
77
+ generated_types: tuple = ()
72
78
 
73
79
 
74
80
  def _int(value: Any) -> Optional[int]:
@@ -170,13 +176,19 @@ def check_chunks(chunks: list[dict], pages: list[str], *, figures_of: Any, split
170
176
 
171
177
  rows: list[dict] = []
172
178
  too_short = 0
179
+ generated = 0
180
+ gen_types = {str(t).strip().lower() for t in (names.generated_types or ())}
173
181
  for chunk in ordered:
174
182
  raw = str(chunk.get(names.text) or "")
183
+ if names.type and gen_types and str(chunk.get(names.type) or "").strip().lower() in gen_types:
184
+ generated += 1
185
+ continue
175
186
  text = normalize(raw)
176
187
  if len(text) < _MIN_CHARS and not figures_of(raw):
177
188
  too_short += 1
178
189
  continue
179
190
  rows.append(_locate(chunk, raw, split_table, source, names))
191
+ mixed = _generated_shares(rows, source, split_table) if names.type else []
180
192
 
181
193
  shift = _page_shift(rows) if paged else 0
182
194
  for row in rows:
@@ -193,6 +205,8 @@ def check_chunks(chunks: list[dict], pages: list[str], *, figures_of: Any, split
193
205
  not_checked.append(f"order: chunks carry no distinct '{names.position}'")
194
206
  if too_short:
195
207
  not_checked.append(f"{too_short} chunk(s) too short to compare")
208
+ if generated:
209
+ not_checked.append(f"{generated} generated chunk(s) not judged (type in generated_types)")
196
210
  flagged = [r for r in rows if r["status"] != TRACED]
197
211
  return {
198
212
  "checked": len(rows), "traced": counts[TRACED],
@@ -201,9 +215,49 @@ def check_chunks(chunks: list[dict], pages: list[str], *, figures_of: Any, split
201
215
  "findings": [{k: r[k] for k in ("chunk", "position", "status", "detail")}
202
216
  for r in flagged[:max_findings]],
203
217
  "not_checked": not_checked, "page_shift": shift,
218
+ "generated": generated,
219
+ "generated_text": {
220
+ "chunks": len(mixed),
221
+ "mean_share": round(sum(m["share"] for m in mixed) / len(mixed), 3) if mixed else 0.0,
222
+ "rows": mixed[:max_findings]},
204
223
  }
205
224
 
206
225
 
226
+ _SENTENCE_SPLIT = re.compile(r"(?<=[.!?])\s+|\n+")
227
+
228
+
229
+ def _generated_shares(rows: list[dict], source: _Source, split_table: Any) -> list[dict]:
230
+ """For chunks mixing source text with generated text, take the generated part out.
231
+
232
+ A piece (line or sentence) whose wording is mostly absent from the source is generated text,
233
+ not a faulty copy of source text. It is measured as ``share`` of the chunk's characters and
234
+ left out of the judged text, so the rest of the chunk is judged on its own. A chunk with no
235
+ source-like text left stays as it was, so a chunk of nothing but absent text is still
236
+ UNTRACEABLE. Reported apart from every status.
237
+ """
238
+ out: list[dict] = []
239
+ for row in rows:
240
+ pieces = [p for p in _SENTENCE_SPLIT.split(row["raw"]) if p.strip()]
241
+ keep: list[str] = []
242
+ dropped = 0
243
+ for piece in pieces:
244
+ norm = normalize(piece)
245
+ units = grams(norm, _WORDING_K) if len(norm) >= _MIN_CHARS else frozenset()
246
+ if units and len(units & source.wording) / len(units) < _UNTRACEABLE_BELOW:
247
+ dropped += len(piece)
248
+ else:
249
+ keep.append(piece)
250
+ kept = " ".join(keep)
251
+ if not dropped or len(normalize(kept)) < _MIN_CHARS:
252
+ continue
253
+ total = sum(len(p) for p in pieces)
254
+ row["raw"] = kept
255
+ row["prose"] = normalize(split_table(kept))
256
+ out.append({"chunk": row["chunk"], "position": row["position"],
257
+ "share": round(dropped / total, 3) if total else 0.0})
258
+ return out
259
+
260
+
207
261
  def _locate(chunk: dict, raw: str, split_table: Any, source: _Source, names: Fields) -> dict:
208
262
  """Where a chunk's text sits in the source, before any judgement."""
209
263
  start, end = _int(chunk.get(names.page)), _int(chunk.get(names.page_end))
@@ -2413,6 +2413,27 @@ def _load_weights(path: str) -> tuple[dict, str]:
2413
2413
  "or a {judge: weight} object")
2414
2414
 
2415
2415
 
2416
+ def _probe_lost_passages(report: dict, store: Any, settings: Any, mode: str) -> None:
2417
+ """Opt-in: tie lost passages to retrieval. Never raises; a failure is stated in the report."""
2418
+ from compass.passage_probe import probe_fidelity_report
2419
+
2420
+ try:
2421
+ opts = getattr(settings.eval, "fidelity", None) or {}
2422
+ chosen = str(mode or opts.get("probe_retrieval") or "off").lower()
2423
+ embedder = None
2424
+ if chosen == "vector":
2425
+ from compass.providers import get_adapter
2426
+ try:
2427
+ embedder = get_adapter("embedding", settings.embedding.provider,
2428
+ config=settings.embedding)
2429
+ except Exception: # noqa: BLE001 - no provider: the probe says so and skips
2430
+ embedder = None
2431
+ probe_fidelity_report(report, store, settings, mode=chosen, embedder=embedder)
2432
+ except Exception as exc: # noqa: BLE001 - an optional probe must never fail the report
2433
+ report["probe"] = {"mode": mode or "", "probed": 0, "retrievable": 0,
2434
+ "not_retrievable": 0, "skipped": f"probe failed: {exc}"}
2435
+
2436
+
2416
2437
  def cmd_fidelity(argv: list[str]) -> int:
2417
2438
  p = argparse.ArgumentParser(
2418
2439
  prog="compass fidelity",
@@ -2431,6 +2452,10 @@ def cmd_fidelity(argv: list[str]) -> int:
2431
2452
  p.add_argument("--fail-on-findings", action="store_true",
2432
2453
  help="Exit 1 on content loss or missing numbers. Leave off until "
2433
2454
  "eval.source_exclusions lists what your pipeline drops by design.")
2455
+ p.add_argument("--probe-retrieval", choices=("off", "lexical", "vector"), default="",
2456
+ help="For each gating high-tier lost passage, query the index to see whether "
2457
+ "another chunk still holds it (default: eval.fidelity.probe_retrieval, "
2458
+ "off). vector needs an embedding provider.")
2434
2459
  _add_tracking_args(p)
2435
2460
  args = p.parse_args(argv)
2436
2461
  _health_env(args)
@@ -2469,6 +2494,8 @@ def cmd_fidelity(argv: list[str]) -> int:
2469
2494
  fetch_snapshot=fetch_snapshot)
2470
2495
  if snapshot_problem:
2471
2496
  report["rule_errors"].append(snapshot_problem)
2497
+ _probe_lost_passages(report, store, settings, args.probe_retrieval)
2498
+ report["index"] = _index_name(settings)
2472
2499
  fmt = "json" if args.json else args.format
2473
2500
  to_stderr = fmt != "console" or bool(args.output)
2474
2501
  report["manifest"] = _manifest(
@@ -2480,6 +2507,18 @@ def cmd_fidelity(argv: list[str]) -> int:
2480
2507
  fidelity_findings(report, index=_index_name(settings)), settings, "fidelity", args,
2481
2508
  project=args.project, to_stderr=to_stderr,
2482
2509
  examined=[r["document"] for r in report.get("results", []) if r.get("verdict") != "UNVERIFIABLE"])
2510
+ # One count per fact: the page, readiness and discover read the counts settled by triage.
2511
+ try:
2512
+ from compass.findings import settled_fidelity
2513
+ from compass.triage import triage_for
2514
+
2515
+ report["settled"] = settled_fidelity(
2516
+ report, triage_for(settings, override=getattr(args, "triage", "") or ""),
2517
+ index=report["index"])
2518
+ except Exception as exc: # noqa: BLE001 - the page falls back to untriaged counts
2519
+ report["rule_errors"].append(f"fidelity counts were not settled by triage: {exc}")
2520
+ report["show_nongating"] = str((getattr(settings.eval, "fidelity", None) or {})
2521
+ .get("show_nongating") or "collapsed")
2483
2522
  body = (_json.dumps(report, indent=2, ensure_ascii=False) if fmt == "json"
2484
2523
  else format_html(report) if fmt == "html" else format_report(report))
2485
2524
  if args.output:
@@ -434,6 +434,9 @@ class RedisConfig:
434
434
  # duplicate" above this cosine. 0.99 is strict (true RAG dupes); agent-memory
435
435
  # stores that re-embed similar memories often tune this down (e.g. 0.95).
436
436
  near_duplicate_cosine_threshold: float = 0.99
437
+ # Vectors of one document compared pairwise for near-duplicates (the first N). `coverage: full`
438
+ # raises it to all of them. The number is stated in the check's detail.
439
+ near_duplicate_sample: int = 40
437
440
  # Retrievability ("can a stored vector actually be found via KNN?"): probe up to
438
441
  # this many records and require at least this fraction to return in-scope
439
442
  # neighbours. Catches "dead" records that exist but never surface. min_fraction=1.0
@@ -938,6 +941,10 @@ class DriftConfig:
938
941
  # Toggles: inventory, schema, etag, pollution, type_folder, stale_versions. Disabling one
939
942
  # makes it "not configured", which is how a backend that cannot answer it gets a clean exit.
940
943
  checks: dict[str, bool] = field(default_factory=dict)
944
+ # `compass drift --index-a/--index-b`: type_field (chunk field naming the element type; empty
945
+ # = types not read), generated_types (types holding generated descriptions; default figure,
946
+ # image, chart, picture), generated: separate (counted and compared apart) | skip.
947
+ cross_index: dict = field(default_factory=dict)
941
948
 
942
949
  def __post_init__(self) -> None:
943
950
  # Folded here so every reader sees one mapping. A malformed value is left where it is
@@ -1058,6 +1065,10 @@ class MetadataChecksConfig:
1058
1065
  # Chunk field holding the source's last-modified time, used when the storage step did not
1059
1066
  # run (it supplies s3_last_modified).
1060
1067
  source_modified_field: str = ""
1068
+ # Chunk field holding the source version (e.g. e_tag). When it equals the source's current
1069
+ # ETag, a source re-uploaded after ingestion is the same version, not a stale store (RM-12).
1070
+ # Empty = ETags are not compared.
1071
+ version_field: str = ""
1061
1072
  # Seconds an ingest time may precede the source's last-modified time (clock skew).
1062
1073
  ingest_tolerance_seconds: int = 0
1063
1074
  # Findings kept per check; the counts stay complete.
@@ -1114,7 +1125,8 @@ class Settings:
1114
1125
 
1115
1126
  #: Every sampled-check setting, as (block, field), raised to all items by ``coverage: full``.
1116
1127
  SAMPLED_SETTINGS = (("redis", "retrievability_sample"), ("retrieval", "embedding_drift_sample"),
1117
- ("retrieval", "provenance_sample"), ("retrieval", "keyword_completeness_sample"))
1128
+ ("retrieval", "provenance_sample"), ("retrieval", "keyword_completeness_sample"),
1129
+ ("redis", "near_duplicate_sample"))
1118
1130
  #: Stands for "every item" in a sample setting: larger than any index, and still an int slice.
1119
1131
  ALL_ITEMS = 1_000_000_000
1120
1132
  COVERAGE_MODES = ("sampled", "full")
@@ -1194,16 +1206,21 @@ def _hydrate(cls: type, data: dict | None) -> Any:
1194
1206
 
1195
1207
  #: Settings held in a plain mapping, whose keys no dataclass can check.
1196
1208
  _MAPPING_KEYS: dict[tuple[str, str], tuple[str, ...]] = {
1209
+ ("drift", "cross_index"): ("type_field", "generated_types", "generated"),
1197
1210
  ("eval", "fidelity"): ("normalization", "match", "shingle_k", "coverage_min", "type_field",
1198
1211
  "prefer_snapshot", "chunk_integrity", "page_tolerance", "page_field",
1199
1212
  "page_end_field", "position_field", "text_field", "figure_regions",
1200
1213
  "figure_types", "figure_text", "table_types", "caption_types",
1201
1214
  "caption_pattern", "lost_passages_allowed", "number_format",
1202
- "figure_words"),
1215
+ "figure_words", "probe_retrieval", "probe_max", "show_nongating",
1216
+ "caption_max_chunk_gap", "partial_drop_floor", "table_recall_min",
1217
+ "figure_match", "tiers", "tier_body_chars", "gate_tiers",
1218
+ "source_figure_labels"),
1203
1219
  ("eval", "snapshot"): ("provider", "location", "format", "formats", "fallback_locations",
1204
1220
  "version"),
1205
1221
  ("eval", "source_exclusions"): ("repeated_on_pages", "min_chars", "figure_min_chars",
1206
- "roles", "patterns", "page_roles", "must_retain"),
1222
+ "roles", "patterns", "page_roles", "must_retain",
1223
+ "repeated_on_all_pages"),
1207
1224
  ("eval", "structure"): ("checks", "heading_types", "heading_max_gap", "table_types",
1208
1225
  "table_whole_share", "figure_types", "order_tolerance",
1209
1226
  "chunk_box_field", "chunk_box_keys", "box_tolerance",