refactor(routing): extract portable shared core#116
Merged
Conversation
…016] Rename the authoritative scorer as wayfinder-routing-core, add secret-free runtime contracts and deterministic eligibility planning, and prove gateway/embedded parity without changing gateway behavior.
tcballard
marked this pull request as ready for review
July 24, 2026 10:33
tcballard
marked this pull request as draft
July 24, 2026 10:39
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
Extract the authoritative deterministic router into a portable shared core for the native iPhone/iPad runtime while keeping the current Rust gateway on the same implementation.
Scope
wayfinder-coretowayfinder-routing-coreand update every Rust consumer;wayfinder-runtime-contractsfor secret-free requests, destination snapshots, exclusions, route plans, explanations, and receipts;Out of scope: Swift bindings, XCFramework assembly, provider execution placement, iOS UI, credentials/authentication, Apple Foundation Models execution, and Mac pairing.
Product / Architecture Decisions
User-Facing Contract
No current macOS or gateway behavior changes. This creates the embedded planning seam required for standalone native iPhone and iPad routing.
Verification
cargo fmt --manifest-path rust/Cargo.toml --all -- --checkcargo test --manifest-path rust/Cargo.toml --workspace --all-features --lockedcargo clippy --manifest-path rust/Cargo.toml --workspace --all-targets --all-features --locked -- -D warningscargo metadata --manifest-path rust/Cargo.toml --no-deps --format-version 1wayfinder-core/wayfinder_corereferences underrust/.Review Path
wayfinder-runtime-contractsfor secret-free platform-neutral types.wayfinder-routing-core.dependency_boundary.rsandembedded_gateway_parity.rs.Notes For Reviewer
This PR is intentionally stacked on #114 (
codex/rust-only-cutover) because #114 contains the merged Rust-only and native-mobile source-of-truth work but is not yet onmain. Merge #114 first, then rebase/retarget this PR tomain.