Repository navigation
Conversation
A delete refuses the same value under another key in the namespace. Give each pair its own values so the test can verify Undo after independent deletes. Signed-off-by: zlareb1 <zlareb1@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
10 tasks done
This branch has not been deployed
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.
Related: #1977
Changelog category
CI Fix or Improvement
Changelog entry
None.
Why
The concurrent conflict resolver test seeds four pairs with the same two values. When the writer deletes one value, Loom refuses to restore the same value under a different key in that namespace. The final Undo assertion then fails according to which delete and retirement finish first.
Scope and risk
Seed distinct values for each pair in the concurrent test. The fixture still places the same vectors and starts the same writes, pins, deletes, and Undo calls. The test continues to check user writes, successful Undo, audit records, prompt isolation, erasure and convergence.
Compatibility, rollout and rollback
The change is limited to test data. Reverting restores the former fixture values.
Tests
pytest -q tests/integration/test_conflict_resolver_invariants_ch.pyand the relabelled-peer cases intest_conflict_resolver_ch.py.make format,make lintandmake typecheck.AI assistance in the code
AI-generated with Codex. Reviewed the fixture changes against the observed failure and ran the checks above.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
Note
Low Risk
Changes are confined to integration test fixtures and default
_pairbehavior is unchanged for other callers.Overview
Fixes flaky Undo assertions in the concurrent conflict-resolver integration test by giving each seeded pair unique memory values instead of reusing the same Paris/Rome strings across all four pairs.
The shared
_pairhelper intest_conflict_resolver_ch.pygains an optionalvaluestuple (defaults unchanged for existing tests). The invariants test passes per-key strings likeEarlier {old} fact/Current {new} fact, avoiding Loom’s rule that refuses the same value under another key after a delete—behavior that made Undo outcomes depend on race order (e.g. seed 2).Reviewed by Cursor Bugbot for commit 5651f25. Bugbot is set up for automated code reviews on this repo. Configure here.