Skip to content

feat: resolution trace, seeded uuids and declared prompt attributes (0.32.1.post3) - #40

Merged
ctharvey merged 2 commits into
menhir/mainfrom
feat/replay-resolution-trace
Dec 1, 2026
Merged

ctharvey merged 2 commits into
menhir/mainfrom
feat/replay-resolution-trace

Conversation

@ctharvey

@ctharvey ctharvey commented Dec 1, 2026

Copy link
Copy Markdown

Summary

Candidate-universe capture seams for Menhir replay (Archolith/menhir#469, Phase 2), released as archolith-graphiti-core 0.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 keeps uuid4.
  • 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 as last_accessed change prompt digests.
  • Tie-breaks: a uuid ASC tie-break after the existing order in:
    • similarity and fulltext search;
    • the relevant-edge and invalidation-candidate queries;
    • get_by_names and get_by_attribute_values;
    • retrieve_episodes.
  • Concurrent ingestion: all three new parameters are rejected there.
  • Release commit: bumps the version in pyproject.toml, uv.lock and the release workflow's wheel check.

Verification

This repo's CI runs only on PRs to main, so I ran everything locally:

  • 647 passed, 1 skipped, 4 xfailed across the new 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.py and tests/test_add_triplet.py.
  • The run used Neo4j 5.26 Community in a disposable container.
  • I ran the changed ORDER BY queries on that same container. Three nodes with tied scores come back in uuid order from node_similarity_search, get_by_names and get_by_attribute_values.
  • ruff check passes.
  • pyright reports 0 errors on the touched modules.
  • edge_operations.py already failed ruff format --check before this change, and is left as it was.

Not covered

  • FalkorDB and Neptune were not run.
  • uuid_seed does not cover the episode uuid (that is new_episode_uuid), the saga node, or add_triplet.

🤖 Generated with Claude Code

ctharvey and others added 2 commits December 1, 2026 00:08
…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
@ctharvey
ctharvey merged commit 7c938a5 into menhir/main Dec 1, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant