Harden retention under one-click start: UME raw caps and collection TTL.

Keep inline schedulers as the start_netx.ps1 default while bounding UME raw_json and pruning old NE collection dirs on startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 18:16:30 +08:00
parent e0503df8a5
commit 96be90bd1a
11 changed files with 167 additions and 14 deletions

View file

@ -30,6 +30,9 @@ class StabilityHardeningTests(unittest.TestCase):
self.assertEqual(s.oclaw_forward_queue_max, 5000)
self.assertEqual(s.ne_collect_max_output_bytes, 8 * 1024 * 1024)
self.assertEqual(s.webcrt_session_log_max_bytes, 4 * 1024 * 1024)
self.assertEqual(s.ume_raw_json_max_bytes, 64 * 1024)
self.assertEqual(s.ne_collection_keep_days, 14)
self.assertTrue(s.run_inline_schedulers)
# Pool should cover CLI + multi-user HTTP/WS reserve under defaults.
self.assertGreaterEqual(s.db_pool_size + s.db_max_overflow, s.cli_max_concurrent + 24)