Skip to content

test(id-worlds): #17197 scenario 4 — journal mirror lag at handoff walkthrough - #17402

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900bu-17197-scenario4
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900bu-17197-scenario4

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Refs #17197, #13938 — lands scenario 4, completing the four named failure walkthroughs of #13938 item 4 (scenarios 1–3 landed in PR #17268). #17197 stays open for its author's close-out; this PR's landing note on #17197 records all four scenarios landed.

What

One named walkthrough test in pkgs/id/crates/id-worlds world tests: walkthrough_journal_mirror_lag_at_handoff_keeps_exactly_one_writer (+126 lines, tests only).

Scenario: the mirror confirms position 5 for the outgoing writer's epoch 0 (receipt from #13938 item 2, PR #17252), the lease hands off to native-1, and the incoming writer's replay has consumed only 3 positions — it lags the mirror-confirmed position. The replay barrier stands at 5: the incoming writer's mutation append is refused NotCleared (never queued) at replayed 3 and at 4, clears exactly at 5, its first sync round records a receipt under epoch 1, and the lagging mirror's late epoch-0 round is refused StaleEpoch. The shared assert_exactly_one_writer_per_epoch oracle then runs over the resulting journal (DO at epoch 0, native-1 at epoch 1, AppendStamp chain unbroken), and full replay rebuilds the same receipt with no barrier standing.

Fidelity (named per the acceptance criteria)

Real journal, real lease machinery, real receipt validation and barrier. Reduced fidelity: the mirror sync round and the incoming writer's catch-up replay are simulated at the in-process transport seam (journaled receipt entries + note_replayed_position), because native transport (#13938 item 3) has not landed. Also named on #17197 and #13938.

Verification

Remote dispatch at this PR's head (run id + counts posted on the PR when concluded): cargo test -p id-worlds --lib filters walkthrough / mirror / replay_barrier / receipt, pipefail, counts read firsthand from the log.

{
  "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-30T18:06:22Z",
    "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": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…t handoff

The fourth named failure walkthrough for #13938 item 4, on the
mechanism item 2 landed in PR #17252 (mirror position receipts +
replay barrier): the mirror confirms position 5 for the outgoing
epoch while the incoming writer's replay has consumed only 3
positions at handoff, so the barrier stands — the incoming writer's
mutation append is refused NotCleared (never queued) until replay
reaches exactly the mirror-confirmed position; its first sync round
then records a receipt under its own epoch, and the lagging mirror's
late epoch-0 round is refused StaleEpoch. The shared
assert_exactly_one_writer_per_epoch oracle runs over the resulting
journal (DO at epoch 0, native-1 at epoch 1, stamp chain unbroken),
and full replay rebuilds the same receipt with no barrier standing.

Fidelity: real journal, lease machinery, receipt validation and
barrier; the mirror sync round and the incoming writer's catch-up
replay are simulated at the in-process transport seam (journaled
receipt entries + note_replayed_position), native transport
(#13938 item 3) not landed — reduced fidelity named here, on the
PR, on #17197 and on #13938.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d7c6142-c8ec-4a07-b7db-e6e0922d3462

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 480de51 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/0900bu-17197-scenario4 branch November 30, 2026 18:19
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

LANDED — lane 0900-BU, 2026-11-30. PR #17402 MERGED 2026-11-30T18:19:38Z, merge commit 480de51f9f4ae2d53e87094367b52c119c5d43ca.

Verification firsthand at head 56bc88b47 (run 46480526531, Target HEAD confirmed in log): walkthrough 4 passed (all four #17197 scenarios, incl. the new walkthrough_journal_mirror_lag_at_handoff_keeps_exactly_one_writer, named in the log), mirror 2, replay_barrier 4, receipt 14 — 0 failed throughout.

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