compass-kb-validation 4.3.1__tar.gz → 4.5.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.
- {compass_kb_validation-4.3.1/compass_kb_validation.egg-info → compass_kb_validation-4.5.0}/PKG-INFO +120 -23
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/README.md +119 -22
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/__init__.py +1 -1
- compass_kb_validation-4.5.0/compass/acceptance.py +297 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/baseline.py +4 -1
- compass_kb_validation-4.5.0/compass/check_outcome.py +57 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/cli.py +227 -6
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/config/__init__.py +50 -5
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/content_fidelity.py +516 -224
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/content_inspect.py +6 -4
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/corpus.py +23 -6
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/cross_index.py +67 -16
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/findings.py +46 -6
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/models/__init__.py +74 -6
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/notifications.py +12 -5
- compass_kb_validation-4.5.0/compass/passage_probe.py +256 -0
- compass_kb_validation-4.5.0/compass/presence.py +391 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/provenance.py +1 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/vectorstore.py +38 -16
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/readiness.py +84 -5
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/__init__.py +453 -112
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/_report_css.py +29 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/_report_js.py +4 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/export.py +37 -4
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/fidelity_view.py +202 -41
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/structure_checks.py +76 -29
- compass_kb_validation-4.5.0/compass/trend_analysis.py +469 -0
- compass_kb_validation-4.5.0/compass/trend_tracker.py +570 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/triage.py +104 -2
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/metadata_checks.py +5 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/retrieval_quality.py +18 -10
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/s3_storage.py +5 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0/compass_kb_validation.egg-info}/PKG-INFO +120 -23
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass_kb_validation.egg-info/SOURCES.txt +11 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/discover_and_validate.py +75 -26
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/run_validation.py +21 -7
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_readiness.py +4 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_redis_chunks.py +1 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_report_store_section.py +3 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_reporting.py +2 -2
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_trends.py +4 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v410_any_pipeline.py +1 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v420_gate.py +1 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v430_fidelity.py +5 -2
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v430_report.py +2 -1
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v430_tooling.py +8 -6
- compass_kb_validation-4.5.0/tests/test_v440_fidelity.py +317 -0
- compass_kb_validation-4.5.0/tests/test_v440_outcomes.py +236 -0
- compass_kb_validation-4.5.0/tests/test_v440_report_drift.py +159 -0
- compass_kb_validation-4.5.0/tests/test_v440_structure.py +111 -0
- compass_kb_validation-4.5.0/tests/test_v440_styles.py +31 -0
- compass_kb_validation-4.5.0/tests/test_v440_trends.py +100 -0
- compass_kb_validation-4.5.0/tests/test_v450_trends.py +255 -0
- compass_kb_validation-4.3.1/compass/passage_probe.py +0 -187
- compass_kb_validation-4.3.1/compass/trend_tracker.py +0 -223
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/LICENSE +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/__main__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/alias.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/ask.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/benchmark.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/check_catalog.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/chunk_coherence.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/chunk_eval.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/chunk_integrity.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/chunk_ref.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/citation.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/config_lint.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/corpus_health.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/diagnostics.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/diff.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/drift.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/embedding_drift.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/eval_enrich.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/eval_interop.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/evidence.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/grounding.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/grounding_diff.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/grounding_rollup.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/gt_lint.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/health.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/incremental.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/init_wizard.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/lineage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/live_dashboard.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/manifest.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/mcp_server.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/metadata_checks.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/pdf_support.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/pipeline/__init__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/profiler.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/__init__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/embedding.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/extractor.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/graph.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/markers.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/snapshot.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/source.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/providers/storage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/quality_gate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/remediation.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/analysis.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/audit.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/grounding_report.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/report/shell.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/retrieval_analysis.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/simulate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/snapshot_doctor.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/text_match.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/text_probes.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/utils/__init__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/__init__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/api_upload.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/base.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/base_sparql.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/cross_stage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/graphdb_metadata.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/neptune_metadata.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/redis_chunks.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass/validators/registry.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass_kb_validation.egg-info/dependency_links.txt +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass_kb_validation.egg-info/entry_points.txt +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass_kb_validation.egg-info/requires.txt +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/compass_kb_validation.egg-info/top_level.txt +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/ingestion_validation/__init__.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/profile_kb.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/pyproject.toml +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/setup.cfg +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_alias.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_alias_disambiguation.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_alias_temporal.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_alt_adapters.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_analysis_report.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_api_upload.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_ask.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_baseline.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_benchmark.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_calibrate_truth.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_check_catalog.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_chunk_eval.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_chunk_integrity.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_chunk_structure_checks.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_citation.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_citation_levels.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_cli.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_cli_commands.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_compat_shim.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_config.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_config_lint.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_content_fidelity.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_content_inspect.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_corpus.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_corpus_health.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_coverage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_coverage_and_drift_config.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_cross_stage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_diagnostics.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_diff.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_discover_cli.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_discovery_parallel.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_drift.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_embedding_contract.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_embedding_drift.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_eval_enrich.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_eval_interop.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_evidence.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_fidelity_precision.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_gate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_graph_transport.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_graph_validators.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_grounding.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_grounding_report.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_grounding_rollup.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_health.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_incremental.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_init_wizard.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_lineage.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_manifest.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_mcp.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_measurement_fixes.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_metadata_checks.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_migration.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_models.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_multi_index.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_neptune_bugfixes.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_neptune_bugfixes2.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_notifications.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_pipeline.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_profiler.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_providers.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_quality_gate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_registry.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_remediation.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_requirements_config.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_retrieval_assertions.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_retrieval_fields.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_retrieval_quality.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_review_hardening.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_run_cli.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_simulate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_source_exclusions.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_source_verification.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_sources.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_storage_validator.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_structure_checks.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_tooling_420.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_universal_concerns.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_utils.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v402_fixes.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v410_gate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v410_portability.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v420_report_truth.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v421_report.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v430_gate.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v431_report.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_v4_defect_fixes.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_vector_fastpath.py +0 -0
- {compass_kb_validation-4.3.1 → compass_kb_validation-4.5.0}/tests/test_vectorstore_filters.py +0 -0
{compass_kb_validation-4.3.1/compass_kb_validation.egg-info → compass_kb_validation-4.5.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: compass-kb-validation
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.5.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
|
|
348
|
-
|
|
349
|
-
|
|
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:
|
|
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
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
`
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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,60 @@ 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`).
|
|
521
|
+
|
|
522
|
+
**Run history and what it says.** Every `discover` and `validate` run is recorded in a SQLite file
|
|
523
|
+
(`trends.db_path`, default `validation_trends.db`; one file holds many projects): the run's document
|
|
524
|
+
outcomes (passed, failed, not checked), step and check totals, wall clock and summed time,
|
|
525
|
+
concurrency, config hash and coverage, COMPASS version, fidelity and tracked-finding counts; each
|
|
526
|
+
document's outcome, step statuses and times, failed and unrun checks, first failure message and
|
|
527
|
+
fidelity verdict; and per check how many documents passed, failed or could not run it. Older
|
|
528
|
+
databases are migrated in place. The report's Historical Trends section, the console and the JSON
|
|
529
|
+
output then say what the history shows: documents newly failing, fixed, still failing, added or
|
|
530
|
+
removed since the previous run; **flaky** documents (outcome flipped between passed and failed at
|
|
531
|
+
least `flaky_min_flips` times across comparable runs; a flip across a config or coverage change is
|
|
532
|
+
never counted); **chronic** documents (failed in every one of at least `chronic_min_runs` runs);
|
|
533
|
+
checks that are new, worse, better or cleared; steps whose time per document is `slower_ratio` times
|
|
534
|
+
their median and `slower_min_seconds` more; and a falling pass rate. Each document to watch has a
|
|
535
|
+
history strip, one cell per run. `compass trends [--project P] [--last N] [--json] [--export
|
|
536
|
+
[FILE]]` prints the same analysis and writes the runs and analysis as JSON (`compass-trends/1`,
|
|
537
|
+
default `.trends/trends.json`, e.g. for a CI cache); `trends.export_path` writes it after every run
|
|
538
|
+
and `trends.keep_runs` prunes old runs. Every threshold is `trends:` YAML; nothing is inferred by a
|
|
539
|
+
model.
|
|
540
|
+
|
|
541
|
+
```yaml
|
|
542
|
+
trends:
|
|
543
|
+
db_path: validation_trends.db
|
|
544
|
+
window: 20 # runs the analysis reads
|
|
545
|
+
flaky_min_flips: 2
|
|
546
|
+
chronic_min_runs: 3
|
|
547
|
+
slower_ratio: 1.5
|
|
548
|
+
slower_min_seconds: 1.0
|
|
549
|
+
keep_runs: 0 # 0 keeps every run
|
|
550
|
+
export_path: "" # e.g. .trends/{project}.json
|
|
551
|
+
```
|
|
470
552
|
|
|
471
553
|
**Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
|
|
472
554
|
`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
|
|
474
|
-
|
|
555
|
+
in one index and missing from the other, judged line by line with the same presence test
|
|
556
|
+
(`drift.cross_index.min_share`, default 0.5; findings list the missing lines). Markup (links, images,
|
|
557
|
+
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
558
|
descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
|
|
476
559
|
or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
|
|
477
560
|
`eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
|
|
@@ -496,6 +579,17 @@ no flag names is read from `readiness.artifacts` (`{stage: path}`), then from
|
|
|
496
579
|
`grounding`, `drift` and `fidelity`. A stage still missing names the command that writes it. `gate` means NOT READY,
|
|
497
580
|
`risk` means AT RISK, `advisory` is reported and changes nothing.
|
|
498
581
|
|
|
582
|
+
Every stage line says what set its status (`AT RISK: <finding id> - <detail>; <what was
|
|
583
|
+
measured>`) and the JSON stage carries `basis` (the finding ids). Retrieval with no
|
|
584
|
+
`readiness.min_recall` reads **NOT GATED**: the recall is shown, nothing is concluded from it, and
|
|
585
|
+
it is neither green nor a failure (it neither caps the verdict nor changes the exit code).
|
|
586
|
+
|
|
587
|
+
A document where no check failed but a check that should have run could not (`status: not_run`
|
|
588
|
+
on the check row) is **not checked**, not passed: discover reports `passed`, `failed` and
|
|
589
|
+
`not_checked` separately, the ingestion stage reads `156 of 157 document(s) passed, 1 not checked`,
|
|
590
|
+
and the corpus verdict is capped at AT RISK. A check that does not fit the store
|
|
591
|
+
(`status: not_applicable`) is neutral and is not counted against anything.
|
|
592
|
+
|
|
499
593
|
Every verdict carries `verified` / `unverifiable` / `not-checked` counts, and `discover` prints and
|
|
500
594
|
exports the same block (`coverage` in the JSON). `unverifiable` means it was attempted and could not
|
|
501
595
|
be compared, with the reason; `not-checked` means nobody tried. A fidelity comparison that never ran
|
|
@@ -529,6 +623,8 @@ it changes no verdict.
|
|
|
529
623
|
| `fidelity_caption_detached` | risk | ingestion |
|
|
530
624
|
| `fidelity_extractor_gap` (source text the extractor did not produce) | advisory | ingestion |
|
|
531
625
|
| `fidelity_pipeline_drop` (passages the extractor produced, missing from the store) | gate | ingestion |
|
|
626
|
+
| `fidelity_triage_stale` | advisory | ingestion |
|
|
627
|
+
| `fidelity_lines_elsewhere` | advisory | ingestion |
|
|
532
628
|
| `structure_findings` | advisory | ingestion |
|
|
533
629
|
| `fidelity_documents_unverifiable` * (could not be compared) | risk | ingestion |
|
|
534
630
|
| `fidelity_snapshot_coverage` * (below `readiness.min_snapshot_coverage`) | gate | ingestion |
|
|
@@ -612,7 +708,7 @@ check; `--list-checks` shows the defaults.
|
|
|
612
708
|
> Releases are published via [PUBLISHING.md](PUBLISHING.md).
|
|
613
709
|
|
|
614
710
|
Reports are written to `reports/` (HTML dashboard + JSON + JUnit XML). Add
|
|
615
|
-
`--live` to open a real-time progress dashboard, `--trends` to
|
|
711
|
+
`--live` to open a real-time progress dashboard, `--no-trends` to skip recording run history,
|
|
616
712
|
`--parallel` for concurrency.
|
|
617
713
|
|
|
618
714
|
### Try it locally (no cloud needed)
|
|
@@ -648,7 +744,8 @@ compass/
|
|
|
648
744
|
│ ├── corpus.py # Corpus-level KB readiness analysis
|
|
649
745
|
│ ├── live_dashboard.py # FastAPI + SSE real-time dashboard
|
|
650
746
|
│ ├── notifications.py # Slack / Teams webhooks
|
|
651
|
-
│
|
|
747
|
+
│ ├── trend_tracker.py # SQLite historical trends
|
|
748
|
+
│ └── trend_analysis.py # what the run history says (compass trends)
|
|
652
749
|
├── config/{base.yaml, projects/_template.yaml}
|
|
653
750
|
├── test_data/_template.yaml # Documents to validate (live mode)
|
|
654
751
|
├── integration/ # Local Docker integration stack
|
|
@@ -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
|
|
275
|
-
|
|
276
|
-
|
|
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:
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
|
|
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
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
`
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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,60 @@ 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`).
|
|
448
|
+
|
|
449
|
+
**Run history and what it says.** Every `discover` and `validate` run is recorded in a SQLite file
|
|
450
|
+
(`trends.db_path`, default `validation_trends.db`; one file holds many projects): the run's document
|
|
451
|
+
outcomes (passed, failed, not checked), step and check totals, wall clock and summed time,
|
|
452
|
+
concurrency, config hash and coverage, COMPASS version, fidelity and tracked-finding counts; each
|
|
453
|
+
document's outcome, step statuses and times, failed and unrun checks, first failure message and
|
|
454
|
+
fidelity verdict; and per check how many documents passed, failed or could not run it. Older
|
|
455
|
+
databases are migrated in place. The report's Historical Trends section, the console and the JSON
|
|
456
|
+
output then say what the history shows: documents newly failing, fixed, still failing, added or
|
|
457
|
+
removed since the previous run; **flaky** documents (outcome flipped between passed and failed at
|
|
458
|
+
least `flaky_min_flips` times across comparable runs; a flip across a config or coverage change is
|
|
459
|
+
never counted); **chronic** documents (failed in every one of at least `chronic_min_runs` runs);
|
|
460
|
+
checks that are new, worse, better or cleared; steps whose time per document is `slower_ratio` times
|
|
461
|
+
their median and `slower_min_seconds` more; and a falling pass rate. Each document to watch has a
|
|
462
|
+
history strip, one cell per run. `compass trends [--project P] [--last N] [--json] [--export
|
|
463
|
+
[FILE]]` prints the same analysis and writes the runs and analysis as JSON (`compass-trends/1`,
|
|
464
|
+
default `.trends/trends.json`, e.g. for a CI cache); `trends.export_path` writes it after every run
|
|
465
|
+
and `trends.keep_runs` prunes old runs. Every threshold is `trends:` YAML; nothing is inferred by a
|
|
466
|
+
model.
|
|
467
|
+
|
|
468
|
+
```yaml
|
|
469
|
+
trends:
|
|
470
|
+
db_path: validation_trends.db
|
|
471
|
+
window: 20 # runs the analysis reads
|
|
472
|
+
flaky_min_flips: 2
|
|
473
|
+
chronic_min_runs: 3
|
|
474
|
+
slower_ratio: 1.5
|
|
475
|
+
slower_min_seconds: 1.0
|
|
476
|
+
keep_runs: 0 # 0 keeps every run
|
|
477
|
+
export_path: "" # e.g. .trends/{project}.json
|
|
478
|
+
```
|
|
397
479
|
|
|
398
480
|
**Several indexes.** `discover` lists other indexes in the same store holding the same sources, and
|
|
399
481
|
`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
|
|
401
|
-
|
|
482
|
+
in one index and missing from the other, judged line by line with the same presence test
|
|
483
|
+
(`drift.cross_index.min_share`, default 0.5; findings list the missing lines). Markup (links, images,
|
|
484
|
+
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
485
|
descriptions each pipeline words its own way) are compared apart (`generated: separate`, default)
|
|
403
486
|
or skipped (`skip`), never reported missing. Chunk integrity reads the same chunk type from
|
|
404
487
|
`eval.structure.chunk_type_field`: a chunk of a `chunk_figure_types` type is generated text, left
|
|
@@ -423,6 +506,17 @@ no flag names is read from `readiness.artifacts` (`{stage: path}`), then from
|
|
|
423
506
|
`grounding`, `drift` and `fidelity`. A stage still missing names the command that writes it. `gate` means NOT READY,
|
|
424
507
|
`risk` means AT RISK, `advisory` is reported and changes nothing.
|
|
425
508
|
|
|
509
|
+
Every stage line says what set its status (`AT RISK: <finding id> - <detail>; <what was
|
|
510
|
+
measured>`) and the JSON stage carries `basis` (the finding ids). Retrieval with no
|
|
511
|
+
`readiness.min_recall` reads **NOT GATED**: the recall is shown, nothing is concluded from it, and
|
|
512
|
+
it is neither green nor a failure (it neither caps the verdict nor changes the exit code).
|
|
513
|
+
|
|
514
|
+
A document where no check failed but a check that should have run could not (`status: not_run`
|
|
515
|
+
on the check row) is **not checked**, not passed: discover reports `passed`, `failed` and
|
|
516
|
+
`not_checked` separately, the ingestion stage reads `156 of 157 document(s) passed, 1 not checked`,
|
|
517
|
+
and the corpus verdict is capped at AT RISK. A check that does not fit the store
|
|
518
|
+
(`status: not_applicable`) is neutral and is not counted against anything.
|
|
519
|
+
|
|
426
520
|
Every verdict carries `verified` / `unverifiable` / `not-checked` counts, and `discover` prints and
|
|
427
521
|
exports the same block (`coverage` in the JSON). `unverifiable` means it was attempted and could not
|
|
428
522
|
be compared, with the reason; `not-checked` means nobody tried. A fidelity comparison that never ran
|
|
@@ -456,6 +550,8 @@ it changes no verdict.
|
|
|
456
550
|
| `fidelity_caption_detached` | risk | ingestion |
|
|
457
551
|
| `fidelity_extractor_gap` (source text the extractor did not produce) | advisory | ingestion |
|
|
458
552
|
| `fidelity_pipeline_drop` (passages the extractor produced, missing from the store) | gate | ingestion |
|
|
553
|
+
| `fidelity_triage_stale` | advisory | ingestion |
|
|
554
|
+
| `fidelity_lines_elsewhere` | advisory | ingestion |
|
|
459
555
|
| `structure_findings` | advisory | ingestion |
|
|
460
556
|
| `fidelity_documents_unverifiable` * (could not be compared) | risk | ingestion |
|
|
461
557
|
| `fidelity_snapshot_coverage` * (below `readiness.min_snapshot_coverage`) | gate | ingestion |
|
|
@@ -539,7 +635,7 @@ check; `--list-checks` shows the defaults.
|
|
|
539
635
|
> Releases are published via [PUBLISHING.md](PUBLISHING.md).
|
|
540
636
|
|
|
541
637
|
Reports are written to `reports/` (HTML dashboard + JSON + JUnit XML). Add
|
|
542
|
-
`--live` to open a real-time progress dashboard, `--trends` to
|
|
638
|
+
`--live` to open a real-time progress dashboard, `--no-trends` to skip recording run history,
|
|
543
639
|
`--parallel` for concurrency.
|
|
544
640
|
|
|
545
641
|
### Try it locally (no cloud needed)
|
|
@@ -575,7 +671,8 @@ compass/
|
|
|
575
671
|
│ ├── corpus.py # Corpus-level KB readiness analysis
|
|
576
672
|
│ ├── live_dashboard.py # FastAPI + SSE real-time dashboard
|
|
577
673
|
│ ├── notifications.py # Slack / Teams webhooks
|
|
578
|
-
│
|
|
674
|
+
│ ├── trend_tracker.py # SQLite historical trends
|
|
675
|
+
│ └── trend_analysis.py # what the run history says (compass trends)
|
|
579
676
|
├── config/{base.yaml, projects/_template.yaml}
|
|
580
677
|
├── test_data/_template.yaml # Documents to validate (live mode)
|
|
581
678
|
├── integration/ # Local Docker integration stack
|