Skip to content

Fix/issues 689 690 694 695 - #840

Merged
Markadrian6399 merged 5 commits into
Ledger-Lenz:mainfrom
Zalgia-Saga:fix/issues-689-690-694-695
Sep 1, 2026
Merged

Fix/issues 689 690 694 695#840
Markadrian6399 merged 5 commits into
Ledger-Lenz:mainfrom
Zalgia-Saga:fix/issues-689-690-694-695

Conversation

@Zalgia-Saga

Copy link
Copy Markdown

Summary

This PR fixes the regressions covered by issues #689, #690, #694, and #695:

  • empty or degenerate motif graphs now return zeroed empty results instead of producing misleading non-empty defaults
  • DB connectivity failures are surfaced as unhealthy with a reason tied to the database component
  • diagnostics CLI output includes valid JSON for machine consumers while preserving human-readable output in normal mode
  • feature cache entries are invalidated when the active schema version changes so stale rows are not served against newer contracts

Changes

  • add the no-motifs / degenerate-graph guard in detection/motif_census.py
  • improve the DB health-check failure details in utils/diagnostics_checks.py
  • add JSON output support for CLI diagnostics in cli/main.py
  • invalidate cached feature entries when the feature schema version changes in detection/feature_cache.py
  • add focused regression tests for each scenario

Validation

  • pytest -q tests/test_motif_census.py tests/test_health_check.py tests/test_cli_operations.py tests/test_feature_cache.py tests/test_cache_invalidation.py

Closes #689
Closes #690
Closes #694
Closes #695

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@Zalgia-Saga Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Markadrian6399
Markadrian6399 merged commit 49ff39a into Ledger-Lenz:main Sep 1, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants