fix(monitoring): persist session summaries to avoid history scans

- Maintain counts and display snapshots in source transactions with replay-safe deduplication.
- Read session lists exclusively from summaries and remove execution-only filters.
- Automatically initialize historical summaries in bounded, resumable batches during OSS startup.
- Add behavioral contracts covering accounting, retention, query cost and PostgreSQL concurrency.

Verified with the required session_summary suite and real container upgrade startup.
This commit is contained in:
BiFangKNT
2026-10-20 06:12:00 +08:00
parent 62b647761f
commit 810d053df9
33 changed files with 4227 additions and 466 deletions
+14
View File
@@ -5,6 +5,20 @@ import pytest
# These are behavior obligations, independent of file names and parametrization.
REQUIRED_CONTRACTS = {
'session_summary': {
'reader_dependencies',
'reader_sql',
'reader_http',
'reader_scale',
'summary_accounting',
'summary_fact_equivalence',
'summary_snapshot',
'summary_atomicity',
'summary_backfill',
'summary_retention',
'summary_postgres',
'summary_schema',
},
'postgres': {
'admission_isolation',
'rag_identity',