Repository navigation
test(storage): Establish verdicts for the two open writer-ambiguity cases - #5467
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details🔇 Additional comments (2)
📝 WalkthroughWalkthroughTwo storage tests add checks for thread membership after a sibling append and for the count of hook-authoritative links. ChangesThread membership
Hook authority
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to This PR adds storage-test assertions without changing runtime code. The tests cover the stated sibling-membership and hook-supersession outcomes, and no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. A rabbit checks each thread-row count Comment |
Summary
Produces per-case verdicts for the two writer cases polylogue-asp4b left unestablished. Test-only; schema closure not applicable.
Produced by a
gpt-5.6-lunaworker.Why this exists
asp4bAC1 asks that "each real remaining named writer bug has a discriminating fixture." Three of its five cases were already fixed at head. Two — sibling-append and supersession — were reported UNESTABLISHED by two separate workers: neither could locate a seam."Nobody could find it" is absence of evidence, not evidence of absence, and closing on it is the closure-by-assertion pattern this campaign's own audit condemned. So the ask was a verdict per case: either a discriminating fixture that reproduces the defect, or an argument from the writer's construction that the case cannot occur.
Both are now answered, in opposite directions.
Sibling-append — cannot occur, by construction
thread_sessionskeys each membership by(thread_id, session_id). An append therefore adds exactly one distinct child and preserves every prior membership; there is no last-writer choice for a sibling to make. Pinned by an assertion that the parent thread holds 3 rows / 3 distinct sessions after two appends, alongside the existing "no membership rebuild" check.Supersession — real, and now pinned
A revised hook claim must leave exactly one authoritative parent per child. The fixture asserts that after revision.
Anti-vacuity executed: removing the supersession demotion left both the old and revised parents authoritative. Production code restored.
Verification
The first run of that selection failed on
no such column: summary— my own regression from #5446, unrelated to this branch. Rebasing onto master with #5465 merged cleared it.AC2-AC4 were already landed at head; the compound owner FK remains at
archive_tiers_specs.py:94,642. No production change was needed.🤖 Generated with Claude Code
https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy
Summary by CodeRabbit