-
Notifications
You must be signed in to change notification settings - Fork 0
feat(graph): temporal-decay traversal scoring — agent-memory recency (P1–P4) #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
7590ef3
feat(graph): stamp wall-clock created_ms on edges, surface via Merged…
tindangtts 0e189fb
feat(graph): user-facing temporal-decay knob for shortest-path queries
tindangtts c525ba1
feat(vector): FT.NAVIGATE DECAY — recency-aware multi-hop re-ranking
tindangtts 40e28f6
feat(graph): CSR segment format v3 — per-edge created_ms fidelity
tindangtts 2c32d6a
docs(temporal): decay knob docs, CHANGELOG, script coverage
tindangtts bd1b2b7
fix(graph): deep-review fixes — reject --decay on write queries + dec…
tindangtts b9f79d8
Merge remote-tracking branch 'origin/main' into feat/graph-temporal-d…
tindangtts a17dd86
ci(fuzz): install cargo-fuzz as prebuilt binary — nightly broke the l…
tindangtts d65b6a6
ci(fuzz): add rust-src component — cargo-fuzz build-std needs it
tindangtts ce68490
ci(fuzz): pass explicit gnu --target — prebuilt cargo-fuzz defaults t…
tindangtts 84ac77b
fix(graph): reject duplicate node external_ids in CSR decoders — fuzz…
tindangtts 82a90c6
Merge remote-tracking branch 'origin/main' into feat/graph-temporal-d…
tindangtts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #![no_main] | ||
| use libfuzzer_sys::fuzz_target; | ||
|
|
||
| use std::io::Write; | ||
|
|
||
| /// Fuzz the CSR graph segment decoders (heap + mmap). | ||
| /// | ||
| /// Exercises magic/version validation, version-gated section sizing | ||
| /// (v1 32B NodeMeta, v2+ 48B, v3+ trailing edge_created_ms array), | ||
| /// checked-arithmetic length validation, CRC32 checksum, row_offsets | ||
| /// monotonicity checks, and index rebuilding. Any panic or OOB access | ||
| /// is a bug — corrupted segment files must fail with CsrError, never | ||
| /// crash recovery. | ||
| fuzz_target!(|data: &[u8]| { | ||
| // Heap parser: must return Err cleanly on any malformed input. | ||
| let _ = moon::graph::CsrSegment::from_bytes(data); | ||
|
|
||
| // Mmap parser (separate unsafe pointer-math code path): only worth a | ||
| // temp-file round trip for inputs that pass the first-byte gate. | ||
| if data.starts_with(b"MNGR") { | ||
| let temp = tempfile::NamedTempFile::new().unwrap(); | ||
| temp.as_file().write_all(data).unwrap(); | ||
| let _ = moon::graph::MmapCsrSegment::from_mmap_file(temp.path()); | ||
| } | ||
| }); | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.