Repository navigation
test(lineage): cover nested dangling rollback - #3010
Merged
Merged
Conversation
Problem: lineage coverage did not prove a dangling ancestor propagated\nthrough a descendant or that a full replacement could roll back after graph\nresolution.\n\nWhat changed: add production-route regressions that assert physical rows,\nlink state, composed content, completeness, rollback, and idempotent retry.\n\nRef polylogue-866e.\n\nCo-Authored-By: Claude <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds two storage regression tests covering dangling ancestor lineage normalization and atomic full-replacement rollback with idempotent retries. ChangesLineage normalization regressions
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Adds deterministic production-route lineage regressions for nested dangling ancestry and failure after full-replace graph resolution.
Problem
The existing lineage suite covered direct dangling cuts and caller-owned rollback, but not a descendant inheriting through a parent whose own branch point disappeared, nor an exception after real graph resolution.
Solution
The new tests assert physical message rows, resolved link rows, composed transcript, typed completeness, atomic rollback, and repeated-retry convergence through
write_parsed_session_to_archive. A resolved relation remains resolved when only its historical branch-point message is absent; the typed degraded state isLineageCompleteness(dangling_branch_point).Ref polylogue-866e.
Verification
devtools test tests/unit/storage/test_lineage_normalization.py -k "nested_dangling or full_replace_graph_failure"— 2 passed.POLYLOGUE_HYPOTHESIS_REUSE_FAILURES=1 devtools test tests/property/test_write_path_state_machine.py— 3 passed.devtools test -k session_links— 5 passed.devtools test -k composed— 6 passed.devtools verify --seed-testmon --skip-slow— 15,933 recorded, zero failures.POLYLOGUE_PYTEST_WORKERS=0 devtools verify— passed. The default parallel repeat hit the separately tracked xdist collection-divergence pathology before tests ran.Summary by CodeRabbit
Bug Fixes
Tests