Repository navigation
feat: resolution trace, seeded uuids and declared prompt attributes (0.32.1.post3) - #40
Merged
Merged
Conversation
…or replay Candidate-universe capture for Archolith/menhir#469. Every default keeps today's behavior. - add_episode(resolution_trace=...): node and edge resolution report their candidate pools (empty ones too), context episodes, endpoint lookups and exact-name lookups. - add_episode(uuid_seed=...): new nodes and edges get uuids from the seed and their extraction order. - add_episode(prompt_attributes='declared'): dedupe, summary and attribute prompts show only attributes the entity type declares. - uuid tie-breaks after the existing order in similarity, fulltext, relevant and invalidation-candidate queries, get_by_names, get_by_attribute_values and retrieve_episodes. - All three seams are rejected with concurrent ingestion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XS5vA93pnjNuPqzF2pUWCG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XS5vA93pnjNuPqzF2pUWCG
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.
Summary
Candidate-universe capture seams for Menhir replay (Archolith/menhir#469, Phase 2), released as
archolith-graphiti-core0.32.1.post3. Every default keeps today's behavior.add_episode(resolution_trace=...): node and edge resolution report what they read. That covers candidate pools (empty pools included), context episodes, endpoint lookups and exact-name lookups.add_episode(uuid_seed=...): new nodes, edges and episodic edges get uuid5 values derived from the seed and the item's position in extraction order. Leaving it unset keepsuuid4.add_episode(prompt_attributes='declared'): the dedupe, summary and attribute prompts show only the attributes the node's entity type declares. Without this, volatile stored properties such aslast_accessedchange prompt digests.uuid ASCtie-break after the existing order in:get_by_namesandget_by_attribute_values;retrieve_episodes.pyproject.toml,uv.lockand the release workflow's wheel check.Verification
This repo's CI runs only on PRs to
main, so I ran everything locally:tests/test_replay_capture.py(28 tests),tests/ingestion,tests/utils/maintenance,tests/utils/search, the prompt, fence and concurrency tests,tests/test_graphiti_mock.pyandtests/test_add_triplet.py.ORDER BYqueries on that same container. Three nodes with tied scores come back inuuidorder fromnode_similarity_search,get_by_namesandget_by_attribute_values.edge_operations.pyalready failedruff format --checkbefore this change, and is left as it was.Not covered
uuid_seeddoes not cover the episode uuid (that isnew_episode_uuid), the saga node, oradd_triplet.🤖 Generated with Claude Code