Repository navigation
Conversation
The web view now reads Core's VPN and router-access answers through accountVpn.ts, checked against shared/orb-spec/fixtures/account-vpn.json. A route that is still awaiting verification no longer offers Retry; it is reread until it settles.
A provider response carrying X-Orb-Selected-Account, X-Orb-Route, X-Orb-Attempts-Used or another Core attribution header was forwarded ahead of Core's own value. Core now drops the upstream copy of the names it sets.
Both apps derive the row from OrbAccountVpn, the mirror of accountVpn.ts, checked against the shared fixture: unconfirmed answers show nothing, a pending exit is reread instead of offering Retry, native accounts can confirm Direct, an older Core gets the version requirement, and a refused router change shows what Core still reports. 1.84.0 (2026112301).
…uest Once the first liveness check had reaped an exited wireproxy, every later check raised instead of answering, so reading the account's connection settings and retiring the tunnel both failed with an error. A tunnel whose status can no longer be read now counts as exited: Settings shows the route as blocked, the next request is refused and the tunnel is retired. Also checks the verified route payload (server and both exits) that clients display.
…ts fail Retry is offered while an exit is still being verified, and any missing path counts as an older Core. Reverted by the next commit; never merge this head.
Reverts the temporary mutant ecabee3: Retry only after a reported failure, and only the same missing path counts as an older Core.
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.
Roadmap row V1: audit, test and fix per-account AirVPN/Direct routing across Core, the sidecar, the harnesses and the clients.
What changed
orb/src/accountVpn.tsowns every decision the row makes (selected country, offered list, editable, Confirm Direct, notice, status line, Retry, reread). iOS (OrbAccountVpninOrbProvidersSettings.swift) and Android (OrbAccountVpn.kt) mirror it, and all three are checked againstshared/orb-spec/fixtures/account-vpn.json.X-Orb-Selected-Account,X-Orb-Route,X-Orb-Attempts-Usedor another Core attribution header was forwarded ahead of Core's own value. Core now drops the upstream copy of the names it sets.wireproxy, every later check raised. Reading the account's connection settings failed with an error, and so did retiring the tunnel. A tunnel whose status can no longer be read now counts as exited: Settings shows the route as blocked, the next request is refused before any provider is contacted, and the tunnel is retired and its relay connections revoked. No request went Direct before the fix; the route failed closed, but with an error instead of a reason.Behaviour change
While Core reports
vpn_awaiting_verification, mobile now rereads the route every 5 s while the app is in the foreground and shows no Retry button, as desktop already did. Retry appears only after Core reports a failure.Audit
One line per behaviour in the row. "new" marks a test added here.
--leanui-hybrid)AirVpnSettingsTests: "legacy Direct route", "explicit Direct on legacy account", "enable VPN for one account", "direct clears VPN selection"; route contract inProviderContractTestsaccount-vpn-settings.test.tsx(6 tests); newaccount-vpn-model.test.tsx;account-vpn.browser.spec.tsin light and darktestAccountConnectionMatchesSharedFixture/accountConnectionMatchesSharedFixture(was a gap)test_airvpn_wireguard.py(routes["a"] != routes["b"]); "same-category overlap across independent file handles";admission_preserves_isolationtest_airvpn_wireguard.py(routes["c"] in …,max(max_sessions) == 5); "cross-category VPN lease";other_categories_allow_sharing,reservation_within_budgettest_airvpn_sidecar.py(len(recorded) == before);AccountVpnRelayTests; new "exited tunnel is refused, revoked and retired"test_airvpn_wireguard.pycrash and resume passes ("wireproxy survived Core SIGKILL")X-Orb-Selected-AccountSelfTestchecks; new "upstream headers must not shadow Core attribution"test_airvpn_sidecar.pyset_google_exclusions; "A restricted Antigravity account must stay out of explicit and fallback proxy chains"account-vpn-model.test.tsxtestAccountSettingReadErrorsAndRouterAccessMatchSharedFixture/accountSettingReadErrorsAndRouterAccessMatchSharedFixture(was a gap)Result: 9 behaviours audited, 4 gaps found and closed, 2 Core defects found and fixed, 1 gap left (pure LeanUI, below).
Each new test fails on the broken behaviour
orb-core-testexited 1 withFAIL: upstream headers must not shadow Core attribution: served=acct-primary selected=#[spoofed, acct-primary] attempts=#[9, 1] route=#[spoofed, default]. After: exit 0.orb-managed-provider-testexited 1 withno such thing (error code: 10, no such process). After: exit 0.serverreplaced by the country,orb-managed-provider-testfails at "verified route names its server and both exits".accountVpn.ts(Retry while pending, Confirm Direct ignoringsaved, missing-endpoint ignoring the path, truthy router access, unknown mode accepted, editable whencan_configureis absent, Direct write carrying a country) each failaccount-vpn-model.test.tsx. The sixth survived at first and got its own fixture case.ecabee3acdeliberately offered Retry while pending and treated any missing path as an older Core. On that head both Android tests failed (354 tests completed, 2 failed) and both iOS tests failed. The next commit restores the model. The squash removes the pair from history.Local results
orb-core-test(hermetic, full): exit 0, noFAIL.orb-managed-provider-test: exit 0.tsc --noEmit: clean.vitest run: 2365 passed, 3 skipped. Playwrightaccount-vpn.browser.spec.ts: 4 passed.Not in this PR
--leanui. Its account-connection and alternative-router rows live in files owned by row U5a (live_transport.py,State.lean,tests/test_live_delivery.py) and are covered there (for exampletest_blocked_selected_country_can_retry_and_direct_requires_confirmation). This PR does not touch them. One difference remains: LeanUI offers "Retry verification" for every blocked route, including one still awaiting verification. Moving that view onto the shared fixture is left for a follow-up after U5a.configuration_messageis read by all three clients, but Core onmasterdoes not send it yet (draft Exercise native Antigravity subscription Goal delegation #2003 does). Clients fall back to "VPN routing is unavailable for this credential."agy modelslogin, not an Orb account credential; the per-account probe honours the account's route.