mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-22 16:35:20 +08:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user