Repository navigation
[Community] Conformance Testing -- Help Validate Memory Engines Against MF-001 Rules M0-M12 #746
jarvispectrayan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The MF-001 specification defines 13 evaluation tests (Section 10) that any system claiming to be a "memory engine" should pass. Spector currently implements 3 of these as conformance test fixtures. We need help implementing the remaining 10 -- and each one is a well-scoped, self-contained task perfect for a first contribution.
Currently Implemented (3/13)
These live in
bench/spector-bench/src/test/resources/mf-conformance/:top_kmisses it; fused recall finds it. (Validates M2: Guaranteed Access)Needs Implementation (10/13)
Each test is defined in MF-001 Section 10. Here is what needs building -- pick one and submit a PR!
delta-S = s_gain * (1 - D).forgeton a trace. Verify that retrieval strength D decreases but storage strength S does not decrease. S is non-decreasing except on tombstone.introspectmust distinguish between the two.consolidate, the resulting semantic trace must have lineage pointing back to the source episodic traces.recalldoes not rewrite payload.rehearsedoes not return payload.reconsolidateis the only operation that rewrites payload, and it writes lineage.simulate, defaultrecallreturns no hypothetical traces.recallwithallow_simulated = truemay.commit_simulationnever yieldsexperiencedsource.dream, verify no newexperiencedepisodic traces exist. Onlysimulatedtraces, association updates, and strength updates are permitted.How to Contribute a Test
Test Fixture Format
Each test lives in its own directory under
mf-conformance/:Step-by-Step
setup.json,cue.json,expected.jsonbench/spector-bench/src/test/java/that loads the fixtures, runs the scenario, and asserts the expected behaviorExample: MF-T02 (Emotional Enhancement)
Should Conformance Tests Be Language-Agnostic?
One open question: should these test fixtures be defined as pure JSON (setup traces + cue + expected output) so that any memory engine in any language can validate against MF-001?
This would make MF-001 not just a spec document but a runnable conformance suite -- like SQL conformance tests or HTTP/2 h2spec.
Discussion Questions
All reactions