Repository navigation
Conversation
An event above its author's fork point was refused as Frozen when it arrived after the fork, but kept as voided when it arrived before, so an after hash naming it was present in one arrival order and absent in the other, stranding dependent events on some replicas. Implement the decision recorded on #12050 (preserve Phase 1 dependency presence): an event above the fork point is now decided on its own conflicts, backlink, and dependencies, and kept as voided evidence when it links. The resolution never applies it. A fork proof at the event's own sequence number now governs it wherever that point sits, so proof replacement keeps the two lowest IDs there in every order. The frozen refusal remains only for an event at a proof's own sequence number that displaces neither header: the position holds one event, and the headers are the events present there. Adds the order/API matrix test (both arrival orders, per-event and batch) and updates the tests that pinned the refusal.
…#12050) The range-session tally test pinned the old frozen refusal: events above a fork point arriving after the fork are now kept as voided evidence, so the session counts them as voided and refuses none.
…#12050) The ingest crash sweep asserted the seq-3 delivery after the fork was refused as frozen; it is now stored as voided evidence, and the sweep's outcome checker already handles that disposition.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 52 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis 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. |
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.
What
Implements the decision record on #12050 (option (a)): preserve Phase 1 dependency presence. A valid post-fork event is now retained as voided evidence instead of being refused
Frozen, soafterdependencies on it resolve independent of arrival order. It is never applied:resolve.rsalready guarantees events at/above a fork point stay voided.The bug
decide_inrefused any event whose seq sat above the author's lowest fork proof asRefusal::Frozen, storing nothing. A dependent naming that event inafterthen parked forever in one arrival order (dependent waits → post-fork event refused → row never released) while applying cleanly in the other — arrival order decided convergence.Change
event_store/mod.rs: newproof_at(forks, author, seq)helper besidelowest_proof.event_store/ingest.rs: a proof at the event's own seq still governs it (merge /Frozen/Forkas before). An event above the fork point with no own-seq proof now falls through to the normal conflicts/backlink/deps path and is stored voided when it links. Module docs updated (step 3 "Fork point"; the "known limit" section replaced).Frozen— the EVENTS position holds one event per (author, seq), so it cannot be retained; the issue's matrix covers above-point events.test_a_dependent_on_a_post_fork_event_resolves_in_either_arrival_order, per-event and batch, asserting identical final state in both orders); reworked frozen-chain / frozen-reason / released-into-frozen tests; sync tally test now counts post-fork arrivals as voided (received 2, refused 0, voided 2); crash workload outcome for the post-fork event is nowIngest::Voided. One doc comment updated intests/event_store_properties.rs.Verification (remote dispatch, fleet-run workflow, GitHub-hosted runners)
cargo test -p id-events --lib— 356 passed, 0 failed, 2 ignored — https://github.com/developing-today-forks/fleet/actions/runs/45150413759cargo test -p id --test event_store_properties --test regression_replay --test crash --test voiding_properties --test voiding_scenarios --test waiting_properties— 72 passed, 0 failed (crash 18, event_store_properties 20, regression_replay 17, voiding_scenarios 12, waiting_properties 3, voiding_properties 2) — https://github.com/developing-today-forks/fleet/actions/runs/45152213448decide_inFrozen block restored — exactly the 4 touched tests fail (matrix, frozen-chain evidence, released-into-frozen, sync tally) — https://github.com/developing-today-forks/fleet/actions/runs/45152219509Closes #12050
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T10:24:17Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "bbfc8aa3a3b4f3e3d399b7e76beb6962c0daa5b9" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.