Skip to content

feat: uuid_seed_preserve keeps reserved node uuids when seeding (0.32.1.post4) - #41

Merged
ctharvey merged 2 commits into
menhir/mainfrom
feat/reseed-preserve-uuids
Dec 1, 2026
Merged

ctharvey merged 2 commits into
menhir/mainfrom
feat/reseed-preserve-uuids

Conversation

@ctharvey

@ctharvey ctharvey commented Dec 1, 2026

Copy link
Copy Markdown

Summary

  • add_episode(uuid_seed_preserve=...) and reseed_extraction(preserve=...): an extracted node whose uuid is in the set keeps it instead of getting a seeded uuid. Its index is still used up, so all other seeded uuids are unchanged, and edge endpoints plus the episode index map keep pointing at the kept uuid.
  • uuid_seed_preserve without uuid_seed raises ValueError. Concurrent ingestion already rejects uuid_seed.
  • Release bump to 0.32.1.post4.

Why

Menhir's self-binding extraction hook assigns the namespace's reserved self uuid to the proven node. The reseed then overwrote it, so Menhir had to run those calls unseeded and mark their replay capture incomplete (Archolith/menhir#469). With the preserve set, those calls are seeded and replay deterministically. Behavior is unchanged when the parameter is not passed.

Test plan

  • tests/test_replay_capture.py: 31 passed (3 new: add_episode keeps the reserved uuid and the other seeded uuids, needs-a-seed guard, reseed unit test)
  • ruff and pyright clean on the touched files
  • Menhir D8 bench proof with this build: 12/12 captures complete; replay 12 unchanged, 0 misses, 0 network calls

🤖 Generated with Claude Code

https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z

ctharvey and others added 2 commits December 1, 2026 14:54
add_episode(uuid_seed_preserve=...) and reseed_extraction(preserve=...): an
extracted node whose uuid is in the set keeps it instead of a seeded uuid. Its
position is still used up, so every other seeded uuid is the same as without
the set, and edge endpoints and the episode index map keep pointing at it.

Menhir's self-binding extraction hook puts the namespace's reserved self uuid
on a node; the reseed used to overwrite it, so Menhir ran those calls unseeded
and their replay capture was incomplete (getzep#469). uuid_seed_preserve without
uuid_seed raises ValueError; concurrent ingestion already rejects uuid_seed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z
@ctharvey
ctharvey merged commit 50986e7 into menhir/main Dec 1, 2026
3 checks passed
ctharvey added a commit to Archolith/menhir that referenced this pull request Dec 1, 2026
* fix: self-bound episodes are seeded and replayable (#469)

Under replay capture, a receipt with a self-subject or inferred endpoint now
passes the namespace's canonical and inferred self uuids to the fork's
uuid_seed_preserve, so the reseed keeps the bound node's uuid and the
pre-resolution hook still finds it. On a fork without the parameter the call
stays unseeded and its capture incomplete, as before. Production (capture off)
is unchanged.

The twin now records ingest_graphiti_candidate_incomplete_reasons (sorted reason
slugs, null unless incomplete); the erasure tombstone removes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z

* chore: pin archolith-graphiti-core 0.32.1.post4 (#469)

Fork tag v0.32.1.post4 at 50986e77 (Archolith/graphiti#41) adds
uuid_seed_preserve. Wheel sha256 ae3bfc87...5192.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z

* docs: name the fork PR, not its version, in the seeding note (#469)

The bump tool's file table counts every file carrying the fork version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JbSZGLujukBKSFKCFwoC3z

---------

Co-authored-by: Charles H <contact@archolith.dev>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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