Prepare verified laboratory 7 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 20afc2c790
commit eb1b5c7b84
677 changed files with 208256 additions and 64 deletions
@@ -0,0 +1,7 @@
SELECT json_build_object(
'schema_version',(SELECT max(version_id) FROM goose_db_version WHERE is_applied),
'ready_with_current_facts',count(*) FILTER (WHERE status='ready' AND accepted_at IS NOT NULL AND first_ready_at IS NOT NULL),
'ready_missing_first_fact',count(*) FILTER (WHERE status='ready' AND accepted_at IS NOT NULL AND first_ready_at IS NULL),
'negative_durations',count(*) FILTER (WHERE first_ready_at<accepted_at),
'legacy_ready_unknown',count(*) FILTER (WHERE status='ready' AND accepted_at IS NULL)
)::text FROM attachments;