GateWeave: Adaptive memory admission control with belief versioning#3
Merged
Sandeeprdy1729 merged 2 commits intomainfrom Apr 2, 2026
Merged
Conversation
…oning - Add GateWeave database tables (belief_versions, gateweave_decisions, gateweave_summaries) - Add core GateWeave service with multi-dimensional admission scoring - Integrate write-time gating into memoryIndex.storeMemory - Add belief versioning for position-like statements - Add proactive propagation to burnout/relationship tools - Add GateWeave tool for stats, belief listing, history, weight tuning - Register GateWeave in tool router, agent system prompt, and tool registry - Add DB init to server.ts and seed.ts Agent-Logs-Url: https://github.com/Sandeeprdy1729/timps/sessions/0096f18f-eea6-48f1-8e32-8fec5c3a1fe8 Co-authored-by: Sandeeprdy1729 <182460780+Sandeeprdy1729@users.noreply.github.com>
…numbers as constants Agent-Logs-Url: https://github.com/Sandeeprdy1729/timps/sessions/0096f18f-eea6-48f1-8e32-8fec5c3a1fe8 Co-authored-by: Sandeeprdy1729 <182460780+Sandeeprdy1729@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Sandeeprdy1729
April 2, 2026 07:29
View session
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.
TIMPs stores every memory indiscriminately, leading to storage bloat, degraded retrieval precision, and no mechanism for tracking evolving user beliefs. Contradictions are caught post-hoc with no versioning, so outdated positions silently propagate into downstream tools.
GateWeave adds write-time admission gating and belief versioning to the memory pipeline.
Core service (
core/gateWeave.ts)active/superseded/retracted)Write-time integration (
memory/memoryIndex.ts)Falls back to unconditional storage if GateWeave fails.
Schema (
db/gateWeaveDb.ts)belief_versions— versioned belief chains with parent links, confidence, contradiction refsgateweave_decisions— admission audit log with score breakdownsgateweave_summaries— compressed rollups for medium-value gated contentTool 18 (
tools/gateWeaveTool.ts)Operations:
stats,list_beliefs,belief_history,tune_weights— exposes admission metrics and belief chains to the agent and user.Integration touchpoints
toolRouter.ts— keyword patterns + LLM routing forgateweaveagent.ts— system prompt updated (17→18 tools)server.ts/seed.ts— table initializationtools/index.ts— tool registration