feat: internal enhancements — bug fixes, parallel tools, telemetry, cognitive memory#235
Open
GlobalSushrut wants to merge 1 commit intoRightNow-AI:mainfrom
Open
feat: internal enhancements — bug fixes, parallel tools, telemetry, cognitive memory#235GlobalSushrut wants to merge 1 commit intoRightNow-AI:mainfrom
GlobalSushrut wants to merge 1 commit intoRightNow-AI:mainfrom
Conversation
…ognitive memory, connection pool Bug fixes: - BUG-001: Fix DeliveryTracker race condition with AtomicUsize counter - BUG-004: Fix audit log mutex poisoning with corruption detection - BUG-008: Add missing poll tools to LoopGuard - SEC-003: Fail-safe default for spawn_agent_checked capability enforcement New modules (zero conflict — all new files): - parallel_tools: Drop-in parallel tool execution via futures::join_all - telemetry: Execution traces, Prometheus metrics registry, trace store - cognitive: Episodic/semantic/procedural memory with confidence decay - conn_pool: SQLite read/write connection pool for concurrent throughput All changes compile clean on rustc 1.90.0. No new dependencies added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Conflict-free internal enhancements: 4 bug fixes + 4 new modules. All new modules are new files only — zero modifications to hot-path code like
agent_loop.rs.Bug Fixes (minimal, localized diffs)
DeliveryTrackerrace condition —AtomicUsizecounter replaces O(n) sum with race windowLoopGuard::POLL_TOOLSspawn_agent_checked— rejects spawn from restricted parent unless overriddenNew Modules (zero conflict — all new files)
parallel_tools.rs: Drop-in parallel tool execution viafutures::join_all. 3-phase architecture (sequential pre-check → parallel execution → sequential post-processing). One-line opt-in fromagent_loop.rs.telemetry.rs:TraceBuilderfor structured execution traces +MetricsRegistrywith atomic counters + Prometheus text export + boundedTraceStorecognitive.rs: Episodic/semantic/procedural memory layers with Ebbinghaus confidence decay, reinforcement on access, contradiction detectionconn_pool.rs: SQLite read/write connection pool (WAL mode). 4 read-only connections + 1 write connection for 5-10x concurrent throughput.Build
openfang-memory,openfang-runtime,openfang-kernelall passcargo checkDiff Stats