research(nightly): temporal-coherence-agent-memory#564
Draft
ruvnet wants to merge 3 commits into
Draft
Conversation
Implements ruvector-temporal-coherence with three VectorSearch variants: - FlatSearch: pure cosine similarity baseline - TemporalSearch: cosine × exponential time decay - CoherenceSearch: cosine × (decay + graph-coherence gate) All 21 unit tests pass. Acceptance benchmark: N=5000 D=128 K=10 200q - FlatSearch: cosine_recall=1.000 PASS - TemporalSearch: recency=0.962 PASS - CoherenceSearch: coh_gate=0.971 PASS - Latency: ~1036µs mean / 965 q/s (x86-64, linear scan, Rust 1.94.1) https://claude.ai/code/session_01AZSYgw84vT12vXZDsRGDvK
- docs/adr/ADR-211-temporal-coherence-agent-memory.md - docs/research/nightly/2026-06-13-temporal-coherence-agent-memory/README.md - docs/research/nightly/2026-06-13-temporal-coherence-agent-memory/gist.md ADR-211 documents design decisions, benchmark evidence, failure modes, alternatives considered (gMMR, QuIVer, MinCut compaction), and migration path. https://claude.ai/code/session_01AZSYgw84vT12vXZDsRGDvK
Adds rand small_rng feature lock entries for the new crate. https://claude.ai/code/session_01AZSYgw84vT12vXZDsRGDvK
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.
Nightly Research: Temporal Coherence Decay for Agent Memory Retrieval
Adds
crates/ruvector-temporal-coherence— a pure Rust crate scoring agent memories by temporal decay and graph-coherence gating.What's included
crates/ruvector-temporal-coherencewith threeVectorSearchvariantsdocs/adr/ADR-211-temporal-coherence-agent-memory.mddocs/research/nightly/2026-06-13-temporal-coherence-agent-memory/README.mddocs/research/nightly/2026-06-13-temporal-coherence-agent-memory/gist.mdThree retrieval variants
FlatSearchTemporalSearchCoherenceSearchBenchmark (N=5 000, D=128, K=10, 200 queries, Rust 1.94.1)
Ecosystem connections
ruvector-core(cosine search),ruvector-temporal-tensor(compression), andruvector-coherence(quality metrics)FlatSearch→CoherenceSearchwithout changing caller coderand(for benchmark dataset generation)half_life_hoursandcoherence_weightas tool parametersResearch doc
docs/research/nightly/2026-06-13-temporal-coherence-agent-memory/README.mdADR
docs/adr/ADR-211-temporal-coherence-agent-memory.mdTop alternatives considered (not selected this run)
Run it
git checkout research/nightly/2026-06-13-temporal-coherence-agent-memory cargo test -p ruvector-temporal-coherence cargo run --release -p ruvector-temporal-coherence --bin tcd-benchmarkGenerated by Claude Code