Skip to content

id-core: fenced jurisdiction migration control plane core (#3404) - #13347

Merged
dezren39 merged 1 commit into
mainfrom
lane-landing-3404
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-landing-3404

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Slice

Lands the pure control-plane core for the fenced jurisdiction migration control plane tracked in #3404 — the slice Lane VY implemented, adopted through Lanes WL and WO, and held under the flag hold recorded on the issue (comment 7101852149) until Drew's batch approval on 2026-11-23.

  • New module pkgs/id/crates/id-core/src/migration_control.rs: durable migration record, phase machine (pending → source freeze → freeze acknowledged → export → target activation → switched, plus maintenance and abort-to-forward-only recovery), CAS-checked routing-epoch transitions, lease/fencing token, write-admission decision, export gate on the freeze acknowledgement. 17 tests.
  • Wiring: pub mod migration_control in id-core; serde derives on Jurisdiction in residency.rs (serde is already an id-core dependency); re-export from the root id crate.

Verification (laptop, nix develop in pkgs/id)

  • cargo nextest run -p id-core: 853 passed, 1 skipped, 0 failed — all 17 migration_control tests pass (ambiguous-CAS idempotence, stale-epoch rejection, stale-token fencing, freeze-gated export, resume-from-record, and the rest).
  • cargo check -p id: clean.
  • The new module is rustfmt-clean. A workspace-wide cargo fmt --check also flags pre-existing drift in untouched files (admission_gate.rs, world_presentation.rs, graph/attribute.rs); left alone here.

Scope note

This is one slice of #3404; the issue remains open. Hosted wiring (WebSocket/alarm/RPC/bridge enforcement) rides on #3399/#3400/#3402. The export-gate slice in PR #13275 (oc-code-04) is separate and untouched; the only shared neighbourhood is the pkgs/id/src/lib.rs wiring lines, additive on both sides.


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

Adds pkgs/id/crates/id-core/src/migration_control.rs: the pure,
durable-record control-plane core for jurisdiction migration -
the phase machine (pending, source freeze, freeze acknowledged,
export, target activation, switched, maintenance, and
abort-to-forward-only recovery), CAS-checked routing-epoch
transitions, the lease/fencing token, and the write-admission
decision the hosted paths will consult. Jurisdiction gains serde
derives so migration records can persist; the module is
re-exported from the root id crate.

Implementation started by Lane VY; adopted through Lanes WL and
WO; landed under Drew's 2026-11-23 batch approval of the flag
hold recorded on #3404. One slice of the issue: the hosted
wiring remains ahead, gated on the directory and routing work.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 6d1129ea-b6c5-47a6-a5b5-8264756591ad
Commits

Reviewing files that changed from the base of the PR and between ae19862 and f6c8764.

Files selected for processing: 4

  • pkgs/id/crates/id-core/src/lib.rs
  • pkgs/id/crates/id-core/src/migration_control.rs
  • pkgs/id/crates/id-core/src/residency.rs
  • pkgs/id/src/lib.rs
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T14:04:30.401037Z f6c8764 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit 5efb755 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-landing-3404 branch November 23, 2026 14:03
@dezren39 dezren39 added the audit:partial PR partially implemented; gap filed label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:partial PR partially implemented; gap filed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant