compass-kb-validation 4.3.0__tar.gz → 4.4.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 (214) hide show
  1. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/PKG-INFO +86 -21
  2. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/README.md +85 -20
  3. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/__init__.py +1 -1
  4. compass_kb_validation-4.4.0/compass/acceptance.py +297 -0
  5. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/baseline.py +4 -1
  6. compass_kb_validation-4.4.0/compass/check_outcome.py +57 -0
  7. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/cli.py +165 -6
  8. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/config/__init__.py +22 -5
  9. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/content_fidelity.py +516 -224
  10. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/content_inspect.py +6 -4
  11. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/corpus.py +23 -6
  12. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/cross_index.py +67 -16
  13. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/findings.py +46 -6
  14. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/models/__init__.py +74 -6
  15. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/notifications.py +12 -5
  16. compass_kb_validation-4.4.0/compass/passage_probe.py +256 -0
  17. compass_kb_validation-4.4.0/compass/presence.py +391 -0
  18. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/provenance.py +1 -1
  19. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/vectorstore.py +38 -16
  20. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/readiness.py +114 -6
  21. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/__init__.py +604 -231
  22. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/_report_css.py +9 -0
  23. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/_report_js.py +74 -12
  24. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/export.py +37 -4
  25. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/fidelity_view.py +220 -44
  26. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/structure_checks.py +76 -29
  27. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/trend_tracker.py +50 -1
  28. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/triage.py +104 -2
  29. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/metadata_checks.py +5 -1
  30. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/retrieval_quality.py +18 -10
  31. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/s3_storage.py +5 -1
  32. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/PKG-INFO +86 -21
  33. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/SOURCES.txt +10 -0
  34. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/discover_and_validate.py +61 -21
  35. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/run_validation.py +8 -5
  36. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_corpus.py +4 -4
  37. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_readiness.py +4 -1
  38. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_redis_chunks.py +1 -1
  39. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_report_store_section.py +3 -1
  40. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_reporting.py +4 -4
  41. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v410_any_pipeline.py +1 -1
  42. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v420_gate.py +1 -1
  43. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v420_report_truth.py +7 -5
  44. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v430_fidelity.py +5 -2
  45. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v430_report.py +10 -6
  46. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v430_tooling.py +8 -6
  47. compass_kb_validation-4.4.0/tests/test_v431_report.py +79 -0
  48. compass_kb_validation-4.4.0/tests/test_v440_fidelity.py +317 -0
  49. compass_kb_validation-4.4.0/tests/test_v440_outcomes.py +236 -0
  50. compass_kb_validation-4.4.0/tests/test_v440_report_drift.py +159 -0
  51. compass_kb_validation-4.4.0/tests/test_v440_structure.py +111 -0
  52. compass_kb_validation-4.4.0/tests/test_v440_styles.py +31 -0
  53. compass_kb_validation-4.4.0/tests/test_v440_trends.py +100 -0
  54. compass_kb_validation-4.3.0/compass/passage_probe.py +0 -187
  55. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/LICENSE +0 -0
  56. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/__main__.py +0 -0
  57. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/alias.py +0 -0
  58. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/ask.py +0 -0
  59. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/benchmark.py +0 -0
  60. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/check_catalog.py +0 -0
  61. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/chunk_coherence.py +0 -0
  62. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/chunk_eval.py +0 -0
  63. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/chunk_integrity.py +0 -0
  64. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/chunk_ref.py +0 -0
  65. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/citation.py +0 -0
  66. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/config_lint.py +0 -0
  67. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/corpus_health.py +0 -0
  68. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/diagnostics.py +0 -0
  69. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/diff.py +0 -0
  70. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/drift.py +0 -0
  71. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/embedding_drift.py +0 -0
  72. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/eval_enrich.py +0 -0
  73. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/eval_interop.py +0 -0
  74. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/evidence.py +0 -0
  75. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/grounding.py +0 -0
  76. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/grounding_diff.py +0 -0
  77. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/grounding_rollup.py +0 -0
  78. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/gt_lint.py +0 -0
  79. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/health.py +0 -0
  80. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/incremental.py +0 -0
  81. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/init_wizard.py +0 -0
  82. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/lineage.py +0 -0
  83. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/live_dashboard.py +0 -0
  84. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/manifest.py +0 -0
  85. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/mcp_server.py +0 -0
  86. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/metadata_checks.py +0 -0
  87. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/pdf_support.py +0 -0
  88. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/pipeline/__init__.py +0 -0
  89. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/profiler.py +0 -0
  90. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/__init__.py +0 -0
  91. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/embedding.py +0 -0
  92. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/extractor.py +0 -0
  93. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/graph.py +0 -0
  94. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/markers.py +0 -0
  95. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/snapshot.py +0 -0
  96. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/source.py +0 -0
  97. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/providers/storage.py +0 -0
  98. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/quality_gate.py +0 -0
  99. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/remediation.py +0 -0
  100. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/analysis.py +0 -0
  101. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/audit.py +0 -0
  102. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/grounding_report.py +0 -0
  103. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/report/shell.py +0 -0
  104. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/retrieval_analysis.py +0 -0
  105. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/simulate.py +0 -0
  106. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/snapshot_doctor.py +0 -0
  107. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/text_match.py +0 -0
  108. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/text_probes.py +0 -0
  109. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/utils/__init__.py +0 -0
  110. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/__init__.py +0 -0
  111. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/api_upload.py +0 -0
  112. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/base.py +0 -0
  113. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/base_sparql.py +0 -0
  114. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/cross_stage.py +0 -0
  115. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/graphdb_metadata.py +0 -0
  116. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/neptune_metadata.py +0 -0
  117. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/redis_chunks.py +0 -0
  118. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass/validators/registry.py +0 -0
  119. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/dependency_links.txt +0 -0
  120. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/entry_points.txt +0 -0
  121. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/requires.txt +0 -0
  122. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/compass_kb_validation.egg-info/top_level.txt +0 -0
  123. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/ingestion_validation/__init__.py +0 -0
  124. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/profile_kb.py +0 -0
  125. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/pyproject.toml +0 -0
  126. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/setup.cfg +0 -0
  127. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_alias.py +0 -0
  128. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_alias_disambiguation.py +0 -0
  129. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_alias_temporal.py +0 -0
  130. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_alt_adapters.py +0 -0
  131. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_analysis_report.py +0 -0
  132. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_api_upload.py +0 -0
  133. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_ask.py +0 -0
  134. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_baseline.py +0 -0
  135. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_benchmark.py +0 -0
  136. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_calibrate_truth.py +0 -0
  137. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_check_catalog.py +0 -0
  138. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_chunk_eval.py +0 -0
  139. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_chunk_integrity.py +0 -0
  140. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_chunk_structure_checks.py +0 -0
  141. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_citation.py +0 -0
  142. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_citation_levels.py +0 -0
  143. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_cli.py +0 -0
  144. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_cli_commands.py +0 -0
  145. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_compat_shim.py +0 -0
  146. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_config.py +0 -0
  147. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_config_lint.py +0 -0
  148. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_content_fidelity.py +0 -0
  149. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_content_inspect.py +0 -0
  150. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_corpus_health.py +0 -0
  151. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_coverage.py +0 -0
  152. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_coverage_and_drift_config.py +0 -0
  153. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_cross_stage.py +0 -0
  154. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_diagnostics.py +0 -0
  155. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_diff.py +0 -0
  156. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_discover_cli.py +0 -0
  157. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_discovery_parallel.py +0 -0
  158. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_drift.py +0 -0
  159. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_embedding_contract.py +0 -0
  160. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_embedding_drift.py +0 -0
  161. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_eval_enrich.py +0 -0
  162. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_eval_interop.py +0 -0
  163. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_evidence.py +0 -0
  164. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_fidelity_precision.py +0 -0
  165. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_gate.py +0 -0
  166. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_graph_transport.py +0 -0
  167. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_graph_validators.py +0 -0
  168. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_grounding.py +0 -0
  169. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_grounding_report.py +0 -0
  170. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_grounding_rollup.py +0 -0
  171. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_health.py +0 -0
  172. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_incremental.py +0 -0
  173. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_init_wizard.py +0 -0
  174. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_lineage.py +0 -0
  175. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_manifest.py +0 -0
  176. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_mcp.py +0 -0
  177. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_measurement_fixes.py +0 -0
  178. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_metadata_checks.py +0 -0
  179. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_migration.py +0 -0
  180. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_models.py +0 -0
  181. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_multi_index.py +0 -0
  182. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_neptune_bugfixes.py +0 -0
  183. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_neptune_bugfixes2.py +0 -0
  184. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_notifications.py +0 -0
  185. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_pipeline.py +0 -0
  186. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_profiler.py +0 -0
  187. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_providers.py +0 -0
  188. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_quality_gate.py +0 -0
  189. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_registry.py +0 -0
  190. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_remediation.py +0 -0
  191. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_requirements_config.py +0 -0
  192. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_retrieval_assertions.py +0 -0
  193. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_retrieval_fields.py +0 -0
  194. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_retrieval_quality.py +0 -0
  195. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_review_hardening.py +0 -0
  196. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_run_cli.py +0 -0
  197. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_simulate.py +0 -0
  198. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_source_exclusions.py +0 -0
  199. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_source_verification.py +0 -0
  200. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_sources.py +0 -0
  201. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_storage_validator.py +0 -0
  202. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_structure_checks.py +0 -0
  203. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_tooling_420.py +0 -0
  204. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_trends.py +0 -0
  205. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_universal_concerns.py +0 -0
  206. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_utils.py +0 -0
  207. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v402_fixes.py +0 -0
  208. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v410_gate.py +0 -0
  209. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v410_portability.py +0 -0
  210. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v421_report.py +0 -0
  211. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v430_gate.py +0 -0
  212. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_v4_defect_fixes.py +0 -0
  213. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/tests/test_vector_fastpath.py +0 -0
  214. {compass_kb_validation-4.3.0 → compass_kb_validation-4.4.0}/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.3.0
3
+ Version: 4.4.0
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,18 +344,29 @@ 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
347
+ figure_match: words # words | run: a figure's label line is matched word by word
348
+ presence: # how a line is judged present (one test for everything)
349
+ unit: line # each line on its own; lines are never joined
350
+ match: tokens # tokens (default for a snapshot) | chars (for a text layer)
351
+ run_tokens: 5 # tokens: runs of this many words
352
+ run_tolerance: 1 # words of a run that may differ (a corrected typo)
353
+ line_present: 0.5 # share of a line's runs that makes it present
354
+ min_line_chars: 12 # shorter lines are not judged either way
355
+ max_line_chars: 300 # longer lines are judged sentence by sentence (0 = off)
356
+ verify_scope: document # document | page: page also reports lines stored only
357
+ # in another page's chunks (structure, not loss)
358
+ partial_drop_floor: 0 # e.g. 0.8: an element stored below this share is reported whole
350
359
  caption_max_chunk_gap: 1 # chunks a caption may sit from its figure
351
- tiers: {table: high, number: high, source_note: high, heading: medium,
360
+ tiers: {table: high, table_title: medium, number: high, source_note: high, heading: medium,
352
361
  figure: low, body: high, body_short: medium}
353
362
  tier_body_chars: 75 # body text at or over this is "body", under it "body_short"
354
363
  gate_tiers: [high, medium, low] # tiers whose pipeline drops gate
355
364
  source_figure_labels: figure # figure | unknown: short source labels on a chart page
356
365
  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
366
+ probe_retrieval: off # off | lexical | vector: can retrieval surface the element
358
367
  probe_max: 200
368
+ probe_k: 10 # results read per probe
369
+ probe_min_share: 1.0 # share of the element's stored lines the top k must hold
359
370
  number_format: "1,234.5" # or "1.234,5" | "1 234,5" | "1'234.5"
360
371
  source_exclusions: # nothing is excluded that is not listed here
361
372
  repeated_on_pages: 5 # headers and footers
@@ -363,6 +374,9 @@ eval:
363
374
  figure_min_chars: 75 # figure text this short (an element or a lost piece of one)
364
375
  repeated_on_all_pages: false # true: a line on every page of a short document is a header
365
376
  patterns: ["(?i)^past performance"] # by-design notices
377
+ line_patterns: # annotation lines an extractor writes into element text,
378
+ image-note: "^\\[Image:" # removed before comparison and counted per pattern;
379
+ axis-years: "^(?:(?:19|20)\\d\\d\\s+){3,}(?:19|20)\\d\\d$" # none ship built in
366
380
  page_roles: {disclaimer: "(?i)^important disclosures"}
367
381
  roles: [marginalia, logo, attestation] # read from a snapshot, so they need one
368
382
  must_retain: ["material change"] # overrides every exclusion; missing is a loss
@@ -380,9 +394,18 @@ A document where not one chunk traces to its source is `SOURCE_MISMATCH`: either
380
394
  source key is wrong, or the store holds another document's text under that id. Neither is averaged
381
395
  into coverage as a 0%. A snapshot that cannot be found is reported with the key it was looked for at.
382
396
 
383
- What gates is what can be named. Against a snapshot, every passage the extractor produced and the
384
- store lacks is a lost passage, reported with its element type, page and box, and one is enough for
385
- `CONTENT_LOSS` (`lost_passages_allowed` raises that). A number in body text that is not stored is
397
+ **One presence test, line by line.** Whether text is stored is answered by one function
398
+ (`compass.presence`) for the gate, the finding, the retrieval probe, cross-index drift and the
399
+ report, with its settings under `eval.fidelity.presence` and its method carried in every result. Each
400
+ line is judged on its own; two lines never have to sit next to each other in the store, so a heading,
401
+ a sub-heading and a label stored in different chunks are stored. An element's share is the share of
402
+ its judged lines present, weighted by size. A line whose words are stored with a different number is
403
+ not missing text (the number check reports the change), and a typo the store corrected is tolerated
404
+ (`run_tolerance`).
405
+
406
+ What gates is what can be named. Against a snapshot, every element with lines the store lacks is a
407
+ finding that lists **its missing lines** and the element's line share, with its element type, page and
408
+ box, and one is enough for `CONTENT_LOSS` (`lost_passages_allowed` raises that). A number in body text that is not stored is
386
409
  listed with its page and sentence. Numbers inside a figure region, and runs of evenly spaced numbers
387
410
  such as an axis (`20.0% 22.0% 24.0%`), are reported apart as `figure_numbers` and never gate; words
388
411
  inside a figure are still compared. Page coverage is shown as context, not as a gate. The JSON keeps
@@ -390,15 +413,20 @@ every finding, body text first; the console shows the first few. A caption or a
390
413
  stored more than one chunk away from its figure is `CAPTION_DETACHED`, with both chunk ids. A
391
414
  source that cannot be read (encrypted, image-only) is compared through its snapshot.
392
415
 
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.
416
+ Each finding carries the kind of what is missing and a tier from `tiers`. A missing line takes its
417
+ own kind: in a table element a row is `table` and a line outside the rows (a title, subtitle or note)
418
+ is `table_title`, so a table whose cells are all stored but whose title is not is never reported as a
419
+ lost table; whether that gates is your `tiers` and `gate_tiers`. A table row held in a text element is
420
+ `table`, a heading element `heading`, a figure label `figure`, a line with a figure `number`, else
421
+ body text (`body` over `tier_body_chars`, `body_short` under). With `partial_drop_floor` set, an
422
+ element stored below that share is reported whole, as the first of those kinds its missing lines have.
423
+ Against a snapshot the coverage threshold does not gate (every missing line is already a named
424
+ finding); against a source text layer it does. A caption is located among the chunks of its own page,
425
+ never in a chunk of another page that repeats the same `Source:` line. Each gating finding names the
426
+ stored chunk of its page nearest its text. `--probe-retrieval lexical` asks whether retrieval can
427
+ surface the element: it queries with the element's **stored** lines (never the missing ones), scoped
428
+ to the document in the search itself, and counts a hit when the top `probe_k` chunks together hold
429
+ them, so an element split over chunks is still found.
402
430
 
403
431
  The gate counts what the report shows. A document clears when the findings its verdict rests on
404
432
  (the gating passages, or the numbers) are triaged `by_design` or `false`; extractor misses and
@@ -448,6 +476,13 @@ checked" when its input is missing): a heading stored with its section, a table
448
476
  reading order, every page with text covered by a chunk, the page a chunk states, every source image
449
477
  represented by a figure element, and pages whose text layer has no Unicode map. The chunk box and
450
478
  chunk type checks run when the index carries those fields (`chunk_box_field`, `chunk_type_field`).
479
+ An extractor that writes headings as lines inside text elements (Markdown `# Title`, for example)
480
+ emits no heading element; set `eval.structure.heading_line_pattern` (a regex, e.g. `"^#{1,6} "`) and
481
+ the heading check judges each such line with the text after it.
482
+
483
+ Each gating finding opens one evidence view: the source page (the document's own text layer), the
484
+ extractor element, the nearest stored chunk and the retrieval probe side by side, with the missing
485
+ lines marked where they appear.
451
486
 
452
487
  Index settings that change what every check reads:
453
488
 
@@ -466,12 +501,29 @@ reason, owner, expires}`. Every finding carries a stable id and a key (`check|in
466
501
  globs allowed); `by_design` and `false` never gate, expired entries are ignored with a warning, and
467
502
  `compass triage stats` reports each check's precision over the labelled entries. Findings are marked
468
503
  new, still open or resolved against the previous run, and `--export-findings DIR` writes one file
469
- per owner with index, chunk id, chunk index, page and a snippet.
504
+ per owner with index, chunk id, chunk index, page and a snippet. Ids are built from inputs only (the
505
+ document; for a lost passage its page, snapshot element and kind, or its first source line), never
506
+ from what the matcher reported, so a decision survives a change of matching. Entries for a command
507
+ that match none of its findings are listed as stale, and `compass triage migrate --file T
508
+ --old-report OLD.json --new-report NEW.json --output T2.yaml` re-keys entries written against an
509
+ earlier release's ids.
510
+
511
+ **Accept a release on your own KB.** `compass acceptance --report fidelity.json --expected
512
+ reference-kb.json` (or `acceptance.expected_file`) scores a run against a file listing, per index,
513
+ every element whose text is not stored (document, page, and optionally element type, kind, line
514
+ share and missing lines). It checks six criteria: gating findings name exactly the expected
515
+ (document, page), none missed or extra; each lists its missing lines and line share; expected kinds
516
+ match (a missing title is `table_title`); one document count across surfaces; ids stable against
517
+ `--previous`; and the retrieval probe finds every probed element. A criterion that could not be
518
+ judged is NOT RUN, never a pass, and the exit code is 0 only on PASS. `--write-expected FILE` builds a
519
+ starter file from a run, to check row by row in the store. The repository's own CI runs a synthetic
520
+ reference KB this way (`tests/acceptance_kb.py`).
470
521
 
471
522
  **Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
472
523
  `compass drift --project P --index-a A --index-b B` reports, per source document, content present
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
524
+ in one index and missing from the other, judged line by line with the same presence test
525
+ (`drift.cross_index.min_share`, default 0.5; findings list the missing lines). Markup (links, images,
526
+ HTML and table tags, entities) is removed before matching, and with `drift.cross_index.type_field` set, chunks of `generated_types` (chart and figure
475
527
  descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
476
528
  or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
477
529
  `eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
@@ -496,6 +548,17 @@ no flag names is read from `readiness.artifacts` (`{stage: path}`), then from
496
548
  `grounding`, `drift` and `fidelity`. A stage still missing names the command that writes it. `gate` means NOT READY,
497
549
  `risk` means AT RISK, `advisory` is reported and changes nothing.
498
550
 
551
+ Every stage line says what set its status (`AT RISK: <finding id> - <detail>; <what was
552
+ measured>`) and the JSON stage carries `basis` (the finding ids). Retrieval with no
553
+ `readiness.min_recall` reads **NOT GATED**: the recall is shown, nothing is concluded from it, and
554
+ it is neither green nor a failure (it neither caps the verdict nor changes the exit code).
555
+
556
+ A document where no check failed but a check that should have run could not (`status: not_run`
557
+ on the check row) is **not checked**, not passed: discover reports `passed`, `failed` and
558
+ `not_checked` separately, the ingestion stage reads `156 of 157 document(s) passed, 1 not checked`,
559
+ and the corpus verdict is capped at AT RISK. A check that does not fit the store
560
+ (`status: not_applicable`) is neutral and is not counted against anything.
561
+
499
562
  Every verdict carries `verified` / `unverifiable` / `not-checked` counts, and `discover` prints and
500
563
  exports the same block (`coverage` in the JSON). `unverifiable` means it was attempted and could not
501
564
  be compared, with the reason; `not-checked` means nobody tried. A fidelity comparison that never ran
@@ -529,6 +592,8 @@ it changes no verdict.
529
592
  | `fidelity_caption_detached` | risk | ingestion |
530
593
  | `fidelity_extractor_gap` (source text the extractor did not produce) | advisory | ingestion |
531
594
  | `fidelity_pipeline_drop` (passages the extractor produced, missing from the store) | gate | ingestion |
595
+ | `fidelity_triage_stale` | advisory | ingestion |
596
+ | `fidelity_lines_elsewhere` | advisory | ingestion |
532
597
  | `structure_findings` | advisory | ingestion |
533
598
  | `fidelity_documents_unverifiable` * (could not be compared) | risk | ingestion |
534
599
  | `fidelity_snapshot_coverage` * (below `readiness.min_snapshot_coverage`) | gate | ingestion |
@@ -271,18 +271,29 @@ 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
274
+ figure_match: words # words | run: a figure's label line is matched word by word
275
+ presence: # how a line is judged present (one test for everything)
276
+ unit: line # each line on its own; lines are never joined
277
+ match: tokens # tokens (default for a snapshot) | chars (for a text layer)
278
+ run_tokens: 5 # tokens: runs of this many words
279
+ run_tolerance: 1 # words of a run that may differ (a corrected typo)
280
+ line_present: 0.5 # share of a line's runs that makes it present
281
+ min_line_chars: 12 # shorter lines are not judged either way
282
+ max_line_chars: 300 # longer lines are judged sentence by sentence (0 = off)
283
+ verify_scope: document # document | page: page also reports lines stored only
284
+ # in another page's chunks (structure, not loss)
285
+ partial_drop_floor: 0 # e.g. 0.8: an element stored below this share is reported whole
277
286
  caption_max_chunk_gap: 1 # chunks a caption may sit from its figure
278
- tiers: {table: high, number: high, source_note: high, heading: medium,
287
+ tiers: {table: high, table_title: medium, number: high, source_note: high, heading: medium,
279
288
  figure: low, body: high, body_short: medium}
280
289
  tier_body_chars: 75 # body text at or over this is "body", under it "body_short"
281
290
  gate_tiers: [high, medium, low] # tiers whose pipeline drops gate
282
291
  source_figure_labels: figure # figure | unknown: short source labels on a chart page
283
292
  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
293
+ probe_retrieval: off # off | lexical | vector: can retrieval surface the element
285
294
  probe_max: 200
295
+ probe_k: 10 # results read per probe
296
+ probe_min_share: 1.0 # share of the element's stored lines the top k must hold
286
297
  number_format: "1,234.5" # or "1.234,5" | "1 234,5" | "1'234.5"
287
298
  source_exclusions: # nothing is excluded that is not listed here
288
299
  repeated_on_pages: 5 # headers and footers
@@ -290,6 +301,9 @@ eval:
290
301
  figure_min_chars: 75 # figure text this short (an element or a lost piece of one)
291
302
  repeated_on_all_pages: false # true: a line on every page of a short document is a header
292
303
  patterns: ["(?i)^past performance"] # by-design notices
304
+ line_patterns: # annotation lines an extractor writes into element text,
305
+ image-note: "^\\[Image:" # removed before comparison and counted per pattern;
306
+ axis-years: "^(?:(?:19|20)\\d\\d\\s+){3,}(?:19|20)\\d\\d$" # none ship built in
293
307
  page_roles: {disclaimer: "(?i)^important disclosures"}
294
308
  roles: [marginalia, logo, attestation] # read from a snapshot, so they need one
295
309
  must_retain: ["material change"] # overrides every exclusion; missing is a loss
@@ -307,9 +321,18 @@ A document where not one chunk traces to its source is `SOURCE_MISMATCH`: either
307
321
  source key is wrong, or the store holds another document's text under that id. Neither is averaged
308
322
  into coverage as a 0%. A snapshot that cannot be found is reported with the key it was looked for at.
309
323
 
310
- What gates is what can be named. Against a snapshot, every passage the extractor produced and the
311
- store lacks is a lost passage, reported with its element type, page and box, and one is enough for
312
- `CONTENT_LOSS` (`lost_passages_allowed` raises that). A number in body text that is not stored is
324
+ **One presence test, line by line.** Whether text is stored is answered by one function
325
+ (`compass.presence`) for the gate, the finding, the retrieval probe, cross-index drift and the
326
+ report, with its settings under `eval.fidelity.presence` and its method carried in every result. Each
327
+ line is judged on its own; two lines never have to sit next to each other in the store, so a heading,
328
+ a sub-heading and a label stored in different chunks are stored. An element's share is the share of
329
+ its judged lines present, weighted by size. A line whose words are stored with a different number is
330
+ not missing text (the number check reports the change), and a typo the store corrected is tolerated
331
+ (`run_tolerance`).
332
+
333
+ What gates is what can be named. Against a snapshot, every element with lines the store lacks is a
334
+ finding that lists **its missing lines** and the element's line share, with its element type, page and
335
+ box, and one is enough for `CONTENT_LOSS` (`lost_passages_allowed` raises that). A number in body text that is not stored is
313
336
  listed with its page and sentence. Numbers inside a figure region, and runs of evenly spaced numbers
314
337
  such as an axis (`20.0% 22.0% 24.0%`), are reported apart as `figure_numbers` and never gate; words
315
338
  inside a figure are still compared. Page coverage is shown as context, not as a gate. The JSON keeps
@@ -317,15 +340,20 @@ every finding, body text first; the console shows the first few. A caption or a
317
340
  stored more than one chunk away from its figure is `CAPTION_DETACHED`, with both chunk ids. A
318
341
  source that cannot be read (encrypted, image-only) is compared through its snapshot.
319
342
 
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.
343
+ Each finding carries the kind of what is missing and a tier from `tiers`. A missing line takes its
344
+ own kind: in a table element a row is `table` and a line outside the rows (a title, subtitle or note)
345
+ is `table_title`, so a table whose cells are all stored but whose title is not is never reported as a
346
+ lost table; whether that gates is your `tiers` and `gate_tiers`. A table row held in a text element is
347
+ `table`, a heading element `heading`, a figure label `figure`, a line with a figure `number`, else
348
+ body text (`body` over `tier_body_chars`, `body_short` under). With `partial_drop_floor` set, an
349
+ element stored below that share is reported whole, as the first of those kinds its missing lines have.
350
+ Against a snapshot the coverage threshold does not gate (every missing line is already a named
351
+ finding); against a source text layer it does. A caption is located among the chunks of its own page,
352
+ never in a chunk of another page that repeats the same `Source:` line. Each gating finding names the
353
+ stored chunk of its page nearest its text. `--probe-retrieval lexical` asks whether retrieval can
354
+ surface the element: it queries with the element's **stored** lines (never the missing ones), scoped
355
+ to the document in the search itself, and counts a hit when the top `probe_k` chunks together hold
356
+ them, so an element split over chunks is still found.
329
357
 
330
358
  The gate counts what the report shows. A document clears when the findings its verdict rests on
331
359
  (the gating passages, or the numbers) are triaged `by_design` or `false`; extractor misses and
@@ -375,6 +403,13 @@ checked" when its input is missing): a heading stored with its section, a table
375
403
  reading order, every page with text covered by a chunk, the page a chunk states, every source image
376
404
  represented by a figure element, and pages whose text layer has no Unicode map. The chunk box and
377
405
  chunk type checks run when the index carries those fields (`chunk_box_field`, `chunk_type_field`).
406
+ An extractor that writes headings as lines inside text elements (Markdown `# Title`, for example)
407
+ emits no heading element; set `eval.structure.heading_line_pattern` (a regex, e.g. `"^#{1,6} "`) and
408
+ the heading check judges each such line with the text after it.
409
+
410
+ Each gating finding opens one evidence view: the source page (the document's own text layer), the
411
+ extractor element, the nearest stored chunk and the retrieval probe side by side, with the missing
412
+ lines marked where they appear.
378
413
 
379
414
  Index settings that change what every check reads:
380
415
 
@@ -393,12 +428,29 @@ reason, owner, expires}`. Every finding carries a stable id and a key (`check|in
393
428
  globs allowed); `by_design` and `false` never gate, expired entries are ignored with a warning, and
394
429
  `compass triage stats` reports each check's precision over the labelled entries. Findings are marked
395
430
  new, still open or resolved against the previous run, and `--export-findings DIR` writes one file
396
- per owner with index, chunk id, chunk index, page and a snippet.
431
+ per owner with index, chunk id, chunk index, page and a snippet. Ids are built from inputs only (the
432
+ document; for a lost passage its page, snapshot element and kind, or its first source line), never
433
+ from what the matcher reported, so a decision survives a change of matching. Entries for a command
434
+ that match none of its findings are listed as stale, and `compass triage migrate --file T
435
+ --old-report OLD.json --new-report NEW.json --output T2.yaml` re-keys entries written against an
436
+ earlier release's ids.
437
+
438
+ **Accept a release on your own KB.** `compass acceptance --report fidelity.json --expected
439
+ reference-kb.json` (or `acceptance.expected_file`) scores a run against a file listing, per index,
440
+ every element whose text is not stored (document, page, and optionally element type, kind, line
441
+ share and missing lines). It checks six criteria: gating findings name exactly the expected
442
+ (document, page), none missed or extra; each lists its missing lines and line share; expected kinds
443
+ match (a missing title is `table_title`); one document count across surfaces; ids stable against
444
+ `--previous`; and the retrieval probe finds every probed element. A criterion that could not be
445
+ judged is NOT RUN, never a pass, and the exit code is 0 only on PASS. `--write-expected FILE` builds a
446
+ starter file from a run, to check row by row in the store. The repository's own CI runs a synthetic
447
+ reference KB this way (`tests/acceptance_kb.py`).
397
448
 
398
449
  **Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
399
450
  `compass drift --project P --index-a A --index-b B` reports, per source document, content present
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
451
+ in one index and missing from the other, judged line by line with the same presence test
452
+ (`drift.cross_index.min_share`, default 0.5; findings list the missing lines). Markup (links, images,
453
+ HTML and table tags, entities) is removed before matching, and with `drift.cross_index.type_field` set, chunks of `generated_types` (chart and figure
402
454
  descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
403
455
  or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
404
456
  `eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
@@ -423,6 +475,17 @@ no flag names is read from `readiness.artifacts` (`{stage: path}`), then from
423
475
  `grounding`, `drift` and `fidelity`. A stage still missing names the command that writes it. `gate` means NOT READY,
424
476
  `risk` means AT RISK, `advisory` is reported and changes nothing.
425
477
 
478
+ Every stage line says what set its status (`AT RISK: <finding id> - <detail>; <what was
479
+ measured>`) and the JSON stage carries `basis` (the finding ids). Retrieval with no
480
+ `readiness.min_recall` reads **NOT GATED**: the recall is shown, nothing is concluded from it, and
481
+ it is neither green nor a failure (it neither caps the verdict nor changes the exit code).
482
+
483
+ A document where no check failed but a check that should have run could not (`status: not_run`
484
+ on the check row) is **not checked**, not passed: discover reports `passed`, `failed` and
485
+ `not_checked` separately, the ingestion stage reads `156 of 157 document(s) passed, 1 not checked`,
486
+ and the corpus verdict is capped at AT RISK. A check that does not fit the store
487
+ (`status: not_applicable`) is neutral and is not counted against anything.
488
+
426
489
  Every verdict carries `verified` / `unverifiable` / `not-checked` counts, and `discover` prints and
427
490
  exports the same block (`coverage` in the JSON). `unverifiable` means it was attempted and could not
428
491
  be compared, with the reason; `not-checked` means nobody tried. A fidelity comparison that never ran
@@ -456,6 +519,8 @@ it changes no verdict.
456
519
  | `fidelity_caption_detached` | risk | ingestion |
457
520
  | `fidelity_extractor_gap` (source text the extractor did not produce) | advisory | ingestion |
458
521
  | `fidelity_pipeline_drop` (passages the extractor produced, missing from the store) | gate | ingestion |
522
+ | `fidelity_triage_stale` | advisory | ingestion |
523
+ | `fidelity_lines_elsewhere` | advisory | ingestion |
459
524
  | `structure_findings` | advisory | ingestion |
460
525
  | `fidelity_documents_unverifiable` * (could not be compared) | risk | ingestion |
461
526
  | `fidelity_snapshot_coverage` * (below `readiness.min_snapshot_coverage`) | gate | ingestion |
@@ -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.3.0"
8
+ __version__ = "4.4.0"