docs: fix drift in Testing - #267
Draft
jack-arturo wants to merge 1 commit into
Draft
Conversation
Verified against automem@8ff266e6 and mcp-automem@946f9e5e. - calculate_relevance_score() example used a signature that does not exist - FakeGraph deep link pointed at the wrong line range; refreshed stale SHAs - mock state attributes (queries/deleted/archived/deletions) were wrong - sample_rows/cluster_rows/decay_rows column shapes were wrong - converted the branch-pinned mcp-automem ci.yml link to a permalink Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQCAKtAw2NRatRuYVEfDcv
Deploying automem-website with
|
| Latest commit: |
55be495
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://95af2a44.automem-website.pages.dev |
| Branch Preview URL: | https://docs-audit-development-testi-y53o.automem-website.pages.dev |
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.
Automated docs-accuracy audit of
docs/development/testing. Draft because several fixes rewrite code samples, not just links.calculate_relevance_score(memory_id=…, importance=…, access_count=…, last_accessed=…, created_at=…)in the "Writing New Tests" samplecurrent_time; it readsid,timestamp,last_accessed,importance,confidenceoff that dict. The documented call raisesTypeError.FakeGraphattests/support/fake_graph.py:35-795, linked at SHA3ae04bf6class FakeGraphstarts at L42 and runs to the end of the 847-line file; the SHA was 4 automem releases stale#L42-L847; refreshed all 4 automem permalinks to8ff266e6graph.query_history,graph.deleted_nodes,graph.archived_nodes,graph.updated_scores.get(...),vector_store.deleted_idsgraph.queries(list of(query, params)tuples),graph.deleted(list of IDs),graph.archived/graph.updated_scores(lists of(id, score)tuples),vector_store.deletions(list of(collection, selector)tuples)apply_controlled_forgettingsamplessample_rows=[id, content, importance, count];cluster_rows=[id, content, embedding];decay_rows= list of dicts[id, content, type, embedding, timestamp],[id, content, embedding, type], and[id, content, last_accessed, importance, timestamp, relevance_score]— all plainList[List[Any]]rows, never dictsblob/mainVerified against: verygoodplugins/automem@8ff266e
Verified against: verygoodplugins/mcp-automem@946f9e5
Checked and found correct, left untouched: the pytest marker table (
unit/integration/liveall defined inpytest.ini,AUTOMEM_ALLOW_LIVE=1gate confirmed intests/test_integration.py), everyconsolidation.pyline range in the Test Architecture mermaid diagram, theFakeResult(:9-11),FakeVectorStore(:19-24) andfreeze_time(:27-39) anchors,requirements-dev.txt, and the whole mcp-automem Vitest section (script names,test:allcomposition,continue-on-errorcoverage step, and the 5 CI steps in order).Questions
tests/and omits thetests/lab/directory. Is that an intentional "representative sample", or should it track the real tree?Unverified
None — every code-anchored claim on this page resolved to current source.
Follow-ups
Beyond the 5-fix cap:
test_api_endpoints.py,test_app.py,test_service_runtime.py, and ~30 more.tests/tree is out of date — see the question above;tests/lab/and roughly 20 test files are missing.Generated by Claude Code