You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance codebase with various improvements and fixes
- Updated compile options for modular build to conditionally disable optimizations in non-release configurations.
- Added <future> header to distributed_token_blacklist.h for future support.
- Changed mutex members in mysql_importer.h and postgres_importer.h to mutable for thread safety.
- Introduced audit_logger_ in query_engine.h for telemetry tracking.
- Removed redundant includes in shard_router.h.
- Cleaned up unused RocksDB includes in distributed_token_blacklist.cpp.
- Refactored federated_learning.cpp to use trimmed mean for aggregation.
- Fixed vector data handling in vector_index.cpp for HNSW indexing.
- Used static_cast for GPU memory management in active_vram_allocator.cpp.
- Updated LlamaWrapper to improve tokenization and error handling.
- Added shared_mutex for thread-safe configuration management in knowledge_gap_detector.cpp.
- Enhanced replication_manager.cpp with better WAL entry serialization.
- Improved gossip_config_manager.cpp to track propagation latency with proper type casting.
- Added version token generation in redundancy_strategy.cpp.
- Enhanced shard_router.cpp with detailed documentation for routing methods.
- Updated wal_storage.cpp to use [[maybe_unused]] for bounds-safe overloads.
- Added new configuration files for remote agents and MCP servers.
- Adjusted test cases for AQL hardening and distributed token blacklist to reflect recent changes.
Copy file name to clipboardExpand all lines: ai_working/THEMIS_CORE_QUICKWINS_KICKOFF_2026-06-09.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,46 @@ Schneller, risikoarmer Abbau von Critical/High-Gaps im themis_core-Scope mit dir
38
38
- Umsetzung: In `lockfree_metrics``condition_variable`-basiertes `wait_for` statt reinem `sleep_for` in `flushLoop()`, sofortiges Wake-up in `stopFlushThread()` via `notify_all()`, und kein Start des Flush-Threads bei `flush_interval<=0`.
- Umsetzung: In `redis_cache` ersetztes reconnect-slice-sleep durch `condition_variable::wait_for` mit Stop-Pruefung; `shutdown()` signalisiert jetzt aktiv per `notify_all()` vor `join()`.
43
+
- Validierung: Isolierter Core-Build erfolgreich mit `cmake --build --preset windows-release --target themis_base --parallel 16`; dazu Editor-/Compile-Diagnostics fuer `redis_cache.{h,cpp}` sauber.
44
+
45
+
-[x] QW-core-07: Generated-Protobuf-Warnungsrauschen (C4267) auf Source-Ebene kapseln.
46
+
- Umsetzung: In `cmake/CMakeLists.txt` gezielte MSVC-Source-Property `COMPILE_OPTIONS "/wd4267"` nur fuer generierte Protobuf-Translation-Units (`themis_wire_v1.pb.cc`, `themisdb.pb.cc`, `themisdb.grpc.pb.cc`), inkl. bestehender Unity-Excludes im Modularpfad.
47
+
- Validierung: Re-Configure + Build (`CMake: Configure (windows-release)`, `CMake: Build (windows-release)`) ohne C4267-Treffer im Build-Log.
48
+
49
+
-[x] QW-core-08: MSVC D9025 Flag-Konflikt (`/O2` vs `/Od`) im Modular-Serverpfad entfernen.
50
+
- Umsetzung: In `cmake/ModularBuild.cmake` die per-Source-Compile-Option fuer `monitoring_api_handler.cpp` und `index_api_handler.cpp` auf config-gated Debug-Only umgestellt (`/Od` nur fuer non-Release), bei Erhalt von `/bigobj` und `/Zm200`.
51
+
- Validierung: Re-Configure + Build (`CMake: Configure (windows-release)`, `CMake: Build (windows-release)`) ohne D9025-Treffer im Build-Log.
52
+
53
+
-[x] QW-core-09: MSVC C1060 Heap-OOM im Monitoring-API-Compilepfad entschärfen.
54
+
- Umsetzung: In `cmake/CMakeLists.txt` die monolithischen Server-TUs `monitoring_api_handler.cpp` und `index_api_handler.cpp` zusätzlich mit `COMPILE_OPTIONS "/bigobj;/Zm200"` versehen und gleichzeitig aus Unity ausgeschlossen belassen.
55
+
- Validierung: `cmake --build --preset windows-release --target themis_network --parallel 16` erfolgreich; vorheriger C1060-Abbruch auf `monitoring_api_handler.cpp` trat nicht mehr auf.
56
+
57
+
-[x] QW-core-10: Drei produktive Warnungs-Hotspots lokal bereinigt (`C4456`, `C4189`).
58
+
- Umsetzung: In `src/importers/federated_learning.cpp` inneres `sum` auf `trimmed_sum` umbenannt (kein Shadowing mehr), in `src/llm/lora_framework/lora_training_service.cpp` ungenutzte Variable `batches_per_epoch` entfernt, und in `src/index/vector_index.cpp``vector_data` nur im tatsächlich benötigten Scope geführt.
59
+
- Validierung: `cmake --build --preset windows-release --target themis_network --parallel 16` erfolgreich (inkrementell) ohne die zuvor gemeldeten Warnstellen.
60
+
61
+
-[x] QW-core-11: Signed/Unsigned-Vergleiche in Gossip-Update-Alterspfad bereinigt (`C4018`).
62
+
- Umsetzung: In `src/sharding/gossip_config_manager.cpp``now_ns` an beiden relevanten Stellen explizit als `uint64_t` geführt (statt implizitem signed `count()`-Typ), um Vergleiche mit `timestamp_ns` robust und warnfrei zu machen.
63
+
- Validierung: `cmake --build --preset windows-release --target themis_network --parallel 16` ohne `C4018`-Treffer auf den zuvor gemeldeten Zeilen.
64
+
65
+
-[x] QW-core-12: Narrowing im Robustness-Scoring entschärft (`C4244`).
66
+
- Umsetzung: In `src/rag/adversarial_tester.cpp` den `std::count_if`-Rückgabewert als `const auto` statt `long` geführt, damit keine implizite `__int64 -> long`-Konvertierung mehr erfolgt.
67
+
- Validierung: `cmake --build --preset windows-release --target themis_network --parallel 16` ohne `C4244`-Treffer auf der gemeldeten Stelle.
68
+
69
+
-[x] QW-core-13: Generated shard-proto Headerwarnung (`C4267`) im Sharding-Modul gekapselt.
70
+
- Umsetzung: In `cmake/ModularBuild.cmake` für `themis_sharding` (nur MSVC, nur bei aktivem `themis_shard_proto`) gezielt `/wd4267` ergänzt, damit `shard_rpc.pb.h`-Narrowing nicht in Consumer-TUs streut.
71
+
- Validierung: `cmake --build --preset windows-release --target themis_network --parallel 16` ohne `C4267`-Treffer auf `shard_rpc.pb.h`.
72
+
73
+
-[x] QW-core-14: `[[nodiscard]]`-Rückgaben von `freeGPU`/`freeCPU` explizit behandelt (`C4834`).
74
+
- Umsetzung: In `src/llm/active_vram_allocator.cpp` vier Best-Effort-Aufrufe von `gpu_mgr_->freeGPU/freeCPU` mit `static_cast<void>(...)` umschlossen; semantik ist bewusst fire-and-forget (Speicherfreigabe im VRAM-Allocator-Teardown).
75
+
- Validierung: Inkrementeller Build erfolgreich ohne C4834-Zeilen im Output.
76
+
77
+
-[x] QW-core-15: Nicht referenzierte statische Helfer in WAL-Storage markiert (`C4505`).
78
+
- Umsetzung: In `src/storage/wal_storage.cpp` die vier bounds-safe Overloads (`encode_u32/u64`, `decode_u32/u64`) mit `[[maybe_unused]]` versehen, da sie in bestimmten Unity-Builds nicht referenziert werden.
79
+
- Validierung: Inkrementeller Build erfolgreich ohne C4505-Zeilen auf `wal_storage.cpp`.
0 commit comments