Repository navigation
feat: implement category-specific decay coefficients and pruning passes #17 - #73
prasiddhi-105 wants to merge 2 commits into
Conversation
|
Hey @prasiddhi-105! 👋 The category-specific decay coefficients logic you added looks promising, but I cannot merge this PR as-is because of a critical concern: This PR removes 30+ core source files that are unrelated to the issue:
This appears to be a branch divergence issue — your feature branch may have been created from an older base and diverged significantly from Please:
Happy to help if you run into issues! 🙏 |
keepsloading
left a comment
There was a problem hiding this comment.
Code Review
The category-specific decay coefficient logic is a good direction, but this PR has a critical problem that blocks merging:
This branch is deleting 30+ core source files that are completely unrelated to the decay feature, including:
src/adapters/postgresql.mjs(PostgreSQL adapter)src/schemas/core.mjs(core schemas)src/scoring/engine.mjs(scoring engine)src/matching/semantic.mjs(semantic matching)- and many more
This appears to be a branch divergence issue — your feature branch likely branched from a very old commit and the diff is comparing against a stale base, making it look like these files are being deleted when they are not intended to be.
Please:
- Create a fresh branch from the latest
main - Cherry-pick or manually re-apply only the decay coefficient changes
- Open a new PR from that clean branch
The decay logic itself is welcome — we just need it isolated without the unintended deletions. 🙏
|
@prasiddhi-105 I can see you pushed a second commit ( This isn't a merge conflict issue — it's a branch divergence problem. Your branch is based on a very old commit of The fix is to start fresh:
Do not try to rebase or merge — the divergence is too large and you'll keep fighting conflicts. A clean branch is the right path here. 🙏 |
|
@keepsloading Okayy sure, I'll do it tomorrow and update you ! |
|
SSoC26 Success: We found your dummy PR in [Context] (#Context#315) and have verified its linkage. Thank you! |
keepsloading
left a comment
There was a problem hiding this comment.
⚠️ Changes Requested
Hey @prasiddhi-105 — this PR is tagged as implementing Category-Specific Decay Coefficients (Issue #17), but the diff shows it removing 25 core files that are fundamental to the Memory module:
Files deleted that should not be removed:
src/claims.mjs— core claim processingsrc/source-metadata.mjs— source reliability scoringsrc/cap-packet.mjs,src/core-schemas.mjs,src/memory-schemas.mjs— data schemassrc/adapters/postgresql.mjs,src/postgres-statements.mjs— database layersrc/evidence-links.mjs,src/graph-snapshots.mjs,src/temporal-paths.mjs— graph & time trackingsrc/field-encryption.mjs,src/scoring.mjs,src/semantic-matching.mjs— core utilities- 5 test files covering backup, restore, encryption, and context-memory behavior
This would break Memory PR#87 (incremental index updates) and Memory PR#86 (app trust scoring), both of which depend on claims.mjs and source-metadata.mjs respectively.
What the PR should do instead:
- Keep all existing files intact
- Add the decay coefficient registry (category → decay params mapping) as a new module (e.g.,
src/decay-coefficients.mjs) - Add a pruning pass to the engine that applies per-category decay rates
- Add tests for the decay behavior
Please revert the file deletions and scope the PR to only the decay coefficient implementation. Happy to re-review once updated!
Architecture Review — Merge Candidate ✅@prasiddhi-105 — this PR implements exactly the right concept in exactly the right place. Category-specific decay coefficients with pruning passes directly fills the Memory: Temporal Decay v1 milestone. The architecture has shifted in a way that makes this work more valuable, not less. Two targeted changes before merge:
These are two targeted changes — the core algorithm, coefficient model, and test coverage are sound. Would you be willing to make these adjustments? This review is part of the Memact organization-wide migration to the identity infrastructure vision. Thank you for your sustained contribution — this is one of the highest-value PRs in the organization. |
|
Hey, thanks for engaging with this issue. We recently shifted the Memact architecture. Memact used to be a memory engine that inferred and acted on user data. It is now becoming open identity infrastructure where users own their data address and apps interact through open protocols. Because of this shift, many of the older issues no longer fit the new direction, so we are closing them to keep the tracker clean. If you had already written code for this issue, let us know and we will reopen it for review. A merged PR is not guaranteed but we will take a look. Check out the new open issues at https://github.com/Memact for what is active now. |
1 similar comment
|
Hey, thanks for engaging with this issue. We recently shifted the Memact architecture. Memact used to be a memory engine that inferred and acted on user data. It is now becoming open identity infrastructure where users own their data address and apps interact through open protocols. Because of this shift, many of the older issues no longer fit the new direction, so we are closing them to keep the tracker clean. If you had already written code for this issue, let us know and we will reopen it for review. A merged PR is not guaranteed but we will take a look. Check out the new open issues at https://github.com/Memact for what is active now. |
🎯 Overview
This PR resolves issue #17 by implementing a centralized category decay parameters registry and executing a dedicated pruning pass inside the memory engine.
🛠️ Changes Implemented
news-reading: 0.15,shopping: 0.08,health: 0.005) alongside default threshold configurations.decayMemories): Implemented logic to automatically map incoming memory records, fall back to inferred categories when necessary, compute decay operations up to 4 decimal places, and cleanly filter out records falling below the elimination threshold (0.15).news-reading.mjsandshopping.mjs) to properly export their decay coefficients.test/engine.test.mjsto validate category-specific decay behaviors.🧪 Testing
Validated locally using the Node.js native test runner: