Repository navigation
test: launch admission matrix; one pure decision for every launch path - #2366
Merged
Merged
Conversation
… one pure decision for every launch path
Owner
Author
|
Local verification on uruk at e07cbae: |
5 tasks
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.
One pure launch admission decision that every launch path calls, plus a table-driven matrix that checks every combination against it. The matrix would have caught #2355 and guards #2359.
What changed
lean/Orb/LaunchAdmission.lean(new, pure, shared by Core and orb-locald):harnessRoute(placement × harness × router →router/own_login/ refusal),vpnBlocksOwnLogin,chooseAccount(generic over the monad: IO in production,Idin the matrix),antigravityHostRoute,antigravityNodeCandidates,vpnExitRefusal.lean/OrbCore/OrbCore/LaunchAdmission.lean(new):admitRequest, the router's per-request cyber gate that/v1now runs (same 403 codes and messages), andadmitLaunch, which runs the launch decision and then the first request's.Control.resolveLocalCoreHarnessSetup: no-router check and unbound Antigravity choice.Control.handleProxyRequest: the cyber 403s.RemoteDispatch:anyVpnConfiguredFor?is replaced bylaunchAccounts+vpnBlocksOwnLogin?.chooseAntigravityAccount?, the admin-node candidate filter and the Grok node gate also go through the pure functions.RemoteFleetAndRelay.remoteRequiresProxyHarnesses.OrbLocald.Rpc.coreAccountsSetup.shared/orb-spec/fixtures/launch-admission.jsonhas 19 first-match rules plus named regression cells.LaunchAdmissionTestsexpands harness (6) × placement (core/remote/client) × router × VPN state (none, configured, exit in use, other provider only) × marks (none, CVP/Daybreak, reserved) × request (ordinary, Mythos/Daybreak) into 624 cells. It decides each cell withadmitLaunchand fails on any mismatch, any cell no rule covers, or any rule that decides no cell.docs/spec-cards/launch-admission.md.anyVpnConfiguredFor?checks inHarnessProxyTestsnow only check how stored routes are read, including a route left on an unlisted account. The no-router VPN replay inProviderContractTestsis down to one end-to-end case.Refusal codes are unchanged:
local_harness_vpn_requires_router,grok_vpn_requires_proxy_base_url,REMOTE_AUTH_REQUIRED,antigravity_vpn_requires_account_binding,antigravity_vpn_unavailable:<reason>,no_cyber_access_account,only_reserved_accounts. The internal codecore_accounts_harness_unavailableis new; orb-locald still shows the same sentence.Behaviour notes (principle trade-offs)
launchAccountsreads every listed account's route. A route store error now refuses a no-router launch even when it is on another provider's account. Before, only the harness's own category was read. This fails closed.Tests
orb-core-teston uruk:launch admission matrix: 624 cells, 19 rules OK. The full run's result is in the comment below.