Repository navigation
fix: VPN launch refusals scoped to the right account; Mythos/Daybreak refuse without a marked account, opt-in reserve - #2355
Merged
Conversation
- Local Claude Code/Codex/Grok without the router are refused only by a VPN route on an account of their own provider (one helper, anyVpnConfiguredFor?). - Core-host Antigravity turns choose the account like node dispatch (chooseAntigravityAccount?), pass over a busy route, and run as the chosen account with its own login. - An occupied exit answers vpn_exit_in_use; refusals say exits needed vs configured. - A request needing Daybreak/CVP with no marked account gets 403 no_cyber_access_account; opt-in per-account reserve for marked requests. - HTTP contract test for /api/ai/providers/:id/cyber-access.
Owner
Author
|
Mobile parity follow-up (item 8): #2356 shows the Daybreak/CVP mark and the kept state on accounts in the iOS and Android Inference screens. It is stacked on this branch. |
This was referenced Nov 30, 2026
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.
Fixes the VPN reasons missions were refused, and closes the Mythos/Daybreak account gaps. Follows #2333, #2343, #2349, #2352.
VPN launch refusals
local_harness_vpn_requires_router). It used to refuse every local Claude Code/Codex/Grok/OpenCode mission once any account had a VPN route. It is now scoped to the provider whose login the harness would use without the router: Claude Code → Claude accounts, Codex → ChatGPT accounts, Grok → xAI accounts. OpenCode and Pi can reach any provider, so they keep the old rule. A single helper,RemoteDispatch.anyVpnConfiguredFor?withharnessVpnCategory?, replaces the xAI-onlyanyXaiVpnConfigured?, so remote Grok and local turns follow one rule.antigravity_vpn_requires_account_binding). This path used to accept exactly one enabled VPN account and fail otherwise. Account selection now lives in one function,RemoteDispatch.chooseAntigravityAccount?, taken out ofadminDirectAntigravityStaticTarget?with unchanged behaviour. The local path uses it too. It goes through accounts in priority order and passes over any account whose route can't be had right now. The turn then runs as the chosen account: its login is written to a private home for the mission (<root>/core-turns/agy-home/<mission>, set asHOME), and a VPN-routed account goes only through its relay. While no Antigravity account is VPN-routed, the host's own login is used as before.vpn_exit_in_use), as decided. Allocation already tries every running and configured profile in the country before refusing. What was wrong: when a profile existed but another account of the same category held its exit, the answer wasvpn_no_compatible_profile("import a profile"). That reason isn't transient, so account selection didn't pass over the account. It now answersvpn_exit_in_use. When the accounts routed to a country outnumber its distinct configured servers, the refusal now says so in numbers, both in the account row and in a refused launch (AccountVpnPool.exitDemand/exitShortageNote). Example: "2 accounts of this provider use NL, and each needs its own exit, but only 1 server is configured for NL…"codex/airvpn-observed-country, and the 12 oncodex/antigravity-account-vpn-integration(which are a subset of those), are already on master, squashed in under other SHAs. That includes 3e461a2: master lets a member configure the VPN route of any account listed for them, which is broader than the branch's "accounts they added" (Control.lean,providerListedFor; test inProviderContractTests). It also includes de38356, the lowercase country codes (AirVpnObservation.lean:40). Nothing is ported, and both branches can be deleted.Mythos / Daybreak
403 no_cyber_access_accountwith a message asking the operator to mark the account. API-key targets are still outside the rule.403 only_reserved_accounts. Storage: areservedcolumn onaccount_cyber_access, added by an additive migration. API:reservedon thecyber_accessobject, and an optionalreservedin the PUT. Leaving it out keeps the saved choice, and clearing the mark clears it. Desktop: a second switch in the expanded account, with the same optimistic update, rollback and Retry as the mark switch. The shared fixture gainsreserved,reserveTitleandreserved_rule./api/ai/providers/:id/cyber-access. It covers member read, admin-only write, wrong provider family, API-key account, unknown account, malformed body, reserving an unmarked account, the reserve round trip, clearing, andcyber_accesson the list.Tests (replay each refusal order)
ProviderContractTestsv1:antigravity_vpn_unavailable:vpn_exit_in_use.ProviderContractTests8b: nothing marked plus a need gives no subscription target; reserve cases (ordinary request never reaches the kept account, a need still does, a reserve on an unmarked account has no effect, all kept leaves an empty chain, an unsplittable pool is dropped).HarnessProxyTests: category scoping ofanyVpnConfiguredFor?.orb/tests/account-cyber-access.test.tsx: fixture parity, reserve switch, rollback, member view.Trade-offs
HOMEto a private mission directory once any Antigravity account is VPN-routed, like nodes already do. Tools in that turn don't see root's~/.gitconfigand similar files.Checks
scripts/build_orb_bins.sh --only orb-core --only orb-core-test, built cold on uruk (x86_64): build OK.orb-core-test: EXIT=0.orb/:tsc --noEmitclean;vitest run: 271 files, 2522 tests passed (3 skipped).turbo-lean audit-spec, sinceOrb/Spec.leanis unchanged;pnpm test:browser; iOS and Android, since nothing mobile changed.