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
+15
View File
@@ -12,6 +12,8 @@ on:
- 'run_tests.sh'
- 'scripts/test-*.sh'
- 'pytest.ini'
- 'AGENTS.md'
- 'ARCHITECTURE.md'
push:
branches:
- master
@@ -157,6 +159,19 @@ jobs:
path: postgres-contract-results.xml
if-no-files-found: ignore
- name: Run required session summary contracts
run: |
uv run --no-sync pytest --required-suite session_summary \
-q --tb=short -rs --junitxml=session-summary-results.xml
- name: Upload session summary contract results
if: always()
uses: actions/upload-artifact@v4
with:
name: session-summary-results
path: session-summary-results.xml
if-no-files-found: ignore
e2e:
name: E2E Startup Tests
runs-on: ubuntu-latest